From 2477a44ee500261d4670a95048afa66156884ca3 Mon Sep 17 00:00:00 2001
From: icssoa <615206459@qq.com>
Date: Fri, 12 Aug 2022 21:21:05 +0800
Subject: [PATCH] =?UTF-8?q?upload=20=E6=94=AF=E6=8C=81=E8=87=AA=E5=AE=9A?=
=?UTF-8?q?=E4=B9=89=E5=86=85=E5=AE=B9=EF=BC=8Ccrud=20=E6=B7=BB=E5=8A=A0?=
=?UTF-8?q?=20info=20=E8=AF=A6=E6=83=85=E6=8C=89=E9=92=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
package.json | 14 +--
src/cool/bootstrap/eps.ts | 2 +-
src/cool/bootstrap/module.ts | 2 +-
src/cool/router/index.ts | 2 +-
src/cool/service/base.ts | 2 +-
src/cool/utils/index.ts | 2 +-
src/modules/base/common/permission.ts | 2 +-
src/modules/base/components/avatar/index.vue | 2 +-
.../base/components/codemirror/index.vue | 2 +-
.../base/components/editor-quill/index.vue | 2 +-
src/modules/base/components/icon/svg.vue | 2 +-
src/modules/base/components/image/index.vue | 2 +-
src/modules/base/components/link/index.vue | 2 +-
src/modules/base/components/switch/index.tsx | 2 +-
.../base/layout/components/process.vue | 2 +-
.../base/layout/components/route-nav.vue | 2 +-
src/modules/base/store/menu.ts | 2 +-
.../base/views/components/dept/tree.vue | 2 +-
.../base/views/components/menu/create.vue | 2 +-
.../base/views/components/menu/select.vue | 2 +-
src/modules/base/views/info.vue | 2 +-
src/modules/chat/components/index.vue | 4 +-
src/modules/demo/views/crud.vue | 3 +-
src/modules/demo/views/upload.vue | 12 +-
src/modules/upload/components/index.vue | 108 ++++++++++--------
src/modules/upload/components/space.vue | 2 +-
.../upload/components/space/category.vue | 2 +-
yarn.lock | 97 ++++++++--------
28 files changed, 156 insertions(+), 126 deletions(-)
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 @@
-