refactor(projects): 抽离格式化相关依赖配置

This commit is contained in:
Soybean
2022-08-10 21:31:59 +08:00
parent 16dce9a4ce
commit f4d37cf7f0
78 changed files with 324 additions and 437 deletions

View File

@ -2,7 +2,7 @@ import type { GlobalThemeOverrides } from 'naive-ui';
import { cloneDeep } from 'lodash-es';
import { themeSetting } from '@/settings';
import { EnumStorageKey } from '@/enum';
import { getThemeColor, getColorPalette, addColorAlpha, setLocal, getLocal, removeLocal } from '@/utils';
import { addColorAlpha, getColorPalette, getLocal, getThemeColor, removeLocal, setLocal } from '@/utils';
/** 初始化主题配置 */
export function initThemeSettings() {

View File

@ -1,6 +1,6 @@
import { defineStore } from 'pinia';
import { darkTheme } from 'naive-ui';
import { initThemeSettings, getNaiveThemeOverrides, setThemeSettings, clearThemeSettings } from './helpers';
import { clearThemeSettings, getNaiveThemeOverrides, initThemeSettings, setThemeSettings } from './helpers';
type ThemeState = Theme.Setting;