@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,278 @@
|
|
|
1
|
+
import "antd/es/tooltip/style";
|
|
2
|
+
import _Tooltip from "antd/es/tooltip";
|
|
3
|
+
import "antd/es/space/style";
|
|
4
|
+
import _Space from "antd/es/space";
|
|
5
|
+
import "antd/es/input/style";
|
|
6
|
+
import _Input from "antd/es/input";
|
|
7
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
8
|
+
import "antd/es/message/style";
|
|
9
|
+
import _message from "antd/es/message";
|
|
10
|
+
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
11
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
12
|
+
import "antd/es/select/style";
|
|
13
|
+
import _Select from "antd/es/select";
|
|
14
|
+
var _excluded = ["dataSource", "defaultDisableValue", "optionRender", "onChange", "useRequest", "updateDataSource", "transformResponse", "fieldNames", "tooltip", "onSearch", "otherProps", "labelInValue"];
|
|
15
|
+
import { useDeepCompareEffect, useRequest as useRequestFunc } from 'ahooks';
|
|
16
|
+
import React, { useImperativeHandle, useState, forwardRef } from 'react';
|
|
17
|
+
import { isFunction, isObject, isString, omit, cloneDeep } from 'lodash';
|
|
18
|
+
import { useProConfig } from 'zat-design-pro-component';
|
|
19
|
+
import Container from '../ProForm/components/Container';
|
|
20
|
+
var Option = _Select.Option;
|
|
21
|
+
export var ProSelect = function ProSelect(props, ref) {
|
|
22
|
+
var _ref = useProConfig('ProSelect') || {},
|
|
23
|
+
_ref$fieldNames = _ref.fieldNames,
|
|
24
|
+
proSelectFieldNames = _ref$fieldNames === void 0 ? {} : _ref$fieldNames;
|
|
25
|
+
var label = 'label';
|
|
26
|
+
var code = 'value';
|
|
27
|
+
if (proSelectFieldNames && Object.keys(proSelectFieldNames).length) {
|
|
28
|
+
code = proSelectFieldNames.value;
|
|
29
|
+
label = proSelectFieldNames.label;
|
|
30
|
+
}
|
|
31
|
+
var _props$dataSource = props.dataSource,
|
|
32
|
+
dataSource = _props$dataSource === void 0 ? [] : _props$dataSource,
|
|
33
|
+
defaultDisableValue = props.defaultDisableValue,
|
|
34
|
+
optionRender = props.optionRender,
|
|
35
|
+
onChange = props.onChange,
|
|
36
|
+
useRequest = props.useRequest,
|
|
37
|
+
updateDataSource = props.updateDataSource,
|
|
38
|
+
transformResponse = props.transformResponse,
|
|
39
|
+
fieldNames = props.fieldNames,
|
|
40
|
+
_props$tooltip = props.tooltip,
|
|
41
|
+
tooltip = _props$tooltip === void 0 ? false : _props$tooltip,
|
|
42
|
+
_onSearch = props.onSearch,
|
|
43
|
+
otherProps = props.otherProps,
|
|
44
|
+
labelInValue = props.labelInValue,
|
|
45
|
+
selectProps = _objectWithoutProperties(props, _excluded);
|
|
46
|
+
var value = props.value;
|
|
47
|
+
var _ref2 = otherProps || {},
|
|
48
|
+
isView = _ref2.isView,
|
|
49
|
+
viewEmpty = _ref2.viewEmpty;
|
|
50
|
+
if (fieldNames && Object.keys(fieldNames).length) {
|
|
51
|
+
code = fieldNames.value;
|
|
52
|
+
label = fieldNames.label;
|
|
53
|
+
}
|
|
54
|
+
var _useState = useState(dataSource || []),
|
|
55
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
56
|
+
selectList = _useState2[0],
|
|
57
|
+
setSelectList = _useState2[1];
|
|
58
|
+
var OptionRender = optionRender;
|
|
59
|
+
var defaultOnSuccessFun = function defaultOnSuccessFun(res) {
|
|
60
|
+
var _res$status = res.status,
|
|
61
|
+
status = _res$status === void 0 ? 200 : _res$status,
|
|
62
|
+
msg = res.message,
|
|
63
|
+
data = res.data;
|
|
64
|
+
if (status !== 200) {
|
|
65
|
+
_message.error(msg);
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
setSelectList(data || []);
|
|
69
|
+
};
|
|
70
|
+
var fetchFunction = useRequestFunc(useRequest === null || useRequest === void 0 ? void 0 : useRequest.service, _objectSpread({
|
|
71
|
+
manual: true,
|
|
72
|
+
onSuccess: function onSuccess(data) {
|
|
73
|
+
if (transformResponse && typeof transformResponse === 'function') {
|
|
74
|
+
var responseData = transformResponse(data);
|
|
75
|
+
setSelectList(responseData);
|
|
76
|
+
} else {
|
|
77
|
+
// 接口写死了,无法复用
|
|
78
|
+
updateDataSource ? updateDataSource(data, setSelectList) : defaultOnSuccessFun(data);
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
debounceWait: 300
|
|
82
|
+
}, useRequest === null || useRequest === void 0 ? void 0 : useRequest.options));
|
|
83
|
+
var getValueObject = function getValueObject(input) {
|
|
84
|
+
if (Array.isArray(input) && input.length) {
|
|
85
|
+
var resArr = [];
|
|
86
|
+
input.forEach(function (i) {
|
|
87
|
+
var res = selectList.find(function (item) {
|
|
88
|
+
return item[code] === i;
|
|
89
|
+
});
|
|
90
|
+
if (res) resArr.push(res);
|
|
91
|
+
});
|
|
92
|
+
return resArr;
|
|
93
|
+
}
|
|
94
|
+
return selectList.find(function (item) {
|
|
95
|
+
return item[code] === input;
|
|
96
|
+
});
|
|
97
|
+
};
|
|
98
|
+
useImperativeHandle(ref, function () {
|
|
99
|
+
return {
|
|
100
|
+
getValueObject: getValueObject,
|
|
101
|
+
useRequestRef: fetchFunction
|
|
102
|
+
};
|
|
103
|
+
});
|
|
104
|
+
useDeepCompareEffect(function () {
|
|
105
|
+
setSelectList(dataSource);
|
|
106
|
+
}, [dataSource]);
|
|
107
|
+
useDeepCompareEffect(function () {
|
|
108
|
+
// 默认disable值时,不查询接口
|
|
109
|
+
if (defaultDisableValue || !useRequest) {
|
|
110
|
+
return;
|
|
111
|
+
}
|
|
112
|
+
var _ref3 = (useRequest === null || useRequest === void 0 ? void 0 : useRequest.options) || {},
|
|
113
|
+
defaultParams = _ref3.defaultParams,
|
|
114
|
+
manual = _ref3.manual;
|
|
115
|
+
if (manual) {
|
|
116
|
+
return;
|
|
117
|
+
}
|
|
118
|
+
fetchFunction.run(defaultParams);
|
|
119
|
+
}, [useRequest === null || useRequest === void 0 ? void 0 : useRequest.options, defaultDisableValue]);
|
|
120
|
+
// disable默认值
|
|
121
|
+
if (defaultDisableValue) {
|
|
122
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
123
|
+
title: defaultDisableValue
|
|
124
|
+
}, /*#__PURE__*/React.createElement(_Input, {
|
|
125
|
+
disabled: true,
|
|
126
|
+
defaultValue: defaultDisableValue,
|
|
127
|
+
style: props === null || props === void 0 ? void 0 : props.style
|
|
128
|
+
}));
|
|
129
|
+
}
|
|
130
|
+
var transToLabel = function transToLabel(value) {
|
|
131
|
+
if (!Array.isArray(selectList) || !selectList.length) {
|
|
132
|
+
return viewEmpty;
|
|
133
|
+
}
|
|
134
|
+
var labelList = value.map(function (v) {
|
|
135
|
+
var option = selectList.find(function (item) {
|
|
136
|
+
if (labelInValue) {
|
|
137
|
+
return item[code] === v[code];
|
|
138
|
+
}
|
|
139
|
+
return item[code] === v;
|
|
140
|
+
});
|
|
141
|
+
return selectProps.showCodeName ? "".concat(option[code], "-").concat(option[label]) : option === null || option === void 0 ? void 0 : option[label];
|
|
142
|
+
});
|
|
143
|
+
var record = value.map(function (v) {
|
|
144
|
+
return selectList.find(function (item) {
|
|
145
|
+
if (labelInValue) {
|
|
146
|
+
return item[code] === v[code];
|
|
147
|
+
}
|
|
148
|
+
return item[code] === v;
|
|
149
|
+
});
|
|
150
|
+
}).filter(function (v) {
|
|
151
|
+
return !!v;
|
|
152
|
+
});
|
|
153
|
+
// 自定义option时,默认取optionRender的值
|
|
154
|
+
var _optionRender = function _optionRender() {
|
|
155
|
+
if (!record.length) {
|
|
156
|
+
return viewEmpty;
|
|
157
|
+
}
|
|
158
|
+
var arr = [];
|
|
159
|
+
record.forEach(function (item) {
|
|
160
|
+
arr.push(props.optionRender(item));
|
|
161
|
+
});
|
|
162
|
+
return /*#__PURE__*/React.createElement(_Space, {
|
|
163
|
+
direction: "vertical",
|
|
164
|
+
size: 4
|
|
165
|
+
}, arr.map(function (item) {
|
|
166
|
+
return /*#__PURE__*/React.createElement(React.Fragment, {
|
|
167
|
+
key: item
|
|
168
|
+
}, item);
|
|
169
|
+
}));
|
|
170
|
+
};
|
|
171
|
+
return isFunction(props.optionRender) && record.length ? _optionRender() : labelList === null || labelList === void 0 ? void 0 : labelList.join(',');
|
|
172
|
+
};
|
|
173
|
+
if (isView || props.isView) {
|
|
174
|
+
if (Array.isArray(value)) {
|
|
175
|
+
return /*#__PURE__*/React.createElement(Container, {
|
|
176
|
+
tooltip: true,
|
|
177
|
+
viewEmpty: viewEmpty
|
|
178
|
+
}, transToLabel(value));
|
|
179
|
+
}
|
|
180
|
+
return /*#__PURE__*/React.createElement(Container, {
|
|
181
|
+
viewEmpty: viewEmpty
|
|
182
|
+
}, value ? transToLabel([value]) : null);
|
|
183
|
+
}
|
|
184
|
+
var TooltipOption = function TooltipOption(props) {
|
|
185
|
+
if (tooltip) {
|
|
186
|
+
return /*#__PURE__*/React.createElement(_Tooltip, {
|
|
187
|
+
placement: "topLeft",
|
|
188
|
+
title: /*#__PURE__*/React.createElement("div", {
|
|
189
|
+
onMouseDown: function onMouseDown(e) {
|
|
190
|
+
return e.stopPropagation();
|
|
191
|
+
}
|
|
192
|
+
}, props.title)
|
|
193
|
+
}, props.children);
|
|
194
|
+
}
|
|
195
|
+
return props.children;
|
|
196
|
+
};
|
|
197
|
+
var handleChange = function handleChange(value, option) {
|
|
198
|
+
if (selectProps.mode && selectProps.mode === 'multiple') {
|
|
199
|
+
if (Array.isArray(option)) {
|
|
200
|
+
option.forEach(function (item) {
|
|
201
|
+
Object.assign(item, item.record);
|
|
202
|
+
delete item.record;
|
|
203
|
+
delete item.children;
|
|
204
|
+
});
|
|
205
|
+
}
|
|
206
|
+
if (labelInValue) {
|
|
207
|
+
onChange && onChange(getValueObject(value), option);
|
|
208
|
+
} else {
|
|
209
|
+
onChange && onChange(value, option);
|
|
210
|
+
}
|
|
211
|
+
} else if (!selectProps.mode && labelInValue) {
|
|
212
|
+
onChange(getValueObject(value), option);
|
|
213
|
+
} else {
|
|
214
|
+
onChange && onChange(value, option === null || option === void 0 ? void 0 : option.record);
|
|
215
|
+
}
|
|
216
|
+
};
|
|
217
|
+
/**
|
|
218
|
+
* 处理 labelInValue 模式下值的回填
|
|
219
|
+
* @returns
|
|
220
|
+
*/
|
|
221
|
+
var transformValue = function transformValue() {
|
|
222
|
+
if (labelInValue && !selectProps.mode) {
|
|
223
|
+
if (!isObject(value)) {
|
|
224
|
+
console.warn('labelInValue 模式下的值必须为对象');
|
|
225
|
+
return '';
|
|
226
|
+
}
|
|
227
|
+
return value === null || value === void 0 ? void 0 : value[code];
|
|
228
|
+
}
|
|
229
|
+
if (labelInValue && selectProps.mode) {
|
|
230
|
+
// 对传入的值做一些基础判断
|
|
231
|
+
if (!Array.isArray(value)) {
|
|
232
|
+
return [];
|
|
233
|
+
}
|
|
234
|
+
return value.map(function (item) {
|
|
235
|
+
return item === null || item === void 0 ? void 0 : item[code];
|
|
236
|
+
});
|
|
237
|
+
}
|
|
238
|
+
// Handling Jialuo's Extreme Demands
|
|
239
|
+
if (selectProps.mode && value === null) {
|
|
240
|
+
return undefined;
|
|
241
|
+
}
|
|
242
|
+
return value;
|
|
243
|
+
};
|
|
244
|
+
return /*#__PURE__*/React.createElement(_Select, _objectSpread(_objectSpread({
|
|
245
|
+
placeholder: "\u8BF7\u9009\u62E9",
|
|
246
|
+
allowClear: true,
|
|
247
|
+
showArrow: true,
|
|
248
|
+
onChange: handleChange,
|
|
249
|
+
optionLabelProp: "children" // 解决warning报错,添加默认值
|
|
250
|
+
,
|
|
251
|
+
showSearch: true,
|
|
252
|
+
filterOption: isFunction(_onSearch) ? false : function (input, option) {
|
|
253
|
+
var _option$children, _option$children$prop;
|
|
254
|
+
var value = isString(option === null || option === void 0 ? void 0 : option.children) ? option === null || option === void 0 ? void 0 : option.children : option === null || option === void 0 ? void 0 : (_option$children = option.children) === null || _option$children === void 0 ? void 0 : (_option$children$prop = _option$children.props) === null || _option$children$prop === void 0 ? void 0 : _option$children$prop.title;
|
|
255
|
+
return value.toLowerCase().includes(input.toLowerCase());
|
|
256
|
+
},
|
|
257
|
+
onSearch: function onSearch(value) {
|
|
258
|
+
_onSearch && _onSearch(value, _objectSpread({}, fetchFunction));
|
|
259
|
+
}
|
|
260
|
+
}, omit(cloneDeep(selectProps), ['isView', 'showCodeName'])), {}, {
|
|
261
|
+
value: transformValue()
|
|
262
|
+
}), Array.isArray(selectList) && selectList.map(function (item) {
|
|
263
|
+
return /*#__PURE__*/React.createElement(Option, {
|
|
264
|
+
key: item[code],
|
|
265
|
+
value: item[code],
|
|
266
|
+
record: item,
|
|
267
|
+
disabled: !!item.disabled
|
|
268
|
+
}, /*#__PURE__*/React.createElement(TooltipOption, {
|
|
269
|
+
title: OptionRender ? OptionRender(item) : selectProps.showCodeName ? "".concat(item[code], "-").concat(item[label]) : item[label],
|
|
270
|
+
key: item[code]
|
|
271
|
+
}, OptionRender ? /*#__PURE__*/React.createElement("span", {
|
|
272
|
+
title: OptionRender(item)
|
|
273
|
+
}, OptionRender(item)) : /*#__PURE__*/React.createElement("span", {
|
|
274
|
+
title: "".concat(item[code], "-").concat(item[label])
|
|
275
|
+
}, selectProps.showCodeName ? "".concat(item[code], "-").concat(item[label]) : item[label])));
|
|
276
|
+
}));
|
|
277
|
+
};
|
|
278
|
+
export default /*#__PURE__*/forwardRef(ProSelect);
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import type { SelectProps } from 'antd';
|
|
3
|
+
import { Service, Options, Result } from 'ahooks/lib/useRequest/src/types';
|
|
4
|
+
import { ProFormOtherProps } from '../ProForm/propsType';
|
|
5
|
+
export interface DataOption {
|
|
6
|
+
label?: string;
|
|
7
|
+
value?: string;
|
|
8
|
+
[key: string]: any;
|
|
9
|
+
}
|
|
10
|
+
export interface PropSelectProps extends Omit<SelectProps, 'onSearch'> {
|
|
11
|
+
/** 是否查看模式 */
|
|
12
|
+
isView?: boolean;
|
|
13
|
+
/** 数据源 */
|
|
14
|
+
dataSource?: DataOption[];
|
|
15
|
+
/** 兼容 2.0 版本、3.0 使用view 模式 */
|
|
16
|
+
defaultDisableValue?: string;
|
|
17
|
+
/** 兼容 2.0 版本、3.0 使用 transformResponse */
|
|
18
|
+
updateDataSource?: (data: any, setSelectList: any) => void;
|
|
19
|
+
/** 格式化数据 */
|
|
20
|
+
transformResponse?: (data: any) => DataOption[];
|
|
21
|
+
/** 是否展示 tooltip、当 label 特别长的时候使用 */
|
|
22
|
+
tooltip?: boolean;
|
|
23
|
+
/** 是否展示 code-label 形式 */
|
|
24
|
+
showCodeName?: boolean;
|
|
25
|
+
/** 集成表单 form 的属性 */
|
|
26
|
+
otherProps?: ProFormOtherProps;
|
|
27
|
+
onSearch?: (value: string, useRequest: Result<any, any>) => void;
|
|
28
|
+
/** 自定义展示 */
|
|
29
|
+
optionRender?: (value: DataOption) => string | ReactNode;
|
|
30
|
+
/** 远程请求接口 */
|
|
31
|
+
useRequest?: {
|
|
32
|
+
service: Service<any, any>;
|
|
33
|
+
options?: Options<any, any>;
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export interface ProSelectAction {
|
|
37
|
+
/** 实例方法、根据 code | code[] 批量获取数据 */
|
|
38
|
+
getValueObject: (code: string | string[], key?: string) => any;
|
|
39
|
+
/** 获取发生请求的 useRequest 的 ref */
|
|
40
|
+
useRequestRef: Result<any, any>;
|
|
41
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import cn from 'classnames';
|
|
3
|
+
import { handleScroll } from '../../utils';
|
|
4
|
+
var AnchorSvg = function AnchorSvg(_ref) {
|
|
5
|
+
var color = _ref.color;
|
|
6
|
+
return /*#__PURE__*/React.createElement("svg", {
|
|
7
|
+
viewBox: "0 0 1097 1024",
|
|
8
|
+
width: "18",
|
|
9
|
+
height: "18",
|
|
10
|
+
style: {
|
|
11
|
+
fill: color
|
|
12
|
+
}
|
|
13
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
14
|
+
d: "M570.514286 0a512 512 0 1 1 0 1024A512 512 0 0 1 570.514286 0z m0 73.142857a438.857143 438.857143 0 1 0 0 877.714286A438.857143 438.857143 0 0 0 570.514286 73.142857z"
|
|
15
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
16
|
+
d: "M570.514286 512m-365.714286 0a365.714286 365.714286 0 1 0 731.428571 0 365.714286 365.714286 0 1 0-731.428571 0Z"
|
|
17
|
+
}));
|
|
18
|
+
};
|
|
19
|
+
var SuccessSvg = function SuccessSvg() {
|
|
20
|
+
return /*#__PURE__*/React.createElement("svg", {
|
|
21
|
+
viewBox: "0 0 1408 1024",
|
|
22
|
+
width: "18",
|
|
23
|
+
height: "18"
|
|
24
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
25
|
+
d: "M496.64 906.24a113.92 113.92 0 0 0 161.28 0l691.2-691.2A113.92 113.92 0 1 0 1187.84 53.76L572.416 659.456 296.96 384a113.92 113.92 0 1 0-161.28 161.28l360.96 360.96z"
|
|
26
|
+
}));
|
|
27
|
+
};
|
|
28
|
+
export var MenuItem = function MenuItem(props) {
|
|
29
|
+
var name = props.name,
|
|
30
|
+
code = props.code,
|
|
31
|
+
onOff = props.onOff,
|
|
32
|
+
isStart = props.isStart,
|
|
33
|
+
isEnd = props.isEnd,
|
|
34
|
+
isDisabled = props.isDisabled,
|
|
35
|
+
isCurrentStep = props.isCurrentStep,
|
|
36
|
+
isChecked = props.isChecked,
|
|
37
|
+
errorNum = props.errorNum,
|
|
38
|
+
currentNum = props.currentNum,
|
|
39
|
+
targetOffset = props.targetOffset;
|
|
40
|
+
var renderMenuIcon = function renderMenuIcon() {
|
|
41
|
+
if (isCurrentStep) {
|
|
42
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
43
|
+
className: cn('dot-icon', {
|
|
44
|
+
errored: !!errorNum,
|
|
45
|
+
disabled: isDisabled
|
|
46
|
+
})
|
|
47
|
+
}, currentNum);
|
|
48
|
+
}
|
|
49
|
+
var color;
|
|
50
|
+
!!errorNum && (color = '#ff5050');
|
|
51
|
+
isDisabled && (color = '#939599');
|
|
52
|
+
if (isStart) {
|
|
53
|
+
return /*#__PURE__*/React.createElement(AnchorSvg, {
|
|
54
|
+
color: color
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
if (isEnd) {
|
|
58
|
+
return /*#__PURE__*/React.createElement(AnchorSvg, {
|
|
59
|
+
color: isDisabled ? '#939599' : undefined
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
63
|
+
className: cn('dot', {
|
|
64
|
+
errored: !!errorNum,
|
|
65
|
+
disabled: isDisabled
|
|
66
|
+
})
|
|
67
|
+
});
|
|
68
|
+
};
|
|
69
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
70
|
+
className: cn('com-menu-item', {
|
|
71
|
+
errored: !!errorNum,
|
|
72
|
+
disabled: isDisabled,
|
|
73
|
+
current: isCurrentStep && onOff
|
|
74
|
+
}),
|
|
75
|
+
onClick: function onClick() {
|
|
76
|
+
handleScroll(code, {
|
|
77
|
+
targetOffset: targetOffset
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
81
|
+
className: "menu-item"
|
|
82
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
83
|
+
className: "menu-icon"
|
|
84
|
+
}, renderMenuIcon()), onOff && /*#__PURE__*/React.createElement("div", {
|
|
85
|
+
className: cn('menu-name', {
|
|
86
|
+
disabled: isDisabled
|
|
87
|
+
})
|
|
88
|
+
}, name)), !isDisabled && onOff && /*#__PURE__*/React.createElement("div", {
|
|
89
|
+
className: "checked-status"
|
|
90
|
+
}, isChecked && /*#__PURE__*/React.createElement(SuccessSvg, null), errorNum > 0 && /*#__PURE__*/React.createElement("div", {
|
|
91
|
+
className: "errorDot"
|
|
92
|
+
}, /*#__PURE__*/React.createElement("span", null, errorNum <= 3 ? errorNum : '!'))));
|
|
93
|
+
};
|
|
94
|
+
export default MenuItem;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
3
|
+
var _excluded = ["id", "children"];
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import { useStep } from '../../index';
|
|
6
|
+
export default (function (_ref) {
|
|
7
|
+
var id = _ref.id,
|
|
8
|
+
children = _ref.children,
|
|
9
|
+
restProps = _objectWithoutProperties(_ref, _excluded);
|
|
10
|
+
var _useStep = useStep(),
|
|
11
|
+
register = _useStep.register;
|
|
12
|
+
register(_objectSpread(_objectSpread({}, restProps), {}, {
|
|
13
|
+
id: id
|
|
14
|
+
}));
|
|
15
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
16
|
+
id: id
|
|
17
|
+
}, children);
|
|
18
|
+
});
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
|
|
2
|
+
import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
|
3
|
+
import { throttle } from 'lodash';
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import { useStep } from '../../index';
|
|
6
|
+
export default (function (_ref) {
|
|
7
|
+
var children = _ref.children;
|
|
8
|
+
var _useStep = useStep(),
|
|
9
|
+
notify = _useStep.notify;
|
|
10
|
+
return /*#__PURE__*/React.cloneElement(children, {
|
|
11
|
+
onClick: throttle( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
12
|
+
var values;
|
|
13
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
14
|
+
while (1) switch (_context.prev = _context.next) {
|
|
15
|
+
case 0:
|
|
16
|
+
localStorage.setItem('cache-pro-step', '');
|
|
17
|
+
_context.next = 3;
|
|
18
|
+
return notify === null || notify === void 0 ? void 0 : notify();
|
|
19
|
+
case 3:
|
|
20
|
+
values = _context.sent;
|
|
21
|
+
setTimeout(function () {
|
|
22
|
+
var localData = localStorage.getItem('cache-pro-step');
|
|
23
|
+
if (localData !== 'false') {
|
|
24
|
+
var _children$props, _children$props$onCli;
|
|
25
|
+
children === null || children === void 0 ? void 0 : (_children$props = children.props) === null || _children$props === void 0 ? void 0 : (_children$props$onCli = _children$props.onClick) === null || _children$props$onCli === void 0 ? void 0 : _children$props$onCli.call(_children$props, values);
|
|
26
|
+
}
|
|
27
|
+
}, 0);
|
|
28
|
+
case 5:
|
|
29
|
+
case "end":
|
|
30
|
+
return _context.stop();
|
|
31
|
+
}
|
|
32
|
+
}, _callee);
|
|
33
|
+
})), 3000)
|
|
34
|
+
});
|
|
35
|
+
});
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
|
+
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
3
|
+
import React, { useMemo } from 'react';
|
|
4
|
+
import { cloneDeep } from 'lodash';
|
|
5
|
+
import { useToggle } from 'ahooks';
|
|
6
|
+
import { ReactSVG } from 'react-svg';
|
|
7
|
+
import catalogSvg from '../../../assets/catalog.svg';
|
|
8
|
+
import Anchor from '../Anchor';
|
|
9
|
+
export var Step = function Step(_ref) {
|
|
10
|
+
var fixedTop = _ref.fixedTop,
|
|
11
|
+
_ref$dataSource = _ref.dataSource,
|
|
12
|
+
dataSource = _ref$dataSource === void 0 ? [] : _ref$dataSource,
|
|
13
|
+
activeKey = _ref.activeKey,
|
|
14
|
+
errorCollection = _ref.errorCollection,
|
|
15
|
+
style = _ref.style,
|
|
16
|
+
targetOffset = _ref.targetOffset;
|
|
17
|
+
var _useToggle = useToggle(),
|
|
18
|
+
_useToggle2 = _slicedToArray(_useToggle, 2),
|
|
19
|
+
onOff = _useToggle2[0],
|
|
20
|
+
toggleOnOff = _useToggle2[1].toggle;
|
|
21
|
+
var options = useMemo(function () {
|
|
22
|
+
var nextDataSource = cloneDeep(dataSource);
|
|
23
|
+
var activeIndex;
|
|
24
|
+
if (activeKey) {
|
|
25
|
+
activeIndex = nextDataSource.findIndex(function (item) {
|
|
26
|
+
return item.code === activeKey;
|
|
27
|
+
});
|
|
28
|
+
} else {
|
|
29
|
+
activeIndex = nextDataSource.length - 1;
|
|
30
|
+
}
|
|
31
|
+
nextDataSource.forEach(function (item, index) {
|
|
32
|
+
var errorNum = errorCollection === null || errorCollection === void 0 ? void 0 : errorCollection[item.code];
|
|
33
|
+
item.isStart = index === 0;
|
|
34
|
+
item.isEnd = index === dataSource.length - 1;
|
|
35
|
+
item.isDisabled = index > activeIndex;
|
|
36
|
+
item.isCurrentStep = index === activeIndex;
|
|
37
|
+
item.isChecked = !errorNum;
|
|
38
|
+
item.currentNum = index + 1;
|
|
39
|
+
item.errorNum = errorNum;
|
|
40
|
+
item.targetOffset = targetOffset;
|
|
41
|
+
});
|
|
42
|
+
return nextDataSource;
|
|
43
|
+
}, [dataSource, activeKey, errorCollection]);
|
|
44
|
+
var handleMouseEvent = function handleMouseEvent() {
|
|
45
|
+
toggleOnOff();
|
|
46
|
+
};
|
|
47
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
48
|
+
className: "pro-step ".concat(onOff ? 'open' : 'closed'),
|
|
49
|
+
style: _objectSpread({
|
|
50
|
+
top: fixedTop !== null && fixedTop !== void 0 ? fixedTop : 0,
|
|
51
|
+
maxHeight: "calc(100vh - ".concat(fixedTop, "px)")
|
|
52
|
+
}, style),
|
|
53
|
+
onMouseEnter: handleMouseEvent,
|
|
54
|
+
onMouseLeave: handleMouseEvent
|
|
55
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
56
|
+
className: "step-menu"
|
|
57
|
+
}, /*#__PURE__*/React.createElement(ReactSVG, {
|
|
58
|
+
className: "menu-icon",
|
|
59
|
+
src: catalogSvg
|
|
60
|
+
}), onOff && /*#__PURE__*/React.createElement("div", null, "\u76EE\u5F55")), options.map(function (item) {
|
|
61
|
+
return /*#__PURE__*/React.createElement(React.Fragment, {
|
|
62
|
+
key: item.code
|
|
63
|
+
}, /*#__PURE__*/React.createElement(Anchor, _objectSpread(_objectSpread({}, item), {}, {
|
|
64
|
+
onOff: onOff
|
|
65
|
+
})));
|
|
66
|
+
}));
|
|
67
|
+
};
|
|
68
|
+
export default Step;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ProStepPropsType } from './propsType';
|
|
3
|
+
import './style/index.less';
|
|
4
|
+
export declare const ProStepContext: React.Context<any>;
|
|
5
|
+
export declare const useStep: () => any;
|
|
6
|
+
declare const ProStep: {
|
|
7
|
+
({ children, ...resetProps }: ProStepPropsType): JSX.Element;
|
|
8
|
+
useStep: () => any;
|
|
9
|
+
Item: ({ id, children, ...restProps }: {
|
|
10
|
+
[x: string]: any;
|
|
11
|
+
id: any;
|
|
12
|
+
children: any;
|
|
13
|
+
}) => JSX.Element;
|
|
14
|
+
Listener: ({ children, }: any) => React.DetailedReactHTMLElement<{
|
|
15
|
+
onClick: import("lodash").DebouncedFunc<() => Promise<void>>;
|
|
16
|
+
}, HTMLElement>;
|
|
17
|
+
};
|
|
18
|
+
export default ProStep;
|