mirror of
https://gitee.com/dapppp/ruoyi-plus-vben5.git
synced 2026-03-21 08:48:59 +08:00
style(web-antd): 更新颜色配置与移除未使用的Modal导入
更新主题颜色配置以保持与antd默认颜色一致 移除upload-tip中未使用的Modal导入,改为使用window.modal
This commit is contained in:
@@ -54,6 +54,15 @@ export const overridesPreferences = defineOverridesPreferences({
|
|||||||
* 这里为6px 与antd保持一致
|
* 这里为6px 与antd保持一致
|
||||||
*/
|
*/
|
||||||
radius: '0.375',
|
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 { onMounted } from 'vue';
|
||||||
|
|
||||||
import { useLocalStorage } from '@vueuse/core';
|
import { useLocalStorage } from '@vueuse/core';
|
||||||
import { Modal } from 'antdv-next';
|
|
||||||
|
|
||||||
export function useUploadTip() {
|
export function useUploadTip() {
|
||||||
const readTip = useLocalStorage<boolean>('__upload_tip_read_5.4.0', false);
|
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) {
|
if (readTip.value || !import.meta.env.DEV) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const modalInstance = Modal.info({
|
const modalInstance = window.modal.info({
|
||||||
title: '提示',
|
title: '提示',
|
||||||
centered: true,
|
centered: true,
|
||||||
content:
|
content:
|
||||||
|
|||||||
Reference in New Issue
Block a user