Browse Source

add 引入vxe-table依赖支持

LiuHao 1 year ago
parent
commit
b4cc7b3de0
2 changed files with 10 additions and 1 deletions
  1. 2 1
      package.json
  2. 8 0
      src/main.ts

+ 2 - 1
package.json

@@ -42,7 +42,8 @@
     "vue-cropper": "1.1.1",
     "vue-i18n": "9.9.0",
     "vue-router": "4.2.5",
-    "vue-types": "5.1.1"
+    "vue-types": "5.1.1",
+    "vxe-table": "4.5.18"
   },
   "devDependencies": {
     "@iconify/json": "2.2.168",

+ 8 - 0
src/main.ts

@@ -25,12 +25,20 @@ import './permission';
 // 国际化
 import i18n from '@/lang/index';
 
+// vxeTable
+import VXETable from 'vxe-table';
+import 'vxe-table/lib/style.css';
+VXETable.config({
+  zIndex: 999999
+});
+
 const app = createApp(App);
 
 app.use(ElementIcons);
 app.use(router);
 app.use(store);
 app.use(i18n);
+app.use(VXETable);
 app.use(plugins);
 // 自定义指令
 directive(app);