2020-11-30 00:37:09 +08:00
|
|
|
import React from 'react';
|
2022-02-10 13:50:12 +08:00
|
|
|
import {Switch} from 'react-router-dom';
|
|
|
|
import {navigations2route} from './App';
|
2020-11-30 00:37:09 +08:00
|
|
|
import makeMarkdownRenderer from './MdRenderer';
|
2022-02-10 13:50:12 +08:00
|
|
|
function wrapDoc(doc: any) {
|
|
|
|
return {
|
|
|
|
default: makeMarkdownRenderer(doc)
|
|
|
|
};
|
|
|
|
}
|
2020-11-30 00:37:09 +08:00
|
|
|
|
|
|
|
export const cssDocs = [
|
|
|
|
{
|
2020-12-01 12:12:19 +08:00
|
|
|
label: '开始',
|
2020-11-30 00:37:09 +08:00
|
|
|
children: [
|
|
|
|
{
|
2020-11-30 14:50:04 +08:00
|
|
|
label: '快速开始',
|
2021-02-02 10:55:26 +08:00
|
|
|
path: '/zh-CN/style/index',
|
2022-02-10 13:50:12 +08:00
|
|
|
component: React.lazy(() =>
|
|
|
|
import('../../docs/zh-CN/style/index.md').then(wrapDoc)
|
|
|
|
)
|
2020-11-30 14:50:04 +08:00
|
|
|
},
|
|
|
|
{
|
2020-12-21 10:08:40 +08:00
|
|
|
label: 'CSS 变量',
|
2021-02-02 10:55:26 +08:00
|
|
|
path: '/zh-CN/style/css-vars',
|
2022-02-10 13:50:12 +08:00
|
|
|
component: React.lazy(() =>
|
|
|
|
import('../../docs/zh-CN/style/css-vars.md').then(wrapDoc)
|
|
|
|
)
|
2020-11-30 14:50:04 +08:00
|
|
|
},
|
|
|
|
{
|
2020-12-21 10:08:40 +08:00
|
|
|
label: '辅助类 - 响应式设计',
|
2021-02-02 10:55:26 +08:00
|
|
|
path: '/zh-CN/style/responsive-design',
|
2022-02-10 13:50:12 +08:00
|
|
|
component: React.lazy(() =>
|
|
|
|
import('../../docs/zh-CN/style/responsive-design.md').then(wrapDoc)
|
|
|
|
)
|
2020-12-21 10:08:40 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
label: '辅助类 - 状态样式',
|
2021-02-02 10:55:26 +08:00
|
|
|
path: '/zh-CN/style/state',
|
2022-02-10 13:50:12 +08:00
|
|
|
component: React.lazy(() =>
|
|
|
|
import('../../docs/zh-CN/style/state.md').then(wrapDoc)
|
|
|
|
)
|
2020-11-30 00:37:09 +08:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
// prefix: ({classnames: cx}) => <li className={cx('AsideNav-divider')} />,
|
2020-12-01 11:43:30 +08:00
|
|
|
label: 'Layout',
|
2020-11-30 00:37:09 +08:00
|
|
|
children: [
|
|
|
|
{
|
2020-12-01 11:43:30 +08:00
|
|
|
label: 'Box Sizing',
|
2021-02-02 10:55:26 +08:00
|
|
|
path: '/zh-CN/style/layout/box-sizing',
|
2022-02-10 13:50:12 +08:00
|
|
|
component: React.lazy(() =>
|
2022-11-02 22:45:12 +08:00
|
|
|
import(
|
|
|
|
'../../packages/amis-ui/scss/helper/layout/_box-sizing.md'
|
|
|
|
).then(wrapDoc)
|
2022-02-10 13:50:12 +08:00
|
|
|
)
|
2020-12-01 11:43:30 +08:00
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
label: 'Display',
|
2021-02-02 10:55:26 +08:00
|
|
|
path: '/zh-CN/style/layout/display',
|
2022-02-10 13:50:12 +08:00
|
|
|
component: React.lazy(() =>
|
2022-11-02 22:45:12 +08:00
|
|
|
import('../../packages/amis-ui/scss/helper/layout/_display.md').then(
|
|
|
|
wrapDoc
|
|
|
|
)
|
2022-02-10 13:50:12 +08:00
|
|
|
)
|
2020-12-01 11:43:30 +08:00
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
label: 'Floats',
|
2021-02-02 10:55:26 +08:00
|
|
|
path: '/zh-CN/style/layout/floats',
|
2022-02-10 13:50:12 +08:00
|
|
|
component: React.lazy(() =>
|
2022-11-02 22:45:12 +08:00
|
|
|
import('../../packages/amis-ui/scss/helper/layout/_float.md').then(
|
|
|
|
wrapDoc
|
|
|
|
)
|
2022-02-10 13:50:12 +08:00
|
|
|
)
|
2020-12-01 11:43:30 +08:00
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
label: 'Clear',
|
2021-02-02 10:55:26 +08:00
|
|
|
path: '/zh-CN/style/layout/clear',
|
2022-02-10 13:50:12 +08:00
|
|
|
component: React.lazy(() =>
|
2022-11-02 22:45:12 +08:00
|
|
|
import('../../packages/amis-ui/scss/helper/layout/_clear.md').then(
|
|
|
|
wrapDoc
|
|
|
|
)
|
2022-02-10 13:50:12 +08:00
|
|
|
)
|
2020-12-01 11:43:30 +08:00
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
label: 'Overflow',
|
2021-02-02 10:55:26 +08:00
|
|
|
path: '/zh-CN/style/layout/overflow',
|
2022-02-10 13:50:12 +08:00
|
|
|
component: React.lazy(() =>
|
2022-11-02 22:45:12 +08:00
|
|
|
import('../../packages/amis-ui/scss/helper/layout/_overflow.md').then(
|
|
|
|
wrapDoc
|
|
|
|
)
|
2022-02-10 13:50:12 +08:00
|
|
|
)
|
2020-12-01 11:43:30 +08:00
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
label: 'Position',
|
2021-02-02 10:55:26 +08:00
|
|
|
path: '/zh-CN/style/layout/position',
|
2022-02-10 13:50:12 +08:00
|
|
|
component: React.lazy(() =>
|
2022-11-02 22:45:12 +08:00
|
|
|
import('../../packages/amis-ui/scss/helper/layout/_position.md').then(
|
|
|
|
wrapDoc
|
|
|
|
)
|
2022-02-10 13:50:12 +08:00
|
|
|
)
|
2020-12-01 11:43:30 +08:00
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
label: 'Top / Right / Bottom / Left',
|
2021-02-02 10:55:26 +08:00
|
|
|
path: '/zh-CN/style/layout/top-right-bottom-left',
|
2022-02-10 13:50:12 +08:00
|
|
|
component: React.lazy(() =>
|
2022-11-02 22:45:12 +08:00
|
|
|
import(
|
|
|
|
'../../packages/amis-ui/scss/helper/layout/_top-right-bottom-left.md'
|
|
|
|
).then(wrapDoc)
|
2022-02-10 13:50:12 +08:00
|
|
|
)
|
2020-12-01 11:43:30 +08:00
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
label: 'Visibility',
|
2021-02-02 10:55:26 +08:00
|
|
|
path: '/zh-CN/style/layout/visibility',
|
2022-02-10 13:50:12 +08:00
|
|
|
component: React.lazy(() =>
|
2022-11-02 22:45:12 +08:00
|
|
|
import(
|
|
|
|
'../../packages/amis-ui/scss/helper/layout/_visibility.md'
|
|
|
|
).then(wrapDoc)
|
2022-02-10 13:50:12 +08:00
|
|
|
)
|
2020-12-01 11:43:30 +08:00
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
label: 'Z-Index',
|
2021-02-02 10:55:26 +08:00
|
|
|
path: '/zh-CN/style/layout/z-index',
|
2022-02-10 13:50:12 +08:00
|
|
|
component: React.lazy(() =>
|
2022-11-02 22:45:12 +08:00
|
|
|
import('../../packages/amis-ui/scss/helper/layout/_z-index.md').then(
|
|
|
|
wrapDoc
|
|
|
|
)
|
2022-02-10 13:50:12 +08:00
|
|
|
)
|
2020-11-30 00:37:09 +08:00
|
|
|
}
|
|
|
|
]
|
2020-12-01 12:12:19 +08:00
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
label: 'Flexbox',
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
label: 'Flex Direction',
|
2022-08-09 10:55:34 +08:00
|
|
|
path: '/zh-CN/style/flex/direction',
|
2022-02-10 13:50:12 +08:00
|
|
|
component: React.lazy(() =>
|
2022-11-02 22:45:12 +08:00
|
|
|
import('../../packages/amis-ui/scss/helper/flex/_direction.md').then(
|
|
|
|
wrapDoc
|
|
|
|
)
|
2022-02-10 13:50:12 +08:00
|
|
|
)
|
2020-12-01 12:12:19 +08:00
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
label: 'Flex Wrap',
|
2022-08-09 10:55:34 +08:00
|
|
|
path: '/zh-CN/style/flex/wrap',
|
2022-02-10 13:50:12 +08:00
|
|
|
component: React.lazy(() =>
|
2022-11-02 22:45:12 +08:00
|
|
|
import('../../packages/amis-ui/scss/helper/flex/_wrap.md').then(
|
|
|
|
wrapDoc
|
|
|
|
)
|
2022-02-10 13:50:12 +08:00
|
|
|
)
|
2020-12-01 12:12:19 +08:00
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
label: 'Flex',
|
2022-08-09 10:55:34 +08:00
|
|
|
path: '/zh-CN/style/flex/flex',
|
2022-02-10 13:50:12 +08:00
|
|
|
component: React.lazy(() =>
|
2022-11-02 22:45:12 +08:00
|
|
|
import('../../packages/amis-ui/scss/helper/flex/_flex.md').then(
|
|
|
|
wrapDoc
|
|
|
|
)
|
2022-02-10 13:50:12 +08:00
|
|
|
)
|
2020-12-01 12:12:19 +08:00
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
label: 'Flex Grow',
|
2022-08-09 10:55:34 +08:00
|
|
|
path: '/zh-CN/style/flex/grow',
|
2022-02-10 13:50:12 +08:00
|
|
|
component: React.lazy(() =>
|
2022-11-02 22:45:12 +08:00
|
|
|
import('../../packages/amis-ui/scss/helper/flex/_grow.md').then(
|
|
|
|
wrapDoc
|
|
|
|
)
|
2022-02-10 13:50:12 +08:00
|
|
|
)
|
2020-12-01 12:12:19 +08:00
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
label: 'Flex Shrink',
|
2022-08-09 10:55:34 +08:00
|
|
|
path: '/zh-CN/style/flex/shrink',
|
2022-02-10 13:50:12 +08:00
|
|
|
component: React.lazy(() =>
|
2022-11-02 22:45:12 +08:00
|
|
|
import('../../packages/amis-ui/scss/helper/flex/_shrink.md').then(
|
|
|
|
wrapDoc
|
|
|
|
)
|
2022-02-10 13:50:12 +08:00
|
|
|
)
|
2020-12-01 12:12:19 +08:00
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
label: 'Flex Order',
|
2022-08-09 10:55:34 +08:00
|
|
|
path: '/zh-CN/style/flex/order',
|
2022-02-10 13:50:12 +08:00
|
|
|
component: React.lazy(() =>
|
2022-11-02 22:45:12 +08:00
|
|
|
import('../../packages/amis-ui/scss/helper/flex/_order.md').then(
|
|
|
|
wrapDoc
|
|
|
|
)
|
2022-02-10 13:50:12 +08:00
|
|
|
)
|
2020-12-01 12:12:19 +08:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
label: 'Grid',
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
label: 'Grid Template Columns',
|
2021-02-02 10:55:26 +08:00
|
|
|
path: '/zh-CN/style/grid/columns',
|
2022-02-10 13:50:12 +08:00
|
|
|
component: React.lazy(() =>
|
2022-11-02 22:45:12 +08:00
|
|
|
import('../../packages/amis-ui/scss/helper/grid/_columns.md').then(
|
|
|
|
wrapDoc
|
|
|
|
)
|
2022-02-10 13:50:12 +08:00
|
|
|
)
|
2020-12-01 12:12:19 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
label: 'Grid Column Start / End',
|
2021-02-02 10:55:26 +08:00
|
|
|
path: '/zh-CN/style/grid/column-start-end',
|
2022-02-10 13:50:12 +08:00
|
|
|
component: React.lazy(() =>
|
2022-11-02 22:45:12 +08:00
|
|
|
import(
|
|
|
|
'../../packages/amis-ui/scss/helper/grid/_column-start-end.md'
|
|
|
|
).then(wrapDoc)
|
2022-02-10 13:50:12 +08:00
|
|
|
)
|
2020-12-01 12:12:19 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
label: 'Grid Template Rows',
|
2021-02-02 10:55:26 +08:00
|
|
|
path: '/zh-CN/style/grid/rows',
|
2022-02-10 13:50:12 +08:00
|
|
|
component: React.lazy(() =>
|
2022-11-02 22:45:12 +08:00
|
|
|
import('../../packages/amis-ui/scss/helper/grid/_rows.md').then(
|
|
|
|
wrapDoc
|
|
|
|
)
|
2022-02-10 13:50:12 +08:00
|
|
|
)
|
2020-12-01 12:12:19 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
label: 'Grid Row Start / End',
|
2021-02-02 10:55:26 +08:00
|
|
|
path: '/zh-CN/style/grid/row-start-end',
|
2022-02-10 13:50:12 +08:00
|
|
|
component: React.lazy(() =>
|
2022-11-02 22:45:12 +08:00
|
|
|
import(
|
|
|
|
'../../packages/amis-ui/scss/helper/grid/_row-start-end.md'
|
|
|
|
).then(wrapDoc)
|
2022-02-10 13:50:12 +08:00
|
|
|
)
|
2020-12-01 12:12:19 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
label: 'Grid Auto Flow',
|
2021-02-02 10:55:26 +08:00
|
|
|
path: '/zh-CN/style/grid/auto-flow',
|
2022-02-10 13:50:12 +08:00
|
|
|
component: React.lazy(() =>
|
2022-11-02 22:45:12 +08:00
|
|
|
import('../../packages/amis-ui/scss/helper/grid/_auto-flow.md').then(
|
|
|
|
wrapDoc
|
|
|
|
)
|
2022-02-10 13:50:12 +08:00
|
|
|
)
|
2020-12-01 12:12:19 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
label: 'Grid Auto Columns',
|
2021-02-02 10:55:26 +08:00
|
|
|
path: '/zh-CN/style/grid/auto-columns',
|
2022-02-10 13:50:12 +08:00
|
|
|
component: React.lazy(() =>
|
2022-11-02 22:45:12 +08:00
|
|
|
import(
|
|
|
|
'../../packages/amis-ui/scss/helper/grid/_auto-columns.md'
|
|
|
|
).then(wrapDoc)
|
2022-02-10 13:50:12 +08:00
|
|
|
)
|
2020-12-01 12:12:19 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
label: 'Grid Auto Rows',
|
2021-02-02 10:55:26 +08:00
|
|
|
path: '/zh-CN/style/grid/auto-rows',
|
2022-02-10 13:50:12 +08:00
|
|
|
component: React.lazy(() =>
|
2022-11-02 22:45:12 +08:00
|
|
|
import('../../packages/amis-ui/scss/helper/grid/_auto-rows.md').then(
|
|
|
|
wrapDoc
|
|
|
|
)
|
2022-02-10 13:50:12 +08:00
|
|
|
)
|
2020-12-01 12:12:19 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
label: 'Gap',
|
2021-02-02 10:55:26 +08:00
|
|
|
path: '/zh-CN/style/grid/gap',
|
2022-02-10 13:50:12 +08:00
|
|
|
component: React.lazy(() =>
|
2022-11-02 22:45:12 +08:00
|
|
|
import('../../packages/amis-ui/scss/helper/grid/_gap.md').then(
|
|
|
|
wrapDoc
|
|
|
|
)
|
2022-02-10 13:50:12 +08:00
|
|
|
)
|
2020-12-01 12:12:19 +08:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: 'Box Alignment',
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
label: 'Justify Content',
|
2021-02-02 10:55:26 +08:00
|
|
|
path: '/zh-CN/style/box-alignment/justify-content',
|
2022-02-10 13:50:12 +08:00
|
|
|
component: React.lazy(() =>
|
2022-07-11 19:38:14 +08:00
|
|
|
import(
|
2022-11-02 22:45:12 +08:00
|
|
|
'../../packages/amis-ui/scss/helper/box-alignment/_justify-content.md'
|
2022-07-11 19:38:14 +08:00
|
|
|
).then(wrapDoc)
|
2022-02-10 13:50:12 +08:00
|
|
|
)
|
2020-12-01 12:12:19 +08:00
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
label: 'Justify Items',
|
2021-02-02 10:55:26 +08:00
|
|
|
path: '/zh-CN/style/box-alignment/justify-items',
|
2022-02-10 13:50:12 +08:00
|
|
|
component: React.lazy(() =>
|
2022-11-02 22:45:12 +08:00
|
|
|
import(
|
|
|
|
'../../packages/amis-ui/scss/helper/box-alignment/_justify-items.md'
|
|
|
|
).then(wrapDoc)
|
2022-02-10 13:50:12 +08:00
|
|
|
)
|
2020-12-01 12:12:19 +08:00
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
label: 'Justify Self',
|
2021-02-02 10:55:26 +08:00
|
|
|
path: '/zh-CN/style/box-alignment/justify-self',
|
2022-02-10 13:50:12 +08:00
|
|
|
component: React.lazy(() =>
|
2022-11-02 22:45:12 +08:00
|
|
|
import(
|
|
|
|
'../../packages/amis-ui/scss/helper/box-alignment/_justify-self.md'
|
|
|
|
).then(wrapDoc)
|
2022-02-10 13:50:12 +08:00
|
|
|
)
|
2020-12-01 12:12:19 +08:00
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
label: 'Align Content',
|
2021-02-02 10:55:26 +08:00
|
|
|
path: '/zh-CN/style/box-alignment/align-content',
|
2022-02-10 13:50:12 +08:00
|
|
|
component: React.lazy(() =>
|
2022-11-02 22:45:12 +08:00
|
|
|
import(
|
|
|
|
'../../packages/amis-ui/scss/helper/box-alignment/_align-content.md'
|
|
|
|
).then(wrapDoc)
|
2022-02-10 13:50:12 +08:00
|
|
|
)
|
2020-12-01 12:12:19 +08:00
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
label: 'Align Items',
|
2021-02-02 10:55:26 +08:00
|
|
|
path: '/zh-CN/style/box-alignment/align-items',
|
2022-02-10 13:50:12 +08:00
|
|
|
component: React.lazy(() =>
|
2022-11-02 22:45:12 +08:00
|
|
|
import(
|
|
|
|
'../../packages/amis-ui/scss/helper/box-alignment/_align-items.md'
|
|
|
|
).then(wrapDoc)
|
2022-02-10 13:50:12 +08:00
|
|
|
)
|
2020-12-01 12:12:19 +08:00
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
label: 'Align Self',
|
2021-02-02 10:55:26 +08:00
|
|
|
path: '/zh-CN/style/box-alignment/align-self',
|
2022-02-10 13:50:12 +08:00
|
|
|
component: React.lazy(() =>
|
2022-11-02 22:45:12 +08:00
|
|
|
import(
|
|
|
|
'../../packages/amis-ui/scss/helper/box-alignment/_align-self.md'
|
|
|
|
).then(wrapDoc)
|
2022-02-10 13:50:12 +08:00
|
|
|
)
|
2020-12-01 12:12:19 +08:00
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
label: 'Place Content',
|
2021-02-02 10:55:26 +08:00
|
|
|
path: '/zh-CN/style/box-alignment/place-content',
|
2022-02-10 13:50:12 +08:00
|
|
|
component: React.lazy(() =>
|
2022-11-02 22:45:12 +08:00
|
|
|
import(
|
|
|
|
'../../packages/amis-ui/scss/helper/box-alignment/_place-content.md'
|
|
|
|
).then(wrapDoc)
|
2022-02-10 13:50:12 +08:00
|
|
|
)
|
2020-12-01 12:12:19 +08:00
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
label: 'Place Items',
|
2021-02-02 10:55:26 +08:00
|
|
|
path: '/zh-CN/style/box-alignment/place-items',
|
2022-02-10 13:50:12 +08:00
|
|
|
component: React.lazy(() =>
|
2022-11-02 22:45:12 +08:00
|
|
|
import(
|
|
|
|
'../../packages/amis-ui/scss/helper/box-alignment/_place-items.md'
|
|
|
|
).then(wrapDoc)
|
2022-02-10 13:50:12 +08:00
|
|
|
)
|
2020-12-01 12:12:19 +08:00
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
label: 'Place Self',
|
2021-02-02 10:55:26 +08:00
|
|
|
path: '/zh-CN/style/box-alignment/place-self',
|
2022-02-10 13:50:12 +08:00
|
|
|
component: React.lazy(() =>
|
2022-11-02 22:45:12 +08:00
|
|
|
import(
|
|
|
|
'../../packages/amis-ui/scss/helper/box-alignment/_place-self.md'
|
|
|
|
).then(wrapDoc)
|
2022-02-10 13:50:12 +08:00
|
|
|
)
|
2020-12-01 12:12:19 +08:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
label: 'Spacing',
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
label: 'Padding',
|
2021-02-02 10:55:26 +08:00
|
|
|
path: '/zh-CN/style/spacing/padding',
|
2022-02-10 13:50:12 +08:00
|
|
|
component: React.lazy(() =>
|
2022-11-02 22:45:12 +08:00
|
|
|
import('../../packages/amis-ui/scss/helper/spacing/_padding.md').then(
|
|
|
|
wrapDoc
|
|
|
|
)
|
2022-02-10 13:50:12 +08:00
|
|
|
)
|
2020-12-01 12:12:19 +08:00
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
label: 'Margin',
|
2021-02-02 10:55:26 +08:00
|
|
|
path: '/zh-CN/style/spacing/margin',
|
2022-02-10 13:50:12 +08:00
|
|
|
component: React.lazy(() =>
|
2022-11-02 22:45:12 +08:00
|
|
|
import('../../packages/amis-ui/scss/helper/spacing/_margin.md').then(
|
|
|
|
wrapDoc
|
|
|
|
)
|
2022-02-10 13:50:12 +08:00
|
|
|
)
|
2020-12-01 12:12:19 +08:00
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
label: 'Space Between',
|
2021-02-02 10:55:26 +08:00
|
|
|
path: '/zh-CN/style/spacing/space-between',
|
2022-02-10 13:50:12 +08:00
|
|
|
component: React.lazy(() =>
|
2022-11-02 22:45:12 +08:00
|
|
|
import(
|
|
|
|
'../../packages/amis-ui/scss/helper/spacing/_space-between.md'
|
|
|
|
).then(wrapDoc)
|
2022-02-10 13:50:12 +08:00
|
|
|
)
|
2020-12-01 12:12:19 +08:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
label: 'Sizing',
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
label: 'Width',
|
2021-02-02 10:55:26 +08:00
|
|
|
path: '/zh-CN/style/sizing/width',
|
2022-02-10 13:50:12 +08:00
|
|
|
component: React.lazy(() =>
|
2022-11-02 22:45:12 +08:00
|
|
|
import('../../packages/amis-ui/scss/helper/sizing/_width.md').then(
|
|
|
|
wrapDoc
|
|
|
|
)
|
2022-02-10 13:50:12 +08:00
|
|
|
)
|
2020-12-01 12:12:19 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
label: 'Height',
|
2021-02-02 10:55:26 +08:00
|
|
|
path: '/zh-CN/style/sizing/height',
|
2022-02-10 13:50:12 +08:00
|
|
|
component: React.lazy(() =>
|
2022-11-02 22:45:12 +08:00
|
|
|
import('../../packages/amis-ui/scss/helper/sizing/_height.md').then(
|
|
|
|
wrapDoc
|
|
|
|
)
|
2022-02-10 13:50:12 +08:00
|
|
|
)
|
2020-12-01 12:12:19 +08:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
label: 'Typography',
|
|
|
|
children: [
|
2021-06-04 10:25:25 +08:00
|
|
|
{
|
|
|
|
label: 'Font Family',
|
|
|
|
path: '/zh-CN/style/typography/font-family',
|
2022-02-10 13:50:12 +08:00
|
|
|
component: React.lazy(() =>
|
2022-11-02 22:45:12 +08:00
|
|
|
import(
|
|
|
|
'../../packages/amis-ui/scss/helper/typography/_font-family.md'
|
|
|
|
).then(wrapDoc)
|
2022-02-10 13:50:12 +08:00
|
|
|
)
|
2021-06-04 10:25:25 +08:00
|
|
|
},
|
|
|
|
|
2020-12-01 12:12:19 +08:00
|
|
|
{
|
|
|
|
label: 'Font Size',
|
2021-02-02 10:55:26 +08:00
|
|
|
path: '/zh-CN/style/typography/font-size',
|
2022-02-10 13:50:12 +08:00
|
|
|
component: React.lazy(() =>
|
2022-11-02 22:45:12 +08:00
|
|
|
import(
|
|
|
|
'../../packages/amis-ui/scss/helper/typography/_font-size.md'
|
|
|
|
).then(wrapDoc)
|
2022-02-10 13:50:12 +08:00
|
|
|
)
|
2020-12-01 12:12:19 +08:00
|
|
|
},
|
|
|
|
|
|
|
|
{
|
2020-12-21 10:08:40 +08:00
|
|
|
label: 'Font style',
|
2021-02-02 10:55:26 +08:00
|
|
|
path: '/zh-CN/style/typography/font-style',
|
2022-02-10 13:50:12 +08:00
|
|
|
component: React.lazy(() =>
|
2022-11-02 22:45:12 +08:00
|
|
|
import(
|
|
|
|
'../../packages/amis-ui/scss/helper/typography/_font-style.md'
|
|
|
|
).then(wrapDoc)
|
2022-02-10 13:50:12 +08:00
|
|
|
)
|
2020-12-01 12:12:19 +08:00
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
label: 'Font Weight',
|
2021-02-02 10:55:26 +08:00
|
|
|
path: '/zh-CN/style/typography/font-weight',
|
2022-02-10 13:50:12 +08:00
|
|
|
component: React.lazy(() =>
|
2022-11-02 22:45:12 +08:00
|
|
|
import(
|
|
|
|
'../../packages/amis-ui/scss/helper/typography/_font-weight.md'
|
|
|
|
).then(wrapDoc)
|
2022-02-10 13:50:12 +08:00
|
|
|
)
|
2020-12-01 12:12:19 +08:00
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
label: 'Letter Spacing',
|
2021-02-02 10:55:26 +08:00
|
|
|
path: '/zh-CN/style/typography/letter-spacing',
|
2022-02-10 13:50:12 +08:00
|
|
|
component: React.lazy(() =>
|
2022-11-02 22:45:12 +08:00
|
|
|
import(
|
|
|
|
'../../packages/amis-ui/scss/helper/typography/_letter-spacing.md'
|
|
|
|
).then(wrapDoc)
|
2022-02-10 13:50:12 +08:00
|
|
|
)
|
2020-12-01 12:12:19 +08:00
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
label: 'Line Height',
|
2021-02-02 10:55:26 +08:00
|
|
|
path: '/zh-CN/style/typography/line-height',
|
2022-02-10 13:50:12 +08:00
|
|
|
component: React.lazy(() =>
|
2022-11-02 22:45:12 +08:00
|
|
|
import(
|
|
|
|
'../../packages/amis-ui/scss/helper/typography/_line-height.md'
|
|
|
|
).then(wrapDoc)
|
2022-02-10 13:50:12 +08:00
|
|
|
)
|
2020-12-01 12:12:19 +08:00
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
label: 'List Style Type',
|
2021-02-02 10:55:26 +08:00
|
|
|
path: '/zh-CN/style/typography/list-style-type',
|
2022-02-10 13:50:12 +08:00
|
|
|
component: React.lazy(() =>
|
2022-11-02 22:45:12 +08:00
|
|
|
import(
|
|
|
|
'../../packages/amis-ui/scss/helper/typography/_list-style-type.md'
|
|
|
|
).then(wrapDoc)
|
2022-02-10 13:50:12 +08:00
|
|
|
)
|
2020-12-01 12:12:19 +08:00
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
label: 'Text Alignment',
|
2021-02-02 10:55:26 +08:00
|
|
|
path: '/zh-CN/style/typography/text-align',
|
2022-02-10 13:50:12 +08:00
|
|
|
component: React.lazy(() =>
|
2022-11-02 22:45:12 +08:00
|
|
|
import(
|
|
|
|
'../../packages/amis-ui/scss/helper/typography/_text-align.md'
|
|
|
|
).then(wrapDoc)
|
2022-02-10 13:50:12 +08:00
|
|
|
)
|
2020-12-01 12:12:19 +08:00
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
label: 'Text Color',
|
2021-02-02 10:55:26 +08:00
|
|
|
path: '/zh-CN/style/typography/text-color',
|
2022-02-10 13:50:12 +08:00
|
|
|
component: React.lazy(() =>
|
2022-11-02 22:45:12 +08:00
|
|
|
import(
|
|
|
|
'../../packages/amis-ui/scss/helper/typography/_text-color.md'
|
|
|
|
).then(wrapDoc)
|
2022-02-10 13:50:12 +08:00
|
|
|
)
|
2020-12-01 12:12:19 +08:00
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
label: 'Text Decoration',
|
2021-02-02 10:55:26 +08:00
|
|
|
path: '/zh-CN/style/typography/text-decoration',
|
2022-02-10 13:50:12 +08:00
|
|
|
component: React.lazy(() =>
|
2022-11-02 22:45:12 +08:00
|
|
|
import(
|
|
|
|
'../../packages/amis-ui/scss/helper/typography/_text-decoration.md'
|
|
|
|
).then(wrapDoc)
|
2022-02-10 13:50:12 +08:00
|
|
|
)
|
2020-12-01 12:12:19 +08:00
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
label: 'Text Transform',
|
2021-02-02 10:55:26 +08:00
|
|
|
path: '/zh-CN/style/typography/text-transform',
|
2022-02-10 13:50:12 +08:00
|
|
|
component: React.lazy(() =>
|
2022-11-02 22:45:12 +08:00
|
|
|
import(
|
|
|
|
'../../packages/amis-ui/scss/helper/typography/_text-transform.md'
|
|
|
|
).then(wrapDoc)
|
2022-02-10 13:50:12 +08:00
|
|
|
)
|
2020-12-01 12:12:19 +08:00
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
label: 'Vertical Alignment',
|
2021-02-02 10:55:26 +08:00
|
|
|
path: '/zh-CN/style/typography/vertical-align',
|
2022-02-10 13:50:12 +08:00
|
|
|
component: React.lazy(() =>
|
2022-11-02 22:45:12 +08:00
|
|
|
import(
|
|
|
|
'../../packages/amis-ui/scss/helper/typography/_vertical-align.md'
|
|
|
|
).then(wrapDoc)
|
2022-02-10 13:50:12 +08:00
|
|
|
)
|
2020-12-01 12:12:19 +08:00
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
label: 'Whitespace',
|
2021-02-02 10:55:26 +08:00
|
|
|
path: '/zh-CN/style/typography/whitespace',
|
2022-02-10 13:50:12 +08:00
|
|
|
component: React.lazy(() =>
|
2022-11-02 22:45:12 +08:00
|
|
|
import(
|
|
|
|
'../../packages/amis-ui/scss/helper/typography/_whitespace.md'
|
|
|
|
).then(wrapDoc)
|
2022-02-10 13:50:12 +08:00
|
|
|
)
|
2020-12-01 12:12:19 +08:00
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
label: 'Word Break',
|
2021-02-02 10:55:26 +08:00
|
|
|
path: '/zh-CN/style/typography/word-break',
|
2022-02-10 13:50:12 +08:00
|
|
|
component: React.lazy(() =>
|
2022-11-02 22:45:12 +08:00
|
|
|
import(
|
|
|
|
'../../packages/amis-ui/scss/helper/typography/_word-break.md'
|
|
|
|
).then(wrapDoc)
|
2022-02-10 13:50:12 +08:00
|
|
|
)
|
2020-12-01 12:12:19 +08:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
label: 'Backgrounds',
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
label: 'Background Color',
|
2021-02-02 10:55:26 +08:00
|
|
|
path: '/zh-CN/style/background/background-color',
|
2022-02-10 13:50:12 +08:00
|
|
|
component: React.lazy(() =>
|
2022-11-02 22:45:12 +08:00
|
|
|
import(
|
|
|
|
'../../packages/amis-ui/scss/helper/background/_background-color.md'
|
|
|
|
).then(wrapDoc)
|
2022-02-10 13:50:12 +08:00
|
|
|
)
|
2020-12-01 12:12:19 +08:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
label: 'BORDERS',
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
label: 'Border Radius',
|
2021-02-02 10:55:26 +08:00
|
|
|
path: '/zh-CN/style/border/border-radius',
|
2022-02-10 13:50:12 +08:00
|
|
|
component: React.lazy(() =>
|
2022-11-02 22:45:12 +08:00
|
|
|
import(
|
|
|
|
'../../packages/amis-ui/scss/helper/border/_border-radius.md'
|
|
|
|
).then(wrapDoc)
|
2022-02-10 13:50:12 +08:00
|
|
|
)
|
2020-12-01 12:12:19 +08:00
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
label: 'Border Width',
|
2021-02-02 10:55:26 +08:00
|
|
|
path: '/zh-CN/style/border/border-width',
|
2022-02-10 13:50:12 +08:00
|
|
|
component: React.lazy(() =>
|
2022-11-02 22:45:12 +08:00
|
|
|
import(
|
|
|
|
'../../packages/amis-ui/scss/helper/border/_border-width.md'
|
|
|
|
).then(wrapDoc)
|
2022-02-10 13:50:12 +08:00
|
|
|
)
|
2020-12-01 12:12:19 +08:00
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
label: 'Border Color',
|
2021-02-02 10:55:26 +08:00
|
|
|
path: '/zh-CN/style/border/border-color',
|
2022-02-10 13:50:12 +08:00
|
|
|
component: React.lazy(() =>
|
2022-11-02 22:45:12 +08:00
|
|
|
import(
|
|
|
|
'../../packages/amis-ui/scss/helper/border/_border-color.md'
|
|
|
|
).then(wrapDoc)
|
2022-02-10 13:50:12 +08:00
|
|
|
)
|
2020-12-01 12:12:19 +08:00
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
label: 'Border Style',
|
2021-02-02 10:55:26 +08:00
|
|
|
path: '/zh-CN/style/border/border-style',
|
2022-02-10 13:50:12 +08:00
|
|
|
component: React.lazy(() =>
|
2022-11-02 22:45:12 +08:00
|
|
|
import(
|
|
|
|
'../../packages/amis-ui/scss/helper/border/_border-style.md'
|
|
|
|
).then(wrapDoc)
|
2022-02-10 13:50:12 +08:00
|
|
|
)
|
2020-12-01 12:12:19 +08:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
label: 'Effect',
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
label: 'Box Shadow',
|
2021-02-02 10:55:26 +08:00
|
|
|
path: '/zh-CN/style/effect/box-shadow',
|
2022-02-10 13:50:12 +08:00
|
|
|
component: React.lazy(() =>
|
2022-11-02 22:45:12 +08:00
|
|
|
import(
|
|
|
|
'../../packages/amis-ui/scss/helper/effect/_box-shadow.md'
|
|
|
|
).then(wrapDoc)
|
2022-02-10 13:50:12 +08:00
|
|
|
)
|
2020-12-01 12:12:19 +08:00
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
label: 'Opacity',
|
2021-02-02 10:55:26 +08:00
|
|
|
path: '/zh-CN/style/effect/opacity',
|
2022-02-10 13:50:12 +08:00
|
|
|
component: React.lazy(() =>
|
2022-11-02 22:45:12 +08:00
|
|
|
import('../../packages/amis-ui/scss/helper/effect/_opacity.md').then(
|
|
|
|
wrapDoc
|
|
|
|
)
|
2022-02-10 13:50:12 +08:00
|
|
|
)
|
2020-12-01 12:12:19 +08:00
|
|
|
}
|
|
|
|
]
|
2020-11-30 00:37:09 +08:00
|
|
|
}
|
|
|
|
];
|
|
|
|
|
|
|
|
export default class CSSDocs extends React.PureComponent<any> {
|
|
|
|
componentDidMount() {
|
|
|
|
this.props.setNavigations(cssDocs);
|
|
|
|
}
|
|
|
|
|
|
|
|
componentDidUpdate() {
|
2022-06-17 17:26:36 +08:00
|
|
|
this.props.setNavigations(cssDocs, false);
|
2020-11-30 00:37:09 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
render() {
|
|
|
|
return (
|
2022-02-10 13:50:12 +08:00
|
|
|
<Switch>
|
|
|
|
{navigations2route(cssDocs, {
|
2020-11-30 00:37:09 +08:00
|
|
|
theme: this.props.theme,
|
|
|
|
classPrefix: this.props.classPrefix,
|
|
|
|
locale: this.props.locale,
|
|
|
|
viewMode: this.props.viewMode,
|
|
|
|
offScreen: this.props.offScreen
|
|
|
|
})}
|
2022-02-10 13:50:12 +08:00
|
|
|
{/* {React.cloneElement(this.props.children as any, {
|
|
|
|
...(this.props.children as any).props,
|
|
|
|
theme: this.props.theme,
|
|
|
|
classPrefix: this.props.classPrefix,
|
|
|
|
locale: this.props.locale,
|
|
|
|
viewMode: this.props.viewMode,
|
|
|
|
offScreen: this.props.offScreen
|
|
|
|
})} */}
|
|
|
|
</Switch>
|
2020-11-30 00:37:09 +08:00
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|