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,
|
value: Array,
|
||||||
disabled: Boolean,
|
disabled: Boolean,
|
||||||
max: {
|
max: {
|
||||||
default: 0,
|
type: Number,
|
||||||
type: Number
|
default: 0
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user