Skip to content
This repository was archived by the owner on Sep 25, 2025. It is now read-only.

Commit 3316d81

Browse files
committed
feat: table
1 parent c9993d4 commit 3316d81

File tree

18 files changed

+3029
-80
lines changed

18 files changed

+3029
-80
lines changed
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
<script lang="ts" setup>
2+
import { useColor } from '@/app/composables/useColor'
3+
import Table from '@/ui/components/Table/Table.vue'
4+
import { ref } from 'vue'
5+
6+
const { color } = useColor()
7+
8+
const data = ref([
9+
{
10+
id: '4600',
11+
date: '2024-03-11T15:30:00',
12+
status: 'paid',
13+
email: 'james.anderson@example.com',
14+
amount: 594,
15+
},
16+
{
17+
id: '4599',
18+
date: '2024-03-11T10:10:00',
19+
status: 'failed',
20+
email: 'mia.white@example.com',
21+
amount: 276,
22+
},
23+
{
24+
id: '4598',
25+
date: '2024-03-11T08:50:00',
26+
status: 'refunded',
27+
email: 'william.brown@example.com',
28+
amount: 315,
29+
},
30+
{
31+
id: '4597',
32+
date: '2024-03-10T19:45:00',
33+
status: 'paid',
34+
email: 'emma.davis@example.com',
35+
amount: 529,
36+
},
37+
{
38+
id: '4596',
39+
date: '2024-03-10T15:55:00',
40+
status: 'paid',
41+
email: 'ethan.harris@example.com',
42+
amount: 639,
43+
},
44+
])
45+
</script>
46+
47+
<template>
48+
<div class="flex flex-col gap-4">
49+
<Table :data="data" :loading-color="color" class="flex-1" />
50+
51+
<Table :data="data" :loading="true" :loading-color="color" class="flex-1" />
52+
</div>
53+
</template>

0 commit comments

Comments
 (0)