fix: also added details section in tabview
This commit is contained in:
parent
4f4230a925
commit
520011e3d9
@ -15,14 +15,15 @@
|
|||||||
{{ tab.label }}
|
{{ tab.label }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="tabs-contents" class="h-full">
|
<div id="tabs-contents" class="flex h-full">
|
||||||
<div class="bg-gray-50 h-full">
|
<div class="flex-1 bg-gray-50">
|
||||||
<div v-for="tab in tabs" :key="tab.label">
|
<div v-for="tab in tabs" :key="tab.label">
|
||||||
<div v-if="activeTab == tab.label" class="p-6">
|
<div v-if="activeTab == tab.label" class="p-6">
|
||||||
<slot name="tab-content" v-bind="{ tab }" />
|
<slot name="tab-content" v-bind="{ tab }" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<slot name="details" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script setup>
|
<script setup>
|
||||||
|
|||||||
@ -58,6 +58,9 @@
|
|||||||
<template #tab-content="{ tab }">
|
<template #tab-content="{ tab }">
|
||||||
<div>{{ tab.label }}</div>
|
<div>{{ tab.label }}</div>
|
||||||
</template>
|
</template>
|
||||||
|
<template #details>
|
||||||
|
<div class="w-[390px] border-l px-6 py-3">{{ lead.doc.lead_name }}</div>
|
||||||
|
</template>
|
||||||
</TabView>
|
</TabView>
|
||||||
</template>
|
</template>
|
||||||
<script setup>
|
<script setup>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user