[improvement] Checkbox: update style (#2018)

This commit is contained in:
neverland 2018-11-02 14:37:51 +08:00 committed by GitHub
parent fc8937aa26
commit 7e07def544
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 4 deletions

View File

@ -14,8 +14,8 @@ export default create({
value: Array, value: Array,
disabled: Boolean, disabled: Boolean,
max: { max: {
default: 0, type: Number,
type: Number default: 0
} }
}, },

View File

@ -23,6 +23,7 @@ $van-checkbox-size: 20px;
width: $van-checkbox-size; width: $van-checkbox-size;
height: $van-checkbox-size; height: $van-checkbox-size;
box-sizing: border-box; box-sizing: border-box;
transition: .2s;
} }
&--round { &--round {
@ -34,8 +35,8 @@ $van-checkbox-size: 20px;
&--checked { &--checked {
.van-icon { .van-icon {
color: $white; color: $white;
border-color: $green; border-color: $blue;
background-color: $green; background-color: $blue;
} }
} }