index.js 701 Bytes
Newer Older
1 2 3
import React from 'react';
import HistoryView from '../index';

4
const deviceParams = [
陈龙's avatar
陈龙 committed
5
    {
6 7 8 9
        "deviceCode": "EGBF00000245",
        "sensors": "进水压力,余氯",
        // "sensors": "进水压力",
        "deviceType": "二供泵房"
10
    }
11
]
12
const Demo = () => {
陈龙's avatar
陈龙 committed
13 14 15 16
    return (
        <>
            <div>
                <div style={{height: 700}}>
17
                    <HistoryView deviceParams={deviceParams} defaultModel="curve" defaultDateRange={['2022-12-12 12:12:12','2022-12-31 23:23:23']}/>
18
                    {/*<HistoryView theme={'BI'} deviceParams={deviceParams} defaultModel="curve"/>*/}
陈龙's avatar
陈龙 committed
19 20 21 22
                </div>
            </div>
        </>
    );
23 24 25
};

export default Demo;