发表于: 2020-03-18 21:48:34

1 1824



今天完成的事情:

1.推进任务



明天计划的事情:

1.推进任务



遇到的问题和收获:

<quill-editor class="editor"
             v-model="content"
             ref="myQuillEditor"
             @blur="onEditorBlur($event)" @focus="onEditorFocus(content)"
             @change="onEditorChange($event)">
      
</quill-editor>


onEditorChange() {//容改事件
   this.$emit('getContent', this.content)
   console.log(1515);
}

将值传给父组件接收


<el-form-item label="">
   <!--                <el-input v-model="article.content"></el-input>-->
   <Editor :init_content="article.content" @getContent="getContent"></Editor>
</el-form-item>


可以接受到。不过还再优化下



返回列表 返回列表
评论

    分享到