@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,89 @@
|
|
|
1
|
+
import "antd/es/col/style";
|
|
2
|
+
import _Col from "antd/es/col";
|
|
3
|
+
import "antd/es/select/style";
|
|
4
|
+
import _Select from "antd/es/select";
|
|
5
|
+
import "antd/es/input-number/style";
|
|
6
|
+
import _InputNumber from "antd/es/input-number";
|
|
7
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
8
|
+
import "antd/es/form/style";
|
|
9
|
+
import _Form from "antd/es/form";
|
|
10
|
+
import "antd/es/input/style";
|
|
11
|
+
import _Input from "antd/es/input";
|
|
12
|
+
import React, { cloneElement } from 'react';
|
|
13
|
+
export default function ProRangeBox(_ref) {
|
|
14
|
+
var _ref$configOption = _ref.configOption,
|
|
15
|
+
configOption = _ref$configOption === void 0 ? [] : _ref$configOption;
|
|
16
|
+
var CutMiddle = function CutMiddle() {
|
|
17
|
+
return /*#__PURE__*/React.createElement(_Input, {
|
|
18
|
+
className: "site-input-split",
|
|
19
|
+
style: {
|
|
20
|
+
width: 40,
|
|
21
|
+
borderLeft: 0,
|
|
22
|
+
borderRight: 0,
|
|
23
|
+
pointerEvents: 'none'
|
|
24
|
+
},
|
|
25
|
+
placeholder: "~",
|
|
26
|
+
disabled: true
|
|
27
|
+
});
|
|
28
|
+
};
|
|
29
|
+
return /*#__PURE__*/React.createElement(_Input.Group, {
|
|
30
|
+
style: {
|
|
31
|
+
display: 'flex'
|
|
32
|
+
},
|
|
33
|
+
className: "site-input-group-wrapper pro-range-box"
|
|
34
|
+
}, configOption === null || configOption === void 0 ? void 0 : configOption.map(function (_item, ind) {
|
|
35
|
+
if (_item === null || _item === void 0 ? void 0 : _item.component) {
|
|
36
|
+
return /*#__PURE__*/React.createElement(React.Fragment, {
|
|
37
|
+
key: ind
|
|
38
|
+
}, /*#__PURE__*/React.createElement(_Form.Item, {
|
|
39
|
+
noStyle: true,
|
|
40
|
+
name: _item === null || _item === void 0 ? void 0 : _item.name,
|
|
41
|
+
rules: _item === null || _item === void 0 ? void 0 : _item.rules
|
|
42
|
+
}, _item.component ? /*#__PURE__*/cloneElement(_item.component, _objectSpread({
|
|
43
|
+
disabled: _item.disabled
|
|
44
|
+
}, _item)) : ''), ind === 0 && /*#__PURE__*/React.createElement(CutMiddle, null));
|
|
45
|
+
}
|
|
46
|
+
if ((_item === null || _item === void 0 ? void 0 : _item.type) === 'inputNumber') {
|
|
47
|
+
return /*#__PURE__*/React.createElement(React.Fragment, {
|
|
48
|
+
key: ind
|
|
49
|
+
}, /*#__PURE__*/React.createElement(_Form.Item, {
|
|
50
|
+
noStyle: true,
|
|
51
|
+
name: _item === null || _item === void 0 ? void 0 : _item.name,
|
|
52
|
+
rules: _item === null || _item === void 0 ? void 0 : _item.rules
|
|
53
|
+
}, /*#__PURE__*/React.createElement(_InputNumber, _objectSpread({
|
|
54
|
+
styles: {
|
|
55
|
+
width: '100%'
|
|
56
|
+
}
|
|
57
|
+
}, _item))), ind === 0 && /*#__PURE__*/React.createElement(CutMiddle, null));
|
|
58
|
+
}
|
|
59
|
+
if ((_item === null || _item === void 0 ? void 0 : _item.type) === 'Select') {
|
|
60
|
+
return /*#__PURE__*/React.createElement(React.Fragment, {
|
|
61
|
+
key: ind
|
|
62
|
+
}, /*#__PURE__*/React.createElement(_Form.Item, {
|
|
63
|
+
noStyle: true,
|
|
64
|
+
name: _item === null || _item === void 0 ? void 0 : _item.name,
|
|
65
|
+
rules: _item === null || _item === void 0 ? void 0 : _item.rules
|
|
66
|
+
}, /*#__PURE__*/React.createElement(_Select, _objectSpread({
|
|
67
|
+
allowClear: true,
|
|
68
|
+
style: {
|
|
69
|
+
width: '100%'
|
|
70
|
+
}
|
|
71
|
+
}, _item))), ind === 0 && /*#__PURE__*/React.createElement(CutMiddle, null));
|
|
72
|
+
}
|
|
73
|
+
return /*#__PURE__*/React.createElement(React.Fragment, {
|
|
74
|
+
key: ind
|
|
75
|
+
}, /*#__PURE__*/React.createElement(_Col, {
|
|
76
|
+
key: _item === null || _item === void 0 ? void 0 : _item.id
|
|
77
|
+
}, /*#__PURE__*/React.createElement(_Form.Item, {
|
|
78
|
+
noStyle: true,
|
|
79
|
+
name: _item === null || _item === void 0 ? void 0 : _item.name,
|
|
80
|
+
rules: _item === null || _item === void 0 ? void 0 : _item.rules
|
|
81
|
+
}, /*#__PURE__*/React.createElement(_Input, _objectSpread(_objectSpread({
|
|
82
|
+
style: {
|
|
83
|
+
width: '100%'
|
|
84
|
+
}
|
|
85
|
+
}, _item), {}, {
|
|
86
|
+
rules: _item === null || _item === void 0 ? void 0 : _item.rules
|
|
87
|
+
})))), ind === 0 && /*#__PURE__*/React.createElement(_Col, null, /*#__PURE__*/React.createElement(CutMiddle, null)));
|
|
88
|
+
}));
|
|
89
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,369 @@
|
|
|
1
|
+
import "antd/es/col/style";
|
|
2
|
+
import _Col from "antd/es/col";
|
|
3
|
+
import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
|
|
4
|
+
import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
|
5
|
+
import "antd/es/input/style";
|
|
6
|
+
import _Input from "antd/es/input";
|
|
7
|
+
import "antd/es/form/style";
|
|
8
|
+
import _Form from "antd/es/form";
|
|
9
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
10
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
11
|
+
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
12
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
13
|
+
var _excluded = ["labelWidth", "hiddenNames", "trim", "className", "rules", "required", "labelRequired", "tooltip"];
|
|
14
|
+
import React, { useEffect, useMemo, useRef } from 'react';
|
|
15
|
+
import classNames from 'classnames';
|
|
16
|
+
import { ReactSVG } from 'react-svg';
|
|
17
|
+
import { cloneDeep, isBoolean, isFunction, isString, merge, omit } from 'lodash';
|
|
18
|
+
import useShouldUpdate from '../../utils/useShouldUpdate';
|
|
19
|
+
import { isNullArray, isTrim, filterInternalFields } from '../../utils/index';
|
|
20
|
+
import transformNames from '../../utils/transformNames';
|
|
21
|
+
import valueTypeMap from '../../utils/valueType';
|
|
22
|
+
import { useChanged } from '../../utils/useChanged';
|
|
23
|
+
import { rulesCreator } from '../../utils/rulesCreator';
|
|
24
|
+
import tipSvg from '../../../assets/tip.svg';
|
|
25
|
+
// 这个组件只管渲染, 参数的整理在外部处理
|
|
26
|
+
var Render = function Render(props) {
|
|
27
|
+
var _classNames, _otherProps$names2;
|
|
28
|
+
var component = props.component,
|
|
29
|
+
originComponent = props.originComponent,
|
|
30
|
+
_props$formItemProps = props.formItemProps,
|
|
31
|
+
formItemProps = _props$formItemProps === void 0 ? {} : _props$formItemProps,
|
|
32
|
+
otherProps = props.otherProps,
|
|
33
|
+
colProps = props.colProps,
|
|
34
|
+
componentProps = props.componentProps,
|
|
35
|
+
_props$show = props.show,
|
|
36
|
+
show = _props$show === void 0 ? true : _props$show,
|
|
37
|
+
fieldProps = props.fieldProps,
|
|
38
|
+
form = props.form,
|
|
39
|
+
formDisabled = props.disabled,
|
|
40
|
+
type = props.type,
|
|
41
|
+
isSelect = props.isSelect,
|
|
42
|
+
originalValues = props.originalValues,
|
|
43
|
+
equalWith = props.equalWith;
|
|
44
|
+
// 剔除一些不是FormItem的属性, 防止控制台报warning
|
|
45
|
+
var labelWidth = formItemProps.labelWidth,
|
|
46
|
+
hiddenNames = formItemProps.hiddenNames,
|
|
47
|
+
trim = formItemProps.trim,
|
|
48
|
+
className = formItemProps.className,
|
|
49
|
+
rules = formItemProps.rules,
|
|
50
|
+
required = formItemProps.required,
|
|
51
|
+
labelRequired = formItemProps.labelRequired,
|
|
52
|
+
tooltip = formItemProps.tooltip,
|
|
53
|
+
otherFormItemProps = _objectWithoutProperties(formItemProps, _excluded);
|
|
54
|
+
// 更新show & disabled & rules
|
|
55
|
+
var _useShouldUpdate = useShouldUpdate({
|
|
56
|
+
show: show,
|
|
57
|
+
formItemProps: formItemProps,
|
|
58
|
+
form: form,
|
|
59
|
+
disabled: componentProps.disabled,
|
|
60
|
+
rules: rules,
|
|
61
|
+
required: required,
|
|
62
|
+
componentProps: componentProps,
|
|
63
|
+
fieldProps: fieldProps,
|
|
64
|
+
component: component,
|
|
65
|
+
originComponent: originComponent
|
|
66
|
+
}),
|
|
67
|
+
shouldUpdate = _useShouldUpdate.shouldUpdate,
|
|
68
|
+
_show = _useShouldUpdate.show,
|
|
69
|
+
_disabled = _useShouldUpdate.disabled,
|
|
70
|
+
_rules = _useShouldUpdate.rules,
|
|
71
|
+
_required = _useShouldUpdate.required,
|
|
72
|
+
_componentProps = _useShouldUpdate.componentProps,
|
|
73
|
+
_fieldProps = _useShouldUpdate.fieldProps,
|
|
74
|
+
AutoComponent = _useShouldUpdate.component;
|
|
75
|
+
otherFormItemProps.shouldUpdate = shouldUpdate;
|
|
76
|
+
var namesStr = useMemo(function () {
|
|
77
|
+
var _otherProps$names;
|
|
78
|
+
if (!Array.isArray(otherProps === null || otherProps === void 0 ? void 0 : otherProps.names)) {
|
|
79
|
+
return '';
|
|
80
|
+
}
|
|
81
|
+
// formList场景 name为数组
|
|
82
|
+
if (Array.isArray(otherProps === null || otherProps === void 0 ? void 0 : otherProps.name)) {
|
|
83
|
+
return otherProps === null || otherProps === void 0 ? void 0 : otherProps.name;
|
|
84
|
+
}
|
|
85
|
+
return (_otherProps$names = otherProps.names) === null || _otherProps$names === void 0 ? void 0 : _otherProps$names.map(function (name) {
|
|
86
|
+
return Array.isArray(name) ? name.join('_') : name;
|
|
87
|
+
}).join('-');
|
|
88
|
+
}, [otherProps === null || otherProps === void 0 ? void 0 : otherProps.names]);
|
|
89
|
+
// 判断当前字段是否
|
|
90
|
+
var changed = useChanged(formItemProps.name, otherProps.names, namesStr, originalValues, form, equalWith);
|
|
91
|
+
// 根据 required 添加 rules
|
|
92
|
+
var internalRule = useMemo(function () {
|
|
93
|
+
var result = {
|
|
94
|
+
rules: _rules || []
|
|
95
|
+
};
|
|
96
|
+
if (_required === true) {
|
|
97
|
+
var requiredRule = Array.isArray(rules) && (rules === null || rules === void 0 ? void 0 : rules.find(function (rule) {
|
|
98
|
+
return 'required' in rule;
|
|
99
|
+
}));
|
|
100
|
+
if (!requiredRule) {
|
|
101
|
+
var message = isSelect ? "\u8BF7\u9009\u62E9".concat(otherFormItemProps.label || '') : "\u8BF7\u8F93\u5165".concat(otherFormItemProps.label || '');
|
|
102
|
+
var rule = {
|
|
103
|
+
required: _required,
|
|
104
|
+
message: message
|
|
105
|
+
};
|
|
106
|
+
result.rules = Array.isArray(rules) ? [].concat(_toConsumableArray(rules), [rule]) : [rule];
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
return result;
|
|
110
|
+
}, [_rules, _required]);
|
|
111
|
+
// type转换为内置rules
|
|
112
|
+
internalRule.rules = internalRule.rules && rulesCreator(internalRule.rules, otherProps.label, isSelect);
|
|
113
|
+
useEffect(function () {
|
|
114
|
+
if (otherProps.names && !isBoolean(labelRequired)) {
|
|
115
|
+
var customRequired = {
|
|
116
|
+
validator: function validator(rules, value) {
|
|
117
|
+
if (Array.isArray(value) && isNullArray(value, otherProps.names.length)) {
|
|
118
|
+
return Promise.reject(new Error("\u8BF7\u5B8C\u6574\u586B\u5199".concat(otherFormItemProps.label || '')));
|
|
119
|
+
}
|
|
120
|
+
return Promise.resolve();
|
|
121
|
+
}
|
|
122
|
+
};
|
|
123
|
+
internalRule.rules.push(customRequired);
|
|
124
|
+
}
|
|
125
|
+
}, [internalRule]);
|
|
126
|
+
/**
|
|
127
|
+
* 基于formItem的normalize与getValueProps进行值类型转换
|
|
128
|
+
* @returns {}
|
|
129
|
+
*/
|
|
130
|
+
var valueTypeTransform = function valueTypeTransform() {
|
|
131
|
+
var _ref = otherProps || {},
|
|
132
|
+
valueType = _ref.valueType;
|
|
133
|
+
// SwitchCheckbox默认YN, 兼容已有组件
|
|
134
|
+
if (type === 'SwitchCheckbox') {
|
|
135
|
+
valueType = 'switch';
|
|
136
|
+
}
|
|
137
|
+
// 不存在valueType返回空
|
|
138
|
+
if (!valueType) {
|
|
139
|
+
return {};
|
|
140
|
+
}
|
|
141
|
+
var params = _objectSpread(_objectSpread({}, otherProps), otherFormItemProps);
|
|
142
|
+
return isFunction(valueTypeMap[valueType]) ? valueTypeMap[valueType](params) : {};
|
|
143
|
+
};
|
|
144
|
+
/**
|
|
145
|
+
* transform对象
|
|
146
|
+
* 存在names通过transformNames转换平铺处理
|
|
147
|
+
* 没有默认走valueType的处理
|
|
148
|
+
*/
|
|
149
|
+
var transforms = Array.isArray(otherProps === null || otherProps === void 0 ? void 0 : otherProps.names) ? transformNames(_objectSpread(_objectSpread({}, otherFormItemProps), valueTypeTransform()),
|
|
150
|
+
// 合并valueType的transform
|
|
151
|
+
form, otherProps.names, namesStr) : valueTypeTransform();
|
|
152
|
+
// ↑↑↑↑↑↑ formItem参数整理 ↑↑↑↑↑↑
|
|
153
|
+
Object.assign(otherFormItemProps, transforms, {
|
|
154
|
+
names: otherProps.names
|
|
155
|
+
}, internalRule, labelRequired || _required ? {
|
|
156
|
+
required: true
|
|
157
|
+
} : null, _objectSpread({}, isTrim(type, trim)));
|
|
158
|
+
/** 移除多余参数,防止透传给formItem报错 */
|
|
159
|
+
var _otherFormItemProps = omit(otherFormItemProps, ['component', 'names', 'format', 'toISOString', 'switchValue', 'precision', 'clearNotShow']);
|
|
160
|
+
// 优先取formDisabled(全局),其次取disabled函数返回值,最后取fieldProps函数返回的disabled
|
|
161
|
+
var lastDisabled = componentProps.disabledStrictly ? formDisabled || _disabled || (_fieldProps === null || _fieldProps === void 0 ? void 0 : _fieldProps.disabled) : false;
|
|
162
|
+
// 取更新后的组件Props
|
|
163
|
+
var lastComponentProps = _objectSpread(_objectSpread(_objectSpread({}, componentProps), _fieldProps), {}, {
|
|
164
|
+
disabled: lastDisabled
|
|
165
|
+
});
|
|
166
|
+
var formRef = useRef(form);
|
|
167
|
+
var formUid = useMemo(function () {
|
|
168
|
+
if (formRef.current !== form) {
|
|
169
|
+
return Math.random().toString(36).slice(-6);
|
|
170
|
+
}
|
|
171
|
+
}, [form]);
|
|
172
|
+
if (type === 'ProSelect' && lastComponentProps.cacheData) {
|
|
173
|
+
var name = _otherFormItemProps.name;
|
|
174
|
+
var nameStr = formUid + Array.isArray(name) ? name.join('-') : name;
|
|
175
|
+
var addProps = {
|
|
176
|
+
useRequest: {
|
|
177
|
+
options: {
|
|
178
|
+
cacheKey: nameStr,
|
|
179
|
+
staleTime: lastComponentProps.cacheData === true ? -1 : lastComponentProps.cacheData
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
};
|
|
183
|
+
merge(lastComponentProps, addProps);
|
|
184
|
+
}
|
|
185
|
+
var _className = classNames((_classNames = {}, _defineProperty(_classNames, className, className), _defineProperty(_classNames, 'pro-form-item-changed', changed), _defineProperty(_classNames, 'label-width', labelWidth !== undefined), _classNames));
|
|
186
|
+
if (formItemProps.hidden === true || _show === false) {
|
|
187
|
+
// 为了监听shouldUpdate 必须存在一个FormItem, 空Input解决 【[antd: Form.Item] `name` is only used for validate React element】
|
|
188
|
+
return /*#__PURE__*/React.createElement(_Form.Item, _objectSpread(_objectSpread({}, _otherFormItemProps), {}, {
|
|
189
|
+
className: _className,
|
|
190
|
+
noStyle: true,
|
|
191
|
+
hidden: true,
|
|
192
|
+
rules: [{
|
|
193
|
+
required: false
|
|
194
|
+
}]
|
|
195
|
+
}), /*#__PURE__*/React.createElement(_Input, null));
|
|
196
|
+
}
|
|
197
|
+
/**
|
|
198
|
+
* 函数新参数组装
|
|
199
|
+
*/
|
|
200
|
+
var functionArgs = function functionArgs(args) {
|
|
201
|
+
var _otherFormItemProps$n;
|
|
202
|
+
var _args = _toConsumableArray(args);
|
|
203
|
+
var _ref2 = otherProps || {},
|
|
204
|
+
valueType = _ref2.valueType;
|
|
205
|
+
_args[1] = form.getFieldsValue();
|
|
206
|
+
_args[2] = {
|
|
207
|
+
form: form
|
|
208
|
+
};
|
|
209
|
+
// 优先处理FormList场景
|
|
210
|
+
if (Array.isArray(_otherFormItemProps.namePath) && (_otherFormItemProps === null || _otherFormItemProps === void 0 ? void 0 : (_otherFormItemProps$n = _otherFormItemProps.namePath) === null || _otherFormItemProps$n === void 0 ? void 0 : _otherFormItemProps$n.length)) {
|
|
211
|
+
var _otherFormItemProps$n2;
|
|
212
|
+
_args[1] = filterInternalFields(cloneDeep(form.getFieldValue(_otherFormItemProps.namePath)));
|
|
213
|
+
_args[2].namePath = _otherFormItemProps.namePath;
|
|
214
|
+
_args[2].index = _otherFormItemProps.namePath[(_otherFormItemProps === null || _otherFormItemProps === void 0 ? void 0 : (_otherFormItemProps$n2 = _otherFormItemProps.namePath) === null || _otherFormItemProps$n2 === void 0 ? void 0 : _otherFormItemProps$n2.length) - 1];
|
|
215
|
+
}
|
|
216
|
+
// 返回表单元素默认值
|
|
217
|
+
_args[2].extra = args;
|
|
218
|
+
// 当设置valueType后返回转换后的值
|
|
219
|
+
if (valueType) {
|
|
220
|
+
_args[2].transformValue = form.getFieldValue(_otherFormItemProps === null || _otherFormItemProps === void 0 ? void 0 : _otherFormItemProps.name) || undefined;
|
|
221
|
+
}
|
|
222
|
+
switch (type) {
|
|
223
|
+
case 'ProSelect':
|
|
224
|
+
case 'ProModalSelect':
|
|
225
|
+
case 'ProEnum':
|
|
226
|
+
_args[2].option = args[1];
|
|
227
|
+
break;
|
|
228
|
+
case 'ProAddressBar':
|
|
229
|
+
_args[2].selectedOptions = args[1];
|
|
230
|
+
break;
|
|
231
|
+
case 'DatePicker':
|
|
232
|
+
case 'RangePicker':
|
|
233
|
+
_args[2].dateString = args[1];
|
|
234
|
+
break;
|
|
235
|
+
default:
|
|
236
|
+
break;
|
|
237
|
+
}
|
|
238
|
+
return _args;
|
|
239
|
+
};
|
|
240
|
+
/**
|
|
241
|
+
* onChange参数重置 (value, record, { form, index, namePath, option }) => void
|
|
242
|
+
*/
|
|
243
|
+
var handleChange = function handleChange() {
|
|
244
|
+
var _lastComponentProps$c2;
|
|
245
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
246
|
+
args[_key] = arguments[_key];
|
|
247
|
+
}
|
|
248
|
+
var _args = [].concat(args);
|
|
249
|
+
// 优先使用onFieldChange
|
|
250
|
+
var changeKey = Object.keys(lastComponentProps).includes('onFieldChange') ? 'onFieldChange' : 'onChange';
|
|
251
|
+
if (changeKey === 'onChange') {
|
|
252
|
+
_args[2] = form;
|
|
253
|
+
}
|
|
254
|
+
if (changeKey === 'onFieldChange') {
|
|
255
|
+
_args = functionArgs([].concat(args));
|
|
256
|
+
}
|
|
257
|
+
if ( /*#__PURE__*/React.isValidElement(AutoComponent)) {
|
|
258
|
+
var _AutoComponent$props$, _AutoComponent$props, _lastComponentProps$c;
|
|
259
|
+
((_AutoComponent$props$ = (_AutoComponent$props = AutoComponent === null || AutoComponent === void 0 ? void 0 : AutoComponent.props)[changeKey]) === null || _AutoComponent$props$ === void 0 ? void 0 : _AutoComponent$props$.call.apply(_AutoComponent$props$, [_AutoComponent$props].concat(_toConsumableArray(_args)))) || ((_lastComponentProps$c = lastComponentProps[changeKey]) === null || _lastComponentProps$c === void 0 ? void 0 : _lastComponentProps$c.call.apply(_lastComponentProps$c, [lastComponentProps].concat(_toConsumableArray(_args))));
|
|
260
|
+
return false;
|
|
261
|
+
}
|
|
262
|
+
(_lastComponentProps$c2 = lastComponentProps[changeKey]) === null || _lastComponentProps$c2 === void 0 ? void 0 : _lastComponentProps$c2.call.apply(_lastComponentProps$c2, [lastComponentProps].concat(_toConsumableArray(_args)));
|
|
263
|
+
};
|
|
264
|
+
/**
|
|
265
|
+
* onBlur参数重置 (value, record, { form, index, namePath, option }) => void
|
|
266
|
+
*/
|
|
267
|
+
var handleBlur = /*#__PURE__*/function () {
|
|
268
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
269
|
+
var _len2,
|
|
270
|
+
args,
|
|
271
|
+
_key2,
|
|
272
|
+
_args,
|
|
273
|
+
_args2 = arguments;
|
|
274
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
275
|
+
while (1) switch (_context.prev = _context.next) {
|
|
276
|
+
case 0:
|
|
277
|
+
for (_len2 = _args2.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
278
|
+
args[_key2] = _args2[_key2];
|
|
279
|
+
}
|
|
280
|
+
_args = functionArgs([].concat(args));
|
|
281
|
+
_context.t0 = lastComponentProps === null || lastComponentProps === void 0 ? void 0 : lastComponentProps.onBlur;
|
|
282
|
+
if (!_context.t0) {
|
|
283
|
+
_context.next = 6;
|
|
284
|
+
break;
|
|
285
|
+
}
|
|
286
|
+
_context.next = 6;
|
|
287
|
+
return lastComponentProps === null || lastComponentProps === void 0 ? void 0 : lastComponentProps.onBlur.apply(lastComponentProps, _toConsumableArray(_args));
|
|
288
|
+
case 6:
|
|
289
|
+
case "end":
|
|
290
|
+
return _context.stop();
|
|
291
|
+
}
|
|
292
|
+
}, _callee);
|
|
293
|
+
}));
|
|
294
|
+
return function handleBlur() {
|
|
295
|
+
return _ref3.apply(this, arguments);
|
|
296
|
+
};
|
|
297
|
+
}();
|
|
298
|
+
if (type === 'FormList') {
|
|
299
|
+
lastComponentProps.disabled = lastDisabled;
|
|
300
|
+
return /*#__PURE__*/React.createElement(_Col, {
|
|
301
|
+
span: 24
|
|
302
|
+
}, /*#__PURE__*/React.createElement(_Form.List, _objectSpread({}, _otherFormItemProps), function (fields, operation, meta) {
|
|
303
|
+
return /*#__PURE__*/React.createElement(AutoComponent, _objectSpread(_objectSpread({}, omit(lastComponentProps, ['onFieldChange', 'disabledStrictly'])), {}, {
|
|
304
|
+
otherProps: otherProps,
|
|
305
|
+
fields: fields,
|
|
306
|
+
operation: operation,
|
|
307
|
+
meta: meta
|
|
308
|
+
}));
|
|
309
|
+
}));
|
|
310
|
+
}
|
|
311
|
+
var renderItem = function renderItem() {
|
|
312
|
+
// 表单渲染 start
|
|
313
|
+
var childProps = _objectSpread(_objectSpread(_objectSpread({}, AutoComponent === null || AutoComponent === void 0 ? void 0 : AutoComponent.props), omit(lastComponentProps, ['onFieldChange', 'disabledStrictly'])), {}, {
|
|
314
|
+
// @ts-ignore
|
|
315
|
+
otherProps: otherProps,
|
|
316
|
+
onChange: handleChange,
|
|
317
|
+
onBlur: handleBlur
|
|
318
|
+
});
|
|
319
|
+
// 自定义组件移除otherProps参数
|
|
320
|
+
if (originComponent) {
|
|
321
|
+
delete childProps.otherProps;
|
|
322
|
+
}
|
|
323
|
+
var child = /*#__PURE__*/React.isValidElement(AutoComponent) ? /*#__PURE__*/React.cloneElement(AutoComponent, childProps) : /*#__PURE__*/React.createElement(AutoComponent, _objectSpread(_objectSpread({}, omit(lastComponentProps, ['onFieldChange', 'disabledStrictly'])), {}, {
|
|
324
|
+
otherProps: otherProps,
|
|
325
|
+
onChange: handleChange,
|
|
326
|
+
onBlur: handleBlur
|
|
327
|
+
}));
|
|
328
|
+
// 表单渲染 end
|
|
329
|
+
if (labelWidth) {
|
|
330
|
+
_otherFormItemProps.label = /*#__PURE__*/React.createElement("span", {
|
|
331
|
+
style: {
|
|
332
|
+
width: labelWidth
|
|
333
|
+
}
|
|
334
|
+
}, otherFormItemProps.label);
|
|
335
|
+
}
|
|
336
|
+
// 表单提示
|
|
337
|
+
if (tooltip) {
|
|
338
|
+
_otherFormItemProps.tooltip = {
|
|
339
|
+
title: isString(tooltip) ? tooltip : tooltip.title,
|
|
340
|
+
icon: isString(tooltip) ? /*#__PURE__*/React.createElement(ReactSVG, {
|
|
341
|
+
className: "pro-icon-tip",
|
|
342
|
+
src: tipSvg
|
|
343
|
+
}) : tooltip.icon
|
|
344
|
+
};
|
|
345
|
+
}
|
|
346
|
+
// 当存在shouldUpdate时补货所有form变更(防止表单onchange设置form值时无法更新的问题)
|
|
347
|
+
if (_otherFormItemProps.shouldUpdate) {
|
|
348
|
+
return /*#__PURE__*/React.createElement(_Form.Item, {
|
|
349
|
+
shouldUpdate: _otherFormItemProps.shouldUpdate,
|
|
350
|
+
noStyle: true
|
|
351
|
+
}, function () {
|
|
352
|
+
return /*#__PURE__*/React.createElement(_Form.Item, _objectSpread(_objectSpread({}, omit(_otherFormItemProps, ['onFieldChange', 'shouldUpdate', 'namePath'])), {}, {
|
|
353
|
+
className: _className
|
|
354
|
+
}), child);
|
|
355
|
+
});
|
|
356
|
+
}
|
|
357
|
+
return /*#__PURE__*/React.createElement(_Form.Item, _objectSpread(_objectSpread({}, omit(_otherFormItemProps, ['onFieldChange', 'shouldUpdate', 'namePath'])), {}, {
|
|
358
|
+
className: _className
|
|
359
|
+
}), child);
|
|
360
|
+
};
|
|
361
|
+
return /*#__PURE__*/React.createElement(_Col, _objectSpread({}, colProps), renderItem(), (otherProps === null || otherProps === void 0 ? void 0 : (_otherProps$names2 = otherProps.names) === null || _otherProps$names2 === void 0 ? void 0 : _otherProps$names2.length) ? otherProps.names.map(function (name) {
|
|
362
|
+
return /*#__PURE__*/React.createElement(_Form.Item, {
|
|
363
|
+
hidden: true,
|
|
364
|
+
name: name,
|
|
365
|
+
key: name
|
|
366
|
+
}, /*#__PURE__*/React.createElement(_Input, null));
|
|
367
|
+
}) : null);
|
|
368
|
+
};
|
|
369
|
+
export default Render;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ColProps } from 'antd';
|
|
2
|
+
import { FormInstance } from 'antd/es/form/Form';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { ProColumnProps } from './propsType';
|
|
5
|
+
import { ProFormProps } from '../../propsType';
|
|
6
|
+
interface Props<T = any> {
|
|
7
|
+
isView?: boolean;
|
|
8
|
+
columns: ProColumnProps[];
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
form: FormInstance<T>;
|
|
11
|
+
expand?: false | number;
|
|
12
|
+
colProps?: ColProps;
|
|
13
|
+
viewEmpty?: React.ReactNode;
|
|
14
|
+
openState?: boolean;
|
|
15
|
+
labelWidth?: string | number;
|
|
16
|
+
originalValues?: ProFormProps<T>['originalValues'];
|
|
17
|
+
clearNotShow?: boolean;
|
|
18
|
+
}
|
|
19
|
+
declare const RenderFields: React.FC<Props>;
|
|
20
|
+
export default RenderFields;
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
3
|
+
var _excluded = ["show", "type", "viewRender", "viewType", "valueType", "formItemProps", "colProps", "formItemChildProps", "fieldProps", "disabled", "equalWith", "clearNotShow"];
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import { cloneDeep, isFunction, union } from 'lodash';
|
|
6
|
+
import Render from './Render';
|
|
7
|
+
import { filterInternalFields } from '../../utils/index';
|
|
8
|
+
import * as componentMap from '../index';
|
|
9
|
+
import { isSelect } from '../../utils';
|
|
10
|
+
var RenderFields = function RenderFields(props) {
|
|
11
|
+
var isView = props.isView,
|
|
12
|
+
_props$columns = props.columns,
|
|
13
|
+
columns = _props$columns === void 0 ? [] : _props$columns,
|
|
14
|
+
formDisabled = props.disabled,
|
|
15
|
+
form = props.form,
|
|
16
|
+
expand = props.expand,
|
|
17
|
+
defaultColProps = props.colProps,
|
|
18
|
+
_props$viewEmpty = props.viewEmpty,
|
|
19
|
+
viewEmpty = _props$viewEmpty === void 0 ? '-' : _props$viewEmpty,
|
|
20
|
+
openState = props.openState,
|
|
21
|
+
labelWidth = props.labelWidth,
|
|
22
|
+
originalValues = props.originalValues,
|
|
23
|
+
outerClearNotShow = props.clearNotShow;
|
|
24
|
+
// 是否包含隐藏字段
|
|
25
|
+
var hiddenData = columns.filter(function (item) {
|
|
26
|
+
return Array.isArray(item.hiddenNames);
|
|
27
|
+
}) || [];
|
|
28
|
+
// 创建hidden字段供表单收集
|
|
29
|
+
if (hiddenData.length) {
|
|
30
|
+
var hiddenArray = [];
|
|
31
|
+
hiddenData.forEach(function (item) {
|
|
32
|
+
hiddenArray = hiddenArray.concat(item.hiddenNames);
|
|
33
|
+
});
|
|
34
|
+
hiddenArray.forEach(function (item) {
|
|
35
|
+
columns.push({
|
|
36
|
+
name: Array.isArray(item) ? item : "".concat(item),
|
|
37
|
+
hidden: true
|
|
38
|
+
});
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
var comList = columns.flatMap(function (column, index) {
|
|
42
|
+
if (!!expand && !openState && index >= expand) {
|
|
43
|
+
return [];
|
|
44
|
+
}
|
|
45
|
+
var show = column.show,
|
|
46
|
+
type = column.type,
|
|
47
|
+
viewRender = column.viewRender,
|
|
48
|
+
viewType = column.viewType,
|
|
49
|
+
valueType = column.valueType,
|
|
50
|
+
_column$formItemProps = column.formItemProps,
|
|
51
|
+
formItemProps = _column$formItemProps === void 0 ? {} : _column$formItemProps,
|
|
52
|
+
_column$colProps = column.colProps,
|
|
53
|
+
colProps = _column$colProps === void 0 ? {} : _column$colProps,
|
|
54
|
+
_column$formItemChild = column.formItemChildProps,
|
|
55
|
+
formItemChildProps = _column$formItemChild === void 0 ? {} : _column$formItemChild,
|
|
56
|
+
_column$fieldProps = column.fieldProps,
|
|
57
|
+
fieldProps = _column$fieldProps === void 0 ? {} : _column$fieldProps,
|
|
58
|
+
_column$disabled = column.disabled,
|
|
59
|
+
disabled = _column$disabled === void 0 ? false : _column$disabled,
|
|
60
|
+
equalWith = column.equalWith,
|
|
61
|
+
_column$clearNotShow = column.clearNotShow,
|
|
62
|
+
clearNotShow = _column$clearNotShow === void 0 ? outerClearNotShow : _column$clearNotShow,
|
|
63
|
+
otherFormItemProps = _objectWithoutProperties(column, _excluded);
|
|
64
|
+
var component = column.component;
|
|
65
|
+
// 允许formItem的属性放在column最外层 并优先级高于 formItemProps 内部参数
|
|
66
|
+
var _formItemProps = _objectSpread(_objectSpread(_objectSpread({}, formItemProps), otherFormItemProps), {}, {
|
|
67
|
+
clearNotShow: clearNotShow
|
|
68
|
+
});
|
|
69
|
+
_formItemProps.labelWidth = _formItemProps.labelWidth || labelWidth; // 接收Form中的labelWidth
|
|
70
|
+
if (type && component) {
|
|
71
|
+
console.error('Warning: type and component are mutually exclusive. type will not take effect');
|
|
72
|
+
}
|
|
73
|
+
var _type = type || 'Input';
|
|
74
|
+
var TargetComponent;
|
|
75
|
+
// 查看高阶函数
|
|
76
|
+
var viewRenderHandle = function viewRenderHandle() {
|
|
77
|
+
var _column$namePath;
|
|
78
|
+
var value = form.getFieldValue(column.name);
|
|
79
|
+
var record = form.getFieldsValue();
|
|
80
|
+
var index;
|
|
81
|
+
// FormList场景
|
|
82
|
+
if (Array.isArray(column === null || column === void 0 ? void 0 : column.namePath) && (column === null || column === void 0 ? void 0 : (_column$namePath = column.namePath) === null || _column$namePath === void 0 ? void 0 : _column$namePath.length)) {
|
|
83
|
+
value = form.getFieldValue(union(column.namePath, (column === null || column === void 0 ? void 0 : column.name) || []));
|
|
84
|
+
record = filterInternalFields(cloneDeep(form.getFieldValue(column.namePath)));
|
|
85
|
+
index = column === null || column === void 0 ? void 0 : column.index;
|
|
86
|
+
}
|
|
87
|
+
return viewRender ? viewRender(value, record, {
|
|
88
|
+
form: form,
|
|
89
|
+
index: index,
|
|
90
|
+
namePath: column === null || column === void 0 ? void 0 : column.namePath
|
|
91
|
+
}) || null : null;
|
|
92
|
+
};
|
|
93
|
+
if (typeof _type === 'string') {
|
|
94
|
+
TargetComponent = isView && viewRender ? viewRenderHandle : componentMap[_type];
|
|
95
|
+
}
|
|
96
|
+
if (component && /*#__PURE__*/React.isValidElement(component)) {
|
|
97
|
+
var _newComponent$props;
|
|
98
|
+
var newComponent = component;
|
|
99
|
+
var isProEditTable = (newComponent === null || newComponent === void 0 ? void 0 : (_newComponent$props = newComponent.props) === null || _newComponent$props === void 0 ? void 0 : _newComponent$props.onlyOneLineMsg) === '请先保存数据';
|
|
100
|
+
TargetComponent = isView ? viewRenderHandle || '' : component;
|
|
101
|
+
// 可编辑表格内部支持
|
|
102
|
+
if (isProEditTable) {
|
|
103
|
+
TargetComponent = isView ? viewRenderHandle || component : component;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
var label = formItemChildProps.label,
|
|
107
|
+
comDisabled = formItemChildProps.disabled,
|
|
108
|
+
placeholder = formItemChildProps.placeholder,
|
|
109
|
+
dataSource = formItemChildProps.dataSource;
|
|
110
|
+
var formLabel = _formItemProps.label;
|
|
111
|
+
var _disabled = comDisabled === undefined ? formDisabled : comDisabled;
|
|
112
|
+
// 当前组件是不是一个选择组件
|
|
113
|
+
var _isSelect = isSelect({
|
|
114
|
+
dataSource: dataSource,
|
|
115
|
+
type: _type
|
|
116
|
+
});
|
|
117
|
+
var _placeholder = placeholder || "".concat(_isSelect ? '请选择' : '请输入').concat(label || formLabel || '');
|
|
118
|
+
// 表单组件Props 兼容2.0版本
|
|
119
|
+
var _fieldProps = _objectSpread(_objectSpread({
|
|
120
|
+
disabled: disabled
|
|
121
|
+
}, formItemChildProps), fieldProps);
|
|
122
|
+
if (formDisabled) {
|
|
123
|
+
_fieldProps.disabled = formDisabled;
|
|
124
|
+
// _disabled = formDisabled;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
var componentProps = _objectSpread({
|
|
128
|
+
disabled: _disabled,
|
|
129
|
+
placeholder: _placeholder,
|
|
130
|
+
disabledStrictly: true
|
|
131
|
+
}, _fieldProps);
|
|
132
|
+
// switch与SwitchCheckbox单独添加valuePropName
|
|
133
|
+
if (['Switch', 'SwitchCheckbox'].includes(_type)) {
|
|
134
|
+
_formItemProps.valuePropName = 'checked';
|
|
135
|
+
}
|
|
136
|
+
// 没有找到对应组件 不渲染
|
|
137
|
+
if (!TargetComponent) {
|
|
138
|
+
return [];
|
|
139
|
+
}
|
|
140
|
+
var _colProps = _objectSpread(_objectSpread({}, defaultColProps), colProps);
|
|
141
|
+
// 其余参数收进对象里传给子组件 componentProps只包含子组件参数
|
|
142
|
+
var otherProps = {
|
|
143
|
+
label: _formItemProps.label,
|
|
144
|
+
name: _formItemProps.name,
|
|
145
|
+
disabled: formDisabled,
|
|
146
|
+
isView: isView || column.isView,
|
|
147
|
+
viewEmpty: viewEmpty,
|
|
148
|
+
valueType: valueType,
|
|
149
|
+
viewType: viewType,
|
|
150
|
+
names: _formItemProps.names,
|
|
151
|
+
form: form,
|
|
152
|
+
type: _type,
|
|
153
|
+
hiddenNames: column.hiddenNames,
|
|
154
|
+
colProps: _colProps
|
|
155
|
+
};
|
|
156
|
+
return /*#__PURE__*/React.createElement(Render, {
|
|
157
|
+
key: "".concat(_formItemProps.name || _formItemProps.label).concat(index),
|
|
158
|
+
show: show,
|
|
159
|
+
disabled: formDisabled,
|
|
160
|
+
form: form,
|
|
161
|
+
type: _type,
|
|
162
|
+
originComponent: component,
|
|
163
|
+
component: TargetComponent,
|
|
164
|
+
formItemProps: _formItemProps,
|
|
165
|
+
colProps: _colProps,
|
|
166
|
+
componentProps: componentProps,
|
|
167
|
+
otherProps: otherProps,
|
|
168
|
+
fieldProps: isFunction(fieldProps) ? fieldProps : null,
|
|
169
|
+
isSelect: _isSelect,
|
|
170
|
+
originalValues: originalValues,
|
|
171
|
+
equalWith: equalWith
|
|
172
|
+
});
|
|
173
|
+
});
|
|
174
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, comList);
|
|
175
|
+
};
|
|
176
|
+
export default RenderFields;
|