You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
1.1 KiB
27 lines
1.1 KiB
import React, { useEffect, useState } from 'react'
|
|
import TableCard from './public/table-card';
|
|
import CarouselList from './public/carousel-list';
|
|
|
|
function AlarmList(props) {
|
|
const { cardHeight } = props;
|
|
const renderBody = () => {
|
|
return <CarouselList
|
|
header={['任务名称', '采集时间', '耗时', '异常日志']}
|
|
data={[['任务名称', '采集时间', '耗时', '异常日志'], ['任务名称', '采集时间', '耗时', '异常日志'], ['任务名称', '采集时间', '耗时', '异常日志'], ['任务名称', '采集时间', '耗时', '异常日志'], ['任务名称', '采集时间', '耗时', '异常日志'], ['任务名称', '采集时间', '耗时', '异常日志'], ['任务名称', '采集时间', '耗时', '异常日志'], ['任务名称', '采集时间', '耗时', '异常日志']]}
|
|
rowNum={6}
|
|
height={cardHeight - 42 - 13}
|
|
multiellipsis
|
|
// columnWidth={[200, 170, 120, 120]}
|
|
/>
|
|
}
|
|
|
|
return <TableCard
|
|
renderBody={renderBody()}
|
|
height={'100%'}
|
|
title={"预警列表"}
|
|
bodyPaddingTop={1} />
|
|
}
|
|
|
|
export default AlarmList;
|
|
|
|
|
|
|