mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
fix(icon): fix dot when custom icon (#5253)
Co-authored-by: liuhaihonggia <liuhaihong@youzan.com>
This commit is contained in:
parent
0fc6103e1b
commit
cf36c8ebbd
@ -13,6 +13,10 @@ function rootClass(data) {
|
||||
classes.push(data.classPrefix);
|
||||
}
|
||||
|
||||
if (data.classPrefix !== 'van-icon') {
|
||||
classes.push('van-icon')
|
||||
}
|
||||
|
||||
if (isImage(data.name)) {
|
||||
classes.push('van-icon--image');
|
||||
} else if (data.classPrefix != null) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user