@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,473 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = void 0;
|
|
9
|
+
var _regeneratorRuntime2 = _interopRequireDefault(require("@babel/runtime/helpers/regeneratorRuntime"));
|
|
10
|
+
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
11
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
12
|
+
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
13
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
14
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
15
|
+
var _antd = require("antd");
|
|
16
|
+
var _lodash = require("lodash");
|
|
17
|
+
var _valueType = _interopRequireDefault(require("../../../ProForm/utils/valueType"));
|
|
18
|
+
var _transform = _interopRequireDefault(require("../../utils/transform"));
|
|
19
|
+
var _tools = require("../../utils/tools");
|
|
20
|
+
var _index = require("../../../ProForm/utils/index");
|
|
21
|
+
var componentMap = _interopRequireWildcard(require("../../../ProForm/components"));
|
|
22
|
+
var _Container = _interopRequireDefault(require("../../../ProForm/components/Container"));
|
|
23
|
+
var _transformNames = _interopRequireDefault(require("../../../ProForm/utils/transformNames"));
|
|
24
|
+
var _excluded = ["type", "valueType", "rules", "names", "fieldProps", "required", "labelRequired", "editRender", "component", "viewRender", "title", "originTitle", "label", "dataIndex", "formItemProps", "isEditable"];
|
|
25
|
+
var RenderField = function RenderField(_ref) {
|
|
26
|
+
var _type, _type$replace, _names, _fieldProps$rules, _formItemChildProps$p, _TargetComponent4;
|
|
27
|
+
var value = _ref.text,
|
|
28
|
+
record = _ref.record,
|
|
29
|
+
index = _ref.index,
|
|
30
|
+
column = _ref.column,
|
|
31
|
+
config = _ref.config;
|
|
32
|
+
var type = column.type,
|
|
33
|
+
valueType = column.valueType,
|
|
34
|
+
_column$rules = column.rules,
|
|
35
|
+
rules = _column$rules === void 0 ? [] : _column$rules,
|
|
36
|
+
names = column.names,
|
|
37
|
+
fieldProps = column.fieldProps,
|
|
38
|
+
required = column.required,
|
|
39
|
+
labelRequired = column.labelRequired,
|
|
40
|
+
editRender = column.editRender,
|
|
41
|
+
component = column.component,
|
|
42
|
+
viewRender = column.viewRender,
|
|
43
|
+
title = column.title,
|
|
44
|
+
originTitle = column.originTitle,
|
|
45
|
+
label = column.label,
|
|
46
|
+
dataIndex = column.dataIndex,
|
|
47
|
+
formItemProps = column.formItemProps,
|
|
48
|
+
_column$isEditable = column.isEditable,
|
|
49
|
+
isEditable = _column$isEditable === void 0 ? true : _column$isEditable,
|
|
50
|
+
resetProps = (0, _objectWithoutProperties2.default)(column, _excluded);
|
|
51
|
+
// editRender弃用使用component同ProForm
|
|
52
|
+
var _editRender = component || editRender;
|
|
53
|
+
if (type && _editRender) {
|
|
54
|
+
console.warn('type和component为互斥关系, type将不会生效');
|
|
55
|
+
}
|
|
56
|
+
var mode = config.mode,
|
|
57
|
+
cellName = config.cellName,
|
|
58
|
+
cellNamePath = config.cellNamePath,
|
|
59
|
+
isEditing = config.isEditing,
|
|
60
|
+
disabled = config.disabled,
|
|
61
|
+
form = config.form,
|
|
62
|
+
setState = config.setState,
|
|
63
|
+
name = config.name,
|
|
64
|
+
virtualKey = config.virtualKey,
|
|
65
|
+
viewEmpty = config.viewEmpty;
|
|
66
|
+
var isCell = mode === 'cell';
|
|
67
|
+
if (isCell) {
|
|
68
|
+
record.isView = !(0, _lodash.isEqual)(cellNamePath, cellName);
|
|
69
|
+
}
|
|
70
|
+
// 是否只读文本
|
|
71
|
+
var isView = !isEditable || (record === null || record === void 0 ? void 0 : record.isView) || config.isView || virtualKey && !isEditing;
|
|
72
|
+
// type类型 首字母转大写
|
|
73
|
+
type = ((_type = type) === null || _type === void 0 ? void 0 : (_type$replace = _type.replace) === null || _type$replace === void 0 ? void 0 : _type$replace.call(_type, type[0], type[0].toUpperCase())) || 'Input';
|
|
74
|
+
// 单行正在编辑时,临时生成一套formItem用来存储中间值,点击取消时候重置回上一次状态
|
|
75
|
+
var namePath = (0, _tools.getNamePath)(name, virtualKey);
|
|
76
|
+
// 只读文本时,采用当前formItem的name,单行编辑时,使用生成的虚拟的name
|
|
77
|
+
var baseName = isView ? name : namePath;
|
|
78
|
+
var rowData = form.getFieldValue([].concat((0, _toConsumableArray2.default)(namePath), [index])) || record;
|
|
79
|
+
var currentValue = dataIndex ? rowData === null || rowData === void 0 ? void 0 : rowData[dataIndex] : null;
|
|
80
|
+
var TargetComponent;
|
|
81
|
+
// 第三个参数
|
|
82
|
+
var options = {
|
|
83
|
+
index: index,
|
|
84
|
+
form: form,
|
|
85
|
+
namePath: [].concat((0, _toConsumableArray2.default)(namePath), [index])
|
|
86
|
+
};
|
|
87
|
+
if (typeof fieldProps === 'function') {
|
|
88
|
+
fieldProps = fieldProps(currentValue, rowData, options);
|
|
89
|
+
}
|
|
90
|
+
var _fieldProps = fieldProps || formItemProps;
|
|
91
|
+
if (typeof (_fieldProps === null || _fieldProps === void 0 ? void 0 : _fieldProps.rules) === 'function') {
|
|
92
|
+
_fieldProps.rules = _fieldProps.rules(currentValue, rowData, options);
|
|
93
|
+
}
|
|
94
|
+
if (typeof rules === 'function') {
|
|
95
|
+
rules = rules(currentValue, rowData, options);
|
|
96
|
+
}
|
|
97
|
+
if (typeof (_fieldProps === null || _fieldProps === void 0 ? void 0 : _fieldProps.disabled) === 'function') {
|
|
98
|
+
_fieldProps.disabled = _fieldProps.disabled(currentValue, rowData, options);
|
|
99
|
+
}
|
|
100
|
+
if (typeof required === 'function') {
|
|
101
|
+
required = required(currentValue, rowData, options);
|
|
102
|
+
}
|
|
103
|
+
// 必填规则内置 仅为title为字符串时
|
|
104
|
+
if (required) {
|
|
105
|
+
var _rules2;
|
|
106
|
+
var errorMsg = "".concat(originTitle, "\u4E0D\u80FD\u4E3A\u7A7A");
|
|
107
|
+
rules = ((_rules2 = rules) !== null && _rules2 !== void 0 ? _rules2 : []).concat([{
|
|
108
|
+
required: required,
|
|
109
|
+
message: errorMsg
|
|
110
|
+
}]);
|
|
111
|
+
}
|
|
112
|
+
// names 默认需要校验所有值是否已填写完整
|
|
113
|
+
if (((_names = names) === null || _names === void 0 ? void 0 : _names.length) && !(0, _lodash.isBoolean)(labelRequired)) {
|
|
114
|
+
var _rules3;
|
|
115
|
+
rules = ((_rules3 = rules) !== null && _rules3 !== void 0 ? _rules3 : []).concat([{
|
|
116
|
+
validator: function validator(_rule, value) {
|
|
117
|
+
if (value === null || value === void 0 ? void 0 : value.length) {
|
|
118
|
+
if ((0, _index.isNullArray)(value, names.length)) {
|
|
119
|
+
return Promise.reject(new Error("\u8BF7\u5B8C\u6574\u586B\u5199".concat(title)));
|
|
120
|
+
}
|
|
121
|
+
return Promise.resolve();
|
|
122
|
+
}
|
|
123
|
+
return Promise.resolve();
|
|
124
|
+
}
|
|
125
|
+
}]);
|
|
126
|
+
}
|
|
127
|
+
// 分离form item参数,防止对于参数透传(如onChange,防止重复触发)并优先级高于 _fieldProps 内部参数
|
|
128
|
+
var formItemChildProps = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, _fieldProps), fieldProps);
|
|
129
|
+
// 允许formItem的属性放在column最外层
|
|
130
|
+
var _formItemProps = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, resetProps), {}, {
|
|
131
|
+
rules: [].concat((0, _toConsumableArray2.default)((_fieldProps$rules = _fieldProps === null || _fieldProps === void 0 ? void 0 : _fieldProps.rules) !== null && _fieldProps$rules !== void 0 ? _fieldProps$rules : []), (0, _toConsumableArray2.default)(rules))
|
|
132
|
+
});
|
|
133
|
+
if (['Switch', 'Checkbox'].includes(type)) {
|
|
134
|
+
_formItemProps.valuePropName = 'checked';
|
|
135
|
+
valueType = 'switch';
|
|
136
|
+
}
|
|
137
|
+
// 针对Percentage特殊处理
|
|
138
|
+
if (type === 'Percentage') {
|
|
139
|
+
type = 'InputNumber';
|
|
140
|
+
valueType = 'percentage';
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* 针对一些特殊类型,基于formItem的normalize与getValueProps进行默认值类型转换
|
|
144
|
+
* @returns {}
|
|
145
|
+
*/
|
|
146
|
+
var defaultTransform = function defaultTransform() {
|
|
147
|
+
var types = ['DatePicker', 'RangePicker'];
|
|
148
|
+
if (!valueType && types.includes(type)) {
|
|
149
|
+
var _transformMap$type;
|
|
150
|
+
return _transform.default === null || _transform.default === void 0 ? void 0 : (_transformMap$type = _transform.default[type]) === null || _transformMap$type === void 0 ? void 0 : _transformMap$type.call(_transform.default, fieldProps || {});
|
|
151
|
+
}
|
|
152
|
+
return {};
|
|
153
|
+
};
|
|
154
|
+
/**
|
|
155
|
+
* 配置valueType时,基于formItem的normalize与getValueProps进行值类型转换
|
|
156
|
+
* @returns {}
|
|
157
|
+
*/
|
|
158
|
+
var valueTypeTransform = (0, _react.useCallback)(function () {
|
|
159
|
+
// 不存在valueType返回空
|
|
160
|
+
if (!valueType) {
|
|
161
|
+
return {};
|
|
162
|
+
}
|
|
163
|
+
// SwitchCheckbox默认YN, 兼容已有组件
|
|
164
|
+
if (type === 'SwitchCheckbox') {
|
|
165
|
+
valueType = 'switch';
|
|
166
|
+
}
|
|
167
|
+
var params = (0, _objectSpread2.default)({}, column);
|
|
168
|
+
return (0, _lodash.isFunction)(_valueType.default[valueType]) ? _valueType.default[valueType](params) : {};
|
|
169
|
+
}, [valueType]);
|
|
170
|
+
/**
|
|
171
|
+
* 配置names时,基于formItem的normalize与getValueProps进行值类型转换
|
|
172
|
+
* @returns {}
|
|
173
|
+
*/
|
|
174
|
+
var namesTransform = function namesTransform() {
|
|
175
|
+
var _names2;
|
|
176
|
+
if (!((_names2 = names) === null || _names2 === void 0 ? void 0 : _names2.length)) {
|
|
177
|
+
return {};
|
|
178
|
+
}
|
|
179
|
+
// 支持names配置,临时生成对应的formItem,用来存储单个对应的值
|
|
180
|
+
names = names.map(function (key) {
|
|
181
|
+
if (Array.isArray(key)) {
|
|
182
|
+
return [].concat((0, _toConsumableArray2.default)(baseName), [index], (0, _toConsumableArray2.default)(key));
|
|
183
|
+
}
|
|
184
|
+
return [].concat((0, _toConsumableArray2.default)(baseName), [index, key]);
|
|
185
|
+
});
|
|
186
|
+
var namesStr = [baseName, index, dataIndex];
|
|
187
|
+
return (0, _transformNames.default)(_formItemProps, form, names, namesStr);
|
|
188
|
+
};
|
|
189
|
+
if (!_editRender && typeof type === 'string') {
|
|
190
|
+
var _componentMap$type;
|
|
191
|
+
TargetComponent = (_componentMap$type = componentMap[type]) !== null && _componentMap$type !== void 0 ? _componentMap$type : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null);
|
|
192
|
+
}
|
|
193
|
+
if (isEditable && isEditing) {
|
|
194
|
+
if (typeof _editRender === 'function') {
|
|
195
|
+
TargetComponent = _editRender(currentValue, rowData, options);
|
|
196
|
+
}
|
|
197
|
+
if ( /*#__PURE__*/_react.default.isValidElement(_editRender)) {
|
|
198
|
+
TargetComponent = _editRender;
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
// 查看模式
|
|
202
|
+
if (isView) {
|
|
203
|
+
// 存在viewRender覆盖默认值
|
|
204
|
+
if (typeof viewRender === 'function') {
|
|
205
|
+
var _column$dataIndex;
|
|
206
|
+
currentValue = (column === null || column === void 0 ? void 0 : (_column$dataIndex = column.dataIndex) === null || _column$dataIndex === void 0 ? void 0 : _column$dataIndex.includes('-')) ? value : currentValue;
|
|
207
|
+
var View = viewRender(currentValue, record, options);
|
|
208
|
+
TargetComponent = /*#__PURE__*/_react.default.createElement(_Container.default, {
|
|
209
|
+
viewEmpty: viewEmpty
|
|
210
|
+
}, View);
|
|
211
|
+
}
|
|
212
|
+
if ( /*#__PURE__*/_react.default.isValidElement(viewRender)) {
|
|
213
|
+
TargetComponent = viewRender;
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
var defaultPlaceholder = ['Select', 'EnumSelect', 'DatePicker', 'RangerPicker', 'Cascader', 'ProSelect', 'ProEnum', 'ProTimeLimit'].includes(type) ? "\u8BF7\u9009\u62E9".concat((0, _lodash.isString)(label) ? label || title : '') : "\u8BF7\u8F93\u5165".concat((0, _lodash.isString)(label) ? label || title : '');
|
|
217
|
+
var _placeholder = (_formItemChildProps$p = formItemChildProps === null || formItemChildProps === void 0 ? void 0 : formItemChildProps.placeholder) !== null && _formItemChildProps$p !== void 0 ? _formItemChildProps$p : defaultPlaceholder;
|
|
218
|
+
var _disabled = disabled || (formItemChildProps === null || formItemChildProps === void 0 ? void 0 : formItemChildProps.disabled);
|
|
219
|
+
var _rules = isEditing ? _formItemProps === null || _formItemProps === void 0 ? void 0 : _formItemProps.rules : [];
|
|
220
|
+
var onChange = formItemChildProps === null || formItemChildProps === void 0 ? void 0 : formItemChildProps.onChange;
|
|
221
|
+
var onFieldChange = formItemChildProps === null || formItemChildProps === void 0 ? void 0 : formItemChildProps.onFieldChange;
|
|
222
|
+
var onBlur = formItemChildProps === null || formItemChildProps === void 0 ? void 0 : formItemChildProps.onBlur;
|
|
223
|
+
var formatArgs = function formatArgs() {
|
|
224
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
225
|
+
args[_key] = arguments[_key];
|
|
226
|
+
}
|
|
227
|
+
var _args = (0, _toConsumableArray2.default)(args === null || args === void 0 ? void 0 : args[0]);
|
|
228
|
+
var rowPath = [].concat((0, _toConsumableArray2.default)(namePath), [index]);
|
|
229
|
+
var row = form.getFieldValue(rowPath);
|
|
230
|
+
_args[1] = row;
|
|
231
|
+
// 返回表单元素默认值
|
|
232
|
+
_args[2] = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, options), {}, {
|
|
233
|
+
extra: args
|
|
234
|
+
});
|
|
235
|
+
switch (type) {
|
|
236
|
+
case 'ProSelect':
|
|
237
|
+
case 'ProModalSelect':
|
|
238
|
+
case 'ProEnum':
|
|
239
|
+
_args[2].option = args[1];
|
|
240
|
+
break;
|
|
241
|
+
case 'ProAddressBar':
|
|
242
|
+
_args[2].selectedOptions = args[1];
|
|
243
|
+
break;
|
|
244
|
+
case 'DatePicker':
|
|
245
|
+
case 'RangePicker':
|
|
246
|
+
_args[2].dateString = args[1];
|
|
247
|
+
break;
|
|
248
|
+
default:
|
|
249
|
+
break;
|
|
250
|
+
}
|
|
251
|
+
return _args;
|
|
252
|
+
};
|
|
253
|
+
// 单元格更新数据时,加个防抖,防止更新频率过快,卡顿
|
|
254
|
+
var _onchange = (0, _lodash.debounce)( /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee() {
|
|
255
|
+
var _len2,
|
|
256
|
+
args,
|
|
257
|
+
_key2,
|
|
258
|
+
_args,
|
|
259
|
+
rowPath,
|
|
260
|
+
row,
|
|
261
|
+
orgRow,
|
|
262
|
+
_TargetComponent,
|
|
263
|
+
_TargetComponent$prop,
|
|
264
|
+
_TargetComponent$prop2,
|
|
265
|
+
_TargetComponent2,
|
|
266
|
+
_TargetComponent2$pro,
|
|
267
|
+
_TargetComponent$prop3,
|
|
268
|
+
_Object$keys,
|
|
269
|
+
_Object$keys$map,
|
|
270
|
+
diff,
|
|
271
|
+
validateFieldKeys,
|
|
272
|
+
_args2 = arguments;
|
|
273
|
+
return (0, _regeneratorRuntime2.default)().wrap(function _callee$(_context) {
|
|
274
|
+
while (1) switch (_context.prev = _context.next) {
|
|
275
|
+
case 0:
|
|
276
|
+
for (_len2 = _args2.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
277
|
+
args[_key2] = _args2[_key2];
|
|
278
|
+
}
|
|
279
|
+
_args = [].concat(args);
|
|
280
|
+
rowPath = [].concat((0, _toConsumableArray2.default)(namePath), [index]);
|
|
281
|
+
row = form.getFieldValue(rowPath);
|
|
282
|
+
orgRow = (0, _lodash.cloneDeep)(row);
|
|
283
|
+
if (!onFieldChange) {
|
|
284
|
+
_context.next = 17;
|
|
285
|
+
break;
|
|
286
|
+
}
|
|
287
|
+
_args = formatArgs(args);
|
|
288
|
+
_context.t0 = (_TargetComponent = TargetComponent) === null || _TargetComponent === void 0 ? void 0 : (_TargetComponent$prop = _TargetComponent.props) === null || _TargetComponent$prop === void 0 ? void 0 : _TargetComponent$prop.onFieldChange;
|
|
289
|
+
if (!_context.t0) {
|
|
290
|
+
_context.next = 11;
|
|
291
|
+
break;
|
|
292
|
+
}
|
|
293
|
+
_context.next = 11;
|
|
294
|
+
return (_TargetComponent$prop2 = TargetComponent.props).onFieldChange.apply(_TargetComponent$prop2, (0, _toConsumableArray2.default)(_args));
|
|
295
|
+
case 11:
|
|
296
|
+
_context.t1 = onFieldChange;
|
|
297
|
+
if (!_context.t1) {
|
|
298
|
+
_context.next = 15;
|
|
299
|
+
break;
|
|
300
|
+
}
|
|
301
|
+
_context.next = 15;
|
|
302
|
+
return onFieldChange.apply(void 0, (0, _toConsumableArray2.default)(_args));
|
|
303
|
+
case 15:
|
|
304
|
+
_context.next = 28;
|
|
305
|
+
break;
|
|
306
|
+
case 17:
|
|
307
|
+
_args.push(row);
|
|
308
|
+
_args.push(index);
|
|
309
|
+
_args.push(form);
|
|
310
|
+
_context.t2 = (_TargetComponent2 = TargetComponent) === null || _TargetComponent2 === void 0 ? void 0 : (_TargetComponent2$pro = _TargetComponent2.props) === null || _TargetComponent2$pro === void 0 ? void 0 : _TargetComponent2$pro.onChange;
|
|
311
|
+
if (!_context.t2) {
|
|
312
|
+
_context.next = 24;
|
|
313
|
+
break;
|
|
314
|
+
}
|
|
315
|
+
_context.next = 24;
|
|
316
|
+
return (_TargetComponent$prop3 = TargetComponent.props).onChange.apply(_TargetComponent$prop3, (0, _toConsumableArray2.default)(_args));
|
|
317
|
+
case 24:
|
|
318
|
+
_context.t3 = onChange;
|
|
319
|
+
if (!_context.t3) {
|
|
320
|
+
_context.next = 28;
|
|
321
|
+
break;
|
|
322
|
+
}
|
|
323
|
+
_context.next = 28;
|
|
324
|
+
return onChange.apply(void 0, (0, _toConsumableArray2.default)(_args));
|
|
325
|
+
case 28:
|
|
326
|
+
// 判断属性是否变动
|
|
327
|
+
form.setFieldValue(rowPath, row);
|
|
328
|
+
if (!(0, _lodash.isEqual)(orgRow, row)) {
|
|
329
|
+
diff = (0, _tools.difference)(row, orgRow) || {};
|
|
330
|
+
validateFieldKeys = (_Object$keys = Object.keys(diff)) === null || _Object$keys === void 0 ? void 0 : (_Object$keys$map = _Object$keys.map) === null || _Object$keys$map === void 0 ? void 0 : _Object$keys$map.call(_Object$keys, function (key) {
|
|
331
|
+
return [].concat((0, _toConsumableArray2.default)(rowPath), [key]);
|
|
332
|
+
});
|
|
333
|
+
if (validateFieldKeys === null || validateFieldKeys === void 0 ? void 0 : validateFieldKeys.length) {
|
|
334
|
+
form.validateFields(validateFieldKeys);
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
if (virtualKey) {
|
|
338
|
+
// 单行编辑时需要 强制更新视图
|
|
339
|
+
setState({
|
|
340
|
+
forceUpdate: {
|
|
341
|
+
d: Date.now()
|
|
342
|
+
}
|
|
343
|
+
});
|
|
344
|
+
}
|
|
345
|
+
case 31:
|
|
346
|
+
case "end":
|
|
347
|
+
return _context.stop();
|
|
348
|
+
}
|
|
349
|
+
}, _callee);
|
|
350
|
+
})), 300);
|
|
351
|
+
var _onblur = /*#__PURE__*/function () {
|
|
352
|
+
var _ref3 = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee2() {
|
|
353
|
+
var _TargetComponent3, _TargetComponent3$pro, _TargetComponent$prop4;
|
|
354
|
+
var _len3,
|
|
355
|
+
args,
|
|
356
|
+
_key3,
|
|
357
|
+
_args,
|
|
358
|
+
rowPath,
|
|
359
|
+
row,
|
|
360
|
+
orgRow,
|
|
361
|
+
_Object$keys2,
|
|
362
|
+
_Object$keys2$map,
|
|
363
|
+
diff,
|
|
364
|
+
validateFieldKeys,
|
|
365
|
+
_args3 = arguments;
|
|
366
|
+
return (0, _regeneratorRuntime2.default)().wrap(function _callee2$(_context2) {
|
|
367
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
368
|
+
case 0:
|
|
369
|
+
for (_len3 = _args3.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
|
|
370
|
+
args[_key3] = _args3[_key3];
|
|
371
|
+
}
|
|
372
|
+
_args = formatArgs(args);
|
|
373
|
+
rowPath = [].concat((0, _toConsumableArray2.default)(namePath), [index]);
|
|
374
|
+
row = form.getFieldValue(rowPath);
|
|
375
|
+
orgRow = (0, _lodash.cloneDeep)(row);
|
|
376
|
+
_context2.t0 = (_TargetComponent3 = TargetComponent) === null || _TargetComponent3 === void 0 ? void 0 : (_TargetComponent3$pro = _TargetComponent3.props) === null || _TargetComponent3$pro === void 0 ? void 0 : _TargetComponent3$pro.onBlur;
|
|
377
|
+
if (!_context2.t0) {
|
|
378
|
+
_context2.next = 9;
|
|
379
|
+
break;
|
|
380
|
+
}
|
|
381
|
+
_context2.next = 9;
|
|
382
|
+
return (_TargetComponent$prop4 = TargetComponent.props).onBlur.apply(_TargetComponent$prop4, (0, _toConsumableArray2.default)(_args));
|
|
383
|
+
case 9:
|
|
384
|
+
_context2.t1 = onBlur;
|
|
385
|
+
if (!_context2.t1) {
|
|
386
|
+
_context2.next = 13;
|
|
387
|
+
break;
|
|
388
|
+
}
|
|
389
|
+
_context2.next = 13;
|
|
390
|
+
return onBlur.apply(void 0, (0, _toConsumableArray2.default)(_args));
|
|
391
|
+
case 13:
|
|
392
|
+
// 判断属性是否变动
|
|
393
|
+
form.setFieldValue(rowPath, row);
|
|
394
|
+
if (!(0, _lodash.isEqual)(orgRow, row)) {
|
|
395
|
+
diff = (0, _tools.difference)(row, orgRow) || {};
|
|
396
|
+
validateFieldKeys = (_Object$keys2 = Object.keys(diff)) === null || _Object$keys2 === void 0 ? void 0 : (_Object$keys2$map = _Object$keys2.map) === null || _Object$keys2$map === void 0 ? void 0 : _Object$keys2$map.call(_Object$keys2, function (key) {
|
|
397
|
+
return [].concat((0, _toConsumableArray2.default)(rowPath), [key]);
|
|
398
|
+
});
|
|
399
|
+
if (validateFieldKeys === null || validateFieldKeys === void 0 ? void 0 : validateFieldKeys.length) {
|
|
400
|
+
form.validateFields(validateFieldKeys);
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
if (!isCell) {
|
|
404
|
+
_context2.next = 19;
|
|
405
|
+
break;
|
|
406
|
+
}
|
|
407
|
+
_context2.next = 18;
|
|
408
|
+
return form.validateFields([cellName]);
|
|
409
|
+
case 18:
|
|
410
|
+
setState({
|
|
411
|
+
cellNamePath: []
|
|
412
|
+
});
|
|
413
|
+
case 19:
|
|
414
|
+
if (virtualKey) {
|
|
415
|
+
// 单行编辑时需要 强制更新视图
|
|
416
|
+
setState({
|
|
417
|
+
forceUpdate: {
|
|
418
|
+
d: Date.now()
|
|
419
|
+
}
|
|
420
|
+
});
|
|
421
|
+
}
|
|
422
|
+
case 20:
|
|
423
|
+
case "end":
|
|
424
|
+
return _context2.stop();
|
|
425
|
+
}
|
|
426
|
+
}, _callee2);
|
|
427
|
+
}));
|
|
428
|
+
return function _onblur() {
|
|
429
|
+
return _ref3.apply(this, arguments);
|
|
430
|
+
};
|
|
431
|
+
}();
|
|
432
|
+
var componentProps = (0, _objectSpread2.default)((0, _objectSpread2.default)((0, _objectSpread2.default)({
|
|
433
|
+
form: form,
|
|
434
|
+
name: cellName,
|
|
435
|
+
placeholder: _placeholder
|
|
436
|
+
}, fieldProps), (_TargetComponent4 = TargetComponent) === null || _TargetComponent4 === void 0 ? void 0 : _TargetComponent4.props), {}, {
|
|
437
|
+
disabled: _disabled,
|
|
438
|
+
onChange: _onchange,
|
|
439
|
+
onBlur: _onblur,
|
|
440
|
+
otherProps: {
|
|
441
|
+
viewEmpty: viewEmpty,
|
|
442
|
+
valueType: valueType,
|
|
443
|
+
isView: isView
|
|
444
|
+
}
|
|
445
|
+
});
|
|
446
|
+
// 单元格编辑时,设置各个单元格disabled属性
|
|
447
|
+
if (isCell) {
|
|
448
|
+
record["$".concat(dataIndex, "Disabled")] = _disabled;
|
|
449
|
+
form.setFieldValue([].concat((0, _toConsumableArray2.default)(namePath), [index, "$".concat(dataIndex, "Disabled")]), _disabled);
|
|
450
|
+
}
|
|
451
|
+
// if (isCell) {
|
|
452
|
+
// _formItemProps.validateTrigger = 'onBlur';
|
|
453
|
+
// }
|
|
454
|
+
if (['Switch', 'Checkbox'].includes(type)) {
|
|
455
|
+
_formItemProps.valuePropName = 'checked';
|
|
456
|
+
}
|
|
457
|
+
(0, _react.useEffect)(function () {
|
|
458
|
+
if (isCell) {
|
|
459
|
+
var _editingDom$focus;
|
|
460
|
+
var editingDom = document.getElementById(cellNamePath.join('_'));
|
|
461
|
+
editingDom === null || editingDom === void 0 ? void 0 : (_editingDom$focus = editingDom.focus) === null || _editingDom$focus === void 0 ? void 0 : _editingDom$focus.call(editingDom);
|
|
462
|
+
}
|
|
463
|
+
}, [cellNamePath]);
|
|
464
|
+
return /*#__PURE__*/_react.default.createElement(_antd.Form.Item, (0, _objectSpread2.default)((0, _objectSpread2.default)((0, _objectSpread2.default)((0, _objectSpread2.default)((0, _objectSpread2.default)({
|
|
465
|
+
validateFirst: true,
|
|
466
|
+
noStyle: !isEditing
|
|
467
|
+
}, defaultTransform()), valueTypeTransform()), namesTransform()), (0, _lodash.omit)(_formItemProps, ['render', 'cache', 'key'])), {}, {
|
|
468
|
+
name: cellName,
|
|
469
|
+
rules: _rules
|
|
470
|
+
}), /*#__PURE__*/_react.default.isValidElement(TargetComponent) ? /*#__PURE__*/_react.default.cloneElement(TargetComponent, (0, _objectSpread2.default)({}, (0, _lodash.omit)(componentProps, ['onFieldChange']))) : /*#__PURE__*/_react.default.createElement(TargetComponent, (0, _objectSpread2.default)({}, (0, _lodash.omit)(componentProps, ['onFieldChange']))));
|
|
471
|
+
};
|
|
472
|
+
var _default = RenderField;
|
|
473
|
+
exports.default = _default;
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = void 0;
|
|
8
|
+
var _regeneratorRuntime2 = _interopRequireDefault(require("@babel/runtime/helpers/regeneratorRuntime"));
|
|
9
|
+
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
10
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
11
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
12
|
+
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
13
|
+
var _react = _interopRequireDefault(require("react"));
|
|
14
|
+
var _antd = require("antd");
|
|
15
|
+
var _config = require("../../utils/config");
|
|
16
|
+
var _ActionButton = _interopRequireDefault(require("../ActionButton"));
|
|
17
|
+
var _tools = require("../../utils/tools");
|
|
18
|
+
var _excluded = ["type", "label", "show", "onHandle", "onClick"];
|
|
19
|
+
// 渲染工具栏
|
|
20
|
+
var RenderToolbar = function RenderToolbar(config) {
|
|
21
|
+
var emptyBtnText = config.emptyBtnText,
|
|
22
|
+
toolbarProps = config.toolbarProps,
|
|
23
|
+
name = config.name,
|
|
24
|
+
virtualKey = config.virtualKey,
|
|
25
|
+
form = config.form,
|
|
26
|
+
disabled = config.disabled,
|
|
27
|
+
selectedRowKeys = config.selectedRowKeys,
|
|
28
|
+
selectedRows = config.selectedRows;
|
|
29
|
+
var virtualName = (0, _tools.getNamePath)(name, virtualKey);
|
|
30
|
+
var dataSource = form.getFieldValue(name);
|
|
31
|
+
// toolbarProps配置为false 默认不插入
|
|
32
|
+
if (toolbarProps === false || disabled) {
|
|
33
|
+
return null;
|
|
34
|
+
}
|
|
35
|
+
var nextToolbarProps = (0, _toConsumableArray2.default)(toolbarProps);
|
|
36
|
+
if (dataSource === null || dataSource === void 0 ? void 0 : dataSource.length) {
|
|
37
|
+
// 不设置toolbarProps
|
|
38
|
+
if (!(toolbarProps === null || toolbarProps === void 0 ? void 0 : toolbarProps.length)) {
|
|
39
|
+
nextToolbarProps = _config.defaultToolbarKeys.map(function (key) {
|
|
40
|
+
return {
|
|
41
|
+
type: key
|
|
42
|
+
};
|
|
43
|
+
});
|
|
44
|
+
} else {
|
|
45
|
+
// 部分设置toolbarProps
|
|
46
|
+
_config.defaultToolbarKeys.forEach(function (key) {
|
|
47
|
+
if (!toolbarProps.find(function (action) {
|
|
48
|
+
return action.type === key;
|
|
49
|
+
})) {
|
|
50
|
+
nextToolbarProps.push({
|
|
51
|
+
type: key
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
} else {
|
|
57
|
+
var addConfig = toolbarProps.find(function (action) {
|
|
58
|
+
return action.type === 'add';
|
|
59
|
+
});
|
|
60
|
+
nextToolbarProps = [(0, _objectSpread2.default)((0, _objectSpread2.default)({}, addConfig), {}, {
|
|
61
|
+
type: 'add',
|
|
62
|
+
label: emptyBtnText,
|
|
63
|
+
icon: null
|
|
64
|
+
})];
|
|
65
|
+
}
|
|
66
|
+
// 渲染操作按钮前处理下默认数据
|
|
67
|
+
var toolbarBtns = nextToolbarProps.map(function (toolbar) {
|
|
68
|
+
var type = toolbar.type,
|
|
69
|
+
label = toolbar.label,
|
|
70
|
+
show = toolbar.show,
|
|
71
|
+
onHandle = toolbar.onHandle,
|
|
72
|
+
onClick = toolbar.onClick,
|
|
73
|
+
buttonProps = (0, _objectWithoutProperties2.default)(toolbar, _excluded);
|
|
74
|
+
toolbar.isEditable = false;
|
|
75
|
+
toolbar.label = label !== null && label !== void 0 ? label : _config.defaultBtnNameMap[type];
|
|
76
|
+
toolbar.show = show !== null && show !== void 0 ? show : true;
|
|
77
|
+
toolbar.onClick = /*#__PURE__*/function () {
|
|
78
|
+
var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee(record, index) {
|
|
79
|
+
var _yield$toolbar$onHand, _toolbar$onHandle;
|
|
80
|
+
var result;
|
|
81
|
+
return (0, _regeneratorRuntime2.default)().wrap(function _callee$(_context) {
|
|
82
|
+
while (1) switch (_context.prev = _context.next) {
|
|
83
|
+
case 0:
|
|
84
|
+
_context.next = 2;
|
|
85
|
+
return toolbar === null || toolbar === void 0 ? void 0 : (_toolbar$onHandle = toolbar.onHandle) === null || _toolbar$onHandle === void 0 ? void 0 : _toolbar$onHandle.call(toolbar, selectedRows, dataSource);
|
|
86
|
+
case 2:
|
|
87
|
+
_context.t1 = _yield$toolbar$onHand = _context.sent;
|
|
88
|
+
_context.t0 = _context.t1 !== null;
|
|
89
|
+
if (!_context.t0) {
|
|
90
|
+
_context.next = 6;
|
|
91
|
+
break;
|
|
92
|
+
}
|
|
93
|
+
_context.t0 = _yield$toolbar$onHand !== void 0;
|
|
94
|
+
case 6:
|
|
95
|
+
if (!_context.t0) {
|
|
96
|
+
_context.next = 10;
|
|
97
|
+
break;
|
|
98
|
+
}
|
|
99
|
+
_context.t2 = _yield$toolbar$onHand;
|
|
100
|
+
_context.next = 11;
|
|
101
|
+
break;
|
|
102
|
+
case 10:
|
|
103
|
+
_context.t2 = true;
|
|
104
|
+
case 11:
|
|
105
|
+
result = _context.t2;
|
|
106
|
+
if (result && type !== 'custom') {
|
|
107
|
+
_config.actions[type]((0, _objectSpread2.default)((0, _objectSpread2.default)({}, config), {}, {
|
|
108
|
+
index: index,
|
|
109
|
+
record: record,
|
|
110
|
+
name: name,
|
|
111
|
+
result: result,
|
|
112
|
+
virtualName: virtualName
|
|
113
|
+
}));
|
|
114
|
+
}
|
|
115
|
+
case 13:
|
|
116
|
+
case "end":
|
|
117
|
+
return _context.stop();
|
|
118
|
+
}
|
|
119
|
+
}, _callee);
|
|
120
|
+
}));
|
|
121
|
+
return function (_x, _x2) {
|
|
122
|
+
return _ref.apply(this, arguments);
|
|
123
|
+
};
|
|
124
|
+
}();
|
|
125
|
+
toolbar.buttonProps = buttonProps;
|
|
126
|
+
return toolbar;
|
|
127
|
+
});
|
|
128
|
+
var renderToolbarBtns = function renderToolbarBtns() {
|
|
129
|
+
return toolbarBtns.map(function (btnConfig) {
|
|
130
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, {
|
|
131
|
+
key: "".concat(btnConfig === null || btnConfig === void 0 ? void 0 : btnConfig.label).concat(btnConfig === null || btnConfig === void 0 ? void 0 : btnConfig.type)
|
|
132
|
+
}, /*#__PURE__*/_react.default.createElement(_ActionButton.default, (0, _objectSpread2.default)({}, {
|
|
133
|
+
config: config,
|
|
134
|
+
btnConfig: (0, _objectSpread2.default)((0, _objectSpread2.default)({}, btnConfig), {}, {
|
|
135
|
+
editingKeys: []
|
|
136
|
+
})
|
|
137
|
+
})));
|
|
138
|
+
});
|
|
139
|
+
};
|
|
140
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, (dataSource === null || dataSource === void 0 ? void 0 : dataSource.length) ? /*#__PURE__*/_react.default.createElement(_antd.Space, null, renderToolbarBtns()) : renderToolbarBtns());
|
|
141
|
+
};
|
|
142
|
+
var _default = RenderToolbar;
|
|
143
|
+
exports.default = _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { SummaryColumnProps } from '../../propsType';
|
|
2
|
+
interface SummaryProps<T = any> {
|
|
3
|
+
data: T[];
|
|
4
|
+
summary: {
|
|
5
|
+
columns: SummaryColumnProps[];
|
|
6
|
+
total?: boolean;
|
|
7
|
+
fixed?: boolean | 'top' | 'bottom';
|
|
8
|
+
};
|
|
9
|
+
rowSelection: any;
|
|
10
|
+
}
|
|
11
|
+
declare const Summary: ({ data, summary, rowSelection, }: SummaryProps) => JSX.Element;
|
|
12
|
+
export default Summary;
|