chore: add trailingComma

This commit is contained in:
陈嘉涵
2020-01-19 11:57:09 +08:00
parent e841175fe8
commit 389d68884d
269 changed files with 2706 additions and 2702 deletions

View File

@@ -3,17 +3,17 @@ module.exports = {
build: {
skipInstall: ['lazyload'],
site: {
publicPath: 'https://b.yzcdn.cn/vant/'
publicPath: 'https://b.yzcdn.cn/vant/',
},
vetur: {
tagPrefix: 'van-'
}
tagPrefix: 'van-',
},
},
site: {
defaultLang: 'en-US',
versions: [{ label: '1.x', link: 'https://youzan.github.io/vant/1.x/' }],
baiduAnalytics: {
seed: 'ad6b5732c36321f2dafed737ac2da92f'
seed: 'ad6b5732c36321f2dafed737ac2da92f',
},
locales: {
'zh-CN': {
@@ -24,17 +24,17 @@ module.exports = {
links: [
{
logo: 'https://b.yzcdn.cn/vant/logo/weapp.svg',
url: '/vant-weapp'
url: '/vant-weapp',
},
{
logo: 'https://b.yzcdn.cn/vant/logo/github.svg',
url: 'https://github.com/youzan/vant'
}
url: 'https://github.com/youzan/vant',
},
],
searchConfig: {
apiKey: '90067aecdaa2c85220e2783cd305caac',
indexName: 'vant',
placeholder: '搜索文档...'
placeholder: '搜索文档...',
},
nav: [
{
@@ -42,326 +42,326 @@ module.exports = {
items: [
{
path: 'home',
title: '介绍'
title: '介绍',
},
{
path: 'quickstart',
title: '快速上手'
title: '快速上手',
},
{
path: 'changelog',
title: '更新日志'
title: '更新日志',
},
{
path: 'theme',
title: '定制主题'
title: '定制主题',
},
{
path: 'contribution',
title: '开发指南'
title: '开发指南',
},
{
path: 'design',
title: '设计资源'
title: '设计资源',
},
{
path: 'style-guide',
title: '风格指南'
title: '风格指南',
},
{
path: 'locale',
title: '国际化'
}
]
title: '国际化',
},
],
},
{
title: '基础组件',
items: [
{
path: 'button',
title: 'Button 按钮'
title: 'Button 按钮',
},
{
path: 'cell',
title: 'Cell 单元格'
title: 'Cell 单元格',
},
{
path: 'icon',
title: 'Icon 图标'
title: 'Icon 图标',
},
{
path: 'image',
title: 'Image 图片'
title: 'Image 图片',
},
{
path: 'col',
title: 'Layout 布局'
title: 'Layout 布局',
},
{
path: 'popup',
title: 'Popup 弹出层'
title: 'Popup 弹出层',
},
{
path: 'style',
title: 'Style 内置样式'
}
]
title: 'Style 内置样式',
},
],
},
{
title: '表单组件',
items: [
{
path: 'calendar',
title: 'Calendar 日历'
title: 'Calendar 日历',
},
{
path: 'checkbox',
title: 'Checkbox 复选框'
title: 'Checkbox 复选框',
},
{
path: 'datetime-picker',
title: 'DatetimePicker 时间选择'
title: 'DatetimePicker 时间选择',
},
{
path: 'field',
title: 'Field 输入框'
title: 'Field 输入框',
},
{
path: 'number-keyboard',
title: 'NumberKeyboard 数字键盘'
title: 'NumberKeyboard 数字键盘',
},
{
path: 'password-input',
title: 'PasswordInput 密码输入框'
title: 'PasswordInput 密码输入框',
},
{
path: 'picker',
title: 'Picker 选择器'
title: 'Picker 选择器',
},
{
path: 'radio',
title: 'Radio 单选框'
title: 'Radio 单选框',
},
{
path: 'rate',
title: 'Rate 评分'
title: 'Rate 评分',
},
{
path: 'search',
title: 'Search 搜索'
title: 'Search 搜索',
},
{
path: 'slider',
title: 'Slider 滑块'
title: 'Slider 滑块',
},
{
path: 'stepper',
title: 'Stepper 步进器'
title: 'Stepper 步进器',
},
{
path: 'switch',
title: 'Switch 开关'
title: 'Switch 开关',
},
{
path: 'uploader',
title: 'Uploader 文件上传'
}
]
title: 'Uploader 文件上传',
},
],
},
{
title: '反馈组件',
items: [
{
path: 'action-sheet',
title: 'ActionSheet 上拉菜单'
title: 'ActionSheet 上拉菜单',
},
{
path: 'dialog',
title: 'Dialog 弹出框'
title: 'Dialog 弹出框',
},
{
path: 'dropdown-menu',
title: 'DropdownMenu 下拉菜单'
title: 'DropdownMenu 下拉菜单',
},
{
path: 'loading',
title: 'Loading 加载'
title: 'Loading 加载',
},
{
path: 'notify',
title: 'Notify 消息通知'
title: 'Notify 消息通知',
},
{
path: 'overlay',
title: 'Overlay 遮罩层'
title: 'Overlay 遮罩层',
},
{
path: 'pull-refresh',
title: 'PullRefresh 下拉刷新'
title: 'PullRefresh 下拉刷新',
},
{
path: 'swipe-cell',
title: 'SwipeCell 滑动单元格'
title: 'SwipeCell 滑动单元格',
},
{
path: 'toast',
title: 'Toast 轻提示'
}
]
title: 'Toast 轻提示',
},
],
},
{
title: '展示组件',
items: [
{
path: 'circle',
title: 'Circle 环形进度条'
title: 'Circle 环形进度条',
},
{
path: 'collapse',
title: 'Collapse 折叠面板'
title: 'Collapse 折叠面板',
},
{
path: 'count-down',
title: 'CountDown 倒计时'
title: 'CountDown 倒计时',
},
{
path: 'divider',
title: 'Divider 分割线'
title: 'Divider 分割线',
},
{
path: 'image-preview',
title: 'ImagePreview 图片预览'
title: 'ImagePreview 图片预览',
},
{
path: 'lazyload',
title: 'Lazyload 图片懒加载'
title: 'Lazyload 图片懒加载',
},
{
path: 'list',
title: 'List 列表'
title: 'List 列表',
},
{
path: 'notice-bar',
title: 'NoticeBar 通知栏'
title: 'NoticeBar 通知栏',
},
{
path: 'panel',
title: 'Panel 面板'
title: 'Panel 面板',
},
{
path: 'progress',
title: 'Progress 进度条'
title: 'Progress 进度条',
},
{
path: 'skeleton',
title: 'Skeleton 骨架屏'
title: 'Skeleton 骨架屏',
},
{
path: 'steps',
title: 'Steps 步骤条'
title: 'Steps 步骤条',
},
{
path: 'sticky',
title: 'Sticky 粘性布局'
title: 'Sticky 粘性布局',
},
{
path: 'swipe',
title: 'Swipe 轮播'
title: 'Swipe 轮播',
},
{
path: 'tag',
title: 'Tag 标记'
}
]
title: 'Tag 标记',
},
],
},
{
title: '导航组件',
items: [
{
path: 'grid',
title: 'Grid 宫格'
title: 'Grid 宫格',
},
{
path: 'index-bar',
title: 'IndexBar 索引栏'
title: 'IndexBar 索引栏',
},
{
path: 'nav-bar',
title: 'NavBar 导航栏'
title: 'NavBar 导航栏',
},
{
path: 'pagination',
title: 'Pagination 分页'
title: 'Pagination 分页',
},
{
path: 'sidebar',
title: 'Sidebar 侧边导航'
title: 'Sidebar 侧边导航',
},
{
path: 'tab',
title: 'Tab 标签页'
title: 'Tab 标签页',
},
{
path: 'tabbar',
title: 'Tabbar 标签栏'
title: 'Tabbar 标签栏',
},
{
path: 'tree-select',
title: 'TreeSelect 分类选择'
}
]
title: 'TreeSelect 分类选择',
},
],
},
{
title: '业务组件',
items: [
{
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 商品规格',
},
],
},
{
title: '废弃',
items: [
{
path: 'switch-cell',
title: 'SwitchCell 开关单元格'
}
]
}
]
title: 'SwitchCell 开关单元格',
},
],
},
],
},
'en-US': {
title: 'Vant',
@@ -371,17 +371,17 @@ module.exports = {
links: [
{
logo: 'https://b.yzcdn.cn/vant/logo/weapp.svg',
url: '/vant-weapp'
url: '/vant-weapp',
},
{
logo: 'https://b.yzcdn.cn/vant/logo/github.svg',
url: 'https://github.com/youzan/vant'
}
url: 'https://github.com/youzan/vant',
},
],
searchConfig: {
apiKey: '90067aecdaa2c85220e2783cd305caac',
indexName: 'vant',
placeholder: 'Search...'
placeholder: 'Search...',
},
nav: [
{
@@ -389,319 +389,319 @@ module.exports = {
items: [
{
path: 'home',
title: 'Introduction'
title: 'Introduction',
},
{
path: 'quickstart',
title: 'Quickstart'
title: 'Quickstart',
},
{
path: 'changelog',
title: 'Changelog'
title: 'Changelog',
},
{
path: 'theme',
title: 'Custom Theme'
title: 'Custom Theme',
},
{
path: 'locale',
title: 'Internationalization'
}
]
title: 'Internationalization',
},
],
},
{
title: 'Basic Components',
items: [
{
path: 'button',
title: 'Button'
title: 'Button',
},
{
path: 'cell',
title: 'Cell'
title: 'Cell',
},
{
path: 'icon',
title: 'Icon'
title: 'Icon',
},
{
path: 'image',
title: 'Image'
title: 'Image',
},
{
path: 'col',
title: 'Layout'
title: 'Layout',
},
{
path: 'popup',
title: 'Popup'
title: 'Popup',
},
{
path: 'style',
title: 'Built-in style'
}
]
title: 'Built-in style',
},
],
},
{
title: 'Form Components',
items: [
{
path: 'calendar',
title: 'Calendar'
title: 'Calendar',
},
{
path: 'checkbox',
title: 'Checkbox'
title: 'Checkbox',
},
{
path: 'datetime-picker',
title: 'DatetimePicker'
title: 'DatetimePicker',
},
{
path: 'field',
title: 'Field'
title: 'Field',
},
{
path: 'number-keyboard',
title: 'NumberKeyboard'
title: 'NumberKeyboard',
},
{
path: 'password-input',
title: 'PasswordInput'
title: 'PasswordInput',
},
{
path: 'picker',
title: 'Picker'
title: 'Picker',
},
{
path: 'radio',
title: 'Radio'
title: 'Radio',
},
{
path: 'rate',
title: 'Rate'
title: 'Rate',
},
{
path: 'search',
title: 'Search'
title: 'Search',
},
{
path: 'slider',
title: 'Slider'
title: 'Slider',
},
{
path: 'stepper',
title: 'Stepper'
title: 'Stepper',
},
{
path: 'switch',
title: 'Switch'
title: 'Switch',
},
{
path: 'switch-cell',
title: 'SwitchCell'
title: 'SwitchCell',
},
{
path: 'uploader',
title: 'Uploader'
}
]
title: 'Uploader',
},
],
},
{
title: 'Action Components',
items: [
{
path: 'action-sheet',
title: 'ActionSheet'
title: 'ActionSheet',
},
{
path: 'dialog',
title: 'Dialog'
title: 'Dialog',
},
{
path: 'dropdown-menu',
title: 'DropdownMenu'
title: 'DropdownMenu',
},
{
path: 'loading',
title: 'Loading'
title: 'Loading',
},
{
path: 'notify',
title: 'Notify'
title: 'Notify',
},
{
path: 'overlay',
title: 'Overlay'
title: 'Overlay',
},
{
path: 'pull-refresh',
title: 'PullRefresh'
title: 'PullRefresh',
},
{
path: 'swipe-cell',
title: 'SwipeCell'
title: 'SwipeCell',
},
{
path: 'toast',
title: 'Toast'
}
]
title: 'Toast',
},
],
},
{
title: 'Display Components',
items: [
{
path: 'circle',
title: 'Circle'
title: 'Circle',
},
{
path: 'collapse',
title: 'Collapse'
title: 'Collapse',
},
{
path: 'count-down',
title: 'CountDown'
title: 'CountDown',
},
{
path: 'divider',
title: 'Divider'
title: 'Divider',
},
{
path: 'image-preview',
title: 'ImagePreview'
title: 'ImagePreview',
},
{
path: 'lazyload',
title: 'Lazyload'
title: 'Lazyload',
},
{
path: 'list',
title: 'List'
title: 'List',
},
{
path: 'notice-bar',
title: 'NoticeBar'
title: 'NoticeBar',
},
{
path: 'panel',
title: 'Panel'
title: 'Panel',
},
{
path: 'progress',
title: 'Progress'
title: 'Progress',
},
{
path: 'skeleton',
title: 'Skeleton'
title: 'Skeleton',
},
{
path: 'steps',
title: 'Steps'
title: 'Steps',
},
{
path: 'sticky',
title: 'Sticky'
title: 'Sticky',
},
{
path: 'swipe',
title: 'Swipe'
title: 'Swipe',
},
{
path: 'tag',
title: 'Tag'
}
]
title: 'Tag',
},
],
},
{
title: 'Navigation Components',
items: [
{
path: 'grid',
title: 'Grid'
title: 'Grid',
},
{
path: 'index-bar',
title: 'IndexBar'
title: 'IndexBar',
},
{
path: 'nav-bar',
title: 'NavBar'
title: 'NavBar',
},
{
path: 'pagination',
title: 'Pagination'
title: 'Pagination',
},
{
path: 'sidebar',
title: 'Sidebar'
title: 'Sidebar',
},
{
path: 'tab',
title: 'Tab'
title: 'Tab',
},
{
path: 'tabbar',
title: 'Tabbar'
title: 'Tabbar',
},
{
path: 'tree-select',
title: 'TreeSelect'
}
]
title: 'TreeSelect',
},
],
},
{
title: 'Business Components',
items: [
{
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',
},
],
},
{
title: 'Deprecated',
items: [
{
path: 'switch-cell',
title: 'SwitchCell'
}
]
}
]
}
}
}
title: 'SwitchCell',
},
],
},
],
},
},
},
};