import React , { useState }from 'react'; import { OverallPromise } from '../../../../models/_/real'; import useRequest from '../../../../utils/useRequest'; import PanelBox from '../../components/PanelBox'; import OverallContent from './OverallContent'; import { Switch, FormControlLabel,InputLabel, Select, MenuItem,FormControl } from '@material-ui/core/index' import { styled } from '@material-ui/styles'; export default function Overall({ style }) { const { data } = useRequest(OverallPromise.get); const CustomSwitch = styled(Switch)({ '& .MuiSwitch-switchBase': { color: '#fff', '&.Mui-checked': { color: '#1890ff', '& + .MuiSwitch-track': { backgroundColor: '#1890ff', opacity: 0.5, }, }, }, '& .MuiSwitch-track': { backgroundColor: 'rgba(255, 255, 255, 0.3)', }, }); const StyledFormControlLabel = styled(FormControlLabel)({ '& .MuiFormControlLabel-label': { color: '#fff' } }); const [dimension, setDimension] = useState('fqh'); const [checked, setChecked] = React.useState(false); return (
setChecked(e.target.checked)} /> } label="多灌区模式" /> {checked &&
}
) }