Skip to content

Commit

Permalink
docs: refactor HooksTable to separate component
Browse files Browse the repository at this point in the history
  • Loading branch information
fratzinger committed Jan 17, 2024
1 parent 26f8649 commit 2a1d2a1
Show file tree
Hide file tree
Showing 3 changed files with 84 additions and 127 deletions.
37 changes: 37 additions & 0 deletions docs/components/HookTable.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<template>
<table>
<thead>
<tr>
<th>before</th>
<th>after</th>
<th>methods</th>
<th>multi</th>
<th>details</th>
</tr>
</thead>
<tbody>
<tr>
<td>{{ before ? 'yes' : 'no' }}</td>
<td>{{ after ? 'yes' : 'no' }}</td>
<td>{{ methods.join(", ") }}</td>
<td>{{ typeof multi === 'boolean' ? multi ? 'yes' : 'no' : multi }}</td>
<td><a :href="source" target="_blank">source</a></td>
</tr>
</tbody>
</table>
</template>

<script setup lang="ts">
const props = defineProps<{
before: boolean;
after: boolean;
methods: string[];
multi: boolean | string;
source: string;
}>();
</script>

<script lang="ts">
</script>
Loading

0 comments on commit 2a1d2a1

Please sign in to comment.