feat: migrate Toast and Table with reviewed state focus and SSR contracts

This commit is contained in:
maoyingjie
2026-10-24 07:19:26 +08:00
parent 0cfe7b6195
commit ed41af5294
95 changed files with 9358 additions and 8 deletions
+53
View File
@@ -0,0 +1,53 @@
<script setup lang="ts">
import {
Table,
TableBody,
TableCell,
TableColumn,
TableContent,
TableHeader,
TableRow,
TableScrollContainer,
} from "@heroui-vue/components";
</script>
<template>
<Table>
<TableScrollContainer>
<TableContent aria-label="团队成员" class="min-w-[600px]">
<TableHeader>
<TableColumn is-row-header>姓名</TableColumn>
<TableColumn>角色</TableColumn>
<TableColumn>状态</TableColumn>
<TableColumn>邮箱</TableColumn>
</TableHeader>
<TableBody>
<TableRow row-key="1">
<TableCell>Kate Moore</TableCell>
<TableCell>首席执行官</TableCell>
<TableCell>在职</TableCell>
<TableCell>kate@acme.com</TableCell>
</TableRow>
<TableRow row-key="2">
<TableCell>John Smith</TableCell>
<TableCell>首席技术官</TableCell>
<TableCell>在职</TableCell>
<TableCell>john@acme.com</TableCell>
</TableRow>
<TableRow row-key="3">
<TableCell>Sara Johnson</TableCell>
<TableCell>首席营销官</TableCell>
<TableCell>休假</TableCell>
<TableCell>sara@acme.com</TableCell>
</TableRow>
<TableRow row-key="4">
<TableCell>Michael Brown</TableCell>
<TableCell>首席财务官</TableCell>
<TableCell>在职</TableCell>
<TableCell>michael@acme.com</TableCell>
</TableRow>
</TableBody>
</TableContent>
</TableScrollContainer>
</Table>
</template>