Browse Source

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

htc 9 months ago
parent
commit
87feeaddf7
1 changed files with 1 additions and 1 deletions
  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 !== ''"