From 76d698f670d94a44eaf27e7ff48b9247982e02eb Mon Sep 17 00:00:00 2001 From: dap <15891557205@163.com> Date: Wed, 14 Jan 2026 15:54:11 +0800 Subject: [PATCH] =?UTF-8?q?style(web-antd):=20=E6=9B=B4=E6=96=B0=E9=A2=9C?= =?UTF-8?q?=E8=89=B2=E9=85=8D=E7=BD=AE=E4=B8=8E=E7=A7=BB=E9=99=A4=E6=9C=AA?= =?UTF-8?q?=E4=BD=BF=E7=94=A8=E7=9A=84Modal=E5=AF=BC=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 更新主题颜色配置以保持与antd默认颜色一致 移除upload-tip中未使用的Modal导入,改为使用window.modal --- apps/web-antd/src/preferences.ts | 9 +++++++++ apps/web-antd/src/upload-tip.ts | 3 +-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/apps/web-antd/src/preferences.ts b/apps/web-antd/src/preferences.ts index 1e7f1a04..d2c2fac3 100644 --- a/apps/web-antd/src/preferences.ts +++ b/apps/web-antd/src/preferences.ts @@ -54,6 +54,15 @@ export const overridesPreferences = defineOverridesPreferences({ * 这里为6px 与antd保持一致 */ radius: '0.375', + // 这些颜色和antd默认颜色保持一致 即hex -> hsl + // 错误色 + colorDestructive: 'hsl(359, 100%, 65%)', + // 主题色 + colorPrimary: 'hsl(215, 100%, 54%)', + // 成功色 + colorSuccess: 'hsl(100, 77%, 44%)', + // 警告色 + colorWarning: 'hsl(40, 96%, 53%)', }, /** * !!! 更改配置后请清空浏览器缓存 diff --git a/apps/web-antd/src/upload-tip.ts b/apps/web-antd/src/upload-tip.ts index 5b1a897d..0f3fdf86 100644 --- a/apps/web-antd/src/upload-tip.ts +++ b/apps/web-antd/src/upload-tip.ts @@ -1,7 +1,6 @@ import { onMounted } from 'vue'; import { useLocalStorage } from '@vueuse/core'; -import { Modal } from 'antdv-next'; export function useUploadTip() { const readTip = useLocalStorage('__upload_tip_read_5.4.0', false); @@ -9,7 +8,7 @@ export function useUploadTip() { if (readTip.value || !import.meta.env.DEV) { return; } - const modalInstance = Modal.info({ + const modalInstance = window.modal.info({ title: '提示', centered: true, content: