@zat-design/sisyphus-react 3.14.0-beta.2 → 4.0.0-beta.10
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/README.md +77 -207
- package/babel.config.js +2 -2
- package/dist/index.esm.css +1 -1
- package/dist/less.esm.css +1 -1
- package/es/FormsProvider/index.d.ts +4 -1
- package/es/ProAction/components/CheckModalContent/index.js +0 -9
- package/es/ProAction/index.js +3 -6
- package/es/ProAction/index.less +0 -2
- package/es/ProConfigProvider/index.d.ts +22 -5
- package/es/ProConfigProvider/index.js +58 -26
- package/es/ProDownload/index.js +2 -3
- package/es/ProDownload/style/index.less +0 -2
- package/es/ProDownload/utils.js +3 -4
- package/es/ProDrawerForm/components/ProDrawer/index.js +13 -17
- package/es/ProDrawerForm/components/ProModal/index.js +12 -20
- package/es/ProDrawerForm/index.d.ts +2 -1
- package/es/ProDrawerForm/index.js +35 -33
- package/es/ProDrawerForm/propsType.d.ts +7 -18
- package/es/ProDrawerForm/style/index.less +6 -14
- package/es/ProEditLabel/components/RenderProForm.js +2 -3
- package/es/ProEditLabel/index.js +10 -15
- package/es/ProEditLabel/propsType.d.ts +1 -6
- package/es/ProEditLabel/style/index.less +2 -3
- package/es/ProEditTable/components/ActionButton/index.js +5 -8
- package/es/ProEditTable/components/RcTable/BaseTable.js +70 -53
- package/es/ProEditTable/components/RcTable/DraggableTable.js +70 -49
- package/es/ProEditTable/components/RcTable/index.d.ts +0 -2
- package/es/ProEditTable/components/RcTable/index.js +1 -3
- package/es/ProEditTable/components/RenderField/ListChangedWrapper.js +9 -12
- package/es/ProEditTable/components/RenderField/index.d.ts +3 -2
- package/es/ProEditTable/components/RenderField/index.js +401 -241
- package/es/ProEditTable/components/RenderToolbar/index.js +5 -5
- package/es/ProEditTable/components/Summary/index.js +5 -8
- package/es/ProEditTable/components/Validator/index.js +3 -6
- package/es/ProEditTable/index.js +99 -103
- package/es/ProEditTable/propsType.d.ts +7 -7
- package/es/ProEditTable/style/index.less +12 -12
- package/es/ProEditTable/utils/config.js +6 -7
- package/es/ProEditTable/utils/index.js +21 -17
- package/es/ProEditTable/utils/useEditTableError.js +12 -4
- package/es/ProEditTable/utils/useShouldUpdateForTable.d.ts +15 -0
- package/es/ProEditTable/utils/useShouldUpdateForTable.js +132 -0
- package/es/ProEnum/hooks/useEnum.js +5 -0
- package/es/ProEnum/hooks/useEnumRequest.js +3 -3
- package/es/ProEnum/index.js +10 -17
- package/es/ProEnum/style/index.less +0 -2
- package/es/ProEnum/utils/index.d.ts +1 -0
- package/es/ProEnum/utils/index.js +3 -7
- package/es/ProForm/components/Container.d.ts +1 -0
- package/es/ProForm/components/Container.js +2 -3
- package/es/ProForm/components/FormFooter/index.js +18 -19
- package/es/ProForm/components/FormFooter/propsType.d.ts +2 -0
- package/es/ProForm/components/base/Checkbox/index.js +3 -4
- package/es/ProForm/components/base/DatePicker/index.d.ts +1 -3
- package/es/ProForm/components/base/DatePicker/index.js +7 -7
- package/es/ProForm/components/base/DatePicker/useDateLimit.d.ts +3 -0
- package/es/ProForm/components/base/DatePicker/useDateLimit.js +11 -0
- package/es/ProForm/components/base/Input/index.js +10 -8
- package/es/ProForm/components/base/InputNumber/index.js +3 -6
- package/es/ProForm/components/base/Radio/index.js +3 -4
- package/es/ProForm/components/base/RangePicker/index.js +7 -6
- package/es/ProForm/components/base/RangePicker/useDateRange.d.ts +5 -5
- package/es/ProForm/components/base/Select/index.js +2 -3
- package/es/ProForm/components/base/Switch/index.js +2 -3
- package/es/ProForm/components/base/SwitchCheckbox/index.js +2 -3
- package/es/ProForm/components/base/SwitchCheckbox/style/index.less +0 -2
- package/es/ProForm/components/base/TextArea/index.js +3 -4
- package/es/ProForm/components/base/TextArea/index.less +10 -2
- package/es/ProForm/components/base/TimePicker/index.d.ts +1 -2
- package/es/ProForm/components/base/TimePicker/index.js +6 -7
- package/es/ProForm/components/base/TimePicker/style/index.less +3 -3
- package/es/ProForm/components/combination/Container/style/index.less +0 -2
- package/es/ProForm/components/combination/FormList/components/ActionButton.js +15 -13
- package/es/ProForm/components/combination/FormList/components/BlockFields.js +5 -8
- package/es/ProForm/components/combination/FormList/components/Empty.js +2 -3
- package/es/ProForm/components/combination/FormList/components/LineFields.js +2 -3
- package/es/ProForm/components/combination/FormList/components/ToolbarButton.js +5 -8
- package/es/ProForm/components/combination/FormList/index.js +2 -3
- package/es/ProForm/components/combination/FormList/style/index.less +36 -2
- package/es/ProForm/components/combination/Group/component/AddonWrapper/index.d.ts +1 -0
- package/es/ProForm/components/combination/Group/component/ComRender.js +0 -1
- package/es/ProForm/components/combination/Group/index.js +3 -4
- package/es/ProForm/components/combination/Group/style/index.less +7 -87
- package/es/ProForm/components/combination/Group/utils.d.ts +1 -1
- package/es/ProForm/components/combination/Group/utils.js +4 -5
- package/es/ProForm/components/combination/ProCascader/index.js +13 -15
- package/es/ProForm/components/combination/ProCascader/propsType.d.ts +1 -1
- package/es/ProForm/components/combination/ProCascader/style/index.less +0 -2
- package/es/ProForm/components/combination/ProModalSelect/index.d.ts +1 -1
- package/es/ProForm/components/combination/ProModalSelect/index.js +24 -39
- package/es/ProForm/components/combination/ProModalSelect/style/index.less +11 -15
- package/es/ProForm/components/combination/ProNumberRange/index.d.ts +3 -2
- package/es/ProForm/components/combination/ProNumberRange/index.js +21 -21
- package/es/ProForm/components/combination/ProNumberRange/style/index.less +3 -54
- package/es/ProForm/components/combination/ProRangeLimit/index.d.ts +2 -23
- package/es/ProForm/components/combination/ProRangeLimit/index.js +42 -25
- package/es/ProForm/components/combination/ProRangeLimit/propsType.d.ts +23 -0
- package/es/ProForm/components/combination/ProTimeLimit/hooks/useControlled.d.ts +3 -2
- package/es/ProForm/components/combination/ProTimeLimit/hooks/useControlled.js +14 -2
- package/es/ProForm/components/combination/ProTimeLimit/index.d.ts +5 -6
- package/es/ProForm/components/combination/ProTimeLimit/index.js +23 -20
- package/es/ProForm/components/combination/ProTimeLimit/style/index.less +64 -6
- package/es/ProForm/components/index.d.ts +2 -9
- package/es/ProForm/components/index.js +1 -11
- package/es/ProForm/components/render/ChangedWrapper.js +8 -9
- package/es/ProForm/components/render/ConfirmWrapper.js +7 -7
- package/es/ProForm/components/render/Render.js +29 -30
- package/es/ProForm/components/render/RenderFields.d.ts +1 -0
- package/es/ProForm/components/render/RenderFields.js +6 -3
- package/es/ProForm/components/render/propsType.d.ts +3 -6
- package/es/ProForm/index.d.ts +2 -2
- package/es/ProForm/index.js +14 -42
- package/es/ProForm/propsType.d.ts +3 -0
- package/es/ProForm/style/index.less +4 -16
- package/es/ProForm/utils/index.d.ts +15 -1
- package/es/ProForm/utils/index.js +66 -15
- package/es/ProForm/utils/useDeepCompareMemo.js +4 -4
- package/es/ProForm/utils/useForm.js +27 -22
- package/es/ProForm/utils/useShouldUpdate.d.ts +1 -0
- package/es/ProForm/utils/useShouldUpdate.js +103 -17
- package/es/ProIcon/index.js +10 -13
- package/es/ProIcon/style/index.less +0 -2
- package/es/ProLayout/components/Layout/Header/index.js +1 -1
- package/es/ProLayout/components/Layout/Menu/FoldMenu/index.js +3 -6
- package/es/ProLayout/components/Layout/Menu/FoldMenu/style/index.less +40 -39
- package/es/ProLayout/components/Layout/Menu/OpenMenu/index.js +2 -3
- package/es/ProLayout/components/Layout/Menu/OpenMenu/style/index.less +0 -3
- package/es/ProLayout/components/Layout/Menu/SideMenu/style/index.less +7 -5
- package/es/ProLayout/components/Layout/Menu/index.js +1 -1
- package/es/ProLayout/components/Layout/Menu/style/index.less +0 -2
- package/es/ProLayout/components/Layout/Notice/style/index.less +0 -2
- package/es/ProLayout/components/ProCollapse/index.js +29 -44
- package/es/ProLayout/components/ProCollapse/style/index.less +5 -4
- package/es/ProLayout/components/ProFooter/index.js +2 -3
- package/es/ProLayout/components/ProFooter/style/index.less +0 -2
- package/es/ProLayout/components/ProHeader/components/Copy/index.js +2 -3
- package/es/ProLayout/components/ProHeader/components/ProBackBtn/index.js +2 -3
- package/es/ProLayout/components/ProHeader/components/ProBackBtn/style/index.less +7 -9
- package/es/ProLayout/components/ProHeader/index.js +43 -45
- package/es/ProLayout/components/ProHeader/style/index.less +0 -2
- package/es/ProLayout/components/TabsManager/components/TabContextMenu.js +2 -3
- package/es/ProLayout/components/TabsManager/hooks/useTabsState.js +0 -2
- package/es/ProLayout/index.js +80 -41
- package/es/ProLayout/style/index.less +2 -3
- package/es/ProSelect/components/AdaptiveTooltip.js +2 -3
- package/es/ProSelect/index.js +7 -15
- package/es/ProSelect/index.less +0 -2
- package/es/ProSelect/propsType.d.ts +1 -1
- package/es/ProStep/components/Anchor/index.js +2 -3
- package/es/ProStep/components/Item/index.js +1 -0
- package/es/ProStep/components/Step/index.js +1 -0
- package/es/ProStep/style/index.less +2 -4
- package/es/ProTable/components/FormatColumn/index.js +33 -31
- package/es/ProTable/components/RcTable/components/BaseTable/index.d.ts +0 -1
- package/es/ProTable/components/RcTable/components/BaseTable/index.js +2 -4
- package/es/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/index.js +17 -13
- package/es/ProTable/components/RcTable/components/DraggableTable/index.d.ts +0 -1
- package/es/ProTable/components/RcTable/components/DraggableTable/index.js +2 -4
- package/es/ProTable/components/RenderColumn/index.d.ts +1 -1
- package/es/ProTable/components/RenderColumn/index.js +15 -18
- package/es/ProTable/components/RenderSummary/index.js +4 -5
- package/es/ProTable/components/RenderTableHeader/index.js +3 -4
- package/es/ProTable/components/RenderTabs/index.js +3 -6
- package/es/ProTable/components/TableResizable/index.js +2 -1
- package/es/ProTable/components/TooltipTitle/index.js +2 -3
- package/es/ProTable/hooks/useAntdTable.js +4 -7
- package/es/ProTable/index.d.ts +0 -7
- package/es/ProTable/index.js +11 -14
- package/es/ProTable/propsType.d.ts +2 -3
- package/es/ProTable/style/index.less +4 -6
- package/es/ProTabs/components/Card/index.js +5 -10
- package/es/ProTabs/index.js +2 -3
- package/es/ProTabs/style/index.less +0 -2
- package/es/ProThemeTools/component/ProTools/index.js +18 -22
- package/es/ProThemeTools/context/ThemeContext.d.ts +31 -0
- package/es/ProThemeTools/context/ThemeContext.js +136 -0
- package/es/ProThemeTools/index.d.ts +4 -8
- package/es/ProThemeTools/index.js +80 -49
- package/es/ProThemeTools/style/index.less +1 -3
- package/es/ProThemeTools/utils/index.d.ts +16 -6
- package/es/ProThemeTools/utils/index.js +30 -24
- package/es/ProTooltip/index.js +14 -9
- package/es/ProTooltip/style/index.less +0 -2
- package/es/ProTree/components/AdaptiveTooltip.js +2 -3
- package/es/ProTree/components/List.js +3 -4
- package/es/ProTree/components/ProTree.js +5 -12
- package/es/ProTree/components/ProTreeSelect/index.js +28 -26
- package/es/ProTree/components/ProTreeSelect/style/index.less +0 -2
- package/es/ProTree/components/Tree.js +6 -13
- package/es/ProTree/index.js +0 -7
- package/es/ProTree/propsType.d.ts +1 -1
- package/es/ProTree/style/index.less +8 -6
- package/es/ProTreeModal/components/Cascader.js +3 -4
- package/es/ProTreeModal/components/List.js +11 -17
- package/es/ProTreeModal/components/SortableItem.js +2 -3
- package/es/ProTreeModal/components/Tree.js +3 -4
- package/es/ProTreeModal/components/Trigger.js +6 -11
- package/es/ProTreeModal/index.d.ts +0 -1
- package/es/ProTreeModal/index.js +10 -20
- package/es/ProTreeModal/style/index.less +12 -3
- package/es/ProUpload/components/ButtonRender.js +4 -7
- package/es/ProUpload/components/DragRender.js +2 -3
- package/es/ProUpload/components/FileItem.d.ts +0 -1
- package/es/ProUpload/components/FileItem.js +15 -21
- package/es/ProUpload/components/ImageRender.js +8 -17
- package/es/ProUpload/index.js +3 -4
- package/es/ProUpload/style/index.less +171 -12
- package/es/ProViewer/index.js +28 -35
- package/es/ProViewer/propsType.js +3 -0
- package/es/ProViewer/style/index.less +0 -2
- package/es/ProWaterMark/index.js +2 -3
- package/es/ProWaterMark/propsType.d.ts +5 -24
- package/es/global.less +2 -1
- package/es/index.d.ts +3 -3
- package/es/index.js +5 -5
- package/es/locale/en_US.js +1 -1
- package/es/locale/index.d.ts +2 -0
- package/es/locale/index.js +13 -2
- package/es/locale/zh_CN.js +1 -1
- package/es/style/components.less +0 -3
- package/es/style/index.less +1 -1
- package/es/style/theme/antd.less +36 -48
- package/es/style/theme/base.less +90 -0
- package/es/style/theme/index.less +2 -89
- package/es/utils/index.d.ts +7 -0
- package/es/utils/index.js +37 -1
- package/lib/FormsProvider/index.d.ts +4 -1
- package/lib/ProAction/components/CheckModalContent/index.js +0 -9
- package/lib/ProAction/index.js +3 -6
- package/lib/ProAction/index.less +0 -2
- package/lib/ProConfigProvider/index.d.ts +22 -5
- package/lib/ProConfigProvider/index.js +58 -26
- package/lib/ProDownload/index.js +2 -3
- package/lib/ProDownload/style/index.less +0 -2
- package/lib/ProDownload/utils.js +3 -4
- package/lib/ProDrawerForm/components/ProDrawer/index.js +13 -17
- package/lib/ProDrawerForm/components/ProModal/index.js +12 -20
- package/lib/ProDrawerForm/index.d.ts +2 -1
- package/lib/ProDrawerForm/index.js +35 -33
- package/lib/ProDrawerForm/propsType.d.ts +7 -18
- package/lib/ProDrawerForm/style/index.less +6 -14
- package/lib/ProEditLabel/components/RenderProForm.js +2 -3
- package/lib/ProEditLabel/index.js +10 -15
- package/lib/ProEditLabel/propsType.d.ts +1 -6
- package/lib/ProEditLabel/style/index.less +2 -3
- package/lib/ProEditTable/components/ActionButton/index.js +5 -8
- package/lib/ProEditTable/components/RcTable/BaseTable.js +69 -52
- package/lib/ProEditTable/components/RcTable/DraggableTable.js +69 -48
- package/lib/ProEditTable/components/RcTable/index.d.ts +0 -2
- package/lib/ProEditTable/components/RcTable/index.js +1 -8
- package/lib/ProEditTable/components/RenderField/ListChangedWrapper.js +9 -12
- package/lib/ProEditTable/components/RenderField/index.d.ts +3 -2
- package/lib/ProEditTable/components/RenderField/index.js +401 -241
- package/lib/ProEditTable/components/RenderToolbar/index.js +5 -5
- package/lib/ProEditTable/components/Summary/index.js +5 -9
- package/lib/ProEditTable/components/Validator/index.js +3 -7
- package/lib/ProEditTable/index.js +96 -100
- package/lib/ProEditTable/propsType.d.ts +7 -7
- package/lib/ProEditTable/style/index.less +12 -12
- package/lib/ProEditTable/utils/config.js +6 -7
- package/lib/ProEditTable/utils/index.js +20 -16
- package/lib/ProEditTable/utils/useEditTableError.js +12 -4
- package/lib/ProEditTable/utils/useShouldUpdateForTable.d.ts +15 -0
- package/lib/ProEditTable/utils/useShouldUpdateForTable.js +139 -0
- package/lib/ProEnum/hooks/useEnum.js +5 -0
- package/lib/ProEnum/hooks/useEnumRequest.js +2 -2
- package/lib/ProEnum/index.js +10 -17
- package/lib/ProEnum/style/index.less +0 -2
- package/lib/ProEnum/utils/index.d.ts +1 -0
- package/lib/ProEnum/utils/index.js +4 -7
- package/lib/ProForm/components/Container.d.ts +1 -0
- package/lib/ProForm/components/Container.js +2 -3
- package/lib/ProForm/components/FormFooter/index.js +18 -19
- package/lib/ProForm/components/FormFooter/propsType.d.ts +2 -0
- package/lib/ProForm/components/base/Checkbox/index.js +3 -4
- package/lib/ProForm/components/base/DatePicker/index.d.ts +1 -3
- package/lib/ProForm/components/base/DatePicker/index.js +7 -7
- package/lib/ProForm/components/base/DatePicker/useDateLimit.d.ts +3 -0
- package/lib/ProForm/components/base/DatePicker/useDateLimit.js +19 -0
- package/lib/ProForm/components/base/Input/index.js +10 -8
- package/lib/ProForm/components/base/InputNumber/index.js +3 -6
- package/lib/ProForm/components/base/Radio/index.js +3 -4
- package/lib/ProForm/components/base/RangePicker/index.js +6 -6
- package/lib/ProForm/components/base/RangePicker/useDateRange.d.ts +5 -5
- package/lib/ProForm/components/base/Select/index.js +2 -3
- package/lib/ProForm/components/base/Switch/index.js +2 -3
- package/lib/ProForm/components/base/SwitchCheckbox/index.js +2 -3
- package/lib/ProForm/components/base/SwitchCheckbox/style/index.less +0 -2
- package/lib/ProForm/components/base/TextArea/index.js +3 -4
- package/lib/ProForm/components/base/TextArea/index.less +10 -2
- package/lib/ProForm/components/base/TimePicker/index.d.ts +1 -2
- package/lib/ProForm/components/base/TimePicker/index.js +6 -7
- package/lib/ProForm/components/base/TimePicker/style/index.less +3 -3
- package/lib/ProForm/components/combination/Container/style/index.less +0 -2
- package/lib/ProForm/components/combination/FormList/components/ActionButton.js +15 -13
- package/lib/ProForm/components/combination/FormList/components/BlockFields.js +6 -9
- package/lib/ProForm/components/combination/FormList/components/Empty.js +2 -3
- package/lib/ProForm/components/combination/FormList/components/LineFields.js +2 -3
- package/lib/ProForm/components/combination/FormList/components/ToolbarButton.js +4 -7
- package/lib/ProForm/components/combination/FormList/index.js +2 -3
- package/lib/ProForm/components/combination/FormList/style/index.less +36 -2
- package/lib/ProForm/components/combination/Group/component/AddonWrapper/index.d.ts +1 -0
- package/lib/ProForm/components/combination/Group/component/ComRender.js +0 -1
- package/lib/ProForm/components/combination/Group/index.js +3 -4
- package/lib/ProForm/components/combination/Group/style/index.less +7 -87
- package/lib/ProForm/components/combination/Group/utils.d.ts +1 -1
- package/lib/ProForm/components/combination/Group/utils.js +4 -5
- package/lib/ProForm/components/combination/ProCascader/index.js +12 -14
- package/lib/ProForm/components/combination/ProCascader/propsType.d.ts +1 -1
- package/lib/ProForm/components/combination/ProCascader/style/index.less +0 -2
- package/lib/ProForm/components/combination/ProModalSelect/index.d.ts +1 -1
- package/lib/ProForm/components/combination/ProModalSelect/index.js +24 -39
- package/lib/ProForm/components/combination/ProModalSelect/style/index.less +11 -15
- package/lib/ProForm/components/combination/ProNumberRange/index.d.ts +3 -2
- package/lib/ProForm/components/combination/ProNumberRange/index.js +20 -20
- package/lib/ProForm/components/combination/ProNumberRange/style/index.less +3 -54
- package/lib/ProForm/components/combination/ProRangeLimit/index.d.ts +2 -23
- package/lib/ProForm/components/combination/ProRangeLimit/index.js +42 -25
- package/lib/ProForm/components/combination/ProRangeLimit/propsType.d.ts +23 -0
- package/lib/ProForm/components/combination/ProTimeLimit/hooks/useControlled.d.ts +3 -2
- package/lib/ProForm/components/combination/ProTimeLimit/hooks/useControlled.js +14 -2
- package/lib/ProForm/components/combination/ProTimeLimit/index.d.ts +5 -6
- package/lib/ProForm/components/combination/ProTimeLimit/index.js +23 -20
- package/lib/ProForm/components/combination/ProTimeLimit/style/index.less +64 -6
- package/lib/ProForm/components/index.d.ts +2 -9
- package/lib/ProForm/components/index.js +1 -63
- package/lib/ProForm/components/render/ChangedWrapper.js +8 -9
- package/lib/ProForm/components/render/ConfirmWrapper.js +7 -7
- package/lib/ProForm/components/render/Render.js +29 -30
- package/lib/ProForm/components/render/RenderFields.d.ts +1 -0
- package/lib/ProForm/components/render/RenderFields.js +6 -3
- package/lib/ProForm/components/render/propsType.d.ts +3 -6
- package/lib/ProForm/index.d.ts +2 -2
- package/lib/ProForm/index.js +13 -42
- package/lib/ProForm/propsType.d.ts +3 -0
- package/lib/ProForm/style/index.less +4 -16
- package/lib/ProForm/utils/index.d.ts +15 -1
- package/lib/ProForm/utils/index.js +69 -17
- package/lib/ProForm/utils/useDeepCompareMemo.js +4 -4
- package/lib/ProForm/utils/useForm.js +26 -21
- package/lib/ProForm/utils/useShouldUpdate.d.ts +1 -0
- package/lib/ProForm/utils/useShouldUpdate.js +101 -15
- package/lib/ProIcon/index.js +10 -13
- package/lib/ProIcon/style/index.less +0 -2
- package/lib/ProLayout/components/Layout/Header/index.js +1 -1
- package/lib/ProLayout/components/Layout/Menu/FoldMenu/index.js +3 -6
- package/lib/ProLayout/components/Layout/Menu/FoldMenu/style/index.less +40 -39
- package/lib/ProLayout/components/Layout/Menu/OpenMenu/index.js +2 -3
- package/lib/ProLayout/components/Layout/Menu/OpenMenu/style/index.less +0 -3
- package/lib/ProLayout/components/Layout/Menu/SideMenu/style/index.less +7 -5
- package/lib/ProLayout/components/Layout/Menu/index.js +1 -1
- package/lib/ProLayout/components/Layout/Menu/style/index.less +0 -2
- package/lib/ProLayout/components/Layout/Notice/style/index.less +0 -2
- package/lib/ProLayout/components/ProCollapse/index.js +29 -44
- package/lib/ProLayout/components/ProCollapse/style/index.less +5 -4
- package/lib/ProLayout/components/ProFooter/index.js +2 -3
- package/lib/ProLayout/components/ProFooter/style/index.less +0 -2
- package/lib/ProLayout/components/ProHeader/components/Copy/index.js +2 -3
- package/lib/ProLayout/components/ProHeader/components/ProBackBtn/index.js +2 -3
- package/lib/ProLayout/components/ProHeader/components/ProBackBtn/style/index.less +7 -9
- package/lib/ProLayout/components/ProHeader/index.js +44 -47
- package/lib/ProLayout/components/ProHeader/style/index.less +0 -2
- package/lib/ProLayout/components/TabsManager/components/TabContextMenu.js +2 -3
- package/lib/ProLayout/components/TabsManager/hooks/useTabsState.js +0 -2
- package/lib/ProLayout/index.js +79 -40
- package/lib/ProLayout/style/index.less +2 -3
- package/lib/ProSelect/components/AdaptiveTooltip.js +2 -3
- package/lib/ProSelect/index.js +7 -15
- package/lib/ProSelect/index.less +0 -2
- package/lib/ProSelect/propsType.d.ts +1 -1
- package/lib/ProStep/components/Anchor/index.js +2 -3
- package/lib/ProStep/components/Item/index.js +1 -1
- package/lib/ProStep/components/Step/index.js +1 -0
- package/lib/ProStep/style/index.less +2 -4
- package/lib/ProTable/components/FormatColumn/index.js +33 -31
- package/lib/ProTable/components/RcTable/components/BaseTable/index.d.ts +0 -1
- package/lib/ProTable/components/RcTable/components/BaseTable/index.js +2 -4
- package/lib/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/index.js +16 -13
- package/lib/ProTable/components/RcTable/components/DraggableTable/index.d.ts +0 -1
- package/lib/ProTable/components/RcTable/components/DraggableTable/index.js +2 -4
- package/lib/ProTable/components/RenderColumn/index.d.ts +1 -1
- package/lib/ProTable/components/RenderColumn/index.js +15 -18
- package/lib/ProTable/components/RenderSummary/index.js +4 -6
- package/lib/ProTable/components/RenderTableHeader/index.js +3 -5
- package/lib/ProTable/components/RenderTabs/index.js +3 -6
- package/lib/ProTable/components/TableResizable/index.js +2 -1
- package/lib/ProTable/components/TooltipTitle/index.js +2 -3
- package/lib/ProTable/hooks/useAntdTable.js +4 -7
- package/lib/ProTable/index.d.ts +0 -7
- package/lib/ProTable/index.js +10 -13
- package/lib/ProTable/propsType.d.ts +2 -3
- package/lib/ProTable/style/index.less +4 -6
- package/lib/ProTabs/components/Card/index.js +5 -11
- package/lib/ProTabs/index.js +2 -3
- package/lib/ProTabs/style/index.less +0 -2
- package/lib/ProThemeTools/component/ProTools/index.js +18 -22
- package/lib/ProThemeTools/context/ThemeContext.d.ts +31 -0
- package/lib/ProThemeTools/context/ThemeContext.js +145 -0
- package/lib/ProThemeTools/index.d.ts +4 -8
- package/lib/ProThemeTools/index.js +88 -48
- package/lib/ProThemeTools/style/index.less +1 -3
- package/lib/ProThemeTools/utils/index.d.ts +16 -6
- package/lib/ProThemeTools/utils/index.js +34 -27
- package/lib/ProTooltip/index.js +14 -9
- package/lib/ProTooltip/style/index.less +0 -2
- package/lib/ProTree/components/AdaptiveTooltip.js +2 -4
- package/lib/ProTree/components/List.js +3 -4
- package/lib/ProTree/components/ProTree.js +5 -12
- package/lib/ProTree/components/ProTreeSelect/index.js +28 -26
- package/lib/ProTree/components/ProTreeSelect/style/index.less +0 -2
- package/lib/ProTree/components/Tree.js +6 -13
- package/lib/ProTree/index.js +0 -8
- package/lib/ProTree/propsType.d.ts +1 -1
- package/lib/ProTree/style/index.less +8 -6
- package/lib/ProTreeModal/components/Cascader.js +3 -4
- package/lib/ProTreeModal/components/List.js +11 -17
- package/lib/ProTreeModal/components/SortableItem.js +2 -3
- package/lib/ProTreeModal/components/Tree.js +3 -4
- package/lib/ProTreeModal/components/Trigger.js +6 -11
- package/lib/ProTreeModal/index.d.ts +0 -1
- package/lib/ProTreeModal/index.js +10 -20
- package/lib/ProTreeModal/style/index.less +12 -3
- package/lib/ProUpload/components/ButtonRender.js +4 -7
- package/lib/ProUpload/components/DragRender.js +2 -3
- package/lib/ProUpload/components/FileItem.d.ts +0 -1
- package/lib/ProUpload/components/FileItem.js +15 -21
- package/lib/ProUpload/components/ImageRender.js +8 -17
- package/lib/ProUpload/index.js +3 -4
- package/lib/ProUpload/style/index.less +171 -12
- package/lib/ProViewer/index.js +30 -36
- package/lib/ProViewer/propsType.js +3 -1
- package/lib/ProViewer/style/index.less +0 -2
- package/lib/ProWaterMark/index.js +3 -4
- package/lib/ProWaterMark/propsType.d.ts +5 -24
- package/lib/global.less +2 -1
- package/lib/index.d.ts +3 -3
- package/lib/index.js +34 -21
- package/lib/locale/en_US.js +1 -1
- package/lib/locale/index.d.ts +2 -0
- package/lib/locale/index.js +14 -3
- package/lib/locale/zh_CN.js +1 -1
- package/lib/style/components.less +0 -3
- package/lib/style/index.less +1 -1
- package/lib/style/theme/antd.less +36 -48
- package/lib/style/theme/base.less +90 -0
- package/lib/style/theme/index.less +2 -89
- package/lib/utils/index.d.ts +7 -0
- package/lib/utils/index.js +41 -2
- package/package.json +37 -25
- package/es/ProEditTable/components/RcTable/VirtualTable.d.ts +0 -3
- package/es/ProEditTable/components/RcTable/VirtualTable.js +0 -9
- package/es/ProForm/components/combination/ProCombination/index.d.ts +0 -6
- package/es/ProForm/components/combination/ProCombination/index.js +0 -208
- package/es/ProForm/components/combination/ProCombination/propsType.d.ts +0 -68
- package/es/ProForm/components/combination/ProCombination/style/index.less +0 -18
- package/es/ProForm/components/old/EnumSelect/hooks/useRequestList.d.ts +0 -33
- package/es/ProForm/components/old/EnumSelect/hooks/useRequestList.js +0 -110
- package/es/ProForm/components/old/EnumSelect/index.d.ts +0 -4
- package/es/ProForm/components/old/EnumSelect/index.js +0 -265
- package/es/ProForm/components/old/EnumSelect/interface.d.ts +0 -29
- package/es/ProForm/components/old/EnumSelect/interface.js +0 -1
- package/es/ProForm/components/old/EnumSelect/style/index.less +0 -113
- package/es/ProForm/components/old/InputRange/index.d.ts +0 -16
- package/es/ProForm/components/old/InputRange/index.js +0 -101
- package/es/ProForm/components/old/InputWithSuffix/index.d.ts +0 -3
- package/es/ProForm/components/old/InputWithSuffix/index.js +0 -47
- package/es/ProForm/components/old/InputWithSuffix/propsTypes.d.ts +0 -11
- package/es/ProForm/components/old/InputWithSuffix/propsTypes.js +0 -1
- package/es/ProForm/components/old/ProAddress/index.d.ts +0 -27
- package/es/ProForm/components/old/ProAddress/index.js +0 -276
- package/es/ProForm/components/old/ProAddress/propsTypes.d.ts +0 -16
- package/es/ProForm/components/old/ProAddress/propsTypes.js +0 -1
- package/es/ProForm/components/old/ProCertNo/index.d.ts +0 -14
- package/es/ProForm/components/old/ProCertNo/index.js +0 -66
- package/es/ProForm/components/old/ProCertNo/propsType.d.ts +0 -18
- package/es/ProForm/components/old/ProCertNo/propsType.js +0 -1
- package/es/ProForm/components/old/ProCertValidity/index.d.ts +0 -9
- package/es/ProForm/components/old/ProCertValidity/index.js +0 -186
- package/es/ProForm/components/old/ProCertValidity/propsType.d.ts +0 -19
- package/es/ProForm/components/old/ProCertValidity/propsType.js +0 -1
- package/es/ProForm/components/old/ProRangeBox/index.d.ts +0 -2
- package/es/ProForm/components/old/ProRangeBox/index.js +0 -98
- package/es/ProForm/components/old/ProRangeBox/propsType.d.ts +0 -3
- package/es/ProForm/components/old/ProRangeBox/propsType.js +0 -1
- package/es/ProUpload/style/fileItem.less +0 -159
- package/es/old/ProCertValidity/index.d.ts +0 -9
- package/es/old/ProCertValidity/index.js +0 -186
- package/es/old/ProCertValidity/propsType.d.ts +0 -19
- package/es/old/ProCertValidity/propsType.js +0 -1
- package/es/old/ProEditableTable/index.d.ts +0 -4
- package/es/old/ProEditableTable/index.js +0 -594
- package/es/old/ProEditableTable/propsType.d.ts +0 -68
- package/es/old/ProEditableTable/propsType.js +0 -1
- package/es/old/ProEditableTable/style/index.less +0 -75
- package/es/old/ProEditableTable/utils.d.ts +0 -29
- package/es/old/ProEditableTable/utils.js +0 -321
- package/lib/ProEditTable/components/RcTable/VirtualTable.d.ts +0 -3
- package/lib/ProEditTable/components/RcTable/VirtualTable.js +0 -14
- package/lib/ProForm/components/combination/ProCombination/index.d.ts +0 -6
- package/lib/ProForm/components/combination/ProCombination/index.js +0 -217
- package/lib/ProForm/components/combination/ProCombination/propsType.d.ts +0 -68
- package/lib/ProForm/components/combination/ProCombination/style/index.less +0 -18
- package/lib/ProForm/components/old/EnumSelect/hooks/useRequestList.d.ts +0 -33
- package/lib/ProForm/components/old/EnumSelect/hooks/useRequestList.js +0 -117
- package/lib/ProForm/components/old/EnumSelect/index.d.ts +0 -4
- package/lib/ProForm/components/old/EnumSelect/index.js +0 -271
- package/lib/ProForm/components/old/EnumSelect/interface.d.ts +0 -29
- package/lib/ProForm/components/old/EnumSelect/interface.js +0 -5
- package/lib/ProForm/components/old/EnumSelect/style/index.less +0 -113
- package/lib/ProForm/components/old/InputRange/index.d.ts +0 -16
- package/lib/ProForm/components/old/InputRange/index.js +0 -108
- package/lib/ProForm/components/old/InputWithSuffix/index.d.ts +0 -3
- package/lib/ProForm/components/old/InputWithSuffix/index.js +0 -53
- package/lib/ProForm/components/old/InputWithSuffix/propsTypes.d.ts +0 -11
- package/lib/ProForm/components/old/InputWithSuffix/propsTypes.js +0 -5
- package/lib/ProForm/components/old/ProAddress/index.d.ts +0 -27
- package/lib/ProForm/components/old/ProAddress/index.js +0 -284
- package/lib/ProForm/components/old/ProAddress/propsTypes.d.ts +0 -16
- package/lib/ProForm/components/old/ProAddress/propsTypes.js +0 -5
- package/lib/ProForm/components/old/ProCertNo/index.d.ts +0 -14
- package/lib/ProForm/components/old/ProCertNo/index.js +0 -72
- package/lib/ProForm/components/old/ProCertNo/propsType.d.ts +0 -18
- package/lib/ProForm/components/old/ProCertNo/propsType.js +0 -5
- package/lib/ProForm/components/old/ProCertValidity/index.d.ts +0 -9
- package/lib/ProForm/components/old/ProCertValidity/index.js +0 -192
- package/lib/ProForm/components/old/ProCertValidity/propsType.d.ts +0 -19
- package/lib/ProForm/components/old/ProCertValidity/propsType.js +0 -5
- package/lib/ProForm/components/old/ProRangeBox/index.d.ts +0 -2
- package/lib/ProForm/components/old/ProRangeBox/index.js +0 -105
- package/lib/ProForm/components/old/ProRangeBox/propsType.d.ts +0 -3
- package/lib/ProForm/components/old/ProRangeBox/propsType.js +0 -5
- package/lib/ProUpload/style/fileItem.less +0 -159
- package/lib/old/ProCertValidity/index.d.ts +0 -9
- package/lib/old/ProCertValidity/index.js +0 -192
- package/lib/old/ProCertValidity/propsType.d.ts +0 -19
- package/lib/old/ProCertValidity/propsType.js +0 -5
- package/lib/old/ProEditableTable/index.d.ts +0 -4
- package/lib/old/ProEditableTable/index.js +0 -598
- package/lib/old/ProEditableTable/propsType.d.ts +0 -68
- package/lib/old/ProEditableTable/propsType.js +0 -5
- package/lib/old/ProEditableTable/style/index.less +0 -75
- package/lib/old/ProEditableTable/utils.d.ts +0 -29
- package/lib/old/ProEditableTable/utils.js +0 -329
- /package/es/ProForm/components/combination/{ProCombination → ProRangeLimit}/propsType.js +0 -0
- /package/lib/ProForm/components/combination/{ProCombination → ProRangeLimit}/propsType.js +0 -0
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
@root-entry-name: 'default';
|
|
2
|
-
@import (reference) '~antd/es/style/themes/index.less';
|
|
3
1
|
|
|
4
2
|
.pro-upload {
|
|
5
3
|
// display: inline-flex;
|
|
@@ -154,10 +152,11 @@
|
|
|
154
152
|
position: relative;
|
|
155
153
|
display: inline-flex;
|
|
156
154
|
|
|
157
|
-
.@{ant-prefix}-upload-list-picture-card
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
155
|
+
.@{ant-prefix}-upload-list-picture-card {
|
|
156
|
+
.@{ant-prefix}-upload-list-item-container , .@{ant-prefix}-upload-select {
|
|
157
|
+
width: 126px !important;
|
|
158
|
+
height: 126px !important;
|
|
159
|
+
}
|
|
161
160
|
}
|
|
162
161
|
|
|
163
162
|
.image-example {
|
|
@@ -233,10 +232,15 @@
|
|
|
233
232
|
color: #fff;
|
|
234
233
|
font-size: var(--zaui-font-size-sm, 12px);
|
|
235
234
|
opacity: 0.8;
|
|
235
|
+
color: #fff!important;
|
|
236
|
+
align-self: center;
|
|
237
|
+
&:hover {
|
|
238
|
+
color: #fff!important;
|
|
239
|
+
}
|
|
236
240
|
|
|
237
241
|
.action-icon {
|
|
238
|
-
margin-right:
|
|
239
|
-
|
|
242
|
+
margin-right: 4px;
|
|
243
|
+
vertical-align: sub;
|
|
240
244
|
}
|
|
241
245
|
|
|
242
246
|
&:hover {
|
|
@@ -246,7 +250,10 @@
|
|
|
246
250
|
|
|
247
251
|
.action-button {
|
|
248
252
|
.action-item {
|
|
249
|
-
color: var(--zaui-danger, #ff005f);
|
|
253
|
+
color: var(--zaui-danger, #ff005f) !important;
|
|
254
|
+
&:hover {
|
|
255
|
+
color: var(--zaui-danger, #ff005f) !important;
|
|
256
|
+
}
|
|
250
257
|
}
|
|
251
258
|
}
|
|
252
259
|
}
|
|
@@ -269,9 +276,6 @@
|
|
|
269
276
|
display: inline-flex;
|
|
270
277
|
}
|
|
271
278
|
|
|
272
|
-
.pro-upload-image-footer {
|
|
273
|
-
margin-top: -8px;
|
|
274
|
-
}
|
|
275
279
|
}
|
|
276
280
|
|
|
277
281
|
.file-actions {
|
|
@@ -301,6 +305,161 @@
|
|
|
301
305
|
}
|
|
302
306
|
}
|
|
303
307
|
}
|
|
308
|
+
|
|
309
|
+
.@{ant-prefix}-upload-disabled{
|
|
310
|
+
.file-action-box{
|
|
311
|
+
.file-name, .file-del{
|
|
312
|
+
color: #ccc;
|
|
313
|
+
cursor: not-allowed !important;
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
.filelist-item-wrapper {
|
|
319
|
+
.file-info-box {
|
|
320
|
+
display: flex;
|
|
321
|
+
align-items: center;
|
|
322
|
+
width: 100%;
|
|
323
|
+
height: 30px;
|
|
324
|
+
margin-top: var(--zaui-space-size-sm, 8px);
|
|
325
|
+
color: var(--zaui-text, #343434);
|
|
326
|
+
font-size: var(--zaui-font-size-sm, 12px);
|
|
327
|
+
line-height: 16px;
|
|
328
|
+
&:hover {
|
|
329
|
+
background: #F8F9FA;
|
|
330
|
+
border-radius: var(--zaui-border-radius, 8px);
|
|
331
|
+
color: var(--zaui-brand);
|
|
332
|
+
.file-actions-wrap {
|
|
333
|
+
.file-actions{
|
|
334
|
+
display: flex;
|
|
335
|
+
.file-action-item{
|
|
336
|
+
color: var(--zaui-brand);
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
&.file-box-error {
|
|
342
|
+
color: var(--zaui-danger);
|
|
343
|
+
|
|
344
|
+
.file-actions-wrap {
|
|
345
|
+
.file-actions{
|
|
346
|
+
display: flex;
|
|
347
|
+
.file-action-item{
|
|
348
|
+
color: var(--zaui-danger);
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
.file-type-icon {
|
|
356
|
+
display: block;
|
|
357
|
+
width: 18px;
|
|
358
|
+
height: 23px;
|
|
359
|
+
margin-left: 6px;
|
|
360
|
+
overflow: hidden;
|
|
361
|
+
position: absolute;
|
|
362
|
+
}
|
|
363
|
+
.file-name {
|
|
364
|
+
display: box;
|
|
365
|
+
padding-left: var(--zaui-space-size-lg, 32px);
|
|
366
|
+
overflow: hidden;
|
|
367
|
+
line-clamp: 1;
|
|
368
|
+
box-orient: vertical;
|
|
369
|
+
word-break: break-all;
|
|
370
|
+
}
|
|
371
|
+
.file-name.file-name-pf0 {
|
|
372
|
+
padding-left: 0;
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
|
|
376
|
+
.file-actions-wrap {
|
|
377
|
+
width: 100px;
|
|
378
|
+
margin-left: auto;
|
|
379
|
+
.file-actions {
|
|
380
|
+
display: none;
|
|
381
|
+
justify-content: right;
|
|
382
|
+
|
|
383
|
+
transition: all 1s;
|
|
384
|
+
|
|
385
|
+
.file-action-item {
|
|
386
|
+
margin-left: var(--zaui-space-size-sm, 8px);
|
|
387
|
+
padding: 0;
|
|
388
|
+
cursor: pointer;
|
|
389
|
+
color: var(--zaui-brand);
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
// 单个文件拖拽控件
|
|
397
|
+
.drag-Single-item-wrapper {
|
|
398
|
+
.file-info-box {
|
|
399
|
+
display: flex;
|
|
400
|
+
align-items: center;
|
|
401
|
+
width: 100%;
|
|
402
|
+
height: 30px;
|
|
403
|
+
margin-top: var(--zaui-space-size-sm, 8px);
|
|
404
|
+
color: var(--zaui-text, #343434);
|
|
405
|
+
|
|
406
|
+
font-size: var(--zaui-font-size-sm, 12px);
|
|
407
|
+
line-height: 16px;
|
|
408
|
+
justify-content: center;
|
|
409
|
+
&:hover {
|
|
410
|
+
background: #F8F9FA;
|
|
411
|
+
border-radius: var(--zaui-border-radius, 8px);
|
|
412
|
+
}
|
|
413
|
+
&:hover,&.file-box-error {
|
|
414
|
+
.file-actions-wrap {
|
|
415
|
+
.file-actions{
|
|
416
|
+
display: flex;
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
.file-type-icon {
|
|
423
|
+
display: block;
|
|
424
|
+
width: 18px;
|
|
425
|
+
height: 23px;
|
|
426
|
+
margin-left: 6px;
|
|
427
|
+
overflow: hidden;
|
|
428
|
+
position: absolute;
|
|
429
|
+
}
|
|
430
|
+
.file-name {
|
|
431
|
+
display: box;
|
|
432
|
+
padding-left: var(--zaui-space-size-sm, 8px);
|
|
433
|
+
overflow: hidden;
|
|
434
|
+
line-clamp: 1;
|
|
435
|
+
box-orient: vertical;
|
|
436
|
+
word-break: keep-all;
|
|
437
|
+
}
|
|
438
|
+
.file-name.file-name-pf0 {
|
|
439
|
+
padding-left: 0;
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
&.file-box-error {
|
|
443
|
+
color: var(--zaui-danger, #FF005F);
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
.file-actions-wrap {
|
|
447
|
+
margin-left: 10px;
|
|
448
|
+
.file-actions {
|
|
449
|
+
justify-content: right;
|
|
450
|
+
transition: all 1s;
|
|
451
|
+
display: flex;
|
|
452
|
+
.file-action-item {
|
|
453
|
+
margin-left: var(--zaui-space-size-sm, 8px);
|
|
454
|
+
padding: 0;
|
|
455
|
+
cursor: pointer;
|
|
456
|
+
color: var(--zaui-brand);
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
}
|
|
462
|
+
|
|
304
463
|
}
|
|
305
464
|
|
|
306
465
|
.pro-upload-example {
|
package/es/ProViewer/index.js
CHANGED
|
@@ -1,16 +1,10 @@
|
|
|
1
|
-
import "antd/es/modal/style";
|
|
2
|
-
import _Modal from "antd/es/modal";
|
|
3
|
-
import "antd/es/image/style";
|
|
4
|
-
import _Image from "antd/es/image";
|
|
5
1
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
6
|
-
import "antd/es/button/style";
|
|
7
|
-
import _Button from "antd/es/button";
|
|
8
2
|
import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
|
|
9
3
|
import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
|
10
4
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
11
|
-
var _locale$ProViewer;
|
|
12
5
|
/* eslint-disable jsx-a11y/iframe-has-title */
|
|
13
6
|
import { useSetState } from 'ahooks';
|
|
7
|
+
import { Button, Image, Modal } from 'antd';
|
|
14
8
|
import React, { useEffect, useRef } from 'react';
|
|
15
9
|
import locale from "../locale";
|
|
16
10
|
|
|
@@ -27,16 +21,33 @@ var MIMEType = {
|
|
|
27
21
|
excel: 'application/vnd.ms-excel'
|
|
28
22
|
};
|
|
29
23
|
var ProViewer = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
30
|
-
var
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
24
|
+
var _locale$ProViewer;
|
|
25
|
+
var _ref$disabled = _ref.disabled,
|
|
26
|
+
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
27
|
+
_ref$mode = _ref.mode,
|
|
28
|
+
mode = _ref$mode === void 0 ? 'page' : _ref$mode,
|
|
29
|
+
_ref$fileType = _ref.fileType,
|
|
30
|
+
fileType = _ref$fileType === void 0 ? 'pdf' : _ref$fileType,
|
|
31
|
+
_ref$modalProps = _ref.modalProps,
|
|
32
|
+
modalProps = _ref$modalProps === void 0 ? {
|
|
33
|
+
width: '1200px',
|
|
34
|
+
height: '650px',
|
|
35
|
+
centered: true,
|
|
36
|
+
title: locale === null || locale === void 0 || (_locale$ProViewer = locale.ProViewer) === null || _locale$ProViewer === void 0 ? void 0 : _locale$ProViewer.preview,
|
|
37
|
+
footer: null,
|
|
38
|
+
style: {
|
|
39
|
+
padding: 0
|
|
40
|
+
}
|
|
41
|
+
} : _ref$modalProps,
|
|
42
|
+
_ref$buttonProps = _ref.buttonProps,
|
|
43
|
+
buttonProps = _ref$buttonProps === void 0 ? {
|
|
44
|
+
type: 'link'
|
|
45
|
+
} : _ref$buttonProps,
|
|
34
46
|
src = _ref.src,
|
|
35
47
|
onClick = _ref.onClick,
|
|
36
48
|
previewFile = _ref.previewFile,
|
|
37
49
|
previewData = _ref.previewData,
|
|
38
|
-
children = _ref.children
|
|
39
|
-
buttonProps = _ref.buttonProps;
|
|
50
|
+
children = _ref.children;
|
|
40
51
|
var ProViewerRef = useRef(null);
|
|
41
52
|
var _useSetState = useSetState({
|
|
42
53
|
imgVisible: false,
|
|
@@ -165,13 +176,13 @@ var ProViewer = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
165
176
|
}, [previewData]);
|
|
166
177
|
return /*#__PURE__*/_jsxs("span", {
|
|
167
178
|
className: "pro-viewer",
|
|
168
|
-
children: [/*#__PURE__*/_jsx(
|
|
179
|
+
children: [/*#__PURE__*/_jsx(Button, _objectSpread(_objectSpread({
|
|
169
180
|
disabled: disabled || !url && !previewFile,
|
|
170
181
|
ref: ProViewerRef,
|
|
171
182
|
onClick: previewHandle
|
|
172
183
|
}, buttonProps), {}, {
|
|
173
184
|
children: children
|
|
174
|
-
})), mode && fileType === 'img' && /*#__PURE__*/_jsx(
|
|
185
|
+
})), mode && fileType === 'img' && /*#__PURE__*/_jsx(Image, {
|
|
175
186
|
src: url,
|
|
176
187
|
preview: {
|
|
177
188
|
visible: imgVisible,
|
|
@@ -181,13 +192,13 @@ var ProViewer = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
181
192
|
});
|
|
182
193
|
}
|
|
183
194
|
}
|
|
184
|
-
}), /*#__PURE__*/_jsx(
|
|
195
|
+
}), /*#__PURE__*/_jsx(Modal, _objectSpread(_objectSpread({
|
|
185
196
|
onCancel: () => {
|
|
186
197
|
setState({
|
|
187
198
|
modalVisible: false
|
|
188
199
|
});
|
|
189
200
|
},
|
|
190
|
-
|
|
201
|
+
open: modalVisible
|
|
191
202
|
}, modalProps), {}, {
|
|
192
203
|
children: url && /*#__PURE__*/_jsx("iframe", {
|
|
193
204
|
title: "pro-viewer",
|
|
@@ -200,22 +211,4 @@ var ProViewer = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
200
211
|
}))]
|
|
201
212
|
});
|
|
202
213
|
});
|
|
203
|
-
ProViewer.defaultProps = {
|
|
204
|
-
modalProps: {
|
|
205
|
-
width: '1200px',
|
|
206
|
-
height: '650px',
|
|
207
|
-
centered: true,
|
|
208
|
-
title: locale === null || locale === void 0 || (_locale$ProViewer = locale.ProViewer) === null || _locale$ProViewer === void 0 ? void 0 : _locale$ProViewer.preview,
|
|
209
|
-
footer: null,
|
|
210
|
-
bodyStyle: {
|
|
211
|
-
padding: 0
|
|
212
|
-
}
|
|
213
|
-
},
|
|
214
|
-
buttonProps: {
|
|
215
|
-
type: 'link'
|
|
216
|
-
},
|
|
217
|
-
mode: 'page',
|
|
218
|
-
fileType: 'pdf',
|
|
219
|
-
disabled: false
|
|
220
|
-
};
|
|
221
214
|
export default ProViewer;
|
package/es/ProWaterMark/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
|
-
import { Watermark } from '
|
|
2
|
+
import { Watermark } from 'antd';
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
5
|
var ProWaterMark = props => {
|
|
@@ -7,8 +7,7 @@ var ProWaterMark = props => {
|
|
|
7
7
|
return /*#__PURE__*/_jsx("div", {
|
|
8
8
|
className: "pro-water-mark",
|
|
9
9
|
children: /*#__PURE__*/_jsx(Watermark, _objectSpread(_objectSpread({}, props), {}, {
|
|
10
|
-
|
|
11
|
-
monitor: true,
|
|
10
|
+
content: content,
|
|
12
11
|
children: props === null || props === void 0 ? void 0 : props.children
|
|
13
12
|
}))
|
|
14
13
|
});
|
|
@@ -1,19 +1,15 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
1
2
|
export interface ProWaterMarkType {
|
|
2
3
|
/**
|
|
3
|
-
* @description
|
|
4
|
-
* @default
|
|
4
|
+
* @description 水印内容
|
|
5
|
+
* @default -
|
|
5
6
|
*/
|
|
6
|
-
|
|
7
|
+
children?: ReactNode;
|
|
7
8
|
/**
|
|
8
9
|
* @description 水印文本, 为数组时表示多行水印
|
|
9
10
|
* @default -
|
|
10
11
|
*/
|
|
11
|
-
content
|
|
12
|
-
/**
|
|
13
|
-
* @description 是否全局设置水印
|
|
14
|
-
* @default false
|
|
15
|
-
*/
|
|
16
|
-
isBody?: boolean;
|
|
12
|
+
content: string | string[];
|
|
17
13
|
/**
|
|
18
14
|
* @description 水印层级
|
|
19
15
|
* @default 9999
|
|
@@ -34,11 +30,6 @@ export interface ProWaterMarkType {
|
|
|
34
30
|
* @default 64
|
|
35
31
|
*/
|
|
36
32
|
height?: number;
|
|
37
|
-
/**
|
|
38
|
-
* @description 水印透明度
|
|
39
|
-
* @default 0.15
|
|
40
|
-
*/
|
|
41
|
-
opacity?: number;
|
|
42
33
|
/**
|
|
43
34
|
* @description 旋转的角度
|
|
44
35
|
* @default -22
|
|
@@ -59,11 +50,6 @@ export interface ProWaterMarkType {
|
|
|
59
50
|
* @default 'normal'
|
|
60
51
|
*/
|
|
61
52
|
fontStyle?: 'normal' | 'italic';
|
|
62
|
-
/**
|
|
63
|
-
* @description 规定字体变体
|
|
64
|
-
* @default normal
|
|
65
|
-
*/
|
|
66
|
-
fontVariant?: 'normal' | 'small-caps';
|
|
67
53
|
/**
|
|
68
54
|
* @description 设置字体颜色
|
|
69
55
|
* @default #000
|
|
@@ -74,10 +60,5 @@ export interface ProWaterMarkType {
|
|
|
74
60
|
* @default sans-serif
|
|
75
61
|
*/
|
|
76
62
|
fontFamily?: string;
|
|
77
|
-
/**
|
|
78
|
-
* @description 展示模式,interval表示错行展示
|
|
79
|
-
* @default 'interval'
|
|
80
|
-
*/
|
|
81
|
-
mode?: 'repeat' | 'interval';
|
|
82
63
|
}
|
|
83
64
|
export type ProWaterMarkProps = ProWaterMarkType;
|
package/es/global.less
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/* @import '~antd/dist/reset.css';*/
|
|
1
2
|
@import './style/index.less';
|
|
2
3
|
|
|
3
4
|
pre {
|
|
@@ -10,7 +11,7 @@ pre {
|
|
|
10
11
|
scrollbar-highlight-color: #979797;
|
|
11
12
|
scrollbar-3dlight-color: #979797;
|
|
12
13
|
|
|
13
|
-
::-webkit-scrollbar
|
|
14
|
+
::-webkit-scrollbar {
|
|
14
15
|
width: 16px;
|
|
15
16
|
background: transparent;
|
|
16
17
|
}
|
package/es/index.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/// <reference types="typings" />
|
|
2
|
-
export { default as ProLayout
|
|
2
|
+
export { default as ProLayout } from './ProLayout';
|
|
3
3
|
export { default as ProStep } from './ProStep';
|
|
4
4
|
export { default as ProTabs } from './ProTabs';
|
|
5
|
+
export { ProCollapse, ProFooter, ProHeader } from './ProLayout/components';
|
|
5
6
|
export { default as ProTable } from './ProTable';
|
|
6
7
|
export { default as ProTooltip } from './ProTooltip';
|
|
7
8
|
export { default as ProViewer } from './ProViewer';
|
|
@@ -21,12 +22,11 @@ export { default as ProConfigProvider } from './ProConfigProvider';
|
|
|
21
22
|
export { default as FormsProvider } from './FormsProvider';
|
|
22
23
|
export { default as ProUpload } from './ProUpload';
|
|
23
24
|
export { default as ProThemeTools } from './ProThemeTools';
|
|
25
|
+
export { ThemeProvider, useTheme } from './ProThemeTools';
|
|
24
26
|
export { default as ProAction } from './ProAction';
|
|
25
27
|
export * from './ProConfigProvider';
|
|
26
28
|
export * from './locale';
|
|
27
29
|
export { default as ProBackBtn } from './ProLayout/components/ProHeader/components/ProBackBtn';
|
|
28
|
-
export { default as ProEditableTable } from './old/ProEditableTable';
|
|
29
|
-
export { default as ProCertValidity } from './old/ProCertValidity';
|
|
30
30
|
export type { ProFormType, ProColumnProps, ProFormColumnType } from './ProForm/propsType';
|
|
31
31
|
export type { ProFormComponentType } from './ProForm/components';
|
|
32
32
|
export type { ProTableType, ProTableColumnType, ProTableSummaryType, ProTableUseAntdTableType, ProTableProps, ProTableSummaryProps, ProTableColumn, UseAntdTableState } from './ProTable/propsType';
|
package/es/index.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/// <reference path="../typings.d.ts" />;
|
|
2
2
|
|
|
3
3
|
// 布局
|
|
4
|
-
export { default as ProLayout
|
|
4
|
+
export { default as ProLayout } from "./ProLayout";
|
|
5
5
|
export { default as ProStep } from "./ProStep";
|
|
6
6
|
export { default as ProTabs } from "./ProTabs";
|
|
7
|
+
export { ProCollapse, ProFooter, ProHeader } from "./ProLayout/components"; // ProLayout 中组件导出
|
|
7
8
|
|
|
8
9
|
// 数据展示
|
|
9
10
|
export { default as ProTable } from "./ProTable";
|
|
@@ -20,6 +21,7 @@ export { default as ProStepTab } from "./ProStepTab";
|
|
|
20
21
|
export { default as ProForm } from "./ProForm";
|
|
21
22
|
export { ProFormProvider } from "./ProForm";
|
|
22
23
|
export * from "./ProForm/components"; // ProForm 中组件导出
|
|
24
|
+
|
|
23
25
|
export { default as ProSelect } from "./ProSelect";
|
|
24
26
|
export { default as ProEnum } from "./ProEnum";
|
|
25
27
|
|
|
@@ -31,15 +33,13 @@ export { default as ProConfigProvider } from "./ProConfigProvider";
|
|
|
31
33
|
export { default as FormsProvider } from "./FormsProvider";
|
|
32
34
|
export { default as ProUpload } from "./ProUpload";
|
|
33
35
|
export { default as ProThemeTools } from "./ProThemeTools";
|
|
36
|
+
export { ThemeProvider, useTheme } from "./ProThemeTools";
|
|
34
37
|
export { default as ProAction } from "./ProAction";
|
|
35
38
|
export * from "./ProConfigProvider";
|
|
36
39
|
export * from "./locale";
|
|
37
|
-
|
|
38
|
-
// old 待废弃
|
|
39
40
|
export { default as ProBackBtn } from "./ProLayout/components/ProHeader/components/ProBackBtn";
|
|
40
|
-
export { default as ProEditableTable } from "./old/ProEditableTable";
|
|
41
|
-
export { default as ProCertValidity } from "./old/ProCertValidity";
|
|
42
41
|
|
|
42
|
+
// TS类型导出
|
|
43
43
|
// TS类型导出
|
|
44
44
|
|
|
45
45
|
// token导出
|
package/es/locale/en_US.js
CHANGED
|
@@ -62,7 +62,7 @@ export default {
|
|
|
62
62
|
unExpand: 'Put it all away',
|
|
63
63
|
expand: 'Expand all',
|
|
64
64
|
all: 'Select all',
|
|
65
|
-
emptyTips: "
|
|
65
|
+
emptyTips: "what you were looking for couldn't be found"
|
|
66
66
|
},
|
|
67
67
|
ProUpload: {
|
|
68
68
|
exampleTitle: 'View sample',
|
package/es/locale/index.d.ts
CHANGED
package/es/locale/index.js
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
|
-
import
|
|
1
|
+
import dayjs from 'dayjs';
|
|
2
|
+
// 导入dayjs的中文locale包
|
|
3
|
+
import 'dayjs/locale/zh-cn';
|
|
4
|
+
import 'dayjs/locale/en';
|
|
2
5
|
import zhCN from "./zh_CN";
|
|
3
6
|
import enUS from "./en_US";
|
|
7
|
+
|
|
8
|
+
// 设置默认语言为中文
|
|
9
|
+
dayjs.locale('zh-cn');
|
|
4
10
|
var activeLang = localStorage.getItem('locale') || 'zh-CN';
|
|
5
11
|
var langMap = {
|
|
6
12
|
'zh-CN': zhCN,
|
|
@@ -15,12 +21,17 @@ var langMap = {
|
|
|
15
21
|
export var setLanguage = (lang, isReload) => {
|
|
16
22
|
activeLang = lang;
|
|
17
23
|
localStorage.setItem('locale', lang);
|
|
18
|
-
|
|
24
|
+
// 将语言代码转换为dayjs支持的格式
|
|
25
|
+
var dayjsLocale = lang.toLowerCase() === 'zh-cn' ? 'zh-cn' : 'en';
|
|
26
|
+
dayjs.locale(dayjsLocale);
|
|
19
27
|
if (isReload) {
|
|
20
28
|
window.location.reload();
|
|
21
29
|
}
|
|
22
30
|
};
|
|
23
31
|
|
|
32
|
+
// 初始化时设置语言
|
|
33
|
+
setLanguage(activeLang);
|
|
34
|
+
|
|
24
35
|
/**
|
|
25
36
|
* @param str 待替换字符串 eg: 我是{name},年龄{age}
|
|
26
37
|
* @param variables 变量对象 {name: 'xx', age: 23}
|
package/es/locale/zh_CN.js
CHANGED
package/es/style/components.less
CHANGED
package/es/style/index.less
CHANGED