@teamix/pro 1.6.0-beta.5 → 2.0.0-beta.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/pro.min.css +1 -1
- package/dist/pro.min.js +1 -2
- package/es/index-without-icon.d.ts +13 -13
- package/es/index-without-icon.js +31 -31
- package/es/index.d.ts +21 -32
- package/es/index.js +40 -36
- package/es/nocode/configurators/PageHeader.js +1 -1
- package/es/nocode/configurators/ProTable.js +1 -1
- package/es/nocode/configurators/index.js +1 -1
- package/es/nocode/configurators/map.js +3 -3
- package/es/nocode/index.js +8 -6
- package/es/nocode/pages/editor.js +1 -1
- package/es/nocode/pages/index.js +7 -4
- package/es/nocode/pages/playground.js +9 -11
- package/es/nocode/pages/renderer.d.ts +1 -1
- package/es/nocode/pages/renderer.js +12 -12
- package/es/nocode/playground.js +5 -7
- package/es/templates/Detail/index.d.ts +1 -0
- package/es/templates/Detail/index.js +1 -1
- package/es/templates/Form/index.d.ts +1 -0
- package/es/templates/Form/index.js +1 -1
- package/es/templates/List/index.d.ts +6 -3
- package/es/templates/List/index.js +7 -9
- package/es/templates/index.js +3 -3
- package/lib/index-without-icon.d.ts +13 -13
- package/lib/index-without-icon.js +57 -57
- package/lib/index.d.ts +21 -32
- package/lib/index.js +57 -170
- package/lib/nocode/pages/index.js +1 -1
- package/lib/nocode/pages/playground.js +5 -7
- package/lib/nocode/pages/renderer.d.ts +1 -1
- package/lib/nocode/pages/renderer.js +12 -12
- package/lib/nocode/playground.js +4 -6
- package/lib/templates/Detail/index.d.ts +1 -0
- package/lib/templates/Form/index.d.ts +1 -0
- package/lib/templates/List/index.d.ts +6 -3
- package/lib/templates/List/index.js +6 -8
- package/package.json +17 -6
- package/dist/pro.all.min.css +0 -1
- package/dist/pro.css +0 -1
- package/dist/pro.js +0 -115784
- package/dist/pro.min.js.LICENSE.txt +0 -47
- package/dist/pro.xconsole.min.css +0 -1
- package/es/actions/base.d.ts +0 -24
- package/es/actions/base.js +0 -64
- package/es/actions/confirm.d.ts +0 -7
- package/es/actions/confirm.js +0 -11
- package/es/actions/danger-confirm.d.ts +0 -7
- package/es/actions/danger-confirm.js +0 -14
- package/es/actions/danger-pop-confirm.d.ts +0 -5
- package/es/actions/danger-pop-confirm.js +0 -10
- package/es/actions/dialog-component.d.ts +0 -10
- package/es/actions/dialog-component.js +0 -19
- package/es/actions/dialog-form.d.ts +0 -29
- package/es/actions/dialog-form.js +0 -211
- package/es/actions/dialog-info.d.ts +0 -9
- package/es/actions/dialog-info.js +0 -19
- package/es/actions/dialog-table.d.ts +0 -9
- package/es/actions/dialog-table.js +0 -10
- package/es/actions/dialog.d.ts +0 -40
- package/es/actions/dialog.js +0 -223
- package/es/actions/drawer-form.d.ts +0 -6
- package/es/actions/drawer-form.js +0 -7
- package/es/actions/drawer-info.d.ts +0 -6
- package/es/actions/drawer-info.js +0 -7
- package/es/actions/drawer-table.d.ts +0 -6
- package/es/actions/drawer-table.js +0 -7
- package/es/actions/drawer.d.ts +0 -6
- package/es/actions/drawer.js +0 -7
- package/es/actions/error.d.ts +0 -7
- package/es/actions/error.js +0 -11
- package/es/actions/index.d.ts +0 -114
- package/es/actions/index.js +0 -436
- package/es/actions/index.scss +0 -141
- package/es/actions/link.d.ts +0 -8
- package/es/actions/link.js +0 -15
- package/es/actions/notice.d.ts +0 -7
- package/es/actions/notice.js +0 -11
- package/es/actions/pop-confirm.d.ts +0 -9
- package/es/actions/pop-confirm.js +0 -9
- package/es/actions/quick.d.ts +0 -2
- package/es/actions/quick.js +0 -26
- package/es/actions/request.d.ts +0 -9
- package/es/actions/request.js +0 -48
- package/es/actions/utils.d.ts +0 -1
- package/es/actions/utils.js +0 -19
- package/es/card/card-container.d.ts +0 -18
- package/es/card/card-container.js +0 -19
- package/es/card/divider.d.ts +0 -6
- package/es/card/divider.js +0 -11
- package/es/card/index.d.ts +0 -109
- package/es/card/index.js +0 -284
- package/es/card/index.scss +0 -313
- package/es/card/selectable.d.ts +0 -13
- package/es/card/selectable.js +0 -36
- package/es/card/tab.d.ts +0 -6
- package/es/card/tab.js +0 -18
- package/es/card/utils.d.ts +0 -9
- package/es/card/utils.js +0 -28
- package/es/card/xconsole.scss +0 -3
- package/es/field/index.d.ts +0 -3
- package/es/field/index.js +0 -3
- package/es/form/Components/Editable/index.d.ts +0 -20
- package/es/form/Components/Editable/index.js +0 -193
- package/es/form/Components/FormGroup/index.d.ts +0 -14
- package/es/form/Components/FormGroup/index.js +0 -78
- package/es/form/Components/FormGroup/index.scss +0 -23
- package/es/form/Components/LightFilter/componentMap.d.ts +0 -3
- package/es/form/Components/LightFilter/componentMap.js +0 -7
- package/es/form/Components/LightFilter/index.d.ts +0 -17
- package/es/form/Components/LightFilter/index.js +0 -122
- package/es/form/Components/LightFilter/index.scss +0 -89
- package/es/form/Components/ProField/index.d.ts +0 -2
- package/es/form/Components/ProField/index.js +0 -31
- package/es/form/Components/ProField/mapDateFormat.d.ts +0 -3
- package/es/form/Components/ProField/mapDateFormat.js +0 -86
- package/es/form/Components/Text/index.d.ts +0 -8
- package/es/form/Components/Text/index.js +0 -20
- package/es/form/Components/Text/index.scss +0 -8
- package/es/form/Filter/AdvancedFilter.d.ts +0 -7
- package/es/form/Filter/AdvancedFilter.js +0 -112
- package/es/form/Filter/Layout.d.ts +0 -5
- package/es/form/Filter/Layout.js +0 -68
- package/es/form/Filter/LightFilter.d.ts +0 -7
- package/es/form/Filter/LightFilter.js +0 -94
- package/es/form/Filter/SimpleFilter.d.ts +0 -7
- package/es/form/Filter/SimpleFilter.js +0 -88
- package/es/form/Filter/index.d.ts +0 -9
- package/es/form/Filter/index.js +0 -511
- package/es/form/Filter/index.scss +0 -48
- package/es/form/Filter/index2.d.ts +0 -13
- package/es/form/Filter/index2.js +0 -162
- package/es/form/Filter/index2.scss +0 -26
- package/es/form/Filter/layout.scss +0 -40
- package/es/form/Filter/useBindUrl.d.ts +0 -2
- package/es/form/Filter/useBindUrl.js +0 -90
- package/es/form/Filter/useSpecialProps.d.ts +0 -6
- package/es/form/Filter/useSpecialProps.js +0 -32
- package/es/form/ProForm/addCascadeEffect.d.ts +0 -2
- package/es/form/ProForm/addCascadeEffect.js +0 -203
- package/es/form/ProForm/customComponent.d.ts +0 -3
- package/es/form/ProForm/customComponent.js +0 -16
- package/es/form/ProForm/index.d.ts +0 -5
- package/es/form/ProForm/index.js +0 -155
- package/es/form/ProForm/index.scss +0 -411
- package/es/form/ProForm/useAutoLayout.d.ts +0 -9
- package/es/form/ProForm/useAutoLayout.js +0 -93
- package/es/form/ProForm/useAutoSubmit.d.ts +0 -6
- package/es/form/ProForm/useAutoSubmit.js +0 -23
- package/es/form/ProForm/useFieldRequest.d.ts +0 -5
- package/es/form/ProForm/useFieldRequest.js +0 -14
- package/es/form/ProForm/useFormDisplayValues.d.ts +0 -4
- package/es/form/ProForm/useFormDisplayValues.js +0 -78
- package/es/form/ProForm/useInitialRequest.d.ts +0 -6
- package/es/form/ProForm/useInitialRequest.js +0 -10
- package/es/form/SchemaForm/adapterComponent.d.ts +0 -5
- package/es/form/SchemaForm/adapterComponent.js +0 -14
- package/es/form/SchemaForm/adapterDecorator.d.ts +0 -6
- package/es/form/SchemaForm/adapterDecorator.js +0 -20
- package/es/form/SchemaForm/adapterType.d.ts +0 -5
- package/es/form/SchemaForm/adapterType.js +0 -52
- package/es/form/SchemaForm/index.d.ts +0 -4
- package/es/form/SchemaForm/index.js +0 -209
- package/es/form/SchemaForm/initializeArrayCards.d.ts +0 -3
- package/es/form/SchemaForm/initializeArrayCards.js +0 -18
- package/es/form/SchemaForm/initializeArrayCollapse.d.ts +0 -3
- package/es/form/SchemaForm/initializeArrayCollapse.js +0 -18
- package/es/form/SchemaForm/initializeArrayItems.d.ts +0 -3
- package/es/form/SchemaForm/initializeArrayItems.js +0 -31
- package/es/form/SchemaForm/initializeArrayTable.d.ts +0 -3
- package/es/form/SchemaForm/initializeArrayTable.js +0 -78
- package/es/form/SchemaForm/initializeDataSource.d.ts +0 -15
- package/es/form/SchemaForm/initializeDataSource.js +0 -19
- package/es/form/SchemaForm/initializeFormButton.d.ts +0 -3
- package/es/form/SchemaForm/initializeFormButton.js +0 -74
- package/es/form/SchemaForm/initializeFormCollapse.d.ts +0 -3
- package/es/form/SchemaForm/initializeFormCollapse.js +0 -33
- package/es/form/SchemaForm/initializeFormGroup.d.ts +0 -3
- package/es/form/SchemaForm/initializeFormGroup.js +0 -36
- package/es/form/SchemaForm/initializeFormStep.d.ts +0 -5
- package/es/form/SchemaForm/initializeFormStep.js +0 -50
- package/es/form/SchemaForm/initializeFormTab.d.ts +0 -3
- package/es/form/SchemaForm/initializeFormTab.js +0 -43
- package/es/form/SchemaForm/initializeReactions.d.ts +0 -2
- package/es/form/SchemaForm/initializeReactions.js +0 -65
- package/es/form/SchemaForm/initializeRequest.d.ts +0 -11
- package/es/form/SchemaForm/initializeRequest.js +0 -38
- package/es/form/SchemaForm/initializeRules.d.ts +0 -11
- package/es/form/SchemaForm/initializeRules.js +0 -46
- package/es/form/SchemaForm/initializeSelectTable.d.ts +0 -3
- package/es/form/SchemaForm/initializeSelectTable.js +0 -83
- package/es/form/SchemaForm/reactions.d.ts +0 -6
- package/es/form/SchemaForm/reactions.js +0 -88
- package/es/form/docs/ActionResponse.d.ts +0 -8
- package/es/form/docs/ActionResponse.js +0 -11
- package/es/form/docs/ActionResponse.less +0 -25
- package/es/form/fieldTypeMap.d.ts +0 -7
- package/es/form/fieldTypeMap.js +0 -46
- package/es/form/global.scss +0 -14
- package/es/form/index.d.ts +0 -125
- package/es/form/index.js +0 -44
- package/es/form/locales/validate.d.ts +0 -159
- package/es/form/locales/validate.js +0 -158
- package/es/form/schemaNameMap.d.ts +0 -5
- package/es/form/schemaNameMap.js +0 -50
- package/es/form/typing.d.ts +0 -194
- package/es/form/typing.js +0 -1
- package/es/form/utils/parseSchema.d.ts +0 -3
- package/es/form/utils/parseSchema.js +0 -38
- package/es/form/utils.d.ts +0 -55
- package/es/form/utils.js +0 -155
- package/es/form/warning.d.ts +0 -3
- package/es/form/warning.js +0 -11
- package/es/image/index.d.ts +0 -22
- package/es/image/index.js +0 -73
- package/es/image/index.scss +0 -3
- package/es/info/components/InfoGroup/index.d.ts +0 -5
- package/es/info/components/InfoGroup/index.js +0 -86
- package/es/info/components/InfoGroup/index.scss +0 -64
- package/es/info/components/InfoValueItem/index.d.ts +0 -5
- package/es/info/components/InfoValueItem/index.js +0 -302
- package/es/info/components/InfoValueItem/index.scss +0 -26
- package/es/info/components/ProInfoItem/index.d.ts +0 -5
- package/es/info/components/ProInfoItem/index.js +0 -92
- package/es/info/components/ProInfoItem/index.scss +0 -76
- package/es/info/components/baseInfo/index.d.ts +0 -8
- package/es/info/components/baseInfo/index.js +0 -95
- package/es/info/components/baseInfo/index.scss +0 -6
- package/es/info/components/headerInfo/index.d.ts +0 -8
- package/es/info/components/headerInfo/index.js +0 -68
- package/es/info/components/headerInfo/index.scss +0 -3
- package/es/info/components/tableInfo/index.d.ts +0 -7
- package/es/info/components/tableInfo/index.js +0 -154
- package/es/info/components/tableInfo/index.scss +0 -18
- package/es/info/index.d.ts +0 -6
- package/es/info/index.js +0 -182
- package/es/info/index.scss +0 -9
- package/es/info/typing.d.ts +0 -220
- package/es/info/typing.js +0 -1
- package/es/info/utils/index.d.ts +0 -20
- package/es/info/utils/index.js +0 -49
- package/es/info/utils/layout.d.ts +0 -2
- package/es/info/utils/layout.js +0 -58
- package/es/info/utils/utils.d.ts +0 -1
- package/es/info/utils/utils.js +0 -13
- package/es/layout/index.d.ts +0 -2
- package/es/layout/index.js +0 -3
- package/es/page-container/index.d.ts +0 -3
- package/es/page-container/index.js +0 -3
- package/es/page-header/index.d.ts +0 -74
- package/es/page-header/index.js +0 -218
- package/es/page-header/index.scss +0 -193
- package/es/page-header/xconsole.scss +0 -5
- package/es/sidebar/components/sidebar-container/index.d.ts +0 -5
- package/es/sidebar/components/sidebar-container/index.js +0 -167
- package/es/sidebar/components/sidebar-container/index.scss +0 -73
- package/es/sidebar/components/tree/index.d.ts +0 -6
- package/es/sidebar/components/tree/index.js +0 -288
- package/es/sidebar/components/tree/index.scss +0 -10
- package/es/sidebar/components/tree-node/components/HoverTooltip/index.d.ts +0 -15
- package/es/sidebar/components/tree-node/components/HoverTooltip/index.js +0 -47
- package/es/sidebar/components/tree-node/components/HoverTooltip/index.scss +0 -7
- package/es/sidebar/components/tree-node/components/IconAction/index.d.ts +0 -12
- package/es/sidebar/components/tree-node/components/IconAction/index.js +0 -79
- package/es/sidebar/components/tree-node/components/IconAction/index.scss +0 -7
- package/es/sidebar/components/tree-node/components/IconSwitch/index.d.ts +0 -23
- package/es/sidebar/components/tree-node/components/IconSwitch/index.js +0 -60
- package/es/sidebar/components/tree-node/components/IconSwitch/index.scss +0 -7
- package/es/sidebar/components/tree-node/index.d.ts +0 -7
- package/es/sidebar/components/tree-node/index.js +0 -192
- package/es/sidebar/components/tree-node/index.scss +0 -68
- package/es/sidebar/index.d.ts +0 -9
- package/es/sidebar/index.js +0 -187
- package/es/sidebar/index.scss +0 -38
- package/es/sidebar/typing.d.ts +0 -145
- package/es/sidebar/typing.js +0 -1
- package/es/sidebar/utils/action-ref.d.ts +0 -3
- package/es/sidebar/utils/action-ref.js +0 -10
- package/es/sidebar/utils/index.d.ts +0 -364
- package/es/sidebar/utils/index.js +0 -277
- package/es/skeleton/index.d.ts +0 -3
- package/es/skeleton/index.js +0 -3
- package/es/table/components/CardView/index.d.ts +0 -5
- package/es/table/components/CardView/index.js +0 -387
- package/es/table/components/CardView/index.scss +0 -46
- package/es/table/components/EmptyContent/index.d.ts +0 -2
- package/es/table/components/EmptyContent/index.js +0 -11
- package/es/table/components/Filter/index.d.ts +0 -12
- package/es/table/components/Filter/index.js +0 -248
- package/es/table/components/Filter/index.scss +0 -27
- package/es/table/components/Layout/index.d.ts +0 -5
- package/es/table/components/Layout/index.js +0 -175
- package/es/table/components/Layout/index.scss +0 -48
- package/es/table/components/LoadMore/index.d.ts +0 -20
- package/es/table/components/LoadMore/index.js +0 -88
- package/es/table/components/LoadMore/index.scss +0 -19
- package/es/table/components/Pagination/index.d.ts +0 -8
- package/es/table/components/Pagination/index.js +0 -244
- package/es/table/components/Pagination/index.scss +0 -55
- package/es/table/components/QuickAction/index.d.ts +0 -11
- package/es/table/components/QuickAction/index.js +0 -45
- package/es/table/components/ToolBar/CardSwitch.d.ts +0 -8
- package/es/table/components/ToolBar/CardSwitch.js +0 -52
- package/es/table/components/ToolBar/DensityIcon.d.ts +0 -4
- package/es/table/components/ToolBar/DensityIcon.js +0 -107
- package/es/table/components/ToolBar/FilterColumnIcon.d.ts +0 -4
- package/es/table/components/ToolBar/FilterColumnIcon.js +0 -362
- package/es/table/components/ToolBar/FullScreenIcon.d.ts +0 -4
- package/es/table/components/ToolBar/FullScreenIcon.js +0 -29
- package/es/table/components/ToolBar/Fullscreen.d.ts +0 -10
- package/es/table/components/ToolBar/Fullscreen.js +0 -100
- package/es/table/components/ToolBar/RefreshIcon.d.ts +0 -4
- package/es/table/components/ToolBar/RefreshIcon.js +0 -180
- package/es/table/components/ToolBar/index.d.ts +0 -5
- package/es/table/components/ToolBar/index.js +0 -174
- package/es/table/components/ToolBar/index.scss +0 -177
- package/es/table/index.d.ts +0 -6
- package/es/table/index.js +0 -1154
- package/es/table/index.scss +0 -158
- package/es/table/typing.d.ts +0 -426
- package/es/table/typing.js +0 -1
- package/es/table/utils/columnRender.d.ts +0 -13
- package/es/table/utils/columnRender.js +0 -247
- package/es/table/utils/genProColumnToColumn.d.ts +0 -13
- package/es/table/utils/genProColumnToColumn.js +0 -51
- package/es/table/utils/getTableProps.d.ts +0 -2
- package/es/table/utils/getTableProps.js +0 -4
- package/es/table/utils/getTableSortIcons.d.ts +0 -3
- package/es/table/utils/getTableSortIcons.js +0 -21
- package/es/table/utils/index.d.ts +0 -19
- package/es/table/utils/index.js +0 -128
- package/es/table/utils/pureColumnRender.d.ts +0 -9
- package/es/table/utils/pureColumnRender.js +0 -169
- package/es/table/utils/pureGenProColumnToColumn.d.ts +0 -7
- package/es/table/utils/pureGenProColumnToColumn.js +0 -28
- package/es/table/utils/useTableSelection.d.ts +0 -3
- package/es/table/utils/useTableSelection.js +0 -80
- package/es/table/utils/util.d.ts +0 -5
- package/es/table/utils/util.js +0 -19
- package/es/timeline/ProTimeLineItem/index.d.ts +0 -5
- package/es/timeline/ProTimeLineItem/index.js +0 -245
- package/es/timeline/ProTimeLineItem/index.scss +0 -235
- package/es/timeline/index.d.ts +0 -10
- package/es/timeline/index.js +0 -63
- package/es/timeline/index.scss +0 -7
- package/es/timeline/typing.d.ts +0 -107
- package/es/timeline/typing.js +0 -1
- package/es/utils/aspect.d.ts +0 -2
- package/es/utils/aspect.js +0 -57
- package/es/utils/index.d.ts +0 -3
- package/es/utils/index.js +0 -3
- package/es/utils/message.d.ts +0 -3
- package/es/utils/message.js +0 -14
- package/lib/actions/base.d.ts +0 -24
- package/lib/actions/base.js +0 -72
- package/lib/actions/confirm.d.ts +0 -7
- package/lib/actions/confirm.js +0 -20
- package/lib/actions/danger-confirm.d.ts +0 -7
- package/lib/actions/danger-confirm.js +0 -23
- package/lib/actions/danger-pop-confirm.d.ts +0 -5
- package/lib/actions/danger-pop-confirm.js +0 -18
- package/lib/actions/dialog-component.d.ts +0 -10
- package/lib/actions/dialog-component.js +0 -28
- package/lib/actions/dialog-form.d.ts +0 -29
- package/lib/actions/dialog-form.js +0 -220
- package/lib/actions/dialog-info.d.ts +0 -9
- package/lib/actions/dialog-info.js +0 -28
- package/lib/actions/dialog-table.d.ts +0 -9
- package/lib/actions/dialog-table.js +0 -19
- package/lib/actions/dialog.d.ts +0 -40
- package/lib/actions/dialog.js +0 -232
- package/lib/actions/drawer-form.d.ts +0 -6
- package/lib/actions/drawer-form.js +0 -15
- package/lib/actions/drawer-info.d.ts +0 -6
- package/lib/actions/drawer-info.js +0 -15
- package/lib/actions/drawer-table.d.ts +0 -6
- package/lib/actions/drawer-table.js +0 -15
- package/lib/actions/drawer.d.ts +0 -6
- package/lib/actions/drawer.js +0 -16
- package/lib/actions/error.d.ts +0 -7
- package/lib/actions/error.js +0 -20
- package/lib/actions/index.d.ts +0 -114
- package/lib/actions/index.js +0 -474
- package/lib/actions/index.scss +0 -141
- package/lib/actions/link.d.ts +0 -8
- package/lib/actions/link.js +0 -21
- package/lib/actions/notice.d.ts +0 -7
- package/lib/actions/notice.js +0 -20
- package/lib/actions/pop-confirm.d.ts +0 -9
- package/lib/actions/pop-confirm.js +0 -18
- package/lib/actions/quick.d.ts +0 -2
- package/lib/actions/quick.js +0 -33
- package/lib/actions/request.d.ts +0 -9
- package/lib/actions/request.js +0 -55
- package/lib/actions/utils.d.ts +0 -1
- package/lib/actions/utils.js +0 -25
- package/lib/card/card-container.d.ts +0 -18
- package/lib/card/card-container.js +0 -28
- package/lib/card/divider.d.ts +0 -6
- package/lib/card/divider.js +0 -19
- package/lib/card/index.d.ts +0 -109
- package/lib/card/index.js +0 -310
- package/lib/card/index.scss +0 -313
- package/lib/card/selectable.d.ts +0 -13
- package/lib/card/selectable.js +0 -44
- package/lib/card/tab.d.ts +0 -6
- package/lib/card/tab.js +0 -26
- package/lib/card/utils.d.ts +0 -9
- package/lib/card/utils.js +0 -35
- package/lib/card/xconsole.scss +0 -3
- package/lib/field/index.d.ts +0 -3
- package/lib/field/index.js +0 -24
- package/lib/form/Components/Editable/index.d.ts +0 -20
- package/lib/form/Components/Editable/index.js +0 -205
- package/lib/form/Components/FormGroup/index.d.ts +0 -14
- package/lib/form/Components/FormGroup/index.js +0 -86
- package/lib/form/Components/FormGroup/index.scss +0 -23
- package/lib/form/Components/LightFilter/componentMap.d.ts +0 -3
- package/lib/form/Components/LightFilter/componentMap.js +0 -14
- package/lib/form/Components/LightFilter/index.d.ts +0 -17
- package/lib/form/Components/LightFilter/index.js +0 -133
- package/lib/form/Components/LightFilter/index.scss +0 -89
- package/lib/form/Components/ProField/index.d.ts +0 -2
- package/lib/form/Components/ProField/index.js +0 -39
- package/lib/form/Components/ProField/mapDateFormat.d.ts +0 -3
- package/lib/form/Components/ProField/mapDateFormat.js +0 -94
- package/lib/form/Components/Text/index.d.ts +0 -8
- package/lib/form/Components/Text/index.js +0 -28
- package/lib/form/Components/Text/index.scss +0 -8
- package/lib/form/Filter/AdvancedFilter.d.ts +0 -7
- package/lib/form/Filter/AdvancedFilter.js +0 -123
- package/lib/form/Filter/Layout.d.ts +0 -5
- package/lib/form/Filter/Layout.js +0 -78
- package/lib/form/Filter/LightFilter.d.ts +0 -7
- package/lib/form/Filter/LightFilter.js +0 -105
- package/lib/form/Filter/SimpleFilter.d.ts +0 -7
- package/lib/form/Filter/SimpleFilter.js +0 -99
- package/lib/form/Filter/index.d.ts +0 -9
- package/lib/form/Filter/index.js +0 -526
- package/lib/form/Filter/index.scss +0 -48
- package/lib/form/Filter/index2.d.ts +0 -13
- package/lib/form/Filter/index2.js +0 -174
- package/lib/form/Filter/index2.scss +0 -26
- package/lib/form/Filter/layout.scss +0 -40
- package/lib/form/Filter/useBindUrl.d.ts +0 -2
- package/lib/form/Filter/useBindUrl.js +0 -97
- package/lib/form/Filter/useSpecialProps.d.ts +0 -6
- package/lib/form/Filter/useSpecialProps.js +0 -39
- package/lib/form/ProForm/addCascadeEffect.d.ts +0 -2
- package/lib/form/ProForm/addCascadeEffect.js +0 -210
- package/lib/form/ProForm/customComponent.d.ts +0 -3
- package/lib/form/ProForm/customComponent.js +0 -22
- package/lib/form/ProForm/index.d.ts +0 -5
- package/lib/form/ProForm/index.js +0 -166
- package/lib/form/ProForm/index.scss +0 -411
- package/lib/form/ProForm/useAutoLayout.d.ts +0 -9
- package/lib/form/ProForm/useAutoLayout.js +0 -100
- package/lib/form/ProForm/useAutoSubmit.d.ts +0 -6
- package/lib/form/ProForm/useAutoSubmit.js +0 -28
- package/lib/form/ProForm/useFieldRequest.d.ts +0 -5
- package/lib/form/ProForm/useFieldRequest.js +0 -21
- package/lib/form/ProForm/useFormDisplayValues.d.ts +0 -4
- package/lib/form/ProForm/useFormDisplayValues.js +0 -86
- package/lib/form/ProForm/useInitialRequest.d.ts +0 -6
- package/lib/form/ProForm/useInitialRequest.js +0 -17
- package/lib/form/SchemaForm/adapterComponent.d.ts +0 -5
- package/lib/form/SchemaForm/adapterComponent.js +0 -21
- package/lib/form/SchemaForm/adapterDecorator.d.ts +0 -6
- package/lib/form/SchemaForm/adapterDecorator.js +0 -24
- package/lib/form/SchemaForm/adapterType.d.ts +0 -5
- package/lib/form/SchemaForm/adapterType.js +0 -59
- package/lib/form/SchemaForm/index.d.ts +0 -4
- package/lib/form/SchemaForm/index.js +0 -220
- package/lib/form/SchemaForm/initializeArrayCards.d.ts +0 -3
- package/lib/form/SchemaForm/initializeArrayCards.js +0 -25
- package/lib/form/SchemaForm/initializeArrayCollapse.d.ts +0 -3
- package/lib/form/SchemaForm/initializeArrayCollapse.js +0 -25
- package/lib/form/SchemaForm/initializeArrayItems.d.ts +0 -3
- package/lib/form/SchemaForm/initializeArrayItems.js +0 -38
- package/lib/form/SchemaForm/initializeArrayTable.d.ts +0 -3
- package/lib/form/SchemaForm/initializeArrayTable.js +0 -85
- package/lib/form/SchemaForm/initializeDataSource.d.ts +0 -15
- package/lib/form/SchemaForm/initializeDataSource.js +0 -26
- package/lib/form/SchemaForm/initializeFormButton.d.ts +0 -3
- package/lib/form/SchemaForm/initializeFormButton.js +0 -81
- package/lib/form/SchemaForm/initializeFormCollapse.d.ts +0 -3
- package/lib/form/SchemaForm/initializeFormCollapse.js +0 -40
- package/lib/form/SchemaForm/initializeFormGroup.d.ts +0 -3
- package/lib/form/SchemaForm/initializeFormGroup.js +0 -43
- package/lib/form/SchemaForm/initializeFormStep.d.ts +0 -5
- package/lib/form/SchemaForm/initializeFormStep.js +0 -57
- package/lib/form/SchemaForm/initializeFormTab.d.ts +0 -3
- package/lib/form/SchemaForm/initializeFormTab.js +0 -50
- package/lib/form/SchemaForm/initializeReactions.d.ts +0 -2
- package/lib/form/SchemaForm/initializeReactions.js +0 -73
- package/lib/form/SchemaForm/initializeRequest.d.ts +0 -11
- package/lib/form/SchemaForm/initializeRequest.js +0 -45
- package/lib/form/SchemaForm/initializeRules.d.ts +0 -11
- package/lib/form/SchemaForm/initializeRules.js +0 -53
- package/lib/form/SchemaForm/initializeSelectTable.d.ts +0 -3
- package/lib/form/SchemaForm/initializeSelectTable.js +0 -91
- package/lib/form/SchemaForm/reactions.d.ts +0 -6
- package/lib/form/SchemaForm/reactions.js +0 -97
- package/lib/form/docs/ActionResponse.d.ts +0 -8
- package/lib/form/docs/ActionResponse.js +0 -19
- package/lib/form/docs/ActionResponse.less +0 -25
- package/lib/form/fieldTypeMap.d.ts +0 -7
- package/lib/form/fieldTypeMap.js +0 -54
- package/lib/form/global.scss +0 -14
- package/lib/form/index.d.ts +0 -125
- package/lib/form/index.js +0 -171
- package/lib/form/locales/validate.d.ts +0 -159
- package/lib/form/locales/validate.js +0 -165
- package/lib/form/schemaNameMap.d.ts +0 -5
- package/lib/form/schemaNameMap.js +0 -57
- package/lib/form/typing.d.ts +0 -194
- package/lib/form/typing.js +0 -5
- package/lib/form/utils/parseSchema.d.ts +0 -3
- package/lib/form/utils/parseSchema.js +0 -45
- package/lib/form/utils.d.ts +0 -55
- package/lib/form/utils.js +0 -169
- package/lib/form/warning.d.ts +0 -3
- package/lib/form/warning.js +0 -18
- package/lib/image/index.d.ts +0 -22
- package/lib/image/index.js +0 -83
- package/lib/image/index.scss +0 -3
- package/lib/info/components/InfoGroup/index.d.ts +0 -5
- package/lib/info/components/InfoGroup/index.js +0 -97
- package/lib/info/components/InfoGroup/index.scss +0 -64
- package/lib/info/components/InfoValueItem/index.d.ts +0 -5
- package/lib/info/components/InfoValueItem/index.js +0 -313
- package/lib/info/components/InfoValueItem/index.scss +0 -26
- package/lib/info/components/ProInfoItem/index.d.ts +0 -5
- package/lib/info/components/ProInfoItem/index.js +0 -100
- package/lib/info/components/ProInfoItem/index.scss +0 -76
- package/lib/info/components/baseInfo/index.d.ts +0 -8
- package/lib/info/components/baseInfo/index.js +0 -103
- package/lib/info/components/baseInfo/index.scss +0 -6
- package/lib/info/components/headerInfo/index.d.ts +0 -8
- package/lib/info/components/headerInfo/index.js +0 -76
- package/lib/info/components/headerInfo/index.scss +0 -3
- package/lib/info/components/tableInfo/index.d.ts +0 -7
- package/lib/info/components/tableInfo/index.js +0 -164
- package/lib/info/components/tableInfo/index.scss +0 -18
- package/lib/info/index.d.ts +0 -6
- package/lib/info/index.js +0 -205
- package/lib/info/index.scss +0 -9
- package/lib/info/typing.d.ts +0 -220
- package/lib/info/typing.js +0 -5
- package/lib/info/utils/index.d.ts +0 -20
- package/lib/info/utils/index.js +0 -60
- package/lib/info/utils/layout.d.ts +0 -2
- package/lib/info/utils/layout.js +0 -65
- package/lib/info/utils/utils.d.ts +0 -1
- package/lib/info/utils/utils.js +0 -19
- package/lib/layout/index.d.ts +0 -2
- package/lib/layout/index.js +0 -10
- package/lib/page-container/index.d.ts +0 -3
- package/lib/page-container/index.js +0 -24
- package/lib/page-header/index.d.ts +0 -74
- package/lib/page-header/index.js +0 -224
- package/lib/page-header/index.scss +0 -193
- package/lib/page-header/xconsole.scss +0 -5
- package/lib/sidebar/components/sidebar-container/index.d.ts +0 -5
- package/lib/sidebar/components/sidebar-container/index.js +0 -178
- package/lib/sidebar/components/sidebar-container/index.scss +0 -73
- package/lib/sidebar/components/tree/index.d.ts +0 -6
- package/lib/sidebar/components/tree/index.js +0 -298
- package/lib/sidebar/components/tree/index.scss +0 -10
- package/lib/sidebar/components/tree-node/components/HoverTooltip/index.d.ts +0 -15
- package/lib/sidebar/components/tree-node/components/HoverTooltip/index.js +0 -57
- package/lib/sidebar/components/tree-node/components/HoverTooltip/index.scss +0 -7
- package/lib/sidebar/components/tree-node/components/IconAction/index.d.ts +0 -12
- package/lib/sidebar/components/tree-node/components/IconAction/index.js +0 -90
- package/lib/sidebar/components/tree-node/components/IconAction/index.scss +0 -7
- package/lib/sidebar/components/tree-node/components/IconSwitch/index.d.ts +0 -23
- package/lib/sidebar/components/tree-node/components/IconSwitch/index.js +0 -71
- package/lib/sidebar/components/tree-node/components/IconSwitch/index.scss +0 -7
- package/lib/sidebar/components/tree-node/index.d.ts +0 -7
- package/lib/sidebar/components/tree-node/index.js +0 -204
- package/lib/sidebar/components/tree-node/index.scss +0 -68
- package/lib/sidebar/index.d.ts +0 -9
- package/lib/sidebar/index.js +0 -228
- package/lib/sidebar/index.scss +0 -38
- package/lib/sidebar/typing.d.ts +0 -145
- package/lib/sidebar/typing.js +0 -5
- package/lib/sidebar/utils/action-ref.d.ts +0 -3
- package/lib/sidebar/utils/action-ref.js +0 -16
- package/lib/sidebar/utils/index.d.ts +0 -364
- package/lib/sidebar/utils/index.js +0 -291
- package/lib/skeleton/index.d.ts +0 -3
- package/lib/skeleton/index.js +0 -24
- package/lib/table/components/CardView/index.d.ts +0 -5
- package/lib/table/components/CardView/index.js +0 -397
- package/lib/table/components/CardView/index.scss +0 -46
- package/lib/table/components/EmptyContent/index.d.ts +0 -2
- package/lib/table/components/EmptyContent/index.js +0 -19
- package/lib/table/components/Filter/index.d.ts +0 -12
- package/lib/table/components/Filter/index.js +0 -258
- package/lib/table/components/Filter/index.scss +0 -27
- package/lib/table/components/Layout/index.d.ts +0 -5
- package/lib/table/components/Layout/index.js +0 -185
- package/lib/table/components/Layout/index.scss +0 -48
- package/lib/table/components/LoadMore/index.d.ts +0 -20
- package/lib/table/components/LoadMore/index.js +0 -99
- package/lib/table/components/LoadMore/index.scss +0 -19
- package/lib/table/components/Pagination/index.d.ts +0 -8
- package/lib/table/components/Pagination/index.js +0 -253
- package/lib/table/components/Pagination/index.scss +0 -55
- package/lib/table/components/QuickAction/index.d.ts +0 -11
- package/lib/table/components/QuickAction/index.js +0 -53
- package/lib/table/components/ToolBar/CardSwitch.d.ts +0 -8
- package/lib/table/components/ToolBar/CardSwitch.js +0 -60
- package/lib/table/components/ToolBar/DensityIcon.d.ts +0 -4
- package/lib/table/components/ToolBar/DensityIcon.js +0 -114
- package/lib/table/components/ToolBar/FilterColumnIcon.d.ts +0 -4
- package/lib/table/components/ToolBar/FilterColumnIcon.js +0 -370
- package/lib/table/components/ToolBar/FullScreenIcon.d.ts +0 -4
- package/lib/table/components/ToolBar/FullScreenIcon.js +0 -38
- package/lib/table/components/ToolBar/Fullscreen.d.ts +0 -10
- package/lib/table/components/ToolBar/Fullscreen.js +0 -110
- package/lib/table/components/ToolBar/RefreshIcon.d.ts +0 -4
- package/lib/table/components/ToolBar/RefreshIcon.js +0 -188
- package/lib/table/components/ToolBar/index.d.ts +0 -5
- package/lib/table/components/ToolBar/index.js +0 -185
- package/lib/table/components/ToolBar/index.scss +0 -177
- package/lib/table/index.d.ts +0 -6
- package/lib/table/index.js +0 -1176
- package/lib/table/index.scss +0 -158
- package/lib/table/typing.d.ts +0 -426
- package/lib/table/typing.js +0 -5
- package/lib/table/utils/columnRender.d.ts +0 -13
- package/lib/table/utils/columnRender.js +0 -256
- package/lib/table/utils/genProColumnToColumn.d.ts +0 -13
- package/lib/table/utils/genProColumnToColumn.js +0 -58
- package/lib/table/utils/getTableProps.d.ts +0 -2
- package/lib/table/utils/getTableProps.js +0 -11
- package/lib/table/utils/getTableSortIcons.d.ts +0 -3
- package/lib/table/utils/getTableSortIcons.js +0 -29
- package/lib/table/utils/index.d.ts +0 -19
- package/lib/table/utils/index.js +0 -142
- package/lib/table/utils/pureColumnRender.d.ts +0 -9
- package/lib/table/utils/pureColumnRender.js +0 -178
- package/lib/table/utils/pureGenProColumnToColumn.d.ts +0 -7
- package/lib/table/utils/pureGenProColumnToColumn.js +0 -34
- package/lib/table/utils/useTableSelection.d.ts +0 -3
- package/lib/table/utils/useTableSelection.js +0 -83
- package/lib/table/utils/util.d.ts +0 -5
- package/lib/table/utils/util.js +0 -25
- package/lib/timeline/ProTimeLineItem/index.d.ts +0 -5
- package/lib/timeline/ProTimeLineItem/index.js +0 -255
- package/lib/timeline/ProTimeLineItem/index.scss +0 -235
- package/lib/timeline/index.d.ts +0 -10
- package/lib/timeline/index.js +0 -79
- package/lib/timeline/index.scss +0 -7
- package/lib/timeline/typing.d.ts +0 -107
- package/lib/timeline/typing.js +0 -5
- package/lib/utils/aspect.d.ts +0 -2
- package/lib/utils/aspect.js +0 -64
- package/lib/utils/index.d.ts +0 -3
- package/lib/utils/index.js +0 -24
- package/lib/utils/message.d.ts +0 -3
- package/lib/utils/message.js +0 -22
- /package/dist/{fonts/txddinmedium.woff → static/txddinmedium.df41cfe2.woff} +0 -0
package/lib/table/index.scss
DELETED
@@ -1,158 +0,0 @@
|
|
1
|
-
$prefix: 'teamix-pro-table';
|
2
|
-
$fullscreenPadding: 24px;
|
3
|
-
|
4
|
-
.#{$prefix} {
|
5
|
-
background: var(--table-row-bg, #ffffff);
|
6
|
-
position: relative;
|
7
|
-
&-footer {
|
8
|
-
padding: 8px 0;
|
9
|
-
width: 100%;
|
10
|
-
}
|
11
|
-
&-footer-fixed {
|
12
|
-
position: fixed;
|
13
|
-
z-index: 3;
|
14
|
-
bottom: 0;
|
15
|
-
border-top: 1px solid var(--color-line1-2);
|
16
|
-
box-shadow: var(--shadow-1-up);
|
17
|
-
background: var(--color-fill1-1);
|
18
|
-
}
|
19
|
-
&-footer-has-rowSelection, &-footer-has-action {
|
20
|
-
display: flex;
|
21
|
-
align-items: center;
|
22
|
-
padding: 8px 0;
|
23
|
-
right: 0;
|
24
|
-
width: 100%;
|
25
|
-
}
|
26
|
-
&-footer-left-wrapper {
|
27
|
-
display: flex;
|
28
|
-
flex-shrink: 0;
|
29
|
-
align-items: center;
|
30
|
-
}
|
31
|
-
&-footer-right-wrapper {
|
32
|
-
display: flex;
|
33
|
-
justify-content: flex-end;
|
34
|
-
width: 100%;
|
35
|
-
& > span {
|
36
|
-
display: flex;
|
37
|
-
justify-content: flex-end;
|
38
|
-
width: 100%;
|
39
|
-
}
|
40
|
-
}
|
41
|
-
&-footer-action {
|
42
|
-
margin-left: 16px;
|
43
|
-
}
|
44
|
-
&-footer-checkbox-medium {
|
45
|
-
margin-left: var(--table-cell-padding-left, 16px);
|
46
|
-
}
|
47
|
-
&-footer-checkbox-small {
|
48
|
-
margin-left: var(--table-size-s-cell-padding-left, 8px);
|
49
|
-
}
|
50
|
-
&-selected-msg {
|
51
|
-
color: var(--color-fill1-6);
|
52
|
-
margin-left: 16px;
|
53
|
-
}
|
54
|
-
&-fullscreen {
|
55
|
-
padding: $fullscreenPadding $fullscreenPadding 0 $fullscreenPadding;
|
56
|
-
|
57
|
-
// 去除全屏锁列之后右侧滚动条阴影
|
58
|
-
.next-table-stickylock.next-table-scrolling-to-right {
|
59
|
-
&::after {
|
60
|
-
box-shadow: unset;
|
61
|
-
}
|
62
|
-
}
|
63
|
-
|
64
|
-
.teamix-pro-table-footer {
|
65
|
-
position: fixed;
|
66
|
-
bottom: 0;
|
67
|
-
left: 0;
|
68
|
-
right: 0;
|
69
|
-
padding: 10px $fullscreenPadding 8px $fullscreenPadding;
|
70
|
-
box-shadow: var(--shadow-1-up);
|
71
|
-
background-color: var(--table-row-bg, #ffffff);
|
72
|
-
margin: 0;
|
73
|
-
z-index: 2;
|
74
|
-
}
|
75
|
-
|
76
|
-
.next-table-body {
|
77
|
-
transition: all 0.1s;
|
78
|
-
}
|
79
|
-
}
|
80
|
-
// sort icon
|
81
|
-
.next-table-sort.next-table-header-icon {
|
82
|
-
line-height: 16px;
|
83
|
-
margin-left: 6px;
|
84
|
-
.teamix-icon {
|
85
|
-
position: absolute;
|
86
|
-
width: 12px;
|
87
|
-
}
|
88
|
-
& .current .teamix-icon {
|
89
|
-
color: var(--table-sort-color-current, #0064c8);
|
90
|
-
}
|
91
|
-
}
|
92
|
-
.next-table-empty {
|
93
|
-
padding: 0;
|
94
|
-
}
|
95
|
-
.next-table-wrap-empty {
|
96
|
-
.next-table-body tr td{
|
97
|
-
border-bottom: 0;
|
98
|
-
}
|
99
|
-
}
|
100
|
-
}
|
101
|
-
|
102
|
-
.teamix-pro-table-footer-suction {
|
103
|
-
margin-bottom: 50px;
|
104
|
-
.teamix-pro-table-footer {
|
105
|
-
position: fixed;
|
106
|
-
bottom: 0;
|
107
|
-
padding: 10px $fullscreenPadding 8px $fullscreenPadding;
|
108
|
-
box-shadow: var(--shadow-1-up);
|
109
|
-
background-color: var(--table-row-bg, #ffffff);
|
110
|
-
border-top: 1px solid var(--color-line1-1);
|
111
|
-
margin: 0;
|
112
|
-
z-index: 2;
|
113
|
-
}
|
114
|
-
}
|
115
|
-
|
116
|
-
.next-table-empty {
|
117
|
-
--table-empty-padding: 48px;
|
118
|
-
}
|
119
|
-
|
120
|
-
// 后面在基础组件里面覆盖
|
121
|
-
.next-table.next-table td .next-table-cell-wrapper {
|
122
|
-
text-overflow: unset;
|
123
|
-
}
|
124
|
-
|
125
|
-
.mb8 {
|
126
|
-
margin-bottom: 8px;
|
127
|
-
}
|
128
|
-
|
129
|
-
.next-table {
|
130
|
-
.next-form-preview {
|
131
|
-
line-height: unset;
|
132
|
-
}
|
133
|
-
&-row {
|
134
|
-
.teamix-pro-field.teamix-pro-field-text .next-form-preview {
|
135
|
-
color: var(--table-row-color);
|
136
|
-
}
|
137
|
-
}
|
138
|
-
&-row.hovered {
|
139
|
-
.teamix-pro-field.teamix-pro-field-text .next-form-preview {
|
140
|
-
color: var(--table-row-hover-color);
|
141
|
-
}
|
142
|
-
}
|
143
|
-
}
|
144
|
-
|
145
|
-
// 排序icon hover 颜色跟随主题
|
146
|
-
.next-table-sort.next-table-header-icon {
|
147
|
-
a:hover {
|
148
|
-
color: var(--color-brand1-5);
|
149
|
-
}
|
150
|
-
}
|
151
|
-
.teamix-pro-tree-table {
|
152
|
-
.next-table-cell.first {
|
153
|
-
.next-table-cell-wrapper {
|
154
|
-
display: flex;
|
155
|
-
align-items: center;
|
156
|
-
}
|
157
|
-
}
|
158
|
-
}
|
package/lib/table/typing.d.ts
DELETED
@@ -1,426 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* ProTable 类型定义
|
3
|
-
*/
|
4
|
-
import { ColumnProps, TableProps } from '@alicloudfe/components/types/table';
|
5
|
-
import { ProFieldType, ProFieldRenderProps, ProFieldDataSourceItem, EmptyContentProps } from '../field';
|
6
|
-
import { QueryFilterProps, ProFormType } from '../form';
|
7
|
-
import { ProActionGroupProps, ProActionButtonProps } from '../actions';
|
8
|
-
import { PaginationProps } from '@alicloudfe/components/types/pagination';
|
9
|
-
import { HeaderProps as ProTableHeaderProps } from '../field';
|
10
|
-
import { Method, AxiosRequestConfig } from 'axios';
|
11
|
-
import React from 'react';
|
12
|
-
import { ProCardProps } from '../card';
|
13
|
-
declare type IFieldRenderProps = keyof ProFieldRenderProps;
|
14
|
-
/** 列record函数 */
|
15
|
-
declare type ProTableCellFunProp = (value: any, index: number, record: any, ...others: any) => any;
|
16
|
-
declare type ITableCellRender = {
|
17
|
-
[key in IFieldRenderProps]?: ProFieldRenderProps[key] | ProTableCellFunProp;
|
18
|
-
} | ((...other: any) => React.ReactNode);
|
19
|
-
declare type TDataService = {
|
20
|
-
/** 翻页器总数 */
|
21
|
-
total?: string | number;
|
22
|
-
/** 表格数据 */
|
23
|
-
data?: any;
|
24
|
-
};
|
25
|
-
export declare type responsivePaginationType = 'mini' | 'small' | 'simple' | 'normal';
|
26
|
-
export declare type ProTableColumnProps = {
|
27
|
-
/**
|
28
|
-
* 会在 title 之后展示一个 icon,hover 之后提示一些信息
|
29
|
-
*/
|
30
|
-
tooltip?: string;
|
31
|
-
/**
|
32
|
-
* title 之后展示一个 icon 设置,可传 TeamixIcon 对应的 type,也可以是自定义 Icon
|
33
|
-
*/
|
34
|
-
tooltipIcon?: React.ReactNode;
|
35
|
-
/** 对应 ProField 里面的 type */
|
36
|
-
valueType?: ProFieldType;
|
37
|
-
/** 是否隐藏表格列,列配置也不显示 */
|
38
|
-
hidden?: boolean;
|
39
|
-
/** 【列配置】是否默认隐藏表格列,但列配置显示 */
|
40
|
-
columnFilters?: boolean;
|
41
|
-
/** 【列配置】是否禁用隐藏列 */
|
42
|
-
columnFiltersDisabled?: boolean;
|
43
|
-
/** 渲染单元格内容字段 */
|
44
|
-
render?: ITableCellRender;
|
45
|
-
/** 枚举值 */
|
46
|
-
dataSource?: ProFieldDataSourceItem[] | ProTableCellFunProp;
|
47
|
-
/** 表头的过滤菜单项,当值为 true 时,自动使用 dataSource 生成 */
|
48
|
-
filters?: boolean | ProTableColumnsFilterItemProps[];
|
49
|
-
/** 表头的过滤菜单项过滤方式 single 单选 multiple 多选 */
|
50
|
-
filtersMode?: 'single' | 'multiple';
|
51
|
-
/** 表头的过滤菜单项在搜索之前的参数操作 */
|
52
|
-
beforeFilter?: (rules: string[]) => string;
|
53
|
-
/** 表头的过滤菜单宽度 */
|
54
|
-
filtersWidth?: string | number;
|
55
|
-
/** 操作组配置 */
|
56
|
-
actionSchema?: ProActionGroupProps;
|
57
|
-
/** 指定列对应的字段,支持`a.b`形式的快速取值 和 数组取值 */
|
58
|
-
dataIndex?: string | string[];
|
59
|
-
/** 指定 valueType 为日期时间格式时,可以格式化日期时间 */
|
60
|
-
format?: string;
|
61
|
-
/** 多级表头 **/
|
62
|
-
children?: ProTableColumnProps[];
|
63
|
-
/** ProField 其他配置项 */
|
64
|
-
props?: any;
|
65
|
-
} & Omit<ColumnProps, 'filters' | 'dataIndex' | 'filtersMode' | 'children'>;
|
66
|
-
export declare type ProColumnProps = ProTableColumnProps;
|
67
|
-
export declare type ProTableProps = {
|
68
|
-
/** ProColums 定义,取代 Table 的 columns */
|
69
|
-
columns: ProTableColumnProps[];
|
70
|
-
/** 请求地址 */
|
71
|
-
url?: string;
|
72
|
-
/** 请求方法 */
|
73
|
-
method?: Method;
|
74
|
-
/** 请求参数 */
|
75
|
-
params?: {
|
76
|
-
[propName: string]: any;
|
77
|
-
};
|
78
|
-
/** sort 排序请求参数处理函数 */
|
79
|
-
formatSort?: (sort: object) => object;
|
80
|
-
/** 如需自定义调用参数格式,则可以设定此值在请求前对 params 进行自定义,如果返回false则可以阻止请求 */
|
81
|
-
formatParams?: ((params: any) => typeof params) | string;
|
82
|
-
/** 对返回值的 data,total 进行映射处理 */
|
83
|
-
formatResult?: TDataService | ((res: any) => TDataService) | string;
|
84
|
-
/** 请求成功后经过 formatResult 转换后的回调 */
|
85
|
-
onFormatResult?: (data: any[]) => void;
|
86
|
-
/** 是否第一次加载时就发起请求 */
|
87
|
-
requestWhenMount?: boolean;
|
88
|
-
/** 内部请求每次成功后的回调 */
|
89
|
-
onSuccess?: (res: any) => void;
|
90
|
-
/** 内部请求失败时的回调 */
|
91
|
-
onError?: (error: Error) => void;
|
92
|
-
/** 自定义的请求配置 */
|
93
|
-
requestConfig?: AxiosRequestConfig;
|
94
|
-
/** 翻页页数的请求参数名 */
|
95
|
-
pageKey?: string;
|
96
|
-
/** 翻页器页数对应字段 */
|
97
|
-
pageSizeKey?: string;
|
98
|
-
/** 翻页器每页显示的条数 */
|
99
|
-
pageSize?: number;
|
100
|
-
/** 每页显示选择器可选值 */
|
101
|
-
pageSizeList?: PaginationProps['pageSizeList'];
|
102
|
-
/** 透传给翻页器的属性 */
|
103
|
-
paginationProps?: PaginationProps;
|
104
|
-
/** 是否显示翻页器 */
|
105
|
-
showPagination?: boolean;
|
106
|
-
/** 手动指定响应式翻页器的 type */
|
107
|
-
responsivePaginationType?: responsivePaginationType;
|
108
|
-
/** 是否使用内置的 rowSelection */
|
109
|
-
useRowSelection?: boolean;
|
110
|
-
/** 内置 rowSelection 变化时的回调 */
|
111
|
-
onChangeRowSelection?: (selectedRowKeys: string[]) => void;
|
112
|
-
/** 获取内置 rowSelection */
|
113
|
-
getRowSelection?: (rowSelection: innerRowSelectionType) => void;
|
114
|
-
/** 表格底部(左侧)配置 */
|
115
|
-
footerAction?: ProActionGroupProps | React.ReactNode;
|
116
|
-
/** 表格底部(右层)配置 */
|
117
|
-
footer?: React.ReactNode;
|
118
|
-
/**
|
119
|
-
* @deprecated 已废弃 建议用 dataFilter 中的 filterDebounce 代替
|
120
|
-
* 筛选区自动搜索的防抖时间(毫秒)
|
121
|
-
*/
|
122
|
-
filterDebounce?: number;
|
123
|
-
/** ProTable action 的引用,便于手动触发一些方法 */
|
124
|
-
actionRef?: React.MutableRefObject<ProTableActionType | undefined>;
|
125
|
-
/** 是否首次加载渲染骨架屏 */
|
126
|
-
showSkeleton?: boolean;
|
127
|
-
/** 渲染骨架屏条数 */
|
128
|
-
skeletonSize?: number;
|
129
|
-
/** 表格主题 className */
|
130
|
-
tableClassName?: string;
|
131
|
-
/** 非全屏模式下是否吸底 默认状态下取用 ProPageContainer 作为参照物。如果传入了 Dom,则取用 Dom 作为参照物 */
|
132
|
-
footerSuction?: boolean | Element;
|
133
|
-
/** 当满足条件时开启自动刷新,返回值为自动刷新间隔时间,如果返回 0 或 false 则停止自动刷新,每次触发翻页、搜索都将重置时间 */
|
134
|
-
autoRefresh?: ((dataSource: any[]) => number | boolean) | boolean;
|
135
|
-
/** 自动刷新配置 */
|
136
|
-
autoRefreshProps?: {
|
137
|
-
/** 可选间隔列表 **/
|
138
|
-
dataSource?: {
|
139
|
-
label?: React.ReactNode;
|
140
|
-
value?: number;
|
141
|
-
}[];
|
142
|
-
};
|
143
|
-
/** 自定义请求方法,必需返回 success,data 字段,如果需要手动分页 total 也是必需的 */
|
144
|
-
customRequest?: (params: any) => Promise<{
|
145
|
-
success: boolean;
|
146
|
-
data: any[];
|
147
|
-
total?: number;
|
148
|
-
}>;
|
149
|
-
/** 翻页时是否保留之前批量选择数据 */
|
150
|
-
reserveSelectedRecords?: boolean;
|
151
|
-
/** 默认漏斗过滤条件 */
|
152
|
-
defaultFilterParams?: {
|
153
|
-
[key: string]: any[] | any;
|
154
|
-
};
|
155
|
-
/** 禁用掉批量选择中的全选 */
|
156
|
-
disableSelectAll?: boolean;
|
157
|
-
/** 接收外部传来的 context,eg: dialog-table */
|
158
|
-
context?: any;
|
159
|
-
/** 是否固定表格主体(开启后横向滚动条会固定在底部) */
|
160
|
-
fixedTableBody?: boolean;
|
161
|
-
/** 用于埋点 */
|
162
|
-
'data-teamix-spm'?: string;
|
163
|
-
/** 是否切换卡片视角 **/
|
164
|
-
switchCardView?: boolean;
|
165
|
-
/** 卡片视角配置 **/
|
166
|
-
cardViewProps?: ProTableCardProps;
|
167
|
-
/** 默认展示维度 **/
|
168
|
-
defaultView?: 'table' | 'card';
|
169
|
-
/** 空状态配置 **/
|
170
|
-
emptyProps?: EmptyContentProps;
|
171
|
-
/** 是否绑定 url **/
|
172
|
-
bindUrl?: boolean;
|
173
|
-
/** 绑定 url 配置 **/
|
174
|
-
bindUrlProps?: ProTableBindUrlProps;
|
175
|
-
/** 当前页数据被删除完后,是否跳转回第一页 **/
|
176
|
-
autoRedirect?: boolean;
|
177
|
-
/** 使用超大数据模式 **/
|
178
|
-
useMaxData?: boolean;
|
179
|
-
} & Omit<TableProps, 'columns'> & ProTableTopAreaProps;
|
180
|
-
export declare type rowSelectionType = {
|
181
|
-
getProps?: (record: any, index: number) => any;
|
182
|
-
onChange?: (selectedRowKeys: Array<any>, records: Array<any>) => void;
|
183
|
-
onSelect?: (selected: boolean, record: any, records: Array<any>) => void;
|
184
|
-
onSelectAll?: (selected: boolean, records: Array<any>) => void;
|
185
|
-
selectedRowKeys?: Array<any>;
|
186
|
-
selectedRecords?: any[];
|
187
|
-
mode?: 'single' | 'multiple';
|
188
|
-
titleProps?: () => any;
|
189
|
-
columnProps?: () => any;
|
190
|
-
titleAddons?: () => any;
|
191
|
-
};
|
192
|
-
export declare type innerRowSelectionType = {
|
193
|
-
rowSelection: rowSelectionType;
|
194
|
-
selectedRowKeys: string[];
|
195
|
-
setSelectedRowKeys: (selectedRowKeys: string[]) => void;
|
196
|
-
selectedRecords: any[];
|
197
|
-
setSelectedRecords: (selectedRecords: any[]) => void;
|
198
|
-
};
|
199
|
-
export declare type ProTableActionType = {
|
200
|
-
/** 全屏展示 */
|
201
|
-
fullScreen?: () => boolean;
|
202
|
-
/** 设置显示列 */
|
203
|
-
setColumn?: (newColumns: ProColumnProps[], update?: boolean) => void;
|
204
|
-
/** 表格尺寸 */
|
205
|
-
size?: 'small' | 'medium';
|
206
|
-
/** 设置表格大小 */
|
207
|
-
setSize?: (mode: 'small' | 'medium') => void;
|
208
|
-
/** 刷新表格 */
|
209
|
-
refresh?: (params?: any) => void;
|
210
|
-
/*** 表格内部请求方法 */
|
211
|
-
request?: (params?: any) => void;
|
212
|
-
/** 重置表格 */
|
213
|
-
reset?: () => void;
|
214
|
-
/** 表格选择相关属性 */
|
215
|
-
rowSelection?: innerRowSelectionType | rowSelectionType;
|
216
|
-
/** 清空表格选择 */
|
217
|
-
clearRowSelection?: () => void;
|
218
|
-
/** 过滤 DataSource */
|
219
|
-
filterDataSource?: (dataIndex: string) => void;
|
220
|
-
/** 翻页器当前信息 */
|
221
|
-
pageInfo?: {
|
222
|
-
/** 总数 */
|
223
|
-
total?: number;
|
224
|
-
/** 当前页 */
|
225
|
-
current?: number;
|
226
|
-
/** 每页数据量 */
|
227
|
-
pageSize?: number;
|
228
|
-
/** 翻页页数的请求参数名*/
|
229
|
-
targetPageKey?: string;
|
230
|
-
/** 翻页单页数量的请求参数名 */
|
231
|
-
targetPageSizeKey?: string;
|
232
|
-
};
|
233
|
-
/** 重置翻页器为1,不发送请求 */
|
234
|
-
resetPage?: () => void;
|
235
|
-
nextPage?: () => void;
|
236
|
-
/** 获取数据过滤区表单实例 */
|
237
|
-
dataFilterForm?: ProFormType;
|
238
|
-
/** 用于在 mount 的时候获取到表单 ref */
|
239
|
-
dataFilterFormRef?: React.MutableRefObject<ProFormType>;
|
240
|
-
normalDataFilterForm?: ProFormType;
|
241
|
-
fullscreenDataFilterForm?: ProFormType;
|
242
|
-
filterEnableRef?: any;
|
243
|
-
/** 表格当前的数据 */
|
244
|
-
data?: any[];
|
245
|
-
/** 切换视角 **/
|
246
|
-
switchView?: (view: 'card' | 'table') => void;
|
247
|
-
/** 设置数据源 **/
|
248
|
-
setData?: (data: any[]) => void;
|
249
|
-
setCardViewScrollPosition?: (scrollTop: number) => void;
|
250
|
-
/** 刷新定时器间隔时间 */
|
251
|
-
setAutoRefreshTimers?: (timers: number) => void;
|
252
|
-
/** 清除刷新定时器 */
|
253
|
-
clearAutoRefreshTimers?: () => void;
|
254
|
-
} & ProTableActionTypeMutations;
|
255
|
-
/** action State 定义 */
|
256
|
-
export declare type ProTableActionTypeMutations = {
|
257
|
-
/** 获取state 状态 */
|
258
|
-
getState?: () => ProTableActionTypeState;
|
259
|
-
/** 设置state 状态 */
|
260
|
-
setState?: (key: string, value: any) => void;
|
261
|
-
/** 设置全屏状态 */
|
262
|
-
setFullScreenState?: (state: boolean) => void;
|
263
|
-
/** 绑定state监听事件 */
|
264
|
-
on?: (...args: any) => void;
|
265
|
-
/** 销毁监听事件 */
|
266
|
-
off?: (...args: any) => void;
|
267
|
-
/** 设置 列 过滤规则 */
|
268
|
-
setFilterRules?: (rules: ProTableColumnsFilterRulesItem) => void;
|
269
|
-
/** 获取 列 过滤规则 */
|
270
|
-
getFilterRules?: () => object;
|
271
|
-
/** 重新计算表格maxHeight高度 */
|
272
|
-
resetTableMaxBodyHeight?: (offset: number) => void;
|
273
|
-
/** 列筛选规则 */
|
274
|
-
filterColumns?: any[];
|
275
|
-
/** 获取所有 on 监听事件 */
|
276
|
-
getCallback?: () => any;
|
277
|
-
};
|
278
|
-
/** action Mutations 定义 */
|
279
|
-
export declare type ProTableActionTypeState = {
|
280
|
-
fullScreenState: boolean;
|
281
|
-
filterRules: ProTableColumnsFilterRulesItem;
|
282
|
-
filterColumns: ProTableColumnProps[];
|
283
|
-
[key: string]: any;
|
284
|
-
};
|
285
|
-
export declare type ProTableDataFilterProps = {
|
286
|
-
searchUndefined?: boolean;
|
287
|
-
/** 搜索时是否传入值为空字符串的参数,默认不传 */
|
288
|
-
searchEmptyString?: boolean;
|
289
|
-
/** 自定义内容 */
|
290
|
-
content?: React.ReactNode;
|
291
|
-
} & QueryFilterProps;
|
292
|
-
export declare type dataFilterProps = ProTableDataFilterProps;
|
293
|
-
export declare type ProTableTopAreaProps = {
|
294
|
-
/** 标题区 */
|
295
|
-
header?: ProTableHeaderProps;
|
296
|
-
/** 主操作区 */
|
297
|
-
mainAction?: ProActionGroupProps | React.ReactNode;
|
298
|
-
/** 工具栏区 */
|
299
|
-
toolBar?: boolean | ProTableToolBarItem[];
|
300
|
-
/** 是否开启工具栏自适应 */
|
301
|
-
toolBarAutoWidth?: boolean;
|
302
|
-
/** 快捷操作区 */
|
303
|
-
extra?: ProActionButtonProps | React.ReactNode | React.ReactNode[];
|
304
|
-
/** 数据过滤区 */
|
305
|
-
dataFilter?: ProTableDataFilterProps;
|
306
|
-
/** 数据过滤区下方自定义区域 */
|
307
|
-
afterDataFilter?: React.ReactNode;
|
308
|
-
/** 传给 QueryFilter 的 formRef */
|
309
|
-
dataFilterFormRef?: any;
|
310
|
-
/** 排序、筛选列展示状态 */
|
311
|
-
filterColumnType?: 'dialog' | 'dropdown' | 'auto';
|
312
|
-
};
|
313
|
-
/** 单个工具栏 */
|
314
|
-
export declare type ProTableToolBarItem = React.ReactNode | 'refresh' | 'density' | 'filterColumn' | 'fullscreen';
|
315
|
-
export declare type toolBarItem = ProTableToolBarItem;
|
316
|
-
export declare type ProTableLayoutProps = {
|
317
|
-
actionRef: React.MutableRefObject<ProTableActionType | undefined>;
|
318
|
-
columns?: ProTableColumnProps[];
|
319
|
-
rowSelection?: innerRowSelectionType | rowSelectionType;
|
320
|
-
fullScreenState?: boolean;
|
321
|
-
dataTeamixSpm?: string;
|
322
|
-
switchCardView?: boolean;
|
323
|
-
defaultView?: 'table' | 'card';
|
324
|
-
autoRefresh?: ProTableProps['autoRefresh'];
|
325
|
-
autoRefreshProps?: ProTableProps['autoRefreshProps'];
|
326
|
-
bindUrl?: ProTableProps['bindUrl'];
|
327
|
-
bindUrlProps?: ProTableProps['bindUrlProps'];
|
328
|
-
} & ProTableTopAreaProps;
|
329
|
-
/** columns 列过滤 */
|
330
|
-
export declare type ProTableColumnsFilterItemProps = {
|
331
|
-
/** 绑定值 */
|
332
|
-
value?: string | boolean | number;
|
333
|
-
/** 显示值 */
|
334
|
-
label?: React.ReactNode;
|
335
|
-
};
|
336
|
-
/** columns 列过滤规则 item (action ref state用) */
|
337
|
-
export declare type ProTableColumnsFilterRulesItem = {
|
338
|
-
[key: string]: {
|
339
|
-
/** 原始规则 */
|
340
|
-
rules: string[];
|
341
|
-
/** 处理过后的作为params的规则 */
|
342
|
-
params: string;
|
343
|
-
};
|
344
|
-
};
|
345
|
-
/** 非全屏模式下的吸底 useState类型定义 */
|
346
|
-
export declare type parentPositionProps = {
|
347
|
-
offsetLeft: number;
|
348
|
-
offsetRight: number;
|
349
|
-
};
|
350
|
-
/** card props **/
|
351
|
-
export declare type ProTableCardProps = {
|
352
|
-
/** 标题 dataIndex **/
|
353
|
-
title?: (ProTableColumnProps['dataIndex'] | ProTableColumnProps) | ((index: number, record: any) => ProTableColumnProps['dataIndex'] | ProTableColumnProps);
|
354
|
-
/** 副标题 dataIndex **/
|
355
|
-
subTitle?: (ProTableColumnProps['dataIndex'] | ProTableColumnProps) | ((index: number, record: any) => ProTableColumnProps['dataIndex'] | ProTableColumnProps);
|
356
|
-
/** 内容区域 dataIndex **/
|
357
|
-
content?: (ProTableColumnProps['dataIndex'] | ProTableColumnProps)[] | ((index: number, record: any) => (ProTableColumnProps['dataIndex'] | ProTableColumnProps)[]);
|
358
|
-
/** extra 区域 **/
|
359
|
-
extra?: (ProActionGroupProps | React.ReactNode | ProTableColumnProps['dataIndex'])[] | ((index: number, record: any) => (ProActionGroupProps | React.ReactNode | ProTableColumnProps['dataIndex'])[]);
|
360
|
-
/** 标签区域 **/
|
361
|
-
tags?: (ProTableColumnProps['dataIndex'] | ProTableColumnProps)[] | ((index: number, record: any) => (ProTableColumnProps['dataIndex'] | ProTableColumnProps)[]);
|
362
|
-
/** 分页器条数 **/
|
363
|
-
pageSize?: 12 | 24 | 48 | 96 | number;
|
364
|
-
/** 卡片区域滚动高度 **/
|
365
|
-
scrollHeight?: number | string;
|
366
|
-
/** 自动加载下一页 **/
|
367
|
-
autoLoadNextPage?: boolean;
|
368
|
-
/** 滚动容器 用于监听触底事件 **/
|
369
|
-
scrollDom?: HTMLElement;
|
370
|
-
/** 触底事件 **/
|
371
|
-
onScrollBottom?: () => void;
|
372
|
-
/** 使用表格分页 **/
|
373
|
-
useTablePagination?: boolean;
|
374
|
-
/** 使用响应式 **/
|
375
|
-
cardResponsiveProps?: {
|
376
|
-
xxs?: number;
|
377
|
-
xs?: number;
|
378
|
-
s?: number;
|
379
|
-
m?: number;
|
380
|
-
l?: number;
|
381
|
-
xl?: number;
|
382
|
-
};
|
383
|
-
/** 卡片配置 **/
|
384
|
-
cardProps?: {
|
385
|
-
[key in keyof ProCardProps]?: ProCardProps[key] | ((index: number, record: any) => ProCardProps[key]);
|
386
|
-
};
|
387
|
-
/** 是否展示卡片骨架 **/
|
388
|
-
showSkeleton?: boolean;
|
389
|
-
};
|
390
|
-
/** card 视角 Props (内部组件) **/
|
391
|
-
export declare type ProTableCardViewProps = {
|
392
|
-
/** 卡片视角配置 **/
|
393
|
-
cardViewProps?: ProTableCardProps;
|
394
|
-
/** 数据源 **/
|
395
|
-
dataSource?: any[];
|
396
|
-
/** 原始 columns **/
|
397
|
-
originColumns?: any[];
|
398
|
-
/** 处理过后的 columns **/
|
399
|
-
columns?: any[];
|
400
|
-
/** 加载动画 **/
|
401
|
-
loading?: boolean;
|
402
|
-
/** 上下文 **/
|
403
|
-
context?: any;
|
404
|
-
actionRef?: React.MutableRefObject<ProTableActionType | undefined>;
|
405
|
-
/** 卡片区域滚动高度 **/
|
406
|
-
scrollHeight?: number | string;
|
407
|
-
/** 骨架屏状态 **/
|
408
|
-
showSkeleton?: boolean;
|
409
|
-
/** ProCard 卡片配置 **/
|
410
|
-
cardProps?: ProTableCardProps['cardProps'];
|
411
|
-
/** 表格分页器参数 **/
|
412
|
-
tablePaginationProps?: PaginationProps;
|
413
|
-
/** 空数据配置 **/
|
414
|
-
emptyProps?: ProTableProps['emptyProps'];
|
415
|
-
/** 自定义渲染空数据 **/
|
416
|
-
emptyContent?: ProTableProps['emptyContent'];
|
417
|
-
};
|
418
|
-
export declare type ProTableBindUrlProps = {
|
419
|
-
/** 翻页器区域 **/
|
420
|
-
pagination?: boolean;
|
421
|
-
/** 搜索区域 **/
|
422
|
-
filters?: boolean;
|
423
|
-
/** 表格标题过滤器区域 **/
|
424
|
-
headerFilters?: boolean;
|
425
|
-
};
|
426
|
-
export {};
|
package/lib/table/typing.js
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* 渲染列的逻辑函数
|
3
|
-
*/
|
4
|
-
import React from 'react';
|
5
|
-
import { ProTableColumnProps, ProTableActionType, ProTableProps } from '../typing';
|
6
|
-
/**
|
7
|
-
* 增加了 icon 的功能 render title
|
8
|
-
*/
|
9
|
-
export declare const renderColumnsTitle: (item: ProTableColumnProps, actionRef: React.MutableRefObject<ProTableActionType | undefined>, bindUrl?: ProTableProps['bindUrl'], bindUrlProps?: ProTableProps['bindUrlProps']) => JSX.Element;
|
10
|
-
/**
|
11
|
-
* 负责单元格的具体渲染
|
12
|
-
*/
|
13
|
-
export declare const renderCell: (value: any, item: ProTableColumnProps, index: number, record: any, actionRef: React.MutableRefObject<ProTableActionType | undefined>, context?: any, dataTeamixSpm?: string) => JSX.Element;
|