mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-25 02:58:27 +08:00
[improvement] Icon: optimize image icon style (#1840)
This commit is contained in:
parent
dfdc001ea3
commit
73c3285603
@ -8,14 +8,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
&__image {
|
&__image {
|
||||||
position: absolute;
|
width: 100%;
|
||||||
top: 0;
|
height: 100%;
|
||||||
right: 0;
|
|
||||||
bottom: 0;
|
|
||||||
left: 0;
|
|
||||||
max-width: 100%;
|
|
||||||
max-height: 100%;
|
|
||||||
margin: auto;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
&__info {
|
&__info {
|
||||||
|
@ -13,6 +13,7 @@
|
|||||||
<image
|
<image
|
||||||
wx:if="{{ utils.isSrc(name) }}"
|
wx:if="{{ utils.isSrc(name) }}"
|
||||||
src="{{ name }}"
|
src="{{ name }}"
|
||||||
|
mode="aspectFit"
|
||||||
class="van-icon__image"
|
class="van-icon__image"
|
||||||
/>
|
/>
|
||||||
</view>
|
</view>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user