导航栏返回

This commit is contained in:
魏啾
2024-08-03 17:20:39 +08:00
parent 7b7b8ddac3
commit 2a3f125bce
2 changed files with 27 additions and 7 deletions

View File

@@ -58,22 +58,26 @@
type: Boolean,
default: false
},
titleshow: {//标题是否显示
titleshow: { //标题是否显示
type: Boolean,
default: false
},
heightshow: {//是否要占位高度
heightshow: { //是否要占位高度
type: Boolean,
default: false
},
iconshow: {//返回键是否显示
iconshow: { //返回键是否显示
type: Boolean,
default: true
},
iconcolor:{//返回键颜色
iconcolor: { //返回键颜色
type: String,
default: '#000'
},
navigateBacknavtitle: {
type: Boolean,
default: false
}
},
computed: {
HeighT() { //手机类型的尺寸
@@ -95,7 +99,11 @@
})
},
clicknavigateBack() {
uni.navigateBack()
if (this.navigateBacknavtitle) {
this.$emit('navigateBacknav')
} else {
uni.navigateBack()
}
}
}