소스 검색

CardPro 组件支持第三方图标

夜鹰 8 달 전
부모
커밋
41ff1da6ba
1개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 3
      Web/src/components/CardPro/index.vue

+ 1 - 3
Web/src/components/CardPro/index.vue

@@ -4,9 +4,7 @@
             <div class="cardpro-header">
                 <div v-if="$slots.prefix || prefixIcon" class="cardpro-header-prefix">
                     <slot v-if="$slots.prefix" name="prefix" />
-                    <el-icon v-else-if="prefixIcon">
-                        <component :is="prefixIcon" />
-                    </el-icon>
+                    <SvgIcon v-else-if="prefixIcon" :name="prefixIcon" />
                 </div>
                 <div class="cardpro-header-title">
                     <span>{{ props.title }}</span>