better links

This commit is contained in:
2026-01-23 11:52:59 +00:00
parent 33d8b5c316
commit 008cd61a1e
3 changed files with 159 additions and 13 deletions

View File

@@ -18,6 +18,8 @@ const keys = ["name", "link"];
:key="rowIndex"
:href="row.link"
>
{{ row.name }}
<p>
{{ row.name }}
</p>
</a>
</template>

View File

@@ -0,0 +1,25 @@
<script setup>
import { ref } from "vue";
import LinkTable from "@/components/quick/LinkTable.vue";
const props = defineProps({
linkArr: {
type: Array,
required: true,
},
title: {
type: String,
required: true,
},
});
const show_links = ref(true);
</script>
<template>
<div class="flex-row">
<h2>{{ title }}</h2>
<button @click="show_links = !show_links">Toggle</button>
</div>
<LinkTable v-if="show_links" :linkArr="props.linkArr" />
</template>