提交 c082c8db authored 作者: 周盛's avatar 周盛

将Filter移动到HighStateComponent‘

上级 50c9f082
...@@ -146,8 +146,9 @@ export default class Filter extends React.Component{ ...@@ -146,8 +146,9 @@ 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'> <div className='siderBar' style={style ? style : null}>
<div className='searchBox'> <div className='searchBox'>
<input type='text' <input type='text'
ref={node => this.input = node} ref={node => this.input = node}
...@@ -183,6 +184,7 @@ export default class Filter extends React.Component{ ...@@ -183,6 +184,7 @@ 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 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论