@zat-design/sisyphus-react 4.2.0-beta.2 → 4.2.0-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -5
- 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/ProAction/index.less +0 -1
- package/es/ProConfigProvider/index.js +71 -60
- package/es/ProDownload/index.js +97 -184
- package/es/ProDownload/style/index.less +0 -1
- 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/style/index.less +2 -1
- 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/style/index.less +0 -1
- 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.d.ts +1 -1
- 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/style/index.less +150 -114
- package/es/ProEditTable/utils/config.d.ts +2 -2
- 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.d.ts +1 -1
- package/es/ProEditTable/utils/tools.js +213 -344
- package/es/ProEditTable/utils/transform.js +10 -14
- package/es/ProEditTable/utils/useEditTableError.d.ts +1 -1
- 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 +69 -136
- package/es/ProEnum/hooks/useEnumRequest.js +226 -342
- package/es/ProEnum/hooks/useFrequentEnumRequest.js +50 -69
- package/es/ProEnum/index.d.ts +2 -0
- package/es/ProEnum/index.js +130 -138
- package/es/ProEnum/style/index.less +0 -1
- package/es/ProEnum/utils/eventCenter.js +2 -2
- package/es/ProEnum/utils/frequentEnum.d.ts +1 -2
- package/es/ProEnum/utils/frequentEnum.js +56 -75
- package/es/ProEnum/utils/getEnum.d.ts +47 -0
- package/es/ProEnum/utils/getEnum.js +151 -0
- package/es/ProEnum/utils/getEnumLabel.js +29 -29
- package/es/ProEnum/utils/index.d.ts +13 -3
- package/es/ProEnum/utils/index.js +151 -249
- 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/SwitchCheckbox/style/index.less +4 -5
- package/es/ProForm/components/base/TextArea/index.js +25 -29
- package/es/ProForm/components/base/TimePicker/index.js +24 -28
- package/es/ProForm/components/base/TimePicker/style/index.less +0 -1
- package/es/ProForm/components/combination/Container/index.js +34 -33
- package/es/ProForm/components/combination/Container/style/index.less +18 -19
- 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/style/index.less +4 -4
- 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/style/index.less +43 -50
- package/es/ProForm/components/combination/Group/utils/index.d.ts +27 -27
- 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/style/index.less +20 -16
- 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/ProNumberRange/style/index.less +3 -3
- 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/combination/ProTimeLimit/style/index.less +1 -1
- package/es/ProForm/components/render/ChangedWrapper.js +71 -64
- package/es/ProForm/components/render/ConfirmWrapper.js +52 -113
- 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/style/index.less +39 -44
- 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/Header/style/index.less +224 -222
- package/es/ProLayout/components/Layout/Icon/Icon.js +10 -9
- package/es/ProLayout/components/Layout/Icon/style/index.less +1 -1
- package/es/ProLayout/components/Layout/Menu/FoldMenu/index.js +61 -55
- package/es/ProLayout/components/Layout/Menu/FoldMenu/style/index.less +4 -1
- package/es/ProLayout/components/Layout/Menu/OpenMenu/index.js +57 -66
- package/es/ProLayout/components/Layout/Menu/OpenMenu/style/index.less +9 -7
- package/es/ProLayout/components/Layout/Menu/SideMenu/index.js +18 -14
- package/es/ProLayout/components/Layout/Menu/SideMenu/style/index.less +3 -5
- package/es/ProLayout/components/Layout/Menu/index.js +30 -40
- package/es/ProLayout/components/Layout/Menu/style/index.less +9 -5
- package/es/ProLayout/components/Layout/Notice/index.js +6 -4
- package/es/ProLayout/components/Layout/index.less +4 -4
- package/es/ProLayout/components/ProCollapse/PropTypes.d.ts +45 -45
- package/es/ProLayout/components/ProCollapse/index.js +63 -68
- package/es/ProLayout/components/ProCollapse/style/index.less +30 -32
- package/es/ProLayout/components/ProFooter/index.js +16 -22
- package/es/ProLayout/components/ProFooter/style/index.less +0 -1
- package/es/ProLayout/components/ProHeader/PropTypes.d.ts +31 -31
- 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/components/ProBackBtn/style/index.less +7 -7
- package/es/ProLayout/components/ProHeader/index.js +132 -149
- package/es/ProLayout/components/ProHeader/style/index.less +8 -9
- 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/style/index.less +9 -11
- 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/style/index.less +197 -201
- package/es/ProLayout/utils/index.d.ts +1 -1
- 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/style/index.less +0 -1
- package/es/ProSelect/utils/index.d.ts +1 -1
- package/es/ProSelect/utils/index.js +49 -77
- package/es/ProStep/components/Anchor/index.js +21 -19
- package/es/ProStep/components/Item/index.js +33 -40
- package/es/ProStep/components/LazyLoad/index.d.ts +19 -0
- package/es/ProStep/components/LazyLoad/index.js +55 -0
- package/es/ProStep/components/Listener/index.js +37 -61
- package/es/ProStep/components/Step/index.js +26 -40
- package/es/ProStep/index.js +104 -192
- package/es/ProStep/propsType.d.ts +1 -1
- package/es/ProStep/style/index.less +7 -9
- 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.d.ts +1 -1
- 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/propsType.d.ts +1 -1
- package/es/ProTable/style/index.less +24 -22
- 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/ProTooltip/style/index.less +0 -1
- 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/ProTreeSelect/style/index.less +102 -99
- 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/style/index.less +108 -109
- 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/style/index.less +10 -9
- 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/style/index.less +20 -22
- 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/global.less +1 -1
- package/es/index.d.ts +2 -2
- package/es/locale/index.js +5 -5
- package/es/style/core/normalize.less +11 -2
- package/es/style/index.less +2 -2
- package/es/style/less.less +2 -2
- package/es/style/theme/antd.less +19 -23
- package/es/style/theme/base.less +81 -81
- package/es/style/theme/tokens.less +13 -14
- package/es/style/variables.less +1 -1
- package/es/tokens.js +1 -1
- package/es/utils/index.js +11 -20
- package/package.json +32 -29
- 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 -135
- 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,293 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.iconMap = exports.defaultToolbarKeys = exports.defaultSingleActionKeys = exports.defaultMultipleActionKeys = exports.defaultEditingActionKeys = exports.defaultBtnNameMap = exports.actions = void 0;
|
|
7
|
-
var _icons = require("@ant-design/icons");
|
|
8
|
-
var _utils = require("@zat-design/utils");
|
|
9
|
-
var _antd = require("antd");
|
|
10
|
-
var _lodash = require("lodash");
|
|
11
|
-
var _tools = require("./tools");
|
|
12
|
-
var _locale = _interopRequireDefault(require("../../locale"));
|
|
13
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
-
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(typeof e + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
|
|
16
|
-
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
17
|
-
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
18
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
19
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
20
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
21
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
|
|
22
|
-
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
23
|
-
var defaultBtnNameMap = exports.defaultBtnNameMap = {
|
|
24
|
-
add: _locale.default.ProEditTable.add,
|
|
25
|
-
edit: _locale.default.ProEditTable.edit,
|
|
26
|
-
copy: _locale.default.ProEditTable.copy,
|
|
27
|
-
delete: _locale.default.ProEditTable.delete,
|
|
28
|
-
mulDelete: _locale.default.ProEditTable.mulDelete,
|
|
29
|
-
save: _locale.default.ProEditTable.save,
|
|
30
|
-
cancel: _locale.default.ProEditTable.cancel,
|
|
31
|
-
custom: _locale.default.ProEditTable.custom
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
// 默认按钮配置
|
|
35
|
-
var iconMap = exports.iconMap = {
|
|
36
|
-
add: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.PlusOutlined, {})
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
// 单行编辑 操作栏默认配置按钮
|
|
40
|
-
var defaultSingleActionKeys = exports.defaultSingleActionKeys = ['edit', 'delete', 'save', 'cancel'];
|
|
41
|
-
// 多行编辑 操作栏默认配置按钮
|
|
42
|
-
var defaultMultipleActionKeys = exports.defaultMultipleActionKeys = ['delete'];
|
|
43
|
-
// 编辑状态下只显示保存、取消按钮
|
|
44
|
-
var defaultEditingActionKeys = exports.defaultEditingActionKeys = ['save', 'cancel'];
|
|
45
|
-
// 工具栏默认配置按钮
|
|
46
|
-
var defaultToolbarKeys = exports.defaultToolbarKeys = ['add', 'mulDelete'];
|
|
47
|
-
|
|
48
|
-
// 操作枚举
|
|
49
|
-
var actions = exports.actions = {
|
|
50
|
-
edit: _ref => {
|
|
51
|
-
var record = _ref.record,
|
|
52
|
-
editingKeys = _ref.editingKeys,
|
|
53
|
-
setState = _ref.setState,
|
|
54
|
-
form = _ref.form,
|
|
55
|
-
virtualRowName = _ref.virtualRowName,
|
|
56
|
-
virtualKey = _ref.virtualKey,
|
|
57
|
-
onlyOneLineMsg = _ref.onlyOneLineMsg;
|
|
58
|
-
// 单行编辑时,需要先保存,才能进行下面的编辑
|
|
59
|
-
if (virtualKey && editingKeys.length >= 1) {
|
|
60
|
-
_antd.message.warning(onlyOneLineMsg);
|
|
61
|
-
return false;
|
|
62
|
-
}
|
|
63
|
-
var nextEditingKeys = [...editingKeys];
|
|
64
|
-
// 开启编辑状态
|
|
65
|
-
nextEditingKeys.push(record.rowKey);
|
|
66
|
-
// 编辑时赋值编辑状态,供validator做保存校验
|
|
67
|
-
if (nextEditingKeys !== null && nextEditingKeys !== void 0 && nextEditingKeys.length) {
|
|
68
|
-
record._isEditing = true;
|
|
69
|
-
} else {
|
|
70
|
-
delete record._isEditing;
|
|
71
|
-
}
|
|
72
|
-
// 复制当前行数据
|
|
73
|
-
form.setFieldValue(virtualRowName, _objectSpread({}, record));
|
|
74
|
-
setState({
|
|
75
|
-
editingKeys: nextEditingKeys
|
|
76
|
-
});
|
|
77
|
-
},
|
|
78
|
-
save: function () {
|
|
79
|
-
var _save = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(_ref2) {
|
|
80
|
-
var record, editingKeys, setState, form, rowName, virtualRowName, result, updateData, nextEditingKeys, values;
|
|
81
|
-
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
82
|
-
while (1) switch (_context.prev = _context.next) {
|
|
83
|
-
case 0:
|
|
84
|
-
record = _ref2.record, editingKeys = _ref2.editingKeys, setState = _ref2.setState, form = _ref2.form, rowName = _ref2.rowName, virtualRowName = _ref2.virtualRowName, result = _ref2.result;
|
|
85
|
-
// 保存返回数据与当前行内数据做合并
|
|
86
|
-
updateData = typeof result === 'object' ? result : {};
|
|
87
|
-
record = _objectSpread(_objectSpread(_objectSpread({}, record), form.getFieldValue(virtualRowName)), updateData);
|
|
88
|
-
delete record._addFlag; // 删除第一次新增的标记
|
|
89
|
-
// 关闭当前保存行的编辑状态
|
|
90
|
-
nextEditingKeys = editingKeys.filter(key => key !== record.rowKey); // 保存后取消编辑状态,供validator做保存校验
|
|
91
|
-
if (nextEditingKeys !== null && nextEditingKeys !== void 0 && nextEditingKeys.length) {
|
|
92
|
-
record._isEditing = true;
|
|
93
|
-
} else {
|
|
94
|
-
delete record._isEditing;
|
|
95
|
-
}
|
|
96
|
-
// 防止value引用不变, 值不更新 - (自定义组件)
|
|
97
|
-
values = form.getFieldsValue();
|
|
98
|
-
(0, _lodash.set)(values, rowName, record);
|
|
99
|
-
form.setFieldsValue(values);
|
|
100
|
-
setState({
|
|
101
|
-
editingKeys: nextEditingKeys
|
|
102
|
-
});
|
|
103
|
-
case 10:
|
|
104
|
-
case "end":
|
|
105
|
-
return _context.stop();
|
|
106
|
-
}
|
|
107
|
-
}, _callee);
|
|
108
|
-
}));
|
|
109
|
-
function save(_x) {
|
|
110
|
-
return _save.apply(this, arguments);
|
|
111
|
-
}
|
|
112
|
-
return save;
|
|
113
|
-
}(),
|
|
114
|
-
cancel: _ref3 => {
|
|
115
|
-
var name = _ref3.name,
|
|
116
|
-
record = _ref3.record,
|
|
117
|
-
editingKeys = _ref3.editingKeys,
|
|
118
|
-
setState = _ref3.setState,
|
|
119
|
-
form = _ref3.form,
|
|
120
|
-
virtualRowName = _ref3.virtualRowName,
|
|
121
|
-
virtualKey = _ref3.virtualKey,
|
|
122
|
-
rowName = _ref3.rowName;
|
|
123
|
-
var nextEditingKeys = editingKeys.filter(key => key !== record.rowKey);
|
|
124
|
-
// 保存后取消编辑状态,供validator做保存校验
|
|
125
|
-
if (nextEditingKeys !== null && nextEditingKeys !== void 0 && nextEditingKeys.length) {
|
|
126
|
-
record._isEditing = true;
|
|
127
|
-
} else {
|
|
128
|
-
delete record._isEditing;
|
|
129
|
-
}
|
|
130
|
-
setState({
|
|
131
|
-
editingKeys: nextEditingKeys
|
|
132
|
-
}); // 关闭编辑状态
|
|
133
|
-
// 取消分两种,一编辑取消,二添加取消
|
|
134
|
-
if (record._addFlag) {
|
|
135
|
-
(0, _tools.onDelete)({
|
|
136
|
-
name,
|
|
137
|
-
form,
|
|
138
|
-
virtualKey,
|
|
139
|
-
selectedRowKeys: [record.rowKey]
|
|
140
|
-
});
|
|
141
|
-
} else {
|
|
142
|
-
// 取消时使用主 form 原始行数据重置虚拟 form,避免编辑值残留
|
|
143
|
-
var originalRecord = form.getFieldValue(rowName);
|
|
144
|
-
var values = form.getFieldsValue();
|
|
145
|
-
(0, _lodash.set)(values, virtualRowName, originalRecord !== null && originalRecord !== void 0 ? originalRecord : record);
|
|
146
|
-
form.setFieldsValue(values);
|
|
147
|
-
}
|
|
148
|
-
},
|
|
149
|
-
delete: _ref4 => {
|
|
150
|
-
var name = _ref4.name,
|
|
151
|
-
record = _ref4.record,
|
|
152
|
-
editingKeys = _ref4.editingKeys,
|
|
153
|
-
setState = _ref4.setState,
|
|
154
|
-
form = _ref4.form,
|
|
155
|
-
virtualKey = _ref4.virtualKey,
|
|
156
|
-
onlyOneLineMsg = _ref4.onlyOneLineMsg;
|
|
157
|
-
// 单行编辑时,需要先保存,才能进行下面的编辑
|
|
158
|
-
if (virtualKey && editingKeys.length >= 1) {
|
|
159
|
-
_antd.message.warning(onlyOneLineMsg);
|
|
160
|
-
return false;
|
|
161
|
-
}
|
|
162
|
-
// 删除当前行数据
|
|
163
|
-
(0, _tools.onDelete)({
|
|
164
|
-
name,
|
|
165
|
-
form,
|
|
166
|
-
virtualKey,
|
|
167
|
-
selectedRowKeys: [record.rowKey]
|
|
168
|
-
});
|
|
169
|
-
if (virtualKey) {
|
|
170
|
-
// 关闭编辑状态
|
|
171
|
-
var nextEditingKeys = editingKeys.filter(key => key === record.rowKey);
|
|
172
|
-
setState({
|
|
173
|
-
editingKeys: nextEditingKeys
|
|
174
|
-
});
|
|
175
|
-
}
|
|
176
|
-
},
|
|
177
|
-
add: function () {
|
|
178
|
-
var _add = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(_ref5) {
|
|
179
|
-
var _tableRef$current;
|
|
180
|
-
var result, insertType, editingKeys, setState, form, name, virtualName, virtualKey, onlyOneLineMsg, tableRef, _ref5$prefixCls, prefixCls, page, handlePageChange, nextData, rowKey, addData, nextPageNum, nextEditingKeys, tableBody;
|
|
181
|
-
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
182
|
-
while (1) switch (_context4.prev = _context4.next) {
|
|
183
|
-
case 0:
|
|
184
|
-
result = _ref5.result, insertType = _ref5.insertType, editingKeys = _ref5.editingKeys, setState = _ref5.setState, form = _ref5.form, name = _ref5.name, virtualName = _ref5.virtualName, virtualKey = _ref5.virtualKey, onlyOneLineMsg = _ref5.onlyOneLineMsg, tableRef = _ref5.tableRef, _ref5$prefixCls = _ref5.prefixCls, prefixCls = _ref5$prefixCls === void 0 ? 'ant' : _ref5$prefixCls, page = _ref5.page, handlePageChange = _ref5.handlePageChange;
|
|
185
|
-
nextData = [...(form.getFieldValue(name) || [])]; // 单行编辑时,需要先保存,才能进行下面的编辑
|
|
186
|
-
if (!(virtualKey && editingKeys.length >= 1)) {
|
|
187
|
-
_context4.next = 5;
|
|
188
|
-
break;
|
|
189
|
-
}
|
|
190
|
-
_antd.message.warning(onlyOneLineMsg);
|
|
191
|
-
return _context4.abrupt("return", false);
|
|
192
|
-
case 5:
|
|
193
|
-
rowKey = (0, _tools.getRandom)(); // 添加新增对象数据
|
|
194
|
-
addData = _objectSpread(_objectSpread({}, typeof result === 'object' ? result : {}), {}, {
|
|
195
|
-
rowKey
|
|
196
|
-
}); // 单行编辑时,需要操作一下数据结构,判断是否第一次新增,以及是否是编辑状态
|
|
197
|
-
if (virtualKey) {
|
|
198
|
-
addData._addFlag = true;
|
|
199
|
-
addData._isEditing = true;
|
|
200
|
-
}
|
|
201
|
-
if (insertType === 'before') {
|
|
202
|
-
nextData.unshift(addData);
|
|
203
|
-
setTimeout( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
204
|
-
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
205
|
-
while (1) switch (_context2.prev = _context2.next) {
|
|
206
|
-
case 0:
|
|
207
|
-
handlePageChange(1, page.pageSize);
|
|
208
|
-
case 1:
|
|
209
|
-
case "end":
|
|
210
|
-
return _context2.stop();
|
|
211
|
-
}
|
|
212
|
-
}, _callee2);
|
|
213
|
-
})), 0);
|
|
214
|
-
} else {
|
|
215
|
-
nextData.push(addData);
|
|
216
|
-
nextPageNum = Math.ceil(_utils.tools.calc(nextData.length, '/', page.pageSize));
|
|
217
|
-
setTimeout( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
218
|
-
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
219
|
-
while (1) switch (_context3.prev = _context3.next) {
|
|
220
|
-
case 0:
|
|
221
|
-
handlePageChange(nextPageNum, page.pageSize);
|
|
222
|
-
case 1:
|
|
223
|
-
case "end":
|
|
224
|
-
return _context3.stop();
|
|
225
|
-
}
|
|
226
|
-
}, _callee3);
|
|
227
|
-
})), 0);
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
// 当单选情况下,存储正在编辑值
|
|
231
|
-
if (virtualKey) {
|
|
232
|
-
nextEditingKeys = [...editingKeys]; // 开启编辑状态
|
|
233
|
-
nextEditingKeys.push(rowKey);
|
|
234
|
-
form.setFieldValue(virtualName, nextData);
|
|
235
|
-
setState({
|
|
236
|
-
editingKeys: nextEditingKeys
|
|
237
|
-
});
|
|
238
|
-
}
|
|
239
|
-
form.setFieldValue(name, nextData);
|
|
240
|
-
tableBody = (_tableRef$current = tableRef.current) === null || _tableRef$current === void 0 || (_tableRef$current = _tableRef$current.children[0]) === null || _tableRef$current === void 0 ? void 0 : _tableRef$current.querySelector(`.${prefixCls}-table-body`);
|
|
241
|
-
if (tableBody) {
|
|
242
|
-
// 等待新行渲染完毕再读取 scrollHeight,确保能滚动到真正的底部
|
|
243
|
-
requestAnimationFrame(() => {
|
|
244
|
-
var _tableBody$scrollTo;
|
|
245
|
-
(_tableBody$scrollTo = tableBody.scrollTo) === null || _tableBody$scrollTo === void 0 || _tableBody$scrollTo.call(tableBody, {
|
|
246
|
-
top: insertType === 'before' ? 0 : tableBody.scrollHeight,
|
|
247
|
-
behavior: 'smooth'
|
|
248
|
-
});
|
|
249
|
-
});
|
|
250
|
-
}
|
|
251
|
-
if (!virtualKey) {
|
|
252
|
-
_context4.next = 16;
|
|
253
|
-
break;
|
|
254
|
-
}
|
|
255
|
-
_context4.next = 16;
|
|
256
|
-
return form.validateFields([name]);
|
|
257
|
-
case 16:
|
|
258
|
-
case "end":
|
|
259
|
-
return _context4.stop();
|
|
260
|
-
}
|
|
261
|
-
}, _callee4);
|
|
262
|
-
}));
|
|
263
|
-
function add(_x2) {
|
|
264
|
-
return _add.apply(this, arguments);
|
|
265
|
-
}
|
|
266
|
-
return add;
|
|
267
|
-
}(),
|
|
268
|
-
mulDelete: _ref8 => {
|
|
269
|
-
var form = _ref8.form,
|
|
270
|
-
name = _ref8.name,
|
|
271
|
-
virtualKey = _ref8.virtualKey,
|
|
272
|
-
setState = _ref8.setState,
|
|
273
|
-
selectedRowKeys = _ref8.selectedRowKeys,
|
|
274
|
-
_ref8$editingKeys = _ref8.editingKeys,
|
|
275
|
-
editingKeys = _ref8$editingKeys === void 0 ? [] : _ref8$editingKeys;
|
|
276
|
-
// 删除选中数据
|
|
277
|
-
(0, _tools.onDelete)({
|
|
278
|
-
name,
|
|
279
|
-
form,
|
|
280
|
-
virtualKey,
|
|
281
|
-
selectedRowKeys
|
|
282
|
-
});
|
|
283
|
-
var nextData = {
|
|
284
|
-
selectedRowKeys: [],
|
|
285
|
-
selectedRows: []
|
|
286
|
-
};
|
|
287
|
-
// 删除的选择数据包含单行编辑行时,清空可编辑key
|
|
288
|
-
if (virtualKey && selectedRowKeys.includes(editingKeys === null || editingKeys === void 0 ? void 0 : editingKeys[0])) {
|
|
289
|
-
nextData.editingKeys = [];
|
|
290
|
-
}
|
|
291
|
-
setState(nextData);
|
|
292
|
-
}
|
|
293
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { FormInstance } from 'antd';
|
|
2
|
-
export type DiffType = 'same' | 'add' | 'changed';
|
|
3
|
-
export interface DiffOriginalParams {
|
|
4
|
-
originalValue: any;
|
|
5
|
-
value: any;
|
|
6
|
-
form: FormInstance;
|
|
7
|
-
type?: string;
|
|
8
|
-
onDiff?: ({ originValue, originRecord, value, record, index, }: {
|
|
9
|
-
originValue: any;
|
|
10
|
-
originRecord: any;
|
|
11
|
-
value: any;
|
|
12
|
-
record: any;
|
|
13
|
-
index: number;
|
|
14
|
-
}) => DiffType | undefined;
|
|
15
|
-
/** 原始行数据 */
|
|
16
|
-
originRecord: any;
|
|
17
|
-
/** 当前行数据 */
|
|
18
|
-
record: any;
|
|
19
|
-
/** 当前行索引 */
|
|
20
|
-
index: number;
|
|
21
|
-
}
|
|
22
|
-
export declare const diffOriginal: (params: DiffOriginalParams) => DiffType;
|
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.diffOriginal = void 0;
|
|
7
|
-
var _lodash = require("lodash");
|
|
8
|
-
var _utils = require("@zat-design/utils");
|
|
9
|
-
var isEmpty = _utils.validate.isEmpty;
|
|
10
|
-
|
|
11
|
-
// 比较策略接口
|
|
12
|
-
|
|
13
|
-
// 数字类型标准化函数
|
|
14
|
-
var normalizeNumberValue = value => {
|
|
15
|
-
if (value === null || value === undefined || value === '') return null;
|
|
16
|
-
var num = Number(value);
|
|
17
|
-
return Number.isNaN(num) ? null : num;
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
// InputNumber 比较策略
|
|
21
|
-
var inputNumberStrategy = {
|
|
22
|
-
compare: (val1, val2) => {
|
|
23
|
-
var num1 = normalizeNumberValue(val1);
|
|
24
|
-
var num2 = normalizeNumberValue(val2);
|
|
25
|
-
return num1 === num2;
|
|
26
|
-
}
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
// ProNumberRange 比较策略
|
|
30
|
-
var proNumberRangeStrategy = {
|
|
31
|
-
compare: (val1, val2) => {
|
|
32
|
-
if (!Array.isArray(val1) || !Array.isArray(val2)) return false;
|
|
33
|
-
if (val1.length !== val2.length) return false;
|
|
34
|
-
return val1.every((item, index) => {
|
|
35
|
-
var num1 = normalizeNumberValue(item);
|
|
36
|
-
var num2 = normalizeNumberValue(val2[index]);
|
|
37
|
-
return num1 === num2;
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
// 数字类型处理函数
|
|
43
|
-
var handleNumberTypeDiff = params => {
|
|
44
|
-
var originalValue = params.originalValue,
|
|
45
|
-
value = params.value,
|
|
46
|
-
type = params.type;
|
|
47
|
-
var isEmptyVal = isEmpty(value);
|
|
48
|
-
var isEmptyOrg = isEmpty(originalValue);
|
|
49
|
-
|
|
50
|
-
// 都为空视为相等
|
|
51
|
-
if (isEmptyOrg && isEmptyVal) return 'same';
|
|
52
|
-
|
|
53
|
-
// 如果原始值为空 且当前有值的话 视为新增
|
|
54
|
-
if (isEmptyOrg && !isEmptyVal) return 'add';
|
|
55
|
-
|
|
56
|
-
// 根据类型选择对应的比较策略
|
|
57
|
-
var compareStrategy;
|
|
58
|
-
if (type === 'InputNumber') {
|
|
59
|
-
compareStrategy = inputNumberStrategy;
|
|
60
|
-
} else if (type === 'ProNumberRange') {
|
|
61
|
-
compareStrategy = proNumberRangeStrategy;
|
|
62
|
-
} else {
|
|
63
|
-
return 'changed'; // 未知类型视为已改变
|
|
64
|
-
}
|
|
65
|
-
return compareStrategy.compare(value, originalValue) ? 'same' : 'changed';
|
|
66
|
-
};
|
|
67
|
-
|
|
68
|
-
// 过滤对象中undefined字段
|
|
69
|
-
// 防止{a: '1'} {a: '1', b: undefined | null}被认为不相等
|
|
70
|
-
var filterObject = data => {
|
|
71
|
-
if (!(0, _lodash.isObject)(data) || data === null) return data;
|
|
72
|
-
|
|
73
|
-
// ['1', undefined] ['1', ''] 视为相等
|
|
74
|
-
if (Array.isArray(data)) {
|
|
75
|
-
// 数组中全是empty值的话 视为null
|
|
76
|
-
var isFillNull = true;
|
|
77
|
-
var arr = data.map(item => {
|
|
78
|
-
if (isEmpty(item)) {
|
|
79
|
-
return null;
|
|
80
|
-
}
|
|
81
|
-
isFillNull = false;
|
|
82
|
-
return item;
|
|
83
|
-
});
|
|
84
|
-
return isFillNull ? null : arr;
|
|
85
|
-
}
|
|
86
|
-
var resData = {};
|
|
87
|
-
Object.keys(data).forEach(key => {
|
|
88
|
-
if (!isEmpty(data[key])) {
|
|
89
|
-
resData[key] = data[key];
|
|
90
|
-
}
|
|
91
|
-
});
|
|
92
|
-
|
|
93
|
-
// 空对象视为null 比较时 null undefined {} [] '' 视为相等
|
|
94
|
-
if (!Object.keys(resData).length) return null;
|
|
95
|
-
return resData;
|
|
96
|
-
};
|
|
97
|
-
var diffOriginal = params => {
|
|
98
|
-
var originalValue = params.originalValue,
|
|
99
|
-
value = params.value,
|
|
100
|
-
onDiff = params.onDiff,
|
|
101
|
-
originRecord = params.originRecord,
|
|
102
|
-
record = params.record,
|
|
103
|
-
index = params.index,
|
|
104
|
-
type = params.type;
|
|
105
|
-
|
|
106
|
-
// 支持传入自定义比较事件
|
|
107
|
-
if ((0, _lodash.isFunction)(onDiff)) {
|
|
108
|
-
var diffRes = onDiff({
|
|
109
|
-
originValue: originalValue,
|
|
110
|
-
originRecord,
|
|
111
|
-
value,
|
|
112
|
-
record,
|
|
113
|
-
index
|
|
114
|
-
});
|
|
115
|
-
// 如果返回undefined走内置比较逻辑
|
|
116
|
-
if (diffRes !== undefined) {
|
|
117
|
-
if (typeof diffRes === 'boolean') {
|
|
118
|
-
return diffRes ? 'same' : 'changed';
|
|
119
|
-
}
|
|
120
|
-
return diffRes;
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
// 数字类型特殊处理
|
|
125
|
-
if (['InputNumber', 'ProNumberRange'].includes(type)) {
|
|
126
|
-
return handleNumberTypeDiff(params);
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
// 其他类型使用原有逻辑
|
|
130
|
-
var _value = filterObject(value);
|
|
131
|
-
var _originalValue = filterObject(originalValue);
|
|
132
|
-
var isEmptyVal = isEmpty(_value);
|
|
133
|
-
var isEmptyOrg = isEmpty(_originalValue);
|
|
134
|
-
|
|
135
|
-
// 都为空视为相等
|
|
136
|
-
if (isEmptyOrg && isEmptyVal) return 'same';
|
|
137
|
-
|
|
138
|
-
// 如果原始值为空 且当前有值的话 视为新增
|
|
139
|
-
if (isEmptyOrg && !isEmptyVal) return 'add';
|
|
140
|
-
return (0, _lodash.isEqual)(_value, _originalValue) ? 'same' : 'changed';
|
|
141
|
-
};
|
|
142
|
-
exports.diffOriginal = diffOriginal;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const getDefaultProps: (props: any) => any;
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.getDefaultProps = void 0;
|
|
7
|
-
var _lodash = require("lodash");
|
|
8
|
-
var defaultPropsMap = {
|
|
9
|
-
ProSelect: props => {
|
|
10
|
-
var fieldProps = props.fieldProps,
|
|
11
|
-
name = props.name,
|
|
12
|
-
namePath = props.namePath;
|
|
13
|
-
var _ref = fieldProps || {},
|
|
14
|
-
filterInList = _ref.filterInList;
|
|
15
|
-
var defaultProps = {};
|
|
16
|
-
|
|
17
|
-
// formList场景传入列表过滤时
|
|
18
|
-
if (filterInList && namePath && name) {
|
|
19
|
-
var _namePath = [...namePath].splice(2, namePath.length - 1);
|
|
20
|
-
defaultProps.shouldUpdate = (preValues, curValues) => {
|
|
21
|
-
var _get, _get$map, _get2, _get2$map;
|
|
22
|
-
var preListValue = (_get = (0, _lodash.get)(preValues, name)) === null || _get === void 0 || (_get$map = _get.map) === null || _get$map === void 0 ? void 0 : _get$map.call(_get, item => {
|
|
23
|
-
return (0, _lodash.get)(item, _namePath);
|
|
24
|
-
});
|
|
25
|
-
var curListValue = (_get2 = (0, _lodash.get)(curValues, name)) === null || _get2 === void 0 || (_get2$map = _get2.map) === null || _get2$map === void 0 ? void 0 : _get2$map.call(_get2, item => {
|
|
26
|
-
return (0, _lodash.get)(item, _namePath);
|
|
27
|
-
});
|
|
28
|
-
return !(0, _lodash.isEqual)(preListValue, curListValue);
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
return defaultProps;
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
var getDefaultProps = props => {
|
|
35
|
-
var _defaultPropsMap$type;
|
|
36
|
-
var type = props.type;
|
|
37
|
-
return (_defaultPropsMap$type = defaultPropsMap[type]) === null || _defaultPropsMap$type === void 0 ? void 0 : _defaultPropsMap$type.call(defaultPropsMap, props);
|
|
38
|
-
};
|
|
39
|
-
exports.getDefaultProps = getDefaultProps;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 编辑模式分为 多行和单行两种
|
|
3
|
-
* 单行模式下,render 分为component和viewRender两种,对应编辑和非编辑状态下,edit状态不对外
|
|
4
|
-
* 多行模式下component设置即可
|
|
5
|
-
* render不对外暴露formItem,能自定渲染的尽是输入组件或者显示组件本身
|
|
6
|
-
* @param columns 表格配置数据
|
|
7
|
-
* @param config
|
|
8
|
-
*/
|
|
9
|
-
export declare const transformColumns: (columns: any[], config: any) => any[];
|