// Copyright 2026 Arctel.net // SPDX-License-Identifier: Apache-2.0 'use client'; import * as React from 'react'; import { useTranslations } from 'next-intl'; 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 t = useTranslations('admin.demo.table'); const mockTableData = [ { id: 'TX-1002', name: t('mockData.syncExport'), type: t('mockType.dataSync'), status: 'success', duration: '1.2s', time: '2026-06-15 14:22', }, { id: 'TX-1003', name: t('mockData.dbBackup'), type: t('mockType.dbOps'), status: 'running', duration: t('mockDuration.running'), time: '2026-06-15 15:00', }, { id: 'TX-1004', name: t('mockData.s3Cleanup'), type: t('mockType.diskCleanup'), status: 'failed', duration: '0.4s', time: '2026-06-15 10:05', }, ]; return (
{t('tableDesignSpec')}
border border-dashed shadow-none rounded-lg overflow-hidden
bg-background
。
bg-muted/40
{t('spec.headerStyle')}
text-xs font-semibold
。
border-dashed
{t('spec.rowHover')}
hover:bg-muted/10 transition-colors
。
font-mono text-xs
。
rounded-full py-0 px-2
{t('spec.badgeStyle2')}
{`
编号
状态
ID-1001
成功
`}