mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
fix(icon): fix display exception in classPrefix (#5320)
This commit is contained in:
parent
9c5c8ce9f0
commit
588ba18b75
@ -2,6 +2,7 @@
|
||||
@import '@vant/icons/src/index.less';
|
||||
|
||||
:host {
|
||||
position: relative;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
@ -13,10 +13,6 @@ 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