diff --git a/package.json b/package.json index 7eb3b15..0450e30 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "front-next", - "version": "5.7.10", + "version": "5.8.0", "scripts": { "dev": "vite --host", "build": "vite build", @@ -11,16 +11,16 @@ "dependencies": { "@codemirror/lang-javascript": "^6.0.1", "@codemirror/theme-one-dark": "^6.0.0", - "@cool-vue/crud": "^5.3.6", + "@cool-vue/crud": "^5.4.0", "@element-plus/icons-vue": "^2.0.6", - "@vueuse/core": "^8.9.4", + "@vueuse/core": "^9.1.0", "axios": "^0.27.2", "codemirror": "^6.0.1", "core-js": "^3.23.5", "echarts": "^5.3.3", "element-plus": "^2.2.12", "file-saver": "^2.0.5", - "lodash": "^4.17.21", + "lodash-es": "^4.17.21", "mitt": "^3.0.0", "mockjs": "^1.1.0", "nprogress": "^0.2.0", @@ -36,7 +36,7 @@ "xlsx": "^0.18.5" }, "devDependencies": { - "@types/lodash": "^4.14.182", + "@types/lodash-es": "^4.17.6", "@types/mockjs": "^1.0.6", "@types/node": "^18.0.6", "@types/nprogress": "^0.2.0", @@ -45,7 +45,6 @@ "@types/uuid": "^8.3.4", "@typescript-eslint/eslint-plugin": "^5.30.6", "@typescript-eslint/parser": "^5.30.6", - "@unocss/preset-uno": "^0.44.3", "@vitejs/plugin-vue": "^3.0.1", "@vitejs/plugin-vue-jsx": "^2.0.0", "@vue/cli-plugin-babel": "^5.0.8", @@ -56,12 +55,13 @@ "eslint-config-prettier": "^8.1.0", "eslint-plugin-prettier": "^4.2.1", "eslint-plugin-vue": "^9.2.0", + "lodash": "^4.17.21", "magic-string": "^0.26.2", "prettier": "^2.7.1", "sass": "^1.53.0", "sass-loader": "^13.0.2", "typescript": "^4.7.4", - "vite": "^3.0.3", + "vite": "^3.0.6", "vite-plugin-compression": "^0.5.1" } } diff --git a/src/cool/bootstrap/eps.ts b/src/cool/bootstrap/eps.ts index adb8a17..207dc61 100644 --- a/src/cool/bootstrap/eps.ts +++ b/src/cool/bootstrap/eps.ts @@ -1,7 +1,7 @@ import { isDev, config } from "../config"; import { BaseService, service } from "../service"; import { Data, toCamel } from "../utils"; -import { isArray, isEmpty } from "lodash"; +import { isArray, isEmpty } from "lodash-es"; // 获取标签名 function getNames(v: any) { diff --git a/src/cool/bootstrap/module.ts b/src/cool/bootstrap/module.ts index 86578c3..39aa1aa 100644 --- a/src/cool/bootstrap/module.ts +++ b/src/cool/bootstrap/module.ts @@ -1,6 +1,6 @@ // @ts-nocheck import { App } from "vue"; -import { isFunction, orderBy } from "lodash"; +import { isFunction, orderBy } from "lodash-es"; import { Data, deepMerge, filename, mergeService } from "../utils"; import { service } from "../service"; import { module } from "../module"; diff --git a/src/cool/router/index.ts b/src/cool/router/index.ts index fb5811a..e715f1f 100644 --- a/src/cool/router/index.ts +++ b/src/cool/router/index.ts @@ -1,7 +1,7 @@ import { ElMessage } from "element-plus"; import { createRouter, createWebHashHistory, createWebHistory, RouteRecordRaw } from "vue-router"; import { config, Router, storage, module } from "/@/cool"; -import { isArray } from "lodash"; +import { isArray } from "lodash-es"; import { useBase } from "/$/base"; import { Loading } from "../utils"; diff --git a/src/cool/service/base.ts b/src/cool/service/base.ts index c31ab00..2f40cbe 100644 --- a/src/cool/service/base.ts +++ b/src/cool/service/base.ts @@ -1,6 +1,6 @@ // @ts-nocheck import { isDev, config, proxy } from "../config"; -import { isObject } from "lodash"; +import { isObject } from "lodash-es"; import { request } from "./request"; export function Service( diff --git a/src/cool/utils/index.ts b/src/cool/utils/index.ts index 5686ea3..f167925 100644 --- a/src/cool/utils/index.ts +++ b/src/cool/utils/index.ts @@ -1,4 +1,4 @@ -import { isArray, orderBy } from "lodash"; +import { isArray, orderBy } from "lodash-es"; import storage from "./storage"; // 首字母大写 diff --git a/src/modules/base/common/permission.ts b/src/modules/base/common/permission.ts index 27830c3..066f2c4 100644 --- a/src/modules/base/common/permission.ts +++ b/src/modules/base/common/permission.ts @@ -1,5 +1,5 @@ import { useStore } from "../store"; -import { isObject } from "lodash"; +import { isObject } from "lodash-es"; function parse(value: any) { const { menu } = useStore(); diff --git a/src/modules/base/components/avatar/index.vue b/src/modules/base/components/avatar/index.vue index 4541f8f..40d71bd 100644 --- a/src/modules/base/components/avatar/index.vue +++ b/src/modules/base/components/avatar/index.vue @@ -12,7 +12,7 @@ -