From 368280ca68a71b3e77c1cfdca879fd8bc00f0afd Mon Sep 17 00:00:00 2001 From: Cano1997 <1978141412@qq.com> Date: Wed, 24 Sep 2025 20:13:46 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=A1=A8=E5=8D=95=E5=88=86=E9=A1=B5?= =?UTF-8?q?=E8=AE=A1=E6=95=B0=E5=99=A8=E6=B7=BB=E5=8A=A0data-value?= =?UTF-8?q?=E5=B1=9E=E6=80=A7=EF=BC=8C=E5=8F=AF=E9=80=9A=E8=BF=87data-valu?= =?UTF-8?q?e=E5=B1=9E=E6=80=A7=E8=AE=BE=E7=BD=AE0=E5=80=BC=E9=9A=90?= =?UTF-8?q?=E8=97=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 4 ++++ .../form/form-detail/form-tab-panel/form-tab-panel.tsx | 1 + 2 files changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2865d13e2..6fa9e286a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ ## [Unreleased] +### Added + +- 表单分页计数器添加data-value属性,可通过data-value属性设置0值隐藏 + ### Fixed - 修复菜单图标样式显示不正确异常 diff --git a/src/control/form/form-detail/form-tab-panel/form-tab-panel.tsx b/src/control/form/form-detail/form-tab-panel/form-tab-panel.tsx index 518f0de63..374093239 100644 --- a/src/control/form/form-detail/form-tab-panel/form-tab-panel.tsx +++ b/src/control/form/form-detail/form-tab-panel/form-tab-panel.tsx @@ -132,6 +132,7 @@ export const FormTabPanel = defineComponent({ (c.model.counterMode === 1 && value <= 0), ), ]} + data-value={value} value={value} hidden={ (!value && value !== 0) || -- Gitee