Files
ClassContent/历届学生/苏琪/项目练习/jiakao/src/App.vue
2024-09-27 02:06:13 +08:00

45 lines
838 B
Vue
Executable File

<template lang="pug">
#app
v-navbar(v-if="isShowNavbar" :title="NavBarTitle")
div(:class=" isHaveContent ? 'content': 'welcome' ")
router-view
v-tabbar(v-if="isShowTabbar" @getTitle="SetTitle")
</template>
<script>
import NavBar from "./components/tpl/NavBar"
import TabBar from "./components/tpl/Tabbar"
export default {
data() {
return {
isHaveContent: true,
isShowNavbar: true,
isShowTabbar: true,
NavBarTitle: '驾考神器'
}
},
methods: {
SetTitle (tit) {
this.NavBarTitle = tit
}
},
components: {
'v-navbar' : NavBar,
'v-tabbar' : TabBar
}
}
</script>
<style>
@import "./assets/less/lib/normalize.less";
.content {
margin-top: 46px;
overflow: scroll;
padding-bottom: 50px;
}
.van-radio__label--disabled {
color: #4c4c4c;
}
</style>