mirror of
https://github.com/element-plus/element-plus.git
synced 2024-11-21 01:02:59 +08:00
docs(components): add direction api description for segmented (#18733)
* docs(components): add direction api description for segmented * docs(components): update * chore: code format --------- Co-authored-by: warmthsea <2586244885@qq.com>
This commit is contained in:
parent
a9f15b6f12
commit
9adbb1cf85
@ -71,17 +71,18 @@ segmented/custom-style
|
||||
|
||||
### Attributes
|
||||
|
||||
| Name | Description | Type | Default |
|
||||
| --------------------- | ---------------------------------- | ---------------------------------------------- | ------- |
|
||||
| model-value / v-model | binding value | ^[string] / ^[number] / ^[boolean] | — |
|
||||
| options | data of the options | ^[array]`Option[]` | [] |
|
||||
| size | size of component | ^[enum]`'' \| 'large' \| 'default' \| 'small'` | '' |
|
||||
| block | fit width of parent content | ^[boolean] | — |
|
||||
| disabled | whether segmented is disabled | ^[boolean] | false |
|
||||
| validate-event | whether to trigger form validation | ^[boolean] | true |
|
||||
| name | native `name` attribute | ^[string] | — |
|
||||
| id | native `id` attribute | ^[string] | — |
|
||||
| aria-label ^(a11y) | native `aria-label` attribute | ^[string] | — |
|
||||
| Name | Description | Type | Default |
|
||||
| --------------------- | ---------------------------------- | ---------------------------------------------- | ---------- |
|
||||
| model-value / v-model | binding value | ^[string] / ^[number] / ^[boolean] | — |
|
||||
| options | data of the options | ^[array]`Option[]` | [] |
|
||||
| size | size of component | ^[enum]`'' \| 'large' \| 'default' \| 'small'` | '' |
|
||||
| block | fit width of parent content | ^[boolean] | — |
|
||||
| disabled | whether segmented is disabled | ^[boolean] | false |
|
||||
| validate-event | whether to trigger form validation | ^[boolean] | true |
|
||||
| name | native `name` attribute | ^[string] | — |
|
||||
| id | native `id` attribute | ^[string] | — |
|
||||
| aria-label ^(a11y) | native `aria-label` attribute | ^[string] | — |
|
||||
| direction ^(2.8.7) | display direction | ^[enum]`'horizontal' \| 'vertical'` | horizontal |
|
||||
|
||||
### Events
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user