@zat-design/sisyphus-react 3.0.16-beta.4 → 3.1.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 +7 -7
- package/dist/index.esm.css +1552 -932
- package/es/ProAction/index.d.ts +7 -0
- package/es/ProAction/index.js +220 -0
- package/es/ProAction/index.less +7 -0
- package/es/ProAction/propsType.d.ts +38 -0
- package/es/ProConfigProvider/index.d.ts +5 -4
- package/es/ProConfigProvider/index.js +9 -5
- package/es/ProDownload/index.d.ts +4 -2
- package/es/ProDownload/index.js +71 -58
- package/es/ProDownload/propsType.d.ts +18 -6
- package/es/ProDownload/style/index.less +7 -0
- package/es/ProDownload/utils.d.ts +55 -0
- package/es/ProDownload/{DownloadHelper.js → utils.js} +96 -74
- package/es/ProDrawerForm/components/ProDrawer/index.js +53 -42
- package/es/ProDrawerForm/components/ProModal/index.js +49 -30
- package/es/ProDrawerForm/index.js +43 -19
- package/es/ProDrawerForm/propsType.d.ts +7 -3
- package/es/ProDrawerForm/style/index.less +33 -23
- package/es/ProEditLabel/components/RenderProForm.js +25 -19
- package/es/ProEditLabel/index.js +23 -16
- package/es/ProEditLabel/propsType.d.ts +3 -3
- package/es/ProEditLabel/style/index.less +10 -12
- package/es/ProEditTable/components/ActionButton/index.d.ts +1 -2
- package/es/ProEditTable/components/ActionButton/index.js +83 -45
- package/es/ProEditTable/components/DndWrapper/index.js +44 -32
- package/es/ProEditTable/components/RenderField/index.d.ts +1 -2
- package/es/ProEditTable/components/RenderField/index.js +158 -134
- package/es/ProEditTable/components/RenderToolbar/index.d.ts +1 -2
- package/es/ProEditTable/components/RenderToolbar/index.js +42 -31
- package/es/ProEditTable/components/Summary/index.d.ts +1 -2
- package/es/ProEditTable/components/Summary/index.js +21 -14
- package/es/ProEditTable/components/Validator/index.d.ts +3 -3
- package/es/ProEditTable/components/Validator/index.js +19 -15
- package/es/ProEditTable/index.js +126 -69
- package/es/ProEditTable/propsType.d.ts +47 -14
- package/es/ProEditTable/style/index.less +143 -53
- package/es/ProEditTable/utils/config.d.ts +2 -3
- package/es/ProEditTable/utils/config.js +53 -40
- package/es/ProEditTable/utils/index.d.ts +1 -2
- package/es/ProEditTable/utils/index.js +97 -82
- package/es/ProEditTable/utils/transform.d.ts +2 -2
- package/es/ProEditTable/utils/transform.js +1 -1
- package/es/ProEnum/components/Tag.d.ts +7 -0
- package/es/ProEnum/components/Tag.js +40 -0
- package/es/ProEnum/hooks/useEnum.d.ts +21 -0
- package/es/ProEnum/{useEnum.js → hooks/useEnum.js} +15 -19
- package/es/ProEnum/hooks/useEnumRequest.d.ts +4 -0
- package/es/ProEnum/hooks/useEnumRequest.js +287 -0
- package/es/ProEnum/index.d.ts +4 -4
- package/es/ProEnum/index.js +85 -40
- package/es/ProEnum/propsType.d.ts +17 -6
- package/es/ProEnum/propsType.js +6 -0
- package/es/ProEnum/style/index.less +23 -0
- package/es/ProEnum/utils/eventCenter.d.ts +1 -0
- package/es/ProEnum/utils/eventCenter.js +39 -0
- package/es/ProEnum/utils/getEnumLabel.d.ts +2 -0
- package/es/ProEnum/utils/getEnumLabel.js +81 -0
- package/{lib/ProEnum/utils.d.ts → es/ProEnum/utils/index.d.ts} +1 -1
- package/es/ProForm/components/Container.js +14 -10
- package/es/ProForm/components/FormFooter/index.d.ts +1 -0
- package/es/ProForm/components/FormFooter/index.js +50 -14
- package/es/ProForm/components/FormFooter/propsType.d.ts +3 -1
- package/es/ProForm/components/base/Checkbox/index.d.ts +1 -1
- package/es/ProForm/components/base/Checkbox/index.js +18 -13
- package/es/ProForm/components/base/DatePicker/index.d.ts +6 -5
- package/es/ProForm/components/base/DatePicker/index.js +16 -15
- package/es/ProForm/components/base/Input/index.d.ts +1 -2
- package/es/ProForm/components/base/Input/index.js +9 -7
- package/es/ProForm/components/base/InputNumber/index.d.ts +1 -1
- package/es/ProForm/components/base/InputNumber/index.js +96 -46
- package/es/ProForm/components/base/ProCascader/index.d.ts +14 -0
- package/es/ProForm/components/base/ProCascader/index.js +72 -0
- package/es/ProForm/components/base/Radio/index.js +13 -11
- package/es/ProForm/components/base/RangePicker/index.d.ts +4 -3
- package/es/ProForm/components/base/RangePicker/index.js +16 -11
- package/es/ProForm/components/base/Select/index.d.ts +1 -0
- package/es/ProForm/components/base/Select/index.js +18 -11
- package/es/ProForm/components/base/Switch/index.js +10 -7
- package/es/ProForm/components/base/SwitchCheckbox/index.js +25 -17
- package/es/ProForm/components/base/SwitchCheckbox/style/index.less +2 -3
- package/es/ProForm/components/base/TextArea/index.d.ts +2 -1
- package/es/ProForm/components/base/TextArea/index.js +19 -11
- package/es/ProForm/components/base/TextArea/index.less +11 -0
- package/es/ProForm/components/base/TimePicker/index.d.ts +13 -0
- package/es/ProForm/components/base/TimePicker/index.js +42 -0
- package/es/ProForm/components/base/TimePicker/style/index.less +3 -0
- package/es/ProForm/components/combination/Container/index.d.ts +4 -0
- package/es/ProForm/components/combination/Container/index.js +58 -0
- package/es/ProForm/components/combination/Container/propsType.d.ts +10 -0
- package/es/ProForm/components/combination/Container/style/index.less +37 -0
- package/{lib/ProForm/components/base → es/ProForm/components/combination}/FormList/components/ActionButton.d.ts +6 -3
- package/es/ProForm/components/combination/FormList/components/ActionButton.js +242 -0
- package/es/ProForm/components/combination/FormList/components/BlockFields.d.ts +19 -0
- package/es/ProForm/components/{base → combination}/FormList/components/BlockFields.js +34 -30
- package/es/ProForm/components/{base → combination}/FormList/components/BlockTitle.d.ts +2 -4
- package/es/ProForm/components/{base → combination}/FormList/components/BlockTitle.js +6 -4
- package/es/ProForm/components/{base → combination}/FormList/components/LineFields.d.ts +7 -4
- package/es/ProForm/components/combination/FormList/components/LineFields.js +85 -0
- package/{lib/ProForm/components/base → es/ProForm/components/combination}/FormList/components/ToolbarButton.d.ts +3 -3
- package/es/ProForm/components/combination/FormList/components/ToolbarButton.js +107 -0
- package/es/ProForm/components/combination/FormList/index.d.ts +4 -0
- package/es/ProForm/components/combination/FormList/index.js +129 -0
- package/es/ProForm/components/combination/FormList/propsType.d.ts +62 -0
- package/es/ProForm/components/combination/FormList/style/index.less +71 -0
- package/es/ProForm/components/combination/Group/index.d.ts +4 -0
- package/es/ProForm/components/combination/Group/index.js +71 -0
- package/es/ProForm/components/combination/Group/propsType.d.ts +25 -0
- package/es/ProForm/components/combination/Group/style/index.less +107 -0
- package/es/ProForm/components/combination/Group/utils.d.ts +10 -0
- package/es/ProForm/components/combination/Group/utils.js +49 -0
- package/es/ProForm/components/combination/ProAddressBar/index.d.ts +2 -2
- package/es/ProForm/components/combination/ProAddressBar/index.js +73 -53
- package/es/ProForm/components/combination/ProAddressBar/propsType.d.ts +3 -0
- package/es/ProForm/components/combination/ProCombination/index.js +43 -37
- package/es/ProForm/components/combination/ProModalSelect/index.d.ts +1 -1
- package/es/ProForm/components/combination/ProModalSelect/index.js +163 -100
- package/es/ProForm/components/combination/ProModalSelect/propsType.d.ts +2 -2
- package/es/ProForm/components/combination/ProModalSelect/style/index.less +28 -9
- package/es/ProForm/components/combination/ProNumberRange/index.d.ts +1 -2
- package/es/ProForm/components/combination/ProNumberRange/index.js +60 -53
- package/es/ProForm/components/combination/ProNumberRange/propsType.d.ts +4 -0
- package/es/ProForm/components/combination/ProRangeLimit/index.d.ts +3 -2
- package/es/ProForm/components/combination/ProRangeLimit/index.js +42 -32
- package/es/ProForm/components/combination/ProTimeLimit/index.d.ts +1 -1
- package/es/ProForm/components/combination/ProTimeLimit/index.js +40 -47
- package/es/ProForm/components/combination/ProTimeLimit/style/index.less +2 -1
- package/es/ProForm/components/index.d.ts +7 -3
- package/es/ProForm/components/index.js +7 -3
- package/es/ProForm/components/old/EnumSelect/index.js +63 -55
- package/es/ProForm/components/old/EnumSelect/interface.d.ts +1 -1
- package/es/ProForm/components/old/InputRange/index.d.ts +1 -2
- package/es/ProForm/components/old/InputRange/index.js +45 -44
- package/es/ProForm/components/old/InputWithSuffix/index.d.ts +1 -2
- package/es/ProForm/components/old/InputWithSuffix/index.js +22 -20
- package/es/ProForm/components/old/InputWithSuffix/propsTypes.d.ts +1 -1
- package/es/ProForm/components/old/ProAddress/index.d.ts +3 -3
- package/es/ProForm/components/old/ProAddress/index.js +79 -67
- package/es/ProForm/components/old/ProCertNo/index.d.ts +2 -2
- package/es/ProForm/components/old/ProCertNo/index.js +34 -29
- package/es/ProForm/components/old/ProCertNo/propsType.d.ts +1 -1
- package/es/ProForm/components/old/ProCertValidity/index.d.ts +2 -2
- package/es/ProForm/components/old/ProCertValidity/index.js +40 -34
- package/es/ProForm/components/old/ProCertValidity/propsType.d.ts +2 -2
- package/es/ProForm/components/old/ProRangeBox/index.d.ts +2 -2
- package/es/ProForm/components/old/ProRangeBox/index.js +65 -57
- package/es/ProForm/components/render/Render.js +157 -96
- package/es/ProForm/components/render/RenderFields.d.ts +3 -1
- package/es/ProForm/components/render/RenderFields.js +54 -29
- package/es/ProForm/components/render/propsType.d.ts +64 -8
- package/es/ProForm/components/render/propsType.js +0 -6
- package/es/ProForm/index.js +102 -66
- package/es/ProForm/propsType.d.ts +7 -2
- package/es/ProForm/style/index.less +77 -75
- package/es/ProForm/utils/index.d.ts +27 -2
- package/es/ProForm/utils/index.js +139 -31
- package/es/ProForm/utils/rulesCreator.d.ts +1 -1
- package/es/ProForm/utils/rulesCreator.js +12 -2
- package/es/ProForm/utils/transformNames.d.ts +1 -1
- package/es/ProForm/utils/transformValue.js +6 -9
- package/es/ProForm/utils/useChanged.js +6 -2
- package/es/ProForm/utils/useFieldProps.d.ts +4 -0
- package/es/ProForm/utils/useFieldProps.js +6 -0
- package/es/ProForm/utils/useForm.js +32 -48
- package/es/ProForm/utils/useRules.d.ts +16 -0
- package/es/ProForm/utils/useRules.js +62 -0
- package/es/ProForm/utils/useShouldUpdate.d.ts +3 -1
- package/es/ProForm/utils/useShouldUpdate.js +23 -22
- package/es/ProForm/utils/valueType.js +1 -1
- package/es/ProIcon/index.js +26 -26
- package/es/ProIcon/style/index.less +15 -0
- package/es/ProIcon/symbolIcon.js +6 -6
- package/es/ProLayout/components/Layout/Header/index.js +20 -13
- package/es/ProLayout/components/Layout/Header/style/index.less +6 -6
- package/es/ProLayout/components/Layout/Icon/Icon.js +8 -6
- package/es/ProLayout/components/Layout/Menu/FoldMenu/index.d.ts +1 -1
- package/es/ProLayout/components/Layout/Menu/FoldMenu/index.js +83 -72
- package/es/ProLayout/components/Layout/Menu/FoldMenu/style/index.less +8 -8
- package/es/ProLayout/components/Layout/Menu/OpenMenu/index.d.ts +1 -2
- package/es/ProLayout/components/Layout/Menu/OpenMenu/index.js +76 -50
- package/es/ProLayout/components/Layout/Menu/OpenMenu/propsType.d.ts +2 -0
- package/es/ProLayout/components/Layout/Menu/OpenMenu/style/index.less +23 -12
- package/es/ProLayout/components/Layout/Menu/SideMenu/index.js +22 -17
- package/es/ProLayout/components/Layout/Menu/SideMenu/style/index.less +5 -4
- package/es/ProLayout/components/Layout/Menu/index.js +36 -34
- package/es/ProLayout/components/Layout/Menu/style/index.less +22 -3
- package/es/ProLayout/components/Layout/Notice/index.js +15 -13
- package/es/ProLayout/components/Layout/Notice/style/index.less +3 -3
- package/es/ProLayout/components/ProCollapse/PropTypes.d.ts +1 -1
- package/es/ProLayout/components/ProCollapse/index.d.ts +1 -2
- package/es/ProLayout/components/ProCollapse/index.js +57 -43
- package/es/ProLayout/components/ProCollapse/style/index.less +10 -4
- package/es/ProLayout/components/ProFooter/index.d.ts +2 -2
- package/es/ProLayout/components/ProFooter/index.js +10 -6
- package/es/ProLayout/components/ProFooter/style/index.less +2 -2
- package/es/ProLayout/components/ProHeader/PropTypes.d.ts +30 -7
- package/es/ProLayout/components/ProHeader/components/Copy/index.d.ts +1 -2
- package/es/ProLayout/components/ProHeader/components/Copy/index.js +4 -7
- package/es/ProLayout/components/ProHeader/index.d.ts +1 -1
- package/es/ProLayout/components/ProHeader/index.js +253 -158
- package/es/ProLayout/components/ProHeader/style/index.less +29 -14
- package/es/ProLayout/index.d.ts +10 -6
- package/es/ProLayout/index.js +44 -26
- package/es/ProLayout/propTypes.d.ts +2 -0
- package/es/ProLayout/style/index.less +156 -1
- package/es/ProSelect/components/AdaptiveTooltip.d.ts +4 -0
- package/es/ProSelect/components/AdaptiveTooltip.js +46 -0
- package/es/ProSelect/index.d.ts +2 -1
- package/es/ProSelect/index.js +85 -59
- package/es/ProSelect/index.less +8 -0
- package/es/ProSelect/propsType.d.ts +19 -9
- package/es/ProStep/components/Anchor/index.d.ts +1 -2
- package/es/ProStep/components/Anchor/index.js +45 -34
- package/es/ProStep/components/Item/index.d.ts +2 -6
- package/es/ProStep/components/Item/index.js +23 -7
- package/es/ProStep/components/Step/index.d.ts +1 -2
- package/es/ProStep/components/Step/index.js +19 -14
- package/es/ProStep/index.d.ts +5 -9
- package/es/ProStep/index.js +94 -20
- package/es/ProStep/propsType.d.ts +11 -1
- package/es/ProStep/style/index.less +10 -24
- package/es/ProTable/components/RenderColumn/index.d.ts +14 -0
- package/es/ProTable/components/RenderColumn/index.js +75 -0
- package/es/ProTable/components/ResizableLine/index.d.ts +1 -2
- package/es/ProTable/components/ResizableLine/index.js +2 -2
- package/es/ProTable/components/TableResizable/index.d.ts +1 -2
- package/es/ProTable/components/TableResizable/index.js +16 -12
- package/es/ProTable/components/TooltipTitle/index.d.ts +11 -0
- package/es/ProTable/components/TooltipTitle/index.js +23 -0
- package/es/ProTable/index.d.ts +3 -3
- package/es/ProTable/index.js +137 -112
- package/es/ProTable/propsType.d.ts +40 -26
- package/es/ProTable/style/index.less +66 -32
- package/es/ProTable/useAntdTable.d.ts +11 -7
- package/es/ProTable/useAntdTable.js +107 -58
- package/es/ProTable/utils.d.ts +8 -0
- package/es/ProTable/utils.js +167 -110
- package/es/ProTabs/components/Card/index.d.ts +1 -2
- package/es/ProTabs/components/Card/index.js +45 -17
- package/es/ProTabs/index.d.ts +1 -1
- package/es/ProTabs/index.js +38 -27
- package/es/ProTabs/propType.d.ts +5 -0
- package/es/ProTabs/style/index.less +15 -3
- package/es/ProThemeTools/component/PrdTools/index.d.ts +1 -2
- package/es/ProThemeTools/component/PrdTools/index.js +214 -154
- package/es/ProThemeTools/component/PrdTools/style/index.less +3 -3
- package/es/ProThemeTools/index.d.ts +1 -2
- package/es/ProThemeTools/index.js +51 -55
- package/es/ProThemeTools/propsType.d.ts +10 -2
- package/es/ProThemeTools/utils/index.d.ts +5 -0
- package/es/ProThemeTools/utils/index.js +27 -0
- package/es/ProTooltip/index.d.ts +1 -2
- package/es/ProTooltip/index.js +232 -46
- package/es/ProTooltip/propsType.d.ts +3 -0
- package/es/ProTooltip/style/index.less +19 -8
- package/es/ProTree/components/CloseIcon.d.ts +3 -0
- package/es/ProTree/components/CloseIcon.js +30 -0
- package/es/ProTree/components/List.d.ts +17 -0
- package/es/ProTree/components/List.js +68 -0
- package/es/ProTree/components/ProTree.d.ts +4 -0
- package/es/ProTree/components/ProTree.js +446 -0
- package/es/ProTree/components/SearchTitle.d.ts +9 -0
- package/es/ProTree/components/SearchTitle.js +42 -0
- package/es/ProTree/components/Tree.d.ts +27 -0
- package/es/ProTree/components/Tree.js +344 -0
- package/es/ProTree/components/index.d.ts +4 -0
- package/es/ProTree/components/index.js +5 -0
- package/es/ProTree/index.d.ts +3 -0
- package/es/ProTree/index.js +25 -0
- package/es/ProTree/propsType.d.ts +217 -0
- package/es/ProTree/propsType.js +1 -0
- package/es/ProTree/style/index.less +289 -0
- package/es/ProTree/utils.d.ts +37 -0
- package/es/ProTree/utils.js +183 -0
- package/es/ProTreeModal/components/Cascader.d.ts +14 -0
- package/es/ProTreeModal/components/Cascader.js +99 -0
- package/es/ProTreeModal/components/CloseIcon.d.ts +2 -2
- package/es/ProTreeModal/components/CloseIcon.js +25 -20
- package/es/ProTreeModal/components/List.d.ts +11 -3
- package/es/ProTreeModal/components/List.js +184 -36
- package/es/ProTreeModal/components/SearchTitle.d.ts +3 -3
- package/es/ProTreeModal/components/SearchTitle.js +16 -9
- package/es/{ProTransferModal/components/SortableItem/index.d.ts → ProTreeModal/components/SortableItem.d.ts} +1 -0
- package/es/ProTreeModal/components/SortableItem.js +60 -0
- package/es/ProTreeModal/components/Tree.d.ts +14 -4
- package/es/ProTreeModal/components/Tree.js +165 -94
- package/es/ProTreeModal/components/Trigger.d.ts +5 -2
- package/es/ProTreeModal/components/Trigger.js +46 -21
- package/es/ProTreeModal/components/index.d.ts +1 -0
- package/es/ProTreeModal/components/index.js +2 -1
- package/es/ProTreeModal/index.d.ts +2 -2
- package/es/ProTreeModal/index.js +513 -146
- package/es/ProTreeModal/propsType.d.ts +71 -14
- package/es/ProTreeModal/style/index.less +231 -50
- package/es/ProTreeModal/utils.d.ts +26 -14
- package/es/ProTreeModal/utils.js +103 -40
- package/es/ProTreeSelect/index.d.ts +1 -1
- package/es/ProTreeSelect/index.js +157 -72
- package/es/ProTreeSelect/propsType.d.ts +11 -9
- package/es/ProTreeSelect/style/index.less +94 -90
- package/es/ProUpload/components/ButtonRender.d.ts +18 -0
- package/es/ProUpload/components/ButtonRender.js +71 -0
- package/es/ProUpload/components/DragRender.d.ts +20 -0
- package/es/ProUpload/components/DragRender.js +179 -0
- package/es/ProUpload/components/DraggableUploadListItem.d.ts +2 -0
- package/es/ProUpload/components/DraggableUploadListItem.js +29 -0
- package/es/ProUpload/components/Example.d.ts +10 -0
- package/es/ProUpload/components/Example.js +40 -0
- package/{lib/ProUpload → es/ProUpload/components}/FileItem.d.ts +2 -2
- package/es/ProUpload/components/FileItem.js +212 -0
- package/es/ProUpload/components/ImageRender.d.ts +18 -0
- package/es/ProUpload/components/ImageRender.js +267 -0
- package/es/ProUpload/index.js +183 -301
- package/es/ProUpload/propsType.d.ts +61 -7
- package/es/ProUpload/style/fileItem.less +126 -138
- package/es/ProUpload/style/index.less +185 -115
- package/es/ProUpload/uitls.d.ts +3 -0
- package/es/ProUpload/uitls.js +14 -0
- package/es/ProUtils/utils/index.js +1 -1
- package/es/ProViewer/index.d.ts +1 -1
- package/es/ProViewer/index.js +35 -29
- package/es/ProWaterMark/index.js +9 -7
- package/es/assets/delete.svg +1 -1
- package/es/{ProUpload/style → assets}/download.svg +1 -1
- package/es/assets/input-search.svg +11 -0
- package/es/global.less +2 -2
- package/es/index.d.ts +2 -3
- package/es/index.js +4 -4
- package/es/old/ProBackBtn/index.js +6 -5
- package/es/old/ProCertValidity/index.d.ts +3 -3
- package/es/old/ProCertValidity/index.js +70 -65
- package/es/old/ProCertValidity/propsType.d.ts +2 -2
- package/es/old/ProEditableTable/index.d.ts +1 -1
- package/es/old/ProEditableTable/index.js +90 -68
- package/es/old/ProEditableTable/propsType.d.ts +3 -3
- package/es/old/ProEditableTable/utils.js +141 -125
- package/es/style/components.less +3 -4
- package/es/style/theme/antd.less +11 -5
- package/es/style/theme/index.less +80 -161
- package/es/style/theme/tokens.less +88 -0
- package/es/tokens.d.ts +83 -0
- package/es/tokens.js +2 -3
- package/lib/ProAction/index.d.ts +7 -0
- package/lib/ProAction/index.js +224 -0
- package/lib/ProAction/index.less +7 -0
- package/lib/ProAction/propsType.d.ts +38 -0
- package/lib/ProConfigProvider/index.d.ts +5 -4
- package/lib/ProConfigProvider/index.js +11 -10
- package/lib/ProDownload/index.d.ts +4 -2
- package/lib/ProDownload/index.js +73 -60
- package/lib/ProDownload/propsType.d.ts +18 -6
- package/lib/ProDownload/style/index.less +7 -0
- package/lib/ProDownload/utils.d.ts +55 -0
- package/lib/ProDownload/{DownloadHelper.js → utils.js} +98 -78
- package/lib/ProDrawerForm/components/ProDrawer/index.js +54 -44
- package/lib/ProDrawerForm/components/ProModal/index.js +49 -31
- package/lib/ProDrawerForm/index.js +44 -21
- package/lib/ProDrawerForm/propsType.d.ts +7 -3
- package/lib/ProDrawerForm/style/index.less +33 -23
- package/lib/ProDrawerForm/utils/index.js +2 -3
- package/lib/ProEditLabel/components/RenderProForm.js +26 -22
- package/lib/ProEditLabel/index.js +24 -18
- package/lib/ProEditLabel/propsType.d.ts +3 -3
- package/lib/ProEditLabel/style/index.less +10 -12
- package/lib/ProEditLabel/utils/index.js +2 -3
- package/lib/ProEditTable/components/ActionButton/index.d.ts +1 -2
- package/lib/ProEditTable/components/ActionButton/index.js +84 -47
- package/lib/ProEditTable/components/DndWrapper/index.js +46 -36
- package/lib/ProEditTable/components/RenderField/index.d.ts +1 -2
- package/lib/ProEditTable/components/RenderField/index.js +158 -135
- package/lib/ProEditTable/components/RenderToolbar/index.d.ts +1 -2
- package/lib/ProEditTable/components/RenderToolbar/index.js +43 -33
- package/lib/ProEditTable/components/Summary/index.d.ts +1 -2
- package/lib/ProEditTable/components/Summary/index.js +22 -16
- package/lib/ProEditTable/components/Validator/index.d.ts +3 -3
- package/lib/ProEditTable/components/Validator/index.js +20 -18
- package/lib/ProEditTable/index.js +124 -71
- package/lib/ProEditTable/propsType.d.ts +47 -14
- package/lib/ProEditTable/style/index.less +143 -53
- package/lib/ProEditTable/utils/config.d.ts +2 -3
- package/lib/ProEditTable/utils/config.js +61 -55
- package/lib/ProEditTable/utils/index.d.ts +1 -2
- package/lib/ProEditTable/utils/index.js +98 -84
- package/lib/ProEditTable/utils/tools.js +7 -13
- package/lib/ProEditTable/utils/transform.d.ts +2 -2
- package/lib/ProEditTable/utils/transform.js +3 -4
- package/lib/ProEnum/components/Tag.d.ts +7 -0
- package/lib/ProEnum/components/Tag.js +47 -0
- package/lib/ProEnum/hooks/useEnum.d.ts +21 -0
- package/lib/ProEnum/{useEnum.js → hooks/useEnum.js} +18 -24
- package/lib/ProEnum/hooks/useEnumRequest.d.ts +4 -0
- package/lib/ProEnum/hooks/useEnumRequest.js +294 -0
- package/lib/ProEnum/index.d.ts +4 -4
- package/lib/ProEnum/index.js +86 -42
- package/lib/ProEnum/propsType.d.ts +17 -6
- package/lib/ProEnum/propsType.js +7 -1
- package/lib/ProEnum/style/index.less +23 -0
- package/lib/ProEnum/utils/eventCenter.d.ts +1 -0
- package/lib/ProEnum/utils/eventCenter.js +42 -0
- package/lib/ProEnum/utils/getEnumLabel.d.ts +2 -0
- package/lib/ProEnum/utils/getEnumLabel.js +88 -0
- package/{es/ProEnum/utils.d.ts → lib/ProEnum/utils/index.d.ts} +1 -1
- package/lib/ProForm/components/Container.js +15 -12
- package/lib/ProForm/components/FormFooter/index.d.ts +1 -0
- package/lib/ProForm/components/FormFooter/index.js +52 -18
- package/lib/ProForm/components/FormFooter/propsType.d.ts +3 -1
- package/lib/ProForm/components/base/Checkbox/index.d.ts +1 -1
- package/lib/ProForm/components/base/Checkbox/index.js +19 -15
- package/lib/ProForm/components/base/DatePicker/index.d.ts +6 -5
- package/lib/ProForm/components/base/DatePicker/index.js +18 -18
- package/lib/ProForm/components/base/Input/index.d.ts +1 -2
- package/lib/ProForm/components/base/Input/index.js +11 -10
- package/lib/ProForm/components/base/InputNumber/index.d.ts +1 -1
- package/lib/ProForm/components/base/InputNumber/index.js +98 -50
- package/lib/ProForm/components/base/ProCascader/index.d.ts +14 -0
- package/lib/ProForm/components/base/ProCascader/index.js +78 -0
- package/lib/ProForm/components/base/Radio/index.js +14 -13
- package/lib/ProForm/components/base/RangePicker/index.d.ts +4 -3
- package/lib/ProForm/components/base/RangePicker/index.js +13 -11
- package/lib/ProForm/components/base/Select/index.d.ts +1 -0
- package/lib/ProForm/components/base/Select/index.js +20 -14
- package/lib/ProForm/components/base/Switch/index.js +12 -10
- package/lib/ProForm/components/base/SwitchCheckbox/index.js +26 -20
- package/lib/ProForm/components/base/SwitchCheckbox/style/index.less +2 -3
- package/lib/ProForm/components/base/TextArea/index.d.ts +2 -1
- package/lib/ProForm/components/base/TextArea/index.js +21 -14
- package/lib/ProForm/components/base/TextArea/index.less +11 -0
- package/lib/ProForm/components/base/TimePicker/index.d.ts +13 -0
- package/lib/ProForm/components/base/TimePicker/index.js +48 -0
- package/lib/ProForm/components/base/TimePicker/style/index.less +3 -0
- package/lib/ProForm/components/combination/Container/index.d.ts +4 -0
- package/lib/ProForm/components/combination/Container/index.js +65 -0
- package/lib/ProForm/components/combination/Container/propsType.d.ts +10 -0
- package/lib/ProForm/components/combination/Container/style/index.less +37 -0
- package/{es/ProForm/components/base → lib/ProForm/components/combination}/FormList/components/ActionButton.d.ts +6 -3
- package/lib/ProForm/components/combination/FormList/components/ActionButton.js +243 -0
- package/lib/ProForm/components/combination/FormList/components/BlockFields.d.ts +19 -0
- package/lib/ProForm/components/{base → combination}/FormList/components/BlockFields.js +35 -33
- package/lib/ProForm/components/{base → combination}/FormList/components/BlockTitle.d.ts +2 -4
- package/lib/ProForm/components/{base → combination}/FormList/components/BlockTitle.js +7 -6
- package/lib/ProForm/components/{base → combination}/FormList/components/LineFields.d.ts +7 -4
- package/lib/ProForm/components/combination/FormList/components/LineFields.js +91 -0
- package/{es/ProForm/components/base → lib/ProForm/components/combination}/FormList/components/ToolbarButton.d.ts +3 -3
- package/lib/ProForm/components/combination/FormList/components/ToolbarButton.js +111 -0
- package/lib/ProForm/components/combination/FormList/index.d.ts +4 -0
- package/lib/ProForm/components/combination/FormList/index.js +135 -0
- package/lib/ProForm/components/combination/FormList/propsType.d.ts +62 -0
- package/lib/ProForm/components/combination/FormList/style/index.less +71 -0
- package/lib/ProForm/components/{base → combination}/FormList/utils.js +2 -3
- package/lib/ProForm/components/combination/Group/index.d.ts +4 -0
- package/lib/ProForm/components/combination/Group/index.js +75 -0
- package/lib/ProForm/components/combination/Group/propsType.d.ts +25 -0
- package/lib/ProForm/components/combination/Group/style/index.less +107 -0
- package/lib/ProForm/components/combination/Group/utils.d.ts +10 -0
- package/lib/ProForm/components/combination/Group/utils.js +56 -0
- package/lib/ProForm/components/combination/ProAddressBar/index.d.ts +2 -2
- package/lib/ProForm/components/combination/ProAddressBar/index.js +75 -57
- package/lib/ProForm/components/combination/ProAddressBar/propsType.d.ts +3 -0
- package/lib/ProForm/components/combination/ProCombination/index.js +46 -43
- package/lib/ProForm/components/combination/ProModalSelect/hooks/useRequestList.js +1 -2
- package/lib/ProForm/components/combination/ProModalSelect/index.d.ts +1 -1
- package/lib/ProForm/components/combination/ProModalSelect/index.js +161 -99
- package/lib/ProForm/components/combination/ProModalSelect/propsType.d.ts +2 -2
- package/lib/ProForm/components/combination/ProModalSelect/style/index.less +28 -9
- package/lib/ProForm/components/combination/ProNumberRange/index.d.ts +1 -2
- package/lib/ProForm/components/combination/ProNumberRange/index.js +61 -55
- package/lib/ProForm/components/combination/ProNumberRange/propsType.d.ts +4 -0
- package/lib/ProForm/components/combination/ProRangeLimit/index.d.ts +3 -2
- package/lib/ProForm/components/combination/ProRangeLimit/index.js +44 -36
- package/lib/ProForm/components/combination/ProTimeLimit/hooks/useControlled.js +1 -2
- package/lib/ProForm/components/combination/ProTimeLimit/index.d.ts +1 -1
- package/lib/ProForm/components/combination/ProTimeLimit/index.js +41 -50
- package/lib/ProForm/components/combination/ProTimeLimit/style/index.less +2 -1
- package/lib/ProForm/components/index.d.ts +7 -3
- package/lib/ProForm/components/index.js +40 -13
- package/lib/ProForm/components/old/EnumSelect/index.js +64 -58
- package/lib/ProForm/components/old/EnumSelect/interface.d.ts +1 -1
- package/lib/ProForm/components/old/InputRange/index.d.ts +1 -2
- package/lib/ProForm/components/old/InputRange/index.js +46 -47
- package/lib/ProForm/components/old/InputWithSuffix/index.d.ts +1 -2
- package/lib/ProForm/components/old/InputWithSuffix/index.js +23 -22
- package/lib/ProForm/components/old/InputWithSuffix/propsTypes.d.ts +1 -1
- package/lib/ProForm/components/old/ProAddress/index.d.ts +3 -3
- package/lib/ProForm/components/old/ProAddress/index.js +81 -72
- package/lib/ProForm/components/old/ProCertNo/index.d.ts +2 -2
- package/lib/ProForm/components/old/ProCertNo/index.js +36 -34
- package/lib/ProForm/components/old/ProCertNo/propsType.d.ts +1 -1
- package/lib/ProForm/components/old/ProCertValidity/index.d.ts +2 -2
- package/lib/ProForm/components/old/ProCertValidity/index.js +39 -38
- package/lib/ProForm/components/old/ProCertValidity/propsType.d.ts +2 -2
- package/lib/ProForm/components/old/ProRangeBox/index.d.ts +2 -2
- package/lib/ProForm/components/old/ProRangeBox/index.js +65 -57
- package/lib/ProForm/components/render/Render.js +152 -95
- package/lib/ProForm/components/render/RenderFields.d.ts +3 -1
- package/lib/ProForm/components/render/RenderFields.js +54 -30
- package/lib/ProForm/components/render/propsType.d.ts +64 -8
- package/lib/ProForm/components/render/propsType.js +1 -7
- package/lib/ProForm/index.js +101 -66
- package/lib/ProForm/propsType.d.ts +7 -2
- package/lib/ProForm/propsType.js +1 -2
- package/lib/ProForm/style/index.less +77 -75
- package/lib/ProForm/utils/contrastOriginal.js +2 -3
- package/lib/ProForm/utils/index.d.ts +27 -2
- package/lib/ProForm/utils/index.js +154 -61
- package/lib/ProForm/utils/rulesCreator.d.ts +1 -1
- package/lib/ProForm/utils/rulesCreator.js +15 -5
- package/lib/ProForm/utils/transformNames.d.ts +1 -1
- package/lib/ProForm/utils/transformNames.js +1 -2
- package/lib/ProForm/utils/transformValue.js +7 -12
- package/lib/ProForm/utils/useChanged.js +8 -5
- package/lib/ProForm/utils/useFieldProps.d.ts +4 -0
- package/lib/ProForm/utils/useFieldProps.js +13 -0
- package/lib/ProForm/utils/useForm.js +32 -49
- package/lib/ProForm/utils/useRules.d.ts +16 -0
- package/lib/ProForm/utils/useRules.js +69 -0
- package/lib/ProForm/utils/useShouldUpdate.d.ts +3 -1
- package/lib/ProForm/utils/useShouldUpdate.js +23 -23
- package/lib/ProForm/utils/valueType.js +3 -4
- package/lib/ProIcon/index.js +27 -29
- package/lib/ProIcon/style/index.less +15 -0
- package/lib/ProIcon/symbolIcon.js +6 -6
- package/lib/ProLayout/components/Layout/Header/index.js +21 -15
- package/lib/ProLayout/components/Layout/Header/style/index.less +6 -6
- package/lib/ProLayout/components/Layout/Icon/Icon.js +9 -9
- package/lib/ProLayout/components/Layout/Icon/index.js +1 -2
- package/lib/ProLayout/components/Layout/Menu/FoldMenu/index.d.ts +1 -1
- package/lib/ProLayout/components/Layout/Menu/FoldMenu/index.js +84 -74
- package/lib/ProLayout/components/Layout/Menu/FoldMenu/style/index.less +8 -8
- package/lib/ProLayout/components/Layout/Menu/OpenMenu/index.d.ts +1 -2
- package/lib/ProLayout/components/Layout/Menu/OpenMenu/index.js +78 -54
- package/lib/ProLayout/components/Layout/Menu/OpenMenu/propsType.d.ts +2 -0
- package/lib/ProLayout/components/Layout/Menu/OpenMenu/style/index.less +23 -12
- package/lib/ProLayout/components/Layout/Menu/SideMenu/index.js +23 -20
- package/lib/ProLayout/components/Layout/Menu/SideMenu/style/index.less +5 -4
- package/lib/ProLayout/components/Layout/Menu/index.js +37 -36
- package/lib/ProLayout/components/Layout/Menu/style/index.less +22 -3
- package/lib/ProLayout/components/Layout/Notice/index.js +16 -15
- package/lib/ProLayout/components/Layout/Notice/style/index.less +3 -3
- package/lib/ProLayout/components/ProCollapse/PropTypes.d.ts +1 -1
- package/lib/ProLayout/components/ProCollapse/index.d.ts +1 -2
- package/lib/ProLayout/components/ProCollapse/index.js +58 -45
- package/lib/ProLayout/components/ProCollapse/style/index.less +10 -4
- package/lib/ProLayout/components/ProFooter/index.d.ts +2 -2
- package/lib/ProLayout/components/ProFooter/index.js +11 -9
- package/lib/ProLayout/components/ProFooter/style/index.less +2 -2
- package/lib/ProLayout/components/ProHeader/PropTypes.d.ts +30 -7
- package/lib/ProLayout/components/ProHeader/components/Copy/index.d.ts +1 -2
- package/lib/ProLayout/components/ProHeader/components/Copy/index.js +5 -9
- package/lib/ProLayout/components/ProHeader/index.d.ts +1 -1
- package/lib/ProLayout/components/ProHeader/index.js +251 -161
- package/lib/ProLayout/components/ProHeader/style/index.less +29 -14
- package/lib/ProLayout/index.d.ts +10 -6
- package/lib/ProLayout/index.js +45 -30
- package/lib/ProLayout/propTypes.d.ts +2 -0
- package/lib/ProLayout/style/index.less +156 -1
- package/lib/ProLayout/utils/index.js +5 -9
- package/lib/ProSelect/components/AdaptiveTooltip.d.ts +4 -0
- package/lib/ProSelect/components/AdaptiveTooltip.js +52 -0
- package/lib/ProSelect/index.d.ts +2 -1
- package/lib/ProSelect/index.js +88 -62
- package/lib/ProSelect/index.less +8 -0
- package/lib/ProSelect/propsType.d.ts +19 -9
- package/lib/ProStep/components/Anchor/index.d.ts +1 -2
- package/lib/ProStep/components/Anchor/index.js +47 -38
- package/lib/ProStep/components/Item/index.d.ts +2 -6
- package/lib/ProStep/components/Item/index.js +25 -10
- package/lib/ProStep/components/Listener/index.js +2 -3
- package/lib/ProStep/components/Step/index.d.ts +1 -2
- package/lib/ProStep/components/Step/index.js +21 -18
- package/lib/ProStep/index.d.ts +5 -9
- package/lib/ProStep/index.js +97 -27
- package/lib/ProStep/propsType.d.ts +11 -1
- package/lib/ProStep/style/index.less +10 -24
- package/lib/ProStep/utils/index.js +2 -4
- package/lib/ProTable/components/RenderColumn/index.d.ts +14 -0
- package/lib/ProTable/components/RenderColumn/index.js +81 -0
- package/lib/ProTable/components/ResizableLine/index.d.ts +1 -2
- package/lib/ProTable/components/ResizableLine/index.js +3 -5
- package/lib/ProTable/components/TableResizable/index.d.ts +1 -2
- package/lib/ProTable/components/TableResizable/index.js +18 -16
- package/lib/ProTable/components/TooltipTitle/index.d.ts +11 -0
- package/lib/ProTable/components/TooltipTitle/index.js +29 -0
- package/lib/ProTable/index.d.ts +3 -3
- package/lib/ProTable/index.js +141 -120
- package/lib/ProTable/propsType.d.ts +40 -26
- package/lib/ProTable/style/index.less +66 -32
- package/lib/ProTable/useAntdTable.d.ts +11 -7
- package/lib/ProTable/useAntdTable.js +106 -59
- package/lib/ProTable/utils.d.ts +8 -0
- package/lib/ProTable/utils.js +169 -113
- package/lib/ProTabs/components/Card/index.d.ts +1 -2
- package/lib/ProTabs/components/Card/index.js +42 -20
- package/lib/ProTabs/index.d.ts +1 -1
- package/lib/ProTabs/index.js +39 -30
- package/lib/ProTabs/propType.d.ts +5 -0
- package/lib/ProTabs/style/index.less +15 -3
- package/lib/ProThemeTools/component/PrdTools/index.d.ts +1 -2
- package/lib/ProThemeTools/component/PrdTools/index.js +215 -157
- package/lib/ProThemeTools/component/PrdTools/style/index.less +3 -3
- package/lib/ProThemeTools/index.d.ts +1 -2
- package/lib/ProThemeTools/index.js +51 -57
- package/lib/ProThemeTools/propsType.d.ts +10 -2
- package/lib/ProThemeTools/utils/index.d.ts +5 -0
- package/lib/ProThemeTools/utils/index.js +32 -9
- package/lib/ProTooltip/index.d.ts +1 -2
- package/lib/ProTooltip/index.js +231 -47
- package/lib/ProTooltip/propsType.d.ts +3 -0
- package/lib/ProTooltip/style/index.less +19 -8
- package/lib/ProTree/components/CloseIcon.d.ts +3 -0
- package/lib/ProTree/components/CloseIcon.js +37 -0
- package/lib/ProTree/components/List.d.ts +17 -0
- package/lib/ProTree/components/List.js +74 -0
- package/lib/ProTree/components/ProTree.d.ts +4 -0
- package/lib/ProTree/components/ProTree.js +446 -0
- package/lib/ProTree/components/SearchTitle.d.ts +9 -0
- package/lib/ProTree/components/SearchTitle.js +47 -0
- package/lib/ProTree/components/Tree.d.ts +27 -0
- package/lib/ProTree/components/Tree.js +349 -0
- package/lib/ProTree/components/index.d.ts +4 -0
- package/lib/ProTree/components/index.js +34 -0
- package/lib/ProTree/index.d.ts +3 -0
- package/lib/ProTree/index.js +32 -0
- package/lib/ProTree/propsType.d.ts +217 -0
- package/lib/ProTree/propsType.js +5 -0
- package/lib/ProTree/style/index.less +289 -0
- package/lib/ProTree/utils.d.ts +37 -0
- package/lib/ProTree/utils.js +195 -0
- package/lib/ProTreeModal/components/Cascader.d.ts +14 -0
- package/lib/ProTreeModal/components/Cascader.js +105 -0
- package/lib/ProTreeModal/components/CloseIcon.d.ts +2 -2
- package/lib/ProTreeModal/components/CloseIcon.js +26 -22
- package/lib/ProTreeModal/components/List.d.ts +11 -3
- package/lib/ProTreeModal/components/List.js +181 -37
- package/lib/ProTreeModal/components/SearchTitle.d.ts +3 -3
- package/lib/ProTreeModal/components/SearchTitle.js +17 -12
- package/lib/{ProTransferModal/components/SortableItem/index.d.ts → ProTreeModal/components/SortableItem.d.ts} +1 -0
- package/lib/{ProTransferModal/components/SortableItem/index.js → ProTreeModal/components/SortableItem.js} +29 -26
- package/lib/ProTreeModal/components/Tree.d.ts +14 -4
- package/lib/ProTreeModal/components/Tree.js +164 -95
- package/lib/ProTreeModal/components/Trigger.d.ts +5 -2
- package/lib/ProTreeModal/components/Trigger.js +47 -23
- package/lib/ProTreeModal/components/index.d.ts +1 -0
- package/lib/ProTreeModal/components/index.js +8 -1
- package/lib/ProTreeModal/index.d.ts +2 -2
- package/lib/ProTreeModal/index.js +507 -146
- package/lib/ProTreeModal/propsType.d.ts +71 -14
- package/lib/ProTreeModal/style/index.less +231 -50
- package/lib/ProTreeModal/utils.d.ts +26 -14
- package/lib/ProTreeModal/utils.js +107 -43
- package/lib/ProTreeSelect/index.d.ts +1 -1
- package/lib/ProTreeSelect/index.js +159 -79
- package/lib/ProTreeSelect/propsType.d.ts +11 -9
- package/lib/ProTreeSelect/style/index.less +94 -90
- package/lib/ProUpload/components/ButtonRender.d.ts +18 -0
- package/lib/ProUpload/components/ButtonRender.js +75 -0
- package/lib/ProUpload/components/DragRender.d.ts +20 -0
- package/lib/ProUpload/components/DragRender.js +185 -0
- package/lib/ProUpload/components/DraggableUploadListItem.d.ts +2 -0
- package/lib/ProUpload/components/DraggableUploadListItem.js +36 -0
- package/lib/ProUpload/components/Example.d.ts +10 -0
- package/lib/ProUpload/components/Example.js +47 -0
- package/{es/ProUpload → lib/ProUpload/components}/FileItem.d.ts +2 -2
- package/lib/ProUpload/components/FileItem.js +215 -0
- package/lib/ProUpload/components/ImageRender.d.ts +18 -0
- package/lib/ProUpload/components/ImageRender.js +265 -0
- package/lib/ProUpload/index.js +185 -298
- package/lib/ProUpload/propsType.d.ts +61 -7
- package/lib/ProUpload/style/fileItem.less +126 -138
- package/lib/ProUpload/style/index.less +185 -115
- package/lib/ProUpload/uitls.d.ts +3 -0
- package/lib/ProUpload/uitls.js +20 -0
- package/lib/ProUtils/utils/index.js +3 -4
- package/lib/ProViewer/index.d.ts +1 -1
- package/lib/ProViewer/index.js +36 -31
- package/lib/ProWaterMark/index.js +10 -9
- package/lib/assets/delete.svg +1 -1
- package/lib/{ProUpload/style → assets}/download.svg +1 -1
- package/lib/assets/input-search.svg +11 -0
- package/lib/global.less +2 -2
- package/lib/index.d.ts +2 -3
- package/lib/index.js +21 -25
- package/lib/old/ProBackBtn/index.js +7 -8
- package/lib/old/ProCertValidity/index.d.ts +3 -3
- package/lib/old/ProCertValidity/index.js +68 -68
- package/lib/old/ProCertValidity/propsType.d.ts +2 -2
- package/lib/old/ProEditableTable/index.d.ts +1 -1
- package/lib/old/ProEditableTable/index.js +91 -71
- package/lib/old/ProEditableTable/propsType.d.ts +3 -3
- package/lib/old/ProEditableTable/utils.js +147 -136
- package/lib/style/components.less +3 -4
- package/lib/style/theme/antd.less +11 -5
- package/lib/style/theme/index.less +80 -161
- package/lib/style/theme/tokens.less +88 -0
- package/lib/tokens.d.ts +83 -0
- package/lib/tokens.js +6 -3
- package/package.json +18 -12
- package/typings.d.ts +16 -5
- package/es/ProDownload/DownloadHelper.d.ts +0 -32
- package/es/ProEnum/getEnumLabel.d.ts +0 -3
- package/es/ProEnum/getEnumLabel.js +0 -62
- package/es/ProEnum/useEnum.d.ts +0 -14
- package/es/ProEnum/useEnumRequest.d.ts +0 -3
- package/es/ProEnum/useEnumRequest.js +0 -227
- package/es/ProForm/components/base/FormList/components/ActionButton.js +0 -169
- package/es/ProForm/components/base/FormList/components/BlockFields.d.ts +0 -16
- package/es/ProForm/components/base/FormList/components/LineFields.js +0 -46
- package/es/ProForm/components/base/FormList/components/ToolbarButton.js +0 -79
- package/es/ProForm/components/base/FormList/index.d.ts +0 -44
- package/es/ProForm/components/base/FormList/index.js +0 -99
- package/es/ProForm/components/base/FormList/style/index.less +0 -39
- package/es/ProForm/components/combination/ProTimeLimit/hooks/useTransformDate.d.ts +0 -12
- package/es/ProForm/components/combination/ProTimeLimit/hooks/useTransformDate.js +0 -36
- package/es/ProForm/components/old/CertNo/index.d.ts +0 -19
- package/es/ProForm/components/old/CertNo/index.js +0 -63
- package/es/ProForm/components/old/CertNo/propsType.d.ts +0 -13
- package/es/ProLayout/images/pack.png +0 -0
- package/es/ProTransferModal/components/SortableItem/index.js +0 -56
- package/es/ProTransferModal/index.d.ts +0 -4
- package/es/ProTransferModal/index.js +0 -338
- package/es/ProTransferModal/propsType.d.ts +0 -34
- package/es/ProTransferModal/style/index.less +0 -169
- package/es/ProTreeModal/data/datasource.d.ts +0 -5
- package/es/ProTreeModal/data/datasource.js +0 -17
- package/es/ProTreeModal/data/mock.d.ts +0 -9
- package/es/ProTreeModal/data/mock.js +0 -39
- package/es/ProUpload/Example.d.ts +0 -7
- package/es/ProUpload/Example.js +0 -40
- package/es/ProUpload/FileItem.js +0 -207
- package/es/ProUpload/style/delete.svg +0 -1
- package/es/old/ProCustomColumn/LeftBody.d.ts +0 -4
- package/es/old/ProCustomColumn/LeftBody.js +0 -206
- package/es/old/ProCustomColumn/RightBody.d.ts +0 -9
- package/es/old/ProCustomColumn/RightBody.js +0 -145
- package/es/old/ProCustomColumn/index.d.ts +0 -4
- package/es/old/ProCustomColumn/index.js +0 -165
- package/es/old/ProCustomColumn/propsType.d.ts +0 -39
- package/es/old/ProCustomColumn/style/LeftBody.less +0 -74
- package/es/old/ProCustomColumn/style/RightBody.less +0 -25
- package/es/old/ProCustomColumn/style/index.less +0 -88
- package/es/old/ProEnumSelectModal/hooks/useRequestList.d.ts +0 -32
- package/es/old/ProEnumSelectModal/hooks/useRequestList.js +0 -110
- package/es/old/ProEnumSelectModal/index.d.ts +0 -12
- package/es/old/ProEnumSelectModal/index.js +0 -222
- package/es/old/ProEnumSelectModal/propsType.d.ts +0 -22
- package/es/old/ProEnumSelectModal/style/index.less +0 -98
- package/lib/ProDownload/DownloadHelper.d.ts +0 -32
- package/lib/ProEnum/getEnumLabel.d.ts +0 -3
- package/lib/ProEnum/getEnumLabel.js +0 -70
- package/lib/ProEnum/useEnum.d.ts +0 -14
- package/lib/ProEnum/useEnumRequest.d.ts +0 -3
- package/lib/ProEnum/useEnumRequest.js +0 -236
- package/lib/ProForm/components/base/FormList/components/ActionButton.js +0 -173
- package/lib/ProForm/components/base/FormList/components/BlockFields.d.ts +0 -16
- package/lib/ProForm/components/base/FormList/components/LineFields.js +0 -53
- package/lib/ProForm/components/base/FormList/components/ToolbarButton.js +0 -85
- package/lib/ProForm/components/base/FormList/index.d.ts +0 -44
- package/lib/ProForm/components/base/FormList/index.js +0 -107
- package/lib/ProForm/components/base/FormList/style/index.less +0 -39
- package/lib/ProForm/components/combination/ProTimeLimit/hooks/useTransformDate.d.ts +0 -12
- package/lib/ProForm/components/combination/ProTimeLimit/hooks/useTransformDate.js +0 -44
- package/lib/ProForm/components/old/CertNo/index.d.ts +0 -19
- package/lib/ProForm/components/old/CertNo/index.js +0 -69
- package/lib/ProForm/components/old/CertNo/propsType.d.ts +0 -13
- package/lib/ProLayout/images/pack.png +0 -0
- package/lib/ProTransferModal/index.d.ts +0 -4
- package/lib/ProTransferModal/index.js +0 -334
- package/lib/ProTransferModal/propsType.d.ts +0 -34
- package/lib/ProTransferModal/style/index.less +0 -169
- package/lib/ProTreeModal/data/datasource.d.ts +0 -5
- package/lib/ProTreeModal/data/datasource.js +0 -24
- package/lib/ProTreeModal/data/mock.d.ts +0 -9
- package/lib/ProTreeModal/data/mock.js +0 -47
- package/lib/ProUpload/Example.d.ts +0 -7
- package/lib/ProUpload/Example.js +0 -50
- package/lib/ProUpload/FileItem.js +0 -216
- package/lib/ProUpload/style/delete.svg +0 -1
- package/lib/old/ProCustomColumn/LeftBody.d.ts +0 -4
- package/lib/old/ProCustomColumn/LeftBody.js +0 -212
- package/lib/old/ProCustomColumn/RightBody.d.ts +0 -9
- package/lib/old/ProCustomColumn/RightBody.js +0 -150
- package/lib/old/ProCustomColumn/index.d.ts +0 -4
- package/lib/old/ProCustomColumn/index.js +0 -171
- package/lib/old/ProCustomColumn/propsType.d.ts +0 -39
- package/lib/old/ProCustomColumn/style/LeftBody.less +0 -74
- package/lib/old/ProCustomColumn/style/RightBody.less +0 -25
- package/lib/old/ProCustomColumn/style/index.less +0 -88
- package/lib/old/ProEnumSelectModal/hooks/useRequestList.d.ts +0 -32
- package/lib/old/ProEnumSelectModal/hooks/useRequestList.js +0 -117
- package/lib/old/ProEnumSelectModal/index.d.ts +0 -12
- package/lib/old/ProEnumSelectModal/index.js +0 -220
- package/lib/old/ProEnumSelectModal/propsType.d.ts +0 -22
- package/lib/old/ProEnumSelectModal/style/index.less +0 -98
- /package/es/{ProForm/components/old/CertNo → ProAction}/propsType.js +0 -0
- /package/es/ProEnum/{utils.js → utils/index.js} +0 -0
- /package/es/{ProTransferModal → ProForm/components/combination/Container}/propsType.js +0 -0
- /package/es/{old/ProCustomColumn → ProForm/components/combination/FormList}/propsType.js +0 -0
- /package/es/ProForm/components/{base → combination}/FormList/utils.d.ts +0 -0
- /package/es/ProForm/components/{base → combination}/FormList/utils.js +0 -0
- /package/es/{old/ProEnumSelectModal → ProForm/components/combination/Group}/propsType.js +0 -0
- /package/es/{ProUpload/style → assets}/look.svg +0 -0
- /package/lib/{ProForm/components/old/CertNo → ProAction}/propsType.js +0 -0
- /package/lib/ProEnum/{utils.js → utils/index.js} +0 -0
- /package/lib/{ProTransferModal → ProForm/components/combination/Container}/propsType.js +0 -0
- /package/lib/{old/ProCustomColumn → ProForm/components/combination/FormList}/propsType.js +0 -0
- /package/lib/ProForm/components/{base → combination}/FormList/utils.d.ts +0 -0
- /package/lib/{old/ProEnumSelectModal → ProForm/components/combination/Group}/propsType.js +0 -0
- /package/lib/{ProUpload/style → assets}/look.svg +0 -0
|
@@ -3,11 +3,10 @@
|
|
|
3
3
|
align-items: center;
|
|
4
4
|
|
|
5
5
|
.switch-checkbox-view-label {
|
|
6
|
-
|
|
7
|
-
max-width : var(--zaui-form-label-width, 130px);
|
|
6
|
+
flex : 0 0 @zaui-form-label-width;
|
|
8
7
|
overflow : initial;
|
|
9
8
|
line-height: 1;
|
|
10
9
|
white-space: pre-wrap;
|
|
11
10
|
color : var(--zaui-aide-text, #939599);
|
|
12
11
|
}
|
|
13
|
-
}
|
|
12
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { TextAreaProps } from 'antd/
|
|
1
|
+
import { TextAreaProps } from 'antd/es/input';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { ProFormOtherProps } from '../../../propsType';
|
|
4
|
+
import './index.less';
|
|
4
5
|
export interface Props extends TextAreaProps {
|
|
5
6
|
otherProps?: ProFormOtherProps;
|
|
6
7
|
}
|
|
@@ -7,36 +7,43 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
9
9
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
10
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
11
|
var _antd = require("antd");
|
|
11
|
-
var
|
|
12
|
-
var
|
|
13
|
-
|
|
14
|
-
var _excluded = ["placeholder", "otherProps"];
|
|
12
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
|
+
var _ProConfigProvider = require("../../../../ProConfigProvider");
|
|
14
|
+
require("./index.less");
|
|
15
|
+
var _excluded = ["placeholder", "otherProps", "className"];
|
|
15
16
|
var TextArea = _antd.Input.TextArea;
|
|
16
17
|
var TextAreaDef = function TextAreaDef(props) {
|
|
17
18
|
var placeholder = props.placeholder,
|
|
18
19
|
otherProps = props.otherProps,
|
|
20
|
+
className = props.className,
|
|
19
21
|
rest = (0, _objectWithoutProperties2.default)(props, _excluded);
|
|
20
22
|
var _ref = otherProps || {},
|
|
21
23
|
label = _ref.label,
|
|
22
24
|
isView = _ref.isView,
|
|
23
25
|
viewEmpty = _ref.viewEmpty;
|
|
24
|
-
var initialConfig = (0,
|
|
26
|
+
var initialConfig = (0, _ProConfigProvider.useProConfig)('TextArea');
|
|
27
|
+
var disabled = (initialConfig === null || initialConfig === void 0 ? void 0 : initialConfig.disabled) || rest.disabled;
|
|
25
28
|
if (isView) {
|
|
26
|
-
|
|
27
|
-
tooltip: true,
|
|
28
|
-
viewEmpty: viewEmpty
|
|
29
|
-
}, rest.value);
|
|
29
|
+
disabled = true;
|
|
30
30
|
}
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
var _className = (0, _classnames.default)({
|
|
32
|
+
'pro-textarea': true,
|
|
33
|
+
disabled: disabled,
|
|
34
|
+
'pro-textarea-view': isView,
|
|
35
|
+
className: className
|
|
36
|
+
});
|
|
37
|
+
return (0, _jsxRuntime.jsx)(TextArea, (0, _objectSpread2.default)((0, _objectSpread2.default)((0, _objectSpread2.default)({
|
|
33
38
|
showCount: true,
|
|
34
39
|
autoComplete: "off",
|
|
35
40
|
placeholder: placeholder || "\u8BF7\u8F93\u5165".concat(label || ''),
|
|
36
41
|
autoSize: {
|
|
37
42
|
minRows: 4
|
|
38
43
|
}
|
|
39
|
-
}, initialConfig), rest)
|
|
44
|
+
}, initialConfig), rest), {}, {
|
|
45
|
+
disabled: disabled,
|
|
46
|
+
className: _className
|
|
47
|
+
}));
|
|
40
48
|
};
|
|
41
|
-
var _default = TextAreaDef;
|
|
42
|
-
exports.default = _default;
|
|
49
|
+
var _default = exports.default = TextAreaDef;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { TimePickerProps } from 'antd/es/time-picker';
|
|
3
|
+
import { ProFormOtherProps } from '../../../propsType';
|
|
4
|
+
import './style/index.less';
|
|
5
|
+
export interface Props {
|
|
6
|
+
valueType?: string;
|
|
7
|
+
format?: string;
|
|
8
|
+
onChange?: (value: string) => void;
|
|
9
|
+
value?: string;
|
|
10
|
+
otherProps?: ProFormOtherProps;
|
|
11
|
+
}
|
|
12
|
+
declare const TimePicker: React.FC<Props & TimePickerProps>;
|
|
13
|
+
export default TimePicker;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = void 0;
|
|
8
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
9
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
10
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
|
+
var _antd = require("antd");
|
|
12
|
+
var _moment = _interopRequireDefault(require("moment"));
|
|
13
|
+
var _ProConfigProvider = require("../../../../ProConfigProvider");
|
|
14
|
+
var _Container = _interopRequireDefault(require("../../Container"));
|
|
15
|
+
require("./style/index.less");
|
|
16
|
+
var _excluded = ["format", "onChange", "value", "otherProps"];
|
|
17
|
+
var TimePicker = function TimePicker(props) {
|
|
18
|
+
var _props$format = props.format,
|
|
19
|
+
format = _props$format === void 0 ? 'HH:mm:ss' : _props$format,
|
|
20
|
+
onChange = props.onChange,
|
|
21
|
+
value = props.value,
|
|
22
|
+
otherProps = props.otherProps,
|
|
23
|
+
rest = (0, _objectWithoutProperties2.default)(props, _excluded);
|
|
24
|
+
var _ref = otherProps || {},
|
|
25
|
+
isView = _ref.isView,
|
|
26
|
+
viewEmpty = _ref.viewEmpty,
|
|
27
|
+
_ref$valueType = _ref.valueType,
|
|
28
|
+
valueType = _ref$valueType === void 0 ? 'dateTime' : _ref$valueType;
|
|
29
|
+
var initialConfig = (0, _ProConfigProvider.useProConfig)('AntTimePicker');
|
|
30
|
+
var handleChange = function handleChange(value) {
|
|
31
|
+
if (valueType === 'dateTime') {
|
|
32
|
+
onChange && onChange(value ? (0, _moment.default)(value).format(format) : undefined);
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
if (isView) {
|
|
36
|
+
return (0, _jsxRuntime.jsx)(_Container.default, {
|
|
37
|
+
viewEmpty: viewEmpty,
|
|
38
|
+
children: value
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
return (0, _jsxRuntime.jsx)(_antd.TimePicker, (0, _objectSpread2.default)((0, _objectSpread2.default)((0, _objectSpread2.default)({
|
|
42
|
+
value: value ? (0, _moment.default)(value, format) : undefined
|
|
43
|
+
}, initialConfig), rest), {}, {
|
|
44
|
+
format: format,
|
|
45
|
+
onChange: handleChange
|
|
46
|
+
}));
|
|
47
|
+
};
|
|
48
|
+
var _default = exports.default = TimePicker;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = void 0;
|
|
8
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
9
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
10
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
|
+
var _react = require("react");
|
|
12
|
+
var _lodash = require("lodash");
|
|
13
|
+
var _classnames2 = _interopRequireDefault(require("classnames"));
|
|
14
|
+
var _RenderFields = _interopRequireDefault(require("../../render/RenderFields"));
|
|
15
|
+
var _ProCollapse = _interopRequireDefault(require("../../../../ProLayout/components/ProCollapse"));
|
|
16
|
+
var Container = function Container(props) {
|
|
17
|
+
var children = props.children,
|
|
18
|
+
otherProps = props.otherProps,
|
|
19
|
+
className = props.className,
|
|
20
|
+
container = props.container;
|
|
21
|
+
var type = otherProps.type,
|
|
22
|
+
form = otherProps.form,
|
|
23
|
+
show = otherProps.show,
|
|
24
|
+
required = otherProps.required,
|
|
25
|
+
disabled = otherProps.disabled;
|
|
26
|
+
var _className = (0, _classnames2.default)((0, _defineProperty2.default)({
|
|
27
|
+
'pro-container': true,
|
|
28
|
+
'pro-container-diy': type === 'Container'
|
|
29
|
+
}, "".concat(className), className));
|
|
30
|
+
var _children = (0, _react.useMemo)(function () {
|
|
31
|
+
var result = children.map(function (item) {
|
|
32
|
+
return (0, _objectSpread2.default)({
|
|
33
|
+
show: show,
|
|
34
|
+
required: required,
|
|
35
|
+
disabled: disabled
|
|
36
|
+
}, item);
|
|
37
|
+
});
|
|
38
|
+
return result;
|
|
39
|
+
}, [children]);
|
|
40
|
+
var childRender = function childRender() {
|
|
41
|
+
var child = (0, _jsxRuntime.jsx)(_RenderFields.default, (0, _objectSpread2.default)({
|
|
42
|
+
columns: _children,
|
|
43
|
+
form: form
|
|
44
|
+
}, otherProps));
|
|
45
|
+
if (type === 'ProCollapse') {
|
|
46
|
+
return (0, _jsxRuntime.jsx)(_ProCollapse.default, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, (0, _lodash.omit)(props, ['otherProps', 'children', 'onBlur', 'onChange', 'placeholder', 'className'])), {}, {
|
|
47
|
+
children: child
|
|
48
|
+
}));
|
|
49
|
+
}
|
|
50
|
+
if (type === 'Container') {
|
|
51
|
+
return (0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
52
|
+
children: [container, (0, _jsxRuntime.jsx)("div", {
|
|
53
|
+
className: "pro-container-content",
|
|
54
|
+
children: child
|
|
55
|
+
})]
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
return child;
|
|
59
|
+
};
|
|
60
|
+
return (0, _jsxRuntime.jsx)("div", {
|
|
61
|
+
className: _className,
|
|
62
|
+
children: childRender()
|
|
63
|
+
});
|
|
64
|
+
};
|
|
65
|
+
var _default = exports.default = Container;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { RowProps } from 'antd';
|
|
3
|
+
import { ProColumnProps, ProFormOtherProps } from '../../../propsType';
|
|
4
|
+
export interface ContainerProps {
|
|
5
|
+
children?: ProColumnProps[];
|
|
6
|
+
otherProps?: ProFormOtherProps;
|
|
7
|
+
rowProps?: RowProps;
|
|
8
|
+
className?: string;
|
|
9
|
+
container?: string | React.ReactNode;
|
|
10
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
.pro-container {
|
|
2
|
+
|
|
3
|
+
&.pro-container-diy {
|
|
4
|
+
.pro-container-content {
|
|
5
|
+
display : flex;
|
|
6
|
+
flex-flow : row wrap;
|
|
7
|
+
min-width : 0;
|
|
8
|
+
margin-left : -12px;
|
|
9
|
+
margin-right : -12px;
|
|
10
|
+
margin-bottom: -22px;
|
|
11
|
+
|
|
12
|
+
&>.ant-col {
|
|
13
|
+
padding-left : 12px;
|
|
14
|
+
padding-right: 12px;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.pro-collapse-content {
|
|
21
|
+
display : flex;
|
|
22
|
+
flex-flow : row wrap;
|
|
23
|
+
min-width : 0;
|
|
24
|
+
margin-left : -12px;
|
|
25
|
+
margin-right : -12px;
|
|
26
|
+
// margin-bottom: -22px;
|
|
27
|
+
|
|
28
|
+
&>.ant-col {
|
|
29
|
+
padding-left : 12px;
|
|
30
|
+
padding-right: 12px;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.pro-collapse.ant-collapse .pro-collapse-panel {
|
|
35
|
+
margin-bottom: 0;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -1,19 +1,22 @@
|
|
|
1
1
|
import { FormInstance, FormListFieldData, FormListOperation } from 'antd';
|
|
2
|
-
import { InternalNamePath } from 'antd/
|
|
2
|
+
import { InternalNamePath } from 'antd/es/form/interface';
|
|
3
3
|
import React from 'react';
|
|
4
|
-
import {
|
|
4
|
+
import { FormListProps, ActionProps, FormListMode } from '../propsType';
|
|
5
5
|
export interface Props {
|
|
6
6
|
min?: FormListProps['min'];
|
|
7
7
|
max?: FormListProps['max'];
|
|
8
8
|
actionProps: ActionProps[];
|
|
9
9
|
namePath: InternalNamePath;
|
|
10
10
|
form: FormInstance;
|
|
11
|
-
field: FormListFieldData
|
|
11
|
+
field: Omit<FormListFieldData, 'key'> & {
|
|
12
|
+
key: string;
|
|
13
|
+
};
|
|
12
14
|
operation: FormListOperation;
|
|
13
15
|
index: number;
|
|
14
16
|
length: number;
|
|
15
17
|
fields: FormListFieldData[];
|
|
16
18
|
mode: FormListMode;
|
|
19
|
+
disabled?: boolean;
|
|
17
20
|
}
|
|
18
21
|
declare const ActionButton: React.FC<Props>;
|
|
19
22
|
export default ActionButton;
|
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = void 0;
|
|
8
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
9
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
10
|
+
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
11
|
+
var _react = require("react");
|
|
12
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
|
+
var _antd = require("antd");
|
|
14
|
+
var _lodash = require("lodash");
|
|
15
|
+
var _icons = require("@ant-design/icons");
|
|
16
|
+
var _ProIcon = _interopRequireDefault(require("../../../../../ProIcon"));
|
|
17
|
+
var _excluded = ["label", "onClick", "onHandle", "actionType", "needConfirm", "confirmProps", "title"],
|
|
18
|
+
_excluded2 = ["onClick", "label"];
|
|
19
|
+
var getDefaultActions = function getDefaultActions(mode) {
|
|
20
|
+
var originActions = {
|
|
21
|
+
add: {
|
|
22
|
+
onClick: function onClick(record, _ref) {
|
|
23
|
+
var namePath = _ref.namePath,
|
|
24
|
+
index = _ref.index,
|
|
25
|
+
operation = _ref.operation,
|
|
26
|
+
form = _ref.form;
|
|
27
|
+
var add = operation.add;
|
|
28
|
+
add(undefined, index + 1);
|
|
29
|
+
},
|
|
30
|
+
type: 'text',
|
|
31
|
+
label: '新增',
|
|
32
|
+
icon: (0, _jsxRuntime.jsx)(_icons.PlusSquareOutlined, {})
|
|
33
|
+
},
|
|
34
|
+
delete: {
|
|
35
|
+
onClick: function onClick(record, _ref2) {
|
|
36
|
+
var namePath = _ref2.namePath,
|
|
37
|
+
index = _ref2.index,
|
|
38
|
+
operation = _ref2.operation,
|
|
39
|
+
form = _ref2.form;
|
|
40
|
+
var remove = operation.remove;
|
|
41
|
+
remove(index);
|
|
42
|
+
},
|
|
43
|
+
type: 'text',
|
|
44
|
+
label: '删除',
|
|
45
|
+
icon: mode === 'less' ? (0, _jsxRuntime.jsx)(_ProIcon.default, {
|
|
46
|
+
type: "solid-close",
|
|
47
|
+
className: "single-delete"
|
|
48
|
+
}) : (0, _jsxRuntime.jsx)(_ProIcon.default, {
|
|
49
|
+
type: "delete"
|
|
50
|
+
})
|
|
51
|
+
},
|
|
52
|
+
copy: {
|
|
53
|
+
onClick: function onClick(record, _ref3) {
|
|
54
|
+
var namePath = _ref3.namePath,
|
|
55
|
+
index = _ref3.index,
|
|
56
|
+
operation = _ref3.operation,
|
|
57
|
+
form = _ref3.form;
|
|
58
|
+
var add = operation.add;
|
|
59
|
+
add(record, index + 1);
|
|
60
|
+
},
|
|
61
|
+
type: 'text',
|
|
62
|
+
label: '复制',
|
|
63
|
+
icon: (0, _jsxRuntime.jsx)(_icons.CopyOutlined, {})
|
|
64
|
+
},
|
|
65
|
+
moveUp: {
|
|
66
|
+
onClick: function onClick(record, _ref4) {
|
|
67
|
+
var namePath = _ref4.namePath,
|
|
68
|
+
index = _ref4.index,
|
|
69
|
+
operation = _ref4.operation,
|
|
70
|
+
form = _ref4.form;
|
|
71
|
+
var move = operation.move;
|
|
72
|
+
move(index, index - 1);
|
|
73
|
+
},
|
|
74
|
+
type: 'text',
|
|
75
|
+
label: '上移',
|
|
76
|
+
icon: (0, _jsxRuntime.jsx)(_icons.UpSquareOutlined, {})
|
|
77
|
+
},
|
|
78
|
+
moveDown: {
|
|
79
|
+
onClick: function onClick(record, _ref5) {
|
|
80
|
+
var namePath = _ref5.namePath,
|
|
81
|
+
index = _ref5.index,
|
|
82
|
+
operation = _ref5.operation,
|
|
83
|
+
form = _ref5.form;
|
|
84
|
+
var move = operation.move;
|
|
85
|
+
move(index, index + 1);
|
|
86
|
+
},
|
|
87
|
+
type: 'text',
|
|
88
|
+
label: '下移',
|
|
89
|
+
icon: (0, _jsxRuntime.jsx)(_icons.DownSquareOutlined, {})
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
if (mode === 'block') {
|
|
93
|
+
Object.keys(originActions).forEach(function (key) {
|
|
94
|
+
originActions[key].type = 'default';
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
if (mode === 'line') {
|
|
98
|
+
Object.keys(originActions).forEach(function (key) {
|
|
99
|
+
delete originActions[key].label;
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
if (mode === 'less') {
|
|
103
|
+
Object.keys(originActions).forEach(function (key) {
|
|
104
|
+
delete originActions[key].label;
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
return originActions;
|
|
108
|
+
};
|
|
109
|
+
var defaultActionProps = [{
|
|
110
|
+
actionType: 'delete'
|
|
111
|
+
}];
|
|
112
|
+
var ActionButton = function ActionButton(props) {
|
|
113
|
+
var namePath = props.namePath,
|
|
114
|
+
form = props.form,
|
|
115
|
+
field = props.field,
|
|
116
|
+
operation = props.operation,
|
|
117
|
+
index = props.index,
|
|
118
|
+
length = props.length,
|
|
119
|
+
disabled = props.disabled,
|
|
120
|
+
fields = props.fields,
|
|
121
|
+
min = props.min,
|
|
122
|
+
max = props.max,
|
|
123
|
+
mode = props.mode;
|
|
124
|
+
// 默认显示一个delete
|
|
125
|
+
var actionProps = (0, _react.useMemo)(function () {
|
|
126
|
+
var _props$actionProps;
|
|
127
|
+
if (!((_props$actionProps = props.actionProps) === null || _props$actionProps === void 0 ? void 0 : _props$actionProps.find(function (item) {
|
|
128
|
+
return item.actionType === 'delete';
|
|
129
|
+
}))) {
|
|
130
|
+
return (props === null || props === void 0 ? void 0 : props.actionProps) ? [].concat((0, _toConsumableArray2.default)(props.actionProps), defaultActionProps) : defaultActionProps;
|
|
131
|
+
}
|
|
132
|
+
return props.actionProps;
|
|
133
|
+
}, [props.actionProps]);
|
|
134
|
+
var handleClick = function handleClick(callback, index, item) {
|
|
135
|
+
var value = form.getFieldValue(namePath);
|
|
136
|
+
var data = callback === null || callback === void 0 ? void 0 : callback(value, {
|
|
137
|
+
namePath: namePath,
|
|
138
|
+
index: index,
|
|
139
|
+
operation: operation,
|
|
140
|
+
form: form
|
|
141
|
+
});
|
|
142
|
+
if ((item === null || item === void 0 ? void 0 : item.actionType) === 'add') {
|
|
143
|
+
operation.add(data, index !== undefined ? index + 1 : undefined);
|
|
144
|
+
}
|
|
145
|
+
};
|
|
146
|
+
var defaultActions = (0, _react.useMemo)(function () {
|
|
147
|
+
return getDefaultActions(mode);
|
|
148
|
+
}, [mode]);
|
|
149
|
+
return (0, _jsxRuntime.jsx)(_antd.Space, {
|
|
150
|
+
align: "start",
|
|
151
|
+
className: "pro-form-list-action",
|
|
152
|
+
children: actionProps === null || actionProps === void 0 ? void 0 : actionProps.map(function (item) {
|
|
153
|
+
if (item.show === false) return (0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {});
|
|
154
|
+
if ((0, _lodash.isFunction)(item.show) && !item.show(form.getFieldValue(namePath), {
|
|
155
|
+
namePath: namePath,
|
|
156
|
+
index: index,
|
|
157
|
+
form: form
|
|
158
|
+
})) {
|
|
159
|
+
return (0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {});
|
|
160
|
+
}
|
|
161
|
+
var label = item.label,
|
|
162
|
+
onClick = item.onClick,
|
|
163
|
+
onHandle = item.onHandle,
|
|
164
|
+
actionType = item.actionType,
|
|
165
|
+
needConfirm = item.needConfirm,
|
|
166
|
+
confirmProps = item.confirmProps,
|
|
167
|
+
title = item.title,
|
|
168
|
+
rest = (0, _objectWithoutProperties2.default)(item, _excluded);
|
|
169
|
+
var _needConfirm = needConfirm || confirmProps;
|
|
170
|
+
var _confirmProps = !confirmProps || confirmProps === true ? {} : confirmProps;
|
|
171
|
+
var _onClick = onClick || onHandle;
|
|
172
|
+
if (['add', 'delete', 'copy', 'moveUp', 'moveDown'].includes(actionType)) {
|
|
173
|
+
// 禁用状态默认隐藏内置操作按钮
|
|
174
|
+
if (disabled) return (0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {});
|
|
175
|
+
var _defaultActions$actio = defaultActions[actionType],
|
|
176
|
+
internalOnClick = _defaultActions$actio.onClick,
|
|
177
|
+
defaultLabel = _defaultActions$actio.label,
|
|
178
|
+
defaultRest = (0, _objectWithoutProperties2.default)(_defaultActions$actio, _excluded2);
|
|
179
|
+
// 小于min不可删除
|
|
180
|
+
if (min && min >= fields.length && ['delete'].includes(actionType)) {
|
|
181
|
+
return false;
|
|
182
|
+
}
|
|
183
|
+
// 大于等于max不可新增和复制
|
|
184
|
+
if (max && max <= fields.length && ['add', 'copy'].includes(actionType)) {
|
|
185
|
+
return false;
|
|
186
|
+
}
|
|
187
|
+
// 下标为零 不可向上移动
|
|
188
|
+
if (index === 0 && ['moveUp'].includes(actionType)) {
|
|
189
|
+
return false;
|
|
190
|
+
}
|
|
191
|
+
// 下标最大 不可向下移动
|
|
192
|
+
if (index + 1 === fields.length && ['moveDown'].includes(actionType)) {
|
|
193
|
+
return false;
|
|
194
|
+
}
|
|
195
|
+
return _needConfirm ? (0, _jsxRuntime.jsx)(_antd.Popconfirm, (0, _objectSpread2.default)((0, _objectSpread2.default)({
|
|
196
|
+
title: title !== null && title !== void 0 ? title : '您确定要删除该条数据吗?',
|
|
197
|
+
onCancel: function onCancel(e) {
|
|
198
|
+
return e.stopPropagation();
|
|
199
|
+
},
|
|
200
|
+
onConfirm: function onConfirm(e) {
|
|
201
|
+
handleClick(_onClick || internalOnClick, index, item);
|
|
202
|
+
}
|
|
203
|
+
}, _confirmProps), {}, {
|
|
204
|
+
children: (0, _jsxRuntime.jsx)(_antd.Button, (0, _objectSpread2.default)((0, _objectSpread2.default)((0, _objectSpread2.default)({}, defaultRest), rest), {}, {
|
|
205
|
+
onClick: function onClick(e) {
|
|
206
|
+
return e.stopPropagation();
|
|
207
|
+
},
|
|
208
|
+
children: label || defaultLabel
|
|
209
|
+
}))
|
|
210
|
+
}), "".concat(item === null || item === void 0 ? void 0 : item.actionType).concat(index)) : (0, _jsxRuntime.jsx)(_antd.Button, (0, _objectSpread2.default)((0, _objectSpread2.default)((0, _objectSpread2.default)({}, defaultRest), rest), {}, {
|
|
211
|
+
onClick: function onClick(e) {
|
|
212
|
+
e.stopPropagation();
|
|
213
|
+
handleClick(_onClick || internalOnClick, index, item);
|
|
214
|
+
},
|
|
215
|
+
children: label || defaultLabel
|
|
216
|
+
}), "".concat(item === null || item === void 0 ? void 0 : item.actionType).concat(index));
|
|
217
|
+
}
|
|
218
|
+
return needConfirm ? (0, _jsxRuntime.jsx)(_antd.Popconfirm, (0, _objectSpread2.default)((0, _objectSpread2.default)({
|
|
219
|
+
title: title !== null && title !== void 0 ? title : '您确定要删除该条数据吗?',
|
|
220
|
+
onCancel: function onCancel(e) {
|
|
221
|
+
return e.stopPropagation();
|
|
222
|
+
},
|
|
223
|
+
onConfirm: function onConfirm() {
|
|
224
|
+
return handleClick(_onClick, index);
|
|
225
|
+
}
|
|
226
|
+
}, _confirmProps), {}, {
|
|
227
|
+
children: (0, _jsxRuntime.jsx)(_antd.Button, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, rest), {}, {
|
|
228
|
+
onClick: function onClick(e) {
|
|
229
|
+
return e.stopPropagation();
|
|
230
|
+
},
|
|
231
|
+
children: label
|
|
232
|
+
}))
|
|
233
|
+
}), "".concat(item === null || item === void 0 ? void 0 : item.actionType).concat(index)) : /*#__PURE__*/(0, _react.createElement)(_antd.Button, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, rest), {}, {
|
|
234
|
+
key: "".concat(item === null || item === void 0 ? void 0 : item.actionType).concat(index),
|
|
235
|
+
onClick: function onClick(e) {
|
|
236
|
+
e.stopPropagation();
|
|
237
|
+
handleClick(_onClick, index);
|
|
238
|
+
}
|
|
239
|
+
}), label);
|
|
240
|
+
})
|
|
241
|
+
});
|
|
242
|
+
};
|
|
243
|
+
var _default = exports.default = ActionButton;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ColProps, FormListFieldData } from 'antd';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { InternalNamePath } from 'antd/es/form/interface';
|
|
4
|
+
import type { levelType } from '@/ProLayout/components/ProCollapse/PropTypes';
|
|
5
|
+
import type { FormListProps } from '../propsType';
|
|
6
|
+
interface Props extends Omit<FormListProps, 'toolbarProps'> {
|
|
7
|
+
index: number;
|
|
8
|
+
namePath: InternalNamePath;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
isView?: boolean;
|
|
11
|
+
colProps: ColProps;
|
|
12
|
+
field: Omit<FormListFieldData, 'key'> & {
|
|
13
|
+
key: string;
|
|
14
|
+
};
|
|
15
|
+
level?: levelType;
|
|
16
|
+
towCollapse?: boolean;
|
|
17
|
+
}
|
|
18
|
+
declare const BlockFields: React.FC<Props>;
|
|
19
|
+
export default BlockFields;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
7
|
exports.default = void 0;
|
|
8
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
9
9
|
var _antd = require("antd");
|
|
10
|
-
var _react =
|
|
10
|
+
var _react = require("react");
|
|
11
11
|
var _lodash = require("lodash");
|
|
12
12
|
var _ActionButton = _interopRequireDefault(require("./ActionButton"));
|
|
13
13
|
var _RenderFields = _interopRequireDefault(require("../../../render/RenderFields"));
|
|
@@ -38,38 +38,40 @@ var BlockFields = function BlockFields(props) {
|
|
|
38
38
|
}
|
|
39
39
|
return title;
|
|
40
40
|
}, [title, index]);
|
|
41
|
-
return
|
|
42
|
-
direction: "vertical"
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
index: index,
|
|
46
|
-
form: form,
|
|
47
|
-
// namePath={namePath}
|
|
48
|
-
level: level,
|
|
49
|
-
towCollapse: towCollapse,
|
|
50
|
-
extra: /*#__PURE__*/_react.default.createElement(_ActionButton.default, {
|
|
51
|
-
min: min,
|
|
52
|
-
max: max,
|
|
41
|
+
return (0, _jsxRuntime.jsx)(_antd.Space, {
|
|
42
|
+
direction: "vertical",
|
|
43
|
+
children: (0, _jsxRuntime.jsx)(_ProCollapse.default, {
|
|
44
|
+
title: _title,
|
|
53
45
|
index: index,
|
|
54
|
-
length: fields.length,
|
|
55
|
-
operation: operation,
|
|
56
|
-
namePath: namePath,
|
|
57
46
|
form: form,
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
47
|
+
// namePath={namePath}
|
|
48
|
+
level: level,
|
|
49
|
+
towCollapse: towCollapse,
|
|
50
|
+
extra: actionProps !== false && (0, _jsxRuntime.jsx)(_ActionButton.default, {
|
|
51
|
+
min: min,
|
|
52
|
+
max: max,
|
|
53
|
+
index: index,
|
|
54
|
+
length: fields.length,
|
|
55
|
+
operation: operation,
|
|
56
|
+
namePath: namePath,
|
|
57
|
+
form: form,
|
|
58
|
+
field: field,
|
|
59
|
+
fields: fields,
|
|
60
|
+
actionProps: actionProps,
|
|
61
|
+
mode: mode,
|
|
62
|
+
disabled: disabled
|
|
63
|
+
}),
|
|
64
|
+
children: (0, _jsxRuntime.jsx)(_antd.Row, {
|
|
65
|
+
gutter: 24,
|
|
66
|
+
children: (0, _jsxRuntime.jsx)(_RenderFields.default, {
|
|
67
|
+
columns: columns,
|
|
68
|
+
form: form,
|
|
69
|
+
colProps: colProps,
|
|
70
|
+
disabled: disabled,
|
|
71
|
+
isView: isView
|
|
72
|
+
})
|
|
73
|
+
}, field.key)
|
|
62
74
|
})
|
|
63
|
-
}
|
|
64
|
-
key: field.key,
|
|
65
|
-
gutter: 24
|
|
66
|
-
}, /*#__PURE__*/_react.default.createElement(_RenderFields.default, {
|
|
67
|
-
columns: columns,
|
|
68
|
-
form: form,
|
|
69
|
-
colProps: colProps,
|
|
70
|
-
disabled: disabled,
|
|
71
|
-
isView: isView
|
|
72
|
-
}))));
|
|
75
|
+
});
|
|
73
76
|
};
|
|
74
|
-
var _default = BlockFields;
|
|
75
|
-
exports.default = _default;
|
|
77
|
+
var _default = exports.default = BlockFields;
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { NamePath } from 'antd/
|
|
2
|
+
import { NamePath } from 'antd/es/form/interface';
|
|
3
3
|
import { FormInstance } from 'antd';
|
|
4
|
-
import { FormListMode } from '../
|
|
5
|
-
export type TitleRender = (record: Record<string, any>, index: number, form: FormInstance) => any;
|
|
6
|
-
export type TitleType = string | React.ReactNode | TitleRender;
|
|
4
|
+
import type { FormListMode, TitleType } from '../propsType';
|
|
7
5
|
interface Props {
|
|
8
6
|
mode: FormListMode;
|
|
9
7
|
namePath: NamePath;
|