43 lines
818 B
Vue
43 lines
818 B
Vue
<template>
|
|
<div id="app">
|
|
|
|
<router-view />
|
|
<TabbarComponents v-if="showTabbar"></TabbarComponents>
|
|
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import TabbarComponents from "@/components/Tabbar"
|
|
export default {
|
|
// 注意: 不要大量使用,会导致数据传递混乱
|
|
provide () {
|
|
return {
|
|
close: this.CloseTabbar,
|
|
open: this.OpenTabbar
|
|
}
|
|
},
|
|
data() {
|
|
return {
|
|
showTabbar: true
|
|
}
|
|
},
|
|
methods: {
|
|
CloseTabbar() {
|
|
this.showTabbar = false
|
|
},
|
|
OpenTabbar() {
|
|
this.showTabbar = true
|
|
}
|
|
},
|
|
components: {
|
|
TabbarComponents
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="stylus">
|
|
.car .van-checkbox__label
|
|
width 100%
|
|
</style>
|