提交 6ef2013f 编写于 作者: d-u-a's avatar d-u-a

fix: h5 tabbar iconfont 增加是否配置字体判断 和 默认字体大小

上级 b3e514c2
......@@ -45,7 +45,7 @@
v-if="item.iconfont"
:style="{
color:selectedIndex === index ? selectedColor : color,
fontSize: item.iconfont.fontSize || fontSize
fontSize: item.iconfont.fontSize || iconWidth
}"
class="uni-tabbar__iconfont"
>
......@@ -360,12 +360,15 @@ export default {
this.$set(item, 'visible', true)
}
})
loadFontFace({
options: {
family: UNI_TABBAR_ICON_FONT,
source: `url("${this.iconfontSrc}")`
}
})
if (this.iconfontSrc) {
loadFontFace({
options: {
family: UNI_TABBAR_ICON_FONT,
source: `url("${this.iconfontSrc}")`
}
})
}
},
beforeCreate () {
this.__path__ = this.$route.path
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册