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-21 03:40:30 +00:00 committed by Gitee
parent dce0cc4b63
commit df7ac9d179
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

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