提交 17277253 authored 作者: vipcxj's avatar vipcxj

make eslint happy.

上级 67e52764
...@@ -5,6 +5,17 @@ import isString from 'lodash/isString'; ...@@ -5,6 +5,17 @@ import isString from 'lodash/isString';
import styles from './enum.less'; import styles from './enum.less';
class EnumSearch extends Component { class EnumSearch extends Component {
constructor(props, context) {
super(props, context);
this.submit = this::this.submit;
this.reset = this::this.reset;
const checked = props.filterEnums.map(() => false);
this.state = {
checked,
};
}
static getValue(filterEnum) { static getValue(filterEnum) {
if (isString(filterEnum)) { if (isString(filterEnum)) {
return filterEnum; return filterEnum;
...@@ -20,16 +31,6 @@ class EnumSearch extends Component { ...@@ -20,16 +31,6 @@ class EnumSearch extends Component {
} }
} }
constructor(props, context) {
super(props, context);
this.submit = this::this.submit;
this.reset = this::this.reset;
const checked = props.filterEnums.map(() => false);
this.state = {
checked,
};
}
submit() { submit() {
const { onSearchSubmit } = this.props; const { onSearchSubmit } = this.props;
const values = this.props.filterEnums const values = this.props.filterEnums
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论