|
|
|
@ -86,10 +86,11 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
onBlur (e) {
|
|
|
|
onBlur (e) {
|
|
|
|
this.value = this.$refs.contenteditable.innerText.trim() || this.modelValue
|
|
|
|
setTimeout(() => {
|
|
|
|
|
|
|
|
this.value = this.$refs.contenteditable.innerText.trim() || this.modelValue
|
|
|
|
this.$emit('update:model-value', this.value)
|
|
|
|
this.$emit('update:model-value', this.value)
|
|
|
|
this.$emit('blur', e)
|
|
|
|
this.$emit('blur', e)
|
|
|
|
|
|
|
|
}, 1)
|
|
|
|
},
|
|
|
|
},
|
|
|
|
focusContenteditable () {
|
|
|
|
focusContenteditable () {
|
|
|
|
this.$refs.contenteditable.focus()
|
|
|
|
this.$refs.contenteditable.focus()
|
|
|
|
|