-
Notifications
You must be signed in to change notification settings - Fork 0
/
vant.config.mjs
65 lines (65 loc) · 1.46 KB
/
vant.config.mjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
export default {
name: 'uab-weapp',
build: {
srcDir: 'packages', // 读取的 md 文档目录
site: {
publicPath: '/uab-weapp/',
},
},
site: {
versions: [{ label: '0.x', link: '/uab-weapp/0.x' }],
title: 'Uab Weapp',
description: '轻量、可靠的小程序 UI 组件库',
logo: 'https://avatars.githubusercontent.com/u/73016681?s=200&v=4',
simulator: { // 模拟器
url: 'https://vant-contrib.gitee.io/vant/v2/mobile.html?weapp=1', // 使用 vant 网页模拟器地址
routeMapper: (path) => {
return `/zh-CN${path}`
},
syncPathFromSimulator: false, // 模拟器同步路径
},
links: [
{
logo: 'https://b.yzcdn.cn/vant/logo/github.svg',
url: 'https://github.com/uabjs/uab-weapp',
},
],
nav: [
{
title: '开发指南',
items: [
{
path: 'home',
title: '介绍',
},
{
path: 'quickstart',
title: '快速上手',
},
]
},
{
title: '基础组件',
items: [
{
path: 'button',
title: 'Button 按钮',
},
{
path: 'icon',
title: 'Icon 图标',
},
]
},
{
title: '反馈组件',
items: [
{
path: 'loading',
title: 'Loading 加载',
},
]
}
]
}
}