Commit 66f486e8 by 潘际乾

保函文本组件完善

parent 41befe47
...@@ -19,19 +19,22 @@ export default { ...@@ -19,19 +19,22 @@ export default {
}; };
}, },
watch: { watch: {
model() { model: {
handler: function (newVal, oldVal) {
let rows = this.model["rows"] || []; let rows = this.model["rows"] || [];
let enabled = false let enabled = false;
if (this.$refs.editor.quill) { if (this.$refs.editor.quill) {
enabled = this.$refs.editor.quill.isEnabled() enabled = this.$refs.editor.quill.isEnabled();
this.$refs.editor.quill.enable(false) this.$refs.editor.quill.enable(false);
} }
this.value = this.show(rows); this.value = this.show(rows);
this.$nextTick(() => { this.$nextTick(() => {
if (this.$refs.editor.quill) { if (this.$refs.editor.quill) {
this.$refs.editor.quill.enable(enabled) this.$refs.editor.quill.enable(enabled);
} }
}) });
},
immediate: true
}, },
}, },
methods: { 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