From ec91287250b5268342505b04dd1e3ab7cd818a51 Mon Sep 17 00:00:00 2001 From: ShineKOT <1917095344@qq.com> Date: Fri, 19 Sep 2025 14:36:20 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=20=E6=9B=B4=E6=96=B0=E5=BC=95=E7=94=A8?= =?UTF-8?q?=E7=95=8C=E9=9D=A2=E8=A1=8C=E4=B8=BA=E7=BB=84=E5=9B=BE=E6=A0=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 4 ++ src/common/action-group/action-group.tsx | 50 ++++++++++++++++++------ 2 files changed, 42 insertions(+), 12 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e99efb36..9fa90da0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ ## [Unreleased] +### Change + +- 更新引用界面行为组图标 + ## [0.7.41-alpha.15] - 2025-09-17 ### Added diff --git a/src/common/action-group/action-group.tsx b/src/common/action-group/action-group.tsx index c03716b0..9cdaec40 100644 --- a/src/common/action-group/action-group.tsx +++ b/src/common/action-group/action-group.tsx @@ -69,6 +69,16 @@ export const IBizActionGroup = defineComponent({ return visible; }); + /** + * 标题 + */ + const caption = computed(() => { + return ( + props.actionDetail.refUIActionGroup?.name || + props.actionDetail.refUIActionGroup?.id + ); + }); + /** * 弹出位置 */ @@ -173,6 +183,7 @@ export const IBizActionGroup = defineComponent({ return { ns, visible, + caption, buttonRef, placement, showPopover, @@ -201,18 +212,33 @@ export const IBizActionGroup = defineComponent({ class={this.ns.e('button')} type={convertBtnType(this.actionDetail.buttonStyle)} > -
- {this.actionDetail.refUIActionGroup?.name || - this.actionDetail.refUIActionGroup?.id} -
- + {{ + icon: () => { + return ( + this.actionDetail.showIcon && + this.actionDetail.sysImage && ( + + ) + ); + }, + default: () => { + return [ +
+ {this.actionDetail.showCaption ? this.caption : ''} +
, + , + ]; + }, + }} ); }, -- Gitee