@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,65 @@
|
|
|
1
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
3
|
+
var _excluded = ["type", "onPopChangeHandle", "fieldProps", "size", "value", "label", "viewEmpty"];
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import * as componentMap from '../../ProForm/components';
|
|
6
|
+
var getDataSource = function getDataSource(_ref) {
|
|
7
|
+
var dataSource = _ref.dataSource,
|
|
8
|
+
transform = _ref.transform;
|
|
9
|
+
if (transform) {
|
|
10
|
+
var result;
|
|
11
|
+
try {
|
|
12
|
+
result = transform();
|
|
13
|
+
} catch (error) {
|
|
14
|
+
result = dataSource;
|
|
15
|
+
throw new Error(error);
|
|
16
|
+
}
|
|
17
|
+
return transform();
|
|
18
|
+
}
|
|
19
|
+
return dataSource;
|
|
20
|
+
};
|
|
21
|
+
var RenderForm = function RenderForm(_ref2) {
|
|
22
|
+
var _componentMap$_type;
|
|
23
|
+
var _ref2$type = _ref2.type,
|
|
24
|
+
type = _ref2$type === void 0 ? 'Input' : _ref2$type,
|
|
25
|
+
onPopChangeHandle = _ref2.onPopChangeHandle,
|
|
26
|
+
fieldProps = _ref2.fieldProps,
|
|
27
|
+
size = _ref2.size,
|
|
28
|
+
value = _ref2.value,
|
|
29
|
+
label = _ref2.label,
|
|
30
|
+
viewEmpty = _ref2.viewEmpty,
|
|
31
|
+
props = _objectWithoutProperties(_ref2, _excluded);
|
|
32
|
+
var _type = type[0].toUpperCase() + type.substr(1);
|
|
33
|
+
var Component = (_componentMap$_type = componentMap[_type]) !== null && _componentMap$_type !== void 0 ? _componentMap$_type : /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
34
|
+
return /*#__PURE__*/React.createElement(Component, _objectSpread(_objectSpread(_objectSpread({
|
|
35
|
+
size: size,
|
|
36
|
+
otherProps: {
|
|
37
|
+
isView: props.isView,
|
|
38
|
+
viewEmpty: viewEmpty
|
|
39
|
+
}
|
|
40
|
+
}, fieldProps), props), {}, {
|
|
41
|
+
value: value,
|
|
42
|
+
onChange: function onChange(e) {
|
|
43
|
+
var value = ['Input', 'TextArea'].includes(type || 'Input') ? e.target.value : e;
|
|
44
|
+
props.onChange(e);
|
|
45
|
+
onPopChangeHandle && onPopChangeHandle(value);
|
|
46
|
+
}
|
|
47
|
+
}));
|
|
48
|
+
};
|
|
49
|
+
export var getNameByCode = function getNameByCode(_ref3) {
|
|
50
|
+
var _newDataSource$find;
|
|
51
|
+
var dataSource = _ref3.dataSource,
|
|
52
|
+
transform = _ref3.transform,
|
|
53
|
+
value = _ref3.value;
|
|
54
|
+
var newDataSource = getDataSource({
|
|
55
|
+
dataSource: dataSource,
|
|
56
|
+
transform: transform
|
|
57
|
+
});
|
|
58
|
+
if (!Array.isArray(newDataSource) || !newDataSource.length) {
|
|
59
|
+
return '-';
|
|
60
|
+
}
|
|
61
|
+
return ((_newDataSource$find = newDataSource.find(function (item) {
|
|
62
|
+
return item.code === value;
|
|
63
|
+
})) === null || _newDataSource$find === void 0 ? void 0 : _newDataSource$find.name) || '-';
|
|
64
|
+
};
|
|
65
|
+
export default RenderForm;
|
|
@@ -0,0 +1,324 @@
|
|
|
1
|
+
import "antd/es/popconfirm/style";
|
|
2
|
+
import _Popconfirm from "antd/es/popconfirm";
|
|
3
|
+
import "antd/es/input/style";
|
|
4
|
+
import _Input from "antd/es/input";
|
|
5
|
+
import "antd/es/row/style";
|
|
6
|
+
import _Row from "antd/es/row";
|
|
7
|
+
import "antd/es/space/style";
|
|
8
|
+
import _Space from "antd/es/space";
|
|
9
|
+
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
10
|
+
import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
|
|
11
|
+
import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
|
12
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
13
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
14
|
+
import "antd/es/form/style";
|
|
15
|
+
import _Form from "antd/es/form";
|
|
16
|
+
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
17
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
18
|
+
var _excluded = ["open", "disabled", "onOpenChange", "onFinish", "onConfirm", "trigger", "mode", "className", "size", "popupProps", "style", "viewEmpty", "children"];
|
|
19
|
+
import { EditOutlined, InfoCircleOutlined } from '@ant-design/icons';
|
|
20
|
+
import { useToggle, useSetState } from 'ahooks';
|
|
21
|
+
import { omit } from 'lodash';
|
|
22
|
+
import classnames from 'classnames';
|
|
23
|
+
import React, { useEffect, useRef, useMemo } from 'react';
|
|
24
|
+
import RenderForm, { getNameByCode } from './components/RenderForm';
|
|
25
|
+
import { isTrim } from './utils/index';
|
|
26
|
+
var ProEditLabel = function ProEditLabel(_ref) {
|
|
27
|
+
var _classnames;
|
|
28
|
+
var _ref$open = _ref.open,
|
|
29
|
+
open = _ref$open === void 0 ? false : _ref$open,
|
|
30
|
+
_ref$disabled = _ref.disabled,
|
|
31
|
+
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
32
|
+
_onOpenChange = _ref.onOpenChange,
|
|
33
|
+
onFinish = _ref.onFinish,
|
|
34
|
+
onConfirm = _ref.onConfirm,
|
|
35
|
+
_ref$trigger = _ref.trigger,
|
|
36
|
+
trigger = _ref$trigger === void 0 ? 'click' : _ref$trigger,
|
|
37
|
+
_ref$mode = _ref.mode,
|
|
38
|
+
mode = _ref$mode === void 0 ? 'current' : _ref$mode,
|
|
39
|
+
className = _ref.className,
|
|
40
|
+
_ref$size = _ref.size,
|
|
41
|
+
size = _ref$size === void 0 ? 'middle' : _ref$size,
|
|
42
|
+
popupProps = _ref.popupProps,
|
|
43
|
+
style = _ref.style,
|
|
44
|
+
_ref$viewEmpty = _ref.viewEmpty,
|
|
45
|
+
viewEmpty = _ref$viewEmpty === void 0 ? '-' : _ref$viewEmpty,
|
|
46
|
+
children = _ref.children,
|
|
47
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
48
|
+
var _useSetState = useSetState({
|
|
49
|
+
popValue: props.value || '',
|
|
50
|
+
confirmValue: props.value || '' // 确认后value
|
|
51
|
+
}),
|
|
52
|
+
_useSetState2 = _slicedToArray(_useSetState, 2),
|
|
53
|
+
_useSetState2$ = _useSetState2[0],
|
|
54
|
+
popValue = _useSetState2$.popValue,
|
|
55
|
+
confirmValue = _useSetState2$.confirmValue,
|
|
56
|
+
setState = _useSetState2[1];
|
|
57
|
+
var _useToggle = useToggle(open),
|
|
58
|
+
_useToggle2 = _slicedToArray(_useToggle, 2),
|
|
59
|
+
status = _useToggle2[0],
|
|
60
|
+
toggleStatus = _useToggle2[1].toggle;
|
|
61
|
+
var _Form$useForm = _Form.useForm(),
|
|
62
|
+
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
63
|
+
form = _Form$useForm2[0];
|
|
64
|
+
var inputRef = useRef(null);
|
|
65
|
+
var formItemProps = _objectSpread({
|
|
66
|
+
colon: false,
|
|
67
|
+
labelAlign: 'left',
|
|
68
|
+
name: (popupProps === null || popupProps === void 0 ? void 0 : popupProps.type) || 'Input'
|
|
69
|
+
}, omit(popupProps, ['fieldProps', 'type', 'trim']));
|
|
70
|
+
var onPress = function onPress(e) {
|
|
71
|
+
var element = e.target;
|
|
72
|
+
if (e.key === 'Enter') {
|
|
73
|
+
onFinish && onFinish(element.value);
|
|
74
|
+
onConfirm && onConfirm(element.value);
|
|
75
|
+
toggleStatus();
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
var editHandle = function editHandle() {
|
|
79
|
+
var _inputRef$current;
|
|
80
|
+
toggleStatus();
|
|
81
|
+
(_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 ? void 0 : _inputRef$current.focus();
|
|
82
|
+
if (mode === 'popup') {
|
|
83
|
+
form.setFieldValue(formItemProps.name, props.value);
|
|
84
|
+
// 弹窗同步最新value数据,解决Popconfirm空白处关闭数据不同步问题
|
|
85
|
+
setState({
|
|
86
|
+
popValue: confirmValue
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
useEffect(function () {
|
|
91
|
+
var _inputRef$current2;
|
|
92
|
+
status && ((_inputRef$current2 = inputRef.current) === null || _inputRef$current2 === void 0 ? void 0 : _inputRef$current2.focus());
|
|
93
|
+
}, [status]);
|
|
94
|
+
useEffect(function () {
|
|
95
|
+
_onOpenChange && _onOpenChange(status);
|
|
96
|
+
}, [_onOpenChange, status]);
|
|
97
|
+
useEffect(function () {
|
|
98
|
+
if (popValue !== confirmValue) {
|
|
99
|
+
setState({
|
|
100
|
+
popValue: confirmValue
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
}, [confirmValue]);
|
|
104
|
+
useEffect(function () {
|
|
105
|
+
setState({
|
|
106
|
+
confirmValue: props.value,
|
|
107
|
+
popValue: props.value
|
|
108
|
+
});
|
|
109
|
+
}, [props.value]);
|
|
110
|
+
var cls = classnames((_classnames = {
|
|
111
|
+
'pro-edit-label': true
|
|
112
|
+
}, _defineProperty(_classnames, "trigger-".concat(trigger), trigger), _defineProperty(_classnames, 'pro-edit-label-small', size === 'small'), _defineProperty(_classnames, 'pro-edit-label-middle', size === 'middle'), _defineProperty(_classnames, 'pro-edit-label-large', size === 'large'), _defineProperty(_classnames, "".concat(className), className), _classnames));
|
|
113
|
+
/**
|
|
114
|
+
* pop确认回调
|
|
115
|
+
*/
|
|
116
|
+
var onConfirmHandle = /*#__PURE__*/function () {
|
|
117
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
118
|
+
var res, value;
|
|
119
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
120
|
+
while (1) switch (_context.prev = _context.next) {
|
|
121
|
+
case 0:
|
|
122
|
+
_context.next = 2;
|
|
123
|
+
return form.validateFields();
|
|
124
|
+
case 2:
|
|
125
|
+
res = _context.sent;
|
|
126
|
+
value = res[formItemProps.name];
|
|
127
|
+
_context.prev = 4;
|
|
128
|
+
_context.t0 = onFinish;
|
|
129
|
+
if (!_context.t0) {
|
|
130
|
+
_context.next = 9;
|
|
131
|
+
break;
|
|
132
|
+
}
|
|
133
|
+
_context.next = 9;
|
|
134
|
+
return onFinish(value);
|
|
135
|
+
case 9:
|
|
136
|
+
_context.t1 = onConfirm;
|
|
137
|
+
if (!_context.t1) {
|
|
138
|
+
_context.next = 13;
|
|
139
|
+
break;
|
|
140
|
+
}
|
|
141
|
+
_context.next = 13;
|
|
142
|
+
return onConfirm(value);
|
|
143
|
+
case 13:
|
|
144
|
+
_context.next = 15;
|
|
145
|
+
return setState({
|
|
146
|
+
confirmValue: value,
|
|
147
|
+
popValue: value
|
|
148
|
+
});
|
|
149
|
+
case 15:
|
|
150
|
+
_context.next = 20;
|
|
151
|
+
break;
|
|
152
|
+
case 17:
|
|
153
|
+
_context.prev = 17;
|
|
154
|
+
_context.t2 = _context["catch"](4);
|
|
155
|
+
return _context.abrupt("return", Promise.reject());
|
|
156
|
+
case 20:
|
|
157
|
+
case "end":
|
|
158
|
+
return _context.stop();
|
|
159
|
+
}
|
|
160
|
+
}, _callee, null, [[4, 17]]);
|
|
161
|
+
}));
|
|
162
|
+
return function onConfirmHandle() {
|
|
163
|
+
return _ref2.apply(this, arguments);
|
|
164
|
+
};
|
|
165
|
+
}();
|
|
166
|
+
/**
|
|
167
|
+
* pop取消回调
|
|
168
|
+
*/
|
|
169
|
+
var onCancelHandle = function onCancelHandle() {
|
|
170
|
+
form.setFieldValue(formItemProps.name, props.value);
|
|
171
|
+
setState({
|
|
172
|
+
popValue: props.value
|
|
173
|
+
});
|
|
174
|
+
};
|
|
175
|
+
/**
|
|
176
|
+
* 根据 required 自动添加 rules
|
|
177
|
+
*/
|
|
178
|
+
var internalRule = useMemo(function () {
|
|
179
|
+
if (!popupProps) {
|
|
180
|
+
return null;
|
|
181
|
+
}
|
|
182
|
+
var required = formItemProps.required,
|
|
183
|
+
rules = formItemProps.rules;
|
|
184
|
+
var result = {
|
|
185
|
+
rules: rules
|
|
186
|
+
};
|
|
187
|
+
var message = ['Select', 'ProSelect', 'ProEnum', 'DatePicker', 'ProAddressBar', 'ProTimeLimit'].includes(popupProps.type) ? "\u8BF7\u9009\u62E9".concat(formItemProps.label || '') : "\u8BF7\u8F93\u5165".concat(formItemProps.label || '');
|
|
188
|
+
var rule = {
|
|
189
|
+
required: required,
|
|
190
|
+
message: message
|
|
191
|
+
};
|
|
192
|
+
var _rules;
|
|
193
|
+
if (required === true) {
|
|
194
|
+
if (Array.isArray(rules)) {
|
|
195
|
+
_rules = rules.filter(function (item) {
|
|
196
|
+
return !item.required;
|
|
197
|
+
});
|
|
198
|
+
}
|
|
199
|
+
result.rules = rules ? [].concat(_toConsumableArray(_rules), [rule]) : [rule];
|
|
200
|
+
}
|
|
201
|
+
if (Array.isArray(rules)) {
|
|
202
|
+
_rules = rules.map(function (item) {
|
|
203
|
+
if (item.required && !item.message) {
|
|
204
|
+
item.message = message;
|
|
205
|
+
}
|
|
206
|
+
return item;
|
|
207
|
+
});
|
|
208
|
+
result.rules = _rules;
|
|
209
|
+
}
|
|
210
|
+
return result;
|
|
211
|
+
}, [formItemProps.rules, formItemProps === null || formItemProps === void 0 ? void 0 : formItemProps.required]);
|
|
212
|
+
var formCls = classnames({
|
|
213
|
+
'pro-form': true,
|
|
214
|
+
'pro-form-no-label': !(popupProps === null || popupProps === void 0 ? void 0 : popupProps.label)
|
|
215
|
+
});
|
|
216
|
+
useEffect(function () {
|
|
217
|
+
// 弹窗模式使用form赋值
|
|
218
|
+
if (mode === 'popup') {
|
|
219
|
+
form.setFieldValue(formItemProps.name, props.value);
|
|
220
|
+
}
|
|
221
|
+
}, [props.value, formItemProps.name]);
|
|
222
|
+
var renderPopTitle = function renderPopTitle() {
|
|
223
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, (popupProps === null || popupProps === void 0 ? void 0 : popupProps.title) && /*#__PURE__*/React.createElement("div", {
|
|
224
|
+
className: "pro-edit-label-title"
|
|
225
|
+
}, popupProps === null || popupProps === void 0 ? void 0 : popupProps.title), (popupProps === null || popupProps === void 0 ? void 0 : popupProps.tip) && /*#__PURE__*/React.createElement("div", {
|
|
226
|
+
className: "pro-edit-label-tip"
|
|
227
|
+
}, /*#__PURE__*/React.createElement(_Space, {
|
|
228
|
+
align: "start"
|
|
229
|
+
}, /*#__PURE__*/React.createElement(InfoCircleOutlined, null), popupProps === null || popupProps === void 0 ? void 0 : popupProps.tip)), /*#__PURE__*/React.createElement(_Row, {
|
|
230
|
+
align: "middle",
|
|
231
|
+
className: "pro-edit-label-popup"
|
|
232
|
+
}, /*#__PURE__*/React.createElement(_Form, {
|
|
233
|
+
form: form,
|
|
234
|
+
className: formCls
|
|
235
|
+
}, /*#__PURE__*/React.createElement(_Form.Item, _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, isTrim(props.type, popupProps === null || popupProps === void 0 ? void 0 : popupProps.trim)), formItemProps), internalRule), {}, {
|
|
236
|
+
label: /*#__PURE__*/React.createElement("span", {
|
|
237
|
+
style: {
|
|
238
|
+
width: popupProps === null || popupProps === void 0 ? void 0 : popupProps.labelWidth
|
|
239
|
+
}
|
|
240
|
+
}, popupProps === null || popupProps === void 0 ? void 0 : popupProps.label)
|
|
241
|
+
}), /*#__PURE__*/React.createElement(RenderForm, _objectSpread(_objectSpread({
|
|
242
|
+
type: props.type,
|
|
243
|
+
viewEmpty: viewEmpty
|
|
244
|
+
}, popupProps), {}, {
|
|
245
|
+
size: size,
|
|
246
|
+
onPopChangeHandle: props === null || props === void 0 ? void 0 : props.onChange
|
|
247
|
+
}))))));
|
|
248
|
+
};
|
|
249
|
+
/**
|
|
250
|
+
* 渲染可编辑label
|
|
251
|
+
* @returns
|
|
252
|
+
*/
|
|
253
|
+
var renderProEditLabel = function renderProEditLabel() {
|
|
254
|
+
var TextNode = /*#__PURE__*/React.createElement("div", {
|
|
255
|
+
className: cls,
|
|
256
|
+
style: style
|
|
257
|
+
}, Array.isArray(props.dataSource) ? getNameByCode({
|
|
258
|
+
dataSource: props.dataSource,
|
|
259
|
+
transform: props.transform,
|
|
260
|
+
value: props.value
|
|
261
|
+
}) : props.value, !disabled && /*#__PURE__*/React.createElement(EditOutlined, {
|
|
262
|
+
onClick: editHandle
|
|
263
|
+
}));
|
|
264
|
+
if (disabled) {
|
|
265
|
+
if ( /*#__PURE__*/React.isValidElement(children)) {
|
|
266
|
+
return children;
|
|
267
|
+
}
|
|
268
|
+
return TextNode;
|
|
269
|
+
}
|
|
270
|
+
// 当前页编辑模式
|
|
271
|
+
if (mode === 'current') {
|
|
272
|
+
if (status) {
|
|
273
|
+
return /*#__PURE__*/React.createElement(_Input, _objectSpread(_objectSpread({
|
|
274
|
+
ref: inputRef,
|
|
275
|
+
size: size,
|
|
276
|
+
onBlur: function onBlur(e) {
|
|
277
|
+
toggleStatus();
|
|
278
|
+
onFinish && onFinish(e.target.value);
|
|
279
|
+
onConfirm && onConfirm(e.target.value);
|
|
280
|
+
},
|
|
281
|
+
onKeyDown: onPress
|
|
282
|
+
}, props), {}, {
|
|
283
|
+
onChange: function onChange(e) {
|
|
284
|
+
props.onChange && props.onChange(e.target.value);
|
|
285
|
+
}
|
|
286
|
+
}));
|
|
287
|
+
}
|
|
288
|
+
return TextNode;
|
|
289
|
+
}
|
|
290
|
+
// 弹窗编辑模式
|
|
291
|
+
if (mode === 'popup') {
|
|
292
|
+
// 查看时内容渲染
|
|
293
|
+
var labelRender = function labelRender() {
|
|
294
|
+
if ( /*#__PURE__*/React.isValidElement(children)) {
|
|
295
|
+
return children;
|
|
296
|
+
}
|
|
297
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
298
|
+
className: cls
|
|
299
|
+
}, /*#__PURE__*/React.createElement(RenderForm, _objectSpread(_objectSpread(_objectSpread({}, props), {}, {
|
|
300
|
+
type: props.type,
|
|
301
|
+
viewEmpty: viewEmpty
|
|
302
|
+
}, popupProps), {}, {
|
|
303
|
+
size: size,
|
|
304
|
+
value: confirmValue,
|
|
305
|
+
isView: true
|
|
306
|
+
})), /*#__PURE__*/React.createElement(EditOutlined, {
|
|
307
|
+
onClick: editHandle
|
|
308
|
+
}));
|
|
309
|
+
};
|
|
310
|
+
return /*#__PURE__*/React.createElement(_Popconfirm, {
|
|
311
|
+
icon: null,
|
|
312
|
+
placement: "topRight",
|
|
313
|
+
title: renderPopTitle(),
|
|
314
|
+
onConfirm: onConfirmHandle,
|
|
315
|
+
onCancel: onCancelHandle,
|
|
316
|
+
onOpenChange: function onOpenChange(open) {
|
|
317
|
+
_onOpenChange && _onOpenChange(open);
|
|
318
|
+
}
|
|
319
|
+
}, labelRender());
|
|
320
|
+
}
|
|
321
|
+
};
|
|
322
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, renderProEditLabel());
|
|
323
|
+
};
|
|
324
|
+
export default ProEditLabel;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { InputProps } from 'antd/lib/input';
|
|
2
|
+
import { PopconfirmProps } from 'antd/lib/popconfirm';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
export interface ContainerProps {
|
|
5
|
+
trigger?: 'click' | 'hover';
|
|
6
|
+
size?: 'small' | 'middle' | 'large';
|
|
7
|
+
mode?: 'popup' | 'current';
|
|
8
|
+
type?: 'input' | 'select';
|
|
9
|
+
}
|
|
10
|
+
export interface StateProps {
|
|
11
|
+
popValue?: string;
|
|
12
|
+
confirmValue?: string;
|
|
13
|
+
}
|
|
14
|
+
export interface PopupProps {
|
|
15
|
+
type?: string;
|
|
16
|
+
label?: string | React.ReactNode;
|
|
17
|
+
title?: string | React.ReactNode;
|
|
18
|
+
tip?: string | React.ReactNode;
|
|
19
|
+
trim?: boolean;
|
|
20
|
+
labelWidth?: string | number;
|
|
21
|
+
fieldProps?: any;
|
|
22
|
+
[key: string]: any;
|
|
23
|
+
}
|
|
24
|
+
export interface LabelProps extends InputProps {
|
|
25
|
+
visible?: boolean;
|
|
26
|
+
open?: boolean;
|
|
27
|
+
onVisibleChange?: (open: boolean) => void;
|
|
28
|
+
onChange?: (value: React.ChangeEvent<HTMLInputElement>) => void;
|
|
29
|
+
editable?: boolean;
|
|
30
|
+
onEdit?: () => void;
|
|
31
|
+
}
|
|
32
|
+
export interface PopupConfirmProps extends Partial<PopconfirmProps> {
|
|
33
|
+
popupProps?: PopupProps;
|
|
34
|
+
viewEmpty?: '-';
|
|
35
|
+
onConfirm?: (e?: any) => void;
|
|
36
|
+
onFinish?: (e?: any) => void;
|
|
37
|
+
tip?: string | React.ReactNode;
|
|
38
|
+
dataSource?: any[];
|
|
39
|
+
transform?: () => any[];
|
|
40
|
+
title?: string | React.ReactNode;
|
|
41
|
+
disabled?: boolean;
|
|
42
|
+
[key: string]: any;
|
|
43
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
.pro-edit-label {
|
|
2
|
+
display: inline-block;
|
|
3
|
+
|
|
4
|
+
.pro-form-view-container {
|
|
5
|
+
word-break: break-all;
|
|
6
|
+
display: inline-block;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
&.trigger-hover {
|
|
10
|
+
.anticon-edit {
|
|
11
|
+
display: none;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
&:hover {
|
|
15
|
+
.anticon-edit {
|
|
16
|
+
display: block;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.anticon-edit {
|
|
23
|
+
color : #D8D8D8;
|
|
24
|
+
margin-left: var(--zaui-space-size-sm, 8px);
|
|
25
|
+
cursor : pointer;
|
|
26
|
+
padding : 4px;
|
|
27
|
+
|
|
28
|
+
&:hover {
|
|
29
|
+
color: var(--zaui-brand, #006AFF);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&:active {
|
|
33
|
+
background : #E3E8F0;
|
|
34
|
+
border-radius: var(--zaui-border-radius-card, 2px);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&.pro-edit-label-small {
|
|
39
|
+
height: 24px;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&.pro-edit-label-middle {
|
|
43
|
+
height: 32px;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&.pro-edit-label-large {
|
|
47
|
+
height: 40px;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.ant-popover {
|
|
53
|
+
z-index: 1029 !important;
|
|
54
|
+
|
|
55
|
+
.pro-edit-label-title {
|
|
56
|
+
font-size : 16px;
|
|
57
|
+
font-weight : 500;
|
|
58
|
+
color : #343434;
|
|
59
|
+
margin-bottom: var(--zaui-space-size-sm, 8px);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.pro-edit-label-tip {
|
|
63
|
+
max-width : 300px;
|
|
64
|
+
margin-bottom: var(--zaui-space-size-md, 16px);
|
|
65
|
+
color : #666;
|
|
66
|
+
|
|
67
|
+
.anticon-info-circle {
|
|
68
|
+
font-size : var(--zaui-font-size-lg, 16px);
|
|
69
|
+
margin-right: var(--zaui-space-size-sm, 8px);
|
|
70
|
+
color : var(--zaui-warning, #EC9131);
|
|
71
|
+
margin-top : 4px;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.pro-edit-label-popup {
|
|
76
|
+
min-width: 300px;
|
|
77
|
+
|
|
78
|
+
.pro-form {
|
|
79
|
+
width: 100%;
|
|
80
|
+
|
|
81
|
+
&.pro-form-no-label {
|
|
82
|
+
.ant-form-item-label {
|
|
83
|
+
display: none;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.ant-col-10 {
|
|
89
|
+
width : var(--zaui-form-label-width, 128px);
|
|
90
|
+
max-width : var(--zaui-form-label-width, 128px);
|
|
91
|
+
text-align : var(--zaui-form-align, left);
|
|
92
|
+
white-space : pre-wrap;
|
|
93
|
+
line-height : 1;
|
|
94
|
+
overflow : initial;
|
|
95
|
+
box-sizing : border-box;
|
|
96
|
+
padding-right: var(--zaui-space-size-md, 16px);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.ant-select {
|
|
102
|
+
width: 100%;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Input TextArea 移除前后空格
|
|
3
|
+
* @param type 组件类型
|
|
4
|
+
* @param trim 是否移除前后空格
|
|
5
|
+
* @returns {}
|
|
6
|
+
*/
|
|
7
|
+
export declare const isTrim: (type: string, trim: boolean) => any;
|
|
8
|
+
export declare const isNullValue: (value: any) => boolean;
|
|
9
|
+
export declare const isNullArray: (value: any, length: any) => boolean;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Input TextArea 移除前后空格
|
|
3
|
+
* @param type 组件类型
|
|
4
|
+
* @param trim 是否移除前后空格
|
|
5
|
+
* @returns {}
|
|
6
|
+
*/
|
|
7
|
+
export var isTrim = function isTrim(type, trim) {
|
|
8
|
+
var result = {};
|
|
9
|
+
if (['Input', 'TextArea'].includes(type) && trim) {
|
|
10
|
+
result.getValueFromEvent = function (event) {
|
|
11
|
+
return event.target.value.trim();
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
return result;
|
|
15
|
+
};
|
|
16
|
+
// 判断一个字段值是否算空
|
|
17
|
+
var nullList = [undefined, 'null', '""', '[]'];
|
|
18
|
+
export var isNullValue = function isNullValue(value) {
|
|
19
|
+
return nullList.includes(JSON.stringify(value));
|
|
20
|
+
};
|
|
21
|
+
// 判断数组是否算空
|
|
22
|
+
export var isNullArray = function isNullArray(value, length) {
|
|
23
|
+
if (Array.isArray(value)) {
|
|
24
|
+
for (var i = 0; i < length; i++) {
|
|
25
|
+
if (isNullValue(value[i])) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
return false;
|
|
30
|
+
}
|
|
31
|
+
return !value;
|
|
32
|
+
};
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import "antd/es/button/style";
|
|
2
|
+
import _Button from "antd/es/button";
|
|
3
|
+
import "antd/es/popconfirm/style";
|
|
4
|
+
import _Popconfirm from "antd/es/popconfirm";
|
|
5
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
6
|
+
import React from 'react';
|
|
7
|
+
import { isFunction, omit } from 'lodash';
|
|
8
|
+
// 渲染操作按钮
|
|
9
|
+
var ActionButton = function ActionButton(_ref) {
|
|
10
|
+
var _editingKeys$includes;
|
|
11
|
+
var record = _ref.record,
|
|
12
|
+
index = _ref.index,
|
|
13
|
+
config = _ref.config,
|
|
14
|
+
btnConfig = _ref.btnConfig;
|
|
15
|
+
var virtualKey = config.virtualKey,
|
|
16
|
+
editingKeys = config.editingKeys,
|
|
17
|
+
selectedRowKeys = config.selectedRowKeys,
|
|
18
|
+
deletePoConfirmMsg = config.deletePoConfirmMsg,
|
|
19
|
+
mulDeletePoConfirmMsg = config.mulDeletePoConfirmMsg;
|
|
20
|
+
// 操作按钮权限控制
|
|
21
|
+
var getShow = function getShow(show) {
|
|
22
|
+
if (typeof show === 'function') {
|
|
23
|
+
return show(record, index);
|
|
24
|
+
}
|
|
25
|
+
return show;
|
|
26
|
+
};
|
|
27
|
+
var deleteMsgMap = {
|
|
28
|
+
delete: deletePoConfirmMsg,
|
|
29
|
+
mulDelete: mulDeletePoConfirmMsg
|
|
30
|
+
};
|
|
31
|
+
// 判断当前行是否正在编辑
|
|
32
|
+
var isEditing = !virtualKey || btnConfig.isEditable === (editingKeys === null || editingKeys === void 0 ? void 0 : (_editingKeys$includes = editingKeys.includes) === null || _editingKeys$includes === void 0 ? void 0 : _editingKeys$includes.call(editingKeys, record === null || record === void 0 ? void 0 : record.rowKey));
|
|
33
|
+
// 单行删除、多行删除按钮Props
|
|
34
|
+
var delBtnProps = _objectSpread(_objectSpread({}, btnConfig.buttonProps), {}, {
|
|
35
|
+
disabled: !selectedRowKeys.length && btnConfig.type === 'mulDelete'
|
|
36
|
+
});
|
|
37
|
+
// 其他操作按钮Props
|
|
38
|
+
var actionBtnProps = _objectSpread(_objectSpread({}, btnConfig.buttonProps), {}, {
|
|
39
|
+
onClick: function onClick() {
|
|
40
|
+
btnConfig.onClick(record, index);
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
// 当传入函数时,先转成reactNode
|
|
44
|
+
if (isFunction(btnConfig.label)) {
|
|
45
|
+
btnConfig.label = /*#__PURE__*/React.createElement(btnConfig.label, null);
|
|
46
|
+
}
|
|
47
|
+
return isEditing && getShow(btnConfig.show) ? /*#__PURE__*/React.createElement(React.Fragment, null, ['delete', 'mulDelete'].includes(btnConfig.type) ? /*#__PURE__*/React.createElement(_Popconfirm, {
|
|
48
|
+
placement: "topRight",
|
|
49
|
+
title: deleteMsgMap[btnConfig.type],
|
|
50
|
+
onConfirm: function onConfirm() {
|
|
51
|
+
btnConfig.onClick(record, index);
|
|
52
|
+
},
|
|
53
|
+
disabled: !selectedRowKeys.length && btnConfig.type === 'mulDelete',
|
|
54
|
+
okText: "\u786E\u8BA4",
|
|
55
|
+
cancelText: "\u53D6\u6D88"
|
|
56
|
+
}, /*#__PURE__*/React.isValidElement(btnConfig.label) ? /*#__PURE__*/React.cloneElement(btnConfig.label, _objectSpread(_objectSpread({}, omit(delBtnProps, ['buttonProps', 'isEditable'])), {}, {
|
|
57
|
+
record: record,
|
|
58
|
+
index: index
|
|
59
|
+
})) : /*#__PURE__*/React.createElement(_Button, _objectSpread(_objectSpread({}, omit(delBtnProps, ['buttonProps', 'isEditable'])), {}, {
|
|
60
|
+
type: "link"
|
|
61
|
+
}), btnConfig.label)) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.isValidElement(btnConfig.label) ? /*#__PURE__*/React.cloneElement(btnConfig.label, _objectSpread(_objectSpread({}, omit(actionBtnProps, ['buttonProps', 'isEditable'])), {}, {
|
|
62
|
+
record: record,
|
|
63
|
+
index: index
|
|
64
|
+
})) : /*#__PURE__*/React.createElement(_Button, _objectSpread(_objectSpread({
|
|
65
|
+
className: "action-button"
|
|
66
|
+
}, omit(actionBtnProps, ['buttonProps', 'isEditable'])), {}, {
|
|
67
|
+
type: "link"
|
|
68
|
+
}), btnConfig.label))) : null;
|
|
69
|
+
};
|
|
70
|
+
export default ActionButton;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React, { FC } from 'react';
|
|
2
|
+
interface RowProps extends React.HTMLAttributes<HTMLTableRowElement> {
|
|
3
|
+
'data-row-key': string;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare const Row: FC<RowProps>;
|
|
7
|
+
declare const DndWrapper: ({ draggable, value, onChange, disabled, children, }: {
|
|
8
|
+
draggable: any;
|
|
9
|
+
value: any;
|
|
10
|
+
onChange: any;
|
|
11
|
+
disabled: any;
|
|
12
|
+
children: any;
|
|
13
|
+
}) => any;
|
|
14
|
+
export default DndWrapper;
|