@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,404 @@
|
|
|
1
|
+
import "antd/es/button/style";
|
|
2
|
+
import _Button from "antd/es/button";
|
|
3
|
+
import "antd/es/progress/style";
|
|
4
|
+
import _Progress from "antd/es/progress";
|
|
5
|
+
import "antd/es/message/style";
|
|
6
|
+
import _message from "antd/es/message";
|
|
7
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
8
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
9
|
+
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
10
|
+
import "antd/es/upload/style";
|
|
11
|
+
import _Upload from "antd/es/upload";
|
|
12
|
+
var _excluded = ["value", "size", "action", "maxCount", "headerRender", "footerRender", "disabled", "uploadType", "buttonProps", "accept", "extraTipText", "beforeUpload", "onChange", "onDownload", "onPreview", "onRemove", "method", "className", "dataParams", "showExampleContent", "otherProps", "transformResponse"];
|
|
13
|
+
import React, { useEffect, useRef, useState } from 'react';
|
|
14
|
+
import { CloudUploadOutlined, PlusOutlined } from '@ant-design/icons';
|
|
15
|
+
import { ReactSVG } from 'react-svg';
|
|
16
|
+
import { FileItem, getFileExt, getFileIcon, DragSingleFileItem } from './FileItem';
|
|
17
|
+
import { Example } from './Example';
|
|
18
|
+
import lookSvg from './style/look.svg';
|
|
19
|
+
import deleteSvg from './style/delete.svg';
|
|
20
|
+
import downloadSvg from './style/download.svg';
|
|
21
|
+
import './style/index.less';
|
|
22
|
+
var validateSize = function validateSize(size, file) {
|
|
23
|
+
if (size !== undefined) {
|
|
24
|
+
return file.size <= size * 1024 * 1024;
|
|
25
|
+
}
|
|
26
|
+
return true;
|
|
27
|
+
};
|
|
28
|
+
var Dragger = _Upload.Dragger;
|
|
29
|
+
var ProUpload = function ProUpload(props) {
|
|
30
|
+
var _useState = useState([]),
|
|
31
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
32
|
+
_fileList = _useState2[0],
|
|
33
|
+
setFileList = _useState2[1];
|
|
34
|
+
var value = props.value,
|
|
35
|
+
_props$size = props.size,
|
|
36
|
+
size = _props$size === void 0 ? 10 : _props$size,
|
|
37
|
+
action = props.action,
|
|
38
|
+
_props$maxCount = props.maxCount,
|
|
39
|
+
maxCount = _props$maxCount === void 0 ? 1 : _props$maxCount,
|
|
40
|
+
headerRender = props.headerRender,
|
|
41
|
+
footerRender = props.footerRender,
|
|
42
|
+
disabled = props.disabled,
|
|
43
|
+
_props$uploadType = props.uploadType,
|
|
44
|
+
uploadType = _props$uploadType === void 0 ? 'drag' : _props$uploadType,
|
|
45
|
+
buttonProps = props.buttonProps,
|
|
46
|
+
accept = props.accept,
|
|
47
|
+
extraTipText = props.extraTipText,
|
|
48
|
+
beforeUpload = props.beforeUpload,
|
|
49
|
+
onChange = props.onChange,
|
|
50
|
+
onDownload = props.onDownload,
|
|
51
|
+
onPreview = props.onPreview,
|
|
52
|
+
onRemove = props.onRemove,
|
|
53
|
+
_props$method = props.method,
|
|
54
|
+
method = _props$method === void 0 ? 'post' : _props$method,
|
|
55
|
+
className = props.className,
|
|
56
|
+
dataParams = props.dataParams,
|
|
57
|
+
_props$showExampleCon = props.showExampleContent,
|
|
58
|
+
showExampleContent = _props$showExampleCon === void 0 ? false : _props$showExampleCon,
|
|
59
|
+
otherProps = props.otherProps,
|
|
60
|
+
transformResponse = props.transformResponse,
|
|
61
|
+
residueProps = _objectWithoutProperties(props, _excluded);
|
|
62
|
+
var isView = otherProps === null || otherProps === void 0 ? void 0 : otherProps.isView;
|
|
63
|
+
var refReSelect = useRef();
|
|
64
|
+
var uploadResTransform = function uploadResTransform(fileList) {
|
|
65
|
+
return fileList.map(function (file) {
|
|
66
|
+
if (file.response && transformResponse) {
|
|
67
|
+
var data = transformResponse(file.response) || {};
|
|
68
|
+
return _objectSpread(_objectSpread({}, file), data);
|
|
69
|
+
}
|
|
70
|
+
return file;
|
|
71
|
+
});
|
|
72
|
+
};
|
|
73
|
+
/**
|
|
74
|
+
* @description: 文件列表变化
|
|
75
|
+
* @return {*}
|
|
76
|
+
*/
|
|
77
|
+
var handleFileChange = function handleFileChange(_ref) {
|
|
78
|
+
var file = _ref.file,
|
|
79
|
+
fileList = _ref.fileList;
|
|
80
|
+
if (!file.status && action) {
|
|
81
|
+
var nFileList = fileList.filter(function (f) {
|
|
82
|
+
return f.uid !== file.uid;
|
|
83
|
+
});
|
|
84
|
+
nFileList = uploadResTransform(nFileList);
|
|
85
|
+
setFileList(nFileList);
|
|
86
|
+
onChange && onChange(nFileList);
|
|
87
|
+
return;
|
|
88
|
+
}
|
|
89
|
+
var _fileList = uploadResTransform(fileList);
|
|
90
|
+
setFileList(_fileList);
|
|
91
|
+
onChange && onChange(_fileList);
|
|
92
|
+
};
|
|
93
|
+
/**
|
|
94
|
+
* @description: 文件删除
|
|
95
|
+
* @param {UploadFile} file
|
|
96
|
+
* @return {*}
|
|
97
|
+
*/
|
|
98
|
+
var handleDelFile = function handleDelFile(file) {
|
|
99
|
+
if (disabled) return;
|
|
100
|
+
var _List = _fileList.filter(function (i) {
|
|
101
|
+
return i.uid !== file.uid;
|
|
102
|
+
});
|
|
103
|
+
setFileList(_List);
|
|
104
|
+
onChange && onChange(_List);
|
|
105
|
+
};
|
|
106
|
+
/**
|
|
107
|
+
* @description: 重新选择 拖拽模式下单个文件可用
|
|
108
|
+
* @param {UploadFile} file
|
|
109
|
+
* @return {*}
|
|
110
|
+
*/
|
|
111
|
+
var handleReSelect = function handleReSelect(file) {
|
|
112
|
+
if (disabled) return;
|
|
113
|
+
handleDelFile(file);
|
|
114
|
+
setTimeout(function () {
|
|
115
|
+
refReSelect.current.click();
|
|
116
|
+
}, 1);
|
|
117
|
+
};
|
|
118
|
+
// 拖拽模式下单个文件可用
|
|
119
|
+
var showDraggerSingleRender = maxCount === 1 && _fileList[0];
|
|
120
|
+
// 文件格式
|
|
121
|
+
var extExt = accept ? accept.split(',').map(function (i) {
|
|
122
|
+
return i.toLocaleUpperCase();
|
|
123
|
+
}) : [];
|
|
124
|
+
/**
|
|
125
|
+
* @description: 文件上传前处理
|
|
126
|
+
* @param {UploadFile} file
|
|
127
|
+
* @param {UploadFile} fileList
|
|
128
|
+
* @return {*}
|
|
129
|
+
*/
|
|
130
|
+
var handleBeforeUpload = function handleBeforeUpload(file, fileList) {
|
|
131
|
+
// TODO
|
|
132
|
+
var ext = getFileExt(file.name);
|
|
133
|
+
if (!extExt.includes(ext.toLocaleUpperCase()) && extExt.length > 0) {
|
|
134
|
+
_message.error('文件格式不支持');
|
|
135
|
+
return false;
|
|
136
|
+
}
|
|
137
|
+
if (!validateSize(size, file)) {
|
|
138
|
+
_message.error('您上传的文件过大');
|
|
139
|
+
return false;
|
|
140
|
+
}
|
|
141
|
+
if (beforeUpload) {
|
|
142
|
+
return beforeUpload(file, fileList);
|
|
143
|
+
}
|
|
144
|
+
};
|
|
145
|
+
var handleDownload = function handleDownload(file) {
|
|
146
|
+
if (onDownload) {
|
|
147
|
+
onDownload(file);
|
|
148
|
+
} else {
|
|
149
|
+
window.open(file.url || file.thumbUrl);
|
|
150
|
+
}
|
|
151
|
+
};
|
|
152
|
+
/**
|
|
153
|
+
* @description: 处理预览按钮
|
|
154
|
+
* @param {UploadFile} file
|
|
155
|
+
* @return {*}
|
|
156
|
+
*/
|
|
157
|
+
var handlePreview = function handlePreview(file) {
|
|
158
|
+
if (onPreview) {
|
|
159
|
+
onPreview(file);
|
|
160
|
+
} else {
|
|
161
|
+
window.open(file.url || file.thumbUrl);
|
|
162
|
+
}
|
|
163
|
+
};
|
|
164
|
+
var handleRemove = function handleRemove(file) {
|
|
165
|
+
var nextList = _fileList.slice();
|
|
166
|
+
var nFile = nextList.filter(function (_file) {
|
|
167
|
+
return _file.uid !== file.uid;
|
|
168
|
+
});
|
|
169
|
+
setFileList(nFile);
|
|
170
|
+
};
|
|
171
|
+
/**
|
|
172
|
+
* @description: 单个拖拽上传界面
|
|
173
|
+
* @param {UploadFile} file
|
|
174
|
+
* @return {*}
|
|
175
|
+
*/
|
|
176
|
+
var draggerSingleRender = function draggerSingleRender(file) {
|
|
177
|
+
var _fileExt = getFileExt(file.name);
|
|
178
|
+
var _fileIcon = getFileIcon(_fileExt);
|
|
179
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
180
|
+
className: "dragger-single-file"
|
|
181
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
182
|
+
className: "file-type-icon"
|
|
183
|
+
}, /*#__PURE__*/React.createElement("img", {
|
|
184
|
+
src: _fileIcon
|
|
185
|
+
})), /*#__PURE__*/React.createElement(DragSingleFileItem, {
|
|
186
|
+
file: file,
|
|
187
|
+
disabled: disabled,
|
|
188
|
+
onDownload: onDownload
|
|
189
|
+
}), file.status !== 'uploading' && /*#__PURE__*/React.createElement("div", {
|
|
190
|
+
className: "file-action-box"
|
|
191
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
192
|
+
className: "file-name",
|
|
193
|
+
onClick: function onClick() {
|
|
194
|
+
handleReSelect(file);
|
|
195
|
+
}
|
|
196
|
+
}, "\u91CD\u65B0\u9009\u62E9"), /*#__PURE__*/React.createElement("div", {
|
|
197
|
+
className: "file-del",
|
|
198
|
+
onClick: function onClick() {
|
|
199
|
+
handleDelFile(file);
|
|
200
|
+
}
|
|
201
|
+
}, "\u5220\u9664")));
|
|
202
|
+
};
|
|
203
|
+
// 自定义顶部
|
|
204
|
+
var _headerRender = headerRender && headerRender();
|
|
205
|
+
// 自定义底部
|
|
206
|
+
var _footerRender = footerRender && footerRender();
|
|
207
|
+
// 文件列表项显示
|
|
208
|
+
var itemRender = function itemRender(originNode, file, fileList, actions) {
|
|
209
|
+
return /*#__PURE__*/React.createElement(FileItem, {
|
|
210
|
+
disabled: disabled || isView,
|
|
211
|
+
file: file,
|
|
212
|
+
onPreview: handlePreview,
|
|
213
|
+
onRemove: actions.remove,
|
|
214
|
+
onDownload: onDownload
|
|
215
|
+
});
|
|
216
|
+
};
|
|
217
|
+
// 通用props
|
|
218
|
+
var baseUploadProps = _objectSpread({
|
|
219
|
+
action: action,
|
|
220
|
+
beforeUpload: handleBeforeUpload,
|
|
221
|
+
onRemove: handleRemove,
|
|
222
|
+
onChange: handleFileChange,
|
|
223
|
+
maxCount: maxCount,
|
|
224
|
+
showUploadList: true,
|
|
225
|
+
fileList: _fileList,
|
|
226
|
+
disabled: disabled || isView,
|
|
227
|
+
method: method,
|
|
228
|
+
data: _objectSpread({}, dataParams)
|
|
229
|
+
}, residueProps);
|
|
230
|
+
// 按钮类型的props
|
|
231
|
+
var buttonUploadProps = _objectSpread(_objectSpread({}, baseUploadProps), {}, {
|
|
232
|
+
itemRender: itemRender
|
|
233
|
+
});
|
|
234
|
+
// 拖拽类型的props
|
|
235
|
+
var dragUploadProps = _objectSpread(_objectSpread({}, baseUploadProps), {}, {
|
|
236
|
+
showUploadList: false,
|
|
237
|
+
openFileDialogOnClick: !showDraggerSingleRender,
|
|
238
|
+
itemRender: itemRender
|
|
239
|
+
});
|
|
240
|
+
// 图片类上传Props
|
|
241
|
+
var imageUploadProps = _objectSpread(_objectSpread({}, baseUploadProps), {}, {
|
|
242
|
+
listType: 'picture-card',
|
|
243
|
+
openFileDialogOnClick: !showDraggerSingleRender,
|
|
244
|
+
disabled: disabled || isView,
|
|
245
|
+
itemRender: function itemRender(originNode, file, fileList, actions) {
|
|
246
|
+
var _showPreview = file.status === 'done';
|
|
247
|
+
var _isShowDownload = !!onDownload && file.status === 'done';
|
|
248
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
249
|
+
key: file.uid,
|
|
250
|
+
className: "file-item-image ".concat(file.status === 'error' ? 'actions-wrap-error' : '')
|
|
251
|
+
}, file.status === 'uploading' && /*#__PURE__*/React.createElement("div", {
|
|
252
|
+
className: "image-uploading"
|
|
253
|
+
}, /*#__PURE__*/React.createElement(_Progress, {
|
|
254
|
+
size: "small",
|
|
255
|
+
percent: Math.ceil(file.percent)
|
|
256
|
+
})), file.status !== 'uploading' && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("img", {
|
|
257
|
+
className: "image-con",
|
|
258
|
+
src: file.url || file.thumbUrl
|
|
259
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
260
|
+
className: "actions-wrap "
|
|
261
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
262
|
+
className: "action-top"
|
|
263
|
+
}, _showPreview && /*#__PURE__*/React.createElement(_Button, {
|
|
264
|
+
type: "link",
|
|
265
|
+
className: "action-item",
|
|
266
|
+
onClick: function onClick() {
|
|
267
|
+
handlePreview(file);
|
|
268
|
+
},
|
|
269
|
+
icon: /*#__PURE__*/React.createElement(ReactSVG, {
|
|
270
|
+
className: "action-icon",
|
|
271
|
+
wrapper: "span",
|
|
272
|
+
src: lookSvg
|
|
273
|
+
})
|
|
274
|
+
}, "\u67E5\u770B"), _isShowDownload && /*#__PURE__*/React.createElement(_Button, {
|
|
275
|
+
type: "link",
|
|
276
|
+
disabled: isView || disabled,
|
|
277
|
+
className: "action-item",
|
|
278
|
+
onClick: function onClick() {
|
|
279
|
+
handleDownload(file);
|
|
280
|
+
},
|
|
281
|
+
icon: /*#__PURE__*/React.createElement(ReactSVG, {
|
|
282
|
+
className: "action-icon",
|
|
283
|
+
wrapper: "span",
|
|
284
|
+
src: downloadSvg
|
|
285
|
+
})
|
|
286
|
+
}, "\u4E0B\u8F7D")), /*#__PURE__*/React.createElement("div", {
|
|
287
|
+
className: "action-button"
|
|
288
|
+
}, /*#__PURE__*/React.createElement(_Button, {
|
|
289
|
+
type: "link",
|
|
290
|
+
disabled: isView || disabled,
|
|
291
|
+
className: "action-item",
|
|
292
|
+
onClick: actions.remove,
|
|
293
|
+
icon: /*#__PURE__*/React.createElement(ReactSVG, {
|
|
294
|
+
className: "action-icon",
|
|
295
|
+
wrapper: "span",
|
|
296
|
+
src: deleteSvg
|
|
297
|
+
})
|
|
298
|
+
}, "\u5220\u9664")))));
|
|
299
|
+
}
|
|
300
|
+
});
|
|
301
|
+
/* 拖拽类型 */
|
|
302
|
+
var DragRender = function DragRender() {
|
|
303
|
+
if (isView) return /*#__PURE__*/React.createElement(React.Fragment, null, "-");
|
|
304
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
305
|
+
className: "pro-upload-dragger"
|
|
306
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
307
|
+
className: "pro-upload-handle-box"
|
|
308
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
309
|
+
className: "pro-upload-dragger-header"
|
|
310
|
+
}, _headerRender), /*#__PURE__*/React.createElement(Dragger, _objectSpread({}, dragUploadProps), /*#__PURE__*/React.createElement("div", {
|
|
311
|
+
className: "drag-upload-inner",
|
|
312
|
+
ref: refReSelect
|
|
313
|
+
}, !showDraggerSingleRender && /*#__PURE__*/React.createElement("div", {
|
|
314
|
+
className: "upload-dragger-control"
|
|
315
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
316
|
+
className: "dragger-txt-line1"
|
|
317
|
+
}, /*#__PURE__*/React.createElement("i", {
|
|
318
|
+
className: "icon-upload"
|
|
319
|
+
}, /*#__PURE__*/React.createElement(CloudUploadOutlined, null)), /*#__PURE__*/React.createElement("p", {
|
|
320
|
+
className: "dragger-txt"
|
|
321
|
+
}, "\u5C06\u6587\u4EF6\u62D6\u62FD\u5230\u6B64\u5904\uFF0C\u6216", /*#__PURE__*/React.createElement("span", {
|
|
322
|
+
className: "click-txt"
|
|
323
|
+
}, "\u70B9\u51FB\u4E0A\u4F20 "))), /*#__PURE__*/React.createElement("p", {
|
|
324
|
+
className: "file-ext"
|
|
325
|
+
}, "\u652F\u6301\u6269\u5C55\u540D\uFF1A", extExt.length > 0 ? extExt.join('、') : '无限制')), /*#__PURE__*/React.createElement("div", {
|
|
326
|
+
className: "dragger-file-show"
|
|
327
|
+
}, showDraggerSingleRender && draggerSingleRender(_fileList[0])))), /*#__PURE__*/React.createElement("div", {
|
|
328
|
+
className: "pro-upload-dragger-footer"
|
|
329
|
+
}, _footerRender)), /*#__PURE__*/React.createElement("div", {
|
|
330
|
+
className: "pro-upload-file-list"
|
|
331
|
+
}, maxCount > 1 && _fileList.map(function (file) {
|
|
332
|
+
return /*#__PURE__*/React.createElement(FileItem, {
|
|
333
|
+
file: file,
|
|
334
|
+
key: file.uid,
|
|
335
|
+
disabled: disabled || isView,
|
|
336
|
+
onPreview: handlePreview,
|
|
337
|
+
onRemove: handleRemove,
|
|
338
|
+
onDownload: onDownload
|
|
339
|
+
});
|
|
340
|
+
})));
|
|
341
|
+
};
|
|
342
|
+
/* 按钮类型 */
|
|
343
|
+
var ButtonRender = function ButtonRender() {
|
|
344
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
345
|
+
className: "pro-upload-button"
|
|
346
|
+
}, /*#__PURE__*/React.createElement(_Upload, _objectSpread({}, buttonUploadProps), !isView && /*#__PURE__*/React.createElement("div", {
|
|
347
|
+
className: "pro-upload-button-inner"
|
|
348
|
+
}, /*#__PURE__*/React.createElement(_Button, _objectSpread(_objectSpread({}, buttonProps), {}, {
|
|
349
|
+
disabled: disabled || isView
|
|
350
|
+
}), /*#__PURE__*/React.createElement(CloudUploadOutlined, null), "\u4E0A\u4F20\u6587\u4EF6"))), extraTipText && /*#__PURE__*/React.createElement("div", {
|
|
351
|
+
className: "upload-tip-txt"
|
|
352
|
+
}, extraTipText));
|
|
353
|
+
};
|
|
354
|
+
/* 图片类型 */
|
|
355
|
+
var ImageRender = function ImageRender() {
|
|
356
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
357
|
+
className: "pro-upload-image"
|
|
358
|
+
}, /*#__PURE__*/React.createElement(_Upload, _objectSpread({}, imageUploadProps), _fileList.length < maxCount && !isView && /*#__PURE__*/React.createElement("div", {
|
|
359
|
+
className: "pro-upload-image-inner ".concat(disabled ? 'pro-upload-image-disabled' : '', " ")
|
|
360
|
+
}, /*#__PURE__*/React.createElement(PlusOutlined, null), /*#__PURE__*/React.createElement("div", {
|
|
361
|
+
style: {
|
|
362
|
+
marginTop: 8
|
|
363
|
+
}
|
|
364
|
+
}, "\u4E0A\u4F20\u6587\u4EF6"))), showExampleContent && /*#__PURE__*/React.createElement(Example, {
|
|
365
|
+
className: "image-example"
|
|
366
|
+
}), extraTipText && /*#__PURE__*/React.createElement("div", {
|
|
367
|
+
className: "upload-tip-txt"
|
|
368
|
+
}, extraTipText));
|
|
369
|
+
};
|
|
370
|
+
/* 营业执照 */
|
|
371
|
+
var LicenseRender = function LicenseRender() {
|
|
372
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
373
|
+
className: "pro-upload-button"
|
|
374
|
+
}, /*#__PURE__*/React.createElement(_Upload, _objectSpread({}, buttonUploadProps), /*#__PURE__*/React.createElement("div", {
|
|
375
|
+
className: "pro-upload-button-inner"
|
|
376
|
+
}, /*#__PURE__*/React.createElement(_Button, _objectSpread({}, buttonProps), /*#__PURE__*/React.createElement(CloudUploadOutlined, null), "\u4E0A\u4F20\u6587\u4EF6"))), extraTipText && /*#__PURE__*/React.createElement("div", {
|
|
377
|
+
className: "upload-tip-txt"
|
|
378
|
+
}, extraTipText));
|
|
379
|
+
};
|
|
380
|
+
/* 身份证 */
|
|
381
|
+
var SFZRender = function SFZRender() {
|
|
382
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
383
|
+
className: "pro-upload-button"
|
|
384
|
+
}, /*#__PURE__*/React.createElement(_Upload, _objectSpread({}, buttonUploadProps), /*#__PURE__*/React.createElement("div", {
|
|
385
|
+
className: "pro-upload-button-inner"
|
|
386
|
+
}, /*#__PURE__*/React.createElement(_Button, _objectSpread({}, buttonProps), /*#__PURE__*/React.createElement(CloudUploadOutlined, null), "\u4E0A\u4F20\u6587\u4EF6"))), extraTipText && /*#__PURE__*/React.createElement("div", {
|
|
387
|
+
className: "upload-tip-txt"
|
|
388
|
+
}, extraTipText));
|
|
389
|
+
};
|
|
390
|
+
var upload = {
|
|
391
|
+
drag: DragRender,
|
|
392
|
+
button: ButtonRender,
|
|
393
|
+
image: ImageRender,
|
|
394
|
+
license: LicenseRender,
|
|
395
|
+
sfz: SFZRender
|
|
396
|
+
}[uploadType];
|
|
397
|
+
useEffect(function () {
|
|
398
|
+
setFileList(value || []);
|
|
399
|
+
}, [value]);
|
|
400
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
401
|
+
className: "pro-upload ".concat(className !== null && className !== void 0 ? className : '')
|
|
402
|
+
}, upload());
|
|
403
|
+
};
|
|
404
|
+
export default ProUpload;
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { UploadFile } from 'antd/es/upload/interface';
|
|
3
|
+
export type UploadType = 'drag' | 'button' | 'image' | 'license' | 'sfz';
|
|
4
|
+
export interface UploadFileRes {
|
|
5
|
+
url: string;
|
|
6
|
+
[key: string]: any;
|
|
7
|
+
}
|
|
8
|
+
export interface ProUploadProps {
|
|
9
|
+
/**
|
|
10
|
+
* @description 拖拽框顶部的内容
|
|
11
|
+
* @default -
|
|
12
|
+
*/
|
|
13
|
+
headerRender?: () => React.ReactNode;
|
|
14
|
+
/**
|
|
15
|
+
* @description 拖拽框底部内容
|
|
16
|
+
* @default -
|
|
17
|
+
*/
|
|
18
|
+
footerRender?: () => React.ReactNode;
|
|
19
|
+
/**
|
|
20
|
+
* @description 是否显示示例弹窗
|
|
21
|
+
* @default false
|
|
22
|
+
*/
|
|
23
|
+
showExampleContent?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* @description 示例弹窗的内容
|
|
26
|
+
* @default -
|
|
27
|
+
*/
|
|
28
|
+
exampleContent?: React.ReactNode;
|
|
29
|
+
/**
|
|
30
|
+
* @description 接受上传的文件类型, '.png,.jpeg,.jpg,.xlsx,.xls,.json,.doc,.docx' 详见 input accept Attribute
|
|
31
|
+
* @default -
|
|
32
|
+
*/
|
|
33
|
+
accept?: string;
|
|
34
|
+
/**
|
|
35
|
+
* @description 控制文件的上传大小,单位MB
|
|
36
|
+
* @default 10
|
|
37
|
+
*/
|
|
38
|
+
size?: number;
|
|
39
|
+
/**
|
|
40
|
+
* @description 上传请求的地址
|
|
41
|
+
* @default -
|
|
42
|
+
*/
|
|
43
|
+
action?: string;
|
|
44
|
+
/**
|
|
45
|
+
* @description 组件的ui类型 drag 拖拽 button 上传按钮 image 类型
|
|
46
|
+
* @default drag
|
|
47
|
+
*/
|
|
48
|
+
uploadType: UploadType;
|
|
49
|
+
/**
|
|
50
|
+
* @description 上传格式提示文案
|
|
51
|
+
* @default -
|
|
52
|
+
*/
|
|
53
|
+
extraTipText?: string | (() => React.ReactNode);
|
|
54
|
+
/**
|
|
55
|
+
* @description 组件类型为button时可用, 参考 [antd button的api](https://ant-design.gitee.io/components/button-cn#api)
|
|
56
|
+
* @default -
|
|
57
|
+
*/
|
|
58
|
+
buttonProps?: Object;
|
|
59
|
+
/**
|
|
60
|
+
* @description 上传所需额外参数或返回上传额外参数的方法
|
|
61
|
+
* @default -
|
|
62
|
+
*/
|
|
63
|
+
dataParams?: Object;
|
|
64
|
+
/**
|
|
65
|
+
* @description 用来设置控件的默认已经上传的文件列表
|
|
66
|
+
* @default -
|
|
67
|
+
*/
|
|
68
|
+
defaultValue?: UploadFile[];
|
|
69
|
+
/**
|
|
70
|
+
* @description 用来设置控件的已经上传的文件列表
|
|
71
|
+
* @default -
|
|
72
|
+
*/
|
|
73
|
+
value?: UploadFile[];
|
|
74
|
+
/**
|
|
75
|
+
* @description 是否禁用
|
|
76
|
+
* @default false
|
|
77
|
+
*/
|
|
78
|
+
disabled?: boolean;
|
|
79
|
+
/**
|
|
80
|
+
* @description 设置上传的请求头部,IE10 以上有效
|
|
81
|
+
* @default -
|
|
82
|
+
*/
|
|
83
|
+
headers?: {
|
|
84
|
+
[key: string]: any;
|
|
85
|
+
};
|
|
86
|
+
/**
|
|
87
|
+
* @description 限制上传数量。当为 1 时,始终用最新上传的文件代替当前文件
|
|
88
|
+
* @default 1
|
|
89
|
+
*/
|
|
90
|
+
maxCount?: number;
|
|
91
|
+
/**
|
|
92
|
+
* @description 上传请求的 http method
|
|
93
|
+
* @default "post"
|
|
94
|
+
*/
|
|
95
|
+
method?: 'post' | 'POST' | 'PUT' | 'PATCH' | 'put' | 'patch';
|
|
96
|
+
/**
|
|
97
|
+
* @description 发到后台的文件参数名
|
|
98
|
+
* @default -
|
|
99
|
+
*/
|
|
100
|
+
name: string;
|
|
101
|
+
/**
|
|
102
|
+
* @description 上传文件之前的钩子,参数为上传的文件,若返回 false 则停止上传。支持返回一个 Promise 对象,Promise 对象 reject 时则停止上传,resolve 时开始上传( resolve 传入 File 或 Blob 对象则上传 resolve 传入对象);也可以返回 Upload.LIST_IGNORE,此时列表中将不展示此文件。 注意:IE9 不支持该方法
|
|
103
|
+
* @default -
|
|
104
|
+
*/
|
|
105
|
+
beforeUpload?: (file: any, fileList: any) => boolean | Promise<File>;
|
|
106
|
+
/**
|
|
107
|
+
* @description 上传文件改变时的回调,详见 onChange
|
|
108
|
+
* @default -
|
|
109
|
+
*/
|
|
110
|
+
onChange?: (value: Array<UploadFile>) => void;
|
|
111
|
+
/**
|
|
112
|
+
* @description 点击下载文件时的回调,如果没有指定,则默认跳转到文件 url 对应的标签页
|
|
113
|
+
* @default -
|
|
114
|
+
*/
|
|
115
|
+
onDownload?: (arg0: File) => void;
|
|
116
|
+
/**
|
|
117
|
+
* @description 点击文件链接或预览图标时的回调
|
|
118
|
+
* @default -
|
|
119
|
+
*/
|
|
120
|
+
onPreview?: (arg0: File) => any;
|
|
121
|
+
/**
|
|
122
|
+
* @description 点击移除文件时的回调,返回值为 false 时不移除。支持返回一个 Promise 对象,Promise 对象 resolve(false) 或 reject 时不移除
|
|
123
|
+
* @default -
|
|
124
|
+
*/
|
|
125
|
+
onRemove?: (arg0: File) => boolean | Promise<any>;
|
|
126
|
+
/**
|
|
127
|
+
* @description 样式类名
|
|
128
|
+
* @default -
|
|
129
|
+
*/
|
|
130
|
+
className?: string;
|
|
131
|
+
transformResponse?: (res: any) => UploadFileRes;
|
|
132
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1678851089478" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="9199" xmlns:xlink="http://www.w3.org/1999/xlink" width="18" height="18"><path d="M662.08 121.472v64h-300.16v-64zM868.48 280.96v64H155.52v-64z" p-id="9200" fill="currentColor"></path><path d="M280.512 303.232l-0.064 530.816h460.096V303.232h64v594.88H216.512V303.232z" p-id="9201" fill="currentColor"></path><path d="M431.424 440.704v337.728h-64V440.704zM656.576 440.704v337.728h-64V440.704z" p-id="9202" fill="currentColor"></path></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1678851079035" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="9058" xmlns:xlink="http://www.w3.org/1999/xlink" width="16" height="16" fill="currentColor" ><path d="M756.736 454.848l46.08 44.416L512 801.024 221.184 499.2l46.08-44.416L512 708.736z" p-id="9059"></path><path d="M544 155.456v575.872h-64V155.456zM868.544 813.568v64H155.52v-64z" p-id="9060"></path></svg>
|