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

Merge pull request !48813 from zhangzuhui/master
This commit is contained in:
openharmony_ci 2024-11-19 03:03:10 +00:00 committed by Gitee
commit 439d6457e2
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
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) {