rename quick to util
This commit is contained in:
25
nginx/vue/src/components/util/ToggleLinkTable.vue
Normal file
25
nginx/vue/src/components/util/ToggleLinkTable.vue
Normal file
@@ -0,0 +1,25 @@
|
||||
<script setup>
|
||||
import { ref } from "vue";
|
||||
import LinkTable from "@/components/util/LinkTable.vue";
|
||||
|
||||
const props = defineProps({
|
||||
linkArr: {
|
||||
type: Array,
|
||||
required: true,
|
||||
},
|
||||
title: {
|
||||
type: String,
|
||||
required: true,
|
||||
},
|
||||
});
|
||||
|
||||
const show_links = ref(false);
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="flex flex-row">
|
||||
<h2>{{ title }}</h2>
|
||||
<button @click="show_links = !show_links">Toggle</button>
|
||||
</div>
|
||||
<LinkTable v-if="show_links" :linkArr="props.linkArr" />
|
||||
</template>
|
||||
Reference in New Issue
Block a user