mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
[improvement] Checkbox: update style (#2018)
This commit is contained in:
parent
fc8937aa26
commit
7e07def544
@ -14,8 +14,8 @@ export default create({
|
||||
value: Array,
|
||||
disabled: Boolean,
|
||||
max: {
|
||||
default: 0,
|
||||
type: Number
|
||||
type: Number,
|
||||
default: 0
|
||||
}
|
||||
},
|
||||
|
||||
|
@ -23,6 +23,7 @@ $van-checkbox-size: 20px;
|
||||
width: $van-checkbox-size;
|
||||
height: $van-checkbox-size;
|
||||
box-sizing: border-box;
|
||||
transition: .2s;
|
||||
}
|
||||
|
||||
&--round {
|
||||
@ -34,8 +35,8 @@ $van-checkbox-size: 20px;
|
||||
&--checked {
|
||||
.van-icon {
|
||||
color: $white;
|
||||
border-color: $green;
|
||||
background-color: $green;
|
||||
border-color: $blue;
|
||||
background-color: $blue;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user