feat: migrate Toast and Table with reviewed state focus and SSR contracts
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
<script setup lang="ts">
|
||||
import { IconInbox } from "@tabler/icons-vue";
|
||||
import {
|
||||
Table,
|
||||
TableBody,
|
||||
TableCell,
|
||||
TableColumn,
|
||||
TableContent,
|
||||
TableHeader,
|
||||
TableRow,
|
||||
TableScrollContainer,
|
||||
} from "@heroui-vue/components";
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<Table class="min-h-[200px]">
|
||||
<TableScrollContainer>
|
||||
<TableContent aria-label="空表格" class="h-full min-w-[600px]">
|
||||
<TableHeader>
|
||||
<TableColumn is-row-header>姓名</TableColumn>
|
||||
<TableColumn>角色</TableColumn>
|
||||
<TableColumn>状态</TableColumn>
|
||||
<TableColumn>邮箱</TableColumn>
|
||||
</TableHeader>
|
||||
<TableBody>
|
||||
<TableRow row-key="empty" :is-disabled="true">
|
||||
<TableCell :colspan="4">
|
||||
<div
|
||||
class="flex h-full w-full flex-col items-center justify-center gap-4 py-8 text-center"
|
||||
>
|
||||
<IconInbox class="size-6 text-muted" aria-hidden="true" />
|
||||
<span class="text-sm text-muted">未找到结果</span>
|
||||
</div>
|
||||
</TableCell>
|
||||
</TableRow>
|
||||
</TableBody>
|
||||
</TableContent>
|
||||
</TableScrollContainer>
|
||||
</Table>
|
||||
</template>
|
||||
Reference in New Issue
Block a user