[improvement] Icon: use image component to display image (#3515)
This commit is contained in:
@@ -2,19 +2,8 @@
|
||||
@import '@vant/icons/src/index.less';
|
||||
|
||||
.van-icon {
|
||||
&--image {
|
||||
&__image {
|
||||
width: 1em;
|
||||
height: 1em;
|
||||
|
||||
img {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
max-width: 100%;
|
||||
max-height: 100%;
|
||||
margin: auto;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user