update common/src/main/ets/default/view/actionbar/ToolBar.ets.

Signed-off-by: liujuan <liujuan76@h-partners.com>
This commit is contained in:
liujuan 2023-07-24 02:40:13 +00:00 committed by Gitee
parent df7ac9d179
commit eba2aa61d6
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -39,8 +39,7 @@ export struct ToolBar {
@State actionBarProp: ActionBarProp = new ActionBarProp();
@Consume @Watch("isNeedHidePopup") hidePopup: boolean;
private isFromPhotoBrowser = false;
private isFromCamera: boolean;
private isFromFACard: boolean;
private isFromTrash: boolean;
aboutToAppear(): void {
this.actionBarProp = this.createActionBar();
@ -167,7 +166,7 @@ export struct ToolBar {
right: $r('app.float.actionbar_margin_horizontal') })
}
.margin({
bottom: this.isFromCamera || this.isFromFACard ? this.leftBlank[3] : Constants.NUMBER_0
bottom: this.isFromTrash ? this.leftBlank[3] : Constants.NUMBER_0
})
.width(Constants.PERCENT_100)
.backgroundColor(this.isFromPhotoBrowser ? $r('app.color.transparent') : this.actionBarProp.getBackgroundColor())