Skip to content

Commit d1de259

Browse files
committed
refactor: 将多个组件中的 rc-util 导入替换为 @rc-component/util,简化代码结构
1 parent 0f110f7 commit d1de259

File tree

60 files changed

+107
-130
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+107
-130
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@
7171
"@emotion/cache": "^11.14.0",
7272
"@emotion/css": "^11.13.5",
7373
"@emotion/serialize": "^1.3.3",
74+
"@rc-component/util": "^1.2.2",
7475
"@umijs/route-utils": "^4.0.1",
7576
"@umijs/use-params": "^1.0.9",
7677
"classnames": "^2.5.1",
@@ -82,7 +83,6 @@
8283
"rc-resize-observer": "^1.4.3",
8384
"rc-steps": "^6.0.1",
8485
"rc-table": "^7.51.1",
85-
"rc-util": "^5.44.4",
8686
"react-draggable": "^4.5.0",
8787
"react-layout-kit": "^1.9.2",
8888
"react-lazy-load": "^4.0.1",

pnpm-lock.yaml

Lines changed: 21 additions & 44 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/card/components/Card/index.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
import { RightOutlined } from '@ant-design/icons';
2+
import { omit, useMergedState } from '@rc-component/util';
23
import { ConfigProvider, Tabs } from 'antd';
34
import useBreakpoint from 'antd/lib/grid/hooks/useBreakpoint';
45
import classNames from 'classnames';
5-
import { useMergedState } from 'rc-util';
6-
import omit from 'rc-util/lib/omit';
76
import React, { useContext } from 'react';
87
import { LabelIconTip } from '../../../utils';
98
import type { Breakpoint, CardProps, Gutter } from '../../typing';

src/card/components/CheckCard/Group.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { RightOutlined } from '@ant-design/icons';
2+
import { omit } from '@rc-component/util';
23
import { ConfigProvider, Skeleton } from 'antd';
34
import classNames from 'classnames';
4-
import omit from 'rc-util/lib/omit';
55
import React, {
66
createContext,
77
useCallback,

0 commit comments

Comments
 (0)