68 lines
3.1 KiB
Vue
68 lines
3.1 KiB
Vue
|
|
<script setup lang="ts">
|
|
import {basicTableData2,tableActionData} from '@/_mockApis/components/table/basicTables';
|
|
</script>
|
|
<template>
|
|
<v-card elevation="0" class="mt-6 border">
|
|
<v-table class="month-table">
|
|
<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>
|
|
<th class="text-h6"></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr v-for="item in basicTableData2" :key="item.name" class="month-item">
|
|
<td class="ps-6">
|
|
<div class="d-flex gap-3 align-center">
|
|
<v-avatar size="40">
|
|
<img :src="item.avatar" alt="avatar" height="40" />
|
|
</v-avatar>
|
|
<h6 class="text-h6">{{ item.name }}</h6>
|
|
</div>
|
|
</td>
|
|
<td>
|
|
<div class="text-body-1 textPrimary">{{ 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>
|
|
<td>
|
|
<v-btn size="30" icon variant="flat" class="grey100">
|
|
<v-avatar size="22">
|
|
<DotsVerticalIcon size="20" color="grey100" />
|
|
</v-avatar>
|
|
<v-menu activator="parent">
|
|
<v-list>
|
|
<v-list-item value="action" v-for="list in tableActionData" :key="list.listtitle" hide-details min-height="38">
|
|
<v-list-item-title>
|
|
<v-avatar size="20" class="mr-2">
|
|
<component :is="list.icon" stroke-width="2" size="20" />
|
|
</v-avatar>
|
|
{{ list.listtitle }}
|
|
</v-list-item-title>
|
|
</v-list-item>
|
|
</v-list>
|
|
</v-menu>
|
|
</v-btn>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</v-table>
|
|
</v-card>
|
|
</template>
|