Просмотр исходного кода

replace @element-plus/icons with @element-plus/icons-vue

RuoYi 3 лет назад
Родитель
Сommit
475e27f4a6
2 измененных файлов с 3 добавлено и 2 удалено
  1. 1 1
      package.json
  2. 2 1
      src/components/SvgIcon/svgicon.js

+ 1 - 1
package.json

@@ -15,7 +15,7 @@
     "url": "https://gitee.com/y_project/RuoYi-Vue.git"
   },
   "dependencies": {
-    "@element-plus/icons": "0.0.11",
+    "@element-plus/icons-vue": "0.2.4",
     "@vueuse/core": "6.4.1",
     "axios": "0.24.0",
     "echarts": "5.2.1",

+ 2 - 1
src/components/SvgIcon/svgicon.js

@@ -1,4 +1,5 @@
-import * as components from "@element-plus/icons";
+import * as components from '@element-plus/icons-vue'
+
 export default {
     install: (app) => {
         for (const key in components) {