[bugfix] Icon: avoid using tag selector (#1482)

This commit is contained in:
neverland 2019-04-02 13:54:56 +08:00 committed by GitHub
parent 34f34ba56b
commit 8b0ee2066e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 10 deletions

View File

@ -5,8 +5,9 @@
&--image { &--image {
width: 1em; width: 1em;
height: 1em; height: 1em;
}
image { &__image {
position: absolute; position: absolute;
top: 0; top: 0;
right: 0; right: 0;
@ -16,7 +17,6 @@
max-height: 100%; max-height: 100%;
margin: auto; margin: auto;
} }
}
&__info { &__info {
z-index: 1; z-index: 1;

View File

@ -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>