refactor: 调整components目录
- 将components根据作用范围/可复用性进行分类
This commit is contained in:
12
app/components/shared/MarkdownTable.vue
Normal file
12
app/components/shared/MarkdownTable.vue
Normal file
@ -0,0 +1,12 @@
|
||||
<template>
|
||||
<el-table :data="rows" border>
|
||||
<el-table-column v-for="h in headers" :key="h" :prop="h" :label="h" />
|
||||
</el-table>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
defineProps<{
|
||||
headers: string[];
|
||||
rows: Record<string, string>[];
|
||||
}>();
|
||||
</script>
|
||||
Reference in New Issue
Block a user