更新WangEditor 版本,支持v-model方式绑定
This commit is contained in:
parent
4d184688e6
commit
d5030d267a
@ -25,16 +25,16 @@ export default {
|
||||
name: 'WangEditor',
|
||||
components: { Toolbar, Editor },
|
||||
props: {
|
||||
value: [String],
|
||||
editorHeight: {
|
||||
type: Number
|
||||
}
|
||||
value: {
|
||||
type: String,
|
||||
required: false,
|
||||
default: ''
|
||||
},
|
||||
computed: {
|
||||
...mapGetters([
|
||||
'imagesUploadApi',
|
||||
'baseApi'
|
||||
])
|
||||
editorHeight: {
|
||||
type: Number,
|
||||
required: false,
|
||||
default: 420
|
||||
}
|
||||
},
|
||||
data() {
|
||||
const _this = this
|
||||
@ -55,6 +55,12 @@ export default {
|
||||
}
|
||||
}
|
||||
}},
|
||||
computed: {
|
||||
...mapGetters([
|
||||
'imagesUploadApi',
|
||||
'baseApi'
|
||||
])
|
||||
},
|
||||
editMode: 'simple',
|
||||
editor: null,
|
||||
editValue: null
|
||||
|
Loading…
Reference in New Issue
Block a user