mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
[Doc] update document site (#3620)
This commit is contained in:
parent
934923c949
commit
045c75669b
@ -6,16 +6,7 @@
|
||||
:title="title"
|
||||
:left-arrow="showNav"
|
||||
@click-left="onBack"
|
||||
>
|
||||
<a
|
||||
v-if="showNav"
|
||||
slot="right"
|
||||
:href="demoLink"
|
||||
target="_blank"
|
||||
>
|
||||
<van-icon name="edit" />
|
||||
</a>
|
||||
</van-nav-bar>
|
||||
/>
|
||||
<keep-alive>
|
||||
<router-view :weapp="weapp" />
|
||||
</keep-alive>
|
||||
@ -41,12 +32,6 @@ export default {
|
||||
return name ? name.replace(/-/g, '') : '';
|
||||
},
|
||||
|
||||
demoLink() {
|
||||
return `https://github.com/youzan/vant/blob/dev/packages/${
|
||||
this.$route.meta.path
|
||||
}/demo/index.vue`;
|
||||
},
|
||||
|
||||
showNav() {
|
||||
return getQueryString('hide_nav') !== '1';
|
||||
},
|
||||
|
@ -70,7 +70,7 @@
|
||||
"@babel/preset-env": "^7.4.5",
|
||||
"@babel/preset-typescript": "^7.3.3",
|
||||
"@types/jest": "^24.0.15",
|
||||
"@vant/doc": "^2.3.2",
|
||||
"@vant/doc": "^2.3.3",
|
||||
"@vant/eslint-config": "^1.1.2",
|
||||
"@vant/markdown-loader": "^2.0.0",
|
||||
"@vant/markdown-vetur": "^1.0.0",
|
||||
|
@ -1092,10 +1092,10 @@
|
||||
lodash.unescape "4.0.1"
|
||||
semver "5.5.0"
|
||||
|
||||
"@vant/doc@^2.3.2":
|
||||
version "2.3.2"
|
||||
resolved "https://registry.yarnpkg.com/@vant/doc/-/doc-2.3.2.tgz#20f38c3f47f13f0c4dcbc2fdfe7dddeb9943f4b1"
|
||||
integrity sha512-y4g7DzjyKBiEIghkyWNpCPDPND1nrQFb3tX+iMhi484ic7hlCCVnpVmXf74Cp+7FhSeNjCB/6vSDdJFGAXpw5A==
|
||||
"@vant/doc@^2.3.3":
|
||||
version "2.3.3"
|
||||
resolved "https://registry.yarnpkg.com/@vant/doc/-/doc-2.3.3.tgz#2e1f7c8cbfcffee6ad3890400df86ed93f578db7"
|
||||
integrity sha512-2g/dxdkgQxYg1VfpbxIzRAc00s5gb9YUJ3eoYDGMeCpZUVoB6EONPhDr3pOzdqKe/VWGAAZQDnzVaeX6Gab/fg==
|
||||
dependencies:
|
||||
cheerio "0.22.0"
|
||||
commander "^2.17.1"
|
||||
|
Loading…
x
Reference in New Issue
Block a user