Add spacing and border styles to CSS file, update Transaksi.vue with tab functionality

This commit is contained in:
Dede Fuji Abdul 2024-04-04 23:07:23 +07:00
parent dbf4be22e6
commit 30cd13cf33
2 changed files with 47 additions and 0 deletions

View File

@ -2216,6 +2216,12 @@ body {
margin-bottom: calc(0.75rem * var(--tw-space-y-reverse));
}
.space-x-4 > :not([hidden]) ~ :not([hidden]) {
--tw-space-x-reverse: 0;
margin-right: calc(1rem * var(--tw-space-x-reverse));
margin-left: calc(1rem * calc(1 - var(--tw-space-x-reverse)));
}
.divide-y > :not([hidden]) ~ :not([hidden]) {
--tw-divide-y-reverse: 0;
border-top-width: calc(1px * calc(1 - var(--tw-divide-y-reverse)));
@ -2461,6 +2467,10 @@ body {
border-bottom-width: 0px;
}
.border-b-2 {
border-bottom-width: 2px;
}
.border-l-4 {
border-left-width: 4px;
}
@ -2477,6 +2487,10 @@ body {
border-top-width: 0px;
}
.border-b-4 {
border-bottom-width: 4px;
}
.border-solid {
border-style: solid;
}
@ -2564,6 +2578,11 @@ body {
border-color: rgb(255 51 51 / var(--tw-border-opacity));
}
.border-secondary-500 {
--tw-border-opacity: 1;
border-color: rgb(0 162 185 / var(--tw-border-opacity));
}
.border-transparent {
border-color: transparent;
}

View File

@ -1,4 +1,31 @@
<template>
<div class="flex flex-row items-center w-full mb-6 space-x-4">
<button
@click="tab = 'gangguan'"
type="button"
class="px-1 py-4 text-sm"
:class="[
tab == 'gangguan'
? 'border-b-2 border-secondary-500 text-primary-500 font-semibold'
: 'font-medium text-gray-500'
]"
>
Gangguan: Transaksi Aktif > SLA
</button>
<button
@click="tab = 'keluhan'"
type="button"
class="px-1 py-4 text-sm"
:class="[
tab == 'keluhan'
? 'border-b-2 border-secondary-500 text-primary-500 font-semibold'
: 'font-medium text-gray-500'
]"
>
Keluhan: Transaksi Aktif > SLA
</button>
</div>
<Filters @run-search="() => filterData(filters)" class="mb-4">
<Type17 @update:filters="(value) => (filters = value)" />
</Filters>
@ -154,6 +181,7 @@ const dataSelected = ref<any>()
const dataSubSelected = ref<any>()
const dialogDetail = ref(false)
const loadingData = ref(false)
const tab = ref('gangguan')
const onExporting = (e: any) => {
if (e.format === 'pdf') {
const doc = new jsPDF()