本文主要是介绍wangeditor 动态生成多个,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
父组件引用
<editor-bar v-model="item.dicVal" :isClear="isClear" :index="index" @change="change" @deleteIndex="delWelLange"></editor-bar>
<div class="weLanguageTemWrap" v-for="(item,index) in weLanguageForm"><editor-bar v-model="item.dicVal" :isClear="isClear" :index="index" @change="change" @deleteIndex="delWelLange"></editor-bar> </div>
this.weLanguageForm.push({ dicVal: ' '})
子组件
<template lang="html"><div class="editor"><div ref="toolbar" class="toolbar"></div><div ref="editor" class="text"></div><p v-if='isShow' style="color:red;text-align: right;">编辑内容不能超过100个字</p><span class="limitNum"><span id="spanId">{{ spanInfo }}</span>/100</span><span class="el-icon-delete" @click="deleteStudent"></span></div> </template><script>import E from 'wangeditor'import emojiJSON from
这篇关于wangeditor 动态生成多个的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!