diff --git a/packages/icon/index.wxs b/packages/icon/index.wxs index 45e3aa0a..e29ecd0c 100644 --- a/packages/icon/index.wxs +++ b/packages/icon/index.wxs @@ -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) {