Closed cts-cool closed 4 years ago
<mavon-editor ref=md @imgAdd="imgAdd" :toolbars="toolbars" :boxShadow="false" v-decorator="['context',{initialValue: '' ,rules: [{required: true, message: '内容不能为空'}]} ]"/>
不设置会报mavon-editordefault valuecan not collect, please useoption.initialValueto set default value.
mavon-editor
can not collect, please use
to set default value.
但是设置了initialValue,操作完,清空表单后再次打开,就会强制判断验证内容,提示内容为空
<mavon-editor ref=md @imgAdd="imgAdd" :toolbars="toolbars" :boxShadow="false" v-decorator="['context',{initialValue: '' ,rules: [{required: true, message: '内容不能为空'}]} ]"/>
不设置会报
mavon-editor
default valuecan not collect, please use
option.initialValueto set default value.
但是设置了initialValue,操作完,清空表单后再次打开,就会强制判断验证内容,提示内容为空