mirror of
https://gitee.com/openharmony/arkui_ace_engine
synced 2024-11-23 07:01:24 +00:00
ComposeListItem组件右侧元素button大小设置
Signed-off-by: zhangzuhui <zhangzuhui1@h-partners.com>
This commit is contained in:
parent
71c6ef8639
commit
82bd7551b6
@ -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