-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathAppDownloadTable.vue
More file actions
47 lines (41 loc) · 917 Bytes
/
AppDownloadTable.vue
File metadata and controls
47 lines (41 loc) · 917 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<template>
<table class="download-table">
<tbody>
<tr v-for="(item, i) in items" :key="i">
<td>
<div class="row-content">
<span class="label">{{ item.label }}</span>
<AppButton text="Download" :to="item.url" design="circle" />
</div>
</td>
</tr>
</tbody>
</table>
</template>
<script setup lang="ts">
import type { DownloadItem } from "@/data/downloads";
import AppButton from "./AppButton.vue";
const { items } = withDefaults(defineProps<{ items?: DownloadItem[] }>(), {
items: () => [],
});
</script>
<style scoped>
.download-table {
width: 100%;
border-collapse: collapse;
font-size: 0.95rem;
}
.download-table td {
padding: 0.75rem 1rem;
border: 1px solid #e0e0e0;
}
.row-content {
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
}
.label {
font-weight: 500;
}
</style>