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

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

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