From cf36c8ebbdc6839aa1c92db06fce38a7ac79f898 Mon Sep 17 00:00:00 2001 From: landluck Date: Sun, 26 Feb 2023 18:47:44 +0800 Subject: [PATCH] fix(icon): fix dot when custom icon (#5253) Co-authored-by: liuhaihonggia --- packages/icon/index.wxs | 4 ++++ 1 file changed, 4 insertions(+) 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) {