Components to quickly render object lists
This commit is contained in:
23
nginx/vue/src/components/quick/LinkTable.vue
Normal file
23
nginx/vue/src/components/quick/LinkTable.vue
Normal file
@@ -0,0 +1,23 @@
|
||||
<script setup>
|
||||
import { computed } from "vue";
|
||||
|
||||
const props = defineProps({
|
||||
linkArr: {
|
||||
type: Array,
|
||||
required: true,
|
||||
},
|
||||
});
|
||||
|
||||
const keys = ["name", "link"];
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<a
|
||||
class="bdr-2"
|
||||
v-for="(row, rowIndex) in linkArr"
|
||||
:key="rowIndex"
|
||||
:href="row.link"
|
||||
>
|
||||
<h2>{{ row.name }}</h2>
|
||||
</a>
|
||||
</template>
|
||||
Reference in New Issue
Block a user