style(web-antd): 更新颜色配置与移除未使用的Modal导入
更新主题颜色配置以保持与antd默认颜色一致 移除upload-tip中未使用的Modal导入,改为使用window.modal
This commit is contained in:
parent
ba65f750d4
commit
76d698f670
@ -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%)',
|
||||
},
|
||||
/**
|
||||
* !!! 更改配置后请清空浏览器缓存
|
||||
|
||||
@ -1,7 +1,6 @@
|
||||
import { onMounted } from 'vue';
|
||||
|
||||
import { useLocalStorage } from '@vueuse/core';
|
||||
import { Modal } from 'antdv-next';
|
||||
|
||||
export function useUploadTip() {
|
||||
const readTip = useLocalStorage<boolean>('__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:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user