mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
docs(components): [radio/checkbox] correct disabled type in props config (#23590)
Co-authored-by: rzzf <cszhjh@gmail.com>
This commit is contained in:
@@ -149,22 +149,22 @@ checkbox/with-border
|
||||
|
||||
### CheckboxGroup Attributes
|
||||
|
||||
| Name | Description | Type | Default |
|
||||
| --------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------- | -------------------------------------------------------- |
|
||||
| model-value / v-model | binding value | ^[array]`string[] \| number[]` | [] |
|
||||
| size | size of checkbox | ^[enum]`'large' \| 'default' \| 'small'` | — |
|
||||
| disabled | whether the nesting checkboxes are disabled | ^[boolean] | false |
|
||||
| min | minimum number of checkbox checked | ^[number] | — |
|
||||
| max | maximum number of checkbox checked | ^[number] | — |
|
||||
| aria-label ^(a11y) ^(2.7.2) | native `aria-label` attribute | ^[string] | — |
|
||||
| text-color | font color when button is active | ^[string] | #ffffff |
|
||||
| fill | border and background color when button is active | ^[string] | #409eff |
|
||||
| tag | element tag of the checkbox group | ^[string] | div |
|
||||
| validate-event | whether to trigger form validation | ^[boolean] | true |
|
||||
| label ^(a11y) ^(deprecated) | native `aria-label` attribute | ^[string] | — |
|
||||
| options ^(2.11.2) | data of the options, the key of `value` and `label` and `disabled` can be customize by `props` | ^[array]`Array<{[key: string]: any}>` | — |
|
||||
| props ^(2.11.2) | configuration options | ^[object]`{ value?: string, label?: string, disabled?: boolean}` | `{value: 'value', label: 'label', disabled: 'disabled'}` |
|
||||
| type ^(2.11.5) | component type to render options (e.g. `'button'`) | ^[enum]`'checkbox' \| 'button'` | 'checkbox' |
|
||||
| Name | Description | Type | Default |
|
||||
| --------------------------- | ---------------------------------------------------------------------------------------------- | --------------------------------------------------------------- | -------------------------------------------------------- |
|
||||
| model-value / v-model | binding value | ^[array]`string[] \| number[]` | [] |
|
||||
| size | size of checkbox | ^[enum]`'large' \| 'default' \| 'small'` | — |
|
||||
| disabled | whether the nesting checkboxes are disabled | ^[boolean] | false |
|
||||
| min | minimum number of checkbox checked | ^[number] | — |
|
||||
| max | maximum number of checkbox checked | ^[number] | — |
|
||||
| aria-label ^(a11y) ^(2.7.2) | native `aria-label` attribute | ^[string] | — |
|
||||
| text-color | font color when button is active | ^[string] | #ffffff |
|
||||
| fill | border and background color when button is active | ^[string] | #409eff |
|
||||
| tag | element tag of the checkbox group | ^[string] | div |
|
||||
| validate-event | whether to trigger form validation | ^[boolean] | true |
|
||||
| label ^(a11y) ^(deprecated) | native `aria-label` attribute | ^[string] | — |
|
||||
| options ^(2.11.2) | data of the options, the key of `value` and `label` and `disabled` can be customize by `props` | ^[array]`Array<{[key: string]: any}>` | — |
|
||||
| props ^(2.11.2) | configuration options | ^[object]`{ value?: string, label?: string, disabled?: string}` | `{value: 'value', label: 'label', disabled: 'disabled'}` |
|
||||
| type ^(2.11.5) | component type to render options (e.g. `'button'`) | ^[enum]`'checkbox' \| 'button'` | 'checkbox' |
|
||||
|
||||
### CheckboxGroup Events
|
||||
|
||||
|
||||
@@ -117,21 +117,21 @@ radio/radio-button
|
||||
|
||||
### RadioGroup Attributes
|
||||
|
||||
| Name | Description | Type | Default |
|
||||
| --------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------- | -------------------------------------------------------- |
|
||||
| model-value / v-model | binding value | ^[string] / ^[number] / ^[boolean] | — |
|
||||
| size | the size of radio buttons or bordered radios | ^[string] | default |
|
||||
| disabled | whether the nesting radios are disabled | ^[boolean] | false |
|
||||
| validate-event | whether to trigger form validation | ^[boolean] | true |
|
||||
| text-color | font color when button is active | ^[string] | #ffffff |
|
||||
| fill | border and background color when button is active | ^[string] | #409eff |
|
||||
| aria-label ^(a11y) ^(2.7.2) | same as `aria-label` in RadioGroup | ^[string] | — |
|
||||
| name | native `name` attribute | ^[string] | — |
|
||||
| id | native `id` attribute | ^[string] | — |
|
||||
| label ^(a11y) ^(deprecated) | same as `aria-label` in RadioGroup | ^[string] | — |
|
||||
| options ^(2.11.2) | data of the options, the key of `value` and `label` and `disabled` can be customize by `props` | ^[array]`Array<{[key: string]: any}>` | — |
|
||||
| props ^(2.11.2) | configuration options | ^[object]`{ value?: string, label?: string, disabled?: boolean}` | `{value: 'value', label: 'label', disabled: 'disabled'}` |
|
||||
| type ^(2.11.5) | component type to render options (e.g. `'button'`) | ^[enum]`'radio' \| 'button'` | 'radio' |
|
||||
| Name | Description | Type | Default |
|
||||
| --------------------------- | ---------------------------------------------------------------------------------------------- | --------------------------------------------------------------- | -------------------------------------------------------- |
|
||||
| model-value / v-model | binding value | ^[string] / ^[number] / ^[boolean] | — |
|
||||
| size | the size of radio buttons or bordered radios | ^[string] | default |
|
||||
| disabled | whether the nesting radios are disabled | ^[boolean] | false |
|
||||
| validate-event | whether to trigger form validation | ^[boolean] | true |
|
||||
| text-color | font color when button is active | ^[string] | #ffffff |
|
||||
| fill | border and background color when button is active | ^[string] | #409eff |
|
||||
| aria-label ^(a11y) ^(2.7.2) | same as `aria-label` in RadioGroup | ^[string] | — |
|
||||
| name | native `name` attribute | ^[string] | — |
|
||||
| id | native `id` attribute | ^[string] | — |
|
||||
| label ^(a11y) ^(deprecated) | same as `aria-label` in RadioGroup | ^[string] | — |
|
||||
| options ^(2.11.2) | data of the options, the key of `value` and `label` and `disabled` can be customize by `props` | ^[array]`Array<{[key: string]: any}>` | — |
|
||||
| props ^(2.11.2) | configuration options | ^[object]`{ value?: string, label?: string, disabled?: string}` | `{value: 'value', label: 'label', disabled: 'disabled'}` |
|
||||
| type ^(2.11.5) | component type to render options (e.g. `'button'`) | ^[enum]`'radio' \| 'button'` | 'radio' |
|
||||
|
||||
### RadioGroup Events
|
||||
|
||||
|
||||
Reference in New Issue
Block a user