1 Star 0 Fork 353

宋锋 / vant

forked from 业余团伙 / vant 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
vant.config.js 19.14 KB
一键复制 编辑 原始数据 按行查看 历史
陈嘉涵 提交于 2020-11-20 20:46 . Merge branch '2.x' into dev
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755
module.exports = {
name: 'vant',
build: {
srcDir: 'src',
skipInstall: ['lazyload'],
site: {
publicPath:
(typeof window === 'undefined' && process.env.PUBLIC_PATH) ||
'https://b.yzcdn.cn/vant/',
},
vetur: {
tagPrefix: 'van-',
},
},
site: {
defaultLang: 'en-US',
versions: [
{ label: '1.x', link: '/vant/1.x/' },
{ label: '2.x', link: '/vant/' },
],
baiduAnalytics: {
seed: 'ad6b5732c36321f2dafed737ac2da92f',
},
locales: {
'zh-CN': {
title: 'Vant',
description: '轻量、可靠的移动端 Vue 组件库',
logo: 'https://img.yzcdn.cn/vant/logo.png',
langLabel: '中文',
links: [
{
logo: 'https://b.yzcdn.cn/vant/logo/weapp.svg',
url: '/vant-weapp',
},
{
logo: 'https://b.yzcdn.cn/vant/logo/github.svg',
url: 'https://github.com/youzan/vant',
},
],
searchConfig: {
apiKey: '90067aecdaa2c85220e2783cd305caac',
indexName: 'vant',
placeholder: '搜索文档...',
transformData(hits) {
if (location.hostname === 'vant-contrib.gitee.io') {
hits.forEach((hit) => {
if (hit.url) {
hit.url = hit.url.replace(
'youzan.github.io',
'vant-contrib.gitee.io'
);
}
});
}
},
},
nav: [
{
title: '开发指南',
items: [
{
path: 'home',
title: '介绍',
},
{
path: 'quickstart',
title: '快速上手',
},
{
path: 'advanced-usage',
title: '进阶用法',
},
{
path: 'changelog-v3',
title: '更新日志',
},
{
path: 'migrate-from-v2',
title: '从 v2 升级',
},
{
path: 'theme',
title: '定制主题',
},
{
path: 'contribution',
title: '开发指南',
},
{
path: 'design',
title: '设计资源',
},
{
path: 'style-guide',
title: '风格指南',
},
{
path: 'locale',
title: '国际化',
},
],
},
{
title: '基础组件',
items: [
{
path: 'button',
title: 'Button 按钮',
},
{
path: 'cell',
title: 'Cell 单元格',
},
{
path: 'icon',
title: 'Icon 图标',
},
{
path: 'image',
title: 'Image 图片',
},
{
path: 'col',
title: 'Layout 布局',
},
{
path: 'popup',
title: 'Popup 弹出层',
},
{
path: 'style',
title: 'Style 内置样式',
},
{
path: 'toast',
title: 'Toast 轻提示',
},
],
},
{
title: '表单组件',
items: [
{
path: 'calendar',
title: 'Calendar 日历',
},
{
path: 'checkbox',
title: 'Checkbox 复选框',
},
{
path: 'datetime-picker',
title: 'DatetimePicker 时间选择',
},
{
path: 'field',
title: 'Field 输入框',
},
{
path: 'form',
title: 'Form 表单',
},
{
path: 'number-keyboard',
title: 'NumberKeyboard 数字键盘',
},
{
path: 'password-input',
title: 'PasswordInput 密码输入框',
},
{
path: 'picker',
title: 'Picker 选择器',
},
{
path: 'radio',
title: 'Radio 单选框',
},
{
path: 'rate',
title: 'Rate 评分',
},
{
path: 'search',
title: 'Search 搜索',
},
{
path: 'slider',
title: 'Slider 滑块',
},
{
path: 'stepper',
title: 'Stepper 步进器',
},
{
path: 'switch',
title: 'Switch 开关',
},
{
path: 'uploader',
title: 'Uploader 文件上传',
},
],
},
{
title: '反馈组件',
items: [
{
path: 'action-sheet',
title: 'ActionSheet 动作面板',
},
{
path: 'dialog',
title: 'Dialog 弹出框',
},
{
path: 'dropdown-menu',
title: 'DropdownMenu 下拉菜单',
},
{
path: 'loading',
title: 'Loading 加载',
},
{
path: 'notify',
title: 'Notify 消息通知',
},
{
path: 'overlay',
title: 'Overlay 遮罩层',
},
{
path: 'pull-refresh',
title: 'PullRefresh 下拉刷新',
},
{
path: 'share-sheet',
title: 'ShareSheet 分享面板',
},
{
path: 'swipe-cell',
title: 'SwipeCell 滑动单元格',
},
],
},
{
title: '展示组件',
items: [
{
path: 'badge',
title: 'Badge 徽标',
},
{
path: 'circle',
title: 'Circle 环形进度条',
},
{
path: 'collapse',
title: 'Collapse 折叠面板',
},
{
path: 'count-down',
title: 'CountDown 倒计时',
},
{
path: 'divider',
title: 'Divider 分割线',
},
{
path: 'empty',
title: 'Empty 空状态',
},
{
path: 'image-preview',
title: 'ImagePreview 图片预览',
},
// {
// path: 'lazyload',
// title: 'Lazyload 懒加载',
// },
{
path: 'list',
title: 'List 列表',
},
{
path: 'notice-bar',
title: 'NoticeBar 通知栏',
},
{
path: 'popover',
title: 'Popover 气泡弹出框',
},
{
path: 'progress',
title: 'Progress 进度条',
},
{
path: 'skeleton',
title: 'Skeleton 骨架屏',
},
{
path: 'steps',
title: 'Steps 步骤条',
},
{
path: 'sticky',
title: 'Sticky 粘性布局',
},
{
path: 'swipe',
title: 'Swipe 轮播',
},
{
path: 'tag',
title: 'Tag 标签',
},
],
},
{
title: '导航组件',
items: [
{
path: 'action-bar',
title: 'ActionBar 动作栏',
},
{
path: 'grid',
title: 'Grid 宫格',
},
{
path: 'index-bar',
title: 'IndexBar 索引栏',
},
{
path: 'nav-bar',
title: 'NavBar 导航栏',
},
{
path: 'pagination',
title: 'Pagination 分页',
},
{
path: 'sidebar',
title: 'Sidebar 侧边导航',
},
{
path: 'tab',
title: 'Tab 标签页',
},
{
path: 'tabbar',
title: 'Tabbar 标签栏',
},
{
path: 'tree-select',
title: 'TreeSelect 分类选择',
},
],
},
{
title: '业务组件',
items: [
{
path: 'address-edit',
title: 'AddressEdit 地址编辑',
},
{
path: 'address-list',
title: 'AddressList 地址列表',
},
{
path: 'area',
title: 'Area 省市区选择',
},
{
path: 'card',
title: 'Card 商品卡片',
},
{
path: 'contact-card',
title: 'ContactCard 联系人卡片',
},
{
path: 'contact-edit',
title: 'ContactEdit 联系人编辑',
},
{
path: 'contact-list',
title: 'ContactList 联系人列表',
},
{
path: 'coupon-list',
title: 'Coupon 优惠券',
},
{
path: 'submit-bar',
title: 'SubmitBar 提交订单栏',
},
],
},
],
},
'en-US': {
title: 'Vant',
description: 'Mobile UI Components built on Vue',
logo: 'https://img.yzcdn.cn/vant/logo.png',
langLabel: 'En',
links: [
{
logo: 'https://b.yzcdn.cn/vant/logo/weapp.svg',
url: '/vant-weapp',
},
{
logo: 'https://b.yzcdn.cn/vant/logo/github.svg',
url: 'https://github.com/youzan/vant',
},
],
searchConfig: {
apiKey: '90067aecdaa2c85220e2783cd305caac',
indexName: 'vant',
placeholder: 'Search...',
},
nav: [
{
title: 'Essentials',
items: [
{
path: 'home',
title: 'Introduction',
},
{
path: 'quickstart',
title: 'Quickstart',
},
{
path: 'advanced-usage',
title: 'Advanced Usage',
},
{
path: 'changelog-v3',
title: 'Changelog',
},
{
path: 'theme',
title: 'Custom Theme',
},
{
path: 'locale',
title: 'Internationalization',
},
],
},
{
title: 'Basic Components',
items: [
{
path: 'button',
title: 'Button',
},
{
path: 'cell',
title: 'Cell',
},
{
path: 'icon',
title: 'Icon',
},
{
path: 'image',
title: 'Image',
},
{
path: 'col',
title: 'Layout',
},
{
path: 'popup',
title: 'Popup',
},
{
path: 'style',
title: 'Built-in style',
},
{
path: 'toast',
title: 'Toast',
},
],
},
{
title: 'Form Components',
items: [
{
path: 'calendar',
title: 'Calendar',
},
{
path: 'checkbox',
title: 'Checkbox',
},
{
path: 'datetime-picker',
title: 'DatetimePicker',
},
{
path: 'field',
title: 'Field',
},
{
path: 'form',
title: 'Form',
},
{
path: 'number-keyboard',
title: 'NumberKeyboard',
},
{
path: 'password-input',
title: 'PasswordInput',
},
{
path: 'picker',
title: 'Picker',
},
{
path: 'radio',
title: 'Radio',
},
{
path: 'rate',
title: 'Rate',
},
{
path: 'search',
title: 'Search',
},
{
path: 'slider',
title: 'Slider',
},
{
path: 'stepper',
title: 'Stepper',
},
{
path: 'switch',
title: 'Switch',
},
{
path: 'uploader',
title: 'Uploader',
},
],
},
{
title: 'Action Components',
items: [
{
path: 'action-sheet',
title: 'ActionSheet',
},
{
path: 'dialog',
title: 'Dialog',
},
{
path: 'dropdown-menu',
title: 'DropdownMenu',
},
{
path: 'loading',
title: 'Loading',
},
{
path: 'notify',
title: 'Notify',
},
{
path: 'overlay',
title: 'Overlay',
},
{
path: 'pull-refresh',
title: 'PullRefresh',
},
{
path: 'share-sheet',
title: 'ShareSheet',
},
{
path: 'swipe-cell',
title: 'SwipeCell',
},
],
},
{
title: 'Display Components',
items: [
{
path: 'badge',
title: 'Badge',
},
{
path: 'circle',
title: 'Circle',
},
{
path: 'collapse',
title: 'Collapse',
},
{
path: 'count-down',
title: 'CountDown',
},
{
path: 'divider',
title: 'Divider',
},
{
path: 'empty',
title: 'Empty',
},
{
path: 'image-preview',
title: 'ImagePreview',
},
// {
// path: 'lazyload',
// title: 'Lazyload',
// },
{
path: 'list',
title: 'List',
},
{
path: 'notice-bar',
title: 'NoticeBar',
},
{
path: 'popover',
title: 'Popover',
},
{
path: 'progress',
title: 'Progress',
},
{
path: 'skeleton',
title: 'Skeleton',
},
{
path: 'steps',
title: 'Steps',
},
{
path: 'sticky',
title: 'Sticky',
},
{
path: 'swipe',
title: 'Swipe',
},
{
path: 'tag',
title: 'Tag',
},
],
},
{
title: 'Navigation Components',
items: [
{
path: 'action-bar',
title: 'ActionBar',
},
{
path: 'grid',
title: 'Grid',
},
{
path: 'index-bar',
title: 'IndexBar',
},
{
path: 'nav-bar',
title: 'NavBar',
},
{
path: 'pagination',
title: 'Pagination',
},
{
path: 'sidebar',
title: 'Sidebar',
},
{
path: 'tab',
title: 'Tab',
},
{
path: 'tabbar',
title: 'Tabbar',
},
{
path: 'tree-select',
title: 'TreeSelect',
},
],
},
{
title: 'Business Components',
items: [
{
path: 'address-edit',
title: 'AddressEdit',
},
{
path: 'address-list',
title: 'AddressList',
},
{
path: 'area',
title: 'Area',
},
{
path: 'card',
title: 'Card',
},
{
path: 'contact-card',
title: 'ContactCard',
},
{
path: 'contact-edit',
title: 'ContactEdit',
},
{
path: 'contact-list',
title: 'ContactList',
},
{
path: 'coupon-list',
title: 'Coupon',
},
{
path: 'submit-bar',
title: 'SubmitBar',
},
],
},
],
},
},
},
};
JavaScript
1
https://gitee.com/songfeng163/vant.git
git@gitee.com:songfeng163/vant.git
songfeng163
vant
vant
dev

搜索帮助