refactor: 移除未使用的vxe-pc-ui依赖并清理相关代码

移除`vxe-pc-ui`依赖,清理了`package.json`和`package-lock.json`中的相关配置。同时,删除了`dict.vue`和`vxe-table.ts`中与`vxe-pc-ui`相关的代码,简化了表格配置逻辑。这些更改旨在减少项目依赖,提高代码的可维护性。
This commit is contained in:
user 2025-03-21 17:34:29 +08:00
parent ffc12826c7
commit 721731500a
5 changed files with 5 additions and 11 deletions

7
package-lock.json generated
View File

@ -34,7 +34,6 @@
"vue-i18n": "11.1.0",
"vue-router": "4.5.0",
"vue-web-cam": "^1.9.0",
"vxe-pc-ui": "^4.4.20",
"vxe-table": "^4.11.28",
"xe-utils": "^3.7.4"
},
@ -13835,9 +13834,9 @@
}
},
"node_modules/vxe-pc-ui": {
"version": "4.4.20",
"resolved": "https://registry.npmmirror.com/vxe-pc-ui/-/vxe-pc-ui-4.4.20.tgz",
"integrity": "sha512-XDQAWzXHpCgGlfesnisR2rIGf+YBUXx0Ivopkf+20+5SFjM3Sd4/zJH152neYjNTU3A8j5/+0h9o/X7bTn+F+Q==",
"version": "4.4.21",
"resolved": "https://registry.npmmirror.com/vxe-pc-ui/-/vxe-pc-ui-4.4.21.tgz",
"integrity": "sha512-g877IT/oXQH4MCnLEh+YZU0xQ+952X3OqktuQkuvQeqv+UgIQyK6eODiNAp9JdFhEcZPzfoUZMjjZt9eXpeqBg==",
"license": "MIT",
"dependencies": {
"@vxe-ui/core": "^4.0.38"

View File

@ -102,7 +102,6 @@
"vue-i18n": "11.1.0",
"vue-router": "4.5.0",
"vue-web-cam": "^1.9.0",
"vxe-pc-ui": "^4.4.20",
"vxe-table": "^4.11.28",
"xe-utils": "^3.7.4"
},

View File

@ -3,7 +3,6 @@ package com.vxnet.pms.service;
import com.vxnet.pms.domain.Dict;
import com.vxnet.pms.repository.DictRepository;
import com.vxnet.pms.security.SecurityUtils;
import java.util.HashMap;
import java.util.Map;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Pageable;

View File

@ -73,7 +73,6 @@
<div class="dict-list" v-if="dicts && dicts.length > 0">
<vxe-table
:data="dicts"
:columns="columns.filter(col => col.visible !== false)"
:tree-config="{ childrenField: 'children' }"
:border="true"
:stripe="true"

View File

@ -1,15 +1,13 @@
import type { App } from 'vue';
import VxeUIAll from 'vxe-pc-ui';
import 'vxe-pc-ui/lib/style.css';
import VxeUITable from 'vxe-table';
import 'vxe-table/lib/style.css';
export function setupVXETable(app: App) {
// 全局注册
app.use(VxeUIAll).use(VxeUITable);
app.use(VxeUITable);
// 全局配置
VxeUIAll.setConfig({
VxeUITable.setConfig({
// 全局配置默认参数
table: {
border: true,