From bcdb73891c13a5f57d349d0fb0ee670b78d408cb Mon Sep 17 00:00:00 2001 From: afc163 Date: Thu, 5 Mar 2026 12:18:54 +0800 Subject: [PATCH] fix: replace rc-util with @rc-component/util - Update ChartCard to use @rc-component/util/es/omit - Update TagSelect components to use @rc-component/util - Add @rc-component/util as dependency Co-Authored-By: Claude Opus 4.6 --- package.json | 3 ++- .../dashboard/analysis/components/Charts/ChartCard/index.tsx | 2 +- .../list/search/applications/components/TagSelect/index.tsx | 2 +- src/pages/list/search/articles/components/TagSelect/index.tsx | 2 +- src/pages/list/search/projects/components/TagSelect/index.tsx | 2 +- 5 files changed, 6 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 35d59b58..6350a082 100644 --- a/package.json +++ b/package.json @@ -42,6 +42,7 @@ "@ant-design/pro-components": "3.1.2-0", "@antv/l7": "^2.22.7", "@antv/l7-react": "^2.4.3", + "@rc-component/util": "^1.9.0", "antd": "^6.2.2", "antd-style": "^4.1.0", "clsx": "^2.1.1", @@ -51,6 +52,7 @@ "react-dom": "^19.2.4" }, "devDependencies": { + "@biomejs/biome": "^2.1.1", "@commitlint/cli": "^20.1.0", "@commitlint/config-conventional": "^20.0.0", "@testing-library/dom": "^10.4.0", @@ -64,7 +66,6 @@ "@types/react-helmet": "^6.1.11", "@umijs/lint": "^4.6.13", "@umijs/max": "^4.6.25", - "@biomejs/biome": "^2.1.1", "cross-env": "^10.1.0", "express": "^5.2.0", "gh-pages": "^6.1.1", diff --git a/src/pages/dashboard/analysis/components/Charts/ChartCard/index.tsx b/src/pages/dashboard/analysis/components/Charts/ChartCard/index.tsx index fe4194d5..6241b931 100644 --- a/src/pages/dashboard/analysis/components/Charts/ChartCard/index.tsx +++ b/src/pages/dashboard/analysis/components/Charts/ChartCard/index.tsx @@ -1,7 +1,7 @@ +import omit from '@rc-component/util/es/omit'; import { Card } from 'antd'; import type { CardProps } from 'antd/es/card'; import classNames from 'classnames'; -import omit from 'rc-util/lib/omit'; import React from 'react'; import useStyles from './index.style'; diff --git a/src/pages/list/search/applications/components/TagSelect/index.tsx b/src/pages/list/search/applications/components/TagSelect/index.tsx index 4c0baf0d..100067ee 100644 --- a/src/pages/list/search/applications/components/TagSelect/index.tsx +++ b/src/pages/list/search/applications/components/TagSelect/index.tsx @@ -1,7 +1,7 @@ import { DownOutlined, UpOutlined } from '@ant-design/icons'; +import { useMergedState } from '@rc-component/util'; import { Tag } from 'antd'; import classNames from 'classnames'; -import { useMergedState } from 'rc-util'; import React, { type FC, useState } from 'react'; import useStyles from './index.style'; diff --git a/src/pages/list/search/articles/components/TagSelect/index.tsx b/src/pages/list/search/articles/components/TagSelect/index.tsx index 4c0baf0d..100067ee 100644 --- a/src/pages/list/search/articles/components/TagSelect/index.tsx +++ b/src/pages/list/search/articles/components/TagSelect/index.tsx @@ -1,7 +1,7 @@ import { DownOutlined, UpOutlined } from '@ant-design/icons'; +import { useMergedState } from '@rc-component/util'; import { Tag } from 'antd'; import classNames from 'classnames'; -import { useMergedState } from 'rc-util'; import React, { type FC, useState } from 'react'; import useStyles from './index.style'; diff --git a/src/pages/list/search/projects/components/TagSelect/index.tsx b/src/pages/list/search/projects/components/TagSelect/index.tsx index 4c0baf0d..100067ee 100644 --- a/src/pages/list/search/projects/components/TagSelect/index.tsx +++ b/src/pages/list/search/projects/components/TagSelect/index.tsx @@ -1,7 +1,7 @@ import { DownOutlined, UpOutlined } from '@ant-design/icons'; +import { useMergedState } from '@rc-component/util'; import { Tag } from 'antd'; import classNames from 'classnames'; -import { useMergedState } from 'rc-util'; import React, { type FC, useState } from 'react'; import useStyles from './index.style';