@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,316 @@
|
|
|
1
|
+
import _typeof from "@babel/runtime/helpers/esm/typeof";
|
|
2
|
+
import "antd/es/button/style";
|
|
3
|
+
import _Button from "antd/es/button";
|
|
4
|
+
import "antd/es/table/style";
|
|
5
|
+
import _Table from "antd/es/table";
|
|
6
|
+
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
7
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
8
|
+
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
9
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
10
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
11
|
+
var _excluded = ["tableId", "headerRender", "footerRender", "quickConfig", "stripe", "columns", "className", "summary"],
|
|
12
|
+
_excluded2 = ["resizeColumn", "columnConfig", "cacheTime", "storage"];
|
|
13
|
+
import { cloneDeep } from 'lodash';
|
|
14
|
+
import { useDebounceEffect, useDeepCompareEffect } from 'ahooks';
|
|
15
|
+
import React, { useEffect, useMemo, useState, createContext } from 'react';
|
|
16
|
+
import { ReactSVG } from 'react-svg';
|
|
17
|
+
import classnames from 'classnames';
|
|
18
|
+
import { useProConfig, ProTransferModal } from 'zat-design-pro-component';
|
|
19
|
+
import { tools } from '@zat-design-pro-component/utils';
|
|
20
|
+
import { valueTypeRender } from '@/ProUtils/utils';
|
|
21
|
+
import { TableResizable, ResizableLine } from './components';
|
|
22
|
+
import useAntdTable from './useAntdTable';
|
|
23
|
+
import empty from '../assets/empty.png';
|
|
24
|
+
import resetSvg from '../assets/reset.svg';
|
|
25
|
+
import customColumnSvg from '../assets/customColumn.svg';
|
|
26
|
+
import { formatColumn, getColumnDataIndex } from './utils';
|
|
27
|
+
var defaultCacheTime = 1; // columns 配置保存时间为一天
|
|
28
|
+
// 全局上下文
|
|
29
|
+
export var TableContext = /*#__PURE__*/createContext({});
|
|
30
|
+
export var defaultPage = {
|
|
31
|
+
pageNum: 1,
|
|
32
|
+
pageSize: 10
|
|
33
|
+
};
|
|
34
|
+
function ProTable(props) {
|
|
35
|
+
var _curTableConfig$pathK;
|
|
36
|
+
var _ref = useProConfig('globalConfig') || {},
|
|
37
|
+
configStorage = _ref.storage; // 获取全局缓存位置配置
|
|
38
|
+
var _ref2 = useProConfig('ProTable') || {},
|
|
39
|
+
configResizeColumn = _ref2.resizeColumn,
|
|
40
|
+
configTColumnConfig = _ref2.columnConfig,
|
|
41
|
+
configCacheTime = _ref2.cacheTime;
|
|
42
|
+
var tableId = props.tableId,
|
|
43
|
+
headerRender = props.headerRender,
|
|
44
|
+
footerRender = props.footerRender,
|
|
45
|
+
quickConfig = props.quickConfig,
|
|
46
|
+
stripe = props.stripe,
|
|
47
|
+
_props$columns = props.columns,
|
|
48
|
+
propsColumns = _props$columns === void 0 ? [] : _props$columns,
|
|
49
|
+
className = props.className,
|
|
50
|
+
summary = props.summary,
|
|
51
|
+
restProps = _objectWithoutProperties(props, _excluded);
|
|
52
|
+
var quickTableConfig = quickConfig ? _objectSpread({
|
|
53
|
+
// resizeColumn: true,
|
|
54
|
+
columnConfig: true,
|
|
55
|
+
cacheTime: true
|
|
56
|
+
}, restProps) : (restProps === null || restProps === void 0 ? void 0 : restProps.columnConfig) ? _objectSpread({
|
|
57
|
+
cacheTime: true
|
|
58
|
+
}, restProps) : restProps;
|
|
59
|
+
var _quickTableConfig$res = quickTableConfig.resizeColumn,
|
|
60
|
+
resizeColumn = _quickTableConfig$res === void 0 ? configResizeColumn : _quickTableConfig$res,
|
|
61
|
+
_quickTableConfig$col = quickTableConfig.columnConfig,
|
|
62
|
+
columnConfig = _quickTableConfig$col === void 0 ? configTColumnConfig : _quickTableConfig$col,
|
|
63
|
+
_quickTableConfig$cac = quickTableConfig.cacheTime,
|
|
64
|
+
cacheTime = _quickTableConfig$cac === void 0 ? configCacheTime : _quickTableConfig$cac,
|
|
65
|
+
_quickTableConfig$sto = quickTableConfig.storage,
|
|
66
|
+
storage = _quickTableConfig$sto === void 0 ? configStorage : _quickTableConfig$sto,
|
|
67
|
+
tableProps = _objectWithoutProperties(quickTableConfig, _excluded2);
|
|
68
|
+
var propsColumnObj = useMemo(function () {
|
|
69
|
+
return propsColumns.reduce(function (acc, cur) {
|
|
70
|
+
// @ts-ignore
|
|
71
|
+
acc[getColumnDataIndex(cur.dataIndex)] = _objectSpread({}, cur);
|
|
72
|
+
return acc;
|
|
73
|
+
}, {});
|
|
74
|
+
}, [propsColumns]);
|
|
75
|
+
var pathname = window.location.pathname;
|
|
76
|
+
// 以pathname + tableId作为缓存配置key
|
|
77
|
+
var pathKey = "".concat(pathname, "/").concat(tableId || '');
|
|
78
|
+
var Storage = storage === 'sessionStorage' ? sessionStorage : localStorage;
|
|
79
|
+
var tableConfig = Storage.getItem('tableConfig');
|
|
80
|
+
var curTableConfig = tableConfig ? JSON.parse(tableConfig) : {};
|
|
81
|
+
var startTime = (_curTableConfig$pathK = curTableConfig[pathKey]) === null || _curTableConfig$pathK === void 0 ? void 0 : _curTableConfig$pathK.startTime;
|
|
82
|
+
var _useState = useState(propsColumns),
|
|
83
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
84
|
+
curColumns = _useState2[0],
|
|
85
|
+
setCurColumns = _useState2[1];
|
|
86
|
+
useDeepCompareEffect(function () {
|
|
87
|
+
var localColumns;
|
|
88
|
+
var duration = (typeof cacheTime === 'number' ? cacheTime : defaultCacheTime) * 86400000;
|
|
89
|
+
// 开启缓存配置功能且缓存存在时,从缓存中获取缓存配置
|
|
90
|
+
if (cacheTime && startTime && new Date().getTime() - startTime < duration) {
|
|
91
|
+
var _curTableConfig$pathK2, _curTableConfig$pathK3, _localColumns;
|
|
92
|
+
localColumns = (_curTableConfig$pathK2 = curTableConfig[pathKey]) === null || _curTableConfig$pathK2 === void 0 ? void 0 : (_curTableConfig$pathK3 = _curTableConfig$pathK2.columns) === null || _curTableConfig$pathK3 === void 0 ? void 0 : _curTableConfig$pathK3.map(function (item) {
|
|
93
|
+
var _propsColumnObj$getCo;
|
|
94
|
+
return _objectSpread(_objectSpread({}, propsColumnObj[getColumnDataIndex(item.dataIndex)]), {}, {
|
|
95
|
+
dataIndex: item.dataIndex,
|
|
96
|
+
width: resizeColumn ? item === null || item === void 0 ? void 0 : item.width : (_propsColumnObj$getCo = propsColumnObj[getColumnDataIndex(item.dataIndex)]) === null || _propsColumnObj$getCo === void 0 ? void 0 : _propsColumnObj$getCo.width
|
|
97
|
+
});
|
|
98
|
+
});
|
|
99
|
+
localColumns = ((_localColumns = localColumns) === null || _localColumns === void 0 ? void 0 : _localColumns.length) === 0 ? undefined : localColumns;
|
|
100
|
+
setCurColumns(cloneDeep(localColumns || propsColumns));
|
|
101
|
+
} else {
|
|
102
|
+
setCurColumns(cloneDeep(propsColumns));
|
|
103
|
+
}
|
|
104
|
+
}, [pathKey, cacheTime, propsColumns]);
|
|
105
|
+
useEffect(function () {
|
|
106
|
+
if (!cacheTime && JSON.stringify(curTableConfig) !== '{}') {
|
|
107
|
+
// 关闭缓存时,清理对应table缓存
|
|
108
|
+
Storage.setItem('tableConfig', JSON.stringify(_objectSpread(_objectSpread({}, curTableConfig), {}, _defineProperty({}, pathKey, undefined))));
|
|
109
|
+
}
|
|
110
|
+
}, [cacheTime, curTableConfig, storage]);
|
|
111
|
+
// 重置列宽,恢复至props的columns列宽
|
|
112
|
+
var resetColumnWidth = function resetColumnWidth() {
|
|
113
|
+
var nextColumns = _toConsumableArray(curColumns);
|
|
114
|
+
nextColumns === null || nextColumns === void 0 ? void 0 : nextColumns.forEach(function (item) {
|
|
115
|
+
var _propsColumnObj$item$;
|
|
116
|
+
if ((_propsColumnObj$item$ = propsColumnObj[item.dataIndex]) === null || _propsColumnObj$item$ === void 0 ? void 0 : _propsColumnObj$item$.width) {
|
|
117
|
+
var _propsColumnObj$item$2;
|
|
118
|
+
item.width = (_propsColumnObj$item$2 = propsColumnObj[item.dataIndex]) === null || _propsColumnObj$item$2 === void 0 ? void 0 : _propsColumnObj$item$2.width;
|
|
119
|
+
} else {
|
|
120
|
+
delete item.width;
|
|
121
|
+
}
|
|
122
|
+
});
|
|
123
|
+
setCurColumns(nextColumns);
|
|
124
|
+
};
|
|
125
|
+
// 列宽resize函数
|
|
126
|
+
var handleResize = function handleResize(index) {
|
|
127
|
+
return function (e, _ref3) {
|
|
128
|
+
var size = _ref3.size;
|
|
129
|
+
var nextColumns = _toConsumableArray(curColumns);
|
|
130
|
+
nextColumns[index] = _objectSpread(_objectSpread({}, nextColumns[index]), {}, {
|
|
131
|
+
width: size.width
|
|
132
|
+
});
|
|
133
|
+
setCurColumns(nextColumns);
|
|
134
|
+
};
|
|
135
|
+
};
|
|
136
|
+
var columns = useMemo(function () {
|
|
137
|
+
var newColumns = curColumns.map(function (item, index) {
|
|
138
|
+
var _propsColumnObj$getCo2;
|
|
139
|
+
if ((_propsColumnObj$getCo2 = propsColumnObj[getColumnDataIndex(item.dataIndex)]) === null || _propsColumnObj$getCo2 === void 0 ? void 0 : _propsColumnObj$getCo2.render) {
|
|
140
|
+
item.render = propsColumnObj[getColumnDataIndex(item.dataIndex)].render;
|
|
141
|
+
}
|
|
142
|
+
return _objectSpread(_objectSpread({
|
|
143
|
+
ellipsis: resizeColumn
|
|
144
|
+
}, item), {}, {
|
|
145
|
+
width: item.width,
|
|
146
|
+
onHeaderCell: function onHeaderCell(column) {
|
|
147
|
+
return {
|
|
148
|
+
width: column.width,
|
|
149
|
+
minwidth: column.minWidth,
|
|
150
|
+
onDrag: handleResize(index)
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
});
|
|
154
|
+
}).filter(function (item) {
|
|
155
|
+
return !(item === null || item === void 0 ? void 0 : item.delete);
|
|
156
|
+
});
|
|
157
|
+
newColumns === null || newColumns === void 0 ? void 0 : newColumns.forEach(function (item) {
|
|
158
|
+
formatColumn(item);
|
|
159
|
+
});
|
|
160
|
+
return newColumns;
|
|
161
|
+
}, [curColumns, handleResize]);
|
|
162
|
+
var handleColumnConfig = function handleColumnConfig(checkList) {
|
|
163
|
+
var newColumns = checkList === null || checkList === void 0 ? void 0 : checkList.map(function (item) {
|
|
164
|
+
return _objectSpread({}, propsColumnObj[item.dataIndex]);
|
|
165
|
+
});
|
|
166
|
+
setCurColumns(newColumns);
|
|
167
|
+
};
|
|
168
|
+
useDebounceEffect(function () {
|
|
169
|
+
if (cacheTime) {
|
|
170
|
+
var newTableConfig = _objectSpread(_objectSpread({}, curTableConfig), {}, _defineProperty({}, pathKey, {
|
|
171
|
+
startTime: new Date().getTime(),
|
|
172
|
+
columns: curColumns.map(function (item) {
|
|
173
|
+
return {
|
|
174
|
+
dataIndex: item.dataIndex,
|
|
175
|
+
width: Math.round(Number(item.width))
|
|
176
|
+
};
|
|
177
|
+
})
|
|
178
|
+
}));
|
|
179
|
+
Storage.setItem('tableConfig', JSON.stringify(newTableConfig));
|
|
180
|
+
}
|
|
181
|
+
}, [cacheTime, storage, pathKey, curColumns], {
|
|
182
|
+
wait: 100
|
|
183
|
+
});
|
|
184
|
+
var customColumns = useMemo(function () {
|
|
185
|
+
return propsColumns.map(function (item) {
|
|
186
|
+
return _objectSpread(_objectSpread({}, item), {}, {
|
|
187
|
+
disabled: item.fixed
|
|
188
|
+
});
|
|
189
|
+
});
|
|
190
|
+
}, [propsColumns]);
|
|
191
|
+
var checkColumns = useMemo(function () {
|
|
192
|
+
return curColumns.map(function (item) {
|
|
193
|
+
return _objectSpread(_objectSpread({}, item), {}, {
|
|
194
|
+
disabled: item.fixed
|
|
195
|
+
});
|
|
196
|
+
});
|
|
197
|
+
}, [curColumns]);
|
|
198
|
+
var Empty = /*#__PURE__*/React.createElement("div", {
|
|
199
|
+
className: "ant-empty ant-empty-normal"
|
|
200
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
201
|
+
className: "ant-empty-image"
|
|
202
|
+
}, /*#__PURE__*/React.createElement("img", {
|
|
203
|
+
src: empty,
|
|
204
|
+
alt: "\u6682\u65E0\u6570\u636E"
|
|
205
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
206
|
+
className: "ant-empty-description"
|
|
207
|
+
}, "\u6682\u65E0\u6570\u636E"));
|
|
208
|
+
var renderSummary = function renderSummary() {
|
|
209
|
+
var _ref4 = summary || {},
|
|
210
|
+
columns = _ref4.columns,
|
|
211
|
+
_ref4$total = _ref4.total,
|
|
212
|
+
total = _ref4$total === void 0 ? true : _ref4$total,
|
|
213
|
+
_ref4$fixed = _ref4.fixed,
|
|
214
|
+
fixed = _ref4$fixed === void 0 ? true : _ref4$fixed;
|
|
215
|
+
var _ref5 = tableProps || {},
|
|
216
|
+
dataSource = _ref5.dataSource;
|
|
217
|
+
// 没有数据时,不展示合计栏
|
|
218
|
+
if (!(dataSource === null || dataSource === void 0 ? void 0 : dataSource.length)) {
|
|
219
|
+
return null;
|
|
220
|
+
}
|
|
221
|
+
return /*#__PURE__*/React.createElement(_Table.Summary, {
|
|
222
|
+
fixed: fixed
|
|
223
|
+
}, /*#__PURE__*/React.createElement(_Table.Summary.Row, null, columns === null || columns === void 0 ? void 0 : columns.map(function (_ref6) {
|
|
224
|
+
var key = _ref6.key,
|
|
225
|
+
index = _ref6.index,
|
|
226
|
+
colSpan = _ref6.colSpan,
|
|
227
|
+
prefix = _ref6.prefix,
|
|
228
|
+
title = _ref6.title,
|
|
229
|
+
precision = _ref6.precision,
|
|
230
|
+
valueType = _ref6.valueType;
|
|
231
|
+
var text = null;
|
|
232
|
+
if (title) {
|
|
233
|
+
text = title;
|
|
234
|
+
} else if (total && key) {
|
|
235
|
+
var _dataSource$reduce;
|
|
236
|
+
var format = valueTypeRender === null || valueTypeRender === void 0 ? void 0 : valueTypeRender[valueType];
|
|
237
|
+
var sum = dataSource === null || dataSource === void 0 ? void 0 : (_dataSource$reduce = dataSource.reduce) === null || _dataSource$reduce === void 0 ? void 0 : _dataSource$reduce.call(dataSource, function (pre, cur) {
|
|
238
|
+
var _cur$key;
|
|
239
|
+
return tools.calc(pre, '+', (_cur$key = cur[key]) !== null && _cur$key !== void 0 ? _cur$key : 0);
|
|
240
|
+
}, 0);
|
|
241
|
+
text = format ? format(sum, precision !== null && precision !== void 0 ? precision : 2) : sum;
|
|
242
|
+
}
|
|
243
|
+
return /*#__PURE__*/React.createElement(_Table.Summary.Cell, {
|
|
244
|
+
key: key,
|
|
245
|
+
index: index,
|
|
246
|
+
colSpan: colSpan
|
|
247
|
+
}, prefix, text);
|
|
248
|
+
})));
|
|
249
|
+
};
|
|
250
|
+
var cls = classnames(_defineProperty({
|
|
251
|
+
'pro-table': true,
|
|
252
|
+
'pro-table-no-stripe': !stripe
|
|
253
|
+
}, className, className));
|
|
254
|
+
return /*#__PURE__*/React.createElement(TableContext.Provider, {
|
|
255
|
+
value: {
|
|
256
|
+
pathKey: pathKey,
|
|
257
|
+
tableConfig: tableConfig,
|
|
258
|
+
Storage: Storage
|
|
259
|
+
}
|
|
260
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
261
|
+
className: cls
|
|
262
|
+
}, (headerRender || columnConfig || resizeColumn) && /*#__PURE__*/React.createElement("div", {
|
|
263
|
+
className: "column-config"
|
|
264
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
265
|
+
className: "left-contain"
|
|
266
|
+
}, headerRender ? headerRender() : null), /*#__PURE__*/React.createElement("div", {
|
|
267
|
+
className: "right-actions"
|
|
268
|
+
}, resizeColumn && /*#__PURE__*/React.createElement(_Button, {
|
|
269
|
+
icon: /*#__PURE__*/React.createElement(ReactSVG, {
|
|
270
|
+
className: "anticon",
|
|
271
|
+
wrapper: "span",
|
|
272
|
+
src: resetSvg
|
|
273
|
+
}),
|
|
274
|
+
onClick: resetColumnWidth
|
|
275
|
+
}, "\u91CD\u7F6E\u5217\u5BBD"), columnConfig && /*#__PURE__*/React.createElement(ProTransferModal, {
|
|
276
|
+
label: "\u5217",
|
|
277
|
+
title: "\u81EA\u5B9A\u4E49\u5217",
|
|
278
|
+
draggable: true,
|
|
279
|
+
span: 8,
|
|
280
|
+
defaultValue: checkColumns,
|
|
281
|
+
clearCheckedOnClose: false,
|
|
282
|
+
fieldNames: {
|
|
283
|
+
value: 'dataIndex',
|
|
284
|
+
label: 'title'
|
|
285
|
+
},
|
|
286
|
+
dataSource: customColumns,
|
|
287
|
+
onOk: handleColumnConfig
|
|
288
|
+
}, /*#__PURE__*/React.createElement(_Button, {
|
|
289
|
+
className: "custom-column-btn",
|
|
290
|
+
icon: /*#__PURE__*/React.createElement(ReactSVG, {
|
|
291
|
+
className: "anticon",
|
|
292
|
+
wrapper: "span",
|
|
293
|
+
src: customColumnSvg
|
|
294
|
+
})
|
|
295
|
+
}, "\u81EA\u5B9A\u4E49\u5217")))), /*#__PURE__*/React.createElement("div", {
|
|
296
|
+
className: "pro-table-container"
|
|
297
|
+
}, /*#__PURE__*/React.createElement(_Table, _objectSpread({
|
|
298
|
+
components: resizeColumn ? TableResizable.components : undefined,
|
|
299
|
+
// @ts-ignore
|
|
300
|
+
columns: columns,
|
|
301
|
+
locale: {
|
|
302
|
+
emptyText: Empty
|
|
303
|
+
},
|
|
304
|
+
summary: _typeof(summary) === 'object' ? function () {
|
|
305
|
+
return renderSummary();
|
|
306
|
+
} : summary
|
|
307
|
+
}, tableProps)), /*#__PURE__*/React.createElement(ResizableLine, null)), footerRender ? /*#__PURE__*/React.createElement("div", {
|
|
308
|
+
className: "pro-table-footer ".concat((tableProps === null || tableProps === void 0 ? void 0 : tableProps.pagination) ? 'has-page' : 'no-page')
|
|
309
|
+
}, footerRender()) : null));
|
|
310
|
+
}
|
|
311
|
+
ProTable.defaultProps = {
|
|
312
|
+
quickConfig: false,
|
|
313
|
+
stripe: true
|
|
314
|
+
};
|
|
315
|
+
ProTable.useAntdTable = useAntdTable;
|
|
316
|
+
export default ProTable;
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { TableProps } from 'antd/lib/table/Table';
|
|
3
|
+
import { ColumnType, GetRowKey, RowSelectionType } from 'antd/lib/table/interface';
|
|
4
|
+
import { FormInstance } from 'antd';
|
|
5
|
+
interface SummaryColumnProps {
|
|
6
|
+
key: string;
|
|
7
|
+
index: number;
|
|
8
|
+
title?: string;
|
|
9
|
+
colSpan?: number;
|
|
10
|
+
valueType?: string;
|
|
11
|
+
precision?: number;
|
|
12
|
+
prefix?: ReactNode | string;
|
|
13
|
+
}
|
|
14
|
+
export interface SummaryProps {
|
|
15
|
+
columns: SummaryColumnProps[];
|
|
16
|
+
total?: boolean;
|
|
17
|
+
fixed?: boolean;
|
|
18
|
+
}
|
|
19
|
+
export type ProTableProps = TableProps<any> & {
|
|
20
|
+
tableId?: string;
|
|
21
|
+
rowKey?: string | GetRowKey<any>;
|
|
22
|
+
headerRender?: () => ReactNode;
|
|
23
|
+
quickConfig?: boolean;
|
|
24
|
+
resizeColumn?: boolean;
|
|
25
|
+
sortRow?: boolean | 'drag' | 'move';
|
|
26
|
+
columnConfig?: boolean;
|
|
27
|
+
cacheTime?: number | boolean;
|
|
28
|
+
sortColumnText?: string;
|
|
29
|
+
storage?: 'localStorage' | 'sessionStorage';
|
|
30
|
+
footerRender?: () => ReactNode;
|
|
31
|
+
summary?: SummaryProps | TableProps<any>['summary'];
|
|
32
|
+
/**
|
|
33
|
+
* 斑马纹设置
|
|
34
|
+
*/
|
|
35
|
+
stripe?: boolean;
|
|
36
|
+
};
|
|
37
|
+
export type ProTableValueType = 'percentage' | 'permillage' | 'thousandth' | 'datePicker' | 'enumName' | 'enumCodeName' | 'address' | 'thousandthCNY' | 'date' | 'dateTime' | 'dateStartTime' | 'dateEndTime' | 'dateStartEndTime';
|
|
38
|
+
export interface ProTableColumn extends ColumnType<any> {
|
|
39
|
+
dataIndex: string | string[];
|
|
40
|
+
width?: number | string;
|
|
41
|
+
minWidth?: number;
|
|
42
|
+
valueType?: ProTableValueType;
|
|
43
|
+
format?: string;
|
|
44
|
+
precision?: number;
|
|
45
|
+
code?: string | (() => string);
|
|
46
|
+
copyable?: boolean;
|
|
47
|
+
tooltip?: ReactNode | {
|
|
48
|
+
title?: ReactNode;
|
|
49
|
+
icon?: ReactNode;
|
|
50
|
+
};
|
|
51
|
+
transform?: (value: any, record?: any) => string[];
|
|
52
|
+
}
|
|
53
|
+
export interface Response<T = any> {
|
|
54
|
+
data: T;
|
|
55
|
+
status: number;
|
|
56
|
+
message: string;
|
|
57
|
+
}
|
|
58
|
+
export interface PaginationProps {
|
|
59
|
+
pageNum: number;
|
|
60
|
+
pageSize: number;
|
|
61
|
+
}
|
|
62
|
+
export interface RequestOptions<T, R> {
|
|
63
|
+
form?: FormInstance;
|
|
64
|
+
isResetQuery?: boolean;
|
|
65
|
+
rowKey?: string | GetRowKey<R>;
|
|
66
|
+
rowSelection?: boolean;
|
|
67
|
+
rowSelectType?: RowSelectionType;
|
|
68
|
+
rowSelections?: boolean;
|
|
69
|
+
extraParams?: Partial<T>;
|
|
70
|
+
page?: PaginationProps;
|
|
71
|
+
onPageChange?: (page: PaginationProps) => void;
|
|
72
|
+
transformParams?: (params: any) => any;
|
|
73
|
+
transformResponse?: (data: any) => R[];
|
|
74
|
+
}
|
|
75
|
+
export interface Params<T = any> extends PaginationProps {
|
|
76
|
+
queryBean?: Partial<T>;
|
|
77
|
+
[key: string]: any;
|
|
78
|
+
}
|
|
79
|
+
export interface List<T> {
|
|
80
|
+
pageNum: number;
|
|
81
|
+
pageSize: number;
|
|
82
|
+
total: number;
|
|
83
|
+
list: T[];
|
|
84
|
+
}
|
|
85
|
+
export type ListResponse<T> = Response<List<T>>;
|
|
86
|
+
export type Service<Req, Res> = (params?: Params<Req>) => Promise<ListResponse<Res>>;
|
|
87
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,299 @@
|
|
|
1
|
+
.pro-table {
|
|
2
|
+
.custom-column-btn {
|
|
3
|
+
display : inline-flex;
|
|
4
|
+
align-items: center;
|
|
5
|
+
|
|
6
|
+
&:hover,
|
|
7
|
+
&:visited,
|
|
8
|
+
&:focus {
|
|
9
|
+
color : unset;
|
|
10
|
+
border : 1px solid #d9d9d9;
|
|
11
|
+
background: unset;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.anticon {
|
|
15
|
+
height: 16px;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.copyable-table-cell {
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
.ant-typography {
|
|
23
|
+
margin-bottom: 0;
|
|
24
|
+
display : flex;
|
|
25
|
+
align-items : center;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.drag-icon {
|
|
29
|
+
&>div {
|
|
30
|
+
display : flex;
|
|
31
|
+
align-items: center;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.ant-typography-copy-success {
|
|
36
|
+
svg {
|
|
37
|
+
fill: var(--zaui-success, #00ae4d);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
svg {
|
|
42
|
+
width : 14px;
|
|
43
|
+
height : 14px;
|
|
44
|
+
fill : #3f3f3f;
|
|
45
|
+
display: inline-block;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&.pro-table-no-stripe {
|
|
50
|
+
.ant-table.ant-table-scroll-horizontal .ant-table-tbody .ant-table-row:nth-child(n)>td {
|
|
51
|
+
background: #fff;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.ant-table-thead {
|
|
56
|
+
.ant-dropdown-trigger {
|
|
57
|
+
&.ant-dropdown-open {
|
|
58
|
+
|
|
59
|
+
.anticon-down {
|
|
60
|
+
transition: transform 0.3s;
|
|
61
|
+
transform : rotateZ(180deg);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.pro-table-container {
|
|
68
|
+
position: relative;
|
|
69
|
+
|
|
70
|
+
.pro-table-resizable-line {
|
|
71
|
+
position : absolute;
|
|
72
|
+
width : 0;
|
|
73
|
+
top : 0;
|
|
74
|
+
border-left: 1px solid var(--zaui-brand, #006aff);
|
|
75
|
+
height : 100%;
|
|
76
|
+
left : 100px;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.ant-table-thead {
|
|
81
|
+
tr th {
|
|
82
|
+
&:last-child {
|
|
83
|
+
.react-resizable-handle {
|
|
84
|
+
display: none;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.ant-space {
|
|
91
|
+
gap: var(--zaui-space-size-sm, 8px) !important;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.ant-btn-link {
|
|
95
|
+
padding: 0 var(--zaui-space-size-xs, 4px);
|
|
96
|
+
|
|
97
|
+
&:first-child {
|
|
98
|
+
padding-left: 0;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.column-config {
|
|
103
|
+
display : flex;
|
|
104
|
+
justify-content: space-between;
|
|
105
|
+
margin-bottom : var(--zaui-space-size-md, 16px);
|
|
106
|
+
|
|
107
|
+
.right-actions {
|
|
108
|
+
display : flex;
|
|
109
|
+
align-items: center;
|
|
110
|
+
|
|
111
|
+
>.ant-btn {
|
|
112
|
+
|
|
113
|
+
&:hover,
|
|
114
|
+
&:visited,
|
|
115
|
+
&:focus {
|
|
116
|
+
color : unset;
|
|
117
|
+
border : 1px solid #d9d9d9;
|
|
118
|
+
background: unset;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.custom-column-btn {
|
|
123
|
+
margin-left: var(--zaui-space-size-sm, 8px);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.ant-empty .ant-empty-image {
|
|
129
|
+
height: 80px;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.ant-table-thead>tr>th {
|
|
133
|
+
border-bottom: 0;
|
|
134
|
+
white-space : nowrap;
|
|
135
|
+
|
|
136
|
+
.pro-table-th-cell {
|
|
137
|
+
width : 100%;
|
|
138
|
+
overflow : hidden;
|
|
139
|
+
white-space : nowrap;
|
|
140
|
+
text-overflow: ellipsis;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
&::before {
|
|
144
|
+
width: 0 !important;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
&.react-resizable {
|
|
148
|
+
&::before {
|
|
149
|
+
width: 1px !important;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.pro-table-tooltip {
|
|
154
|
+
display : inline-flex;
|
|
155
|
+
align-items: center;
|
|
156
|
+
|
|
157
|
+
.icon-tip {
|
|
158
|
+
svg {
|
|
159
|
+
margin-left : 8px;
|
|
160
|
+
width : 14px;
|
|
161
|
+
height : 14px;
|
|
162
|
+
vertical-align: text-bottom;
|
|
163
|
+
fill : #909090;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.ant-table-tbody .ant-table-placeholder {
|
|
170
|
+
background: var(--zaui-base-bg, #ffffff) !important;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.ant-table-tbody>tr:not(.ant-table-placeholder)>td {
|
|
174
|
+
border-bottom: 0;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.ant-table-tbody>tr:not(.ant-table-measure-row)>td {
|
|
178
|
+
border-bottom: 0;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.ant-table-tbody tr:nth-child(n)>td {
|
|
182
|
+
background-color: var(--zaui-base-bg, #ffffff);
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.ant-table-tbody tr:nth-child(2n)>td {
|
|
186
|
+
background-color: #F7F9FC;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.ant-table.ant-table-scroll-horizontal .ant-table-tbody .ant-table-row:nth-child(n)>td {
|
|
190
|
+
background-color: #F7F9FC;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.ant-table.ant-table-scroll-horizontal .ant-table-tbody .ant-table-row:nth-child(2n)>td {
|
|
194
|
+
background-color: var(--zaui-base-bg, #ffffff);
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.react-resizable {
|
|
198
|
+
position : relative;
|
|
199
|
+
background-clip: padding-box;
|
|
200
|
+
|
|
201
|
+
.ant-table-filter-trigger {
|
|
202
|
+
margin-right: 0;
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.react-resizable-handle {
|
|
207
|
+
position: absolute;
|
|
208
|
+
right : -5px;
|
|
209
|
+
bottom : 0;
|
|
210
|
+
z-index : 1;
|
|
211
|
+
width : 10px;
|
|
212
|
+
height : 100%;
|
|
213
|
+
cursor : col-resize;
|
|
214
|
+
|
|
215
|
+
&::before {
|
|
216
|
+
content : '';
|
|
217
|
+
position : absolute;
|
|
218
|
+
left : 50%;
|
|
219
|
+
top : 50%;
|
|
220
|
+
width : 1px;
|
|
221
|
+
height : 18px;
|
|
222
|
+
background: #DCDCDC;
|
|
223
|
+
transform : translateY(-50%);
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
&.active::before,
|
|
227
|
+
&:hover::before {
|
|
228
|
+
content : '';
|
|
229
|
+
position : absolute;
|
|
230
|
+
left : 50%;
|
|
231
|
+
height : 100%;
|
|
232
|
+
bottom : 0;
|
|
233
|
+
border-left: 5px solid var(--zaui-brand, #006aff);
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
.ant-table-tbody tr td .ant-checkbox-wrapper-checked.checkbox-disabled {
|
|
238
|
+
pointer-events: none;
|
|
239
|
+
cursor : not-allowed;
|
|
240
|
+
opacity : 0.5;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
.ant-pagination-options-quick-jumper input {
|
|
244
|
+
border : unset;
|
|
245
|
+
background: #FAFAFA;
|
|
246
|
+
min-width : 32px;
|
|
247
|
+
height : 32px;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
.ant-pagination .ant-pagination-item-active a {
|
|
251
|
+
color : #fff;
|
|
252
|
+
background : var(--zaui-brand, #006aff) !important;
|
|
253
|
+
border-radius: var(--zaui-border-radius, 4px);
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
.pro-table-footer {
|
|
257
|
+
&.no-page {
|
|
258
|
+
margin-top: var(--zaui-space-size-md, 16px);
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
&.has-page {
|
|
262
|
+
margin: -50px 0 var(--zaui-space-size-md, 16px) 0;
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
.setting-overlay {
|
|
268
|
+
.column-setting-title {
|
|
269
|
+
display : flex;
|
|
270
|
+
align-items : center;
|
|
271
|
+
justify-content: space-between;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
.ant-popover-inner-content {
|
|
275
|
+
max-height: 280px;
|
|
276
|
+
overflow-y: auto;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
.column-checkbox-item {
|
|
280
|
+
display : flex;
|
|
281
|
+
align-items : center;
|
|
282
|
+
justify-content: space-between;
|
|
283
|
+
|
|
284
|
+
.ant-checkbox-wrapper {
|
|
285
|
+
font-weight: 500;
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
.ant-dropdown-placement-bottomLeft {
|
|
291
|
+
.ant-dropdown-menu-vertical.ant-dropdown-menu-light {
|
|
292
|
+
|
|
293
|
+
.ant-dropdown-menu-item-only-child {
|
|
294
|
+
&:hover {
|
|
295
|
+
background: rgba(0, 106, 255, 0.08);
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
}
|