[improvement] Area: update style (#701)

This commit is contained in:
neverland 2018-10-08 16:57:31 +08:00 committed by GitHub
parent 391534e142
commit 37adb4b77e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 6 deletions

View File

@ -10,15 +10,15 @@
&__toolbar { &__toolbar {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
height: 40px; height: 44px;
font-size: 16px; line-height: 44px;
line-height: 40px;
} }
&__cancel, &__cancel,
&__confirm { &__confirm {
padding: 0 15px;
color: @blue; color: @blue;
padding: 0 15px;
font-size: 14px;
&:active { &:active {
background-color: @active-color; background-color: @active-color;
@ -27,6 +27,8 @@
&__title { &__title {
max-width: 50%; max-width: 50%;
font-size: 16px;
font-weight: 500;
text-align: center; text-align: center;
} }
@ -58,7 +60,8 @@
color: @gray-dark; color: @gray-dark;
&--selected { &--selected {
color: @black; font-weight: 500;
color: @text-color;
} }
&--disabled { &--disabled {

View File

@ -1,5 +1,5 @@
<view class="van-picker"> <view class="van-picker">
<view class="van-picker__toolbar"> <view class="van-picker__toolbar van-hairline--bottom">
<view class="van-picker__cancel" bindtap="onCancel">取消</view> <view class="van-picker__cancel" bindtap="onCancel">取消</view>
<view class="van-picker__title">{{ title }}</view> <view class="van-picker__title">{{ title }}</view>
<view class="van-picker__confirm" bindtap="onConfirm">确定</view> <view class="van-picker__confirm" bindtap="onConfirm">确定</view>