|
@@ -70,15 +70,18 @@ export struct SafeView {
|
|
|
Row() {
|
|
|
Image($r("app.media.base_back"))
|
|
|
.height(15)
|
|
|
- .objectFit(ImageFit.Contain)
|
|
|
- .onClick(() => {
|
|
|
- if (this.onBackEvent && !this.hideBack) {
|
|
|
- this.onBackEvent()
|
|
|
- } else if (this.pageInfos) {
|
|
|
- this.pageInfos.pop()
|
|
|
- }
|
|
|
- }).visibility(!this.hideBack ? Visibility.Visible : Visibility.None)
|
|
|
+ .objectFit(ImageFit.Contain).visibility(!this.hideBack ? Visibility.Visible : Visibility.None)
|
|
|
}.width(110)
|
|
|
+ .onClick(() => {
|
|
|
+ if (this.hideBack) {
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (this.onBackEvent && !this.hideBack) {
|
|
|
+ this.onBackEvent()
|
|
|
+ } else if (this.pageInfos) {
|
|
|
+ this.pageInfos.pop()
|
|
|
+ }
|
|
|
+ })
|
|
|
|
|
|
Text(this.titleText ?? '')
|
|
|
.maxLines(1)
|