mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
[bugfix] Icon: avoid using tag selector (#1482)
This commit is contained in:
parent
34f34ba56b
commit
8b0ee2066e
@ -5,17 +5,17 @@
|
|||||||
&--image {
|
&--image {
|
||||||
width: 1em;
|
width: 1em;
|
||||||
height: 1em;
|
height: 1em;
|
||||||
|
}
|
||||||
|
|
||||||
image {
|
&__image {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
max-height: 100%;
|
max-height: 100%;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
&__info {
|
&__info {
|
||||||
|
@ -13,5 +13,6 @@
|
|||||||
<image
|
<image
|
||||||
wx:if="{{ utils.isSrc(name) }}"
|
wx:if="{{ utils.isSrc(name) }}"
|
||||||
src="{{ name }}"
|
src="{{ name }}"
|
||||||
|
class="van-icon__image"
|
||||||
/>
|
/>
|
||||||
</view>
|
</view>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user