SafeView.ets
这个提交包含在:
父节点
919151b0fa
当前提交
72a5497762
@ -11,7 +11,7 @@ export interface TitleBarBtn {
|
||||
@Preview
|
||||
@Component
|
||||
export struct SafeView {
|
||||
@Consume('pageInfos') pageInfos?: NavPathStack
|
||||
pageInfos?: NavPathStack
|
||||
@Prop isLoading: boolean
|
||||
// 是不是沉浸式
|
||||
@Prop isImmersive: boolean
|
||||
@ -212,10 +212,13 @@ export struct SafeView {
|
||||
.onBackPressed(() => {
|
||||
if (this.onBackEvent) {
|
||||
this.onBackEvent()
|
||||
return true
|
||||
} else if (this.pageInfos) {
|
||||
this.pageInfos.pop()
|
||||
}
|
||||
return true
|
||||
} else {
|
||||
return false
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
正在加载...
在新工单中引用
屏蔽一个用户