@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,79 @@
|
|
|
1
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
2
|
+
var _excluded = ["children"];
|
|
3
|
+
import { isNull, isUndefined } from 'lodash';
|
|
4
|
+
export function getEnumData(storage, cacheKey) {
|
|
5
|
+
if (storage === 'localStorage') {
|
|
6
|
+
return JSON.parse(window.localStorage.getItem(cacheKey) || '{}');
|
|
7
|
+
}
|
|
8
|
+
if (storage === 'sessionStorage') {
|
|
9
|
+
return JSON.parse(window.sessionStorage.getItem(cacheKey) || '{}');
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
export function setEnumData(storage, cacheKey, data) {
|
|
13
|
+
if (storage === 'localStorage') {
|
|
14
|
+
window.localStorage.setItem(cacheKey, JSON.stringify(data));
|
|
15
|
+
} else if (storage === 'sessionStorage') {
|
|
16
|
+
window.sessionStorage.setItem(cacheKey, JSON.stringify(data));
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
export function hasEnumList(storage, cacheKey, code) {
|
|
20
|
+
var res = getEnumData(storage, cacheKey);
|
|
21
|
+
var enumList = (res === null || res === void 0 ? void 0 : res.data) || {};
|
|
22
|
+
return enumList === null || enumList === void 0 ? void 0 : enumList[code];
|
|
23
|
+
}
|
|
24
|
+
export function isObject(obj) {
|
|
25
|
+
return Object.prototype.toString.call(obj) === '[object Object]';
|
|
26
|
+
}
|
|
27
|
+
export function mergeCacheData(storage, code, cacheKey, responseData) {
|
|
28
|
+
var _window, _window2;
|
|
29
|
+
var cacheStorage = storage === 'localStorage' ? 'localStorage' : 'sessionStorage';
|
|
30
|
+
var cacheData = JSON.parse((_window = window) === null || _window === void 0 ? void 0 : _window[cacheStorage].getItem(cacheKey));
|
|
31
|
+
// 合并枚举到总数据源上
|
|
32
|
+
if (cacheData && cacheData.data) {
|
|
33
|
+
cacheData.data[code] = responseData;
|
|
34
|
+
}
|
|
35
|
+
(_window2 = window) === null || _window2 === void 0 ? void 0 : _window2[cacheStorage].setItem(cacheKey, JSON.stringify(cacheData));
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* diff code 差异
|
|
39
|
+
* @param cacheCodes
|
|
40
|
+
* @param codes
|
|
41
|
+
* @returns
|
|
42
|
+
*/
|
|
43
|
+
export function diffCode(cacheCodes, codes) {
|
|
44
|
+
var diff = false;
|
|
45
|
+
// 以后面传入的作计算
|
|
46
|
+
for (var index = 0; index < codes.length; index++) {
|
|
47
|
+
var clude = cacheCodes.includes(codes[index]);
|
|
48
|
+
// 缓存中有不存在的 code
|
|
49
|
+
if (!clude) {
|
|
50
|
+
diff = true;
|
|
51
|
+
return diff;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
return diff;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* 缓存fieldNames制定的值
|
|
58
|
+
* @param fieldNames 保留映射值
|
|
59
|
+
* @param dataSource 需要筛选的数据源
|
|
60
|
+
* @returns {}
|
|
61
|
+
*/
|
|
62
|
+
export function cacheFieldNames(fieldNames, dataSource) {
|
|
63
|
+
var children = fieldNames.children,
|
|
64
|
+
restFieldNames = _objectWithoutProperties(fieldNames, _excluded);
|
|
65
|
+
var result = {};
|
|
66
|
+
Object.keys(restFieldNames).forEach(function (key) {
|
|
67
|
+
var value = dataSource[restFieldNames[key]] ? dataSource[restFieldNames[key]] : dataSource[key];
|
|
68
|
+
if (!(isUndefined(value) || isNull(value))) {
|
|
69
|
+
result[key] = dataSource[restFieldNames[key]] ? dataSource[restFieldNames[key]] : dataSource[key];
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
// 递归去对数据进行清洗
|
|
73
|
+
if (children && Array.isArray(dataSource[children])) {
|
|
74
|
+
result[children] = dataSource[children].map(function (item) {
|
|
75
|
+
return cacheFieldNames(fieldNames, item);
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
return result;
|
|
79
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import "antd/es/tooltip/style";
|
|
2
|
+
import _Tooltip from "antd/es/tooltip";
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import classNames from 'classnames';
|
|
5
|
+
var Container = function Container(props) {
|
|
6
|
+
var children = props.children,
|
|
7
|
+
tooltip = props.tooltip,
|
|
8
|
+
nowrap = props.nowrap,
|
|
9
|
+
viewEmpty = props.viewEmpty;
|
|
10
|
+
var emptyChildren = [undefined, null, ''].includes(children);
|
|
11
|
+
var _className = classNames({
|
|
12
|
+
'pro-form-view-container': true,
|
|
13
|
+
'pro-form-view-container_nowrap': nowrap !== null && nowrap !== void 0 ? nowrap : tooltip
|
|
14
|
+
});
|
|
15
|
+
if (tooltip && !emptyChildren) {
|
|
16
|
+
return /*#__PURE__*/React.createElement(_Tooltip, {
|
|
17
|
+
placement: "topLeft",
|
|
18
|
+
title: children
|
|
19
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
20
|
+
className: _className
|
|
21
|
+
}, children));
|
|
22
|
+
}
|
|
23
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
24
|
+
className: _className
|
|
25
|
+
}, emptyChildren ? viewEmpty : children);
|
|
26
|
+
};
|
|
27
|
+
export default Container;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import "antd/es/button/style";
|
|
2
|
+
import _Button from "antd/es/button";
|
|
3
|
+
import "antd/es/space/style";
|
|
4
|
+
import _Space from "antd/es/space";
|
|
5
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
6
|
+
import React from 'react';
|
|
7
|
+
import { useProConfig } from 'zat-design-pro-component';
|
|
8
|
+
var FormFooter = function FormFooter(props) {
|
|
9
|
+
var initialConfig = useProConfig('FormFooter');
|
|
10
|
+
var _initialConfig$props = _objectSpread(_objectSpread({}, initialConfig), props),
|
|
11
|
+
okText = _initialConfig$props.okText,
|
|
12
|
+
cancelText = _initialConfig$props.cancelText,
|
|
13
|
+
onOk = _initialConfig$props.onOk,
|
|
14
|
+
onCancel = _initialConfig$props.onCancel,
|
|
15
|
+
_initialConfig$props$ = _initialConfig$props.footer,
|
|
16
|
+
footer = _initialConfig$props$ === void 0 ? {} : _initialConfig$props$,
|
|
17
|
+
children = _initialConfig$props.children,
|
|
18
|
+
confirmLoading = _initialConfig$props.confirmLoading;
|
|
19
|
+
var _footer$okButtonProps = footer.okButtonProps,
|
|
20
|
+
okButtonProps = _footer$okButtonProps === void 0 ? {} : _footer$okButtonProps,
|
|
21
|
+
_footer$cancelButtonP = footer.cancelButtonProps,
|
|
22
|
+
cancelButtonProps = _footer$cancelButtonP === void 0 ? {} : _footer$cancelButtonP;
|
|
23
|
+
var okChildren = okButtonProps.children;
|
|
24
|
+
var cancelChildren = cancelButtonProps.children;
|
|
25
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
26
|
+
className: "ant-form-item"
|
|
27
|
+
}, /*#__PURE__*/React.createElement(_Space, null, /*#__PURE__*/React.createElement(_Button, _objectSpread({
|
|
28
|
+
type: "primary",
|
|
29
|
+
htmlType: onOk ? 'button' : 'submit',
|
|
30
|
+
onClick: onOk,
|
|
31
|
+
disabled: confirmLoading,
|
|
32
|
+
loading: confirmLoading
|
|
33
|
+
}, okButtonProps), okChildren || okText || '查询'), /*#__PURE__*/React.createElement(_Button, _objectSpread({
|
|
34
|
+
onClick: onCancel
|
|
35
|
+
}, cancelButtonProps), cancelChildren || cancelText || '重置'), children));
|
|
36
|
+
};
|
|
37
|
+
export default FormFooter;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ButtonProps, ColProps } from 'antd';
|
|
2
|
+
export interface ButtonItem extends ButtonProps {
|
|
3
|
+
children?: any;
|
|
4
|
+
}
|
|
5
|
+
export interface FooterButtonProps {
|
|
6
|
+
okButtonProps?: ButtonItem;
|
|
7
|
+
cancelButtonProps?: ButtonItem;
|
|
8
|
+
}
|
|
9
|
+
export interface FooterRenderProps {
|
|
10
|
+
okText?: string;
|
|
11
|
+
cancelText?: string;
|
|
12
|
+
onOk?: () => void;
|
|
13
|
+
onCancel?: () => void;
|
|
14
|
+
footerColProps?: ColProps;
|
|
15
|
+
footer?: FooterButtonProps;
|
|
16
|
+
confirmLoading?: boolean;
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { CheckboxGroupProps } from 'antd/lib/checkbox';
|
|
3
|
+
import { ProFormOtherProps } from '../../../propsType';
|
|
4
|
+
export interface Props extends Omit<CheckboxGroupProps, 'options'> {
|
|
5
|
+
dataSource: any[];
|
|
6
|
+
fieldNames?: {
|
|
7
|
+
label: string;
|
|
8
|
+
value: string;
|
|
9
|
+
};
|
|
10
|
+
otherProps?: ProFormOtherProps;
|
|
11
|
+
}
|
|
12
|
+
declare const Checkbox: React.FC<Props>;
|
|
13
|
+
export default Checkbox;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
|
+
import "antd/es/checkbox/style";
|
|
3
|
+
import _Checkbox from "antd/es/checkbox";
|
|
4
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
5
|
+
var _excluded = ["dataSource", "otherProps", "fieldNames"];
|
|
6
|
+
import React from 'react';
|
|
7
|
+
import Container from '../../Container';
|
|
8
|
+
import { useProConfig } from '../../../../ProConfigProvider';
|
|
9
|
+
var Checkbox = function Checkbox(props) {
|
|
10
|
+
var dataSource = props.dataSource,
|
|
11
|
+
otherProps = props.otherProps,
|
|
12
|
+
fieldNames = props.fieldNames,
|
|
13
|
+
rest = _objectWithoutProperties(props, _excluded);
|
|
14
|
+
var _ref = otherProps || {},
|
|
15
|
+
isView = _ref.isView,
|
|
16
|
+
viewEmpty = _ref.viewEmpty;
|
|
17
|
+
var initialConfig = useProConfig('Checkbox') || {};
|
|
18
|
+
var _fieldNames = fieldNames || initialConfig.fieldNames || {
|
|
19
|
+
label: 'label',
|
|
20
|
+
value: 'value'
|
|
21
|
+
};
|
|
22
|
+
if (isView) {
|
|
23
|
+
var value = rest.value;
|
|
24
|
+
var transToLabel = function transToLabel(value) {
|
|
25
|
+
var labelList = value.map(function (item) {
|
|
26
|
+
var _dataSource$find;
|
|
27
|
+
return (_dataSource$find = dataSource.find(function (dataItem) {
|
|
28
|
+
return dataItem[_fieldNames.value] === item;
|
|
29
|
+
})) === null || _dataSource$find === void 0 ? void 0 : _dataSource$find[_fieldNames.label];
|
|
30
|
+
});
|
|
31
|
+
return labelList.join(',');
|
|
32
|
+
};
|
|
33
|
+
if (Array.isArray(value)) {
|
|
34
|
+
return /*#__PURE__*/React.createElement(Container, {
|
|
35
|
+
tooltip: true,
|
|
36
|
+
viewEmpty: viewEmpty
|
|
37
|
+
}, transToLabel(value));
|
|
38
|
+
}
|
|
39
|
+
return /*#__PURE__*/React.createElement(Container, {
|
|
40
|
+
viewEmpty: viewEmpty
|
|
41
|
+
}, value ? transToLabel([value]) : null);
|
|
42
|
+
}
|
|
43
|
+
// 假如dataSource包含code,name, fieldNames没有配置,_fieldNames默认为code, name
|
|
44
|
+
if (Array.isArray(dataSource) && !fieldNames) {
|
|
45
|
+
var _dataSource$filter;
|
|
46
|
+
var hasCodeName = Boolean((_dataSource$filter = dataSource.filter(function (item) {
|
|
47
|
+
return Object.keys(item).includes('code') && Object.keys(item).includes('name');
|
|
48
|
+
})) === null || _dataSource$filter === void 0 ? void 0 : _dataSource$filter.length);
|
|
49
|
+
if (hasCodeName) {
|
|
50
|
+
_fieldNames = {
|
|
51
|
+
label: 'name',
|
|
52
|
+
value: 'code'
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
return /*#__PURE__*/React.createElement(_Checkbox.Group, _objectSpread({
|
|
57
|
+
style: {
|
|
58
|
+
width: '100%'
|
|
59
|
+
}
|
|
60
|
+
}, rest), !!dataSource.length && dataSource.map(function (item) {
|
|
61
|
+
return /*#__PURE__*/React.createElement(_Checkbox, {
|
|
62
|
+
key: item[_fieldNames.value],
|
|
63
|
+
value: item[_fieldNames.value]
|
|
64
|
+
}, item[_fieldNames.label]);
|
|
65
|
+
}));
|
|
66
|
+
};
|
|
67
|
+
export default Checkbox;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { DatePickerProps } from 'antd';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { ProFormOtherProps } from '../../../propsType';
|
|
4
|
+
export type Props = DatePickerProps & {
|
|
5
|
+
isView?: boolean;
|
|
6
|
+
viewEmpty?: React.ReactNode;
|
|
7
|
+
format?: string;
|
|
8
|
+
otherProps?: ProFormOtherProps;
|
|
9
|
+
showTime?: boolean;
|
|
10
|
+
};
|
|
11
|
+
declare const DatePicker: React.FC<Props>;
|
|
12
|
+
export default DatePicker;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import "antd/es/date-picker/style";
|
|
2
|
+
import _DatePicker from "antd/es/date-picker";
|
|
3
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
4
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
5
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
6
|
+
var _excluded = ["className", "format", "otherProps"];
|
|
7
|
+
import { isFunction, isString } from 'lodash';
|
|
8
|
+
import classNames from 'classnames';
|
|
9
|
+
import moment from 'moment';
|
|
10
|
+
import React from 'react';
|
|
11
|
+
import { useProConfig } from 'zat-design-pro-component';
|
|
12
|
+
import Container from '../../Container';
|
|
13
|
+
var DatePicker = function DatePicker(props) {
|
|
14
|
+
var className = props.className,
|
|
15
|
+
_props$format = props.format,
|
|
16
|
+
format = _props$format === void 0 ? 'YYYY-MM-DD HH:mm:ss' : _props$format,
|
|
17
|
+
otherProps = props.otherProps,
|
|
18
|
+
rest = _objectWithoutProperties(props, _excluded);
|
|
19
|
+
var _ref = otherProps || {},
|
|
20
|
+
isView = _ref.isView,
|
|
21
|
+
viewEmpty = _ref.viewEmpty,
|
|
22
|
+
valueType = _ref.valueType;
|
|
23
|
+
var initialConfig = useProConfig('DatePicker');
|
|
24
|
+
var _className = classNames(_defineProperty({
|
|
25
|
+
'full-form-item': true
|
|
26
|
+
}, className, !!className));
|
|
27
|
+
if (isView || (props === null || props === void 0 ? void 0 : props.isView)) {
|
|
28
|
+
var value = rest.value;
|
|
29
|
+
var viewChildren = null;
|
|
30
|
+
if (!value) {
|
|
31
|
+
viewChildren = null;
|
|
32
|
+
} else if (typeof format === 'string' && moment.isMoment(value)) {
|
|
33
|
+
viewChildren = value.format(format);
|
|
34
|
+
} else if (isFunction(format)) {
|
|
35
|
+
viewChildren = format(value);
|
|
36
|
+
} else if (isString(value)) {
|
|
37
|
+
viewChildren = moment(value).format(format);
|
|
38
|
+
}
|
|
39
|
+
return /*#__PURE__*/React.createElement(Container, {
|
|
40
|
+
viewEmpty: viewEmpty
|
|
41
|
+
}, viewChildren);
|
|
42
|
+
}
|
|
43
|
+
// dateTime模式下默认开启time选择
|
|
44
|
+
var _rest = _objectSpread(_objectSpread({}, rest), {}, {
|
|
45
|
+
showTime: !rest.showTime && valueType === 'dateTime' || rest.showTime
|
|
46
|
+
});
|
|
47
|
+
if (_rest === null || _rest === void 0 ? void 0 : _rest.placeholder) {
|
|
48
|
+
_rest === null || _rest === void 0 ? true : delete _rest.placeholder;
|
|
49
|
+
}
|
|
50
|
+
// 字符串时间格式兼容
|
|
51
|
+
if (isString(_rest.value)) {
|
|
52
|
+
_rest.value = moment(_rest.value);
|
|
53
|
+
}
|
|
54
|
+
if (['dateStartTime', 'dateEndTime'].includes(valueType) && (isView || rest.disabled)) {
|
|
55
|
+
_rest.showTime = true;
|
|
56
|
+
}
|
|
57
|
+
if (['dateStartTime', 'dateEndTime'].includes(valueType) && rest.showTime && !rest.disabled) {
|
|
58
|
+
_rest.showTime = false;
|
|
59
|
+
}
|
|
60
|
+
return /*#__PURE__*/React.createElement(_DatePicker, _objectSpread(_objectSpread(_objectSpread({}, initialConfig), _rest), {}, {
|
|
61
|
+
className: _className
|
|
62
|
+
}));
|
|
63
|
+
};
|
|
64
|
+
export default DatePicker;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { FormInstance, FormListFieldData, FormListOperation } from 'antd';
|
|
2
|
+
import { InternalNamePath } from 'antd/lib/form/interface';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { Props as FormListProps, ActionProps, FormListMode } from '../index';
|
|
5
|
+
export interface Props {
|
|
6
|
+
min?: FormListProps['min'];
|
|
7
|
+
max?: FormListProps['max'];
|
|
8
|
+
actionProps: ActionProps[];
|
|
9
|
+
namePath: InternalNamePath;
|
|
10
|
+
form: FormInstance;
|
|
11
|
+
field: FormListFieldData;
|
|
12
|
+
operation: FormListOperation;
|
|
13
|
+
index: number;
|
|
14
|
+
length: number;
|
|
15
|
+
fields: FormListFieldData[];
|
|
16
|
+
mode: FormListMode;
|
|
17
|
+
}
|
|
18
|
+
declare const ActionButton: React.FC<Props>;
|
|
19
|
+
export default ActionButton;
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
|
+
import "antd/es/button/style";
|
|
3
|
+
import _Button from "antd/es/button";
|
|
4
|
+
import "antd/es/popconfirm/style";
|
|
5
|
+
import _Popconfirm from "antd/es/popconfirm";
|
|
6
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
7
|
+
import "antd/es/space/style";
|
|
8
|
+
import _Space from "antd/es/space";
|
|
9
|
+
var _excluded = ["label", "onClick", "onHandle", "actionType", "needConfirm", "title"],
|
|
10
|
+
_excluded2 = ["onClick", "label"];
|
|
11
|
+
import React, { useMemo } from 'react';
|
|
12
|
+
import Icon, { CopyOutlined, DownSquareOutlined, PlusSquareOutlined, UpSquareOutlined } from '@ant-design/icons';
|
|
13
|
+
import { ReactComponent as DeleteSvg } from '../../../../../assets/delete.svg';
|
|
14
|
+
var getDefaultActions = function getDefaultActions(mode) {
|
|
15
|
+
var originActions = {
|
|
16
|
+
add: {
|
|
17
|
+
onClick: function onClick(record, lineName, index, operation, form) {
|
|
18
|
+
var add = operation.add;
|
|
19
|
+
add(undefined, index + 1);
|
|
20
|
+
},
|
|
21
|
+
type: 'text',
|
|
22
|
+
label: '新增',
|
|
23
|
+
icon: /*#__PURE__*/React.createElement(PlusSquareOutlined, null)
|
|
24
|
+
},
|
|
25
|
+
delete: {
|
|
26
|
+
onClick: function onClick(record, lineName, index, operation, form) {
|
|
27
|
+
var remove = operation.remove;
|
|
28
|
+
remove(index);
|
|
29
|
+
},
|
|
30
|
+
type: 'text',
|
|
31
|
+
label: '删除',
|
|
32
|
+
// icon: <ReactSVG src={deleteIcon} />,
|
|
33
|
+
icon: /*#__PURE__*/React.createElement(Icon, {
|
|
34
|
+
component: DeleteSvg
|
|
35
|
+
})
|
|
36
|
+
},
|
|
37
|
+
copy: {
|
|
38
|
+
onClick: function onClick(record, lineName, index, operation, form) {
|
|
39
|
+
var add = operation.add;
|
|
40
|
+
add(record, index + 1);
|
|
41
|
+
},
|
|
42
|
+
type: 'text',
|
|
43
|
+
label: '复制',
|
|
44
|
+
icon: /*#__PURE__*/React.createElement(CopyOutlined, null)
|
|
45
|
+
},
|
|
46
|
+
moveUp: {
|
|
47
|
+
onClick: function onClick(record, lineName, index, operation, form) {
|
|
48
|
+
var move = operation.move;
|
|
49
|
+
move(index, index - 1);
|
|
50
|
+
},
|
|
51
|
+
type: 'text',
|
|
52
|
+
label: '上移',
|
|
53
|
+
icon: /*#__PURE__*/React.createElement(UpSquareOutlined, null)
|
|
54
|
+
},
|
|
55
|
+
moveDown: {
|
|
56
|
+
onClick: function onClick(record, lineName, index, operation, form) {
|
|
57
|
+
var move = operation.move;
|
|
58
|
+
move(index, index + 1);
|
|
59
|
+
},
|
|
60
|
+
type: 'text',
|
|
61
|
+
label: '下移',
|
|
62
|
+
icon: /*#__PURE__*/React.createElement(DownSquareOutlined, null)
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
if (mode === 'block') {
|
|
66
|
+
Object.keys(originActions).forEach(function (key) {
|
|
67
|
+
originActions[key].type = 'default';
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
if (mode === 'line') {
|
|
71
|
+
Object.keys(originActions).forEach(function (key) {
|
|
72
|
+
delete originActions[key].label;
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
return originActions;
|
|
76
|
+
};
|
|
77
|
+
var ActionButton = function ActionButton(props) {
|
|
78
|
+
var actionProps = props.actionProps,
|
|
79
|
+
namePath = props.namePath,
|
|
80
|
+
form = props.form,
|
|
81
|
+
field = props.field,
|
|
82
|
+
operation = props.operation,
|
|
83
|
+
index = props.index,
|
|
84
|
+
length = props.length,
|
|
85
|
+
fields = props.fields,
|
|
86
|
+
min = props.min,
|
|
87
|
+
max = props.max,
|
|
88
|
+
mode = props.mode;
|
|
89
|
+
var handleClick = function handleClick(callback, index) {
|
|
90
|
+
var value = form.getFieldValue(namePath);
|
|
91
|
+
callback === null || callback === void 0 ? void 0 : callback(value, namePath, index, operation, form);
|
|
92
|
+
};
|
|
93
|
+
var defaultActions = useMemo(function () {
|
|
94
|
+
return getDefaultActions(mode);
|
|
95
|
+
}, [mode]);
|
|
96
|
+
return /*#__PURE__*/React.createElement(_Space, {
|
|
97
|
+
align: "start",
|
|
98
|
+
className: "pro-form-list-action"
|
|
99
|
+
}, actionProps === null || actionProps === void 0 ? void 0 : actionProps.map(function (item) {
|
|
100
|
+
var label = item.label,
|
|
101
|
+
onClick = item.onClick,
|
|
102
|
+
onHandle = item.onHandle,
|
|
103
|
+
actionType = item.actionType,
|
|
104
|
+
needConfirm = item.needConfirm,
|
|
105
|
+
title = item.title,
|
|
106
|
+
rest = _objectWithoutProperties(item, _excluded);
|
|
107
|
+
var _onClick = onClick || onHandle;
|
|
108
|
+
if (['add', 'delete', 'copy', 'moveUp', 'moveDown'].includes(actionType)) {
|
|
109
|
+
var _defaultActions$actio = defaultActions[actionType],
|
|
110
|
+
internalOnClick = _defaultActions$actio.onClick,
|
|
111
|
+
defaultLabel = _defaultActions$actio.label,
|
|
112
|
+
defaultRest = _objectWithoutProperties(_defaultActions$actio, _excluded2);
|
|
113
|
+
// 小于min不可删除
|
|
114
|
+
if (min && min >= fields.length && ['delete'].includes(actionType)) {
|
|
115
|
+
return false;
|
|
116
|
+
}
|
|
117
|
+
// 大于等于max不可新增和复制
|
|
118
|
+
if (max && max <= fields.length && ['add', 'copy'].includes(actionType)) {
|
|
119
|
+
return false;
|
|
120
|
+
}
|
|
121
|
+
// 下标为零 不可向上移动
|
|
122
|
+
if (index === 0 && ['moveUp'].includes(actionType)) {
|
|
123
|
+
return false;
|
|
124
|
+
}
|
|
125
|
+
// 下标最大 不可向下移动
|
|
126
|
+
if (index + 1 === fields.length && ['moveDown'].includes(actionType)) {
|
|
127
|
+
return false;
|
|
128
|
+
}
|
|
129
|
+
return needConfirm ? /*#__PURE__*/React.createElement(_Popconfirm, {
|
|
130
|
+
title: title !== null && title !== void 0 ? title : '您确定要删除该条数据吗?',
|
|
131
|
+
key: "".concat(item.label).concat(index),
|
|
132
|
+
onCancel: function onCancel(e) {
|
|
133
|
+
return e.stopPropagation();
|
|
134
|
+
},
|
|
135
|
+
onConfirm: function onConfirm(e) {
|
|
136
|
+
handleClick(_onClick || internalOnClick, index);
|
|
137
|
+
}
|
|
138
|
+
}, /*#__PURE__*/React.createElement(_Button, _objectSpread(_objectSpread(_objectSpread({}, defaultRest), rest), {}, {
|
|
139
|
+
onClick: function onClick(e) {
|
|
140
|
+
return e.stopPropagation();
|
|
141
|
+
}
|
|
142
|
+
}), label || defaultLabel)) : /*#__PURE__*/React.createElement(_Button, _objectSpread(_objectSpread(_objectSpread({
|
|
143
|
+
key: "".concat(item.label).concat(index)
|
|
144
|
+
}, defaultRest), rest), {}, {
|
|
145
|
+
onClick: function onClick() {
|
|
146
|
+
return handleClick(_onClick || internalOnClick, index);
|
|
147
|
+
}
|
|
148
|
+
}), label || defaultLabel);
|
|
149
|
+
}
|
|
150
|
+
return needConfirm ? /*#__PURE__*/React.createElement(_Popconfirm, {
|
|
151
|
+
title: title !== null && title !== void 0 ? title : '您确定要删除该条数据吗?',
|
|
152
|
+
key: "".concat(item.label).concat(index),
|
|
153
|
+
onCancel: function onCancel(e) {
|
|
154
|
+
return e.stopPropagation();
|
|
155
|
+
},
|
|
156
|
+
onConfirm: function onConfirm() {
|
|
157
|
+
return handleClick(_onClick, index);
|
|
158
|
+
}
|
|
159
|
+
}, /*#__PURE__*/React.createElement(_Button, _objectSpread(_objectSpread({}, rest), {}, {
|
|
160
|
+
onClick: function onClick(e) {
|
|
161
|
+
return e.stopPropagation();
|
|
162
|
+
}
|
|
163
|
+
}), label)) : /*#__PURE__*/React.createElement(_Button, _objectSpread(_objectSpread({}, rest), {}, {
|
|
164
|
+
onClick: function onClick() {
|
|
165
|
+
return handleClick(_onClick, index);
|
|
166
|
+
}
|
|
167
|
+
}), label);
|
|
168
|
+
}));
|
|
169
|
+
};
|
|
170
|
+
export default ActionButton;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ColProps, FormListFieldData } from 'antd';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { InternalNamePath } from 'antd/lib/form/interface';
|
|
4
|
+
import { Props as FromListProps } from '../index';
|
|
5
|
+
interface Props extends Omit<FromListProps, 'toolbarProps'> {
|
|
6
|
+
index: number;
|
|
7
|
+
namePath: InternalNamePath;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
isView?: boolean;
|
|
10
|
+
colProps: ColProps;
|
|
11
|
+
field: FormListFieldData;
|
|
12
|
+
level?: string;
|
|
13
|
+
towCollapse?: boolean;
|
|
14
|
+
}
|
|
15
|
+
declare const BlockFields: React.FC<Props>;
|
|
16
|
+
export default BlockFields;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import "antd/es/row/style";
|
|
2
|
+
import _Row from "antd/es/row";
|
|
3
|
+
import "antd/es/space/style";
|
|
4
|
+
import _Space from "antd/es/space";
|
|
5
|
+
import React, { useMemo } from 'react';
|
|
6
|
+
import { isFunction } from 'lodash';
|
|
7
|
+
import ActionButton from './ActionButton';
|
|
8
|
+
import RenderFields from '../../../render/RenderFields';
|
|
9
|
+
import ProCollapse from '../../../../../ProLayout/components/ProCollapse';
|
|
10
|
+
var BlockFields = function BlockFields(props) {
|
|
11
|
+
var title = props.title,
|
|
12
|
+
mode = props.mode,
|
|
13
|
+
index = props.index,
|
|
14
|
+
form = props.form,
|
|
15
|
+
namePath = props.namePath,
|
|
16
|
+
min = props.min,
|
|
17
|
+
max = props.max,
|
|
18
|
+
fields = props.fields,
|
|
19
|
+
operation = props.operation,
|
|
20
|
+
field = props.field,
|
|
21
|
+
actionProps = props.actionProps,
|
|
22
|
+
columns = props.columns,
|
|
23
|
+
colProps = props.colProps,
|
|
24
|
+
disabled = props.disabled,
|
|
25
|
+
isView = props.isView,
|
|
26
|
+
_props$level = props.level,
|
|
27
|
+
level = _props$level === void 0 ? '2' : _props$level,
|
|
28
|
+
towCollapse = props.towCollapse;
|
|
29
|
+
var _title = useMemo(function () {
|
|
30
|
+
if (isFunction(title)) {
|
|
31
|
+
var record = form.getFieldValue(namePath);
|
|
32
|
+
return title(record, index, form);
|
|
33
|
+
}
|
|
34
|
+
return title;
|
|
35
|
+
}, [title, index]);
|
|
36
|
+
return /*#__PURE__*/React.createElement(_Space, {
|
|
37
|
+
direction: "vertical"
|
|
38
|
+
}, /*#__PURE__*/React.createElement(ProCollapse, {
|
|
39
|
+
title: _title,
|
|
40
|
+
index: index,
|
|
41
|
+
form: form,
|
|
42
|
+
// namePath={namePath}
|
|
43
|
+
level: level,
|
|
44
|
+
towCollapse: towCollapse,
|
|
45
|
+
extra: /*#__PURE__*/React.createElement(ActionButton, {
|
|
46
|
+
min: min,
|
|
47
|
+
max: max,
|
|
48
|
+
index: index,
|
|
49
|
+
length: fields.length,
|
|
50
|
+
operation: operation,
|
|
51
|
+
namePath: namePath,
|
|
52
|
+
form: form,
|
|
53
|
+
field: field,
|
|
54
|
+
fields: fields,
|
|
55
|
+
actionProps: actionProps,
|
|
56
|
+
mode: mode
|
|
57
|
+
})
|
|
58
|
+
}, /*#__PURE__*/React.createElement(_Row, {
|
|
59
|
+
key: field.key,
|
|
60
|
+
gutter: 24
|
|
61
|
+
}, /*#__PURE__*/React.createElement(RenderFields, {
|
|
62
|
+
columns: columns,
|
|
63
|
+
form: form,
|
|
64
|
+
colProps: colProps,
|
|
65
|
+
disabled: disabled,
|
|
66
|
+
isView: isView
|
|
67
|
+
}))));
|
|
68
|
+
};
|
|
69
|
+
export default BlockFields;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { NamePath } from 'antd/lib/form/interface';
|
|
3
|
+
import { FormInstance } from 'antd';
|
|
4
|
+
import { FormListMode } from '../index';
|
|
5
|
+
export type TitleRender = (record: Record<string, any>, index: number, form: FormInstance) => any;
|
|
6
|
+
export type TitleType = string | React.ReactNode | TitleRender;
|
|
7
|
+
interface Props {
|
|
8
|
+
mode: FormListMode;
|
|
9
|
+
namePath: NamePath;
|
|
10
|
+
index: number;
|
|
11
|
+
form: FormInstance;
|
|
12
|
+
title: TitleType;
|
|
13
|
+
}
|
|
14
|
+
declare const BlockTitle: React.FC<Props>;
|
|
15
|
+
export default BlockTitle;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { isFunction } from 'lodash';
|
|
3
|
+
var BlockTitle = function BlockTitle(props) {
|
|
4
|
+
var mode = props.mode,
|
|
5
|
+
namePath = props.namePath,
|
|
6
|
+
index = props.index,
|
|
7
|
+
form = props.form,
|
|
8
|
+
title = props.title;
|
|
9
|
+
if (mode !== 'block') {
|
|
10
|
+
return null;
|
|
11
|
+
}
|
|
12
|
+
if (!title) {
|
|
13
|
+
return /*#__PURE__*/React.createElement("div", null);
|
|
14
|
+
}
|
|
15
|
+
if ( /*#__PURE__*/React.isValidElement(title)) {
|
|
16
|
+
return title;
|
|
17
|
+
}
|
|
18
|
+
var titleContent = title;
|
|
19
|
+
if (isFunction(title)) {
|
|
20
|
+
var record = form.getFieldValue(namePath);
|
|
21
|
+
titleContent = title(record, index, form);
|
|
22
|
+
}
|
|
23
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
24
|
+
className: "pro-form-list-block-title"
|
|
25
|
+
}, titleContent);
|
|
26
|
+
};
|
|
27
|
+
export default BlockTitle;
|