import React, { useState } from 'react'; import { Button } from 'antd'; import StatisticalHistoryView from '../index'; // import PandaConfigurationView from '../../es/index'; const Demo = () => { // const params = { // deviceCode: 'JYBZ00000004', // sensors: '出水实际压力', // deviceType: '加压泵站', // statisticType: '', // } /* const params = { deviceCode: 'LLJ00000001', sensors: '今日水量', deviceType: '流量计', statisticType: '', } */ const params = { deviceCode: 'EGBF00000023', sensors: '今日供水量', deviceType: '二供泵房', statisticType: '', } return ( <> <div style={{ width: '100%', height: '600px'}}> <StatisticalHistoryView deviceParams={params}/> </div> </> ); }; export default Demo;