[Doc] optimzie router & remove unused code (#640)

This commit is contained in:
neverland
2018-02-12 17:23:37 +08:00
committed by GitHub
parent e1123c4116
commit 3991ec3bc9
28 changed files with 154 additions and 230 deletions

View File

@@ -11,7 +11,7 @@
<h2 class="zanui-desc">{{ description }}</h2>
<div class="mobile-navs">
<div class="mobile-nav-item" v-for="(item, index) in navList" v-if="item.showInMobile" :key="index">
<mobile-nav v-for="(group, index) in item.groups" :group="group" :base="base" :nav-key="index" :key="index" />
<mobile-nav v-for="(group, index) in item.groups" :group="group" :base="$vantLang" :nav-key="index" :key="index" />
</div>
</div>
</div>
@@ -34,10 +34,6 @@ export default {
},
computed: {
base() {
return `${this.$vantLang}/component`;
},
navList() {
return this.docConfig[this.$vantLang].nav || [];
},
@@ -64,8 +60,6 @@ export default {
width: 100%;
box-sizing: border-box;
padding: 60px 15px 20px;
position: relative;
z-index: 1;
.zanui-title,
.zanui-desc {