build(deps): 依赖升级

This commit is contained in:
Soybean 2021-09-08 14:50:13 +08:00
parent 0a1711d5b1
commit 6b7f4cfccb
4 changed files with 698 additions and 442 deletions

View File

@ -23,17 +23,17 @@
"chroma-js": "^2.1.2",
"dayjs": "^1.10.6",
"form-data": "^4.0.0",
"naive-ui": "^2.18.0",
"naive-ui": "^2.18.1",
"pinia": "^2.0.0-rc.4",
"qs": "^6.10.1",
"smoothscroll-polyfill": "^0.4.4",
"vue": "^3.2.4",
"vue": "^3.2.10",
"vue-router": "^4.0.11"
},
"devDependencies": {
"@commitlint/cli": "^13.1.0",
"@commitlint/config-conventional": "^13.1.0",
"@iconify/json": "^1.1.398",
"@iconify/json": "^1.1.399",
"@types/chroma-js": "^2.1.3",
"@types/nprogress": "^0.2.0",
"@types/qs": "^6.9.7",
@ -41,7 +41,7 @@
"@typescript-eslint/eslint-plugin": "^4.31.0",
"@typescript-eslint/parser": "^4.31.0",
"@vitejs/plugin-vue": "^1.6.1",
"@vue/compiler-sfc": "^3.2.9",
"@vue/compiler-sfc": "^3.2.10",
"@vue/eslint-config-prettier": "^6.0.0",
"@vue/eslint-config-typescript": "^7.0.0",
"commitizen": "^4.2.4",
@ -62,10 +62,10 @@
"sass": "^1.39.0",
"typescript": "^4.4.2",
"unplugin-icons": "^0.7.6",
"unplugin-vue-components": "^0.14.12",
"vite": "^2.5.3",
"unplugin-vue-components": "^0.15.0",
"vite": "^2.5.5",
"vite-plugin-html": "^2.1.0",
"vite-plugin-windicss": "^1.4.1",
"vite-plugin-windicss": "^1.4.2",
"vue-tsc": "^0.3.0",
"windicss": "^3.1.7"
},

File diff suppressed because it is too large Load Diff

View File

@ -1,5 +1,5 @@
import type { ThemeSettings } from '@/interface';
import { EnumAnimate } from '@/enum';
import type { ThemeSettings } from '../../interface';
import { EnumAnimate } from '../../enum';
const themeColorList = [
'#409EFF',

View File

@ -70,12 +70,16 @@ const themeStore = defineStore({
this.menuStyle.splitMenu = isSplit;
},
/** 更改菜单展开的宽度 */
handleMenuWidth(width: number) {
this.menuStyle.width = width;
handleMenuWidth(width: number | null) {
if (width !== null) {
this.menuStyle.width = width;
}
},
/** 更改头部的高度(不包含tab标签) */
handleHeaderHeight(height: number) {
this.headerStyle.height = height;
handleHeaderHeight(height: number | null) {
if (height !== null) {
this.headerStyle.height = height;
}
},
/** 固定头部 */
handleFixedHeader(isFixed: boolean) {