|
@@ -48,10 +48,10 @@ const toggleOpen = () => {
|
|
|
<template>
|
|
<template>
|
|
|
<TabsRoot
|
|
<TabsRoot
|
|
|
v-model="currentTab"
|
|
v-model="currentTab"
|
|
|
- class="bg-background-deep border-border overflow-hidden rounded-b-xl border-t"
|
|
|
|
|
|
|
+ class="overflow-hidden rounded-b-xl border-t border-border bg-background-deep"
|
|
|
@update:model-value="open = true"
|
|
@update:model-value="open = true"
|
|
|
>
|
|
>
|
|
|
- <div class="border-border bg-background flex border-b-2 pr-2">
|
|
|
|
|
|
|
+ <div class="flex border-b-2 border-border bg-background pr-2">
|
|
|
<div class="flex w-full items-center justify-between text-[13px]">
|
|
<div class="flex w-full items-center justify-between text-[13px]">
|
|
|
<TabsList class="relative flex">
|
|
<TabsList class="relative flex">
|
|
|
<template v-if="open">
|
|
<template v-if="open">
|
|
@@ -64,7 +64,7 @@ const toggleOpen = () => {
|
|
|
v-for="(tab, index) in tabs"
|
|
v-for="(tab, index) in tabs"
|
|
|
:key="index"
|
|
:key="index"
|
|
|
:value="tab.label"
|
|
:value="tab.label"
|
|
|
- class="border-box text-foreground px-4 py-3 data-[state=active]:text-[var(--vp-c-indigo-1)]"
|
|
|
|
|
|
|
+ class="border-box px-4 py-3 text-foreground data-[state=active]:text-[var(--vp-c-indigo-1)]"
|
|
|
tabindex="-1"
|
|
tabindex="-1"
|
|
|
>
|
|
>
|
|
|
{{ tab.label }}
|
|
{{ tab.label }}
|
|
@@ -81,7 +81,7 @@ const toggleOpen = () => {
|
|
|
<VbenTooltip side="top">
|
|
<VbenTooltip side="top">
|
|
|
<template #trigger>
|
|
<template #trigger>
|
|
|
<Code
|
|
<Code
|
|
|
- class="hover:bg-accent size-7 cursor-pointer rounded-full p-1.5"
|
|
|
|
|
|
|
+ class="size-7 cursor-pointer rounded-full p-1.5 hover:bg-accent"
|
|
|
@click="toggleOpen"
|
|
@click="toggleOpen"
|
|
|
/>
|
|
/>
|
|
|
</template>
|
|
</template>
|
|
@@ -101,7 +101,7 @@ const toggleOpen = () => {
|
|
|
as-child
|
|
as-child
|
|
|
class="rounded-xl"
|
|
class="rounded-xl"
|
|
|
>
|
|
>
|
|
|
- <div class="text-foreground relative rounded-xl">
|
|
|
|
|
|
|
+ <div class="relative rounded-xl text-foreground">
|
|
|
<component :is="tab.component" class="border-0" />
|
|
<component :is="tab.component" class="border-0" />
|
|
|
</div>
|
|
</div>
|
|
|
</TabsContent>
|
|
</TabsContent>
|