소스 검색

去除icon下的text中的内容(新css文件使用了before,避免重复,不影响之前的图标展示)

htc 11 달 전
부모
커밋
87feeaddf7
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      uni_modules/uview-ui/components/u-icon/u-icon.vue

+ 1 - 1
uni_modules/uview-ui/components/u-icon/u-icon.vue

@@ -17,7 +17,7 @@
 		    :class="uClasses"
 		    :style="[iconStyle, $u.addStyle(customStyle)]"
 		    :hover-class="hoverClass"
-		>{{icon}}</text>
+		></text>
 		<!-- 这里进行空字符串判断,如果仅仅是v-if="label",可能会出现传递0的时候,结果也无法显示 -->
 		<text
 		    v-if="label !== ''"