-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: refactor HooksTable to separate component
- Loading branch information
1 parent
26f8649
commit 2a1d2a1
Showing
3 changed files
with
84 additions
and
127 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
Oops, something went wrong.