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