[improvement] ActionSheet: optimize (#558)

This commit is contained in:
neverland 2018-09-11 15:26:42 +08:00 committed by GitHub
parent 406af0f8b5
commit 77e3a21448
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 7 deletions

View File

@ -8,10 +8,6 @@
-webkit-overflow-scrolling: touch;
background-color: $background-color;
&--withtitle {
background-color: $white;
}
&__item,
&__cancel {
height: 50px;

View File

@ -1,9 +1,9 @@
<van-popup
show="{{ show }}"
overlay="{{ overlay }}"
close-on-click-overlay="{{ closeOnClickOverlay }}"
custom-class="van-action-sheet {{ title ? 'van-action-sheet--withtitle' : '' }}"
position="bottom"
overlay="{{ overlay }}"
custom-class="van-action-sheet"
close-on-click-overlay="{{ closeOnClickOverlay }}"
bind:close="onClose"
>
<view wx:if="{{ title }}" class="van-hairline--top-bottom van-action-sheet__header">