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: