@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
package/lib/ProForm/index.js
CHANGED
|
@@ -6,18 +6,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
8
|
exports.default = exports.ProFormProvider = void 0;
|
|
9
|
-
require("antd/es/form/style");
|
|
10
|
-
var _form = _interopRequireDefault(require("antd/es/form"));
|
|
11
|
-
require("antd/es/row/style");
|
|
12
|
-
var _row = _interopRequireDefault(require("antd/es/row"));
|
|
13
9
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
14
|
-
require("antd/es/col/style");
|
|
15
|
-
var _col = _interopRequireDefault(require("antd/es/col"));
|
|
16
|
-
require("antd/es/space/style");
|
|
17
|
-
var _space = _interopRequireDefault(require("antd/es/space"));
|
|
18
10
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
19
11
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
20
12
|
var _icons = require("@ant-design/icons");
|
|
13
|
+
var _antd = require("antd");
|
|
21
14
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
22
15
|
var _react = _interopRequireWildcard(require("react"));
|
|
23
16
|
var _lodash = require("lodash");
|
|
@@ -33,7 +26,7 @@ var _useWatch = _interopRequireDefault(require("./utils/useWatch"));
|
|
|
33
26
|
var _FormsProvider = _interopRequireWildcard(require("../FormsProvider"));
|
|
34
27
|
var _ProStep = require("../ProStep");
|
|
35
28
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
36
|
-
var _excluded = ["mode", "span", "disabled", "isView", "columns", "footer", "onOk", "okText", "onCancel", "confirmLoading", "cancelText", "form", "children", "rowProps", "className", "expand", "expandOpen", "expandOpenChange", "viewEmpty", "labelAlign", "labelWidth", "onValuesChange", "onFinish", "diffConfig", "submitOnEnter", "clearNotShow", "initialValues", "requiredOnView", "formId", "required", "formKey", "globalControl", "scrollToError", "optimize", "stopOnFirstError"];
|
|
29
|
+
var _excluded = ["mode", "span", "disabled", "isView", "columns", "footer", "onOk", "okText", "onCancel", "confirmLoading", "cancelText", "form", "children", "rowProps", "className", "expand", "expandOpen", "expandOpenChange", "viewEmpty", "labelAlign", "labelWidth", "onValuesChange", "onFinish", "diffConfig", "submitOnEnter", "clearNotShow", "initialValues", "requiredOnView", "formId", "required", "formKey", "globalControl", "scrollToError", "optimize", "stopOnFirstError", "shouldUpdateDebounce"];
|
|
37
30
|
var ProForm = (props, ref) => {
|
|
38
31
|
var _localStorage, _ref3;
|
|
39
32
|
var _props$mode = props.mode,
|
|
@@ -79,6 +72,8 @@ var ProForm = (props, ref) => {
|
|
|
79
72
|
optimize = _props$optimize === void 0 ? false : _props$optimize,
|
|
80
73
|
_props$stopOnFirstErr = props.stopOnFirstError,
|
|
81
74
|
stopOnFirstError = _props$stopOnFirstErr === void 0 ? false : _props$stopOnFirstErr,
|
|
75
|
+
_props$shouldUpdateDe = props.shouldUpdateDebounce,
|
|
76
|
+
shouldUpdateDebounce = _props$shouldUpdateDe === void 0 ? 200 : _props$shouldUpdateDe,
|
|
82
77
|
otherProps = (0, _objectWithoutProperties2.default)(props, _excluded);
|
|
83
78
|
var config = (0, _ProConfigProvider.useProConfig)('ProForm');
|
|
84
79
|
// source: 用于区分是哪个组件调用,用于错误提示
|
|
@@ -138,12 +133,12 @@ var ProForm = (props, ref) => {
|
|
|
138
133
|
return !!expand && columns.length > Number(expand) && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
139
134
|
className: "expand-button",
|
|
140
135
|
onClick: expandHandle,
|
|
141
|
-
children: !openState ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(
|
|
136
|
+
children: !openState ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_antd.Space, {
|
|
142
137
|
align: "center",
|
|
143
138
|
children: [_locale.default.ProForm.unfold, /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.DoubleLeftOutlined, {
|
|
144
139
|
className: "rotate-to-bottom"
|
|
145
140
|
})]
|
|
146
|
-
}) : /*#__PURE__*/(0, _jsxRuntime.jsxs)(
|
|
141
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsxs)(_antd.Space, {
|
|
147
142
|
align: "center",
|
|
148
143
|
children: [_locale.default.ProForm.packUp, /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.DoubleLeftOutlined, {
|
|
149
144
|
className: "rotate-to-top"
|
|
@@ -216,9 +211,9 @@ var ProForm = (props, ref) => {
|
|
|
216
211
|
// 展开折叠按钮
|
|
217
212
|
var expandEle = expandRender();
|
|
218
213
|
var hasElement = footerEle || expandEle;
|
|
219
|
-
return hasElement ? /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
214
|
+
return hasElement ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_antd.Col, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, colProps), {}, {
|
|
220
215
|
className: footerCls,
|
|
221
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(
|
|
216
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_antd.Space, {
|
|
222
217
|
align: "center",
|
|
223
218
|
children: [footerEle, expandEle]
|
|
224
219
|
})
|
|
@@ -235,7 +230,7 @@ var ProForm = (props, ref) => {
|
|
|
235
230
|
otherProps.layout = otherProps.layout || 'vertical';
|
|
236
231
|
}
|
|
237
232
|
}
|
|
238
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(
|
|
233
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_antd.Form, (0, _objectSpread2.default)((0, _objectSpread2.default)((0, _objectSpread2.default)((0, _objectSpread2.default)({
|
|
239
234
|
onKeyPress: event => {
|
|
240
235
|
if (!submitOnEnter) return;
|
|
241
236
|
if (event.key === 'Enter') {
|
|
@@ -249,11 +244,7 @@ var ProForm = (props, ref) => {
|
|
|
249
244
|
onValuesChange: handleValuesChange,
|
|
250
245
|
onFinish: handleFinish,
|
|
251
246
|
initialValues: _initialValues,
|
|
252
|
-
|
|
253
|
-
block: 'center',
|
|
254
|
-
behavior: 'smooth'
|
|
255
|
-
},
|
|
256
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_row.default, (0, _objectSpread2.default)((0, _objectSpread2.default)({
|
|
247
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_antd.Row, (0, _objectSpread2.default)((0, _objectSpread2.default)({
|
|
257
248
|
gutter: 24
|
|
258
249
|
}, rowProps), {}, {
|
|
259
250
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_RenderFields.default, {
|
|
@@ -272,7 +263,8 @@ var ProForm = (props, ref) => {
|
|
|
272
263
|
clearNotShow: clearNotShow,
|
|
273
264
|
requiredOnView: requiredOnView,
|
|
274
265
|
required: required,
|
|
275
|
-
globalControl: globalControl
|
|
266
|
+
globalControl: globalControl,
|
|
267
|
+
shouldUpdateDebounce: shouldUpdateDebounce
|
|
276
268
|
}), footerRender()]
|
|
277
269
|
})), children]
|
|
278
270
|
}));
|
|
@@ -314,7 +306,7 @@ var ProFormProvider = props => {
|
|
|
314
306
|
// @ts-ignore
|
|
315
307
|
onFormChange(formName, info);
|
|
316
308
|
};
|
|
317
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
309
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_antd.Form.Provider, {
|
|
318
310
|
onFormChange: onFormChange ? handleFormChange : undefined,
|
|
319
311
|
onFormFinish: onFormFinish,
|
|
320
312
|
children: children
|
|
@@ -326,26 +318,5 @@ ProFormForward.useFieldProps = _useFieldProps.useFieldProps; // 获取每个字
|
|
|
326
318
|
// 表单实例共享
|
|
327
319
|
ProFormForward.FormsProvider = _FormsProvider.default; // 表单实例共享Provider
|
|
328
320
|
ProFormForward.useForms = _FormsProvider.useForms; // 获取上下文中的共享的表单实例map
|
|
329
|
-
ProFormForward.useFormInstances = _FormsProvider.useForms; // 获取上下文中的共享的表单实例map
|
|
330
321
|
ProFormForward.useContextForms = _FormsProvider.useContextForms; // 获取上下文中的共享的表单实例map
|
|
331
|
-
|
|
332
|
-
// 内置组合
|
|
333
|
-
ProFormForward.ProCascader = _components.ProCascader;
|
|
334
|
-
ProFormForward.ProCombination = _components.ProCombination;
|
|
335
|
-
ProFormForward.ProNumberRange = _components.ProNumberRange;
|
|
336
|
-
ProFormForward.ProModalSelect = _components.ProModalSelect;
|
|
337
|
-
ProFormForward.ProTimeLimit = _components.ProTimeLimit;
|
|
338
|
-
ProFormForward.ProUpload = _components.ProUpload;
|
|
339
|
-
// ProFormForward.ProTreeSelect = ProTreeSelect;
|
|
340
|
-
ProFormForward.ProTreeModal = _components.ProTreeModal;
|
|
341
|
-
ProFormForward.ProTree = _components.ProTree;
|
|
342
|
-
|
|
343
|
-
// 待废弃
|
|
344
|
-
ProFormForward.EnumSelect = _components.EnumSelect;
|
|
345
|
-
ProFormForward.ProAddress = _components.ProAddress;
|
|
346
|
-
ProFormForward.InputRange = _components.InputRange;
|
|
347
|
-
ProFormForward.ProRangeBox = _components.ProRangeBox;
|
|
348
|
-
ProFormForward.ProCertValidity = _components.ProCertValidity;
|
|
349
|
-
ProFormForward.ProCertNo = _components.ProCertNo;
|
|
350
|
-
ProFormForward.transferAddressInfoToRegion = _components.transferAddressInfoToRegion;
|
|
351
322
|
var _default = exports.default = ProFormForward;
|
|
@@ -46,6 +46,7 @@ export interface ProFormOtherType {
|
|
|
46
46
|
formDisabled?: boolean;
|
|
47
47
|
isDiffChange?: boolean;
|
|
48
48
|
diffConfig?: DiffConfigType;
|
|
49
|
+
shouldUpdateDebounce?: number;
|
|
49
50
|
}
|
|
50
51
|
export interface DiffConfigType<Values = any> {
|
|
51
52
|
/** 比对原始数据源 */
|
|
@@ -100,6 +101,8 @@ export interface ProFormType<Values = any> extends FormProps<Values> {
|
|
|
100
101
|
optimize?: boolean;
|
|
101
102
|
/** 是否在遇到第一个错误时停止验证 */
|
|
102
103
|
stopOnFirstError?: boolean;
|
|
104
|
+
/** shouldUpdate防抖延迟时间,默认500ms,设置为0则不防抖 */
|
|
105
|
+
shouldUpdateDebounce?: number;
|
|
103
106
|
}
|
|
104
107
|
export interface TransformType<T = any> {
|
|
105
108
|
normalize?: (value: StoreValue, prevValue: StoreValue, allValues: Store) => StoreValue;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
@root-entry-name: 'default';
|
|
2
|
-
@import (reference) '~antd/es/style/themes/index.less';
|
|
3
1
|
@import '../components/base/SwitchCheckbox/style/index.less';
|
|
2
|
+
@import '../components/base/TimePicker/style/index.less';
|
|
4
3
|
@import '../components/base/TextArea/index.less';
|
|
5
4
|
@import '../components/combination/FormList/style/index.less';
|
|
6
5
|
@import '../components/combination/ProTimeLimit/style/index.less';
|
|
@@ -9,8 +8,6 @@
|
|
|
9
8
|
@import '../components/combination/ProModalSelect/style/index.less';
|
|
10
9
|
@import '../components/combination/Group/style/index.less';
|
|
11
10
|
@import '../components/combination/Container/style/index.less';
|
|
12
|
-
@import '../components/old/EnumSelect/style/index.less';
|
|
13
|
-
@import '../components/old/EnumSelect/style/index.less';
|
|
14
11
|
|
|
15
12
|
.pro-form {
|
|
16
13
|
&.@{ant-prefix}-form-vertical {
|
|
@@ -106,7 +103,6 @@
|
|
|
106
103
|
}
|
|
107
104
|
|
|
108
105
|
.@{ant-prefix}-form-item {
|
|
109
|
-
margin-bottom: calc(var(--zaui-space-size-md; 16px) * var(--zaui-size; 1)) !important;
|
|
110
106
|
|
|
111
107
|
&.pro-form-item-width-auto {
|
|
112
108
|
.@{ant-prefix}-form-item-control-input {
|
|
@@ -137,13 +133,6 @@
|
|
|
137
133
|
display: none;
|
|
138
134
|
}
|
|
139
135
|
|
|
140
|
-
.@{ant-prefix}-form-item-explain {
|
|
141
|
-
height: auto;
|
|
142
|
-
|
|
143
|
-
.@{ant-prefix}-form-item-explain-error {
|
|
144
|
-
font-size: var(--zaui-font-size, 14px);
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
136
|
|
|
148
137
|
.@{ant-prefix}-input-number {
|
|
149
138
|
width: 100%;
|
|
@@ -186,8 +175,8 @@
|
|
|
186
175
|
|
|
187
176
|
.@{ant-prefix}-form-item-has-error {
|
|
188
177
|
.group-separator {
|
|
189
|
-
color:
|
|
190
|
-
border-color:
|
|
178
|
+
color: #ff4d4f;
|
|
179
|
+
border-color: #ff4d4f;
|
|
191
180
|
}
|
|
192
181
|
|
|
193
182
|
.site-input-split {
|
|
@@ -318,8 +307,7 @@
|
|
|
318
307
|
width: 18px;
|
|
319
308
|
}
|
|
320
309
|
.pro-form-list-tool-btn {
|
|
321
|
-
|
|
322
|
-
padding: 0;
|
|
310
|
+
padding: 0 4px;
|
|
323
311
|
cursor: pointer;
|
|
324
312
|
.anticon {
|
|
325
313
|
color: var(--zaui-text-weak, #a0a0a0);
|
|
@@ -61,7 +61,6 @@ export declare function initialValuesToNames(values: AnyObject, columns: AnyObje
|
|
|
61
61
|
* @returns ['group-7x19no', 0, 'abc'] =>['group-7x19no', 0]
|
|
62
62
|
*/
|
|
63
63
|
export declare function getArrayBeforeNumber(arr: (string | number)[]): (string | number)[];
|
|
64
|
-
export declare const customEqualForFun: (value: any, other: any) => boolean;
|
|
65
64
|
/**
|
|
66
65
|
* 查询数据中是否包含rowKey
|
|
67
66
|
*/
|
|
@@ -102,4 +101,19 @@ export declare const parseNamePath: (input: string) => any;
|
|
|
102
101
|
*/
|
|
103
102
|
export declare const getFormFieldPaths: (form: FormInstance) => any[];
|
|
104
103
|
export declare function findNamesKeyInArray(arr: string[], key: string): string | null;
|
|
104
|
+
type DataItem = (string | number)[];
|
|
105
|
+
/**
|
|
106
|
+
* 根据特定规则合并两个数据源 (TypeScript 版本)
|
|
107
|
+
* @param data1 第一个数据源
|
|
108
|
+
* @param data2 第二个数据源
|
|
109
|
+
* @returns 合并后的结果数组
|
|
110
|
+
*/
|
|
111
|
+
export declare const mergeNames: (data1: DataItem[], data2: DataItem[]) => DataItem[];
|
|
112
|
+
/**
|
|
113
|
+
* 是否 formlist或者pro-edit-table 场景
|
|
114
|
+
* 使用正则表达式判断一个由逗号分隔的字符串中,是否包含一个纯数字的片段。
|
|
115
|
+
* @param {string} str - 输入的字符串。
|
|
116
|
+
* @returns {boolean} - 如果匹配成功,返回 true;否则返回 false。
|
|
117
|
+
*/
|
|
118
|
+
export declare const isListForm: (str: string) => boolean;
|
|
105
119
|
export {};
|
|
@@ -5,20 +5,20 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.filterInternalFields = exports.equalDependencies = exports.diffField = exports.deleteForPath =
|
|
8
|
+
exports.filterInternalFields = exports.equalDependencies = exports.diffField = exports.deleteForPath = void 0;
|
|
9
9
|
exports.findNamesKeyInArray = findNamesKeyInArray;
|
|
10
10
|
exports.getAllNamePath = exports.findOptionByValue = void 0;
|
|
11
11
|
exports.getArrayBeforeNumber = getArrayBeforeNumber;
|
|
12
12
|
exports.hasRowKey = exports.getLayout = exports.getFormFieldPaths = exports.getDecimalDigits = void 0;
|
|
13
13
|
exports.initialValuesToNames = initialValuesToNames;
|
|
14
|
-
exports.splitNameStr = exports.parseNamePath = exports.isUpperCase = exports.isTrim = exports.isSelect = exports.isNullValue = exports.isNullArray = exports.isNotFullArray = exports.isEmptyArray = void 0;
|
|
14
|
+
exports.splitNameStr = exports.parseNamePath = exports.mergeNames = exports.isUpperCase = exports.isTrim = exports.isSelect = exports.isNullValue = exports.isNullArray = exports.isNotFullArray = exports.isListForm = exports.isEmptyArray = void 0;
|
|
15
15
|
exports.toArray = toArray;
|
|
16
16
|
exports.weedOutProps = exports.view = exports.useControlled = void 0;
|
|
17
17
|
var _createForOfIteratorHelper2 = _interopRequireDefault(require("@babel/runtime/helpers/createForOfIteratorHelper"));
|
|
18
18
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
19
|
-
var
|
|
20
|
-
var _moment = _interopRequireDefault(require("moment"));
|
|
19
|
+
var _dayjs = _interopRequireDefault(require("dayjs"));
|
|
21
20
|
var _lodash = _interopRequireWildcard(require("lodash"));
|
|
21
|
+
var _react = require("react");
|
|
22
22
|
/* eslint-disable no-restricted-syntax */
|
|
23
23
|
|
|
24
24
|
var getLayout = params => {
|
|
@@ -78,7 +78,7 @@ var isTrim = (type, trim, configData) => {
|
|
|
78
78
|
_ref$state = _ref.state,
|
|
79
79
|
state = _ref$state === void 0 ? {} : _ref$state;
|
|
80
80
|
var _trim = trim || (state === null || state === void 0 || (_state$type = state[type]) === null || _state$type === void 0 ? void 0 : _state$type.trim);
|
|
81
|
-
if (['Input'
|
|
81
|
+
if (['Input'].includes(type) && _trim) {
|
|
82
82
|
result.getValueFromEvent = event => {
|
|
83
83
|
var _event$target$value;
|
|
84
84
|
if (Array.isArray(event)) {
|
|
@@ -99,7 +99,7 @@ var isTrim = (type, trim, configData) => {
|
|
|
99
99
|
exports.isTrim = isTrim;
|
|
100
100
|
var isUpperCase = (type, upperCase) => {
|
|
101
101
|
var result = {};
|
|
102
|
-
if (['Input'
|
|
102
|
+
if (['Input'].includes(type) && upperCase) {
|
|
103
103
|
result.getValueFromEvent = event => {
|
|
104
104
|
var _event$target;
|
|
105
105
|
if (Array.isArray(event)) {
|
|
@@ -152,8 +152,8 @@ var filterInternalFields = (values, optimize) => {
|
|
|
152
152
|
return values;
|
|
153
153
|
}
|
|
154
154
|
var nextValues = values;
|
|
155
|
-
// fix: braft-editor对象不可遍历
|
|
156
|
-
if (values !== null && values !== void 0 && values._immutable ||
|
|
155
|
+
// fix: braft-editor对象不可遍历 Dayjs不过滤
|
|
156
|
+
if (values !== null && values !== void 0 && values._immutable || _dayjs.default.isDayjs(values)) {
|
|
157
157
|
return nextValues;
|
|
158
158
|
}
|
|
159
159
|
if (values instanceof File) {
|
|
@@ -325,17 +325,9 @@ function getArrayBeforeNumber(arr) {
|
|
|
325
325
|
return index !== -1 ? arr.slice(0, index + 1) : arr;
|
|
326
326
|
}
|
|
327
327
|
|
|
328
|
-
// 自定义深比对 如果两边都是函数类型则认为相等
|
|
329
|
-
var customEqualForFun = (value, other) => {
|
|
330
|
-
if ((0, _lodash.isFunction)(value) && (0, _lodash.isFunction)(other) || /*#__PURE__*/_react.default.isValidElement(value) && /*#__PURE__*/_react.default.isValidElement(other)) {
|
|
331
|
-
return true;
|
|
332
|
-
}
|
|
333
|
-
};
|
|
334
|
-
|
|
335
328
|
/**
|
|
336
329
|
* 查询数据中是否包含rowKey
|
|
337
330
|
*/
|
|
338
|
-
exports.customEqualForFun = customEqualForFun;
|
|
339
331
|
var hasRowKey = obj => {
|
|
340
332
|
if (typeof obj !== 'object' || obj === null) {
|
|
341
333
|
return false;
|
|
@@ -485,4 +477,64 @@ function findNamesKeyInArray(arr, key) {
|
|
|
485
477
|
_iterator.f();
|
|
486
478
|
}
|
|
487
479
|
return null;
|
|
488
|
-
}
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
// 为内层数组定义一个类型别名,以增加代码清晰度
|
|
483
|
+
|
|
484
|
+
/**
|
|
485
|
+
* 根据特定规则合并两个数据源 (TypeScript 版本)
|
|
486
|
+
* @param data1 第一个数据源
|
|
487
|
+
* @param data2 第二个数据源
|
|
488
|
+
* @returns 合并后的结果数组
|
|
489
|
+
*/
|
|
490
|
+
var mergeNames = (data1, data2) => {
|
|
491
|
+
// 步骤 1: 将 data1 的最后一个元素存入 Set 以便快速查找
|
|
492
|
+
var baseFields = new Set(data1.map(item => item[item.length - 1]));
|
|
493
|
+
var finalResult = [];
|
|
494
|
+
var coveredFields = new Set();
|
|
495
|
+
|
|
496
|
+
// 步骤 2 & 3: 处理 data2,找出有效的合并项
|
|
497
|
+
data2.forEach(item => {
|
|
498
|
+
// 确保数组有可处理的合并字段,并且该字段是字符串类型
|
|
499
|
+
var combinedField = item[item.length - 1];
|
|
500
|
+
if (item.length < 3 || typeof combinedField !== 'string') {
|
|
501
|
+
return;
|
|
502
|
+
}
|
|
503
|
+
var subFields = combinedField.split('-');
|
|
504
|
+
|
|
505
|
+
// 检查所有子字段是否都存在于 baseFields 中
|
|
506
|
+
var allFieldsValid = subFields.every(field => baseFields.has(field));
|
|
507
|
+
|
|
508
|
+
// 步骤 4: 如果有效,则添加到结果中,并记录已覆盖的字段
|
|
509
|
+
if (allFieldsValid) {
|
|
510
|
+
finalResult.push(item);
|
|
511
|
+
subFields.forEach(field => coveredFields.add(field));
|
|
512
|
+
}
|
|
513
|
+
});
|
|
514
|
+
|
|
515
|
+
// 步骤 5: 处理 data1,添加未被覆盖的字段
|
|
516
|
+
data1.forEach(item => {
|
|
517
|
+
var field = item[item.length - 1];
|
|
518
|
+
if (!coveredFields.has(field)) {
|
|
519
|
+
finalResult.push(item);
|
|
520
|
+
}
|
|
521
|
+
});
|
|
522
|
+
return finalResult;
|
|
523
|
+
};
|
|
524
|
+
|
|
525
|
+
/**
|
|
526
|
+
* 是否 formlist或者pro-edit-table 场景
|
|
527
|
+
* 使用正则表达式判断一个由逗号分隔的字符串中,是否包含一个纯数字的片段。
|
|
528
|
+
* @param {string} str - 输入的字符串。
|
|
529
|
+
* @returns {boolean} - 如果匹配成功,返回 true;否则返回 false。
|
|
530
|
+
*/
|
|
531
|
+
exports.mergeNames = mergeNames;
|
|
532
|
+
var isListForm = str => {
|
|
533
|
+
if (!str) {
|
|
534
|
+
return false;
|
|
535
|
+
}
|
|
536
|
+
// 正则表达式:查找被逗号或字符串边界包围的数字
|
|
537
|
+
var regex = /(?:^|,)\s*\d+\s*(?:,|$)/;
|
|
538
|
+
return regex.test(str);
|
|
539
|
+
};
|
|
540
|
+
exports.isListForm = isListForm;
|
|
@@ -6,13 +6,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.useDeepCompareMemo = void 0;
|
|
7
7
|
var _react = require("react");
|
|
8
8
|
var _lodash = require("lodash");
|
|
9
|
-
var
|
|
9
|
+
var _utils = require("../../utils");
|
|
10
10
|
/** 深度比较依赖变化memo */
|
|
11
11
|
var useDeepCompareMemo = (fun, changedCb, depList) => {
|
|
12
|
-
var lastDependency = (0, _react.useRef)(); // 上一次的依赖
|
|
13
|
-
var lastRes = (0, _react.useRef)(); // 上一次的结果
|
|
12
|
+
var lastDependency = (0, _react.useRef)({}); // 上一次的依赖
|
|
13
|
+
var lastRes = (0, _react.useRef)({}); // 上一次的结果
|
|
14
14
|
|
|
15
|
-
if (!(0, _lodash.isEqualWith)(depList, lastDependency.current,
|
|
15
|
+
if (!(0, _lodash.isEqualWith)(depList, lastDependency === null || lastDependency === void 0 ? void 0 : lastDependency.current, _utils.customEqualForFunction)) {
|
|
16
16
|
var res = fun();
|
|
17
17
|
changedCb === null || changedCb === void 0 || changedCb(lastRes.current, res);
|
|
18
18
|
lastRes.current = res;
|
|
@@ -9,9 +9,8 @@ var _regeneratorRuntime2 = _interopRequireDefault(require("@babel/runtime/helper
|
|
|
9
9
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
10
10
|
var _createForOfIteratorHelper2 = _interopRequireDefault(require("@babel/runtime/helpers/createForOfIteratorHelper"));
|
|
11
11
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
12
|
-
require("antd/es/form/style");
|
|
13
|
-
var _form = _interopRequireDefault(require("antd/es/form"));
|
|
14
12
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
13
|
+
var _antd = require("antd");
|
|
15
14
|
var _react = require("react");
|
|
16
15
|
var _index = require("./index");
|
|
17
16
|
var _tools = require("../../ProEditTable/utils/tools");
|
|
@@ -32,7 +31,7 @@ var useForm = exports.useForm = function useForm(originForm, options) {
|
|
|
32
31
|
|
|
33
32
|
// formKey全局共享逻辑
|
|
34
33
|
var forms = (0, _react.useContext)(_FormsProvider.FormsContext);
|
|
35
|
-
var _ref2 =
|
|
34
|
+
var _ref2 = _antd.Form.useForm(forms[formKey] || _originForm),
|
|
36
35
|
_ref3 = (0, _slicedToArray2.default)(_ref2, 1),
|
|
37
36
|
form = _ref3[0];
|
|
38
37
|
if (formKey && forms[formKey] !== form) {
|
|
@@ -48,7 +47,7 @@ var useForm = exports.useForm = function useForm(originForm, options) {
|
|
|
48
47
|
if (isModified) return [form];
|
|
49
48
|
|
|
50
49
|
// @ts-ignore
|
|
51
|
-
var
|
|
50
|
+
var nextGetFieldsValue = (nameList, filterFunc) => {
|
|
52
51
|
// 全部查询
|
|
53
52
|
if (nameList !== true) {
|
|
54
53
|
var values = getFieldsValue(nameList || true, filterFunc);
|
|
@@ -56,7 +55,7 @@ var useForm = exports.useForm = function useForm(originForm, options) {
|
|
|
56
55
|
}
|
|
57
56
|
return getFieldsValue(nameList, filterFunc);
|
|
58
57
|
};
|
|
59
|
-
var
|
|
58
|
+
var nextValidateFields = /*#__PURE__*/function () {
|
|
60
59
|
var _ref4 = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee(nameList) {
|
|
61
60
|
var _rest$,
|
|
62
61
|
_form$__INTERNAL_CONF,
|
|
@@ -76,6 +75,7 @@ var useForm = exports.useForm = function useForm(originForm, options) {
|
|
|
76
75
|
_form$getInternalHook,
|
|
77
76
|
getFields,
|
|
78
77
|
fieldsList,
|
|
78
|
+
fieldsNames,
|
|
79
79
|
_document,
|
|
80
80
|
tablePagination,
|
|
81
81
|
_tablePagination$clic,
|
|
@@ -155,19 +155,24 @@ var useForm = exports.useForm = function useForm(originForm, options) {
|
|
|
155
155
|
}
|
|
156
156
|
// @ts-ignore
|
|
157
157
|
_form$getInternalHook = form.getInternalHooks('RC_FORM_INTERNAL_HOOKS'), getFields = _form$getInternalHook.getFields;
|
|
158
|
-
fieldsList = getFields();
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
158
|
+
fieldsList = getFields(); // formList& proEditTable 特殊处理
|
|
159
|
+
if (Array.isArray(nameList) && (0, _index.isListForm)(String(nameList))) {
|
|
160
|
+
fieldsNames = fieldsList.map(item => item.name);
|
|
161
|
+
validateNames = (0, _index.mergeNames)(nameList, fieldsNames);
|
|
162
|
+
} else {
|
|
163
|
+
// 其他情况
|
|
164
|
+
fieldsList.forEach(item => {
|
|
165
|
+
var _item$name, _item$name2;
|
|
166
|
+
if (nameList[0] === ((_item$name = item.name) === null || _item$name === void 0 ? void 0 : _item$name[0]) || (_item$name2 = item.name) !== null && _item$name2 !== void 0 && (_item$name2 = _item$name2[0]) !== null && _item$name2 !== void 0 && _item$name2.startsWith(`${nameList[0]}_`)) {
|
|
167
|
+
validateNames.push(item.name);
|
|
168
|
+
}
|
|
169
|
+
});
|
|
170
|
+
}
|
|
165
171
|
if (Array.isArray(nameList) && nameList.length && !validateNames.length) {
|
|
166
172
|
validateNames = [...nameList];
|
|
167
173
|
}
|
|
168
174
|
|
|
169
175
|
// @ts-ignore
|
|
170
|
-
// delete rest[0].recursive;
|
|
171
176
|
_context.next = 41;
|
|
172
177
|
return validateFields(validateNames, ...rest).then(values => {
|
|
173
178
|
return (0, _index.filterInternalFields)(values, optimize);
|
|
@@ -184,7 +189,7 @@ var useForm = exports.useForm = function useForm(originForm, options) {
|
|
|
184
189
|
}
|
|
185
190
|
_context.next = 45;
|
|
186
191
|
return validateFields(nameList, ...rest).then(values => {
|
|
187
|
-
return nameList ? values :
|
|
192
|
+
return nameList ? values : nextGetFieldsValue();
|
|
188
193
|
});
|
|
189
194
|
case 45:
|
|
190
195
|
return _context.abrupt("return", _context.sent);
|
|
@@ -205,11 +210,11 @@ var useForm = exports.useForm = function useForm(originForm, options) {
|
|
|
205
210
|
}
|
|
206
211
|
}, _callee, null, [[0, 48], [7, 26, 29, 32], [11, 18]]);
|
|
207
212
|
}));
|
|
208
|
-
return function
|
|
213
|
+
return function nextValidateFields(_x) {
|
|
209
214
|
return _ref4.apply(this, arguments);
|
|
210
215
|
};
|
|
211
216
|
}();
|
|
212
|
-
var
|
|
217
|
+
var nextSetFieldValue = (name, value, info) => {
|
|
213
218
|
if (info) {
|
|
214
219
|
setFields([(0, _objectSpread2.default)({
|
|
215
220
|
name,
|
|
@@ -224,7 +229,7 @@ var useForm = exports.useForm = function useForm(originForm, options) {
|
|
|
224
229
|
}]);
|
|
225
230
|
}
|
|
226
231
|
};
|
|
227
|
-
var
|
|
232
|
+
var nextSetFieldsValue = values => {
|
|
228
233
|
var errors = getFieldsError();
|
|
229
234
|
var errorNames = errors.reduce((acc, entry) => {
|
|
230
235
|
if (entry.errors.length > 0) {
|
|
@@ -248,10 +253,10 @@ var useForm = exports.useForm = function useForm(originForm, options) {
|
|
|
248
253
|
setFieldsValue(values);
|
|
249
254
|
}
|
|
250
255
|
};
|
|
251
|
-
form.getFieldsValue =
|
|
252
|
-
form.setFieldValue =
|
|
253
|
-
form.setFieldsValue =
|
|
254
|
-
form.validateFields =
|
|
256
|
+
form.getFieldsValue = nextGetFieldsValue;
|
|
257
|
+
form.setFieldValue = nextSetFieldValue;
|
|
258
|
+
form.setFieldsValue = nextSetFieldsValue;
|
|
259
|
+
form.validateFields = nextValidateFields;
|
|
255
260
|
form.isModified = true;
|
|
256
261
|
form.__INTERNAL_CONFIG__ = {};
|
|
257
262
|
return [form];
|
|
@@ -19,6 +19,7 @@ interface UseShouldUpdateProps<Values> {
|
|
|
19
19
|
rules?: ProRule[];
|
|
20
20
|
required?: boolean;
|
|
21
21
|
type: string;
|
|
22
|
+
shouldUpdateDebounce?: number;
|
|
22
23
|
[key: string]: any;
|
|
23
24
|
}
|
|
24
25
|
type HookShouldUpdate<Values = any> = (props: UseShouldUpdateProps<Values>) => Result<Values>;
|