From d014290bed870f9b17c7d8ff3368d7e1694404e0 Mon Sep 17 00:00:00 2001 From: Cano1997 <1978141412@qq.com> Date: Thu, 3 Jul 2025 17:28:01 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=AD=A5=E8=BF=9B?= =?UTF-8?q?=E5=99=A8=E5=8F=AA=E8=AF=BB=E7=8A=B6=E6=80=81null=E5=80=BC?= =?UTF-8?q?=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 1 + src/editor/stepper/ibiz-stepper/ibiz-stepper.tsx | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3811ec54..e9450d83 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ - 修复关系分页默认选中和默认是否隐藏编辑项异常 - 修复应用启动视图未隐藏应用级别的加载提示异常 - 修复数据选择类编辑器值回显异常 +- 修复步进器只读状态null值异常 ### Added diff --git a/src/editor/stepper/ibiz-stepper/ibiz-stepper.tsx b/src/editor/stepper/ibiz-stepper/ibiz-stepper.tsx index 581b1d10..da6277a0 100644 --- a/src/editor/stepper/ibiz-stepper/ibiz-stepper.tsx +++ b/src/editor/stepper/ibiz-stepper/ibiz-stepper.tsx @@ -4,6 +4,7 @@ import { getStepperProps, useNamespace, } from '@ibiz-template/vue3-util'; +import { isNilOrEmpty } from 'qx-util'; import { toNumber } from 'lodash-es'; import './ibiz-stepper.scss'; import { StepperEditorController } from '../stepper-editor.controller'; @@ -114,7 +115,7 @@ export const IBizStepper = defineComponent({ let content = null; if (this.readonly) { // 只读显示 - content = `${this.currentVal}`; + content = isNilOrEmpty(this.currentVal) ? '' : `${this.currentVal}`; } else { // 编辑态显示 content = [ -- Gitee