@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,397 @@
|
|
|
1
|
+
import "antd/es/input/style";
|
|
2
|
+
import _Input from "antd/es/input";
|
|
3
|
+
import "antd/es/tooltip/style";
|
|
4
|
+
import _Tooltip from "antd/es/tooltip";
|
|
5
|
+
import "antd/es/cascader/style";
|
|
6
|
+
import _Cascader from "antd/es/cascader";
|
|
7
|
+
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
8
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
9
|
+
import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
|
|
10
|
+
import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
|
11
|
+
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
12
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
13
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
14
|
+
var _excluded = ["getPopupContainer", "hasDetail", "detailMaxLength", "fieldNames", "value", "disabled", "dataSource", "onChange", "useRequest", "transformResponse", "level", "isView", "enumCode", "tooltip"];
|
|
15
|
+
import React, { useEffect, useState, memo, useMemo } from 'react';
|
|
16
|
+
import { useSetState } from 'ahooks';
|
|
17
|
+
import { useProConfig } from 'zat-design-pro-component';
|
|
18
|
+
import { tools } from '@zat-design-pro-component/utils';
|
|
19
|
+
import useEnum from '../../../../ProEnum/useEnum';
|
|
20
|
+
var transformDataName = tools.transformDataName;
|
|
21
|
+
var filterDataSource = function filterDataSource(dataSource, level) {
|
|
22
|
+
return dataSource === null || dataSource === void 0 ? void 0 : dataSource.map(function (item) {
|
|
23
|
+
return _objectSpread(_objectSpread({}, item), {}, {
|
|
24
|
+
children: level === 1 ? [] : filterDataSource(item === null || item === void 0 ? void 0 : item.children, level - 1)
|
|
25
|
+
});
|
|
26
|
+
});
|
|
27
|
+
};
|
|
28
|
+
var getAddressLabel = function getAddressLabel(dataSource, value) {
|
|
29
|
+
// 传入dataSource时,得到地址省市区的label,查看模式展示需要
|
|
30
|
+
return ['province', 'city', 'county'].reduce(function (acc, cur, index) {
|
|
31
|
+
var _dataSource;
|
|
32
|
+
var temp = (_dataSource = dataSource) === null || _dataSource === void 0 ? void 0 : _dataSource.find(function (item) {
|
|
33
|
+
return (item === null || item === void 0 ? void 0 : item.value) === (value === null || value === void 0 ? void 0 : value[index]);
|
|
34
|
+
});
|
|
35
|
+
dataSource = (temp === null || temp === void 0 ? void 0 : temp.children) || [];
|
|
36
|
+
acc[cur] = temp === null || temp === void 0 ? void 0 : temp.label;
|
|
37
|
+
return acc;
|
|
38
|
+
}, {});
|
|
39
|
+
};
|
|
40
|
+
var levelMap = {
|
|
41
|
+
1: 'province',
|
|
42
|
+
2: 'city',
|
|
43
|
+
3: 'county'
|
|
44
|
+
};
|
|
45
|
+
var ProAddressBar = function ProAddressBar(props) {
|
|
46
|
+
var _otherProps$otherProp, _ref11, _ref11$filter;
|
|
47
|
+
var _ref = useProConfig('ProAddressBar') || {},
|
|
48
|
+
configUseRequest = _ref.useRequest,
|
|
49
|
+
configTransformResponse = _ref.transformResponse,
|
|
50
|
+
configDataSource = _ref.dataSource,
|
|
51
|
+
configDetailMaxLength = _ref.detailMaxLength,
|
|
52
|
+
configFieldNames = _ref.fieldNames,
|
|
53
|
+
configEnumCode = _ref.enumCode;
|
|
54
|
+
var getPopupContainer = props.getPopupContainer,
|
|
55
|
+
_props$hasDetail = props.hasDetail,
|
|
56
|
+
hasDetail = _props$hasDetail === void 0 ? true : _props$hasDetail,
|
|
57
|
+
_props$detailMaxLengt = props.detailMaxLength,
|
|
58
|
+
detailMaxLength = _props$detailMaxLengt === void 0 ? configDetailMaxLength || 100 : _props$detailMaxLengt,
|
|
59
|
+
_props$fieldNames = props.fieldNames,
|
|
60
|
+
fieldNames = _props$fieldNames === void 0 ? configFieldNames || {
|
|
61
|
+
label: 'name',
|
|
62
|
+
value: 'code'
|
|
63
|
+
} : _props$fieldNames,
|
|
64
|
+
value = props.value,
|
|
65
|
+
disabled = props.disabled,
|
|
66
|
+
_props$dataSource = props.dataSource,
|
|
67
|
+
dataSource = _props$dataSource === void 0 ? configDataSource : _props$dataSource,
|
|
68
|
+
onChange = props.onChange,
|
|
69
|
+
useRequest = props.useRequest,
|
|
70
|
+
_props$transformRespo = props.transformResponse,
|
|
71
|
+
transformResponse = _props$transformRespo === void 0 ? configTransformResponse : _props$transformRespo,
|
|
72
|
+
_props$level = props.level,
|
|
73
|
+
level = _props$level === void 0 ? 3 : _props$level,
|
|
74
|
+
_props$isView = props.isView,
|
|
75
|
+
isView = _props$isView === void 0 ? false : _props$isView,
|
|
76
|
+
_props$enumCode = props.enumCode,
|
|
77
|
+
enumCode = _props$enumCode === void 0 ? configEnumCode : _props$enumCode,
|
|
78
|
+
tooltip = props.tooltip,
|
|
79
|
+
otherProps = _objectWithoutProperties(props, _excluded);
|
|
80
|
+
var realIsView = isView || (otherProps === null || otherProps === void 0 ? void 0 : (_otherProps$otherProp = otherProps.otherProps) === null || _otherProps$otherProp === void 0 ? void 0 : _otherProps$otherProp.isView);
|
|
81
|
+
var _ref2 = value || [],
|
|
82
|
+
_ref3 = _slicedToArray(_ref2, 2),
|
|
83
|
+
province = _ref3[0],
|
|
84
|
+
city = _ref3[1];
|
|
85
|
+
var realLevel = Math.max(2, level);
|
|
86
|
+
var county = realLevel === 3 ? value === null || value === void 0 ? void 0 : value[realLevel - 1] : undefined;
|
|
87
|
+
var address = value === null || value === void 0 ? void 0 : value[realLevel];
|
|
88
|
+
var enumData = useEnum(enumCode);
|
|
89
|
+
var _ref4 = Array.isArray(enumData) ? enumData : [],
|
|
90
|
+
_ref5 = _slicedToArray(_ref4, 1),
|
|
91
|
+
_ref5$ = _ref5[0],
|
|
92
|
+
enumDataSource = _ref5$ === void 0 ? [] : _ref5$;
|
|
93
|
+
var realDataSource = useMemo(function () {
|
|
94
|
+
var innerDataSource = dataSource || (enumCode ? enumDataSource : []);
|
|
95
|
+
return realLevel === 2 ? filterDataSource(innerDataSource, level) : innerDataSource;
|
|
96
|
+
}, [enumCode, realLevel, dataSource, enumDataSource === null || enumDataSource === void 0 ? void 0 : enumDataSource.length]);
|
|
97
|
+
var _configUseRequest$use = _objectSpread(_objectSpread({}, configUseRequest), useRequest),
|
|
98
|
+
service = _configUseRequest$use.service,
|
|
99
|
+
_configUseRequest$use2 = _configUseRequest$use.defaultParams,
|
|
100
|
+
defaultParams = _configUseRequest$use2 === void 0 ? {
|
|
101
|
+
dictType: 'basicCode',
|
|
102
|
+
code: 'CD000049'
|
|
103
|
+
} : _configUseRequest$use2,
|
|
104
|
+
_configUseRequest$use3 = _configUseRequest$use.loadData,
|
|
105
|
+
loadData = _configUseRequest$use3 === void 0 ? true : _configUseRequest$use3,
|
|
106
|
+
_configUseRequest$use4 = _configUseRequest$use.parentKey,
|
|
107
|
+
parentKey = _configUseRequest$use4 === void 0 ? 'parentCode' : _configUseRequest$use4;
|
|
108
|
+
var _useState = useState([]),
|
|
109
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
110
|
+
serviceData = _useState2[0],
|
|
111
|
+
setServiceData = _useState2[1];
|
|
112
|
+
var _useState3 = useState([]),
|
|
113
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
114
|
+
provinces = _useState4[0],
|
|
115
|
+
setProvinces = _useState4[1];
|
|
116
|
+
var _useState5 = useState([]),
|
|
117
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
118
|
+
provinceOptions = _useState6[0],
|
|
119
|
+
setProvinceOptions = _useState6[1];
|
|
120
|
+
var _useState7 = useState(false),
|
|
121
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
122
|
+
fetched = _useState8[0],
|
|
123
|
+
setFetched = _useState8[1];
|
|
124
|
+
var _useSetState = useSetState({
|
|
125
|
+
province: '',
|
|
126
|
+
city: '',
|
|
127
|
+
county: ''
|
|
128
|
+
}),
|
|
129
|
+
_useSetState2 = _slicedToArray(_useSetState, 2),
|
|
130
|
+
defaultLabel = _useSetState2[0],
|
|
131
|
+
setDefaultLabel = _useSetState2[1];
|
|
132
|
+
var _ref6 = defaultLabel || {},
|
|
133
|
+
provinceLabel = _ref6.province,
|
|
134
|
+
cityLabel = _ref6.city,
|
|
135
|
+
countyLabel = _ref6.county;
|
|
136
|
+
var getProvinces = /*#__PURE__*/function () {
|
|
137
|
+
var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(loadData) {
|
|
138
|
+
var _yield$service, data, newData, _newData, _provinces, transFormData;
|
|
139
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
140
|
+
while (1) switch (_context.prev = _context.next) {
|
|
141
|
+
case 0:
|
|
142
|
+
_context.next = 2;
|
|
143
|
+
return service(defaultParams);
|
|
144
|
+
case 2:
|
|
145
|
+
_yield$service = _context.sent;
|
|
146
|
+
data = _yield$service.data;
|
|
147
|
+
newData = data;
|
|
148
|
+
if (transformResponse) {
|
|
149
|
+
newData = transformResponse(data);
|
|
150
|
+
}
|
|
151
|
+
if (loadData) {
|
|
152
|
+
_provinces = (_newData = newData) === null || _newData === void 0 ? void 0 : _newData.map(function (item) {
|
|
153
|
+
return {
|
|
154
|
+
value: item[fieldNames.value],
|
|
155
|
+
label: item[fieldNames.label],
|
|
156
|
+
isLeaf: levelMap[realLevel] === 'province',
|
|
157
|
+
key: 'province'
|
|
158
|
+
};
|
|
159
|
+
});
|
|
160
|
+
setProvinces(_provinces);
|
|
161
|
+
setProvinceOptions(_provinces);
|
|
162
|
+
} else {
|
|
163
|
+
transFormData = transformDataName(newData, {
|
|
164
|
+
label: fieldNames.label,
|
|
165
|
+
value: fieldNames.value,
|
|
166
|
+
children: 'children'
|
|
167
|
+
});
|
|
168
|
+
setServiceData(realLevel === 2 ? filterDataSource(transFormData, level) : transFormData);
|
|
169
|
+
}
|
|
170
|
+
case 7:
|
|
171
|
+
case "end":
|
|
172
|
+
return _context.stop();
|
|
173
|
+
}
|
|
174
|
+
}, _callee);
|
|
175
|
+
}));
|
|
176
|
+
return function getProvinces(_x) {
|
|
177
|
+
return _ref7.apply(this, arguments);
|
|
178
|
+
};
|
|
179
|
+
}();
|
|
180
|
+
var getAddressData = /*#__PURE__*/function () {
|
|
181
|
+
var _ref8 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(params) {
|
|
182
|
+
var _yield$service2, data;
|
|
183
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
184
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
185
|
+
case 0:
|
|
186
|
+
_context2.next = 2;
|
|
187
|
+
return service(_objectSpread(_objectSpread({}, defaultParams), params));
|
|
188
|
+
case 2:
|
|
189
|
+
_yield$service2 = _context2.sent;
|
|
190
|
+
data = _yield$service2.data;
|
|
191
|
+
if (!transformResponse) {
|
|
192
|
+
_context2.next = 6;
|
|
193
|
+
break;
|
|
194
|
+
}
|
|
195
|
+
return _context2.abrupt("return", transformResponse(data));
|
|
196
|
+
case 6:
|
|
197
|
+
return _context2.abrupt("return", data);
|
|
198
|
+
case 7:
|
|
199
|
+
case "end":
|
|
200
|
+
return _context2.stop();
|
|
201
|
+
}
|
|
202
|
+
}, _callee2);
|
|
203
|
+
}));
|
|
204
|
+
return function getAddressData(_x2) {
|
|
205
|
+
return _ref8.apply(this, arguments);
|
|
206
|
+
};
|
|
207
|
+
}();
|
|
208
|
+
// 传入useRequest时,得到地址省市区的label,初次加载需要
|
|
209
|
+
var initAddressLabel = /*#__PURE__*/function () {
|
|
210
|
+
var _ref9 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(key, value, extra) {
|
|
211
|
+
var selectProvince, _newData2, _yield$service3, data, newData;
|
|
212
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
213
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
214
|
+
case 0:
|
|
215
|
+
if (!(key === 'province')) {
|
|
216
|
+
_context3.next = 5;
|
|
217
|
+
break;
|
|
218
|
+
}
|
|
219
|
+
selectProvince = extra === null || extra === void 0 ? void 0 : extra.find(function (item) {
|
|
220
|
+
return item.value === value;
|
|
221
|
+
});
|
|
222
|
+
selectProvince && setDefaultLabel({
|
|
223
|
+
province: selectProvince.label
|
|
224
|
+
});
|
|
225
|
+
_context3.next = 12;
|
|
226
|
+
break;
|
|
227
|
+
case 5:
|
|
228
|
+
_context3.next = 7;
|
|
229
|
+
return service(_objectSpread(_objectSpread({}, defaultParams), extra));
|
|
230
|
+
case 7:
|
|
231
|
+
_yield$service3 = _context3.sent;
|
|
232
|
+
data = _yield$service3.data;
|
|
233
|
+
newData = data;
|
|
234
|
+
if (transformResponse) {
|
|
235
|
+
newData = transformResponse(data);
|
|
236
|
+
}
|
|
237
|
+
(_newData2 = newData) === null || _newData2 === void 0 ? void 0 : _newData2.forEach(function (item) {
|
|
238
|
+
if (item[fieldNames.value] === value) {
|
|
239
|
+
// @ts-ignore
|
|
240
|
+
setDefaultLabel(_defineProperty({}, key, item[fieldNames.label]));
|
|
241
|
+
}
|
|
242
|
+
});
|
|
243
|
+
case 12:
|
|
244
|
+
case "end":
|
|
245
|
+
return _context3.stop();
|
|
246
|
+
}
|
|
247
|
+
}, _callee3);
|
|
248
|
+
}));
|
|
249
|
+
return function initAddressLabel(_x3, _x4, _x5) {
|
|
250
|
+
return _ref9.apply(this, arguments);
|
|
251
|
+
};
|
|
252
|
+
}();
|
|
253
|
+
useEffect(function () {
|
|
254
|
+
if (service) {
|
|
255
|
+
getProvinces(loadData);
|
|
256
|
+
}
|
|
257
|
+
}, [service]);
|
|
258
|
+
useEffect(function () {
|
|
259
|
+
// 传入useRequest时初始化province展示
|
|
260
|
+
if (service && !fetched && province) {
|
|
261
|
+
initAddressLabel('province', province, provinceOptions);
|
|
262
|
+
}
|
|
263
|
+
}, [province, fetched, provinceOptions]);
|
|
264
|
+
useEffect(function () {
|
|
265
|
+
// 传入useRequest时初始化city展示
|
|
266
|
+
if (service && !fetched && province && city) {
|
|
267
|
+
initAddressLabel('city', city, _defineProperty({}, parentKey, province));
|
|
268
|
+
}
|
|
269
|
+
}, [province, city, fetched]);
|
|
270
|
+
useEffect(function () {
|
|
271
|
+
// 传入useRequest时初始化county展示
|
|
272
|
+
if (service && !fetched && city && county) {
|
|
273
|
+
initAddressLabel('county', county, _defineProperty({}, parentKey, city));
|
|
274
|
+
}
|
|
275
|
+
}, [city, county, fetched]);
|
|
276
|
+
useEffect(function () {
|
|
277
|
+
// 没有传入useRequest并且是查看时初始化展示
|
|
278
|
+
if (realIsView && value && realDataSource) {
|
|
279
|
+
setDefaultLabel(getAddressLabel(realDataSource, value));
|
|
280
|
+
}
|
|
281
|
+
}, [realIsView, value, realDataSource]);
|
|
282
|
+
var handleLoadData = /*#__PURE__*/function () {
|
|
283
|
+
var _ref10 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(selectedOptions) {
|
|
284
|
+
var targetOption, data;
|
|
285
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
286
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
287
|
+
case 0:
|
|
288
|
+
targetOption = selectedOptions[selectedOptions.length - 1];
|
|
289
|
+
targetOption.loading = true;
|
|
290
|
+
_context4.next = 4;
|
|
291
|
+
return getAddressData(_defineProperty({}, parentKey, targetOption === null || targetOption === void 0 ? void 0 : targetOption.value));
|
|
292
|
+
case 4:
|
|
293
|
+
data = _context4.sent;
|
|
294
|
+
targetOption.loading = false;
|
|
295
|
+
targetOption.children = data === null || data === void 0 ? void 0 : data.map(function (item) {
|
|
296
|
+
return {
|
|
297
|
+
value: item[fieldNames.value],
|
|
298
|
+
label: item[fieldNames.label],
|
|
299
|
+
isLeaf: targetOption.key === levelMap[realLevel - 1],
|
|
300
|
+
key: targetOption.key === 'province' ? 'city' : 'county'
|
|
301
|
+
};
|
|
302
|
+
});
|
|
303
|
+
setProvinces(_toConsumableArray(provinces));
|
|
304
|
+
setFetched(true);
|
|
305
|
+
case 9:
|
|
306
|
+
case "end":
|
|
307
|
+
return _context4.stop();
|
|
308
|
+
}
|
|
309
|
+
}, _callee4);
|
|
310
|
+
}));
|
|
311
|
+
return function handleLoadData(_x6) {
|
|
312
|
+
return _ref10.apply(this, arguments);
|
|
313
|
+
};
|
|
314
|
+
}();
|
|
315
|
+
var handleChange = function handleChange(changeValue) {
|
|
316
|
+
if (onChange) {
|
|
317
|
+
if (hasDetail && address) {
|
|
318
|
+
var realValue = changeValue || [];
|
|
319
|
+
realValue[realLevel] = address;
|
|
320
|
+
onChange(realValue);
|
|
321
|
+
} else {
|
|
322
|
+
onChange(changeValue);
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
};
|
|
326
|
+
var handleAddressChange = function handleAddressChange(e) {
|
|
327
|
+
if (onChange) {
|
|
328
|
+
if (!e.target.value && !province && !city && !county) {
|
|
329
|
+
onChange(undefined);
|
|
330
|
+
} else {
|
|
331
|
+
var realValue = value ? _toConsumableArray(value) : [];
|
|
332
|
+
realValue[realLevel] = e.target.value;
|
|
333
|
+
onChange(realValue);
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
};
|
|
337
|
+
var displayRender = function displayRender(label) {
|
|
338
|
+
var _filter;
|
|
339
|
+
if (fetched) {
|
|
340
|
+
return label === null || label === void 0 ? void 0 : label.filter(function (item) {
|
|
341
|
+
return !!item;
|
|
342
|
+
}).join('/');
|
|
343
|
+
}
|
|
344
|
+
return value ? (_filter = [provinceLabel, cityLabel, countyLabel].filter(function (item) {
|
|
345
|
+
return !!item;
|
|
346
|
+
})) === null || _filter === void 0 ? void 0 : _filter.join('/') : undefined;
|
|
347
|
+
};
|
|
348
|
+
var addressValue = value && (province || city || county) ? [province, city, county].slice(0, realLevel) : undefined;
|
|
349
|
+
var viewValue = ((_ref11 = [provinceLabel, cityLabel, countyLabel, value === null || value === void 0 ? void 0 : value[realLevel]]) === null || _ref11 === void 0 ? void 0 : (_ref11$filter = _ref11.filter(function (item) {
|
|
350
|
+
return !!item;
|
|
351
|
+
})) === null || _ref11$filter === void 0 ? void 0 : _ref11$filter.join('/')) || '-';
|
|
352
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
353
|
+
className: "pro-address"
|
|
354
|
+
}, realIsView ? viewValue : /*#__PURE__*/React.createElement(React.Fragment, null, dataSource || enumCode || !loadData ? /*#__PURE__*/React.createElement(_Cascader, {
|
|
355
|
+
className: hasDetail ? '' : 'no-detail',
|
|
356
|
+
placeholder: "\u8BF7\u9009\u62E9",
|
|
357
|
+
value: addressValue,
|
|
358
|
+
options: !loadData ? serviceData : realDataSource,
|
|
359
|
+
disabled: disabled,
|
|
360
|
+
displayRender: function displayRender(label) {
|
|
361
|
+
return label === null || label === void 0 ? void 0 : label.filter(function (item) {
|
|
362
|
+
return !!item;
|
|
363
|
+
}).join('/');
|
|
364
|
+
},
|
|
365
|
+
// @ts-ignore
|
|
366
|
+
onChange: handleChange
|
|
367
|
+
}) : /*#__PURE__*/React.createElement(_Cascader, {
|
|
368
|
+
className: hasDetail ? '' : 'no-detail',
|
|
369
|
+
placeholder: "\u8BF7\u9009\u62E9",
|
|
370
|
+
value: addressValue,
|
|
371
|
+
loadData: handleLoadData,
|
|
372
|
+
// @ts-ignore
|
|
373
|
+
options: provinces,
|
|
374
|
+
disabled: disabled,
|
|
375
|
+
displayRender: displayRender,
|
|
376
|
+
changeOnSelect: true,
|
|
377
|
+
// @ts-ignore
|
|
378
|
+
onChange: handleChange
|
|
379
|
+
}), hasDetail && (tooltip && disabled && address ? /*#__PURE__*/React.createElement(_Tooltip, {
|
|
380
|
+
title: address
|
|
381
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
382
|
+
className: "pro-address-detail"
|
|
383
|
+
}, /*#__PURE__*/React.createElement(_Input, {
|
|
384
|
+
disabled: disabled,
|
|
385
|
+
value: address
|
|
386
|
+
}))) : /*#__PURE__*/React.createElement(_Input, {
|
|
387
|
+
allowClear: true,
|
|
388
|
+
disabled: disabled,
|
|
389
|
+
value: address,
|
|
390
|
+
maxLength: detailMaxLength,
|
|
391
|
+
placeholder: "\u8BF7\u8F93\u5165\u8BE6\u7EC6\u5730\u5740",
|
|
392
|
+
// @ts-ignore
|
|
393
|
+
onChange: handleAddressChange
|
|
394
|
+
}))));
|
|
395
|
+
};
|
|
396
|
+
// @ts-ignore
|
|
397
|
+
export default /*#__PURE__*/memo(ProAddressBar);
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { DefaultOptionType } from 'rc-select/lib/Select';
|
|
3
|
+
import { Service } from 'ahooks/lib/useRequest/src/types';
|
|
4
|
+
export interface AddressProps {
|
|
5
|
+
getPopupContainer?: () => ReactNode;
|
|
6
|
+
isView?: boolean;
|
|
7
|
+
value?: string[];
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
hasDetail?: boolean;
|
|
10
|
+
tooltip?: boolean;
|
|
11
|
+
detailMaxLength?: number;
|
|
12
|
+
fieldNames?: {
|
|
13
|
+
label: string;
|
|
14
|
+
value: string;
|
|
15
|
+
};
|
|
16
|
+
dataSource?: DefaultOptionType[];
|
|
17
|
+
useRequest?: {
|
|
18
|
+
loadData?: boolean;
|
|
19
|
+
service: Service<any, any>;
|
|
20
|
+
defaultParams?: any;
|
|
21
|
+
parentKey?: string;
|
|
22
|
+
};
|
|
23
|
+
onChange?: (value: string[]) => void;
|
|
24
|
+
transformResponse?: (data: any[]) => any[];
|
|
25
|
+
level?: number;
|
|
26
|
+
enumCode?: string;
|
|
27
|
+
otherProps?: any;
|
|
28
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
.pro-address {
|
|
2
|
+
display: flex;
|
|
3
|
+
width: 100%;
|
|
4
|
+
|
|
5
|
+
.ant-cascader {
|
|
6
|
+
width: 50% !important;
|
|
7
|
+
|
|
8
|
+
&.no-detail {
|
|
9
|
+
width: 100% !important;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.pro-address-detail {
|
|
14
|
+
width: 50%;
|
|
15
|
+
margin-left: 2px;
|
|
16
|
+
|
|
17
|
+
.ant-input-affix-wrapper {
|
|
18
|
+
width: 100%;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.ant-input-affix-wrapper {
|
|
23
|
+
width: 50%;
|
|
24
|
+
margin-left: 2px;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { ProCombinationProps, ChildPropsItemProps } from './propsType';
|
|
3
|
+
import './style/index.less';
|
|
4
|
+
export declare const ProCombination: FC<ProCombinationProps>;
|
|
5
|
+
export declare const childPropsItemProps: FC<ChildPropsItemProps>;
|
|
6
|
+
export default ProCombination;
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
import "antd/es/button/style";
|
|
2
|
+
import _Button from "antd/es/button";
|
|
3
|
+
import "antd/es/input/style";
|
|
4
|
+
import _Input from "antd/es/input";
|
|
5
|
+
import "antd/es/space/style";
|
|
6
|
+
import _Space from "antd/es/space";
|
|
7
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
8
|
+
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
9
|
+
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
10
|
+
// @ts-nocheck
|
|
11
|
+
import React, { useMemo, useState } from 'react';
|
|
12
|
+
import { cloneDeep } from 'lodash';
|
|
13
|
+
import classNames from 'classnames';
|
|
14
|
+
import Container from '../../Container';
|
|
15
|
+
import * as componentMap from '../../index';
|
|
16
|
+
import { isNullValue, weedOutProps } from '../../../utils';
|
|
17
|
+
import { otherKeys } from '../../../propsType';
|
|
18
|
+
import './style/index.less';
|
|
19
|
+
var useControlled = function useControlled(props) {
|
|
20
|
+
var value = props.value,
|
|
21
|
+
onChange = props.onChange;
|
|
22
|
+
var _useState = useState(value || []),
|
|
23
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
24
|
+
_values = _useState2[0],
|
|
25
|
+
setValues = _useState2[1];
|
|
26
|
+
var handleChange = function handleChange() {
|
|
27
|
+
for (var _len = arguments.length, rest = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
28
|
+
rest[_key] = arguments[_key];
|
|
29
|
+
}
|
|
30
|
+
setValues(rest[0]);
|
|
31
|
+
onChange === null || onChange === void 0 ? void 0 : onChange.apply(void 0, rest);
|
|
32
|
+
};
|
|
33
|
+
if ('value' in props) {
|
|
34
|
+
return [value, function () {
|
|
35
|
+
for (var _len2 = arguments.length, rest = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
36
|
+
rest[_key2] = arguments[_key2];
|
|
37
|
+
}
|
|
38
|
+
return onChange === null || onChange === void 0 ? void 0 : onChange.apply(void 0, rest);
|
|
39
|
+
}];
|
|
40
|
+
}
|
|
41
|
+
return [_values, handleChange];
|
|
42
|
+
};
|
|
43
|
+
export var ProCombination = function ProCombination(props) {
|
|
44
|
+
var _childProps$, _childProps$2;
|
|
45
|
+
var disabled = props.disabled,
|
|
46
|
+
_props$childProps = props.childProps,
|
|
47
|
+
childProps = _props$childProps === void 0 ? [{
|
|
48
|
+
renderType: 'Input'
|
|
49
|
+
}, {
|
|
50
|
+
renderType: 'Input'
|
|
51
|
+
}] : _props$childProps,
|
|
52
|
+
separator = props.separator,
|
|
53
|
+
_props$otherProps = props.otherProps,
|
|
54
|
+
otherProps = _props$otherProps === void 0 ? {} : _props$otherProps;
|
|
55
|
+
var _otherProps$isView = otherProps.isView,
|
|
56
|
+
isView = _otherProps$isView === void 0 ? false : _otherProps$isView,
|
|
57
|
+
viewEmpty = otherProps.viewEmpty,
|
|
58
|
+
form = otherProps.form;
|
|
59
|
+
// 取到对应组件
|
|
60
|
+
var _ref = [componentMap[((_childProps$ = childProps[0]) === null || _childProps$ === void 0 ? void 0 : _childProps$.renderType) || 'Input'], componentMap[((_childProps$2 = childProps[1]) === null || _childProps$2 === void 0 ? void 0 : _childProps$2.renderType) || 'Input']],
|
|
61
|
+
BeforeCom = _ref[0],
|
|
62
|
+
AfterCom = _ref[1];
|
|
63
|
+
var _useControlled = useControlled(props),
|
|
64
|
+
_useControlled2 = _slicedToArray(_useControlled, 2),
|
|
65
|
+
values = _useControlled2[0],
|
|
66
|
+
_handleChange = _useControlled2[1];
|
|
67
|
+
var handleChange = function handleChange(value, rest, index) {
|
|
68
|
+
var _value, _value$target, _values2, _values3, _childProps$index, _childProps$index$onC;
|
|
69
|
+
if (((_value = value) === null || _value === void 0 ? void 0 : (_value$target = _value.target) === null || _value$target === void 0 ? void 0 : _value$target.value) !== undefined) {
|
|
70
|
+
value = value.target.value;
|
|
71
|
+
}
|
|
72
|
+
var _values;
|
|
73
|
+
if (index === 0) {
|
|
74
|
+
_values = [value, values === null || values === void 0 ? void 0 : values[1]];
|
|
75
|
+
}
|
|
76
|
+
if (index === 1) {
|
|
77
|
+
_values = [values === null || values === void 0 ? void 0 : values[0], value];
|
|
78
|
+
}
|
|
79
|
+
// 如果两个值都不存在 则values置为[] 防止必填校验无效
|
|
80
|
+
if (isNullValue((_values2 = _values) === null || _values2 === void 0 ? void 0 : _values2[0]) && isNullValue((_values3 = _values) === null || _values3 === void 0 ? void 0 : _values3[1])) {
|
|
81
|
+
_values = [];
|
|
82
|
+
}
|
|
83
|
+
_handleChange(_values, rest === null || rest === void 0 ? void 0 : rest[0], form);
|
|
84
|
+
(_childProps$index = childProps[index]) === null || _childProps$index === void 0 ? void 0 : (_childProps$index$onC = _childProps$index.onChange) === null || _childProps$index$onC === void 0 ? void 0 : _childProps$index$onC.call(_childProps$index, value, rest === null || rest === void 0 ? void 0 : rest[0], form); // 支持子组件分别传入onChange
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
var className = classNames({
|
|
88
|
+
'pro-combination': true,
|
|
89
|
+
'pro-combination-view': isView
|
|
90
|
+
});
|
|
91
|
+
var addedOtherKeys = useMemo(function () {
|
|
92
|
+
return [].concat(_toConsumableArray(otherKeys), ['renderType']);
|
|
93
|
+
}, [otherKeys]);
|
|
94
|
+
// 剔除其他参数
|
|
95
|
+
var _useMemo = useMemo(function () {
|
|
96
|
+
return weedOutProps(childProps[0] || {}, addedOtherKeys);
|
|
97
|
+
}, [childProps[0]]),
|
|
98
|
+
_useMemo2 = _slicedToArray(_useMemo, 2),
|
|
99
|
+
beforeProps = _useMemo2[0],
|
|
100
|
+
beforeOtherProps = _useMemo2[1];
|
|
101
|
+
var _useMemo3 = useMemo(function () {
|
|
102
|
+
return weedOutProps(childProps[1] || {}, addedOtherKeys);
|
|
103
|
+
}, [childProps[1]]),
|
|
104
|
+
_useMemo4 = _slicedToArray(_useMemo3, 2),
|
|
105
|
+
afterProps = _useMemo4[0],
|
|
106
|
+
afterOtherProps = _useMemo4[1];
|
|
107
|
+
// 查看模式
|
|
108
|
+
if (isView) {
|
|
109
|
+
if (!values || !Array.isArray(values)) {
|
|
110
|
+
return otherProps.viewEmpty;
|
|
111
|
+
}
|
|
112
|
+
var childData = cloneDeep(childProps);
|
|
113
|
+
if (!childData || Array.isArray(childData) && !childData.length) {
|
|
114
|
+
childData.push({
|
|
115
|
+
renderType: 'Input'
|
|
116
|
+
});
|
|
117
|
+
childData.push({
|
|
118
|
+
renderType: 'Input'
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
if (childData.length === 1) {
|
|
122
|
+
childData.push({
|
|
123
|
+
renderType: 'Input'
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
// 第一个值
|
|
127
|
+
var oneValue = '-';
|
|
128
|
+
// 第二个值
|
|
129
|
+
var twoValue = '-';
|
|
130
|
+
childData.forEach(function (item, index) {
|
|
131
|
+
if (index === 0 && (values === null || values === void 0 ? void 0 : values[0])) {
|
|
132
|
+
if (['ProEnum', 'ProSelect', 'Select'].includes(item.renderType)) {
|
|
133
|
+
oneValue = /*#__PURE__*/React.createElement(BeforeCom, _objectSpread(_objectSpread({}, beforeProps), {}, {
|
|
134
|
+
value: values === null || values === void 0 ? void 0 : values[0],
|
|
135
|
+
otherProps: _objectSpread(_objectSpread({}, beforeOtherProps), {}, {
|
|
136
|
+
isView: isView
|
|
137
|
+
})
|
|
138
|
+
}));
|
|
139
|
+
} else {
|
|
140
|
+
oneValue = values === null || values === void 0 ? void 0 : values[0];
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
if (index === 1 && (values === null || values === void 0 ? void 0 : values[1])) {
|
|
144
|
+
if (['ProEnum', 'ProSelect', 'Select'].includes(item.renderType)) {
|
|
145
|
+
twoValue = /*#__PURE__*/React.createElement(AfterCom, _objectSpread(_objectSpread({}, afterProps), {}, {
|
|
146
|
+
value: values === null || values === void 0 ? void 0 : values[1],
|
|
147
|
+
otherProps: _objectSpread(_objectSpread({}, afterOtherProps), {}, {
|
|
148
|
+
isView: isView
|
|
149
|
+
})
|
|
150
|
+
}));
|
|
151
|
+
} else {
|
|
152
|
+
twoValue = values === null || values === void 0 ? void 0 : values[1];
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
});
|
|
156
|
+
return /*#__PURE__*/React.createElement(Container, {
|
|
157
|
+
viewEmpty: viewEmpty
|
|
158
|
+
}, /*#__PURE__*/React.createElement(_Space, {
|
|
159
|
+
size: 8
|
|
160
|
+
}, oneValue, " ", twoValue));
|
|
161
|
+
}
|
|
162
|
+
return /*#__PURE__*/React.createElement(_Input.Group, {
|
|
163
|
+
compact: true,
|
|
164
|
+
className: className
|
|
165
|
+
}, /*#__PURE__*/React.createElement(BeforeCom, _objectSpread(_objectSpread({
|
|
166
|
+
disabled: disabled
|
|
167
|
+
}, beforeProps), {}, {
|
|
168
|
+
value: values === null || values === void 0 ? void 0 : values[0],
|
|
169
|
+
onChange: function onChange(value) {
|
|
170
|
+
for (var _len3 = arguments.length, rest = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {
|
|
171
|
+
rest[_key3 - 1] = arguments[_key3];
|
|
172
|
+
}
|
|
173
|
+
return handleChange(value, rest, 0);
|
|
174
|
+
},
|
|
175
|
+
otherProps: beforeOtherProps
|
|
176
|
+
})), isView ? separator : separator && /*#__PURE__*/React.createElement(_Button, {
|
|
177
|
+
disabled: true
|
|
178
|
+
}, separator), /*#__PURE__*/React.createElement(AfterCom, _objectSpread(_objectSpread({
|
|
179
|
+
disabled: disabled
|
|
180
|
+
}, afterProps), {}, {
|
|
181
|
+
value: values === null || values === void 0 ? void 0 : values[1],
|
|
182
|
+
onChange: function onChange(value) {
|
|
183
|
+
for (var _len4 = arguments.length, rest = new Array(_len4 > 1 ? _len4 - 1 : 0), _key4 = 1; _key4 < _len4; _key4++) {
|
|
184
|
+
rest[_key4 - 1] = arguments[_key4];
|
|
185
|
+
}
|
|
186
|
+
return handleChange(value, rest, 1);
|
|
187
|
+
},
|
|
188
|
+
otherProps: afterOtherProps
|
|
189
|
+
})));
|
|
190
|
+
};
|
|
191
|
+
ProCombination.defaultProps = {
|
|
192
|
+
disabled: false
|
|
193
|
+
};
|
|
194
|
+
export var childPropsItemProps = function childPropsItemProps(props) {
|
|
195
|
+
return null;
|
|
196
|
+
};
|
|
197
|
+
export default ProCombination;
|