@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,286 @@
|
|
|
1
|
+
import "antd/es/input/style";
|
|
2
|
+
import _Input from "antd/es/input";
|
|
3
|
+
import "antd/es/col/style";
|
|
4
|
+
import _Col from "antd/es/col";
|
|
5
|
+
import "antd/es/row/style";
|
|
6
|
+
import _Row from "antd/es/row";
|
|
7
|
+
import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
|
|
8
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
9
|
+
import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
|
10
|
+
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
11
|
+
import _objectDestructuringEmpty from "@babel/runtime/helpers/esm/objectDestructuringEmpty";
|
|
12
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
13
|
+
import "antd/es/select/style";
|
|
14
|
+
import _Select from "antd/es/select";
|
|
15
|
+
import React, { useEffect, useState } from "react";
|
|
16
|
+
var Option = _Select.Option;
|
|
17
|
+
var defaultStyle = {
|
|
18
|
+
marginRight: "15px",
|
|
19
|
+
minWidth: "140px"
|
|
20
|
+
};
|
|
21
|
+
// 全量数据时 dataSourse isAllData必传 <ProAddress dataSource={mockData} isAllData/>,
|
|
22
|
+
// 逐级数据时 service params isALLData={false} <ProAddress service={AndCity} isAllData={false} params={params} />
|
|
23
|
+
// normalize 可以改变表单获取值的code or name
|
|
24
|
+
export var transferAddressInfoToRegion = function transferAddressInfoToRegion() {
|
|
25
|
+
return {
|
|
26
|
+
normalize: function normalize(value) {
|
|
27
|
+
var _ref = value || {},
|
|
28
|
+
province = _ref.province,
|
|
29
|
+
city = _ref.city,
|
|
30
|
+
secondCity = _ref.secondCity,
|
|
31
|
+
detail = _ref.detail;
|
|
32
|
+
return {
|
|
33
|
+
province: province === null || province === void 0 ? void 0 : province.code,
|
|
34
|
+
city: city === null || city === void 0 ? void 0 : city.code,
|
|
35
|
+
county: secondCity === null || secondCity === void 0 ? void 0 : secondCity.code,
|
|
36
|
+
detail: detail,
|
|
37
|
+
address: detail
|
|
38
|
+
};
|
|
39
|
+
},
|
|
40
|
+
getValueProps: function getValueProps(value) {
|
|
41
|
+
var _ref2 = value || {},
|
|
42
|
+
province = _ref2.province,
|
|
43
|
+
city = _ref2.city,
|
|
44
|
+
county = _ref2.county,
|
|
45
|
+
address = _ref2.address;
|
|
46
|
+
return {
|
|
47
|
+
value: {
|
|
48
|
+
province: {
|
|
49
|
+
code: province || null
|
|
50
|
+
},
|
|
51
|
+
city: {
|
|
52
|
+
code: city || null
|
|
53
|
+
},
|
|
54
|
+
secondCity: {
|
|
55
|
+
code: county || null
|
|
56
|
+
},
|
|
57
|
+
address: address || null,
|
|
58
|
+
detail: address || null
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
export function ProAddress(_ref3) {
|
|
65
|
+
var props = _extends({}, (_objectDestructuringEmpty(_ref3), _ref3));
|
|
66
|
+
var value = props.value,
|
|
67
|
+
onChange = props.onChange,
|
|
68
|
+
disabled = props.disabled,
|
|
69
|
+
service = props.service,
|
|
70
|
+
params = props.params,
|
|
71
|
+
_props$dataSource = props.dataSource,
|
|
72
|
+
dataSource = _props$dataSource === void 0 ? [] : _props$dataSource,
|
|
73
|
+
defaultProps = props.defaultProps,
|
|
74
|
+
_props$isAllData = props.isAllData,
|
|
75
|
+
isAllData = _props$isAllData === void 0 ? true : _props$isAllData;
|
|
76
|
+
var _ref4 = value || {},
|
|
77
|
+
province = _ref4.province,
|
|
78
|
+
city = _ref4.city,
|
|
79
|
+
secondCity = _ref4.secondCity,
|
|
80
|
+
detail = _ref4.detail;
|
|
81
|
+
var _useState = useState([]),
|
|
82
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
83
|
+
provinces = _useState2[0],
|
|
84
|
+
setProvinces = _useState2[1];
|
|
85
|
+
var _useState3 = useState([]),
|
|
86
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
87
|
+
citys = _useState4[0],
|
|
88
|
+
setCitys = _useState4[1];
|
|
89
|
+
var _useState5 = useState([]),
|
|
90
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
91
|
+
secondCitys = _useState6[0],
|
|
92
|
+
setSecondCitys = _useState6[1];
|
|
93
|
+
var queryCity = /*#__PURE__*/function () {
|
|
94
|
+
var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(code, type) {
|
|
95
|
+
var cityList, _cityList, newList, _secondCitys;
|
|
96
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
97
|
+
while (1) switch (_context.prev = _context.next) {
|
|
98
|
+
case 0:
|
|
99
|
+
// 全量数据时
|
|
100
|
+
if (isAllData && type === "city") {
|
|
101
|
+
cityList = dataSource.filter(function (item) {
|
|
102
|
+
return item.code == code;
|
|
103
|
+
});
|
|
104
|
+
setCitys(cityList[0].children);
|
|
105
|
+
} else if (isAllData && type === "secondCity") {
|
|
106
|
+
_cityList = dataSource.filter(function (item) {
|
|
107
|
+
return item.code == (province === null || province === void 0 ? void 0 : province.code);
|
|
108
|
+
});
|
|
109
|
+
newList = _cityList[0].children;
|
|
110
|
+
_secondCitys = newList.filter(function (item) {
|
|
111
|
+
return item.code == (city === null || city === void 0 ? void 0 : city.code);
|
|
112
|
+
});
|
|
113
|
+
setSecondCitys(_secondCitys[0].children);
|
|
114
|
+
}
|
|
115
|
+
// 逐级查询时
|
|
116
|
+
if (!isAllData) {
|
|
117
|
+
service(_objectSpread(_objectSpread({}, params), {}, {
|
|
118
|
+
valueParentCode: code
|
|
119
|
+
})).then(function (res) {
|
|
120
|
+
var _res$data;
|
|
121
|
+
if (res && ((_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.length)) {
|
|
122
|
+
if (type === "city") {
|
|
123
|
+
setCitys(res ? res.data : []);
|
|
124
|
+
} else if (type === "secondCity") {
|
|
125
|
+
setSecondCitys(res ? res.data : []);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
case 2:
|
|
131
|
+
case "end":
|
|
132
|
+
return _context.stop();
|
|
133
|
+
}
|
|
134
|
+
}, _callee);
|
|
135
|
+
}));
|
|
136
|
+
return function queryCity(_x, _x2) {
|
|
137
|
+
return _ref5.apply(this, arguments);
|
|
138
|
+
};
|
|
139
|
+
}();
|
|
140
|
+
var handleProvinceChange = function handleProvinceChange(val) {
|
|
141
|
+
if (!val) {
|
|
142
|
+
onChange && onChange({
|
|
143
|
+
province: {},
|
|
144
|
+
city: {},
|
|
145
|
+
secondCity: {},
|
|
146
|
+
detail: undefined
|
|
147
|
+
});
|
|
148
|
+
return;
|
|
149
|
+
}
|
|
150
|
+
var provinceDto = provinces.find(function (item) {
|
|
151
|
+
return item.code === val;
|
|
152
|
+
});
|
|
153
|
+
onChange && onChange({
|
|
154
|
+
province: {
|
|
155
|
+
name: provinceDto === null || provinceDto === void 0 ? void 0 : provinceDto.name,
|
|
156
|
+
code: provinceDto === null || provinceDto === void 0 ? void 0 : provinceDto.code
|
|
157
|
+
},
|
|
158
|
+
city: {},
|
|
159
|
+
secondCity: {},
|
|
160
|
+
detail: undefined
|
|
161
|
+
});
|
|
162
|
+
};
|
|
163
|
+
var handleCityChange = function handleCityChange(val) {
|
|
164
|
+
if (!val) {
|
|
165
|
+
onChange && onChange(_objectSpread(_objectSpread({}, value), {}, {
|
|
166
|
+
city: {},
|
|
167
|
+
secondCity: {},
|
|
168
|
+
detail: undefined
|
|
169
|
+
}));
|
|
170
|
+
return;
|
|
171
|
+
}
|
|
172
|
+
var cityDto = citys.find(function (item) {
|
|
173
|
+
return item.code === val;
|
|
174
|
+
});
|
|
175
|
+
onChange && onChange(_objectSpread(_objectSpread({}, value), {}, {
|
|
176
|
+
city: {
|
|
177
|
+
name: cityDto.name,
|
|
178
|
+
code: cityDto.code
|
|
179
|
+
},
|
|
180
|
+
secondCity: {},
|
|
181
|
+
detail: undefined
|
|
182
|
+
}));
|
|
183
|
+
};
|
|
184
|
+
var handleSecondCityChange = function handleSecondCityChange(val) {
|
|
185
|
+
if (!val) {
|
|
186
|
+
onChange && onChange(_objectSpread(_objectSpread({}, value), {}, {
|
|
187
|
+
secondCity: {},
|
|
188
|
+
detail: undefined
|
|
189
|
+
}));
|
|
190
|
+
return;
|
|
191
|
+
}
|
|
192
|
+
var secondCityDto = secondCitys.find(function (item) {
|
|
193
|
+
return item.code === val;
|
|
194
|
+
});
|
|
195
|
+
onChange && onChange(_objectSpread(_objectSpread({}, value), {}, {
|
|
196
|
+
secondCity: {
|
|
197
|
+
name: secondCityDto.name,
|
|
198
|
+
code: secondCityDto.code
|
|
199
|
+
},
|
|
200
|
+
detail: undefined
|
|
201
|
+
}));
|
|
202
|
+
};
|
|
203
|
+
var handleDetailChange = function handleDetailChange(e) {
|
|
204
|
+
onChange && onChange(_objectSpread(_objectSpread({}, value), {}, {
|
|
205
|
+
detail: e.target.value
|
|
206
|
+
}));
|
|
207
|
+
};
|
|
208
|
+
useEffect(function () {
|
|
209
|
+
if (!isAllData) {
|
|
210
|
+
service(_objectSpread(_objectSpread({}, params), {}, {
|
|
211
|
+
valueParentCode: province === null || province === void 0 ? void 0 : province.code
|
|
212
|
+
})).then(function (res) {
|
|
213
|
+
setProvinces(res.data);
|
|
214
|
+
});
|
|
215
|
+
}
|
|
216
|
+
}, []);
|
|
217
|
+
useEffect(function () {
|
|
218
|
+
dataSource.length && setProvinces(dataSource);
|
|
219
|
+
}, [dataSource === null || dataSource === void 0 ? void 0 : dataSource.length]);
|
|
220
|
+
useEffect(function () {
|
|
221
|
+
(province === null || province === void 0 ? void 0 : province.code) && queryCity(province.code, "city");
|
|
222
|
+
setSecondCitys([]);
|
|
223
|
+
}, [province === null || province === void 0 ? void 0 : province.code]);
|
|
224
|
+
useEffect(function () {
|
|
225
|
+
(city === null || city === void 0 ? void 0 : city.code) && queryCity(city.code, "secondCity");
|
|
226
|
+
}, [city === null || city === void 0 ? void 0 : city.code]);
|
|
227
|
+
return /*#__PURE__*/React.createElement(_Row, {
|
|
228
|
+
gutter: 10
|
|
229
|
+
}, /*#__PURE__*/React.createElement(_Col, {
|
|
230
|
+
span: 6
|
|
231
|
+
}, /*#__PURE__*/React.createElement(_Select, _objectSpread({
|
|
232
|
+
disabled: disabled,
|
|
233
|
+
value: province === null || province === void 0 ? void 0 : province.code,
|
|
234
|
+
placeholder: "\u8BF7\u9009\u62E9\u7701\u4EFD",
|
|
235
|
+
onChange: handleProvinceChange,
|
|
236
|
+
style: defaultStyle,
|
|
237
|
+
getPopupContainer: function getPopupContainer(trigger) {
|
|
238
|
+
return trigger === null || trigger === void 0 ? void 0 : trigger.parentElement;
|
|
239
|
+
}
|
|
240
|
+
}, defaultProps), provinces === null || provinces === void 0 ? void 0 : provinces.map(function (item) {
|
|
241
|
+
return /*#__PURE__*/React.createElement(Option, {
|
|
242
|
+
key: item.code,
|
|
243
|
+
value: item.code
|
|
244
|
+
}, item.code, "-", item.name);
|
|
245
|
+
}))), /*#__PURE__*/React.createElement(_Col, {
|
|
246
|
+
span: 6
|
|
247
|
+
}, /*#__PURE__*/React.createElement(_Select, _objectSpread({
|
|
248
|
+
disabled: disabled,
|
|
249
|
+
value: city === null || city === void 0 ? void 0 : city.code,
|
|
250
|
+
placeholder: "\u8BF7\u9009\u62E9\u5E02",
|
|
251
|
+
onChange: handleCityChange,
|
|
252
|
+
style: defaultStyle,
|
|
253
|
+
getPopupContainer: function getPopupContainer(trigger) {
|
|
254
|
+
return trigger === null || trigger === void 0 ? void 0 : trigger.parentElement;
|
|
255
|
+
}
|
|
256
|
+
}, defaultProps), citys === null || citys === void 0 ? void 0 : citys.map(function (item) {
|
|
257
|
+
return /*#__PURE__*/React.createElement(Option, {
|
|
258
|
+
key: item.code,
|
|
259
|
+
value: item.code
|
|
260
|
+
}, item.code, "-", item.name);
|
|
261
|
+
}))), /*#__PURE__*/React.createElement(_Col, {
|
|
262
|
+
span: 6
|
|
263
|
+
}, /*#__PURE__*/React.createElement(_Select, _objectSpread({
|
|
264
|
+
disabled: disabled,
|
|
265
|
+
value: secondCity === null || secondCity === void 0 ? void 0 : secondCity.code,
|
|
266
|
+
placeholder: "\u8BF7\u9009\u62E9\u533A/\u53BF",
|
|
267
|
+
onChange: handleSecondCityChange,
|
|
268
|
+
style: defaultStyle,
|
|
269
|
+
getPopupContainer: function getPopupContainer(trigger) {
|
|
270
|
+
return trigger === null || trigger === void 0 ? void 0 : trigger.parentElement;
|
|
271
|
+
}
|
|
272
|
+
}, defaultProps), secondCitys === null || secondCitys === void 0 ? void 0 : secondCitys.map(function (item) {
|
|
273
|
+
return /*#__PURE__*/React.createElement(Option, {
|
|
274
|
+
key: item.code,
|
|
275
|
+
value: item.code
|
|
276
|
+
}, item.code, "-", item.name);
|
|
277
|
+
}))), /*#__PURE__*/React.createElement(_Col, {
|
|
278
|
+
span: 6
|
|
279
|
+
}, /*#__PURE__*/React.createElement(_Input, {
|
|
280
|
+
disabled: disabled,
|
|
281
|
+
value: detail,
|
|
282
|
+
placeholder: "\u8BF7\u8F93\u5165\u8BE6\u7EC6\u5730\u5740",
|
|
283
|
+
onChange: handleDetailChange
|
|
284
|
+
})));
|
|
285
|
+
}
|
|
286
|
+
export default ProAddress;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface ValueProps {
|
|
2
|
+
province?: any;
|
|
3
|
+
city?: any;
|
|
4
|
+
secondCity?: any;
|
|
5
|
+
detail?: string;
|
|
6
|
+
}
|
|
7
|
+
export interface ProAddressPropsType {
|
|
8
|
+
value?: ValueProps;
|
|
9
|
+
onChange?: (value: ValueProps) => void;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
service?: any;
|
|
12
|
+
params?: object;
|
|
13
|
+
dataSource?: any;
|
|
14
|
+
defaultProps?: object;
|
|
15
|
+
isAllData: boolean;
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IProps } from './propsType';
|
|
3
|
+
/**
|
|
4
|
+
* 证件号码 + 证件类型
|
|
5
|
+
* @date 2022-01-06
|
|
6
|
+
* @param {any} onChange
|
|
7
|
+
* @param {any} disabled=false
|
|
8
|
+
* @param {any} isRange=false
|
|
9
|
+
* @param {any} getPopupContainer=defaultPopupContainer
|
|
10
|
+
* @param {any} ...restProps}:ProCertValidityPropsType
|
|
11
|
+
* @returns {any}
|
|
12
|
+
*/
|
|
13
|
+
export declare const ProCertNo: React.ForwardRefExoticComponent<IProps & React.RefAttributes<unknown>>;
|
|
14
|
+
export default ProCertNo;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
|
+
import "antd/es/select/style";
|
|
3
|
+
import _Select from "antd/es/select";
|
|
4
|
+
import "antd/es/form/style";
|
|
5
|
+
import _Form from "antd/es/form";
|
|
6
|
+
import "antd/es/input/style";
|
|
7
|
+
import _Input from "antd/es/input";
|
|
8
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
9
|
+
var _excluded = ["dataSource", "nameKey", "codeKey"];
|
|
10
|
+
import React, { forwardRef } from 'react';
|
|
11
|
+
/**
|
|
12
|
+
* 证件号码 + 证件类型
|
|
13
|
+
* @date 2022-01-06
|
|
14
|
+
* @param {any} onChange
|
|
15
|
+
* @param {any} disabled=false
|
|
16
|
+
* @param {any} isRange=false
|
|
17
|
+
* @param {any} getPopupContainer=defaultPopupContainer
|
|
18
|
+
* @param {any} ...restProps}:ProCertValidityPropsType
|
|
19
|
+
* @returns {any}
|
|
20
|
+
*/
|
|
21
|
+
export var ProCertNo = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
22
|
+
var _certTypeProps$fileNa, _certTypeProps$rules, _restCertTypeProps$pl, _certNoProps$fileName, _certNoProps$rules, _certNoProps$placehol;
|
|
23
|
+
var certNoProps = _ref.certNoProps,
|
|
24
|
+
certTypeProps = _ref.certTypeProps;
|
|
25
|
+
var _certTypeProps$dataSo = certTypeProps.dataSource,
|
|
26
|
+
dataSource = _certTypeProps$dataSo === void 0 ? [] : _certTypeProps$dataSo,
|
|
27
|
+
_certTypeProps$nameKe = certTypeProps.nameKey,
|
|
28
|
+
nameKey = _certTypeProps$nameKe === void 0 ? 'name' : _certTypeProps$nameKe,
|
|
29
|
+
_certTypeProps$codeKe = certTypeProps.codeKey,
|
|
30
|
+
codeKey = _certTypeProps$codeKe === void 0 ? 'code' : _certTypeProps$codeKe,
|
|
31
|
+
restCertTypeProps = _objectWithoutProperties(certTypeProps, _excluded);
|
|
32
|
+
return /*#__PURE__*/React.createElement(_Input.Group, {
|
|
33
|
+
compact: true
|
|
34
|
+
}, /*#__PURE__*/React.createElement(_Form.Item, {
|
|
35
|
+
noStyle: true,
|
|
36
|
+
name: (_certTypeProps$fileNa = certTypeProps.fileName) !== null && _certTypeProps$fileNa !== void 0 ? _certTypeProps$fileNa : 'certType',
|
|
37
|
+
rules: (_certTypeProps$rules = certTypeProps.rules) !== null && _certTypeProps$rules !== void 0 ? _certTypeProps$rules : []
|
|
38
|
+
}, /*#__PURE__*/React.createElement(_Select, _objectSpread(_objectSpread({
|
|
39
|
+
style: {
|
|
40
|
+
width: '40%'
|
|
41
|
+
}
|
|
42
|
+
}, restCertTypeProps), {}, {
|
|
43
|
+
placeholder: (_restCertTypeProps$pl = restCertTypeProps === null || restCertTypeProps === void 0 ? void 0 : restCertTypeProps.placeholder) !== null && _restCertTypeProps$pl !== void 0 ? _restCertTypeProps$pl : '请选择'
|
|
44
|
+
}), (dataSource === null || dataSource === void 0 ? void 0 : dataSource.length) && dataSource.map(function (item) {
|
|
45
|
+
return /*#__PURE__*/React.createElement(_Select.Option, {
|
|
46
|
+
key: item[codeKey],
|
|
47
|
+
value: item[codeKey]
|
|
48
|
+
}, item[nameKey]);
|
|
49
|
+
}))), /*#__PURE__*/React.createElement(_Form.Item, {
|
|
50
|
+
noStyle: true,
|
|
51
|
+
name: (_certNoProps$fileName = certNoProps.fileName) !== null && _certNoProps$fileName !== void 0 ? _certNoProps$fileName : 'certNo',
|
|
52
|
+
rules: (_certNoProps$rules = certNoProps.rules) !== null && _certNoProps$rules !== void 0 ? _certNoProps$rules : []
|
|
53
|
+
}, /*#__PURE__*/React.createElement(_Input, _objectSpread(_objectSpread({
|
|
54
|
+
style: {
|
|
55
|
+
width: '60%'
|
|
56
|
+
}
|
|
57
|
+
}, certNoProps), {}, {
|
|
58
|
+
placeholder: (_certNoProps$placehol = certNoProps === null || certNoProps === void 0 ? void 0 : certNoProps.placeholder) !== null && _certNoProps$placehol !== void 0 ? _certNoProps$placehol : '请输入'
|
|
59
|
+
}))));
|
|
60
|
+
});
|
|
61
|
+
export default ProCertNo;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { InputProps, SelectProps } from 'antd';
|
|
2
|
+
import { Rule } from 'antd/lib/form';
|
|
3
|
+
interface ICertTypeProps extends SelectProps<any> {
|
|
4
|
+
dataSource: [];
|
|
5
|
+
nameKey?: string;
|
|
6
|
+
codeKey?: string;
|
|
7
|
+
fileName?: string;
|
|
8
|
+
rules?: Rule[];
|
|
9
|
+
}
|
|
10
|
+
interface ICertNoProps extends InputProps {
|
|
11
|
+
fileName?: string;
|
|
12
|
+
rules?: Rule[];
|
|
13
|
+
}
|
|
14
|
+
export interface IProps {
|
|
15
|
+
certNoProps: ICertNoProps;
|
|
16
|
+
certTypeProps: ICertTypeProps;
|
|
17
|
+
}
|
|
18
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ProCertValidityPropsType } from './propsType';
|
|
3
|
+
/**
|
|
4
|
+
* 继承了antd原本DatePicker 与 RangePicker接口,
|
|
5
|
+
* 可以在这里使用所有原有antd DatePicker的属性和事件,
|
|
6
|
+
* 并根据自身需要进行扩展
|
|
7
|
+
*/
|
|
8
|
+
export declare const ProCertValidity: React.ForwardRefExoticComponent<ProCertValidityPropsType & React.RefAttributes<unknown>>;
|
|
9
|
+
export default ProCertValidity;
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
import "antd/es/checkbox/style";
|
|
2
|
+
import _Checkbox from "antd/es/checkbox";
|
|
3
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
4
|
+
import "antd/es/input/style";
|
|
5
|
+
import _Input from "antd/es/input";
|
|
6
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
7
|
+
import "antd/es/date-picker/style";
|
|
8
|
+
import _DatePicker from "antd/es/date-picker";
|
|
9
|
+
var _excluded = ["value", "onChange", "disabled", "isRange", "getPopupContainer", "showForever", "proformmode"];
|
|
10
|
+
import moment from 'moment';
|
|
11
|
+
import React, { forwardRef, useMemo, useRef } from 'react';
|
|
12
|
+
var RangePicker = _DatePicker.RangePicker;
|
|
13
|
+
var defaultFormatDate = 'YYYY-MM-DD';
|
|
14
|
+
var defaultPopupContainer = function defaultPopupContainer(triggerNode) {
|
|
15
|
+
return triggerNode.parentNode || document.body;
|
|
16
|
+
};
|
|
17
|
+
// 校验当前时间是否永久
|
|
18
|
+
var checkIsForever = function checkIsForever(date) {
|
|
19
|
+
return date === '9999-01-01';
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* 继承了antd原本DatePicker 与 RangePicker接口,
|
|
23
|
+
* 可以在这里使用所有原有antd DatePicker的属性和事件,
|
|
24
|
+
* 并根据自身需要进行扩展
|
|
25
|
+
*/
|
|
26
|
+
export var ProCertValidity = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
27
|
+
var _value4;
|
|
28
|
+
var value = _ref.value,
|
|
29
|
+
onChange = _ref.onChange,
|
|
30
|
+
_ref$disabled = _ref.disabled,
|
|
31
|
+
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
32
|
+
_ref$isRange = _ref.isRange,
|
|
33
|
+
isRange = _ref$isRange === void 0 ? false : _ref$isRange,
|
|
34
|
+
_ref$getPopupContaine = _ref.getPopupContainer,
|
|
35
|
+
getPopupContainer = _ref$getPopupContaine === void 0 ? defaultPopupContainer : _ref$getPopupContaine,
|
|
36
|
+
_ref$showForever = _ref.showForever,
|
|
37
|
+
showForever = _ref$showForever === void 0 ? true : _ref$showForever,
|
|
38
|
+
proformmode = _ref.proformmode,
|
|
39
|
+
restProps = _objectWithoutProperties(_ref, _excluded);
|
|
40
|
+
var isChange = useRef(false);
|
|
41
|
+
var rangeTime = useMemo(function () {
|
|
42
|
+
value = value || {};
|
|
43
|
+
if (isRange) {
|
|
44
|
+
var _value2 = value,
|
|
45
|
+
startTime = _value2.startTime,
|
|
46
|
+
endTime = _value2.endTime,
|
|
47
|
+
forever = _value2.forever;
|
|
48
|
+
if (forever === 'Y') {
|
|
49
|
+
return {
|
|
50
|
+
range: [moment('9999-01-01'), moment('9999-01-01')],
|
|
51
|
+
forever: true
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
if (startTime && endTime) {
|
|
55
|
+
var tempStartDate = moment(startTime).format(defaultFormatDate);
|
|
56
|
+
var tempEndDate = moment(endTime).format(defaultFormatDate);
|
|
57
|
+
if ((!forever || forever === 'N') && !checkIsForever(tempStartDate) && !checkIsForever(tempEndDate)) {
|
|
58
|
+
return {
|
|
59
|
+
range: [moment(startTime), moment(endTime)],
|
|
60
|
+
forever: false
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
if (checkIsForever(tempStartDate) && checkIsForever(tempEndDate) && !isChange.current) {
|
|
64
|
+
return {
|
|
65
|
+
range: [moment('9999-01-01'), moment('9999-01-01')],
|
|
66
|
+
forever: true
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
} else {
|
|
71
|
+
if (typeof value === 'string' || value._isAMomentObject) {
|
|
72
|
+
var tempDate = moment(value).format(defaultFormatDate);
|
|
73
|
+
if (tempDate && tempDate === '9999-01-01') {
|
|
74
|
+
return {
|
|
75
|
+
range: moment('9999-01-01'),
|
|
76
|
+
forever: true
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
return {
|
|
80
|
+
range: moment(value),
|
|
81
|
+
forever: false
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
var _value3 = value,
|
|
85
|
+
dateTime = _value3.dateTime,
|
|
86
|
+
_forever = _value3.forever;
|
|
87
|
+
if (_forever === 'Y') {
|
|
88
|
+
return {
|
|
89
|
+
range: moment('9999-01-01'),
|
|
90
|
+
forever: true
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
if (dateTime) {
|
|
94
|
+
var _tempDate = moment(dateTime).format(defaultFormatDate);
|
|
95
|
+
if ((!_forever || _forever === 'N') && _tempDate !== '9999-01-01') {
|
|
96
|
+
return {
|
|
97
|
+
range: moment(dateTime),
|
|
98
|
+
forever: false
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
if (_tempDate && _tempDate === '9999-01-01' && !isChange.current) {
|
|
102
|
+
return {
|
|
103
|
+
range: moment('9999-01-01'),
|
|
104
|
+
forever: true
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
return {};
|
|
110
|
+
}, [value, (_value4 = value) === null || _value4 === void 0 ? void 0 : _value4.dateTime]);
|
|
111
|
+
var changeRangeTime = function changeRangeTime(values) {
|
|
112
|
+
onChange({
|
|
113
|
+
startTime: values ? moment(values === null || values === void 0 ? void 0 : values[0]).format(defaultFormatDate) : null,
|
|
114
|
+
endTime: values ? moment(values === null || values === void 0 ? void 0 : values[1]).format(defaultFormatDate) : null,
|
|
115
|
+
forever: 'N'
|
|
116
|
+
});
|
|
117
|
+
};
|
|
118
|
+
var changeDateTime = function changeDateTime(values) {
|
|
119
|
+
onChange({
|
|
120
|
+
dateTime: values ? values.format(defaultFormatDate) : null,
|
|
121
|
+
forever: 'N'
|
|
122
|
+
});
|
|
123
|
+
};
|
|
124
|
+
var changeForever = function changeForever(e) {
|
|
125
|
+
var tempValue = isRange ? {
|
|
126
|
+
dateTime: e.target.checked ? '9999-01-01' : null,
|
|
127
|
+
forever: e.target.checked ? 'Y' : 'N',
|
|
128
|
+
isLong: e.target.checked ? 'Y' : 'N'
|
|
129
|
+
} : {
|
|
130
|
+
startTime: '9999-01-01',
|
|
131
|
+
endTime: '9999-01-01',
|
|
132
|
+
forever: e.target.checked ? 'Y' : 'N'
|
|
133
|
+
};
|
|
134
|
+
isChange.current = true;
|
|
135
|
+
onChange(tempValue);
|
|
136
|
+
};
|
|
137
|
+
if (proformmode === 'view') {
|
|
138
|
+
var _value = '';
|
|
139
|
+
if (rangeTime.forever) {
|
|
140
|
+
_value = '长期';
|
|
141
|
+
} else {
|
|
142
|
+
_value = rangeTime.range ? moment(rangeTime.range).format(defaultFormatDate) : null;
|
|
143
|
+
}
|
|
144
|
+
return /*#__PURE__*/React.createElement(_Input, {
|
|
145
|
+
value: _value,
|
|
146
|
+
disabled: true,
|
|
147
|
+
bordered: false
|
|
148
|
+
});
|
|
149
|
+
}
|
|
150
|
+
return /*#__PURE__*/React.createElement(_Input.Group, {
|
|
151
|
+
compact: true
|
|
152
|
+
}, isRange ? /*#__PURE__*/React.createElement(RangePicker, _objectSpread({
|
|
153
|
+
value: rangeTime.range,
|
|
154
|
+
onChange: changeRangeTime,
|
|
155
|
+
getPopupContainer: getPopupContainer,
|
|
156
|
+
disabled: disabled || rangeTime.forever,
|
|
157
|
+
style: {
|
|
158
|
+
width: 'calc(100% - 84px)'
|
|
159
|
+
}
|
|
160
|
+
}, restProps)) : /*#__PURE__*/React.createElement(_DatePicker, _objectSpread({
|
|
161
|
+
value: rangeTime.range,
|
|
162
|
+
onChange: changeDateTime,
|
|
163
|
+
getPopupContainer: getPopupContainer,
|
|
164
|
+
disabled: disabled || rangeTime.forever,
|
|
165
|
+
style: {
|
|
166
|
+
width: 'calc(100% - 84px)'
|
|
167
|
+
}
|
|
168
|
+
}, restProps)), showForever && /*#__PURE__*/React.createElement("div", {
|
|
169
|
+
className: "ant-input",
|
|
170
|
+
style: {
|
|
171
|
+
width: '84px'
|
|
172
|
+
}
|
|
173
|
+
}, /*#__PURE__*/React.createElement(_Checkbox, {
|
|
174
|
+
checked: rangeTime.forever,
|
|
175
|
+
onChange: changeForever,
|
|
176
|
+
disabled: disabled,
|
|
177
|
+
style: {
|
|
178
|
+
width: '60px'
|
|
179
|
+
}
|
|
180
|
+
}, "\u957F\u671F")));
|
|
181
|
+
});
|
|
182
|
+
export default ProCertValidity;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { DatePickerProps, RangePickerProps } from "antd/lib/date-picker";
|
|
2
|
+
import moment from "moment";
|
|
3
|
+
interface ICertValidityValuePropsType {
|
|
4
|
+
dateTime?: moment.Moment | string;
|
|
5
|
+
forever?: string;
|
|
6
|
+
}
|
|
7
|
+
interface ICertValidityRangeValuePropsType {
|
|
8
|
+
startTime?: moment.Moment | string;
|
|
9
|
+
endTime?: moment.Moment | string;
|
|
10
|
+
forever?: string;
|
|
11
|
+
}
|
|
12
|
+
interface IProCertValidityExtraPropsType {
|
|
13
|
+
value: ICertValidityValuePropsType | ICertValidityRangeValuePropsType | string;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
isRange?: boolean;
|
|
16
|
+
getPopupContainer?: ((node: HTMLElement) => HTMLElement) & ((node: HTMLElement) => Node & ParentNode);
|
|
17
|
+
}
|
|
18
|
+
export declare type ProCertValidityPropsType = (DatePickerProps & IProCertValidityExtraPropsType) | (RangePickerProps & IProCertValidityExtraPropsType);
|
|
19
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|