mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-21 04:50:14 +08:00
feat(checkbox): value support number
This commit is contained in:
parent
af572b5bf2
commit
643f8b6c41
@ -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
|
||||
|
@ -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
|
||||
|
@ -117,7 +117,7 @@ export default {
|
||||
default: false
|
||||
},
|
||||
value: {
|
||||
type: String,
|
||||
type: [String, Number],
|
||||
default: undefined
|
||||
},
|
||||
disabled: {
|
||||
|
Loading…
Reference in New Issue
Block a user