mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
docs(components): [tabs] fix default-value version tag (#22911)
* docs(components): [tabs] fix `default-value` version tag * docs: add tag
This commit is contained in:
@@ -83,7 +83,7 @@ tabs/customized-trigger
|
||||
|
||||
:::
|
||||
|
||||
## Default value
|
||||
## Default value ^(2.11.9)
|
||||
|
||||
:::demo
|
||||
|
||||
@@ -95,18 +95,18 @@ tabs/default-value
|
||||
|
||||
### Tabs Attributes
|
||||
|
||||
| Name | Description | Type | Default |
|
||||
| --------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------ | ---------- |
|
||||
| model-value / v-model | binding value, name of the selected tab, the default value is the name of first tab | ^[string] / ^[number] | — |
|
||||
| default-value (2.11.9)| The value of the tab that should be active when initially rendered. (avoid initial transition) | ^[string] / ^[number] | — |
|
||||
| type | type of Tab | ^[enum]`'' \| 'card' \| 'border-card'` | '' |
|
||||
| closable | whether Tab is closable | ^[boolean] | false |
|
||||
| addable | whether Tab is addable | ^[boolean] | false |
|
||||
| editable | whether Tab is addable and closable | ^[boolean] | false |
|
||||
| tab-position | position of tabs | ^[enum]`'top' \| 'right' \| 'bottom' \| 'left'` | top |
|
||||
| stretch | whether width of tab automatically fits its container | ^[boolean] | false |
|
||||
| before-leave | hook function before switching tab. If `false` is returned or a `Promise` is returned and then is rejected, switching will be prevented | ^[Function]`(activeName: TabPaneName, oldActiveName: TabPaneName) => Awaitable<void \| boolean>` | () => true |
|
||||
| tabindex ^(2.11.7) | tabs tabindex | ^[string] / ^[number] | 0 |
|
||||
| Name | Description | Type | Default |
|
||||
| ----------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------ | ---------- |
|
||||
| model-value / v-model | binding value, name of the selected tab, the default value is the name of first tab | ^[string] / ^[number] | — |
|
||||
| default-value ^(2.11.9) | The value of the tab that should be active when initially rendered. (avoid initial transition) | ^[string] / ^[number] | — |
|
||||
| type | type of Tab | ^[enum]`'' \| 'card' \| 'border-card'` | '' |
|
||||
| closable | whether Tab is closable | ^[boolean] | false |
|
||||
| addable | whether Tab is addable | ^[boolean] | false |
|
||||
| editable | whether Tab is addable and closable | ^[boolean] | false |
|
||||
| tab-position | position of tabs | ^[enum]`'top' \| 'right' \| 'bottom' \| 'left'` | top |
|
||||
| stretch | whether width of tab automatically fits its container | ^[boolean] | false |
|
||||
| before-leave | hook function before switching tab. If `false` is returned or a `Promise` is returned and then is rejected, switching will be prevented | ^[Function]`(activeName: TabPaneName, oldActiveName: TabPaneName) => Awaitable<void \| boolean>` | () => true |
|
||||
| tabindex ^(2.11.7) | tabs tabindex | ^[string] / ^[number] | 0 |
|
||||
|
||||
### Tabs Events
|
||||
|
||||
|
||||
Reference in New Issue
Block a user