// Copyright 2026 Arctel.net // SPDX-License-Identifier: Apache-2.0 "use client" import * as React from "react" import {Code, Edit, ListFilter, Plus, Search, Trash2} from "lucide-react" import {Button} from "@/components/ui/button" import {Input} from "@/components/ui/input" import {Table, TableBody, TableCell, TableHead, TableHeader, TableRow} from "@/components/ui/table" import {Badge} from "@/components/ui/badge" import {Card, CardContent, CardHeader, CardTitle} from "@/components/ui/card" export function TableTab() { const mockTableData = [ { id: "TX-1002", name: "用户信息批量同步导出", type: "数据同步", status: "success", duration: "1.2s", time: "2026-06-15 14:22" }, { id: "TX-1003", name: "系统数据库每周自动备份归档", type: "数据库运维", status: "running", duration: "在执行中", time: "2026-06-15 15:00" }, { id: "TX-1004", name: "远端S3过期缓存对象自动清理任务", type: "磁盘清理", status: "failed", duration: "0.4s", time: "2026-06-15 10:05" }, ] return (
表格设计规范与代码模板
border border-dashed shadow-none rounded-lg overflow-hidden bg-background。bg-muted/40。表头表项字号统一为小字粗体 text-xs font-semibold。border-dashed)。表格行悬浮交互采用温和过渡色 hover:bg-muted/10 transition-colors。font-mono text-xs。rounded-full py-0 px-2),并以浅背景配以各自对应的图标圆点,以实现现代、高对比度的视觉质感。
{`
编号
状态
ID-1001
成功
`}