@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,206 @@
|
|
|
1
|
+
import "antd/es/input/style";
|
|
2
|
+
import _Input from "antd/es/input";
|
|
3
|
+
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
4
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
5
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
6
|
+
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
7
|
+
import "antd/es/checkbox/style";
|
|
8
|
+
import _Checkbox from "antd/es/checkbox";
|
|
9
|
+
var _excluded = ["dataSource", "onChange", "value"];
|
|
10
|
+
import { SearchOutlined } from '@ant-design/icons';
|
|
11
|
+
import React, { useEffect, useState } from 'react';
|
|
12
|
+
import emptyImg from '../../assets/empty.png';
|
|
13
|
+
// import "./style/index.less";
|
|
14
|
+
var CheckboxGroup = _Checkbox.Group;
|
|
15
|
+
var ProColumnItem = function ProColumnItem(_ref) {
|
|
16
|
+
var itemKey = _ref.itemKey,
|
|
17
|
+
title = _ref.title,
|
|
18
|
+
columns = _ref.columns,
|
|
19
|
+
onChange = _ref.onChange,
|
|
20
|
+
value = _ref.value,
|
|
21
|
+
rightValue = _ref.rightValue,
|
|
22
|
+
getRightValue = _ref.getRightValue;
|
|
23
|
+
var _useState = useState(false),
|
|
24
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
25
|
+
indeterminate = _useState2[0],
|
|
26
|
+
setIndeterminate = _useState2[1];
|
|
27
|
+
var _useState3 = useState(false),
|
|
28
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
29
|
+
checkAll = _useState4[0],
|
|
30
|
+
setCheckAll = _useState4[1];
|
|
31
|
+
var _useState5 = useState([]),
|
|
32
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
33
|
+
plainOptions = _useState6[0],
|
|
34
|
+
setPlainOptions = _useState6[1];
|
|
35
|
+
var _useState7 = useState([]),
|
|
36
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
37
|
+
checkedList = _useState8[0],
|
|
38
|
+
setCheckedList = _useState8[1];
|
|
39
|
+
var _useState9 = useState(false),
|
|
40
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
41
|
+
allCheckDisabled = _useState10[0],
|
|
42
|
+
setAllCheckDisabled = _useState10[1];
|
|
43
|
+
useEffect(function () {
|
|
44
|
+
if (value) {
|
|
45
|
+
setCheckedList(value);
|
|
46
|
+
if (value.length === columns.length) {
|
|
47
|
+
setCheckAll(true);
|
|
48
|
+
} else {
|
|
49
|
+
setCheckAll(false);
|
|
50
|
+
}
|
|
51
|
+
} else {
|
|
52
|
+
setCheckedList([]);
|
|
53
|
+
setCheckAll(false);
|
|
54
|
+
}
|
|
55
|
+
setIndeterminate(!!(value === null || value === void 0 ? void 0 : value.length) && value.length < plainOptions.length);
|
|
56
|
+
}, [value, columns]);
|
|
57
|
+
useEffect(function () {
|
|
58
|
+
var options = columns.map(function (item) {
|
|
59
|
+
return item.value;
|
|
60
|
+
});
|
|
61
|
+
setPlainOptions(options);
|
|
62
|
+
setAllCheckDisabled(columns.some(function (item) {
|
|
63
|
+
return item.disabled;
|
|
64
|
+
}));
|
|
65
|
+
}, [columns]);
|
|
66
|
+
var handleRightValue = function handleRightValue(list) {
|
|
67
|
+
var nextRightValue = columns.filter(function (item) {
|
|
68
|
+
return list.includes(item.value);
|
|
69
|
+
});
|
|
70
|
+
getRightValue(nextRightValue.map(function (item) {
|
|
71
|
+
return _objectSpread({
|
|
72
|
+
key: itemKey
|
|
73
|
+
}, item);
|
|
74
|
+
}));
|
|
75
|
+
};
|
|
76
|
+
var _onChange = function _onChange(list) {
|
|
77
|
+
onChange(list);
|
|
78
|
+
setIndeterminate(!!list.length && list.length < plainOptions.length);
|
|
79
|
+
setCheckAll(list.length === plainOptions.length);
|
|
80
|
+
handleRightValue(list);
|
|
81
|
+
};
|
|
82
|
+
var onCheckAllChange = function onCheckAllChange(e) {
|
|
83
|
+
var selectOptions = e.target.checked ? plainOptions : [];
|
|
84
|
+
onChange(selectOptions);
|
|
85
|
+
setIndeterminate(false);
|
|
86
|
+
setCheckAll(e.target.checked);
|
|
87
|
+
handleRightValue(selectOptions);
|
|
88
|
+
};
|
|
89
|
+
return /*#__PURE__*/React.createElement("div", null, title && /*#__PURE__*/React.createElement("h4", null, title), /*#__PURE__*/React.createElement(_Checkbox, {
|
|
90
|
+
indeterminate: indeterminate,
|
|
91
|
+
onChange: onCheckAllChange,
|
|
92
|
+
checked: checkAll,
|
|
93
|
+
disabled: allCheckDisabled
|
|
94
|
+
}, "\u5168\u9009"), /*#__PURE__*/React.createElement(CheckboxGroup, {
|
|
95
|
+
options: columns,
|
|
96
|
+
onChange: _onChange,
|
|
97
|
+
value: checkedList
|
|
98
|
+
}));
|
|
99
|
+
};
|
|
100
|
+
var LeftBody = function LeftBody(_ref2) {
|
|
101
|
+
var dataSource = _ref2.dataSource,
|
|
102
|
+
onChange = _ref2.onChange,
|
|
103
|
+
value = _ref2.value,
|
|
104
|
+
rest = _objectWithoutProperties(_ref2, _excluded);
|
|
105
|
+
var _useState11 = useState([]),
|
|
106
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
107
|
+
checkedItems = _useState12[0],
|
|
108
|
+
setCheckedItems = _useState12[1];
|
|
109
|
+
var _useState13 = useState([]),
|
|
110
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
111
|
+
filteredItems = _useState14[0],
|
|
112
|
+
setFilteredItems = _useState14[1];
|
|
113
|
+
useEffect(function () {
|
|
114
|
+
if (value) {
|
|
115
|
+
setCheckedItems(value);
|
|
116
|
+
}
|
|
117
|
+
}, [value]);
|
|
118
|
+
useEffect(function () {
|
|
119
|
+
setFilteredItems(dataSource);
|
|
120
|
+
}, [dataSource]);
|
|
121
|
+
var handleSearch = function handleSearch(event) {
|
|
122
|
+
if (!event.target.value) {
|
|
123
|
+
setFilteredItems(dataSource);
|
|
124
|
+
} else {
|
|
125
|
+
var items = [];
|
|
126
|
+
dataSource.forEach(function (item) {
|
|
127
|
+
var _columns = [];
|
|
128
|
+
item.columns.forEach(function (i) {
|
|
129
|
+
if (i.label && i.label.toString().indexOf(event.target.value) > -1) {
|
|
130
|
+
_columns.push(i);
|
|
131
|
+
}
|
|
132
|
+
});
|
|
133
|
+
if (_columns.length > 0) {
|
|
134
|
+
items.push({
|
|
135
|
+
key: item.key,
|
|
136
|
+
title: item.title,
|
|
137
|
+
columns: _columns
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
});
|
|
141
|
+
setFilteredItems(items);
|
|
142
|
+
}
|
|
143
|
+
};
|
|
144
|
+
var _onChange = function _onChange(key) {
|
|
145
|
+
return function (values) {
|
|
146
|
+
var targetCategory = checkedItems.find(function (item) {
|
|
147
|
+
return item.key === key;
|
|
148
|
+
});
|
|
149
|
+
var nextCheckedItems = _toConsumableArray(checkedItems);
|
|
150
|
+
if (targetCategory) {
|
|
151
|
+
nextCheckedItems = checkedItems.map(function (item) {
|
|
152
|
+
if (item.key === key) {
|
|
153
|
+
return {
|
|
154
|
+
key: key,
|
|
155
|
+
value: values
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
return item;
|
|
159
|
+
});
|
|
160
|
+
} else {
|
|
161
|
+
nextCheckedItems.push({
|
|
162
|
+
key: key,
|
|
163
|
+
value: values
|
|
164
|
+
});
|
|
165
|
+
}
|
|
166
|
+
onChange(nextCheckedItems);
|
|
167
|
+
};
|
|
168
|
+
};
|
|
169
|
+
var columnsEles = filteredItems.map(function (item) {
|
|
170
|
+
var checkItem = checkedItems.find(function (i) {
|
|
171
|
+
return i.key === item.key;
|
|
172
|
+
});
|
|
173
|
+
var _ref3 = checkItem || {},
|
|
174
|
+
itemValue = _ref3.value;
|
|
175
|
+
return /*#__PURE__*/React.createElement("li", {
|
|
176
|
+
key: item.key,
|
|
177
|
+
className: "listItem"
|
|
178
|
+
}, /*#__PURE__*/React.createElement(ProColumnItem, _objectSpread(_objectSpread(_objectSpread({}, item), {}, {
|
|
179
|
+
onChange: _onChange(item.key),
|
|
180
|
+
value: itemValue
|
|
181
|
+
}, rest), {}, {
|
|
182
|
+
itemKey: item.key
|
|
183
|
+
})));
|
|
184
|
+
});
|
|
185
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
186
|
+
className: "leftBody"
|
|
187
|
+
}, /*#__PURE__*/React.createElement("h4", null, "\u53EF\u6DFB\u52A0\u7684\u5217"), /*#__PURE__*/React.createElement(_Input, {
|
|
188
|
+
placeholder: "\u8BF7\u8F93\u5165\u5217\u540D\u79F0\u8FDB\u884C\u67E5\u8BE2",
|
|
189
|
+
prefix: /*#__PURE__*/React.createElement(SearchOutlined, {
|
|
190
|
+
style: {
|
|
191
|
+
color: '#bcbcbc'
|
|
192
|
+
}
|
|
193
|
+
}),
|
|
194
|
+
allowClear: true,
|
|
195
|
+
onChange: handleSearch
|
|
196
|
+
}), /*#__PURE__*/React.createElement("ul", {
|
|
197
|
+
className: "list"
|
|
198
|
+
}, (filteredItems === null || filteredItems === void 0 ? void 0 : filteredItems.length) > 0 ? columnsEles : /*#__PURE__*/React.createElement("div", {
|
|
199
|
+
className: "noData"
|
|
200
|
+
}, /*#__PURE__*/React.createElement("img", {
|
|
201
|
+
className: "emptyImg",
|
|
202
|
+
src: emptyImg,
|
|
203
|
+
alt: "\u6682\u65E0\u6570\u636E"
|
|
204
|
+
}), "\u672A\u627E\u5230\u76F8\u5173\u7ED3\u679C")));
|
|
205
|
+
};
|
|
206
|
+
export default LeftBody;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { RightValueItemPropsType } from './propsType';
|
|
3
|
+
interface RightBodyPropsType {
|
|
4
|
+
value?: RightValueItemPropsType[];
|
|
5
|
+
getRightValue: (values: RightValueItemPropsType[]) => void;
|
|
6
|
+
onChange: (value: RightValueItemPropsType | []) => void;
|
|
7
|
+
}
|
|
8
|
+
declare const RightBody: FC<RightBodyPropsType>;
|
|
9
|
+
export default RightBody;
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import "antd/es/button/style";
|
|
2
|
+
import _Button from "antd/es/button";
|
|
3
|
+
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
4
|
+
import "antd/es/tag/style";
|
|
5
|
+
import _Tag from "antd/es/tag";
|
|
6
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
7
|
+
import React from 'react';
|
|
8
|
+
import { DndContext } from '@dnd-kit/core';
|
|
9
|
+
import { arrayMove, useSortable, SortableContext, verticalListSortingStrategy } from '@dnd-kit/sortable';
|
|
10
|
+
import { CSS } from '@dnd-kit/utilities';
|
|
11
|
+
import { ReactSVG } from 'react-svg';
|
|
12
|
+
import { ProTooltip } from '../../index';
|
|
13
|
+
import disabledSvg from '../../assets/disabled.svg';
|
|
14
|
+
import dragSvg from '../../assets/drag.svg';
|
|
15
|
+
var SortableItem = function SortableItem(props) {
|
|
16
|
+
var label = props.label,
|
|
17
|
+
item = props.item,
|
|
18
|
+
_onClose = props.onClose;
|
|
19
|
+
var data = useSortable({
|
|
20
|
+
id: props['data-row-key'],
|
|
21
|
+
disabled: item.disabled
|
|
22
|
+
});
|
|
23
|
+
var attributes = data.attributes,
|
|
24
|
+
listeners = data.listeners,
|
|
25
|
+
setNodeRef = data.setNodeRef,
|
|
26
|
+
transform = data.transform,
|
|
27
|
+
transition = data.transition,
|
|
28
|
+
isDragging = data.isDragging;
|
|
29
|
+
var style = _objectSpread(_objectSpread({}, props.style), {}, {
|
|
30
|
+
transform: CSS.Transform.toString(transform && _objectSpread(_objectSpread({}, transform), {}, {
|
|
31
|
+
scaleY: 1
|
|
32
|
+
})),
|
|
33
|
+
transition: transition
|
|
34
|
+
}, isDragging ? {
|
|
35
|
+
position: 'relative',
|
|
36
|
+
zIndex: 9999
|
|
37
|
+
} : {});
|
|
38
|
+
return /*#__PURE__*/React.createElement("li", _objectSpread({
|
|
39
|
+
ref: item.disabled ? null : setNodeRef,
|
|
40
|
+
style: style,
|
|
41
|
+
className: "right-list-item ".concat(item.disabled ? 'disabled' : '')
|
|
42
|
+
}, item.disabled ? {} : attributes), /*#__PURE__*/React.createElement(_Tag, {
|
|
43
|
+
closable: true,
|
|
44
|
+
onClose: function onClose(e) {
|
|
45
|
+
return _onClose(e);
|
|
46
|
+
}
|
|
47
|
+
}, item.disabled ? /*#__PURE__*/React.createElement(ReactSVG, {
|
|
48
|
+
className: "disabled-icon",
|
|
49
|
+
src: disabledSvg
|
|
50
|
+
}) : /*#__PURE__*/React.createElement(ReactSVG, _objectSpread({
|
|
51
|
+
className: "drag-icon",
|
|
52
|
+
src: dragSvg
|
|
53
|
+
}, listeners)), /*#__PURE__*/React.createElement(ProTooltip, {
|
|
54
|
+
text: label
|
|
55
|
+
}, label)));
|
|
56
|
+
};
|
|
57
|
+
var RightBody = function RightBody(_ref) {
|
|
58
|
+
var value = _ref.value,
|
|
59
|
+
onChange = _ref.onChange,
|
|
60
|
+
getRightValue = _ref.getRightValue;
|
|
61
|
+
var min = -1;
|
|
62
|
+
var max = (value === null || value === void 0 ? void 0 : value.length) || 0;
|
|
63
|
+
var minFlag = false;
|
|
64
|
+
var maxFlag = false;
|
|
65
|
+
value === null || value === void 0 ? void 0 : value.forEach(function (item, index) {
|
|
66
|
+
if (item.disabled && !minFlag) {
|
|
67
|
+
min = index;
|
|
68
|
+
} else {
|
|
69
|
+
minFlag = true;
|
|
70
|
+
}
|
|
71
|
+
if (!item.disabled && !maxFlag) {
|
|
72
|
+
maxFlag = true;
|
|
73
|
+
} else if (maxFlag && item.disabled) {
|
|
74
|
+
max = index;
|
|
75
|
+
maxFlag = false;
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
var _onClose2 = function onClose(itemValue) {
|
|
79
|
+
var targetItem = value === null || value === void 0 ? void 0 : value.find(function (item) {
|
|
80
|
+
return item.value === itemValue;
|
|
81
|
+
});
|
|
82
|
+
if (targetItem) {
|
|
83
|
+
onChange(targetItem);
|
|
84
|
+
}
|
|
85
|
+
var nextValue = _toConsumableArray(value || []);
|
|
86
|
+
nextValue = nextValue.filter(function (item) {
|
|
87
|
+
return item.value !== itemValue;
|
|
88
|
+
});
|
|
89
|
+
getRightValue(nextValue);
|
|
90
|
+
};
|
|
91
|
+
var handleClear = function handleClear() {
|
|
92
|
+
var nextValue = _toConsumableArray(value || []);
|
|
93
|
+
nextValue = nextValue.filter(function (item) {
|
|
94
|
+
return !!item.disabled;
|
|
95
|
+
});
|
|
96
|
+
// @ts-ignore
|
|
97
|
+
onChange([]);
|
|
98
|
+
getRightValue(nextValue);
|
|
99
|
+
};
|
|
100
|
+
var onDragEnd = function onDragEnd(_ref2) {
|
|
101
|
+
var active = _ref2.active,
|
|
102
|
+
over = _ref2.over;
|
|
103
|
+
if (active.id !== (over === null || over === void 0 ? void 0 : over.id)) {
|
|
104
|
+
var activeIndex = value.findIndex(function (i) {
|
|
105
|
+
return i.value === active.id;
|
|
106
|
+
});
|
|
107
|
+
var overIndex = value.findIndex(function (i) {
|
|
108
|
+
return i.value === (over === null || over === void 0 ? void 0 : over.id);
|
|
109
|
+
});
|
|
110
|
+
if (overIndex <= min || overIndex >= max) {
|
|
111
|
+
return;
|
|
112
|
+
}
|
|
113
|
+
var nextValue = arrayMove(value, activeIndex, overIndex);
|
|
114
|
+
getRightValue(nextValue);
|
|
115
|
+
}
|
|
116
|
+
};
|
|
117
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
118
|
+
className: "rightBody"
|
|
119
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
120
|
+
className: "header"
|
|
121
|
+
}, /*#__PURE__*/React.createElement("span", null, "\u5DF2\u9009", value ? value.length : 0, "\u5217"), /*#__PURE__*/React.createElement(_Button, {
|
|
122
|
+
type: "link",
|
|
123
|
+
onClick: handleClear
|
|
124
|
+
}, "\u6E05\u7A7A")), /*#__PURE__*/React.createElement("div", {
|
|
125
|
+
className: "list"
|
|
126
|
+
}, /*#__PURE__*/React.createElement(DndContext, {
|
|
127
|
+
onDragEnd: onDragEnd
|
|
128
|
+
}, /*#__PURE__*/React.createElement(SortableContext, {
|
|
129
|
+
items: value.map(function (i) {
|
|
130
|
+
return i.value;
|
|
131
|
+
}),
|
|
132
|
+
strategy: verticalListSortingStrategy
|
|
133
|
+
}, value === null || value === void 0 ? void 0 : value.map(function (item) {
|
|
134
|
+
return /*#__PURE__*/React.createElement(SortableItem, {
|
|
135
|
+
key: "item-".concat(item.value),
|
|
136
|
+
"data-row-key": item.value,
|
|
137
|
+
label: item.label,
|
|
138
|
+
item: item,
|
|
139
|
+
onClose: function onClose() {
|
|
140
|
+
return _onClose2(item.value);
|
|
141
|
+
}
|
|
142
|
+
});
|
|
143
|
+
})))));
|
|
144
|
+
};
|
|
145
|
+
export default RightBody;
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
import "antd/es/modal/style";
|
|
2
|
+
import _Modal from "antd/es/modal";
|
|
3
|
+
import "antd/es/button/style";
|
|
4
|
+
import _Button from "antd/es/button";
|
|
5
|
+
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
6
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
7
|
+
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
8
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
9
|
+
var _excluded = ["defaultValue", "dataSource", "width", "title", "cancelText", "okText", "onConfirm", "onOk", "onCancel"];
|
|
10
|
+
import React, { useEffect, useState } from 'react';
|
|
11
|
+
import { ReactSVG } from 'react-svg';
|
|
12
|
+
import LeftBody from './LeftBody';
|
|
13
|
+
import RightBody from './RightBody';
|
|
14
|
+
import customColumnSvg from '../../assets/customColumn.svg';
|
|
15
|
+
var ProCustomColumn = function ProCustomColumn(_ref) {
|
|
16
|
+
var _ref$defaultValue = _ref.defaultValue,
|
|
17
|
+
defaultValue = _ref$defaultValue === void 0 ? [] : _ref$defaultValue,
|
|
18
|
+
dataSource = _ref.dataSource,
|
|
19
|
+
_ref$width = _ref.width,
|
|
20
|
+
width = _ref$width === void 0 ? 800 : _ref$width,
|
|
21
|
+
_ref$title = _ref.title,
|
|
22
|
+
title = _ref$title === void 0 ? '自定义列' : _ref$title,
|
|
23
|
+
_ref$cancelText = _ref.cancelText,
|
|
24
|
+
cancelText = _ref$cancelText === void 0 ? '取消' : _ref$cancelText,
|
|
25
|
+
_ref$okText = _ref.okText,
|
|
26
|
+
okText = _ref$okText === void 0 ? '确定' : _ref$okText,
|
|
27
|
+
onConfirm = _ref.onConfirm,
|
|
28
|
+
onOk = _ref.onOk,
|
|
29
|
+
onCancel = _ref.onCancel,
|
|
30
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
31
|
+
var _useState = useState(false),
|
|
32
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
33
|
+
visible = _useState2[0],
|
|
34
|
+
setVisible = _useState2[1];
|
|
35
|
+
var _useState3 = useState([]),
|
|
36
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
37
|
+
checkedItems = _useState4[0],
|
|
38
|
+
setCheckedItems = _useState4[1];
|
|
39
|
+
var _useState5 = useState([]),
|
|
40
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
41
|
+
emptyCheckedItems = _useState6[0],
|
|
42
|
+
setEmptyCheckedItems = _useState6[1];
|
|
43
|
+
var _useState7 = useState([]),
|
|
44
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
45
|
+
prevCheckedItems = _useState8[0],
|
|
46
|
+
setPrevCheckedItems = _useState8[1];
|
|
47
|
+
var _useState9 = useState([]),
|
|
48
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
49
|
+
rightValue = _useState10[0],
|
|
50
|
+
setRightValue = _useState10[1];
|
|
51
|
+
var _useState11 = useState([]),
|
|
52
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
53
|
+
prevRightValue = _useState12[0],
|
|
54
|
+
setPrevRightValue = _useState12[1];
|
|
55
|
+
useEffect(function () {
|
|
56
|
+
var checkedItems = [];
|
|
57
|
+
var emptyCheckedItems = [];
|
|
58
|
+
var rightValue = [];
|
|
59
|
+
defaultValue === null || defaultValue === void 0 ? void 0 : defaultValue.forEach(function (item) {
|
|
60
|
+
var _item$columns, _item$columns2, _item$columns2$filter, _item$columns3;
|
|
61
|
+
checkedItems.push({
|
|
62
|
+
key: item.key,
|
|
63
|
+
value: (_item$columns = item.columns) === null || _item$columns === void 0 ? void 0 : _item$columns.map(function (item) {
|
|
64
|
+
return item.value;
|
|
65
|
+
})
|
|
66
|
+
});
|
|
67
|
+
emptyCheckedItems.push({
|
|
68
|
+
key: item.key,
|
|
69
|
+
// @ts-ignore
|
|
70
|
+
value: (_item$columns2 = item.columns) === null || _item$columns2 === void 0 ? void 0 : (_item$columns2$filter = _item$columns2.filter(function (item) {
|
|
71
|
+
return item.disabled;
|
|
72
|
+
})) === null || _item$columns2$filter === void 0 ? void 0 : _item$columns2$filter.map(function (item) {
|
|
73
|
+
return item.value;
|
|
74
|
+
})
|
|
75
|
+
});
|
|
76
|
+
(_item$columns3 = item.columns) === null || _item$columns3 === void 0 ? void 0 : _item$columns3.forEach(function (subItem) {
|
|
77
|
+
rightValue.push(_objectSpread({
|
|
78
|
+
key: item.key
|
|
79
|
+
}, subItem));
|
|
80
|
+
});
|
|
81
|
+
});
|
|
82
|
+
setCheckedItems(checkedItems);
|
|
83
|
+
setPrevCheckedItems(checkedItems);
|
|
84
|
+
setRightValue(rightValue);
|
|
85
|
+
setPrevRightValue(rightValue);
|
|
86
|
+
setEmptyCheckedItems(emptyCheckedItems);
|
|
87
|
+
}, [defaultValue]);
|
|
88
|
+
var getRightValue = function getRightValue(values) {
|
|
89
|
+
setRightValue(values);
|
|
90
|
+
};
|
|
91
|
+
var onLeftChange = function onLeftChange(values) {
|
|
92
|
+
setCheckedItems(values);
|
|
93
|
+
};
|
|
94
|
+
var onRightChange = function onRightChange(value) {
|
|
95
|
+
if (Array.isArray(value)) {
|
|
96
|
+
setCheckedItems(emptyCheckedItems);
|
|
97
|
+
} else {
|
|
98
|
+
var key = value.key;
|
|
99
|
+
var nextCheckedItems = _toConsumableArray(checkedItems || []);
|
|
100
|
+
nextCheckedItems = nextCheckedItems.map(function (item) {
|
|
101
|
+
if (item.key === key) {
|
|
102
|
+
var nextItemValue = item.value.filter(function (i) {
|
|
103
|
+
return i !== value.value;
|
|
104
|
+
});
|
|
105
|
+
return {
|
|
106
|
+
key: key,
|
|
107
|
+
value: nextItemValue
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
return item;
|
|
111
|
+
});
|
|
112
|
+
setCheckedItems(nextCheckedItems);
|
|
113
|
+
}
|
|
114
|
+
};
|
|
115
|
+
var _onOk = function _onOk() {
|
|
116
|
+
onConfirm && onConfirm(rightValue);
|
|
117
|
+
setPrevRightValue(rightValue);
|
|
118
|
+
setPrevCheckedItems(checkedItems);
|
|
119
|
+
setVisible(false);
|
|
120
|
+
};
|
|
121
|
+
var _onCancel = function _onCancel(event) {
|
|
122
|
+
setVisible(false);
|
|
123
|
+
setRightValue(prevRightValue);
|
|
124
|
+
setCheckedItems(prevCheckedItems);
|
|
125
|
+
onCancel && onCancel(event);
|
|
126
|
+
};
|
|
127
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
128
|
+
className: "pro-custom-column"
|
|
129
|
+
}, /*#__PURE__*/React.createElement(_Button, {
|
|
130
|
+
className: "custom-column-btn",
|
|
131
|
+
icon: /*#__PURE__*/React.createElement(ReactSVG, {
|
|
132
|
+
className: "anticon",
|
|
133
|
+
wrapper: "span",
|
|
134
|
+
src: customColumnSvg
|
|
135
|
+
}),
|
|
136
|
+
onClick: function onClick() {
|
|
137
|
+
return setVisible(true);
|
|
138
|
+
}
|
|
139
|
+
}, "\u81EA\u5B9A\u4E49\u5217"), /*#__PURE__*/React.createElement(_Modal, _objectSpread({
|
|
140
|
+
className: "pro-custom-column-modal",
|
|
141
|
+
width: width,
|
|
142
|
+
bodyStyle: {
|
|
143
|
+
paddingTop: 0
|
|
144
|
+
},
|
|
145
|
+
open: visible,
|
|
146
|
+
title: title,
|
|
147
|
+
okText: okText,
|
|
148
|
+
cancelText: cancelText,
|
|
149
|
+
onOk: _onOk,
|
|
150
|
+
onCancel: _onCancel
|
|
151
|
+
}, rest), /*#__PURE__*/React.createElement("div", {
|
|
152
|
+
className: "main"
|
|
153
|
+
}, /*#__PURE__*/React.createElement(LeftBody, {
|
|
154
|
+
dataSource: dataSource,
|
|
155
|
+
onChange: onLeftChange,
|
|
156
|
+
value: checkedItems,
|
|
157
|
+
rightValue: rightValue,
|
|
158
|
+
getRightValue: getRightValue
|
|
159
|
+
}), /*#__PURE__*/React.createElement(RightBody, {
|
|
160
|
+
onChange: onRightChange,
|
|
161
|
+
value: rightValue,
|
|
162
|
+
getRightValue: getRightValue
|
|
163
|
+
}))));
|
|
164
|
+
};
|
|
165
|
+
export default ProCustomColumn;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { CheckboxOptionType, CheckboxValueType } from 'antd/lib/checkbox/Group';
|
|
3
|
+
import { ModalProps } from 'antd/lib/modal';
|
|
4
|
+
export interface RightValueItemPropsType extends CheckboxOptionType {
|
|
5
|
+
key: string | number;
|
|
6
|
+
value: any;
|
|
7
|
+
}
|
|
8
|
+
export interface ColumnsPropsType {
|
|
9
|
+
title: string;
|
|
10
|
+
key: number | string;
|
|
11
|
+
columns: CheckboxOptionType[];
|
|
12
|
+
}
|
|
13
|
+
export interface ProCustomColumnPropsType {
|
|
14
|
+
defaultValue: ColumnsPropsType[];
|
|
15
|
+
dataSource: ColumnsPropsType[];
|
|
16
|
+
onConfirm?: (value: RightValueItemPropsType[]) => void;
|
|
17
|
+
onCancel?: (value: RightValueItemPropsType[]) => void;
|
|
18
|
+
}
|
|
19
|
+
export interface InnerModalPropsType extends ModalProps {
|
|
20
|
+
onOk?: (value: RightValueItemPropsType | React.MouseEvent<HTMLElement, MouseEvent>) => void;
|
|
21
|
+
}
|
|
22
|
+
export interface CheckedItemsPropsType {
|
|
23
|
+
key: number | string;
|
|
24
|
+
value: CheckboxValueType[];
|
|
25
|
+
}
|
|
26
|
+
export interface ProColumnItemPropsType extends ColumnsPropsType {
|
|
27
|
+
itemKey: number | string;
|
|
28
|
+
value?: CheckboxValueType[];
|
|
29
|
+
rightValue: RightValueItemPropsType[];
|
|
30
|
+
getRightValue: (values: RightValueItemPropsType[]) => void;
|
|
31
|
+
onChange: (values: CheckboxValueType[]) => void;
|
|
32
|
+
}
|
|
33
|
+
export interface LeftBodyPropsType {
|
|
34
|
+
dataSource: ColumnsPropsType[];
|
|
35
|
+
value?: CheckedItemsPropsType[];
|
|
36
|
+
rightValue: RightValueItemPropsType[];
|
|
37
|
+
getRightValue: (values: RightValueItemPropsType[]) => void;
|
|
38
|
+
onChange: (values: CheckedItemsPropsType[]) => void;
|
|
39
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
.pro-custom-column-modal {
|
|
2
|
+
.leftBody {
|
|
3
|
+
width: 70%;
|
|
4
|
+
flex-shrink: 0;
|
|
5
|
+
height: 100%;
|
|
6
|
+
border: 1px solid #DCDCDC;
|
|
7
|
+
border-radius: var(--zaui-border-radius, 4px);
|
|
8
|
+
.ant-input-affix-wrapper {
|
|
9
|
+
height: 40px;
|
|
10
|
+
padding: var(--zaui-space-size-xs, 4px) var(--zaui-space-size-md, 16px);
|
|
11
|
+
background: unset;
|
|
12
|
+
border: none;
|
|
13
|
+
border-bottom: 1px solid #DCDCDC;
|
|
14
|
+
border-radius: 0;
|
|
15
|
+
&:hover {
|
|
16
|
+
border-bottom: 1px solid #DCDCDC;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
.ant-input {
|
|
20
|
+
background: unset;
|
|
21
|
+
}
|
|
22
|
+
.ant-input-affix-wrapper:focus,
|
|
23
|
+
.ant-input-affix-wrapper-focused {
|
|
24
|
+
box-shadow: none;
|
|
25
|
+
}
|
|
26
|
+
> h4 {
|
|
27
|
+
height: 40px;
|
|
28
|
+
padding-left: var(--zaui-space-size-md, 16px);
|
|
29
|
+
line-height: 40px;
|
|
30
|
+
background: #F6F7F8;
|
|
31
|
+
border-radius: var(--zaui-border-radius, 4px) var(--zaui-border-radius, 4px) 0 0;
|
|
32
|
+
color: #616161;
|
|
33
|
+
}
|
|
34
|
+
.list {
|
|
35
|
+
height: calc(100% - 86px);
|
|
36
|
+
padding: var(--zaui-space-size-sm, 8px) 0 var(--zaui-space-size-sm, 8px) var(--zaui-space-size-md, 16px);
|
|
37
|
+
overflow-y: auto;
|
|
38
|
+
.noData {
|
|
39
|
+
height: 100%;
|
|
40
|
+
display: flex;
|
|
41
|
+
align-items: center;
|
|
42
|
+
justify-content: center;
|
|
43
|
+
flex-direction: column;
|
|
44
|
+
color: #616161;
|
|
45
|
+
.emptyImg {
|
|
46
|
+
margin-bottom: var(--zaui-space-size-md, 16px);
|
|
47
|
+
width: 80px;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
.listItem {
|
|
51
|
+
margin-bottom: var(--zaui-space-size-md, 16px);
|
|
52
|
+
list-style-type: none;
|
|
53
|
+
h4 {
|
|
54
|
+
margin-bottom: var(--zaui-space-size-sm, 8px);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
.ant-checkbox-wrapper {
|
|
58
|
+
margin-bottom: var(--zaui-space-size-md, 16px);
|
|
59
|
+
}
|
|
60
|
+
.ant-checkbox-group {
|
|
61
|
+
display: block;
|
|
62
|
+
.ant-checkbox-group-item {
|
|
63
|
+
width: 29%;
|
|
64
|
+
margin-bottom: var(--zaui-space-size-md, 16px);
|
|
65
|
+
margin-right: var(--zaui-space-size-md, 16px);
|
|
66
|
+
|
|
67
|
+
.ant-checkbox + span {
|
|
68
|
+
word-break: break-all;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
.pro-custom-column-modal {
|
|
2
|
+
.rightBody {
|
|
3
|
+
flex: 1;
|
|
4
|
+
margin-left: var(--zaui-space-size-md, 16px);
|
|
5
|
+
border: 1px solid #DCDCDC;
|
|
6
|
+
border-radius: var(--zaui-border-radius, 4px);
|
|
7
|
+
.header {
|
|
8
|
+
display: flex;
|
|
9
|
+
align-items: center;
|
|
10
|
+
justify-content: space-between;
|
|
11
|
+
height: 40px;
|
|
12
|
+
padding: 0 0 0 var(--zaui-space-size-md, 16px);
|
|
13
|
+
background: #F6F7F8;
|
|
14
|
+
color: #616161;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.list {
|
|
18
|
+
height: calc(100% - 40px);
|
|
19
|
+
overflow-y: auto;
|
|
20
|
+
overflow-x: hidden;
|
|
21
|
+
padding: var(--zaui-space-size-ms, 8px);
|
|
22
|
+
padding-bottom: 0;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|