fix: resolved #2771

This commit is contained in:
Liyas Thomas
2022-10-11 10:35:14 +05:30
parent e6652109c5
commit 4046b91609
23 changed files with 36 additions and 38 deletions

View File

@@ -23,11 +23,13 @@ const props = withDefaults(
icon?: Component | object | string | null
info?: string | null
indicator?: boolean
disabled?: boolean
}>(),
{
icon: null,
indicator: false,
info: null,
disabled: false,
}
)
@@ -41,6 +43,7 @@ const tabMeta = computed<TabMeta>(() => ({
indicator: props.indicator,
info: props.info,
label: props.label,
disabled: props.disabled,
}))
const {

View File

@@ -25,8 +25,10 @@
:class="[
{ active: modelValue === tabID },
{ vertical: vertical },
{ 'opacity-75 !cursor-not-allowed': tabMeta.disabled },
]"
:aria-label="tabMeta.label || ''"
:disabled="tabMeta.disabled"
role="button"
@keyup.enter="selectTab(tabID)"
@click="selectTab(tabID)"
@@ -80,6 +82,7 @@ export type TabMeta = {
icon: string | Component | null
indicator: boolean
info: string | null
disabled: boolean
}
export type TabProvider = {