@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,266 @@
|
|
|
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 _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
10
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
11
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
12
|
+
var _icons = require("@ant-design/icons");
|
|
13
|
+
var _ahooks = require("ahooks");
|
|
14
|
+
var _antd = require("antd");
|
|
15
|
+
var _lodash = require("lodash");
|
|
16
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
17
|
+
var _reactSvg = require("react-svg");
|
|
18
|
+
var _zatDesignProComponent = require("zat-design-pro-component");
|
|
19
|
+
var _InputWithSuffix = _interopRequireDefault(require("../InputWithSuffix"));
|
|
20
|
+
var _useRequestList2 = _interopRequireDefault(require("./hooks/useRequestList"));
|
|
21
|
+
var _view = _interopRequireDefault(require("../../../../assets/view.svg"));
|
|
22
|
+
var _excluded = ["value", "onChange", "disabled", "readOnly", "suffix", "handleFormat", "configOption", "proformmode"],
|
|
23
|
+
_excluded2 = ["title", "onOk"],
|
|
24
|
+
_excluded3 = ["rowKey", "columns"];
|
|
25
|
+
var defaultFormat = function defaultFormat(rowData) {
|
|
26
|
+
return "".concat(rowData.code, "-").concat(rowData.name);
|
|
27
|
+
};
|
|
28
|
+
var EnumSelect = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
29
|
+
var value = props.value,
|
|
30
|
+
onChange = props.onChange,
|
|
31
|
+
disabled = props.disabled,
|
|
32
|
+
_props$readOnly = props.readOnly,
|
|
33
|
+
readOnly = _props$readOnly === void 0 ? true : _props$readOnly,
|
|
34
|
+
suffix = props.suffix,
|
|
35
|
+
_props$handleFormat = props.handleFormat,
|
|
36
|
+
handleFormat = _props$handleFormat === void 0 ? defaultFormat : _props$handleFormat,
|
|
37
|
+
configOption = props.configOption,
|
|
38
|
+
proformmode = props.proformmode,
|
|
39
|
+
restInputProps = (0, _objectWithoutProperties2.default)(props, _excluded);
|
|
40
|
+
if (!configOption || Object.prototype.toString.call(configOption) !== '[object Object]') {
|
|
41
|
+
throw new Error('error: 请检查枚举选择弹框的配置项【configOption】');
|
|
42
|
+
}
|
|
43
|
+
var _configOption$mode = configOption.mode,
|
|
44
|
+
mode = _configOption$mode === void 0 ? 'radio' : _configOption$mode,
|
|
45
|
+
fetchOptions = configOption.fetchOptions,
|
|
46
|
+
useRequestOptions = configOption.useRequestOptions,
|
|
47
|
+
_configOption$conditi = configOption.conditionKey,
|
|
48
|
+
conditionKey = _configOption$conditi === void 0 ? 'queryBean' : _configOption$conditi,
|
|
49
|
+
conditionColumns = configOption.conditionColumns,
|
|
50
|
+
defaultParams = configOption.defaultParams,
|
|
51
|
+
_configOption$withPag = configOption.withPagination,
|
|
52
|
+
withPagination = _configOption$withPag === void 0 ? true : _configOption$withPag,
|
|
53
|
+
_configOption$paginat = configOption.paginationPosition,
|
|
54
|
+
paginationPosition = _configOption$paginat === void 0 ? 'modalBottom' : _configOption$paginat,
|
|
55
|
+
handleFormatDataSource = configOption.handleFormatDataSource,
|
|
56
|
+
defaultSelectedRows = configOption.defaultSelectedRows,
|
|
57
|
+
modalProps = configOption.modalProps,
|
|
58
|
+
tableProps = configOption.tableProps;
|
|
59
|
+
var isView = proformmode === 'view';
|
|
60
|
+
var isModalBottom = paginationPosition === 'modalBottom';
|
|
61
|
+
var _ref = modalProps || {},
|
|
62
|
+
title = _ref.title,
|
|
63
|
+
onOk = _ref.onOk,
|
|
64
|
+
restModalProps = (0, _objectWithoutProperties2.default)(_ref, _excluded2);
|
|
65
|
+
var _ref2 = tableProps || {},
|
|
66
|
+
_ref2$rowKey = _ref2.rowKey,
|
|
67
|
+
rowKey = _ref2$rowKey === void 0 ? 'id' : _ref2$rowKey,
|
|
68
|
+
columns = _ref2.columns,
|
|
69
|
+
restTableProps = (0, _objectWithoutProperties2.default)(_ref2, _excluded3);
|
|
70
|
+
var _useSetState = (0, _ahooks.useSetState)({
|
|
71
|
+
onOff: false,
|
|
72
|
+
visible: false,
|
|
73
|
+
selectedRows: [],
|
|
74
|
+
selectedRowKeys: []
|
|
75
|
+
}),
|
|
76
|
+
_useSetState2 = (0, _slicedToArray2.default)(_useSetState, 2),
|
|
77
|
+
state = _useSetState2[0],
|
|
78
|
+
setState = _useSetState2[1];
|
|
79
|
+
var _Form$useForm = _antd.Form.useForm(),
|
|
80
|
+
_Form$useForm2 = (0, _slicedToArray2.default)(_Form$useForm, 1),
|
|
81
|
+
form = _Form$useForm2[0];
|
|
82
|
+
var _useRequestList = (0, _useRequestList2.default)(fetchOptions, {
|
|
83
|
+
conditionKey: conditionKey,
|
|
84
|
+
withPagination: withPagination,
|
|
85
|
+
handleFormatDataSource: handleFormatDataSource,
|
|
86
|
+
defaultParams: defaultParams
|
|
87
|
+
}, (0, _objectSpread2.default)({
|
|
88
|
+
ready: state.onOff
|
|
89
|
+
}, useRequestOptions)),
|
|
90
|
+
data = _useRequestList.data,
|
|
91
|
+
loading = _useRequestList.loading,
|
|
92
|
+
pagination = _useRequestList.pagination,
|
|
93
|
+
onSearch = _useRequestList.onSearch,
|
|
94
|
+
onReset = _useRequestList.onReset;
|
|
95
|
+
// 是否多选
|
|
96
|
+
var isMultiple = mode === 'checkbox';
|
|
97
|
+
var handleChangeValue = function handleChangeValue(e) {
|
|
98
|
+
onChange(e.target.value);
|
|
99
|
+
};
|
|
100
|
+
// 清空表单项
|
|
101
|
+
var handleClearValue = function handleClearValue() {
|
|
102
|
+
onChange('');
|
|
103
|
+
setState({
|
|
104
|
+
selectedRowKeys: [],
|
|
105
|
+
selectedRows: []
|
|
106
|
+
});
|
|
107
|
+
};
|
|
108
|
+
var handleClick = function handleClick() {
|
|
109
|
+
if (!disabled) {
|
|
110
|
+
setState({
|
|
111
|
+
onOff: true
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
};
|
|
115
|
+
var handleClose = function handleClose() {
|
|
116
|
+
setState({
|
|
117
|
+
onOff: false,
|
|
118
|
+
visible: false
|
|
119
|
+
});
|
|
120
|
+
form.resetFields();
|
|
121
|
+
};
|
|
122
|
+
var handleFinish = function handleFinish() {
|
|
123
|
+
if (!state.selectedRows.length) {
|
|
124
|
+
_antd.message.error('请先勾选');
|
|
125
|
+
return false;
|
|
126
|
+
}
|
|
127
|
+
var formatterValueArr = state.selectedRows.map(function (row) {
|
|
128
|
+
return handleFormat(row);
|
|
129
|
+
});
|
|
130
|
+
(formatterValueArr === null || formatterValueArr === void 0 ? void 0 : formatterValueArr.length) && onChange(formatterValueArr.join('、'));
|
|
131
|
+
onOk === null || onOk === void 0 ? void 0 : onOk(state.selectedRows);
|
|
132
|
+
handleClose();
|
|
133
|
+
};
|
|
134
|
+
var handleSearch = function handleSearch(values) {
|
|
135
|
+
onSearch(values);
|
|
136
|
+
};
|
|
137
|
+
// 点击行进行勾选
|
|
138
|
+
var handleClickRow = function handleClickRow(record) {
|
|
139
|
+
var selectedValue = record[rowKey];
|
|
140
|
+
var tempSelectedRows = (0, _lodash.cloneDeep)(state.selectedRows);
|
|
141
|
+
var tempSelectedRowKeys = (0, _lodash.cloneDeep)(state.selectedRowKeys);
|
|
142
|
+
if (isMultiple) {
|
|
143
|
+
var rowIndex = tempSelectedRows.findIndex(function (item) {
|
|
144
|
+
return item[rowKey] === selectedValue;
|
|
145
|
+
});
|
|
146
|
+
var rowKeyIndex = tempSelectedRowKeys.findIndex(function (item) {
|
|
147
|
+
return item === selectedValue;
|
|
148
|
+
});
|
|
149
|
+
if (rowKeyIndex > -1) {
|
|
150
|
+
tempSelectedRows.splice(rowIndex, 1);
|
|
151
|
+
tempSelectedRowKeys.splice(rowKeyIndex, 1);
|
|
152
|
+
} else {
|
|
153
|
+
tempSelectedRows.push(record);
|
|
154
|
+
tempSelectedRowKeys.push(selectedValue);
|
|
155
|
+
}
|
|
156
|
+
} else {
|
|
157
|
+
tempSelectedRows = [record];
|
|
158
|
+
tempSelectedRowKeys = [selectedValue];
|
|
159
|
+
}
|
|
160
|
+
setState({
|
|
161
|
+
selectedRows: tempSelectedRows,
|
|
162
|
+
selectedRowKeys: tempSelectedRowKeys
|
|
163
|
+
});
|
|
164
|
+
};
|
|
165
|
+
var rowSelection = {
|
|
166
|
+
type: mode,
|
|
167
|
+
selectedRowKeys: state.selectedRowKeys,
|
|
168
|
+
onChange: function onChange(rowKeys, rows) {
|
|
169
|
+
setState({
|
|
170
|
+
selectedRowKeys: rowKeys,
|
|
171
|
+
selectedRows: rows
|
|
172
|
+
});
|
|
173
|
+
},
|
|
174
|
+
getCheckboxProps: function getCheckboxProps() {
|
|
175
|
+
return {
|
|
176
|
+
disabled: false
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
};
|
|
180
|
+
(0, _react.useEffect)(function () {
|
|
181
|
+
if (defaultSelectedRows === null || defaultSelectedRows === void 0 ? void 0 : defaultSelectedRows.length) {
|
|
182
|
+
setState({
|
|
183
|
+
selectedRowKeys: defaultSelectedRows.map(function (item) {
|
|
184
|
+
return item[rowKey];
|
|
185
|
+
}),
|
|
186
|
+
selectedRows: defaultSelectedRows
|
|
187
|
+
});
|
|
188
|
+
}
|
|
189
|
+
}, [defaultSelectedRows]);
|
|
190
|
+
(0, _react.useEffect)(function () {
|
|
191
|
+
if (state.onOff) {
|
|
192
|
+
onReset();
|
|
193
|
+
var nextState = {
|
|
194
|
+
visible: true
|
|
195
|
+
};
|
|
196
|
+
if (!value) {
|
|
197
|
+
nextState.selectedRowKeys = [];
|
|
198
|
+
nextState.selectedRows = [];
|
|
199
|
+
}
|
|
200
|
+
setState(nextState);
|
|
201
|
+
}
|
|
202
|
+
}, [state.onOff]);
|
|
203
|
+
var defaultSuffix = /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, value && !disabled && /*#__PURE__*/_react.default.createElement("span", {
|
|
204
|
+
className: "close-icon"
|
|
205
|
+
}, /*#__PURE__*/_react.default.createElement(_icons.CloseOutlined, {
|
|
206
|
+
onClick: handleClearValue
|
|
207
|
+
})), /*#__PURE__*/_react.default.createElement(_reactSvg.ReactSVG, {
|
|
208
|
+
className: "search",
|
|
209
|
+
wrapper: "span",
|
|
210
|
+
src: _view.default,
|
|
211
|
+
onClick: handleClick
|
|
212
|
+
}));
|
|
213
|
+
var forceSuffixRender = function forceSuffixRender() {
|
|
214
|
+
if (isView) {
|
|
215
|
+
return;
|
|
216
|
+
}
|
|
217
|
+
if (suffix) {
|
|
218
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
219
|
+
onClick: handleClick
|
|
220
|
+
}, suffix);
|
|
221
|
+
}
|
|
222
|
+
return defaultSuffix;
|
|
223
|
+
};
|
|
224
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
225
|
+
className: "pro-enum-select"
|
|
226
|
+
}, /*#__PURE__*/_react.default.createElement(_InputWithSuffix.default, (0, _objectSpread2.default)({
|
|
227
|
+
value: value,
|
|
228
|
+
readOnly: readOnly,
|
|
229
|
+
onClick: readOnly ? handleClick : undefined,
|
|
230
|
+
onChange: handleChangeValue,
|
|
231
|
+
disabled: disabled,
|
|
232
|
+
suffix: forceSuffixRender()
|
|
233
|
+
}, restInputProps)), state.onOff && /*#__PURE__*/_react.default.createElement(_antd.Modal, (0, _objectSpread2.default)({
|
|
234
|
+
className: "pro-enum-select-modal",
|
|
235
|
+
title: title,
|
|
236
|
+
width: "50%",
|
|
237
|
+
onOk: handleFinish,
|
|
238
|
+
onCancel: handleClose,
|
|
239
|
+
visible: state.visible
|
|
240
|
+
}, restModalProps), /*#__PURE__*/_react.default.createElement(_zatDesignProComponent.ProForm, {
|
|
241
|
+
className: "pro-enum-select-Modal-form",
|
|
242
|
+
form: form,
|
|
243
|
+
columns: conditionColumns,
|
|
244
|
+
onFinish: handleSearch,
|
|
245
|
+
footer: (conditionColumns === null || conditionColumns === void 0 ? void 0 : conditionColumns.length) > 1
|
|
246
|
+
}), /*#__PURE__*/_react.default.createElement(_antd.Table, (0, _objectSpread2.default)({
|
|
247
|
+
onRow: function onRow(record) {
|
|
248
|
+
return {
|
|
249
|
+
onClick: function onClick() {
|
|
250
|
+
return handleClickRow(record);
|
|
251
|
+
}
|
|
252
|
+
};
|
|
253
|
+
},
|
|
254
|
+
rowKey: rowKey,
|
|
255
|
+
loading: loading,
|
|
256
|
+
scroll: {
|
|
257
|
+
y: '250px'
|
|
258
|
+
},
|
|
259
|
+
rowSelection: rowSelection,
|
|
260
|
+
columns: columns,
|
|
261
|
+
dataSource: data,
|
|
262
|
+
pagination: pagination
|
|
263
|
+
}, restTableProps))));
|
|
264
|
+
});
|
|
265
|
+
var _default = EnumSelect;
|
|
266
|
+
exports.default = _default;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { InputProps, ModalProps } from 'antd';
|
|
3
|
+
import { ProColumnProps } from '../../render/propsType';
|
|
4
|
+
type RequestFunction<P = Record<string, any> | void, R = any> = (params: P, ...args: any[]) => Promise<R>;
|
|
5
|
+
type OnOkFunction = (list: Record<string, any>[]) => boolean;
|
|
6
|
+
interface IConfigOption {
|
|
7
|
+
mode: 'radio' | 'checkbox';
|
|
8
|
+
fetchOptions: RequestFunction;
|
|
9
|
+
useRequestOptions: object;
|
|
10
|
+
conditionKey: string;
|
|
11
|
+
conditionColumns: ProColumnProps[];
|
|
12
|
+
defaultParams: Record<string, any>;
|
|
13
|
+
withPagination: boolean;
|
|
14
|
+
paginationPosition: 'tableBottom' | 'modalBottom';
|
|
15
|
+
handleFormatDataSource: (dataSource: Object[]) => Object[];
|
|
16
|
+
defaultSelectedRows: Object[];
|
|
17
|
+
modalProps: ModalProps & {
|
|
18
|
+
onOk: OnOkFunction;
|
|
19
|
+
};
|
|
20
|
+
tableProps: Record<string, any>;
|
|
21
|
+
}
|
|
22
|
+
interface IEnumSelect {
|
|
23
|
+
onChange: (event: string | React.ChangeEvent<HTMLInputElement>) => void;
|
|
24
|
+
handleFormat: (value: Object) => string;
|
|
25
|
+
proformmode: string;
|
|
26
|
+
configOption: IConfigOption;
|
|
27
|
+
}
|
|
28
|
+
export declare type IProps = InputProps & IEnumSelect;
|
|
29
|
+
export {};
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
.pro-enum-select {
|
|
2
|
+
.close-icon {
|
|
3
|
+
position : relative;
|
|
4
|
+
margin-left : -31px;
|
|
5
|
+
margin-right : var(--zaui-space-size-md, 14px);
|
|
6
|
+
color : #FFFFFF;
|
|
7
|
+
height: 12px;
|
|
8
|
+
width: 12px;
|
|
9
|
+
display: flex;
|
|
10
|
+
align-items: center;
|
|
11
|
+
justify-content: center;
|
|
12
|
+
background-color: rgba(0, 0, 0, 0.25);
|
|
13
|
+
border : none;
|
|
14
|
+
border-radius : 50%;
|
|
15
|
+
z-index : 3;
|
|
16
|
+
|
|
17
|
+
> span {
|
|
18
|
+
position : relative;
|
|
19
|
+
font-size : 8px;
|
|
20
|
+
border : none;
|
|
21
|
+
border-radius : 50%;
|
|
22
|
+
|
|
23
|
+
}
|
|
24
|
+
&:hover {
|
|
25
|
+
background-color: rgba(0, 0, 0, 0.5);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.search {
|
|
30
|
+
span {
|
|
31
|
+
display : flex;
|
|
32
|
+
justify-content: center;
|
|
33
|
+
align-items : center;
|
|
34
|
+
cursor: pointer;
|
|
35
|
+
fill: #C5C7CD;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.pro-enum-select-modal {
|
|
41
|
+
.ant-table.ant-table-bordered>.ant-table-container {
|
|
42
|
+
border: 0;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.ant-table-thead>tr>th {
|
|
46
|
+
border : 0;
|
|
47
|
+
white-space : nowrap;
|
|
48
|
+
background-color: #F6F7F8;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.ant-table-thead>tr>th:not(:last-child):not(.ant-table-selection-column):not(.ant-table-row-expand-icon-cell):not([colspan])::before {
|
|
52
|
+
height: 0;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.ant-table-tbody>tr:not(.ant-table-placeholder)>td {
|
|
56
|
+
border-bottom: 0;
|
|
57
|
+
border-right : 0;
|
|
58
|
+
border-top : 0;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.ant-table-tbody>tr:not(.ant-table-measure-row)>td {
|
|
62
|
+
border-bottom : 0;
|
|
63
|
+
vertical-align: top;
|
|
64
|
+
padding : var(--zaui-space-size-md);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.ant-table-tbody tr:nth-child(n)>td {
|
|
68
|
+
background-color: var(--zaui-base-bg);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.ant-table-tbody tr:nth-child(2n)>td {
|
|
72
|
+
background-color: #FAFAFA;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.ant-table-tbody>.ant-table-placeholder>td {
|
|
76
|
+
background-color: var(--zaui-base-bg);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.ant-table-tbody {
|
|
80
|
+
|
|
81
|
+
>tr:hover:not(.ant-table-expanded-row, .ant-table-placeholder)>td,
|
|
82
|
+
.ant-table-row-hover,
|
|
83
|
+
.ant-table-row-hover>td {
|
|
84
|
+
background: #FAFAFA;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.ant-table-fixed {
|
|
89
|
+
|
|
90
|
+
.ant-table-row-hover,
|
|
91
|
+
.ant-table-row-hover>td {
|
|
92
|
+
background: #FAFAFA;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.ant-table-fixed-header {
|
|
97
|
+
.ant-table-tbody tr:nth-child(n)>td {
|
|
98
|
+
background-color: #FAFAFA;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.ant-table-tbody tr:nth-child(2n)>td {
|
|
102
|
+
background-color: var(--zaui-base-bg);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.ant-modal-body {
|
|
107
|
+
padding-bottom: 0;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.ant-modal-footer {
|
|
111
|
+
padding: 16px;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
interface ValueProps {
|
|
2
|
+
min?: any;
|
|
3
|
+
max?: any;
|
|
4
|
+
}
|
|
5
|
+
export interface InputRangeProps {
|
|
6
|
+
value?: ValueProps;
|
|
7
|
+
onChange?: (value: ValueProps) => void;
|
|
8
|
+
min?: number;
|
|
9
|
+
max?: number;
|
|
10
|
+
group?: any[];
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
isPositiveInteger?: boolean;
|
|
13
|
+
precision?: number;
|
|
14
|
+
}
|
|
15
|
+
declare const InputRange: ({ value, onChange, min, max, group, disabled, precision, isPositiveInteger, }: InputRangeProps) => JSX.Element;
|
|
16
|
+
export default InputRange;
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = void 0;
|
|
8
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
9
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
10
|
+
var _ahooks = require("ahooks");
|
|
11
|
+
var _antd = require("antd");
|
|
12
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
|
+
var _react = _interopRequireDefault(require("react"));
|
|
14
|
+
/* eslint-disable @typescript-eslint/no-shadow */
|
|
15
|
+
/* eslint-disable no-param-reassign */
|
|
16
|
+
|
|
17
|
+
var positiveInteger = {
|
|
18
|
+
formatter: function formatter(value) {
|
|
19
|
+
return value.replace(/[^0-9]/g, '');
|
|
20
|
+
},
|
|
21
|
+
parser: function parser(value) {
|
|
22
|
+
return value.replace(/[^0-9]/g, '');
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
var InputRange = function InputRange(_ref) {
|
|
26
|
+
var _ref$value = _ref.value,
|
|
27
|
+
value = _ref$value === void 0 ? {} : _ref$value,
|
|
28
|
+
onChange = _ref.onChange,
|
|
29
|
+
_ref$min = _ref.min,
|
|
30
|
+
min = _ref$min === void 0 ? 0 : _ref$min,
|
|
31
|
+
max = _ref.max,
|
|
32
|
+
group = _ref.group,
|
|
33
|
+
disabled = _ref.disabled,
|
|
34
|
+
precision = _ref.precision,
|
|
35
|
+
_ref$isPositiveIntege = _ref.isPositiveInteger,
|
|
36
|
+
isPositiveInteger = _ref$isPositiveIntege === void 0 ? false : _ref$isPositiveIntege;
|
|
37
|
+
var _useSetState = (0, _ahooks.useSetState)({
|
|
38
|
+
range: value,
|
|
39
|
+
positiveIntegerpValues: isPositiveInteger ? positiveInteger : {}
|
|
40
|
+
}),
|
|
41
|
+
_useSetState2 = (0, _slicedToArray2.default)(_useSetState, 2),
|
|
42
|
+
state = _useSetState2[0],
|
|
43
|
+
setState = _useSetState2[1];
|
|
44
|
+
var range = state.range,
|
|
45
|
+
positiveIntegerpValues = state.positiveIntegerpValues;
|
|
46
|
+
var triggerChange = function triggerChange(changedValue) {
|
|
47
|
+
onChange === null || onChange === void 0 ? void 0 : onChange((0, _objectSpread2.default)((0, _objectSpread2.default)({}, value), changedValue));
|
|
48
|
+
};
|
|
49
|
+
var onUpdate = function onUpdate() {
|
|
50
|
+
setState({
|
|
51
|
+
range: range
|
|
52
|
+
});
|
|
53
|
+
triggerChange((0, _objectSpread2.default)({}, value));
|
|
54
|
+
};
|
|
55
|
+
var cls = (0, _classnames.default)({
|
|
56
|
+
'site-input-split': true,
|
|
57
|
+
'site-input-split-disabled': !!disabled
|
|
58
|
+
});
|
|
59
|
+
return /*#__PURE__*/_react.default.createElement(_antd.Input.Group, {
|
|
60
|
+
compact: true,
|
|
61
|
+
className: "site-input-group-wrapper"
|
|
62
|
+
}, /*#__PURE__*/_react.default.createElement(_antd.InputNumber, (0, _objectSpread2.default)((0, _objectSpread2.default)({
|
|
63
|
+
className: "site-input-left",
|
|
64
|
+
style: {
|
|
65
|
+
textAlign: 'center'
|
|
66
|
+
},
|
|
67
|
+
value: value === null || value === void 0 ? void 0 : value.min,
|
|
68
|
+
placeholder: "\u8BF7\u8F93\u5165",
|
|
69
|
+
min: min,
|
|
70
|
+
max: (value === null || value === void 0 ? void 0 : value.max) || max,
|
|
71
|
+
precision: precision,
|
|
72
|
+
disabled: disabled,
|
|
73
|
+
onChange: function onChange(e) {
|
|
74
|
+
value.min = e;
|
|
75
|
+
range.min = e;
|
|
76
|
+
onUpdate();
|
|
77
|
+
}
|
|
78
|
+
}, group === null || group === void 0 ? void 0 : group[0]), positiveIntegerpValues)), /*#__PURE__*/_react.default.createElement(_antd.Input, {
|
|
79
|
+
className: cls,
|
|
80
|
+
style: {
|
|
81
|
+
width: 40,
|
|
82
|
+
borderLeft: 0,
|
|
83
|
+
pointerEvents: 'none'
|
|
84
|
+
},
|
|
85
|
+
placeholder: "~",
|
|
86
|
+
disabled: true
|
|
87
|
+
}), /*#__PURE__*/_react.default.createElement(_antd.InputNumber, (0, _objectSpread2.default)((0, _objectSpread2.default)({
|
|
88
|
+
className: "site-input-right",
|
|
89
|
+
style: {
|
|
90
|
+
textAlign: 'center'
|
|
91
|
+
},
|
|
92
|
+
disabled: disabled,
|
|
93
|
+
value: value === null || value === void 0 ? void 0 : value.max,
|
|
94
|
+
min: (value === null || value === void 0 ? void 0 : value.min) || min,
|
|
95
|
+
max: max,
|
|
96
|
+
precision: precision,
|
|
97
|
+
placeholder: "\u8BF7\u8F93\u5165",
|
|
98
|
+
onChange: function onChange(e) {
|
|
99
|
+
value.max = e;
|
|
100
|
+
onUpdate();
|
|
101
|
+
}
|
|
102
|
+
}, group === null || group === void 0 ? void 0 : group[1]), positiveIntegerpValues)));
|
|
103
|
+
};
|
|
104
|
+
var _default = InputRange;
|
|
105
|
+
exports.default = _default;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = void 0;
|
|
8
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
9
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
10
|
+
var _antd = require("antd");
|
|
11
|
+
var _react = _interopRequireDefault(require("react"));
|
|
12
|
+
var _excluded = ["value", "onChange", "suffix", "formItemProps", "groupStyle", "InputStyle", "suffixWidth"];
|
|
13
|
+
var InputWithSuffix = function InputWithSuffix(props) {
|
|
14
|
+
var value = props.value,
|
|
15
|
+
onChange = props.onChange,
|
|
16
|
+
_props$suffix = props.suffix,
|
|
17
|
+
suffix = _props$suffix === void 0 ? null : _props$suffix,
|
|
18
|
+
_props$formItemProps = props.formItemProps,
|
|
19
|
+
formItemProps = _props$formItemProps === void 0 ? {} : _props$formItemProps,
|
|
20
|
+
groupStyle = props.groupStyle,
|
|
21
|
+
InputStyle = props.InputStyle,
|
|
22
|
+
_props$suffixWidth = props.suffixWidth,
|
|
23
|
+
suffixWidth = _props$suffixWidth === void 0 ? false : _props$suffixWidth,
|
|
24
|
+
restProps = (0, _objectWithoutProperties2.default)(props, _excluded);
|
|
25
|
+
var localSuffixWidht = suffixWidth || '36px';
|
|
26
|
+
return /*#__PURE__*/_react.default.createElement(_antd.Input.Group, {
|
|
27
|
+
compact: true,
|
|
28
|
+
style: {
|
|
29
|
+
display: 'flex'
|
|
30
|
+
}
|
|
31
|
+
}, /*#__PURE__*/_react.default.createElement(_antd.Input, (0, _objectSpread2.default)((0, _objectSpread2.default)({
|
|
32
|
+
value: value,
|
|
33
|
+
style: {
|
|
34
|
+
flex: '1'
|
|
35
|
+
},
|
|
36
|
+
onChange: onChange
|
|
37
|
+
}, restProps), formItemProps)), suffix ? /*#__PURE__*/_react.default.createElement("div", {
|
|
38
|
+
style: {
|
|
39
|
+
width: localSuffixWidht,
|
|
40
|
+
cursor: 'pointer',
|
|
41
|
+
padding: '0px',
|
|
42
|
+
display: 'flex',
|
|
43
|
+
alignItems: 'center',
|
|
44
|
+
justifyContent: 'center',
|
|
45
|
+
border: '1px solid #DEE0E3',
|
|
46
|
+
backgroundColor: '#fff'
|
|
47
|
+
}
|
|
48
|
+
}, suffix) : null);
|
|
49
|
+
};
|
|
50
|
+
var _default = InputWithSuffix;
|
|
51
|
+
exports.default = _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
export interface comPropsType {
|
|
3
|
+
value?: any;
|
|
4
|
+
onChange?: any;
|
|
5
|
+
suffix?: ReactNode;
|
|
6
|
+
formItemProps?: object;
|
|
7
|
+
groupStyle?: CSSStyleDeclaration;
|
|
8
|
+
InputStyle?: CSSStyleDeclaration;
|
|
9
|
+
suffixWidth?: string;
|
|
10
|
+
[key: string]: any;
|
|
11
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ProAddressPropsType } from "./propsTypes";
|
|
2
|
+
export declare const transferAddressInfoToRegion: () => {
|
|
3
|
+
normalize: (value: any) => {
|
|
4
|
+
province: any;
|
|
5
|
+
city: any;
|
|
6
|
+
county: any;
|
|
7
|
+
detail: any;
|
|
8
|
+
address: any;
|
|
9
|
+
};
|
|
10
|
+
getValueProps: (value: any) => {
|
|
11
|
+
value: {
|
|
12
|
+
province: {
|
|
13
|
+
code: any;
|
|
14
|
+
};
|
|
15
|
+
city: {
|
|
16
|
+
code: any;
|
|
17
|
+
};
|
|
18
|
+
secondCity: {
|
|
19
|
+
code: any;
|
|
20
|
+
};
|
|
21
|
+
address: any;
|
|
22
|
+
detail: any;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
export declare function ProAddress({ ...props }: ProAddressPropsType): JSX.Element;
|
|
27
|
+
export default ProAddress;
|