Chore: update docs for Tree and Menu (#9751)

This commit is contained in:
杨奕
2018-02-09 12:14:35 +08:00
committed by GitHub
parent 202f6417b1
commit 438b29a48f
5 changed files with 33 additions and 13 deletions

View File

@@ -125,7 +125,7 @@
<li class="nav-item sponsors">
<a>Sponsors</a>
<ul class="pure-menu-list sub-nav">
<li class="nav-item">
<li class="nav-item" v-show="lang !== 'zh-CN'">
<a href="https://tipe.io/?ref=element" target="_blank">
<img src="~examples/assets/images/tipe.svg" alt="tipe.io">
</a>
@@ -217,8 +217,11 @@
style.opacity = this.isFade ? '0.5' : '1';
return style;
},
lang() {
return this.$route.meta.lang;
},
langConfig() {
return compoLang.filter(config => config.lang === this.$route.meta.lang)[0]['nav'];
return compoLang.filter(config => config.lang === this.lang)[0]['nav'];
}
},
methods: {