@zat-design/sisyphus-react 3.14.0-beta.1 → 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/ProLayout/utils/index.js +8 -5
- 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/ProLayout/utils/index.js +8 -5
- 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,8 +1,6 @@
|
|
|
1
|
-
@root-entry-name: 'default';
|
|
2
|
-
@import (reference) '~antd/es/style/themes/index.less';
|
|
3
1
|
|
|
4
2
|
.pro-tree-modal-container .@{ant-prefix}-modal-content .@{ant-prefix}-modal-body {
|
|
5
|
-
max-height: 498px;
|
|
3
|
+
max-height: 498px !important;
|
|
6
4
|
}
|
|
7
5
|
|
|
8
6
|
.pro-tree-modal {
|
|
@@ -26,8 +24,16 @@
|
|
|
26
24
|
flex-direction: row;
|
|
27
25
|
height: 482px;
|
|
28
26
|
margin-bottom: calc(var(--zaui-space-size-md; 16px) * var(--zaui-size; 1));
|
|
27
|
+
.checked-container {
|
|
28
|
+
.@{ant-prefix}-btn {
|
|
29
|
+
&:active {
|
|
30
|
+
background: transparent;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
29
34
|
|
|
30
35
|
.@{ant-prefix}-tree-checkbox {
|
|
36
|
+
align-self: flex-start;
|
|
31
37
|
margin-top: 2px;
|
|
32
38
|
}
|
|
33
39
|
|
|
@@ -238,6 +244,9 @@
|
|
|
238
244
|
}
|
|
239
245
|
|
|
240
246
|
.pro-transfer-right {
|
|
247
|
+
.@{ant-prefix}-checkbox {
|
|
248
|
+
align-items: flex-start;
|
|
249
|
+
}
|
|
241
250
|
.checked-item {
|
|
242
251
|
margin: var(--zaui-space-size-sm, 8px) 0;
|
|
243
252
|
&.dragable {
|
|
@@ -5,13 +5,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
|
-
require("antd/es/upload/style");
|
|
9
|
-
var _upload = _interopRequireDefault(require("antd/es/upload"));
|
|
10
|
-
require("antd/es/button/style");
|
|
11
|
-
var _button = _interopRequireDefault(require("antd/es/button"));
|
|
12
8
|
var _regeneratorRuntime2 = _interopRequireDefault(require("@babel/runtime/helpers/regeneratorRuntime"));
|
|
13
9
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
14
10
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
11
|
+
var _antd = require("antd");
|
|
15
12
|
var _core = require("@dnd-kit/core");
|
|
16
13
|
var _sortable = require("@dnd-kit/sortable");
|
|
17
14
|
var _icons = require("@ant-design/icons");
|
|
@@ -89,10 +86,10 @@ var ButtonRender = props => {
|
|
|
89
86
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_sortable.SortableContext, {
|
|
90
87
|
items: fileList.map(i => i.uid),
|
|
91
88
|
strategy: _sortable.rectSortingStrategy,
|
|
92
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
89
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_antd.Upload, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, buttonUploadProps), {}, {
|
|
93
90
|
children: !isView && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
94
91
|
className: "pro-upload-button-inner",
|
|
95
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(
|
|
92
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_antd.Button, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, buttonProps), {}, {
|
|
96
93
|
disabled: disabled || isView,
|
|
97
94
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.CloudUploadOutlined, {}), buttonText]
|
|
98
95
|
})), afterRender ? /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
@@ -105,7 +102,7 @@ var ButtonRender = props => {
|
|
|
105
102
|
})
|
|
106
103
|
}), extraTipText && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
107
104
|
className: "upload-tip-txt",
|
|
108
|
-
children: extraTipText
|
|
105
|
+
children: typeof extraTipText === 'function' ? extraTipText() : extraTipText
|
|
109
106
|
})]
|
|
110
107
|
});
|
|
111
108
|
};
|
|
@@ -6,9 +6,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
9
|
-
require("antd/es/upload/style");
|
|
10
|
-
var _upload = _interopRequireDefault(require("antd/es/upload"));
|
|
11
9
|
var _react = require("react");
|
|
10
|
+
var _antd = require("antd");
|
|
12
11
|
var _core = require("@dnd-kit/core");
|
|
13
12
|
var _sortable = require("@dnd-kit/sortable");
|
|
14
13
|
var _icons = require("@ant-design/icons");
|
|
@@ -16,7 +15,7 @@ var _FileItem = require("./FileItem");
|
|
|
16
15
|
var _DraggableUploadListItem = require("./DraggableUploadListItem");
|
|
17
16
|
var _locale = _interopRequireDefault(require("../../locale"));
|
|
18
17
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
19
|
-
var Dragger =
|
|
18
|
+
var Dragger = _antd.Upload.Dragger;
|
|
20
19
|
var DragRender = props => {
|
|
21
20
|
var _locale$ProUpload3, _locale$ProUpload4, _locale$ProUpload5, _locale$ProUpload6;
|
|
22
21
|
var isView = props.isView,
|
|
@@ -5,13 +5,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.getFileIcon = exports.getFileExt = exports.bToKb = exports.FileItem = exports.DragSingleFileItem = void 0;
|
|
8
|
-
require("antd/es/progress/style");
|
|
9
|
-
var _progress = _interopRequireDefault(require("antd/es/progress"));
|
|
10
|
-
require("antd/es/popconfirm/style");
|
|
11
|
-
var _popconfirm = _interopRequireDefault(require("antd/es/popconfirm"));
|
|
12
|
-
require("antd/es/button/style");
|
|
13
|
-
var _button = _interopRequireDefault(require("antd/es/button"));
|
|
14
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _antd = require("antd");
|
|
15
10
|
var _reactSvg = require("react-svg");
|
|
16
11
|
var _iconPDF = _interopRequireDefault(require("../style/icon-PDF.png"));
|
|
17
12
|
var _iconTXT = _interopRequireDefault(require("../style/icon-TXT.png"));
|
|
@@ -21,7 +16,6 @@ var _iconWord = _interopRequireDefault(require("../style/icon-word.png"));
|
|
|
21
16
|
var _look = _interopRequireDefault(require("../../assets/look.svg"));
|
|
22
17
|
var _delete = _interopRequireDefault(require("../../assets/delete.svg"));
|
|
23
18
|
var _download = _interopRequireDefault(require("../../assets/download.svg"));
|
|
24
|
-
require("../style/fileItem.less");
|
|
25
19
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
26
20
|
/**
|
|
27
21
|
* @description: b 转成 Kb
|
|
@@ -52,7 +46,9 @@ exports.getFileExt = getFileExt;
|
|
|
52
46
|
var getFileIcon = fileExt => {
|
|
53
47
|
if (['.PDF'].includes(fileExt.toLocaleUpperCase())) return _iconPDF.default;
|
|
54
48
|
if (['.TXT', '.JSON'].includes(fileExt.toLocaleUpperCase())) return _iconTXT.default;
|
|
55
|
-
if (['.PNG', '.JPG', '.JPEG', '.GIF', '.BMP', '.JPE'].includes(fileExt.toLocaleUpperCase()))
|
|
49
|
+
if (['.PNG', '.JPG', '.JPEG', '.GIF', '.BMP', '.JPE'].includes(fileExt.toLocaleUpperCase())) {
|
|
50
|
+
return _iconPic.default;
|
|
51
|
+
}
|
|
56
52
|
if (['.DOC', '.DOCX'].includes(fileExt.toLocaleUpperCase())) return _iconWord.default;
|
|
57
53
|
if (['.XLS', '.XLSX'].includes(fileExt.toLocaleUpperCase())) return _iconExcel.default;
|
|
58
54
|
return _iconTXT.default;
|
|
@@ -112,7 +108,7 @@ var FileItem = props => {
|
|
|
112
108
|
className: "file-actions-wrap",
|
|
113
109
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
114
110
|
className: "file-actions",
|
|
115
|
-
children: [_isShowDownloadIcon && /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
111
|
+
children: [_isShowDownloadIcon && /*#__PURE__*/(0, _jsxRuntime.jsx)(_antd.Button, {
|
|
116
112
|
type: "link",
|
|
117
113
|
className: "file-action-item",
|
|
118
114
|
onClick: _onDownload,
|
|
@@ -121,7 +117,7 @@ var FileItem = props => {
|
|
|
121
117
|
wrapper: "span",
|
|
122
118
|
src: _download.default
|
|
123
119
|
})
|
|
124
|
-
}), _showPreViewIcon && /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
120
|
+
}), _showPreViewIcon && /*#__PURE__*/(0, _jsxRuntime.jsx)(_antd.Button, {
|
|
125
121
|
type: "link",
|
|
126
122
|
className: "file-action-item",
|
|
127
123
|
onClick: _onPreview,
|
|
@@ -131,12 +127,12 @@ var FileItem = props => {
|
|
|
131
127
|
color: "#006aff",
|
|
132
128
|
src: _look.default
|
|
133
129
|
})
|
|
134
|
-
}), _showRemoveIcon && !disabled && (isConfirmDelete ? /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
130
|
+
}), _showRemoveIcon && !disabled && (isConfirmDelete ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_antd.Popconfirm, {
|
|
135
131
|
title: "\u786E\u5B9A\u5220\u9664?",
|
|
136
132
|
onConfirm: _onRemove,
|
|
137
133
|
okText: "\u786E\u8BA4",
|
|
138
134
|
cancelText: "\u53D6\u6D88",
|
|
139
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
135
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_antd.Button, {
|
|
140
136
|
type: "link",
|
|
141
137
|
className: "file-action-item",
|
|
142
138
|
disabled: disabled,
|
|
@@ -146,7 +142,7 @@ var FileItem = props => {
|
|
|
146
142
|
src: _delete.default
|
|
147
143
|
})
|
|
148
144
|
})
|
|
149
|
-
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
145
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_antd.Button, {
|
|
150
146
|
type: "link",
|
|
151
147
|
className: "file-action-item",
|
|
152
148
|
disabled: disabled,
|
|
@@ -161,10 +157,9 @@ var FileItem = props => {
|
|
|
161
157
|
})]
|
|
162
158
|
}), file.status === 'uploading' && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
163
159
|
className: "file-progress",
|
|
164
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
160
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_antd.Progress, {
|
|
165
161
|
percent: Math.ceil(file.percent),
|
|
166
|
-
size:
|
|
167
|
-
strokeWidth: 2
|
|
162
|
+
size: 2
|
|
168
163
|
})
|
|
169
164
|
})]
|
|
170
165
|
});
|
|
@@ -210,7 +205,7 @@ var DragSingleFileItem = props => {
|
|
|
210
205
|
className: "file-actions-wrap",
|
|
211
206
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
212
207
|
className: "file-actions",
|
|
213
|
-
children: [_showPreViewIcon && /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
208
|
+
children: [_showPreViewIcon && /*#__PURE__*/(0, _jsxRuntime.jsx)(_antd.Button, {
|
|
214
209
|
type: "link",
|
|
215
210
|
className: "file-action-item",
|
|
216
211
|
onClick: _onPreview,
|
|
@@ -219,7 +214,7 @@ var DragSingleFileItem = props => {
|
|
|
219
214
|
wrapper: "span",
|
|
220
215
|
src: _look.default
|
|
221
216
|
})
|
|
222
|
-
}), _isShowDownloadIcon && /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
217
|
+
}), _isShowDownloadIcon && /*#__PURE__*/(0, _jsxRuntime.jsx)(_antd.Button, {
|
|
223
218
|
type: "link",
|
|
224
219
|
className: "file-action-item",
|
|
225
220
|
onClick: _onDownload,
|
|
@@ -233,10 +228,9 @@ var DragSingleFileItem = props => {
|
|
|
233
228
|
})]
|
|
234
229
|
}), file.status === 'uploading' && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
235
230
|
className: "file-progress",
|
|
236
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
231
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_antd.Progress, {
|
|
237
232
|
percent: Math.ceil(file.percent),
|
|
238
|
-
size:
|
|
239
|
-
strokeWidth: 2
|
|
233
|
+
size: 2
|
|
240
234
|
})
|
|
241
235
|
})]
|
|
242
236
|
});
|
|
@@ -5,20 +5,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
|
-
require("antd/es/space/style");
|
|
9
|
-
var _space = _interopRequireDefault(require("antd/es/space"));
|
|
10
|
-
require("antd/es/modal/style");
|
|
11
|
-
var _modal = _interopRequireDefault(require("antd/es/modal"));
|
|
12
|
-
require("antd/es/upload/style");
|
|
13
|
-
var _upload = _interopRequireDefault(require("antd/es/upload"));
|
|
14
8
|
var _regeneratorRuntime2 = _interopRequireDefault(require("@babel/runtime/helpers/regeneratorRuntime"));
|
|
15
9
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
16
|
-
require("antd/es/button/style");
|
|
17
|
-
var _button = _interopRequireDefault(require("antd/es/button"));
|
|
18
|
-
require("antd/es/progress/style");
|
|
19
|
-
var _progress = _interopRequireDefault(require("antd/es/progress"));
|
|
20
10
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
21
11
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
12
|
+
var _antd = require("antd");
|
|
22
13
|
var _react = require("react");
|
|
23
14
|
var _core = require("@dnd-kit/core");
|
|
24
15
|
var _sortable = require("@dnd-kit/sortable");
|
|
@@ -122,7 +113,7 @@ var ImageRender = props => {
|
|
|
122
113
|
className: `file-item-image ${file.status === 'error' ? 'actions-wrap-error' : ''}`,
|
|
123
114
|
children: [file.status === 'uploading' && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
124
115
|
className: "image-uploading",
|
|
125
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
116
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_antd.Progress, {
|
|
126
117
|
size: "small",
|
|
127
118
|
percent: Math.ceil(file.percent)
|
|
128
119
|
})
|
|
@@ -137,7 +128,7 @@ var ImageRender = props => {
|
|
|
137
128
|
className: "actions-wrap ",
|
|
138
129
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
139
130
|
className: "action-top",
|
|
140
|
-
children: [_showPreview && /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
131
|
+
children: [_showPreview && /*#__PURE__*/(0, _jsxRuntime.jsx)(_antd.Button, {
|
|
141
132
|
type: "link",
|
|
142
133
|
className: "action-item",
|
|
143
134
|
onClick: () => {
|
|
@@ -149,7 +140,7 @@ var ImageRender = props => {
|
|
|
149
140
|
src: _look.default
|
|
150
141
|
}),
|
|
151
142
|
children: _locale.default === null || _locale.default === void 0 || (_locale$ProUpload = _locale.default.ProUpload) === null || _locale$ProUpload === void 0 ? void 0 : _locale$ProUpload.view
|
|
152
|
-
}), _isShowDownload && /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
143
|
+
}), _isShowDownload && /*#__PURE__*/(0, _jsxRuntime.jsx)(_antd.Button, {
|
|
153
144
|
type: "link",
|
|
154
145
|
disabled: isView || disabled,
|
|
155
146
|
className: "action-item",
|
|
@@ -165,7 +156,7 @@ var ImageRender = props => {
|
|
|
165
156
|
})]
|
|
166
157
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
167
158
|
className: "action-button",
|
|
168
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
159
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_antd.Button, {
|
|
169
160
|
type: "link",
|
|
170
161
|
disabled: isView || disabled,
|
|
171
162
|
className: "action-item",
|
|
@@ -219,7 +210,7 @@ var ImageRender = props => {
|
|
|
219
210
|
});
|
|
220
211
|
}
|
|
221
212
|
});
|
|
222
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(
|
|
213
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_antd.Space, {
|
|
223
214
|
direction: "vertical",
|
|
224
215
|
size: 8,
|
|
225
216
|
className: "pro-upload-image",
|
|
@@ -231,7 +222,7 @@ var ImageRender = props => {
|
|
|
231
222
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_sortable.SortableContext, {
|
|
232
223
|
items: fileList.map(i => i.uid),
|
|
233
224
|
strategy: _sortable.rectSortingStrategy,
|
|
234
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
225
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_antd.Upload, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, imageUploadProps), {}, {
|
|
235
226
|
children: fileList.length < maxCount && !isView && (centerRender ? (0, _lodash.isFunction)(centerRender) ? centerRender() : centerRender : /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
236
227
|
className: `pro-upload-image-inner ${disabled ? 'pro-upload-image-disabled' : ''} `,
|
|
237
228
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.PlusOutlined, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
@@ -255,7 +246,7 @@ var ImageRender = props => {
|
|
|
255
246
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
256
247
|
className: "pro-upload-image-footer",
|
|
257
248
|
children: footerRender()
|
|
258
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
249
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_antd.Modal, {
|
|
259
250
|
title: previewImg === null || previewImg === void 0 ? void 0 : previewImg.name,
|
|
260
251
|
width: "600",
|
|
261
252
|
style: {
|
package/lib/ProUpload/index.js
CHANGED
|
@@ -6,12 +6,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
8
|
exports.default = void 0;
|
|
9
|
-
require("antd/es/message/style");
|
|
10
|
-
var _message2 = _interopRequireDefault(require("antd/es/message"));
|
|
11
9
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
12
10
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
13
11
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
14
12
|
var _react = _interopRequireWildcard(require("react"));
|
|
13
|
+
var _antd = require("antd");
|
|
15
14
|
var _lodash = require("lodash");
|
|
16
15
|
var _core = require("@dnd-kit/core");
|
|
17
16
|
var _sortable = require("@dnd-kit/sortable");
|
|
@@ -180,12 +179,12 @@ var ProUpload = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
|
|
|
180
179
|
var handleBeforeUpload = (file, fileList) => {
|
|
181
180
|
if (!(0, _uitls.validateFileExt)(extExt, file)) {
|
|
182
181
|
var _locale$ProUpload2;
|
|
183
|
-
|
|
182
|
+
_antd.message.error(`${_locale.default === null || _locale.default === void 0 || (_locale$ProUpload2 = _locale.default.ProUpload) === null || _locale$ProUpload2 === void 0 ? void 0 : _locale$ProUpload2.errorInfoExt}【${extExt.join('、')}】`);
|
|
184
183
|
return false;
|
|
185
184
|
}
|
|
186
185
|
if (!(0, _uitls.validateSize)(size, file)) {
|
|
187
186
|
var _locale$ProUpload3;
|
|
188
|
-
|
|
187
|
+
_antd.message.error(`${_locale.default === null || _locale.default === void 0 || (_locale$ProUpload3 = _locale.default.ProUpload) === null || _locale$ProUpload3 === void 0 ? void 0 : _locale$ProUpload3.errorInfoSize}${size}M`);
|
|
189
188
|
return false;
|
|
190
189
|
}
|
|
191
190
|
if (beforeUpload) {
|
|
@@ -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 {
|