From 90b7704f43bb00f91b70fd491bcf611f885d090f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=B1=E6=94=BF=E6=9D=83?= <1978141412@qq.com> Date: Tue, 12 Nov 2024 19:55:27 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=8C=89=E9=92=AE=E7=BB=84=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E9=A1=B9=E6=98=BE=E7=A4=BA=E9=9A=90=E8=97=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 1 + src/common/button-list/button-list.tsx | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0d2f3402d..16424f126 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,7 @@ - 过滤组件添加默认新建过滤功能 - 多数据部件排序配置适配图标按钮移入显示title - 分页搜索视图中快捷搜索提示根据当前激活的关系视图显示 +- 按钮组支持项显示隐藏 ### Fixed diff --git a/src/common/button-list/button-list.tsx b/src/common/button-list/button-list.tsx index 3fcf224b5..a0cad8a6e 100644 --- a/src/common/button-list/button-list.tsx +++ b/src/common/button-list/button-list.tsx @@ -154,7 +154,10 @@ export const IBizButtonList = defineComponent({ action, }: { action: IAppDEUIActionGroupDetail; - }): VNode => { + }): VNode | null => { + if (!props.buttonsState[action.id!].visible) { + return null; + } return ( {action.showIcon && action.sysImage && ( -- Gitee