amis2/examples/components/Components.tsx

1211 lines
35 KiB
TypeScript
Raw Normal View History

import React from 'react';
import {Switch} from 'react-router-dom';
import {navigations2route} from './App';
import makeMarkdownRenderer from './MdRenderer';
function wrapDoc(doc: any) {
return {
default: makeMarkdownRenderer(doc)
};
}
export const components = [
{
label: '布局',
children: [
{
label: '组件介绍',
path: '/zh-CN/components/index',
component: React.lazy(() =>
import('../../docs/zh-CN/components/index.md').then(wrapDoc)
)
},
{
label: 'Page 页面',
path: '/zh-CN/components/page',
component: React.lazy(() =>
import('../../docs/zh-CN/components/page.md').then(wrapDoc)
)
},
{
label: 'Container 容器',
path: '/zh-CN/components/container',
component: React.lazy(() =>
import('../../docs/zh-CN/components/container.md').then(wrapDoc)
)
},
{
label: 'Collapse 折叠器',
path: '/zh-CN/components/collapse',
component: React.lazy(() =>
import('../../docs/zh-CN/components/collapse.md').then(wrapDoc)
)
},
{
label: 'Divider 分割线',
path: '/zh-CN/components/divider',
component: React.lazy(() =>
import('../../docs/zh-CN/components/divider.md').then(wrapDoc)
)
},
{
label: 'Flex 布局',
path: '/zh-CN/components/flex',
component: React.lazy(() =>
import('../../docs/zh-CN/components/flex.md').then(wrapDoc)
)
},
{
label: 'Grid 水平分栏',
path: '/zh-CN/components/grid',
component: React.lazy(() =>
import('../../docs/zh-CN/components/grid.md').then(wrapDoc)
)
},
{
label: 'Grid 2D 布局',
path: '/zh-CN/components/grid-2d',
component: React.lazy(() =>
import('../../docs/zh-CN/components/grid-2d.md').then(wrapDoc)
)
},
{
label: 'HBox 布局',
path: '/zh-CN/components/hbox',
component: React.lazy(() =>
import('../../docs/zh-CN/components/hbox.md').then(wrapDoc)
)
},
{
label: 'Pagination分页',
path: '/zh-CN/components/pagination',
component: React.lazy(() =>
import('../../docs/zh-CN/components/pagination.md').then(wrapDoc)
)
},
{
label: 'PaginationWrapper 分页容器',
path: '/zh-CN/components/pagination-wrapper',
component: React.lazy(() =>
import('../../docs/zh-CN/components/pagination-wrapper.md').then(
wrapDoc
)
)
},
{
label: 'Panel 面板',
path: '/zh-CN/components/panel',
component: React.lazy(() =>
import('../../docs/zh-CN/components/panel.md').then(wrapDoc)
)
},
{
label: 'Tabs 选项卡',
path: '/zh-CN/components/tabs',
component: React.lazy(() =>
import('../../docs/zh-CN/components/tabs.md').then(wrapDoc)
)
},
{
label: 'Wrapper 包裹容器',
path: '/zh-CN/components/wrapper',
component: React.lazy(() =>
import('../../docs/zh-CN/components/wrapper.md').then(wrapDoc)
)
},
{
label: 'Portlet 门户栏目',
path: '/zh-CN/components/portlet',
component: React.lazy(() =>
import('../../docs/zh-CN/components/portlet.md').then(wrapDoc)
)
}
]
},
{
label: '功能',
children: [
{
label: 'Action 行为按钮',
path: '/zh-CN/components/action',
component: React.lazy(() =>
import('../../docs/zh-CN/components/action.md').then(wrapDoc)
)
},
{
label: 'App 多页应用',
path: '/zh-CN/components/app',
component: React.lazy(() =>
import('../../docs/zh-CN/components/app.md').then(wrapDoc)
)
},
{
label: 'Button 按钮',
path: '/zh-CN/components/button',
component: React.lazy(() =>
import('../../docs/zh-CN/components/button.md').then(wrapDoc)
)
},
{
label: 'ButtonGroup 按钮组',
path: '/zh-CN/components/button-group',
component: React.lazy(() =>
import('../../docs/zh-CN/components/button-group.md').then(wrapDoc)
)
},
{
label: 'Breadcrumb 面包屑',
path: '/zh-CN/components/breadcrumb',
component: React.lazy(() =>
import('../../docs/zh-CN/components/breadcrumb.md').then(wrapDoc)
)
},
{
label: 'Custom 自定义组件',
path: '/zh-CN/components/custom',
component: React.lazy(() =>
import('../../docs/zh-CN/components/custom.md').then(wrapDoc)
)
},
{
label: 'DropDownButton 下拉按钮',
path: '/zh-CN/components/dropdown-button',
component: React.lazy(() =>
import('../../docs/zh-CN/components/dropdown-button.md').then(wrapDoc)
)
},
{
label: 'Service 功能型容器',
path: '/zh-CN/components/service',
component: React.lazy(() =>
import('../../docs/zh-CN/components/service.md').then(wrapDoc)
)
},
{
label: 'Nav 导航',
path: '/zh-CN/components/nav',
component: React.lazy(() =>
import('../../docs/zh-CN/components/nav.md').then(wrapDoc)
)
},
{
label: 'AnchorNav 锚点导航',
path: '/zh-CN/components/anchor-nav',
component: React.lazy(() =>
import('../../docs/zh-CN/components/anchor-nav.md').then(wrapDoc)
)
},
2022-03-01 10:23:17 +08:00
{
label: 'TooltipWrapper 文字提示容器',
path: '/zh-CN/components/tooltip',
component: React.lazy(() =>
import('../../docs/zh-CN/components/tooltip-wrapper.md').then(wrapDoc)
)
},
{
label: 'PopOver 弹出提示',
path: '/zh-CN/components/popover',
component: React.lazy(() =>
import('../../docs/zh-CN/components/popover.md').then(wrapDoc)
)
}
]
},
{
label: '数据输入',
children: [
{
label: 'Form 表单',
path: '/zh-CN/components/form/index',
component: React.lazy(() =>
import('../../docs/zh-CN/components/form/index.md').then(wrapDoc)
)
},
{
label: 'FormItem 表单项通用',
path: '/zh-CN/components/form/formitem',
component: React.lazy(() =>
import('../../docs/zh-CN/components/form/formitem.md').then(wrapDoc)
)
},
{
label: 'Control 表单项包裹',
path: '/zh-CN/components/form/control',
component: React.lazy(() =>
import('../../docs/zh-CN/components/form/control.md').then(wrapDoc)
)
},
{
label: 'Options 选择器表单项',
path: '/zh-CN/components/form/options',
component: React.lazy(() =>
import('../../docs/zh-CN/components/form/options.md').then(wrapDoc)
)
},
{
2021-06-03 22:09:30 +08:00
label: 'InputArray 数组输入框',
path: '/zh-CN/components/form/input-array',
component: React.lazy(() =>
2021-06-03 22:09:30 +08:00
import('../../docs/zh-CN/components/form/input-array.md').then(
wrapDoc
)
)
},
{
2021-10-27 11:13:06 +08:00
label: 'ButtonToolbar 按钮工具栏',
path: '/zh-CN/components/form/button-toolbar',
component: React.lazy(() =>
import('../../docs/zh-CN/components/form/button-toolbar.md').then(
wrapDoc
)
)
},
{
2021-10-27 11:13:06 +08:00
label: 'ButtonGroupSelect 按钮点选',
2021-06-03 22:09:30 +08:00
path: '/zh-CN/components/form/button-group-select',
component: React.lazy(() =>
2021-06-03 22:09:30 +08:00
import(
'../../docs/zh-CN/components/form/button-group-select.md'
).then(wrapDoc)
)
},
{
2021-10-27 11:13:06 +08:00
label: 'ChainedSelect 链式下拉框',
path: '/zh-CN/components/form/chain-select',
component: React.lazy(() =>
import('../../docs/zh-CN/components/form/chain-select.md').then(
wrapDoc
)
)
},
{
label: 'Checkbox 勾选框',
path: '/zh-CN/components/form/checkbox',
component: React.lazy(() =>
import('../../docs/zh-CN/components/form/checkbox.md').then(wrapDoc)
)
},
{
label: 'Checkboxes 复选框',
path: '/zh-CN/components/form/checkboxes',
component: React.lazy(() =>
import('../../docs/zh-CN/components/form/checkboxes.md').then(wrapDoc)
)
},
{
2021-06-03 22:09:30 +08:00
label: 'InputCity 城市选择器',
path: '/zh-CN/components/form/input-city',
component: React.lazy(() =>
import('../../docs/zh-CN/components/form/input-city.md').then(wrapDoc)
)
},
{
2021-06-03 22:09:30 +08:00
label: 'InputColor 颜色选择器',
path: '/zh-CN/components/form/input-color',
component: React.lazy(() =>
2021-06-03 22:09:30 +08:00
import('../../docs/zh-CN/components/form/input-color.md').then(
wrapDoc
)
)
},
{
label: 'Combo 组合',
path: '/zh-CN/components/form/combo',
component: React.lazy(() =>
import('../../docs/zh-CN/components/form/combo.md').then(wrapDoc)
)
},
{
2021-10-27 11:13:06 +08:00
label: 'ConditionBuilder 条件组合',
path: '/zh-CN/components/form/condition-builder',
component: React.lazy(() =>
import('../../docs/zh-CN/components/form/condition-builder.md').then(
wrapDoc
)
)
},
{
2021-06-03 22:09:30 +08:00
label: 'InputDate 日期选择器',
path: '/zh-CN/components/form/input-date',
component: React.lazy(() =>
import('../../docs/zh-CN/components/form/input-date.md').then(wrapDoc)
)
},
{
2021-06-03 22:09:30 +08:00
label: 'InputDatetime 日期时间选择器',
path: '/zh-CN/components/form/input-datetime',
component: React.lazy(() =>
2021-06-03 22:09:30 +08:00
import('../../docs/zh-CN/components/form/input-datetime.md').then(
wrapDoc
)
)
},
{
2021-06-03 22:09:30 +08:00
label: 'InputMonth 月份选择器',
path: '/zh-CN/components/form/input-month',
component: React.lazy(() =>
2021-06-03 22:09:30 +08:00
import('../../docs/zh-CN/components/form/input-month.md').then(
wrapDoc
)
)
},
{
2021-06-03 22:09:30 +08:00
label: 'InputDateRange 日期范围选择器',
path: '/zh-CN/components/form/input-date-range',
component: React.lazy(() =>
2021-06-03 22:09:30 +08:00
import('../../docs/zh-CN/components/form/input-date-range.md').then(
wrapDoc
)
)
},
{
2021-06-03 22:09:30 +08:00
label: 'InputDatetimeRange 日期时间范围',
path: '/zh-CN/components/form/input-datetime-range',
component: React.lazy(() =>
import(
'../../docs/zh-CN/components/form/input-datetime-range.md'
).then(wrapDoc)
)
},
{
2021-06-03 22:09:30 +08:00
label: 'InputMonthRange 月份范围',
path: '/zh-CN/components/form/input-month-range',
component: React.lazy(() =>
2021-06-03 22:09:30 +08:00
import('../../docs/zh-CN/components/form/input-month-range.md').then(
wrapDoc
)
)
},
{
label: 'InputKV 键值对',
path: '/zh-CN/components/form/input-kv',
component: React.lazy(() =>
import('../../docs/zh-CN/components/form/input-kv.md').then(wrapDoc)
)
},
{
label: 'InputKVS 键值对象',
path: '/zh-CN/components/form/input-kvs',
component: React.lazy(() =>
import('../../docs/zh-CN/components/form/input-kvs.md').then(wrapDoc)
)
},
{
label: 'InputFormula 公式编辑器',
path: '/zh-CN/components/form/input-formula',
component: React.lazy(() =>
import('../../docs/zh-CN/components/form/input-formula.md').then(
wrapDoc
)
)
},
{
label: 'DiffEditor 对比编辑器',
path: '/zh-CN/components/form/diff-editor',
component: React.lazy(() =>
import('../../docs/zh-CN/components/form/diff-editor.md').then(
wrapDoc
)
)
},
{
label: 'Editor 代码编辑器',
path: '/zh-CN/components/form/editor',
component: React.lazy(() =>
import('../../docs/zh-CN/components/form/editor.md').then(wrapDoc)
)
},
{
label: 'FieldSet 表单项集合',
path: '/zh-CN/components/form/fieldset',
component: React.lazy(() =>
import('../../docs/zh-CN/components/form/fieldset.md').then(wrapDoc)
)
},
{
label: 'InputExcel Excel 解析',
path: '/zh-CN/components/form/input-excel',
component: React.lazy(() =>
import('../../docs/zh-CN/components/form/input-excel.md').then(
wrapDoc
)
)
},
{
2021-06-03 22:09:30 +08:00
label: 'InputFile 文件上传',
path: '/zh-CN/components/form/input-file',
component: React.lazy(() =>
import('../../docs/zh-CN/components/form/input-file.md').then(wrapDoc)
)
},
{
label: 'Formula 公式',
path: '/zh-CN/components/form/formula',
component: React.lazy(() =>
import('../../docs/zh-CN/components/form/formula.md').then(wrapDoc)
)
},
{
label: 'Group 表单项组',
path: '/zh-CN/components/form/group',
component: React.lazy(() =>
import('../../docs/zh-CN/components/form/group.md').then(wrapDoc)
)
},
{
label: 'Hidden 隐藏字段',
path: '/zh-CN/components/form/hidden',
component: React.lazy(() =>
import('../../docs/zh-CN/components/form/hidden.md').then(wrapDoc)
)
},
{
2021-06-03 22:09:30 +08:00
label: 'InputImage 图片',
path: '/zh-CN/components/form/input-image',
component: React.lazy(() =>
2021-06-03 22:09:30 +08:00
import('../../docs/zh-CN/components/form/input-image.md').then(
wrapDoc
)
)
},
{
2021-10-27 11:13:06 +08:00
label: 'InputGroup 输入框组合',
path: '/zh-CN/components/form/input-group',
component: React.lazy(() =>
import('../../docs/zh-CN/components/form/input-group.md').then(
wrapDoc
)
)
},
{
2021-06-03 22:09:30 +08:00
label: 'ListSelect 选择器',
path: '/zh-CN/components/form/list-select',
component: React.lazy(() =>
2021-06-03 22:09:30 +08:00
import('../../docs/zh-CN/components/form/list-select.md').then(
wrapDoc
)
)
},
{
2021-06-03 22:09:30 +08:00
label: 'LocationPicker 地理位置',
path: '/zh-CN/components/form/location-picker',
component: React.lazy(() =>
2021-06-03 22:09:30 +08:00
import('../../docs/zh-CN/components/form/location-picker.md').then(
wrapDoc
)
)
},
{
label: 'UUID 随机 ID',
path: '/zh-CN/components/form/uuid',
component: React.lazy(() =>
import('../../docs/zh-CN/components/form/uuid.md').then(wrapDoc)
)
},
{
2021-06-03 22:09:30 +08:00
label: 'MatrixCheckboxes 矩阵勾选',
path: '/zh-CN/components/form/matrix-checkboxes',
component: React.lazy(() =>
2021-06-03 22:09:30 +08:00
import('../../docs/zh-CN/components/form/matrix-checkboxes.md').then(
wrapDoc
)
)
},
{
label: 'NestedSelect 级联选择器',
path: '/zh-CN/components/form/nestedselect',
component: React.lazy(() =>
import('../../docs/zh-CN/components/form/nestedselect.md').then(
wrapDoc
)
)
},
{
2021-06-03 22:09:30 +08:00
label: 'InputNumber 数字输入',
path: '/zh-CN/components/form/input-number',
component: React.lazy(() =>
2021-06-03 22:09:30 +08:00
import('../../docs/zh-CN/components/form/input-number.md').then(
wrapDoc
)
)
},
{
label: 'InputPassword 密码输入框',
path: '/zh-CN/components/form/input-password',
component: React.lazy(() =>
import('../../docs/zh-CN/components/form/input-password.md').then(
wrapDoc
)
)
},
{
label: 'Picker 列表选择器',
path: '/zh-CN/components/form/picker',
component: React.lazy(() =>
import('../../docs/zh-CN/components/form/picker.md').then(wrapDoc)
)
},
{
2021-06-03 22:09:30 +08:00
label: 'InputQuarter 季度',
path: '/zh-CN/components/form/input-quarter',
component: React.lazy(() =>
2021-06-03 22:09:30 +08:00
import('../../docs/zh-CN/components/form/input-quarter.md').then(
wrapDoc
)
)
},
{
label: 'InputQuarterRange 季度范围',
path: '/zh-CN/components/form/input-quarter-range',
component: React.lazy(() =>
import(
'../../docs/zh-CN/components/form/input-quarter-range.md'
).then(wrapDoc)
)
},
{
label: 'Radio 单选框',
path: '/zh-CN/components/form/radio',
component: React.lazy(() =>
import('../../docs/zh-CN/components/form/radio.md').then(wrapDoc)
)
},
{
label: 'Radios 单选框',
path: '/zh-CN/components/form/radios',
component: React.lazy(() =>
import('../../docs/zh-CN/components/form/radios.md').then(wrapDoc)
)
},
2022-02-10 20:08:17 +08:00
{
style:cxd主题对齐云舍4.0样式 (#4354) * Select Options等组件样式对齐4.0 * 更新测试快照 * 修改部分测试用例 * feat:4.0样式修改 * 修改checkboxes hover问题 * Feat image 4.0 (#4242) * faet: Step组件支持点状步骤条、指定标签放置位置、新增超出内容显示浮层 * feat: Step组件支持点状步骤条、指定标签放置位置、新增超出内容显示浮层 * faet: Step组件支持点状步骤条、指定标签放置位置、新增超出内容显示浮层 * faet: Step组件支持点状步骤条、指定标签放置位置、新增超出内容显示浮层 * fix: 点状步骤条样式修改 * fix: inputTree组件对齐4.0标准 * fix: textarea组件对齐4.0标准 * fix: textarea组件对齐4.0标准 * fix: inputImage组件对齐4.0标准 * fix: inputImage组件对齐4.0标准 * fix: inputImage组件对齐4.0标准 * fix: inputImage组件对齐4.0标准 * fix: image组件样式优化 * fix: image组件样式优化 * fix: image组件样式优化 * fix: image组件样式优化 Co-authored-by: qiaoganggang <qiaoganggang@baidu.com> * fix: textarea组件对齐4.0标准 (#4149) * faet: Step组件支持点状步骤条、指定标签放置位置、新增超出内容显示浮层 * feat: Step组件支持点状步骤条、指定标签放置位置、新增超出内容显示浮层 * faet: Step组件支持点状步骤条、指定标签放置位置、新增超出内容显示浮层 * faet: Step组件支持点状步骤条、指定标签放置位置、新增超出内容显示浮层 * fix: 点状步骤条样式修改 * fix: inputTree组件对齐4.0标准 * fix: inputTree组件对齐4.0标准 * fix: textarea组件对齐4.0标准 * fix: textarea组件对齐4.0标准 Co-authored-by: qiaoganggang <qiaoganggang@baidu.com> * fix: inputTree 组价对齐4.0标准 (#4148) * faet: Step组件支持点状步骤条、指定标签放置位置、新增超出内容显示浮层 * feat: Step组件支持点状步骤条、指定标签放置位置、新增超出内容显示浮层 * faet: Step组件支持点状步骤条、指定标签放置位置、新增超出内容显示浮层 * faet: Step组件支持点状步骤条、指定标签放置位置、新增超出内容显示浮层 * fix: 点状步骤条样式修改 * fix: inputTree组件对齐4.0标准 * fix: inputTree组件对齐4.0标准 * fix: inputtree组件图标颜色修改 Co-authored-by: qiaoganggang <qiaoganggang@baidu.com> * feat: 部分组件样式问题修复 (#4154) * feat: input-text 样式 * feat: input-range 样式 * feat: table 样式 1 * feat: search-box * feat: curd icon * feat: table 空状态 * feat: input-text 多选,最大宽度设置 * feat: search-box 搜索图标颜色 * feat: crud 编辑、过滤、搜索、排序 图标样式修改 * feat: 更新快照 * feat: 更新快照 2 * feat: curd fix * feat: curd edit icon fix * feat: input-password 不可见 icon 修改 * feat: input-password snapshot update * docs:完善对话框size参数说明 * feat: Log 组件支持虚拟渲染及限制最大行数 * 修复不支持 loading 问题 * 换一下名字 Co-authored-by: liuzedong02 <liuzedong02@baidu.com> Co-authored-by: liweijian <liweijian@hkmtl.com> Co-authored-by: wuduoyi <wuduoyi@baidu.com> Co-authored-by: RUNZE LU <36724300+lurunze1226@users.noreply.github.com> * fix:修复删除图标颜色问题 (#4245) * faet: Step组件支持点状步骤条、指定标签放置位置、新增超出内容显示浮层 * feat: Step组件支持点状步骤条、指定标签放置位置、新增超出内容显示浮层 * faet: Step组件支持点状步骤条、指定标签放置位置、新增超出内容显示浮层 * faet: Step组件支持点状步骤条、指定标签放置位置、新增超出内容显示浮层 * fix: 点状步骤条样式修改 * fix: inputTree组件对齐4.0标准 * fix: textarea组件对齐4.0标准 * fix: textarea组件对齐4.0标准 * fix: inputImage组件对齐4.0标准 * fix: inputImage组件对齐4.0标准 * fix: inputImage组件对齐4.0标准 * fix: inputImage组件对齐4.0标准 * fix: image组件样式优化 * fix: image组件样式优化 * fix: image组件样式优化 * fix: image组件样式优化 * fix: 修复conditionbuilder组价图标颜色问题 Co-authored-by: qiaoganggang <qiaoganggang@baidu.com> * form表单对齐云社4.0 (#4248) * feat: form增加表单项 label文本对齐方式选项 * fix: remark 支持在表单内配置 * style: form 间距对齐云社4.0 Co-authored-by: sarding <hongfuquan@baidu.com> * Fix chart radios name (#4251) * fix: Chart 单选框 修改为 ChartRadios 图表单选框 * fix: input-password 修改 可见 图标 Co-authored-by: liuzedong02 <liuzedong02@baidu.com> * feat: checkboxes内边距&nestedSelect箭头修改 (#4254) Co-authored-by: xujiahao01 <xujiahao01@baidu.com> * Feature style 4.0 cxd (#4261) * feat: 日期&折叠面板&提示样式对齐 * fix:测试用例修复 * feat: timeRange开始和结束分开&日期样式优化 * styles: 日历样式修复 Co-authored-by: hongyang03 <hongyang03@baidu.com> * 整体字体大小调整 (#4264) * feat: form增加表单项 label文本对齐方式选项 * fix: remark 支持在表单内配置 * style: form 间距对齐云社4.0 * 修改表单的字体 Co-authored-by: sarding <hongfuquan@baidu.com> * inputfile 和 drawer对齐云社4.0 (#4249) * fix: drawer 和 inputfile 关闭图标对齐云社4.0 * fix:修改 drawer的图标大小 和边框圆角 * drawer 样式调整 Co-authored-by: sarding <hongfuquan@baidu.com> * Fix style (#4265) * fix: input-password icon 高度 * fix: input-password icon 换行问题 Co-authored-by: liuzedong02 <liuzedong02@baidu.com> * fix: curd 图标垂直居中 (#4271) Co-authored-by: liuzedong02 <liuzedong02@baidu.com> * fix:修复nestedSelect无法动态调整位置及溢出问题 (#4292) Co-authored-by: xujiahao01 <xujiahao01@baidu.com> * style: 优化switch组件动效 (#4302) * style:优化date组件最小宽度 (#4303) * style:cxd主题移动端基础字号调整为16px (#4305) * style:switch调整动效速度 * chore:更新快照 * chore:更新快照 Co-authored-by: xujiahao01 <xujiahao01@baidu.com> Co-authored-by: qiaogg <43558337+qiaogg@users.noreply.github.com> Co-authored-by: qiaoganggang <qiaoganggang@baidu.com> Co-authored-by: sansiro <sansiro@sansiro.me> Co-authored-by: liuzedong02 <liuzedong02@baidu.com> Co-authored-by: liweijian <liweijian@hkmtl.com> Co-authored-by: wuduoyi <wuduoyi@baidu.com> Co-authored-by: RUNZE LU <36724300+lurunze1226@users.noreply.github.com> Co-authored-by: sarding <37691952+sarding@users.noreply.github.com> Co-authored-by: sarding <hongfuquan@baidu.com> Co-authored-by: 徐佳豪 <53201551+blue-squirrel@users.noreply.github.com> Co-authored-by: HongYang <33488114+hy993658052@users.noreply.github.com> Co-authored-by: hongyang03 <hongyang03@baidu.com>
2022-05-18 10:03:56 +08:00
label: 'ChartRadios 图表单选框',
2022-02-10 20:08:17 +08:00
path: '/zh-CN/components/form/chart-radios',
component: React.lazy(() =>
import('../../docs/zh-CN/components/form/chart-radios.md').then(
wrapDoc
)
)
},
{
2021-06-03 22:09:30 +08:00
label: 'InputRating 评分',
path: '/zh-CN/components/form/input-rating',
component: React.lazy(() =>
2021-06-03 22:09:30 +08:00
import('../../docs/zh-CN/components/form/input-rating.md').then(
wrapDoc
)
)
},
{
2021-06-03 22:09:30 +08:00
label: 'InputRange 滑块',
path: '/zh-CN/components/form/input-range',
component: React.lazy(() =>
2021-06-03 22:09:30 +08:00
import('../../docs/zh-CN/components/form/input-range.md').then(
wrapDoc
)
)
},
{
2021-06-03 22:09:30 +08:00
label: 'InputRepeat 重复频率选择器',
path: '/zh-CN/components/form/input-repeat',
component: React.lazy(() =>
2021-06-03 22:09:30 +08:00
import('../../docs/zh-CN/components/form/input-repeat.md').then(
wrapDoc
)
)
},
{
label: 'InputRichText 富文本编辑器',
2021-06-03 22:09:30 +08:00
path: '/zh-CN/components/form/input-rich-text',
component: React.lazy(() =>
2021-06-03 22:09:30 +08:00
import('../../docs/zh-CN/components/form/input-rich-text.md').then(
wrapDoc
)
)
},
{
label: 'Select 下拉框',
path: '/zh-CN/components/form/select',
component: React.lazy(() =>
import('../../docs/zh-CN/components/form/select.md').then(wrapDoc)
)
},
{
2021-06-03 22:09:30 +08:00
label: 'InputSubForm 子表单',
path: '/zh-CN/components/form/input-sub-form',
component: React.lazy(() =>
2021-09-09 23:22:11 +08:00
import('../../docs/zh-CN/components/form/input-sub-form.md').then(
wrapDoc
)
)
},
{
label: 'Switch 开关',
path: '/zh-CN/components/form/switch',
component: React.lazy(() =>
import('../../docs/zh-CN/components/form/switch.md').then(wrapDoc)
)
},
{
label: 'Static 静态展示',
path: '/zh-CN/components/form/static',
component: React.lazy(() =>
import('../../docs/zh-CN/components/form/static.md').then(wrapDoc)
)
},
{
2021-06-03 22:09:30 +08:00
label: 'InputTable 表格',
path: '/zh-CN/components/form/input-table',
component: React.lazy(() =>
2021-06-03 22:09:30 +08:00
import('../../docs/zh-CN/components/form/input-table.md').then(
wrapDoc
)
)
},
{
2021-06-03 22:09:30 +08:00
label: 'InputTag 标签选择器',
path: '/zh-CN/components/form/input-tag',
component: React.lazy(() =>
import('../../docs/zh-CN/components/form/input-tag.md').then(wrapDoc)
)
},
{
2021-06-03 22:09:30 +08:00
label: 'InputText 输入框',
path: '/zh-CN/components/form/input-text',
component: React.lazy(() =>
import('../../docs/zh-CN/components/form/input-text.md').then(wrapDoc)
)
},
{
label: 'Textarea 多行输入框',
path: '/zh-CN/components/form/textarea',
component: React.lazy(() =>
import('../../docs/zh-CN/components/form/textarea.md').then(wrapDoc)
)
},
{
2021-06-03 22:09:30 +08:00
label: 'InputTime 时间',
path: '/zh-CN/components/form/input-time',
component: React.lazy(() =>
import('../../docs/zh-CN/components/form/input-time.md').then(wrapDoc)
)
},
{
label: 'InputTimeRange 时间',
path: '/zh-CN/components/form/input-time-range',
component: React.lazy(() =>
import('../../docs/zh-CN/components/form/input-time-range.md').then(
wrapDoc
)
)
},
{
label: 'Transfer 穿梭器',
path: '/zh-CN/components/form/transfer',
component: React.lazy(() =>
import('../../docs/zh-CN/components/form/transfer.md').then(wrapDoc)
)
},
{
label: 'TransferPicker 穿梭选择器',
path: '/zh-CN/components/form/transfer-picker',
component: React.lazy(() =>
import('../../docs/zh-CN/components/form/transfer-picker.md').then(
wrapDoc
)
)
},
{
label: 'TabsTransfer 组合穿梭器',
path: '/zh-CN/components/form/tabs-transfer',
component: React.lazy(() =>
import('../../docs/zh-CN/components/form/tabs-transfer.md').then(
wrapDoc
)
)
},
{
label: 'TabsTransferPicker 组合穿梭选择器',
path: '/zh-CN/components/form/tabs-transfer-picker',
component: React.lazy(() =>
import(
'../../docs/zh-CN/components/form/tabs-transfer-picker.md'
).then(wrapDoc)
)
},
{
2021-06-03 22:09:30 +08:00
label: 'InputTree 树形选择框',
path: '/zh-CN/components/form/input-tree',
component: React.lazy(() =>
import('../../docs/zh-CN/components/form/input-tree.md').then(wrapDoc)
)
},
{
label: 'TreeSelect 树形选择器',
path: '/zh-CN/components/form/treeselect',
component: React.lazy(() =>
import('../../docs/zh-CN/components/form/treeselect.md').then(wrapDoc)
)
},
{
2021-06-03 22:09:30 +08:00
label: 'InputYear 年输入',
path: '/zh-CN/components/form/input-year',
component: React.lazy(() =>
import('../../docs/zh-CN/components/form/input-year.md').then(wrapDoc)
)
},
{
label: 'InputYearRange 年份范围',
path: '/zh-CN/components/form/input-year-range',
component: React.lazy(() =>
import('../../docs/zh-CN/components/form/input-year-range.md').then(
wrapDoc
)
)
},
{
label: 'JsonSchema',
path: '/zh-CN/components/form/json-schema',
component: React.lazy(() =>
import('../../docs/zh-CN/components/form/json-schema.md').then(
wrapDoc
)
)
},
{
label: 'JsonSchema Editor',
path: '/zh-CN/components/form/json-schema-editor',
component: React.lazy(() =>
import('../../docs/zh-CN/components/form/json-schema-editor.md').then(
wrapDoc
)
)
}
]
},
{
label: '数据展示',
children: [
{
label: 'CRUD 增删改查',
path: '/zh-CN/components/crud',
component: React.lazy(() =>
import('../../docs/zh-CN/components/crud.md').then(wrapDoc)
)
},
{
label: 'Table 表格',
path: '/zh-CN/components/table',
component: React.lazy(() =>
import('../../docs/zh-CN/components/table.md').then(wrapDoc)
)
},
// {
// label: 'Table2 表格',
// path: '/zh-CN/components/table2',
// component: React.lazy(() =>
// import('../../docs/zh-CN/components/table2.md').then(wrapDoc)
// )
// },
{
label: 'Table View 表格视图',
path: '/zh-CN/components/table-view',
component: React.lazy(() =>
import('../../docs/zh-CN/components/table-view.md').then(wrapDoc)
)
},
{
label: 'Calendar 日历日程',
path: '/zh-CN/components/calendar',
component: React.lazy(() =>
import('../../docs/zh-CN/components/calendar.md').then(wrapDoc)
)
},
{
label: 'Card 卡片',
path: '/zh-CN/components/card',
component: React.lazy(() =>
import('../../docs/zh-CN/components/card.md').then(wrapDoc)
)
},
{
label: 'Cards 卡片组',
path: '/zh-CN/components/cards',
component: React.lazy(() =>
import('../../docs/zh-CN/components/cards.md').then(wrapDoc)
)
},
{
label: 'Carousel 轮播图',
path: '/zh-CN/components/carousel',
component: React.lazy(() =>
import('../../docs/zh-CN/components/carousel.md').then(wrapDoc)
)
},
{
label: 'Chart 图表',
path: '/zh-CN/components/chart',
component: React.lazy(() =>
import('../../docs/zh-CN/components/chart.md').then(wrapDoc)
)
},
{
label: 'Code 代码高亮',
path: '/zh-CN/components/code',
component: React.lazy(() =>
import('../../docs/zh-CN/components/code.md').then(wrapDoc)
)
},
{
label: 'Color 颜色',
path: '/zh-CN/components/color',
component: React.lazy(() =>
import('../../docs/zh-CN/components/color.md').then(wrapDoc)
)
},
{
label: 'Date 日期时间',
path: '/zh-CN/components/date',
component: React.lazy(() =>
import('../../docs/zh-CN/components/date.md').then(wrapDoc)
)
},
{
label: 'Each 循环渲染器',
path: '/zh-CN/components/each',
component: React.lazy(() =>
import('../../docs/zh-CN/components/each.md').then(wrapDoc)
)
},
{
label: 'Html',
path: '/zh-CN/components/html',
component: React.lazy(() =>
import('../../docs/zh-CN/components/html.md').then(wrapDoc)
)
},
{
label: 'Icon 图标',
path: '/zh-CN/components/icon',
component: React.lazy(() =>
import('../../docs/zh-CN/components/icon.md').then(wrapDoc)
)
},
{
label: 'iFrame',
path: '/zh-CN/components/iframe',
component: React.lazy(() =>
import('../../docs/zh-CN/components/iframe.md').then(wrapDoc)
)
},
{
label: 'Image 图片',
path: '/zh-CN/components/image',
component: React.lazy(() =>
import('../../docs/zh-CN/components/image.md').then(wrapDoc)
)
},
{
label: 'Images 图片集',
path: '/zh-CN/components/images',
component: React.lazy(() =>
import('../../docs/zh-CN/components/images.md').then(wrapDoc)
)
},
{
label: 'GridNav 宫格导航',
path: '/zh-CN/components/grid-nav',
component: React.lazy(() =>
import('../../docs/zh-CN/components/grid-nav.md').then(wrapDoc)
)
},
{
label: 'Json',
path: '/zh-CN/components/json',
component: React.lazy(() =>
import('../../docs/zh-CN/components/json.md').then(wrapDoc)
)
},
{
label: 'Link 链接',
path: '/zh-CN/components/link',
component: React.lazy(() =>
import('../../docs/zh-CN/components/link.md').then(wrapDoc)
)
},
{
label: 'List 列表',
path: '/zh-CN/components/list',
component: React.lazy(() =>
import('../../docs/zh-CN/components/list.md').then(wrapDoc)
)
},
{
label: 'Log 实时日志',
path: '/zh-CN/components/log',
component: React.lazy(() =>
import('../../docs/zh-CN/components/log.md').then(wrapDoc)
)
},
{
label: 'Mapping 映射',
path: '/zh-CN/components/mapping',
component: React.lazy(() =>
import('../../docs/zh-CN/components/mapping.md').then(wrapDoc)
)
},
{
label: 'Number 展示',
path: '/zh-CN/components/number',
component: React.lazy(() =>
import('../../docs/zh-CN/components/number.md').then(wrapDoc)
)
},
{
label: 'Markdown 渲染',
path: '/zh-CN/components/markdown',
component: React.lazy(() =>
import('../../docs/zh-CN/components/markdown.md').then(wrapDoc)
)
},
feat: office-viewer Word 文档渲染 (#6412) * init * theme * 基础文本渲染 * 基础文本样式 * 支持简单链接和图片 * 修复 jc 解析不正确问题 * 解析和渲染分离 * 初步支持列表渲染 * 完善样式表的实现 * 表格解析初步 * 避免解析顺序不一致 * 避免解析顺序不一致导致的问题 * 基于 DOMParser 来实现解析; 初步实现表格渲染 * 修复行高解析不正确问题 * 修复变量替换不正确问题 * 补充注释 * 用 fflate 替换 jszip, 支持同步使用 * 支持渲染 tab * 支持表格条件渲染 * 优化表格样式适配 * 完善背景色支持 * 支持 ruby * 支持简单 inserttext * 修复表格合并不正确问题 * amis 渲染初步 * 整合 amis 初步 * 支持 input-file 上传预览 * styles: 优化button组件单icon情况的样式 (#6269) Co-authored-by: qinhaoyan <30946345+qinhaoyan@users.noreply.github.com> * fix: Badge设置overflowCount不生效问题修复 (#6267) Co-authored-by: wanglinfang <wanglinfang@baidu.com> * feat: InputGroup报错展示优化 (#5803) * feat:增加DATETOWEEK表达式 * feat:增加DATETOWEEK表达式 * feat:增加WEEKDAY和WEEK表达式 * feat:增加WEEKDAY和WEEK表达式 * feat:增加WEEKDAY和WEEK表达式 * feat:增加WEEKDAY和WEEK表达式 * feat:增加WEEKDAY和WEEK表达式 * chore: 2.7.3版本改为2.8.0 (#6272) * styles: 输入框附加组件样式 (#6271) Co-authored-by: qinhaoyan <30946345+qinhaoyan@users.noreply.github.com> * styles: 优化checkbox组件选中态样式 (#6277) Co-authored-by: qinhaoyan <30946345+qinhaoyan@users.noreply.github.com> * feat:增加判断日期范围的表达式BETWEENRANGE&&优化STARTOF和ENDOF * docs:表达式文档 (#6282) * fix: Nav样式问题、性能优化 (#6280) Co-authored-by: wanglinfang <wanglinfang@baidu.com> * chore: 还原几个 antd 导航及表格的颜色 (#6276) * chore: Action倒计时key添加id避免冲突 (#5943) * fix: nav同层拖拽问题修复 (#6285) Co-authored-by: wanglinfang <wanglinfang@baidu.com> * v2.8.0 * chore: 删除在 ts 编译后永远都不会成立的代码 (#6291) * styles: 将组件透明背景颜色改为白色 (#6289) * styles: 将组件透明背景颜色改为白色 * styles: 将组件透明背景颜色改为白色 --------- Co-authored-by: qinhaoyan <30946345+qinhaoyan@users.noreply.github.com> * fix: Select组件overlay属性在popOverContainer时宽度错误问题 (#6284) * fix:Select组件overlay属性在popOverContainer时宽度错误问题 * 问题修改 * styles: 优化link组件svg图标样式 (#6292) Co-authored-by: qinhaoyan <30946345+qinhaoyan@users.noreply.github.com> * chore: Tree 组件中使用 value 替换 key (#6194) * fix: 单选选项值包含逗号时获取选项错误问题 (#6258) * fix: 单选选项值包含逗号时获取选项错误问题 * 加个单测 * 单测问题 * 在WrapControl 中使渲染器默认 multiple 生效 * 修改 * fix: select 各种模式支持 checkAll (#5941) * feat(页面交互行为跟踪): 新增pageLoaded事件 (#6299) * fix: nav拖拽卡顿、更多操作打开定位等问题修复 (#6304) Co-authored-by: wanglinfang <wanglinfang@baidu.com> * fix: toast组件css变量拼错 (#6302) Co-authored-by: renjianhua <renjianhua@zuoshouyisheng.com> * fix: CRUD2 加载更多时接口page传参始终为1 (#6298) * fix: 日期范围底部按钮居中 (#6301) * 调整 saveAs fileName 优先级 * feat: 移动端人员选择增加确定按钮 * Update UserSelect.tsx * fix: 人员选择ts 类型错误 * fix: 城市选择组件移动端回显问题 * fix: 移动端级联选择器选中值bug修复 * Update Cascader.tsx * fix: 城市选择香港、澳门不能选择市 * fix: 删除错误城市数据 * feat: 移动端人员选择支持字段配置 * feat: 人员选择组件支持字段配置 * Update UserSelect.tsx * fix: 移动端人员选择静态展示头像url回显 * fix: 日期时间选择器底部按钮居中 --------- Co-authored-by: zhangxulong <zhangxulong@baidu.com> * fix: table2全选、嵌套展开等问题修复 (#6313) Co-authored-by: wanglinfang <wanglinfang@baidu.com> * docs(API 适配器): 调整文档细节 (#6314) * styles: 优化清除图标样式 (#6312) Co-authored-by: qinhaoyan <30946345+qinhaoyan@users.noreply.github.com> * fix: 修复 Tree 在传入 pathSeparator 时,非根节点无法选中 (#6315) * Update README.md * fix: 解决因部分组件默认配置,导致编辑器配置面板宽度溢出问题 (#6328) Co-authored-by: zhangzhulei <zhangzhulei@baidu.com> * chore: svg 瘦身 (#6320) * chore: svg 瘦身 * chore: svg 瘦身 * chore: svg 瘦身 * feat: mapping 的 source 接口支持 select 选项类接口 (#6326) * fix: 调整 spinner-overlay 和 dialog 的 z-index,使关闭按钮不会被 spinner 遮挡 (#6321) * feat: 新增 number 组件用来展示数字 (#6330) * feat: 新增 number 组件用来展示数字 * feat: 新增 number 组件用来展示数字 * chore: tableCell 内部属性换个名字,以免跟已有其他组件组合使用时冲突 * fix: 注销renderer问题 (#6327) Co-authored-by: liujintao03 <liujintao03@baidu.com> * feat: InputExcel支持placeholder (#6295) * feat: button-group-select支持角标 (#6309) Co-authored-by: yanglu19 <yanglu19@baidu.com> * chore: 暴露 InputBoxWithSuggestion (#6337) * fix: 注销renderer问题 (#6338) Co-authored-by: liujintao03 <liujintao03@baidu.com> * docs: 补充trackExpression用法示例 (#6286) * fix: 解决monaco环境变量和monaco插件的冲突 (#6283) Co-authored-by: renjianhua <renjianhua@zuoshouyisheng.com> * fix: Cards嵌套List组件时, props透传导致Schema不生效问题 (#6110) * styles: 优化带单位的number组件样式 (#6054) * styles: 优化待单位的number组件样式 * 更新快照 --------- Co-authored-by: qinhaoyan <30946345+qinhaoyan@users.noreply.github.com> * fix(Table): #2978 嵌套表格如何设置默认全部展开 (#6028) * fix(Table): #2978 嵌套表格如何设置默认全部展开 * fix(Table): #2978 更改函数命名 * fix: now表达式作为form组件默认值时,增加特殊逻辑,处理数据更新 (#5783) * fix: 解决公式编辑器 搜索变量失效bug (#6345) Co-authored-by: zhangzhulei <zhangzhulei@baidu.com> * fix: nav角标、悬浮展开子菜单、更多操作不可点击等问题修复 (#6346) Co-authored-by: wanglinfang <wanglinfang@baidu.com> * feat:config动作优化 * fix: 修复卡片的 checkOnItemClick 配置问题 (#6365) * fix: 修复弹窗中 form 配置 closeDialogOnSubmit 无效的问题 (#6368) * fix: Transfer tree mode 支持 onlyChildren;两个值为undefined的Option不相等 (#6342) * fix:transfer tree 支持 onlyChildren;两个值为undefined的Option不相等 * 修改 * 修改 * feat:carousel支持卡片动画模式 (#6354) * feat:carousel支持多图配置 * Update carousel.md --------- Co-authored-by: zhaowenli <zhaowenli@baidu.com> Co-authored-by: RUNZE LU <36724300+lurunze1226@users.noreply.github.com> * fix: inputTable 组件value依赖别的字段时,不同步数据域的问题 (#6360) * fix: inputTable 组件value依赖别的字段时,不同步数据域的问题 * 修改 * 修改 * feat: 添加input-table子表单校验 (#6357) * feat: 添加input-table子表单校验 * feat: 添加input-table snapshots更新 * feat: 添加input-table子表单校验 * feat: 添加input-table子表单校验 * feat: 添加input-table子表单校验 * feat: input-table snapshots更新 * feat: 添加input-table子表单校验 * feat: 添加input-table子表单校验 * feat: Steps source支持动态获取value status (#6370) * fix: 修复 drawer reload 目标可能找不到的问题 (#6373) * fix: 修复 crud 嵌套会触发多次快速保存接口问题 (#6374) * fix: 修复 this.model.validated 可能读取不到的报错 (#6375) * chore: alert 支持多个实例 * feat: Tag支持事件动作 (#6325) * feat: reload 支持动态目标, 解决目标在循环中场景 (#6372) * chore: Select组件checkAllBySearch默认为true (#6347) * fix: Nav切换数据源实时更新、点击分组卡顿、横向模式排序等问题修复 (#6371) Co-authored-by: wanglinfang <wanglinfang@baidu.com> * fix: table单元格支持自定义样式、crud支持本地数据快速过滤 (#6353) Co-authored-by: wanglinfang <wanglinfang@baidu.com> * fix: 修改角标样式 (#6383) Co-authored-by: yanglu19 <yanglu19@baidu.com> * fix: 图标选择器,如果图标不属于saas项目中的,则默认显示schema配置的内容 (#6394) Co-authored-by: zhangzhulei <zhangzhulei@baidu.com> * feat: icon支持自定义样式 (#6379) Co-authored-by: sarding <hongfuquan@baidu.com> * fix: 解决input-table某些场景下无法新增的bug (#6400) Co-authored-by: zhangzhulei <zhangzhulei@baidu.com> * fix: 解决input-table某些场景下无法新增的bug (#6404) Co-authored-by: zhangzhulei <zhangzhulei@baidu.com> * fix: input-table内columns为下拉框时,删掉下拉框的选中值,发现input-table的数据域更新错误 (#6402) * fix: input-table内columns为下拉框时,删掉下拉框的选中值,发现input-table的数据域更新错误 * fix: input-table内columns为下拉框时,删掉下拉框的选中值,发现input-table的数据域更新错误 * 修复示例文档错误 * 修复用例报错 * 修复 fis 报错 --------- Co-authored-by: qkiroc <30946345+qkiroc@users.noreply.github.com> Co-authored-by: qinhaoyan <30946345+qinhaoyan@users.noreply.github.com> Co-authored-by: wanglinfang2014 <w.l.fang@foxmail.com> Co-authored-by: wanglinfang <wanglinfang@baidu.com> Co-authored-by: RUNZE LU <36724300+lurunze1226@users.noreply.github.com> Co-authored-by: lvxiaojiao <lvxiaojiao@baidu.com> Co-authored-by: hsm-lv <80095014+hsm-lv@users.noreply.github.com> Co-authored-by: lurunze1226 <lurunze1226@foxmail.com> Co-authored-by: liaoxuezhi <2betop.cn@gmail.com> Co-authored-by: sansiro <sansiro@sansiro.me> Co-authored-by: meerkat <kit_hack@outlook.com> Co-authored-by: 刘丹 <365533093@qq.com> Co-authored-by: backpast <agileago@gmail.com> Co-authored-by: renjianhua <renjianhua@zuoshouyisheng.com> Co-authored-by: ls <1769057083@qq.com> Co-authored-by: zhangxulong <zhangxulong@baidu.com> Co-authored-by: zhangzhulei <30931358+DynaZhang@users.noreply.github.com> Co-authored-by: zhangzhulei <zhangzhulei@baidu.com> Co-authored-by: gooolh <57032082+gooolh@users.noreply.github.com> Co-authored-by: liujintao03 <liujintao03@baidu.com> Co-authored-by: Dora <53067150+Dora-boots@users.noreply.github.com> Co-authored-by: yanglu19 <yanglu19@baidu.com> Co-authored-by: TommyShao <tomieric@gmail.com> Co-authored-by: pianruijie <13522335863@163.com> Co-authored-by: xiangwaner <1186355501@qq.com> Co-authored-by: zhaowenli <zhaowenli@baidu.com> Co-authored-by: zhou999 <zhousq809@163.com> Co-authored-by: Allen <yupeng.fe@qq.com> Co-authored-by: sarding <37691952+sarding@users.noreply.github.com> Co-authored-by: sarding <hongfuquan@baidu.com>
2023-03-20 20:09:13 +08:00
{
label: 'OfficeViewer 文档渲染',
path: '/zh-CN/components/office-viewer',
component: React.lazy(() =>
import('../../docs/zh-CN/components/office-viewer.md').then(wrapDoc)
)
},
{
label: 'Progress 进度条',
path: '/zh-CN/components/progress',
component: React.lazy(() =>
import('../../docs/zh-CN/components/progress.md').then(wrapDoc)
)
},
{
label: 'Steps 步骤条',
path: '/zh-CN/components/steps',
component: React.lazy(() =>
import('../../docs/zh-CN/components/steps.md').then(wrapDoc)
)
},
{
label: 'Property 属性表',
path: '/zh-CN/components/property',
component: React.lazy(() =>
import('../../docs/zh-CN/components/property.md').then(wrapDoc)
)
},
{
label: 'QRCode 二维码',
path: '/zh-CN/components/qrcode',
component: React.lazy(() =>
import('../../docs/zh-CN/components/qrcode.md').then(wrapDoc)
)
},
{
label: 'BarCode 条形码',
path: '/zh-CN/components/barcode',
component: React.lazy(() =>
import('../../docs/zh-CN/components/barcode.md').then(wrapDoc)
)
},
{
label: 'Remark 标记',
path: '/zh-CN/components/remark',
component: React.lazy(() =>
import('../../docs/zh-CN/components/remark.md').then(wrapDoc)
)
},
2021-04-23 11:39:32 +08:00
{
2021-04-25 17:49:29 +08:00
label: 'SearchBox 搜索框',
2021-04-23 11:39:32 +08:00
path: '/zh-CN/components/search-box',
component: React.lazy(() =>
import('../../docs/zh-CN/components/search-box.md').then(wrapDoc)
)
2021-04-23 11:39:32 +08:00
},
{
label: 'Sparkline 走势图',
path: '/zh-CN/components/sparkline',
component: React.lazy(() =>
import('../../docs/zh-CN/components/sparkline.md').then(wrapDoc)
)
},
{
label: 'Status 状态',
path: '/zh-CN/components/status',
component: React.lazy(() =>
import('../../docs/zh-CN/components/status.md').then(wrapDoc)
)
},
{
label: 'Tpl 模板',
path: '/zh-CN/components/tpl',
component: React.lazy(() =>
import('../../docs/zh-CN/components/tpl.md').then(wrapDoc)
)
},
{
label: 'Tag 标签',
path: '/zh-CN/components/tag',
component: React.lazy(() =>
import('../../docs/zh-CN/components/tag.md').then(wrapDoc)
)
},
{
label: 'Video 视频',
path: '/zh-CN/components/video',
component: React.lazy(() =>
import('../../docs/zh-CN/components/video.md').then(wrapDoc)
)
},
{
label: 'Timeline 时间轴',
path: '/zh-CN/components/timeline',
component: React.lazy(() =>
import('../../docs/zh-CN/components/timeline.md').then(wrapDoc)
)
}
]
},
{
label: '反馈',
children: [
{
label: 'Alert 提示',
path: '/zh-CN/components/alert',
component: React.lazy(() =>
import('../../docs/zh-CN/components/alert.md').then(wrapDoc)
)
},
{
label: 'Dialog 对话框',
path: '/zh-CN/components/dialog',
component: React.lazy(() =>
import('../../docs/zh-CN/components/dialog.md').then(wrapDoc)
)
},
{
label: 'Drawer 抽屉',
path: '/zh-CN/components/drawer',
component: React.lazy(() =>
import('../../docs/zh-CN/components/drawer.md').then(wrapDoc)
)
},
{
label: 'Spinner 加载中',
path: '/zh-CN/components/spinner',
component: React.lazy(() =>
import('../../docs/zh-CN/components/spinner.md').then(wrapDoc)
)
},
{
label: 'Toast 轻提示',
path: '/zh-CN/components/toast',
component: React.lazy(() =>
import('../../docs/zh-CN/components/toast.md').then(wrapDoc)
)
}
]
},
{
label: '其他',
children: [
{
label: 'Avatar 头像',
path: '/zh-CN/components/avatar',
component: React.lazy(() =>
import('../../docs/zh-CN/components/avatar.md').then(wrapDoc)
)
},
{
label: 'Audio 音频',
path: '/zh-CN/components/audio',
component: React.lazy(() =>
import('../../docs/zh-CN/components/audio.md').then(wrapDoc)
)
},
{
label: 'Tasks 任务操作集合',
path: '/zh-CN/components/tasks',
component: React.lazy(() =>
import('../../docs/zh-CN/components/tasks.md').then(wrapDoc)
)
},
{
label: 'Badge 角标',
path: '/zh-CN/components/badge',
component: React.lazy(() =>
import('../../docs/zh-CN/components/badge.md').then(wrapDoc)
)
},
{
label: 'Wizard 向导',
path: '/zh-CN/components/wizard',
component: React.lazy(() =>
import('../../docs/zh-CN/components/wizard.md').then(wrapDoc)
)
2021-08-09 22:21:54 +08:00
},
{
label: 'Web Component',
path: '/zh-CN/components/web-component',
component: React.lazy(() =>
import('../../docs/zh-CN/components/web-component.md').then(wrapDoc)
)
}
]
}
];
export default class Components extends React.PureComponent<any> {
componentDidMount() {
2022-07-06 11:05:27 +08:00
this.props.setNavigations(components, false);
}
componentDidUpdate(preProps: any) {
if (this.props.location.pathname !== preProps.location.pathname) {
this.props.setNavigations(components, false);
}
}
render() {
return (
<Switch>
{navigations2route(components, {
theme: this.props.theme,
classPrefix: this.props.classPrefix,
locale: this.props.locale,
viewMode: this.props.viewMode,
offScreen: this.props.offScreen
})}
{/* {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>
);
}
}