From d31b1c27ff6309d3cba1ffd62b049d223334b558 Mon Sep 17 00:00:00 2001 From: zhf <1204297681@qq.com> Date: Wed, 20 Sep 2023 11:18:19 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dinput=E8=BE=93?= =?UTF-8?q?=E5=85=A5=E6=A1=86=E7=BC=96=E8=BE=91=E5=99=A8=E6=95=B0=E5=80=BC?= =?UTF-8?q?=E4=B8=BA0=E6=97=B6=E4=B8=8D=E6=98=BE=E7=A4=BA=E5=BC=82?= =?UTF-8?q?=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 3 +++ src/editor/text-box/input/input.tsx | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b4411f57b..dc3160521 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,9 @@ - 看板、卡片分组界面行为组绘制修改 - 多数据,导航和表单等部件补充loadDefault的prop,对应视图引擎传loadDefault=false给对应部件。 +### Fixed +- 修复input输入框编辑器数值为0时不显示异常 + ## [0.1.26] - 2023-09-18 ### Fixed diff --git a/src/editor/text-box/input/input.tsx b/src/editor/text-box/input/input.tsx index c3d1a97ca..ba2c48d41 100644 --- a/src/editor/text-box/input/input.tsx +++ b/src/editor/text-box/input/input.tsx @@ -45,7 +45,7 @@ export const IBizInput = defineComponent({ () => props.value, (newVal, oldVal) => { if (newVal !== oldVal) { - if (!newVal) { + if (newVal == null) { currentVal.value = ''; } else { currentVal.value = newVal.toString(); -- Gitee