ComposeListItem组件右侧元素button大小设置

Signed-off-by: zhangzuhui <zhangzuhui1@h-partners.com>
This commit is contained in:
zhangzuhui 2024-11-18 19:44:01 +08:00
parent 71c6ef8639
commit 82bd7551b6
2 changed files with 4 additions and 4 deletions

View File

@ -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) {

View File

@ -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) {