提交 aed958b1 authored 作者: 若依's avatar 若依 提交者: Gitee

!82 修复Editor组件在传入内容为null时无法响应式更新其内容的bug

Merge pull request !82 from HaoRan/N/A
...@@ -71,9 +71,9 @@ export default { ...@@ -71,9 +71,9 @@ export default {
value: { value: {
handler(val) { handler(val) {
if (val !== this.currentValue) { if (val !== this.currentValue) {
this.currentValue = val; this.currentValue = val === null ? "" : val;
if (this.Quill) { if (this.Quill) {
this.Quill.pasteHTML(this.value); this.Quill.pasteHTML(this.currentValue);
} }
} }
}, },
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论