提交 50c9f082 authored 作者: 周盛's avatar 周盛

Revert "$ git commit -m 将Filter放到"

This reverts commit 85f238dc. 撤销
上级 85f238dc
...@@ -16,6 +16,7 @@ const queryOptions = async() => { ...@@ -16,6 +16,7 @@ const queryOptions = async() => {
export default class Filter extends React.Component{ export default class Filter extends React.Component{
stattic
constructor(props){ constructor(props){
super(props); super(props);
this.state ={ this.state ={
...@@ -145,9 +146,8 @@ export default class Filter extends React.Component{ ...@@ -145,9 +146,8 @@ export default class Filter extends React.Component{
render(){ render(){
const { gradeList, institutionList, majorList, clazzList } = this.state.options; const { gradeList, institutionList, majorList, clazzList } = this.state.options;
const { institutionId , majorId } = this.state.formValues; const { institutionId , majorId } = this.state.formValues;
const { style } = this.props;
return ( return (
<div className='siderBar' style={style ? style : null}> <div className='siderBar'>
<div className='searchBox'> <div className='searchBox'>
<input type='text' <input type='text'
ref={node => this.input = node} ref={node => this.input = node}
...@@ -183,7 +183,6 @@ export default class Filter extends React.Component{ ...@@ -183,7 +183,6 @@ export default class Filter extends React.Component{
Filter.propTypes = { Filter.propTypes = {
getPage: PropTypes.func.isRequired, // 页面刷新方法 getPage: PropTypes.func.isRequired, // 页面刷新方法
toggle: PropTypes.func, // 收回侧边方法 toggle: PropTypes.func, // 收回侧边方法
style: PropTypes.object, // 外框样式
} }
Filter.defaultProps = { Filter.defaultProps = {
getPage: () => {} getPage: () => {}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论