@zat-design/sisyphus-react 3.0.13
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/LICENSE +21 -0
- package/README.md +93 -0
- package/commitlint.config.js +6 -0
- package/dist/index.esm.css +4002 -0
- package/dist/index.esm.js +3 -0
- package/es/ProConfigProvider/index.d.ts +22 -0
- package/es/ProConfigProvider/index.js +52 -0
- package/es/ProDownload/DownloadHelper.d.ts +32 -0
- package/es/ProDownload/DownloadHelper.js +170 -0
- package/es/ProDownload/index.d.ts +4 -0
- package/es/ProDownload/index.js +176 -0
- package/es/ProDownload/propsType.d.ts +54 -0
- package/es/ProDownload/propsType.js +1 -0
- package/es/ProDrawerForm/components/ProDrawer/index.d.ts +7 -0
- package/es/ProDrawerForm/components/ProDrawer/index.js +204 -0
- package/es/ProDrawerForm/components/ProModal/index.d.ts +7 -0
- package/es/ProDrawerForm/components/ProModal/index.js +161 -0
- package/es/ProDrawerForm/components/index.d.ts +2 -0
- package/es/ProDrawerForm/components/index.js +2 -0
- package/es/ProDrawerForm/index.d.ts +5 -0
- package/es/ProDrawerForm/index.js +65 -0
- package/es/ProDrawerForm/propsType.d.ts +88 -0
- package/es/ProDrawerForm/propsType.js +1 -0
- package/es/ProDrawerForm/style/index.less +125 -0
- package/es/ProDrawerForm/utils/index.d.ts +6 -0
- package/es/ProDrawerForm/utils/index.js +16 -0
- package/es/ProEditLabel/components/RenderForm.d.ts +3 -0
- package/es/ProEditLabel/components/RenderForm.js +65 -0
- package/es/ProEditLabel/index.d.ts +4 -0
- package/es/ProEditLabel/index.js +324 -0
- package/es/ProEditLabel/propsType.d.ts +43 -0
- package/es/ProEditLabel/propsType.js +1 -0
- package/es/ProEditLabel/style/index.less +105 -0
- package/es/ProEditLabel/utils/index.d.ts +9 -0
- package/es/ProEditLabel/utils/index.js +32 -0
- package/es/ProEditTable/components/ActionButton/index.d.ts +2 -0
- package/es/ProEditTable/components/ActionButton/index.js +70 -0
- package/es/ProEditTable/components/DndWrapper/index.d.ts +14 -0
- package/es/ProEditTable/components/DndWrapper/index.js +82 -0
- package/es/ProEditTable/components/RenderField/index.d.ts +2 -0
- package/es/ProEditTable/components/RenderField/index.js +467 -0
- package/es/ProEditTable/components/RenderToolbar/index.d.ts +2 -0
- package/es/ProEditTable/components/RenderToolbar/index.js +136 -0
- package/es/ProEditTable/components/Summary/index.d.ts +12 -0
- package/es/ProEditTable/components/Summary/index.js +79 -0
- package/es/ProEditTable/components/Validator/index.d.ts +10 -0
- package/es/ProEditTable/components/Validator/index.js +27 -0
- package/es/ProEditTable/components/index.d.ts +6 -0
- package/es/ProEditTable/components/index.js +6 -0
- package/es/ProEditTable/index.d.ts +4 -0
- package/es/ProEditTable/index.js +272 -0
- package/es/ProEditTable/propsType.d.ts +201 -0
- package/es/ProEditTable/propsType.js +1 -0
- package/es/ProEditTable/style/index.less +227 -0
- package/es/ProEditTable/utils/config.d.ts +25 -0
- package/es/ProEditTable/utils/config.js +214 -0
- package/es/ProEditTable/utils/index.d.ts +10 -0
- package/es/ProEditTable/utils/index.js +396 -0
- package/es/ProEditTable/utils/tools.d.ts +16 -0
- package/es/ProEditTable/utils/tools.js +75 -0
- package/es/ProEditTable/utils/transform.d.ts +5 -0
- package/es/ProEditTable/utils/transform.js +15 -0
- package/es/ProEnum/getEnumLabel.d.ts +2 -0
- package/es/ProEnum/getEnumLabel.js +62 -0
- package/es/ProEnum/index.d.ts +8 -0
- package/es/ProEnum/index.js +223 -0
- package/es/ProEnum/propsType.d.ts +80 -0
- package/es/ProEnum/propsType.js +1 -0
- package/es/ProEnum/useEnum.d.ts +14 -0
- package/es/ProEnum/useEnum.js +75 -0
- package/es/ProEnum/useEnumRequest.d.ts +3 -0
- package/es/ProEnum/useEnumRequest.js +232 -0
- package/es/ProEnum/utils.d.ts +30 -0
- package/es/ProEnum/utils.js +79 -0
- package/es/ProForm/components/Container.d.ts +8 -0
- package/es/ProForm/components/Container.js +27 -0
- package/es/ProForm/components/FormFooter/index.d.ts +4 -0
- package/es/ProForm/components/FormFooter/index.js +37 -0
- package/es/ProForm/components/FormFooter/propsType.d.ts +17 -0
- package/es/ProForm/components/FormFooter/propsType.js +1 -0
- package/es/ProForm/components/base/Checkbox/index.d.ts +13 -0
- package/es/ProForm/components/base/Checkbox/index.js +67 -0
- package/es/ProForm/components/base/DatePicker/index.d.ts +12 -0
- package/es/ProForm/components/base/DatePicker/index.js +64 -0
- package/es/ProForm/components/base/FormList/components/ActionButton.d.ts +19 -0
- package/es/ProForm/components/base/FormList/components/ActionButton.js +170 -0
- package/es/ProForm/components/base/FormList/components/BlockFields.d.ts +16 -0
- package/es/ProForm/components/base/FormList/components/BlockFields.js +69 -0
- package/es/ProForm/components/base/FormList/components/BlockTitle.d.ts +15 -0
- package/es/ProForm/components/base/FormList/components/BlockTitle.js +27 -0
- package/es/ProForm/components/base/FormList/components/LineFields.d.ts +14 -0
- package/es/ProForm/components/base/FormList/components/LineFields.js +46 -0
- package/es/ProForm/components/base/FormList/components/ToolbarButton.d.ts +12 -0
- package/es/ProForm/components/base/FormList/components/ToolbarButton.js +79 -0
- package/es/ProForm/components/base/FormList/index.d.ts +43 -0
- package/es/ProForm/components/base/FormList/index.js +94 -0
- package/es/ProForm/components/base/FormList/style/index.less +36 -0
- package/es/ProForm/components/base/FormList/utils.d.ts +10 -0
- package/es/ProForm/components/base/FormList/utils.js +19 -0
- package/es/ProForm/components/base/Input/index.d.ts +3 -0
- package/es/ProForm/components/base/Input/index.js +33 -0
- package/es/ProForm/components/base/Input/propsType.d.ts +14 -0
- package/es/ProForm/components/base/Input/propsType.js +1 -0
- package/es/ProForm/components/base/InputNumber/index.d.ts +10 -0
- package/es/ProForm/components/base/InputNumber/index.js +177 -0
- package/es/ProForm/components/base/Radio/index.d.ts +14 -0
- package/es/ProForm/components/base/Radio/index.js +63 -0
- package/es/ProForm/components/base/RangePicker/index.d.ts +9 -0
- package/es/ProForm/components/base/RangePicker/index.js +57 -0
- package/es/ProForm/components/base/Select/index.d.ts +9 -0
- package/es/ProForm/components/base/Select/index.js +66 -0
- package/es/ProForm/components/base/Switch/index.d.ts +9 -0
- package/es/ProForm/components/base/Switch/index.js +33 -0
- package/es/ProForm/components/base/SwitchCheckbox/index.d.ts +9 -0
- package/es/ProForm/components/base/SwitchCheckbox/index.js +46 -0
- package/es/ProForm/components/base/SwitchCheckbox/style/index.less +13 -0
- package/es/ProForm/components/base/TextArea/index.d.ts +8 -0
- package/es/ProForm/components/base/TextArea/index.js +35 -0
- package/es/ProForm/components/combination/ProAddressBar/index.d.ts +4 -0
- package/es/ProForm/components/combination/ProAddressBar/index.js +397 -0
- package/es/ProForm/components/combination/ProAddressBar/propsType.d.ts +28 -0
- package/es/ProForm/components/combination/ProAddressBar/propsType.js +1 -0
- package/es/ProForm/components/combination/ProAddressBar/style/index.less +26 -0
- package/es/ProForm/components/combination/ProCombination/index.d.ts +6 -0
- package/es/ProForm/components/combination/ProCombination/index.js +197 -0
- package/es/ProForm/components/combination/ProCombination/propsType.d.ts +62 -0
- package/es/ProForm/components/combination/ProCombination/propsType.js +1 -0
- package/es/ProForm/components/combination/ProCombination/style/index.less +15 -0
- package/es/ProForm/components/combination/ProModalSelect/hooks/useRequestList.d.ts +33 -0
- package/es/ProForm/components/combination/ProModalSelect/hooks/useRequestList.js +136 -0
- package/es/ProForm/components/combination/ProModalSelect/index.d.ts +4 -0
- package/es/ProForm/components/combination/ProModalSelect/index.js +644 -0
- package/es/ProForm/components/combination/ProModalSelect/propsType.d.ts +45 -0
- package/es/ProForm/components/combination/ProModalSelect/propsType.js +1 -0
- package/es/ProForm/components/combination/ProModalSelect/style/index.less +57 -0
- package/es/ProForm/components/combination/ProNumberRange/index.d.ts +4 -0
- package/es/ProForm/components/combination/ProNumberRange/index.js +182 -0
- package/es/ProForm/components/combination/ProNumberRange/propsType.d.ts +76 -0
- package/es/ProForm/components/combination/ProNumberRange/propsType.js +1 -0
- package/es/ProForm/components/combination/ProNumberRange/style/index.less +79 -0
- package/es/ProForm/components/combination/ProRangeLimit/index.d.ts +17 -0
- package/es/ProForm/components/combination/ProRangeLimit/index.js +142 -0
- package/es/ProForm/components/combination/ProTimeLimit/hooks/useControlled.d.ts +8 -0
- package/es/ProForm/components/combination/ProTimeLimit/hooks/useControlled.js +25 -0
- package/es/ProForm/components/combination/ProTimeLimit/hooks/useTransformDate.d.ts +12 -0
- package/es/ProForm/components/combination/ProTimeLimit/hooks/useTransformDate.js +36 -0
- package/es/ProForm/components/combination/ProTimeLimit/index.d.ts +19 -0
- package/es/ProForm/components/combination/ProTimeLimit/index.js +126 -0
- package/es/ProForm/components/combination/ProTimeLimit/style/index.less +12 -0
- package/es/ProForm/components/index.d.ts +30 -0
- package/es/ProForm/components/index.js +34 -0
- package/es/ProForm/components/old/CertNo/index.d.ts +18 -0
- package/es/ProForm/components/old/CertNo/index.js +63 -0
- package/es/ProForm/components/old/CertNo/propsType.d.ts +13 -0
- package/es/ProForm/components/old/CertNo/propsType.js +1 -0
- package/es/ProForm/components/old/EnumSelect/hooks/useRequestList.d.ts +33 -0
- package/es/ProForm/components/old/EnumSelect/hooks/useRequestList.js +108 -0
- package/es/ProForm/components/old/EnumSelect/index.d.ts +4 -0
- package/es/ProForm/components/old/EnumSelect/index.js +264 -0
- package/es/ProForm/components/old/EnumSelect/interface.d.ts +29 -0
- package/es/ProForm/components/old/EnumSelect/interface.js +1 -0
- package/es/ProForm/components/old/EnumSelect/style/index.less +114 -0
- package/es/ProForm/components/old/InputRange/index.d.ts +16 -0
- package/es/ProForm/components/old/InputRange/index.js +99 -0
- package/es/ProForm/components/old/InputWithSuffix/index.d.ts +3 -0
- package/es/ProForm/components/old/InputWithSuffix/index.js +44 -0
- package/es/ProForm/components/old/InputWithSuffix/propsTypes.d.ts +11 -0
- package/es/ProForm/components/old/InputWithSuffix/propsTypes.js +1 -0
- package/es/ProForm/components/old/ProAddress/index.d.ts +27 -0
- package/es/ProForm/components/old/ProAddress/index.js +286 -0
- package/es/ProForm/components/old/ProAddress/propsTypes.d.ts +16 -0
- package/es/ProForm/components/old/ProAddress/propsTypes.js +1 -0
- package/es/ProForm/components/old/ProCertNo/index.d.ts +14 -0
- package/es/ProForm/components/old/ProCertNo/index.js +61 -0
- package/es/ProForm/components/old/ProCertNo/propsType.d.ts +18 -0
- package/es/ProForm/components/old/ProCertNo/propsType.js +1 -0
- package/es/ProForm/components/old/ProCertValidity/index.d.ts +9 -0
- package/es/ProForm/components/old/ProCertValidity/index.js +182 -0
- package/es/ProForm/components/old/ProCertValidity/propsType.d.ts +19 -0
- package/es/ProForm/components/old/ProCertValidity/propsType.js +1 -0
- package/es/ProForm/components/old/ProRangeBox/index.d.ts +2 -0
- package/es/ProForm/components/old/ProRangeBox/index.js +89 -0
- package/es/ProForm/components/old/ProRangeBox/propsType.d.ts +3 -0
- package/es/ProForm/components/old/ProRangeBox/propsType.js +1 -0
- package/es/ProForm/components/render/Render.d.ts +4 -0
- package/es/ProForm/components/render/Render.js +369 -0
- package/es/ProForm/components/render/RenderFields.d.ts +20 -0
- package/es/ProForm/components/render/RenderFields.js +176 -0
- package/es/ProForm/components/render/propsType.d.ts +210 -0
- package/es/ProForm/components/render/propsType.js +7 -0
- package/es/ProForm/index.d.ts +10 -0
- package/es/ProForm/index.js +249 -0
- package/es/ProForm/propsType.d.ts +69 -0
- package/es/ProForm/propsType.js +2 -0
- package/es/ProForm/style/index.less +410 -0
- package/es/ProForm/utils/contrastOriginal.d.ts +1 -0
- package/es/ProForm/utils/contrastOriginal.js +28 -0
- package/es/ProForm/utils/index.d.ts +59 -0
- package/es/ProForm/utils/index.js +298 -0
- package/es/ProForm/utils/rulesCreator.d.ts +1 -0
- package/es/ProForm/utils/rulesCreator.js +26 -0
- package/es/ProForm/utils/transformNames.d.ts +10 -0
- package/es/ProForm/utils/transformNames.js +32 -0
- package/es/ProForm/utils/transformValue.d.ts +6 -0
- package/es/ProForm/utils/transformValue.js +49 -0
- package/es/ProForm/utils/useChanged.d.ts +1 -0
- package/es/ProForm/utils/useChanged.js +10 -0
- package/es/ProForm/utils/useForm.d.ts +2 -0
- package/es/ProForm/utils/useForm.js +96 -0
- package/es/ProForm/utils/useShouldUpdate.d.ts +24 -0
- package/es/ProForm/utils/useShouldUpdate.js +184 -0
- package/es/ProForm/utils/valueType.d.ts +64 -0
- package/es/ProForm/utils/valueType.js +194 -0
- package/es/ProIcon/index.d.ts +5 -0
- package/es/ProIcon/index.js +60 -0
- package/es/ProIcon/propsTypes.d.ts +56 -0
- package/es/ProIcon/propsTypes.js +1 -0
- package/es/ProIcon/style/index.less +12 -0
- package/es/ProLayout/components/Layout/Header/index.d.ts +4 -0
- package/es/ProLayout/components/Layout/Header/index.js +33 -0
- package/es/ProLayout/components/Layout/Header/style/index.less +127 -0
- package/es/ProLayout/components/Layout/Icon/Icon.d.ts +10 -0
- package/es/ProLayout/components/Layout/Icon/Icon.js +31 -0
- package/es/ProLayout/components/Layout/Icon/index.d.ts +2 -0
- package/es/ProLayout/components/Layout/Icon/index.js +2 -0
- package/es/ProLayout/components/Layout/Icon/style/index.less +7 -0
- package/es/ProLayout/components/Layout/Menu/FoldMenu/index.d.ts +3 -0
- package/es/ProLayout/components/Layout/Menu/FoldMenu/index.js +98 -0
- package/es/ProLayout/components/Layout/Menu/FoldMenu/style/index.less +100 -0
- package/es/ProLayout/components/Layout/Menu/OpenMenu/index.d.ts +3 -0
- package/es/ProLayout/components/Layout/Menu/OpenMenu/index.js +144 -0
- package/es/ProLayout/components/Layout/Menu/OpenMenu/propsType.d.ts +14 -0
- package/es/ProLayout/components/Layout/Menu/OpenMenu/propsType.js +1 -0
- package/es/ProLayout/components/Layout/Menu/OpenMenu/style/index.less +177 -0
- package/es/ProLayout/components/Layout/Menu/SideMenu/index.d.ts +3 -0
- package/es/ProLayout/components/Layout/Menu/SideMenu/index.js +34 -0
- package/es/ProLayout/components/Layout/Menu/SideMenu/style/index.less +97 -0
- package/es/ProLayout/components/Layout/Menu/index.d.ts +4 -0
- package/es/ProLayout/components/Layout/Menu/index.js +62 -0
- package/es/ProLayout/components/Layout/Menu/style/index.less +131 -0
- package/es/ProLayout/components/Layout/Notice/index.d.ts +4 -0
- package/es/ProLayout/components/Layout/Notice/index.js +27 -0
- package/es/ProLayout/components/Layout/Notice/style/index.less +34 -0
- package/es/ProLayout/components/Layout/index.d.ts +4 -0
- package/es/ProLayout/components/Layout/index.js +4 -0
- package/es/ProLayout/components/Layout/index.less +4 -0
- package/es/ProLayout/components/ProCollapse/PropTypes.d.ts +73 -0
- package/es/ProLayout/components/ProCollapse/PropTypes.js +1 -0
- package/es/ProLayout/components/ProCollapse/index.d.ts +3 -0
- package/es/ProLayout/components/ProCollapse/index.js +95 -0
- package/es/ProLayout/components/ProCollapse/style/index.less +153 -0
- package/es/ProLayout/components/ProFooter/PropTypes.d.ts +11 -0
- package/es/ProLayout/components/ProFooter/PropTypes.js +1 -0
- package/es/ProLayout/components/ProFooter/index.d.ts +4 -0
- package/es/ProLayout/components/ProFooter/index.js +47 -0
- package/es/ProLayout/components/ProFooter/style/index.less +10 -0
- package/es/ProLayout/components/ProHeader/PropTypes.d.ts +72 -0
- package/es/ProLayout/components/ProHeader/PropTypes.js +1 -0
- package/es/ProLayout/components/ProHeader/components/Copy/index.d.ts +4 -0
- package/es/ProLayout/components/ProHeader/components/Copy/index.js +25 -0
- package/es/ProLayout/components/ProHeader/components/index.d.ts +1 -0
- package/es/ProLayout/components/ProHeader/components/index.js +1 -0
- package/es/ProLayout/components/ProHeader/index.d.ts +4 -0
- package/es/ProLayout/components/ProHeader/index.js +367 -0
- package/es/ProLayout/components/ProHeader/style/index.less +337 -0
- package/es/ProLayout/components/index.d.ts +3 -0
- package/es/ProLayout/components/index.js +3 -0
- package/es/ProLayout/images/close.png +0 -0
- package/es/ProLayout/images/logoImg.png +0 -0
- package/es/ProLayout/images/pack.png +0 -0
- package/es/ProLayout/images/tipMsg.png +0 -0
- package/es/ProLayout/index.d.ts +20 -0
- package/es/ProLayout/index.js +108 -0
- package/es/ProLayout/propTypes.d.ts +60 -0
- package/es/ProLayout/propTypes.js +1 -0
- package/es/ProLayout/style/index.less +52 -0
- package/es/ProLayout/utils/index.d.ts +36 -0
- package/es/ProLayout/utils/index.js +159 -0
- package/es/ProSelect/index.d.ts +5 -0
- package/es/ProSelect/index.js +278 -0
- package/es/ProSelect/propsType.d.ts +41 -0
- package/es/ProSelect/propsType.js +1 -0
- package/es/ProStep/components/Anchor/index.d.ts +2 -0
- package/es/ProStep/components/Anchor/index.js +94 -0
- package/es/ProStep/components/Item/index.d.ts +6 -0
- package/es/ProStep/components/Item/index.js +18 -0
- package/es/ProStep/components/Listener/index.d.ts +5 -0
- package/es/ProStep/components/Listener/index.js +35 -0
- package/es/ProStep/components/Step/index.d.ts +5 -0
- package/es/ProStep/components/Step/index.js +68 -0
- package/es/ProStep/index.d.ts +18 -0
- package/es/ProStep/index.js +130 -0
- package/es/ProStep/propsType.d.ts +19 -0
- package/es/ProStep/propsType.js +1 -0
- package/es/ProStep/style/index.less +181 -0
- package/es/ProStep/utils/index.d.ts +2 -0
- package/es/ProStep/utils/index.js +16 -0
- package/es/ProTable/components/ResizableLine/index.d.ts +2 -0
- package/es/ProTable/components/ResizableLine/index.js +10 -0
- package/es/ProTable/components/TableResizable/index.d.ts +13 -0
- package/es/ProTable/components/TableResizable/index.js +98 -0
- package/es/ProTable/components/index.d.ts +2 -0
- package/es/ProTable/components/index.js +2 -0
- package/es/ProTable/index.d.ts +16 -0
- package/es/ProTable/index.js +316 -0
- package/es/ProTable/propsType.d.ts +87 -0
- package/es/ProTable/propsType.js +1 -0
- package/es/ProTable/style/index.less +299 -0
- package/es/ProTable/useAntdTable.d.ts +82 -0
- package/es/ProTable/useAntdTable.js +374 -0
- package/es/ProTable/utils.d.ts +12 -0
- package/es/ProTable/utils.js +234 -0
- package/es/ProTooltip/index.d.ts +4 -0
- package/es/ProTooltip/index.js +93 -0
- package/es/ProTooltip/propsType.d.ts +13 -0
- package/es/ProTooltip/propsType.js +1 -0
- package/es/ProTooltip/style/index.less +22 -0
- package/es/ProTransferModal/components/SortableItem/index.d.ts +10 -0
- package/es/ProTransferModal/components/SortableItem/index.js +56 -0
- package/es/ProTransferModal/index.d.ts +4 -0
- package/es/ProTransferModal/index.js +338 -0
- package/es/ProTransferModal/propsType.d.ts +34 -0
- package/es/ProTransferModal/propsType.js +1 -0
- package/es/ProTransferModal/style/index.less +161 -0
- package/es/ProUpload/Example.d.ts +7 -0
- package/es/ProUpload/Example.js +40 -0
- package/es/ProUpload/FileItem.d.ts +33 -0
- package/es/ProUpload/FileItem.js +207 -0
- package/es/ProUpload/index.d.ts +5 -0
- package/es/ProUpload/index.js +404 -0
- package/es/ProUpload/propsType.d.ts +132 -0
- package/es/ProUpload/propsType.js +1 -0
- package/es/ProUpload/style/delete.svg +1 -0
- package/es/ProUpload/style/download.svg +1 -0
- package/es/ProUpload/style/fileItem.less +158 -0
- package/es/ProUpload/style/icon-PDF.png +0 -0
- package/es/ProUpload/style/icon-TXT.png +0 -0
- package/es/ProUpload/style/icon-excel.png +0 -0
- package/es/ProUpload/style/icon-pic.png +0 -0
- package/es/ProUpload/style/icon-word.png +0 -0
- package/es/ProUpload/style/index.less +242 -0
- package/es/ProUpload/style/look.svg +1 -0
- package/es/ProUtils/utils/index.d.ts +6 -0
- package/es/ProUtils/utils/index.js +24 -0
- package/es/ProViewer/index.d.ts +4 -0
- package/es/ProViewer/index.js +209 -0
- package/es/ProViewer/propsType.d.ts +35 -0
- package/es/ProViewer/propsType.js +1 -0
- package/es/ProViewer/style/index.less +8 -0
- package/es/ProWaterMark/index.d.ts +4 -0
- package/es/ProWaterMark/index.js +13 -0
- package/es/ProWaterMark/propsType.d.ts +82 -0
- package/es/ProWaterMark/propsType.js +1 -0
- package/es/assets/arrow.svg +1 -0
- package/es/assets/catalog.svg +1 -0
- package/es/assets/copy.svg +1 -0
- package/es/assets/customColumn.svg +2 -0
- package/es/assets/delete.svg +1 -0
- package/es/assets/disabled.svg +18 -0
- package/es/assets/drag.svg +25 -0
- package/es/assets/empty.png +0 -0
- package/es/assets/reset.svg +11 -0
- package/es/assets/search.svg +1 -0
- package/es/assets/tip.svg +1 -0
- package/es/assets/view.svg +1 -0
- package/es/global.less +5 -0
- package/es/index.d.ts +30 -0
- package/es/index.js +44 -0
- package/es/old/ProBackBtn/index.d.ts +9 -0
- package/es/old/ProBackBtn/index.js +28 -0
- package/es/old/ProBackBtn/propsType.d.ts +4 -0
- package/es/old/ProBackBtn/propsType.js +1 -0
- package/es/old/ProBackBtn/style/index.less +19 -0
- package/es/old/ProCertValidity/index.d.ts +9 -0
- package/es/old/ProCertValidity/index.js +183 -0
- package/es/old/ProCertValidity/propsType.d.ts +19 -0
- package/es/old/ProCertValidity/propsType.js +1 -0
- package/es/old/ProCustomColumn/LeftBody.d.ts +4 -0
- package/es/old/ProCustomColumn/LeftBody.js +206 -0
- package/es/old/ProCustomColumn/RightBody.d.ts +9 -0
- package/es/old/ProCustomColumn/RightBody.js +145 -0
- package/es/old/ProCustomColumn/index.d.ts +4 -0
- package/es/old/ProCustomColumn/index.js +165 -0
- package/es/old/ProCustomColumn/propsType.d.ts +39 -0
- package/es/old/ProCustomColumn/propsType.js +1 -0
- package/es/old/ProCustomColumn/style/LeftBody.less +74 -0
- package/es/old/ProCustomColumn/style/RightBody.less +25 -0
- package/es/old/ProCustomColumn/style/index.less +88 -0
- package/es/old/ProEditableTable/index.d.ts +4 -0
- package/es/old/ProEditableTable/index.js +572 -0
- package/es/old/ProEditableTable/propsType.d.ts +68 -0
- package/es/old/ProEditableTable/propsType.js +1 -0
- package/es/old/ProEditableTable/style/index.less +76 -0
- package/es/old/ProEditableTable/utils.d.ts +29 -0
- package/es/old/ProEditableTable/utils.js +307 -0
- package/es/old/ProEnumSelectModal/hooks/useRequestList.d.ts +32 -0
- package/es/old/ProEnumSelectModal/hooks/useRequestList.js +110 -0
- package/es/old/ProEnumSelectModal/index.d.ts +12 -0
- package/es/old/ProEnumSelectModal/index.js +222 -0
- package/es/old/ProEnumSelectModal/propsType.d.ts +22 -0
- package/es/old/ProEnumSelectModal/propsType.js +1 -0
- package/es/old/ProEnumSelectModal/style/index.less +98 -0
- package/es/style/components.less +18 -0
- package/es/style/core/compatible.less +30 -0
- package/es/style/core/index.less +3 -0
- package/es/style/core/mixins.less +70 -0
- package/es/style/core/normalize.less +246 -0
- package/es/style/index.less +2 -0
- package/es/style/theme/antd.less +647 -0
- package/es/style/theme/index.less +190 -0
- package/lib/ProConfigProvider/index.d.ts +22 -0
- package/lib/ProConfigProvider/index.js +64 -0
- package/lib/ProDownload/DownloadHelper.d.ts +32 -0
- package/lib/ProDownload/DownloadHelper.js +183 -0
- package/lib/ProDownload/index.d.ts +4 -0
- package/lib/ProDownload/index.js +183 -0
- package/lib/ProDownload/propsType.d.ts +54 -0
- package/lib/ProDownload/propsType.js +5 -0
- package/lib/ProDrawerForm/components/ProDrawer/index.d.ts +7 -0
- package/lib/ProDrawerForm/components/ProDrawer/index.js +208 -0
- package/lib/ProDrawerForm/components/ProModal/index.d.ts +7 -0
- package/lib/ProDrawerForm/components/ProModal/index.js +167 -0
- package/lib/ProDrawerForm/components/index.d.ts +2 -0
- package/lib/ProDrawerForm/components/index.js +20 -0
- package/lib/ProDrawerForm/index.d.ts +5 -0
- package/lib/ProDrawerForm/index.js +73 -0
- package/lib/ProDrawerForm/propsType.d.ts +88 -0
- package/lib/ProDrawerForm/propsType.js +5 -0
- package/lib/ProDrawerForm/style/index.less +125 -0
- package/lib/ProDrawerForm/utils/index.d.ts +6 -0
- package/lib/ProDrawerForm/utils/index.js +23 -0
- package/lib/ProEditLabel/components/RenderForm.d.ts +3 -0
- package/lib/ProEditLabel/components/RenderForm.js +75 -0
- package/lib/ProEditLabel/index.d.ts +4 -0
- package/lib/ProEditLabel/index.js +324 -0
- package/lib/ProEditLabel/propsType.d.ts +43 -0
- package/lib/ProEditLabel/propsType.js +5 -0
- package/lib/ProEditLabel/style/index.less +105 -0
- package/lib/ProEditLabel/utils/index.d.ts +9 -0
- package/lib/ProEditLabel/utils/index.js +41 -0
- package/lib/ProEditTable/components/ActionButton/index.d.ts +2 -0
- package/lib/ProEditTable/components/ActionButton/index.js +75 -0
- package/lib/ProEditTable/components/DndWrapper/index.d.ts +14 -0
- package/lib/ProEditTable/components/DndWrapper/index.js +91 -0
- package/lib/ProEditTable/components/RenderField/index.d.ts +2 -0
- package/lib/ProEditTable/components/RenderField/index.js +473 -0
- package/lib/ProEditTable/components/RenderToolbar/index.d.ts +2 -0
- package/lib/ProEditTable/components/RenderToolbar/index.js +143 -0
- package/lib/ProEditTable/components/Summary/index.d.ts +12 -0
- package/lib/ProEditTable/components/Summary/index.js +84 -0
- package/lib/ProEditTable/components/Validator/index.d.ts +10 -0
- package/lib/ProEditTable/components/Validator/index.js +32 -0
- package/lib/ProEditTable/components/index.d.ts +6 -0
- package/lib/ProEditTable/components/index.js +55 -0
- package/lib/ProEditTable/index.d.ts +4 -0
- package/lib/ProEditTable/index.js +278 -0
- package/lib/ProEditTable/propsType.d.ts +201 -0
- package/lib/ProEditTable/propsType.js +5 -0
- package/lib/ProEditTable/style/index.less +227 -0
- package/lib/ProEditTable/utils/config.d.ts +25 -0
- package/lib/ProEditTable/utils/config.js +227 -0
- package/lib/ProEditTable/utils/index.d.ts +10 -0
- package/lib/ProEditTable/utils/index.js +401 -0
- package/lib/ProEditTable/utils/tools.d.ts +16 -0
- package/lib/ProEditTable/utils/tools.js +87 -0
- package/lib/ProEditTable/utils/transform.d.ts +5 -0
- package/lib/ProEditTable/utils/transform.js +22 -0
- package/lib/ProEnum/getEnumLabel.d.ts +2 -0
- package/lib/ProEnum/getEnumLabel.js +70 -0
- package/lib/ProEnum/index.d.ts +8 -0
- package/lib/ProEnum/index.js +225 -0
- package/lib/ProEnum/propsType.d.ts +80 -0
- package/lib/ProEnum/propsType.js +5 -0
- package/lib/ProEnum/useEnum.d.ts +14 -0
- package/lib/ProEnum/useEnum.js +84 -0
- package/lib/ProEnum/useEnumRequest.d.ts +3 -0
- package/lib/ProEnum/useEnumRequest.js +241 -0
- package/lib/ProEnum/utils.d.ts +30 -0
- package/lib/ProEnum/utils.js +92 -0
- package/lib/ProForm/components/Container.d.ts +8 -0
- package/lib/ProForm/components/Container.js +34 -0
- package/lib/ProForm/components/FormFooter/index.d.ts +4 -0
- package/lib/ProForm/components/FormFooter/index.js +42 -0
- package/lib/ProForm/components/FormFooter/propsType.d.ts +17 -0
- package/lib/ProForm/components/FormFooter/propsType.js +5 -0
- package/lib/ProForm/components/base/Checkbox/index.d.ts +13 -0
- package/lib/ProForm/components/base/Checkbox/index.js +74 -0
- package/lib/ProForm/components/base/DatePicker/index.d.ts +12 -0
- package/lib/ProForm/components/base/DatePicker/index.js +71 -0
- package/lib/ProForm/components/base/FormList/components/ActionButton.d.ts +19 -0
- package/lib/ProForm/components/base/FormList/components/ActionButton.js +174 -0
- package/lib/ProForm/components/base/FormList/components/BlockFields.d.ts +16 -0
- package/lib/ProForm/components/base/FormList/components/BlockFields.js +75 -0
- package/lib/ProForm/components/base/FormList/components/BlockTitle.d.ts +15 -0
- package/lib/ProForm/components/base/FormList/components/BlockTitle.js +35 -0
- package/lib/ProForm/components/base/FormList/components/LineFields.d.ts +14 -0
- package/lib/ProForm/components/base/FormList/components/LineFields.js +53 -0
- package/lib/ProForm/components/base/FormList/components/ToolbarButton.d.ts +12 -0
- package/lib/ProForm/components/base/FormList/components/ToolbarButton.js +85 -0
- package/lib/ProForm/components/base/FormList/index.d.ts +43 -0
- package/lib/ProForm/components/base/FormList/index.js +102 -0
- package/lib/ProForm/components/base/FormList/style/index.less +36 -0
- package/lib/ProForm/components/base/FormList/utils.d.ts +10 -0
- package/lib/ProForm/components/base/FormList/utils.js +26 -0
- package/lib/ProForm/components/base/Input/index.d.ts +3 -0
- package/lib/ProForm/components/base/Input/index.js +40 -0
- package/lib/ProForm/components/base/Input/propsType.d.ts +14 -0
- package/lib/ProForm/components/base/Input/propsType.js +5 -0
- package/lib/ProForm/components/base/InputNumber/index.d.ts +10 -0
- package/lib/ProForm/components/base/InputNumber/index.js +183 -0
- package/lib/ProForm/components/base/Radio/index.d.ts +14 -0
- package/lib/ProForm/components/base/Radio/index.js +70 -0
- package/lib/ProForm/components/base/RangePicker/index.d.ts +9 -0
- package/lib/ProForm/components/base/RangePicker/index.js +64 -0
- package/lib/ProForm/components/base/Select/index.d.ts +9 -0
- package/lib/ProForm/components/base/Select/index.js +73 -0
- package/lib/ProForm/components/base/Switch/index.d.ts +9 -0
- package/lib/ProForm/components/base/Switch/index.js +40 -0
- package/lib/ProForm/components/base/SwitchCheckbox/index.d.ts +9 -0
- package/lib/ProForm/components/base/SwitchCheckbox/index.js +54 -0
- package/lib/ProForm/components/base/SwitchCheckbox/style/index.less +13 -0
- package/lib/ProForm/components/base/TextArea/index.d.ts +8 -0
- package/lib/ProForm/components/base/TextArea/index.js +42 -0
- package/lib/ProForm/components/combination/ProAddressBar/index.d.ts +4 -0
- package/lib/ProForm/components/combination/ProAddressBar/index.js +401 -0
- package/lib/ProForm/components/combination/ProAddressBar/propsType.d.ts +28 -0
- package/lib/ProForm/components/combination/ProAddressBar/propsType.js +5 -0
- package/lib/ProForm/components/combination/ProAddressBar/style/index.less +26 -0
- package/lib/ProForm/components/combination/ProCombination/index.d.ts +6 -0
- package/lib/ProForm/components/combination/ProCombination/index.js +204 -0
- package/lib/ProForm/components/combination/ProCombination/propsType.d.ts +62 -0
- package/lib/ProForm/components/combination/ProCombination/propsType.js +5 -0
- package/lib/ProForm/components/combination/ProCombination/style/index.less +15 -0
- package/lib/ProForm/components/combination/ProModalSelect/hooks/useRequestList.d.ts +33 -0
- package/lib/ProForm/components/combination/ProModalSelect/hooks/useRequestList.js +145 -0
- package/lib/ProForm/components/combination/ProModalSelect/index.d.ts +4 -0
- package/lib/ProForm/components/combination/ProModalSelect/index.js +646 -0
- package/lib/ProForm/components/combination/ProModalSelect/propsType.d.ts +45 -0
- package/lib/ProForm/components/combination/ProModalSelect/propsType.js +5 -0
- package/lib/ProForm/components/combination/ProModalSelect/style/index.less +57 -0
- package/lib/ProForm/components/combination/ProNumberRange/index.d.ts +4 -0
- package/lib/ProForm/components/combination/ProNumberRange/index.js +187 -0
- package/lib/ProForm/components/combination/ProNumberRange/propsType.d.ts +76 -0
- package/lib/ProForm/components/combination/ProNumberRange/propsType.js +5 -0
- package/lib/ProForm/components/combination/ProNumberRange/style/index.less +79 -0
- package/lib/ProForm/components/combination/ProRangeLimit/index.d.ts +17 -0
- package/lib/ProForm/components/combination/ProRangeLimit/index.js +146 -0
- package/lib/ProForm/components/combination/ProTimeLimit/hooks/useControlled.d.ts +8 -0
- package/lib/ProForm/components/combination/ProTimeLimit/hooks/useControlled.js +33 -0
- package/lib/ProForm/components/combination/ProTimeLimit/hooks/useTransformDate.d.ts +12 -0
- package/lib/ProForm/components/combination/ProTimeLimit/hooks/useTransformDate.js +44 -0
- package/lib/ProForm/components/combination/ProTimeLimit/index.d.ts +19 -0
- package/lib/ProForm/components/combination/ProTimeLimit/index.js +131 -0
- package/lib/ProForm/components/combination/ProTimeLimit/style/index.less +12 -0
- package/lib/ProForm/components/index.d.ts +30 -0
- package/lib/ProForm/components/index.js +223 -0
- package/lib/ProForm/components/old/CertNo/index.d.ts +18 -0
- package/lib/ProForm/components/old/CertNo/index.js +69 -0
- package/lib/ProForm/components/old/CertNo/propsType.d.ts +13 -0
- package/lib/ProForm/components/old/CertNo/propsType.js +5 -0
- package/lib/ProForm/components/old/EnumSelect/hooks/useRequestList.d.ts +33 -0
- package/lib/ProForm/components/old/EnumSelect/hooks/useRequestList.js +115 -0
- package/lib/ProForm/components/old/EnumSelect/index.d.ts +4 -0
- package/lib/ProForm/components/old/EnumSelect/index.js +266 -0
- package/lib/ProForm/components/old/EnumSelect/interface.d.ts +29 -0
- package/lib/ProForm/components/old/EnumSelect/interface.js +5 -0
- package/lib/ProForm/components/old/EnumSelect/style/index.less +114 -0
- package/lib/ProForm/components/old/InputRange/index.d.ts +16 -0
- package/lib/ProForm/components/old/InputRange/index.js +105 -0
- package/lib/ProForm/components/old/InputWithSuffix/index.d.ts +3 -0
- package/lib/ProForm/components/old/InputWithSuffix/index.js +51 -0
- package/lib/ProForm/components/old/InputWithSuffix/propsTypes.d.ts +11 -0
- package/lib/ProForm/components/old/InputWithSuffix/propsTypes.js +5 -0
- package/lib/ProForm/components/old/ProAddress/index.d.ts +27 -0
- package/lib/ProForm/components/old/ProAddress/index.js +290 -0
- package/lib/ProForm/components/old/ProAddress/propsTypes.d.ts +16 -0
- package/lib/ProForm/components/old/ProAddress/propsTypes.js +5 -0
- package/lib/ProForm/components/old/ProCertNo/index.d.ts +14 -0
- package/lib/ProForm/components/old/ProCertNo/index.js +66 -0
- package/lib/ProForm/components/old/ProCertNo/propsType.d.ts +18 -0
- package/lib/ProForm/components/old/ProCertNo/propsType.js +5 -0
- package/lib/ProForm/components/old/ProCertValidity/index.d.ts +9 -0
- package/lib/ProForm/components/old/ProCertValidity/index.js +187 -0
- package/lib/ProForm/components/old/ProCertValidity/propsType.d.ts +19 -0
- package/lib/ProForm/components/old/ProCertValidity/propsType.js +5 -0
- package/lib/ProForm/components/old/ProRangeBox/index.d.ts +2 -0
- package/lib/ProForm/components/old/ProRangeBox/index.js +88 -0
- package/lib/ProForm/components/old/ProRangeBox/propsType.d.ts +3 -0
- package/lib/ProForm/components/old/ProRangeBox/propsType.js +5 -0
- package/lib/ProForm/components/render/Render.d.ts +4 -0
- package/lib/ProForm/components/render/Render.js +373 -0
- package/lib/ProForm/components/render/RenderFields.d.ts +20 -0
- package/lib/ProForm/components/render/RenderFields.js +185 -0
- package/lib/ProForm/components/render/propsType.d.ts +210 -0
- package/lib/ProForm/components/render/propsType.js +11 -0
- package/lib/ProForm/index.d.ts +10 -0
- package/lib/ProForm/index.js +251 -0
- package/lib/ProForm/propsType.d.ts +69 -0
- package/lib/ProForm/propsType.js +23 -0
- package/lib/ProForm/style/index.less +410 -0
- package/lib/ProForm/utils/contrastOriginal.d.ts +1 -0
- package/lib/ProForm/utils/contrastOriginal.js +35 -0
- package/lib/ProForm/utils/index.d.ts +59 -0
- package/lib/ProForm/utils/index.js +328 -0
- package/lib/ProForm/utils/rulesCreator.d.ts +1 -0
- package/lib/ProForm/utils/rulesCreator.js +33 -0
- package/lib/ProForm/utils/transformNames.d.ts +10 -0
- package/lib/ProForm/utils/transformNames.js +39 -0
- package/lib/ProForm/utils/transformValue.d.ts +6 -0
- package/lib/ProForm/utils/transformValue.js +58 -0
- package/lib/ProForm/utils/useChanged.d.ts +1 -0
- package/lib/ProForm/utils/useChanged.js +16 -0
- package/lib/ProForm/utils/useForm.d.ts +2 -0
- package/lib/ProForm/utils/useForm.js +103 -0
- package/lib/ProForm/utils/useShouldUpdate.d.ts +24 -0
- package/lib/ProForm/utils/useShouldUpdate.js +192 -0
- package/lib/ProForm/utils/valueType.d.ts +64 -0
- package/lib/ProForm/utils/valueType.js +202 -0
- package/lib/ProIcon/index.d.ts +5 -0
- package/lib/ProIcon/index.js +68 -0
- package/lib/ProIcon/propsTypes.d.ts +56 -0
- package/lib/ProIcon/propsTypes.js +5 -0
- package/lib/ProIcon/style/index.less +12 -0
- package/lib/ProLayout/components/Layout/Header/index.d.ts +4 -0
- package/lib/ProLayout/components/Layout/Header/index.js +41 -0
- package/lib/ProLayout/components/Layout/Header/style/index.less +127 -0
- package/lib/ProLayout/components/Layout/Icon/Icon.d.ts +10 -0
- package/lib/ProLayout/components/Layout/Icon/Icon.js +39 -0
- package/lib/ProLayout/components/Layout/Icon/index.d.ts +2 -0
- package/lib/ProLayout/components/Layout/Icon/index.js +10 -0
- package/lib/ProLayout/components/Layout/Icon/style/index.less +7 -0
- package/lib/ProLayout/components/Layout/Menu/FoldMenu/index.d.ts +3 -0
- package/lib/ProLayout/components/Layout/Menu/FoldMenu/index.js +103 -0
- package/lib/ProLayout/components/Layout/Menu/FoldMenu/style/index.less +100 -0
- package/lib/ProLayout/components/Layout/Menu/OpenMenu/index.d.ts +3 -0
- package/lib/ProLayout/components/Layout/Menu/OpenMenu/index.js +152 -0
- package/lib/ProLayout/components/Layout/Menu/OpenMenu/propsType.d.ts +14 -0
- package/lib/ProLayout/components/Layout/Menu/OpenMenu/propsType.js +5 -0
- package/lib/ProLayout/components/Layout/Menu/OpenMenu/style/index.less +177 -0
- package/lib/ProLayout/components/Layout/Menu/SideMenu/index.d.ts +3 -0
- package/lib/ProLayout/components/Layout/Menu/SideMenu/index.js +43 -0
- package/lib/ProLayout/components/Layout/Menu/SideMenu/style/index.less +97 -0
- package/lib/ProLayout/components/Layout/Menu/index.d.ts +4 -0
- package/lib/ProLayout/components/Layout/Menu/index.js +71 -0
- package/lib/ProLayout/components/Layout/Menu/style/index.less +131 -0
- package/lib/ProLayout/components/Layout/Notice/index.d.ts +4 -0
- package/lib/ProLayout/components/Layout/Notice/index.js +35 -0
- package/lib/ProLayout/components/Layout/Notice/style/index.less +34 -0
- package/lib/ProLayout/components/Layout/index.d.ts +4 -0
- package/lib/ProLayout/components/Layout/index.js +34 -0
- package/lib/ProLayout/components/Layout/index.less +4 -0
- package/lib/ProLayout/components/ProCollapse/PropTypes.d.ts +73 -0
- package/lib/ProLayout/components/ProCollapse/PropTypes.js +5 -0
- package/lib/ProLayout/components/ProCollapse/index.d.ts +3 -0
- package/lib/ProLayout/components/ProCollapse/index.js +100 -0
- package/lib/ProLayout/components/ProCollapse/style/index.less +153 -0
- package/lib/ProLayout/components/ProFooter/PropTypes.d.ts +11 -0
- package/lib/ProLayout/components/ProFooter/PropTypes.js +5 -0
- package/lib/ProLayout/components/ProFooter/index.d.ts +4 -0
- package/lib/ProLayout/components/ProFooter/index.js +55 -0
- package/lib/ProLayout/components/ProFooter/style/index.less +10 -0
- package/lib/ProLayout/components/ProHeader/PropTypes.d.ts +72 -0
- package/lib/ProLayout/components/ProHeader/PropTypes.js +5 -0
- package/lib/ProLayout/components/ProHeader/components/Copy/index.d.ts +4 -0
- package/lib/ProLayout/components/ProHeader/components/Copy/index.js +32 -0
- package/lib/ProLayout/components/ProHeader/components/index.d.ts +1 -0
- package/lib/ProLayout/components/ProHeader/components/index.js +13 -0
- package/lib/ProLayout/components/ProHeader/index.d.ts +4 -0
- package/lib/ProLayout/components/ProHeader/index.js +371 -0
- package/lib/ProLayout/components/ProHeader/style/index.less +337 -0
- package/lib/ProLayout/components/index.d.ts +3 -0
- package/lib/ProLayout/components/index.js +27 -0
- package/lib/ProLayout/images/close.png +0 -0
- package/lib/ProLayout/images/logoImg.png +0 -0
- package/lib/ProLayout/images/pack.png +0 -0
- package/lib/ProLayout/images/tipMsg.png +0 -0
- package/lib/ProLayout/index.d.ts +20 -0
- package/lib/ProLayout/index.js +117 -0
- package/lib/ProLayout/propTypes.d.ts +60 -0
- package/lib/ProLayout/propTypes.js +5 -0
- package/lib/ProLayout/style/index.less +52 -0
- package/lib/ProLayout/utils/index.d.ts +36 -0
- package/lib/ProLayout/utils/index.js +173 -0
- package/lib/ProSelect/index.d.ts +5 -0
- package/lib/ProSelect/index.js +279 -0
- package/lib/ProSelect/propsType.d.ts +41 -0
- package/lib/ProSelect/propsType.js +5 -0
- package/lib/ProStep/components/Anchor/index.d.ts +2 -0
- package/lib/ProStep/components/Anchor/index.js +103 -0
- package/lib/ProStep/components/Item/index.d.ts +6 -0
- package/lib/ProStep/components/Item/index.js +26 -0
- package/lib/ProStep/components/Listener/index.d.ts +5 -0
- package/lib/ProStep/components/Listener/index.js +43 -0
- package/lib/ProStep/components/Step/index.d.ts +5 -0
- package/lib/ProStep/components/Step/index.js +78 -0
- package/lib/ProStep/index.d.ts +18 -0
- package/lib/ProStep/index.js +141 -0
- package/lib/ProStep/propsType.d.ts +19 -0
- package/lib/ProStep/propsType.js +5 -0
- package/lib/ProStep/style/index.less +181 -0
- package/lib/ProStep/utils/index.d.ts +2 -0
- package/lib/ProStep/utils/index.js +24 -0
- package/lib/ProTable/components/ResizableLine/index.d.ts +2 -0
- package/lib/ProTable/components/ResizableLine/index.js +18 -0
- package/lib/ProTable/components/TableResizable/index.d.ts +13 -0
- package/lib/ProTable/components/TableResizable/index.js +99 -0
- package/lib/ProTable/components/index.d.ts +2 -0
- package/lib/ProTable/components/index.js +20 -0
- package/lib/ProTable/index.d.ts +16 -0
- package/lib/ProTable/index.js +324 -0
- package/lib/ProTable/propsType.d.ts +87 -0
- package/lib/ProTable/propsType.js +5 -0
- package/lib/ProTable/style/index.less +299 -0
- package/lib/ProTable/useAntdTable.d.ts +82 -0
- package/lib/ProTable/useAntdTable.js +382 -0
- package/lib/ProTable/utils.d.ts +12 -0
- package/lib/ProTable/utils.js +242 -0
- package/lib/ProTooltip/index.d.ts +4 -0
- package/lib/ProTooltip/index.js +101 -0
- package/lib/ProTooltip/propsType.d.ts +13 -0
- package/lib/ProTooltip/propsType.js +5 -0
- package/lib/ProTooltip/style/index.less +22 -0
- package/lib/ProTransferModal/components/SortableItem/index.d.ts +10 -0
- package/lib/ProTransferModal/components/SortableItem/index.js +63 -0
- package/lib/ProTransferModal/index.d.ts +4 -0
- package/lib/ProTransferModal/index.js +334 -0
- package/lib/ProTransferModal/propsType.d.ts +34 -0
- package/lib/ProTransferModal/propsType.js +5 -0
- package/lib/ProTransferModal/style/index.less +161 -0
- package/lib/ProUpload/Example.d.ts +7 -0
- package/lib/ProUpload/Example.js +50 -0
- package/lib/ProUpload/FileItem.d.ts +33 -0
- package/lib/ProUpload/FileItem.js +216 -0
- package/lib/ProUpload/index.d.ts +5 -0
- package/lib/ProUpload/index.js +406 -0
- package/lib/ProUpload/propsType.d.ts +132 -0
- package/lib/ProUpload/propsType.js +5 -0
- package/lib/ProUpload/style/delete.svg +1 -0
- package/lib/ProUpload/style/download.svg +1 -0
- package/lib/ProUpload/style/fileItem.less +158 -0
- 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 +242 -0
- package/lib/ProUpload/style/look.svg +1 -0
- package/lib/ProUtils/utils/index.d.ts +6 -0
- package/lib/ProUtils/utils/index.js +31 -0
- package/lib/ProViewer/index.d.ts +4 -0
- package/lib/ProViewer/index.js +214 -0
- package/lib/ProViewer/propsType.d.ts +35 -0
- package/lib/ProViewer/propsType.js +5 -0
- package/lib/ProViewer/style/index.less +8 -0
- package/lib/ProWaterMark/index.d.ts +4 -0
- package/lib/ProWaterMark/index.js +21 -0
- package/lib/ProWaterMark/propsType.d.ts +82 -0
- package/lib/ProWaterMark/propsType.js +5 -0
- package/lib/assets/arrow.svg +1 -0
- package/lib/assets/catalog.svg +1 -0
- package/lib/assets/copy.svg +1 -0
- package/lib/assets/customColumn.svg +2 -0
- package/lib/assets/delete.svg +1 -0
- package/lib/assets/disabled.svg +18 -0
- package/lib/assets/drag.svg +25 -0
- package/lib/assets/empty.png +0 -0
- package/lib/assets/reset.svg +11 -0
- package/lib/assets/search.svg +1 -0
- package/lib/assets/tip.svg +1 -0
- package/lib/assets/view.svg +1 -0
- package/lib/global.less +5 -0
- package/lib/index.d.ts +30 -0
- package/lib/index.js +267 -0
- package/lib/old/ProBackBtn/index.d.ts +9 -0
- package/lib/old/ProBackBtn/index.js +35 -0
- package/lib/old/ProBackBtn/propsType.d.ts +4 -0
- package/lib/old/ProBackBtn/propsType.js +5 -0
- package/lib/old/ProBackBtn/style/index.less +19 -0
- package/lib/old/ProCertValidity/index.d.ts +9 -0
- package/lib/old/ProCertValidity/index.js +188 -0
- package/lib/old/ProCertValidity/propsType.d.ts +19 -0
- package/lib/old/ProCertValidity/propsType.js +5 -0
- package/lib/old/ProCustomColumn/LeftBody.d.ts +4 -0
- package/lib/old/ProCustomColumn/LeftBody.js +212 -0
- package/lib/old/ProCustomColumn/RightBody.d.ts +9 -0
- package/lib/old/ProCustomColumn/RightBody.js +150 -0
- package/lib/old/ProCustomColumn/index.d.ts +4 -0
- package/lib/old/ProCustomColumn/index.js +171 -0
- package/lib/old/ProCustomColumn/propsType.d.ts +39 -0
- package/lib/old/ProCustomColumn/propsType.js +5 -0
- package/lib/old/ProCustomColumn/style/LeftBody.less +74 -0
- package/lib/old/ProCustomColumn/style/RightBody.less +25 -0
- package/lib/old/ProCustomColumn/style/index.less +88 -0
- package/lib/old/ProEditableTable/index.d.ts +4 -0
- package/lib/old/ProEditableTable/index.js +568 -0
- package/lib/old/ProEditableTable/propsType.d.ts +68 -0
- package/lib/old/ProEditableTable/propsType.js +5 -0
- package/lib/old/ProEditableTable/style/index.less +76 -0
- package/lib/old/ProEditableTable/utils.d.ts +29 -0
- package/lib/old/ProEditableTable/utils.js +302 -0
- package/lib/old/ProEnumSelectModal/hooks/useRequestList.d.ts +32 -0
- package/lib/old/ProEnumSelectModal/hooks/useRequestList.js +117 -0
- package/lib/old/ProEnumSelectModal/index.d.ts +12 -0
- package/lib/old/ProEnumSelectModal/index.js +220 -0
- package/lib/old/ProEnumSelectModal/propsType.d.ts +22 -0
- package/lib/old/ProEnumSelectModal/propsType.js +5 -0
- package/lib/old/ProEnumSelectModal/style/index.less +98 -0
- package/lib/style/components.less +18 -0
- package/lib/style/core/compatible.less +30 -0
- package/lib/style/core/index.less +3 -0
- package/lib/style/core/mixins.less +70 -0
- package/lib/style/core/normalize.less +246 -0
- package/lib/style/index.less +2 -0
- package/lib/style/theme/antd.less +647 -0
- package/lib/style/theme/index.less +190 -0
- package/package.json +121 -0
- package/source-code/package.json +16 -0
- package/typings.d.ts +6 -0
|
@@ -0,0 +1,396 @@
|
|
|
1
|
+
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
2
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
3
|
+
import "antd/es/tooltip/style";
|
|
4
|
+
import _Tooltip from "antd/es/tooltip";
|
|
5
|
+
import "antd/es/space/style";
|
|
6
|
+
import _Space from "antd/es/space";
|
|
7
|
+
import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
|
|
8
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
9
|
+
import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
|
10
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
11
|
+
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
12
|
+
var _excluded = ["type", "label", "show", "onHandle", "onClick"],
|
|
13
|
+
_excluded2 = ["title", "icon"];
|
|
14
|
+
import React from 'react';
|
|
15
|
+
import { cloneDeep, isArray, isEmpty, isEqual } from 'lodash';
|
|
16
|
+
import classnames from 'classnames';
|
|
17
|
+
import { ReactSVG } from 'react-svg';
|
|
18
|
+
import { actions, defaultBtnNameMap, defaultSingleActionKeys, defaultMultipleActionKeys, defaultEditingActionKeys } from './config';
|
|
19
|
+
import { customValidate, getNamePath, splitNames } from './tools';
|
|
20
|
+
import ProTooltip from '../../ProTooltip';
|
|
21
|
+
import { RenderField, ActionButton } from '../components';
|
|
22
|
+
import tipSvg from '../../assets/tip.svg';
|
|
23
|
+
// 渲染操作栏
|
|
24
|
+
var getActionColumn = function getActionColumn(config) {
|
|
25
|
+
var disabled = config.disabled,
|
|
26
|
+
name = config.name,
|
|
27
|
+
form = config.form,
|
|
28
|
+
virtualKey = config.virtualKey,
|
|
29
|
+
validateKeys = config.validateKeys,
|
|
30
|
+
actionWidth = config.actionWidth,
|
|
31
|
+
actionProps = config.actionProps;
|
|
32
|
+
// actionProps配置为false 默认不插入
|
|
33
|
+
if (actionProps === false || disabled) {
|
|
34
|
+
return false;
|
|
35
|
+
}
|
|
36
|
+
var virtualRowName = getNamePath(name, virtualKey);
|
|
37
|
+
// 设置默认操作栏按钮(区分单行与多行编辑场景)
|
|
38
|
+
var defaultActionKeys = virtualKey ? defaultSingleActionKeys : defaultMultipleActionKeys;
|
|
39
|
+
var nextActionsProps = _toConsumableArray(actionProps);
|
|
40
|
+
// 不设置actionProps
|
|
41
|
+
if (isArray(actionProps) && !(actionProps === null || actionProps === void 0 ? void 0 : actionProps.length)) {
|
|
42
|
+
nextActionsProps = defaultActionKeys.map(function (key) {
|
|
43
|
+
return {
|
|
44
|
+
type: key
|
|
45
|
+
};
|
|
46
|
+
});
|
|
47
|
+
} else {
|
|
48
|
+
// 设置部分actionProps 内置的必选按钮会集成进去,可以手动开启show: false来隐藏对应类型的按钮
|
|
49
|
+
defaultActionKeys.forEach(function (key) {
|
|
50
|
+
if (isArray(actionProps) && !actionProps.find(function (action) {
|
|
51
|
+
return action.type === key;
|
|
52
|
+
})) {
|
|
53
|
+
nextActionsProps.push({
|
|
54
|
+
type: key
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
// 渲染操作按钮前处理下默认数据
|
|
60
|
+
var actionBtns = nextActionsProps.map(function (action) {
|
|
61
|
+
var type = action.type,
|
|
62
|
+
label = action.label,
|
|
63
|
+
show = action.show,
|
|
64
|
+
onHandle = action.onHandle,
|
|
65
|
+
onClick = action.onClick,
|
|
66
|
+
buttonProps = _objectWithoutProperties(action, _excluded);
|
|
67
|
+
action.isEditable = defaultEditingActionKeys.includes(type);
|
|
68
|
+
action.label = label !== null && label !== void 0 ? label : defaultBtnNameMap[type];
|
|
69
|
+
action.show = show !== null && show !== void 0 ? show : true;
|
|
70
|
+
action.onClick = /*#__PURE__*/function () {
|
|
71
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(record, index) {
|
|
72
|
+
var _yield$action$onHandl, _action$onHandle;
|
|
73
|
+
var rowName, _record, result;
|
|
74
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
75
|
+
while (1) switch (_context.prev = _context.next) {
|
|
76
|
+
case 0:
|
|
77
|
+
rowName = [].concat(_toConsumableArray(virtualRowName), [index]);
|
|
78
|
+
if (!(type === 'save')) {
|
|
79
|
+
_context.next = 4;
|
|
80
|
+
break;
|
|
81
|
+
}
|
|
82
|
+
_context.next = 4;
|
|
83
|
+
return customValidate(validateKeys, form, rowName);
|
|
84
|
+
case 4:
|
|
85
|
+
// 编辑状态使用自定义form值,非编辑状态直接使用行数据
|
|
86
|
+
_record = record.isEditing ? form.getFieldValue(rowName) : record; // 新增事件可以设置初始默认值,当做函数的出参导出
|
|
87
|
+
_context.next = 7;
|
|
88
|
+
return action === null || action === void 0 ? void 0 : (_action$onHandle = action.onHandle) === null || _action$onHandle === void 0 ? void 0 : _action$onHandle.call(action, _record, index);
|
|
89
|
+
case 7:
|
|
90
|
+
_context.t1 = _yield$action$onHandl = _context.sent;
|
|
91
|
+
_context.t0 = _context.t1 !== null;
|
|
92
|
+
if (!_context.t0) {
|
|
93
|
+
_context.next = 11;
|
|
94
|
+
break;
|
|
95
|
+
}
|
|
96
|
+
_context.t0 = _yield$action$onHandl !== void 0;
|
|
97
|
+
case 11:
|
|
98
|
+
if (!_context.t0) {
|
|
99
|
+
_context.next = 15;
|
|
100
|
+
break;
|
|
101
|
+
}
|
|
102
|
+
_context.t2 = _yield$action$onHandl;
|
|
103
|
+
_context.next = 16;
|
|
104
|
+
break;
|
|
105
|
+
case 15:
|
|
106
|
+
_context.t2 = true;
|
|
107
|
+
case 16:
|
|
108
|
+
result = _context.t2;
|
|
109
|
+
if (result && type !== 'custom') {
|
|
110
|
+
actions[type](_objectSpread(_objectSpread({}, config), {}, {
|
|
111
|
+
rowName: [].concat(_toConsumableArray(name), [index]),
|
|
112
|
+
virtualRowName: rowName,
|
|
113
|
+
record: record,
|
|
114
|
+
result: result,
|
|
115
|
+
validateKeys: validateKeys
|
|
116
|
+
}));
|
|
117
|
+
}
|
|
118
|
+
case 18:
|
|
119
|
+
case "end":
|
|
120
|
+
return _context.stop();
|
|
121
|
+
}
|
|
122
|
+
}, _callee);
|
|
123
|
+
}));
|
|
124
|
+
return function (_x, _x2) {
|
|
125
|
+
return _ref.apply(this, arguments);
|
|
126
|
+
};
|
|
127
|
+
}();
|
|
128
|
+
action.buttonProps = buttonProps;
|
|
129
|
+
return action;
|
|
130
|
+
});
|
|
131
|
+
return {
|
|
132
|
+
title: '操作',
|
|
133
|
+
key: 'action',
|
|
134
|
+
fixed: 'right',
|
|
135
|
+
width: actionWidth || (virtualKey ? '120px' : '60px'),
|
|
136
|
+
render: function render(text, record, index) {
|
|
137
|
+
return /*#__PURE__*/React.createElement(_Space, {
|
|
138
|
+
size: "middle"
|
|
139
|
+
}, actionBtns.map(function (btnConfig) {
|
|
140
|
+
return /*#__PURE__*/React.createElement(React.Fragment, {
|
|
141
|
+
key: "".concat(record.rowKey, "-").concat(btnConfig === null || btnConfig === void 0 ? void 0 : btnConfig.type)
|
|
142
|
+
}, /*#__PURE__*/React.createElement(ActionButton, _objectSpread({}, {
|
|
143
|
+
record: record,
|
|
144
|
+
index: index,
|
|
145
|
+
config: config,
|
|
146
|
+
btnConfig: btnConfig
|
|
147
|
+
})));
|
|
148
|
+
}));
|
|
149
|
+
}
|
|
150
|
+
};
|
|
151
|
+
};
|
|
152
|
+
/**
|
|
153
|
+
* 编辑模式分为 多行和单行两种
|
|
154
|
+
* 单行模式下,render 分为component和viewRender两种,对应编辑和非编辑状态下,edit状态不对外
|
|
155
|
+
* 多行模式下component设置即可
|
|
156
|
+
* render不对外暴露formItem,能自定渲染的尽是输入组件或者显示组件本身
|
|
157
|
+
* @param columns 表格配置数据
|
|
158
|
+
* @param config
|
|
159
|
+
* @param rowSelection 行选择数据
|
|
160
|
+
*/
|
|
161
|
+
export var transformColumns = function transformColumns() {
|
|
162
|
+
var columns = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
163
|
+
var config = arguments.length > 1 ? arguments[1] : undefined;
|
|
164
|
+
var rowSelection = arguments.length > 2 ? arguments[2] : undefined;
|
|
165
|
+
var mode = config.mode,
|
|
166
|
+
form = config.form,
|
|
167
|
+
name = config.name,
|
|
168
|
+
disabled = config.disabled,
|
|
169
|
+
cellNamePath = config.cellNamePath,
|
|
170
|
+
editingKeys = config.editingKeys,
|
|
171
|
+
virtualKey = config.virtualKey,
|
|
172
|
+
requiredAlign = config.requiredAlign,
|
|
173
|
+
isView = config.isView,
|
|
174
|
+
draggable = config.draggable,
|
|
175
|
+
cacheMap = config.cacheMap,
|
|
176
|
+
setState = config.setState;
|
|
177
|
+
var isCell = mode === 'cell';
|
|
178
|
+
var _columns = _toConsumableArray(columns);
|
|
179
|
+
var _cacheMap = _objectSpread({}, cacheMap.current);
|
|
180
|
+
_columns.forEach(function (item, index) {
|
|
181
|
+
var label = item.label,
|
|
182
|
+
names = item.names,
|
|
183
|
+
labelRequired = item.labelRequired,
|
|
184
|
+
hidden = item.hidden,
|
|
185
|
+
title = item.title,
|
|
186
|
+
className = item.className,
|
|
187
|
+
dataIndex = item.dataIndex,
|
|
188
|
+
ellipsis = item.ellipsis,
|
|
189
|
+
key = item.key,
|
|
190
|
+
tooltip = item.tooltip;
|
|
191
|
+
// column设置label时,权重最高
|
|
192
|
+
var columnTitle = label || title;
|
|
193
|
+
item.originTitle = columnTitle;
|
|
194
|
+
if (tooltip) {
|
|
195
|
+
var _ref2 = tooltip || {},
|
|
196
|
+
tooltipTitle = _ref2.title,
|
|
197
|
+
icon = _ref2.icon,
|
|
198
|
+
resetProps = _objectWithoutProperties(_ref2, _excluded2);
|
|
199
|
+
item.title = /*#__PURE__*/React.createElement("span", {
|
|
200
|
+
className: "pro-edit-table-tooltip"
|
|
201
|
+
}, columnTitle, /*#__PURE__*/React.createElement(_Tooltip, _objectSpread({
|
|
202
|
+
title: tooltipTitle !== null && tooltipTitle !== void 0 ? tooltipTitle : tooltip
|
|
203
|
+
}, resetProps), icon ? /*#__PURE__*/React.cloneElement(icon, {
|
|
204
|
+
className: 'icon-tip'
|
|
205
|
+
}) : /*#__PURE__*/React.createElement(ReactSVG, {
|
|
206
|
+
className: "icon-tip",
|
|
207
|
+
src: tipSvg
|
|
208
|
+
})));
|
|
209
|
+
} else {
|
|
210
|
+
item.title = columnTitle;
|
|
211
|
+
}
|
|
212
|
+
// column设置name时,权重最高
|
|
213
|
+
var columnName = (item === null || item === void 0 ? void 0 : item.name) || dataIndex || key;
|
|
214
|
+
item.dataIndex = columnName;
|
|
215
|
+
item.key = columnName;
|
|
216
|
+
if (typeof item.required === 'function') {
|
|
217
|
+
var namePath = getNamePath(name, virtualKey);
|
|
218
|
+
var rowData = form.getFieldValue([].concat(_toConsumableArray(namePath), [index]));
|
|
219
|
+
item.required = item.required(rowData[columnName], rowData, {
|
|
220
|
+
form: form,
|
|
221
|
+
index: index,
|
|
222
|
+
namePath: [].concat(_toConsumableArray(namePath), [index])
|
|
223
|
+
});
|
|
224
|
+
}
|
|
225
|
+
// 样式处理
|
|
226
|
+
item.className = classnames(_defineProperty({
|
|
227
|
+
'is-hidden': hidden,
|
|
228
|
+
'is-required': item.required || labelRequired,
|
|
229
|
+
'is-required-right': requiredAlign === 'right',
|
|
230
|
+
'is-required-left': requiredAlign === 'left'
|
|
231
|
+
}, className, className));
|
|
232
|
+
// 防止重复渲染导致className重复添加
|
|
233
|
+
if (item.className) {
|
|
234
|
+
item.className = _toConsumableArray(new Set(item.className.split(' '))).join(' ');
|
|
235
|
+
}
|
|
236
|
+
// 当列表配置cache,接口请求静态数据会做数据缓存
|
|
237
|
+
if (item.cache) {
|
|
238
|
+
var _item$fieldProps3;
|
|
239
|
+
// 初始化加载ProSelect,缓存当前useRequest
|
|
240
|
+
if (item.type === 'ProSelect') {
|
|
241
|
+
var _cacheMap$item$dataIn, _cacheMap$item$dataIn2;
|
|
242
|
+
if (!(_cacheMap === null || _cacheMap === void 0 ? void 0 : (_cacheMap$item$dataIn = _cacheMap[item.dataIndex]) === null || _cacheMap$item$dataIn === void 0 ? void 0 : (_cacheMap$item$dataIn2 = _cacheMap$item$dataIn.dataSource) === null || _cacheMap$item$dataIn2 === void 0 ? void 0 : _cacheMap$item$dataIn2.length)) {
|
|
243
|
+
var _item$fieldProps, _item$fieldProps2;
|
|
244
|
+
_cacheMap[item.dataIndex] = {
|
|
245
|
+
useRequest: cloneDeep((_item$fieldProps = item.fieldProps) === null || _item$fieldProps === void 0 ? void 0 : _item$fieldProps.useRequest),
|
|
246
|
+
dataSource: [],
|
|
247
|
+
transformResponse: (_item$fieldProps2 = item.fieldProps) === null || _item$fieldProps2 === void 0 ? void 0 : _item$fieldProps2.transformResponse
|
|
248
|
+
};
|
|
249
|
+
} else {
|
|
250
|
+
var _cacheMap$item$dataIn3;
|
|
251
|
+
item.fieldProps.dataSource = (_cacheMap$item$dataIn3 = _cacheMap[item.dataIndex]) === null || _cacheMap$item$dataIn3 === void 0 ? void 0 : _cacheMap$item$dataIn3.dataSource;
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
(_item$fieldProps3 = item.fieldProps) === null || _item$fieldProps3 === void 0 ? true : delete _item$fieldProps3.useRequest;
|
|
255
|
+
}
|
|
256
|
+
var _render = function _render(text, record, index) {
|
|
257
|
+
var isEditing = !virtualKey || editingKeys.includes(record.rowKey);
|
|
258
|
+
var namePath = isArray(name) ? name : [name];
|
|
259
|
+
if (virtualKey && editingKeys.includes(record.rowKey)) {
|
|
260
|
+
namePath = getNamePath(name, virtualKey);
|
|
261
|
+
}
|
|
262
|
+
var columnNamePath = isArray(columnName) ? columnName : [columnName];
|
|
263
|
+
// 设置单元格formItem的namePath
|
|
264
|
+
var cellName = [].concat(_toConsumableArray(namePath), [index], _toConsumableArray(columnNamePath));
|
|
265
|
+
var _text = text;
|
|
266
|
+
// 当传入组合组件时,name需要重新组合一下,以防names中key与dataIndex重叠
|
|
267
|
+
if (names === null || names === void 0 ? void 0 : names.length) {
|
|
268
|
+
var nextDataIndex = splitNames(names);
|
|
269
|
+
item.dataIndex = nextDataIndex;
|
|
270
|
+
item.key = nextDataIndex;
|
|
271
|
+
cellName = [].concat(_toConsumableArray(namePath), [index, nextDataIndex]);
|
|
272
|
+
// 给names返回数组值
|
|
273
|
+
_text = names.map(function (item) {
|
|
274
|
+
return record === null || record === void 0 ? void 0 : record[item];
|
|
275
|
+
});
|
|
276
|
+
}
|
|
277
|
+
if (!isEditing && ellipsis) {
|
|
278
|
+
return /*#__PURE__*/React.createElement(ProTooltip, {
|
|
279
|
+
text: _text,
|
|
280
|
+
line: 1,
|
|
281
|
+
isResponsiveWidth: true
|
|
282
|
+
});
|
|
283
|
+
}
|
|
284
|
+
var cellClassName;
|
|
285
|
+
var isCanEdit = isCell && !record["$".concat(columnName, "Disabled")] && item.isEditable !== false;
|
|
286
|
+
// 单元格编辑场景下,需要将所有单元格设置为不可编辑状态,当鼠标hover时,展示输出框。点击可修改
|
|
287
|
+
if (isCanEdit) {
|
|
288
|
+
record.isView = true;
|
|
289
|
+
// 样式处理
|
|
290
|
+
cellClassName = classnames({
|
|
291
|
+
'is-cell': !isEqual(cellNamePath, cellName)
|
|
292
|
+
});
|
|
293
|
+
}
|
|
294
|
+
// 单行多行交互有较大差异
|
|
295
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
296
|
+
className: cellClassName,
|
|
297
|
+
onClick: function onClick() {
|
|
298
|
+
isCanEdit && setState({
|
|
299
|
+
cellNamePath: cellName
|
|
300
|
+
});
|
|
301
|
+
}
|
|
302
|
+
}, /*#__PURE__*/React.createElement(RenderField, {
|
|
303
|
+
text: _text,
|
|
304
|
+
record: record,
|
|
305
|
+
index: index,
|
|
306
|
+
column: item,
|
|
307
|
+
config: _objectSpread(_objectSpread({}, config), {}, {
|
|
308
|
+
cellName: cellName,
|
|
309
|
+
isEditing: isEditing // 是否正在编辑
|
|
310
|
+
})
|
|
311
|
+
}));
|
|
312
|
+
};
|
|
313
|
+
|
|
314
|
+
item.render = _render;
|
|
315
|
+
});
|
|
316
|
+
if (disabled || isView) {
|
|
317
|
+
// 查看模式下过滤操作栏
|
|
318
|
+
_columns = _columns.filter(function (item) {
|
|
319
|
+
return item.title !== '操作';
|
|
320
|
+
});
|
|
321
|
+
} else {
|
|
322
|
+
var validateKeys = _columns.filter(function (i) {
|
|
323
|
+
return i.rules || i.required;
|
|
324
|
+
}).map(function (item) {
|
|
325
|
+
var _item$names;
|
|
326
|
+
if ((_item$names = item.names) === null || _item$names === void 0 ? void 0 : _item$names.length) {
|
|
327
|
+
var nextDataIndex = splitNames(item.names);
|
|
328
|
+
item.dataIndex = nextDataIndex;
|
|
329
|
+
item.key = nextDataIndex;
|
|
330
|
+
}
|
|
331
|
+
return item.dataIndex || item.key;
|
|
332
|
+
});
|
|
333
|
+
var actionColumn = getActionColumn(_objectSpread(_objectSpread({}, config), {}, {
|
|
334
|
+
validateKeys: validateKeys // 需要校验的单元格的formItem的name
|
|
335
|
+
}));
|
|
336
|
+
|
|
337
|
+
actionColumn && _columns.push(actionColumn);
|
|
338
|
+
}
|
|
339
|
+
if (draggable && !disabled && !isView) {
|
|
340
|
+
_columns.unshift({
|
|
341
|
+
key: 'SORT',
|
|
342
|
+
title: '',
|
|
343
|
+
className: "".concat(isEmpty(rowSelection) ? '' : 'is-drag'),
|
|
344
|
+
width: 0
|
|
345
|
+
});
|
|
346
|
+
}
|
|
347
|
+
// cacheMap 用来存储缓存值,若有值后不再请求
|
|
348
|
+
if (JSON.stringify(cacheMap.current) === '{}') {
|
|
349
|
+
Promise.all(Object.entries(_cacheMap).map( /*#__PURE__*/function () {
|
|
350
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(item) {
|
|
351
|
+
var _item, key, value, _ref4, service, option;
|
|
352
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
353
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
354
|
+
case 0:
|
|
355
|
+
_item = _slicedToArray(item, 2), key = _item[0], value = _item[1];
|
|
356
|
+
_ref4 = (value === null || value === void 0 ? void 0 : value.useRequest) || {}, service = _ref4.service, option = _ref4.option;
|
|
357
|
+
if (!service) {
|
|
358
|
+
_context2.next = 8;
|
|
359
|
+
break;
|
|
360
|
+
}
|
|
361
|
+
_context2.t0 = key;
|
|
362
|
+
_context2.next = 6;
|
|
363
|
+
return service(_objectSpread({}, option === null || option === void 0 ? void 0 : option.defaultParams));
|
|
364
|
+
case 6:
|
|
365
|
+
_context2.t1 = _context2.sent;
|
|
366
|
+
return _context2.abrupt("return", [_context2.t0, _context2.t1]);
|
|
367
|
+
case 8:
|
|
368
|
+
return _context2.abrupt("return", [key, {}]);
|
|
369
|
+
case 9:
|
|
370
|
+
case "end":
|
|
371
|
+
return _context2.stop();
|
|
372
|
+
}
|
|
373
|
+
}, _callee2);
|
|
374
|
+
}));
|
|
375
|
+
return function (_x3) {
|
|
376
|
+
return _ref3.apply(this, arguments);
|
|
377
|
+
};
|
|
378
|
+
}())).then(function (res) {
|
|
379
|
+
res.forEach(function (item) {
|
|
380
|
+
var _item2 = _slicedToArray(item, 2),
|
|
381
|
+
key = _item2[0],
|
|
382
|
+
value = _item2[1];
|
|
383
|
+
var transformResponse = _cacheMap[key].transformResponse;
|
|
384
|
+
_cacheMap[key].dataSource = (transformResponse ? transformResponse(value) : value === null || value === void 0 ? void 0 : value.data) || [];
|
|
385
|
+
});
|
|
386
|
+
cacheMap.current = _cacheMap;
|
|
387
|
+
if (JSON.stringify(cacheMap.current) !== '{}') {
|
|
388
|
+
setState({
|
|
389
|
+
forceUpdate: {}
|
|
390
|
+
});
|
|
391
|
+
}
|
|
392
|
+
});
|
|
393
|
+
}
|
|
394
|
+
// 渲染操作列
|
|
395
|
+
return _columns;
|
|
396
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const getRandom: () => string;
|
|
2
|
+
export declare const difference: (object: any, base: any) => unknown;
|
|
3
|
+
export declare const customValidate: (validateKeys: any, form: any, rowName: any) => any;
|
|
4
|
+
/**
|
|
5
|
+
* 拆解数组names
|
|
6
|
+
* @param names [][]
|
|
7
|
+
* @returns string
|
|
8
|
+
*/
|
|
9
|
+
export declare const splitNames: (names: any[]) => any;
|
|
10
|
+
export declare const getNamePath: (name: any, virtualKey: any) => any;
|
|
11
|
+
export declare const onDelete: ({ name, form, virtualKey, selectedRowKeys }: {
|
|
12
|
+
name: any;
|
|
13
|
+
form: any;
|
|
14
|
+
virtualKey: any;
|
|
15
|
+
selectedRowKeys: any;
|
|
16
|
+
}) => void;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { cloneDeep, isString, isObject, isEqual, transform } from 'lodash';
|
|
2
|
+
export var getRandom = function getRandom() {
|
|
3
|
+
return Math.random().toString(36).slice(-6);
|
|
4
|
+
};
|
|
5
|
+
// 深层次对比两个对象且取出来差异值
|
|
6
|
+
export var difference = function difference(object, base) {
|
|
7
|
+
var changes = function changes(object, base) {
|
|
8
|
+
return transform(object, function (result, value, key) {
|
|
9
|
+
if (!isEqual(value, base[key])) {
|
|
10
|
+
result[key] = isObject(value) && isObject(base[key]) ? changes(value, base[key]) : value;
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
};
|
|
14
|
+
return changes(object, base);
|
|
15
|
+
};
|
|
16
|
+
// 数组字段循环校验,解决validateFields无法批量校验的问题
|
|
17
|
+
export var customValidate = function customValidate(validateKeys, form, rowName) {
|
|
18
|
+
var array = [];
|
|
19
|
+
validateKeys.forEach(function (key) {
|
|
20
|
+
array.push(rowName.concat(key));
|
|
21
|
+
});
|
|
22
|
+
return form.validateFields(array);
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* 拆解数组names
|
|
26
|
+
* @param names [][]
|
|
27
|
+
* @returns string
|
|
28
|
+
*/
|
|
29
|
+
export var splitNames = function splitNames(names) {
|
|
30
|
+
var result;
|
|
31
|
+
var resultArray = [];
|
|
32
|
+
if (isString(names[0])) {
|
|
33
|
+
result = names.join('-');
|
|
34
|
+
return result;
|
|
35
|
+
}
|
|
36
|
+
names.forEach(function (item) {
|
|
37
|
+
if (isString(item[0])) {
|
|
38
|
+
resultArray.push("".concat(item[0], "_").concat(item[1]));
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
result = resultArray.join('-');
|
|
42
|
+
return result;
|
|
43
|
+
};
|
|
44
|
+
// 获取中间formItem的name
|
|
45
|
+
export var getNamePath = function getNamePath(name, virtualKey) {
|
|
46
|
+
var nextName = cloneDeep(name);
|
|
47
|
+
var lastValue = nextName[nextName.length - 1];
|
|
48
|
+
nextName[nextName.length - 1] = "".concat(lastValue).concat(virtualKey ? "-".concat(virtualKey) : '');
|
|
49
|
+
return nextName;
|
|
50
|
+
};
|
|
51
|
+
// 删除操作
|
|
52
|
+
export var onDelete = function onDelete(_ref) {
|
|
53
|
+
var name = _ref.name,
|
|
54
|
+
form = _ref.form,
|
|
55
|
+
virtualKey = _ref.virtualKey,
|
|
56
|
+
selectedRowKeys = _ref.selectedRowKeys;
|
|
57
|
+
// 正常的form数据流处理
|
|
58
|
+
var dataSource = form.getFieldValue(name);
|
|
59
|
+
dataSource = dataSource.filter(function (row) {
|
|
60
|
+
return !selectedRowKeys.includes(row.rowKey);
|
|
61
|
+
});
|
|
62
|
+
form.setFieldValue(name, dataSource);
|
|
63
|
+
// 单行模式数据流处理 重置中间正在编辑状态单行数据
|
|
64
|
+
if (virtualKey) {
|
|
65
|
+
var _virtualList;
|
|
66
|
+
var namePath = getNamePath(name, virtualKey);
|
|
67
|
+
var virtualList = form.getFieldValue(namePath);
|
|
68
|
+
if ((_virtualList = virtualList) === null || _virtualList === void 0 ? void 0 : _virtualList.length) {
|
|
69
|
+
virtualList = virtualList.filter(function (row) {
|
|
70
|
+
return !selectedRowKeys.includes(row.rowKey);
|
|
71
|
+
});
|
|
72
|
+
form.setFieldValue(namePath, virtualList);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
RangePicker: () => import("@zat-design-pro-component/utils/dist/esm/transforms/propTypes").Transform<any>;
|
|
3
|
+
DatePicker: () => import("@zat-design-pro-component/utils/dist/esm/transforms/propTypes").Transform<any>;
|
|
4
|
+
};
|
|
5
|
+
export default _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { transforms } from '@zat-design-pro-component/utils';
|
|
2
|
+
var transformDate = transforms.transformDate;
|
|
3
|
+
export default {
|
|
4
|
+
RangePicker: function RangePicker() {
|
|
5
|
+
return transformDate({
|
|
6
|
+
type: 'RangePicker',
|
|
7
|
+
keys: ['form', 'to']
|
|
8
|
+
});
|
|
9
|
+
},
|
|
10
|
+
DatePicker: function DatePicker() {
|
|
11
|
+
return transformDate({
|
|
12
|
+
type: 'DatePicker'
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { useProConfig } from 'zat-design-pro-component';
|
|
3
|
+
var EnumLabel = function EnumLabel(props) {
|
|
4
|
+
var label = '';
|
|
5
|
+
var fieldValue = '';
|
|
6
|
+
var _ref = useProConfig('ProEnum') || {},
|
|
7
|
+
fieldNames = _ref.fieldNames,
|
|
8
|
+
_ref$clear = _ref.clear,
|
|
9
|
+
clear = _ref$clear === void 0 ? true : _ref$clear;
|
|
10
|
+
if (fieldNames && Object.keys(fieldNames).length) {
|
|
11
|
+
label = fieldNames === null || fieldNames === void 0 ? void 0 : fieldNames.label;
|
|
12
|
+
fieldValue = fieldNames === null || fieldNames === void 0 ? void 0 : fieldNames.value;
|
|
13
|
+
}
|
|
14
|
+
if (props.label) label = props.label;
|
|
15
|
+
if (props.code) fieldValue = props.code;
|
|
16
|
+
if (clear) {
|
|
17
|
+
label = 'label';
|
|
18
|
+
fieldValue = 'value';
|
|
19
|
+
}
|
|
20
|
+
var enumCode = props.enumCode,
|
|
21
|
+
value = props.value,
|
|
22
|
+
compose = props.compose;
|
|
23
|
+
var _useProConfig = useProConfig('ProEnum'),
|
|
24
|
+
_useProConfig$dics = _useProConfig.dics,
|
|
25
|
+
dics = _useProConfig$dics === void 0 ? {} : _useProConfig$dics;
|
|
26
|
+
var enumList = (dics === null || dics === void 0 ? void 0 : dics[enumCode]) || [];
|
|
27
|
+
var transToLabel = function transToLabel(value) {
|
|
28
|
+
var labelList = value.map(function (v) {
|
|
29
|
+
var option = enumList.find(function (option) {
|
|
30
|
+
return option[fieldValue] === v;
|
|
31
|
+
});
|
|
32
|
+
if (option && option[label]) {
|
|
33
|
+
return compose ? "".concat(value, "-").concat(option[label]) : option[label];
|
|
34
|
+
}
|
|
35
|
+
return '';
|
|
36
|
+
});
|
|
37
|
+
return /*#__PURE__*/React.createElement("span", null, labelList.join(',') || '-');
|
|
38
|
+
};
|
|
39
|
+
if (Array.isArray(enumList)) {
|
|
40
|
+
if (Array.isArray(value)) {
|
|
41
|
+
return transToLabel(value);
|
|
42
|
+
}
|
|
43
|
+
return transToLabel([value]);
|
|
44
|
+
}
|
|
45
|
+
return /*#__PURE__*/React.createElement("span", null, "-");
|
|
46
|
+
};
|
|
47
|
+
var getEnumLabel = function getEnumLabel(enumCode, value) {
|
|
48
|
+
var compose = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
49
|
+
var code = arguments.length > 3 ? arguments[3] : undefined;
|
|
50
|
+
var label = arguments.length > 4 ? arguments[4] : undefined;
|
|
51
|
+
if (!enumCode) {
|
|
52
|
+
return null;
|
|
53
|
+
}
|
|
54
|
+
return /*#__PURE__*/React.createElement(EnumLabel, {
|
|
55
|
+
enumCode: enumCode,
|
|
56
|
+
value: value,
|
|
57
|
+
compose: compose,
|
|
58
|
+
code: code,
|
|
59
|
+
label: label
|
|
60
|
+
});
|
|
61
|
+
};
|
|
62
|
+
export default getEnumLabel;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import useEnum from './useEnum';
|
|
2
|
+
import { ProEnumProps } from './propsType';
|
|
3
|
+
declare const ProEnum: {
|
|
4
|
+
(props: ProEnumProps): JSX.Element;
|
|
5
|
+
getEnumLabel: (enumCode: string, value: any, compose?: boolean, code?: string, label?: string) => JSX.Element;
|
|
6
|
+
useEnum: typeof useEnum;
|
|
7
|
+
};
|
|
8
|
+
export default ProEnum;
|