提交 f3950954 编写于 作者: Mosher's avatar Mosher

视图消息组件完善 --- fix2

上级 ff76e000
......@@ -141,18 +141,33 @@ export default class AppAlert extends Vue {
if(flag && Object.is('POP', data.position)) {
const h = this.$createElement;
data.showState = false;
setTimeout(() => {
this.$message({
customClass: data.codename+","+data.closeMode,
message: h('div',[
h('p',data.title),
h('p', data.content)
]),
type: data.type,
showClose: data.closable,
onClose: this.alertClose,
})
}, 0)
if(Object.is('HTML',data.messageType) && data.hasMessageTemp) {
setTimeout(() => {
this.$message({
customClass: data.codename+","+data.closeMode,
message: h('div',{}, [
h('p',data.title),
h('p',{domProps:{innerHTML: data.content}})
]),
type: data.type,
showClose: data.closable,
onClose: this.alertClose,
})
}, 0)
} else {
setTimeout(() => {
this.$message({
customClass: data.codename+","+data.closeMode,
message: h('div',{}, [
h('p',data.title),
h('p',data.content)
]),
type: data.type,
showClose: data.closable,
onClose: this.alertClose,
})
}, 0)
}
}
}
}
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册