@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,190 @@
|
|
|
1
|
+
@import '../core/index.less';
|
|
2
|
+
|
|
3
|
+
/* 兼容IE11 默认会生成2个值,默认值,var值。IE11下读取默认值 */
|
|
4
|
+
:root {
|
|
5
|
+
--zaui-global-bg: #ffffff;
|
|
6
|
+
--zaui-base-bg: #ffffff;
|
|
7
|
+
--zaui-brand: #006aff;
|
|
8
|
+
--zaui-brand-hover: #3387ff;
|
|
9
|
+
--zaui-brand-active: #005ad9;
|
|
10
|
+
--zaui-brand-disabled: #99c3ff;
|
|
11
|
+
--zaui-text: #343434;
|
|
12
|
+
--zaui-text-weak: #a0a0a0;
|
|
13
|
+
--zaui-aide-text: #909090;
|
|
14
|
+
--zaui-placeholder: #a0a0a0;
|
|
15
|
+
--zaui-link: var(--zaui-brand);
|
|
16
|
+
--zaui-link-light-active: var(--zaui-brand-active);
|
|
17
|
+
--zaui-line: #ddd;
|
|
18
|
+
--zaui-shadow: rgba(56, 56, 56, 0.15);
|
|
19
|
+
--zaui-form-control-line: var(--zaui-line);
|
|
20
|
+
--zaui-form-control-line-hover: var(--zaui-brand-hover);
|
|
21
|
+
--zaui-form-control-line-active: var(--zaui-brand-active);
|
|
22
|
+
--zaui-list-item-active-bg: var(--zaui-brand);
|
|
23
|
+
--zaui-list-item-active-hover-bg: var(--zaui-brand);
|
|
24
|
+
--zaui-list-item-selected-bg: var(--zaui-brand);
|
|
25
|
+
--zaui-list-item-selected-hover-bg: var(--zaui-brand);
|
|
26
|
+
--zaui-disabled-bg: #f2f2f2;
|
|
27
|
+
--zaui-disabled-text: #333333;
|
|
28
|
+
--zaui-feedback-overlay-bg: rgba(0, 0, 0, 0.7);
|
|
29
|
+
--zaui-feedback-overlay-text: #343434;
|
|
30
|
+
--zaui-primary: var(--zaui-brand);
|
|
31
|
+
--zaui-primary-hover: var(--zaui-brand-hover);
|
|
32
|
+
--zaui-primary-active: var(--zaui-brand-active);
|
|
33
|
+
--zaui-danger-line: var(--zaui-line);
|
|
34
|
+
--zaui-danger-bg: #fff2f0;
|
|
35
|
+
--zaui-warning-line: var(--zaui-line);
|
|
36
|
+
--zaui-warning-bg: #fffbe6;
|
|
37
|
+
--zaui-info-line: var(--zaui-line);
|
|
38
|
+
--zaui-info-bg: #e6f7ff;
|
|
39
|
+
--zaui-success-line: var(--zaui-line);
|
|
40
|
+
--zaui-success-bg: #f6ffed;
|
|
41
|
+
--zaui-danger: #ff5050;
|
|
42
|
+
--zaui-warning: #ec9131;
|
|
43
|
+
--zaui-success: #00ae4d;
|
|
44
|
+
--zaui-menu-top-bg: #ffffff;
|
|
45
|
+
--zaui-menu-left-bg: #1a202d;
|
|
46
|
+
--zaui-menu-second-bg: #ffffff;
|
|
47
|
+
--zaui-form-align: left;
|
|
48
|
+
--zaui-form-label-width: 130px; // 8个全角字符宽度
|
|
49
|
+
--zaui-border-radius: 4px;
|
|
50
|
+
--zaui-border-radius-card: 2px;
|
|
51
|
+
--zaui-font-size-title: 16px;
|
|
52
|
+
--zaui-font-size-card-title: var(--zaui-font-size-title);
|
|
53
|
+
--zaui-font-size: 14px;
|
|
54
|
+
--zaui-font-size-sm: 12px;
|
|
55
|
+
--zaui-font-size-md: var(--zaui-font-size);
|
|
56
|
+
--zaui-font-size-lg: 16px;
|
|
57
|
+
--zaui-font-size-xl: 18px;
|
|
58
|
+
--zaui-font-size-xxl: 20px;
|
|
59
|
+
--zaui-font-size-lg-title: 24px;
|
|
60
|
+
--zaui-height-border: var(--zaui-height-size-md);
|
|
61
|
+
--zaui-height-card: var(--zaui-height-size-lg);
|
|
62
|
+
--zaui-height-size-xs: 4px;
|
|
63
|
+
--zaui-height-size-sm: 8px;
|
|
64
|
+
--zaui-height-size-md: 16px;
|
|
65
|
+
--zaui-height-size-lg: 32px;
|
|
66
|
+
--zaui-height-size-xl: 64px;
|
|
67
|
+
--zaui-space-border: var(--zaui-space-size-md); // 兼容1.1.35一下版本 变量
|
|
68
|
+
--zaui-space-card: var(--zaui-space-size-lg);
|
|
69
|
+
--zaui-space-size-xs: 4px;
|
|
70
|
+
--zaui-space-size-sm: 8px;
|
|
71
|
+
--zaui-space-size-md: 16px;
|
|
72
|
+
--zaui-space-size-lg: 32px;
|
|
73
|
+
--zaui-space-size-xl: 64px;
|
|
74
|
+
|
|
75
|
+
--zaui-line-height-base: 1.5;
|
|
76
|
+
--zaui-size: 1;
|
|
77
|
+
--zaui-base-font-size: 0px;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
@zaui-global-bg: var(--zaui-global-bg, #ffffff);
|
|
81
|
+
@zaui-base-bg: var(--zaui-base-bg, #ffffff);
|
|
82
|
+
@zaui-brand: var(--zaui-brand, #006aff);
|
|
83
|
+
@zaui-brand-hover: var(--zaui-brand-hover, #3387ff);
|
|
84
|
+
@zaui-brand-active: var(--zaui-brand-active, #005ad9);
|
|
85
|
+
@zaui-brand-disabled: var(--zaui-brand-disabled, #99c3ff);
|
|
86
|
+
@zaui-text: var(--zaui-text, #343434);
|
|
87
|
+
@zaui-text-weak: var(--zaui-text-weak, #a0a0a0);
|
|
88
|
+
@zaui-aide-text: var(--zaui-aide-text, #909090);
|
|
89
|
+
@zaui-placeholder: var(--zaui-placeholder, #a0a0a0);
|
|
90
|
+
@zaui-link: var(--zaui-link, #006aff);
|
|
91
|
+
@zaui-link-light-active: var(--zaui-link-light-active, #005ad9);
|
|
92
|
+
@zaui-line: var(--zaui-line, #ddd);
|
|
93
|
+
@zaui-shadow: var(--zaui-shadow, rgba(56, 56, 56, 0.15));
|
|
94
|
+
@zaui-form-control-line: var(--zaui-form-control-line, #ddd);
|
|
95
|
+
@zaui-form-control-line-hover: var(--zaui-form-control-line-hover, #3387ff);
|
|
96
|
+
@zaui-form-control-line-active: var(--zaui-form-control-line-active, #005ad9);
|
|
97
|
+
@zaui-list-item-active-bg: var(--zaui-list-item-active-bg, #006aff);
|
|
98
|
+
@zaui-list-item-active-hover-bg: var(--zaui-list-item-active-hover-bg, #006aff);
|
|
99
|
+
@zaui-list-item-selected-bg: var(--zaui-list-item-selected-bg, #006aff);
|
|
100
|
+
@zaui-list-item-selected-hover-bg: var(
|
|
101
|
+
--zaui-list-item-selected-hover-bg,
|
|
102
|
+
#006aff
|
|
103
|
+
);
|
|
104
|
+
@zaui-disabled-bg: var(--zaui-disabled-bg, #f2f2f2);
|
|
105
|
+
@zaui-disabled-text: var(--zaui-disabled-text, #333333);
|
|
106
|
+
@zaui-feedback-overlay-bg: var(--zaui-feedback-overlay-bg, rgba(0, 0, 0, 0.7));
|
|
107
|
+
@zaui-feedback-overlay-text: var(--zaui-feedback-overlay-text, #343434);
|
|
108
|
+
@zaui-primary: var(--zaui-primary, #006aff);
|
|
109
|
+
@zaui-primary-hover: var(--zaui-primary-hover, #3387ff);
|
|
110
|
+
@zaui-primary-active: var(--zaui-primary-active, #005ad9);
|
|
111
|
+
@zaui-danger-line: var(--zaui-danger-line, #ddd);
|
|
112
|
+
@zaui-danger-bg: var(--zaui-danger-bg, #fff2f0);
|
|
113
|
+
@zaui-warning-line: var(--zaui-warning-line, #ddd);
|
|
114
|
+
@zaui-warning-bg: var(--zaui-warning-bg, #fffbe6);
|
|
115
|
+
@zaui-info-line: var(--zaui-info-line, #ddd);
|
|
116
|
+
@zaui-info-bg: var(--zaui-info-bg, #e6f7ff);
|
|
117
|
+
@zaui-success-line: var(--zaui-success-line, #ddd);
|
|
118
|
+
@zaui-success-bg: var(--zaui-success-bg, #f6ffed);
|
|
119
|
+
@zaui-danger: var(--zaui-danger, #ff5050);
|
|
120
|
+
@zaui-warning: var(--zaui-warning, #ec9131);
|
|
121
|
+
@zaui-success: var(--zaui-success, #00ae4d);
|
|
122
|
+
@zaui-menu-top-bg: var(--zaui-menu-top-bg, #ffffff);
|
|
123
|
+
@zaui-menu-left-bg: var(--zaui-menu-left-bg, #1a202d);
|
|
124
|
+
@zaui-menu-second-bg: var(--zaui-menu-second-bg, #ffffff);
|
|
125
|
+
@zaui-form-align: var(--zaui-form-align, left);
|
|
126
|
+
@zaui-form-label-width: var(--zaui-form-label-width, 130px);
|
|
127
|
+
@zaui-border-radius: var(--zaui-border-radius, 4px);
|
|
128
|
+
@zaui-border-radius-card: var(--zaui-border-radius-card, 2px);
|
|
129
|
+
@zaui-font-size-title: calc(
|
|
130
|
+
var(--zaui-font-size-title, 16px) + var(--zaui-base-font-size, 0px)
|
|
131
|
+
);
|
|
132
|
+
@zaui-font-size-card-title: calc(
|
|
133
|
+
var(--zaui-font-size-card-title, 16px) + var(--zaui-base-font-size, 0px)
|
|
134
|
+
);
|
|
135
|
+
@zaui-font-size: calc(
|
|
136
|
+
var(--zaui-font-size, 14px) + var(--zaui-base-font-size, 0px)
|
|
137
|
+
);
|
|
138
|
+
@zaui-font-size-sm: calc(
|
|
139
|
+
var(--zaui-font-size-sm, 12px) + var(--zaui-base-font-size, 0px)
|
|
140
|
+
);
|
|
141
|
+
@zaui-font-size-md: calc(
|
|
142
|
+
var(--zaui-font-size-md, 14px) + var(--zaui-base-font-size, 0px)
|
|
143
|
+
);
|
|
144
|
+
@zaui-font-size-lg: calc(
|
|
145
|
+
var(--zaui-font-size-lg, 16px) + var(--zaui-base-font-size, 0px)
|
|
146
|
+
);
|
|
147
|
+
@zaui-font-size-xl: calc(
|
|
148
|
+
var(--zaui-font-size-xl, 18px) + var(--zaui-base-font-size, 0px)
|
|
149
|
+
);
|
|
150
|
+
@zaui-font-size-xxl: calc(
|
|
151
|
+
var(--zaui-font-size-xxl, 20px) + var(--zaui-base-font-size, 0px)
|
|
152
|
+
);
|
|
153
|
+
@zaui-font-size-lg-title: calc(
|
|
154
|
+
var(--zaui-font-size-lg-title, 24px) + var(--zaui-base-font-size, 0px)
|
|
155
|
+
);
|
|
156
|
+
@zaui-height-border: calc(
|
|
157
|
+
var(--zaui-height-border, 16px) * var(--zaui-size, 1)
|
|
158
|
+
);
|
|
159
|
+
@zaui-height-card: calc(var(--zaui-height-card, 32px) * var(--zaui-size, 1));
|
|
160
|
+
@zaui-height-size-xs: calc(
|
|
161
|
+
var(--zaui-height-size-xs, 4px) * var(--zaui-size, 1)
|
|
162
|
+
);
|
|
163
|
+
@zaui-height-size-sm: calc(
|
|
164
|
+
var(--zaui-height-size-sm, 8px) * var(--zaui-size, 1)
|
|
165
|
+
);
|
|
166
|
+
@zaui-height-size-md: calc(
|
|
167
|
+
var(--zaui-height-size-md, 16px) * var(--zaui-size, 1)
|
|
168
|
+
);
|
|
169
|
+
@zaui-height-size-lg: calc(
|
|
170
|
+
var(--zaui-height-size-lg, 32px) * var(--zaui-size, 1)
|
|
171
|
+
);
|
|
172
|
+
@zaui-height-size-xl: calc(
|
|
173
|
+
var(--zaui-height-size-xl, 64px) * var(--zaui-size, 1)
|
|
174
|
+
);
|
|
175
|
+
|
|
176
|
+
@zaui-space-border: calc(var(--zaui-space-border, 16px) * var(--zaui-size, 1));
|
|
177
|
+
@zaui-space-card: calc(var(--zaui-space-card, 32px) * var(--zaui-size, 1));
|
|
178
|
+
@zaui-space-size-xs: calc(var(--zaui-space-size-xs, 4px) * var(--zaui-size, 1));
|
|
179
|
+
@zaui-space-size-sm: calc(var(--zaui-space-size-sm, 8px) * var(--zaui-size, 1));
|
|
180
|
+
@zaui-space-size-md: calc(
|
|
181
|
+
var(--zaui-space-size-md, 16px) * var(--zaui-size, 1)
|
|
182
|
+
);
|
|
183
|
+
@zaui-space-size-lg: calc(
|
|
184
|
+
var(--zaui-space-size-lg, 32px) * var(--zaui-size, 1)
|
|
185
|
+
);
|
|
186
|
+
@zaui-space-size-xl: calc(
|
|
187
|
+
var(--zaui-space-size-xl, 64px) * var(--zaui-size, 1)
|
|
188
|
+
);
|
|
189
|
+
|
|
190
|
+
@zaui-line-height-base: var(--zaui-line-height-base, 1.5);
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React, { FC } from 'react';
|
|
2
|
+
import { PropSelectProps } from '../ProSelect/propsType';
|
|
3
|
+
import { ProModalSelectPropsType } from '../ProForm/components/combination/ProModalSelect/propsType';
|
|
4
|
+
import { AddressProps } from '../ProForm/components/combination/ProAddressBar/propsType';
|
|
5
|
+
export interface ProConfigState {
|
|
6
|
+
ProEnum?: PropSelectProps & Record<string, any>;
|
|
7
|
+
ProSelect?: PropSelectProps & Record<string, any>;
|
|
8
|
+
ProModalSelect?: ProModalSelectPropsType & Record<string, any>;
|
|
9
|
+
ProAddressBar?: AddressProps & Record<string, any>;
|
|
10
|
+
[key: string]: any;
|
|
11
|
+
}
|
|
12
|
+
interface ConfigContext {
|
|
13
|
+
state: ProConfigState;
|
|
14
|
+
dispatch: React.Dispatch<ProConfigState>;
|
|
15
|
+
}
|
|
16
|
+
export declare const ProConfigContext: React.Context<ConfigContext>;
|
|
17
|
+
export declare function useProConfig(): ConfigContext;
|
|
18
|
+
export declare function useProConfig(name: keyof ConfigContext['state']): ConfigContext['state'][keyof ConfigContext['state']];
|
|
19
|
+
export declare const ProConfigProvider: FC<{
|
|
20
|
+
value: ProConfigState;
|
|
21
|
+
}>;
|
|
22
|
+
export default ProConfigProvider;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = exports.ProConfigProvider = exports.ProConfigContext = void 0;
|
|
9
|
+
exports.useProConfig = useProConfig;
|
|
10
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
11
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
12
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
13
|
+
var _merge = _interopRequireDefault(require("lodash/merge"));
|
|
14
|
+
var _useEnumRequest = _interopRequireDefault(require("../ProEnum/useEnumRequest"));
|
|
15
|
+
var ProConfigContext = /*#__PURE__*/_react.default.createContext({
|
|
16
|
+
state: {
|
|
17
|
+
ProEnum: {
|
|
18
|
+
dics: {}
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
dispatch: function dispatch() {}
|
|
22
|
+
});
|
|
23
|
+
// eslint-disable-next-line no-redeclare
|
|
24
|
+
exports.ProConfigContext = ProConfigContext;
|
|
25
|
+
function useProConfig(name) {
|
|
26
|
+
var config = (0, _react.useContext)(ProConfigContext);
|
|
27
|
+
return name ? config.state[name] : config;
|
|
28
|
+
}
|
|
29
|
+
var reducer = function reducer(state, action) {
|
|
30
|
+
var _state$ProEnum;
|
|
31
|
+
switch (action.type) {
|
|
32
|
+
case 'set':
|
|
33
|
+
return (0, _objectSpread2.default)((0, _objectSpread2.default)({}, state), action.payload);
|
|
34
|
+
case 'setProEnum':
|
|
35
|
+
return (0, _objectSpread2.default)((0, _objectSpread2.default)({}, state), {}, {
|
|
36
|
+
ProEnum: (0, _objectSpread2.default)((0, _objectSpread2.default)({}, state.ProEnum), action.payload)
|
|
37
|
+
});
|
|
38
|
+
case 'setProEnumDic':
|
|
39
|
+
return (0, _objectSpread2.default)((0, _objectSpread2.default)({}, state), {}, {
|
|
40
|
+
ProEnum: (0, _objectSpread2.default)((0, _objectSpread2.default)({}, state.ProEnum), {}, {
|
|
41
|
+
dics: (0, _objectSpread2.default)((0, _objectSpread2.default)({}, (_state$ProEnum = state.ProEnum) === null || _state$ProEnum === void 0 ? void 0 : _state$ProEnum.dataSource), action.payload)
|
|
42
|
+
})
|
|
43
|
+
});
|
|
44
|
+
default:
|
|
45
|
+
return (0, _objectSpread2.default)({}, state);
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
var ProConfigProvider = function ProConfigProvider(props) {
|
|
49
|
+
var _props$value, _props$value2;
|
|
50
|
+
var _useReducer = (0, _react.useReducer)(reducer, {}),
|
|
51
|
+
_useReducer2 = (0, _slicedToArray2.default)(_useReducer, 2),
|
|
52
|
+
state = _useReducer2[0],
|
|
53
|
+
dispatch = _useReducer2[1];
|
|
54
|
+
(0, _useEnumRequest.default)((0, _objectSpread2.default)((0, _objectSpread2.default)((0, _objectSpread2.default)({}, state.ProEnum), props === null || props === void 0 ? void 0 : (_props$value = props.value) === null || _props$value === void 0 ? void 0 : _props$value.ProEnum), props === null || props === void 0 ? void 0 : (_props$value2 = props.value) === null || _props$value2 === void 0 ? void 0 : _props$value2.globalConfig), dispatch);
|
|
55
|
+
return /*#__PURE__*/_react.default.createElement(ProConfigContext.Provider, {
|
|
56
|
+
value: {
|
|
57
|
+
state: (0, _merge.default)(state, props.value),
|
|
58
|
+
dispatch: dispatch
|
|
59
|
+
}
|
|
60
|
+
}, /*#__PURE__*/_react.default.createElement("div", null, " ", props.children));
|
|
61
|
+
};
|
|
62
|
+
exports.ProConfigProvider = ProConfigProvider;
|
|
63
|
+
var _default = ProConfigProvider;
|
|
64
|
+
exports.default = _default;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
interface PropsWithMakeFilePropsType {
|
|
2
|
+
blob?: Blob;
|
|
3
|
+
fileName: string;
|
|
4
|
+
url?: string;
|
|
5
|
+
}
|
|
6
|
+
interface PostDownloadFilePropsType {
|
|
7
|
+
url: string;
|
|
8
|
+
params: any;
|
|
9
|
+
cb: () => void;
|
|
10
|
+
}
|
|
11
|
+
interface IDownloadRequestPropsType {
|
|
12
|
+
url: string;
|
|
13
|
+
method: string;
|
|
14
|
+
payload?: Object;
|
|
15
|
+
headers?: any;
|
|
16
|
+
onFinish?: (response: object, params: object) => void;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* 下载Blob
|
|
20
|
+
*
|
|
21
|
+
* @param response
|
|
22
|
+
* @param fileName
|
|
23
|
+
* @param extendName
|
|
24
|
+
* @constructor
|
|
25
|
+
*/
|
|
26
|
+
export declare function BlobMakeFile({ blob, fileName, url }: PropsWithMakeFilePropsType): void;
|
|
27
|
+
declare type DownloadRequestProps = (props: IDownloadRequestPropsType) => Promise<Response>;
|
|
28
|
+
export declare const DownloadRequest: DownloadRequestProps;
|
|
29
|
+
export declare function postDownloadFile({ url, params, cb }: PostDownloadFilePropsType): boolean;
|
|
30
|
+
type convertBase64ToBlobType = (base64: string, fileType?: string, slice?: number) => Blob;
|
|
31
|
+
export declare const convertBase64ToBlob: convertBase64ToBlobType;
|
|
32
|
+
export {};
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.BlobMakeFile = BlobMakeFile;
|
|
8
|
+
exports.convertBase64ToBlob = exports.DownloadRequest = void 0;
|
|
9
|
+
exports.postDownloadFile = postDownloadFile;
|
|
10
|
+
var _regeneratorRuntime2 = _interopRequireDefault(require("@babel/runtime/helpers/regeneratorRuntime"));
|
|
11
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
12
|
+
var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
|
|
13
|
+
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
14
|
+
var _antd = require("antd");
|
|
15
|
+
/* eslint-disable no-empty */
|
|
16
|
+
/* eslint-disable prefer-promise-reject-errors */
|
|
17
|
+
|
|
18
|
+
var stringify = function stringify(data) {
|
|
19
|
+
var result = '';
|
|
20
|
+
if (data && Object.keys(data).length) {
|
|
21
|
+
Object.entries(data).forEach(function (item) {
|
|
22
|
+
result += "&".concat(item[0], "=").concat(item[1]);
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
return result ? result.substr(1) : '';
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* 下载Blob
|
|
29
|
+
*
|
|
30
|
+
* @param response
|
|
31
|
+
* @param fileName
|
|
32
|
+
* @param extendName
|
|
33
|
+
* @constructor
|
|
34
|
+
*/
|
|
35
|
+
function BlobMakeFile(_ref) {
|
|
36
|
+
var blob = _ref.blob,
|
|
37
|
+
fileName = _ref.fileName,
|
|
38
|
+
url = _ref.url;
|
|
39
|
+
var blobUrl = url;
|
|
40
|
+
if (blob) {
|
|
41
|
+
blobUrl = window.URL.createObjectURL(blob);
|
|
42
|
+
}
|
|
43
|
+
var doc = document;
|
|
44
|
+
var ele = doc.createElement('a');
|
|
45
|
+
doc.body.appendChild(ele);
|
|
46
|
+
ele.style.display = 'none';
|
|
47
|
+
ele.setAttribute('target', '');
|
|
48
|
+
ele.href = blobUrl;
|
|
49
|
+
ele.download = "".concat(fileName);
|
|
50
|
+
ele.click();
|
|
51
|
+
doc.body.removeChild(ele);
|
|
52
|
+
}
|
|
53
|
+
// 发起请求获取下载文件
|
|
54
|
+
var DownloadRequest = /*#__PURE__*/function () {
|
|
55
|
+
var _ref3 = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee2(_ref2) {
|
|
56
|
+
var url, _ref2$method, method, payload, headers, config;
|
|
57
|
+
return (0, _regeneratorRuntime2.default)().wrap(function _callee2$(_context2) {
|
|
58
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
59
|
+
case 0:
|
|
60
|
+
url = _ref2.url, _ref2$method = _ref2.method, method = _ref2$method === void 0 ? 'post' : _ref2$method, payload = _ref2.payload, headers = _ref2.headers;
|
|
61
|
+
config = {
|
|
62
|
+
method: method,
|
|
63
|
+
credentials: 'include',
|
|
64
|
+
headers: {
|
|
65
|
+
'Content-Type': 'application/json',
|
|
66
|
+
accept: 'application/json;charset=UTF-8'
|
|
67
|
+
},
|
|
68
|
+
body: null
|
|
69
|
+
}; // method = post and payload, add it to the fetch request
|
|
70
|
+
if (method === 'post' && payload) {
|
|
71
|
+
config.body = JSON.stringify(payload);
|
|
72
|
+
}
|
|
73
|
+
// 处理get请求入参
|
|
74
|
+
if (method === 'get' && payload) {
|
|
75
|
+
url = "".concat(url).concat(url.indexOf('?') !== -1 ? '&' : '?').concat(stringify(payload));
|
|
76
|
+
}
|
|
77
|
+
// if custom headers need to be set for the specific request
|
|
78
|
+
if (headers && (0, _typeof2.default)(headers) === 'object' && Object.keys(headers).length > 0) {
|
|
79
|
+
config.headers = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, config.headers), headers);
|
|
80
|
+
}
|
|
81
|
+
return _context2.abrupt("return", fetch(url, config).then( /*#__PURE__*/function () {
|
|
82
|
+
var _ref4 = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee(response) {
|
|
83
|
+
var data, errorMsg;
|
|
84
|
+
return (0, _regeneratorRuntime2.default)().wrap(function _callee$(_context) {
|
|
85
|
+
while (1) switch (_context.prev = _context.next) {
|
|
86
|
+
case 0:
|
|
87
|
+
_context.prev = 0;
|
|
88
|
+
_context.next = 3;
|
|
89
|
+
return response.clone().json();
|
|
90
|
+
case 3:
|
|
91
|
+
data = _context.sent;
|
|
92
|
+
if (!((data === null || data === void 0 ? void 0 : data.status) > 200 || (data === null || data === void 0 ? void 0 : data.code) === 401)) {
|
|
93
|
+
_context.next = 8;
|
|
94
|
+
break;
|
|
95
|
+
}
|
|
96
|
+
errorMsg = (data === null || data === void 0 ? void 0 : data.message) || (data === null || data === void 0 ? void 0 : data.msg);
|
|
97
|
+
errorMsg && _antd.message.error(errorMsg);
|
|
98
|
+
return _context.abrupt("return", Promise.reject(errorMsg));
|
|
99
|
+
case 8:
|
|
100
|
+
Promise.resolve(data);
|
|
101
|
+
_context.next = 15;
|
|
102
|
+
break;
|
|
103
|
+
case 11:
|
|
104
|
+
_context.prev = 11;
|
|
105
|
+
_context.t0 = _context["catch"](0);
|
|
106
|
+
if (!response.ok) {
|
|
107
|
+
_context.next = 15;
|
|
108
|
+
break;
|
|
109
|
+
}
|
|
110
|
+
return _context.abrupt("return", Promise.resolve(response));
|
|
111
|
+
case 15:
|
|
112
|
+
return _context.abrupt("return", Promise.reject('请求失败!'));
|
|
113
|
+
case 16:
|
|
114
|
+
case "end":
|
|
115
|
+
return _context.stop();
|
|
116
|
+
}
|
|
117
|
+
}, _callee, null, [[0, 11]]);
|
|
118
|
+
}));
|
|
119
|
+
return function (_x2) {
|
|
120
|
+
return _ref4.apply(this, arguments);
|
|
121
|
+
};
|
|
122
|
+
}()));
|
|
123
|
+
case 6:
|
|
124
|
+
case "end":
|
|
125
|
+
return _context2.stop();
|
|
126
|
+
}
|
|
127
|
+
}, _callee2);
|
|
128
|
+
}));
|
|
129
|
+
return function DownloadRequest(_x) {
|
|
130
|
+
return _ref3.apply(this, arguments);
|
|
131
|
+
};
|
|
132
|
+
}();
|
|
133
|
+
exports.DownloadRequest = DownloadRequest;
|
|
134
|
+
function postDownloadFile(_ref5) {
|
|
135
|
+
var url = _ref5.url,
|
|
136
|
+
params = _ref5.params,
|
|
137
|
+
cb = _ref5.cb;
|
|
138
|
+
if (!url) {
|
|
139
|
+
return false;
|
|
140
|
+
}
|
|
141
|
+
// 删除重复创建的Form
|
|
142
|
+
var downloadForm = document.querySelector('#downloadForm');
|
|
143
|
+
if (downloadForm) {
|
|
144
|
+
document.body.removeChild(downloadForm);
|
|
145
|
+
}
|
|
146
|
+
try {
|
|
147
|
+
var form = document.createElement('form');
|
|
148
|
+
form.action = url;
|
|
149
|
+
form.id = 'downloadForm';
|
|
150
|
+
form.style = 'display:none';
|
|
151
|
+
form.method = 'post';
|
|
152
|
+
form.target = '_blank';
|
|
153
|
+
// eslint-disable-next-line no-restricted-syntax
|
|
154
|
+
for (var key in params) {
|
|
155
|
+
if (Object.prototype.hasOwnProperty.call(params, key)) {
|
|
156
|
+
var newInput = document.createElement('input');
|
|
157
|
+
newInput.type = 'hidden';
|
|
158
|
+
newInput.name = key;
|
|
159
|
+
newInput.value = params[key];
|
|
160
|
+
form.appendChild(newInput);
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
document.body.appendChild(form);
|
|
164
|
+
form.submit();
|
|
165
|
+
setTimeout(function () {
|
|
166
|
+
cb && cb();
|
|
167
|
+
}, 3000);
|
|
168
|
+
} catch (e) {
|
|
169
|
+
console.warn(e);
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
var convertBase64ToBlob = function convertBase64ToBlob(base64, fileType) {
|
|
173
|
+
var _atob$match;
|
|
174
|
+
var slice = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1024;
|
|
175
|
+
return new Blob((_atob$match = atob(base64).match(new RegExp("([\\s\\S]{".concat(slice, "})|([\\s\\S]{1,").concat(slice, "})"), 'g'))) === null || _atob$match === void 0 ? void 0 : _atob$match.map(function (item) {
|
|
176
|
+
return new Uint8Array(item.split('').map(function (s, i) {
|
|
177
|
+
return item.charCodeAt(i);
|
|
178
|
+
}));
|
|
179
|
+
}), {
|
|
180
|
+
type: fileType
|
|
181
|
+
});
|
|
182
|
+
};
|
|
183
|
+
exports.convertBase64ToBlob = convertBase64ToBlob;
|
|
@@ -0,0 +1,183 @@
|
|
|
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 _regeneratorRuntime2 = _interopRequireDefault(require("@babel/runtime/helpers/regeneratorRuntime"));
|
|
10
|
+
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
11
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
12
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
13
|
+
var _ahooks = require("ahooks");
|
|
14
|
+
var _antd = require("antd");
|
|
15
|
+
var _lodash = _interopRequireDefault(require("lodash"));
|
|
16
|
+
var _react = _interopRequireDefault(require("react"));
|
|
17
|
+
var _DownloadHelper = require("./DownloadHelper");
|
|
18
|
+
var _excluded = ["source", "action", "method", "params", "fileName", "headers", "children", "onFinish", "beforeDownload"];
|
|
19
|
+
var ProDownload = function ProDownload(props) {
|
|
20
|
+
var source = props.source,
|
|
21
|
+
action = props.action,
|
|
22
|
+
method = props.method,
|
|
23
|
+
params = props.params,
|
|
24
|
+
fileName = props.fileName,
|
|
25
|
+
headers = props.headers,
|
|
26
|
+
children = props.children,
|
|
27
|
+
onFinish = props.onFinish,
|
|
28
|
+
beforeDownload = props.beforeDownload,
|
|
29
|
+
defaultProps = (0, _objectWithoutProperties2.default)(props, _excluded);
|
|
30
|
+
var _useSetState = (0, _ahooks.useSetState)({
|
|
31
|
+
loading: false
|
|
32
|
+
}),
|
|
33
|
+
_useSetState2 = (0, _slicedToArray2.default)(_useSetState, 2),
|
|
34
|
+
loading = _useSetState2[0].loading,
|
|
35
|
+
setState = _useSetState2[1];
|
|
36
|
+
var handDownload = /*#__PURE__*/function () {
|
|
37
|
+
var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee() {
|
|
38
|
+
var res, fileBlob, data;
|
|
39
|
+
return (0, _regeneratorRuntime2.default)().wrap(function _callee$(_context) {
|
|
40
|
+
while (1) switch (_context.prev = _context.next) {
|
|
41
|
+
case 0:
|
|
42
|
+
if (!(source === 'url')) {
|
|
43
|
+
_context.next = 3;
|
|
44
|
+
break;
|
|
45
|
+
}
|
|
46
|
+
fetch(action).then(function (response) {
|
|
47
|
+
return response.blob();
|
|
48
|
+
}).then(function (res) {
|
|
49
|
+
var blob = new Blob([res]);
|
|
50
|
+
(0, _DownloadHelper.BlobMakeFile)({
|
|
51
|
+
blob: blob,
|
|
52
|
+
fileName: fileName
|
|
53
|
+
});
|
|
54
|
+
});
|
|
55
|
+
return _context.abrupt("return");
|
|
56
|
+
case 3:
|
|
57
|
+
setState({
|
|
58
|
+
loading: true
|
|
59
|
+
});
|
|
60
|
+
// 发起请求
|
|
61
|
+
_context.prev = 4;
|
|
62
|
+
_context.next = 7;
|
|
63
|
+
return (0, _DownloadHelper.DownloadRequest)({
|
|
64
|
+
url: action,
|
|
65
|
+
method: method,
|
|
66
|
+
headers: headers,
|
|
67
|
+
payload: params
|
|
68
|
+
});
|
|
69
|
+
case 7:
|
|
70
|
+
res = _context.sent;
|
|
71
|
+
data = _lodash.default.get(res, 'data');
|
|
72
|
+
if (!data) {
|
|
73
|
+
_context.next = 13;
|
|
74
|
+
break;
|
|
75
|
+
}
|
|
76
|
+
fileBlob = (0, _DownloadHelper.convertBase64ToBlob)(data);
|
|
77
|
+
_context.next = 16;
|
|
78
|
+
break;
|
|
79
|
+
case 13:
|
|
80
|
+
_context.next = 15;
|
|
81
|
+
return res.blob();
|
|
82
|
+
case 15:
|
|
83
|
+
fileBlob = _context.sent;
|
|
84
|
+
case 16:
|
|
85
|
+
_context.next = 18;
|
|
86
|
+
return (0, _DownloadHelper.BlobMakeFile)({
|
|
87
|
+
blob: fileBlob,
|
|
88
|
+
fileName: fileName
|
|
89
|
+
});
|
|
90
|
+
case 18:
|
|
91
|
+
_context.next = 24;
|
|
92
|
+
break;
|
|
93
|
+
case 20:
|
|
94
|
+
_context.prev = 20;
|
|
95
|
+
_context.t0 = _context["catch"](4);
|
|
96
|
+
setState({
|
|
97
|
+
loading: false
|
|
98
|
+
});
|
|
99
|
+
return _context.abrupt("return", Promise.reject());
|
|
100
|
+
case 24:
|
|
101
|
+
_context.prev = 24;
|
|
102
|
+
setState({
|
|
103
|
+
loading: false
|
|
104
|
+
});
|
|
105
|
+
return _context.finish(24);
|
|
106
|
+
case 27:
|
|
107
|
+
case "end":
|
|
108
|
+
return _context.stop();
|
|
109
|
+
}
|
|
110
|
+
}, _callee, null, [[4, 20, 24, 27]]);
|
|
111
|
+
}));
|
|
112
|
+
return function handDownload() {
|
|
113
|
+
return _ref.apply(this, arguments);
|
|
114
|
+
};
|
|
115
|
+
}();
|
|
116
|
+
return /*#__PURE__*/_react.default.createElement(_antd.Button, (0, _objectSpread2.default)((0, _objectSpread2.default)({
|
|
117
|
+
onClick: function () {
|
|
118
|
+
var _onClick = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee3() {
|
|
119
|
+
var res;
|
|
120
|
+
return (0, _regeneratorRuntime2.default)().wrap(function _callee3$(_context3) {
|
|
121
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
122
|
+
case 0:
|
|
123
|
+
if (!(_lodash.default.isBoolean(beforeDownload) && !beforeDownload)) {
|
|
124
|
+
_context3.next = 2;
|
|
125
|
+
break;
|
|
126
|
+
}
|
|
127
|
+
return _context3.abrupt("return", false);
|
|
128
|
+
case 2:
|
|
129
|
+
if (!beforeDownload) {
|
|
130
|
+
_context3.next = 13;
|
|
131
|
+
break;
|
|
132
|
+
}
|
|
133
|
+
if (!(beforeDownload instanceof /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee2() {
|
|
134
|
+
return (0, _regeneratorRuntime2.default)().wrap(function _callee2$(_context2) {
|
|
135
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
136
|
+
case 0:
|
|
137
|
+
case "end":
|
|
138
|
+
return _context2.stop();
|
|
139
|
+
}
|
|
140
|
+
}, _callee2);
|
|
141
|
+
})).constructor)) {
|
|
142
|
+
_context3.next = 9;
|
|
143
|
+
break;
|
|
144
|
+
}
|
|
145
|
+
_context3.next = 6;
|
|
146
|
+
return beforeDownload();
|
|
147
|
+
case 6:
|
|
148
|
+
_context3.t0 = _context3.sent;
|
|
149
|
+
_context3.next = 10;
|
|
150
|
+
break;
|
|
151
|
+
case 9:
|
|
152
|
+
_context3.t0 = beforeDownload();
|
|
153
|
+
case 10:
|
|
154
|
+
res = _context3.t0;
|
|
155
|
+
if (!(res === false)) {
|
|
156
|
+
_context3.next = 13;
|
|
157
|
+
break;
|
|
158
|
+
}
|
|
159
|
+
return _context3.abrupt("return");
|
|
160
|
+
case 13:
|
|
161
|
+
_context3.next = 15;
|
|
162
|
+
return handDownload();
|
|
163
|
+
case 15:
|
|
164
|
+
if (_lodash.default.isFunction(onFinish)) {
|
|
165
|
+
onFinish();
|
|
166
|
+
}
|
|
167
|
+
case 16:
|
|
168
|
+
case "end":
|
|
169
|
+
return _context3.stop();
|
|
170
|
+
}
|
|
171
|
+
}, _callee3);
|
|
172
|
+
}));
|
|
173
|
+
function onClick() {
|
|
174
|
+
return _onClick.apply(this, arguments);
|
|
175
|
+
}
|
|
176
|
+
return onClick;
|
|
177
|
+
}()
|
|
178
|
+
}, defaultProps), {}, {
|
|
179
|
+
loading: loading
|
|
180
|
+
}), children);
|
|
181
|
+
};
|
|
182
|
+
var _default = ProDownload;
|
|
183
|
+
exports.default = _default;
|