import React from "react";
import {Link} from" dva/router"
import {Menu, Icon, Avatar, Layout, Breadcrumb, Button, notification, Select, Pagination, Checkbox, Input} from "antd";
import logo from". / css/App.css";
import ayjs from". / css/ayjs.css";
import ReactDOM from "react-dom";
class Sider extends React.Component {
state ={
check:false,
checks:false,
}
showInput=(e)=>{//
console.log(e.target.checked);
this.setState({
check:e.target.checked,
checks:e.target.checked,
})
}
onChangea(e) {
console.log(`checked = ${e.target.checed}`);
}
render () {
return (
) <div style={{width:"100%"}}>
<Checkbox checked={this.state.check} onChange={this.showInput} /><br/>
<Checkbox checked={this.state.checks} onChange={this.onChangea} />
<Checkbox checked={this.state.checks} onChange={this.onChangea} />
<Checkbox checked={this.state.checks} onChange={this.onChangea} />
</div>
);
}
};
export default Sider