From 3e30327e4d17f9b7a97dbf24c58006137ca32369 Mon Sep 17 00:00:00 2001 From: April <1317795103@qq.com> Date: Wed, 14 Jun 2023 23:37:06 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=A1=A8=E6=A0=BC=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Former-commit-id: 07383021b7a17b5beb30a8b6284478b5512c1743 --- package.json | 2 +- src/types/env.d.ts | 6 ++- src/views/demo/table.vue | 114 ++++++++++++++++++++++++++++++++++----- 3 files changed, 106 insertions(+), 16 deletions(-) diff --git a/package.json b/package.json index cbaf4d50..3ba47d45 100644 --- a/package.json +++ b/package.json @@ -41,7 +41,6 @@ ] }, "dependencies": { - "@types/lodash": "^4.14.195", "@vitejs/plugin-vue": "^4.2.3", "@vueuse/core": "^10.1.2", "@wangeditor/editor": "^5.1.23", @@ -65,6 +64,7 @@ "@commitlint/config-conventional": "^17.6.3", "@iconify-json/ep": "^1.1.10", "@types/codemirror": "^5.60.7", + "@types/lodash": "^4.14.195", "@types/nprogress": "^0.2.0", "@types/path-browserify": "^1.0.0", "@typescript-eslint/eslint-plugin": "^5.59.6", diff --git a/src/types/env.d.ts b/src/types/env.d.ts index bcddf3e8..d9cdd46b 100644 --- a/src/types/env.d.ts +++ b/src/types/env.d.ts @@ -1,7 +1,7 @@ /// -declare module '*.vue' { - import { DefineComponent } from 'vue'; +declare module "*.vue" { + import { DefineComponent } from "vue"; // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types const component: DefineComponent<{}, {}, any>; export default component; @@ -17,3 +17,5 @@ interface ImportMetaEnv { interface ImportMeta { readonly env: ImportMetaEnv; } + +declare module "lodash-es"; diff --git a/src/views/demo/table.vue b/src/views/demo/table.vue index dda8cb95..f2dd1bd7 100644 --- a/src/views/demo/table.vue +++ b/src/views/demo/table.vue @@ -12,7 +12,14 @@ >