diff --git a/docs/pages/webitel-ui/components/wt-tabs/Readme.md b/docs/pages/webitel-ui/components/wt-tabs/Readme.md index 80d98957..68546670 100644 --- a/docs/pages/webitel-ui/components/wt-tabs/Readme.md +++ b/docs/pages/webitel-ui/components/wt-tabs/Readme.md @@ -1,16 +1,31 @@ # WtTabs ## Props -::: raw - -::: + +| Name | Type | Default | Description | +|---------|----------|---------|-----------------------------------------------| +| current | `Object` | `{}` | The value of the selected tab | +| tabs | `Array` | `[]` | The list of tabs. Tracked by `value` property | + +## Events + +| Name | Params | Description | +|--------|-----------------|--------------------------------------| +| change | `tab`: `Object` | Returns tab object from list of tabs | + +## Slots + +| Name | Scope | Description | +|--------------|--------------------|--------------------------------------------------------------------------| +| `:tab-value` | `{ tab, current }` | Override tab contents with passed tab from `tabs` object and `current` tab | ## Example Tabs + ::: raw ::: @@ -18,3 +33,13 @@ import ExampleTabs from './examples/example-tabs.vue'; ::: details Code <<< ./examples/example-tabs.vue ::: + +## Example Wide Tabs + +::: raw + +::: + +::: details Code +<<< ./examples/example-wide-tabs.vue +::: diff --git a/docs/pages/webitel-ui/components/wt-tabs/examples/example-wide-tabs.vue b/docs/pages/webitel-ui/components/wt-tabs/examples/example-wide-tabs.vue new file mode 100644 index 00000000..95a0d36c --- /dev/null +++ b/docs/pages/webitel-ui/components/wt-tabs/examples/example-wide-tabs.vue @@ -0,0 +1,33 @@ + + + + + diff --git a/docs/pages/webitel-ui/components/wt-tabs/wt-tabs-docs.vue b/docs/pages/webitel-ui/components/wt-tabs/wt-tabs-docs.vue deleted file mode 100644 index 0272663a..00000000 --- a/docs/pages/webitel-ui/components/wt-tabs/wt-tabs-docs.vue +++ /dev/null @@ -1,60 +0,0 @@ - - - - - diff --git a/package.json b/package.json index dd778a60..72364359 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@webitel/ui-sdk", - "version": "24.2.53", + "version": "24.2.54", "private": false, "scripts": { "dev": "vite", diff --git a/src/components/wt-tabs/wt-tabs.vue b/src/components/wt-tabs/wt-tabs.vue index de7aa46a..57a578de 100644 --- a/src/components/wt-tabs/wt-tabs.vue +++ b/src/components/wt-tabs/wt-tabs.vue @@ -1,10 +1,15 @@