@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,646 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = void 0;
|
|
9
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
10
|
+
var _regeneratorRuntime2 = _interopRequireDefault(require("@babel/runtime/helpers/regeneratorRuntime"));
|
|
11
|
+
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
12
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
13
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
14
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
15
|
+
var _icons = require("@ant-design/icons");
|
|
16
|
+
var _ahooks = require("ahooks");
|
|
17
|
+
var _antd = require("antd");
|
|
18
|
+
var _lodash = require("lodash");
|
|
19
|
+
var _reactSvg = require("react-svg");
|
|
20
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
21
|
+
var _zatDesignProComponent = require("zat-design-pro-component");
|
|
22
|
+
var _Container = _interopRequireDefault(require("../../Container"));
|
|
23
|
+
var _view = _interopRequireDefault(require("../../../../assets/view.svg"));
|
|
24
|
+
var _useRequestList2 = _interopRequireDefault(require("./hooks/useRequestList"));
|
|
25
|
+
var _excluded = ["value", "onChange", "disabled", "labelInValue", "fieldNames", "readOnly", "addonAfter", "configOption", "title", "onFormat", "showCodeName", "optionRender", "customRender", "style", "className", "beforeOpen", "isTooltip", "otherProps"],
|
|
26
|
+
_excluded2 = ["onOk"],
|
|
27
|
+
_excluded3 = ["rowKey", "columns", "rowSelection"];
|
|
28
|
+
var ProModalSelect = function ProModalSelect(props, ref) {
|
|
29
|
+
var _formColumns$;
|
|
30
|
+
var value = props.value,
|
|
31
|
+
onChange = props.onChange,
|
|
32
|
+
disabled = props.disabled,
|
|
33
|
+
_props$labelInValue = props.labelInValue,
|
|
34
|
+
labelInValue = _props$labelInValue === void 0 ? false : _props$labelInValue,
|
|
35
|
+
fieldNames = props.fieldNames,
|
|
36
|
+
_props$readOnly = props.readOnly,
|
|
37
|
+
readOnly = _props$readOnly === void 0 ? true : _props$readOnly,
|
|
38
|
+
addonAfter = props.addonAfter,
|
|
39
|
+
configOption = props.configOption,
|
|
40
|
+
title = props.title,
|
|
41
|
+
onFormat = props.onFormat,
|
|
42
|
+
showCodeName = props.showCodeName,
|
|
43
|
+
optionRender = props.optionRender,
|
|
44
|
+
customRender = props.customRender,
|
|
45
|
+
style = props.style,
|
|
46
|
+
className = props.className,
|
|
47
|
+
beforeOpen = props.beforeOpen,
|
|
48
|
+
isTooltip = props.isTooltip,
|
|
49
|
+
otherProps = props.otherProps,
|
|
50
|
+
restInputProps = (0, _objectWithoutProperties2.default)(props, _excluded);
|
|
51
|
+
if (!configOption || Object.prototype.toString.call(configOption) !== '[object Object]') {
|
|
52
|
+
throw new Error('error: 请检查枚举选择弹框的配置项【configOption】');
|
|
53
|
+
}
|
|
54
|
+
var _configOption$type = configOption.type,
|
|
55
|
+
type = _configOption$type === void 0 ? 'radio' : _configOption$type,
|
|
56
|
+
useRequest = configOption.useRequest,
|
|
57
|
+
transformParams = configOption.transformParams,
|
|
58
|
+
transformResponse = configOption.transformResponse,
|
|
59
|
+
formColumns = configOption.formColumns,
|
|
60
|
+
_configOption$withPag = configOption.withPagination,
|
|
61
|
+
withPagination = _configOption$withPag === void 0 ? true : _configOption$withPag,
|
|
62
|
+
modalProps = configOption.modalProps,
|
|
63
|
+
tableProps = configOption.tableProps;
|
|
64
|
+
var _ref = modalProps || {},
|
|
65
|
+
onOk = _ref.onOk,
|
|
66
|
+
restModalProps = (0, _objectWithoutProperties2.default)(_ref, _excluded2);
|
|
67
|
+
var _ref2 = otherProps || {},
|
|
68
|
+
_ref2$isView = _ref2.isView,
|
|
69
|
+
isView = _ref2$isView === void 0 ? false : _ref2$isView,
|
|
70
|
+
viewEmpty = _ref2.viewEmpty;
|
|
71
|
+
// 是否多选
|
|
72
|
+
var isMultiple = type === 'checkbox';
|
|
73
|
+
// 生成一个唯一id,用于满足tooltip功能
|
|
74
|
+
var uuid = Math.random().toString(36).slice(-6);
|
|
75
|
+
// 全局配置fieldNames指定 value与label的key
|
|
76
|
+
var _ref3 = (0, _zatDesignProComponent.useProConfig)('ProModalSelect') || {},
|
|
77
|
+
_ref3$fieldNames = _ref3.fieldNames,
|
|
78
|
+
proModalSelectFieldNames = _ref3$fieldNames === void 0 ? {} : _ref3$fieldNames;
|
|
79
|
+
var labelKey = 'label';
|
|
80
|
+
var valueKey = 'value';
|
|
81
|
+
if (proModalSelectFieldNames && Object.keys(proModalSelectFieldNames).length) {
|
|
82
|
+
labelKey = proModalSelectFieldNames.label;
|
|
83
|
+
valueKey = proModalSelectFieldNames.value;
|
|
84
|
+
}
|
|
85
|
+
// 表单上配置的权重大于全局配置
|
|
86
|
+
if (fieldNames && Object.keys(fieldNames).length) {
|
|
87
|
+
labelKey = fieldNames.label;
|
|
88
|
+
valueKey = fieldNames.value;
|
|
89
|
+
}
|
|
90
|
+
var _ref4 = tableProps || {},
|
|
91
|
+
_ref4$rowKey = _ref4.rowKey,
|
|
92
|
+
rowKey = _ref4$rowKey === void 0 ? valueKey : _ref4$rowKey,
|
|
93
|
+
columns = _ref4.columns,
|
|
94
|
+
rowSelection = _ref4.rowSelection,
|
|
95
|
+
restTableProps = (0, _objectWithoutProperties2.default)(_ref4, _excluded3);
|
|
96
|
+
var _useSetState = (0, _ahooks.useSetState)({
|
|
97
|
+
_value: value,
|
|
98
|
+
isInit: true,
|
|
99
|
+
onOff: false,
|
|
100
|
+
visible: false,
|
|
101
|
+
open: false,
|
|
102
|
+
selectedRows: [],
|
|
103
|
+
selectedRowKeys: []
|
|
104
|
+
}),
|
|
105
|
+
_useSetState2 = (0, _slicedToArray2.default)(_useSetState, 2),
|
|
106
|
+
_useSetState2$ = _useSetState2[0],
|
|
107
|
+
_value = _useSetState2$._value,
|
|
108
|
+
isInit = _useSetState2$.isInit,
|
|
109
|
+
onOff = _useSetState2$.onOff,
|
|
110
|
+
visible = _useSetState2$.visible,
|
|
111
|
+
open = _useSetState2$.open,
|
|
112
|
+
selectedRows = _useSetState2$.selectedRows,
|
|
113
|
+
selectedRowKeys = _useSetState2$.selectedRowKeys,
|
|
114
|
+
setState = _useSetState2[1];
|
|
115
|
+
var _Form$useForm = _antd.Form.useForm(),
|
|
116
|
+
_Form$useForm2 = (0, _slicedToArray2.default)(_Form$useForm, 1),
|
|
117
|
+
form = _Form$useForm2[0];
|
|
118
|
+
var _useRequestList = (0, _useRequestList2.default)(useRequest === null || useRequest === void 0 ? void 0 : useRequest.service, {
|
|
119
|
+
withPagination: withPagination,
|
|
120
|
+
transformParams: transformParams,
|
|
121
|
+
transformResponse: transformResponse
|
|
122
|
+
}, (0, _objectSpread2.default)({
|
|
123
|
+
manual: true,
|
|
124
|
+
ready: (useRequest === null || useRequest === void 0 ? void 0 : useRequest.initParams) || visible
|
|
125
|
+
}, useRequest === null || useRequest === void 0 ? void 0 : useRequest.options)),
|
|
126
|
+
data = _useRequestList.data,
|
|
127
|
+
loading = _useRequestList.loading,
|
|
128
|
+
pagination = _useRequestList.pagination,
|
|
129
|
+
onSearch = _useRequestList.onSearch,
|
|
130
|
+
onReset = _useRequestList.onReset,
|
|
131
|
+
runAsync = _useRequestList.runAsync,
|
|
132
|
+
mutate = _useRequestList.mutate;
|
|
133
|
+
var defaultOptionRender = function defaultOptionRender(rowData) {
|
|
134
|
+
return rowData === null || rowData === void 0 ? void 0 : rowData[labelKey];
|
|
135
|
+
};
|
|
136
|
+
var handleFormat = optionRender || onFormat || defaultOptionRender;
|
|
137
|
+
if (showCodeName) {
|
|
138
|
+
handleFormat = function handleFormat(_ref5) {
|
|
139
|
+
var value = _ref5.value,
|
|
140
|
+
label = _ref5.label;
|
|
141
|
+
return "".concat(value, "-").concat(label);
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* 格式化数据方法,展示在输入框中
|
|
146
|
+
* @date 2023-02-16
|
|
147
|
+
* @param {any} data 当前选中的值 labelInValue模式下为选中行对象,单值模式为value值
|
|
148
|
+
* @returns {any}
|
|
149
|
+
*/
|
|
150
|
+
var formatValue = function formatValue(data) {
|
|
151
|
+
var _data$map;
|
|
152
|
+
if (typeof data === 'string' || typeof data === 'number') {
|
|
153
|
+
return data;
|
|
154
|
+
}
|
|
155
|
+
if (Object.prototype.toString.call(data) === '[object Object]') {
|
|
156
|
+
return handleFormat((0, _objectSpread2.default)((0, _objectSpread2.default)({}, data), {}, {
|
|
157
|
+
value: data[valueKey],
|
|
158
|
+
label: data[labelKey]
|
|
159
|
+
}));
|
|
160
|
+
}
|
|
161
|
+
return (0, _lodash.isArray)(data) ? data === null || data === void 0 ? void 0 : (_data$map = data.map(function (item) {
|
|
162
|
+
return handleFormat((0, _objectSpread2.default)((0, _objectSpread2.default)({}, item), {}, {
|
|
163
|
+
value: item[valueKey],
|
|
164
|
+
label: item[labelKey]
|
|
165
|
+
}));
|
|
166
|
+
})) === null || _data$map === void 0 ? void 0 : _data$map.join(',') : undefined;
|
|
167
|
+
};
|
|
168
|
+
/**
|
|
169
|
+
* 获取表格的rowKey,支持函数、字符串
|
|
170
|
+
* @date 2023-02-16
|
|
171
|
+
* @param {any} record 表格行数据
|
|
172
|
+
* @returns {any}
|
|
173
|
+
*/
|
|
174
|
+
var getRowKey = function getRowKey(record) {
|
|
175
|
+
if (typeof rowKey === 'function') {
|
|
176
|
+
return rowKey(record);
|
|
177
|
+
}
|
|
178
|
+
return record[rowKey];
|
|
179
|
+
};
|
|
180
|
+
/**
|
|
181
|
+
* 执行onChange暴露出来的第一个参数取数方法
|
|
182
|
+
* @date 2023-02-16
|
|
183
|
+
* @param {any} selectedRows 选中行数据
|
|
184
|
+
* @returns {any}
|
|
185
|
+
*/
|
|
186
|
+
var getNextValues = function getNextValues(selectedRows) {
|
|
187
|
+
if (isMultiple) {
|
|
188
|
+
return selectedRows.map(function (item) {
|
|
189
|
+
return item === null || item === void 0 ? void 0 : item[valueKey];
|
|
190
|
+
});
|
|
191
|
+
}
|
|
192
|
+
return selectedRows === null || selectedRows === void 0 ? void 0 : selectedRows[valueKey];
|
|
193
|
+
};
|
|
194
|
+
var handleChangeValue = function handleChangeValue(e) {
|
|
195
|
+
onChange(e.target.value);
|
|
196
|
+
if (!readOnly) {
|
|
197
|
+
setState({
|
|
198
|
+
_value: e.target.value
|
|
199
|
+
});
|
|
200
|
+
}
|
|
201
|
+
};
|
|
202
|
+
// 清空表单项
|
|
203
|
+
var handleClearValue = function handleClearValue() {
|
|
204
|
+
onChange(undefined, {});
|
|
205
|
+
setState({
|
|
206
|
+
_value: undefined,
|
|
207
|
+
selectedRowKeys: [],
|
|
208
|
+
selectedRows: []
|
|
209
|
+
});
|
|
210
|
+
};
|
|
211
|
+
var handleClick = /*#__PURE__*/function () {
|
|
212
|
+
var _ref6 = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee() {
|
|
213
|
+
var _yield$beforeOpen, res;
|
|
214
|
+
return (0, _regeneratorRuntime2.default)().wrap(function _callee$(_context) {
|
|
215
|
+
while (1) switch (_context.prev = _context.next) {
|
|
216
|
+
case 0:
|
|
217
|
+
if (disabled) {
|
|
218
|
+
_context.next = 14;
|
|
219
|
+
break;
|
|
220
|
+
}
|
|
221
|
+
_context.next = 3;
|
|
222
|
+
return beforeOpen === null || beforeOpen === void 0 ? void 0 : beforeOpen();
|
|
223
|
+
case 3:
|
|
224
|
+
_context.t1 = _yield$beforeOpen = _context.sent;
|
|
225
|
+
_context.t0 = _context.t1 !== null;
|
|
226
|
+
if (!_context.t0) {
|
|
227
|
+
_context.next = 7;
|
|
228
|
+
break;
|
|
229
|
+
}
|
|
230
|
+
_context.t0 = _yield$beforeOpen !== void 0;
|
|
231
|
+
case 7:
|
|
232
|
+
if (!_context.t0) {
|
|
233
|
+
_context.next = 11;
|
|
234
|
+
break;
|
|
235
|
+
}
|
|
236
|
+
_context.t2 = _yield$beforeOpen;
|
|
237
|
+
_context.next = 12;
|
|
238
|
+
break;
|
|
239
|
+
case 11:
|
|
240
|
+
_context.t2 = true;
|
|
241
|
+
case 12:
|
|
242
|
+
res = _context.t2;
|
|
243
|
+
if (res) {
|
|
244
|
+
setState({
|
|
245
|
+
onOff: true
|
|
246
|
+
});
|
|
247
|
+
}
|
|
248
|
+
case 14:
|
|
249
|
+
case "end":
|
|
250
|
+
return _context.stop();
|
|
251
|
+
}
|
|
252
|
+
}, _callee);
|
|
253
|
+
}));
|
|
254
|
+
return function handleClick() {
|
|
255
|
+
return _ref6.apply(this, arguments);
|
|
256
|
+
};
|
|
257
|
+
}();
|
|
258
|
+
var handleClose = function handleClose() {
|
|
259
|
+
var _useRequest$options;
|
|
260
|
+
form.resetFields();
|
|
261
|
+
setState({
|
|
262
|
+
onOff: false,
|
|
263
|
+
visible: false,
|
|
264
|
+
isInit: false
|
|
265
|
+
});
|
|
266
|
+
// 当设置manual为true时,清空当前弹框内已搜索出来的值
|
|
267
|
+
if (useRequest === null || useRequest === void 0 ? void 0 : (_useRequest$options = useRequest.options) === null || _useRequest$options === void 0 ? void 0 : _useRequest$options.manual) {
|
|
268
|
+
mutate(function () {
|
|
269
|
+
return [];
|
|
270
|
+
});
|
|
271
|
+
}
|
|
272
|
+
};
|
|
273
|
+
var handleFinish = /*#__PURE__*/function () {
|
|
274
|
+
var _ref7 = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee2() {
|
|
275
|
+
var data, flag, res;
|
|
276
|
+
return (0, _regeneratorRuntime2.default)().wrap(function _callee2$(_context2) {
|
|
277
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
278
|
+
case 0:
|
|
279
|
+
if (selectedRows.length) {
|
|
280
|
+
_context2.next = 3;
|
|
281
|
+
break;
|
|
282
|
+
}
|
|
283
|
+
_antd.message.error('请先勾选');
|
|
284
|
+
return _context2.abrupt("return", false);
|
|
285
|
+
case 3:
|
|
286
|
+
data = isMultiple ? selectedRows : selectedRows === null || selectedRows === void 0 ? void 0 : selectedRows[0]; // @ts-ignore
|
|
287
|
+
data.value = data[valueKey];
|
|
288
|
+
// @ts-ignore
|
|
289
|
+
data.label = data[labelKey];
|
|
290
|
+
flag = true;
|
|
291
|
+
if (!onOk) {
|
|
292
|
+
_context2.next = 12;
|
|
293
|
+
break;
|
|
294
|
+
}
|
|
295
|
+
_context2.next = 10;
|
|
296
|
+
return onOk(data);
|
|
297
|
+
case 10:
|
|
298
|
+
res = _context2.sent;
|
|
299
|
+
if (res !== null && res !== undefined) {
|
|
300
|
+
flag = res;
|
|
301
|
+
}
|
|
302
|
+
case 12:
|
|
303
|
+
if (flag) {
|
|
304
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(labelInValue ? data : getNextValues(data), data);
|
|
305
|
+
// 更新内部展示值
|
|
306
|
+
setState({
|
|
307
|
+
_value: data
|
|
308
|
+
});
|
|
309
|
+
handleClose();
|
|
310
|
+
}
|
|
311
|
+
return _context2.abrupt("return", flag);
|
|
312
|
+
case 14:
|
|
313
|
+
case "end":
|
|
314
|
+
return _context2.stop();
|
|
315
|
+
}
|
|
316
|
+
}, _callee2);
|
|
317
|
+
}));
|
|
318
|
+
return function handleFinish() {
|
|
319
|
+
return _ref7.apply(this, arguments);
|
|
320
|
+
};
|
|
321
|
+
}();
|
|
322
|
+
var handleSearch = /*#__PURE__*/function () {
|
|
323
|
+
var _ref8 = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee3() {
|
|
324
|
+
var values;
|
|
325
|
+
return (0, _regeneratorRuntime2.default)().wrap(function _callee3$(_context3) {
|
|
326
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
327
|
+
case 0:
|
|
328
|
+
_context3.next = 2;
|
|
329
|
+
return form.validateFields();
|
|
330
|
+
case 2:
|
|
331
|
+
values = _context3.sent;
|
|
332
|
+
onSearch((0, _objectSpread2.default)((0, _objectSpread2.default)({}, values), {}, {
|
|
333
|
+
d: Date.now()
|
|
334
|
+
}));
|
|
335
|
+
case 4:
|
|
336
|
+
case "end":
|
|
337
|
+
return _context3.stop();
|
|
338
|
+
}
|
|
339
|
+
}, _callee3);
|
|
340
|
+
}));
|
|
341
|
+
return function handleSearch() {
|
|
342
|
+
return _ref8.apply(this, arguments);
|
|
343
|
+
};
|
|
344
|
+
}();
|
|
345
|
+
var _rowSelection = (0, _objectSpread2.default)({
|
|
346
|
+
type: type,
|
|
347
|
+
selectedRowKeys: selectedRowKeys,
|
|
348
|
+
onChange: function onChange(rowKeys, rows) {
|
|
349
|
+
setState({
|
|
350
|
+
selectedRowKeys: rowKeys,
|
|
351
|
+
selectedRows: rows
|
|
352
|
+
});
|
|
353
|
+
},
|
|
354
|
+
getCheckboxProps: function getCheckboxProps(record) {
|
|
355
|
+
return {
|
|
356
|
+
disabled: record === null || record === void 0 ? void 0 : record.disabled
|
|
357
|
+
};
|
|
358
|
+
}
|
|
359
|
+
}, rowSelection);
|
|
360
|
+
// 点击行进行勾选
|
|
361
|
+
var handleClickRow = function handleClickRow(record) {
|
|
362
|
+
var _rowSelection$getChec, _rowSelection$getChec2;
|
|
363
|
+
if (_rowSelection === null || _rowSelection === void 0 ? void 0 : (_rowSelection$getChec = _rowSelection.getCheckboxProps) === null || _rowSelection$getChec === void 0 ? void 0 : (_rowSelection$getChec2 = _rowSelection$getChec.call(_rowSelection, record)) === null || _rowSelection$getChec2 === void 0 ? void 0 : _rowSelection$getChec2.disabled) {
|
|
364
|
+
return;
|
|
365
|
+
}
|
|
366
|
+
if (record === null || record === void 0 ? void 0 : record.disabled) return;
|
|
367
|
+
var selectedValue = getRowKey(record);
|
|
368
|
+
var tempSelectedRows = (0, _lodash.cloneDeep)(selectedRows);
|
|
369
|
+
var tempSelectedRowKeys = (0, _lodash.cloneDeep)(selectedRowKeys);
|
|
370
|
+
if (isMultiple) {
|
|
371
|
+
var rowIndex = tempSelectedRows.findIndex(function (item) {
|
|
372
|
+
return getRowKey(item) === selectedValue;
|
|
373
|
+
});
|
|
374
|
+
var rowKeyIndex = tempSelectedRowKeys.findIndex(function (item) {
|
|
375
|
+
return item === selectedValue;
|
|
376
|
+
});
|
|
377
|
+
if (rowKeyIndex > -1) {
|
|
378
|
+
tempSelectedRows.splice(rowIndex, 1);
|
|
379
|
+
tempSelectedRowKeys.splice(rowKeyIndex, 1);
|
|
380
|
+
} else {
|
|
381
|
+
tempSelectedRows.push(record);
|
|
382
|
+
tempSelectedRowKeys.push(selectedValue);
|
|
383
|
+
}
|
|
384
|
+
} else {
|
|
385
|
+
tempSelectedRows = [record];
|
|
386
|
+
tempSelectedRowKeys = [selectedValue];
|
|
387
|
+
}
|
|
388
|
+
setState({
|
|
389
|
+
selectedRows: tempSelectedRows,
|
|
390
|
+
selectedRowKeys: tempSelectedRowKeys
|
|
391
|
+
});
|
|
392
|
+
};
|
|
393
|
+
// 初始化回显,当传入initParams时,前端用来回险
|
|
394
|
+
var getInitValues = /*#__PURE__*/function () {
|
|
395
|
+
var _ref9 = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee4() {
|
|
396
|
+
var _useRequest$options2, _useRequest$options3, queryBean, page, params, res, _list, list, _res$data, _data, nextSelectRowKeys;
|
|
397
|
+
return (0, _regeneratorRuntime2.default)().wrap(function _callee4$(_context4) {
|
|
398
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
399
|
+
case 0:
|
|
400
|
+
if (typeof (useRequest === null || useRequest === void 0 ? void 0 : useRequest.initParams) === 'function') {
|
|
401
|
+
useRequest.initParams = useRequest === null || useRequest === void 0 ? void 0 : useRequest.initParams(value);
|
|
402
|
+
}
|
|
403
|
+
if (!(useRequest === null || useRequest === void 0 ? void 0 : useRequest.initParams)) {
|
|
404
|
+
_context4.next = 13;
|
|
405
|
+
break;
|
|
406
|
+
}
|
|
407
|
+
if (readOnly) {
|
|
408
|
+
_context4.next = 5;
|
|
409
|
+
break;
|
|
410
|
+
}
|
|
411
|
+
setState({
|
|
412
|
+
_value: value,
|
|
413
|
+
isInit: false
|
|
414
|
+
});
|
|
415
|
+
return _context4.abrupt("return");
|
|
416
|
+
case 5:
|
|
417
|
+
queryBean = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, useRequest === null || useRequest === void 0 ? void 0 : (_useRequest$options2 = useRequest.options) === null || _useRequest$options2 === void 0 ? void 0 : _useRequest$options2.defaultParams), useRequest === null || useRequest === void 0 ? void 0 : useRequest.initParams);
|
|
418
|
+
page = (0, _objectSpread2.default)({
|
|
419
|
+
pageNum: 1,
|
|
420
|
+
pageSize: 10
|
|
421
|
+
}, useRequest === null || useRequest === void 0 ? void 0 : (_useRequest$options3 = useRequest.options) === null || _useRequest$options3 === void 0 ? void 0 : _useRequest$options3.page);
|
|
422
|
+
params = withPagination ? (0, _objectSpread2.default)((0, _objectSpread2.default)({}, page), {}, {
|
|
423
|
+
queryBean: queryBean !== null && queryBean !== void 0 ? queryBean : {}
|
|
424
|
+
}) : queryBean;
|
|
425
|
+
params = transformParams ? transformParams(params) : params;
|
|
426
|
+
_context4.next = 11;
|
|
427
|
+
return runAsync(params);
|
|
428
|
+
case 11:
|
|
429
|
+
res = _context4.sent;
|
|
430
|
+
if (res === null || res === void 0 ? void 0 : res.data) {
|
|
431
|
+
list = [];
|
|
432
|
+
if (transformResponse) {
|
|
433
|
+
list = transformResponse(res === null || res === void 0 ? void 0 : res.data);
|
|
434
|
+
} else {
|
|
435
|
+
list = withPagination ? res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.list : res === null || res === void 0 ? void 0 : res.data;
|
|
436
|
+
}
|
|
437
|
+
_data = isMultiple ? list : (_list = list) === null || _list === void 0 ? void 0 : _list[0];
|
|
438
|
+
nextSelectRowKeys = isMultiple ? value : [value]; // 更新内部展示值
|
|
439
|
+
setState({
|
|
440
|
+
_value: _data,
|
|
441
|
+
isInit: false,
|
|
442
|
+
selectedRows: list,
|
|
443
|
+
selectedRowKeys: nextSelectRowKeys
|
|
444
|
+
});
|
|
445
|
+
}
|
|
446
|
+
case 13:
|
|
447
|
+
case "end":
|
|
448
|
+
return _context4.stop();
|
|
449
|
+
}
|
|
450
|
+
}, _callee4);
|
|
451
|
+
}));
|
|
452
|
+
return function getInitValues() {
|
|
453
|
+
return _ref9.apply(this, arguments);
|
|
454
|
+
};
|
|
455
|
+
}();
|
|
456
|
+
(0, _react.useImperativeHandle)(ref, function () {
|
|
457
|
+
return {
|
|
458
|
+
handleClick: handleClick,
|
|
459
|
+
handleSearch: handleSearch
|
|
460
|
+
};
|
|
461
|
+
});
|
|
462
|
+
(0, _react.useEffect)(function () {
|
|
463
|
+
if (!value) {
|
|
464
|
+
setState({
|
|
465
|
+
selectedRowKeys: [],
|
|
466
|
+
selectedRows: [],
|
|
467
|
+
_value: undefined
|
|
468
|
+
});
|
|
469
|
+
} else if (Object.prototype.toString.call(value) === '[object Object]') {
|
|
470
|
+
var _initialValue;
|
|
471
|
+
var initialValue = (_initialValue = {}, (0, _defineProperty2.default)(_initialValue, valueKey, value[valueKey]), (0, _defineProperty2.default)(_initialValue, labelKey, value[labelKey]), _initialValue);
|
|
472
|
+
setState({
|
|
473
|
+
selectedRowKeys: [value],
|
|
474
|
+
selectedRows: [initialValue],
|
|
475
|
+
_value: initialValue
|
|
476
|
+
});
|
|
477
|
+
}
|
|
478
|
+
if (onOff && !visible) {
|
|
479
|
+
var _useRequest$options4;
|
|
480
|
+
if ((useRequest === null || useRequest === void 0 ? void 0 : (_useRequest$options4 = useRequest.options) === null || _useRequest$options4 === void 0 ? void 0 : _useRequest$options4.manual) !== true) {
|
|
481
|
+
onReset();
|
|
482
|
+
}
|
|
483
|
+
var nextState = {
|
|
484
|
+
visible: true
|
|
485
|
+
};
|
|
486
|
+
if (labelInValue) {
|
|
487
|
+
if (!value) {
|
|
488
|
+
nextState.selectedRowKeys = [];
|
|
489
|
+
nextState.selectedRows = [];
|
|
490
|
+
}
|
|
491
|
+
if (Object.prototype.toString.call(value) === '[object Object]') {
|
|
492
|
+
nextState.selectedRowKeys = [getRowKey(value)];
|
|
493
|
+
nextState.selectedRows = [value];
|
|
494
|
+
}
|
|
495
|
+
if ((0, _lodash.isArray)(value)) {
|
|
496
|
+
nextState.selectedRowKeys = value.map(function (item) {
|
|
497
|
+
return getRowKey(item);
|
|
498
|
+
});
|
|
499
|
+
nextState.selectedRows = value;
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
setState(nextState);
|
|
503
|
+
}
|
|
504
|
+
}, [onOff, visible, value]);
|
|
505
|
+
(0, _react.useEffect)(function () {
|
|
506
|
+
if (value && !visible && isInit) {
|
|
507
|
+
getInitValues();
|
|
508
|
+
}
|
|
509
|
+
}, [value, visible, isInit]);
|
|
510
|
+
var defaultAddonAfter = /*#__PURE__*/_react.default.createElement("div", {
|
|
511
|
+
className: "pro-enum-input-addonAfter"
|
|
512
|
+
}, value && !disabled && /*#__PURE__*/_react.default.createElement("span", {
|
|
513
|
+
className: "close-icon"
|
|
514
|
+
}, /*#__PURE__*/_react.default.createElement(_icons.CloseOutlined, {
|
|
515
|
+
onClick: handleClearValue
|
|
516
|
+
})), /*#__PURE__*/_react.default.createElement(_reactSvg.ReactSVG, {
|
|
517
|
+
className: "viewSvg",
|
|
518
|
+
src: _view.default,
|
|
519
|
+
onClick: handleClick
|
|
520
|
+
}));
|
|
521
|
+
var forceAddonAfterRender = function forceAddonAfterRender() {
|
|
522
|
+
if (isView || disabled) {
|
|
523
|
+
return;
|
|
524
|
+
}
|
|
525
|
+
if (addonAfter) {
|
|
526
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
527
|
+
onClick: handleClick
|
|
528
|
+
}, addonAfter);
|
|
529
|
+
}
|
|
530
|
+
return defaultAddonAfter;
|
|
531
|
+
};
|
|
532
|
+
// 加个中间状态Input
|
|
533
|
+
var initRender = /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_antd.Input, (0, _objectSpread2.default)({
|
|
534
|
+
value: formatValue(labelInValue ? value : _value),
|
|
535
|
+
readOnly: readOnly,
|
|
536
|
+
onClick: readOnly ? handleClick : undefined,
|
|
537
|
+
onChange: handleChangeValue,
|
|
538
|
+
disabled: disabled,
|
|
539
|
+
addonAfter: forceAddonAfterRender(),
|
|
540
|
+
placeholder: "\u8BF7\u9009\u62E9"
|
|
541
|
+
}, restInputProps)), /*#__PURE__*/_react.default.createElement(_antd.Input, {
|
|
542
|
+
type: "hidden",
|
|
543
|
+
value: value
|
|
544
|
+
}));
|
|
545
|
+
if (customRender && /*#__PURE__*/_react.default.isValidElement(customRender)) {
|
|
546
|
+
initRender = /*#__PURE__*/_react.default.createElement("div", {
|
|
547
|
+
className: "pro-modal-select-init",
|
|
548
|
+
onClick: handleClick
|
|
549
|
+
}, customRender);
|
|
550
|
+
}
|
|
551
|
+
(0, _react.useEffect)(function () {
|
|
552
|
+
if (isTooltip && value) {
|
|
553
|
+
var dom = document.getElementById(uuid);
|
|
554
|
+
dom.addEventListener('mouseover', function (e) {
|
|
555
|
+
if (value && e.target.tagName === 'INPUT') {
|
|
556
|
+
setState({
|
|
557
|
+
open: true
|
|
558
|
+
});
|
|
559
|
+
}
|
|
560
|
+
});
|
|
561
|
+
dom.addEventListener('mouseout', function (e) {
|
|
562
|
+
if (e.target.tagName === 'INPUT') {
|
|
563
|
+
setState({
|
|
564
|
+
open: false
|
|
565
|
+
});
|
|
566
|
+
}
|
|
567
|
+
});
|
|
568
|
+
return function () {
|
|
569
|
+
dom.removeEventListener('mouseover', function (e) {
|
|
570
|
+
if (value && e.target.tagName === 'INPUT') {
|
|
571
|
+
setState({
|
|
572
|
+
open: true
|
|
573
|
+
});
|
|
574
|
+
}
|
|
575
|
+
});
|
|
576
|
+
dom.removeEventListener('mouseout', function (e) {
|
|
577
|
+
if (e.target.tagName === 'INPUT') {
|
|
578
|
+
setState({
|
|
579
|
+
open: false
|
|
580
|
+
});
|
|
581
|
+
}
|
|
582
|
+
});
|
|
583
|
+
};
|
|
584
|
+
}
|
|
585
|
+
}, [value, isTooltip]);
|
|
586
|
+
// 当搜索条件只有一个时,且为输入框,默认设置suffix
|
|
587
|
+
if ((formColumns === null || formColumns === void 0 ? void 0 : formColumns.length) === 1 && (formColumns === null || formColumns === void 0 ? void 0 : (_formColumns$ = formColumns[0]) === null || _formColumns$ === void 0 ? void 0 : _formColumns$.type) === 'Input') {
|
|
588
|
+
var _formColumns$2, _formColumns$3, _formColumns$3$fieldP;
|
|
589
|
+
if (!((_formColumns$2 = formColumns[0]) === null || _formColumns$2 === void 0 ? void 0 : _formColumns$2.fieldProps)) {
|
|
590
|
+
formColumns[0].fieldProps = {};
|
|
591
|
+
}
|
|
592
|
+
if (!(0, _lodash.isFunction)(formColumns[0].fieldProps) && !(formColumns === null || formColumns === void 0 ? void 0 : (_formColumns$3 = formColumns[0]) === null || _formColumns$3 === void 0 ? void 0 : (_formColumns$3$fieldP = _formColumns$3.fieldProps) === null || _formColumns$3$fieldP === void 0 ? void 0 : _formColumns$3$fieldP.suffix)) {
|
|
593
|
+
formColumns[0].fieldProps.suffix = /*#__PURE__*/_react.default.createElement(_icons.SearchOutlined, {
|
|
594
|
+
onClick: handleSearch
|
|
595
|
+
});
|
|
596
|
+
}
|
|
597
|
+
}
|
|
598
|
+
if (isView) {
|
|
599
|
+
if (!value) {
|
|
600
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, viewEmpty);
|
|
601
|
+
}
|
|
602
|
+
return /*#__PURE__*/_react.default.createElement(_Container.default, {
|
|
603
|
+
viewEmpty: viewEmpty
|
|
604
|
+
}, "".concat(formatValue(labelInValue ? value : _value || '')));
|
|
605
|
+
}
|
|
606
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
607
|
+
id: uuid,
|
|
608
|
+
className: "pro-modal-select ".concat(className !== null && className !== void 0 ? className : ''),
|
|
609
|
+
style: style
|
|
610
|
+
}, isTooltip && value ? /*#__PURE__*/_react.default.createElement(_antd.Tooltip, {
|
|
611
|
+
placement: "topLeft",
|
|
612
|
+
open: open,
|
|
613
|
+
title: formatValue(labelInValue ? value : _value)
|
|
614
|
+
}, initRender) : initRender, /*#__PURE__*/_react.default.createElement(_zatDesignProComponent.ProDrawerForm, (0, _objectSpread2.default)({
|
|
615
|
+
showType: "Modal",
|
|
616
|
+
title: title,
|
|
617
|
+
width: "50%",
|
|
618
|
+
onOk: handleFinish,
|
|
619
|
+
onCancel: handleClose,
|
|
620
|
+
visible: visible
|
|
621
|
+
}, restModalProps), /*#__PURE__*/_react.default.createElement(_zatDesignProComponent.ProForm, {
|
|
622
|
+
form: form,
|
|
623
|
+
columns: formColumns,
|
|
624
|
+
onFinish: handleSearch,
|
|
625
|
+
footer: (formColumns === null || formColumns === void 0 ? void 0 : formColumns.length) > 1
|
|
626
|
+
}), /*#__PURE__*/_react.default.createElement(_zatDesignProComponent.ProTable, (0, _objectSpread2.default)({
|
|
627
|
+
onRow: function onRow(record) {
|
|
628
|
+
return {
|
|
629
|
+
onClick: function onClick() {
|
|
630
|
+
return handleClickRow(record);
|
|
631
|
+
}
|
|
632
|
+
};
|
|
633
|
+
},
|
|
634
|
+
rowKey: rowKey,
|
|
635
|
+
loading: loading,
|
|
636
|
+
scroll: {
|
|
637
|
+
y: '250px'
|
|
638
|
+
},
|
|
639
|
+
rowSelection: _rowSelection,
|
|
640
|
+
columns: columns,
|
|
641
|
+
dataSource: data,
|
|
642
|
+
pagination: withPagination ? pagination : false
|
|
643
|
+
}, restTableProps))));
|
|
644
|
+
};
|
|
645
|
+
var _default = /*#__PURE__*/(0, _react.forwardRef)(ProModalSelect);
|
|
646
|
+
exports.default = _default;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { InputProps, ModalProps } from 'antd';
|
|
2
|
+
import { Service, Options } from 'ahooks/lib/useRequest/src/types';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { ProColumnProps } from '../../render/propsType';
|
|
5
|
+
import { ProFormOtherProps } from '../../../propsType';
|
|
6
|
+
type OnOkFunction = (list: Record<string, any>[]) => boolean;
|
|
7
|
+
interface ConfigOption {
|
|
8
|
+
useRequest?: {
|
|
9
|
+
service: Service<any, any>;
|
|
10
|
+
options?: Options<any, any> & {
|
|
11
|
+
page?: Object;
|
|
12
|
+
defaultParams?: any;
|
|
13
|
+
initParams?: any;
|
|
14
|
+
};
|
|
15
|
+
initParams?: any;
|
|
16
|
+
};
|
|
17
|
+
formColumns?: ProColumnProps[];
|
|
18
|
+
type?: 'radio' | 'checkbox';
|
|
19
|
+
withPagination?: boolean;
|
|
20
|
+
transformParams?: (params: Object) => Object;
|
|
21
|
+
transformResponse?: (data: Object[]) => Object[];
|
|
22
|
+
modalProps?: ModalProps & {
|
|
23
|
+
onOk?: OnOkFunction;
|
|
24
|
+
};
|
|
25
|
+
tableProps?: Record<string, any>;
|
|
26
|
+
}
|
|
27
|
+
interface ProModalPropsType {
|
|
28
|
+
configOption: ConfigOption;
|
|
29
|
+
onChange?: (value: number | string | undefined, option?: any) => void;
|
|
30
|
+
title: ModalProps['title'];
|
|
31
|
+
ref?: React.MutableRefObject<any>;
|
|
32
|
+
onFormat?: (value: Object) => string;
|
|
33
|
+
optionRender?: (value: Object) => string;
|
|
34
|
+
fieldNames?: any;
|
|
35
|
+
isView?: boolean;
|
|
36
|
+
customRender?: React.ReactNode;
|
|
37
|
+
viewEmpty?: React.ReactNode;
|
|
38
|
+
otherProps?: ProFormOtherProps;
|
|
39
|
+
labelInValue?: boolean;
|
|
40
|
+
beforeOpen?: any;
|
|
41
|
+
isTooltip?: any;
|
|
42
|
+
showCodeName?: boolean;
|
|
43
|
+
}
|
|
44
|
+
export declare type ProModalSelectPropsType = InputProps & ProModalPropsType;
|
|
45
|
+
export {};
|