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 @@
>
-
{{ oneCol.label }}
+
+
{{ oneCol.label }}
+
+
+
+
+
+
handleCommand(command, oneCol)"
@@ -20,10 +27,16 @@
-
+
+
+ 升序
+
+
+ 降序
+
+
- 冻结
+ {{ oneCol.fixed ? "解冻" : "冻结" }}
@@ -36,7 +49,7 @@