From 1a795304a5be1d9410e565032b9336ad5625314c Mon Sep 17 00:00:00 2001 From: fzh <1399952343@qq.com> Date: Wed, 27 Dec 2023 11:59:18 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BF=AE=E5=A4=8Dhtml=E7=BC=96?= =?UTF-8?q?=E8=BE=91=E5=99=A8=E8=A1=A8=E5=8D=95=E9=A1=B9=E6=9B=B4=E6=96=B0?= =?UTF-8?q?,=E5=86=85=E5=AE=B9=E6=B2=A1=E6=9C=89=E9=87=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 4 ++++ src/editor/html/wang-editor/wang-editor.tsx | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 28c61ec3f..5ea717487 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,10 @@ - 新增表格部件,支持表格行列合并、列宽拖拽、列宽自适应、列宽自适应时自动调整列宽 +### Fixed + +- 修复html编辑器表单项更新,内容没有重置 + ## [0.5.0-beta.1] - 2023-12-26 ### Added diff --git a/src/editor/html/wang-editor/wang-editor.tsx b/src/editor/html/wang-editor/wang-editor.tsx index fe306e887..fef0b81ef 100644 --- a/src/editor/html/wang-editor/wang-editor.tsx +++ b/src/editor/html/wang-editor/wang-editor.tsx @@ -326,9 +326,9 @@ const IBizHtml = defineComponent({ (newVal, oldVal) => { if ( newVal !== oldVal && - (typeof props.value === 'string' || newVal === null) + (typeof props.value === 'string' || newVal == null) ) { - if (newVal === null) { + if (newVal == null) { valueHtml.value = ''; } else { valueHtml.value = newVal as string; -- Gitee