From b105a08078b499ea735d15f4becee5201ef1e78a Mon Sep 17 00:00:00 2001 From: rzzf Date: Tue, 25 Nov 2025 11:37:28 +0800 Subject: [PATCH] docs(components): [tabs] fix `default-value` version tag (#22911) * docs(components): [tabs] fix `default-value` version tag * docs: add tag --- docs/en-US/component/tabs.md | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/docs/en-US/component/tabs.md b/docs/en-US/component/tabs.md index 82093f968f..8dd6a13742 100644 --- a/docs/en-US/component/tabs.md +++ b/docs/en-US/component/tabs.md @@ -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` | () => 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` | () => true | +| tabindex ^(2.11.7) | tabs tabindex | ^[string] / ^[number] | 0 | ### Tabs Events