2023-04-16 18:09:13 +08:00
|
|
|
import type { DefaultTheme } from 'vitepress'
|
|
|
|
const componentsDir = `/zh-CN/components/`
|
|
|
|
|
|
|
|
export const getSidebar = (): DefaultTheme.Sidebar => {
|
|
|
|
return {
|
2023-04-16 21:52:44 +08:00
|
|
|
[componentsDir]: [
|
2023-04-16 18:09:13 +08:00
|
|
|
{
|
2023-04-16 21:52:44 +08:00
|
|
|
text: '通用',
|
|
|
|
items: [
|
|
|
|
{
|
|
|
|
text: 'Button 按钮',
|
|
|
|
link: `${componentsDir}button/`
|
|
|
|
}
|
|
|
|
]
|
2023-04-16 18:09:13 +08:00
|
|
|
},
|
|
|
|
{
|
2023-04-16 21:52:44 +08:00
|
|
|
text: '布局',
|
|
|
|
items: []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
text: '导航',
|
|
|
|
items: []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
text: '数据入录',
|
|
|
|
items: []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
text: '数据展示',
|
|
|
|
items: []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
text: '反馈',
|
|
|
|
items: []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
text: '其他',
|
|
|
|
items: [
|
|
|
|
{
|
|
|
|
text: 'ConfigProvider',
|
|
|
|
link: `${componentsDir}config-provider/`
|
|
|
|
}
|
|
|
|
]
|
2023-04-16 18:09:13 +08:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|