Javascript Vue扩展can';t负载锡
我想动态生成一个模板,所以我编写了一个方法来渲染组件。该方法可以渲染其他组件,但不能渲染Tinymce。这是我的密码:Javascript Vue扩展can';t负载锡,javascript,html,vue.js,Javascript,Html,Vue.js,我想动态生成一个模板,所以我编写了一个方法来渲染组件。该方法可以渲染其他组件,但不能渲染Tinymce。这是我的密码: private renderTemplate(){ const templateStr ='<tinymce v-model="abc" :height="300"/>'; const MyComponent = Vue.extend({ template: templateStr,
private renderTemplate(){
const templateStr ='<tinymce v-model="abc" :height="300"/>';
const MyComponent = Vue.extend({
template: templateStr,
props: [ 'isPrintPage' ],
components: {
Tinymce
},
data:function(){
return {
abc:""
}
}
});
const instance = new MyComponent({
propsData: { isPrintPage: false}
});
this.instance = instance;
instance.$mount();
(this.$refs.container as any).appendChild(instance.$el);
}
private renderTemplate(){
const templateStr='';
常量MyComponent=Vue.extend({
模板:templateStr,
道具:['isPrintPage'],
组成部分:{
蒂尼姆斯
},
数据:函数(){
返回{
abc:“
}
}
});
const实例=新的MyComponent({
propsData:{isPrintPage:false}
});
this.instance=instance;
实例。$mount();
(此.$refs.container,如有).appendChild(实例.$el);
}
怎么了