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 <liuhaihong@youzan.com>
This commit is contained in:
landluck 2023-05-15 16:21:14 +08:00 committed by GitHub
parent ef8331bd23
commit 3db8f8a5b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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}"`;