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:
thinkasany 2024-11-01 17:17:49 +08:00 committed by GitHub
parent a9f15b6f12
commit 9adbb1cf85
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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