Commit 66f486e8 by 潘际乾

保函文本组件完善

parent 41befe47
......@@ -19,19 +19,22 @@ export default {
};
},
watch: {
model() {
let rows = this.model["rows"] || [];
let enabled = false
if (this.$refs.editor.quill) {
enabled = this.$refs.editor.quill.isEnabled()
this.$refs.editor.quill.enable(false)
}
this.value = this.show(rows);
this.$nextTick(() => {
model: {
handler: function (newVal, oldVal) {
let rows = this.model["rows"] || [];
let enabled = false;
if (this.$refs.editor.quill) {
this.$refs.editor.quill.enable(enabled)
enabled = this.$refs.editor.quill.isEnabled();
this.$refs.editor.quill.enable(false);
}
})
this.value = this.show(rows);
this.$nextTick(() => {
if (this.$refs.editor.quill) {
this.$refs.editor.quill.enable(enabled);
}
});
},
immediate: true
},
},
methods: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment