@ant-design/pro-components 3.1.3-1 → 3.1.5-0
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/dist/pro-components.min.js +1 -1
- package/es/card/ProCard.js +15 -7
- package/es/card/components/Actions/index.js +1 -4
- package/es/card/components/Card/index.js +60 -28
- package/es/card/components/Card/style.js +46 -9
- package/es/card/components/CheckCard/Group.js +1 -3
- package/es/card/components/CheckCard/index.js +0 -1
- package/es/card/components/Divider/index.d.ts +1 -1
- package/es/card/components/Divider/index.js +2 -2
- package/es/card/components/Divider/style.d.ts +4 -1
- package/es/card/components/Divider/style.js +6 -39
- package/es/card/components/Statistic/index.js +3 -3
- package/es/card/components/StatisticCard/index.js +1 -1
- package/es/card/typing.d.ts +29 -14
- package/es/descriptions/index.d.ts +3 -5
- package/es/descriptions/index.js +6 -6
- package/es/descriptions/useFetchData.js +0 -1
- package/es/field/AllProField.d.ts +2 -0
- package/es/field/AllProField.js +3 -4
- package/es/field/PureProField.d.ts +2 -0
- package/es/field/PureProField.js +2 -5
- package/es/field/components/Cascader/index.js +8 -1
- package/es/field/components/Checkbox/index.js +7 -6
- package/es/field/components/DatePicker/index.d.ts +1 -1
- package/es/field/components/DatePicker/index.js +13 -1
- package/es/field/components/Digit/index.js +20 -3
- package/es/field/components/DigitRange/index.js +1 -0
- package/es/field/components/Money/index.js +51 -3
- package/es/field/components/Options/index.js +0 -3
- package/es/field/components/Password/index.js +12 -11
- package/es/field/components/Percent/util.d.ts +1 -1
- package/es/field/components/Radio/index.js +5 -1
- package/es/field/components/RangePicker/index.d.ts +1 -1
- package/es/field/components/Segmented/index.js +2 -1
- package/es/field/components/Select/SearchSelect/index.js +0 -1
- package/es/field/components/Select/index.d.ts +1 -1
- package/es/field/components/Select/index.js +1 -1
- package/es/field/components/Switch/index.js +10 -3
- package/es/field/components/Text/index.js +11 -2
- package/es/field/components/TextArea/index.js +6 -3
- package/es/field/components/TimePicker/index.js +10 -1
- package/es/field/components/TreeSelect/index.d.ts +2 -12
- package/es/field/components/TreeSelect/index.js +31 -17
- package/es/form/BaseForm/BaseForm.js +4 -6
- package/es/form/BaseForm/LightWrapper/index.d.ts +2 -1
- package/es/form/BaseForm/Submitter/index.d.ts +1 -1
- package/es/form/components/Captcha/index.js +0 -3
- package/es/form/components/Checkbox/index.js +5 -1
- package/es/form/components/DatePicker/index.js +0 -2
- package/es/form/components/Digit/DigitRange.js +5 -2
- package/es/form/components/Digit/index.js +7 -2
- package/es/form/components/FieldSet/index.js +16 -6
- package/es/form/components/FormItem/FormItemRender/index.d.ts +1 -1
- package/es/form/components/FormItem/FormItemRender/index.js +10 -2
- package/es/form/components/FormItem/Group/index.js +1 -1
- package/es/form/components/FormItem/index.js +9 -7
- package/es/form/components/FormItem/warpField.js +3 -15
- package/es/form/components/List/ListContainer.js +2 -1
- package/es/form/components/List/index.d.ts +1 -1
- package/es/form/components/List/index.js +0 -2
- package/es/form/components/Radio/index.js +5 -4
- package/es/form/components/SchemaForm/index.js +0 -1
- package/es/form/components/SchemaForm/layoutType/StepsForm.js +0 -1
- package/es/form/components/Select/index.js +11 -2
- package/es/form/components/Text/index.js +0 -3
- package/es/form/components/UploadButton/index.js +4 -2
- package/es/form/components/UploadDragger/index.js +0 -1
- package/es/form/helpers/grid.js +1 -5
- package/es/form/layouts/DrawerForm/index.d.ts +4 -4
- package/es/form/layouts/DrawerForm/index.js +2 -6
- package/es/form/layouts/LightFilter/index.js +5 -6
- package/es/form/layouts/LoginForm/index.js +8 -8
- package/es/form/layouts/LoginFormPage/index.js +15 -15
- package/es/form/layouts/ModalForm/index.d.ts +2 -2
- package/es/form/layouts/ModalForm/index.js +1 -4
- package/es/form/layouts/QueryFilter/Actions.js +2 -1
- package/es/form/layouts/QueryFilter/index.js +40 -24
- package/es/form/layouts/StepsForm/StepForm.js +0 -1
- package/es/form/layouts/StepsForm/index.js +5 -14
- package/es/layout/ProLayout.d.ts +1 -1
- package/es/layout/ProLayout.js +2 -7
- package/es/layout/components/AppsLogoComponents/DefaultContent.js +6 -5
- package/es/layout/components/AppsLogoComponents/SimpleContent.js +6 -5
- package/es/layout/components/AppsLogoComponents/style/index.js +4 -0
- package/es/layout/components/FooterToolbar/index.d.ts +1 -1
- package/es/layout/components/FooterToolbar/index.js +2 -5
- package/es/layout/components/GlobalFooter/index.js +3 -3
- package/es/layout/components/GlobalHeader/ActionsContent.js +6 -7
- package/es/layout/components/GlobalHeader/index.js +1 -1
- package/es/layout/components/GridContent/index.js +1 -1
- package/es/layout/components/Header/index.js +1 -3
- package/es/layout/components/Help/ProHelpPanel.js +11 -10
- package/es/layout/components/PageContainer/index.js +9 -10
- package/es/layout/components/PageContainer/style/index.js +4 -0
- package/es/layout/components/PageHeader/index.js +10 -10
- package/es/layout/components/SettingDrawer/BlockCheckbox.js +2 -3
- package/es/layout/components/SettingDrawer/LayoutChange.js +3 -2
- package/es/layout/components/SettingDrawer/RegionalChange.js +3 -2
- package/es/layout/components/SettingDrawer/ThemeColor.js +3 -2
- package/es/layout/components/SettingDrawer/index.js +5 -5
- package/es/layout/components/SettingDrawer/style/index.js +4 -0
- package/es/layout/components/SiderMenu/BaseMenu.js +5 -9
- package/es/layout/components/SiderMenu/SiderMenu.js +6 -8
- package/es/layout/components/SiderMenu/index.js +0 -1
- package/es/layout/components/TopNavHeader/index.js +4 -5
- package/es/layout/style/index.js +4 -0
- package/es/layout/utils/getBreadcrumbProps.js +1 -1
- package/es/layout/utils/getMenuData.js +0 -1
- package/es/list/Item.d.ts +4 -7
- package/es/list/Item.js +82 -104
- package/es/list/ListView.d.ts +6 -4
- package/es/list/ListView.js +42 -55
- package/es/list/ProListBase.d.ts +74 -0
- package/es/list/ProListBase.js +358 -0
- package/es/list/constants.d.ts +2 -2
- package/es/list/constants.js +2 -5
- package/es/list/index.d.ts +23 -13
- package/es/list/index.js +78 -41
- package/es/list/style/index.d.ts +0 -1
- package/es/list/style/index.js +228 -86
- package/es/provider/index.d.ts +2 -2
- package/es/provider/index.js +0 -3
- package/es/provider/useStyle/index.d.ts +1 -21
- package/es/provider/useStyle/index.js +6 -3
- package/es/skeleton/components/Descriptions/index.js +1 -4
- package/es/skeleton/components/List/index.js +1 -4
- package/es/table/Store/Provide.js +0 -2
- package/es/table/Table.js +17 -17
- package/es/table/components/Alert/index.js +6 -5
- package/es/table/components/ColumnSetting/index.js +9 -10
- package/es/table/components/DragSortTable/index.js +8 -4
- package/es/table/components/EditableTable/index.d.ts +1 -1
- package/es/table/components/EditableTable/index.js +6 -8
- package/es/table/components/ListToolBar/HeaderMenu.d.ts +1 -0
- package/es/table/components/ListToolBar/HeaderMenu.js +4 -3
- package/es/table/components/ListToolBar/index.d.ts +1 -1
- package/es/table/components/ListToolBar/index.js +18 -21
- package/es/table/components/ListToolBar/style.js +3 -3
- package/es/table/components/ToolBar/index.d.ts +1 -1
- package/es/table/style/index.js +4 -0
- package/es/table/typing.d.ts +10 -5
- package/es/table/useFetchData.js +4 -4
- package/es/table/utils/cellRenderToFromItem.js +2 -4
- package/es/table/utils/index.js +0 -1
- package/es/table/utils/useDragSort.js +1 -1
- package/es/utils/components/DropdownFooter/index.d.ts +1 -1
- package/es/utils/components/FieldLabel/index.js +1 -1
- package/es/utils/components/FilterDropdown/index.d.ts +1 -1
- package/es/utils/components/FilterDropdown/index.js +1 -1
- package/es/utils/components/InlineErrorFormItem/index.js +5 -4
- package/es/utils/components/LabelIconTip/index.d.ts +3 -4
- package/es/utils/components/LabelIconTip/index.js +2 -2
- package/es/utils/genCopyable/index.d.ts +6 -0
- package/es/utils/genCopyable/index.js +28 -8
- package/es/utils/hooks/useDebounceValue/index.js +1 -3
- package/es/utils/hooks/useDeepCompareEffect/index.js +0 -2
- package/es/utils/hooks/useFetchData/index.js +0 -2
- package/es/utils/index.d.ts +2 -1
- package/es/utils/isDeepEqualReact/index.js +0 -8
- package/es/utils/isUrl/index.js +1 -1
- package/es/utils/merge/index.js +0 -3
- package/es/utils/nanoid/index.d.ts +1 -3
- package/es/utils/nanoid/index.js +2 -10
- package/es/utils/proFieldParsingText/index.d.ts +2 -2
- package/es/utils/proFieldParsingText/index.js +3 -5
- package/es/utils/typing.d.ts +2 -1
- package/es/utils/useEditableArray/index.js +1 -1
- package/es/utils/useEditableMap/index.js +1 -1
- package/guidelines/components/pro-card.md +5 -4
- package/guidelines/overview-components.md +1 -1
- package/lib/card/ProCard.js +15 -7
- package/lib/card/components/Actions/index.js +1 -4
- package/lib/card/components/Card/index.js +60 -28
- package/lib/card/components/Card/style.js +46 -9
- package/lib/card/components/CheckCard/Group.js +1 -3
- package/lib/card/components/CheckCard/index.js +0 -1
- package/lib/card/components/Divider/index.d.ts +1 -1
- package/lib/card/components/Divider/index.js +2 -2
- package/lib/card/components/Divider/style.d.ts +4 -1
- package/lib/card/components/Divider/style.js +5 -39
- package/lib/card/components/Statistic/index.js +3 -3
- package/lib/card/components/StatisticCard/index.js +1 -1
- package/lib/card/typing.d.ts +29 -14
- package/lib/descriptions/index.d.ts +3 -5
- package/lib/descriptions/index.js +6 -6
- package/lib/descriptions/useFetchData.js +0 -1
- package/lib/field/AllProField.d.ts +2 -0
- package/lib/field/AllProField.js +3 -4
- package/lib/field/PureProField.d.ts +2 -0
- package/lib/field/PureProField.js +2 -5
- package/lib/field/components/Cascader/index.js +8 -1
- package/lib/field/components/Checkbox/index.js +7 -6
- package/lib/field/components/DatePicker/index.d.ts +1 -1
- package/lib/field/components/DatePicker/index.js +13 -1
- package/lib/field/components/Digit/index.js +20 -3
- package/lib/field/components/DigitRange/index.js +1 -0
- package/lib/field/components/Money/index.js +50 -2
- package/lib/field/components/Options/index.js +0 -3
- package/lib/field/components/Password/index.js +11 -10
- package/lib/field/components/Percent/util.d.ts +1 -1
- package/lib/field/components/Radio/index.js +5 -1
- package/lib/field/components/RangePicker/index.d.ts +1 -1
- package/lib/field/components/Segmented/index.js +2 -1
- package/lib/field/components/Select/SearchSelect/index.js +0 -1
- package/lib/field/components/Select/index.d.ts +1 -1
- package/lib/field/components/Select/index.js +1 -1
- package/lib/field/components/Switch/index.js +10 -3
- package/lib/field/components/Text/index.js +11 -2
- package/lib/field/components/TextArea/index.js +6 -3
- package/lib/field/components/TimePicker/index.js +10 -1
- package/lib/field/components/TreeSelect/index.d.ts +2 -12
- package/lib/field/components/TreeSelect/index.js +30 -16
- package/lib/form/BaseForm/BaseForm.js +4 -7
- package/lib/form/BaseForm/LightWrapper/index.d.ts +2 -1
- package/lib/form/BaseForm/Submitter/index.d.ts +1 -1
- package/lib/form/components/Captcha/index.js +0 -3
- package/lib/form/components/Checkbox/index.js +5 -1
- package/lib/form/components/DatePicker/index.js +0 -2
- package/lib/form/components/Digit/DigitRange.js +5 -2
- package/lib/form/components/Digit/index.js +7 -2
- package/lib/form/components/FieldSet/index.js +16 -6
- package/lib/form/components/FormItem/FormItemRender/index.d.ts +1 -1
- package/lib/form/components/FormItem/FormItemRender/index.js +10 -2
- package/lib/form/components/FormItem/Group/index.js +1 -1
- package/lib/form/components/FormItem/index.js +9 -7
- package/lib/form/components/FormItem/warpField.js +3 -15
- package/lib/form/components/List/ListContainer.js +2 -1
- package/lib/form/components/List/index.d.ts +1 -1
- package/lib/form/components/List/index.js +0 -2
- package/lib/form/components/Radio/index.js +5 -4
- package/lib/form/components/SchemaForm/index.js +0 -1
- package/lib/form/components/SchemaForm/layoutType/StepsForm.js +0 -1
- package/lib/form/components/Select/index.js +11 -2
- package/lib/form/components/Text/index.js +0 -3
- package/lib/form/components/UploadButton/index.js +4 -2
- package/lib/form/components/UploadDragger/index.js +0 -1
- package/lib/form/helpers/grid.js +1 -5
- package/lib/form/layouts/DrawerForm/index.d.ts +4 -4
- package/lib/form/layouts/DrawerForm/index.js +2 -6
- package/lib/form/layouts/LightFilter/index.js +5 -6
- package/lib/form/layouts/LoginForm/index.js +8 -8
- package/lib/form/layouts/LoginFormPage/index.js +15 -15
- package/lib/form/layouts/ModalForm/index.d.ts +2 -2
- package/lib/form/layouts/ModalForm/index.js +1 -4
- package/lib/form/layouts/QueryFilter/Actions.js +2 -1
- package/lib/form/layouts/QueryFilter/index.js +39 -24
- package/lib/form/layouts/StepsForm/StepForm.js +0 -1
- package/lib/form/layouts/StepsForm/index.js +5 -14
- package/lib/layout/ProLayout.d.ts +1 -1
- package/lib/layout/ProLayout.js +2 -7
- package/lib/layout/components/AppsLogoComponents/DefaultContent.js +6 -5
- package/lib/layout/components/AppsLogoComponents/SimpleContent.js +6 -5
- package/lib/layout/components/AppsLogoComponents/style/index.js +4 -0
- package/lib/layout/components/FooterToolbar/index.d.ts +1 -1
- package/lib/layout/components/FooterToolbar/index.js +2 -6
- package/lib/layout/components/GlobalFooter/index.js +3 -3
- package/lib/layout/components/GlobalHeader/ActionsContent.js +6 -7
- package/lib/layout/components/GlobalHeader/index.js +1 -1
- package/lib/layout/components/GridContent/index.js +1 -1
- package/lib/layout/components/Header/index.js +1 -3
- package/lib/layout/components/Help/ProHelpPanel.js +11 -10
- package/lib/layout/components/PageContainer/index.js +9 -10
- package/lib/layout/components/PageContainer/style/index.js +4 -0
- package/lib/layout/components/PageHeader/index.js +10 -10
- package/lib/layout/components/SettingDrawer/BlockCheckbox.js +2 -3
- package/lib/layout/components/SettingDrawer/LayoutChange.js +3 -2
- package/lib/layout/components/SettingDrawer/RegionalChange.js +3 -2
- package/lib/layout/components/SettingDrawer/ThemeColor.js +3 -2
- package/lib/layout/components/SettingDrawer/index.js +5 -5
- package/lib/layout/components/SettingDrawer/style/index.js +4 -0
- package/lib/layout/components/SiderMenu/BaseMenu.js +5 -9
- package/lib/layout/components/SiderMenu/SiderMenu.js +6 -8
- package/lib/layout/components/SiderMenu/index.js +0 -1
- package/lib/layout/components/TopNavHeader/index.js +4 -5
- package/lib/layout/style/index.js +4 -0
- package/lib/layout/utils/getBreadcrumbProps.js +1 -1
- package/lib/layout/utils/getMenuData.js +0 -1
- package/lib/list/Item.d.ts +4 -7
- package/lib/list/Item.js +81 -103
- package/lib/list/ListView.d.ts +6 -4
- package/lib/list/ListView.js +41 -54
- package/lib/list/ProListBase.d.ts +74 -0
- package/lib/list/ProListBase.js +365 -0
- package/lib/list/constants.d.ts +2 -2
- package/lib/list/constants.js +2 -5
- package/lib/list/index.d.ts +23 -13
- package/lib/list/index.js +77 -40
- package/lib/list/style/index.d.ts +0 -1
- package/lib/list/style/index.js +227 -86
- package/lib/provider/index.d.ts +2 -2
- package/lib/provider/index.js +0 -3
- package/lib/provider/useStyle/index.d.ts +1 -21
- package/lib/provider/useStyle/index.js +6 -3
- package/lib/skeleton/components/Descriptions/index.js +1 -4
- package/lib/skeleton/components/List/index.js +1 -4
- package/lib/table/Store/Provide.js +0 -2
- package/lib/table/Table.js +17 -17
- package/lib/table/components/Alert/index.js +6 -5
- package/lib/table/components/ColumnSetting/index.js +9 -10
- package/lib/table/components/DragSortTable/index.js +8 -4
- package/lib/table/components/EditableTable/index.d.ts +1 -1
- package/lib/table/components/EditableTable/index.js +6 -8
- package/lib/table/components/ListToolBar/HeaderMenu.d.ts +1 -0
- package/lib/table/components/ListToolBar/HeaderMenu.js +4 -3
- package/lib/table/components/ListToolBar/index.d.ts +1 -1
- package/lib/table/components/ListToolBar/index.js +18 -21
- package/lib/table/components/ListToolBar/style.js +3 -3
- package/lib/table/components/ToolBar/index.d.ts +1 -1
- package/lib/table/style/index.js +4 -0
- package/lib/table/typing.d.ts +10 -5
- package/lib/table/useFetchData.js +4 -4
- package/lib/table/utils/cellRenderToFromItem.js +2 -4
- package/lib/table/utils/index.js +0 -1
- package/lib/table/utils/useDragSort.js +1 -1
- package/lib/utils/components/DropdownFooter/index.d.ts +1 -1
- package/lib/utils/components/FieldLabel/index.js +1 -1
- package/lib/utils/components/FilterDropdown/index.d.ts +1 -1
- package/lib/utils/components/FilterDropdown/index.js +1 -1
- package/lib/utils/components/InlineErrorFormItem/index.js +5 -4
- package/lib/utils/components/LabelIconTip/index.d.ts +3 -4
- package/lib/utils/components/LabelIconTip/index.js +2 -2
- package/lib/utils/genCopyable/index.d.ts +6 -0
- package/lib/utils/genCopyable/index.js +28 -8
- package/lib/utils/hooks/useDebounceValue/index.js +1 -3
- package/lib/utils/hooks/useDeepCompareEffect/index.js +0 -2
- package/lib/utils/hooks/useFetchData/index.js +0 -2
- package/lib/utils/index.d.ts +2 -1
- package/lib/utils/isDeepEqualReact/index.js +0 -8
- package/lib/utils/isUrl/index.js +1 -1
- package/lib/utils/merge/index.js +0 -3
- package/lib/utils/nanoid/index.d.ts +1 -3
- package/lib/utils/nanoid/index.js +2 -10
- package/lib/utils/proFieldParsingText/index.d.ts +2 -2
- package/lib/utils/proFieldParsingText/index.js +3 -5
- package/lib/utils/typing.d.ts +2 -1
- package/lib/utils/useEditableArray/index.js +0 -2
- package/lib/utils/useEditableMap/index.js +0 -2
- package/package.json +32 -32
|
@@ -57,7 +57,7 @@ const FilterDropdown = props => {
|
|
|
57
57
|
return htmlRef.current || document.body;
|
|
58
58
|
},
|
|
59
59
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
60
|
-
className: `${prefixCls}-content
|
|
60
|
+
className: (0, _clsx.clsx)(`${prefixCls}-content`, hashId),
|
|
61
61
|
children: children
|
|
62
62
|
})
|
|
63
63
|
}), footer && /*#__PURE__*/(0, _jsxRuntime.jsx)(_DropdownFooter.DropdownFooter, {
|
|
@@ -8,6 +8,7 @@ exports.InlineErrorFormItem = void 0;
|
|
|
8
8
|
var _icons = require("@ant-design/icons");
|
|
9
9
|
var _util = require("@rc-component/util");
|
|
10
10
|
var _antd = require("antd");
|
|
11
|
+
var _clsx = require("clsx");
|
|
11
12
|
var _react = _interopRequireWildcard(require("react"));
|
|
12
13
|
var _style = require("./style");
|
|
13
14
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
@@ -52,13 +53,13 @@ const InlineErrorFormItemPopover = ({
|
|
|
52
53
|
getPopupContainer: popoverProps?.getPopupContainer,
|
|
53
54
|
getTooltipContainer: popoverProps?.getTooltipContainer,
|
|
54
55
|
content: wrapSSR( /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
55
|
-
className: `${prefixCls}-form-item
|
|
56
|
+
className: (0, _clsx.clsx)(`${prefixCls}-form-item`, hashId, token.hashId),
|
|
56
57
|
style: {
|
|
57
58
|
margin: 0,
|
|
58
59
|
padding: 0
|
|
59
60
|
},
|
|
60
61
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
61
|
-
className: `${prefixCls}-form-item-with-help
|
|
62
|
+
className: (0, _clsx.clsx)(`${prefixCls}-form-item-with-help`, hashId, token.hashId),
|
|
62
63
|
children: [loading ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.LoadingOutlined, {}) : null, errorList]
|
|
63
64
|
})
|
|
64
65
|
})),
|
|
@@ -87,7 +88,7 @@ const InternalFormItemFunction = ({
|
|
|
87
88
|
}
|
|
88
89
|
try {
|
|
89
90
|
return JSON.stringify((0, _util.get)(prev, shouldName)) !== JSON.stringify((0, _util.get)(next, shouldName));
|
|
90
|
-
} catch (
|
|
91
|
+
} catch (_error) {
|
|
91
92
|
return true;
|
|
92
93
|
}
|
|
93
94
|
}
|
|
@@ -137,7 +138,7 @@ const InlineErrorFormItem = props => {
|
|
|
137
138
|
}
|
|
138
139
|
try {
|
|
139
140
|
return JSON.stringify((0, _util.get)(prev, shouldName)) !== JSON.stringify((0, _util.get)(next, shouldName));
|
|
140
|
-
} catch (
|
|
141
|
+
} catch (_error) {
|
|
141
142
|
return true;
|
|
142
143
|
}
|
|
143
144
|
} : undefined,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import type { LabelTooltipType } from 'antd/lib/form/FormItemLabel';
|
|
2
1
|
import React from 'react';
|
|
2
|
+
import type { ProEllipsis } from '../../genCopyable';
|
|
3
|
+
import type { LabelTooltipType } from '../../typing';
|
|
3
4
|
/**
|
|
4
5
|
* 在 form 的 label 后面增加一个 tips 来展示一些说明文案
|
|
5
6
|
*
|
|
@@ -9,7 +10,5 @@ export declare const LabelIconTip: React.FC<{
|
|
|
9
10
|
label: React.ReactNode;
|
|
10
11
|
subTitle?: React.ReactNode;
|
|
11
12
|
tooltip?: string | LabelTooltipType;
|
|
12
|
-
ellipsis?:
|
|
13
|
-
showTitle?: boolean;
|
|
14
|
-
};
|
|
13
|
+
ellipsis?: ProEllipsis;
|
|
15
14
|
}>;
|
|
@@ -51,12 +51,12 @@ const LabelIconTip = exports.LabelIconTip = /*#__PURE__*/_react.default.memo(pro
|
|
|
51
51
|
}),
|
|
52
52
|
children: label
|
|
53
53
|
}), subTitle && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
54
|
-
className: `${className}-subtitle
|
|
54
|
+
className: (0, _clsx.clsx)(`${className}-subtitle`, hashId),
|
|
55
55
|
children: subTitle
|
|
56
56
|
}), tooltip && /*#__PURE__*/(0, _jsxRuntime.jsx)(_antd.Tooltip, {
|
|
57
57
|
...tooltipProps,
|
|
58
58
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
59
|
-
className: `${className}-icon
|
|
59
|
+
className: (0, _clsx.clsx)(`${className}-icon`, hashId),
|
|
60
60
|
children: icon
|
|
61
61
|
})
|
|
62
62
|
})]
|
|
@@ -1,4 +1,10 @@
|
|
|
1
|
+
import type { TooltipProps } from 'antd';
|
|
1
2
|
import React from 'react';
|
|
3
|
+
export type ProEllipsisTooltip = {
|
|
4
|
+
showTitle?: boolean;
|
|
5
|
+
tooltip?: TooltipProps;
|
|
6
|
+
};
|
|
7
|
+
export type ProEllipsis = ProEllipsisTooltip | boolean;
|
|
2
8
|
/**
|
|
3
9
|
* 生成 Copyable 或 Ellipsis 的 dom
|
|
4
10
|
*
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.genCopyable = void 0;
|
|
8
8
|
var _antd = require("antd");
|
|
9
|
+
var _isObject = _interopRequireDefault(require("lodash-es/isObject"));
|
|
9
10
|
var _react = _interopRequireDefault(require("react"));
|
|
10
11
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
12
|
const isNeedTranText = item => {
|
|
@@ -29,16 +30,35 @@ const normalizeCopyText = text => {
|
|
|
29
30
|
return text === null || text === undefined ? '' : String(text).trimEnd();
|
|
30
31
|
};
|
|
31
32
|
const genEllipsis = (dom, item, text) => {
|
|
33
|
+
const ellipsis = getEllipsis(item);
|
|
34
|
+
if (!ellipsis || !text) {
|
|
35
|
+
return false;
|
|
36
|
+
}
|
|
32
37
|
/** 有些 valueType 需要设置copy的为string */
|
|
33
38
|
const needTranText = isNeedTranText(item);
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
39
|
+
|
|
40
|
+
// 支持一下 tooltip 的关闭
|
|
41
|
+
if (needTranText && item?.tooltip !== false) {
|
|
42
|
+
return {
|
|
43
|
+
tooltip: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
44
|
+
className: "pro-table-tooltip-text",
|
|
45
|
+
children: dom
|
|
46
|
+
})
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
// 如果 ellipsis 是对象且包含 tooltip 属性,合并 tooltip 的属性
|
|
51
|
+
if ((0, _isObject.default)(ellipsis) && (0, _isObject.default)(ellipsis.tooltip)) {
|
|
52
|
+
return {
|
|
53
|
+
tooltip: {
|
|
54
|
+
title: text,
|
|
55
|
+
...ellipsis.tooltip
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
tooltip: text
|
|
61
|
+
};
|
|
42
62
|
};
|
|
43
63
|
|
|
44
64
|
/**
|
|
@@ -21,8 +21,6 @@ function useDebounceValue(value, delay = 100, deps) {
|
|
|
21
21
|
setDebouncedValue(valueRef.current);
|
|
22
22
|
}, delay);
|
|
23
23
|
return () => clearTimeout(handler);
|
|
24
|
-
},
|
|
25
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
26
|
-
deps ? [delay, ...deps] : undefined);
|
|
24
|
+
}, deps ? [delay, ...deps] : undefined);
|
|
27
25
|
return debouncedValue;
|
|
28
26
|
}
|
|
@@ -22,7 +22,6 @@ function useDeepCompareMemoize(value, ignoreKeys) {
|
|
|
22
22
|
return ref.current;
|
|
23
23
|
}
|
|
24
24
|
function useDeepCompareEffect(effect, dependencies, ignoreKeys) {
|
|
25
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
26
25
|
(0, _react.useEffect)(effect, useDeepCompareMemoize(dependencies || [], ignoreKeys));
|
|
27
26
|
}
|
|
28
27
|
function useDeepCompareEffectDebounce(effect, dependencies, ignoreKeys, waitTime) {
|
|
@@ -31,6 +30,5 @@ function useDeepCompareEffectDebounce(effect, dependencies, ignoreKeys, waitTime
|
|
|
31
30
|
}, waitTime || 16);
|
|
32
31
|
(0, _react.useEffect)(() => {
|
|
33
32
|
effectDn.run();
|
|
34
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
35
33
|
}, useDeepCompareMemoize(dependencies || [], ignoreKeys));
|
|
36
34
|
}
|
|
@@ -18,7 +18,6 @@ function useFetchData(props) {
|
|
|
18
18
|
testId += 1;
|
|
19
19
|
return testId.toString();
|
|
20
20
|
});
|
|
21
|
-
const proFieldKeyRef = (0, _react.useRef)(cacheKey);
|
|
22
21
|
const fetchData = async () => {
|
|
23
22
|
abortRef.current?.abort();
|
|
24
23
|
const abort = new AbortController();
|
|
@@ -38,7 +37,6 @@ function useFetchData(props) {
|
|
|
38
37
|
};
|
|
39
38
|
const {
|
|
40
39
|
data,
|
|
41
|
-
error,
|
|
42
40
|
isValidating
|
|
43
41
|
} = (0, _swr.default)(props.request ? [cacheKey, props.params] : null, fetchData, {
|
|
44
42
|
revalidateOnFocus: false,
|
package/lib/utils/index.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ import type { ProFormInstanceType } from './components/ProFormContext';
|
|
|
9
9
|
import { ProFormContext } from './components/ProFormContext';
|
|
10
10
|
import { conversionMomentValue, convertMoment, dateFormatterMap } from './conversionMomentValue';
|
|
11
11
|
import { dateArrayFormatter } from './dateArrayFormatter';
|
|
12
|
+
import type { ProEllipsis } from './genCopyable';
|
|
12
13
|
import { genCopyable } from './genCopyable';
|
|
13
14
|
import { getFieldPropsOrFormItemProps } from './getFieldPropsOrFormItemProps';
|
|
14
15
|
import { useDebounceFn } from './hooks/useDebounceFn';
|
|
@@ -48,4 +49,4 @@ import { useEditableMap } from './useEditableMap';
|
|
|
48
49
|
import { useBreakpoint } from './useMediaQuery';
|
|
49
50
|
export * from './typing';
|
|
50
51
|
export { conversionMomentValue, conversionMomentValue as conversionSubmitValue, convertMoment, dateArrayFormatter, dateFormatterMap, DropdownFooter, editableRowByKey, ErrorBoundary, FieldLabel, FilterDropdown, genCopyable, getFieldPropsOrFormItemProps, InlineErrorFormItem, isBrowser, isDeepEqualReact, isDropdownValueType, isImg, isNil, isUrl, LabelIconTip, lighten, merge, nanoid, objectToMap, omitBoolean, omitUndefined, omitUndefinedAndEmptyArr, operationUnit, parseValueToDay, pickProFormItemProps, pickProProps, proFieldParsingText, ProFormContext, recordKeyToString, resetComponent, runFunction, setAlpha, stringify, transformKeySubmitValue, useBreakpoint, useDebounceFn, useDebounceValue, useDeepCompareEffect, useDeepCompareEffectDebounce, useDeepCompareMemo, useDocumentTitle, useEditableArray, useEditableMap, useFetchData, useLatest, usePrevious, useReactiveRef, useRefCallback, useRefFunction, useStyle, };
|
|
51
|
-
export type { ProFormInstanceType, ProRequestData, RowEditableConfig, RowEditableType, UseEditableMapType, UseEditableMapUtilType, UseEditableType, UseEditableUtilType, };
|
|
52
|
+
export type { ProEllipsis, ProFormInstanceType, ProRequestData, RowEditableConfig, RowEditableType, UseEditableMapType, UseEditableMapUtilType, UseEditableType, UseEditableUtilType, };
|
|
@@ -4,12 +4,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.isDeepEqualReact = isDeepEqualReact;
|
|
7
|
-
/* eslint-disable no-restricted-syntax */
|
|
8
|
-
/* eslint-disable no-continue */
|
|
9
|
-
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
10
|
-
/* eslint-disable no-self-compare */
|
|
11
|
-
/* eslint-disable eqeqeq */
|
|
12
|
-
/* eslint-disable no-plusplus */
|
|
13
7
|
// do not edit .js files directly - edit src/index.jst
|
|
14
8
|
|
|
15
9
|
function isDeepEqualReact(a, b, ignoreKeys) {
|
|
@@ -48,8 +42,6 @@ function isDeepEqualReact(a, b, ignoreKeys) {
|
|
|
48
42
|
if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
|
|
49
43
|
if (a.valueOf !== Object.prototype.valueOf && a.valueOf) return a.valueOf() === b.valueOf();
|
|
50
44
|
if (a.toString !== Object.prototype.toString && a.toString) return a.toString() === b.toString();
|
|
51
|
-
|
|
52
|
-
// eslint-disable-next-line prefer-const
|
|
53
45
|
keys = Object.keys(a);
|
|
54
46
|
length = keys.length;
|
|
55
47
|
if (length !== Object.keys(b).length) return false;
|
package/lib/utils/isUrl/index.js
CHANGED
package/lib/utils/merge/index.js
CHANGED
|
@@ -4,8 +4,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.merge = void 0;
|
|
7
|
-
/* eslint-disable prefer-rest-params */
|
|
8
|
-
|
|
9
7
|
/**
|
|
10
8
|
* 用于合并 n 个对象
|
|
11
9
|
* @param {any[]} ...rest
|
|
@@ -17,7 +15,6 @@ const merge = (...rest) => {
|
|
|
17
15
|
let key;
|
|
18
16
|
let i = 0;
|
|
19
17
|
for (; i < il; i += 1) {
|
|
20
|
-
// eslint-disable-next-line no-restricted-syntax
|
|
21
18
|
for (key in rest[i]) {
|
|
22
19
|
if (rest[i].hasOwnProperty(key)) {
|
|
23
20
|
if (typeof obj[key] === 'object' && typeof rest[i][key] === 'object' && obj[key] !== undefined && obj[key] !== null && !Array.isArray(obj[key]) && !Array.isArray(rest[i][key])) {
|
|
@@ -4,15 +4,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.nanoid = void 0;
|
|
7
|
-
/* eslint-disable prefer-const */
|
|
8
|
-
|
|
9
7
|
let index = 0;
|
|
10
8
|
let genNanoid = (t = 21) => {
|
|
11
9
|
if (typeof window === 'undefined') return (index += 1).toFixed(0);
|
|
12
10
|
if (!window.crypto) return (index += 1).toFixed(0);
|
|
13
11
|
let e = '',
|
|
14
12
|
r = crypto.getRandomValues(new Uint8Array(t));
|
|
15
|
-
// eslint-disable-next-line no-param-reassign
|
|
16
13
|
for (; t--;) {
|
|
17
14
|
let n = 63 & r[t];
|
|
18
15
|
e += n < 36 ? n.toString(36) : n < 62 ? (n - 26).toString(36).toUpperCase() : n < 63 ? '_' : '-';
|
|
@@ -21,15 +18,10 @@ let genNanoid = (t = 21) => {
|
|
|
21
18
|
};
|
|
22
19
|
|
|
23
20
|
/**
|
|
24
|
-
* 生成uuid,如果不支持 randomUUID,就用 genNanoid
|
|
25
|
-
*
|
|
26
|
-
* @returns string
|
|
21
|
+
* @description 生成uuid,如果不支持 randomUUID,就用 genNanoid
|
|
27
22
|
*/
|
|
28
23
|
const nanoid = () => {
|
|
29
|
-
if (typeof
|
|
30
|
-
// @ts-ignore
|
|
31
|
-
if (window.crypto && window.crypto.randomUUID && typeof crypto.randomUUID == 'function') {
|
|
32
|
-
// @ts-ignore
|
|
24
|
+
if (window?.crypto?.randomUUID && typeof crypto.randomUUID === 'function') {
|
|
33
25
|
return crypto.randomUUID();
|
|
34
26
|
}
|
|
35
27
|
return genNanoid();
|
|
@@ -14,8 +14,8 @@ export declare const objectToMap: (value: ProFieldValueEnumType | undefined) =>
|
|
|
14
14
|
* 转化 text 和 valueEnum 通过 type 来添加 Status
|
|
15
15
|
*
|
|
16
16
|
* @param text
|
|
17
|
-
* @param
|
|
18
|
-
* @param
|
|
17
|
+
* @param valueEnumParams
|
|
18
|
+
* @param key
|
|
19
19
|
*/
|
|
20
20
|
export declare const proFieldParsingText: (text: string | number | (string | number)[], valueEnumParams: ProFieldValueEnumType, key?: number | string) => React.ReactNode;
|
|
21
21
|
export {};
|
|
@@ -102,8 +102,8 @@ const TableStatus = {
|
|
|
102
102
|
* 转化 text 和 valueEnum 通过 type 来添加 Status
|
|
103
103
|
*
|
|
104
104
|
* @param text
|
|
105
|
-
* @param
|
|
106
|
-
* @param
|
|
105
|
+
* @param valueEnumParams
|
|
106
|
+
* @param key
|
|
107
107
|
*/
|
|
108
108
|
const proFieldParsingText = (text, valueEnumParams, key) => {
|
|
109
109
|
if (Array.isArray(text)) {
|
|
@@ -111,9 +111,7 @@ const proFieldParsingText = (text, valueEnumParams, key) => {
|
|
|
111
111
|
separator: ",",
|
|
112
112
|
size: 2,
|
|
113
113
|
wrap: true,
|
|
114
|
-
children: text.map((value, index) =>
|
|
115
|
-
// @ts-ignore
|
|
116
|
-
proFieldParsingText(value, valueEnumParams, index))
|
|
114
|
+
children: text.map((value, index) => proFieldParsingText(value, valueEnumParams, index))
|
|
117
115
|
}, key);
|
|
118
116
|
}
|
|
119
117
|
const valueEnum = objectToMap(valueEnumParams);
|
package/lib/utils/typing.d.ts
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import type { AvatarProps, CascaderProps, CheckboxProps, ColorPickerProps, DatePickerProps, DividerProps, ImageProps, InputNumberProps, InputProps, PopoverProps, ProgressProps, RadioProps, RateProps, SegmentedProps, SelectProps, SliderSingleProps, SpaceProps, SwitchProps, TimeRangePickerProps, TreeSelectProps } from 'antd';
|
|
2
2
|
import type { RangePickerProps } from 'antd/lib/date-picker';
|
|
3
3
|
import type { FormInstance, FormItemProps } from 'antd/lib/form';
|
|
4
|
-
import type { LabelTooltipType } from 'antd/lib/form/FormItemLabel';
|
|
5
4
|
import type { NamePath } from 'antd/lib/form/interface';
|
|
6
5
|
import type { PasswordProps, TextAreaProps } from 'antd/lib/input';
|
|
7
6
|
import type { SliderRangeProps } from 'antd/lib/slider';
|
|
8
7
|
import type { ReactNode } from 'react';
|
|
9
8
|
import type { ProSchemaValueEnumType } from '../provider';
|
|
10
9
|
import type { UseEditableUtilType } from './useEditableArray';
|
|
10
|
+
export type LabelTooltipType = any;
|
|
11
|
+
export type WrapperTooltipProps = any;
|
|
11
12
|
export type ProFormBaseGroupProps = {
|
|
12
13
|
/**
|
|
13
14
|
* @name 分组的标题
|
|
@@ -23,8 +23,6 @@ var _usePrevious = require("../hooks/usePrevious");
|
|
|
23
23
|
var _merge = require("../merge");
|
|
24
24
|
var _useLazyKVMap = _interopRequireDefault(require("../useLazyKVMap"));
|
|
25
25
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
26
|
-
/* eslint-disable react-hooks/exhaustive-deps */
|
|
27
|
-
|
|
28
26
|
const {
|
|
29
27
|
noteOnce
|
|
30
28
|
} = _util.warning;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ant-design/pro-components",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.5-0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "All-in-one package of @ant-design/pro-components",
|
|
6
6
|
"keywords": [
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"ant-design",
|
|
10
10
|
"ant-design-pro"
|
|
11
11
|
],
|
|
12
|
-
"homepage": "https://
|
|
12
|
+
"homepage": "https://pro-components.antdigital.dev",
|
|
13
13
|
"bugs": "https://github.com/ant-design/pro-components/issues",
|
|
14
14
|
"repository": {
|
|
15
15
|
"type": "git",
|
|
@@ -65,45 +65,45 @@
|
|
|
65
65
|
"@types/responselike": "^1.0.0"
|
|
66
66
|
},
|
|
67
67
|
"dependencies": {
|
|
68
|
-
"@ant-design/cssinjs": "^2.0
|
|
68
|
+
"@ant-design/cssinjs": "^2.1.0",
|
|
69
69
|
"@ant-design/icons": "^6.1.0",
|
|
70
|
-
"@babel/runtime": "^7.28.
|
|
70
|
+
"@babel/runtime": "^7.28.6",
|
|
71
71
|
"@ctrl/tinycolor": "^4.2.0",
|
|
72
72
|
"@dnd-kit/core": "^6.3.1",
|
|
73
73
|
"@dnd-kit/modifiers": "^6.0.1",
|
|
74
74
|
"@dnd-kit/sortable": "^7.0.2",
|
|
75
75
|
"@dnd-kit/utilities": "^3.2.2",
|
|
76
76
|
"@emotion/css": "^11.13.5",
|
|
77
|
-
"@rc-component/form": "^1.6.
|
|
78
|
-
"@rc-component/resize-observer": "^1.
|
|
77
|
+
"@rc-component/form": "^1.6.2",
|
|
78
|
+
"@rc-component/resize-observer": "^1.1.1",
|
|
79
79
|
"@rc-component/table": "^1.9.1",
|
|
80
|
-
"@rc-component/util": "^1.
|
|
80
|
+
"@rc-component/util": "^1.9.0",
|
|
81
81
|
"@umijs/route-utils": "^4.0.3",
|
|
82
82
|
"@umijs/use-params": "^1.0.9",
|
|
83
83
|
"clsx": "^2.1.1",
|
|
84
84
|
"dayjs": "^1.11.19",
|
|
85
|
-
"lodash-es": "^4.17.
|
|
86
|
-
"path-to-regexp": "^8.
|
|
85
|
+
"lodash-es": "^4.17.23",
|
|
86
|
+
"path-to-regexp": "^8.3.0",
|
|
87
87
|
"react-draggable": "^4.5.0",
|
|
88
88
|
"safe-stable-stringify": "^2.5.0",
|
|
89
|
-
"swr": "^2.
|
|
89
|
+
"swr": "^2.4.0"
|
|
90
90
|
},
|
|
91
91
|
"devDependencies": {
|
|
92
92
|
"@ant-design/antd-theme-variable": "^1.0.0",
|
|
93
|
-
"@babel/core": "^7.
|
|
93
|
+
"@babel/core": "^7.29.0",
|
|
94
94
|
"@babel/eslint-plugin": "^7.27.1",
|
|
95
|
-
"@babel/parser": "^7.
|
|
96
|
-
"@babel/plugin-
|
|
97
|
-
"@babel/preset-env": "^7.
|
|
95
|
+
"@babel/parser": "^7.29.0",
|
|
96
|
+
"@babel/plugin-transform-object-rest-spread": "^7.28.6",
|
|
97
|
+
"@babel/preset-env": "^7.29.0",
|
|
98
98
|
"@babel/preset-react": "^7.28.5",
|
|
99
99
|
"@babel/preset-typescript": "^7.28.5",
|
|
100
|
-
"@babel/traverse": "^7.
|
|
100
|
+
"@babel/traverse": "^7.29.0",
|
|
101
101
|
"@emotion/babel-plugin": "^11.13.5",
|
|
102
102
|
"@octokit/core": "^3.6.0",
|
|
103
103
|
"@octokit/rest": "^18.12.0",
|
|
104
104
|
"@testing-library/dom": "^10.4.1",
|
|
105
105
|
"@testing-library/jest-dom": "^6.9.1",
|
|
106
|
-
"@testing-library/react": "^16.3.
|
|
106
|
+
"@testing-library/react": "^16.3.2",
|
|
107
107
|
"@testing-library/react-hooks": "^8.0.1",
|
|
108
108
|
"@testing-library/user-event": "^14.6.1",
|
|
109
109
|
"@types/glob": "^8.1.0",
|
|
@@ -111,32 +111,32 @@
|
|
|
111
111
|
"@types/lodash-es": "^4.17.12",
|
|
112
112
|
"@types/mockjs": "^1.0.10",
|
|
113
113
|
"@types/node": "^14.18.63",
|
|
114
|
-
"@types/react": "^18.3.
|
|
114
|
+
"@types/react": "^18.3.28",
|
|
115
115
|
"@types/react-dom": "^18.3.7",
|
|
116
116
|
"@types/react-helmet": "^6.1.11",
|
|
117
117
|
"@types/react-responsive": "^8.0.8",
|
|
118
118
|
"@types/shallowequal": "^1.1.5",
|
|
119
119
|
"@types/warning": "^3.0.3",
|
|
120
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
121
|
-
"@typescript-eslint/parser": "^8.
|
|
120
|
+
"@typescript-eslint/eslint-plugin": "^8.56.0",
|
|
121
|
+
"@typescript-eslint/parser": "^8.56.0",
|
|
122
122
|
"@umijs/babel-preset-umi": "^3.5.43",
|
|
123
123
|
"@umijs/doctor": "^1.2.1",
|
|
124
124
|
"@umijs/plugin-analytics": "^0.2.4",
|
|
125
125
|
"@umijs/test": "^3.5.43",
|
|
126
126
|
"@umijs/test-utils": "^3.5.43",
|
|
127
|
-
"@umijs/utils": "^4.6.
|
|
127
|
+
"@umijs/utils": "^4.6.28",
|
|
128
128
|
"@vitejs/plugin-legacy": "^6.1.1",
|
|
129
129
|
"@vitest/browser": "^3.2.4",
|
|
130
130
|
"@vitest/coverage-istanbul": "^3.2.4",
|
|
131
131
|
"@vitest/ui": "^3.2.4",
|
|
132
132
|
"animated-scroll-to": "^2.3.2",
|
|
133
|
-
"antd": "^6.
|
|
133
|
+
"antd": "^6.3.0",
|
|
134
134
|
"chalk": "^4.1.2",
|
|
135
135
|
"copy-to-clipboard": "^3.3.3",
|
|
136
136
|
"cross-env": "^7.0.3",
|
|
137
|
-
"dumi": "^2.4.
|
|
137
|
+
"dumi": "^2.4.23",
|
|
138
138
|
"dumi-theme-antd-style": "^0.31.1",
|
|
139
|
-
"esbuild": "^0.
|
|
139
|
+
"esbuild": "^0.27.3",
|
|
140
140
|
"eslint": "^8.57.1",
|
|
141
141
|
"eslint-plugin-react": "^7.37.5",
|
|
142
142
|
"eslint-plugin-react-hooks": "^4.6.2",
|
|
@@ -147,7 +147,7 @@
|
|
|
147
147
|
"father": "^4.6.13",
|
|
148
148
|
"gh-pages": "^5.0.0",
|
|
149
149
|
"glob": "^8.1.0",
|
|
150
|
-
"happy-dom": "^20.
|
|
150
|
+
"happy-dom": "^20.6.3",
|
|
151
151
|
"identity-obj-proxy": "^3.0.0",
|
|
152
152
|
"inquirer": "^8.2.7",
|
|
153
153
|
"jest-canvas-mock": "^2.5.2",
|
|
@@ -158,11 +158,11 @@
|
|
|
158
158
|
"nprogress": "^0.2.0",
|
|
159
159
|
"nwsapi": "2.2.13",
|
|
160
160
|
"octokit": "^3.2.2",
|
|
161
|
-
"playwright": "^1.
|
|
161
|
+
"playwright": "^1.58.2",
|
|
162
162
|
"polished": "^4.3.1",
|
|
163
|
-
"prettier": "^3.
|
|
163
|
+
"prettier": "^3.8.1",
|
|
164
164
|
"prettier-plugin-organize-imports": "^4.3.0",
|
|
165
|
-
"prettier-plugin-packagejson": "^2.5.
|
|
165
|
+
"prettier-plugin-packagejson": "^2.5.22",
|
|
166
166
|
"pretty-quick": "^3.3.1",
|
|
167
167
|
"query-string": "^6.14.1",
|
|
168
168
|
"react": "^18.3.1",
|
|
@@ -175,15 +175,15 @@
|
|
|
175
175
|
"slash2": "^2.0.0",
|
|
176
176
|
"style-loader": "^2.0.0",
|
|
177
177
|
"stylelint": "^13.13.1",
|
|
178
|
-
"timezone-mock": "^1.
|
|
178
|
+
"timezone-mock": "^1.4.2",
|
|
179
179
|
"ts-node": "^10.9.2",
|
|
180
180
|
"tsx": "^4.21.0",
|
|
181
181
|
"typescript": "^5.9.3",
|
|
182
|
-
"umi": "^4.6.
|
|
182
|
+
"umi": "^4.6.28",
|
|
183
183
|
"umi-request": "^1.4.0",
|
|
184
184
|
"unified": "^11.0.5",
|
|
185
|
-
"unist-util-visit": "^5.
|
|
186
|
-
"vite": "^7.3.
|
|
185
|
+
"unist-util-visit": "^5.1.0",
|
|
186
|
+
"vite": "^7.3.1",
|
|
187
187
|
"vitest": "^3.2.4",
|
|
188
188
|
"write-pkg": "^4.0.0",
|
|
189
189
|
"xhr-mock": "^2.5.1",
|
|
@@ -195,7 +195,7 @@
|
|
|
195
195
|
"react": ">=18.0.0",
|
|
196
196
|
"react-dom": ">=18.0.0"
|
|
197
197
|
},
|
|
198
|
-
"packageManager": "pnpm@9.
|
|
198
|
+
"packageManager": "pnpm@9.15.9",
|
|
199
199
|
"publishConfig": {
|
|
200
200
|
"access": "public"
|
|
201
201
|
},
|