@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
|
@@ -8,7 +8,7 @@ exports.default = void 0;
|
|
|
8
8
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
9
9
|
var _react = require("react");
|
|
10
10
|
var _lodash = require("lodash");
|
|
11
|
-
var
|
|
11
|
+
var _utils = require("../../utils");
|
|
12
12
|
/** FormList中被删除的行也会再触发一次响应式函数 排除这种场景 */
|
|
13
13
|
var isDeleteLine = (form, namePath) => {
|
|
14
14
|
if (namePath) {
|
|
@@ -30,7 +30,8 @@ var useShouldUpdate = props => {
|
|
|
30
30
|
component = props.component,
|
|
31
31
|
originComponent = props.originComponent,
|
|
32
32
|
type = props.type,
|
|
33
|
-
desensitization = props.desensitization
|
|
33
|
+
desensitization = props.desensitization,
|
|
34
|
+
shouldUpdateDebounce = props.shouldUpdateDebounce;
|
|
34
35
|
var _shouldUpdate = formItemProps.shouldUpdate,
|
|
35
36
|
name = formItemProps.name,
|
|
36
37
|
clearNotShow = formItemProps.clearNotShow,
|
|
@@ -38,22 +39,96 @@ var useShouldUpdate = props => {
|
|
|
38
39
|
namePath = formItemProps.namePath,
|
|
39
40
|
names = formItemProps.names,
|
|
40
41
|
dependNames = formItemProps.dependNames;
|
|
41
|
-
var timerRef = (0, _react.useRef)();
|
|
42
|
-
var
|
|
43
|
-
var
|
|
44
|
-
|
|
45
|
-
var
|
|
46
|
-
var
|
|
47
|
-
var
|
|
48
|
-
var
|
|
49
|
-
var
|
|
50
|
-
var
|
|
42
|
+
var timerRef = (0, _react.useRef)(null); // 清值防抖
|
|
43
|
+
var debouncedShouldUpdateRef = (0, _react.useRef)(null); // shouldUpdate防抖函数
|
|
44
|
+
var pendingValuesRef = (0, _react.useRef)(null); // 待处理的表单值
|
|
45
|
+
|
|
46
|
+
var needClear = (0, _react.useRef)(false); // 是否需要执行清值操作
|
|
47
|
+
var showRef = (0, _react.useRef)(false);
|
|
48
|
+
var disabledRef = (0, _react.useRef)(false);
|
|
49
|
+
var requiredRef = (0, _react.useRef)(false);
|
|
50
|
+
var rulesRef = (0, _react.useRef)([]);
|
|
51
|
+
var fieldPropsRef = (0, _react.useRef)(null);
|
|
52
|
+
var originComponentRef = (0, _react.useRef)(null);
|
|
53
|
+
var dependNamesRef = (0, _react.useRef)([]);
|
|
54
|
+
var desensitizationRef = (0, _react.useRef)([0, 0]);
|
|
51
55
|
var newComponent = originComponent || component; // 解决component默认赋值污染问题,需要使用originComponent
|
|
52
56
|
var _useState = (0, _react.useState)({}),
|
|
53
57
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
54
58
|
reRender = _useState2[1];
|
|
55
59
|
var values = {};
|
|
56
60
|
|
|
61
|
+
// 处理表单值更新的函数
|
|
62
|
+
var processValuesUpdate = currentValues => {
|
|
63
|
+
var _currentValues;
|
|
64
|
+
if (namePath) {
|
|
65
|
+
_currentValues = form.getFieldValue(namePath) || {};
|
|
66
|
+
} else {
|
|
67
|
+
_currentValues = currentValues;
|
|
68
|
+
}
|
|
69
|
+
var _show = (0, _lodash.isFunction)(show) ? Boolean(show(_currentValues, {
|
|
70
|
+
form,
|
|
71
|
+
index,
|
|
72
|
+
namePath
|
|
73
|
+
})) : show;
|
|
74
|
+
var _disabled = (0, _lodash.isFunction)(disabled) ? disabled(_currentValues, {
|
|
75
|
+
form,
|
|
76
|
+
index,
|
|
77
|
+
namePath
|
|
78
|
+
}) : disabled;
|
|
79
|
+
var _required = (0, _lodash.isFunction)(required) ? required(_currentValues, {
|
|
80
|
+
form,
|
|
81
|
+
index,
|
|
82
|
+
namePath
|
|
83
|
+
}) : required;
|
|
84
|
+
var _rules = (0, _lodash.isFunction)(rules) ? rules(_currentValues, {
|
|
85
|
+
form,
|
|
86
|
+
index,
|
|
87
|
+
namePath
|
|
88
|
+
}) : rules;
|
|
89
|
+
var _fieldProps = (0, _lodash.isFunction)(fieldProps) ? fieldProps(_currentValues, {
|
|
90
|
+
form,
|
|
91
|
+
index,
|
|
92
|
+
namePath
|
|
93
|
+
}) : fieldProps;
|
|
94
|
+
var _desensitization = (0, _lodash.isFunction)(desensitization) ? desensitization(_currentValues, {
|
|
95
|
+
form,
|
|
96
|
+
index,
|
|
97
|
+
namePath
|
|
98
|
+
}) : desensitization;
|
|
99
|
+
var equalRes = (0, _lodash.isEqualWith)(rulesRef.current, _rules, _utils.customEqualForFunction);
|
|
100
|
+
var proEqualRes = (0, _lodash.isEqualWith)(fieldPropsRef.current, _fieldProps, _utils.customEqualForFunction);
|
|
101
|
+
var desensitizationRes = (0, _lodash.isEqualWith)(desensitizationRef.current, _desensitization);
|
|
102
|
+
if (_show !== showRef.current || !(0, _lodash.isEqualWith)(disabledRef.current, _disabled, _utils.customEqualForFunction) || _required !== requiredRef.current || !equalRes || !proEqualRes || !desensitizationRes || _fieldProps !== null && _fieldProps !== void 0 && _fieldProps.transformResponse) {
|
|
103
|
+
showRef.current = _show;
|
|
104
|
+
disabledRef.current = _disabled;
|
|
105
|
+
requiredRef.current = _required;
|
|
106
|
+
rulesRef.current = _rules;
|
|
107
|
+
fieldPropsRef.current = _fieldProps;
|
|
108
|
+
desensitizationRef.current = _desensitization;
|
|
109
|
+
reRender({});
|
|
110
|
+
}
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
// 创建防抖函数
|
|
114
|
+
(0, _react.useEffect)(() => {
|
|
115
|
+
if (shouldUpdateDebounce > 0 && (dependNames !== null && dependNames !== void 0 && dependNames.length || (0, _lodash.isFunction)(show) || (0, _lodash.isFunction)(disabled) || (0, _lodash.isFunction)(required) || (0, _lodash.isFunction)(rules) || (0, _lodash.isFunction)(fieldProps) || (0, _lodash.isFunction)(originComponent) || (0, _lodash.isFunction)(desensitization))) {
|
|
116
|
+
debouncedShouldUpdateRef.current = (0, _lodash.debounce)(() => {
|
|
117
|
+
if (pendingValuesRef.current) {
|
|
118
|
+
var currentValues = pendingValuesRef.current;
|
|
119
|
+
pendingValuesRef.current = null;
|
|
120
|
+
|
|
121
|
+
// 使用最新的values重新计算状态
|
|
122
|
+
processValuesUpdate(currentValues);
|
|
123
|
+
}
|
|
124
|
+
}, shouldUpdateDebounce);
|
|
125
|
+
}
|
|
126
|
+
return () => {
|
|
127
|
+
var _debouncedShouldUpdat;
|
|
128
|
+
(_debouncedShouldUpdat = debouncedShouldUpdateRef.current) === null || _debouncedShouldUpdat === void 0 || _debouncedShouldUpdat.cancel();
|
|
129
|
+
};
|
|
130
|
+
}, [shouldUpdateDebounce, dependNames === null || dependNames === void 0 ? void 0 : dependNames.length, show, disabled, required, rules, fieldProps, originComponent, desensitization]);
|
|
131
|
+
|
|
57
132
|
// 不是动态函数直接返回
|
|
58
133
|
if (!(dependNames !== null && dependNames !== void 0 && dependNames.length) && !(0, _lodash.isFunction)(show) && !(0, _lodash.isFunction)(disabled) && !(0, _lodash.isFunction)(required) && !(0, _lodash.isFunction)(rules) && !(0, _lodash.isFunction)(fieldProps) && !(0, _lodash.isFunction)(originComponent) && !(0, _lodash.isFunction)(desensitization)) {
|
|
59
134
|
return {
|
|
@@ -157,10 +232,21 @@ var useShouldUpdate = props => {
|
|
|
157
232
|
// @ts-ignore formList场景取当前行数据,不取shouldUpdate变更后值
|
|
158
233
|
if (dependNames !== null && dependNames !== void 0 && dependNames.length) {
|
|
159
234
|
var curDependNamesValue = dependNames.map(name => (0, _lodash.get)(currentValues, name));
|
|
160
|
-
var dependNamesChanged = !(0, _lodash.isEqualWith)(dependNamesRef.current, curDependNamesValue,
|
|
235
|
+
var dependNamesChanged = !(0, _lodash.isEqualWith)(dependNamesRef.current, curDependNamesValue, _utils.customEqualForFunction);
|
|
161
236
|
dependNamesRef.current = curDependNamesValue;
|
|
162
237
|
if (!dependNamesChanged) return false;
|
|
163
238
|
}
|
|
239
|
+
|
|
240
|
+
// 如果启用了防抖且存在防抖函数
|
|
241
|
+
if (shouldUpdateDebounce > 0 && debouncedShouldUpdateRef.current) {
|
|
242
|
+
// 缓存最新的表单值
|
|
243
|
+
pendingValuesRef.current = currentValues;
|
|
244
|
+
// 触发防抖函数
|
|
245
|
+
debouncedShouldUpdateRef.current();
|
|
246
|
+
return false; // 暂时不更新,由防抖函数控制
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
// 原有的非防抖逻辑
|
|
164
250
|
var _currentValues;
|
|
165
251
|
if (namePath) {
|
|
166
252
|
// formList场景values取当前行数据
|
|
@@ -222,8 +308,8 @@ var useShouldUpdate = props => {
|
|
|
222
308
|
clearTimeout(timerRef.current);
|
|
223
309
|
}
|
|
224
310
|
}
|
|
225
|
-
var equalRes = (0, _lodash.isEqualWith)(rulesRef.current, _rules,
|
|
226
|
-
var proEqualRes = (0, _lodash.isEqualWith)(fieldPropsRef.current, _fieldProps,
|
|
311
|
+
var equalRes = (0, _lodash.isEqualWith)(rulesRef.current, _rules, _utils.customEqualForFunction);
|
|
312
|
+
var proEqualRes = (0, _lodash.isEqualWith)(fieldPropsRef.current, _fieldProps, _utils.customEqualForFunction);
|
|
227
313
|
var desensitizationRes = (0, _lodash.isEqualWith)(desensitizationRef.current, _desensitization);
|
|
228
314
|
if (_show !== showRef.current || _disabled !== disabledRef.current || _required !== requiredRef.current || !equalRes || !proEqualRes || !desensitizationRes || _fieldProps !== null && _fieldProps !== void 0 && _fieldProps.transformResponse // 防止fieldProps变更时,transformResponse根据fieldProps新值无法触发更新
|
|
229
315
|
) {
|
package/lib/ProIcon/index.js
CHANGED
|
@@ -5,16 +5,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
|
-
require("antd/es/tooltip/style");
|
|
9
|
-
var _tooltip = _interopRequireDefault(require("antd/es/tooltip"));
|
|
10
|
-
require("antd/es/space/style");
|
|
11
|
-
var _space = _interopRequireDefault(require("antd/es/space"));
|
|
12
|
-
require("antd/es/button/style");
|
|
13
|
-
var _button = _interopRequireDefault(require("antd/es/button"));
|
|
14
8
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
15
9
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
16
10
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
17
11
|
var _ahooks = require("ahooks");
|
|
12
|
+
var _antd = require("antd");
|
|
18
13
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
19
14
|
var _lodash = require("lodash");
|
|
20
15
|
var _reactSvg = require("react-svg");
|
|
@@ -174,9 +169,9 @@ var ProIcon = props => {
|
|
|
174
169
|
var RenderIcon = /*#__PURE__*/(0, _jsxRuntime.jsx)("span", (0, _objectSpread2.default)((0, _objectSpread2.default)({
|
|
175
170
|
className: "anticon"
|
|
176
171
|
}, reset), {}, {
|
|
177
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
172
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_antd.Tooltip, {
|
|
178
173
|
title: iconText,
|
|
179
|
-
children: buttonIcon ? /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
174
|
+
children: buttonIcon ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_antd.Button, (0, _objectSpread2.default)({
|
|
180
175
|
style: {
|
|
181
176
|
width: size,
|
|
182
177
|
height: size,
|
|
@@ -187,7 +182,7 @@ var ProIcon = props => {
|
|
|
187
182
|
},
|
|
188
183
|
type: "text",
|
|
189
184
|
icon: icon
|
|
190
|
-
}, buttonProps)) : /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
185
|
+
}, buttonProps)) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_antd.Space, {
|
|
191
186
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
192
187
|
style: {
|
|
193
188
|
width: size,
|
|
@@ -226,7 +221,8 @@ var ProIcon = props => {
|
|
|
226
221
|
theme: {
|
|
227
222
|
primaryColor,
|
|
228
223
|
qiankunPrimaryColor: value === null || value === void 0 ? void 0 : value.trim()
|
|
229
|
-
}
|
|
224
|
+
},
|
|
225
|
+
forms: {}
|
|
230
226
|
}
|
|
231
227
|
});
|
|
232
228
|
}
|
|
@@ -260,7 +256,8 @@ var ProIcon = props => {
|
|
|
260
256
|
theme: {
|
|
261
257
|
primaryColor,
|
|
262
258
|
qiankunPrimaryColor: extendFromMainColor
|
|
263
|
-
}
|
|
259
|
+
},
|
|
260
|
+
forms: {}
|
|
264
261
|
}
|
|
265
262
|
});
|
|
266
263
|
}
|
|
@@ -278,9 +275,9 @@ var ProIcon = props => {
|
|
|
278
275
|
IconInstance: RenderIcon
|
|
279
276
|
});
|
|
280
277
|
}, [_config, primaryColor, qiankunPrimaryColor, language, svgProps]);
|
|
281
|
-
return !isExtendButtonMode ? IconInstance : /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
278
|
+
return !isExtendButtonMode ? IconInstance : /*#__PURE__*/(0, _jsxRuntime.jsx)(_antd.Tooltip, {
|
|
282
279
|
title: tooltip,
|
|
283
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
280
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_antd.Button, (0, _objectSpread2.default)((0, _objectSpread2.default)((0, _objectSpread2.default)({
|
|
284
281
|
type: isIconMode ? 'text' : (buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.type) || 'link',
|
|
285
282
|
className: proIconClassNames,
|
|
286
283
|
disabled: disabled,
|
|
@@ -22,7 +22,7 @@ var Header = props => {
|
|
|
22
22
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
23
23
|
className: (0, _classnames.default)({
|
|
24
24
|
'pro-layout-header': true,
|
|
25
|
-
'pro-layout-header-pure': typeof pure !== 'boolean' ? pure.topMenu : pure
|
|
25
|
+
'pro-layout-header-pure': typeof pure !== 'boolean' ? pure === null || pure === void 0 ? void 0 : pure.topMenu : pure
|
|
26
26
|
}),
|
|
27
27
|
style: {
|
|
28
28
|
height: headerHeight
|
|
@@ -5,12 +5,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
|
-
require("antd/es/tooltip/style");
|
|
9
|
-
var _tooltip = _interopRequireDefault(require("antd/es/tooltip"));
|
|
10
|
-
require("antd/es/popover/style");
|
|
11
|
-
var _popover = _interopRequireDefault(require("antd/es/popover"));
|
|
12
8
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
13
9
|
var _react = require("react");
|
|
10
|
+
var _antd = require("antd");
|
|
14
11
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
15
12
|
var _reactRouterDom = require("react-router-dom");
|
|
16
13
|
var _index = require("../../index");
|
|
@@ -94,7 +91,7 @@ var FoldMenu = props => {
|
|
|
94
91
|
})]
|
|
95
92
|
})
|
|
96
93
|
}, `${id}-${name}`);
|
|
97
|
-
return hasChildrenMenu ? /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
94
|
+
return hasChildrenMenu ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_antd.Popover, {
|
|
98
95
|
mouseEnterDelay: 0,
|
|
99
96
|
content: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SideMenu.default, {
|
|
100
97
|
dataSource: (0, _objectSpread2.default)((0, _objectSpread2.default)({}, dataSource), {}, {
|
|
@@ -126,7 +123,7 @@ var FoldMenu = props => {
|
|
|
126
123
|
},
|
|
127
124
|
children: LiNode
|
|
128
125
|
})
|
|
129
|
-
}, `${id}-${name}`) : !collapsed ? /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
126
|
+
}, `${id}-${name}`) : !collapsed ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_antd.Tooltip, {
|
|
130
127
|
placement: "right",
|
|
131
128
|
title: name,
|
|
132
129
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
@@ -1,38 +1,35 @@
|
|
|
1
|
-
@root-entry-name: 'default';
|
|
2
|
-
@import (reference) '~antd/es/style/themes/index.less';
|
|
3
1
|
|
|
4
2
|
.pro-layout-menu-fold-list {
|
|
5
3
|
padding-top: 4px;
|
|
6
|
-
overflow-y
|
|
4
|
+
overflow-y: auto;
|
|
7
5
|
|
|
8
6
|
li {
|
|
9
|
-
width
|
|
10
|
-
min-height
|
|
11
|
-
padding
|
|
12
|
-
overflow
|
|
7
|
+
width: 100%;
|
|
8
|
+
min-height: 48px;
|
|
9
|
+
padding: 12px;
|
|
10
|
+
overflow: hidden;
|
|
13
11
|
text-overflow: ellipsis;
|
|
14
12
|
|
|
15
13
|
div {
|
|
16
|
-
display
|
|
17
|
-
align-items
|
|
14
|
+
display: flex;
|
|
15
|
+
align-items: center;
|
|
18
16
|
justify-content: center;
|
|
19
|
-
color
|
|
17
|
+
color: var(--zaui-text, #343434);
|
|
20
18
|
|
|
21
19
|
.pro-layout-icon {
|
|
22
|
-
flex
|
|
23
|
-
width
|
|
24
|
-
height : 20px;
|
|
20
|
+
flex: 0 0 20px;
|
|
21
|
+
width: 20px;
|
|
25
22
|
min-width: 20px;
|
|
26
|
-
|
|
23
|
+
height: 20px;
|
|
24
|
+
color: #fff;
|
|
27
25
|
}
|
|
28
26
|
|
|
29
27
|
h2 {
|
|
30
|
-
flex-grow : 1;
|
|
31
|
-
margin-bottom: 0;
|
|
32
|
-
opacity : 1;
|
|
33
|
-
transition : opacity 0.3s cubic-bezier(0.645, 0.045, 0.355, 1),
|
|
34
|
-
margin 0.3s, color 0.3s;
|
|
35
28
|
display: none;
|
|
29
|
+
flex-grow: 1;
|
|
30
|
+
margin-bottom: 0;
|
|
31
|
+
opacity: 1;
|
|
32
|
+
transition: opacity 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), margin 0.3s, color 0.3s;
|
|
36
33
|
}
|
|
37
34
|
}
|
|
38
35
|
|
|
@@ -42,20 +39,20 @@
|
|
|
42
39
|
|
|
43
40
|
i {
|
|
44
41
|
display: inline-block;
|
|
45
|
-
width
|
|
46
|
-
color
|
|
42
|
+
width: 19px;
|
|
43
|
+
color: #909090;
|
|
47
44
|
}
|
|
48
45
|
|
|
49
46
|
h2 {
|
|
50
|
-
display
|
|
47
|
+
display: inline-block;
|
|
51
48
|
padding-left: var(--zaui-space-size-sm, 8px);
|
|
52
|
-
color
|
|
53
|
-
font-weight
|
|
54
|
-
font-size
|
|
49
|
+
color: var(--zaui-base-bg, #ffffff);
|
|
50
|
+
font-weight: normal;
|
|
51
|
+
font-size: var(--zaui-font-size-md, 14px);
|
|
55
52
|
}
|
|
56
53
|
|
|
57
54
|
&.active {
|
|
58
|
-
background-color: var(--zaui-brand, #
|
|
55
|
+
background-color: var(--zaui-brand, #006aff);
|
|
59
56
|
|
|
60
57
|
a {
|
|
61
58
|
h2 {
|
|
@@ -67,37 +64,41 @@
|
|
|
67
64
|
}
|
|
68
65
|
|
|
69
66
|
.pro-layout-menu-tooltip {
|
|
70
|
-
top
|
|
71
|
-
transform
|
|
72
|
-
transition: none !important
|
|
67
|
+
top: 48px !important;
|
|
68
|
+
transform: none !important;
|
|
69
|
+
transition: none !important;
|
|
73
70
|
}
|
|
74
71
|
|
|
75
72
|
.pro-layout-menu-tooltip.pro-layout-menu-tooltip-has-notice {
|
|
76
|
-
top: 80px !important
|
|
73
|
+
top: 80px !important;
|
|
77
74
|
}
|
|
78
75
|
|
|
79
76
|
.pro-layout-menu-tooltip.pro-layout-menu-tooltip-nav-open.@{ant-prefix}-popover-placement-rightBottom,
|
|
80
77
|
.pro-layout-menu-tooltip.pro-layout-menu-tooltip-nav-open.@{ant-prefix}-popover-placement-rightTop {
|
|
81
|
-
left: 220px !important
|
|
78
|
+
left: 220px !important;
|
|
82
79
|
}
|
|
83
80
|
|
|
84
81
|
.pro-layout-menu-tooltip.@{ant-prefix}-popover-placement-rightBottom,
|
|
85
82
|
.pro-layout-menu-tooltip.@{ant-prefix}-popover-placement-rightTop {
|
|
86
|
-
position
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
padding-left: 0
|
|
83
|
+
position: fixed;
|
|
84
|
+
left: 49px !important;
|
|
85
|
+
z-index: 99;
|
|
86
|
+
padding-left: 0;
|
|
87
|
+
|
|
88
|
+
.@{ant-prefix}-popover-arrow {
|
|
89
|
+
display: none;
|
|
90
|
+
}
|
|
90
91
|
}
|
|
91
92
|
|
|
92
93
|
.pro-layout-menu-tooltip .@{ant-prefix}-popover-inner-content {
|
|
93
|
-
padding: 0
|
|
94
|
+
padding: 0;
|
|
94
95
|
}
|
|
95
96
|
|
|
96
|
-
.pro-layout-menu-tooltip .@{ant-prefix}-popover-content
|
|
97
|
-
display: none
|
|
97
|
+
.pro-layout-menu-tooltip .@{ant-prefix}-popover-content > .@{ant-prefix}-popover-arrow {
|
|
98
|
+
display: none;
|
|
98
99
|
}
|
|
99
100
|
|
|
100
101
|
.pro-layout-menu-tooltip .@{ant-prefix}-popover-content .@{ant-prefix}-popover-inner {
|
|
101
|
-
padding
|
|
102
|
+
padding: 0;
|
|
102
103
|
box-shadow: 2px 0px 5px 0px rgba(0, 55, 93, 0.1);
|
|
103
104
|
}
|
|
@@ -5,10 +5,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
|
-
require("antd/es/menu/style");
|
|
9
|
-
var _menu = _interopRequireDefault(require("antd/es/menu"));
|
|
10
8
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
11
9
|
var _react = require("react");
|
|
10
|
+
var _antd = require("antd");
|
|
12
11
|
var _ahooks = require("ahooks");
|
|
13
12
|
var _icons = require("@ant-design/icons");
|
|
14
13
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
@@ -137,7 +136,7 @@ var OpenMenu = props => {
|
|
|
137
136
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
138
137
|
className: cls,
|
|
139
138
|
style: style,
|
|
140
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
139
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_antd.Menu, {
|
|
141
140
|
mode: "inline"
|
|
142
141
|
// @ts-ignore
|
|
143
142
|
,
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
@root-entry-name: 'default';
|
|
2
|
-
@import (reference) '~antd/es/style/themes/index.less';
|
|
3
1
|
|
|
4
2
|
.pro-layout-sider-menu {
|
|
5
3
|
width: 220px;
|
|
@@ -61,7 +59,7 @@
|
|
|
61
59
|
display: none;
|
|
62
60
|
|
|
63
61
|
& ~ h2 {
|
|
64
|
-
margin-left:
|
|
62
|
+
margin-left: 32px;
|
|
65
63
|
}
|
|
66
64
|
}
|
|
67
65
|
}
|
|
@@ -93,12 +91,16 @@
|
|
|
93
91
|
color: #909090;
|
|
94
92
|
}
|
|
95
93
|
|
|
94
|
+
|
|
95
|
+
|
|
96
96
|
.@{ant-prefix}-menu-submenu-title,
|
|
97
97
|
&.@{ant-prefix}-menu-root > .@{ant-prefix}-menu-item-only-child,
|
|
98
98
|
&.@{ant-prefix}-menu-sub.@{ant-prefix}-menu-inline > .@{ant-prefix}-menu-item {
|
|
99
99
|
min-height: 40px;
|
|
100
|
-
padding-top:
|
|
101
|
-
padding-bottom:
|
|
100
|
+
padding-top: 8px;
|
|
101
|
+
padding-bottom: 8px;
|
|
102
|
+
width: 100%;
|
|
103
|
+
border-radius: 0;
|
|
102
104
|
}
|
|
103
105
|
}
|
|
104
106
|
}
|
|
@@ -34,7 +34,7 @@ var Menu = props => {
|
|
|
34
34
|
} else if (dataSource) {
|
|
35
35
|
menus = dataSource === null || dataSource === void 0 ? void 0 : dataSource.menus;
|
|
36
36
|
}
|
|
37
|
-
if (pure.leftMenu || pure === true) {
|
|
37
|
+
if (pure !== null && pure !== void 0 && pure.leftMenu || pure === true) {
|
|
38
38
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {});
|
|
39
39
|
}
|
|
40
40
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
@@ -5,20 +5,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
|
-
require("antd/es/descriptions/style");
|
|
9
|
-
var _descriptions = _interopRequireDefault(require("antd/es/descriptions"));
|
|
10
|
-
require("antd/es/space/style");
|
|
11
|
-
var _space = _interopRequireDefault(require("antd/es/space"));
|
|
12
8
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
13
|
-
require("antd/es/collapse/style");
|
|
14
|
-
var _collapse = _interopRequireDefault(require("antd/es/collapse"));
|
|
15
9
|
var _react = require("react");
|
|
10
|
+
var _antd = require("antd");
|
|
16
11
|
var _icons = require("@ant-design/icons");
|
|
17
12
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
18
13
|
var _fold = _interopRequireDefault(require("../../../assets/fold.svg"));
|
|
19
14
|
var _index = _interopRequireDefault(require("../../../ProIcon/index"));
|
|
20
15
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
21
|
-
var Panel = _collapse.default.Panel;
|
|
22
16
|
var ProCollapse = props => {
|
|
23
17
|
var title = props.title,
|
|
24
18
|
id = props.id,
|
|
@@ -68,29 +62,21 @@ var ProCollapse = props => {
|
|
|
68
62
|
style: contentStyle,
|
|
69
63
|
children: children
|
|
70
64
|
});
|
|
71
|
-
|
|
65
|
+
|
|
66
|
+
// 生成 Collapse items 配置
|
|
67
|
+
var getCollapseItems = () => {
|
|
72
68
|
var _title = title;
|
|
69
|
+
var panelClassName = 'pro-collapse-panel';
|
|
70
|
+
var panelProps = {};
|
|
73
71
|
if (level === '2') {
|
|
74
|
-
|
|
72
|
+
panelClassName = (0, _classnames.default)({
|
|
75
73
|
'pro-collapse-level2-collapse': towCollapse,
|
|
76
74
|
'pro-collapse-level2-no-collapse': !towCollapse,
|
|
77
75
|
'pro-collapse-panel': true
|
|
78
76
|
});
|
|
79
|
-
var hasCollapse = {};
|
|
80
77
|
if (!towCollapse) {
|
|
81
|
-
|
|
78
|
+
panelProps.collapsible = 'disabled';
|
|
82
79
|
}
|
|
83
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(Panel, (0, _objectSpread2.default)((0, _objectSpread2.default)((0, _objectSpread2.default)({
|
|
84
|
-
header: _title,
|
|
85
|
-
className: level2Panel,
|
|
86
|
-
extra: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
87
|
-
className: "extra-info",
|
|
88
|
-
children: extra
|
|
89
|
-
}),
|
|
90
|
-
forceRender: true
|
|
91
|
-
}, hasCollapse), collapsePanelProps), {}, {
|
|
92
|
-
children: content
|
|
93
|
-
}), "1");
|
|
94
80
|
}
|
|
95
81
|
if (level === '3') {
|
|
96
82
|
var level3Panel = (0, _classnames.default)({
|
|
@@ -98,24 +84,24 @@ var ProCollapse = props => {
|
|
|
98
84
|
'pro-collapse-level3-no-collapse': !threeCollapse,
|
|
99
85
|
'pro-collapse-panel': true
|
|
100
86
|
});
|
|
101
|
-
var
|
|
87
|
+
var hasCollapse = {};
|
|
102
88
|
if (!threeCollapse) {
|
|
103
|
-
|
|
89
|
+
hasCollapse.collapsible = 'disabled';
|
|
104
90
|
}
|
|
105
|
-
return
|
|
106
|
-
|
|
107
|
-
|
|
91
|
+
return [(0, _objectSpread2.default)((0, _objectSpread2.default)({
|
|
92
|
+
key: '1',
|
|
93
|
+
label: _title,
|
|
94
|
+
children: content,
|
|
108
95
|
extra: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
109
96
|
className: "extra-info",
|
|
110
97
|
children: extra
|
|
111
98
|
}),
|
|
99
|
+
className: level3Panel,
|
|
112
100
|
forceRender: true
|
|
113
|
-
},
|
|
114
|
-
children: content
|
|
115
|
-
}), "1");
|
|
101
|
+
}, hasCollapse), collapsePanelProps)];
|
|
116
102
|
}
|
|
117
103
|
if (icon) {
|
|
118
|
-
_title = /*#__PURE__*/(0, _jsxRuntime.jsxs)(
|
|
104
|
+
_title = /*#__PURE__*/(0, _jsxRuntime.jsxs)(_antd.Space, {
|
|
119
105
|
size: 8,
|
|
120
106
|
align: "center",
|
|
121
107
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
@@ -129,25 +115,25 @@ var ProCollapse = props => {
|
|
|
129
115
|
}), title]
|
|
130
116
|
});
|
|
131
117
|
}
|
|
132
|
-
return
|
|
133
|
-
|
|
134
|
-
|
|
118
|
+
return [(0, _objectSpread2.default)((0, _objectSpread2.default)({
|
|
119
|
+
key: '1',
|
|
120
|
+
label: _title,
|
|
121
|
+
children: content,
|
|
135
122
|
extra: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
136
123
|
className: "extra-info",
|
|
137
124
|
children: extra
|
|
138
125
|
}),
|
|
126
|
+
className: panelClassName,
|
|
139
127
|
forceRender: true
|
|
140
|
-
},
|
|
141
|
-
children: content
|
|
142
|
-
}), "1");
|
|
128
|
+
}, panelProps), collapsePanelProps)];
|
|
143
129
|
};
|
|
144
130
|
var renderTitleList = () => {
|
|
145
131
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
146
132
|
className: cls,
|
|
147
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
133
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_antd.Descriptions, {
|
|
148
134
|
column: column,
|
|
149
135
|
children: titleList === null || titleList === void 0 ? void 0 : titleList.map(item => {
|
|
150
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
136
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_antd.Descriptions.Item, {
|
|
151
137
|
label: item.label,
|
|
152
138
|
children: item.value || '-'
|
|
153
139
|
}, item.label);
|
|
@@ -188,7 +174,7 @@ var ProCollapse = props => {
|
|
|
188
174
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
189
175
|
id: id,
|
|
190
176
|
style: style,
|
|
191
|
-
children: Array.isArray(titleList) && titleList.length ? renderTitleList() : /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
177
|
+
children: Array.isArray(titleList) && titleList.length ? renderTitleList() : /*#__PURE__*/(0, _jsxRuntime.jsx)(_antd.Collapse, (0, _objectSpread2.default)({
|
|
192
178
|
className: cls,
|
|
193
179
|
bordered: false,
|
|
194
180
|
expandIcon: _ref => {
|
|
@@ -199,10 +185,9 @@ var ProCollapse = props => {
|
|
|
199
185
|
},
|
|
200
186
|
expandIconPosition: "end",
|
|
201
187
|
defaultActiveKey: folding ? [] : ['1'],
|
|
202
|
-
onChange: onChange
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
}))
|
|
188
|
+
onChange: onChange,
|
|
189
|
+
items: getCollapseItems()
|
|
190
|
+
}, finalCollapseProps))
|
|
206
191
|
});
|
|
207
192
|
};
|
|
208
193
|
var _default = exports.default = ProCollapse;
|