mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 20:19:34 +01:00
31 lines
548 B
Vue
31 lines
548 B
Vue
<script setup lang="ts">
|
|
const columns = [{
|
|
key: 'name',
|
|
label: 'Name'
|
|
}, {
|
|
key: 'title',
|
|
label: 'Title'
|
|
}, {
|
|
key: 'email',
|
|
label: 'Email'
|
|
}, {
|
|
key: 'role',
|
|
label: 'Role'
|
|
}, {
|
|
key: 'actions'
|
|
}]
|
|
|
|
const people = []
|
|
</script>
|
|
|
|
<template>
|
|
<UTable :rows="people" :columns="columns">
|
|
<template #empty-state>
|
|
<div class="flex flex-col items-center justify-center py-6 gap-3">
|
|
<span class="italic text-sm">No one here!</span>
|
|
<UButton label="Add people" />
|
|
</div>
|
|
</template>
|
|
</UTable>
|
|
</template>
|