子组件内定义事件派发
methods: {
onEditorChange(val){
this.$emit('onEditorChangeClick', this.content)
},
父组件内
<v-FollowRecord :formTraceSearch="formTraceSearch" @onEditorChangeClick="handleChangeVal">
<div slot="footer" class="dialog-footer" style="margin:50px 0 0;text-align:right">
<el-button size="small" @click="addVisible">取 消</el-button>
<el-button size="small" v-if="!formEditDisabled" type="primary" @click="saveTraceCompany">保 存</el-button>
</div>
</v-FollowRecord>
handleChangeVal(val){
this.formTrace.traceContent = val;
console.log("富文本打印数据!!!");
console.log(val);
},