mirror of
https://gitee.com/openharmony/arkui_ace_engine
synced 2024-11-27 01:03:08 +00:00
!48813 ComposeListItem组件右侧元素button大小设置
Merge pull request !48813 from zhangzuhui/master
This commit is contained in:
commit
439d6457e2
@ -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) {
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user