|
@@ -27,6 +27,8 @@ export struct SafeView {
|
|
@Prop opacitys: number | Resource
|
|
@Prop opacitys: number | Resource
|
|
// 是否显示返回按钮
|
|
// 是否显示返回按钮
|
|
@Prop hideBack: boolean
|
|
@Prop hideBack: boolean
|
|
|
|
+ // 是否显示浅色返回按钮
|
|
|
|
+ @Prop lightBack: boolean
|
|
// 是否显示返回按钮
|
|
// 是否显示返回按钮
|
|
@Prop hideNavBar: boolean
|
|
@Prop hideNavBar: boolean
|
|
/**
|
|
/**
|
|
@@ -73,7 +75,7 @@ export struct SafeView {
|
|
Row() {
|
|
Row() {
|
|
|
|
|
|
Row() {
|
|
Row() {
|
|
- Image($r("app.media.base_back"))
|
|
|
|
|
|
+ Image(this.lightBack ? $r("app.media.base_back_light") : $r("app.media.base_back"))
|
|
.height(15)
|
|
.height(15)
|
|
.objectFit(ImageFit.Contain).visibility(!this.hideBack ? Visibility.Visible : Visibility.None)
|
|
.objectFit(ImageFit.Contain).visibility(!this.hideBack ? Visibility.Visible : Visibility.None)
|
|
}.width(110).height(44).alignItems(VerticalAlign.Center)
|
|
}.width(110).height(44).alignItems(VerticalAlign.Center)
|