mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 03:48:13 +08:00
chore: typescript 允许 import md 和 svg 文件,并解决 button-group-select 文档页打不开的问题 (#2610)
This commit is contained in:
parent
2177b3cb34
commit
e98ba401f4
@ -9,7 +9,6 @@ export const components = [
|
||||
label: '组件介绍',
|
||||
path: '/zh-CN/components/index',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/index.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -18,7 +17,6 @@ export const components = [
|
||||
label: 'Page 页面',
|
||||
path: '/zh-CN/components/page',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/page.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -27,7 +25,6 @@ export const components = [
|
||||
label: 'Container 容器',
|
||||
path: '/zh-CN/components/container',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/container.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -36,7 +33,6 @@ export const components = [
|
||||
label: 'Collapse 折叠器',
|
||||
path: '/zh-CN/components/collapse',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/collapse.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -45,7 +41,6 @@ export const components = [
|
||||
label: 'Divider 分割线',
|
||||
path: '/zh-CN/components/divider',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/divider.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -54,7 +49,6 @@ export const components = [
|
||||
label: 'Flex 布局',
|
||||
path: '/zh-CN/components/flex',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/flex.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -63,7 +57,6 @@ export const components = [
|
||||
label: 'Grid 水平布局',
|
||||
path: '/zh-CN/components/grid',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/grid.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -72,7 +65,6 @@ export const components = [
|
||||
label: 'Grid 2D 布局',
|
||||
path: '/zh-CN/components/grid-2d',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/grid-2d.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -81,7 +73,6 @@ export const components = [
|
||||
label: 'HBox 布局',
|
||||
path: '/zh-CN/components/hbox',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/hbox.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -90,7 +81,6 @@ export const components = [
|
||||
label: 'PaginationWrapper 分页容器',
|
||||
path: '/zh-CN/components/pagination-wrapper',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/pagination-wrapper.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -99,7 +89,6 @@ export const components = [
|
||||
label: 'Panel 面板',
|
||||
path: '/zh-CN/components/panel',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/panel.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -108,7 +97,6 @@ export const components = [
|
||||
label: 'Tabs 选项卡',
|
||||
path: '/zh-CN/components/tabs',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/tabs.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -117,7 +105,6 @@ export const components = [
|
||||
label: 'Wrapper 包裹容器',
|
||||
path: '/zh-CN/components/wrapper',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/wrapper.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -131,7 +118,6 @@ export const components = [
|
||||
label: 'Action 行为按钮',
|
||||
path: '/zh-CN/components/action',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/action.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -140,7 +126,6 @@ export const components = [
|
||||
label: 'App 多页应用',
|
||||
path: '/zh-CN/components/app',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/app.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -149,7 +134,6 @@ export const components = [
|
||||
label: 'Button 按钮',
|
||||
path: '/zh-CN/components/button',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/button.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -158,7 +142,6 @@ export const components = [
|
||||
label: 'ButtonGroup 按钮组',
|
||||
path: '/zh-CN/components/button-group',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/button-group.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -167,7 +150,6 @@ export const components = [
|
||||
label: 'Breadcrumb 面包屑',
|
||||
path: '/zh-CN/components/breadcrumb',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/breadcrumb.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -176,7 +158,6 @@ export const components = [
|
||||
label: 'Custom 自定义组件',
|
||||
path: '/zh-CN/components/custom',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/custom.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -185,7 +166,6 @@ export const components = [
|
||||
label: 'DropDownButton 下拉按钮',
|
||||
path: '/zh-CN/components/dropdown-button',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/dropdown-button.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -194,7 +174,6 @@ export const components = [
|
||||
label: 'Service 功能型容器',
|
||||
path: '/zh-CN/components/service',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/service.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -204,7 +183,6 @@ export const components = [
|
||||
label: 'Nav 导航',
|
||||
path: '/zh-CN/components/nav',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/nav.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -214,7 +192,6 @@ export const components = [
|
||||
label: 'AnchorNav 锚点导航',
|
||||
path: '/zh-CN/components/anchor-nav',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/anchor-nav.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -229,7 +206,6 @@ export const components = [
|
||||
label: 'Form 表单',
|
||||
path: '/zh-CN/components/form/index',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/form/index.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -238,7 +214,6 @@ export const components = [
|
||||
label: 'FormItem 表单项通用',
|
||||
path: '/zh-CN/components/form/formitem',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/form/formitem.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -247,7 +222,6 @@ export const components = [
|
||||
label: 'Options 选择器表单项',
|
||||
path: '/zh-CN/components/form/options',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/form/options.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -256,7 +230,6 @@ export const components = [
|
||||
label: 'InputArray 数组输入框',
|
||||
path: '/zh-CN/components/form/input-array',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/form/input-array.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -265,7 +238,6 @@ export const components = [
|
||||
label: 'Button-Toolbar 按钮工具栏',
|
||||
path: '/zh-CN/components/form/button-toolbar',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/form/button-toolbar.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -275,7 +247,6 @@ export const components = [
|
||||
path: '/zh-CN/components/form/button-group-select',
|
||||
getComponent: () =>
|
||||
import(
|
||||
// @ts-ignore
|
||||
'../../docs/zh-CN/components/form/button-group-select.md'
|
||||
).then(makeMarkdownRenderer)
|
||||
},
|
||||
@ -283,7 +254,6 @@ export const components = [
|
||||
label: 'Chain-Select 链式下拉框',
|
||||
path: '/zh-CN/components/form/chain-select',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/form/chain-select.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -292,7 +262,6 @@ export const components = [
|
||||
label: 'Checkbox 勾选框',
|
||||
path: '/zh-CN/components/form/checkbox',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/form/checkbox.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -301,7 +270,6 @@ export const components = [
|
||||
label: 'Checkboxes 复选框',
|
||||
path: '/zh-CN/components/form/checkboxes',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/form/checkboxes.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -310,7 +278,6 @@ export const components = [
|
||||
label: 'InputCity 城市选择器',
|
||||
path: '/zh-CN/components/form/input-city',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/form/input-city.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -319,7 +286,6 @@ export const components = [
|
||||
label: 'InputColor 颜色选择器',
|
||||
path: '/zh-CN/components/form/input-color',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/form/input-color.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -328,7 +294,6 @@ export const components = [
|
||||
label: 'Combo 组合',
|
||||
path: '/zh-CN/components/form/combo',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/form/combo.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -337,7 +302,6 @@ export const components = [
|
||||
label: 'Condition-Builder 条件组合',
|
||||
path: '/zh-CN/components/form/condition-builder',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/form/condition-builder.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -346,7 +310,6 @@ export const components = [
|
||||
label: 'InputDate 日期选择器',
|
||||
path: '/zh-CN/components/form/input-date',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/form/input-date.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -355,7 +318,6 @@ export const components = [
|
||||
label: 'InputDatetime 日期时间选择器',
|
||||
path: '/zh-CN/components/form/input-datetime',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/form/input-datetime.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -364,7 +326,6 @@ export const components = [
|
||||
label: 'InputMonth 月份选择器',
|
||||
path: '/zh-CN/components/form/input-month',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/form/input-month.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -373,7 +334,6 @@ export const components = [
|
||||
label: 'InputDateRange 日期范围选择器',
|
||||
path: '/zh-CN/components/form/input-date-range',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/form/input-date-range.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -382,7 +342,6 @@ export const components = [
|
||||
label: 'InputDatetimeRange 日期时间范围',
|
||||
path: '/zh-CN/components/form/input-datetime-range',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import(
|
||||
'../../docs/zh-CN/components/form/input-datetime-range.md'
|
||||
).then(makeMarkdownRenderer)
|
||||
@ -391,7 +350,6 @@ export const components = [
|
||||
label: 'InputMonthRange 月份范围',
|
||||
path: '/zh-CN/components/form/input-month-range',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/form/input-month-range.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -400,7 +358,6 @@ export const components = [
|
||||
label: 'DiffEditor 对比编辑器',
|
||||
path: '/zh-CN/components/form/diff-editor',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/form/diff-editor.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -409,7 +366,6 @@ export const components = [
|
||||
label: 'Editor 代码编辑器',
|
||||
path: '/zh-CN/components/form/editor',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/form/editor.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -418,7 +374,6 @@ export const components = [
|
||||
label: 'FieldSet 表单项集合',
|
||||
path: '/zh-CN/components/form/fieldset',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/form/fieldset.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -427,7 +382,6 @@ export const components = [
|
||||
label: 'InputExcel Excel 解析',
|
||||
path: '/zh-CN/components/form/input-excel',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/form/input-excel.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -436,7 +390,6 @@ export const components = [
|
||||
label: 'InputFile 文件上传',
|
||||
path: '/zh-CN/components/form/input-file',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/form/input-file.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -445,7 +398,6 @@ export const components = [
|
||||
label: 'Formula 公式',
|
||||
path: '/zh-CN/components/form/formula',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/form/formula.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -454,7 +406,6 @@ export const components = [
|
||||
label: 'Group 表单项组',
|
||||
path: '/zh-CN/components/form/group',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/form/group.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -463,7 +414,6 @@ export const components = [
|
||||
label: 'Hidden 隐藏字段',
|
||||
path: '/zh-CN/components/form/hidden',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/form/hidden.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -472,7 +422,6 @@ export const components = [
|
||||
label: 'InputImage 图片',
|
||||
path: '/zh-CN/components/form/input-image',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/form/input-image.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -481,7 +430,6 @@ export const components = [
|
||||
label: 'Input-Group 输入框组合',
|
||||
path: '/zh-CN/components/form/input-group',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/form/input-group.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -490,7 +438,6 @@ export const components = [
|
||||
label: 'ListSelect 选择器',
|
||||
path: '/zh-CN/components/form/list-select',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/form/list-select.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -499,7 +446,6 @@ export const components = [
|
||||
label: 'LocationPicker 地理位置',
|
||||
path: '/zh-CN/components/form/location-picker',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/form/location-picker.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -508,7 +454,6 @@ export const components = [
|
||||
label: 'UUID 随机 ID',
|
||||
path: '/zh-CN/components/form/uuid',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/form/uuid.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -517,7 +462,6 @@ export const components = [
|
||||
label: 'MatrixCheckboxes 矩阵勾选',
|
||||
path: '/zh-CN/components/form/matrix-checkboxes',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/form/matrix-checkboxes.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -526,7 +470,6 @@ export const components = [
|
||||
label: 'NestedSelect 级联选择器',
|
||||
path: '/zh-CN/components/form/nestedselect',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/form/nestedselect.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -535,7 +478,6 @@ export const components = [
|
||||
label: 'InputNumber 数字输入',
|
||||
path: '/zh-CN/components/form/input-number',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/form/input-number.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -544,7 +486,6 @@ export const components = [
|
||||
label: 'InputPassword 密码输入框',
|
||||
path: '/zh-CN/components/form/input-password',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/form/input-password.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -553,7 +494,6 @@ export const components = [
|
||||
label: 'Picker 列表选择器',
|
||||
path: '/zh-CN/components/form/picker',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/form/picker.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -562,7 +502,6 @@ export const components = [
|
||||
label: 'InputQuarter 季度',
|
||||
path: '/zh-CN/components/form/input-quarter',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/form/input-quarter.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -572,7 +511,6 @@ export const components = [
|
||||
path: '/zh-CN/components/form/input-quarter-range',
|
||||
getComponent: () =>
|
||||
import(
|
||||
// @ts-ignore
|
||||
'../../docs/zh-CN/components/form/input-quarter-range.md'
|
||||
).then(makeMarkdownRenderer)
|
||||
},
|
||||
@ -580,7 +518,6 @@ export const components = [
|
||||
label: 'Radios 单选框',
|
||||
path: '/zh-CN/components/form/radios',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/form/radios.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -589,7 +526,6 @@ export const components = [
|
||||
label: 'InputRating 评分',
|
||||
path: '/zh-CN/components/form/input-rating',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/form/input-rating.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -598,7 +534,6 @@ export const components = [
|
||||
label: 'InputRange 滑块',
|
||||
path: '/zh-CN/components/form/input-range',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/form/input-range.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -607,7 +542,6 @@ export const components = [
|
||||
label: 'InputRepeat 重复频率选择器',
|
||||
path: '/zh-CN/components/form/input-repeat',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/form/input-repeat.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -616,7 +550,6 @@ export const components = [
|
||||
label: 'InpuRichText 富文本编辑器',
|
||||
path: '/zh-CN/components/form/input-rich-text',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/form/input-rich-text.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -625,7 +558,6 @@ export const components = [
|
||||
label: 'Select 下拉框',
|
||||
path: '/zh-CN/components/form/select',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/form/select.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -634,7 +566,6 @@ export const components = [
|
||||
label: 'InputSubForm 子表单',
|
||||
path: '/zh-CN/components/form/input-sub-form',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/form/input-sub-form.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -643,7 +574,6 @@ export const components = [
|
||||
label: 'Switch 开关',
|
||||
path: '/zh-CN/components/form/switch',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/form/switch.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -652,7 +582,6 @@ export const components = [
|
||||
label: 'Static 静态展示',
|
||||
path: '/zh-CN/components/form/static',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/form/static.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -661,7 +590,6 @@ export const components = [
|
||||
label: 'InputTable 表格',
|
||||
path: '/zh-CN/components/form/input-table',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/form/input-table.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -670,7 +598,6 @@ export const components = [
|
||||
label: 'InputTag 标签选择器',
|
||||
path: '/zh-CN/components/form/input-tag',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/form/input-tag.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -679,7 +606,6 @@ export const components = [
|
||||
label: 'InputText 输入框',
|
||||
path: '/zh-CN/components/form/input-text',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/form/input-text.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -688,7 +614,6 @@ export const components = [
|
||||
label: 'Textarea 多行输入框',
|
||||
path: '/zh-CN/components/form/textarea',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/form/textarea.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -697,7 +622,6 @@ export const components = [
|
||||
label: 'InputTime 时间',
|
||||
path: '/zh-CN/components/form/input-time',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/form/input-time.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -706,7 +630,6 @@ export const components = [
|
||||
label: 'InputTimeRange 时间',
|
||||
path: '/zh-CN/components/form/input-time-range',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/form/input-time-range.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -715,7 +638,6 @@ export const components = [
|
||||
label: 'Transfer 穿梭器',
|
||||
path: '/zh-CN/components/form/transfer',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/form/transfer.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -724,7 +646,6 @@ export const components = [
|
||||
label: 'TabsTransfer 组合穿梭器',
|
||||
path: '/zh-CN/components/form/tabs-transfer',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/form/tabs-transfer.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -733,7 +654,6 @@ export const components = [
|
||||
label: 'InputTree 树形选择框',
|
||||
path: '/zh-CN/components/form/input-tree',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/form/input-tree.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -742,7 +662,6 @@ export const components = [
|
||||
label: 'TreeSelect 树形选择器',
|
||||
path: '/zh-CN/components/form/treeselect',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/form/treeselect.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -751,7 +670,6 @@ export const components = [
|
||||
label: 'InputYear 年输入',
|
||||
path: '/zh-CN/components/form/input-year',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/form/input-year.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -760,7 +678,6 @@ export const components = [
|
||||
label: 'InputYearRange 年份范围',
|
||||
path: '/zh-CN/components/form/input-year-range',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/form/input-year-range.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -775,7 +692,6 @@ export const components = [
|
||||
label: 'CRUD 增删改查',
|
||||
path: '/zh-CN/components/crud',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/crud.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -785,7 +701,6 @@ export const components = [
|
||||
label: 'Table 表格',
|
||||
path: '/zh-CN/components/table',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/table.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -794,7 +709,6 @@ export const components = [
|
||||
label: 'Table View 表格视图',
|
||||
path: '/zh-CN/components/table-view',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/table-view.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -803,7 +717,6 @@ export const components = [
|
||||
label: 'Card 卡片',
|
||||
path: '/zh-CN/components/card',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/card.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -812,7 +725,6 @@ export const components = [
|
||||
label: 'Cards 卡片组',
|
||||
path: '/zh-CN/components/cards',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/cards.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -821,7 +733,6 @@ export const components = [
|
||||
label: 'Carousel 轮播图',
|
||||
path: '/zh-CN/components/carousel',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/carousel.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -830,7 +741,6 @@ export const components = [
|
||||
label: 'Chart 图表',
|
||||
path: '/zh-CN/components/chart',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/chart.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -840,7 +750,6 @@ export const components = [
|
||||
label: 'Code 代码高亮',
|
||||
path: '/zh-CN/components/code',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/code.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -850,7 +759,6 @@ export const components = [
|
||||
label: 'Color 颜色',
|
||||
path: '/zh-CN/components/color',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/color.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -860,7 +768,6 @@ export const components = [
|
||||
label: 'Date 日期时间',
|
||||
path: '/zh-CN/components/date',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/date.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -869,7 +776,6 @@ export const components = [
|
||||
label: 'Each 循环渲染器',
|
||||
path: '/zh-CN/components/each',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/each.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -879,7 +785,6 @@ export const components = [
|
||||
label: 'Html',
|
||||
path: '/zh-CN/components/html',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/html.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -889,7 +794,6 @@ export const components = [
|
||||
label: 'Icon 图标',
|
||||
path: '/zh-CN/components/icon',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/icon.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -898,7 +802,6 @@ export const components = [
|
||||
label: 'iFrame',
|
||||
path: '/zh-CN/components/iframe',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/iframe.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -907,7 +810,6 @@ export const components = [
|
||||
label: 'Image 图片',
|
||||
path: '/zh-CN/components/image',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/image.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -916,7 +818,6 @@ export const components = [
|
||||
label: 'Images 图片集',
|
||||
path: '/zh-CN/components/images',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/images.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -925,7 +826,6 @@ export const components = [
|
||||
label: 'Json',
|
||||
path: '/zh-CN/components/json',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/json.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -934,7 +834,6 @@ export const components = [
|
||||
label: 'Link 链接',
|
||||
path: '/zh-CN/components/link',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/link.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -943,7 +842,6 @@ export const components = [
|
||||
label: 'List 列表',
|
||||
path: '/zh-CN/components/list',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/list.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -952,7 +850,6 @@ export const components = [
|
||||
label: 'Log 实时日志',
|
||||
path: '/zh-CN/components/log',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/log.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -961,7 +858,6 @@ export const components = [
|
||||
label: 'Mapping 映射',
|
||||
path: '/zh-CN/components/mapping',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/mapping.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -970,7 +866,6 @@ export const components = [
|
||||
label: 'Markdown 渲染',
|
||||
path: '/zh-CN/components/markdown',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/markdown.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -979,7 +874,6 @@ export const components = [
|
||||
label: 'Progress 进度条',
|
||||
path: '/zh-CN/components/progress',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/progress.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -988,7 +882,6 @@ export const components = [
|
||||
label: 'Steps 步骤条',
|
||||
path: '/zh-CN/components/steps',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/steps.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -997,7 +890,6 @@ export const components = [
|
||||
label: 'Property 属性表',
|
||||
path: '/zh-CN/components/property',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/property.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -1006,7 +898,6 @@ export const components = [
|
||||
label: 'QRCode 二维码',
|
||||
path: '/zh-CN/components/qrcode',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/qrcode.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -1015,7 +906,6 @@ export const components = [
|
||||
label: 'Remark 标记',
|
||||
path: '/zh-CN/components/remark',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/remark.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -1025,7 +915,6 @@ export const components = [
|
||||
label: 'SearchBox 搜索框',
|
||||
path: '/zh-CN/components/search-box',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/search-box.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -1035,7 +924,6 @@ export const components = [
|
||||
label: 'Sparkline 走势图',
|
||||
path: '/zh-CN/components/sparkline',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/sparkline.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -1044,7 +932,6 @@ export const components = [
|
||||
label: 'Status 状态',
|
||||
path: '/zh-CN/components/status',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/status.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -1053,7 +940,6 @@ export const components = [
|
||||
label: 'Tpl 模板',
|
||||
path: '/zh-CN/components/tpl',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/tpl.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -1062,7 +948,6 @@ export const components = [
|
||||
label: 'Video 视频',
|
||||
path: '/zh-CN/components/video',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/video.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -1077,7 +962,6 @@ export const components = [
|
||||
label: 'Alert 提示',
|
||||
path: '/zh-CN/components/alert',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/alert.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -1086,7 +970,6 @@ export const components = [
|
||||
label: 'Dialog 对话框',
|
||||
path: '/zh-CN/components/dialog',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/dialog.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -1095,7 +978,6 @@ export const components = [
|
||||
label: 'Drawer 抽屉',
|
||||
path: '/zh-CN/components/drawer',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/drawer.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -1104,7 +986,6 @@ export const components = [
|
||||
label: 'Spinner 加载中',
|
||||
path: '/zh-CN/components/spinner',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/spinner.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -1119,7 +1000,6 @@ export const components = [
|
||||
label: 'Avatar 头像',
|
||||
path: '/zh-CN/components/avatar',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/avatar.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -1129,7 +1009,6 @@ export const components = [
|
||||
label: 'Audio 音频',
|
||||
path: '/zh-CN/components/audio',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/audio.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -1139,7 +1018,6 @@ export const components = [
|
||||
label: 'Tasks 任务操作集合',
|
||||
path: '/zh-CN/components/tasks',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/tasks.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -1148,7 +1026,6 @@ export const components = [
|
||||
label: 'Badge 角标',
|
||||
path: '/zh-CN/components/badge',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/badge.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -1157,7 +1034,6 @@ export const components = [
|
||||
label: 'Wizard 向导',
|
||||
path: '/zh-CN/components/wizard',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/wizard.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
@ -1166,7 +1042,6 @@ export const components = [
|
||||
label: 'Web Component',
|
||||
path: '/zh-CN/components/web-component',
|
||||
getComponent: () =>
|
||||
// @ts-ignore
|
||||
import('../../docs/zh-CN/components/web-component.md').then(
|
||||
makeMarkdownRenderer
|
||||
)
|
||||
|
@ -5,175 +5,75 @@
|
||||
*/
|
||||
import React from 'react';
|
||||
|
||||
// @ts-ignore
|
||||
import CloseIcon from '../icons/close.svg';
|
||||
// @ts-ignore
|
||||
import UnDoIcon from '../icons/undo.svg';
|
||||
// @ts-ignore
|
||||
import ReDoIcon from '../icons/redo.svg';
|
||||
// @ts-ignore
|
||||
import EnterIcon from '../icons/enter.svg';
|
||||
// @ts-ignore
|
||||
import VolumeIcon from '../icons/volume.svg';
|
||||
// @ts-ignore
|
||||
import MuteIcon from '../icons/mute.svg';
|
||||
// @ts-ignore
|
||||
import PlayIcon from '../icons/play.svg';
|
||||
// @ts-ignore
|
||||
import PauseIcon from '../icons/pause.svg';
|
||||
// @ts-ignore
|
||||
import LeftArrowIcon from '../icons/left-arrow.svg';
|
||||
// @ts-ignore
|
||||
import RightArrowIcon from '../icons/right-arrow.svg';
|
||||
// @ts-ignore
|
||||
import CheckIcon from '../icons/check.svg';
|
||||
// @ts-ignore
|
||||
import PlusIcon from '../icons/plus.svg';
|
||||
// @ts-ignore
|
||||
import MinusIcon from '../icons/minus.svg';
|
||||
// @ts-ignore
|
||||
import PencilIcon from '../icons/pencil.svg';
|
||||
// @ts-ignore
|
||||
import ViewIcon from '../icons/view.svg';
|
||||
// @ts-ignore
|
||||
import RemoveIcon from '../icons/remove.svg';
|
||||
// @ts-ignore
|
||||
import RetryIcon from '../icons/retry.svg';
|
||||
// @ts-ignore
|
||||
import UploadIcon from '../icons/upload.svg';
|
||||
// @ts-ignore
|
||||
import FileIcon from '../icons/file.svg';
|
||||
// @ts-ignore
|
||||
import SuccessIcon from '../icons/success.svg';
|
||||
// @ts-ignore
|
||||
import FailIcon from '../icons/fail.svg';
|
||||
|
||||
// @ts-ignore
|
||||
import SearchIcon from '../icons/search.svg';
|
||||
|
||||
// @ts-ignore
|
||||
import BackIcon from '../icons/back.svg';
|
||||
|
||||
// @ts-ignore
|
||||
import MoveIcon from '../icons/move.svg';
|
||||
|
||||
// @ts-ignore
|
||||
import InfoIcon from '../icons/info.svg';
|
||||
|
||||
// @ts-ignore
|
||||
import LocationIcon from '../icons/location.svg';
|
||||
|
||||
// @ts-ignore
|
||||
import DragBarIcon from '../icons/drag-bar.svg';
|
||||
|
||||
// @ts-ignore
|
||||
import ReloadIcon from '../icons/reload.svg';
|
||||
|
||||
// @ts-ignore
|
||||
import ExchangeIcon from '../icons/exchange.svg';
|
||||
|
||||
// @ts-ignore
|
||||
import ColmunsIcon from '../icons/columns.svg';
|
||||
|
||||
// @ts-ignore
|
||||
import CalendarIcon from '../icons/calendar.svg';
|
||||
|
||||
// @ts-ignore
|
||||
import CopyIcon from '../icons/copy.svg';
|
||||
|
||||
// @ts-ignore
|
||||
import FilterIcon from '../icons/filter.svg';
|
||||
|
||||
// @ts-ignore
|
||||
import CaretIcon from '../icons/caret.svg';
|
||||
|
||||
// @ts-ignore
|
||||
import RightArrowBoldIcon from '../icons/right-arrow-bold.svg';
|
||||
|
||||
// @ts-ignore
|
||||
import ColumnFilterIcon from '../icons/column-filter.svg';
|
||||
|
||||
// @ts-ignore
|
||||
import ZoomInIcon from '../icons/zoom-in.svg';
|
||||
// @ts-ignore
|
||||
import ZoomOutIcon from '../icons/zoom-out.svg';
|
||||
|
||||
// @ts-ignore
|
||||
import QuestionIcon from '../icons/question.svg';
|
||||
|
||||
// @ts-ignore
|
||||
import QuestionMarkIcon from '../icons/question-mark.svg';
|
||||
|
||||
// @ts-ignore
|
||||
import WindowRestoreIcon from '../icons/window-restore.svg';
|
||||
|
||||
// @ts-ignore
|
||||
import InfoCircleIcon from '../icons/info-circle.svg';
|
||||
|
||||
// @ts-ignore
|
||||
import WarningIcon from '../icons/warning.svg';
|
||||
|
||||
// @ts-ignore
|
||||
import WarningMarkIcon from '../icons/warning-mark.svg';
|
||||
|
||||
// @ts-ignore
|
||||
import ScheduleIcon from '../icons/schedule.svg';
|
||||
|
||||
// @ts-ignore
|
||||
import HomeIcon from '../icons/home.svg';
|
||||
|
||||
// @ts-ignore
|
||||
import FolderIcon from '../icons/folder.svg';
|
||||
|
||||
// @ts-ignore
|
||||
import SortDefaultIcon from '../icons/sort-default.svg';
|
||||
|
||||
// @ts-ignore
|
||||
import SortAscIcon from '../icons/sort-asc.svg';
|
||||
|
||||
// @ts-ignore
|
||||
import SortDescIcon from '../icons/sort-desc.svg';
|
||||
|
||||
// @ts-ignore
|
||||
import SettingIcon from '../icons/setting.svg';
|
||||
|
||||
// @ts-ignore
|
||||
import PlusCicleIcon from '../icons/plus-cicle.svg';
|
||||
|
||||
// @ts-ignore
|
||||
import EllipsisVIcon from '../icons/ellipsis-v.svg';
|
||||
|
||||
// @ts-ignore
|
||||
import ExpandAltIcon from '../icons/expand-alt.svg';
|
||||
|
||||
// @ts-ignore
|
||||
import CompressAltIcon from '../icons/compress-alt.svg';
|
||||
|
||||
// @ts-ignore
|
||||
import TransparentIcon from '../icons/transparent.svg';
|
||||
|
||||
// 兼容原来的用法,后续不直接试用。
|
||||
// @ts-ignore
|
||||
export const closeIcon = <CloseIcon />;
|
||||
// @ts-ignore
|
||||
export const unDoIcon = <UnDoIcon />;
|
||||
// @ts-ignore
|
||||
export const reDoIcon = <ReDoIcon />;
|
||||
// @ts-ignore
|
||||
export const enterIcon = <EnterIcon />;
|
||||
// @ts-ignore
|
||||
export const volumeIcon = <VolumeIcon />;
|
||||
// @ts-ignore
|
||||
export const muteIcon = <MuteIcon />;
|
||||
// @ts-ignore
|
||||
export const playIcon = <PlayIcon />;
|
||||
// @ts-ignore
|
||||
export const pauseIcon = <PauseIcon />;
|
||||
// @ts-ignore
|
||||
export const leftArrowIcon = <LeftArrowIcon />;
|
||||
// @ts-ignore
|
||||
export const rightArrowIcon = <RightArrowIcon />;
|
||||
|
||||
export const closeIcon = <CloseIcon />;
|
||||
export const unDoIcon = <UnDoIcon />;
|
||||
export const reDoIcon = <ReDoIcon />;
|
||||
export const enterIcon = <EnterIcon />;
|
||||
export const volumeIcon = <VolumeIcon />;
|
||||
export const muteIcon = <MuteIcon />;
|
||||
export const playIcon = <PlayIcon />;
|
||||
export const pauseIcon = <PauseIcon />;
|
||||
export const leftArrowIcon = <LeftArrowIcon />;
|
||||
export const rightArrowIcon = <RightArrowIcon />;
|
||||
const iconFactory: {
|
||||
[propName: string]: React.ReactType<{}>;
|
||||
} = {};
|
||||
|
9
src/custom.d.ts
vendored
Normal file
9
src/custom.d.ts
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
declare module '*.svg' {
|
||||
const content: any;
|
||||
export default content;
|
||||
}
|
||||
|
||||
declare module '*.md' {
|
||||
const content: any;
|
||||
export default content;
|
||||
}
|
@ -21,7 +21,7 @@
|
||||
"typeRoots": ["./node_modules/@types", "./types"],
|
||||
"skipLibCheck": true
|
||||
},
|
||||
"include": ["src/**/*"],
|
||||
"include": ["src/**/*", "src/custom.d.ts", "examples/**/*"],
|
||||
"exclude": ["node_modules", "acceptance-tests", "webpack", "jest"],
|
||||
"types": ["node", "typePatches"]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user