导航栏返回
This commit is contained in:
@@ -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()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user