[improvement] Radio: add checked-color prop (#2129)

This commit is contained in:
neverland
2018-11-23 20:13:40 +08:00
committed by GitHub
parent 56231d90bc
commit ec159b5e47
7 changed files with 62 additions and 8 deletions
+8
View File
@@ -11,6 +11,7 @@ Vue.use(Radio);
### Usage
#### Basic Usage
Use `v-model` to bind the name of checked radio
```html
@@ -39,6 +40,12 @@ export default {
</van-radio-group>
```
#### Custom Color
```html
<van-radio checked-color="#4b0">Radio</van-radio>
```
#### Inside a Cell
```html
@@ -62,6 +69,7 @@ export default {
| disabled | Whether to disable radio | `Boolean` | `false` |
| label-disabled | Whether to disable label click | `Boolean` | `false` |
| label-position | Can be set to `left` | `String` | `right` |
| checked-color | Checked color | `String` | `#1989fa` | - |
### RadioGroup API