Files
coba-tampilan/pages/tables/TableDensity.vue

80 lines
2.9 KiB
Vue

<script setup lang="ts">
import { ref } from 'vue';
// common components
import BaseBreadcrumb from '@/components/shared/BaseBreadcrumb.vue';
import UiParentCard from '@/components/shared/UiParentCard.vue';
import { tableDensityData } from '@/_mockApis/components/table/basicTables';
// template breadcrumb
const page = ref({ title: 'Density Table' });
const breadcrumbs = ref([
{
text: 'Dashboard',
disabled: false,
href: '#'
},
{
text: 'Density Table',
disabled: true,
href: '#'
}
]);
</script>
<template>
<!-- ---------------------------------------------------- -->
<!-- Table Density -->
<!-- ---------------------------------------------------- -->
<BaseBreadcrumb :title="page.title" :breadcrumbs="breadcrumbs"></BaseBreadcrumb>
<v-row>
<v-col cols="12">
<UiParentCard title="Density Table">
<!-- <v-table > -->
<v-card class="border" elevation="0">
<v-table class="month-table" density="compact">
<thead>
<tr>
<th class="text-h6 ps-6">User</th>
<th class="text-h6">Project Name</th>
<th class="text-h6">Users</th>
<th class="text-h6">Status</th>
</tr>
</thead>
<tbody>
<tr v-for="item in tableDensityData" :key="item.name" class="month-item">
<td class="ps-6">
<div class="d-flex align-center">
<v-avatar size="40">
<img :src="item.avatar" alt="avatar" height="40" />
</v-avatar>
<div class="ml-4">
<h6 class="text-h6">{{ item.name }}</h6>
</div>
</div>
</td>
<td>
<div class="text-subtitle-1 text-medium-emphasis">{{ item.post }}</div>
</td>
<td>
<div class="d-flex align-center">
<div class="ml-2 d-flex flex-row-reverse">
<v-avatar v-for="user in item.users" :key="user.id" size="40" class="ml-n2 avtar-border">
<img :src="user.icon" alt="avatar" height="40" />
</v-avatar>
</div>
</div>
</td>
<td>
<v-chip rounded="sm" class="font-weight-bold " :color="item.statuscolor" size="small">
{{ item.status }}
</v-chip>
</td>
</tr>
</tbody>
</v-table>
</v-card>
</UiParentCard>
</v-col>
</v-row>
</template>