Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
430 views
in Technique[技术] by (71.8m points)

elementui的$msgbox使用vnode,修改数据后视图不更新问题

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的都是这样,数据变了页面不变


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

目前发现input select都这样


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...