vue3 createVNode/h 通过组件名称来进行渲染无效果
VUE3 的代码可以不能解析组件#
this.$msgbox({
title: data.title,
customClass: config.class || 'modal-form',
message: createVNode('el-button'),
})
VUE2 的代码可以解析组件#
this.$msgbox({
title: data.title,
customClass: config.class || 'modal-form',
message: vue.createElement('el-button'),
})
推荐文章: