Procházet zdrojové kódy

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

htc před 9 měsíci
rodič
revize
87feeaddf7

+ 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 !== ''"