diff --git a/CHANGELOG.md b/CHANGELOG.md index cd12823aee2ca500ff398ccb0bd89964da1dd4ac..9dffd127b5373bc561e9404e185658d0f94f42bf 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 df50d93c00f43f39441fba01448d24476b9760c4..eb6985066ab67c9b4af6a0fe18088cc018e7e4c4 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} + + ) : ( + '' + )}