import React from "react"; import {Badge, ConfigProvider, Table,} from "antd" function dtxxdata(props: { height: string }) { return (
{text} }, { title: '事件', dataIndex: 'event', key: 'event', width: '50%', ellipsis: true, render: (text) => {text} }, { title: '状态', dataIndex: 'status', key: 'status', width: '20%', render: (status) => ( {status === 'success' ? '已完成' : '处理中'} }/> ) } ]} dataSource={[ {key: '1', time: '2025-09-23 09:23', event: '污水井盖#W023发生倾斜告警', status: 'processing'}, {key: '2', time: '2025-08-45 09:23', event: '电力井盖#D112维修完成', status: 'success'}, {key: '3', time: '2025-07-18 09:23', event: '通信井盖#T056电压异常', status: 'processing'}, {key: '4', time: '2025-08-23 09:23', event: '雨水井盖#Y091更换完成', status: 'success'}, {key: '5', time: '2025-08-23 09:23', event: '燃气井盖#R034压力告警', status: 'success'}, {key: '6', time: '2025-08-23 09:23', event: '新增通信井盖#T057安装完成', status: 'success'}, {key: '7', time: '2025-08-23 09:23', event: '电力井盖#D108电池更换', status: 'success'} ]} pagination={false} size="small" style={{backgroundColor: 'transparent'}} // 添加固定表头配置 scroll={{x: 200, y: 138}}>
) } export default dtxxdata;