RadioGroup: allow boolean value, fixed #2442

pull/2497/head
qingwei.li 2017-01-18 15:12:26 +08:00
parent 86288b4282
commit 1fe436fc8c
3 changed files with 8 additions and 8 deletions

View File

@ -133,7 +133,7 @@ Radio with button styles.
Attribute | Description | Type | Accepted Values | Default
---- | ---- | ---- | ---- | ----
label | the value of radio | string/number | — | —
label | the value of radio | string/number/boolean | — | —
disabled | whether radio is disabled | boolean | — | false
name | native 'name' attribute | string | — | —

View File

@ -137,7 +137,7 @@
### Radio Attributes
| 参数 | 说明 | 类型 | 可选值 | 默认值 |
|---------- |-------- |---------- |------------- |-------- |
| label | Radio 的 value | string,number | — | — |
| label | Radio 的 value | string,number,boolean | — | — |
| disabled | 是否禁用 | boolean | — | false |
| name | 原生 name 属性 | string | — | — |

View File

@ -14,7 +14,7 @@
mixins: [Emitter],
props: {
value: [String, Number],
value: {},
size: String,
fill: String,
textColor: String,