feat(checkbox): value support number

This commit is contained in:
07akioni 2020-12-08 00:20:44 +08:00
parent af572b5bf2
commit 643f8b6c41
3 changed files with 3 additions and 3 deletions

View File

@ -20,7 +20,7 @@ event
|disabled|`boolean`|`false`||
|label|`string \| function`|`undefined`|Could be a render function.|
|theme|`'light' \| 'dark' \| string`|`undefined`||
|value|`string`|`undefined`||
|value|`string \| number`|`undefined`||
|on-update:checked|`(checked: boolean)`|`undefined`||
### Checkbox Group Props

View File

@ -20,7 +20,7 @@ event
|disabled|`boolean`|`false`||
|label|`string \| function`|`undefined`|可以是渲染函数|
|theme|`'light' \| 'dark' \| string`|`undefined`||
|value|`string`|`undefined`||
|value|`string \| number`|`undefined`||
|on-update:checked|`(checked: boolean)`|`undefined`||
### Checkbox Group Props

View File

@ -117,7 +117,7 @@ export default {
default: false
},
value: {
type: String,
type: [String, Number],
default: undefined
},
disabled: {