felicity-lims/webapp/views/admin/shipment/index.vue
Aurthur Musendame 7c5613b84c updated views
2023-11-11 09:37:19 +02:00

36 lines
1 KiB
Vue

<script setup lang="ts">
import { ref, computed, defineAsyncComponent } from 'vue';
const tabReferralLaboratory = defineAsyncComponent(
() => import('./ReferralLaboratory.vue')
)
let currentTab = ref<string>('referral-laboratories');
const tabs: string[] = ['referral-laboratories'];
</script>
<template>
<div class="mt-4">
<nav class="bg-white shadow-md mt-2">
<div class="-mb-px flex justify-start">
<a
v-for="tab in tabs"
:key="tab"
:class="[
'no-underline text-gray-500 uppercase tracking-wide font-bold text-xs py-1 px-4 tab hover:bg-sky-600 hover:text-gray-200',
{ 'tab-active': currentTab === tab },
]"
@click="currentTab = tab"
>
{{ tab }}
</a>
</div>
</nav>
<tab-referral-laboratory v-if="currentTab === 'referral-laboratories'"/>
</div>
</template>