[bugfix] Info: fix wrong style

fix #1268
This commit is contained in:
rex 2019-03-20 20:18:16 +08:00 committed by GitHub
parent 2cc9943392
commit ccd713d039
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 11 deletions

View File

@ -2,20 +2,21 @@
.van-info {
position: absolute;
right: 0;
top: -@info-size / 2;
color: @info-color;
right: 0;
min-width: @info-size;
padding: @info-padding;
font-family: @info-font-family;
font-size: @info-font-size;
font-weight: @info-font-weight;
font-family: @info-font-family;
text-align: center;
box-sizing: border-box;
padding: @info-padding;
min-width: @info-size;
line-height: @info-size - @info-border-width * 2;
color: @info-color;
text-align: center;
white-space: nowrap;
background-color: @info-background-color;
border: @info-border-width solid @white;
border-radius: @info-size;
background-color: @info-background-color;
transform: translateX(50%);
box-sizing: border-box;
transform-origin: 100%;
}

View File

@ -2,6 +2,4 @@
wx:if="{{ info !== null }}"
class="custom-class van-info"
style="{{ customStyle }}"
>
{{ info }}
</view>
>{{ info }}</view>