@zat-design/sisyphus-react 3.14.0-beta.2 → 4.0.0-beta.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +77 -207
- package/babel.config.js +2 -2
- package/dist/index.esm.css +1 -1
- package/dist/less.esm.css +1 -1
- package/es/FormsProvider/index.d.ts +4 -1
- package/es/ProAction/components/CheckModalContent/index.js +0 -9
- package/es/ProAction/index.js +3 -6
- package/es/ProAction/index.less +0 -2
- package/es/ProConfigProvider/index.d.ts +22 -5
- package/es/ProConfigProvider/index.js +58 -26
- package/es/ProDownload/index.js +2 -3
- package/es/ProDownload/style/index.less +0 -2
- package/es/ProDownload/utils.js +3 -4
- package/es/ProDrawerForm/components/ProDrawer/index.js +13 -17
- package/es/ProDrawerForm/components/ProModal/index.js +12 -20
- package/es/ProDrawerForm/index.d.ts +2 -1
- package/es/ProDrawerForm/index.js +35 -33
- package/es/ProDrawerForm/propsType.d.ts +7 -18
- package/es/ProDrawerForm/style/index.less +6 -14
- package/es/ProEditLabel/components/RenderProForm.js +2 -3
- package/es/ProEditLabel/index.js +10 -15
- package/es/ProEditLabel/propsType.d.ts +1 -6
- package/es/ProEditLabel/style/index.less +2 -3
- package/es/ProEditTable/components/ActionButton/index.js +5 -8
- package/es/ProEditTable/components/RcTable/BaseTable.js +70 -53
- package/es/ProEditTable/components/RcTable/DraggableTable.js +70 -49
- package/es/ProEditTable/components/RcTable/index.d.ts +0 -2
- package/es/ProEditTable/components/RcTable/index.js +1 -3
- package/es/ProEditTable/components/RenderField/ListChangedWrapper.js +9 -12
- package/es/ProEditTable/components/RenderField/index.d.ts +3 -2
- package/es/ProEditTable/components/RenderField/index.js +401 -241
- package/es/ProEditTable/components/RenderToolbar/index.js +5 -5
- package/es/ProEditTable/components/Summary/index.js +5 -8
- package/es/ProEditTable/components/Validator/index.js +3 -6
- package/es/ProEditTable/index.js +99 -103
- package/es/ProEditTable/propsType.d.ts +7 -7
- package/es/ProEditTable/style/index.less +12 -12
- package/es/ProEditTable/utils/config.js +6 -7
- package/es/ProEditTable/utils/index.js +21 -17
- package/es/ProEditTable/utils/useEditTableError.js +12 -4
- package/es/ProEditTable/utils/useShouldUpdateForTable.d.ts +15 -0
- package/es/ProEditTable/utils/useShouldUpdateForTable.js +132 -0
- package/es/ProEnum/hooks/useEnum.js +5 -0
- package/es/ProEnum/hooks/useEnumRequest.js +3 -3
- package/es/ProEnum/index.js +10 -17
- package/es/ProEnum/style/index.less +0 -2
- package/es/ProEnum/utils/index.d.ts +1 -0
- package/es/ProEnum/utils/index.js +3 -7
- package/es/ProForm/components/Container.d.ts +1 -0
- package/es/ProForm/components/Container.js +2 -3
- package/es/ProForm/components/FormFooter/index.js +18 -19
- package/es/ProForm/components/FormFooter/propsType.d.ts +2 -0
- package/es/ProForm/components/base/Checkbox/index.js +3 -4
- package/es/ProForm/components/base/DatePicker/index.d.ts +1 -3
- package/es/ProForm/components/base/DatePicker/index.js +7 -7
- package/es/ProForm/components/base/DatePicker/useDateLimit.d.ts +3 -0
- package/es/ProForm/components/base/DatePicker/useDateLimit.js +11 -0
- package/es/ProForm/components/base/Input/index.js +10 -8
- package/es/ProForm/components/base/InputNumber/index.js +3 -6
- package/es/ProForm/components/base/Radio/index.js +3 -4
- package/es/ProForm/components/base/RangePicker/index.js +7 -6
- package/es/ProForm/components/base/RangePicker/useDateRange.d.ts +5 -5
- package/es/ProForm/components/base/Select/index.js +2 -3
- package/es/ProForm/components/base/Switch/index.js +2 -3
- package/es/ProForm/components/base/SwitchCheckbox/index.js +2 -3
- package/es/ProForm/components/base/SwitchCheckbox/style/index.less +0 -2
- package/es/ProForm/components/base/TextArea/index.js +3 -4
- package/es/ProForm/components/base/TextArea/index.less +10 -2
- package/es/ProForm/components/base/TimePicker/index.d.ts +1 -2
- package/es/ProForm/components/base/TimePicker/index.js +6 -7
- package/es/ProForm/components/base/TimePicker/style/index.less +3 -3
- package/es/ProForm/components/combination/Container/style/index.less +0 -2
- package/es/ProForm/components/combination/FormList/components/ActionButton.js +15 -13
- package/es/ProForm/components/combination/FormList/components/BlockFields.js +5 -8
- package/es/ProForm/components/combination/FormList/components/Empty.js +2 -3
- package/es/ProForm/components/combination/FormList/components/LineFields.js +2 -3
- package/es/ProForm/components/combination/FormList/components/ToolbarButton.js +5 -8
- package/es/ProForm/components/combination/FormList/index.js +2 -3
- package/es/ProForm/components/combination/FormList/style/index.less +36 -2
- package/es/ProForm/components/combination/Group/component/AddonWrapper/index.d.ts +1 -0
- package/es/ProForm/components/combination/Group/component/ComRender.js +0 -1
- package/es/ProForm/components/combination/Group/index.js +3 -4
- package/es/ProForm/components/combination/Group/style/index.less +7 -87
- package/es/ProForm/components/combination/Group/utils.d.ts +1 -1
- package/es/ProForm/components/combination/Group/utils.js +4 -5
- package/es/ProForm/components/combination/ProCascader/index.js +13 -15
- package/es/ProForm/components/combination/ProCascader/propsType.d.ts +1 -1
- package/es/ProForm/components/combination/ProCascader/style/index.less +0 -2
- package/es/ProForm/components/combination/ProModalSelect/index.d.ts +1 -1
- package/es/ProForm/components/combination/ProModalSelect/index.js +24 -39
- package/es/ProForm/components/combination/ProModalSelect/style/index.less +11 -15
- package/es/ProForm/components/combination/ProNumberRange/index.d.ts +3 -2
- package/es/ProForm/components/combination/ProNumberRange/index.js +21 -21
- package/es/ProForm/components/combination/ProNumberRange/style/index.less +3 -54
- package/es/ProForm/components/combination/ProRangeLimit/index.d.ts +2 -23
- package/es/ProForm/components/combination/ProRangeLimit/index.js +42 -25
- package/es/ProForm/components/combination/ProRangeLimit/propsType.d.ts +23 -0
- package/es/ProForm/components/combination/ProTimeLimit/hooks/useControlled.d.ts +3 -2
- package/es/ProForm/components/combination/ProTimeLimit/hooks/useControlled.js +14 -2
- package/es/ProForm/components/combination/ProTimeLimit/index.d.ts +5 -6
- package/es/ProForm/components/combination/ProTimeLimit/index.js +23 -20
- package/es/ProForm/components/combination/ProTimeLimit/style/index.less +64 -6
- package/es/ProForm/components/index.d.ts +2 -9
- package/es/ProForm/components/index.js +1 -11
- package/es/ProForm/components/render/ChangedWrapper.js +8 -9
- package/es/ProForm/components/render/ConfirmWrapper.js +7 -7
- package/es/ProForm/components/render/Render.js +29 -30
- package/es/ProForm/components/render/RenderFields.d.ts +1 -0
- package/es/ProForm/components/render/RenderFields.js +6 -3
- package/es/ProForm/components/render/propsType.d.ts +3 -6
- package/es/ProForm/index.d.ts +2 -2
- package/es/ProForm/index.js +14 -42
- package/es/ProForm/propsType.d.ts +3 -0
- package/es/ProForm/style/index.less +4 -16
- package/es/ProForm/utils/index.d.ts +15 -1
- package/es/ProForm/utils/index.js +66 -15
- package/es/ProForm/utils/useDeepCompareMemo.js +4 -4
- package/es/ProForm/utils/useForm.js +27 -22
- package/es/ProForm/utils/useShouldUpdate.d.ts +1 -0
- package/es/ProForm/utils/useShouldUpdate.js +103 -17
- package/es/ProIcon/index.js +10 -13
- package/es/ProIcon/style/index.less +0 -2
- package/es/ProLayout/components/Layout/Header/index.js +1 -1
- package/es/ProLayout/components/Layout/Menu/FoldMenu/index.js +3 -6
- package/es/ProLayout/components/Layout/Menu/FoldMenu/style/index.less +40 -39
- package/es/ProLayout/components/Layout/Menu/OpenMenu/index.js +2 -3
- package/es/ProLayout/components/Layout/Menu/OpenMenu/style/index.less +0 -3
- package/es/ProLayout/components/Layout/Menu/SideMenu/style/index.less +7 -5
- package/es/ProLayout/components/Layout/Menu/index.js +1 -1
- package/es/ProLayout/components/Layout/Menu/style/index.less +0 -2
- package/es/ProLayout/components/Layout/Notice/style/index.less +0 -2
- package/es/ProLayout/components/ProCollapse/index.js +29 -44
- package/es/ProLayout/components/ProCollapse/style/index.less +5 -4
- package/es/ProLayout/components/ProFooter/index.js +2 -3
- package/es/ProLayout/components/ProFooter/style/index.less +0 -2
- package/es/ProLayout/components/ProHeader/components/Copy/index.js +2 -3
- package/es/ProLayout/components/ProHeader/components/ProBackBtn/index.js +2 -3
- package/es/ProLayout/components/ProHeader/components/ProBackBtn/style/index.less +7 -9
- package/es/ProLayout/components/ProHeader/index.js +43 -45
- package/es/ProLayout/components/ProHeader/style/index.less +0 -2
- package/es/ProLayout/components/TabsManager/components/TabContextMenu.js +2 -3
- package/es/ProLayout/components/TabsManager/hooks/useTabsState.js +0 -2
- package/es/ProLayout/index.js +80 -41
- package/es/ProLayout/style/index.less +2 -3
- package/es/ProSelect/components/AdaptiveTooltip.js +2 -3
- package/es/ProSelect/index.js +7 -15
- package/es/ProSelect/index.less +0 -2
- package/es/ProSelect/propsType.d.ts +1 -1
- package/es/ProStep/components/Anchor/index.js +2 -3
- package/es/ProStep/components/Item/index.js +1 -0
- package/es/ProStep/components/Step/index.js +1 -0
- package/es/ProStep/style/index.less +2 -4
- package/es/ProTable/components/FormatColumn/index.js +33 -31
- package/es/ProTable/components/RcTable/components/BaseTable/index.d.ts +0 -1
- package/es/ProTable/components/RcTable/components/BaseTable/index.js +2 -4
- package/es/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/index.js +17 -13
- package/es/ProTable/components/RcTable/components/DraggableTable/index.d.ts +0 -1
- package/es/ProTable/components/RcTable/components/DraggableTable/index.js +2 -4
- package/es/ProTable/components/RenderColumn/index.d.ts +1 -1
- package/es/ProTable/components/RenderColumn/index.js +15 -18
- package/es/ProTable/components/RenderSummary/index.js +4 -5
- package/es/ProTable/components/RenderTableHeader/index.js +3 -4
- package/es/ProTable/components/RenderTabs/index.js +3 -6
- package/es/ProTable/components/TableResizable/index.js +2 -1
- package/es/ProTable/components/TooltipTitle/index.js +2 -3
- package/es/ProTable/hooks/useAntdTable.js +4 -7
- package/es/ProTable/index.d.ts +0 -7
- package/es/ProTable/index.js +11 -14
- package/es/ProTable/propsType.d.ts +2 -3
- package/es/ProTable/style/index.less +4 -6
- package/es/ProTabs/components/Card/index.js +5 -10
- package/es/ProTabs/index.js +2 -3
- package/es/ProTabs/style/index.less +0 -2
- package/es/ProThemeTools/component/ProTools/index.js +18 -22
- package/es/ProThemeTools/context/ThemeContext.d.ts +31 -0
- package/es/ProThemeTools/context/ThemeContext.js +136 -0
- package/es/ProThemeTools/index.d.ts +4 -8
- package/es/ProThemeTools/index.js +80 -49
- package/es/ProThemeTools/style/index.less +1 -3
- package/es/ProThemeTools/utils/index.d.ts +16 -6
- package/es/ProThemeTools/utils/index.js +30 -24
- package/es/ProTooltip/index.js +14 -9
- package/es/ProTooltip/style/index.less +0 -2
- package/es/ProTree/components/AdaptiveTooltip.js +2 -3
- package/es/ProTree/components/List.js +3 -4
- package/es/ProTree/components/ProTree.js +5 -12
- package/es/ProTree/components/ProTreeSelect/index.js +28 -26
- package/es/ProTree/components/ProTreeSelect/style/index.less +0 -2
- package/es/ProTree/components/Tree.js +6 -13
- package/es/ProTree/index.js +0 -7
- package/es/ProTree/propsType.d.ts +1 -1
- package/es/ProTree/style/index.less +8 -6
- package/es/ProTreeModal/components/Cascader.js +3 -4
- package/es/ProTreeModal/components/List.js +11 -17
- package/es/ProTreeModal/components/SortableItem.js +2 -3
- package/es/ProTreeModal/components/Tree.js +3 -4
- package/es/ProTreeModal/components/Trigger.js +6 -11
- package/es/ProTreeModal/index.d.ts +0 -1
- package/es/ProTreeModal/index.js +10 -20
- package/es/ProTreeModal/style/index.less +12 -3
- package/es/ProUpload/components/ButtonRender.js +4 -7
- package/es/ProUpload/components/DragRender.js +2 -3
- package/es/ProUpload/components/FileItem.d.ts +0 -1
- package/es/ProUpload/components/FileItem.js +15 -21
- package/es/ProUpload/components/ImageRender.js +8 -17
- package/es/ProUpload/index.js +3 -4
- package/es/ProUpload/style/index.less +171 -12
- package/es/ProViewer/index.js +28 -35
- package/es/ProViewer/propsType.js +3 -0
- package/es/ProViewer/style/index.less +0 -2
- package/es/ProWaterMark/index.js +2 -3
- package/es/ProWaterMark/propsType.d.ts +5 -24
- package/es/global.less +2 -1
- package/es/index.d.ts +3 -3
- package/es/index.js +5 -5
- package/es/locale/en_US.js +1 -1
- package/es/locale/index.d.ts +2 -0
- package/es/locale/index.js +13 -2
- package/es/locale/zh_CN.js +1 -1
- package/es/style/components.less +0 -3
- package/es/style/index.less +1 -1
- package/es/style/theme/antd.less +36 -48
- package/es/style/theme/base.less +90 -0
- package/es/style/theme/index.less +2 -89
- package/es/utils/index.d.ts +7 -0
- package/es/utils/index.js +37 -1
- package/lib/FormsProvider/index.d.ts +4 -1
- package/lib/ProAction/components/CheckModalContent/index.js +0 -9
- package/lib/ProAction/index.js +3 -6
- package/lib/ProAction/index.less +0 -2
- package/lib/ProConfigProvider/index.d.ts +22 -5
- package/lib/ProConfigProvider/index.js +58 -26
- package/lib/ProDownload/index.js +2 -3
- package/lib/ProDownload/style/index.less +0 -2
- package/lib/ProDownload/utils.js +3 -4
- package/lib/ProDrawerForm/components/ProDrawer/index.js +13 -17
- package/lib/ProDrawerForm/components/ProModal/index.js +12 -20
- package/lib/ProDrawerForm/index.d.ts +2 -1
- package/lib/ProDrawerForm/index.js +35 -33
- package/lib/ProDrawerForm/propsType.d.ts +7 -18
- package/lib/ProDrawerForm/style/index.less +6 -14
- package/lib/ProEditLabel/components/RenderProForm.js +2 -3
- package/lib/ProEditLabel/index.js +10 -15
- package/lib/ProEditLabel/propsType.d.ts +1 -6
- package/lib/ProEditLabel/style/index.less +2 -3
- package/lib/ProEditTable/components/ActionButton/index.js +5 -8
- package/lib/ProEditTable/components/RcTable/BaseTable.js +69 -52
- package/lib/ProEditTable/components/RcTable/DraggableTable.js +69 -48
- package/lib/ProEditTable/components/RcTable/index.d.ts +0 -2
- package/lib/ProEditTable/components/RcTable/index.js +1 -8
- package/lib/ProEditTable/components/RenderField/ListChangedWrapper.js +9 -12
- package/lib/ProEditTable/components/RenderField/index.d.ts +3 -2
- package/lib/ProEditTable/components/RenderField/index.js +401 -241
- package/lib/ProEditTable/components/RenderToolbar/index.js +5 -5
- package/lib/ProEditTable/components/Summary/index.js +5 -9
- package/lib/ProEditTable/components/Validator/index.js +3 -7
- package/lib/ProEditTable/index.js +96 -100
- package/lib/ProEditTable/propsType.d.ts +7 -7
- package/lib/ProEditTable/style/index.less +12 -12
- package/lib/ProEditTable/utils/config.js +6 -7
- package/lib/ProEditTable/utils/index.js +20 -16
- package/lib/ProEditTable/utils/useEditTableError.js +12 -4
- package/lib/ProEditTable/utils/useShouldUpdateForTable.d.ts +15 -0
- package/lib/ProEditTable/utils/useShouldUpdateForTable.js +139 -0
- package/lib/ProEnum/hooks/useEnum.js +5 -0
- package/lib/ProEnum/hooks/useEnumRequest.js +2 -2
- package/lib/ProEnum/index.js +10 -17
- package/lib/ProEnum/style/index.less +0 -2
- package/lib/ProEnum/utils/index.d.ts +1 -0
- package/lib/ProEnum/utils/index.js +4 -7
- package/lib/ProForm/components/Container.d.ts +1 -0
- package/lib/ProForm/components/Container.js +2 -3
- package/lib/ProForm/components/FormFooter/index.js +18 -19
- package/lib/ProForm/components/FormFooter/propsType.d.ts +2 -0
- package/lib/ProForm/components/base/Checkbox/index.js +3 -4
- package/lib/ProForm/components/base/DatePicker/index.d.ts +1 -3
- package/lib/ProForm/components/base/DatePicker/index.js +7 -7
- package/lib/ProForm/components/base/DatePicker/useDateLimit.d.ts +3 -0
- package/lib/ProForm/components/base/DatePicker/useDateLimit.js +19 -0
- package/lib/ProForm/components/base/Input/index.js +10 -8
- package/lib/ProForm/components/base/InputNumber/index.js +3 -6
- package/lib/ProForm/components/base/Radio/index.js +3 -4
- package/lib/ProForm/components/base/RangePicker/index.js +6 -6
- package/lib/ProForm/components/base/RangePicker/useDateRange.d.ts +5 -5
- package/lib/ProForm/components/base/Select/index.js +2 -3
- package/lib/ProForm/components/base/Switch/index.js +2 -3
- package/lib/ProForm/components/base/SwitchCheckbox/index.js +2 -3
- package/lib/ProForm/components/base/SwitchCheckbox/style/index.less +0 -2
- package/lib/ProForm/components/base/TextArea/index.js +3 -4
- package/lib/ProForm/components/base/TextArea/index.less +10 -2
- package/lib/ProForm/components/base/TimePicker/index.d.ts +1 -2
- package/lib/ProForm/components/base/TimePicker/index.js +6 -7
- package/lib/ProForm/components/base/TimePicker/style/index.less +3 -3
- package/lib/ProForm/components/combination/Container/style/index.less +0 -2
- package/lib/ProForm/components/combination/FormList/components/ActionButton.js +15 -13
- package/lib/ProForm/components/combination/FormList/components/BlockFields.js +6 -9
- package/lib/ProForm/components/combination/FormList/components/Empty.js +2 -3
- package/lib/ProForm/components/combination/FormList/components/LineFields.js +2 -3
- package/lib/ProForm/components/combination/FormList/components/ToolbarButton.js +4 -7
- package/lib/ProForm/components/combination/FormList/index.js +2 -3
- package/lib/ProForm/components/combination/FormList/style/index.less +36 -2
- package/lib/ProForm/components/combination/Group/component/AddonWrapper/index.d.ts +1 -0
- package/lib/ProForm/components/combination/Group/component/ComRender.js +0 -1
- package/lib/ProForm/components/combination/Group/index.js +3 -4
- package/lib/ProForm/components/combination/Group/style/index.less +7 -87
- package/lib/ProForm/components/combination/Group/utils.d.ts +1 -1
- package/lib/ProForm/components/combination/Group/utils.js +4 -5
- package/lib/ProForm/components/combination/ProCascader/index.js +12 -14
- package/lib/ProForm/components/combination/ProCascader/propsType.d.ts +1 -1
- package/lib/ProForm/components/combination/ProCascader/style/index.less +0 -2
- package/lib/ProForm/components/combination/ProModalSelect/index.d.ts +1 -1
- package/lib/ProForm/components/combination/ProModalSelect/index.js +24 -39
- package/lib/ProForm/components/combination/ProModalSelect/style/index.less +11 -15
- package/lib/ProForm/components/combination/ProNumberRange/index.d.ts +3 -2
- package/lib/ProForm/components/combination/ProNumberRange/index.js +20 -20
- package/lib/ProForm/components/combination/ProNumberRange/style/index.less +3 -54
- package/lib/ProForm/components/combination/ProRangeLimit/index.d.ts +2 -23
- package/lib/ProForm/components/combination/ProRangeLimit/index.js +42 -25
- package/lib/ProForm/components/combination/ProRangeLimit/propsType.d.ts +23 -0
- package/lib/ProForm/components/combination/ProTimeLimit/hooks/useControlled.d.ts +3 -2
- package/lib/ProForm/components/combination/ProTimeLimit/hooks/useControlled.js +14 -2
- package/lib/ProForm/components/combination/ProTimeLimit/index.d.ts +5 -6
- package/lib/ProForm/components/combination/ProTimeLimit/index.js +23 -20
- package/lib/ProForm/components/combination/ProTimeLimit/style/index.less +64 -6
- package/lib/ProForm/components/index.d.ts +2 -9
- package/lib/ProForm/components/index.js +1 -63
- package/lib/ProForm/components/render/ChangedWrapper.js +8 -9
- package/lib/ProForm/components/render/ConfirmWrapper.js +7 -7
- package/lib/ProForm/components/render/Render.js +29 -30
- package/lib/ProForm/components/render/RenderFields.d.ts +1 -0
- package/lib/ProForm/components/render/RenderFields.js +6 -3
- package/lib/ProForm/components/render/propsType.d.ts +3 -6
- package/lib/ProForm/index.d.ts +2 -2
- package/lib/ProForm/index.js +13 -42
- package/lib/ProForm/propsType.d.ts +3 -0
- package/lib/ProForm/style/index.less +4 -16
- package/lib/ProForm/utils/index.d.ts +15 -1
- package/lib/ProForm/utils/index.js +69 -17
- package/lib/ProForm/utils/useDeepCompareMemo.js +4 -4
- package/lib/ProForm/utils/useForm.js +26 -21
- package/lib/ProForm/utils/useShouldUpdate.d.ts +1 -0
- package/lib/ProForm/utils/useShouldUpdate.js +101 -15
- package/lib/ProIcon/index.js +10 -13
- package/lib/ProIcon/style/index.less +0 -2
- package/lib/ProLayout/components/Layout/Header/index.js +1 -1
- package/lib/ProLayout/components/Layout/Menu/FoldMenu/index.js +3 -6
- package/lib/ProLayout/components/Layout/Menu/FoldMenu/style/index.less +40 -39
- package/lib/ProLayout/components/Layout/Menu/OpenMenu/index.js +2 -3
- package/lib/ProLayout/components/Layout/Menu/OpenMenu/style/index.less +0 -3
- package/lib/ProLayout/components/Layout/Menu/SideMenu/style/index.less +7 -5
- package/lib/ProLayout/components/Layout/Menu/index.js +1 -1
- package/lib/ProLayout/components/Layout/Menu/style/index.less +0 -2
- package/lib/ProLayout/components/Layout/Notice/style/index.less +0 -2
- package/lib/ProLayout/components/ProCollapse/index.js +29 -44
- package/lib/ProLayout/components/ProCollapse/style/index.less +5 -4
- package/lib/ProLayout/components/ProFooter/index.js +2 -3
- package/lib/ProLayout/components/ProFooter/style/index.less +0 -2
- package/lib/ProLayout/components/ProHeader/components/Copy/index.js +2 -3
- package/lib/ProLayout/components/ProHeader/components/ProBackBtn/index.js +2 -3
- package/lib/ProLayout/components/ProHeader/components/ProBackBtn/style/index.less +7 -9
- package/lib/ProLayout/components/ProHeader/index.js +44 -47
- package/lib/ProLayout/components/ProHeader/style/index.less +0 -2
- package/lib/ProLayout/components/TabsManager/components/TabContextMenu.js +2 -3
- package/lib/ProLayout/components/TabsManager/hooks/useTabsState.js +0 -2
- package/lib/ProLayout/index.js +79 -40
- package/lib/ProLayout/style/index.less +2 -3
- package/lib/ProSelect/components/AdaptiveTooltip.js +2 -3
- package/lib/ProSelect/index.js +7 -15
- package/lib/ProSelect/index.less +0 -2
- package/lib/ProSelect/propsType.d.ts +1 -1
- package/lib/ProStep/components/Anchor/index.js +2 -3
- package/lib/ProStep/components/Item/index.js +1 -1
- package/lib/ProStep/components/Step/index.js +1 -0
- package/lib/ProStep/style/index.less +2 -4
- package/lib/ProTable/components/FormatColumn/index.js +33 -31
- package/lib/ProTable/components/RcTable/components/BaseTable/index.d.ts +0 -1
- package/lib/ProTable/components/RcTable/components/BaseTable/index.js +2 -4
- package/lib/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/index.js +16 -13
- package/lib/ProTable/components/RcTable/components/DraggableTable/index.d.ts +0 -1
- package/lib/ProTable/components/RcTable/components/DraggableTable/index.js +2 -4
- package/lib/ProTable/components/RenderColumn/index.d.ts +1 -1
- package/lib/ProTable/components/RenderColumn/index.js +15 -18
- package/lib/ProTable/components/RenderSummary/index.js +4 -6
- package/lib/ProTable/components/RenderTableHeader/index.js +3 -5
- package/lib/ProTable/components/RenderTabs/index.js +3 -6
- package/lib/ProTable/components/TableResizable/index.js +2 -1
- package/lib/ProTable/components/TooltipTitle/index.js +2 -3
- package/lib/ProTable/hooks/useAntdTable.js +4 -7
- package/lib/ProTable/index.d.ts +0 -7
- package/lib/ProTable/index.js +10 -13
- package/lib/ProTable/propsType.d.ts +2 -3
- package/lib/ProTable/style/index.less +4 -6
- package/lib/ProTabs/components/Card/index.js +5 -11
- package/lib/ProTabs/index.js +2 -3
- package/lib/ProTabs/style/index.less +0 -2
- package/lib/ProThemeTools/component/ProTools/index.js +18 -22
- package/lib/ProThemeTools/context/ThemeContext.d.ts +31 -0
- package/lib/ProThemeTools/context/ThemeContext.js +145 -0
- package/lib/ProThemeTools/index.d.ts +4 -8
- package/lib/ProThemeTools/index.js +88 -48
- package/lib/ProThemeTools/style/index.less +1 -3
- package/lib/ProThemeTools/utils/index.d.ts +16 -6
- package/lib/ProThemeTools/utils/index.js +34 -27
- package/lib/ProTooltip/index.js +14 -9
- package/lib/ProTooltip/style/index.less +0 -2
- package/lib/ProTree/components/AdaptiveTooltip.js +2 -4
- package/lib/ProTree/components/List.js +3 -4
- package/lib/ProTree/components/ProTree.js +5 -12
- package/lib/ProTree/components/ProTreeSelect/index.js +28 -26
- package/lib/ProTree/components/ProTreeSelect/style/index.less +0 -2
- package/lib/ProTree/components/Tree.js +6 -13
- package/lib/ProTree/index.js +0 -8
- package/lib/ProTree/propsType.d.ts +1 -1
- package/lib/ProTree/style/index.less +8 -6
- package/lib/ProTreeModal/components/Cascader.js +3 -4
- package/lib/ProTreeModal/components/List.js +11 -17
- package/lib/ProTreeModal/components/SortableItem.js +2 -3
- package/lib/ProTreeModal/components/Tree.js +3 -4
- package/lib/ProTreeModal/components/Trigger.js +6 -11
- package/lib/ProTreeModal/index.d.ts +0 -1
- package/lib/ProTreeModal/index.js +10 -20
- package/lib/ProTreeModal/style/index.less +12 -3
- package/lib/ProUpload/components/ButtonRender.js +4 -7
- package/lib/ProUpload/components/DragRender.js +2 -3
- package/lib/ProUpload/components/FileItem.d.ts +0 -1
- package/lib/ProUpload/components/FileItem.js +15 -21
- package/lib/ProUpload/components/ImageRender.js +8 -17
- package/lib/ProUpload/index.js +3 -4
- package/lib/ProUpload/style/index.less +171 -12
- package/lib/ProViewer/index.js +30 -36
- package/lib/ProViewer/propsType.js +3 -1
- package/lib/ProViewer/style/index.less +0 -2
- package/lib/ProWaterMark/index.js +3 -4
- package/lib/ProWaterMark/propsType.d.ts +5 -24
- package/lib/global.less +2 -1
- package/lib/index.d.ts +3 -3
- package/lib/index.js +34 -21
- package/lib/locale/en_US.js +1 -1
- package/lib/locale/index.d.ts +2 -0
- package/lib/locale/index.js +14 -3
- package/lib/locale/zh_CN.js +1 -1
- package/lib/style/components.less +0 -3
- package/lib/style/index.less +1 -1
- package/lib/style/theme/antd.less +36 -48
- package/lib/style/theme/base.less +90 -0
- package/lib/style/theme/index.less +2 -89
- package/lib/utils/index.d.ts +7 -0
- package/lib/utils/index.js +41 -2
- package/package.json +37 -25
- package/es/ProEditTable/components/RcTable/VirtualTable.d.ts +0 -3
- package/es/ProEditTable/components/RcTable/VirtualTable.js +0 -9
- package/es/ProForm/components/combination/ProCombination/index.d.ts +0 -6
- package/es/ProForm/components/combination/ProCombination/index.js +0 -208
- package/es/ProForm/components/combination/ProCombination/propsType.d.ts +0 -68
- package/es/ProForm/components/combination/ProCombination/style/index.less +0 -18
- package/es/ProForm/components/old/EnumSelect/hooks/useRequestList.d.ts +0 -33
- package/es/ProForm/components/old/EnumSelect/hooks/useRequestList.js +0 -110
- package/es/ProForm/components/old/EnumSelect/index.d.ts +0 -4
- package/es/ProForm/components/old/EnumSelect/index.js +0 -265
- package/es/ProForm/components/old/EnumSelect/interface.d.ts +0 -29
- package/es/ProForm/components/old/EnumSelect/interface.js +0 -1
- package/es/ProForm/components/old/EnumSelect/style/index.less +0 -113
- package/es/ProForm/components/old/InputRange/index.d.ts +0 -16
- package/es/ProForm/components/old/InputRange/index.js +0 -101
- package/es/ProForm/components/old/InputWithSuffix/index.d.ts +0 -3
- package/es/ProForm/components/old/InputWithSuffix/index.js +0 -47
- package/es/ProForm/components/old/InputWithSuffix/propsTypes.d.ts +0 -11
- package/es/ProForm/components/old/InputWithSuffix/propsTypes.js +0 -1
- package/es/ProForm/components/old/ProAddress/index.d.ts +0 -27
- package/es/ProForm/components/old/ProAddress/index.js +0 -276
- package/es/ProForm/components/old/ProAddress/propsTypes.d.ts +0 -16
- package/es/ProForm/components/old/ProAddress/propsTypes.js +0 -1
- package/es/ProForm/components/old/ProCertNo/index.d.ts +0 -14
- package/es/ProForm/components/old/ProCertNo/index.js +0 -66
- package/es/ProForm/components/old/ProCertNo/propsType.d.ts +0 -18
- package/es/ProForm/components/old/ProCertNo/propsType.js +0 -1
- package/es/ProForm/components/old/ProCertValidity/index.d.ts +0 -9
- package/es/ProForm/components/old/ProCertValidity/index.js +0 -186
- package/es/ProForm/components/old/ProCertValidity/propsType.d.ts +0 -19
- package/es/ProForm/components/old/ProCertValidity/propsType.js +0 -1
- package/es/ProForm/components/old/ProRangeBox/index.d.ts +0 -2
- package/es/ProForm/components/old/ProRangeBox/index.js +0 -98
- package/es/ProForm/components/old/ProRangeBox/propsType.d.ts +0 -3
- package/es/ProForm/components/old/ProRangeBox/propsType.js +0 -1
- package/es/ProUpload/style/fileItem.less +0 -159
- package/es/old/ProCertValidity/index.d.ts +0 -9
- package/es/old/ProCertValidity/index.js +0 -186
- package/es/old/ProCertValidity/propsType.d.ts +0 -19
- package/es/old/ProCertValidity/propsType.js +0 -1
- package/es/old/ProEditableTable/index.d.ts +0 -4
- package/es/old/ProEditableTable/index.js +0 -594
- package/es/old/ProEditableTable/propsType.d.ts +0 -68
- package/es/old/ProEditableTable/propsType.js +0 -1
- package/es/old/ProEditableTable/style/index.less +0 -75
- package/es/old/ProEditableTable/utils.d.ts +0 -29
- package/es/old/ProEditableTable/utils.js +0 -321
- package/lib/ProEditTable/components/RcTable/VirtualTable.d.ts +0 -3
- package/lib/ProEditTable/components/RcTable/VirtualTable.js +0 -14
- package/lib/ProForm/components/combination/ProCombination/index.d.ts +0 -6
- package/lib/ProForm/components/combination/ProCombination/index.js +0 -217
- package/lib/ProForm/components/combination/ProCombination/propsType.d.ts +0 -68
- package/lib/ProForm/components/combination/ProCombination/style/index.less +0 -18
- package/lib/ProForm/components/old/EnumSelect/hooks/useRequestList.d.ts +0 -33
- package/lib/ProForm/components/old/EnumSelect/hooks/useRequestList.js +0 -117
- package/lib/ProForm/components/old/EnumSelect/index.d.ts +0 -4
- package/lib/ProForm/components/old/EnumSelect/index.js +0 -271
- package/lib/ProForm/components/old/EnumSelect/interface.d.ts +0 -29
- package/lib/ProForm/components/old/EnumSelect/interface.js +0 -5
- package/lib/ProForm/components/old/EnumSelect/style/index.less +0 -113
- package/lib/ProForm/components/old/InputRange/index.d.ts +0 -16
- package/lib/ProForm/components/old/InputRange/index.js +0 -108
- package/lib/ProForm/components/old/InputWithSuffix/index.d.ts +0 -3
- package/lib/ProForm/components/old/InputWithSuffix/index.js +0 -53
- package/lib/ProForm/components/old/InputWithSuffix/propsTypes.d.ts +0 -11
- package/lib/ProForm/components/old/InputWithSuffix/propsTypes.js +0 -5
- package/lib/ProForm/components/old/ProAddress/index.d.ts +0 -27
- package/lib/ProForm/components/old/ProAddress/index.js +0 -284
- package/lib/ProForm/components/old/ProAddress/propsTypes.d.ts +0 -16
- package/lib/ProForm/components/old/ProAddress/propsTypes.js +0 -5
- package/lib/ProForm/components/old/ProCertNo/index.d.ts +0 -14
- package/lib/ProForm/components/old/ProCertNo/index.js +0 -72
- package/lib/ProForm/components/old/ProCertNo/propsType.d.ts +0 -18
- package/lib/ProForm/components/old/ProCertNo/propsType.js +0 -5
- package/lib/ProForm/components/old/ProCertValidity/index.d.ts +0 -9
- package/lib/ProForm/components/old/ProCertValidity/index.js +0 -192
- package/lib/ProForm/components/old/ProCertValidity/propsType.d.ts +0 -19
- package/lib/ProForm/components/old/ProCertValidity/propsType.js +0 -5
- package/lib/ProForm/components/old/ProRangeBox/index.d.ts +0 -2
- package/lib/ProForm/components/old/ProRangeBox/index.js +0 -105
- package/lib/ProForm/components/old/ProRangeBox/propsType.d.ts +0 -3
- package/lib/ProForm/components/old/ProRangeBox/propsType.js +0 -5
- package/lib/ProUpload/style/fileItem.less +0 -159
- package/lib/old/ProCertValidity/index.d.ts +0 -9
- package/lib/old/ProCertValidity/index.js +0 -192
- package/lib/old/ProCertValidity/propsType.d.ts +0 -19
- package/lib/old/ProCertValidity/propsType.js +0 -5
- package/lib/old/ProEditableTable/index.d.ts +0 -4
- package/lib/old/ProEditableTable/index.js +0 -598
- package/lib/old/ProEditableTable/propsType.d.ts +0 -68
- package/lib/old/ProEditableTable/propsType.js +0 -5
- package/lib/old/ProEditableTable/style/index.less +0 -75
- package/lib/old/ProEditableTable/utils.d.ts +0 -29
- package/lib/old/ProEditableTable/utils.js +0 -329
- /package/es/ProForm/components/combination/{ProCombination → ProRangeLimit}/propsType.js +0 -0
- /package/lib/ProForm/components/combination/{ProCombination → ProRangeLimit}/propsType.js +0 -0
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { FieldNames } from 'rc-select/lib/Select';
|
|
2
|
-
import { FormInstance } from 'antd';
|
|
3
|
-
import React from 'react';
|
|
4
|
-
import * as componentMap from '../../index';
|
|
5
|
-
import type { ProFormOtherType } from '../../../propsType';
|
|
6
|
-
export interface ChildPropsItemType {
|
|
7
|
-
/**
|
|
8
|
-
* @description 要显示什么组件,支持Input/Select
|
|
9
|
-
* @default Input
|
|
10
|
-
*/
|
|
11
|
-
renderType?: keyof typeof componentMap;
|
|
12
|
-
/**
|
|
13
|
-
* @description 如果type为Select时,dataSource为下拉数据的数组
|
|
14
|
-
* @default []
|
|
15
|
-
*/
|
|
16
|
-
dataSource?: Array<object>;
|
|
17
|
-
/**
|
|
18
|
-
* @description 如果type为Select时,fieldNames可以设置对应dataSource下拉属性名
|
|
19
|
-
* @default {label:'label',value:'value'}
|
|
20
|
-
*/
|
|
21
|
-
fieldNames?: FieldNames;
|
|
22
|
-
onChange?: (value: any, option: any, form: FormInstance) => void;
|
|
23
|
-
[name: string]: any;
|
|
24
|
-
}
|
|
25
|
-
export interface ProCombinationType {
|
|
26
|
-
/**
|
|
27
|
-
* @description 组件的值,[第一个组件的值,第二个组件的值,]
|
|
28
|
-
* @default []
|
|
29
|
-
*/
|
|
30
|
-
value: Array<any>;
|
|
31
|
-
/**
|
|
32
|
-
* @description onChange
|
|
33
|
-
* @default ()=>{}
|
|
34
|
-
*/
|
|
35
|
-
onChange: (values: Array<string>) => void;
|
|
36
|
-
/**
|
|
37
|
-
* @description 禁用状态
|
|
38
|
-
* @default false
|
|
39
|
-
*/
|
|
40
|
-
disabled?: boolean;
|
|
41
|
-
/**
|
|
42
|
-
* @description 子组件内部组件可配置属性,按照数组顺序注入到内部组件中
|
|
43
|
-
* @default [{},{}]
|
|
44
|
-
*/
|
|
45
|
-
childProps?: Array<ChildPropsItemType>;
|
|
46
|
-
/**
|
|
47
|
-
* @description 是否视图模式
|
|
48
|
-
* @default false
|
|
49
|
-
*/
|
|
50
|
-
isView?: boolean;
|
|
51
|
-
/**
|
|
52
|
-
* @description 查看空值时默认展示
|
|
53
|
-
* @default '-'
|
|
54
|
-
*/
|
|
55
|
-
viewEmpty?: React.ReactNode;
|
|
56
|
-
/**
|
|
57
|
-
* @description 分隔符 不传则不显示分割组件
|
|
58
|
-
* @default '-'
|
|
59
|
-
*/
|
|
60
|
-
separator?: string;
|
|
61
|
-
otherProps?: ProFormOtherType;
|
|
62
|
-
id?: string;
|
|
63
|
-
}
|
|
64
|
-
/**
|
|
65
|
-
* 兼容旧命名导出
|
|
66
|
-
*/
|
|
67
|
-
export type ChildPropsItemProps = ChildPropsItemType;
|
|
68
|
-
export type ProCombinationProps = ProCombinationType;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
@root-entry-name: 'default';
|
|
2
|
-
@import (reference) '~antd/es/style/themes/index.less';
|
|
3
|
-
|
|
4
|
-
.pro-combination.@{ant-prefix}-input-group.@{ant-prefix}-input-group-compact {
|
|
5
|
-
display: flex;
|
|
6
|
-
|
|
7
|
-
& > * {
|
|
8
|
-
max-width: 50%;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
div.pro-form-view-container {
|
|
12
|
-
flex: none;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
& > *:not(.@{ant-prefix}-btn) {
|
|
16
|
-
flex: 1;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { useRequest } from 'ahooks';
|
|
2
|
-
declare interface PaginationProp {
|
|
3
|
-
pageNum: number;
|
|
4
|
-
pageSize: number;
|
|
5
|
-
}
|
|
6
|
-
declare interface IListReq<T = any> extends PaginationProp {
|
|
7
|
-
defaultParams?: T;
|
|
8
|
-
[key: string]: any;
|
|
9
|
-
}
|
|
10
|
-
declare interface IRes<T = any> {
|
|
11
|
-
data: T;
|
|
12
|
-
status: number;
|
|
13
|
-
message: string;
|
|
14
|
-
}
|
|
15
|
-
declare interface IListProp<T> {
|
|
16
|
-
pageNum: number;
|
|
17
|
-
pageSize: number;
|
|
18
|
-
total: number;
|
|
19
|
-
list: T[];
|
|
20
|
-
}
|
|
21
|
-
declare type IResList<T> = IRes<IListProp<T>>;
|
|
22
|
-
declare type IListService<Req, Res> = (params?: IListReq<Req>) => Promise<IResList<Res>>;
|
|
23
|
-
export interface RequestListOptions<T, R> {
|
|
24
|
-
defaultParams?: Partial<T>;
|
|
25
|
-
page?: PaginationProp;
|
|
26
|
-
customizePage?: PaginationProp;
|
|
27
|
-
withPagination?: boolean;
|
|
28
|
-
conditionKey: any;
|
|
29
|
-
onPageChange?: (page: PaginationProp) => any;
|
|
30
|
-
handleFormatDataSource?: (data: any) => R[];
|
|
31
|
-
}
|
|
32
|
-
export default function useRequestList<I, R extends Record<string, any>, S extends IListService<I, R>>(service: S, options?: RequestListOptions<I, R>, useRequestOptions?: Parameters<typeof useRequest>[1]): any;
|
|
33
|
-
export {};
|
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
|
-
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
3
|
-
import { usePrevious, useRequest } from 'ahooks';
|
|
4
|
-
import { isEqual } from 'lodash';
|
|
5
|
-
import { useCallback, useEffect, useMemo, useState } from 'react';
|
|
6
|
-
var defaultTransform = data => data === null || data === void 0 ? void 0 : data.list;
|
|
7
|
-
var defaultPage = {
|
|
8
|
-
pageNum: 1,
|
|
9
|
-
pageSize: 10
|
|
10
|
-
};
|
|
11
|
-
var useDefaultOptions = options => {
|
|
12
|
-
var _options$withPaginati, _options$handleFormat;
|
|
13
|
-
var customizePage = options === null || options === void 0 ? void 0 : options.customizePage;
|
|
14
|
-
var _useState = useState(customizePage || defaultPage),
|
|
15
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
16
|
-
page = _useState2[0],
|
|
17
|
-
onPageChange = _useState2[1];
|
|
18
|
-
return _objectSpread(_objectSpread({}, options), {}, {
|
|
19
|
-
withPagination: (_options$withPaginati = options === null || options === void 0 ? void 0 : options.withPagination) !== null && _options$withPaginati !== void 0 ? _options$withPaginati : true,
|
|
20
|
-
page: (options === null || options === void 0 ? void 0 : options.page) || page,
|
|
21
|
-
onPageChange: (options === null || options === void 0 ? void 0 : options.onPageChange) || onPageChange,
|
|
22
|
-
handleFormatDataSource: (_options$handleFormat = options === null || options === void 0 ? void 0 : options.handleFormatDataSource) !== null && _options$handleFormat !== void 0 ? _options$handleFormat : defaultTransform
|
|
23
|
-
});
|
|
24
|
-
};
|
|
25
|
-
export default function useRequestList(service, options, useRequestOptions) {
|
|
26
|
-
var _data$data;
|
|
27
|
-
var _useDefaultOptions = useDefaultOptions(options),
|
|
28
|
-
page = _useDefaultOptions.page,
|
|
29
|
-
withPagination = _useDefaultOptions.withPagination,
|
|
30
|
-
onPageChange = _useDefaultOptions.onPageChange,
|
|
31
|
-
defaultParams = _useDefaultOptions.defaultParams,
|
|
32
|
-
conditionKey = _useDefaultOptions.conditionKey,
|
|
33
|
-
handleFormatDataSource = _useDefaultOptions.handleFormatDataSource;
|
|
34
|
-
// 搜索表单里的值
|
|
35
|
-
var _useState3 = useState(),
|
|
36
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
37
|
-
searchValues = _useState4[0],
|
|
38
|
-
setSearchValues = _useState4[1];
|
|
39
|
-
|
|
40
|
-
// 当次执行service的请求,包括page参数
|
|
41
|
-
var params = useMemo(() => {
|
|
42
|
-
var _condition = _objectSpread(_objectSpread({}, defaultParams), searchValues);
|
|
43
|
-
return withPagination ? _objectSpread(_objectSpread({}, page), {}, {
|
|
44
|
-
[conditionKey]: _condition !== null && _condition !== void 0 ? _condition : {}
|
|
45
|
-
}) : _condition;
|
|
46
|
-
}, [defaultParams, page, searchValues]);
|
|
47
|
-
|
|
48
|
-
// 调接口
|
|
49
|
-
// @ts-ignore
|
|
50
|
-
var result = useRequest(service, _objectSpread(_objectSpread({}, useRequestOptions), {}, {
|
|
51
|
-
// @ts-ignore
|
|
52
|
-
defaultParams: [params]
|
|
53
|
-
}));
|
|
54
|
-
var data = result.data,
|
|
55
|
-
run = result.run,
|
|
56
|
-
loading = result.loading;
|
|
57
|
-
|
|
58
|
-
// 搜索条件变化时触发
|
|
59
|
-
var prevParams = usePrevious(params);
|
|
60
|
-
var prevSearchValues = usePrevious(searchValues);
|
|
61
|
-
useEffect(() => {
|
|
62
|
-
if (prevParams && !isEqual(prevParams, params)) {
|
|
63
|
-
// @ts-ignore
|
|
64
|
-
run(params);
|
|
65
|
-
}
|
|
66
|
-
}, [params]);
|
|
67
|
-
|
|
68
|
-
// 分页变更
|
|
69
|
-
var onChange = useCallback((current, pageSize) => {
|
|
70
|
-
onPageChange({
|
|
71
|
-
pageNum: current,
|
|
72
|
-
pageSize
|
|
73
|
-
});
|
|
74
|
-
}, [onPageChange]);
|
|
75
|
-
var onSearch = useCallback(values => {
|
|
76
|
-
if (!isEqual(prevSearchValues, values)) {
|
|
77
|
-
setSearchValues(p => _objectSpread(_objectSpread(_objectSpread({}, p), values), {}, {
|
|
78
|
-
timestamp: Date.now()
|
|
79
|
-
}));
|
|
80
|
-
onChange(defaultPage.pageNum, defaultPage.pageSize);
|
|
81
|
-
}
|
|
82
|
-
}, [onChange, prevSearchValues]);
|
|
83
|
-
|
|
84
|
-
// 重置查询条件
|
|
85
|
-
var onReset = useCallback(() => {
|
|
86
|
-
setSearchValues(undefined);
|
|
87
|
-
onChange(defaultPage.pageNum, defaultPage.pageSize);
|
|
88
|
-
}, [onChange]);
|
|
89
|
-
return _objectSpread(_objectSpread({}, result), {}, {
|
|
90
|
-
loading,
|
|
91
|
-
data: handleFormatDataSource(data === null || data === void 0 ? void 0 : data.data),
|
|
92
|
-
onReset,
|
|
93
|
-
onSearch,
|
|
94
|
-
params,
|
|
95
|
-
pagination: withPagination ? {
|
|
96
|
-
current: page.pageNum,
|
|
97
|
-
pageSize: page.pageSize,
|
|
98
|
-
onPaginationChange: true,
|
|
99
|
-
total: data === null || data === void 0 || (_data$data = data.data) === null || _data$data === void 0 ? void 0 : _data$data.total,
|
|
100
|
-
onChange,
|
|
101
|
-
pageSizeOptions: [10, 20, 50, 100],
|
|
102
|
-
showQuickJumper: true,
|
|
103
|
-
showSizeChanger: true,
|
|
104
|
-
onShowSizeChange: onChange,
|
|
105
|
-
showTotal: total => {
|
|
106
|
-
return `共${total}条`;
|
|
107
|
-
}
|
|
108
|
-
} : false
|
|
109
|
-
});
|
|
110
|
-
}
|
|
@@ -1,265 +0,0 @@
|
|
|
1
|
-
import "antd/es/modal/style";
|
|
2
|
-
import _Modal from "antd/es/modal";
|
|
3
|
-
import "antd/es/table/style";
|
|
4
|
-
import _Table from "antd/es/table";
|
|
5
|
-
import "antd/es/message/style";
|
|
6
|
-
import _message from "antd/es/message";
|
|
7
|
-
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
8
|
-
import "antd/es/form/style";
|
|
9
|
-
import _Form from "antd/es/form";
|
|
10
|
-
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
11
|
-
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
12
|
-
var _excluded = ["value", "onChange", "disabled", "readOnly", "suffix", "handleFormat", "configOption", "proformmode"],
|
|
13
|
-
_excluded2 = ["title", "onOk"],
|
|
14
|
-
_excluded3 = ["rowKey", "columns"];
|
|
15
|
-
import { CloseOutlined } from '@ant-design/icons';
|
|
16
|
-
import { useSetState } from 'ahooks';
|
|
17
|
-
import { cloneDeep } from 'lodash';
|
|
18
|
-
import React, { forwardRef, useEffect } from 'react';
|
|
19
|
-
import { ReactSVG } from 'react-svg';
|
|
20
|
-
import ProForm from "../../../../ProForm";
|
|
21
|
-
import InputWithSuffix from "../InputWithSuffix";
|
|
22
|
-
import useRequestList from "./hooks/useRequestList";
|
|
23
|
-
import viewSvg from "../../../../assets/view.svg";
|
|
24
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
25
|
-
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
26
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
27
|
-
var defaultFormat = rowData => {
|
|
28
|
-
return `${rowData.code}-${rowData.name}`;
|
|
29
|
-
};
|
|
30
|
-
var EnumSelect = /*#__PURE__*/forwardRef((props, ref) => {
|
|
31
|
-
var value = props.value,
|
|
32
|
-
onChange = props.onChange,
|
|
33
|
-
disabled = props.disabled,
|
|
34
|
-
_props$readOnly = props.readOnly,
|
|
35
|
-
readOnly = _props$readOnly === void 0 ? true : _props$readOnly,
|
|
36
|
-
suffix = props.suffix,
|
|
37
|
-
_props$handleFormat = props.handleFormat,
|
|
38
|
-
handleFormat = _props$handleFormat === void 0 ? defaultFormat : _props$handleFormat,
|
|
39
|
-
configOption = props.configOption,
|
|
40
|
-
proformmode = props.proformmode,
|
|
41
|
-
restInputProps = _objectWithoutProperties(props, _excluded);
|
|
42
|
-
if (!configOption || Object.prototype.toString.call(configOption) !== '[object Object]') {
|
|
43
|
-
throw new Error('error: 请检查枚举选择弹框的配置项【configOption】');
|
|
44
|
-
}
|
|
45
|
-
var _configOption$mode = configOption.mode,
|
|
46
|
-
mode = _configOption$mode === void 0 ? 'radio' : _configOption$mode,
|
|
47
|
-
fetchOptions = configOption.fetchOptions,
|
|
48
|
-
useRequestOptions = configOption.useRequestOptions,
|
|
49
|
-
_configOption$conditi = configOption.conditionKey,
|
|
50
|
-
conditionKey = _configOption$conditi === void 0 ? 'queryBean' : _configOption$conditi,
|
|
51
|
-
conditionColumns = configOption.conditionColumns,
|
|
52
|
-
defaultParams = configOption.defaultParams,
|
|
53
|
-
_configOption$withPag = configOption.withPagination,
|
|
54
|
-
withPagination = _configOption$withPag === void 0 ? true : _configOption$withPag,
|
|
55
|
-
_configOption$paginat = configOption.paginationPosition,
|
|
56
|
-
paginationPosition = _configOption$paginat === void 0 ? 'modalBottom' : _configOption$paginat,
|
|
57
|
-
handleFormatDataSource = configOption.handleFormatDataSource,
|
|
58
|
-
defaultSelectedRows = configOption.defaultSelectedRows,
|
|
59
|
-
modalProps = configOption.modalProps,
|
|
60
|
-
tableProps = configOption.tableProps;
|
|
61
|
-
var isView = proformmode === 'view';
|
|
62
|
-
var isModalBottom = paginationPosition === 'modalBottom';
|
|
63
|
-
var _ref = modalProps || {},
|
|
64
|
-
title = _ref.title,
|
|
65
|
-
onOk = _ref.onOk,
|
|
66
|
-
restModalProps = _objectWithoutProperties(_ref, _excluded2);
|
|
67
|
-
var _ref2 = tableProps || {},
|
|
68
|
-
_ref2$rowKey = _ref2.rowKey,
|
|
69
|
-
rowKey = _ref2$rowKey === void 0 ? 'id' : _ref2$rowKey,
|
|
70
|
-
columns = _ref2.columns,
|
|
71
|
-
restTableProps = _objectWithoutProperties(_ref2, _excluded3);
|
|
72
|
-
var _useSetState = useSetState({
|
|
73
|
-
onOff: false,
|
|
74
|
-
visible: false,
|
|
75
|
-
selectedRows: [],
|
|
76
|
-
selectedRowKeys: []
|
|
77
|
-
}),
|
|
78
|
-
_useSetState2 = _slicedToArray(_useSetState, 2),
|
|
79
|
-
state = _useSetState2[0],
|
|
80
|
-
setState = _useSetState2[1];
|
|
81
|
-
var _Form$useForm = _Form.useForm(),
|
|
82
|
-
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
83
|
-
form = _Form$useForm2[0];
|
|
84
|
-
var _useRequestList = useRequestList(fetchOptions, {
|
|
85
|
-
conditionKey,
|
|
86
|
-
withPagination,
|
|
87
|
-
handleFormatDataSource,
|
|
88
|
-
defaultParams
|
|
89
|
-
}, _objectSpread({
|
|
90
|
-
ready: state.onOff
|
|
91
|
-
}, useRequestOptions)),
|
|
92
|
-
data = _useRequestList.data,
|
|
93
|
-
loading = _useRequestList.loading,
|
|
94
|
-
pagination = _useRequestList.pagination,
|
|
95
|
-
onSearch = _useRequestList.onSearch,
|
|
96
|
-
onReset = _useRequestList.onReset;
|
|
97
|
-
|
|
98
|
-
// 是否多选
|
|
99
|
-
var isMultiple = mode === 'checkbox';
|
|
100
|
-
var handleChangeValue = e => {
|
|
101
|
-
onChange(e.target.value);
|
|
102
|
-
};
|
|
103
|
-
|
|
104
|
-
// 清空表单项
|
|
105
|
-
var handleClearValue = () => {
|
|
106
|
-
onChange('');
|
|
107
|
-
setState({
|
|
108
|
-
selectedRowKeys: [],
|
|
109
|
-
selectedRows: []
|
|
110
|
-
});
|
|
111
|
-
};
|
|
112
|
-
var handleClick = () => {
|
|
113
|
-
if (!disabled) {
|
|
114
|
-
setState({
|
|
115
|
-
onOff: true
|
|
116
|
-
});
|
|
117
|
-
}
|
|
118
|
-
};
|
|
119
|
-
var handleClose = () => {
|
|
120
|
-
setState({
|
|
121
|
-
onOff: false,
|
|
122
|
-
visible: false
|
|
123
|
-
});
|
|
124
|
-
form.resetFields();
|
|
125
|
-
};
|
|
126
|
-
var handleFinish = () => {
|
|
127
|
-
if (!state.selectedRows.length) {
|
|
128
|
-
_message.error('请先勾选');
|
|
129
|
-
return false;
|
|
130
|
-
}
|
|
131
|
-
var formatterValueArr = state.selectedRows.map(row => handleFormat(row));
|
|
132
|
-
(formatterValueArr === null || formatterValueArr === void 0 ? void 0 : formatterValueArr.length) && onChange(formatterValueArr.join('、'));
|
|
133
|
-
onOk === null || onOk === void 0 || onOk(state.selectedRows);
|
|
134
|
-
handleClose();
|
|
135
|
-
};
|
|
136
|
-
var handleSearch = values => {
|
|
137
|
-
onSearch(values);
|
|
138
|
-
};
|
|
139
|
-
|
|
140
|
-
// 点击行进行勾选
|
|
141
|
-
var handleClickRow = record => {
|
|
142
|
-
var selectedValue = record[rowKey];
|
|
143
|
-
var tempSelectedRows = cloneDeep(state.selectedRows);
|
|
144
|
-
var tempSelectedRowKeys = cloneDeep(state.selectedRowKeys);
|
|
145
|
-
if (isMultiple) {
|
|
146
|
-
var rowIndex = tempSelectedRows.findIndex(item => item[rowKey] === selectedValue);
|
|
147
|
-
var rowKeyIndex = tempSelectedRowKeys.findIndex(item => item === selectedValue);
|
|
148
|
-
if (rowKeyIndex > -1) {
|
|
149
|
-
tempSelectedRows.splice(rowIndex, 1);
|
|
150
|
-
tempSelectedRowKeys.splice(rowKeyIndex, 1);
|
|
151
|
-
} else {
|
|
152
|
-
tempSelectedRows.push(record);
|
|
153
|
-
tempSelectedRowKeys.push(selectedValue);
|
|
154
|
-
}
|
|
155
|
-
} else {
|
|
156
|
-
tempSelectedRows = [record];
|
|
157
|
-
tempSelectedRowKeys = [selectedValue];
|
|
158
|
-
}
|
|
159
|
-
setState({
|
|
160
|
-
selectedRows: tempSelectedRows,
|
|
161
|
-
selectedRowKeys: tempSelectedRowKeys
|
|
162
|
-
});
|
|
163
|
-
};
|
|
164
|
-
var rowSelection = {
|
|
165
|
-
type: mode,
|
|
166
|
-
selectedRowKeys: state.selectedRowKeys,
|
|
167
|
-
onChange: (rowKeys, rows) => {
|
|
168
|
-
setState({
|
|
169
|
-
selectedRowKeys: rowKeys,
|
|
170
|
-
selectedRows: rows
|
|
171
|
-
});
|
|
172
|
-
},
|
|
173
|
-
getCheckboxProps: () => ({
|
|
174
|
-
disabled: false
|
|
175
|
-
})
|
|
176
|
-
};
|
|
177
|
-
useEffect(() => {
|
|
178
|
-
if (defaultSelectedRows !== null && defaultSelectedRows !== void 0 && defaultSelectedRows.length) {
|
|
179
|
-
setState({
|
|
180
|
-
selectedRowKeys: defaultSelectedRows.map(item => item[rowKey]),
|
|
181
|
-
selectedRows: defaultSelectedRows
|
|
182
|
-
});
|
|
183
|
-
}
|
|
184
|
-
}, [defaultSelectedRows]);
|
|
185
|
-
useEffect(() => {
|
|
186
|
-
if (state.onOff) {
|
|
187
|
-
onReset();
|
|
188
|
-
var nextState = {
|
|
189
|
-
visible: true
|
|
190
|
-
};
|
|
191
|
-
if (!value) {
|
|
192
|
-
nextState.selectedRowKeys = [];
|
|
193
|
-
nextState.selectedRows = [];
|
|
194
|
-
}
|
|
195
|
-
setState(nextState);
|
|
196
|
-
}
|
|
197
|
-
}, [state.onOff]);
|
|
198
|
-
var defaultSuffix = /*#__PURE__*/_jsxs(_Fragment, {
|
|
199
|
-
children: [value && !disabled && /*#__PURE__*/_jsx("span", {
|
|
200
|
-
className: "close-icon",
|
|
201
|
-
children: /*#__PURE__*/_jsx(CloseOutlined, {
|
|
202
|
-
onClick: handleClearValue
|
|
203
|
-
})
|
|
204
|
-
}), /*#__PURE__*/_jsx(ReactSVG, {
|
|
205
|
-
className: "search",
|
|
206
|
-
wrapper: "span",
|
|
207
|
-
src: viewSvg,
|
|
208
|
-
onClick: handleClick
|
|
209
|
-
})]
|
|
210
|
-
});
|
|
211
|
-
var forceSuffixRender = () => {
|
|
212
|
-
if (isView) {
|
|
213
|
-
return;
|
|
214
|
-
}
|
|
215
|
-
if (suffix) {
|
|
216
|
-
return /*#__PURE__*/_jsx("div", {
|
|
217
|
-
onClick: handleClick,
|
|
218
|
-
children: suffix
|
|
219
|
-
});
|
|
220
|
-
}
|
|
221
|
-
return defaultSuffix;
|
|
222
|
-
};
|
|
223
|
-
return /*#__PURE__*/_jsxs("div", {
|
|
224
|
-
className: "pro-enum-select",
|
|
225
|
-
children: [/*#__PURE__*/_jsx(InputWithSuffix, _objectSpread({
|
|
226
|
-
value: value,
|
|
227
|
-
readOnly: readOnly,
|
|
228
|
-
onClick: readOnly ? handleClick : undefined,
|
|
229
|
-
onChange: handleChangeValue,
|
|
230
|
-
disabled: disabled,
|
|
231
|
-
suffix: forceSuffixRender()
|
|
232
|
-
}, restInputProps)), state.onOff && /*#__PURE__*/_jsxs(_Modal, _objectSpread(_objectSpread({
|
|
233
|
-
className: "pro-enum-select-modal",
|
|
234
|
-
title: title,
|
|
235
|
-
width: "50%",
|
|
236
|
-
onOk: handleFinish,
|
|
237
|
-
onCancel: handleClose,
|
|
238
|
-
visible: state.visible
|
|
239
|
-
}, restModalProps), {}, {
|
|
240
|
-
children: [/*#__PURE__*/_jsx(ProForm, {
|
|
241
|
-
className: "pro-enum-select-Modal-form",
|
|
242
|
-
form: form,
|
|
243
|
-
columns: conditionColumns,
|
|
244
|
-
onFinish: handleSearch,
|
|
245
|
-
footer: (conditionColumns === null || conditionColumns === void 0 ? void 0 : conditionColumns.length) > 1
|
|
246
|
-
}), /*#__PURE__*/_jsx(_Table, _objectSpread({
|
|
247
|
-
onRow: record => {
|
|
248
|
-
return {
|
|
249
|
-
onClick: () => handleClickRow(record)
|
|
250
|
-
};
|
|
251
|
-
},
|
|
252
|
-
rowKey: rowKey,
|
|
253
|
-
loading: loading,
|
|
254
|
-
scroll: {
|
|
255
|
-
y: '250px'
|
|
256
|
-
},
|
|
257
|
-
rowSelection: rowSelection,
|
|
258
|
-
columns: columns,
|
|
259
|
-
dataSource: data,
|
|
260
|
-
pagination: pagination
|
|
261
|
-
}, restTableProps))]
|
|
262
|
-
}))]
|
|
263
|
-
});
|
|
264
|
-
});
|
|
265
|
-
export default EnumSelect;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { InputProps, ModalProps } from 'antd';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import type { ProFormColumnType } from '../../render/propsType';
|
|
4
|
-
type RequestFunction<P = Record<string, any> | void, R = any> = (params: P, ...args: any[]) => Promise<R>;
|
|
5
|
-
type OnOkFunction = (list: Record<string, any>[]) => boolean;
|
|
6
|
-
interface IConfigOption {
|
|
7
|
-
mode: 'radio' | 'checkbox';
|
|
8
|
-
fetchOptions: RequestFunction;
|
|
9
|
-
useRequestOptions: object;
|
|
10
|
-
conditionKey: string;
|
|
11
|
-
conditionColumns: ProFormColumnType[];
|
|
12
|
-
defaultParams: Record<string, any>;
|
|
13
|
-
withPagination: boolean;
|
|
14
|
-
paginationPosition: 'tableBottom' | 'modalBottom';
|
|
15
|
-
handleFormatDataSource: (dataSource: Object[]) => Object[];
|
|
16
|
-
defaultSelectedRows: Object[];
|
|
17
|
-
modalProps: ModalProps & {
|
|
18
|
-
onOk: OnOkFunction;
|
|
19
|
-
};
|
|
20
|
-
tableProps: Record<string, any>;
|
|
21
|
-
}
|
|
22
|
-
interface IEnumSelect {
|
|
23
|
-
onChange: (event: string | React.ChangeEvent<HTMLInputElement>) => void;
|
|
24
|
-
handleFormat: (value: Object) => string;
|
|
25
|
-
proformmode: string;
|
|
26
|
-
configOption: IConfigOption;
|
|
27
|
-
}
|
|
28
|
-
export declare type IProps = InputProps & IEnumSelect;
|
|
29
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
.pro-enum-select {
|
|
2
|
-
.close-icon {
|
|
3
|
-
position : relative;
|
|
4
|
-
margin-left : calc(0px - @zaui-space-size-lg);
|
|
5
|
-
margin-right : var(--zaui-space-size-md, 14px);
|
|
6
|
-
color : #FFFFFF;
|
|
7
|
-
height: 12px;
|
|
8
|
-
width: 12px;
|
|
9
|
-
display: flex;
|
|
10
|
-
align-items: center;
|
|
11
|
-
justify-content: center;
|
|
12
|
-
background-color: rgba(0, 0, 0, 0.25);
|
|
13
|
-
border : none;
|
|
14
|
-
border-radius : 50%;
|
|
15
|
-
z-index : 3;
|
|
16
|
-
|
|
17
|
-
> span {
|
|
18
|
-
position : relative;
|
|
19
|
-
border : none;
|
|
20
|
-
border-radius : 50%;
|
|
21
|
-
|
|
22
|
-
}
|
|
23
|
-
&:hover {
|
|
24
|
-
background-color: rgba(0, 0, 0, 0.5);
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.search {
|
|
29
|
-
span {
|
|
30
|
-
display : flex;
|
|
31
|
-
justify-content: center;
|
|
32
|
-
align-items : center;
|
|
33
|
-
cursor: pointer;
|
|
34
|
-
fill: #C5C7CD;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.pro-enum-select-modal {
|
|
40
|
-
.ant-table.ant-table-bordered>.ant-table-container {
|
|
41
|
-
border: 0;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.ant-table-thead>tr>th {
|
|
45
|
-
border : 0;
|
|
46
|
-
white-space : nowrap;
|
|
47
|
-
background-color: @zaui-table-header-bg;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.ant-table-thead>tr>th:not(:last-child):not(.ant-table-selection-column):not(.ant-table-row-expand-icon-cell):not([colspan])::before {
|
|
51
|
-
height: 0;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.ant-table-tbody>tr:not(.ant-table-placeholder)>td {
|
|
55
|
-
border-bottom: 0;
|
|
56
|
-
border-right : 0;
|
|
57
|
-
border-top : 0;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.ant-table-tbody>tr:not(.ant-table-measure-row)>td {
|
|
61
|
-
border-bottom : 0;
|
|
62
|
-
vertical-align: top;
|
|
63
|
-
padding : var(--zaui-space-size-md);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
.ant-table-tbody tr:nth-child(n)>td {
|
|
67
|
-
background-color: var(--zaui-base-bg);
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
.ant-table-tbody tr:nth-child(2n)>td {
|
|
71
|
-
background-color: @zaui-table-strip-bg;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
.ant-table-tbody>.ant-table-placeholder>td {
|
|
75
|
-
background-color: var(--zaui-base-bg);
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
.ant-table-tbody {
|
|
79
|
-
|
|
80
|
-
>tr:hover:not(.ant-table-expanded-row, .ant-table-placeholder)>td,
|
|
81
|
-
.ant-table-row-hover,
|
|
82
|
-
.ant-table-row-hover>td {
|
|
83
|
-
background: @zaui-table-hover-bg;
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.ant-table-fixed {
|
|
88
|
-
|
|
89
|
-
.ant-table-row-hover,
|
|
90
|
-
.ant-table-row-hover>td {
|
|
91
|
-
background: @zaui-table-hover-bg;
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.ant-table-fixed-header {
|
|
96
|
-
.ant-table-tbody tr:nth-child(n)>td {
|
|
97
|
-
background-color: @zaui-table-strip-bg;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.ant-table-tbody tr:nth-child(2n)>td {
|
|
101
|
-
background-color: var(--zaui-base-bg);
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
.ant-modal-body {
|
|
106
|
-
padding-bottom: 0;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
.ant-modal-footer {
|
|
110
|
-
padding: @zaui-space-size-md;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
interface ValueProps {
|
|
2
|
-
min?: any;
|
|
3
|
-
max?: any;
|
|
4
|
-
}
|
|
5
|
-
export interface InputRangeProps {
|
|
6
|
-
value?: ValueProps;
|
|
7
|
-
onChange?: (value: ValueProps) => void;
|
|
8
|
-
min?: number;
|
|
9
|
-
max?: number;
|
|
10
|
-
group?: any[];
|
|
11
|
-
disabled?: boolean;
|
|
12
|
-
isPositiveInteger?: boolean;
|
|
13
|
-
precision?: number;
|
|
14
|
-
}
|
|
15
|
-
declare const InputRange: ({ value, onChange, min, max, group, disabled, precision, isPositiveInteger, }: InputRangeProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
-
export default InputRange;
|