[Doc] adjust component nav (#1579)

This commit is contained in:
neverland 2018-08-02 18:00:55 +08:00 committed by GitHub
parent 28699034d5
commit 8fb4a8ea9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 102 additions and 113 deletions

24
.eslintrc Normal file
View File

@ -0,0 +1,24 @@
{
"root": true,
"env": {
"jest": true
},
"extends": ["plugin:vue-libs/recommended", "plugin:vue/strongly-recommended"],
"rules": {
"semi": ["error", "always"],
"space-before-function-paren": ["error", "never"],
"vue/require-v-for-key": 0,
"vue/require-default-prop": 0,
"vue/name-property-casing": 0,
"vue/max-attributes-per-line": [
2,
{
"singleline": 5,
"multiline": {
"max": 5,
"allowFirstLine": false
}
}
]
}
}

View File

@ -1,24 +0,0 @@
module.exports = {
root: true,
env: {
jest: true
},
extends: ['plugin:vue-libs/recommended', 'plugin:vue/strongly-recommended'],
rules: {
semi: ['error', 'always'],
'space-before-function-paren': ['error', 'never'],
'vue/require-v-for-key': 0,
'vue/require-default-prop': 0,
'vue/name-property-casing': 0,
'vue/max-attributes-per-line': [
2,
{
singleline: 5,
multiline: {
max: 5,
allowFirstLine: false
}
}
]
}
};

View File

@ -74,103 +74,91 @@ module.exports = {
list: [
{
path: '/col',
title: 'Layout - 布局'
title: 'Layout 布局'
},
{
path: '/badge',
title: 'Badge - 徽章'
title: 'Badge 徽章'
},
{
path: '/button',
title: 'Button - 按钮'
title: 'Button 按钮'
},
{
path: '/cell',
title: 'Cell - 单元格'
title: 'Cell 单元格'
},
{
path: '/circle',
title: 'Circle - 环形进度条'
title: 'Circle 环形进度条'
},
{
path: '/collapse',
title: 'Collapse - 折叠面板'
title: 'Collapse 折叠面板'
},
{
path: '/icon',
title: 'Icon - 图标'
title: 'Icon 图标'
},
{
path: '/lazyload',
title: 'Lazyload - 图片懒加载'
title: 'Lazyload 图片懒加载'
},
{
path: '/list',
title: 'List - 列表'
title: 'List 列表'
},
{
path: '/loading',
title: 'Loading - 加载'
title: 'Loading 加载'
},
{
path: '/nav-bar',
title: 'NavBar - 导航栏'
title: 'NavBar 导航栏'
},
{
path: '/notice-bar',
title: 'NoticeBar - 通告栏'
title: 'NoticeBar 通告栏'
},
{
path: '/pagination',
title: 'Pagination - 分页'
title: 'Pagination 分页'
},
{
path: '/panel',
title: 'Panel - 面板'
title: 'Panel 面板'
},
{
path: '/popup',
title: 'Popup - 弹出层'
title: 'Popup 弹出层'
},
{
path: '/progress',
title: 'Progress - 进度条'
},
{
path: '/rate',
title: 'Rate - 评分'
},
{
path: '/slider',
title: 'Slider - 滑块'
},
{
path: '/stepper',
title: 'Stepper - 步进器'
title: 'Progress 进度条'
},
{
path: '/steps',
title: 'Steps - 步骤条'
title: 'Steps 步骤条'
},
{
path: '/swipe',
title: 'Swipe - 轮播'
title: 'Swipe 轮播'
},
{
path: '/tab',
title: 'Tab - 标签页'
title: 'Tab 标签页'
},
{
path: '/tabbar',
title: 'Tabbar - 标签栏'
title: 'Tabbar 标签栏'
},
{
path: '/tag',
title: 'Tag - 标记'
title: 'Tag 标记'
},
{
path: '/waterfall',
title: 'Waterfall - 瀑布流'
title: 'Waterfall 瀑布流'
}
]
},
@ -179,35 +167,47 @@ module.exports = {
list: [
{
path: '/checkbox',
title: 'Checkbox - 复选框'
title: 'Checkbox 复选框'
},
{
path: '/field',
title: 'Field - 输入框'
title: 'Field 输入框'
},
{
path: '/number-keyboard',
title: 'NumberKeyboard - 数字键盘'
title: 'NumberKeyboard 数字键盘'
},
{
path: '/password-input',
title: 'PasswordInput - 密码输入框'
title: 'PasswordInput 密码输入框'
},
{
path: '/radio',
title: 'Radio - 单选框'
title: 'Radio 单选框'
},
{
path: '/rate',
title: 'Rate 评分'
},
{
path: '/search',
title: 'Search - 搜索'
title: 'Search 搜索'
},
{
path: '/slider',
title: 'Slider 滑块'
},
{
path: '/stepper',
title: 'Stepper 步进器'
},
{
path: '/switch',
title: 'Switch - 开关'
title: 'Switch 开关'
},
{
path: '/uploader',
title: 'Uploader - 图片上传'
title: 'Uploader 图片上传'
}
]
},
@ -216,27 +216,27 @@ module.exports = {
list: [
{
path: '/actionsheet',
title: 'Actionsheet - 上拉菜单'
title: 'Actionsheet 上拉菜单'
},
{
path: '/datetime-picker',
title: 'DatetimePicker - 时间选择'
title: 'DatetimePicker 时间选择'
},
{
path: '/dialog',
title: 'Dialog - 弹出框'
title: 'Dialog 弹出框'
},
{
path: '/picker',
title: 'Picker - 选择器'
title: 'Picker 选择器'
},
{
path: '/pull-refresh',
title: 'PullRefresh - 下拉刷新'
title: 'PullRefresh 下拉刷新'
},
{
path: '/toast',
title: 'Toast - 轻提示'
title: 'Toast 轻提示'
}
]
},
@ -245,19 +245,19 @@ module.exports = {
list: [
{
path: '/cell-swipe',
title: 'CellSwipe - 滑动单元格'
title: 'CellSwipe 滑动单元格'
},
{
path: '/image-preview',
title: 'ImagePreview - 图片预览'
title: 'ImagePreview 图片预览'
},
{
path: '/switch-cell',
title: 'SwitchCell - 开关单元格'
title: 'SwitchCell 开关单元格'
},
{
path: '/tree-select',
title: 'TreeSelect - 分类选择'
title: 'TreeSelect 分类选择'
}
]
},
@ -266,39 +266,39 @@ module.exports = {
list: [
{
path: '/address-edit',
title: 'AddressEdit - 地址编辑'
title: 'AddressEdit 地址编辑'
},
{
path: '/address-list',
title: 'AddressList - 地址列表'
title: 'AddressList 地址列表'
},
{
path: '/area',
title: 'Area - 省市区选择'
title: 'Area 省市区选择'
},
{
path: '/card',
title: 'Card - 卡片'
title: 'Card 卡片'
},
{
path: '/contact-card',
title: 'Contact - 联系人'
title: 'Contact 联系人'
},
{
path: '/coupon-list',
title: 'Coupon - 优惠券'
title: 'Coupon 优惠券'
},
{
path: '/goods-action',
title: 'GoodsAction - 商品页行动点'
title: 'GoodsAction 商品页行动点'
},
{
path: '/submit-bar',
title: 'SubmitBar - 提交订单栏'
title: 'SubmitBar 提交订单栏'
},
{
path: '/sku',
title: 'Sku - 商品规格弹层'
title: 'Sku 商品规格弹层'
}
]
}
@ -432,18 +432,6 @@ module.exports = {
path: '/progress',
title: 'Progress'
},
{
path: '/rate',
title: 'Rate'
},
{
path: '/slider',
title: 'Slider'
},
{
path: '/stepper',
title: 'Stepper'
},
{
path: '/steps',
title: 'Steps'
@ -493,10 +481,22 @@ module.exports = {
path: '/radio',
title: 'Radio'
},
{
path: '/rate',
title: 'Rate'
},
{
path: '/search',
title: 'Search'
},
{
path: '/slider',
title: 'Slider'
},
{
path: '/stepper',
title: 'Stepper'
},
{
path: '/switch',
title: 'Switch'

View File

@ -102,7 +102,7 @@
"stylelint-config-standard": "^18.2.0",
"uppercamelcase": "^3.0.0",
"url-loader": "^1.0.1",
"vant-doc": "1.0.7",
"vant-doc": "1.0.8",
"vue": "2.5.16",
"vue-jest": "^2.6.0",
"vue-loader": "^15.2.4",

View File

@ -6048,11 +6048,7 @@ markdown-escapes@^1.0.0:
version "1.0.2"
resolved "https://registry.yarnpkg.com/markdown-escapes/-/markdown-escapes-1.0.2.tgz#e639cbde7b99c841c0bacc8a07982873b46d2122"
markdown-it-container@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/markdown-it-container/-/markdown-it-container-2.0.0.tgz#0019b43fd02eefece2f1960a2895fba81a404695"
markdown-it@^8.3.2, markdown-it@^8.4.0:
markdown-it@^8.4.0:
version "8.4.1"
resolved "https://registry.yarnpkg.com/markdown-it/-/markdown-it-8.4.1.tgz#206fe59b0e4e1b78a7c73250af9b34a4ad0aaf44"
dependencies:
@ -6579,10 +6575,6 @@ node-version@^1.1.3:
version "1.2.0"
resolved "https://registry.yarnpkg.com/node-version/-/node-version-1.2.0.tgz#34fde3ffa8e1149bd323983479dda620e1b5060d"
node-watch@^0.5.5:
version "0.5.8"
resolved "https://registry.yarnpkg.com/node-watch/-/node-watch-0.5.8.tgz#208d10f93afe2f24b3701c254f54c7552f90c905"
"nopt@2 || 3", nopt@~3.0.1:
version "3.0.6"
resolved "https://registry.yarnpkg.com/nopt/-/nopt-3.0.6.tgz#c6465dbf08abcd4db359317f79ac68a646b28ff9"
@ -9494,16 +9486,13 @@ validate-npm-package-license@^3.0.1:
spdx-correct "^3.0.0"
spdx-expression-parse "^3.0.0"
vant-doc@1.0.7:
version "1.0.7"
resolved "https://registry.yarnpkg.com/vant-doc/-/vant-doc-1.0.7.tgz#31023f6533e246e9dc388004df03b870591f0687"
vant-doc@1.0.8:
version "1.0.8"
resolved "https://registry.yarnpkg.com/vant-doc/-/vant-doc-1.0.8.tgz#5cf253733ad93f26e501034f45b945b6c9bdd2bd"
dependencies:
cheerio "0.22.0"
decamelize "^1.2.0"
fs-extra "^4.0.2"
markdown-it "^8.3.2"
markdown-it-container "^2.0.0"
node-watch "^0.5.5"
nprogress "^0.2.0"
varstream@^0.3.2: