/* eslint-disable eqeqeq */ /* eslint-disable react/no-unknown-property */ import { PageContainer, ProCard } from '@ant-design/pro-components'; import { Image } from 'antd'; import React from 'react'; // type import { ComputePowerPoolItem } from './typing'; // TODO 整个页面的字体、颜色、间距处理 // state const poolsData: ComputePowerPoolItem[] = [ { name: '玩手机监控', type: 0, proportion: 39, PretreatmentEfficiency: 15, color: '#FAA90B', }, { name: '离岗监控', type: 1, proportion: 60, PretreatmentEfficiency: 20, color: '#3879FE', }, { name: '空闲算力', type: 2, proportion: 1, PretreatmentEfficiency: 0, }, ]; /**子组件 */ // 参数信息项 const InfoPreview: React.FC<{ name: string; des: string; }> = ({ name, des }) => { return (