From ae413a942c7bdf3443eb8ca859f121e1665d22c1 Mon Sep 17 00:00:00 2001 From: fzh <1399952343@qq.com> Date: Tue, 2 Jan 2024 12:00:33 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BF=AE=E5=A4=8D=E9=9D=A2=E6=9D=BF?= =?UTF-8?q?=E6=8C=89=E9=92=AE=E5=9C=A8=E4=B8=8D=E5=B1=95=E7=A4=BA=E6=B2=A1?= =?UTF-8?q?=E6=9C=89=E6=A0=87=E9=A2=98=E6=97=B6=E8=BF=98=E6=9C=89=E6=A0=87?= =?UTF-8?q?=E9=A2=98=E7=9A=84=E5=B7=A6=E4=BE=A7=E9=97=B4=E8=B7=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 1 + src/panel-component/panel-button/panel-button.tsx | 10 +++++++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cd12823a..9dffd127 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ - 修复数据选择下拉 选择数据后值项抛出异常 - 修复时间选择器在表单项重置后,未清空值 - 修复picker选择器相关跳转按钮在选择器无值的情况下展示 +- 修复面板按钮在不展示没有标题时还有标题的左侧间距 ## [0.5.0-beta.2] - 2023-12-27 diff --git a/src/panel-component/panel-button/panel-button.tsx b/src/panel-component/panel-button/panel-button.tsx index df50d93c..eb698506 100644 --- a/src/panel-component/panel-button/panel-button.tsx +++ b/src/panel-component/panel-button/panel-button.tsx @@ -110,9 +110,13 @@ export const PanelButton = defineComponent({ class={this.ns.bm('content', 'icon')} icon={this.sysImage} /> - - {this.showCaption ? this.captionText : null} - + {this.showCaption ? ( + + {this.captionText} + + ) : ( + '' + )} -- Gitee