-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.umirc.ts
84 lines (83 loc) · 1.87 KB
/
.umirc.ts
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
import { defineConfig } from 'dumi';
export default defineConfig({
mode: 'site',
title: 'react 组件库',
description: '一个简洁风格的组件库',
logo: 'https://simple-ui.netlify.app//logo.png',
favicon: 'https://simple-ui.netlify.app//logo.png',
locales: [
['en-US', 'EN'],
['zh-CN', '中文'],
],
alias: {
'@components': '/components',
},
menus: {
'/component': [
{
title: '基础布局',
children: ['component/grid'],
},
{
title: '通用组件',
children: ['component/button'],
},
{
title: '导航组件',
children: ['component/affix', 'component/menu', 'component/pager'],
},
{
title: '表单组件',
children: [
'component/input',
'component/cascader',
'component/checkbox',
'component/datepicker',
'component/radio',
'component/rate',
'component/switch',
],
},
{
title: '数据展示',
children: [
'component/collapse',
'component/popover',
'component/slides',
'component/tabs',
],
},
{
title: '信息反馈',
children: [
'component/message',
'component/modal',
'component/spin',
'component/lightup',
'component/scroll',
],
},
],
'/guide': [
{
title: '使用文档',
children: ['guide/index', 'guide/color'],
},
],
},
navs: [
{ title: '文档', path: '/guide' },
{ title: '组件库', path: '/component' },
{ title: 'GitHub', path: 'https://github.com/suchengyong/simple-react-ui' },
],
extraBabelPlugins: [
[
'import',
{
libraryName: 'simple-react',
libraryDirectory: 'es',
style: 'css',
},
],
],
});