mirror of
https://github.com/element-plus/element-plus.git
synced 2024-11-21 01:02:59 +08:00
parent
e8bbdf974b
commit
78f235d9c5
@ -62,10 +62,10 @@ radio/with-borders
|
||||
| Name | Description | Type | Default |
|
||||
| --------------------- | ------------------------------------ | ---------------------------------------- | ------- |
|
||||
| model-value / v-model | binding value | ^[string] / ^[number] / ^[boolean] | — |
|
||||
| label | the value of Raido | ^[string] / ^[number] / ^[boolean] | — |
|
||||
| disabled | whether Raido is disabled | ^[boolean] | false |
|
||||
| border | whether to add a border around Raido | ^[boolean] | false |
|
||||
| size | size of the Raido | ^[enum]`'large' \| 'default' \| 'small'` | — |
|
||||
| label | the value of Radio | ^[string] / ^[number] / ^[boolean] | — |
|
||||
| disabled | whether Radio is disabled | ^[boolean] | false |
|
||||
| border | whether to add a border around Radio | ^[boolean] | false |
|
||||
| size | size of the Radio | ^[enum]`'large' \| 'default' \| 'small'` | — |
|
||||
| name | native `name` attribute | ^[string] | — |
|
||||
|
||||
### Radio Events
|
||||
@ -92,7 +92,7 @@ radio/with-borders
|
||||
| text-color | font color when button is active | ^[string] | #ffffff |
|
||||
| fill | border and background color when button is active | ^[string] | #409EFF |
|
||||
| validate-event | whether to trigger form validation | ^[boolean] | true |
|
||||
| label<A11yTag /> | same as `aria-label` in RaidoGroup | ^[string] | — |
|
||||
| label<A11yTag /> | same as `aria-label` in RadioGroup | ^[string] | — |
|
||||
| name | native `name` attribute | ^[string] | — |
|
||||
| id | native `id` attribute | ^[string] | — |
|
||||
|
||||
@ -114,8 +114,8 @@ radio/with-borders
|
||||
|
||||
| Name | Description | Type | Default |
|
||||
| -------- | ------------------------- | ---------------------------------- | ------- |
|
||||
| label | the value of Raido | ^[string] / ^[number] / ^[boolean] | — |
|
||||
| disabled | whether Raido is disabled | ^[boolean] | false |
|
||||
| label | the value of Radio | ^[string] / ^[number] / ^[boolean] | — |
|
||||
| disabled | whether Radio is disabled | ^[boolean] | false |
|
||||
| name | native 'name' attribute | ^[string] | — |
|
||||
|
||||
### RadioButton Slots
|
||||
|
@ -17,7 +17,7 @@ export const radioGroupProps = buildProps({
|
||||
*/
|
||||
size: useSizeProp,
|
||||
/**
|
||||
* @description whether the nesting raidos are disabled
|
||||
* @description whether the nesting radios are disabled
|
||||
*/
|
||||
disabled: Boolean,
|
||||
/**
|
||||
@ -35,7 +35,7 @@ export const radioGroupProps = buildProps({
|
||||
default: '',
|
||||
},
|
||||
/**
|
||||
* @description same as `aria-label` in RaidoGroup
|
||||
* @description same as `aria-label` in RadioGroup
|
||||
*/
|
||||
label: {
|
||||
type: String,
|
||||
|
@ -6,15 +6,15 @@ import type Radio from './radio.vue'
|
||||
|
||||
export const radioPropsBase = buildProps({
|
||||
/**
|
||||
* @description size of the Raido
|
||||
* @description size of the Radio
|
||||
*/
|
||||
size: useSizeProp,
|
||||
/**
|
||||
* @description whether Raido is disabled
|
||||
* @description whether Radio is disabled
|
||||
*/
|
||||
disabled: Boolean,
|
||||
/**
|
||||
* @description the value of Raido
|
||||
* @description the value of Radio
|
||||
*/
|
||||
label: {
|
||||
type: [String, Number, Boolean],
|
||||
@ -39,7 +39,7 @@ export const radioProps = buildProps({
|
||||
default: '',
|
||||
},
|
||||
/**
|
||||
* @description whether to add a border around Raido
|
||||
* @description whether to add a border around Radio
|
||||
*/
|
||||
border: Boolean,
|
||||
} as const)
|
||||
|
Loading…
Reference in New Issue
Block a user