@zat-design/sisyphus-react 4.2.0-beta.2 → 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.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 -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/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 -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,24 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
|
|
6
|
-
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); }
|
|
7
|
-
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
8
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
9
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
10
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
11
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
12
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
13
|
-
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
14
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
1
|
+
import _isString from "lodash/isString";
|
|
2
|
+
import _isNumber from "lodash/isNumber";
|
|
3
|
+
import _isEmpty from "lodash/isEmpty";
|
|
4
|
+
import _isFunction from "lodash/isFunction";
|
|
15
5
|
import { Space, Divider, Breadcrumb, Tooltip, Modal } from 'antd';
|
|
16
6
|
import React, { memo, useEffect, useState, useRef } from 'react';
|
|
17
7
|
import { tools } from '@zat-design/utils';
|
|
18
8
|
import classnames from 'classnames';
|
|
19
9
|
import dayjs from 'dayjs';
|
|
20
10
|
import { useToggle, useSize } from 'ahooks';
|
|
21
|
-
import { isFunction, isEmpty, isNumber, isString } from 'lodash';
|
|
22
11
|
import { ReactSVG } from 'react-svg';
|
|
23
12
|
import foldSvg from "../../../assets/arrow.svg";
|
|
24
13
|
import { Copy, ProBackBtn } from "./components";
|
|
@@ -26,62 +15,54 @@ import getEnumLabel from "../../../ProEnum/utils/getEnumLabel";
|
|
|
26
15
|
import locale from "../../../locale";
|
|
27
16
|
import { checkDescribeItemsHidden } from "./utils";
|
|
28
17
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
showShadow =
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
setBackState = _useState2[1];
|
|
60
|
-
var _useToggle = useToggle(collapsed),
|
|
61
|
-
_useToggle2 = _slicedToArray(_useToggle, 2),
|
|
62
|
-
fold = _useToggle2[0],
|
|
63
|
-
toggle = _useToggle2[1].toggle;
|
|
64
|
-
var ref = useRef(null);
|
|
65
|
-
var size = useSize(ref);
|
|
66
|
-
var _title = title;
|
|
18
|
+
const {
|
|
19
|
+
formatAmount
|
|
20
|
+
} = tools;
|
|
21
|
+
const ProHeader = props => {
|
|
22
|
+
const {
|
|
23
|
+
breadcrumbColumns,
|
|
24
|
+
actionRender,
|
|
25
|
+
describeColumns,
|
|
26
|
+
subDescribeColumns,
|
|
27
|
+
onBack,
|
|
28
|
+
className,
|
|
29
|
+
bodyOverFlowHidden = false,
|
|
30
|
+
fixedTop,
|
|
31
|
+
showBack = true,
|
|
32
|
+
showShadow = false,
|
|
33
|
+
zIndex = 98,
|
|
34
|
+
title,
|
|
35
|
+
autoBack = 2,
|
|
36
|
+
collapsed = true,
|
|
37
|
+
style,
|
|
38
|
+
isConfirmBack = false,
|
|
39
|
+
isConfirmBackModalProps = {}
|
|
40
|
+
} = props;
|
|
41
|
+
const [backState, setBackState] = useState(showBack);
|
|
42
|
+
const [fold, {
|
|
43
|
+
toggle
|
|
44
|
+
}] = useToggle(collapsed);
|
|
45
|
+
const ref = useRef(null);
|
|
46
|
+
const size = useSize(ref);
|
|
47
|
+
let _title = title;
|
|
67
48
|
|
|
68
49
|
// 面包屑配置数据源
|
|
69
|
-
|
|
50
|
+
const _breadcrumbColumns = breadcrumbColumns || [];
|
|
70
51
|
|
|
71
52
|
// 次级配置数据源
|
|
72
|
-
|
|
53
|
+
const _subDescribeColumns = subDescribeColumns || [];
|
|
73
54
|
useEffect(() => {
|
|
74
55
|
if (bodyOverFlowHidden) {
|
|
75
|
-
|
|
56
|
+
const bodyElement = document.querySelector('body');
|
|
76
57
|
bodyElement.style.overflow = 'hidden';
|
|
77
58
|
}
|
|
78
59
|
return () => {
|
|
79
|
-
|
|
60
|
+
const bodyElement = document.querySelector('body');
|
|
80
61
|
bodyElement.style.overflow = '';
|
|
81
62
|
};
|
|
82
63
|
}, [bodyOverFlowHidden]);
|
|
83
64
|
useEffect(() => {
|
|
84
|
-
|
|
65
|
+
const isNewPage = window.history.length;
|
|
85
66
|
// history的记录,默认2,代办新开页面
|
|
86
67
|
if (isNewPage <= autoBack) {
|
|
87
68
|
setBackState(false);
|
|
@@ -91,7 +72,7 @@ var ProHeader = props => {
|
|
|
91
72
|
/**
|
|
92
73
|
* 主级描述数据渲染
|
|
93
74
|
*/
|
|
94
|
-
|
|
75
|
+
const describeRender = describeData => {
|
|
95
76
|
if (!Array.isArray(describeData)) {
|
|
96
77
|
return null;
|
|
97
78
|
}
|
|
@@ -102,23 +83,23 @@ var ProHeader = props => {
|
|
|
102
83
|
'pro-header-describe-hidden': !fold
|
|
103
84
|
}),
|
|
104
85
|
children: describeData.map((item, index) => {
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
show =
|
|
109
|
-
tag
|
|
110
|
-
label
|
|
111
|
-
link
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
86
|
+
const {
|
|
87
|
+
value,
|
|
88
|
+
copyable,
|
|
89
|
+
show = true,
|
|
90
|
+
tag,
|
|
91
|
+
label,
|
|
92
|
+
link,
|
|
93
|
+
items = [],
|
|
94
|
+
width
|
|
95
|
+
} = item;
|
|
115
96
|
// show为false直接隐藏¸
|
|
116
97
|
if (show === false || !show) {
|
|
117
98
|
return null;
|
|
118
99
|
}
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
if (Array.isArray(params
|
|
100
|
+
const onlyTag = tag && !label && !value;
|
|
101
|
+
const tagRender = params => {
|
|
102
|
+
if (Array.isArray(params?.tag) && params?.tag.length) {
|
|
122
103
|
return /*#__PURE__*/_jsx(Space, {
|
|
123
104
|
size: 4,
|
|
124
105
|
children: params.tag.map((tagItem, index) => {
|
|
@@ -129,44 +110,44 @@ var ProHeader = props => {
|
|
|
129
110
|
})
|
|
130
111
|
});
|
|
131
112
|
}
|
|
132
|
-
return params
|
|
113
|
+
return params?.tag ? /*#__PURE__*/_jsx("div", {
|
|
133
114
|
className: "pro-header-tag",
|
|
134
|
-
children: params
|
|
115
|
+
children: params?.tag
|
|
135
116
|
}) : null;
|
|
136
117
|
};
|
|
137
118
|
|
|
138
119
|
/** 单行渲染 */
|
|
139
|
-
|
|
120
|
+
const valueRender = params => {
|
|
140
121
|
return /*#__PURE__*/_jsxs(Space, {
|
|
141
122
|
size: 4,
|
|
142
|
-
align: params
|
|
143
|
-
children: [params
|
|
123
|
+
align: params?.tag ? 'baseline' : 'center',
|
|
124
|
+
children: [params?.link ? /*#__PURE__*/_jsx("a", {
|
|
144
125
|
onClick: () => {
|
|
145
|
-
|
|
126
|
+
const newWindow = window.open(params.link);
|
|
146
127
|
newWindow.opener = null;
|
|
147
128
|
},
|
|
148
|
-
children: params
|
|
149
|
-
}) : params
|
|
129
|
+
children: params?.value
|
|
130
|
+
}) : params?.value, params?.copyable && _isString(params?.value) ? /*#__PURE__*/_jsx(Copy, {
|
|
150
131
|
text: params.value
|
|
151
132
|
}) : null, tagRender({
|
|
152
|
-
tag: params
|
|
133
|
+
tag: params?.tag
|
|
153
134
|
})]
|
|
154
135
|
});
|
|
155
136
|
};
|
|
156
137
|
|
|
157
138
|
/** 多行渲染 */
|
|
158
|
-
|
|
139
|
+
const itemsRender = () => {
|
|
159
140
|
// items配置是否超长,超长配置... + tip 提示
|
|
160
|
-
|
|
161
|
-
|
|
141
|
+
const itemsHidden = checkDescribeItemsHidden(ref?.current);
|
|
142
|
+
const result = /*#__PURE__*/_jsxs("div", {
|
|
162
143
|
ref: ref,
|
|
163
144
|
className: classnames({
|
|
164
145
|
'pro-header-describe-items': true,
|
|
165
146
|
'pro-header-describe-items-more': items.length >= 2
|
|
166
147
|
}),
|
|
167
|
-
children: [
|
|
148
|
+
children: [items?.length > 3 ? `共${items?.length}个,` : null, items.map((item, index) => {
|
|
168
149
|
return /*#__PURE__*/_jsxs("span", {
|
|
169
|
-
children: [valueRender(item),
|
|
150
|
+
children: [valueRender(item), items?.length !== index + 1 ? ' 、' : null]
|
|
170
151
|
}, index);
|
|
171
152
|
}), itemsHidden ? /*#__PURE__*/_jsx("span", {
|
|
172
153
|
className: "pro-header-describe-items-omit",
|
|
@@ -174,7 +155,7 @@ var ProHeader = props => {
|
|
|
174
155
|
}) : null]
|
|
175
156
|
});
|
|
176
157
|
if (itemsHidden) {
|
|
177
|
-
|
|
158
|
+
const tipResult = /*#__PURE__*/_jsx(_Fragment, {
|
|
178
159
|
children: items.map((item, index) => {
|
|
179
160
|
return /*#__PURE__*/_jsx("p", {
|
|
180
161
|
className: "pro-header-describe-items-tip-value",
|
|
@@ -193,9 +174,9 @@ var ProHeader = props => {
|
|
|
193
174
|
}
|
|
194
175
|
return result;
|
|
195
176
|
};
|
|
196
|
-
|
|
177
|
+
const tagCls = classnames({
|
|
197
178
|
'pro-header-only-tag': onlyTag,
|
|
198
|
-
'pro-header-describe-items-calc':
|
|
179
|
+
'pro-header-describe-items-calc': _isString(width) ? width.includes('calc') : false
|
|
199
180
|
});
|
|
200
181
|
return /*#__PURE__*/_jsx("li", {
|
|
201
182
|
className: tagCls,
|
|
@@ -209,7 +190,7 @@ var ProHeader = props => {
|
|
|
209
190
|
children: label
|
|
210
191
|
}) : null, /*#__PURE__*/_jsx("span", {
|
|
211
192
|
className: "pro-header-describe-value",
|
|
212
|
-
children: items
|
|
193
|
+
children: items?.length ? itemsRender() : /*#__PURE__*/_jsx("span", {
|
|
213
194
|
children: valueRender({
|
|
214
195
|
value,
|
|
215
196
|
copyable,
|
|
@@ -227,27 +208,26 @@ var ProHeader = props => {
|
|
|
227
208
|
/**
|
|
228
209
|
* 次级描述数据渲染
|
|
229
210
|
*/
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
type
|
|
234
|
-
valueType
|
|
235
|
-
label
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
code = describeData.code;
|
|
211
|
+
const subDescribeRender = describeData => {
|
|
212
|
+
const {
|
|
213
|
+
value,
|
|
214
|
+
type,
|
|
215
|
+
valueType,
|
|
216
|
+
label,
|
|
217
|
+
show = true,
|
|
218
|
+
precision = 2,
|
|
219
|
+
code
|
|
220
|
+
} = describeData;
|
|
241
221
|
// show为false直接隐藏
|
|
242
222
|
if (!show) {
|
|
243
223
|
return '';
|
|
244
224
|
}
|
|
245
|
-
|
|
225
|
+
let result;
|
|
246
226
|
switch (valueType || type) {
|
|
247
227
|
case 'thousandth':
|
|
248
228
|
case 'money':
|
|
249
229
|
// 千分位
|
|
250
|
-
result = value ||
|
|
230
|
+
result = value || _isNumber(value) ? formatAmount(value, precision) : '-';
|
|
251
231
|
break;
|
|
252
232
|
case 'enumName':
|
|
253
233
|
// 枚举-展示name
|
|
@@ -259,11 +239,11 @@ var ProHeader = props => {
|
|
|
259
239
|
break;
|
|
260
240
|
case 'date':
|
|
261
241
|
// 年月日
|
|
262
|
-
result = value ?
|
|
242
|
+
result = value ? dayjs(value)?.format('YYYY-MM-DD') : '-';
|
|
263
243
|
break;
|
|
264
244
|
case 'dateTime':
|
|
265
245
|
// 年月日 时分秒
|
|
266
|
-
result = value ?
|
|
246
|
+
result = value ? dayjs(value)?.format('YYYY-MM-DD HH:mm:ss') : '-';
|
|
267
247
|
break;
|
|
268
248
|
default:
|
|
269
249
|
result = String(value).includes('undefined') || !value ? '-' : value;
|
|
@@ -282,21 +262,20 @@ var ProHeader = props => {
|
|
|
282
262
|
/**
|
|
283
263
|
* 头部右侧按钮面板渲染
|
|
284
264
|
*/
|
|
285
|
-
|
|
265
|
+
const actionsRender = () => {
|
|
286
266
|
if (Array.isArray(actionRender) && actionRender.length) {
|
|
287
267
|
return /*#__PURE__*/_jsx(Space, {
|
|
288
268
|
separator: /*#__PURE__*/_jsx(Divider, {
|
|
289
269
|
orientation: "vertical"
|
|
290
270
|
}),
|
|
291
271
|
children: actionRender.map((item, index) => {
|
|
292
|
-
|
|
293
|
-
if (isFunction(item === null || item === void 0 ? void 0 : item.type)) {
|
|
272
|
+
if (_isFunction(item?.type)) {
|
|
294
273
|
return /*#__PURE__*/_jsx("div", {
|
|
295
274
|
children: item
|
|
296
275
|
}, index);
|
|
297
276
|
}
|
|
298
277
|
// 判断第一层dom节点为空
|
|
299
|
-
if (item
|
|
278
|
+
if (item?.type && !item?.props?.children) {
|
|
300
279
|
return null;
|
|
301
280
|
}
|
|
302
281
|
return /*#__PURE__*/_jsx("div", {
|
|
@@ -311,20 +290,20 @@ var ProHeader = props => {
|
|
|
311
290
|
/**
|
|
312
291
|
* 总结信息面板渲染
|
|
313
292
|
*/
|
|
314
|
-
|
|
293
|
+
const breadcrumbRender = () => {
|
|
315
294
|
if (Array.isArray(_breadcrumbColumns) && !_breadcrumbColumns.length) {
|
|
316
295
|
return [];
|
|
317
296
|
}
|
|
318
|
-
|
|
297
|
+
const list = _breadcrumbColumns?.filter(item => {
|
|
319
298
|
return item.type === 'breadcrumb';
|
|
320
299
|
});
|
|
321
300
|
return list.map((item, index) => {
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
301
|
+
const {
|
|
302
|
+
value,
|
|
303
|
+
show = true,
|
|
304
|
+
tag
|
|
305
|
+
} = item;
|
|
306
|
+
const tagRender = () => {
|
|
328
307
|
if (Array.isArray(tag) && tag.length) {
|
|
329
308
|
return /*#__PURE__*/_jsx(Space, {
|
|
330
309
|
size: 8,
|
|
@@ -347,7 +326,7 @@ var ProHeader = props => {
|
|
|
347
326
|
return null;
|
|
348
327
|
}
|
|
349
328
|
// 判断第一层dom节点为空
|
|
350
|
-
if (value
|
|
329
|
+
if (value?.type && !value?.props?.children) {
|
|
351
330
|
return null;
|
|
352
331
|
}
|
|
353
332
|
return {
|
|
@@ -363,11 +342,11 @@ var ProHeader = props => {
|
|
|
363
342
|
/**
|
|
364
343
|
* 头部左侧导航栏后业务信息
|
|
365
344
|
*/
|
|
366
|
-
|
|
345
|
+
const infoRender = () => {
|
|
367
346
|
if (!Array.isArray(_breadcrumbColumns)) {
|
|
368
347
|
return '';
|
|
369
348
|
}
|
|
370
|
-
|
|
349
|
+
const list = _breadcrumbColumns?.filter(item => {
|
|
371
350
|
return item.type !== 'breadcrumb';
|
|
372
351
|
});
|
|
373
352
|
if (!list.length) {
|
|
@@ -376,35 +355,34 @@ var ProHeader = props => {
|
|
|
376
355
|
return /*#__PURE__*/_jsx("ul", {
|
|
377
356
|
className: "pro-header-info",
|
|
378
357
|
children: list.map((item, index) => {
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
tag = item.tag;
|
|
358
|
+
const {
|
|
359
|
+
value,
|
|
360
|
+
type = 'info',
|
|
361
|
+
show = true,
|
|
362
|
+
width,
|
|
363
|
+
tag
|
|
364
|
+
} = item;
|
|
387
365
|
// show或者值不存在为false直接隐藏¸
|
|
388
366
|
if (!show || !value) {
|
|
389
367
|
return '';
|
|
390
368
|
}
|
|
391
369
|
// 判断第一层dom节点为空
|
|
392
|
-
if (value
|
|
370
|
+
if (value?.type && !value?.props?.children) {
|
|
393
371
|
return '';
|
|
394
372
|
}
|
|
395
373
|
// value为null或者undefined返回'-'
|
|
396
|
-
|
|
374
|
+
let val = String(value).includes('undefined') || !value ? '-' : value;
|
|
397
375
|
if (type === 'version' && val) {
|
|
398
376
|
val = `${locale.ProHeader.versionTitle}${val}`;
|
|
399
377
|
}
|
|
400
378
|
|
|
401
379
|
// 面包屑样式
|
|
402
|
-
|
|
380
|
+
const breadcrumbCls = classnames({
|
|
403
381
|
'breadcrumb-value': true,
|
|
404
382
|
omit: width
|
|
405
383
|
});
|
|
406
|
-
|
|
407
|
-
|
|
384
|
+
const valueRender = type => {
|
|
385
|
+
let valRender = /*#__PURE__*/_jsx("div", {
|
|
408
386
|
className: breadcrumbCls,
|
|
409
387
|
style: {
|
|
410
388
|
width
|
|
@@ -445,17 +423,17 @@ var ProHeader = props => {
|
|
|
445
423
|
})
|
|
446
424
|
});
|
|
447
425
|
};
|
|
448
|
-
|
|
426
|
+
const cls = classnames({
|
|
449
427
|
'pro-header': true,
|
|
450
428
|
'pro-header-fixed': fixedTop,
|
|
451
429
|
'pro-header-shadow': showShadow,
|
|
452
430
|
// 内部窗口滚动自带阴影场景
|
|
453
431
|
'pro-header-no-back': !backState,
|
|
454
|
-
'pro-header-has-describe': !
|
|
455
|
-
'pro-header-no-describe':
|
|
432
|
+
'pro-header-has-describe': !_isEmpty(_subDescribeColumns) || !_isEmpty(describeColumns) || !_isEmpty(describeColumns),
|
|
433
|
+
'pro-header-no-describe': _isEmpty(_subDescribeColumns) && _isEmpty(describeColumns) || _isEmpty(describeColumns),
|
|
456
434
|
[`${className}`]: className
|
|
457
435
|
});
|
|
458
|
-
if (title && !
|
|
436
|
+
if (title && !_isEmpty(_breadcrumbColumns)) {
|
|
459
437
|
console.error('warning: The title and the breadcrumbList cannot be used together');
|
|
460
438
|
}
|
|
461
439
|
|
|
@@ -467,7 +445,7 @@ var ProHeader = props => {
|
|
|
467
445
|
value: title
|
|
468
446
|
});
|
|
469
447
|
}
|
|
470
|
-
|
|
448
|
+
const onConfirm = () => {
|
|
471
449
|
if (!isConfirmBack) {
|
|
472
450
|
onBack && onBack();
|
|
473
451
|
if (!onBack) {
|
|
@@ -476,26 +454,31 @@ var ProHeader = props => {
|
|
|
476
454
|
return false;
|
|
477
455
|
}
|
|
478
456
|
// 处理 Modal.confirm 的 width 类型兼容性问题
|
|
479
|
-
|
|
480
|
-
width
|
|
481
|
-
restModalProps
|
|
482
|
-
|
|
457
|
+
const {
|
|
458
|
+
width,
|
|
459
|
+
...restModalProps
|
|
460
|
+
} = isConfirmBackModalProps || {};
|
|
461
|
+
Modal.confirm({
|
|
483
462
|
title: `${locale.ProHeader.confirmTitle}`,
|
|
484
463
|
okText: `${locale.ProHeader.confirm}`,
|
|
485
464
|
cancelText: `${locale.ProHeader.cancel}`,
|
|
486
465
|
onOk: () => {
|
|
487
466
|
onBack && onBack();
|
|
488
|
-
}
|
|
489
|
-
|
|
490
|
-
width
|
|
491
|
-
|
|
467
|
+
},
|
|
468
|
+
// 仅当 width 是 string 或 number 时才传递
|
|
469
|
+
...(width && (typeof width === 'string' || typeof width === 'number') ? {
|
|
470
|
+
width
|
|
471
|
+
} : {}),
|
|
472
|
+
...restModalProps
|
|
473
|
+
});
|
|
492
474
|
};
|
|
493
475
|
return /*#__PURE__*/_jsx("div", {
|
|
494
476
|
className: cls,
|
|
495
|
-
style:
|
|
477
|
+
style: {
|
|
478
|
+
...style,
|
|
496
479
|
top: fixedTop,
|
|
497
480
|
zIndex
|
|
498
|
-
}
|
|
481
|
+
},
|
|
499
482
|
children: _title ? /*#__PURE__*/_jsx("div", {
|
|
500
483
|
className: "pro-header-title",
|
|
501
484
|
children: _title
|
|
@@ -520,7 +503,7 @@ var ProHeader = props => {
|
|
|
520
503
|
className: "pro-header-right",
|
|
521
504
|
children: actionsRender()
|
|
522
505
|
})]
|
|
523
|
-
}), describeRender(describeColumns), !
|
|
506
|
+
}), describeRender(describeColumns), !_isEmpty(_subDescribeColumns) ? /*#__PURE__*/_jsxs("div", {
|
|
524
507
|
className: classnames({
|
|
525
508
|
'pro-header-nav': true,
|
|
526
509
|
'pro-header-nav-open': fold,
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
* 检查描述dom是否部分隐藏
|
|
3
3
|
* @param ele dom节点
|
|
4
4
|
*/
|
|
5
|
-
export
|
|
6
|
-
|
|
5
|
+
export const checkDescribeItemsHidden = ele => {
|
|
6
|
+
const childElement = ele;
|
|
7
7
|
if (!childElement) {
|
|
8
8
|
return false;
|
|
9
9
|
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
const element = childElement.parentNode.parentNode.parentNode.parentNode;
|
|
11
|
+
const itemsScrollWidth = element.scrollWidth;
|
|
12
|
+
const itemsClientWidth = element.clientWidth;
|
|
13
13
|
return itemsScrollWidth > itemsClientWidth;
|
|
14
14
|
};
|
|
@@ -1,34 +1,24 @@
|
|
|
1
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
4
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
5
|
-
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
6
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
1
|
import { useState, useCallback } from 'react';
|
|
8
2
|
import { Dropdown } from 'antd';
|
|
9
3
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
4
|
/**
|
|
11
5
|
* 右键菜单组件 - 兼容Antd 4.x和5.x
|
|
12
6
|
*/
|
|
13
|
-
function TabContextMenu(
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
29
|
-
visible = _useState2[0],
|
|
30
|
-
setVisible = _useState2[1];
|
|
31
|
-
var handleMenuClick = useCallback(key => {
|
|
7
|
+
function TabContextMenu({
|
|
8
|
+
tabId,
|
|
9
|
+
children,
|
|
10
|
+
closable = true,
|
|
11
|
+
onClose,
|
|
12
|
+
onCloseOthers,
|
|
13
|
+
onCloseRight,
|
|
14
|
+
onCloseAll,
|
|
15
|
+
menuItems: customMenuItems,
|
|
16
|
+
tabMenuClick,
|
|
17
|
+
tab,
|
|
18
|
+
tabs = []
|
|
19
|
+
}) {
|
|
20
|
+
const [visible, setVisible] = useState(false);
|
|
21
|
+
const handleMenuClick = useCallback(key => {
|
|
32
22
|
setVisible(false);
|
|
33
23
|
|
|
34
24
|
// 优先调用自定义回调
|
|
@@ -61,7 +51,7 @@ function TabContextMenu(_ref) {
|
|
|
61
51
|
}, [tabId, closable, onClose, onCloseOthers, onCloseRight, onCloseAll, tabMenuClick, tab, tabs]);
|
|
62
52
|
|
|
63
53
|
// 默认右键菜单配置 - 统一使用items方式(antd 4.20+都支持)
|
|
64
|
-
|
|
54
|
+
const defaultMenuItems = [{
|
|
65
55
|
key: 'close',
|
|
66
56
|
label: '关闭',
|
|
67
57
|
disabled: !closable
|
|
@@ -78,16 +68,15 @@ function TabContextMenu(_ref) {
|
|
|
78
68
|
|
|
79
69
|
// 合并自定义菜单项和默认菜单项
|
|
80
70
|
// 如果提供了自定义菜单项,则追加到默认菜单项后面;否则使用默认菜单项
|
|
81
|
-
|
|
71
|
+
const menuItems = customMenuItems && customMenuItems.length > 0 ? [...defaultMenuItems, {
|
|
82
72
|
type: 'divider'
|
|
83
73
|
}, ...customMenuItems] : defaultMenuItems;
|
|
84
74
|
return /*#__PURE__*/_jsx(Dropdown, {
|
|
85
75
|
menu: {
|
|
86
76
|
items: menuItems,
|
|
87
|
-
onClick:
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
}
|
|
77
|
+
onClick: ({
|
|
78
|
+
key
|
|
79
|
+
}) => handleMenuClick(key)
|
|
91
80
|
},
|
|
92
81
|
trigger: ['contextMenu'],
|
|
93
82
|
open: visible,
|