瀏覽代碼

fix: vxe-table icon not show

xiaoxian521 3 年之前
父節點
當前提交
52910602ff
共有 3 個文件被更改,包括 9 次插入0 次删除
  1. 1 0
      package.json
  2. 7 0
      pnpm-lock.yaml
  3. 1 0
      src/plugins/vxe-table/index.ts

+ 1 - 0
package.json

@@ -92,6 +92,7 @@
     "eslint": "^8.8.0",
     "eslint-plugin-prettier": "^4.0.0",
     "eslint-plugin-vue": "^8.4.1",
+    "font-awesome": "^4.7.0",
     "husky": "^7.0.4",
     "lint-staged": "11.1.2",
     "postcss": "^8.4.6",

+ 7 - 0
pnpm-lock.yaml

@@ -43,6 +43,7 @@ specifiers:
   eslint: ^8.8.0
   eslint-plugin-prettier: ^4.0.0
   eslint-plugin-vue: ^8.4.1
+  font-awesome: ^4.7.0
   husky: ^7.0.4
   js-cookie: ^3.0.1
   lint-staged: 11.1.2
@@ -162,6 +163,7 @@ devDependencies:
   eslint: 8.9.0
   eslint-plugin-prettier: 4.0.0_eslint@8.9.0+prettier@2.5.1
   eslint-plugin-vue: 8.4.1_eslint@8.9.0
+  font-awesome: 4.7.0
   husky: 7.0.4
   lint-staged: 11.1.2
   postcss: 8.4.6
@@ -3796,6 +3798,11 @@ packages:
         optional: true
     dev: false
 
+  /font-awesome/4.7.0:
+    resolution: { integrity: sha1-j6jPBBGhoxr9B7BtKQK7n8gVoTM= }
+    engines: { node: ">=0.10.3" }
+    dev: true
+
   /fraction.js/4.1.3:
     resolution:
       {

+ 1 - 0
src/plugins/vxe-table/index.ts

@@ -1,6 +1,7 @@
 import "xe-utils";
 import { App } from "vue";
 import { i18n } from "../i18n/index";
+import "font-awesome/css/font-awesome.min.css";
 import {
   // 核心
   VXETable,