@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,371 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = void 0;
|
|
9
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
10
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
11
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
12
|
+
var _antd = require("antd");
|
|
13
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
14
|
+
var _utils = require("@zat-design-pro-component/utils");
|
|
15
|
+
var _classnames2 = _interopRequireDefault(require("classnames"));
|
|
16
|
+
var _moment3 = _interopRequireDefault(require("moment"));
|
|
17
|
+
var _ahooks = require("ahooks");
|
|
18
|
+
var _lodash = require("lodash");
|
|
19
|
+
var _reactSvg = require("react-svg");
|
|
20
|
+
var _arrow = _interopRequireDefault(require("../../../assets/arrow.svg"));
|
|
21
|
+
var _components = require("./components");
|
|
22
|
+
var _getEnumLabel = _interopRequireDefault(require("../../../ProEnum/getEnumLabel"));
|
|
23
|
+
var _index = require("../../../index");
|
|
24
|
+
/* eslint-disable react/no-array-index-key */
|
|
25
|
+
|
|
26
|
+
var formatAmount = _utils.tools.formatAmount;
|
|
27
|
+
var ProHeader = function ProHeader(props) {
|
|
28
|
+
var _props$breadcrumbList = props.breadcrumbList,
|
|
29
|
+
breadcrumbList = _props$breadcrumbList === void 0 ? [] : _props$breadcrumbList,
|
|
30
|
+
breadcrumbColumns = props.breadcrumbColumns,
|
|
31
|
+
actionRender = props.actionRender,
|
|
32
|
+
_props$describeList = props.describeList,
|
|
33
|
+
describeList = _props$describeList === void 0 ? [] : _props$describeList,
|
|
34
|
+
describeColumns = props.describeColumns,
|
|
35
|
+
subDescribeColumns = props.subDescribeColumns,
|
|
36
|
+
onBack = props.onBack,
|
|
37
|
+
className = props.className,
|
|
38
|
+
_props$bodyOverFlowHi = props.bodyOverFlowHidden,
|
|
39
|
+
bodyOverFlowHidden = _props$bodyOverFlowHi === void 0 ? false : _props$bodyOverFlowHi,
|
|
40
|
+
fixedTop = props.fixedTop,
|
|
41
|
+
_props$showBack = props.showBack,
|
|
42
|
+
showBack = _props$showBack === void 0 ? true : _props$showBack,
|
|
43
|
+
_props$showShadow = props.showShadow,
|
|
44
|
+
showShadow = _props$showShadow === void 0 ? false : _props$showShadow,
|
|
45
|
+
_props$zIndex = props.zIndex,
|
|
46
|
+
zIndex = _props$zIndex === void 0 ? 100 : _props$zIndex,
|
|
47
|
+
title = props.title,
|
|
48
|
+
_props$autoBack = props.autoBack,
|
|
49
|
+
autoBack = _props$autoBack === void 0 ? 2 : _props$autoBack,
|
|
50
|
+
_props$collapsed = props.collapsed,
|
|
51
|
+
collapsed = _props$collapsed === void 0 ? true : _props$collapsed,
|
|
52
|
+
style = props.style;
|
|
53
|
+
var _useState = (0, _react.useState)(showBack),
|
|
54
|
+
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
55
|
+
backState = _useState2[0],
|
|
56
|
+
setBackState = _useState2[1];
|
|
57
|
+
var _useToggle = (0, _ahooks.useToggle)(collapsed),
|
|
58
|
+
_useToggle2 = (0, _slicedToArray2.default)(_useToggle, 2),
|
|
59
|
+
fold = _useToggle2[0],
|
|
60
|
+
toggle = _useToggle2[1].toggle;
|
|
61
|
+
var _title = title;
|
|
62
|
+
// 面包屑配置数据源
|
|
63
|
+
var _breadcrumbColumns = breadcrumbColumns || breadcrumbList;
|
|
64
|
+
// 次级配置数据源
|
|
65
|
+
var _subDescribeColumns = subDescribeColumns || describeList;
|
|
66
|
+
(0, _react.useEffect)(function () {
|
|
67
|
+
if (bodyOverFlowHidden) {
|
|
68
|
+
var bodyElement = document.querySelector('body');
|
|
69
|
+
bodyElement.style.overflow = 'hidden';
|
|
70
|
+
}
|
|
71
|
+
return function () {
|
|
72
|
+
var bodyElement = document.querySelector('body');
|
|
73
|
+
bodyElement.style.overflow = '';
|
|
74
|
+
};
|
|
75
|
+
}, [bodyOverFlowHidden]);
|
|
76
|
+
(0, _react.useEffect)(function () {
|
|
77
|
+
var isNewPage = window.history.length;
|
|
78
|
+
// history的记录,默认2,代办新开页面
|
|
79
|
+
if (isNewPage <= autoBack) {
|
|
80
|
+
setBackState(false);
|
|
81
|
+
}
|
|
82
|
+
}, []);
|
|
83
|
+
/**
|
|
84
|
+
* 主级描述数据渲染
|
|
85
|
+
*/
|
|
86
|
+
var describeRender = function describeRender(describeData) {
|
|
87
|
+
if (!Array.isArray(describeData)) {
|
|
88
|
+
return null;
|
|
89
|
+
}
|
|
90
|
+
return /*#__PURE__*/_react.default.createElement("ul", {
|
|
91
|
+
className: "pro-header-describe"
|
|
92
|
+
}, describeData.map(function (item, index) {
|
|
93
|
+
var value = item.value,
|
|
94
|
+
copyable = item.copyable,
|
|
95
|
+
_item$show = item.show,
|
|
96
|
+
show = _item$show === void 0 ? true : _item$show,
|
|
97
|
+
tag = item.tag,
|
|
98
|
+
label = item.label,
|
|
99
|
+
link = item.link;
|
|
100
|
+
// show为false直接隐藏¸
|
|
101
|
+
if (show === false || !show) {
|
|
102
|
+
return null;
|
|
103
|
+
}
|
|
104
|
+
var valueRender = function valueRender() {
|
|
105
|
+
return /*#__PURE__*/_react.default.createElement(_antd.Space, {
|
|
106
|
+
size: 4,
|
|
107
|
+
align: tag ? 'baseline' : 'center'
|
|
108
|
+
}, link ? /*#__PURE__*/_react.default.createElement("a", {
|
|
109
|
+
href: link,
|
|
110
|
+
rel: "noopener noreferrer",
|
|
111
|
+
target: "_blank"
|
|
112
|
+
}, value) : value, copyable && (0, _lodash.isString)(value) ? /*#__PURE__*/_react.default.createElement(_components.Copy, {
|
|
113
|
+
text: value
|
|
114
|
+
}) : null, tag ? /*#__PURE__*/_react.default.createElement("div", {
|
|
115
|
+
className: "pro-header-tag"
|
|
116
|
+
}, tag) : null);
|
|
117
|
+
};
|
|
118
|
+
return /*#__PURE__*/_react.default.createElement("li", {
|
|
119
|
+
key: index
|
|
120
|
+
}, /*#__PURE__*/_react.default.createElement("span", null, label), /*#__PURE__*/_react.default.createElement("span", null, valueRender()));
|
|
121
|
+
}));
|
|
122
|
+
};
|
|
123
|
+
/**
|
|
124
|
+
* 次级描述数据渲染
|
|
125
|
+
*/
|
|
126
|
+
var subDescribeRender = function subDescribeRender(describeData) {
|
|
127
|
+
var _moment, _moment2;
|
|
128
|
+
var value = describeData.value,
|
|
129
|
+
type = describeData.type,
|
|
130
|
+
valueType = describeData.valueType,
|
|
131
|
+
label = describeData.label,
|
|
132
|
+
_describeData$show = describeData.show,
|
|
133
|
+
show = _describeData$show === void 0 ? true : _describeData$show,
|
|
134
|
+
_describeData$precisi = describeData.precision,
|
|
135
|
+
precision = _describeData$precisi === void 0 ? 2 : _describeData$precisi,
|
|
136
|
+
code = describeData.code;
|
|
137
|
+
// show为false直接隐藏
|
|
138
|
+
if (!show) {
|
|
139
|
+
return '';
|
|
140
|
+
}
|
|
141
|
+
var result;
|
|
142
|
+
switch (valueType || type) {
|
|
143
|
+
case 'thousandth':
|
|
144
|
+
case 'money':
|
|
145
|
+
// 千分位
|
|
146
|
+
result = value || (0, _lodash.isNumber)(value) ? formatAmount(value, precision) : '-';
|
|
147
|
+
break;
|
|
148
|
+
case 'enumName':
|
|
149
|
+
// 枚举-展示name
|
|
150
|
+
result = (0, _getEnumLabel.default)(code, value);
|
|
151
|
+
break;
|
|
152
|
+
case 'enumCodeName':
|
|
153
|
+
// 枚举-展示code-name
|
|
154
|
+
result = (0, _getEnumLabel.default)(code, value, true);
|
|
155
|
+
break;
|
|
156
|
+
case 'date':
|
|
157
|
+
// 年月日
|
|
158
|
+
result = value ? (_moment = (0, _moment3.default)(value)) === null || _moment === void 0 ? void 0 : _moment.format('YYYY-MM-DD') : '-';
|
|
159
|
+
break;
|
|
160
|
+
case 'dateTime':
|
|
161
|
+
// 年月日 时分秒
|
|
162
|
+
result = value ? (_moment2 = (0, _moment3.default)(value)) === null || _moment2 === void 0 ? void 0 : _moment2.format('YYYY-MM-DD HH:mm:ss') : '-';
|
|
163
|
+
break;
|
|
164
|
+
default:
|
|
165
|
+
result = String(value).includes('undefined') || !value ? '-' : value;
|
|
166
|
+
break;
|
|
167
|
+
}
|
|
168
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("span", null, label), /*#__PURE__*/_react.default.createElement("span", {
|
|
169
|
+
className: "describe-value"
|
|
170
|
+
}, result));
|
|
171
|
+
};
|
|
172
|
+
/**
|
|
173
|
+
* 头部右侧按钮面板渲染
|
|
174
|
+
*/
|
|
175
|
+
var actionsRender = function actionsRender() {
|
|
176
|
+
if (Array.isArray(actionRender) && actionRender.length) {
|
|
177
|
+
return /*#__PURE__*/_react.default.createElement(_antd.Space, {
|
|
178
|
+
split: /*#__PURE__*/_react.default.createElement(_antd.Divider, {
|
|
179
|
+
type: "vertical"
|
|
180
|
+
})
|
|
181
|
+
}, actionRender.map(function (item, index) {
|
|
182
|
+
var _item$props;
|
|
183
|
+
if ((0, _lodash.isFunction)(item === null || item === void 0 ? void 0 : item.type)) {
|
|
184
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
185
|
+
key: index
|
|
186
|
+
}, item);
|
|
187
|
+
}
|
|
188
|
+
// 判断第一层dom节点为空
|
|
189
|
+
if ((item === null || item === void 0 ? void 0 : item.type) && !(item === null || item === void 0 ? void 0 : (_item$props = item.props) === null || _item$props === void 0 ? void 0 : _item$props.children)) {
|
|
190
|
+
return null;
|
|
191
|
+
}
|
|
192
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
193
|
+
key: index
|
|
194
|
+
}, item);
|
|
195
|
+
}));
|
|
196
|
+
}
|
|
197
|
+
return actionRender;
|
|
198
|
+
};
|
|
199
|
+
/**
|
|
200
|
+
* 总结信息面板渲染
|
|
201
|
+
*/
|
|
202
|
+
var breadcrumbRender = function breadcrumbRender() {
|
|
203
|
+
if (Array.isArray(_breadcrumbColumns) && !_breadcrumbColumns.length) {
|
|
204
|
+
return '';
|
|
205
|
+
}
|
|
206
|
+
var list = _breadcrumbColumns === null || _breadcrumbColumns === void 0 ? void 0 : _breadcrumbColumns.filter(function (item) {
|
|
207
|
+
return item.type === 'breadcrumb';
|
|
208
|
+
});
|
|
209
|
+
return list.map(function (item, index) {
|
|
210
|
+
var _value$props;
|
|
211
|
+
var value = item.value,
|
|
212
|
+
_item$show2 = item.show,
|
|
213
|
+
show = _item$show2 === void 0 ? true : _item$show2,
|
|
214
|
+
tag = item.tag;
|
|
215
|
+
// show或者值不存在为false直接隐藏¸
|
|
216
|
+
if (!show || !value) {
|
|
217
|
+
return '';
|
|
218
|
+
}
|
|
219
|
+
// 判断第一层dom节点为空
|
|
220
|
+
if ((value === null || value === void 0 ? void 0 : value.type) && !(value === null || value === void 0 ? void 0 : (_value$props = value.props) === null || _value$props === void 0 ? void 0 : _value$props.children)) {
|
|
221
|
+
return '';
|
|
222
|
+
}
|
|
223
|
+
return /*#__PURE__*/_react.default.createElement(_antd.Breadcrumb.Item, {
|
|
224
|
+
key: index
|
|
225
|
+
}, /*#__PURE__*/_react.default.createElement(_antd.Space, {
|
|
226
|
+
size: 4
|
|
227
|
+
}, value, " ", tag ? /*#__PURE__*/_react.default.createElement("div", {
|
|
228
|
+
className: "pro-header-tag"
|
|
229
|
+
}, tag) : null));
|
|
230
|
+
});
|
|
231
|
+
};
|
|
232
|
+
/**
|
|
233
|
+
* 头部左侧导航栏后业务信息
|
|
234
|
+
*/
|
|
235
|
+
var infoRender = function infoRender() {
|
|
236
|
+
if (!Array.isArray(_breadcrumbColumns)) {
|
|
237
|
+
return '';
|
|
238
|
+
}
|
|
239
|
+
var list = _breadcrumbColumns === null || _breadcrumbColumns === void 0 ? void 0 : _breadcrumbColumns.filter(function (item) {
|
|
240
|
+
return item.type !== 'breadcrumb';
|
|
241
|
+
});
|
|
242
|
+
if (!list.length) {
|
|
243
|
+
return null;
|
|
244
|
+
}
|
|
245
|
+
return /*#__PURE__*/_react.default.createElement("ul", {
|
|
246
|
+
className: "pro-header-info"
|
|
247
|
+
}, list.map(function (item, index) {
|
|
248
|
+
var _value$props2;
|
|
249
|
+
var value = item.value,
|
|
250
|
+
_item$type = item.type,
|
|
251
|
+
type = _item$type === void 0 ? 'info' : _item$type,
|
|
252
|
+
_item$show3 = item.show,
|
|
253
|
+
show = _item$show3 === void 0 ? true : _item$show3,
|
|
254
|
+
width = item.width,
|
|
255
|
+
tag = item.tag;
|
|
256
|
+
// show或者值不存在为false直接隐藏¸
|
|
257
|
+
if (!show || !value) {
|
|
258
|
+
return '';
|
|
259
|
+
}
|
|
260
|
+
// 判断第一层dom节点为空
|
|
261
|
+
if ((value === null || value === void 0 ? void 0 : value.type) && !(value === null || value === void 0 ? void 0 : (_value$props2 = value.props) === null || _value$props2 === void 0 ? void 0 : _value$props2.children)) {
|
|
262
|
+
return '';
|
|
263
|
+
}
|
|
264
|
+
// value为null或者undefined返回'-'
|
|
265
|
+
var val = String(value).includes('undefined') || !value ? '-' : value;
|
|
266
|
+
if (type === 'version' && val) {
|
|
267
|
+
val = "\u7248\u672C\u53F7".concat(val);
|
|
268
|
+
}
|
|
269
|
+
// 面包屑样式
|
|
270
|
+
var breadcrumbCls = (0, _classnames2.default)({
|
|
271
|
+
'breadcrumb-value': true,
|
|
272
|
+
omit: width
|
|
273
|
+
});
|
|
274
|
+
var valueRender = function valueRender(type) {
|
|
275
|
+
var valRender = /*#__PURE__*/_react.default.createElement("div", {
|
|
276
|
+
className: breadcrumbCls,
|
|
277
|
+
style: {
|
|
278
|
+
width: width
|
|
279
|
+
}
|
|
280
|
+
}, /*#__PURE__*/_react.default.createElement(_antd.Space, {
|
|
281
|
+
size: 4
|
|
282
|
+
}, val, " ", tag ? /*#__PURE__*/_react.default.createElement("div", {
|
|
283
|
+
className: "pro-header-tag"
|
|
284
|
+
}, tag) : null));
|
|
285
|
+
if (type === 'copy') {
|
|
286
|
+
return valRender = /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, width ? /*#__PURE__*/_react.default.createElement(_antd.Tooltip, {
|
|
287
|
+
title: val
|
|
288
|
+
}, valRender) : valRender, /*#__PURE__*/_react.default.createElement(_components.Copy, {
|
|
289
|
+
text: val
|
|
290
|
+
}));
|
|
291
|
+
}
|
|
292
|
+
if (width) {
|
|
293
|
+
return /*#__PURE__*/_react.default.createElement(_antd.Tooltip, {
|
|
294
|
+
title: val
|
|
295
|
+
}, valRender);
|
|
296
|
+
}
|
|
297
|
+
return valRender;
|
|
298
|
+
};
|
|
299
|
+
return /*#__PURE__*/_react.default.createElement("li", {
|
|
300
|
+
key: index,
|
|
301
|
+
className: (0, _classnames2.default)({
|
|
302
|
+
version: ['version', 'tag'].includes(type),
|
|
303
|
+
hidden: ['version', 'tag'].includes(type) && !val
|
|
304
|
+
})
|
|
305
|
+
}, type === 'copy' ? valueRender('copy') : valueRender());
|
|
306
|
+
}));
|
|
307
|
+
};
|
|
308
|
+
var cls = (0, _classnames2.default)((0, _defineProperty2.default)({
|
|
309
|
+
'pro-header': true,
|
|
310
|
+
'pro-header-fixed': fixedTop,
|
|
311
|
+
'pro-header-shadow': showShadow,
|
|
312
|
+
'pro-header-no-back': !backState,
|
|
313
|
+
'pro-header-no-describe': (0, _lodash.isEmpty)(_subDescribeColumns) && (0, _lodash.isEmpty)(describeColumns) || (0, _lodash.isEmpty)(describeColumns)
|
|
314
|
+
}, "".concat(className), className));
|
|
315
|
+
if (title && !(0, _lodash.isEmpty)(_breadcrumbColumns)) {
|
|
316
|
+
console.error('warning: The title and the breadcrumbList cannot be used together');
|
|
317
|
+
}
|
|
318
|
+
// title默认不显示返回按钮,只有showBack设置为true时才显示
|
|
319
|
+
if (title && props.showBack) {
|
|
320
|
+
_title = null;
|
|
321
|
+
_breadcrumbColumns.push({
|
|
322
|
+
type: 'breadcrumb',
|
|
323
|
+
value: title
|
|
324
|
+
});
|
|
325
|
+
}
|
|
326
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
327
|
+
className: cls,
|
|
328
|
+
style: (0, _objectSpread2.default)((0, _objectSpread2.default)({}, style), {}, {
|
|
329
|
+
top: fixedTop,
|
|
330
|
+
zIndex: zIndex
|
|
331
|
+
})
|
|
332
|
+
}, _title ? /*#__PURE__*/_react.default.createElement("div", {
|
|
333
|
+
className: "pro-header-title"
|
|
334
|
+
}, _title) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("div", {
|
|
335
|
+
className: "pro-header-top"
|
|
336
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
337
|
+
className: "pro-header-left",
|
|
338
|
+
style: {
|
|
339
|
+
marginLeft: backState ? 0 : 16
|
|
340
|
+
}
|
|
341
|
+
}, /*#__PURE__*/_react.default.createElement(_antd.Space, {
|
|
342
|
+
size: backState ? 4 : 0
|
|
343
|
+
}, backState ? /*#__PURE__*/_react.default.createElement(_index.ProBackBtn, {
|
|
344
|
+
onBack: onBack
|
|
345
|
+
}) : null, /*#__PURE__*/_react.default.createElement(_antd.Breadcrumb, {
|
|
346
|
+
separator: ">"
|
|
347
|
+
}, breadcrumbRender()), infoRender())), /*#__PURE__*/_react.default.createElement("div", {
|
|
348
|
+
className: "pro-header-right"
|
|
349
|
+
}, actionsRender())), describeRender(describeColumns), !(0, _lodash.isEmpty)(_subDescribeColumns) ? /*#__PURE__*/_react.default.createElement("div", {
|
|
350
|
+
className: (0, _classnames2.default)({
|
|
351
|
+
'pro-header-nav': true,
|
|
352
|
+
'pro-header-nav-open': fold,
|
|
353
|
+
'pro-header-nav-hidden': !fold
|
|
354
|
+
})
|
|
355
|
+
}, /*#__PURE__*/_react.default.createElement("ul", null, _subDescribeColumns.map(function (item, index) {
|
|
356
|
+
return /*#__PURE__*/_react.default.createElement("li", {
|
|
357
|
+
key: index
|
|
358
|
+
}, subDescribeRender(item));
|
|
359
|
+
})), /*#__PURE__*/_react.default.createElement("div", {
|
|
360
|
+
className: "pro-header-fold"
|
|
361
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
362
|
+
className: "pro-header-fold-bg",
|
|
363
|
+
onClick: toggle
|
|
364
|
+
}, /*#__PURE__*/_react.default.createElement(_reactSvg.ReactSVG, {
|
|
365
|
+
key: "copy-icon",
|
|
366
|
+
className: "fold-icon",
|
|
367
|
+
src: _arrow.default
|
|
368
|
+
})))) : null));
|
|
369
|
+
};
|
|
370
|
+
var _default = /*#__PURE__*/(0, _react.memo)(ProHeader);
|
|
371
|
+
exports.default = _default;
|
|
@@ -0,0 +1,337 @@
|
|
|
1
|
+
.pro-header {
|
|
2
|
+
background-color: var(--zaui-base-bg, #ffffff);
|
|
3
|
+
padding : var(--zaui-space-size-lg, 32px) 0 0 0;
|
|
4
|
+
box-shadow : 0px 2px 4px 0px rgba(0, 55, 93, 0.06);
|
|
5
|
+
|
|
6
|
+
&.pro-header-no-back {
|
|
7
|
+
.pro-header-top {
|
|
8
|
+
padding-left: 0;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&.pro-header-no-describe {
|
|
13
|
+
box-shadow: none;
|
|
14
|
+
|
|
15
|
+
.pro-header-title,
|
|
16
|
+
.pro-header-top {
|
|
17
|
+
padding: 0;
|
|
18
|
+
margin : 0;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&.pro-header-fixed.pro-header-no-describe {
|
|
23
|
+
.pro-header-top {
|
|
24
|
+
padding-bottom: 12px;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.pro-header-describe {
|
|
29
|
+
a {
|
|
30
|
+
color: var(--zaui-link, #006AFF);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.pro-header-copy {
|
|
35
|
+
margin-bottom: 0;
|
|
36
|
+
width : 14px;
|
|
37
|
+
display : flex;
|
|
38
|
+
align-items : center;
|
|
39
|
+
|
|
40
|
+
.ant-typography-copy-success {
|
|
41
|
+
svg {
|
|
42
|
+
width : 14px;
|
|
43
|
+
height : 14px;
|
|
44
|
+
fill : var(--zaui-success, #00AE4D);
|
|
45
|
+
display: inline-block;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.drag-icon {
|
|
50
|
+
div {
|
|
51
|
+
display: flex;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
svg {
|
|
55
|
+
width : 14px;
|
|
56
|
+
height : 14px;
|
|
57
|
+
fill : #3F3F3F;
|
|
58
|
+
display: inline-block;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.pro-header-tag {
|
|
64
|
+
background : var(--ant-primary-1, #e6f4ff);
|
|
65
|
+
color : var(--zaui-brand, #006AFF);
|
|
66
|
+
padding : 4px 8px;
|
|
67
|
+
border-radius: var(--zaui-border-radius-card, 2px);
|
|
68
|
+
font-size : 12px;
|
|
69
|
+
font-weight : normal;
|
|
70
|
+
line-height : 17px;
|
|
71
|
+
display : inline-block;
|
|
72
|
+
white-space : pre;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.pro-header-title {
|
|
76
|
+
font-weight: 500;
|
|
77
|
+
font-size : var(--zaui-font-size-xl, 18px);
|
|
78
|
+
padding : 0 var(--zaui-space-size-md, 16px);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
&.pro-header-fixed {
|
|
82
|
+
position : sticky;
|
|
83
|
+
z-index : 999;
|
|
84
|
+
box-shadow: 0 6px 10px -11px #888;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
&.pro-header-shadow {
|
|
88
|
+
box-shadow: 0 6px 10px -11px #888;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.ant-breadcrumb {
|
|
92
|
+
li {
|
|
93
|
+
font-weight: 500;
|
|
94
|
+
color : #1D2129;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.ant-breadcrumb-link {
|
|
98
|
+
font-size: var(--zaui-font-size-xl, 18px);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.ant-breadcrumb-separator {
|
|
102
|
+
font-weight: 500;
|
|
103
|
+
color : #1D2129;
|
|
104
|
+
font-size : var(--zaui-font-size-xl, 18px);
|
|
105
|
+
margin : 0 var(--zaui-space-size-xs, 4px);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.pro-header-top {
|
|
110
|
+
display : flex;
|
|
111
|
+
justify-content: space-between;
|
|
112
|
+
align-items : center;
|
|
113
|
+
margin-bottom : var(--zaui-space-size-sm, 8px);
|
|
114
|
+
padding : 0 var(--zaui-space-size-md, 16px);
|
|
115
|
+
|
|
116
|
+
.pro-header-left {
|
|
117
|
+
display : flex;
|
|
118
|
+
align-items : center;
|
|
119
|
+
margin-right: var(--zaui-space-size-md, 16px);
|
|
120
|
+
margin-left : var(--zaui-space-size-md, 16px);
|
|
121
|
+
|
|
122
|
+
ul {
|
|
123
|
+
display : flex;
|
|
124
|
+
align-items: center;
|
|
125
|
+
|
|
126
|
+
li {
|
|
127
|
+
color : #1D2129;
|
|
128
|
+
font-size : var(--zaui-font-size-xl, 18px);
|
|
129
|
+
font-weight: 500;
|
|
130
|
+
display : flex;
|
|
131
|
+
|
|
132
|
+
.breadcrumb-value {
|
|
133
|
+
display: inline-block;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
&>span {
|
|
137
|
+
display: flex;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.omit {
|
|
141
|
+
overflow : hidden;
|
|
142
|
+
white-space : nowrap;
|
|
143
|
+
text-overflow: ellipsis;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
b {
|
|
147
|
+
font-size: var(--zaui-font-size-lg, 16px);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.ant-typography {
|
|
151
|
+
display : flex;
|
|
152
|
+
margin-bottom: 0;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
&.version {
|
|
156
|
+
background : var(--ant-primary-1, #e6f4ff);
|
|
157
|
+
border-radius: 4px;
|
|
158
|
+
color : var(--zaui-brand, #006AFF);
|
|
159
|
+
font-style : initial;
|
|
160
|
+
padding : 0 8px;
|
|
161
|
+
font-size : 12px;
|
|
162
|
+
height : 24px;
|
|
163
|
+
line-height : 24px;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
&.hidden {
|
|
167
|
+
display: none;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.pro-header-right {
|
|
175
|
+
.ant-btn {
|
|
176
|
+
color: #616161;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.ant-btn-primary {
|
|
180
|
+
color: #ffffff;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.ant-btn-link {
|
|
184
|
+
padding: var(--zaui-space-size-xs, 4px), var(--zaui-space-size-sm, 8px);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.ant-divider-vertical {
|
|
188
|
+
margin: 0;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.pro-header-nav {
|
|
195
|
+
display : flex;
|
|
196
|
+
background: #F7F9FC;
|
|
197
|
+
border-top: 1px solid #F2F2F2;
|
|
198
|
+
position : relative;
|
|
199
|
+
|
|
200
|
+
&.pro-header-nav-open {
|
|
201
|
+
.pro-header-fold {
|
|
202
|
+
.pro-header-fold-bg {
|
|
203
|
+
transform: rotate(180deg);
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
&.pro-header-nav-hidden {
|
|
210
|
+
padding: 0;
|
|
211
|
+
border : none;
|
|
212
|
+
|
|
213
|
+
ul {
|
|
214
|
+
height : 0;
|
|
215
|
+
// padding : 0;
|
|
216
|
+
overflow : hidden;
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.pro-header-fold {
|
|
221
|
+
position : absolute;
|
|
222
|
+
bottom : -13px;
|
|
223
|
+
left : 50%;
|
|
224
|
+
transform: translateX(-50%);
|
|
225
|
+
cursor : pointer;
|
|
226
|
+
|
|
227
|
+
.pro-header-fold-bg {
|
|
228
|
+
background : #fff;
|
|
229
|
+
position : relative;
|
|
230
|
+
z-index : 2;
|
|
231
|
+
height : 26px;
|
|
232
|
+
transform : rotate(0deg);
|
|
233
|
+
transform-origin: center;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
&::before {
|
|
237
|
+
content : '';
|
|
238
|
+
z-index : 1;
|
|
239
|
+
position : absolute;
|
|
240
|
+
bottom : 13px;
|
|
241
|
+
left : 50%;
|
|
242
|
+
transform : translateX(-50%);
|
|
243
|
+
width : 140px;
|
|
244
|
+
height : 1px;
|
|
245
|
+
background: linear-gradient(90deg, rgba(238, 238, 238, 0) 0%, var(--zaui-brand, #006AFF) 37%, var(--zaui-brand, #006AFF)57%, rgba(216, 216, 216, 0) 100%);
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
svg {
|
|
249
|
+
fill: var(--zaui-brand, #006AFF);
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
ul {
|
|
254
|
+
display : flex;
|
|
255
|
+
flex-wrap : wrap;
|
|
256
|
+
padding : 0 16px;
|
|
257
|
+
transition: height 0.2s ease-in-out;
|
|
258
|
+
height : 60px;
|
|
259
|
+
overflow : hidden;
|
|
260
|
+
|
|
261
|
+
li {
|
|
262
|
+
margin-right : 52px;
|
|
263
|
+
margin-top : 4px;
|
|
264
|
+
margin-bottom: 12px;
|
|
265
|
+
|
|
266
|
+
&:last-child {
|
|
267
|
+
margin-right: 0;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
span {
|
|
271
|
+
font-weight: 400;
|
|
272
|
+
font-size : var(--zaui-font-size, 14px);
|
|
273
|
+
|
|
274
|
+
&:first-child {
|
|
275
|
+
display : block;
|
|
276
|
+
font-weight: 500;
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
.describe-value {
|
|
281
|
+
color : var(--zaui-text, #343434);
|
|
282
|
+
font-weight: 400;
|
|
283
|
+
|
|
284
|
+
&>* {
|
|
285
|
+
color : var(--zaui-text, #343434);
|
|
286
|
+
font-weight: 400 !important;
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
.pro-header-info {
|
|
294
|
+
li {
|
|
295
|
+
margin-right: var(--zaui-space-size-sm, 8px);
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
.pro-header-describe {
|
|
300
|
+
display : flex;
|
|
301
|
+
flex-wrap : wrap;
|
|
302
|
+
font-size : 14px;
|
|
303
|
+
padding : 0 var(--zaui-space-size-md, 16px);
|
|
304
|
+
padding-bottom: 12px;
|
|
305
|
+
|
|
306
|
+
li {
|
|
307
|
+
margin-right: var(--zaui-space-card, 32px);
|
|
308
|
+
|
|
309
|
+
span {
|
|
310
|
+
font-weight: 400;
|
|
311
|
+
color : #0A0A0A;
|
|
312
|
+
|
|
313
|
+
&:first-child {
|
|
314
|
+
|
|
315
|
+
margin-right: 12px;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
&:last-child {
|
|
319
|
+
font-weight: 600;
|
|
320
|
+
display : inline-grid;
|
|
321
|
+
|
|
322
|
+
.pro-header-tag {
|
|
323
|
+
margin-left: 4px;
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
@media (max-width: 1366px) {
|
|
332
|
+
.pro-header-describe {
|
|
333
|
+
li span:last-child {
|
|
334
|
+
max-width: 350px;
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
}
|