From 3db8f8a5b4ce85c5ee3750fb609e21646a4fd121 Mon Sep 17 00:00:00 2001 From: landluck Date: Mon, 15 May 2023 16:21:14 +0800 Subject: [PATCH] docs(Icon): icon demo params adaptive vant weapp (#11851) * docs(icon): icon demo params adaptive vant weapp * docs(icon): icon demo params adaptive vant weapp --------- Co-authored-by: landluck --- src/icon/demo/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/icon/demo/index.vue b/src/icon/demo/index.vue index e34762181..71f98d915 100644 --- a/src/icon/demo/index.vue +++ b/src/icon/demo/index.vue @@ -152,7 +152,7 @@ export default { tag = `${tag} ${option.dot ? 'dot' : ''}`; } if ('badge' in option) { - tag = `${tag} badge="${option.badge}"`; + tag = `${tag} ${this.isWeapp ? 'info' : 'badge'}="${option.badge}"`; } if ('color' in option) { tag = `${tag} color="${option.color}"`;