From 948dc9b5208a22ffa796598a70b86bd776d91742 Mon Sep 17 00:00:00 2001
From: dap <15891557205@163.com>
Date: Fri, 23 Jan 2026 10:42:52 +0800
Subject: [PATCH] =?UTF-8?q?refactor(icons):=20=E8=BF=81=E7=A7=BB=E9=83=A8?=
=?UTF-8?q?=E5=88=86=E5=9B=BE=E6=A0=87=E5=88=B0=20@ant-design/icons-vue=20?=
=?UTF-8?q?=E5=B9=B6=E7=A7=BB=E9=99=A4=E6=9C=AA=E4=BD=BF=E7=94=A8=E7=9A=84?=
=?UTF-8?q?=E7=A6=BB=E7=BA=BF=E5=9B=BE=E6=A0=87?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
移除 @vben/icons 中的 UserOutlined、InBoxIcon、ExcelIcon 等图标,改用 @ant-design/icons-vue 提供的对应组件。
删除 packages/icons 中未使用的离线图标定义,包括 TaobaoIcon、AlipayIcon、GithubOAuthIcon 等。
在 apps/web-antd/src/views/_core/ 新增 oauth-common.tsx 文件,集中管理 OAuth 绑定相关逻辑与数据。
---
apps/web-antd/src/layouts/basic.vue | 3 +-
.../{oauth-common.ts => oauth-common.tsx} | 29 ++++++++++---------
.../views/system/user/user-import-modal.vue | 6 ++--
.../process-definition-deploy-modal.vue | 6 ++--
.../common-ui/src/ui/authentication/index.ts | 2 +-
packages/icons/src/iconify-offline/index.ts | 29 -------------------
6 files changed, 24 insertions(+), 51 deletions(-)
rename apps/web-antd/src/views/_core/{oauth-common.ts => oauth-common.tsx} (80%)
diff --git a/apps/web-antd/src/layouts/basic.vue b/apps/web-antd/src/layouts/basic.vue
index c60d5eee..d230a3dd 100644
--- a/apps/web-antd/src/layouts/basic.vue
+++ b/apps/web-antd/src/layouts/basic.vue
@@ -10,7 +10,6 @@ import {
CircleHelp,
GiteeIcon,
GitHubOutlined,
- UserOutlined,
} from '@vben/icons';
import {
BasicLayout,
@@ -22,6 +21,8 @@ import { preferences } from '@vben/preferences';
import { useAccessStore, useUserStore } from '@vben/stores';
import { openWindow } from '@vben/utils';
+import { UserOutlined } from '@ant-design/icons-vue';
+
import { TenantToggle } from '#/components/tenant-toggle';
import { $t } from '#/locales';
import { resetRoutes } from '#/router';
diff --git a/apps/web-antd/src/views/_core/oauth-common.ts b/apps/web-antd/src/views/_core/oauth-common.tsx
similarity index 80%
rename from apps/web-antd/src/views/_core/oauth-common.ts
rename to apps/web-antd/src/views/_core/oauth-common.tsx
index 64c3ef30..4b78bf5a 100644
--- a/apps/web-antd/src/views/_core/oauth-common.ts
+++ b/apps/web-antd/src/views/_core/oauth-common.tsx
@@ -1,15 +1,10 @@
import type { Component, CSSProperties } from 'vue';
-import { markRaw, ref } from 'vue';
+import { ref } from 'vue';
import { DEFAULT_TENANT_ID } from '@vben/constants';
-import {
- GiteeIcon,
- GithubOAuthIcon,
- SvgMaxKeyIcon,
- SvgTopiamIcon,
- SvgWechatIcon,
-} from '@vben/icons';
+import { VbenIcon } from '@vben/icons';
+import { cn } from '@vben/utils';
import { createGlobalState } from '@vueuse/core';
@@ -69,32 +64,38 @@ export async function handleAuthBinding(source: string) {
*/
export const accountBindList: BindItem[] = [
{
- avatar: markRaw(GiteeIcon),
+ avatar: (
+
+ ),
description: '绑定Gitee账号',
source: 'gitee',
title: 'Gitee',
- style: { color: '#c71d23' },
},
{
- avatar: markRaw(GithubOAuthIcon),
+ avatar: (
+
+ ),
description: '绑定Github账号',
source: 'github',
title: 'Github',
},
{
- avatar: markRaw(SvgMaxKeyIcon),
+ avatar:
点击或者拖拽到此处上传文件
@@ -92,7 +92,7 @@ function handleCancel() { @click="commonDownloadExcel(downloadImportTemplate, '用户导入模板')" >