import React, { useMemo, useState } from 'react'; import { useDispatch, useSelector } from 'react-redux'; import PanelBox from '../../components/PanelBox'; import AreaDrpChart from './chart'; import ShuiyuandiChart from './chart1' import clsx from 'clsx'; function DrpReal({ style }) { const [type, setType] = useState('sc') const dispatch = useDispatch(); const toggleStType = (type) => { setType(type) } return ( {/*
dispatch?.runtime.setInfoDlg({ layerId: 'BjLayer', properties: {} })}>更多
*/} toggleStType('sc')}>水厂 toggleStType('syd')}>水源地 } >{ type == 'sc' ?: } {/* */}
) } export default DrpReal;