[Doc] add version tip (#1219)

This commit is contained in:
neverland 2018-06-03 17:37:23 +08:00 committed by GitHub
parent 1a43eb7951
commit 4eb328ae08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 4 deletions

View File

@ -1,10 +1,13 @@
/* eslint-disable */
const version = require('../../package.json').version;
module.exports = {
'zh-CN': {
header: {
logo: {
image: 'https://img.yzcdn.cn/public_files/2017/12/18/fd78cf6bb5d12e2a119d0576bedfd230.png',
title: 'Vant',
version,
href: '#/'
},
nav: {
@ -300,6 +303,7 @@ module.exports = {
logo: {
image: 'https://img.yzcdn.cn/public_files/2017/12/18/fd78cf6bb5d12e2a119d0576bedfd230.png',
title: 'Vant',
version,
href: '#/'
},
nav: {

View File

@ -91,7 +91,7 @@
"style-loader": "^0.21.0",
"uppercamelcase": "^3.0.0",
"url-loader": "^1.0.1",
"vant-doc": "1.0.6",
"vant-doc": "1.0.7",
"vue": "2.5.16",
"vue-jest": "^2.6.0",
"vue-loader": "^15.2.4",

View File

@ -8059,9 +8059,9 @@ validate-npm-package-license@^3.0.1:
spdx-correct "^3.0.0"
spdx-expression-parse "^3.0.0"
vant-doc@1.0.6:
version "1.0.6"
resolved "https://registry.yarnpkg.com/vant-doc/-/vant-doc-1.0.6.tgz#419f21d2384dcbf41fea1c2dfdd1fd4d453931ba"
vant-doc@1.0.7:
version "1.0.7"
resolved "https://registry.yarnpkg.com/vant-doc/-/vant-doc-1.0.7.tgz#31023f6533e246e9dc388004df03b870591f0687"
dependencies:
cheerio "0.22.0"
decamelize "^1.2.0"