@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,201 @@
|
|
|
1
|
+
import { Key, ReactNode } from 'react';
|
|
2
|
+
import type { ButtonProps } from 'antd/lib/button';
|
|
3
|
+
import type { TooltipProps } from 'antd/lib/tooltip';
|
|
4
|
+
import type { NamePath } from 'antd/lib/form/interface';
|
|
5
|
+
import type { ColumnType } from 'antd/es/table';
|
|
6
|
+
import type { TableProps } from 'antd/lib/table';
|
|
7
|
+
import type { FormInstance, FormItemProps, Rule } from 'antd/lib/Form';
|
|
8
|
+
import { ProFormValueType, ColumnPropsMap } from '../ProForm/components/render/propsType';
|
|
9
|
+
export type ActionType = 'edit' | 'delete' | 'save' | 'cancel' | 'add' | 'mulDelete' | 'custom';
|
|
10
|
+
export type ShowFunction<T> = (record?: T, index?: number) => Promise<any> | boolean | void;
|
|
11
|
+
export interface OptionsProps {
|
|
12
|
+
index: number;
|
|
13
|
+
form: FormInstance;
|
|
14
|
+
namePath: NamePath;
|
|
15
|
+
}
|
|
16
|
+
export interface SummaryColumnProps {
|
|
17
|
+
key: string;
|
|
18
|
+
index: number;
|
|
19
|
+
title?: string;
|
|
20
|
+
colSpan?: number;
|
|
21
|
+
valueType?: string;
|
|
22
|
+
precision?: number;
|
|
23
|
+
prefix?: ReactNode | string;
|
|
24
|
+
}
|
|
25
|
+
export interface BaseActionProps<T> {
|
|
26
|
+
/**
|
|
27
|
+
* @description 按钮类型
|
|
28
|
+
* @default -
|
|
29
|
+
*/
|
|
30
|
+
type?: ActionType;
|
|
31
|
+
/**
|
|
32
|
+
* @description 按钮名称
|
|
33
|
+
* @default -
|
|
34
|
+
*/
|
|
35
|
+
label?: string | ReactNode;
|
|
36
|
+
/**
|
|
37
|
+
* @description 是否显示按钮
|
|
38
|
+
* @default true
|
|
39
|
+
*/
|
|
40
|
+
show?: boolean | ShowFunction<T>;
|
|
41
|
+
/**
|
|
42
|
+
* @description 按钮是否禁止操作
|
|
43
|
+
* @default -
|
|
44
|
+
*/
|
|
45
|
+
isEditable?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* @description 按钮前置校验事件
|
|
48
|
+
* @default -
|
|
49
|
+
*/
|
|
50
|
+
onHandle?: ShowFunction<T>;
|
|
51
|
+
/**
|
|
52
|
+
* @description 按钮事件
|
|
53
|
+
* @default -
|
|
54
|
+
*/
|
|
55
|
+
onClick?: (record?: T, index?: number) => void;
|
|
56
|
+
/**
|
|
57
|
+
* @description 支持antd的Button属性
|
|
58
|
+
* @default -
|
|
59
|
+
*/
|
|
60
|
+
buttonProps?: Omit<ButtonProps, 'type' | 'onClick'>;
|
|
61
|
+
}
|
|
62
|
+
export type RulesFn<T> = (text?: any, record?: T, options?: OptionsProps) => Rule[] | void;
|
|
63
|
+
export type RequiredFn<T> = (text?: any, record?: T, options?: OptionsProps) => boolean | void;
|
|
64
|
+
export type viewRenderFn<T> = (text?: any, record?: T, options?: OptionsProps) => string | number | ReactNode | void;
|
|
65
|
+
export interface ProColumnsProps<Values = any, T = any> extends Omit<FormItemProps<Values>, 'rules' | 'required'>, ColumnType<Values> {
|
|
66
|
+
required?: boolean | RequiredFn<T>;
|
|
67
|
+
labelRequired?: boolean;
|
|
68
|
+
name?: NamePath;
|
|
69
|
+
names?: NamePath[];
|
|
70
|
+
cache?: boolean;
|
|
71
|
+
isEditable?: boolean;
|
|
72
|
+
valueType?: ProFormValueType;
|
|
73
|
+
tooltip?: string | ({
|
|
74
|
+
icon?: string | ReactNode;
|
|
75
|
+
} & TooltipProps);
|
|
76
|
+
component?: string | number | ReactNode | viewRenderFn<T>;
|
|
77
|
+
viewRender?: string | number | ReactNode | viewRenderFn<T>;
|
|
78
|
+
hiddenNames?: NamePath[] | NamePath[][];
|
|
79
|
+
rules?: Rule[] | RulesFn<T>;
|
|
80
|
+
[key: string]: any;
|
|
81
|
+
}
|
|
82
|
+
export type ProEditTableColumnsProps<K = any> = ProColumnsProps & ColumnPropsMap<K, 'ProEditTable'>;
|
|
83
|
+
export interface State {
|
|
84
|
+
_columns: ProEditTableColumnsProps[];
|
|
85
|
+
cellNamePath: NamePath[];
|
|
86
|
+
forceUpdate: {};
|
|
87
|
+
editingKeys: string[];
|
|
88
|
+
selectedRowKeys: Key[];
|
|
89
|
+
selectedRows: any[];
|
|
90
|
+
virtualKey: string;
|
|
91
|
+
}
|
|
92
|
+
export interface ProEditTableRefProps {
|
|
93
|
+
getInternalState: () => State;
|
|
94
|
+
}
|
|
95
|
+
export interface ProEditTableProps<T = any> extends Omit<TableProps<T>, 'onChange' | 'summary'> {
|
|
96
|
+
/**
|
|
97
|
+
* @description 可编辑表格的 form 实例,使用 Form.useForm 生成后使用
|
|
98
|
+
* @default -
|
|
99
|
+
*/
|
|
100
|
+
form?: FormInstance;
|
|
101
|
+
/**
|
|
102
|
+
* @description 可编辑表格的类型,单行、多行、单元格编辑
|
|
103
|
+
* @default multiple
|
|
104
|
+
*/
|
|
105
|
+
mode?: 'single' | 'multiple' | 'cell';
|
|
106
|
+
/**
|
|
107
|
+
* @description 可编辑表格的类型,单行编辑或者多行编辑
|
|
108
|
+
* @deprecated 将于下个版本 4.0.0 被弃用
|
|
109
|
+
* @default multiple
|
|
110
|
+
*/
|
|
111
|
+
type?: 'single' | 'multiple' | 'cell';
|
|
112
|
+
/**
|
|
113
|
+
* @description 必填对齐方式, 默认右对齐
|
|
114
|
+
* @default right
|
|
115
|
+
*/
|
|
116
|
+
requiredAlign?: 'left' | 'right';
|
|
117
|
+
/**
|
|
118
|
+
* @description 同 dataSource,传入一个数组,是 table 渲染的元数据
|
|
119
|
+
* @default undefined
|
|
120
|
+
*/
|
|
121
|
+
value?: T[];
|
|
122
|
+
/**
|
|
123
|
+
* @description dataSource 修改时触发,删除和修改都会触发,如果设置了 value,ProEditTable 会成为一个受控组件
|
|
124
|
+
* @default -
|
|
125
|
+
*/
|
|
126
|
+
onChange?: (list: T[]) => void;
|
|
127
|
+
/**
|
|
128
|
+
* @description 表格列的配置描述,扩展了FormItemProps属性
|
|
129
|
+
* @default []
|
|
130
|
+
*/
|
|
131
|
+
columns: ProEditTableColumnsProps[];
|
|
132
|
+
/**
|
|
133
|
+
* @description 是否禁止编辑
|
|
134
|
+
* @default false
|
|
135
|
+
*/
|
|
136
|
+
disabled?: boolean;
|
|
137
|
+
/**
|
|
138
|
+
* @description 可编辑表格新增时数据插入方式,头部插入或者尾部插入
|
|
139
|
+
* @default after
|
|
140
|
+
*/
|
|
141
|
+
insertType?: 'before' | 'after';
|
|
142
|
+
/**
|
|
143
|
+
* @description 字段名,支持数组
|
|
144
|
+
* @default -
|
|
145
|
+
*/
|
|
146
|
+
name?: string | number | (string | number)[];
|
|
147
|
+
/**
|
|
148
|
+
* @description 是否可拖拽排序
|
|
149
|
+
* @default -
|
|
150
|
+
*/
|
|
151
|
+
draggable?: boolean;
|
|
152
|
+
/**
|
|
153
|
+
* @description 空列表状态时,自定义添加按钮
|
|
154
|
+
* @default 点击添加
|
|
155
|
+
*/
|
|
156
|
+
emptyBtnText?: string;
|
|
157
|
+
/**
|
|
158
|
+
* @description 只能编辑一行的的提示
|
|
159
|
+
* @default 请先保存数据
|
|
160
|
+
*/
|
|
161
|
+
onlyOneLineMsg?: string;
|
|
162
|
+
/**
|
|
163
|
+
* @description 单行删除时弹出的确认框提示消息
|
|
164
|
+
* @default 您确定要删除该行数据吗?
|
|
165
|
+
*/
|
|
166
|
+
deletePoConfirmMsg?: string;
|
|
167
|
+
/**
|
|
168
|
+
* @description 多行删除时弹出的确认框提示消息
|
|
169
|
+
* @default 您确定要删除选中的数据吗?
|
|
170
|
+
*/
|
|
171
|
+
mulDeletePoConfirmMsg?: string;
|
|
172
|
+
/**
|
|
173
|
+
* @description 自定义编辑模式的操作栏 单行编辑默认为编辑、删除、保存、取消;多行编辑为删除
|
|
174
|
+
* @default -
|
|
175
|
+
*/
|
|
176
|
+
actionWidth?: ColumnType<T>['width'];
|
|
177
|
+
/**
|
|
178
|
+
* @description 自定义编辑模式的操作栏 单行编辑默认为编辑、删除、保存、取消;多行编辑为删除
|
|
179
|
+
* @default -
|
|
180
|
+
*/
|
|
181
|
+
actionProps?: BaseActionProps<T>[] | boolean;
|
|
182
|
+
/**
|
|
183
|
+
* @description 自定义底部操作栏 默认为添加、删除(批量)
|
|
184
|
+
* @default -
|
|
185
|
+
*/
|
|
186
|
+
toolbarProps?: BaseActionProps<T>[] | boolean;
|
|
187
|
+
/**
|
|
188
|
+
* @description formItem的props
|
|
189
|
+
* @default -
|
|
190
|
+
*/
|
|
191
|
+
otherProps?: any;
|
|
192
|
+
/**
|
|
193
|
+
* @description 底部合计配置
|
|
194
|
+
* @default -
|
|
195
|
+
*/
|
|
196
|
+
summary?: {
|
|
197
|
+
columns: SummaryColumnProps[];
|
|
198
|
+
total?: boolean;
|
|
199
|
+
fixed?: boolean | 'top' | 'bottom';
|
|
200
|
+
} | TableProps<T>['summary'];
|
|
201
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
.pro-edit-table {
|
|
2
|
+
.pro-edit-table-tooltip {
|
|
3
|
+
display : inline-flex;
|
|
4
|
+
align-items: center;
|
|
5
|
+
|
|
6
|
+
.icon-tip {
|
|
7
|
+
svg {
|
|
8
|
+
margin-left : 4px;
|
|
9
|
+
margin-bottom : 1px;
|
|
10
|
+
width : 14px;
|
|
11
|
+
height : 14px;
|
|
12
|
+
vertical-align: text-bottom;
|
|
13
|
+
fill : #909090;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.com-empty {
|
|
19
|
+
text-align: center;
|
|
20
|
+
|
|
21
|
+
.img {
|
|
22
|
+
width : 80px;
|
|
23
|
+
height: 80px;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.content {
|
|
27
|
+
margin-top: var(--zaui-space-size-md, 16px);
|
|
28
|
+
|
|
29
|
+
.ant-btn-link {
|
|
30
|
+
padding: 0;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.is-hidden {
|
|
36
|
+
position: absolute;
|
|
37
|
+
left : -9999px;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
.is-cell .ant-form-item .ant-form-item-row .ant-form-item-control .ant-form-item-control-input {
|
|
42
|
+
border: 1px solid transparent;
|
|
43
|
+
&:hover {
|
|
44
|
+
border: 1px solid #DEE0E3;
|
|
45
|
+
border-radius: 4px;
|
|
46
|
+
text-indent: 5px;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&.pro-edit-table-drag {
|
|
51
|
+
tr {
|
|
52
|
+
position: relative;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.is-drag {
|
|
56
|
+
position: absolute;
|
|
57
|
+
left : 2px;
|
|
58
|
+
padding : 0 !important;
|
|
59
|
+
top : 13px;
|
|
60
|
+
z-index : 1;
|
|
61
|
+
|
|
62
|
+
.drag-handle {
|
|
63
|
+
padding: 4px;
|
|
64
|
+
|
|
65
|
+
div {
|
|
66
|
+
height: 20px;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.ant-table-selection-column {
|
|
72
|
+
padding-left: 30px !important;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.ant-space {
|
|
77
|
+
gap: var(--zaui-space-size-sm, 8px);
|
|
78
|
+
|
|
79
|
+
.ant-btn-link {
|
|
80
|
+
padding: 0 var(--zaui-space-size-xs, 4px);
|
|
81
|
+
|
|
82
|
+
&:first-child {
|
|
83
|
+
padding-left: 0;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.ant-table-content {
|
|
89
|
+
>table {
|
|
90
|
+
|
|
91
|
+
.ant-table-cell-fix-right-first::after,
|
|
92
|
+
.ant-table-cell-fix-right-last::after {
|
|
93
|
+
width : auto;
|
|
94
|
+
transform : none;
|
|
95
|
+
transition: none;
|
|
96
|
+
box-shadow: none;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
td {
|
|
100
|
+
.pro-form-view-container_nowrap {
|
|
101
|
+
white-space: normal;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.ant-table-thead>tr>th:not(.ant-table-selection-column):not(.ant-table-row-expand-icon-cell):not([colspan]).is-required {
|
|
106
|
+
&::after {
|
|
107
|
+
position : static;
|
|
108
|
+
top : 0;
|
|
109
|
+
display : inline-block;
|
|
110
|
+
margin-left: 2px;
|
|
111
|
+
color : #ff5050;
|
|
112
|
+
font-size : 14px;
|
|
113
|
+
font-family: SimSun, sans-serif;
|
|
114
|
+
line-height: 1;
|
|
115
|
+
content : "*";
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
&.is-required-left {
|
|
119
|
+
&::after {
|
|
120
|
+
display: none;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
&::before {
|
|
124
|
+
position : static;
|
|
125
|
+
top : 0;
|
|
126
|
+
display : inline-block;
|
|
127
|
+
text-indent: -8px;
|
|
128
|
+
color : #ff5050;
|
|
129
|
+
font-size : 14px;
|
|
130
|
+
font-family: SimSun, sans-serif;
|
|
131
|
+
line-height: 1;
|
|
132
|
+
content : "*";
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.ant-table-cell {
|
|
140
|
+
.ant-form-item {
|
|
141
|
+
margin-bottom: 0px !important;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.ant-table.ant-table-bordered>.ant-table-container {
|
|
146
|
+
border: 0;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.ant-table-thead>tr>th {
|
|
150
|
+
border : 0;
|
|
151
|
+
white-space : nowrap;
|
|
152
|
+
background-color: #F6F7F8;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.ant-table-thead>tr>th:not(:last-child):not(.ant-table-selection-column):not(.ant-table-row-expand-icon-cell):not([colspan])::before {
|
|
156
|
+
height: 0;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.ant-table-tbody>tr:not(.ant-table-placeholder)>td {
|
|
160
|
+
border-bottom: 0;
|
|
161
|
+
border-right : 0;
|
|
162
|
+
border-top : 0;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.ant-table-tbody>.is-editing:not(.ant-table-measure-row)>td {
|
|
166
|
+
border-bottom : 0;
|
|
167
|
+
vertical-align: top;
|
|
168
|
+
padding : var(--zaui-space-size-md, 16px);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.ant-table-tbody tr:nth-child(n)>td {
|
|
172
|
+
background-color: var(--zaui-base-bg, #ffffff);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.ant-table-tbody tr:nth-child(2n)>td {
|
|
176
|
+
background-color: #f7f9fc;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.ant-table-tbody>.ant-table-placeholder>td {
|
|
180
|
+
background-color: var(--zaui-base-bg, #ffffff);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.ant-table-tbody {
|
|
184
|
+
|
|
185
|
+
>tr:hover:not(.ant-table-expanded-row, .ant-table-placeholder)>td,
|
|
186
|
+
.ant-table-row-hover,
|
|
187
|
+
.ant-table-row-hover>td {
|
|
188
|
+
background: #FAFAFA;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.ant-table-fixed {
|
|
193
|
+
|
|
194
|
+
.ant-table-row-hover,
|
|
195
|
+
.ant-table-row-hover>td {
|
|
196
|
+
background: #FAFAFA;
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.ant-table-fixed-header {
|
|
201
|
+
.ant-table-tbody tr:nth-child(n)>td {
|
|
202
|
+
background-color: #FAFAFA;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.ant-table-tbody tr:nth-child(2n)>td {
|
|
206
|
+
background-color: var(--zaui-base-bg, #ffffff);
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.ant-table-summary > tr > td {
|
|
211
|
+
border-bottom: none;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
.pro-edit-table-toolbar {
|
|
216
|
+
.ant-space {
|
|
217
|
+
gap: var(--zaui-space-size-sm, 8px);
|
|
218
|
+
|
|
219
|
+
.ant-btn-link {
|
|
220
|
+
padding: 0 var(--zaui-space-size-xs, 4px);
|
|
221
|
+
|
|
222
|
+
&:first-child {
|
|
223
|
+
padding-left: 0;
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export declare const defaultBtnNameMap: {
|
|
2
|
+
add: string;
|
|
3
|
+
edit: string;
|
|
4
|
+
copy: string;
|
|
5
|
+
delete: string;
|
|
6
|
+
mulDelete: string;
|
|
7
|
+
save: string;
|
|
8
|
+
cancel: string;
|
|
9
|
+
custom: string;
|
|
10
|
+
};
|
|
11
|
+
export declare const iconMap: {
|
|
12
|
+
add: JSX.Element;
|
|
13
|
+
};
|
|
14
|
+
export declare const defaultSingleActionKeys: string[];
|
|
15
|
+
export declare const defaultMultipleActionKeys: string[];
|
|
16
|
+
export declare const defaultEditingActionKeys: string[];
|
|
17
|
+
export declare const defaultToolbarKeys: string[];
|
|
18
|
+
export declare const actions: {
|
|
19
|
+
edit: ({ record, editingKeys, setState, form, virtualRowName, virtualKey, onlyOneLineMsg, }: any) => boolean;
|
|
20
|
+
save: ({ record, editingKeys, setState, form, rowName, virtualRowName, result }: any) => Promise<void>;
|
|
21
|
+
cancel: ({ name, record, editingKeys, setState, form, virtualRowName, virtualKey }: any) => void;
|
|
22
|
+
delete: ({ name, record, editingKeys, setState, form, virtualKey, onlyOneLineMsg }: any) => boolean;
|
|
23
|
+
add: ({ result, insertType, editingKeys, setState, form, name, virtualName, virtualKey, onlyOneLineMsg, }: any) => boolean;
|
|
24
|
+
mulDelete: ({ form, name, virtualKey, setState, selectedRowKeys, editingKeys }: any) => void;
|
|
25
|
+
};
|
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
|
|
2
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
3
|
+
import _typeof from "@babel/runtime/helpers/esm/typeof";
|
|
4
|
+
import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
|
5
|
+
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
6
|
+
import "antd/es/message/style";
|
|
7
|
+
import _message from "antd/es/message";
|
|
8
|
+
import React from 'react';
|
|
9
|
+
import { PlusOutlined } from '@ant-design/icons';
|
|
10
|
+
import { onDelete } from './tools';
|
|
11
|
+
export var defaultBtnNameMap = {
|
|
12
|
+
add: '添加',
|
|
13
|
+
edit: '编辑',
|
|
14
|
+
copy: '复制',
|
|
15
|
+
delete: '删除',
|
|
16
|
+
mulDelete: '删除',
|
|
17
|
+
save: '保存',
|
|
18
|
+
cancel: '取消',
|
|
19
|
+
custom: '自定义'
|
|
20
|
+
};
|
|
21
|
+
// 默认按钮配置
|
|
22
|
+
export var iconMap = {
|
|
23
|
+
add: /*#__PURE__*/React.createElement(PlusOutlined, null)
|
|
24
|
+
};
|
|
25
|
+
// 单行编辑 操作栏默认配置按钮
|
|
26
|
+
export var defaultSingleActionKeys = ['edit', 'delete', 'save', 'cancel'];
|
|
27
|
+
// 多行编辑 操作栏默认配置按钮
|
|
28
|
+
export var defaultMultipleActionKeys = ['delete'];
|
|
29
|
+
// 编辑状态下只显示保存、取消按钮
|
|
30
|
+
export var defaultEditingActionKeys = ['save', 'cancel'];
|
|
31
|
+
// 工具栏默认配置按钮
|
|
32
|
+
export var defaultToolbarKeys = ['add', 'mulDelete'];
|
|
33
|
+
// 操作枚举
|
|
34
|
+
export var actions = {
|
|
35
|
+
edit: function edit(_ref) {
|
|
36
|
+
var record = _ref.record,
|
|
37
|
+
editingKeys = _ref.editingKeys,
|
|
38
|
+
setState = _ref.setState,
|
|
39
|
+
form = _ref.form,
|
|
40
|
+
virtualRowName = _ref.virtualRowName,
|
|
41
|
+
virtualKey = _ref.virtualKey,
|
|
42
|
+
onlyOneLineMsg = _ref.onlyOneLineMsg;
|
|
43
|
+
// 单行编辑时,需要先保存,才能进行下面的编辑
|
|
44
|
+
if (virtualKey && editingKeys.length >= 1) {
|
|
45
|
+
_message.warning(onlyOneLineMsg);
|
|
46
|
+
return false;
|
|
47
|
+
}
|
|
48
|
+
var nextEditingKeys = _toConsumableArray(editingKeys);
|
|
49
|
+
// 开启编辑状态
|
|
50
|
+
nextEditingKeys.push(record.rowKey);
|
|
51
|
+
// 编辑时赋值编辑状态,供validator做保存校验
|
|
52
|
+
record.isEditing = Boolean(nextEditingKeys.length);
|
|
53
|
+
// 复制当前行数据
|
|
54
|
+
form.setFieldValue(virtualRowName, record);
|
|
55
|
+
setState({
|
|
56
|
+
editingKeys: nextEditingKeys
|
|
57
|
+
});
|
|
58
|
+
},
|
|
59
|
+
save: function () {
|
|
60
|
+
var _save = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(_ref2) {
|
|
61
|
+
var record, editingKeys, setState, form, rowName, virtualRowName, result, updateData, nextEditingKeys;
|
|
62
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
63
|
+
while (1) switch (_context.prev = _context.next) {
|
|
64
|
+
case 0:
|
|
65
|
+
record = _ref2.record, editingKeys = _ref2.editingKeys, setState = _ref2.setState, form = _ref2.form, rowName = _ref2.rowName, virtualRowName = _ref2.virtualRowName, result = _ref2.result;
|
|
66
|
+
// 保存返回数据与当前行内数据做合并
|
|
67
|
+
updateData = _typeof(result) === 'object' ? result : {};
|
|
68
|
+
record = _objectSpread(_objectSpread(_objectSpread({}, record), form.getFieldValue(virtualRowName)), updateData);
|
|
69
|
+
delete record.addFlag; // 删除第一次新增的标记
|
|
70
|
+
// 关闭当前保存行的编辑状态
|
|
71
|
+
nextEditingKeys = editingKeys.filter(function (key) {
|
|
72
|
+
return key !== record.rowKey;
|
|
73
|
+
}); // 保存后取消编辑状态,供validator做保存校验
|
|
74
|
+
record.isEditing = Boolean(nextEditingKeys.length);
|
|
75
|
+
form.setFieldValue(rowName, record);
|
|
76
|
+
setState({
|
|
77
|
+
editingKeys: nextEditingKeys
|
|
78
|
+
});
|
|
79
|
+
case 8:
|
|
80
|
+
case "end":
|
|
81
|
+
return _context.stop();
|
|
82
|
+
}
|
|
83
|
+
}, _callee);
|
|
84
|
+
}));
|
|
85
|
+
function save(_x) {
|
|
86
|
+
return _save.apply(this, arguments);
|
|
87
|
+
}
|
|
88
|
+
return save;
|
|
89
|
+
}(),
|
|
90
|
+
cancel: function cancel(_ref3) {
|
|
91
|
+
var name = _ref3.name,
|
|
92
|
+
record = _ref3.record,
|
|
93
|
+
editingKeys = _ref3.editingKeys,
|
|
94
|
+
setState = _ref3.setState,
|
|
95
|
+
form = _ref3.form,
|
|
96
|
+
virtualRowName = _ref3.virtualRowName,
|
|
97
|
+
virtualKey = _ref3.virtualKey;
|
|
98
|
+
var nextEditingKeys = editingKeys.filter(function (key) {
|
|
99
|
+
return key !== record.rowKey;
|
|
100
|
+
});
|
|
101
|
+
// 保存后取消编辑状态,供validator做保存校验
|
|
102
|
+
record.isEditing = Boolean(nextEditingKeys.length);
|
|
103
|
+
setState({
|
|
104
|
+
editingKeys: nextEditingKeys
|
|
105
|
+
}); // 关闭编辑状态
|
|
106
|
+
// 取消分两种,一编辑取消,二添加取消
|
|
107
|
+
if (record.addFlag) {
|
|
108
|
+
onDelete({
|
|
109
|
+
name: name,
|
|
110
|
+
form: form,
|
|
111
|
+
virtualKey: virtualKey,
|
|
112
|
+
selectedRowKeys: [record.rowKey]
|
|
113
|
+
});
|
|
114
|
+
} else {
|
|
115
|
+
form.setFieldValue(virtualRowName, record);
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
delete: function _delete(_ref4) {
|
|
119
|
+
var name = _ref4.name,
|
|
120
|
+
record = _ref4.record,
|
|
121
|
+
editingKeys = _ref4.editingKeys,
|
|
122
|
+
setState = _ref4.setState,
|
|
123
|
+
form = _ref4.form,
|
|
124
|
+
virtualKey = _ref4.virtualKey,
|
|
125
|
+
onlyOneLineMsg = _ref4.onlyOneLineMsg;
|
|
126
|
+
// 单行编辑时,需要先保存,才能进行下面的编辑
|
|
127
|
+
if (virtualKey && editingKeys.length >= 1) {
|
|
128
|
+
_message.warning(onlyOneLineMsg);
|
|
129
|
+
return false;
|
|
130
|
+
}
|
|
131
|
+
// 删除当前行数据
|
|
132
|
+
onDelete({
|
|
133
|
+
name: name,
|
|
134
|
+
form: form,
|
|
135
|
+
virtualKey: virtualKey,
|
|
136
|
+
selectedRowKeys: [record.rowKey]
|
|
137
|
+
});
|
|
138
|
+
if (virtualKey) {
|
|
139
|
+
// 关闭编辑状态
|
|
140
|
+
var nextEditingKeys = editingKeys.filter(function (key) {
|
|
141
|
+
return key === record.rowKey;
|
|
142
|
+
});
|
|
143
|
+
setState({
|
|
144
|
+
editingKeys: nextEditingKeys
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
add: function add(_ref5) {
|
|
149
|
+
var result = _ref5.result,
|
|
150
|
+
insertType = _ref5.insertType,
|
|
151
|
+
editingKeys = _ref5.editingKeys,
|
|
152
|
+
setState = _ref5.setState,
|
|
153
|
+
form = _ref5.form,
|
|
154
|
+
name = _ref5.name,
|
|
155
|
+
virtualName = _ref5.virtualName,
|
|
156
|
+
virtualKey = _ref5.virtualKey,
|
|
157
|
+
onlyOneLineMsg = _ref5.onlyOneLineMsg;
|
|
158
|
+
var nextData = _toConsumableArray(form.getFieldValue(name) || []);
|
|
159
|
+
// 单行编辑时,需要先保存,才能进行下面的编辑
|
|
160
|
+
if (virtualKey && editingKeys.length >= 1) {
|
|
161
|
+
_message.warning(onlyOneLineMsg);
|
|
162
|
+
return false;
|
|
163
|
+
}
|
|
164
|
+
// 添加新增对象数据
|
|
165
|
+
var addData = _typeof(result) === 'object' ? result : {};
|
|
166
|
+
var rowKey = Math.random().toString(36).slice(-6);
|
|
167
|
+
insertType === 'before' ? nextData.unshift(_objectSpread(_objectSpread({}, addData), {}, {
|
|
168
|
+
addFlag: true,
|
|
169
|
+
isEditing: true,
|
|
170
|
+
rowKey: rowKey
|
|
171
|
+
})) : nextData.push(_objectSpread(_objectSpread({}, addData), {}, {
|
|
172
|
+
addFlag: true,
|
|
173
|
+
isEditing: true,
|
|
174
|
+
rowKey: rowKey
|
|
175
|
+
}));
|
|
176
|
+
form.setFieldValue(name, nextData);
|
|
177
|
+
// 当单选情况下,存储正在编辑值
|
|
178
|
+
if (virtualKey) {
|
|
179
|
+
var nextEditingKeys = _toConsumableArray(editingKeys);
|
|
180
|
+
// 开启编辑状态
|
|
181
|
+
nextEditingKeys.push(rowKey);
|
|
182
|
+
form.setFieldValue(virtualName, nextData);
|
|
183
|
+
setState({
|
|
184
|
+
editingKeys: nextEditingKeys
|
|
185
|
+
});
|
|
186
|
+
}
|
|
187
|
+
},
|
|
188
|
+
mulDelete: function mulDelete(_ref6) {
|
|
189
|
+
var form = _ref6.form,
|
|
190
|
+
name = _ref6.name,
|
|
191
|
+
virtualKey = _ref6.virtualKey,
|
|
192
|
+
setState = _ref6.setState,
|
|
193
|
+
selectedRowKeys = _ref6.selectedRowKeys,
|
|
194
|
+
_ref6$editingKeys = _ref6.editingKeys,
|
|
195
|
+
editingKeys = _ref6$editingKeys === void 0 ? [] : _ref6$editingKeys;
|
|
196
|
+
// 删除选中数据
|
|
197
|
+
onDelete({
|
|
198
|
+
name: name,
|
|
199
|
+
form: form,
|
|
200
|
+
virtualKey: virtualKey,
|
|
201
|
+
selectedRowKeys: selectedRowKeys
|
|
202
|
+
});
|
|
203
|
+
// 删除的选择数据包含单行编辑行时,清空可编辑key
|
|
204
|
+
if (virtualKey && selectedRowKeys.includes(editingKeys === null || editingKeys === void 0 ? void 0 : editingKeys[0])) {
|
|
205
|
+
setState({
|
|
206
|
+
editingKeys: []
|
|
207
|
+
});
|
|
208
|
+
}
|
|
209
|
+
setState({
|
|
210
|
+
selectedRowKeys: [],
|
|
211
|
+
selectedRows: []
|
|
212
|
+
});
|
|
213
|
+
}
|
|
214
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 编辑模式分为 多行和单行两种
|
|
3
|
+
* 单行模式下,render 分为component和viewRender两种,对应编辑和非编辑状态下,edit状态不对外
|
|
4
|
+
* 多行模式下component设置即可
|
|
5
|
+
* render不对外暴露formItem,能自定渲染的尽是输入组件或者显示组件本身
|
|
6
|
+
* @param columns 表格配置数据
|
|
7
|
+
* @param config
|
|
8
|
+
* @param rowSelection 行选择数据
|
|
9
|
+
*/
|
|
10
|
+
export declare const transformColumns: (columns: any[], config: any, rowSelection: any) => any[];
|