fix(Icon): remove white space under image when using image URL (#10220)

* fix(Icon): use image URL as name prop, remove white space under image

* Update index.less

Co-authored-by: neverland <chenjiahan@buaa.edu.cn>
This commit is contained in:
mrayi 2022-01-23 21:35:43 +08:00 committed by GitHub
parent 0424a15766
commit befdf5e857
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,6 +2,7 @@
.van-icon { .van-icon {
&__image { &__image {
display: block;
width: 1em; width: 1em;
height: 1em; height: 1em;
object-fit: contain; object-fit: contain;