@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,158 @@
|
|
|
1
|
+
.filelist-item-wrapper {
|
|
2
|
+
// width: 392px;
|
|
3
|
+
.file-info-box {
|
|
4
|
+
display: flex;
|
|
5
|
+
align-items: center;
|
|
6
|
+
width: 100%;
|
|
7
|
+
height: 30px;
|
|
8
|
+
margin-top: 8px;
|
|
9
|
+
color: #343434;
|
|
10
|
+
font-weight: 400;
|
|
11
|
+
font-size: 12px;
|
|
12
|
+
font-family: PingFangSC-Regular, PingFang SC;
|
|
13
|
+
line-height: 17px;
|
|
14
|
+
&:hover {
|
|
15
|
+
background: #F8F9FA;
|
|
16
|
+
border-radius: 4px;
|
|
17
|
+
}
|
|
18
|
+
&:hover,&.file-box-error {
|
|
19
|
+
.file-actions-wrap {
|
|
20
|
+
.file-actions{
|
|
21
|
+
display: flex;
|
|
22
|
+
|
|
23
|
+
.file-action-item{
|
|
24
|
+
color: #FF005F;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.file-type-icon {
|
|
32
|
+
display: block;
|
|
33
|
+
width: 18px;
|
|
34
|
+
height: 23px;
|
|
35
|
+
margin-left: 6px;
|
|
36
|
+
overflow: hidden;
|
|
37
|
+
position: absolute;
|
|
38
|
+
}
|
|
39
|
+
.file-name {
|
|
40
|
+
display: -webkit-box;
|
|
41
|
+
padding-left: 32px;
|
|
42
|
+
overflow: hidden;
|
|
43
|
+
-webkit-line-clamp: 1;
|
|
44
|
+
-webkit-box-orient: vertical;
|
|
45
|
+
}
|
|
46
|
+
.file-name.file-name-pf0 {
|
|
47
|
+
padding-left: 0;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.file-percent {
|
|
51
|
+
margin-left: 8px;
|
|
52
|
+
color: #939599;
|
|
53
|
+
font-weight: 400;
|
|
54
|
+
font-size: 12px;
|
|
55
|
+
font-family: PingFangSC-Regular, PingFang SC;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
&.file-box-error {
|
|
59
|
+
color: #FF005F;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.file-actions-wrap {
|
|
63
|
+
width: 100px;
|
|
64
|
+
margin-left: auto;
|
|
65
|
+
.file-actions {
|
|
66
|
+
display: none;
|
|
67
|
+
justify-content: right;
|
|
68
|
+
|
|
69
|
+
transition: all 1s;
|
|
70
|
+
|
|
71
|
+
.file-action-item {
|
|
72
|
+
margin-left: 8px;
|
|
73
|
+
padding: 0;
|
|
74
|
+
cursor: pointer;
|
|
75
|
+
color: var(--zaui-brand);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
.drag-Single-item-wrapper {
|
|
84
|
+
.file-info-box {
|
|
85
|
+
display: flex;
|
|
86
|
+
align-items: center;
|
|
87
|
+
width: 100%;
|
|
88
|
+
height: 30px;
|
|
89
|
+
margin-top: 8px;
|
|
90
|
+
color: #343434;
|
|
91
|
+
font-weight: 400;
|
|
92
|
+
font-size: 12px;
|
|
93
|
+
font-family: PingFangSC-Regular, PingFang SC;
|
|
94
|
+
line-height: 17px;
|
|
95
|
+
justify-content: center;
|
|
96
|
+
&:hover {
|
|
97
|
+
background: #F8F9FA;
|
|
98
|
+
border-radius: 4px;
|
|
99
|
+
}
|
|
100
|
+
&:hover,&.file-box-error {
|
|
101
|
+
.file-actions-wrap {
|
|
102
|
+
.file-actions{
|
|
103
|
+
display: flex;
|
|
104
|
+
|
|
105
|
+
// .file-action-item{
|
|
106
|
+
// color: #FF005F;
|
|
107
|
+
// }
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.file-type-icon {
|
|
114
|
+
display: block;
|
|
115
|
+
width: 18px;
|
|
116
|
+
height: 23px;
|
|
117
|
+
margin-left: 6px;
|
|
118
|
+
overflow: hidden;
|
|
119
|
+
position: absolute;
|
|
120
|
+
}
|
|
121
|
+
.file-name {
|
|
122
|
+
display: -webkit-box;
|
|
123
|
+
padding-left: 32px;
|
|
124
|
+
overflow: hidden;
|
|
125
|
+
-webkit-line-clamp: 1;
|
|
126
|
+
-webkit-box-orient: vertical;
|
|
127
|
+
}
|
|
128
|
+
.file-name.file-name-pf0 {
|
|
129
|
+
padding-left: 0;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.file-percent {
|
|
133
|
+
margin-left: 8px;
|
|
134
|
+
color: #939599;
|
|
135
|
+
font-weight: 400;
|
|
136
|
+
font-size: 12px;
|
|
137
|
+
font-family: PingFangSC-Regular, PingFang SC;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
&.file-box-error {
|
|
141
|
+
color: #FF005F;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.file-actions-wrap {
|
|
145
|
+
margin-left: 10px;
|
|
146
|
+
.file-actions {
|
|
147
|
+
justify-content: right;
|
|
148
|
+
transition: all 1s;
|
|
149
|
+
.file-action-item {
|
|
150
|
+
margin-left: 8px;
|
|
151
|
+
padding: 0;
|
|
152
|
+
cursor: pointer;
|
|
153
|
+
color: var(--zaui-brand);
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
.pro-upload {
|
|
2
|
+
// 拖拽上传
|
|
3
|
+
.pro-upload-dragger {
|
|
4
|
+
.pro-upload-handle-box {
|
|
5
|
+
background: #F8F9FA;
|
|
6
|
+
border-radius: 4px;
|
|
7
|
+
padding: 8px;
|
|
8
|
+
.ant-upload.ant-upload-drag {
|
|
9
|
+
background-color: #fff;
|
|
10
|
+
}
|
|
11
|
+
.drag-upload-inner {
|
|
12
|
+
min-width: 392px;
|
|
13
|
+
height: 110px;
|
|
14
|
+
display: flex;
|
|
15
|
+
align-items: center;
|
|
16
|
+
justify-content: center;
|
|
17
|
+
.upload-dragger-control {
|
|
18
|
+
background-color: #fff;
|
|
19
|
+
.dragger-txt-line1{
|
|
20
|
+
display: flex;
|
|
21
|
+
line-height: 26px;
|
|
22
|
+
align-items: center;
|
|
23
|
+
|
|
24
|
+
.icon-upload {
|
|
25
|
+
display: inline-block;
|
|
26
|
+
// width: 34px;
|
|
27
|
+
// height: 26px;
|
|
28
|
+
font-size: 30px;
|
|
29
|
+
color: #C5C7CD;
|
|
30
|
+
// background: #c5c7cd;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.dragger-txt {
|
|
34
|
+
margin-left: 9px;
|
|
35
|
+
font-size: 14px;
|
|
36
|
+
font-family: PingFangSC-Regular, PingFang SC;
|
|
37
|
+
font-weight: 400;
|
|
38
|
+
color: rgba(0,0,0,0.85);
|
|
39
|
+
line-height: 20px;
|
|
40
|
+
}
|
|
41
|
+
.click-txt {
|
|
42
|
+
color: #006AFF;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.file-ext {
|
|
47
|
+
text-align: center;
|
|
48
|
+
margin-top: 10px;
|
|
49
|
+
font-size: 10px;
|
|
50
|
+
font-family: PingFangSC-Regular, PingFang SC;
|
|
51
|
+
font-weight: 400;
|
|
52
|
+
color: #939599;
|
|
53
|
+
line-height: 14px;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
// 单个文件展示样式
|
|
58
|
+
.dragger-single-file {
|
|
59
|
+
display: flex;
|
|
60
|
+
|
|
61
|
+
justify-content: center;
|
|
62
|
+
flex-direction: column;
|
|
63
|
+
padding: 0 32px;
|
|
64
|
+
.file-type-icon {
|
|
65
|
+
width: 18px;
|
|
66
|
+
height: 22px;
|
|
67
|
+
margin: 0 auto;
|
|
68
|
+
}
|
|
69
|
+
.file-item-wrapper {
|
|
70
|
+
padding: 0 30px;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
.file-info-box {
|
|
75
|
+
margin-top: 11px;
|
|
76
|
+
display: flex;
|
|
77
|
+
|
|
78
|
+
&.file-box-error {
|
|
79
|
+
color: red;
|
|
80
|
+
}
|
|
81
|
+
.file-name {
|
|
82
|
+
display: -webkit-box;
|
|
83
|
+
overflow: hidden;
|
|
84
|
+
-webkit-line-clamp: 1;
|
|
85
|
+
-webkit-box-orient: vertical;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
.file-download {
|
|
90
|
+
margin-left: 8px;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.file-action-box{
|
|
95
|
+
display: flex;
|
|
96
|
+
justify-content: center;
|
|
97
|
+
margin-top: 3px;
|
|
98
|
+
.file-del {
|
|
99
|
+
margin-left: 30px
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.pro-upload-file-list{
|
|
108
|
+
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
// 按钮上传
|
|
113
|
+
.pro-upload-button {
|
|
114
|
+
display: flex;
|
|
115
|
+
>span{
|
|
116
|
+
width: 100%;
|
|
117
|
+
display: block;
|
|
118
|
+
}
|
|
119
|
+
.upload-tip-txt{
|
|
120
|
+
margin-left: 10px;
|
|
121
|
+
line-height: 32px;
|
|
122
|
+
font-size: 10px;
|
|
123
|
+
font-family: PingFangSC-Regular, PingFang SC;
|
|
124
|
+
font-weight: 400;
|
|
125
|
+
color: #939599;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
// 图片
|
|
131
|
+
|
|
132
|
+
.pro-upload-image {
|
|
133
|
+
|
|
134
|
+
position: relative;
|
|
135
|
+
|
|
136
|
+
.ant-upload-list-picture-card-container,.ant-upload-select-picture-card {
|
|
137
|
+
width: 126px;
|
|
138
|
+
height: 126px;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.image-example {
|
|
142
|
+
position: absolute;
|
|
143
|
+
word-break: keep-all;
|
|
144
|
+
top: 0;
|
|
145
|
+
right: -10px;
|
|
146
|
+
width: 88px;
|
|
147
|
+
height: 32px;
|
|
148
|
+
transform: translate(100%, 0);
|
|
149
|
+
text-align: center;
|
|
150
|
+
line-height: 32px;
|
|
151
|
+
background: #FFFFFF;
|
|
152
|
+
border-radius: 4px;
|
|
153
|
+
border: 1px solid #DCDCDC;
|
|
154
|
+
.exam-con {
|
|
155
|
+
width: 100%;
|
|
156
|
+
max-height: 600px;
|
|
157
|
+
overflow-y: auto;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.file-item-image {
|
|
162
|
+
position: relative;
|
|
163
|
+
overflow: hidden;
|
|
164
|
+
height: 100%;
|
|
165
|
+
border: 1px dashed #d9d9d9;
|
|
166
|
+
overflow: hidden;
|
|
167
|
+
border-radius: 8px;
|
|
168
|
+
|
|
169
|
+
.image-con {
|
|
170
|
+
display: block;
|
|
171
|
+
width: 100%;
|
|
172
|
+
height: 100%;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
&:hover .actions-wrap{
|
|
176
|
+
display: block;
|
|
177
|
+
background-color: rgba(0,0,0,0.75);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.actions-wrap {
|
|
181
|
+
transition: all 2s;
|
|
182
|
+
position: absolute;
|
|
183
|
+
display: none;
|
|
184
|
+
width: 100%;
|
|
185
|
+
top: 0;
|
|
186
|
+
bottom: 0;
|
|
187
|
+
background-color: rgba(0,0,0,0.5);
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
.action-top{
|
|
192
|
+
flex: 1;
|
|
193
|
+
display: flex;
|
|
194
|
+
align-items: center;
|
|
195
|
+
flex-direction: column;
|
|
196
|
+
height: calc(100% - 36px);
|
|
197
|
+
justify-content: center;
|
|
198
|
+
}
|
|
199
|
+
.action-button{
|
|
200
|
+
height: 36px;
|
|
201
|
+
line-height: 36px;
|
|
202
|
+
background: #FFFFFF;
|
|
203
|
+
text-align:center;
|
|
204
|
+
}
|
|
205
|
+
.action-item {
|
|
206
|
+
color: #fff;
|
|
207
|
+
font-size: 12px;
|
|
208
|
+
opacity: 0.8;
|
|
209
|
+
// cursor: pointer;
|
|
210
|
+
.action-icon {
|
|
211
|
+
margin-right: 10px;
|
|
212
|
+
transform: translate(0, 3px);
|
|
213
|
+
}
|
|
214
|
+
&:hover{
|
|
215
|
+
opacity: 1;
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
// .action-top {
|
|
219
|
+
// .action-item:last-child {
|
|
220
|
+
// margin-top: 17px;
|
|
221
|
+
// }
|
|
222
|
+
// }
|
|
223
|
+
.action-button {
|
|
224
|
+
.action-item {
|
|
225
|
+
color: #FF005F;
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
.file-item-image.actions-wrap-error {
|
|
231
|
+
border: 1px solid #FF005F;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
.image-uploading {
|
|
235
|
+
padding: 20px;
|
|
236
|
+
display: flex;
|
|
237
|
+
align-items: center;
|
|
238
|
+
height: inherit;
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
}
|
|
@@ -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="1678850531044" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8854" id="mx_n_1678850531045" width="16" height="16" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M461.4144 0a461.4144 461.4144 0 0 1 360.0384 749.841067l5.7344 4.9152 131.754667 131.754666a51.2 51.2 0 0 1-66.628267 77.4144l-5.7344-4.9152-131.822933-131.822933-4.9152-5.7344A461.4144 461.4144 0 1 1 461.346133 0z m0 102.4a359.0144 359.0144 0 1 0 0 717.960533 359.0144 359.0144 0 0 0 0-717.960533z m0 135.645867a51.2 51.2 0 0 1 51.2 51.2L512.546133 414.378667h125.3376a51.2 51.2 0 0 1 6.894934 101.9904l-6.894934 0.477866-125.3376-0.068266v133.9392l-0.4096 6.9632a51.2 51.2 0 0 1-101.922133-6.9632l-0.068267-133.9392H284.945067a51.2 51.2 0 0 1-6.9632-101.853867l6.9632-0.477867 125.201066-0.068266V289.245867l0.477867-6.9632a51.2 51.2 0 0 1 50.7904-44.2368z" p-id="8855" width="16" height="16" fill="currentColor" ></path></svg>
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.valueTypeRender = void 0;
|
|
7
|
+
var _utils = require("@zat-design-pro-component/utils");
|
|
8
|
+
var calc = _utils.tools.calc;
|
|
9
|
+
var valueTypeRender = {
|
|
10
|
+
percentage: function percentage(val, precision) {
|
|
11
|
+
var _calc;
|
|
12
|
+
return (_calc = calc(val !== null && val !== void 0 ? val : 0, '*', 100)) === null || _calc === void 0 ? void 0 : _calc.toFixed(precision);
|
|
13
|
+
},
|
|
14
|
+
permillage: function permillage(val, precision) {
|
|
15
|
+
var _calc2;
|
|
16
|
+
return (_calc2 = calc(val !== null && val !== void 0 ? val : 0, '*', 1000)) === null || _calc2 === void 0 ? void 0 : _calc2.toFixed(precision);
|
|
17
|
+
},
|
|
18
|
+
thousandth: function thousandth(val, precision) {
|
|
19
|
+
return Number(val).toLocaleString('en-us', {
|
|
20
|
+
minimumFractionDigits: precision,
|
|
21
|
+
maximumFractionDigits: precision
|
|
22
|
+
});
|
|
23
|
+
},
|
|
24
|
+
thousandthCNY: function thousandthCNY(val, precision) {
|
|
25
|
+
return "CNY ".concat(Number(val).toLocaleString('en-us', {
|
|
26
|
+
minimumFractionDigits: precision,
|
|
27
|
+
maximumFractionDigits: precision
|
|
28
|
+
}));
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
exports.valueTypeRender = valueTypeRender;
|
|
@@ -0,0 +1,214 @@
|
|
|
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 = void 0;
|
|
9
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
10
|
+
var _regeneratorRuntime2 = _interopRequireDefault(require("@babel/runtime/helpers/regeneratorRuntime"));
|
|
11
|
+
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
12
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
13
|
+
var _ahooks = require("ahooks");
|
|
14
|
+
var _antd = require("antd");
|
|
15
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
16
|
+
/* eslint-disable jsx-a11y/iframe-has-title */
|
|
17
|
+
|
|
18
|
+
// 用于解析word | excel
|
|
19
|
+
var officeApp = 'https://view.officeapps.live.com/op/view.aspx?src=';
|
|
20
|
+
// 文件MIME类型
|
|
21
|
+
var MIMEType = {
|
|
22
|
+
img: 'image/png',
|
|
23
|
+
pdf: 'application/pdf',
|
|
24
|
+
word: 'application/msword',
|
|
25
|
+
excel: 'application/vnd.ms-excel'
|
|
26
|
+
};
|
|
27
|
+
var ProViewer = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
|
|
28
|
+
var disabled = _ref.disabled,
|
|
29
|
+
mode = _ref.mode,
|
|
30
|
+
fileType = _ref.fileType,
|
|
31
|
+
modalProps = _ref.modalProps,
|
|
32
|
+
src = _ref.src,
|
|
33
|
+
onClick = _ref.onClick,
|
|
34
|
+
previewFile = _ref.previewFile,
|
|
35
|
+
previewData = _ref.previewData,
|
|
36
|
+
children = _ref.children,
|
|
37
|
+
buttonProps = _ref.buttonProps;
|
|
38
|
+
var ProViewerRef = (0, _react.useRef)(null);
|
|
39
|
+
var _useSetState = (0, _ahooks.useSetState)({
|
|
40
|
+
imgVisible: false,
|
|
41
|
+
modalVisible: false,
|
|
42
|
+
url: src || ''
|
|
43
|
+
}),
|
|
44
|
+
_useSetState2 = (0, _slicedToArray2.default)(_useSetState, 2),
|
|
45
|
+
state = _useSetState2[0],
|
|
46
|
+
setState = _useSetState2[1];
|
|
47
|
+
var imgVisible = state.imgVisible,
|
|
48
|
+
modalVisible = state.modalVisible,
|
|
49
|
+
url = state.url;
|
|
50
|
+
_react.default.useImperativeHandle(ref, function () {
|
|
51
|
+
return {
|
|
52
|
+
current: ProViewerRef.current
|
|
53
|
+
};
|
|
54
|
+
});
|
|
55
|
+
/**
|
|
56
|
+
* 跳转页面
|
|
57
|
+
*/
|
|
58
|
+
var jumpPage = function jumpPage(_ref2) {
|
|
59
|
+
var src = _ref2.src,
|
|
60
|
+
blob = _ref2.blob;
|
|
61
|
+
var jumpSrc = src;
|
|
62
|
+
if (blob instanceof Blob) {
|
|
63
|
+
jumpSrc = window.URL.createObjectURL(blob);
|
|
64
|
+
}
|
|
65
|
+
var doc = document;
|
|
66
|
+
var ele = doc.createElement('a');
|
|
67
|
+
doc.body.appendChild(ele);
|
|
68
|
+
ele.style.display = 'none';
|
|
69
|
+
ele.href = jumpSrc || '';
|
|
70
|
+
ele.target = '_blank';
|
|
71
|
+
ele.click();
|
|
72
|
+
doc.body.removeChild(ele);
|
|
73
|
+
};
|
|
74
|
+
var getSrc = function getSrc(src) {
|
|
75
|
+
if (['word', 'excel'].includes(fileType || 'pdf')) {
|
|
76
|
+
return "".concat(officeApp).concat(src);
|
|
77
|
+
}
|
|
78
|
+
return src;
|
|
79
|
+
};
|
|
80
|
+
var previewHandle = function previewHandle() {
|
|
81
|
+
if (mode === 'modal' && url) {
|
|
82
|
+
switch (fileType) {
|
|
83
|
+
case 'img':
|
|
84
|
+
setState({
|
|
85
|
+
imgVisible: true
|
|
86
|
+
});
|
|
87
|
+
break;
|
|
88
|
+
case 'pdf':
|
|
89
|
+
case 'word':
|
|
90
|
+
case 'excel':
|
|
91
|
+
setState({
|
|
92
|
+
modalVisible: true
|
|
93
|
+
});
|
|
94
|
+
break;
|
|
95
|
+
default:
|
|
96
|
+
setState({
|
|
97
|
+
modalVisible: true
|
|
98
|
+
});
|
|
99
|
+
break;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
if (mode === 'page' && url) {
|
|
103
|
+
jumpPage({
|
|
104
|
+
src: getSrc(url)
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
onClick && onClick();
|
|
108
|
+
};
|
|
109
|
+
// 调用接口获取二进制流转blob处理
|
|
110
|
+
(0, _react.useEffect)(function () {
|
|
111
|
+
if (previewFile) {
|
|
112
|
+
try {
|
|
113
|
+
previewFile().then( /*#__PURE__*/function () {
|
|
114
|
+
var _ref3 = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee(response) {
|
|
115
|
+
var res, blob, blobUrl;
|
|
116
|
+
return (0, _regeneratorRuntime2.default)().wrap(function _callee$(_context) {
|
|
117
|
+
while (1) switch (_context.prev = _context.next) {
|
|
118
|
+
case 0:
|
|
119
|
+
_context.next = 2;
|
|
120
|
+
return response.blob();
|
|
121
|
+
case 2:
|
|
122
|
+
res = _context.sent;
|
|
123
|
+
blob = new Blob([res], {
|
|
124
|
+
type: MIMEType[fileType || 'pdf']
|
|
125
|
+
});
|
|
126
|
+
blobUrl = window.URL.createObjectURL(blob);
|
|
127
|
+
setState({
|
|
128
|
+
url: blobUrl
|
|
129
|
+
});
|
|
130
|
+
case 6:
|
|
131
|
+
case "end":
|
|
132
|
+
return _context.stop();
|
|
133
|
+
}
|
|
134
|
+
}, _callee);
|
|
135
|
+
}));
|
|
136
|
+
return function (_x) {
|
|
137
|
+
return _ref3.apply(this, arguments);
|
|
138
|
+
};
|
|
139
|
+
}());
|
|
140
|
+
} catch (error) {
|
|
141
|
+
console.warn(error);
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}, [previewFile]);
|
|
145
|
+
// 二进制流转blob处理
|
|
146
|
+
(0, _react.useEffect)(function () {
|
|
147
|
+
if (previewData) {
|
|
148
|
+
try {
|
|
149
|
+
previewData.blob().then(function (res) {
|
|
150
|
+
var blob = new Blob([res], {
|
|
151
|
+
type: MIMEType[fileType || 'pdf']
|
|
152
|
+
});
|
|
153
|
+
var blobUrl = window.URL.createObjectURL(blob);
|
|
154
|
+
setState({
|
|
155
|
+
url: blobUrl
|
|
156
|
+
});
|
|
157
|
+
});
|
|
158
|
+
} catch (error) {
|
|
159
|
+
console.warn(error);
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
}, [previewData]);
|
|
163
|
+
return /*#__PURE__*/_react.default.createElement("span", {
|
|
164
|
+
className: "pro-viewer"
|
|
165
|
+
}, /*#__PURE__*/_react.default.createElement(_antd.Button, (0, _objectSpread2.default)({
|
|
166
|
+
disabled: disabled || !url && !previewFile,
|
|
167
|
+
ref: ProViewerRef,
|
|
168
|
+
onClick: previewHandle
|
|
169
|
+
}, buttonProps), children), mode && fileType === 'img' && /*#__PURE__*/_react.default.createElement(_antd.Image, {
|
|
170
|
+
src: url,
|
|
171
|
+
preview: {
|
|
172
|
+
visible: imgVisible,
|
|
173
|
+
onVisibleChange: function onVisibleChange(value) {
|
|
174
|
+
setState({
|
|
175
|
+
imgVisible: value
|
|
176
|
+
});
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
}), /*#__PURE__*/_react.default.createElement(_antd.Modal, (0, _objectSpread2.default)({
|
|
180
|
+
onCancel: function onCancel() {
|
|
181
|
+
setState({
|
|
182
|
+
modalVisible: false
|
|
183
|
+
});
|
|
184
|
+
},
|
|
185
|
+
visible: modalVisible
|
|
186
|
+
}, modalProps), url && /*#__PURE__*/_react.default.createElement("iframe", {
|
|
187
|
+
title: "pro-viewer",
|
|
188
|
+
src: getSrc(url),
|
|
189
|
+
height: modalProps === null || modalProps === void 0 ? void 0 : modalProps.height,
|
|
190
|
+
width: "100%",
|
|
191
|
+
frameBorder: "0",
|
|
192
|
+
scrolling: "auto"
|
|
193
|
+
})));
|
|
194
|
+
});
|
|
195
|
+
ProViewer.defaultProps = {
|
|
196
|
+
modalProps: {
|
|
197
|
+
width: '1200px',
|
|
198
|
+
height: '650px',
|
|
199
|
+
centered: true,
|
|
200
|
+
title: '预览',
|
|
201
|
+
footer: null,
|
|
202
|
+
bodyStyle: {
|
|
203
|
+
padding: 0
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
buttonProps: {
|
|
207
|
+
type: 'link'
|
|
208
|
+
},
|
|
209
|
+
mode: 'page',
|
|
210
|
+
fileType: 'pdf',
|
|
211
|
+
disabled: false
|
|
212
|
+
};
|
|
213
|
+
var _default = ProViewer;
|
|
214
|
+
exports.default = _default;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { ButtonProps, ModalProps } from 'antd';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export type ProViewerModePropsType = 'modal' | 'page';
|
|
4
|
+
export type ProViewerFilePropsType = 'pdf' | 'img' | 'word' | 'excel';
|
|
5
|
+
export type PreviewFileHandlerPropsType = () => PromiseLike<any>;
|
|
6
|
+
export type BufferSource = ArrayBufferView | ArrayBuffer;
|
|
7
|
+
export type BlobPart = string | Blob | BufferSource;
|
|
8
|
+
declare module 'antd' {
|
|
9
|
+
interface ModalProps {
|
|
10
|
+
height?: string;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
export interface JumpPagePropsType {
|
|
14
|
+
blob?: Blob;
|
|
15
|
+
src?: string;
|
|
16
|
+
}
|
|
17
|
+
export interface StatePropsType {
|
|
18
|
+
imgVisible?: boolean;
|
|
19
|
+
modalVisible?: boolean;
|
|
20
|
+
url: string;
|
|
21
|
+
}
|
|
22
|
+
export interface ProViewerPropsType {
|
|
23
|
+
disabled?: boolean;
|
|
24
|
+
mode: ProViewerModePropsType | string;
|
|
25
|
+
fileType?: ProViewerFilePropsType;
|
|
26
|
+
src?: string;
|
|
27
|
+
onClick?: () => void;
|
|
28
|
+
icon?: React.ReactNode;
|
|
29
|
+
modalProps?: ModalProps;
|
|
30
|
+
buttonProps?: Omit<ButtonProps, 'onClick'>;
|
|
31
|
+
previewFile?: PreviewFileHandlerPropsType;
|
|
32
|
+
previewData?: any;
|
|
33
|
+
children?: any;
|
|
34
|
+
[key: string]: any;
|
|
35
|
+
}
|