From 7e460156de73171f9660ce48f80703e79f8b478d Mon Sep 17 00:00:00 2001
From: Crunchy <3114200645@qq.com>
Date: 星期六, 14 六月 2025 11:48:26 +0800
Subject: [PATCH] 初始化提交

---
 src/components/SvgIcon/index.vue |   14 +++++++++-----
 1 files changed, 9 insertions(+), 5 deletions(-)

diff --git a/src/components/SvgIcon/index.vue b/src/components/SvgIcon/index.vue
index b07ded2..0cef74e 100644
--- a/src/components/SvgIcon/index.vue
+++ b/src/components/SvgIcon/index.vue
@@ -1,8 +1,11 @@
 <template>
   <div v-if="isExternal" :style="styleExternalIcon" class="svg-external-icon svg-icon" v-on="$listeners" />
-  <svg v-else :class="svgClass" aria-hidden="true" v-on="$listeners">
+  <!-- <svg v-else :class="svgClass" aria-hidden="true" v-on="$listeners">
     <use :xlink:href="iconName" />
-  </svg>
+  </svg> -->
+  <span v-else class="iconfont" :class="svgClass" aria-hidden="true" v-on="$listeners">
+    <!-- <i class="iconfont" :class="iconName"></i> -->
+  </span>
 </template>
 
 <script>
@@ -26,13 +29,14 @@
       return isExternal(this.iconClass)
     },
     iconName() {
-      return `#icon-${this.iconClass}`
+      // return `#icon-${this.iconClass}`
+      return `iconfont ${this.iconClass}`
     },
     svgClass() {
       if (this.className) {
-        return 'svg-icon ' + this.className
+        return 'svg-icon ' + this.iconClass + this.className
       } else {
-        return 'svg-icon'
+        return 'svg-icon ' + this.iconClass
       }
     },
     styleExternalIcon() {

--
Gitblit v1.9.3