From 82bd7551b6daa4941ab8bd8e83026864e8ee0afe Mon Sep 17 00:00:00 2001 From: zhangzuhui Date: Mon, 18 Nov 2024 19:44:01 +0800 Subject: [PATCH] =?UTF-8?q?ComposeListItem=E7=BB=84=E4=BB=B6=E5=8F=B3?= =?UTF-8?q?=E4=BE=A7=E5=85=83=E7=B4=A0button=E5=A4=A7=E5=B0=8F=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhangzuhui --- .../composelistitem/interfaces/composelistitem.js | 4 ++-- .../composelistitem/source/composelistitem.ets | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/advanced_ui_component/composelistitem/interfaces/composelistitem.js b/advanced_ui_component/composelistitem/interfaces/composelistitem.js index 2f0e5ba4a6b..972937707ee 100644 --- a/advanced_ui_component/composelistitem/interfaces/composelistitem.js +++ b/advanced_ui_component/composelistitem/interfaces/composelistitem.js @@ -1535,7 +1535,7 @@ export class ComposeListItem extends ViewPU { catch (d) { let e = d.code; let f = d.message; - hilog.error(0x3900, 'Ace', `GridObjectSortComponent Faild to get environment param error: ${e}, ${f}`); + hilog.error(0x3900, 'Ace', `ComposeListItem Faild to get environment param error: ${e}, ${f}`); } } aboutToDisappear() { @@ -1548,7 +1548,7 @@ export class ComposeListItem extends ViewPU { } } calculatedRightWidth() { - if (this.operateItem?.text) { + if (this.operateItem?.text || this.operateItem?.button) { return RIGHT_PART_WIDTH; } if (this.operateItem?.switch) { diff --git a/advanced_ui_component/composelistitem/source/composelistitem.ets b/advanced_ui_component/composelistitem/source/composelistitem.ets index cd9ffa06491..52e25999dce 100644 --- a/advanced_ui_component/composelistitem/source/composelistitem.ets +++ b/advanced_ui_component/composelistitem/source/composelistitem.ets @@ -750,7 +750,7 @@ export struct ComposeListItem { let code = (paramError as BusinessError).code; let message = (paramError as BusinessError).message; hilog.error(0x3900, 'Ace', - `GridObjectSortComponent Faild to get environment param error: ${code}, ${message}`); + `ComposeListItem Faild to get environment param error: ${code}, ${message}`); } } @@ -772,7 +772,7 @@ export struct ComposeListItem { } calculatedRightWidth(): string { - if (this.operateItem?.text) { + if (this.operateItem?.text || this.operateItem?.button) { return RIGHT_PART_WIDTH; } if (this.operateItem?.switch) {