@zat-design/sisyphus-react 3.13.19-beta.1 → 3.13.19-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/es/FormsProvider/index.js +9 -7
- package/es/ProAction/components/CheckModalContent/index.js +14 -14
- package/es/ProAction/index.js +46 -47
- package/es/ProConfigProvider/index.js +26 -20
- package/es/ProDownload/index.js +66 -73
- package/es/ProDownload/utils.js +26 -23
- package/es/ProDrawerForm/components/ProDrawer/index.js +43 -39
- package/es/ProDrawerForm/components/ProModal/index.js +25 -23
- package/es/ProDrawerForm/components/index.js +2 -2
- package/es/ProDrawerForm/index.js +19 -21
- package/es/ProDrawerForm/utils/index.js +1 -1
- package/es/ProEditLabel/components/RenderProForm.js +30 -26
- package/es/ProEditLabel/index.js +49 -36
- package/es/ProEditLabel/utils/index.js +4 -3
- package/es/ProEditTable/components/ActionButton/index.js +83 -76
- package/es/ProEditTable/components/RcTable/BaseTable.js +24 -24
- package/es/ProEditTable/components/RcTable/DraggableTable.js +34 -41
- package/es/ProEditTable/components/RcTable/VirtualTable.js +4 -3
- package/es/ProEditTable/components/RcTable/index.js +3 -3
- package/es/ProEditTable/components/RenderField/ListChangedWrapper.js +61 -57
- package/es/ProEditTable/components/RenderField/index.js +151 -145
- package/es/ProEditTable/components/RenderToolbar/index.js +37 -42
- package/es/ProEditTable/components/Summary/index.js +22 -21
- package/es/ProEditTable/components/Validator/index.js +11 -10
- package/es/ProEditTable/components/index.js +5 -5
- package/es/ProEditTable/index.d.ts +1 -1
- package/es/ProEditTable/index.js +170 -173
- package/es/ProEditTable/utils/config.js +42 -46
- package/es/ProEditTable/utils/diffOriginal.js +34 -19
- package/es/ProEditTable/utils/getDefaultProps.js +12 -13
- package/es/ProEditTable/utils/index.js +102 -99
- package/es/ProEditTable/utils/tools.js +88 -91
- package/es/ProEditTable/utils/transform.js +7 -11
- package/es/ProEditTable/utils/useEditTableError.js +22 -13
- package/es/ProEnum/components/Group.js +23 -27
- package/es/ProEnum/components/Tag.js +14 -16
- package/es/ProEnum/hooks/useEnum.js +32 -14
- package/es/ProEnum/hooks/useEnumRequest.js +42 -42
- package/es/ProEnum/hooks/useFrequentEnumRequest.js +17 -19
- package/es/ProEnum/index.js +80 -89
- package/es/ProEnum/utils/eventCenter.js +23 -32
- package/es/ProEnum/utils/frequentEnum.js +16 -4
- package/es/ProEnum/utils/getEnumLabel.js +16 -21
- package/es/ProEnum/utils/index.js +12 -7
- package/es/ProForm/components/Container.js +8 -6
- package/es/ProForm/components/FormFooter/index.js +21 -19
- package/es/ProForm/components/base/Checkbox/index.js +16 -15
- package/es/ProForm/components/base/DatePicker/index.js +23 -20
- package/es/ProForm/components/base/Input/index.js +20 -18
- package/es/ProForm/components/base/InputNumber/index.js +57 -53
- package/es/ProForm/components/base/Radio/index.js +15 -15
- package/es/ProForm/components/base/RangePicker/index.js +24 -29
- package/es/ProForm/components/base/RangePicker/useDateRange.js +3 -3
- package/es/ProForm/components/base/Select/index.js +17 -15
- package/es/ProForm/components/base/Switch/index.js +16 -15
- package/es/ProForm/components/base/SwitchCheckbox/index.js +19 -18
- package/es/ProForm/components/base/TextArea/index.js +18 -17
- package/es/ProForm/components/base/TimePicker/index.js +10 -9
- package/es/ProForm/components/combination/Container/index.js +25 -23
- package/es/ProForm/components/combination/FormList/components/ActionButton.js +80 -92
- package/es/ProForm/components/combination/FormList/components/BlockFields.js +21 -19
- package/es/ProForm/components/combination/FormList/components/BlockTitle.js +7 -7
- package/es/ProForm/components/combination/FormList/components/Empty.js +21 -20
- package/es/ProForm/components/combination/FormList/components/LineFields.js +19 -18
- package/es/ProForm/components/combination/FormList/components/ToolbarButton.js +45 -51
- package/es/ProForm/components/combination/FormList/index.js +43 -51
- package/es/ProForm/components/combination/FormList/utils.js +9 -9
- package/es/ProForm/components/combination/Group/component/AddonWrapper/index.js +8 -6
- package/es/ProForm/components/combination/Group/component/ComRender.js +33 -29
- package/es/ProForm/components/combination/Group/hooks/index.js +49 -47
- package/es/ProForm/components/combination/Group/index.js +38 -37
- package/es/ProForm/components/combination/Group/utils.js +56 -50
- package/es/ProForm/components/combination/ProCascader/index.js +81 -85
- package/es/ProForm/components/combination/ProCascader/utils/index.js +6 -6
- package/es/ProForm/components/combination/ProCombination/index.js +41 -37
- package/es/ProForm/components/combination/ProModalSelect/hooks/useRequestList.js +31 -25
- package/es/ProForm/components/combination/ProModalSelect/index.js +166 -173
- package/es/ProForm/components/combination/ProModalSelect/utils/index.js +1 -1
- package/es/ProForm/components/combination/ProNumberRange/index.js +46 -51
- package/es/ProForm/components/combination/ProRangeLimit/index.js +39 -39
- package/es/ProForm/components/combination/ProTimeLimit/hooks/useControlled.js +3 -3
- package/es/ProForm/components/combination/ProTimeLimit/index.js +43 -40
- package/es/ProForm/components/index.d.ts +1 -0
- package/es/ProForm/components/index.js +40 -35
- package/es/ProForm/components/old/EnumSelect/hooks/useRequestList.js +30 -28
- package/es/ProForm/components/old/EnumSelect/index.js +55 -62
- package/es/ProForm/components/old/InputRange/index.js +17 -16
- package/es/ProForm/components/old/InputWithSuffix/index.js +6 -5
- package/es/ProForm/components/old/ProAddress/index.js +53 -75
- package/es/ProForm/components/old/ProCertNo/index.js +17 -17
- package/es/ProForm/components/old/ProCertValidity/index.js +19 -21
- package/es/ProForm/components/old/ProRangeBox/index.js +25 -24
- package/es/ProForm/components/render/ChangedWrapper.js +34 -33
- package/es/ProForm/components/render/ConfirmWrapper.js +16 -18
- package/es/ProForm/components/render/Render.js +150 -135
- package/es/ProForm/components/render/RenderFields.js +65 -50
- package/es/ProForm/components/render/propsType.js +25 -0
- package/es/ProForm/index.js +83 -70
- package/es/ProForm/propsType.d.ts +1 -1
- package/es/ProForm/propsType.js +5 -1
- package/es/ProForm/utils/diffOriginal.js +30 -16
- package/es/ProForm/utils/getDefaultProps.js +10 -10
- package/es/ProForm/utils/index.js +105 -110
- package/es/ProForm/utils/processDependencies.js +15 -5
- package/es/ProForm/utils/rulesCreator.js +21 -22
- package/es/ProForm/utils/transformNames.js +7 -6
- package/es/ProForm/utils/transformValue.js +16 -13
- package/es/ProForm/utils/useDeepCompareMemo.js +6 -4
- package/es/ProForm/utils/useFieldProps.js +1 -3
- package/es/ProForm/utils/useForm.js +36 -34
- package/es/ProForm/utils/useRules.js +28 -31
- package/es/ProForm/utils/useShouldUpdate.js +83 -86
- package/es/ProForm/utils/useWatch.js +36 -14
- package/es/ProForm/utils/valueType.js +51 -52
- package/es/ProIcon/config/index.js +2 -0
- package/es/ProIcon/index.js +53 -49
- package/es/ProIcon/utils/index.js +8 -9
- package/es/ProLayout/components/Layout/Header/index.js +13 -11
- package/es/ProLayout/components/Layout/Icon/Icon.js +7 -7
- package/es/ProLayout/components/Layout/Icon/index.js +1 -1
- package/es/ProLayout/components/Layout/Menu/FoldMenu/index.js +42 -40
- package/es/ProLayout/components/Layout/Menu/OpenMenu/index.js +51 -52
- package/es/ProLayout/components/Layout/Menu/SideMenu/index.js +10 -9
- package/es/ProLayout/components/Layout/Menu/index.js +20 -18
- package/es/ProLayout/components/Layout/Notice/index.js +12 -11
- package/es/ProLayout/components/Layout/index.js +4 -4
- package/es/ProLayout/components/ProCollapse/index.js +35 -32
- package/es/ProLayout/components/ProFooter/index.js +13 -15
- package/es/ProLayout/components/ProHeader/components/Copy/index.js +9 -9
- package/es/ProLayout/components/ProHeader/components/ProBackBtn/index.js +8 -7
- package/es/ProLayout/components/ProHeader/components/index.js +2 -2
- package/es/ProLayout/components/ProHeader/index.js +129 -118
- package/es/ProLayout/components/ProHeader/utils/index.js +1 -1
- package/es/ProLayout/components/index.js +3 -3
- package/es/ProLayout/index.d.ts +1 -1
- package/es/ProLayout/index.js +28 -25
- package/es/ProLayout/utils/index.js +37 -35
- package/es/ProSelect/components/AdaptiveTooltip.js +10 -11
- package/es/ProSelect/index.js +87 -99
- package/es/ProSelect/utils/index.js +27 -33
- package/es/ProStep/components/Anchor/index.d.ts +1 -0
- package/es/ProStep/components/Anchor/index.js +26 -25
- package/es/ProStep/components/Item/index.d.ts +1 -0
- package/es/ProStep/components/Item/index.js +26 -22
- package/es/ProStep/components/Listener/index.js +11 -15
- package/es/ProStep/components/Step/index.js +24 -25
- package/es/ProStep/index.js +51 -53
- package/es/ProStep/utils/index.js +13 -12
- package/es/ProStepTab/index.js +59 -37
- package/es/ProTable/components/FormatColumn/index.js +106 -110
- package/es/ProTable/components/RcTable/components/BaseTable/index.js +7 -9
- package/es/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/index.js +36 -50
- package/es/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/utils/index.js +24 -24
- package/es/ProTable/components/RcTable/components/DraggableTable/index.js +8 -10
- package/es/ProTable/components/RcTable/index.js +2 -2
- package/es/ProTable/components/RenderColumn/index.js +51 -51
- package/es/ProTable/components/RenderEmptyText/index.js +8 -7
- package/es/ProTable/components/RenderFooter/index.js +3 -3
- package/es/ProTable/components/RenderSummary/index.js +13 -13
- package/es/ProTable/components/RenderTableHeader/index.js +16 -14
- package/es/ProTable/components/RenderTabs/index.js +28 -33
- package/es/ProTable/components/TableResizable/index.js +17 -16
- package/es/ProTable/components/TooltipTitle/index.js +7 -6
- package/es/ProTable/components/index.js +11 -6
- package/es/ProTable/hooks/useAntdTable.js +106 -119
- package/es/ProTable/index.js +158 -176
- package/es/ProTable/utils/index.js +25 -21
- package/es/ProTabs/components/Card/index.js +15 -14
- package/es/ProTabs/components/index.js +1 -1
- package/es/ProTabs/index.js +24 -25
- package/es/ProThemeTools/component/ProTools/index.js +69 -68
- package/es/ProThemeTools/component/index.js +1 -1
- package/es/ProThemeTools/index.js +47 -33
- package/es/ProThemeTools/utils/index.js +20 -17
- package/es/ProTooltip/index.js +44 -46
- package/es/ProTree/components/AdaptiveTooltip.js +5 -7
- package/es/ProTree/components/CloseIcon.js +5 -5
- package/es/ProTree/components/List.js +22 -24
- package/es/ProTree/components/ProTree.js +84 -102
- package/es/ProTree/components/ProTreeSelect/index.js +128 -119
- package/es/ProTree/components/SearchTitle.js +10 -9
- package/es/ProTree/components/Tree.js +57 -58
- package/es/ProTree/components/index.js +4 -4
- package/es/ProTree/index.js +6 -6
- package/es/ProTree/utils.js +29 -22
- package/es/ProTreeModal/components/Cascader.js +31 -33
- package/es/ProTreeModal/components/CloseIcon.js +5 -5
- package/es/ProTreeModal/components/List.js +74 -93
- package/es/ProTreeModal/components/SearchTitle.js +5 -4
- package/es/ProTreeModal/components/SortableItem.js +14 -14
- package/es/ProTreeModal/components/Tree.js +49 -53
- package/es/ProTreeModal/components/Trigger.js +29 -28
- package/es/ProTreeModal/components/index.js +6 -6
- package/es/ProTreeModal/index.js +166 -206
- package/es/ProTreeModal/utils.js +37 -33
- package/es/ProUpload/components/ButtonRender.js +33 -36
- package/es/ProUpload/components/DragRender.js +54 -51
- package/es/ProUpload/components/DraggableUploadListItem.js +5 -4
- package/es/ProUpload/components/Example.js +13 -12
- package/es/ProUpload/components/FileItem.js +63 -58
- package/es/ProUpload/components/ImageRender.js +98 -100
- package/es/ProUpload/index.js +75 -82
- package/es/ProUpload/uitls.js +3 -3
- package/es/ProUtils/utils/index.js +10 -14
- package/es/ProViewer/index.js +29 -25
- package/es/ProViewer/propsType.js +0 -1
- package/es/ProWaterMark/index.js +5 -4
- package/es/index.d.ts +1 -1
- package/es/index.js +38 -29
- package/es/locale/index.js +7 -4
- package/es/old/ProCertValidity/index.js +19 -21
- package/es/old/ProEditableTable/index.js +156 -156
- package/es/old/ProEditableTable/utils.js +61 -63
- package/es/tokens.js +1 -0
- package/es/utils/index.js +12 -12
- package/lib/FormsProvider/index.js +11 -7
- package/lib/ProAction/components/CheckModalContent/index.js +11 -13
- package/lib/ProAction/index.js +40 -43
- package/lib/ProConfigProvider/index.js +24 -17
- package/lib/ProDownload/index.js +65 -71
- package/lib/ProDownload/utils.js +25 -22
- package/lib/ProDrawerForm/components/ProDrawer/index.js +39 -38
- package/lib/ProDrawerForm/components/ProModal/index.js +23 -22
- package/lib/ProDrawerForm/index.js +18 -18
- package/lib/ProDrawerForm/utils/index.js +3 -2
- package/lib/ProEditLabel/components/RenderProForm.js +26 -24
- package/lib/ProEditLabel/index.js +46 -35
- package/lib/ProEditLabel/utils/index.js +6 -5
- package/lib/ProEditTable/components/ActionButton/index.js +79 -74
- package/lib/ProEditTable/components/RcTable/BaseTable.js +21 -23
- package/lib/ProEditTable/components/RcTable/DraggableTable.js +32 -40
- package/lib/ProEditTable/components/RcTable/VirtualTable.js +3 -3
- package/lib/ProEditTable/components/RenderField/ListChangedWrapper.js +62 -59
- package/lib/ProEditTable/components/RenderField/index.js +137 -132
- package/lib/ProEditTable/components/RenderToolbar/index.js +34 -41
- package/lib/ProEditTable/components/Summary/index.js +20 -20
- package/lib/ProEditTable/components/Validator/index.js +10 -10
- package/lib/ProEditTable/index.d.ts +1 -1
- package/lib/ProEditTable/index.js +159 -164
- package/lib/ProEditTable/utils/config.js +40 -44
- package/lib/ProEditTable/utils/diffOriginal.js +36 -21
- package/lib/ProEditTable/utils/getDefaultProps.js +14 -15
- package/lib/ProEditTable/utils/index.js +97 -97
- package/lib/ProEditTable/utils/tools.js +96 -91
- package/lib/ProEditTable/utils/transform.js +7 -11
- package/lib/ProEditTable/utils/useEditTableError.js +22 -13
- package/lib/ProEnum/components/Group.js +23 -27
- package/lib/ProEnum/components/Tag.js +14 -16
- package/lib/ProEnum/hooks/useEnum.js +30 -12
- package/lib/ProEnum/hooks/useEnumRequest.js +39 -39
- package/lib/ProEnum/hooks/useFrequentEnumRequest.js +16 -18
- package/lib/ProEnum/index.js +68 -78
- package/lib/ProEnum/utils/eventCenter.js +23 -32
- package/lib/ProEnum/utils/frequentEnum.js +14 -3
- package/lib/ProEnum/utils/getEnumLabel.js +15 -21
- package/lib/ProEnum/utils/index.js +12 -7
- package/lib/ProForm/components/Container.js +7 -5
- package/lib/ProForm/components/FormFooter/index.js +19 -17
- package/lib/ProForm/components/base/Checkbox/index.js +14 -13
- package/lib/ProForm/components/base/DatePicker/index.js +20 -17
- package/lib/ProForm/components/base/Input/index.js +15 -15
- package/lib/ProForm/components/base/InputNumber/index.js +51 -48
- package/lib/ProForm/components/base/Radio/index.js +13 -13
- package/lib/ProForm/components/base/RangePicker/index.js +19 -22
- package/lib/ProForm/components/base/RangePicker/useDateRange.js +5 -4
- package/lib/ProForm/components/base/Select/index.js +14 -12
- package/lib/ProForm/components/base/Switch/index.js +11 -11
- package/lib/ProForm/components/base/SwitchCheckbox/index.js +16 -15
- package/lib/ProForm/components/base/TextArea/index.js +14 -13
- package/lib/ProForm/components/base/TimePicker/index.js +6 -5
- package/lib/ProForm/components/combination/Container/index.js +22 -21
- package/lib/ProForm/components/combination/FormList/components/ActionButton.js +77 -89
- package/lib/ProForm/components/combination/FormList/components/BlockFields.js +17 -15
- package/lib/ProForm/components/combination/FormList/components/BlockTitle.js +7 -7
- package/lib/ProForm/components/combination/FormList/components/Empty.js +17 -18
- package/lib/ProForm/components/combination/FormList/components/LineFields.js +14 -14
- package/lib/ProForm/components/combination/FormList/components/ToolbarButton.js +43 -48
- package/lib/ProForm/components/combination/FormList/index.js +35 -43
- package/lib/ProForm/components/combination/FormList/utils.js +11 -10
- package/lib/ProForm/components/combination/Group/component/AddonWrapper/index.js +7 -5
- package/lib/ProForm/components/combination/Group/component/ComRender.js +30 -28
- package/lib/ProForm/components/combination/Group/hooks/index.js +48 -45
- package/lib/ProForm/components/combination/Group/index.js +34 -35
- package/lib/ProForm/components/combination/Group/utils.js +62 -50
- package/lib/ProForm/components/combination/ProCascader/index.js +75 -80
- package/lib/ProForm/components/combination/ProCascader/utils/index.js +8 -7
- package/lib/ProForm/components/combination/ProCombination/index.js +35 -31
- package/lib/ProForm/components/combination/ProModalSelect/hooks/useRequestList.js +30 -24
- package/lib/ProForm/components/combination/ProModalSelect/index.js +171 -180
- package/lib/ProForm/components/combination/ProModalSelect/utils/index.js +3 -2
- package/lib/ProForm/components/combination/ProNumberRange/index.js +42 -48
- package/lib/ProForm/components/combination/ProRangeLimit/index.js +35 -35
- package/lib/ProForm/components/combination/ProTimeLimit/hooks/useControlled.js +3 -3
- package/lib/ProForm/components/combination/ProTimeLimit/index.js +37 -34
- package/lib/ProForm/components/index.d.ts +1 -0
- package/lib/ProForm/components/old/EnumSelect/hooks/useRequestList.js +35 -33
- package/lib/ProForm/components/old/EnumSelect/index.js +50 -58
- package/lib/ProForm/components/old/InputRange/index.js +16 -16
- package/lib/ProForm/components/old/InputWithSuffix/index.js +4 -4
- package/lib/ProForm/components/old/ProAddress/index.js +53 -75
- package/lib/ProForm/components/old/ProCertNo/index.js +16 -17
- package/lib/ProForm/components/old/ProCertValidity/index.js +17 -18
- package/lib/ProForm/components/old/ProRangeBox/index.js +24 -24
- package/lib/ProForm/components/render/ChangedWrapper.js +35 -35
- package/lib/ProForm/components/render/ConfirmWrapper.js +14 -17
- package/lib/ProForm/components/render/Render.js +138 -125
- package/lib/ProForm/components/render/RenderFields.js +57 -43
- package/lib/ProForm/components/render/propsType.js +26 -1
- package/lib/ProForm/index.js +74 -61
- package/lib/ProForm/propsType.d.ts +1 -1
- package/lib/ProForm/propsType.js +5 -1
- package/lib/ProForm/utils/diffOriginal.js +30 -17
- package/lib/ProForm/utils/getDefaultProps.js +12 -12
- package/lib/ProForm/utils/index.js +127 -106
- package/lib/ProForm/utils/processDependencies.js +15 -6
- package/lib/ProForm/utils/rulesCreator.js +21 -21
- package/lib/ProForm/utils/transformNames.js +6 -6
- package/lib/ProForm/utils/transformValue.js +14 -11
- package/lib/ProForm/utils/useDeepCompareMemo.js +7 -6
- package/lib/ProForm/utils/useFieldProps.js +2 -3
- package/lib/ProForm/utils/useForm.js +33 -31
- package/lib/ProForm/utils/useRules.js +25 -28
- package/lib/ProForm/utils/useShouldUpdate.js +82 -85
- package/lib/ProForm/utils/useWatch.js +36 -14
- package/lib/ProForm/utils/valueType.js +52 -52
- package/lib/ProIcon/config/index.js +2 -0
- package/lib/ProIcon/index.js +47 -44
- package/lib/ProIcon/utils/index.js +10 -8
- package/lib/ProLayout/components/Layout/Header/index.js +10 -10
- package/lib/ProLayout/components/Layout/Icon/Icon.js +8 -7
- package/lib/ProLayout/components/Layout/Menu/FoldMenu/index.js +37 -36
- package/lib/ProLayout/components/Layout/Menu/OpenMenu/index.js +49 -52
- package/lib/ProLayout/components/Layout/Menu/SideMenu/index.js +8 -8
- package/lib/ProLayout/components/Layout/Menu/index.js +17 -16
- package/lib/ProLayout/components/Layout/Notice/index.js +8 -8
- package/lib/ProLayout/components/ProCollapse/index.js +32 -30
- package/lib/ProLayout/components/ProFooter/index.js +14 -16
- package/lib/ProLayout/components/ProHeader/components/Copy/index.js +7 -7
- package/lib/ProLayout/components/ProHeader/components/ProBackBtn/index.js +6 -7
- package/lib/ProLayout/components/ProHeader/index.js +131 -120
- package/lib/ProLayout/components/ProHeader/utils/index.js +3 -2
- package/lib/ProLayout/index.d.ts +1 -1
- package/lib/ProLayout/index.js +22 -21
- package/lib/ProLayout/utils/index.js +42 -33
- package/lib/ProSelect/components/AdaptiveTooltip.js +9 -11
- package/lib/ProSelect/index.js +82 -93
- package/lib/ProSelect/utils/index.js +29 -34
- package/lib/ProStep/components/Anchor/index.d.ts +1 -0
- package/lib/ProStep/components/Anchor/index.js +25 -24
- package/lib/ProStep/components/Item/index.d.ts +1 -0
- package/lib/ProStep/components/Item/index.js +24 -20
- package/lib/ProStep/components/Listener/index.js +9 -13
- package/lib/ProStep/components/Step/index.js +20 -21
- package/lib/ProStep/index.js +45 -49
- package/lib/ProStep/utils/index.js +16 -12
- package/lib/ProStepTab/index.js +60 -38
- package/lib/ProTable/components/FormatColumn/index.js +100 -104
- package/lib/ProTable/components/RcTable/components/BaseTable/index.js +5 -7
- package/lib/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/index.js +34 -48
- package/lib/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/utils/index.js +25 -23
- package/lib/ProTable/components/RcTable/components/DraggableTable/index.js +5 -7
- package/lib/ProTable/components/RenderColumn/index.js +46 -48
- package/lib/ProTable/components/RenderEmptyText/index.js +6 -6
- package/lib/ProTable/components/RenderFooter/index.js +3 -3
- package/lib/ProTable/components/RenderSummary/index.js +11 -12
- package/lib/ProTable/components/RenderTableHeader/index.js +14 -13
- package/lib/ProTable/components/RenderTabs/index.js +27 -32
- package/lib/ProTable/components/TableResizable/index.js +16 -15
- package/lib/ProTable/components/TooltipTitle/index.js +5 -5
- package/lib/ProTable/hooks/useAntdTable.js +103 -116
- package/lib/ProTable/index.js +149 -169
- package/lib/ProTable/utils/index.js +33 -22
- package/lib/ProTabs/components/Card/index.js +14 -14
- package/lib/ProTabs/index.js +24 -24
- package/lib/ProThemeTools/component/ProTools/index.js +66 -65
- package/lib/ProThemeTools/index.js +43 -29
- package/lib/ProThemeTools/utils/index.js +25 -18
- package/lib/ProTooltip/index.js +44 -46
- package/lib/ProTree/components/AdaptiveTooltip.js +5 -7
- package/lib/ProTree/components/CloseIcon.js +5 -5
- package/lib/ProTree/components/List.js +18 -22
- package/lib/ProTree/components/ProTree.js +77 -96
- package/lib/ProTree/components/ProTreeSelect/index.js +126 -116
- package/lib/ProTree/components/SearchTitle.js +8 -8
- package/lib/ProTree/components/Tree.js +53 -55
- package/lib/ProTree/index.js +4 -4
- package/lib/ProTree/utils.js +34 -25
- package/lib/ProTreeModal/components/Cascader.js +28 -32
- package/lib/ProTreeModal/components/CloseIcon.js +5 -5
- package/lib/ProTreeModal/components/List.js +69 -89
- package/lib/ProTreeModal/components/SearchTitle.js +4 -4
- package/lib/ProTreeModal/components/SortableItem.js +11 -12
- package/lib/ProTreeModal/components/Tree.js +44 -49
- package/lib/ProTreeModal/components/Trigger.js +26 -26
- package/lib/ProTreeModal/index.js +157 -199
- package/lib/ProTreeModal/utils.js +43 -35
- package/lib/ProUpload/components/ButtonRender.js +29 -33
- package/lib/ProUpload/components/DragRender.js +50 -48
- package/lib/ProUpload/components/DraggableUploadListItem.js +7 -5
- package/lib/ProUpload/components/Example.js +13 -11
- package/lib/ProUpload/components/FileItem.js +58 -50
- package/lib/ProUpload/components/ImageRender.js +89 -93
- package/lib/ProUpload/index.js +68 -76
- package/lib/ProUpload/uitls.js +5 -3
- package/lib/ProUtils/utils/index.js +10 -14
- package/lib/ProViewer/index.js +26 -24
- package/lib/ProViewer/propsType.js +1 -5
- package/lib/ProWaterMark/index.js +5 -4
- package/lib/index.d.ts +1 -1
- package/lib/locale/index.js +6 -2
- package/lib/old/ProCertValidity/index.js +17 -18
- package/lib/old/ProEditableTable/index.js +153 -156
- package/lib/old/ProEditableTable/utils.js +61 -62
- package/lib/tokens.js +1 -0
- package/lib/utils/index.js +16 -13
- package/package.json +8 -8
- package/dist/index.esm.css +0 -6344
- package/dist/index.esm.js +0 -3
- package/dist/less.esm.css +0 -5768
- package/dist/less.esm.js +0 -3
@@ -33,3 +33,4 @@ export { default as InputRange } from './old/InputRange';
|
|
33
33
|
export { default as ProRangeBox } from './old/ProRangeBox';
|
34
34
|
export { default as ProCertValidity } from './old/ProCertValidity';
|
35
35
|
export { default as ProCertNo } from './old/ProCertNo';
|
36
|
+
export type ProFormComponentType = 'Select' | 'DatePicker' | 'RangePicker' | 'TextArea' | 'Switch' | 'Radio' | 'Checkbox' | 'Input' | 'InputNumber' | 'SwitchCheckbox' | 'TimePicker' | 'FormList' | 'ProEditTable' | 'ProCascader' | 'ProAddressBar' | 'ProCombination' | 'ProNumberRange' | 'ProModalSelect' | 'ProTimeLimit' | 'ProRangeLimit' | 'Group' | 'ProCollapse' | 'Container' | 'ProEnum' | 'ProSelect' | 'ProUpload' | 'ProTreeModal' | 'ProTree' | 'FormFooter' | 'ProAddress' | 'EnumSelect' | 'InputRange' | 'ProRangeBox' | 'ProCertValidity' | 'ProCertNo';
|
@@ -5,27 +5,24 @@ Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
6
6
|
});
|
7
7
|
exports.default = useRequestList;
|
8
|
-
var
|
9
|
-
var _objectSpread3 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
8
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
10
9
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
11
|
-
var _isEqual2 = _interopRequireDefault(require("lodash/isEqual"));
|
12
10
|
var _ahooks = require("ahooks");
|
11
|
+
var _lodash = require("lodash");
|
13
12
|
var _react = require("react");
|
14
|
-
var defaultTransform =
|
15
|
-
return data === null || data === void 0 ? void 0 : data.list;
|
16
|
-
};
|
13
|
+
var defaultTransform = data => data === null || data === void 0 ? void 0 : data.list;
|
17
14
|
var defaultPage = {
|
18
15
|
pageNum: 1,
|
19
16
|
pageSize: 10
|
20
17
|
};
|
21
|
-
var useDefaultOptions =
|
18
|
+
var useDefaultOptions = options => {
|
22
19
|
var _options$withPaginati, _options$handleFormat;
|
23
20
|
var customizePage = options === null || options === void 0 ? void 0 : options.customizePage;
|
24
21
|
var _useState = (0, _react.useState)(customizePage || defaultPage),
|
25
22
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
26
23
|
page = _useState2[0],
|
27
24
|
onPageChange = _useState2[1];
|
28
|
-
return (0,
|
25
|
+
return (0, _objectSpread2.default)((0, _objectSpread2.default)({}, options), {}, {
|
29
26
|
withPagination: (_options$withPaginati = options === null || options === void 0 ? void 0 : options.withPagination) !== null && _options$withPaginati !== void 0 ? _options$withPaginati : true,
|
30
27
|
page: (options === null || options === void 0 ? void 0 : options.page) || page,
|
31
28
|
onPageChange: (options === null || options === void 0 ? void 0 : options.onPageChange) || onPageChange,
|
@@ -46,69 +43,74 @@ function useRequestList(service, options, useRequestOptions) {
|
|
46
43
|
_useState4 = (0, _slicedToArray2.default)(_useState3, 2),
|
47
44
|
searchValues = _useState4[0],
|
48
45
|
setSearchValues = _useState4[1];
|
46
|
+
|
49
47
|
// 当次执行service的请求,包括page参数
|
50
|
-
var params = (0, _react.useMemo)(
|
51
|
-
var _condition = (0,
|
52
|
-
return withPagination ? (0,
|
48
|
+
var params = (0, _react.useMemo)(() => {
|
49
|
+
var _condition = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, defaultParams), searchValues);
|
50
|
+
return withPagination ? (0, _objectSpread2.default)((0, _objectSpread2.default)({}, page), {}, {
|
51
|
+
[conditionKey]: _condition !== null && _condition !== void 0 ? _condition : {}
|
52
|
+
}) : _condition;
|
53
53
|
}, [defaultParams, page, searchValues]);
|
54
|
+
|
54
55
|
// 调接口
|
55
56
|
// @ts-ignore
|
56
|
-
var result = (0, _ahooks.useRequest)(service, (0,
|
57
|
+
var result = (0, _ahooks.useRequest)(service, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, useRequestOptions), {}, {
|
57
58
|
// @ts-ignore
|
58
59
|
defaultParams: [params]
|
59
60
|
}));
|
60
61
|
var data = result.data,
|
61
62
|
run = result.run,
|
62
63
|
loading = result.loading;
|
64
|
+
|
63
65
|
// 搜索条件变化时触发
|
64
66
|
var prevParams = (0, _ahooks.usePrevious)(params);
|
65
67
|
var prevSearchValues = (0, _ahooks.usePrevious)(searchValues);
|
66
|
-
(0, _react.useEffect)(
|
67
|
-
if (prevParams && !(0,
|
68
|
+
(0, _react.useEffect)(() => {
|
69
|
+
if (prevParams && !(0, _lodash.isEqual)(prevParams, params)) {
|
68
70
|
// @ts-ignore
|
69
71
|
run(params);
|
70
72
|
}
|
71
73
|
}, [params]);
|
74
|
+
|
72
75
|
// 分页变更
|
73
|
-
var onChange = (0, _react.useCallback)(
|
76
|
+
var onChange = (0, _react.useCallback)((current, pageSize) => {
|
74
77
|
onPageChange({
|
75
78
|
pageNum: current,
|
76
|
-
pageSize
|
79
|
+
pageSize
|
77
80
|
});
|
78
81
|
}, [onPageChange]);
|
79
|
-
var onSearch = (0, _react.useCallback)(
|
80
|
-
if (!(0,
|
81
|
-
setSearchValues(
|
82
|
-
|
83
|
-
|
84
|
-
});
|
85
|
-
});
|
82
|
+
var onSearch = (0, _react.useCallback)(values => {
|
83
|
+
if (!(0, _lodash.isEqual)(prevSearchValues, values)) {
|
84
|
+
setSearchValues(p => (0, _objectSpread2.default)((0, _objectSpread2.default)((0, _objectSpread2.default)({}, p), values), {}, {
|
85
|
+
timestamp: Date.now()
|
86
|
+
}));
|
86
87
|
onChange(defaultPage.pageNum, defaultPage.pageSize);
|
87
88
|
}
|
88
89
|
}, [onChange, prevSearchValues]);
|
90
|
+
|
89
91
|
// 重置查询条件
|
90
|
-
var onReset = (0, _react.useCallback)(
|
92
|
+
var onReset = (0, _react.useCallback)(() => {
|
91
93
|
setSearchValues(undefined);
|
92
94
|
onChange(defaultPage.pageNum, defaultPage.pageSize);
|
93
95
|
}, [onChange]);
|
94
|
-
return (0,
|
95
|
-
loading
|
96
|
+
return (0, _objectSpread2.default)((0, _objectSpread2.default)({}, result), {}, {
|
97
|
+
loading,
|
96
98
|
data: handleFormatDataSource(data === null || data === void 0 ? void 0 : data.data),
|
97
|
-
onReset
|
98
|
-
onSearch
|
99
|
-
params
|
99
|
+
onReset,
|
100
|
+
onSearch,
|
101
|
+
params,
|
100
102
|
pagination: withPagination ? {
|
101
103
|
current: page.pageNum,
|
102
104
|
pageSize: page.pageSize,
|
103
105
|
onPaginationChange: true,
|
104
|
-
total: data === null || data === void 0
|
105
|
-
onChange
|
106
|
+
total: data === null || data === void 0 || (_data$data = data.data) === null || _data$data === void 0 ? void 0 : _data$data.total,
|
107
|
+
onChange,
|
106
108
|
pageSizeOptions: [10, 20, 50, 100],
|
107
109
|
showQuickJumper: true,
|
108
110
|
showSizeChanger: true,
|
109
111
|
onShowSizeChange: onChange,
|
110
|
-
showTotal:
|
111
|
-
return
|
112
|
+
showTotal: total => {
|
113
|
+
return `共${total}条`;
|
112
114
|
}
|
113
115
|
} : false
|
114
116
|
});
|
@@ -1,14 +1,15 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
4
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
4
5
|
Object.defineProperty(exports, "__esModule", {
|
5
6
|
value: true
|
6
7
|
});
|
7
8
|
exports.default = void 0;
|
8
|
-
require("antd/es/table/style");
|
9
|
-
var _table = _interopRequireDefault(require("antd/es/table"));
|
10
9
|
require("antd/es/modal/style");
|
11
10
|
var _modal = _interopRequireDefault(require("antd/es/modal"));
|
11
|
+
require("antd/es/table/style");
|
12
|
+
var _table = _interopRequireDefault(require("antd/es/table"));
|
12
13
|
require("antd/es/message/style");
|
13
14
|
var _message2 = _interopRequireDefault(require("antd/es/message"));
|
14
15
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
@@ -16,23 +17,23 @@ require("antd/es/form/style");
|
|
16
17
|
var _form = _interopRequireDefault(require("antd/es/form"));
|
17
18
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
18
19
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
19
|
-
var _cloneDeep2 = _interopRequireDefault(require("lodash/cloneDeep"));
|
20
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
21
20
|
var _icons = require("@ant-design/icons");
|
22
21
|
var _ahooks = require("ahooks");
|
23
|
-
var
|
22
|
+
var _lodash = require("lodash");
|
23
|
+
var _react = _interopRequireWildcard(require("react"));
|
24
24
|
var _reactSvg = require("react-svg");
|
25
25
|
var _ProForm = _interopRequireDefault(require("../../../../ProForm"));
|
26
26
|
var _InputWithSuffix = _interopRequireDefault(require("../InputWithSuffix"));
|
27
27
|
var _useRequestList2 = _interopRequireDefault(require("./hooks/useRequestList"));
|
28
28
|
var _view = _interopRequireDefault(require("../../../../assets/view.svg"));
|
29
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
29
30
|
var _excluded = ["value", "onChange", "disabled", "readOnly", "suffix", "handleFormat", "configOption", "proformmode"],
|
30
31
|
_excluded2 = ["title", "onOk"],
|
31
32
|
_excluded3 = ["rowKey", "columns"];
|
32
|
-
var defaultFormat =
|
33
|
-
return
|
33
|
+
var defaultFormat = rowData => {
|
34
|
+
return `${rowData.code}-${rowData.name}`;
|
34
35
|
};
|
35
|
-
var EnumSelect = /*#__PURE__*/(0, _react.forwardRef)(
|
36
|
+
var EnumSelect = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
|
36
37
|
var value = props.value,
|
37
38
|
onChange = props.onChange,
|
38
39
|
disabled = props.disabled,
|
@@ -87,10 +88,10 @@ var EnumSelect = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
87
88
|
_Form$useForm2 = (0, _slicedToArray2.default)(_Form$useForm, 1),
|
88
89
|
form = _Form$useForm2[0];
|
89
90
|
var _useRequestList = (0, _useRequestList2.default)(fetchOptions, {
|
90
|
-
conditionKey
|
91
|
-
withPagination
|
92
|
-
handleFormatDataSource
|
93
|
-
defaultParams
|
91
|
+
conditionKey,
|
92
|
+
withPagination,
|
93
|
+
handleFormatDataSource,
|
94
|
+
defaultParams
|
94
95
|
}, (0, _objectSpread2.default)({
|
95
96
|
ready: state.onOff
|
96
97
|
}, useRequestOptions)),
|
@@ -99,60 +100,57 @@ var EnumSelect = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
99
100
|
pagination = _useRequestList.pagination,
|
100
101
|
onSearch = _useRequestList.onSearch,
|
101
102
|
onReset = _useRequestList.onReset;
|
103
|
+
|
102
104
|
// 是否多选
|
103
105
|
var isMultiple = mode === 'checkbox';
|
104
|
-
var handleChangeValue =
|
106
|
+
var handleChangeValue = e => {
|
105
107
|
onChange(e.target.value);
|
106
108
|
};
|
109
|
+
|
107
110
|
// 清空表单项
|
108
|
-
var handleClearValue =
|
111
|
+
var handleClearValue = () => {
|
109
112
|
onChange('');
|
110
113
|
setState({
|
111
114
|
selectedRowKeys: [],
|
112
115
|
selectedRows: []
|
113
116
|
});
|
114
117
|
};
|
115
|
-
var handleClick =
|
118
|
+
var handleClick = () => {
|
116
119
|
if (!disabled) {
|
117
120
|
setState({
|
118
121
|
onOff: true
|
119
122
|
});
|
120
123
|
}
|
121
124
|
};
|
122
|
-
var handleClose =
|
125
|
+
var handleClose = () => {
|
123
126
|
setState({
|
124
127
|
onOff: false,
|
125
128
|
visible: false
|
126
129
|
});
|
127
130
|
form.resetFields();
|
128
131
|
};
|
129
|
-
var handleFinish =
|
132
|
+
var handleFinish = () => {
|
130
133
|
if (!state.selectedRows.length) {
|
131
134
|
_message2.default.error('请先勾选');
|
132
135
|
return false;
|
133
136
|
}
|
134
|
-
var formatterValueArr = state.selectedRows.map(
|
135
|
-
return handleFormat(row);
|
136
|
-
});
|
137
|
+
var formatterValueArr = state.selectedRows.map(row => handleFormat(row));
|
137
138
|
(formatterValueArr === null || formatterValueArr === void 0 ? void 0 : formatterValueArr.length) && onChange(formatterValueArr.join('、'));
|
138
|
-
onOk === null || onOk === void 0
|
139
|
+
onOk === null || onOk === void 0 || onOk(state.selectedRows);
|
139
140
|
handleClose();
|
140
141
|
};
|
141
|
-
var handleSearch =
|
142
|
+
var handleSearch = values => {
|
142
143
|
onSearch(values);
|
143
144
|
};
|
145
|
+
|
144
146
|
// 点击行进行勾选
|
145
|
-
var handleClickRow =
|
147
|
+
var handleClickRow = record => {
|
146
148
|
var selectedValue = record[rowKey];
|
147
|
-
var tempSelectedRows = (0,
|
148
|
-
var tempSelectedRowKeys = (0,
|
149
|
+
var tempSelectedRows = (0, _lodash.cloneDeep)(state.selectedRows);
|
150
|
+
var tempSelectedRowKeys = (0, _lodash.cloneDeep)(state.selectedRowKeys);
|
149
151
|
if (isMultiple) {
|
150
|
-
var rowIndex = tempSelectedRows.findIndex(
|
151
|
-
|
152
|
-
});
|
153
|
-
var rowKeyIndex = tempSelectedRowKeys.findIndex(function (item) {
|
154
|
-
return item === selectedValue;
|
155
|
-
});
|
152
|
+
var rowIndex = tempSelectedRows.findIndex(item => item[rowKey] === selectedValue);
|
153
|
+
var rowKeyIndex = tempSelectedRowKeys.findIndex(item => item === selectedValue);
|
156
154
|
if (rowKeyIndex > -1) {
|
157
155
|
tempSelectedRows.splice(rowIndex, 1);
|
158
156
|
tempSelectedRowKeys.splice(rowKeyIndex, 1);
|
@@ -172,29 +170,25 @@ var EnumSelect = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
172
170
|
var rowSelection = {
|
173
171
|
type: mode,
|
174
172
|
selectedRowKeys: state.selectedRowKeys,
|
175
|
-
onChange:
|
173
|
+
onChange: (rowKeys, rows) => {
|
176
174
|
setState({
|
177
175
|
selectedRowKeys: rowKeys,
|
178
176
|
selectedRows: rows
|
179
177
|
});
|
180
178
|
},
|
181
|
-
getCheckboxProps:
|
182
|
-
|
183
|
-
|
184
|
-
};
|
185
|
-
}
|
179
|
+
getCheckboxProps: () => ({
|
180
|
+
disabled: false
|
181
|
+
})
|
186
182
|
};
|
187
|
-
(0, _react.useEffect)(
|
188
|
-
if (defaultSelectedRows
|
183
|
+
(0, _react.useEffect)(() => {
|
184
|
+
if (defaultSelectedRows !== null && defaultSelectedRows !== void 0 && defaultSelectedRows.length) {
|
189
185
|
setState({
|
190
|
-
selectedRowKeys: defaultSelectedRows.map(
|
191
|
-
return item[rowKey];
|
192
|
-
}),
|
186
|
+
selectedRowKeys: defaultSelectedRows.map(item => item[rowKey]),
|
193
187
|
selectedRows: defaultSelectedRows
|
194
188
|
});
|
195
189
|
}
|
196
190
|
}, [defaultSelectedRows]);
|
197
|
-
(0, _react.useEffect)(
|
191
|
+
(0, _react.useEffect)(() => {
|
198
192
|
if (state.onOff) {
|
199
193
|
onReset();
|
200
194
|
var nextState = {
|
@@ -207,41 +201,41 @@ var EnumSelect = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
207
201
|
setState(nextState);
|
208
202
|
}
|
209
203
|
}, [state.onOff]);
|
210
|
-
var defaultSuffix = (0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
211
|
-
children: [value && !disabled && (0, _jsxRuntime.jsx)("span", {
|
204
|
+
var defaultSuffix = /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
205
|
+
children: [value && !disabled && /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
212
206
|
className: "close-icon",
|
213
|
-
children: (0, _jsxRuntime.jsx)(_icons.CloseOutlined, {
|
207
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.CloseOutlined, {
|
214
208
|
onClick: handleClearValue
|
215
209
|
})
|
216
|
-
}), (0, _jsxRuntime.jsx)(_reactSvg.ReactSVG, {
|
210
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactSvg.ReactSVG, {
|
217
211
|
className: "search",
|
218
212
|
wrapper: "span",
|
219
213
|
src: _view.default,
|
220
214
|
onClick: handleClick
|
221
215
|
})]
|
222
216
|
});
|
223
|
-
var forceSuffixRender =
|
217
|
+
var forceSuffixRender = () => {
|
224
218
|
if (isView) {
|
225
219
|
return;
|
226
220
|
}
|
227
221
|
if (suffix) {
|
228
|
-
return (0, _jsxRuntime.jsx)("div", {
|
222
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
229
223
|
onClick: handleClick,
|
230
224
|
children: suffix
|
231
225
|
});
|
232
226
|
}
|
233
227
|
return defaultSuffix;
|
234
228
|
};
|
235
|
-
return (0, _jsxRuntime.jsxs)("div", {
|
229
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
236
230
|
className: "pro-enum-select",
|
237
|
-
children: [(0, _jsxRuntime.jsx)(_InputWithSuffix.default, (0, _objectSpread2.default)({
|
231
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_InputWithSuffix.default, (0, _objectSpread2.default)({
|
238
232
|
value: value,
|
239
233
|
readOnly: readOnly,
|
240
234
|
onClick: readOnly ? handleClick : undefined,
|
241
235
|
onChange: handleChangeValue,
|
242
236
|
disabled: disabled,
|
243
237
|
suffix: forceSuffixRender()
|
244
|
-
}, restInputProps)), state.onOff && (0, _jsxRuntime.jsxs)(_modal.default, (0, _objectSpread2.default)((0, _objectSpread2.default)({
|
238
|
+
}, restInputProps)), state.onOff && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_modal.default, (0, _objectSpread2.default)((0, _objectSpread2.default)({
|
245
239
|
className: "pro-enum-select-modal",
|
246
240
|
title: title,
|
247
241
|
width: "50%",
|
@@ -249,18 +243,16 @@ var EnumSelect = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
249
243
|
onCancel: handleClose,
|
250
244
|
visible: state.visible
|
251
245
|
}, restModalProps), {}, {
|
252
|
-
children: [(0, _jsxRuntime.jsx)(_ProForm.default, {
|
246
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_ProForm.default, {
|
253
247
|
className: "pro-enum-select-Modal-form",
|
254
248
|
form: form,
|
255
249
|
columns: conditionColumns,
|
256
250
|
onFinish: handleSearch,
|
257
251
|
footer: (conditionColumns === null || conditionColumns === void 0 ? void 0 : conditionColumns.length) > 1
|
258
|
-
}), (0, _jsxRuntime.jsx)(_table.default, (0, _objectSpread2.default)({
|
259
|
-
onRow:
|
252
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_table.default, (0, _objectSpread2.default)({
|
253
|
+
onRow: record => {
|
260
254
|
return {
|
261
|
-
onClick:
|
262
|
-
return handleClickRow(record);
|
263
|
-
}
|
255
|
+
onClick: () => handleClickRow(record)
|
264
256
|
};
|
265
257
|
},
|
266
258
|
rowKey: rowKey,
|
@@ -5,27 +5,27 @@ Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
6
6
|
});
|
7
7
|
exports.default = void 0;
|
8
|
-
require("antd/es/input-number/style");
|
9
|
-
var _inputNumber = _interopRequireDefault(require("antd/es/input-number"));
|
10
8
|
require("antd/es/input/style");
|
11
9
|
var _input = _interopRequireDefault(require("antd/es/input"));
|
10
|
+
require("antd/es/input-number/style");
|
11
|
+
var _inputNumber = _interopRequireDefault(require("antd/es/input-number"));
|
12
12
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
13
13
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
14
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
15
14
|
var _ahooks = require("ahooks");
|
16
15
|
var _classnames = _interopRequireDefault(require("classnames"));
|
16
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
17
17
|
/* eslint-disable @typescript-eslint/no-shadow */
|
18
18
|
/* eslint-disable no-param-reassign */
|
19
19
|
|
20
20
|
var positiveInteger = {
|
21
|
-
formatter:
|
21
|
+
formatter: value => {
|
22
22
|
return value.replace(/[^0-9]/g, '');
|
23
23
|
},
|
24
|
-
parser:
|
24
|
+
parser: value => {
|
25
25
|
return value.replace(/[^0-9]/g, '');
|
26
26
|
}
|
27
27
|
};
|
28
|
-
var InputRange =
|
28
|
+
var InputRange = _ref => {
|
29
29
|
var _ref$value = _ref.value,
|
30
30
|
value = _ref$value === void 0 ? {} : _ref$value,
|
31
31
|
onChange = _ref.onChange,
|
@@ -46,12 +46,12 @@ var InputRange = function InputRange(_ref) {
|
|
46
46
|
setState = _useSetState2[1];
|
47
47
|
var range = state.range,
|
48
48
|
positiveIntegerpValues = state.positiveIntegerpValues;
|
49
|
-
var triggerChange =
|
50
|
-
onChange === null || onChange === void 0
|
49
|
+
var triggerChange = changedValue => {
|
50
|
+
onChange === null || onChange === void 0 || onChange((0, _objectSpread2.default)((0, _objectSpread2.default)({}, value), changedValue));
|
51
51
|
};
|
52
|
-
var onUpdate =
|
52
|
+
var onUpdate = () => {
|
53
53
|
setState({
|
54
|
-
range
|
54
|
+
range
|
55
55
|
});
|
56
56
|
triggerChange((0, _objectSpread2.default)({}, value));
|
57
57
|
};
|
@@ -59,10 +59,10 @@ var InputRange = function InputRange(_ref) {
|
|
59
59
|
'site-input-split': true,
|
60
60
|
'site-input-split-disabled': !!disabled
|
61
61
|
});
|
62
|
-
return (0, _jsxRuntime.jsxs)(_input.default.Group, {
|
62
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_input.default.Group, {
|
63
63
|
compact: true,
|
64
64
|
className: "site-input-group-wrapper",
|
65
|
-
children: [(0, _jsxRuntime.jsx)(_inputNumber.default, (0, _objectSpread2.default)((0, _objectSpread2.default)({
|
65
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_inputNumber.default, (0, _objectSpread2.default)((0, _objectSpread2.default)({
|
66
66
|
className: "site-input-left",
|
67
67
|
style: {
|
68
68
|
textAlign: 'center'
|
@@ -73,12 +73,12 @@ var InputRange = function InputRange(_ref) {
|
|
73
73
|
max: (value === null || value === void 0 ? void 0 : value.max) || max,
|
74
74
|
precision: precision,
|
75
75
|
disabled: disabled,
|
76
|
-
onChange:
|
76
|
+
onChange: e => {
|
77
77
|
value.min = e;
|
78
78
|
range.min = e;
|
79
79
|
onUpdate();
|
80
80
|
}
|
81
|
-
}, group === null || group === void 0 ? void 0 : group[0]), positiveIntegerpValues)), (0, _jsxRuntime.jsx)(_input.default, {
|
81
|
+
}, group === null || group === void 0 ? void 0 : group[0]), positiveIntegerpValues)), /*#__PURE__*/(0, _jsxRuntime.jsx)(_input.default, {
|
82
82
|
className: cls,
|
83
83
|
style: {
|
84
84
|
width: 40,
|
@@ -87,7 +87,7 @@ var InputRange = function InputRange(_ref) {
|
|
87
87
|
},
|
88
88
|
placeholder: "~",
|
89
89
|
disabled: true
|
90
|
-
}), (0, _jsxRuntime.jsx)(_inputNumber.default, (0, _objectSpread2.default)((0, _objectSpread2.default)({
|
90
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_inputNumber.default, (0, _objectSpread2.default)((0, _objectSpread2.default)({
|
91
91
|
className: "site-input-right",
|
92
92
|
style: {
|
93
93
|
textAlign: 'center'
|
@@ -98,7 +98,7 @@ var InputRange = function InputRange(_ref) {
|
|
98
98
|
max: max,
|
99
99
|
precision: precision,
|
100
100
|
placeholder: "\u8BF7\u8F93\u5165",
|
101
|
-
onChange:
|
101
|
+
onChange: e => {
|
102
102
|
value.max = e;
|
103
103
|
onUpdate();
|
104
104
|
}
|
@@ -11,7 +11,7 @@ var _input = _interopRequireDefault(require("antd/es/input"));
|
|
11
11
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
12
12
|
var _jsxRuntime = require("react/jsx-runtime");
|
13
13
|
var _excluded = ["value", "onChange", "suffix", "formItemProps", "groupStyle", "InputStyle", "suffixWidth"];
|
14
|
-
var InputWithSuffix =
|
14
|
+
var InputWithSuffix = props => {
|
15
15
|
var value = props.value,
|
16
16
|
onChange = props.onChange,
|
17
17
|
_props$suffix = props.suffix,
|
@@ -24,18 +24,18 @@ var InputWithSuffix = function InputWithSuffix(props) {
|
|
24
24
|
suffixWidth = _props$suffixWidth === void 0 ? false : _props$suffixWidth,
|
25
25
|
restProps = (0, _objectWithoutProperties2.default)(props, _excluded);
|
26
26
|
var localSuffixWidht = suffixWidth || '36px';
|
27
|
-
return (0, _jsxRuntime.jsxs)(_input.default.Group, {
|
27
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_input.default.Group, {
|
28
28
|
compact: true,
|
29
29
|
style: {
|
30
30
|
display: 'flex'
|
31
31
|
},
|
32
|
-
children: [(0, _jsxRuntime.jsx)(_input.default, (0, _objectSpread2.default)((0, _objectSpread2.default)({
|
32
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_input.default, (0, _objectSpread2.default)((0, _objectSpread2.default)({
|
33
33
|
value: value,
|
34
34
|
style: {
|
35
35
|
flex: '1'
|
36
36
|
},
|
37
37
|
onChange: onChange
|
38
|
-
}, restProps), formItemProps)), suffix ? (0, _jsxRuntime.jsx)("div", {
|
38
|
+
}, restProps), formItemProps)), suffix ? /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
39
39
|
style: {
|
40
40
|
width: localSuffixWidht,
|
41
41
|
cursor: 'pointer',
|