feat: 新增重置方法
This commit is contained in:
@@ -112,6 +112,9 @@ export default {
|
||||
return
|
||||
}
|
||||
this.editor.setValue(val)
|
||||
},
|
||||
resetField() {
|
||||
this.editor.setValue('')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -82,6 +82,9 @@ export default {
|
||||
return
|
||||
}
|
||||
this.editor.setValue(val)
|
||||
},
|
||||
resetField() {
|
||||
this.editor.setValue('')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -64,6 +64,9 @@ export default {
|
||||
},
|
||||
onSave(value, render) {
|
||||
this.$emit('save', value, render)
|
||||
},
|
||||
resetField() {
|
||||
this.content = ''
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -289,6 +289,9 @@ export default {
|
||||
return
|
||||
}
|
||||
this.editor.insertText(text)
|
||||
},
|
||||
resetField() {
|
||||
this.setHtml('')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -82,6 +82,9 @@ export default {
|
||||
return
|
||||
}
|
||||
this.editor.setValue(val)
|
||||
},
|
||||
resetField() {
|
||||
this.editor.setValue('')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user