Commit 66f486e8 by 潘际乾

保函文本组件完善

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