const h = this.$createElement
this.$msgbox({
title: '消息',
message: h('el-button', { props: { }, nativeOn: { click: () => { this.other += 1 } }}, this.other),
showCancelButton: true,
confirmButtonText: '确定',
cancelButtonText: '取消'
}).then(action => {
this.$message({
type: 'info',
message: 'action: ' + action
})
})
如图,在this.$msgbox里使用vnode时发现数据能变但是视图不会变,比如这个,other在开发工具已经显示了变化,但是视图一直是初始值,求教原因,以及解决办法,好像有vmodel的都是这样,数据变了页面不变
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…