更新WangEditor 版本,支持v-model方式绑定

This commit is contained in:
Zheng Jie 2023-07-05 11:25:38 +08:00
parent 4d184688e6
commit d5030d267a

View File

@ -25,17 +25,17 @@ export default {
name: 'WangEditor',
components: { Toolbar, Editor },
props: {
value: [String],
value: {
type: String,
required: false,
default: ''
},
editorHeight: {
type: Number
type: Number,
required: false,
default: 420
}
},
computed: {
...mapGetters([
'imagesUploadApi',
'baseApi'
])
},
data() {
const _this = this
return {
@ -55,6 +55,12 @@ export default {
}
}
}},
computed: {
...mapGetters([
'imagesUploadApi',
'baseApi'
])
},
editMode: 'simple',
editor: null,
editValue: null