我想在组件A中使用另外一个组件B//组件AVue.component('A', { template: '<div><B></B></div>'})//组件BVue.component('B', { template: '<el-button>按钮</el-button>'})这样可以正确显示但是当我想动态显示时候, 确显示不出来//组件AVue.component('A', { template: '<div v-html="module"></div>' data:function() { return { module:'<B></B>', }; }})这是为什么??
添加回答
举报
0/150
提交
取消