@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,14 @@
|
|
|
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
|
+
}
|
|
13
|
+
declare const LineFields: React.FC<Props>;
|
|
14
|
+
export default LineFields;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import "antd/es/row/style";
|
|
2
|
+
import _Row from "antd/es/row";
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import ActionButton from './ActionButton';
|
|
5
|
+
import RenderFields from '../../../render/RenderFields';
|
|
6
|
+
var LineFields = function LineFields(props) {
|
|
7
|
+
var title = props.title,
|
|
8
|
+
mode = props.mode,
|
|
9
|
+
index = props.index,
|
|
10
|
+
form = props.form,
|
|
11
|
+
namePath = props.namePath,
|
|
12
|
+
min = props.min,
|
|
13
|
+
max = props.max,
|
|
14
|
+
fields = props.fields,
|
|
15
|
+
operation = props.operation,
|
|
16
|
+
field = props.field,
|
|
17
|
+
actionProps = props.actionProps,
|
|
18
|
+
columns = props.columns,
|
|
19
|
+
colProps = props.colProps,
|
|
20
|
+
disabled = props.disabled,
|
|
21
|
+
isView = props.isView;
|
|
22
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
23
|
+
className: "pro-form-list-line"
|
|
24
|
+
}, /*#__PURE__*/React.createElement(_Row, {
|
|
25
|
+
gutter: 24
|
|
26
|
+
}, /*#__PURE__*/React.createElement(RenderFields, {
|
|
27
|
+
columns: columns,
|
|
28
|
+
form: form,
|
|
29
|
+
colProps: colProps,
|
|
30
|
+
disabled: disabled,
|
|
31
|
+
isView: isView
|
|
32
|
+
})), /*#__PURE__*/React.createElement(ActionButton, {
|
|
33
|
+
min: min,
|
|
34
|
+
max: max,
|
|
35
|
+
index: index,
|
|
36
|
+
length: fields.length,
|
|
37
|
+
operation: operation,
|
|
38
|
+
namePath: namePath,
|
|
39
|
+
form: form,
|
|
40
|
+
field: field,
|
|
41
|
+
fields: fields,
|
|
42
|
+
actionProps: actionProps,
|
|
43
|
+
mode: mode
|
|
44
|
+
}));
|
|
45
|
+
};
|
|
46
|
+
export default LineFields;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { InternalNamePath } from 'antd/lib/form/interface';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { ActionProps } from '../index';
|
|
4
|
+
import { Props as ActionButtonProps } from './ActionButton';
|
|
5
|
+
interface Props extends Omit<ActionButtonProps, 'actionProps' | 'field' | 'index' | 'mode' | 'namePath'> {
|
|
6
|
+
toolbarProps: ActionProps[];
|
|
7
|
+
namePath: InternalNamePath;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
isView?: boolean;
|
|
10
|
+
}
|
|
11
|
+
declare const ToolbarButton: React.FC<Props>;
|
|
12
|
+
export default ToolbarButton;
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
|
+
import "antd/es/button/style";
|
|
3
|
+
import _Button from "antd/es/button";
|
|
4
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
5
|
+
import "antd/es/space/style";
|
|
6
|
+
import _Space from "antd/es/space";
|
|
7
|
+
var _excluded = ["label", "onClick", "onHandle", "actionType"],
|
|
8
|
+
_excluded2 = ["onClick", "label"];
|
|
9
|
+
import { PlusOutlined } from '@ant-design/icons';
|
|
10
|
+
import React, { useMemo } from 'react';
|
|
11
|
+
var ToolbarButton = function ToolbarButton(props) {
|
|
12
|
+
var toolbarProps = props.toolbarProps,
|
|
13
|
+
namePath = props.namePath,
|
|
14
|
+
form = props.form,
|
|
15
|
+
operation = props.operation,
|
|
16
|
+
length = props.length,
|
|
17
|
+
fields = props.fields,
|
|
18
|
+
min = props.min,
|
|
19
|
+
max = props.max,
|
|
20
|
+
disabled = props.disabled,
|
|
21
|
+
isView = props.isView;
|
|
22
|
+
var actions = useMemo(function () {
|
|
23
|
+
return {
|
|
24
|
+
add: {
|
|
25
|
+
onClick: function onClick(fields, operation, form) {
|
|
26
|
+
operation.add();
|
|
27
|
+
},
|
|
28
|
+
label: '新增一行',
|
|
29
|
+
type: 'link',
|
|
30
|
+
icon: /*#__PURE__*/React.createElement(PlusOutlined, null)
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
}, [toolbarProps]);
|
|
34
|
+
var handleClick = function handleClick(callback) {
|
|
35
|
+
// ActionProps['onClick']
|
|
36
|
+
// const fieldnamePath = namePath.concat(field.name);
|
|
37
|
+
// const value = form.getFieldValue(fieldnamePath);
|
|
38
|
+
callback === null || callback === void 0 ? void 0 : callback(fields, operation, form);
|
|
39
|
+
};
|
|
40
|
+
if (disabled || isView) {
|
|
41
|
+
return null;
|
|
42
|
+
}
|
|
43
|
+
return /*#__PURE__*/React.createElement(_Space, {
|
|
44
|
+
align: "start",
|
|
45
|
+
className: "pro-form-list-toolbar"
|
|
46
|
+
}, toolbarProps === null || toolbarProps === void 0 ? void 0 : toolbarProps.map(function (item) {
|
|
47
|
+
var label = item.label,
|
|
48
|
+
_onClick2 = item.onClick,
|
|
49
|
+
onHandle = item.onHandle,
|
|
50
|
+
actionType = item.actionType,
|
|
51
|
+
rest = _objectWithoutProperties(item, _excluded);
|
|
52
|
+
var _onClick = _onClick2 || onHandle;
|
|
53
|
+
if (['add'].includes(actionType)) {
|
|
54
|
+
var _actions$actionType = actions[actionType],
|
|
55
|
+
internalOnClick = _actions$actionType.onClick,
|
|
56
|
+
defaultLabel = _actions$actionType.label,
|
|
57
|
+
defaultRest = _objectWithoutProperties(_actions$actionType, _excluded2);
|
|
58
|
+
// 大于等于max不可新增
|
|
59
|
+
if (max && max <= fields.length && ['add'].includes(actionType)) {
|
|
60
|
+
return false;
|
|
61
|
+
}
|
|
62
|
+
return /*#__PURE__*/React.createElement(_Button, _objectSpread(_objectSpread(_objectSpread({
|
|
63
|
+
key: actionType
|
|
64
|
+
}, actions[actionType]), rest), {}, {
|
|
65
|
+
onClick: function onClick() {
|
|
66
|
+
return handleClick(_onClick || internalOnClick);
|
|
67
|
+
}
|
|
68
|
+
}), label || defaultLabel);
|
|
69
|
+
}
|
|
70
|
+
return /*#__PURE__*/React.createElement(_Button, _objectSpread(_objectSpread({
|
|
71
|
+
key: actionType
|
|
72
|
+
}, rest), {}, {
|
|
73
|
+
onClick: function onClick() {
|
|
74
|
+
return handleClick(_onClick2);
|
|
75
|
+
}
|
|
76
|
+
}), label);
|
|
77
|
+
}));
|
|
78
|
+
};
|
|
79
|
+
export default ToolbarButton;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ButtonProps, FormListFieldData, FormListOperation } from 'antd';
|
|
3
|
+
import { FormInstance } from 'antd/es/form/Form';
|
|
4
|
+
import { InternalNamePath, NamePath } from 'antd/lib/form/interface';
|
|
5
|
+
import type { ProColumnProps, ProFormOtherProps } from '../../../propsType';
|
|
6
|
+
import { TitleType } from './components/BlockTitle';
|
|
7
|
+
import './style/index.less';
|
|
8
|
+
type Callback = (record: any, fullName: InternalNamePath, index: number, operation: FormListOperation, form: FormInstance) => void;
|
|
9
|
+
export interface ActionProps extends Omit<ButtonProps, 'onClick'> {
|
|
10
|
+
actionType?: 'add' | 'delete' | 'copy' | 'moveUp' | 'moveDown';
|
|
11
|
+
onHandle?: Callback;
|
|
12
|
+
onClick?: Callback;
|
|
13
|
+
label?: string;
|
|
14
|
+
needConfirm?: boolean;
|
|
15
|
+
title?: string;
|
|
16
|
+
}
|
|
17
|
+
export type FormListMode = 'block' | 'line';
|
|
18
|
+
export interface Props {
|
|
19
|
+
columns: ProColumnProps[];
|
|
20
|
+
otherProps?: ProFormOtherProps;
|
|
21
|
+
form?: FormInstance;
|
|
22
|
+
min?: number;
|
|
23
|
+
max?: number;
|
|
24
|
+
actionProps?: ActionProps[];
|
|
25
|
+
toolbarProps?: ActionProps[];
|
|
26
|
+
value?: any[];
|
|
27
|
+
onChange?: (record: any[], name: NamePath, form: FormInstance) => void;
|
|
28
|
+
fields: FormListFieldData[];
|
|
29
|
+
operation: FormListOperation;
|
|
30
|
+
title?: string | TitleType;
|
|
31
|
+
mode?: FormListMode;
|
|
32
|
+
level?: string;
|
|
33
|
+
disabled?: boolean;
|
|
34
|
+
meta: {
|
|
35
|
+
errors: React.ReactNode[];
|
|
36
|
+
warnings: React.ReactNode[];
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
interface FormListRef {
|
|
40
|
+
operation: FormListOperation;
|
|
41
|
+
}
|
|
42
|
+
declare const _default: React.ForwardRefExoticComponent<Props & React.RefAttributes<FormListRef>>;
|
|
43
|
+
export default _default;
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import "antd/es/form/style";
|
|
2
|
+
import _Form from "antd/es/form";
|
|
3
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
4
|
+
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
5
|
+
import React, { forwardRef, useCallback, useImperativeHandle } from 'react';
|
|
6
|
+
import { toArray } from '../../../utils';
|
|
7
|
+
import { namesPathTransform } from './utils';
|
|
8
|
+
import ToolbarButton from './components/ToolbarButton';
|
|
9
|
+
import BlockFields from './components/BlockFields';
|
|
10
|
+
import LineFields from './components/LineFields';
|
|
11
|
+
import './style/index.less';
|
|
12
|
+
var FormList = function FormList(props, ref) {
|
|
13
|
+
var columns = props.columns,
|
|
14
|
+
otherProps = props.otherProps,
|
|
15
|
+
min = props.min,
|
|
16
|
+
max = props.max,
|
|
17
|
+
toolbarProps = props.toolbarProps,
|
|
18
|
+
fields = props.fields,
|
|
19
|
+
operation = props.operation,
|
|
20
|
+
_props$mode = props.mode,
|
|
21
|
+
mode = _props$mode === void 0 ? 'line' : _props$mode,
|
|
22
|
+
meta = props.meta;
|
|
23
|
+
var form = otherProps.form,
|
|
24
|
+
name = otherProps.name,
|
|
25
|
+
isView = otherProps.isView,
|
|
26
|
+
disabled = otherProps.disabled,
|
|
27
|
+
colProps = otherProps.colProps;
|
|
28
|
+
var errors = meta.errors;
|
|
29
|
+
var _namePath = toArray(name);
|
|
30
|
+
var processColumns = useCallback(function (fieldName, namePath) {
|
|
31
|
+
return columns.map(function (item) {
|
|
32
|
+
// names的name处理
|
|
33
|
+
var _name = Array.isArray(item === null || item === void 0 ? void 0 : item.names) ? [fieldName, namesPathTransform({
|
|
34
|
+
names: item === null || item === void 0 ? void 0 : item.names,
|
|
35
|
+
prefixNamePath: namePath
|
|
36
|
+
})] : [fieldName].concat(_toConsumableArray(toArray(item.name)));
|
|
37
|
+
return _objectSpread(_objectSpread({}, item), {}, {
|
|
38
|
+
name: _name,
|
|
39
|
+
names: (item === null || item === void 0 ? void 0 : item.names) ? item.names.map(function (nameItem) {
|
|
40
|
+
return [].concat(_toConsumableArray(namePath), _toConsumableArray(toArray(nameItem)));
|
|
41
|
+
}) : item.names,
|
|
42
|
+
index: fieldName,
|
|
43
|
+
namePath: namePath
|
|
44
|
+
});
|
|
45
|
+
});
|
|
46
|
+
}, [columns]);
|
|
47
|
+
useImperativeHandle(ref, function () {
|
|
48
|
+
return {
|
|
49
|
+
operation: operation
|
|
50
|
+
};
|
|
51
|
+
});
|
|
52
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, fields.map(function (field, index) {
|
|
53
|
+
var namePath = [].concat(_toConsumableArray(_namePath), [index]);
|
|
54
|
+
var _columns = processColumns(index, namePath);
|
|
55
|
+
return mode === 'block' ? /*#__PURE__*/React.createElement(BlockFields, _objectSpread(_objectSpread({
|
|
56
|
+
key: field.key
|
|
57
|
+
}, props), {}, {
|
|
58
|
+
columns: _columns,
|
|
59
|
+
disabled: disabled || (props === null || props === void 0 ? void 0 : props.disabled),
|
|
60
|
+
isView: isView,
|
|
61
|
+
namePath: namePath,
|
|
62
|
+
index: index,
|
|
63
|
+
field: field,
|
|
64
|
+
colProps: colProps,
|
|
65
|
+
form: form
|
|
66
|
+
})) : /*#__PURE__*/React.createElement(LineFields, _objectSpread(_objectSpread({
|
|
67
|
+
key: field.key
|
|
68
|
+
}, props), {}, {
|
|
69
|
+
mode: mode,
|
|
70
|
+
columns: _columns,
|
|
71
|
+
disabled: disabled || (props === null || props === void 0 ? void 0 : props.disabled),
|
|
72
|
+
isView: isView,
|
|
73
|
+
namePath: namePath,
|
|
74
|
+
index: index,
|
|
75
|
+
field: field,
|
|
76
|
+
colProps: colProps,
|
|
77
|
+
form: form
|
|
78
|
+
}));
|
|
79
|
+
}), /*#__PURE__*/React.createElement(_Form.ErrorList, {
|
|
80
|
+
errors: errors
|
|
81
|
+
}), /*#__PURE__*/React.createElement(ToolbarButton, {
|
|
82
|
+
disabled: disabled,
|
|
83
|
+
isView: isView,
|
|
84
|
+
min: min,
|
|
85
|
+
max: max,
|
|
86
|
+
length: fields.length,
|
|
87
|
+
operation: operation,
|
|
88
|
+
namePath: _namePath,
|
|
89
|
+
form: form,
|
|
90
|
+
fields: fields,
|
|
91
|
+
toolbarProps: toolbarProps
|
|
92
|
+
}));
|
|
93
|
+
};
|
|
94
|
+
export default /*#__PURE__*/forwardRef(FormList);
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
.pro-form-list-block-title {
|
|
2
|
+
height: 14px;
|
|
3
|
+
margin: 3px 0;
|
|
4
|
+
padding-left: 7px;
|
|
5
|
+
font-weight: 600;
|
|
6
|
+
line-height: 14px;
|
|
7
|
+
border-left: 4px solid #006aff;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.pro-form-list-line {
|
|
11
|
+
display: flex;
|
|
12
|
+
align-items: center;
|
|
13
|
+
padding: var(--zaui-height-border);
|
|
14
|
+
padding-bottom: 0;
|
|
15
|
+
|
|
16
|
+
&:nth-child(1) {
|
|
17
|
+
flex: 1;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&:hover {
|
|
21
|
+
background: rgba(0, 0, 0, 0.018);
|
|
22
|
+
}
|
|
23
|
+
.pro-form-list-action {
|
|
24
|
+
padding-bottom: var(--zaui-height-border);
|
|
25
|
+
& > .ant-space-item:first-child > .ant-btn-link {
|
|
26
|
+
margin-left: 8px;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.pro-form-list-toolbar,
|
|
32
|
+
.pro-form-list-action {
|
|
33
|
+
.ant-btn-link {
|
|
34
|
+
padding: 4px 0;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* namesPath生产 [['list', 0, 'min'], ['list', 0, 'max']] => list_0_min-list_0_max
|
|
3
|
+
* @param names name的集合
|
|
4
|
+
* @param prefixNamePath formList的name前缀
|
|
5
|
+
* @returns list_0_min-list_0_max
|
|
6
|
+
*/
|
|
7
|
+
export declare const namesPathTransform: ({ names, prefixNamePath, }: {
|
|
8
|
+
names: any[];
|
|
9
|
+
prefixNamePath: any[];
|
|
10
|
+
}) => string;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* namesPath生产 [['list', 0, 'min'], ['list', 0, 'max']] => list_0_min-list_0_max
|
|
3
|
+
* @param names name的集合
|
|
4
|
+
* @param prefixNamePath formList的name前缀
|
|
5
|
+
* @returns list_0_min-list_0_max
|
|
6
|
+
*/
|
|
7
|
+
export var namesPathTransform = function namesPathTransform(_ref) {
|
|
8
|
+
var names = _ref.names,
|
|
9
|
+
prefixNamePath = _ref.prefixNamePath;
|
|
10
|
+
if (!Array.isArray(names) || !Array.isArray(prefixNamePath)) {
|
|
11
|
+
return '';
|
|
12
|
+
}
|
|
13
|
+
var newNamePath = names.map(function (val) {
|
|
14
|
+
return prefixNamePath.concat(val);
|
|
15
|
+
});
|
|
16
|
+
return newNamePath === null || newNamePath === void 0 ? void 0 : newNamePath.map(function (name) {
|
|
17
|
+
return Array.isArray(name) ? name.join('_') : name;
|
|
18
|
+
}).join('-');
|
|
19
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
|
+
import "antd/es/input/style";
|
|
3
|
+
import _Input from "antd/es/input";
|
|
4
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
5
|
+
var _excluded = ["label", "form", "placeholder", "fieldName", "otherProps"];
|
|
6
|
+
import React from 'react';
|
|
7
|
+
import { useProConfig } from 'zat-design-pro-component';
|
|
8
|
+
import Container from '../../Container';
|
|
9
|
+
// 参数优先级
|
|
10
|
+
// 组件内默认值 < config默认值 < props
|
|
11
|
+
var Input = function Input(props) {
|
|
12
|
+
var label = props.label,
|
|
13
|
+
form = props.form,
|
|
14
|
+
placeholder = props.placeholder,
|
|
15
|
+
fieldName = props.fieldName,
|
|
16
|
+
otherProps = props.otherProps,
|
|
17
|
+
rest = _objectWithoutProperties(props, _excluded);
|
|
18
|
+
var _ref = otherProps || {},
|
|
19
|
+
isView = _ref.isView,
|
|
20
|
+
viewEmpty = _ref.viewEmpty;
|
|
21
|
+
var initialConfig = useProConfig('Input');
|
|
22
|
+
if (isView) {
|
|
23
|
+
return /*#__PURE__*/React.createElement(Container, {
|
|
24
|
+
viewEmpty: viewEmpty
|
|
25
|
+
}, rest.value);
|
|
26
|
+
}
|
|
27
|
+
return /*#__PURE__*/React.createElement(_Input, _objectSpread(_objectSpread({
|
|
28
|
+
allowClear: true,
|
|
29
|
+
autoComplete: "off",
|
|
30
|
+
placeholder: placeholder || '请输入'
|
|
31
|
+
}, initialConfig), rest));
|
|
32
|
+
};
|
|
33
|
+
export default Input;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { InputProps } from 'antd';
|
|
2
|
+
import { FormInstance } from 'antd/es/form/Form';
|
|
3
|
+
import { ProFormOtherProps } from '../../../propsType';
|
|
4
|
+
export interface ProFieldProps<T = any> {
|
|
5
|
+
from?: FormInstance<T>;
|
|
6
|
+
label?: string;
|
|
7
|
+
name?: string;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
fieldName?: string;
|
|
10
|
+
placeholder?: string;
|
|
11
|
+
}
|
|
12
|
+
export interface IProps extends InputProps, ProFieldProps {
|
|
13
|
+
otherProps?: ProFormOtherProps;
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { InputNumberProps } from 'antd';
|
|
3
|
+
import { ProFormOtherProps } from '../../../propsType';
|
|
4
|
+
export interface Props extends Omit<InputNumberProps, 'onBlur'> {
|
|
5
|
+
otherProps?: ProFormOtherProps;
|
|
6
|
+
range?: string;
|
|
7
|
+
onBlur?: (value?: number) => void;
|
|
8
|
+
}
|
|
9
|
+
declare const InputNumber: React.FC<Props>;
|
|
10
|
+
export default InputNumber;
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
|
+
import "antd/es/input-number/style";
|
|
3
|
+
import _InputNumber from "antd/es/input-number";
|
|
4
|
+
import "antd/es/space/style";
|
|
5
|
+
import _Space from "antd/es/space";
|
|
6
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
7
|
+
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
8
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
9
|
+
var _excluded = ["placeholder", "className", "otherProps", "range", "min", "max", "onBlur"];
|
|
10
|
+
import React, { useMemo } from 'react';
|
|
11
|
+
import classNames from 'classnames';
|
|
12
|
+
import Big from 'big.js';
|
|
13
|
+
import { useProConfig } from 'zat-design-pro-component';
|
|
14
|
+
import { tools } from '@zat-design-pro-component/utils';
|
|
15
|
+
import { isNull, isNumber, isUndefined } from 'lodash';
|
|
16
|
+
import Container from '../../Container';
|
|
17
|
+
var rangeReg = /^[([](-?\d+(\.\d+)?)?,\s*(-?\d+(\.\d+)?)?[)\]]$/;
|
|
18
|
+
var InputNumber = function InputNumber(props) {
|
|
19
|
+
var placeholder = props.placeholder,
|
|
20
|
+
className = props.className,
|
|
21
|
+
otherProps = props.otherProps,
|
|
22
|
+
range = props.range,
|
|
23
|
+
min = props.min,
|
|
24
|
+
max = props.max,
|
|
25
|
+
onBlur = props.onBlur,
|
|
26
|
+
rest = _objectWithoutProperties(props, _excluded);
|
|
27
|
+
var _ref = otherProps || {},
|
|
28
|
+
isView = _ref.isView,
|
|
29
|
+
viewEmpty = _ref.viewEmpty,
|
|
30
|
+
viewType = _ref.viewType,
|
|
31
|
+
valueType = _ref.valueType,
|
|
32
|
+
label = _ref.label;
|
|
33
|
+
var valueProps = {};
|
|
34
|
+
if (valueType) {
|
|
35
|
+
switch (valueType) {
|
|
36
|
+
// 千分比
|
|
37
|
+
case 'thousandth':
|
|
38
|
+
case 'thousandthCNY':
|
|
39
|
+
case 'money':
|
|
40
|
+
case 'amount':
|
|
41
|
+
valueProps = {
|
|
42
|
+
formatter: function formatter(value) {
|
|
43
|
+
return "".concat(value).replace(/\B(?=(\d{3})+(?!\d))/g, ',');
|
|
44
|
+
},
|
|
45
|
+
parser: function parser(value) {
|
|
46
|
+
return value.replace(/\$\s?|(,*)/g, '');
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
break;
|
|
50
|
+
// 百分比
|
|
51
|
+
case 'percentage':
|
|
52
|
+
valueProps = {
|
|
53
|
+
min: 0,
|
|
54
|
+
max: 100,
|
|
55
|
+
step: 1
|
|
56
|
+
};
|
|
57
|
+
break;
|
|
58
|
+
// 千分比
|
|
59
|
+
case 'permillage':
|
|
60
|
+
valueProps = {
|
|
61
|
+
min: 0,
|
|
62
|
+
max: 1000,
|
|
63
|
+
step: 1
|
|
64
|
+
};
|
|
65
|
+
break;
|
|
66
|
+
default:
|
|
67
|
+
valueProps = {
|
|
68
|
+
max: 999999999999
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
var _useMemo = useMemo(function () {
|
|
73
|
+
var _ref2, _min2, _valueProps, _ref3, _max2, _valueProps2;
|
|
74
|
+
var _min;
|
|
75
|
+
var _max;
|
|
76
|
+
if (range) {
|
|
77
|
+
if (rest.precision === undefined) {
|
|
78
|
+
console.warn('使用 "range" 时, 必须传入 "precision"');
|
|
79
|
+
} else if (!rangeReg.test(range)) {
|
|
80
|
+
console.warn('"range" 格式有误, 参考: "(a, b)", "[a, b]", "(a, b]", "[a, b)"');
|
|
81
|
+
} else {
|
|
82
|
+
var _range$replace$split = range.replace(' ', '').split(','),
|
|
83
|
+
_range$replace$split2 = _slicedToArray(_range$replace$split, 2),
|
|
84
|
+
start = _range$replace$split2[0],
|
|
85
|
+
end = _range$replace$split2[1];
|
|
86
|
+
var minTag = start.slice(0, 1);
|
|
87
|
+
var minStr = start.slice(1);
|
|
88
|
+
var minNum = Number(minStr);
|
|
89
|
+
var maxTag = end.slice(-1);
|
|
90
|
+
var maxStr = end.slice(0, -1);
|
|
91
|
+
var maxNum = Number(end.slice(0, -1));
|
|
92
|
+
var minimum = 1 / Math.pow(10, rest.precision);
|
|
93
|
+
if (minStr === '') {
|
|
94
|
+
_min = undefined;
|
|
95
|
+
} else if (minTag === '[') {
|
|
96
|
+
_min = minNum;
|
|
97
|
+
} else {
|
|
98
|
+
_min = minNum + minimum;
|
|
99
|
+
}
|
|
100
|
+
if (maxStr === '') {
|
|
101
|
+
_max = undefined;
|
|
102
|
+
} else if (maxTag === ']') {
|
|
103
|
+
_max = maxNum;
|
|
104
|
+
} else {
|
|
105
|
+
_max = maxNum - minimum;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
return [(_ref2 = (_min2 = _min) !== null && _min2 !== void 0 ? _min2 : min) !== null && _ref2 !== void 0 ? _ref2 : (_valueProps = valueProps) === null || _valueProps === void 0 ? void 0 : _valueProps.min, (_ref3 = (_max2 = _max) !== null && _max2 !== void 0 ? _max2 : max) !== null && _ref3 !== void 0 ? _ref3 : (_valueProps2 = valueProps) === null || _valueProps2 === void 0 ? void 0 : _valueProps2.max];
|
|
110
|
+
}, [range, min, max, rest.precision]),
|
|
111
|
+
_useMemo2 = _slicedToArray(_useMemo, 2),
|
|
112
|
+
_min = _useMemo2[0],
|
|
113
|
+
_max = _useMemo2[1];
|
|
114
|
+
var initialConfig = useProConfig('InputNumber');
|
|
115
|
+
var _className = classNames(_defineProperty({
|
|
116
|
+
'full-form-item': true
|
|
117
|
+
}, className, !!className));
|
|
118
|
+
if (isView) {
|
|
119
|
+
var value = rest.value,
|
|
120
|
+
precision = rest.precision;
|
|
121
|
+
// 值为空时返回viewEmpty
|
|
122
|
+
if (isNull(value) || isUndefined(value)) {
|
|
123
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, viewEmpty);
|
|
124
|
+
}
|
|
125
|
+
switch (valueType || viewType) {
|
|
126
|
+
// 百分比
|
|
127
|
+
case 'percent':
|
|
128
|
+
case 'percentage':
|
|
129
|
+
return /*#__PURE__*/React.createElement(Container, {
|
|
130
|
+
viewEmpty: viewEmpty
|
|
131
|
+
}, Big(value).toNumber().toFixed(isNumber(precision) ? precision : 2));
|
|
132
|
+
// 千分比
|
|
133
|
+
case 'permillage':
|
|
134
|
+
return /*#__PURE__*/React.createElement(Container, {
|
|
135
|
+
viewEmpty: viewEmpty
|
|
136
|
+
}, Big(value).toNumber().toFixed(isNumber(precision) ? precision : 2));
|
|
137
|
+
// 千分位
|
|
138
|
+
case 'amount':
|
|
139
|
+
case 'money':
|
|
140
|
+
case 'thousandth':
|
|
141
|
+
return /*#__PURE__*/React.createElement(Container, {
|
|
142
|
+
viewEmpty: viewEmpty
|
|
143
|
+
}, tools.formatAmount(value, precision));
|
|
144
|
+
// CNY千分位
|
|
145
|
+
case 'thousandthCNY':
|
|
146
|
+
return /*#__PURE__*/React.createElement(Container, {
|
|
147
|
+
viewEmpty: viewEmpty
|
|
148
|
+
}, /*#__PURE__*/React.createElement(_Space, {
|
|
149
|
+
size: 4
|
|
150
|
+
}, value || value === 0 ? 'CNY' : '', tools.formatAmount(value, precision)));
|
|
151
|
+
default:
|
|
152
|
+
return /*#__PURE__*/React.createElement(Container, {
|
|
153
|
+
viewEmpty: viewEmpty
|
|
154
|
+
}, value);
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
var handleBlur = function handleBlur() {
|
|
158
|
+
var _value = rest.value;
|
|
159
|
+
if (rest.value > _max) {
|
|
160
|
+
_value = _max;
|
|
161
|
+
}
|
|
162
|
+
if (rest.value < _min) {
|
|
163
|
+
_value = _min;
|
|
164
|
+
}
|
|
165
|
+
onBlur(_value);
|
|
166
|
+
};
|
|
167
|
+
return /*#__PURE__*/React.createElement(_InputNumber, _objectSpread(_objectSpread(_objectSpread(_objectSpread({
|
|
168
|
+
autoComplete: "off",
|
|
169
|
+
placeholder: placeholder || "\u8BF7\u8F93\u5165".concat(label !== null && label !== void 0 ? label : ''),
|
|
170
|
+
className: _className
|
|
171
|
+
}, valueProps), initialConfig), rest), {}, {
|
|
172
|
+
onBlur: handleBlur,
|
|
173
|
+
min: _min,
|
|
174
|
+
max: _max
|
|
175
|
+
}));
|
|
176
|
+
};
|
|
177
|
+
export default InputNumber;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { RadioChangeEvent, RadioProps } from 'antd';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { ProFormOtherProps } from '../../../propsType';
|
|
4
|
+
export interface Props extends Omit<RadioProps, 'options' | 'onChange'> {
|
|
5
|
+
dataSource: any[];
|
|
6
|
+
onChange: (value: any, e: RadioChangeEvent) => void;
|
|
7
|
+
fieldNames?: {
|
|
8
|
+
label: string;
|
|
9
|
+
value: string;
|
|
10
|
+
};
|
|
11
|
+
otherProps?: ProFormOtherProps;
|
|
12
|
+
}
|
|
13
|
+
declare const Radio: React.FC<Props>;
|
|
14
|
+
export default Radio;
|