From 3862f9d382cff0f4a31decfa36a52ea8bed8ddc0 Mon Sep 17 00:00:00 2001
From: icssoa <2570063477@qq.com>
Date: Sat, 3 Apr 2021 13:37:52 +0800
Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E7=BB=93=E6=9E=84=EF=BC=8C?=
=?UTF-8?q?=E6=B7=BB=E5=8A=A0=20/$?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.vscode/crud.code-snippets | 6 +-
package.json | 3 +-
src/config/env.ts | 2 +-
.../modules/base/components/dept/tree.vue | 2 +-
.../modules/base/components/menu/icons.vue | 2 +-
.../modules/base/components/process/index.vue | 2 +-
src/cool/modules/base/views/log.vue | 2 +-
src/cool/modules/base/views/menu.vue | 2 +-
src/cool/modules/base/views/param.vue | 2 +-
src/cool/modules/base/views/plugin.vue | 4 +-
src/cool/modules/base/views/role.vue | 2 +-
src/cool/modules/base/views/user.vue | 2 +-
src/cool/modules/chat/components/session.vue | 2 +-
src/cool/modules/crud/common/index.ts | 0
src/cool/modules/crud/components/add-btn.tsx | 2 +-
src/cool/modules/crud/components/adv-btn.tsx | 2 +-
.../modules/crud/components/adv-search.tsx | 6 +-
.../components/context-menu/context-menu.tsx | 10 +-
.../modules/crud/components/crud/helper.ts | 2 +-
.../modules/crud/components/crud/index.tsx | 4 +-
.../modules/crud/components/dialog/index.tsx | 2 +-
.../crud/components/multi-delete-btn.tsx | 2 +-
.../modules/crud/components/pagination.tsx | 10 +-
src/cool/modules/crud/components/query.tsx | 10 +-
.../modules/crud/components/refresh-btn.tsx | 4 +-
.../modules/crud/components/search-key.tsx | 2 +-
.../modules/crud/components/table/index.tsx | 9 +-
.../modules/crud/components/upsert/index.tsx | 2 +-
src/cool/modules/crud/index.ts | 3 +-
.../crud/{assets => static}/index.scss | 0
.../demo/components/crud/adv-search.vue | 2 +-
.../demo/components/crud/context-menu.vue | 2 +-
.../modules/demo/components/crud/form.vue | 2 +-
.../modules/demo/components/crud/query.vue | 2 +-
.../modules/demo/components/crud/table.vue | 2 +-
.../modules/demo/components/crud/upsert.vue | 2 +-
src/cool/modules/demo/views/crud.vue | 2 +-
src/cool/modules/task/views/task.vue | 4 +-
.../upload/components/space/category.vue | 4 +-
.../upload/components/space/file-item.vue | 2 +-
src/core/set/router.ts | 2 +-
src/views/home/index.vue | 169 ++++++------------
tsconfig.json | 1 +
vite.config.ts | 5 +-
yarn.lock | 9 +-
45 files changed, 129 insertions(+), 184 deletions(-)
delete mode 100644 src/cool/modules/crud/common/index.ts
rename src/cool/modules/crud/{assets => static}/index.scss (100%)
diff --git a/.vscode/crud.code-snippets b/.vscode/crud.code-snippets
index e085492..360a9f8 100644
--- a/.vscode/crud.code-snippets
+++ b/.vscode/crud.code-snippets
@@ -18,7 +18,7 @@
"",
" ",
" ",
- " ",
+ " ",
" ",
"",
" ",
@@ -28,13 +28,13 @@
" ",
"",
" ",
- " ",
+ " ",
" ",
"",
"",
"
-
-
diff --git a/tsconfig.json b/tsconfig.json
index b37f618..1f326aa 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -12,6 +12,7 @@
"lib": ["esnext", "dom"],
"types": ["vite/client", "vite-svg-loader"],
"paths": {
+ "/$/*": ["./src/cool/modules/*"],
"/@/*": ["./src/*"],
"/#/*": ["./types/*"]
}
diff --git a/vite.config.ts b/vite.config.ts
index cde2c01..72c9737 100644
--- a/vite.config.ts
+++ b/vite.config.ts
@@ -17,7 +17,8 @@ export default ({ command, mode }: ConfigEnv): UserConfig => {
resolve: {
alias: {
"/@": resolve("src"),
- "/#": resolve("types")
+ "/#": resolve("types"),
+ "/$": resolve("src/cool/modules")
}
},
css: {
@@ -48,7 +49,7 @@ export default ({ command, mode }: ConfigEnv): UserConfig => {
},
build: {
sourcemap: false,
- polyfillDynamicImport: false
+ polyfillDynamicImport: false // 必须为false
},
optimizeDeps: {
exclude: ["vue-demi"]
diff --git a/yarn.lock b/yarn.lock
index db1981d..6812a79 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -491,6 +491,13 @@
"@vue/compiler-dom" "3.0.9"
"@vue/shared" "3.0.9"
+"@vue/composition-api@^1.0.0-rc.6":
+ version "1.0.0-rc.6"
+ resolved "https://registry.npmjs.org/@vue/composition-api/-/composition-api-1.0.0-rc.6.tgz#21ce2c169dd4ff17a5bf60c6e98863dff1a36540"
+ integrity sha512-M3jsyDBozQFqAPYdM4GCoVZEljIHsTVdcq5fZx9axpKz9ChIlQngxNf1ziLVaJvWX7T+MO1rVTEx6Xjgg/gUcQ==
+ dependencies:
+ tslib "^2.1.0"
+
"@vue/reactivity@3.0.11":
version "3.0.11"
resolved "https://registry.yarnpkg.com/@vue/reactivity/-/reactivity-3.0.11.tgz#07b588349fd05626b17f3500cbef7d4bdb4dbd0b"
@@ -3470,7 +3477,7 @@ tslib@^1.8.1:
resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00"
integrity sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==
-tslib@^2.0.3:
+tslib@^2.0.3, tslib@^2.1.0:
version "2.1.0"
resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.1.0.tgz#da60860f1c2ecaa5703ab7d39bc05b6bf988b97a"
integrity sha512-hcVC3wYEziELGGmEEXue7D75zbwIIVUMWAVbHItGPx0ziyXxrOMQx4rQEVEV45Ut/1IotuEvwqPopzIOkDMf0A==