以说明简介为例:
1.<Input v-model="formItem.introduction" maxlength="100" show-word-limit :rows="4" :autosize="{maxRows:4,minRows: 4}" type="textarea" placeholder="请输入门店简介"s/>
修改为:
<WangEditor style="width: 100%" :content="formItem.introduction" @editorContent="getEditorContent" ></WangEditor>
2.script 引入:import WangEditor from "@/components/wangEditor/index.vue";
3.export default 里面新增 :components: { WangEditor },
4.methods 里面新增:
getEditorContent(data) {
this.content = data;
},
打包后也不行,请问哪里有问题?还需要修改哪里