@zat-design/sisyphus-react 4.2.0-beta.1 → 4.2.0-beta.3
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/dist/index.esm.css +1 -1
- package/dist/less.esm.css +1 -1
- package/es/FormsProvider/index.js +7 -7
- package/es/ProAction/components/CheckModalContent/index.js +5 -5
- package/es/ProAction/index.js +98 -164
- package/es/ProConfigProvider/index.js +71 -60
- package/es/ProDownload/index.js +97 -184
- package/es/ProDownload/utils.js +98 -149
- package/es/ProDrawerForm/components/ProDrawer/index.js +100 -177
- package/es/ProDrawerForm/components/ProModal/index.js +73 -140
- package/es/ProDrawerForm/index.js +36 -54
- package/es/ProDrawerForm/utils/index.js +1 -1
- package/es/ProEditLabel/components/RenderProForm.js +29 -35
- package/es/ProEditLabel/index.js +97 -167
- package/es/ProEditLabel/utils/index.js +1 -1
- package/es/ProEditTable/components/ActionButton/index.js +61 -56
- package/es/ProEditTable/components/RcTable/BaseTable.js +51 -65
- package/es/ProEditTable/components/RcTable/DraggableTable.js +112 -106
- package/es/ProEditTable/components/RenderField/ListChangedWrapper.js +107 -98
- package/es/ProEditTable/components/RenderField/index.js +465 -598
- package/es/ProEditTable/components/RenderToolbar/index.js +71 -90
- package/es/ProEditTable/components/Summary/index.js +40 -35
- package/es/ProEditTable/components/Validator/index.js +7 -6
- package/es/ProEditTable/index.js +256 -307
- package/es/ProEditTable/utils/config.js +158 -184
- package/es/ProEditTable/utils/diffOriginal.js +45 -37
- package/es/ProEditTable/utils/getDefaultProps.js +23 -19
- package/es/ProEditTable/utils/index.js +189 -215
- package/es/ProEditTable/utils/tools.js +213 -344
- package/es/ProEditTable/utils/transform.js +10 -14
- package/es/ProEditTable/utils/useEditTableError.js +18 -29
- package/es/ProEditTable/utils/useShouldUpdateForTable.js +55 -63
- package/es/ProEnum/components/Group.js +17 -25
- package/es/ProEnum/components/Tag.js +12 -19
- package/es/ProEnum/hooks/useEnum.js +54 -72
- package/es/ProEnum/hooks/useEnumRequest.js +226 -341
- package/es/ProEnum/hooks/useFrequentEnumRequest.js +49 -69
- package/es/ProEnum/index.js +127 -137
- package/es/ProEnum/utils/eventCenter.js +2 -2
- package/es/ProEnum/utils/frequentEnum.js +55 -74
- package/es/ProEnum/utils/getEnumLabel.js +29 -29
- package/es/ProEnum/utils/index.js +107 -239
- package/es/ProForm/components/Container.js +10 -8
- package/es/ProForm/components/FormFooter/index.js +42 -44
- package/es/ProForm/components/base/Checkbox/index.js +29 -34
- package/es/ProForm/components/base/DatePicker/index.js +41 -39
- package/es/ProForm/components/base/DatePicker/useDateLimit.js +2 -11
- package/es/ProForm/components/base/Input/index.js +54 -55
- package/es/ProForm/components/base/InputNumber/index.js +115 -136
- package/es/ProForm/components/base/Radio/index.js +26 -32
- package/es/ProForm/components/base/RangePicker/index.js +63 -57
- package/es/ProForm/components/base/RangePicker/useDateRange.js +11 -19
- package/es/ProForm/components/base/Select/index.js +44 -50
- package/es/ProForm/components/base/Switch/index.js +21 -24
- package/es/ProForm/components/base/SwitchCheckbox/index.js +26 -29
- package/es/ProForm/components/base/TextArea/index.js +25 -29
- package/es/ProForm/components/base/TimePicker/index.js +24 -28
- package/es/ProForm/components/combination/Container/index.js +34 -33
- package/es/ProForm/components/combination/FormList/components/ActionButton.js +181 -207
- package/es/ProForm/components/combination/FormList/components/BlockFields.js +30 -29
- package/es/ProForm/components/combination/FormList/components/BlockTitle.js +12 -10
- package/es/ProForm/components/combination/FormList/components/Empty.js +32 -60
- package/es/ProForm/components/combination/FormList/components/LineFields.js +42 -42
- package/es/ProForm/components/combination/FormList/components/ToolbarButton.js +98 -120
- package/es/ProForm/components/combination/FormList/index.js +78 -70
- package/es/ProForm/components/combination/FormList/utils.js +13 -13
- package/es/ProForm/components/combination/Group/component/AddonWrapper/index.js +6 -4
- package/es/ProForm/components/combination/Group/component/ComRender.js +77 -69
- package/es/ProForm/components/combination/Group/component/FlexibleGroup.js +101 -105
- package/es/ProForm/components/combination/Group/hooks/index.js +101 -99
- package/es/ProForm/components/combination/Group/index.js +83 -80
- package/es/ProForm/components/combination/Group/utils/index.d.ts +11 -11
- package/es/ProForm/components/combination/Group/utils/index.js +155 -163
- package/es/ProForm/components/combination/ProCascader/index.js +145 -169
- package/es/ProForm/components/combination/ProCascader/utils/index.js +15 -18
- package/es/ProForm/components/combination/ProModalSelect/hooks/useRequestList.js +65 -90
- package/es/ProForm/components/combination/ProModalSelect/index.js +384 -502
- package/es/ProForm/components/combination/ProModalSelect/utils/index.js +11 -11
- package/es/ProForm/components/combination/ProNumberRange/index.js +64 -72
- package/es/ProForm/components/combination/ProRangeLimit/index.js +82 -109
- package/es/ProForm/components/combination/ProTimeLimit/hooks/useControlled.js +10 -18
- package/es/ProForm/components/combination/ProTimeLimit/index.js +78 -88
- package/es/ProForm/components/render/ChangedWrapper.js +71 -64
- package/es/ProForm/components/render/ConfirmWrapper.js +52 -109
- package/es/ProForm/components/render/CustomComponentViewWrapper.js +42 -45
- package/es/ProForm/components/render/Render.js +202 -220
- package/es/ProForm/components/render/RenderFields.js +99 -93
- package/es/ProForm/components/render/propsType.js +1 -1
- package/es/ProForm/index.js +128 -143
- package/es/ProForm/propsType.js +1 -1
- package/es/ProForm/utils/diffOriginal.js +39 -33
- package/es/ProForm/utils/getDefaultProps.js +24 -19
- package/es/ProForm/utils/index.js +115 -132
- package/es/ProForm/utils/processDependencies.js +7 -3
- package/es/ProForm/utils/rulesCreator.js +28 -36
- package/es/ProForm/utils/transformNames.js +18 -19
- package/es/ProForm/utils/transformValue.js +16 -25
- package/es/ProForm/utils/useDeepCompareMemo.js +7 -7
- package/es/ProForm/utils/useFieldProps.js +3 -3
- package/es/ProForm/utils/useForm.js +106 -190
- package/es/ProForm/utils/useRules.js +23 -20
- package/es/ProForm/utils/useShouldUpdate.js +107 -110
- package/es/ProForm/utils/useWatch.js +30 -37
- package/es/ProForm/utils/valueType.js +122 -143
- package/es/ProIcon/config/index.js +3 -3
- package/es/ProIcon/index.js +152 -167
- package/es/ProIcon/utils/index.js +28 -27
- package/es/ProLayout/components/Layout/Header/index.js +28 -36
- package/es/ProLayout/components/Layout/Icon/Icon.js +10 -9
- package/es/ProLayout/components/Layout/Menu/FoldMenu/index.js +61 -55
- package/es/ProLayout/components/Layout/Menu/OpenMenu/index.js +57 -66
- package/es/ProLayout/components/Layout/Menu/SideMenu/index.js +18 -14
- package/es/ProLayout/components/Layout/Menu/index.js +30 -40
- package/es/ProLayout/components/Layout/Notice/index.js +6 -4
- package/es/ProLayout/components/ProCollapse/index.js +63 -68
- package/es/ProLayout/components/ProFooter/index.js +16 -22
- package/es/ProLayout/components/ProHeader/components/Copy/index.js +6 -3
- package/es/ProLayout/components/ProHeader/components/ProBackBtn/index.js +5 -5
- package/es/ProLayout/components/ProHeader/index.js +132 -149
- package/es/ProLayout/components/ProHeader/utils/index.js +5 -5
- package/es/ProLayout/components/TabsManager/components/TabContextMenu.js +20 -31
- package/es/ProLayout/components/TabsManager/components/TabItem.js +18 -18
- package/es/ProLayout/components/TabsManager/components/TabsContext.js +1 -1
- package/es/ProLayout/components/TabsManager/components/TabsHeader.js +9 -17
- package/es/ProLayout/components/TabsManager/hooks/useActiveTab.js +2 -2
- package/es/ProLayout/components/TabsManager/hooks/useProLayoutTabs.js +1 -1
- package/es/ProLayout/components/TabsManager/hooks/useTabsCache.js +15 -15
- package/es/ProLayout/components/TabsManager/hooks/useTabsState.js +103 -119
- package/es/ProLayout/components/TabsManager/index.js +51 -60
- package/es/ProLayout/components/TabsManager/propTypes.js +1 -1
- package/es/ProLayout/components/TabsManager/utils/index.js +20 -21
- package/es/ProLayout/index.js +84 -98
- package/es/ProLayout/propTypes.js +2 -4
- package/es/ProLayout/utils/index.js +66 -85
- package/es/ProSelect/components/AdaptiveTooltip.js +8 -16
- package/es/ProSelect/index.js +168 -186
- package/es/ProSelect/utils/index.js +49 -77
- package/es/ProStep/components/Anchor/index.js +21 -19
- package/es/ProStep/components/Item/index.js +32 -39
- package/es/ProStep/components/Listener/index.js +36 -60
- package/es/ProStep/components/Step/index.js +26 -40
- package/es/ProStep/index.js +104 -192
- package/es/ProStep/utils/index.js +20 -23
- package/es/ProStepTab/index.js +117 -235
- package/es/ProTable/components/FormatColumn/index.js +246 -219
- package/es/ProTable/components/RcTable/components/BaseTable/index.js +21 -25
- package/es/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/index.js +111 -143
- package/es/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/utils/index.js +52 -60
- package/es/ProTable/components/RcTable/components/DraggableTable/index.js +28 -30
- package/es/ProTable/components/RenderColumn/index.js +58 -66
- package/es/ProTable/components/RenderEmptyText/index.js +7 -7
- package/es/ProTable/components/RenderFooter/index.js +10 -8
- package/es/ProTable/components/RenderSummary/index.js +31 -30
- package/es/ProTable/components/RenderTableHeader/index.js +19 -17
- package/es/ProTable/components/RenderTabs/index.js +31 -45
- package/es/ProTable/components/TableResizable/index.js +33 -50
- package/es/ProTable/components/TooltipTitle/index.js +10 -7
- package/es/ProTable/hooks/useAntdTable.js +214 -267
- package/es/ProTable/index.js +192 -234
- package/es/ProTable/utils/index.js +23 -31
- package/es/ProTabs/components/Card/index.js +10 -8
- package/es/ProTabs/index.js +51 -61
- package/es/ProThemeTools/component/ProTools/index.js +65 -71
- package/es/ProThemeTools/context/ThemeContext.js +97 -93
- package/es/ProThemeTools/index.js +79 -91
- package/es/ProThemeTools/utils/index.js +49 -71
- package/es/ProTooltip/index.js +110 -120
- package/es/ProTree/components/AdaptiveTooltip.js +3 -2
- package/es/ProTree/components/CloseIcon.js +3 -7
- package/es/ProTree/components/List.js +21 -27
- package/es/ProTree/components/ProTree.js +162 -204
- package/es/ProTree/components/ProTreeSelect/index.js +250 -265
- package/es/ProTree/components/SearchTitle.js +18 -17
- package/es/ProTree/components/Tree.js +109 -148
- package/es/ProTree/index.js +15 -15
- package/es/ProTree/utils.js +48 -83
- package/es/ProTreeModal/components/Cascader.js +28 -41
- package/es/ProTreeModal/components/CloseIcon.js +3 -7
- package/es/ProTreeModal/components/List.js +90 -96
- package/es/ProTreeModal/components/SearchTitle.js +9 -8
- package/es/ProTreeModal/components/SortableItem.js +40 -37
- package/es/ProTreeModal/components/Tree.js +53 -69
- package/es/ProTreeModal/components/Trigger.js +55 -67
- package/es/ProTreeModal/index.js +203 -217
- package/es/ProTreeModal/utils.js +61 -101
- package/es/ProUpload/components/ButtonRender.js +31 -58
- package/es/ProUpload/components/DragRender.js +41 -42
- package/es/ProUpload/components/DraggableUploadListItem.js +19 -21
- package/es/ProUpload/components/Example.js +14 -25
- package/es/ProUpload/components/FileItem.js +39 -38
- package/es/ProUpload/components/ImageRender.js +59 -100
- package/es/ProUpload/index.js +129 -131
- package/es/ProUpload/uitls.js +3 -3
- package/es/ProUtils/utils/index.js +6 -10
- package/es/ProViewer/index.js +66 -102
- package/es/ProWaterMark/index.js +8 -10
- package/es/locale/index.js +5 -5
- package/es/tokens.js +1 -1
- package/es/utils/index.js +11 -20
- package/package.json +10 -10
- package/.claudeignore +0 -40
- package/lib/FormsProvider/index.d.ts +0 -18
- package/lib/FormsProvider/index.js +0 -44
- package/lib/ProAction/components/CheckModalContent/index.css +0 -22
- package/lib/ProAction/components/CheckModalContent/index.d.ts +0 -8
- package/lib/ProAction/components/CheckModalContent/index.js +0 -34
- package/lib/ProAction/components/CheckModalContent/index.less +0 -28
- package/lib/ProAction/index.d.ts +0 -7
- package/lib/ProAction/index.js +0 -232
- package/lib/ProAction/index.less +0 -8
- package/lib/ProAction/propsType.d.ts +0 -45
- package/lib/ProAction/propsType.js +0 -5
- package/lib/ProConfigProvider/index.d.ts +0 -9
- package/lib/ProConfigProvider/index.js +0 -158
- package/lib/ProConfigProvider/propsType.d.ts +0 -55
- package/lib/ProConfigProvider/propsType.js +0 -5
- package/lib/ProDownload/index.d.ts +0 -6
- package/lib/ProDownload/index.js +0 -208
- package/lib/ProDownload/propsType.d.ts +0 -71
- package/lib/ProDownload/propsType.js +0 -5
- package/lib/ProDownload/style/index.less +0 -9
- package/lib/ProDownload/utils.d.ts +0 -60
- package/lib/ProDownload/utils.js +0 -213
- package/lib/ProDrawerForm/components/ProDrawer/index.d.ts +0 -7
- package/lib/ProDrawerForm/components/ProDrawer/index.js +0 -287
- package/lib/ProDrawerForm/components/ProModal/index.d.ts +0 -7
- package/lib/ProDrawerForm/components/ProModal/index.js +0 -222
- package/lib/ProDrawerForm/components/index.d.ts +0 -2
- package/lib/ProDrawerForm/components/index.js +0 -20
- package/lib/ProDrawerForm/index.d.ts +0 -6
- package/lib/ProDrawerForm/index.js +0 -106
- package/lib/ProDrawerForm/propsType.d.ts +0 -100
- package/lib/ProDrawerForm/propsType.js +0 -5
- package/lib/ProDrawerForm/style/index.less +0 -172
- package/lib/ProDrawerForm/utils/index.d.ts +0 -6
- package/lib/ProDrawerForm/utils/index.js +0 -23
- package/lib/ProEditLabel/components/RenderProForm.d.ts +0 -4
- package/lib/ProEditLabel/components/RenderProForm.js +0 -87
- package/lib/ProEditLabel/index.d.ts +0 -4
- package/lib/ProEditLabel/index.js +0 -361
- package/lib/ProEditLabel/propsType.d.ts +0 -163
- package/lib/ProEditLabel/propsType.js +0 -5
- package/lib/ProEditLabel/style/index.less +0 -135
- package/lib/ProEditLabel/utils/index.d.ts +0 -7
- package/lib/ProEditLabel/utils/index.js +0 -24
- package/lib/ProEditTable/components/ActionButton/index.d.ts +0 -2
- package/lib/ProEditTable/components/ActionButton/index.js +0 -189
- package/lib/ProEditTable/components/RcTable/BaseTable.d.ts +0 -6
- package/lib/ProEditTable/components/RcTable/BaseTable.js +0 -125
- package/lib/ProEditTable/components/RcTable/DraggableTable.d.ts +0 -7
- package/lib/ProEditTable/components/RcTable/DraggableTable.js +0 -219
- package/lib/ProEditTable/components/RcTable/index.d.ts +0 -4
- package/lib/ProEditTable/components/RcTable/index.js +0 -20
- package/lib/ProEditTable/components/RenderField/ListChangedWrapper.d.ts +0 -17
- package/lib/ProEditTable/components/RenderField/ListChangedWrapper.js +0 -244
- package/lib/ProEditTable/components/RenderField/index.d.ts +0 -3
- package/lib/ProEditTable/components/RenderField/index.js +0 -1169
- package/lib/ProEditTable/components/RenderToolbar/index.d.ts +0 -2
- package/lib/ProEditTable/components/RenderToolbar/index.js +0 -148
- package/lib/ProEditTable/components/Summary/index.d.ts +0 -12
- package/lib/ProEditTable/components/Summary/index.js +0 -89
- package/lib/ProEditTable/components/Validator/index.d.ts +0 -10
- package/lib/ProEditTable/components/Validator/index.js +0 -34
- package/lib/ProEditTable/components/index.d.ts +0 -5
- package/lib/ProEditTable/components/index.js +0 -41
- package/lib/ProEditTable/index.d.ts +0 -4
- package/lib/ProEditTable/index.js +0 -535
- package/lib/ProEditTable/propsType.d.ts +0 -439
- package/lib/ProEditTable/propsType.js +0 -5
- package/lib/ProEditTable/style/index.less +0 -448
- package/lib/ProEditTable/utils/config.d.ts +0 -25
- package/lib/ProEditTable/utils/config.js +0 -293
- package/lib/ProEditTable/utils/diffOriginal.d.ts +0 -22
- package/lib/ProEditTable/utils/diffOriginal.js +0 -142
- package/lib/ProEditTable/utils/getDefaultProps.d.ts +0 -1
- package/lib/ProEditTable/utils/getDefaultProps.js +0 -39
- package/lib/ProEditTable/utils/index.d.ts +0 -9
- package/lib/ProEditTable/utils/index.js +0 -473
- package/lib/ProEditTable/utils/tools.d.ts +0 -93
- package/lib/ProEditTable/utils/tools.js +0 -572
- package/lib/ProEditTable/utils/transform.d.ts +0 -13
- package/lib/ProEditTable/utils/transform.js +0 -50
- package/lib/ProEditTable/utils/useEditTableError.d.ts +0 -7
- package/lib/ProEditTable/utils/useEditTableError.js +0 -108
- package/lib/ProEditTable/utils/useShouldUpdateForTable.d.ts +0 -16
- package/lib/ProEditTable/utils/useShouldUpdateForTable.js +0 -174
- package/lib/ProEnum/components/Group.d.ts +0 -10
- package/lib/ProEnum/components/Group.js +0 -76
- package/lib/ProEnum/components/Tag.d.ts +0 -7
- package/lib/ProEnum/components/Tag.js +0 -52
- package/lib/ProEnum/hooks/useEnum.d.ts +0 -29
- package/lib/ProEnum/hooks/useEnum.js +0 -282
- package/lib/ProEnum/hooks/useEnumRequest.d.ts +0 -4
- package/lib/ProEnum/hooks/useEnumRequest.js +0 -422
- package/lib/ProEnum/hooks/useFrequentEnumRequest.d.ts +0 -14
- package/lib/ProEnum/hooks/useFrequentEnumRequest.js +0 -91
- package/lib/ProEnum/index.d.ts +0 -8
- package/lib/ProEnum/index.js +0 -304
- package/lib/ProEnum/propsType.d.ts +0 -310
- package/lib/ProEnum/propsType.js +0 -5
- package/lib/ProEnum/style/index.less +0 -109
- package/lib/ProEnum/utils/eventCenter.d.ts +0 -1
- package/lib/ProEnum/utils/eventCenter.js +0 -33
- package/lib/ProEnum/utils/frequentEnum.d.ts +0 -40
- package/lib/ProEnum/utils/frequentEnum.js +0 -165
- package/lib/ProEnum/utils/getEnumLabel.d.ts +0 -2
- package/lib/ProEnum/utils/getEnumLabel.js +0 -83
- package/lib/ProEnum/utils/index.d.ts +0 -69
- package/lib/ProEnum/utils/index.js +0 -406
- package/lib/ProForm/components/Container.d.ts +0 -9
- package/lib/ProForm/components/Container.js +0 -40
- package/lib/ProForm/components/FormFooter/index.d.ts +0 -5
- package/lib/ProForm/components/FormFooter/index.js +0 -98
- package/lib/ProForm/components/FormFooter/propsType.d.ts +0 -22
- package/lib/ProForm/components/FormFooter/propsType.js +0 -5
- package/lib/ProForm/components/base/Checkbox/index.d.ts +0 -14
- package/lib/ProForm/components/base/Checkbox/index.js +0 -88
- package/lib/ProForm/components/base/DatePicker/index.d.ts +0 -11
- package/lib/ProForm/components/base/DatePicker/index.js +0 -110
- package/lib/ProForm/components/base/DatePicker/useDateLimit.d.ts +0 -3
- package/lib/ProForm/components/base/DatePicker/useDateLimit.js +0 -23
- package/lib/ProForm/components/base/Input/index.d.ts +0 -3
- package/lib/ProForm/components/base/Input/index.js +0 -137
- package/lib/ProForm/components/base/Input/propsType.d.ts +0 -21
- package/lib/ProForm/components/base/Input/propsType.js +0 -5
- package/lib/ProForm/components/base/InputNumber/index.d.ts +0 -11
- package/lib/ProForm/components/base/InputNumber/index.js +0 -317
- package/lib/ProForm/components/base/Radio/index.d.ts +0 -15
- package/lib/ProForm/components/base/Radio/index.js +0 -78
- package/lib/ProForm/components/base/RangePicker/index.d.ts +0 -19
- package/lib/ProForm/components/base/RangePicker/index.js +0 -201
- package/lib/ProForm/components/base/RangePicker/useDateRange.d.ts +0 -15
- package/lib/ProForm/components/base/RangePicker/useDateRange.js +0 -45
- package/lib/ProForm/components/base/Select/index.d.ts +0 -11
- package/lib/ProForm/components/base/Select/index.js +0 -122
- package/lib/ProForm/components/base/Switch/index.d.ts +0 -10
- package/lib/ProForm/components/base/Switch/index.js +0 -53
- package/lib/ProForm/components/base/SwitchCheckbox/index.d.ts +0 -10
- package/lib/ProForm/components/base/SwitchCheckbox/index.js +0 -78
- package/lib/ProForm/components/base/SwitchCheckbox/style/index.less +0 -13
- package/lib/ProForm/components/base/TextArea/index.d.ts +0 -11
- package/lib/ProForm/components/base/TextArea/index.js +0 -63
- package/lib/ProForm/components/base/TextArea/index.less +0 -28
- package/lib/ProForm/components/base/TimePicker/index.d.ts +0 -13
- package/lib/ProForm/components/base/TimePicker/index.js +0 -56
- package/lib/ProForm/components/base/TimePicker/style/index.less +0 -6
- package/lib/ProForm/components/combination/Container/index.d.ts +0 -4
- package/lib/ProForm/components/combination/Container/index.js +0 -79
- package/lib/ProForm/components/combination/Container/propsType.d.ts +0 -13
- package/lib/ProForm/components/combination/Container/propsType.js +0 -5
- package/lib/ProForm/components/combination/Container/style/index.less +0 -47
- package/lib/ProForm/components/combination/FormList/components/ActionButton.d.ts +0 -24
- package/lib/ProForm/components/combination/FormList/components/ActionButton.js +0 -378
- package/lib/ProForm/components/combination/FormList/components/BlockFields.d.ts +0 -23
- package/lib/ProForm/components/combination/FormList/components/BlockFields.js +0 -148
- package/lib/ProForm/components/combination/FormList/components/BlockTitle.d.ts +0 -13
- package/lib/ProForm/components/combination/FormList/components/BlockTitle.js +0 -36
- package/lib/ProForm/components/combination/FormList/components/Empty.d.ts +0 -13
- package/lib/ProForm/components/combination/FormList/components/Empty.js +0 -105
- package/lib/ProForm/components/combination/FormList/components/LineFields.d.ts +0 -20
- package/lib/ProForm/components/combination/FormList/components/LineFields.js +0 -108
- package/lib/ProForm/components/combination/FormList/components/ToolbarButton.d.ts +0 -12
- package/lib/ProForm/components/combination/FormList/components/ToolbarButton.js +0 -186
- package/lib/ProForm/components/combination/FormList/index.d.ts +0 -4
- package/lib/ProForm/components/combination/FormList/index.js +0 -204
- package/lib/ProForm/components/combination/FormList/propsType.d.ts +0 -69
- package/lib/ProForm/components/combination/FormList/propsType.js +0 -5
- package/lib/ProForm/components/combination/FormList/style/index.less +0 -175
- package/lib/ProForm/components/combination/FormList/utils.d.ts +0 -18
- package/lib/ProForm/components/combination/FormList/utils.js +0 -60
- package/lib/ProForm/components/combination/Group/component/AddonWrapper/index.d.ts +0 -9
- package/lib/ProForm/components/combination/Group/component/AddonWrapper/index.js +0 -26
- package/lib/ProForm/components/combination/Group/component/AddonWrapper/index.less +0 -10
- package/lib/ProForm/components/combination/Group/component/ComRender.d.ts +0 -28
- package/lib/ProForm/components/combination/Group/component/ComRender.js +0 -165
- package/lib/ProForm/components/combination/Group/component/FlexibleGroup.d.ts +0 -10
- package/lib/ProForm/components/combination/Group/component/FlexibleGroup.js +0 -414
- package/lib/ProForm/components/combination/Group/hooks/index.d.ts +0 -34
- package/lib/ProForm/components/combination/Group/hooks/index.js +0 -284
- package/lib/ProForm/components/combination/Group/index.d.ts +0 -9
- package/lib/ProForm/components/combination/Group/index.js +0 -202
- package/lib/ProForm/components/combination/Group/propsType.d.ts +0 -99
- package/lib/ProForm/components/combination/Group/propsType.js +0 -5
- package/lib/ProForm/components/combination/Group/style/index.less +0 -525
- package/lib/ProForm/components/combination/Group/utils/index.d.ts +0 -154
- package/lib/ProForm/components/combination/Group/utils/index.js +0 -444
- package/lib/ProForm/components/combination/ProCascader/index.d.ts +0 -4
- package/lib/ProForm/components/combination/ProCascader/index.js +0 -373
- package/lib/ProForm/components/combination/ProCascader/propsType.d.ts +0 -48
- package/lib/ProForm/components/combination/ProCascader/propsType.js +0 -5
- package/lib/ProForm/components/combination/ProCascader/style/index.less +0 -28
- package/lib/ProForm/components/combination/ProCascader/utils/index.d.ts +0 -14
- package/lib/ProForm/components/combination/ProCascader/utils/index.js +0 -43
- package/lib/ProForm/components/combination/ProModalSelect/hooks/useRequestList.d.ts +0 -33
- package/lib/ProForm/components/combination/ProModalSelect/hooks/useRequestList.js +0 -167
- package/lib/ProForm/components/combination/ProModalSelect/index.d.ts +0 -4
- package/lib/ProForm/components/combination/ProModalSelect/index.js +0 -885
- package/lib/ProForm/components/combination/ProModalSelect/propsType.d.ts +0 -106
- package/lib/ProForm/components/combination/ProModalSelect/propsType.js +0 -5
- package/lib/ProForm/components/combination/ProModalSelect/style/index.less +0 -182
- package/lib/ProForm/components/combination/ProModalSelect/utils/index.d.ts +0 -1
- package/lib/ProForm/components/combination/ProModalSelect/utils/index.js +0 -32
- package/lib/ProForm/components/combination/ProNumberRange/index.d.ts +0 -4
- package/lib/ProForm/components/combination/ProNumberRange/index.js +0 -270
- package/lib/ProForm/components/combination/ProNumberRange/propsType.d.ts +0 -85
- package/lib/ProForm/components/combination/ProNumberRange/propsType.js +0 -5
- package/lib/ProForm/components/combination/ProNumberRange/style/index.less +0 -50
- package/lib/ProForm/components/combination/ProRangeLimit/index.d.ts +0 -4
- package/lib/ProForm/components/combination/ProRangeLimit/index.js +0 -228
- package/lib/ProForm/components/combination/ProRangeLimit/propsType.d.ts +0 -23
- package/lib/ProForm/components/combination/ProRangeLimit/propsType.js +0 -5
- package/lib/ProForm/components/combination/ProTimeLimit/hooks/useControlled.d.ts +0 -9
- package/lib/ProForm/components/combination/ProTimeLimit/hooks/useControlled.js +0 -49
- package/lib/ProForm/components/combination/ProTimeLimit/index.d.ts +0 -33
- package/lib/ProForm/components/combination/ProTimeLimit/index.js +0 -189
- package/lib/ProForm/components/combination/ProTimeLimit/style/index.less +0 -99
- package/lib/ProForm/components/index.d.ts +0 -29
- package/lib/ProForm/components/index.js +0 -194
- package/lib/ProForm/components/render/ChangedWrapper.d.ts +0 -17
- package/lib/ProForm/components/render/ChangedWrapper.js +0 -152
- package/lib/ProForm/components/render/ConfirmWrapper.d.ts +0 -10
- package/lib/ProForm/components/render/ConfirmWrapper.js +0 -131
- package/lib/ProForm/components/render/CustomComponentViewWrapper.d.ts +0 -30
- package/lib/ProForm/components/render/CustomComponentViewWrapper.js +0 -127
- package/lib/ProForm/components/render/Render.d.ts +0 -4
- package/lib/ProForm/components/render/Render.js +0 -590
- package/lib/ProForm/components/render/RenderFields.d.ts +0 -26
- package/lib/ProForm/components/render/RenderFields.js +0 -265
- package/lib/ProForm/components/render/propsType.d.ts +0 -296
- package/lib/ProForm/components/render/propsType.js +0 -31
- package/lib/ProForm/index.d.ts +0 -6
- package/lib/ProForm/index.js +0 -334
- package/lib/ProForm/propsType.d.ts +0 -131
- package/lib/ProForm/propsType.js +0 -13
- package/lib/ProForm/style/index.less +0 -567
- package/lib/ProForm/utils/diffOriginal.d.ts +0 -10
- package/lib/ProForm/utils/diffOriginal.js +0 -129
- package/lib/ProForm/utils/getDefaultProps.d.ts +0 -1
- package/lib/ProForm/utils/getDefaultProps.js +0 -39
- package/lib/ProForm/utils/index.d.ts +0 -119
- package/lib/ProForm/utils/index.js +0 -544
- package/lib/ProForm/utils/processDependencies.d.ts +0 -29
- package/lib/ProForm/utils/processDependencies.js +0 -72
- package/lib/ProForm/utils/rulesCreator.d.ts +0 -7
- package/lib/ProForm/utils/rulesCreator.js +0 -96
- package/lib/ProForm/utils/transformNames.d.ts +0 -10
- package/lib/ProForm/utils/transformNames.js +0 -39
- package/lib/ProForm/utils/transformValue.d.ts +0 -6
- package/lib/ProForm/utils/transformValue.js +0 -73
- package/lib/ProForm/utils/useDeepCompareMemo.d.ts +0 -2
- package/lib/ProForm/utils/useDeepCompareMemo.js +0 -23
- package/lib/ProForm/utils/useFieldProps.d.ts +0 -4
- package/lib/ProForm/utils/useFieldProps.js +0 -13
- package/lib/ProForm/utils/useForm.d.ts +0 -22
- package/lib/ProForm/utils/useForm.js +0 -276
- package/lib/ProForm/utils/useRules.d.ts +0 -16
- package/lib/ProForm/utils/useRules.js +0 -86
- package/lib/ProForm/utils/useShouldUpdate.d.ts +0 -27
- package/lib/ProForm/utils/useShouldUpdate.js +0 -399
- package/lib/ProForm/utils/useWatch.d.ts +0 -12
- package/lib/ProForm/utils/useWatch.js +0 -196
- package/lib/ProForm/utils/valueType.d.ts +0 -70
- package/lib/ProForm/utils/valueType.js +0 -323
- package/lib/ProIcon/config/index.d.ts +0 -19
- package/lib/ProIcon/config/index.js +0 -281
- package/lib/ProIcon/index.d.ts +0 -4
- package/lib/ProIcon/index.js +0 -405
- package/lib/ProIcon/propsTypes.d.ts +0 -181
- package/lib/ProIcon/propsTypes.js +0 -5
- package/lib/ProIcon/style/index.less +0 -27
- package/lib/ProIcon/utils/index.d.ts +0 -6
- package/lib/ProIcon/utils/index.js +0 -95
- package/lib/ProLayout/components/Layout/Header/index.d.ts +0 -4
- package/lib/ProLayout/components/Layout/Header/index.js +0 -188
- package/lib/ProLayout/components/Layout/Header/style/index.less +0 -277
- package/lib/ProLayout/components/Layout/Icon/Icon.d.ts +0 -10
- package/lib/ProLayout/components/Layout/Icon/Icon.js +0 -41
- package/lib/ProLayout/components/Layout/Icon/index.d.ts +0 -2
- package/lib/ProLayout/components/Layout/Icon/index.js +0 -9
- package/lib/ProLayout/components/Layout/Icon/style/index.less +0 -7
- package/lib/ProLayout/components/Layout/Menu/FoldMenu/index.d.ts +0 -3
- package/lib/ProLayout/components/Layout/Menu/FoldMenu/index.js +0 -212
- package/lib/ProLayout/components/Layout/Menu/FoldMenu/style/index.less +0 -111
- package/lib/ProLayout/components/Layout/Menu/OpenMenu/index.d.ts +0 -3
- package/lib/ProLayout/components/Layout/Menu/OpenMenu/index.js +0 -214
- package/lib/ProLayout/components/Layout/Menu/OpenMenu/propsType.d.ts +0 -15
- package/lib/ProLayout/components/Layout/Menu/OpenMenu/propsType.js +0 -5
- package/lib/ProLayout/components/Layout/Menu/OpenMenu/style/index.less +0 -177
- package/lib/ProLayout/components/Layout/Menu/SideMenu/index.d.ts +0 -3
- package/lib/ProLayout/components/Layout/Menu/SideMenu/index.js +0 -47
- package/lib/ProLayout/components/Layout/Menu/SideMenu/style/index.less +0 -124
- package/lib/ProLayout/components/Layout/Menu/index.d.ts +0 -4
- package/lib/ProLayout/components/Layout/Menu/index.js +0 -178
- package/lib/ProLayout/components/Layout/Menu/style/index.less +0 -136
- package/lib/ProLayout/components/Layout/Notice/index.d.ts +0 -4
- package/lib/ProLayout/components/Layout/Notice/index.js +0 -37
- package/lib/ProLayout/components/Layout/Notice/style/index.less +0 -37
- package/lib/ProLayout/components/Layout/index.d.ts +0 -4
- package/lib/ProLayout/components/Layout/index.js +0 -34
- package/lib/ProLayout/components/Layout/index.less +0 -4
- package/lib/ProLayout/components/ProCollapse/PropTypes.d.ts +0 -98
- package/lib/ProLayout/components/ProCollapse/PropTypes.js +0 -5
- package/lib/ProLayout/components/ProCollapse/index.d.ts +0 -3
- package/lib/ProLayout/components/ProCollapse/index.js +0 -200
- package/lib/ProLayout/components/ProCollapse/style/index.less +0 -357
- package/lib/ProLayout/components/ProFooter/PropTypes.d.ts +0 -27
- package/lib/ProLayout/components/ProFooter/PropTypes.js +0 -5
- package/lib/ProLayout/components/ProFooter/index.d.ts +0 -4
- package/lib/ProLayout/components/ProFooter/index.js +0 -59
- package/lib/ProLayout/components/ProFooter/style/index.less +0 -12
- package/lib/ProLayout/components/ProHeader/PropTypes.d.ts +0 -206
- package/lib/ProLayout/components/ProHeader/PropTypes.js +0 -5
- package/lib/ProLayout/components/ProHeader/components/Copy/index.d.ts +0 -4
- package/lib/ProLayout/components/ProHeader/components/Copy/index.js +0 -29
- package/lib/ProLayout/components/ProHeader/components/ProBackBtn/index.d.ts +0 -9
- package/lib/ProLayout/components/ProHeader/components/ProBackBtn/index.js +0 -35
- package/lib/ProLayout/components/ProHeader/components/ProBackBtn/propsType.d.ts +0 -4
- package/lib/ProLayout/components/ProHeader/components/ProBackBtn/propsType.js +0 -5
- package/lib/ProLayout/components/ProHeader/components/ProBackBtn/style/index.less +0 -23
- package/lib/ProLayout/components/ProHeader/components/index.d.ts +0 -2
- package/lib/ProLayout/components/ProHeader/components/index.js +0 -20
- package/lib/ProLayout/components/ProHeader/index.d.ts +0 -4
- package/lib/ProLayout/components/ProHeader/index.js +0 -559
- package/lib/ProLayout/components/ProHeader/style/index.less +0 -416
- package/lib/ProLayout/components/ProHeader/utils/index.d.ts +0 -5
- package/lib/ProLayout/components/ProHeader/utils/index.js +0 -21
- package/lib/ProLayout/components/TabsManager/components/TabContextMenu.d.ts +0 -7
- package/lib/ProLayout/components/TabsManager/components/TabContextMenu.js +0 -106
- package/lib/ProLayout/components/TabsManager/components/TabItem.d.ts +0 -26
- package/lib/ProLayout/components/TabsManager/components/TabItem.js +0 -75
- package/lib/ProLayout/components/TabsManager/components/TabsContext.d.ts +0 -6
- package/lib/ProLayout/components/TabsManager/components/TabsContext.js +0 -11
- package/lib/ProLayout/components/TabsManager/components/TabsHeader.d.ts +0 -12
- package/lib/ProLayout/components/TabsManager/components/TabsHeader.js +0 -58
- package/lib/ProLayout/components/TabsManager/hooks/useActiveTab.d.ts +0 -6
- package/lib/ProLayout/components/TabsManager/hooks/useActiveTab.js +0 -20
- package/lib/ProLayout/components/TabsManager/hooks/useProLayoutTabs.d.ts +0 -18
- package/lib/ProLayout/components/TabsManager/hooks/useProLayoutTabs.js +0 -31
- package/lib/ProLayout/components/TabsManager/hooks/useTabsCache.d.ts +0 -31
- package/lib/ProLayout/components/TabsManager/hooks/useTabsCache.js +0 -103
- package/lib/ProLayout/components/TabsManager/hooks/useTabsState.d.ts +0 -5
- package/lib/ProLayout/components/TabsManager/hooks/useTabsState.js +0 -417
- package/lib/ProLayout/components/TabsManager/index.d.ts +0 -7
- package/lib/ProLayout/components/TabsManager/index.js +0 -196
- package/lib/ProLayout/components/TabsManager/propTypes.d.ts +0 -75
- package/lib/ProLayout/components/TabsManager/propTypes.js +0 -21
- package/lib/ProLayout/components/TabsManager/style/index.less +0 -310
- package/lib/ProLayout/components/TabsManager/utils/index.d.ts +0 -41
- package/lib/ProLayout/components/TabsManager/utils/index.js +0 -126
- package/lib/ProLayout/components/index.d.ts +0 -3
- package/lib/ProLayout/components/index.js +0 -27
- package/lib/ProLayout/images/close.png +0 -0
- package/lib/ProLayout/images/logoImg.png +0 -0
- package/lib/ProLayout/images/tipMsg.png +0 -0
- package/lib/ProLayout/index.d.ts +0 -20
- package/lib/ProLayout/index.js +0 -285
- package/lib/ProLayout/propTypes.d.ts +0 -435
- package/lib/ProLayout/propTypes.js +0 -46
- package/lib/ProLayout/style/index.less +0 -344
- package/lib/ProLayout/utils/index.d.ts +0 -43
- package/lib/ProLayout/utils/index.js +0 -278
- package/lib/ProSelect/components/AdaptiveTooltip.d.ts +0 -4
- package/lib/ProSelect/components/AdaptiveTooltip.js +0 -54
- package/lib/ProSelect/index.d.ts +0 -5
- package/lib/ProSelect/index.js +0 -524
- package/lib/ProSelect/propsType.d.ts +0 -160
- package/lib/ProSelect/propsType.js +0 -5
- package/lib/ProSelect/style/index.less +0 -21
- package/lib/ProSelect/utils/index.d.ts +0 -4
- package/lib/ProSelect/utils/index.js +0 -146
- package/lib/ProStep/components/Anchor/index.d.ts +0 -4
- package/lib/ProStep/components/Anchor/index.js +0 -117
- package/lib/ProStep/components/Item/index.d.ts +0 -3
- package/lib/ProStep/components/Item/index.js +0 -104
- package/lib/ProStep/components/Listener/index.d.ts +0 -4
- package/lib/ProStep/components/Listener/index.js +0 -80
- package/lib/ProStep/components/Step/index.d.ts +0 -5
- package/lib/ProStep/components/Step/index.js +0 -99
- package/lib/ProStep/index.d.ts +0 -11
- package/lib/ProStep/index.js +0 -266
- package/lib/ProStep/propsType.d.ts +0 -222
- package/lib/ProStep/propsType.js +0 -5
- package/lib/ProStep/style/index.less +0 -220
- package/lib/ProStep/utils/index.d.ts +0 -22
- package/lib/ProStep/utils/index.js +0 -78
- package/lib/ProStepTab/index.d.ts +0 -22
- package/lib/ProStepTab/index.js +0 -384
- package/lib/ProStepTab/propsType.d.ts +0 -114
- package/lib/ProStepTab/propsType.js +0 -5
- package/lib/ProTable/components/FormatColumn/index.d.ts +0 -20
- package/lib/ProTable/components/FormatColumn/index.js +0 -699
- package/lib/ProTable/components/FormatColumn/propsType.d.ts +0 -29
- package/lib/ProTable/components/FormatColumn/propsType.js +0 -5
- package/lib/ProTable/components/RcTable/components/BaseTable/index.d.ts +0 -10
- package/lib/ProTable/components/RcTable/components/BaseTable/index.js +0 -49
- package/lib/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/index.d.ts +0 -18
- package/lib/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/index.js +0 -205
- package/lib/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/utils/index.d.ts +0 -8
- package/lib/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/utils/index.js +0 -182
- package/lib/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/utils/propsType.d.ts +0 -61
- package/lib/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/utils/propsType.js +0 -5
- package/lib/ProTable/components/RcTable/components/DraggableTable/index.d.ts +0 -10
- package/lib/ProTable/components/RcTable/components/DraggableTable/index.js +0 -65
- package/lib/ProTable/components/RcTable/index.d.ts +0 -4
- package/lib/ProTable/components/RcTable/index.js +0 -20
- package/lib/ProTable/components/RenderColumn/index.d.ts +0 -22
- package/lib/ProTable/components/RenderColumn/index.js +0 -278
- package/lib/ProTable/components/RenderEmptyText/index.d.ts +0 -3
- package/lib/ProTable/components/RenderEmptyText/index.js +0 -28
- package/lib/ProTable/components/RenderFooter/index.d.ts +0 -2
- package/lib/ProTable/components/RenderFooter/index.js +0 -20
- package/lib/ProTable/components/RenderSummary/index.d.ts +0 -3
- package/lib/ProTable/components/RenderSummary/index.js +0 -60
- package/lib/ProTable/components/RenderTableHeader/index.d.ts +0 -2
- package/lib/ProTable/components/RenderTableHeader/index.js +0 -67
- package/lib/ProTable/components/RenderTabs/index.d.ts +0 -4
- package/lib/ProTable/components/RenderTabs/index.js +0 -97
- package/lib/ProTable/components/TableResizable/index.d.ts +0 -13
- package/lib/ProTable/components/TableResizable/index.js +0 -109
- package/lib/ProTable/components/TooltipTitle/index.d.ts +0 -11
- package/lib/ProTable/components/TooltipTitle/index.js +0 -26
- package/lib/ProTable/components/index.d.ts +0 -30
- package/lib/ProTable/components/index.js +0 -48
- package/lib/ProTable/hooks/useAntdTable.d.ts +0 -7
- package/lib/ProTable/hooks/useAntdTable.js +0 -581
- package/lib/ProTable/index.d.ts +0 -16
- package/lib/ProTable/index.js +0 -476
- package/lib/ProTable/propsType.d.ts +0 -757
- package/lib/ProTable/propsType.js +0 -5
- package/lib/ProTable/style/index.less +0 -644
- package/lib/ProTable/utils/index.d.ts +0 -38
- package/lib/ProTable/utils/index.js +0 -142
- package/lib/ProTabs/components/Card/index.d.ts +0 -3
- package/lib/ProTabs/components/Card/index.js +0 -54
- package/lib/ProTabs/components/index.d.ts +0 -1
- package/lib/ProTabs/components/index.js +0 -13
- package/lib/ProTabs/index.d.ts +0 -4
- package/lib/ProTabs/index.js +0 -138
- package/lib/ProTabs/propType.d.ts +0 -94
- package/lib/ProTabs/propType.js +0 -5
- package/lib/ProTabs/style/index.less +0 -157
- package/lib/ProThemeTools/component/ProTools/index.d.ts +0 -3
- package/lib/ProThemeTools/component/ProTools/index.js +0 -301
- package/lib/ProThemeTools/component/ProTools/style/index.less +0 -178
- package/lib/ProThemeTools/component/index.d.ts +0 -1
- package/lib/ProThemeTools/component/index.js +0 -13
- package/lib/ProThemeTools/context/ThemeContext.d.ts +0 -43
- package/lib/ProThemeTools/context/ThemeContext.js +0 -291
- package/lib/ProThemeTools/index.d.ts +0 -9
- package/lib/ProThemeTools/index.js +0 -302
- package/lib/ProThemeTools/propsType.d.ts +0 -170
- package/lib/ProThemeTools/propsType.js +0 -5
- package/lib/ProThemeTools/style/index.less +0 -74
- package/lib/ProThemeTools/utils/index.d.ts +0 -51
- package/lib/ProThemeTools/utils/index.js +0 -261
- package/lib/ProTooltip/index.d.ts +0 -3
- package/lib/ProTooltip/index.js +0 -309
- package/lib/ProTooltip/propsType.d.ts +0 -57
- package/lib/ProTooltip/propsType.js +0 -5
- package/lib/ProTooltip/style/index.less +0 -34
- package/lib/ProTree/components/AdaptiveTooltip.d.ts +0 -4
- package/lib/ProTree/components/AdaptiveTooltip.js +0 -23
- package/lib/ProTree/components/CloseIcon.d.ts +0 -2
- package/lib/ProTree/components/CloseIcon.js +0 -38
- package/lib/ProTree/components/List.d.ts +0 -17
- package/lib/ProTree/components/List.js +0 -79
- package/lib/ProTree/components/ProTree.d.ts +0 -3
- package/lib/ProTree/components/ProTree.js +0 -505
- package/lib/ProTree/components/ProTreeSelect/index.d.ts +0 -5
- package/lib/ProTree/components/ProTreeSelect/index.js +0 -770
- package/lib/ProTree/components/ProTreeSelect/propsType.d.ts +0 -439
- package/lib/ProTree/components/ProTreeSelect/propsType.js +0 -5
- package/lib/ProTree/components/ProTreeSelect/style/index.less +0 -119
- package/lib/ProTree/components/SearchTitle.d.ts +0 -11
- package/lib/ProTree/components/SearchTitle.js +0 -60
- package/lib/ProTree/components/Tree.d.ts +0 -27
- package/lib/ProTree/components/Tree.js +0 -393
- package/lib/ProTree/components/index.d.ts +0 -4
- package/lib/ProTree/components/index.js +0 -34
- package/lib/ProTree/index.d.ts +0 -3
- package/lib/ProTree/index.js +0 -30
- package/lib/ProTree/propsType.d.ts +0 -812
- package/lib/ProTree/propsType.js +0 -5
- package/lib/ProTree/style/index.less +0 -393
- package/lib/ProTree/utils.d.ts +0 -43
- package/lib/ProTree/utils.js +0 -221
- package/lib/ProTreeModal/components/Cascader.d.ts +0 -14
- package/lib/ProTreeModal/components/Cascader.js +0 -110
- package/lib/ProTreeModal/components/CloseIcon.d.ts +0 -2
- package/lib/ProTreeModal/components/CloseIcon.js +0 -38
- package/lib/ProTreeModal/components/List.d.ts +0 -21
- package/lib/ProTreeModal/components/List.js +0 -294
- package/lib/ProTreeModal/components/SearchTitle.d.ts +0 -7
- package/lib/ProTreeModal/components/SearchTitle.js +0 -27
- package/lib/ProTreeModal/components/SortableItem.d.ts +0 -12
- package/lib/ProTreeModal/components/SortableItem.js +0 -80
- package/lib/ProTreeModal/components/Tree.d.ts +0 -25
- package/lib/ProTreeModal/components/Tree.js +0 -241
- package/lib/ProTreeModal/components/Trigger.d.ts +0 -21
- package/lib/ProTreeModal/components/Trigger.js +0 -195
- package/lib/ProTreeModal/components/index.d.ts +0 -6
- package/lib/ProTreeModal/components/index.js +0 -48
- package/lib/ProTreeModal/index.d.ts +0 -4
- package/lib/ProTreeModal/index.js +0 -837
- package/lib/ProTreeModal/propsType.d.ts +0 -298
- package/lib/ProTreeModal/propsType.js +0 -5
- package/lib/ProTreeModal/style/index.less +0 -414
- package/lib/ProTreeModal/utils.d.ts +0 -39
- package/lib/ProTreeModal/utils.js +0 -243
- package/lib/ProUpload/components/ButtonRender.d.ts +0 -20
- package/lib/ProUpload/components/ButtonRender.js +0 -114
- package/lib/ProUpload/components/DragRender.d.ts +0 -21
- package/lib/ProUpload/components/DragRender.js +0 -196
- package/lib/ProUpload/components/DraggableUploadListItem.d.ts +0 -2
- package/lib/ProUpload/components/DraggableUploadListItem.js +0 -42
- package/lib/ProUpload/components/Example.d.ts +0 -10
- package/lib/ProUpload/components/Example.js +0 -61
- package/lib/ProUpload/components/FileItem.d.ts +0 -33
- package/lib/ProUpload/components/FileItem.js +0 -238
- package/lib/ProUpload/components/ImageRender.d.ts +0 -19
- package/lib/ProUpload/components/ImageRender.js +0 -279
- package/lib/ProUpload/index.d.ts +0 -4
- package/lib/ProUpload/index.js +0 -311
- package/lib/ProUpload/propsType.d.ts +0 -264
- package/lib/ProUpload/propsType.js +0 -5
- package/lib/ProUpload/style/icon-PDF.png +0 -0
- package/lib/ProUpload/style/icon-TXT.png +0 -0
- package/lib/ProUpload/style/icon-excel.png +0 -0
- package/lib/ProUpload/style/icon-pic.png +0 -0
- package/lib/ProUpload/style/icon-word.png +0 -0
- package/lib/ProUpload/style/index.less +0 -480
- package/lib/ProUpload/uitls.d.ts +0 -3
- package/lib/ProUpload/uitls.js +0 -22
- package/lib/ProUtils/utils/index.d.ts +0 -6
- package/lib/ProUtils/utils/index.js +0 -26
- package/lib/ProViewer/index.d.ts +0 -4
- package/lib/ProViewer/index.js +0 -229
- package/lib/ProViewer/propsType.d.ts +0 -35
- package/lib/ProViewer/propsType.js +0 -3
- package/lib/ProViewer/style/index.less +0 -10
- package/lib/ProWaterMark/index.d.ts +0 -4
- package/lib/ProWaterMark/index.js +0 -26
- package/lib/ProWaterMark/propsType.d.ts +0 -6
- package/lib/ProWaterMark/propsType.js +0 -5
- package/lib/assets/apps.svg +0 -23
- package/lib/assets/arrow.svg +0 -1
- package/lib/assets/catalog.svg +0 -30
- package/lib/assets/close.svg +0 -1
- package/lib/assets/close2.svg +0 -1
- package/lib/assets/copy.svg +0 -1
- package/lib/assets/customColumn.svg +0 -2
- package/lib/assets/delete.svg +0 -1
- package/lib/assets/disabled.svg +0 -18
- package/lib/assets/download.svg +0 -1
- package/lib/assets/drag.svg +0 -1
- package/lib/assets/empty.png +0 -0
- package/lib/assets/fold.svg +0 -27
- package/lib/assets/header_bg.png +0 -0
- package/lib/assets/input-search.svg +0 -11
- package/lib/assets/look.svg +0 -1
- package/lib/assets/reset.svg +0 -11
- package/lib/assets/search.svg +0 -1
- package/lib/assets/setting.svg +0 -14
- package/lib/assets/view.svg +0 -20
- package/lib/global.less +0 -57
- package/lib/index.d.ts +0 -47
- package/lib/index.js +0 -276
- package/lib/locale/en_US.d.ts +0 -176
- package/lib/locale/en_US.js +0 -181
- package/lib/locale/index.d.ts +0 -15
- package/lib/locale/index.js +0 -65
- package/lib/locale/zh_CN.d.ts +0 -176
- package/lib/locale/zh_CN.js +0 -181
- package/lib/style/components.less +0 -27
- package/lib/style/core/compatible.less +0 -5
- package/lib/style/core/index.less +0 -3
- package/lib/style/core/mixins.less +0 -77
- package/lib/style/core/normalize.less +0 -251
- package/lib/style/index.less +0 -2
- package/lib/style/less.less +0 -2
- package/lib/style/theme/antd.less +0 -743
- package/lib/style/theme/base.less +0 -90
- package/lib/style/theme/index.less +0 -2
- package/lib/style/theme/tokens.less +0 -90
- package/lib/style/variables.less +0 -2
- package/lib/tokens.d.ts +0 -83
- package/lib/tokens.js +0 -91
- package/lib/utils/index.d.ts +0 -21
- package/lib/utils/index.js +0 -116
- package/typings.d.ts +0 -17
|
@@ -1,23 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
1
|
+
import _get from "lodash/get";
|
|
2
|
+
import _isBoolean from "lodash/isBoolean";
|
|
3
|
+
import _isFunction from "lodash/isFunction";
|
|
4
|
+
import _transform from "lodash/transform";
|
|
5
|
+
import _isEqual from "lodash/isEqual";
|
|
6
|
+
import _isObject from "lodash/isObject";
|
|
7
|
+
import _isString from "lodash/isString";
|
|
8
|
+
import _cloneDeepWith from "lodash/cloneDeepWith";
|
|
9
|
+
import _cloneDeep from "lodash/cloneDeep";
|
|
11
10
|
/* eslint-disable no-await-in-loop */
|
|
12
11
|
/* eslint-disable no-restricted-syntax */
|
|
13
12
|
import React from 'react';
|
|
14
13
|
import { tools, validate } from '@zat-design/utils';
|
|
15
|
-
import { cloneDeep, cloneDeepWith, isString, isObject, isEqual, transform, isFunction, isBoolean, get } from 'lodash';
|
|
16
14
|
/**
|
|
17
15
|
* 生成随机字符串
|
|
18
16
|
* @returns 随机字符串
|
|
19
17
|
*/
|
|
20
|
-
export
|
|
18
|
+
export const getRandom = () => {
|
|
21
19
|
return Math.random().toString(36).slice(-6);
|
|
22
20
|
};
|
|
23
21
|
|
|
@@ -27,10 +25,10 @@ export var getRandom = () => {
|
|
|
27
25
|
* @param rowKey 用户传入的 rowKey prop
|
|
28
26
|
* @returns AntD Table 可用的 rowKey 字符串或函数
|
|
29
27
|
*/
|
|
30
|
-
export
|
|
28
|
+
export const buildTableRowKey = rowKey => {
|
|
31
29
|
return record => {
|
|
32
30
|
if (!rowKey) return String(record.rowKey || '');
|
|
33
|
-
|
|
31
|
+
const userKey = typeof rowKey === 'function' ? rowKey(record) : record[rowKey];
|
|
34
32
|
if (userKey != null && !Number.isNaN(userKey) && userKey !== '') {
|
|
35
33
|
return String(userKey);
|
|
36
34
|
}
|
|
@@ -44,11 +42,11 @@ export var buildTableRowKey = rowKey => {
|
|
|
44
42
|
* @param base 基准对象
|
|
45
43
|
* @returns 差异对象
|
|
46
44
|
*/
|
|
47
|
-
export
|
|
48
|
-
|
|
49
|
-
return
|
|
50
|
-
if (!
|
|
51
|
-
result[key] =
|
|
45
|
+
export const difference = (object, base) => {
|
|
46
|
+
const changes = (object, base) => {
|
|
47
|
+
return _transform(object, (result, value, key) => {
|
|
48
|
+
if (!_isEqual(value, base?.[key])) {
|
|
49
|
+
result[key] = _isObject(value) && _isObject(base?.[key]) ? changes(value, base?.[key]) : value;
|
|
52
50
|
}
|
|
53
51
|
});
|
|
54
52
|
};
|
|
@@ -62,8 +60,8 @@ export var difference = (object, base) => {
|
|
|
62
60
|
* @param rowName 行名称路径
|
|
63
61
|
* @returns 校验结果Promise
|
|
64
62
|
*/
|
|
65
|
-
export
|
|
66
|
-
|
|
63
|
+
export const customValidate = (validateKeys, form, rowName) => {
|
|
64
|
+
const array = [];
|
|
67
65
|
validateKeys.forEach(key => {
|
|
68
66
|
array.push([...(Array.isArray(rowName) ? rowName : [rowName]), key]);
|
|
69
67
|
});
|
|
@@ -75,15 +73,15 @@ export var customValidate = (validateKeys, form, rowName) => {
|
|
|
75
73
|
* @param names 名称数组
|
|
76
74
|
* @returns 拆解后的字符串
|
|
77
75
|
*/
|
|
78
|
-
export
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
if (
|
|
76
|
+
export const splitNames = names => {
|
|
77
|
+
let result;
|
|
78
|
+
const resultArray = [];
|
|
79
|
+
if (_isString(names[0])) {
|
|
82
80
|
result = names.join('-');
|
|
83
81
|
return result;
|
|
84
82
|
}
|
|
85
83
|
names.forEach(item => {
|
|
86
|
-
if (
|
|
84
|
+
if (_isString(item[0])) {
|
|
87
85
|
resultArray.push(`${item[0]}_${item[1]}`);
|
|
88
86
|
}
|
|
89
87
|
});
|
|
@@ -97,9 +95,9 @@ export var splitNames = names => {
|
|
|
97
95
|
* @param virtualKey 虚拟键
|
|
98
96
|
* @returns 完整名称路径数组
|
|
99
97
|
*/
|
|
100
|
-
export
|
|
101
|
-
|
|
102
|
-
|
|
98
|
+
export const getNamePath = (name, virtualKey) => {
|
|
99
|
+
const nextName = _cloneDeep(Array.isArray(name) ? name : [name]);
|
|
100
|
+
const lastIndex = nextName.length - 1;
|
|
103
101
|
// 确保最后一个元素是字符串类型
|
|
104
102
|
nextName[lastIndex] = `${nextName[lastIndex]}${virtualKey ? `-${virtualKey}` : ''}`;
|
|
105
103
|
return nextName;
|
|
@@ -109,21 +107,21 @@ export var getNamePath = (name, virtualKey) => {
|
|
|
109
107
|
* 删除操作
|
|
110
108
|
* @param params 删除参数
|
|
111
109
|
*/
|
|
112
|
-
export
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
110
|
+
export const onDelete = ({
|
|
111
|
+
name,
|
|
112
|
+
form,
|
|
113
|
+
virtualKey,
|
|
114
|
+
selectedRowKeys
|
|
115
|
+
}) => {
|
|
117
116
|
// 正常的form数据流处理
|
|
118
|
-
|
|
117
|
+
let dataSource = form.getFieldValue(name);
|
|
119
118
|
dataSource = dataSource.filter(row => !selectedRowKeys.includes(row.rowKey));
|
|
120
119
|
form.setFieldValue(name, dataSource);
|
|
121
120
|
// 单行模式数据流处理 重置中间正在编辑状态单行数据
|
|
122
121
|
if (virtualKey) {
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
if ((_virtualList = virtualList) !== null && _virtualList !== void 0 && _virtualList.length) {
|
|
122
|
+
const namePath = getNamePath(name, virtualKey);
|
|
123
|
+
let virtualList = form.getFieldValue(namePath);
|
|
124
|
+
if (virtualList?.length) {
|
|
127
125
|
virtualList = virtualList.filter(row => !selectedRowKeys.includes(row.rowKey));
|
|
128
126
|
form.setFieldValue(namePath, virtualList);
|
|
129
127
|
}
|
|
@@ -137,16 +135,16 @@ export var onDelete = _ref => {
|
|
|
137
135
|
* @param params 禁用参数
|
|
138
136
|
* @returns 是否禁用
|
|
139
137
|
*/
|
|
140
|
-
export
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
138
|
+
export const getDisabled = ({
|
|
139
|
+
globalControl,
|
|
140
|
+
formDisabled,
|
|
141
|
+
column,
|
|
142
|
+
tabledDisabled,
|
|
143
|
+
columnFieldProps,
|
|
144
|
+
params,
|
|
145
|
+
rowDisabled
|
|
146
|
+
}) => {
|
|
147
|
+
const convertToBoolean = value => {
|
|
150
148
|
if (Array.isArray(value)) {
|
|
151
149
|
return Boolean(value.length);
|
|
152
150
|
}
|
|
@@ -160,20 +158,19 @@ export var getDisabled = _ref2 => {
|
|
|
160
158
|
};
|
|
161
159
|
|
|
162
160
|
// 新格式:params = [values, { form, index, namePath }]
|
|
163
|
-
|
|
164
|
-
values = _params[0],
|
|
165
|
-
reactiveParams = _params[1];
|
|
161
|
+
const [values, reactiveParams] = params;
|
|
166
162
|
|
|
167
163
|
// 判断是否有column的disabled属性
|
|
168
|
-
|
|
169
|
-
if (
|
|
164
|
+
const noColumnDisabled = () => {
|
|
165
|
+
if (_isFunction(column?.disabled) || _isFunction(columnFieldProps?.disabled) || _isBoolean(column?.disabled) || _isBoolean(columnFieldProps?.disabled)) {
|
|
170
166
|
return false;
|
|
171
167
|
}
|
|
172
168
|
// 判断FieldProps是否有disabled属性
|
|
173
|
-
if (
|
|
174
|
-
|
|
175
|
-
disabled
|
|
176
|
-
|
|
169
|
+
if (_isFunction(columnFieldProps)) {
|
|
170
|
+
const {
|
|
171
|
+
disabled
|
|
172
|
+
} = columnFieldProps(values, reactiveParams);
|
|
173
|
+
if (_isFunction(disabled) || _isBoolean(disabled)) {
|
|
177
174
|
return false;
|
|
178
175
|
}
|
|
179
176
|
}
|
|
@@ -188,80 +185,80 @@ export var getDisabled = _ref2 => {
|
|
|
188
185
|
|
|
189
186
|
// 日期范围选择器和数字范围选择器
|
|
190
187
|
if (['RangePicker', 'ProNumberRange', 'Group'].includes(column.type)) {
|
|
191
|
-
if (Array.isArray(columnFieldProps
|
|
192
|
-
return columnFieldProps
|
|
188
|
+
if (Array.isArray(columnFieldProps?.disabled)) {
|
|
189
|
+
return columnFieldProps?.disabled;
|
|
193
190
|
}
|
|
194
|
-
if (Array.isArray(column
|
|
191
|
+
if (Array.isArray(column?.disabled)) {
|
|
195
192
|
return column.disabled;
|
|
196
193
|
}
|
|
197
|
-
if (
|
|
198
|
-
return column
|
|
194
|
+
if (_isFunction(column?.disabled)) {
|
|
195
|
+
return column?.disabled(values, reactiveParams);
|
|
199
196
|
}
|
|
200
197
|
}
|
|
201
198
|
|
|
202
199
|
// 当表单含有diabled属性时,优先使用表单的disabled
|
|
203
|
-
if (
|
|
200
|
+
if (_isFunction(rowDisabled) && noColumnDisabled()) {
|
|
204
201
|
return rowDisabled(values);
|
|
205
202
|
}
|
|
206
|
-
if (
|
|
207
|
-
return convertToBoolean(column
|
|
203
|
+
if (_isFunction(column?.disabled)) {
|
|
204
|
+
return convertToBoolean(column?.disabled(values, reactiveParams));
|
|
208
205
|
}
|
|
209
206
|
|
|
210
207
|
// 表单FieldProps为函数时
|
|
211
|
-
if (
|
|
212
|
-
|
|
213
|
-
disabled
|
|
214
|
-
|
|
208
|
+
if (_isFunction(columnFieldProps)) {
|
|
209
|
+
const {
|
|
210
|
+
disabled
|
|
211
|
+
} = columnFieldProps(values, reactiveParams);
|
|
212
|
+
if (_isFunction(disabled)) {
|
|
215
213
|
return convertToBoolean(disabled(values, reactiveParams));
|
|
216
214
|
}
|
|
217
|
-
if (
|
|
215
|
+
if (_isBoolean(disabled)) {
|
|
218
216
|
return convertToBoolean(disabled);
|
|
219
217
|
}
|
|
220
218
|
}
|
|
221
|
-
if (
|
|
222
|
-
return convertToBoolean(columnFieldProps
|
|
219
|
+
if (_isFunction(columnFieldProps?.disabled)) {
|
|
220
|
+
return convertToBoolean(columnFieldProps?.disabled(values, reactiveParams));
|
|
223
221
|
}
|
|
224
|
-
return convertToBoolean(
|
|
222
|
+
return convertToBoolean(column?.disabled ?? columnFieldProps?.disabled ?? tabledDisabled);
|
|
225
223
|
};
|
|
226
224
|
|
|
227
225
|
/**
|
|
228
226
|
* 表格自动滚动到报错位置
|
|
229
227
|
*/
|
|
230
|
-
export
|
|
228
|
+
export const handleScrollToError = () => {
|
|
231
229
|
setTimeout(() => {
|
|
232
|
-
|
|
230
|
+
const errorDom = document.querySelector('[class*="form-item-has-error"]');
|
|
233
231
|
if (errorDom) {
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
232
|
+
const tableBody = errorDom.closest('[class*="table-content"]') || errorDom.closest('[class*="table-body"]');
|
|
233
|
+
const tableCell = errorDom.closest('[class*="table-cell"]');
|
|
234
|
+
const tableRow = errorDom.closest('[class*="table-row"]');
|
|
237
235
|
if (tableBody && tableCell) {
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
236
|
+
let previousSibling = tableCell.previousElementSibling;
|
|
237
|
+
let childOffsetLeft = 0;
|
|
238
|
+
let childFixedLeft = 0;
|
|
239
|
+
let childOffsetTop = 0;
|
|
242
240
|
while (previousSibling) {
|
|
243
241
|
if (previousSibling.nodeType === 1) {
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
width = _ref4$width === void 0 ? 0 : _ref4$width;
|
|
242
|
+
const {
|
|
243
|
+
width = 0
|
|
244
|
+
} = previousSibling.getBoundingClientRect() || {};
|
|
248
245
|
childOffsetLeft += width;
|
|
249
|
-
if (
|
|
246
|
+
if (previousSibling?.classList?.contains?.('ant-table-cell-fix-left')) {
|
|
250
247
|
childFixedLeft += width;
|
|
251
248
|
}
|
|
252
249
|
}
|
|
253
250
|
previousSibling = previousSibling.previousElementSibling;
|
|
254
251
|
}
|
|
255
252
|
if (tableRow) {
|
|
256
|
-
|
|
257
|
-
while (
|
|
258
|
-
if (
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
253
|
+
let previousSibling = tableRow.previousElementSibling;
|
|
254
|
+
while (previousSibling) {
|
|
255
|
+
if (previousSibling.nodeType === 1) {
|
|
256
|
+
const {
|
|
257
|
+
height = 0
|
|
258
|
+
} = previousSibling.getBoundingClientRect() || {};
|
|
262
259
|
childOffsetTop += height;
|
|
263
260
|
}
|
|
264
|
-
|
|
261
|
+
previousSibling = previousSibling.previousElementSibling;
|
|
265
262
|
}
|
|
266
263
|
}
|
|
267
264
|
tableBody.scrollTo({
|
|
@@ -280,7 +277,7 @@ export var handleScrollToError = () => {
|
|
|
280
277
|
* @returns 深拷贝后的对象,其中的React节点会被保留
|
|
281
278
|
*/
|
|
282
279
|
export function cloneDeepFilterNode(value) {
|
|
283
|
-
return
|
|
280
|
+
return _cloneDeepWith(value, val => {
|
|
284
281
|
if ( /*#__PURE__*/React.isValidElement(val)) {
|
|
285
282
|
return val;
|
|
286
283
|
}
|
|
@@ -292,265 +289,137 @@ export function cloneDeepFilterNode(value) {
|
|
|
292
289
|
* @param value 需要判断的值
|
|
293
290
|
* @returns 是否为空
|
|
294
291
|
*/
|
|
295
|
-
|
|
292
|
+
const isNull = value => {
|
|
296
293
|
if (Array.isArray(value) && value.length) {
|
|
297
294
|
return value.some(item => isNull(item));
|
|
298
295
|
}
|
|
299
296
|
return value === '' || value === undefined || value === null || Array.isArray(value) && value.length === 0;
|
|
300
297
|
};
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
res = true;
|
|
346
|
-
_iterator = _createForOfIteratorHelper(_rules);
|
|
347
|
-
_context.prev = 16;
|
|
348
|
-
_iterator.s();
|
|
349
|
-
case 18:
|
|
350
|
-
if ((_step = _iterator.n()).done) {
|
|
351
|
-
_context.next = 35;
|
|
352
|
-
break;
|
|
353
|
-
}
|
|
354
|
-
rule = _step.value;
|
|
355
|
-
if (res) {
|
|
356
|
-
_context.next = 22;
|
|
357
|
-
break;
|
|
358
|
-
}
|
|
359
|
-
return _context.abrupt("break", 35);
|
|
360
|
-
case 22:
|
|
361
|
-
if (rule.required && isNull(value)) {
|
|
362
|
-
res = false;
|
|
363
|
-
}
|
|
364
|
-
if (!isFunction(rule.validator)) {
|
|
365
|
-
_context.next = 32;
|
|
366
|
-
break;
|
|
367
|
-
}
|
|
368
|
-
_context.prev = 24;
|
|
369
|
-
_context.next = 27;
|
|
370
|
-
return rule.validator('', value);
|
|
371
|
-
case 27:
|
|
372
|
-
_context.next = 32;
|
|
373
|
-
break;
|
|
374
|
-
case 29:
|
|
375
|
-
_context.prev = 29;
|
|
376
|
-
_context.t0 = _context["catch"](24);
|
|
298
|
+
const handleCheckCellValue = async (column, record) => {
|
|
299
|
+
let value = null;
|
|
300
|
+
if (column.name) {
|
|
301
|
+
value = _get(record, column.name);
|
|
302
|
+
}
|
|
303
|
+
if (column.names?.length) {
|
|
304
|
+
value = column.names.map(key => {
|
|
305
|
+
return _get(record, key);
|
|
306
|
+
});
|
|
307
|
+
}
|
|
308
|
+
let _required = column.required;
|
|
309
|
+
let _rules = column.rules;
|
|
310
|
+
let _labelRequired = column.labelRequired;
|
|
311
|
+
if (_isFunction(column.required)) {
|
|
312
|
+
_required = column.required(value, record);
|
|
313
|
+
}
|
|
314
|
+
if (_isFunction(column.rules)) {
|
|
315
|
+
_rules = column.rules(value, record);
|
|
316
|
+
}
|
|
317
|
+
if (_isFunction(column.labelRequired)) {
|
|
318
|
+
_labelRequired = column.labelRequired(value, record);
|
|
319
|
+
}
|
|
320
|
+
if (column.names?.length && _labelRequired !== null && _labelRequired !== undefined && isNull(value)) {
|
|
321
|
+
return false;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
// 校验必填
|
|
325
|
+
if (_required && isNull(value)) {
|
|
326
|
+
return false;
|
|
327
|
+
}
|
|
328
|
+
// 规则校验
|
|
329
|
+
if (_rules?.length) {
|
|
330
|
+
let res = true;
|
|
331
|
+
for (const rule of _rules) {
|
|
332
|
+
if (!res) {
|
|
333
|
+
break;
|
|
334
|
+
}
|
|
335
|
+
if (rule.required && isNull(value)) {
|
|
336
|
+
res = false;
|
|
337
|
+
}
|
|
338
|
+
if (_isFunction(rule.validator)) {
|
|
339
|
+
try {
|
|
340
|
+
await rule.validator('', value);
|
|
341
|
+
} catch (error) {
|
|
377
342
|
res = false;
|
|
378
|
-
|
|
379
|
-
if (rule.type && !validate[rule.type](value)) {
|
|
380
|
-
res = false;
|
|
381
|
-
}
|
|
382
|
-
case 33:
|
|
383
|
-
_context.next = 18;
|
|
384
|
-
break;
|
|
385
|
-
case 35:
|
|
386
|
-
_context.next = 40;
|
|
387
|
-
break;
|
|
388
|
-
case 37:
|
|
389
|
-
_context.prev = 37;
|
|
390
|
-
_context.t1 = _context["catch"](16);
|
|
391
|
-
_iterator.e(_context.t1);
|
|
392
|
-
case 40:
|
|
393
|
-
_context.prev = 40;
|
|
394
|
-
_iterator.f();
|
|
395
|
-
return _context.finish(40);
|
|
396
|
-
case 43:
|
|
397
|
-
return _context.abrupt("return", res);
|
|
398
|
-
case 44:
|
|
399
|
-
return _context.abrupt("return", true);
|
|
400
|
-
case 45:
|
|
401
|
-
case "end":
|
|
402
|
-
return _context.stop();
|
|
343
|
+
}
|
|
403
344
|
}
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
}
|
|
345
|
+
if (rule.type && !validate[rule.type](value)) {
|
|
346
|
+
res = false;
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
return res;
|
|
350
|
+
}
|
|
351
|
+
return true;
|
|
352
|
+
};
|
|
410
353
|
|
|
411
354
|
/**
|
|
412
355
|
* 分页校验
|
|
413
356
|
*/
|
|
414
|
-
export
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
_iterator2.s();
|
|
454
|
-
case 19:
|
|
455
|
-
if ((_step2 = _iterator2.n()).done) {
|
|
456
|
-
_context2.next = 48;
|
|
457
|
-
break;
|
|
458
|
-
}
|
|
459
|
-
_record = _step2.value;
|
|
460
|
-
_iterator3 = _createForOfIteratorHelper(columns);
|
|
461
|
-
_context2.prev = 22;
|
|
462
|
-
_iterator3.s();
|
|
463
|
-
case 24:
|
|
464
|
-
if ((_step3 = _iterator3.n()).done) {
|
|
465
|
-
_context2.next = 38;
|
|
466
|
-
break;
|
|
467
|
-
}
|
|
468
|
-
column = _step3.value;
|
|
469
|
-
_context2.prev = 26;
|
|
470
|
-
_context2.next = 29;
|
|
471
|
-
return handleCheckCellValue(column, _record);
|
|
472
|
-
case 29:
|
|
473
|
-
result = _context2.sent;
|
|
474
|
-
if (!result) {
|
|
357
|
+
export const onPageCheck = async ({
|
|
358
|
+
form,
|
|
359
|
+
name,
|
|
360
|
+
value,
|
|
361
|
+
columns,
|
|
362
|
+
setState,
|
|
363
|
+
page,
|
|
364
|
+
pagination,
|
|
365
|
+
isView,
|
|
366
|
+
disabled
|
|
367
|
+
}) => {
|
|
368
|
+
// 分页校验,在查看模式下不生效,在禁用模式下不生效
|
|
369
|
+
if (pagination && !isView && !disabled) {
|
|
370
|
+
const {
|
|
371
|
+
pageNum,
|
|
372
|
+
pageSize
|
|
373
|
+
} = page;
|
|
374
|
+
const pageArr = Array.from({
|
|
375
|
+
length: Math.ceil(tools.calc(value.length, '/', pageSize))
|
|
376
|
+
}, (_, i) => i + 1);
|
|
377
|
+
let flag = false;
|
|
378
|
+
let errorNum = 0;
|
|
379
|
+
let errorPageNum = 0;
|
|
380
|
+
for (const item of pageArr) {
|
|
381
|
+
if (flag) break;
|
|
382
|
+
errorNum = 0;
|
|
383
|
+
// 实现思路:截取每一页数据,手动触发每一行数据的校验,通过column配置的rule规则,
|
|
384
|
+
// 依次校验每一页数据,有错误就跳出循环,跳转到错误页数,并展示错误单元格数量
|
|
385
|
+
const start = tools.calc(item - 1, '*', pageSize);
|
|
386
|
+
const end = tools.calc(start, '+', pageSize);
|
|
387
|
+
const nextValues = value?.slice(start, end);
|
|
388
|
+
for (const record of nextValues) {
|
|
389
|
+
for (const column of columns) {
|
|
390
|
+
try {
|
|
391
|
+
const result = await handleCheckCellValue(column, record);
|
|
392
|
+
if (!result) {
|
|
393
|
+
errorNum += 1;
|
|
394
|
+
}
|
|
395
|
+
} catch (error) {
|
|
475
396
|
errorNum += 1;
|
|
476
397
|
}
|
|
477
|
-
|
|
478
|
-
break;
|
|
479
|
-
case 33:
|
|
480
|
-
_context2.prev = 33;
|
|
481
|
-
_context2.t0 = _context2["catch"](26);
|
|
482
|
-
errorNum += 1;
|
|
483
|
-
case 36:
|
|
484
|
-
_context2.next = 24;
|
|
485
|
-
break;
|
|
486
|
-
case 38:
|
|
487
|
-
_context2.next = 43;
|
|
488
|
-
break;
|
|
489
|
-
case 40:
|
|
490
|
-
_context2.prev = 40;
|
|
491
|
-
_context2.t1 = _context2["catch"](22);
|
|
492
|
-
_iterator3.e(_context2.t1);
|
|
493
|
-
case 43:
|
|
494
|
-
_context2.prev = 43;
|
|
495
|
-
_iterator3.f();
|
|
496
|
-
return _context2.finish(43);
|
|
497
|
-
case 46:
|
|
498
|
-
_context2.next = 19;
|
|
499
|
-
break;
|
|
500
|
-
case 48:
|
|
501
|
-
_context2.next = 53;
|
|
502
|
-
break;
|
|
503
|
-
case 50:
|
|
504
|
-
_context2.prev = 50;
|
|
505
|
-
_context2.t2 = _context2["catch"](17);
|
|
506
|
-
_iterator2.e(_context2.t2);
|
|
507
|
-
case 53:
|
|
508
|
-
_context2.prev = 53;
|
|
509
|
-
_iterator2.f();
|
|
510
|
-
return _context2.finish(53);
|
|
511
|
-
case 56:
|
|
512
|
-
if (errorNum > 0) {
|
|
513
|
-
flag = true;
|
|
514
|
-
errorPageNum = item;
|
|
515
|
-
}
|
|
516
|
-
case 57:
|
|
517
|
-
_i++;
|
|
518
|
-
_context2.next = 8;
|
|
519
|
-
break;
|
|
520
|
-
case 60:
|
|
521
|
-
if (!(flag && errorNum > 0)) {
|
|
522
|
-
_context2.next = 72;
|
|
523
|
-
break;
|
|
524
|
-
}
|
|
525
|
-
nextState = {
|
|
526
|
-
pageErrorNum: errorNum > 0 ? errorNum : 0
|
|
527
|
-
};
|
|
528
|
-
if (pageNum !== errorPageNum) {
|
|
529
|
-
nextState.page = {
|
|
530
|
-
pageNum: errorPageNum,
|
|
531
|
-
pageSize
|
|
532
|
-
};
|
|
533
|
-
}
|
|
534
|
-
setState(nextState);
|
|
535
|
-
_context2.prev = 64;
|
|
536
|
-
_context2.next = 67;
|
|
537
|
-
return form.validateFields([name], {
|
|
538
|
-
recursive: true
|
|
539
|
-
});
|
|
540
|
-
case 67:
|
|
541
|
-
_context2.next = 72;
|
|
542
|
-
break;
|
|
543
|
-
case 69:
|
|
544
|
-
_context2.prev = 69;
|
|
545
|
-
_context2.t3 = _context2["catch"](64);
|
|
546
|
-
handleScrollToError();
|
|
547
|
-
case 72:
|
|
548
|
-
case "end":
|
|
549
|
-
return _context2.stop();
|
|
398
|
+
}
|
|
550
399
|
}
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
400
|
+
if (errorNum > 0) {
|
|
401
|
+
flag = true;
|
|
402
|
+
errorPageNum = item;
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
if (flag && errorNum > 0) {
|
|
406
|
+
const nextState = {
|
|
407
|
+
pageErrorNum: errorNum > 0 ? errorNum : 0
|
|
408
|
+
};
|
|
409
|
+
if (pageNum !== errorPageNum) {
|
|
410
|
+
nextState.page = {
|
|
411
|
+
pageNum: errorPageNum,
|
|
412
|
+
pageSize
|
|
413
|
+
};
|
|
414
|
+
}
|
|
415
|
+
setState(nextState);
|
|
416
|
+
try {
|
|
417
|
+
await form.validateFields([name], {
|
|
418
|
+
recursive: true
|
|
419
|
+
});
|
|
420
|
+
} catch (error) {
|
|
421
|
+
handleScrollToError();
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
};
|