Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/422.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/89.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript Vue扩展can';t负载锡_Javascript_Html_Vue.js - Fatal编程技术网

Javascript Vue扩展can';t负载锡

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,

我想动态生成一个模板,所以我编写了一个方法来渲染组件。该方法可以渲染其他组件,但不能渲染Tinymce。这是我的密码:

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);
   }
怎么了