diff --git a/src/components/HeaderSearch/index.tsx b/src/components/HeaderSearch/index.tsx index 521ef82fb3d85889f7d4ae967ebf009b3cc705c4..dc252603c3a76122c5465d290f0c1efb3e2fd2d8 100644 --- a/src/components/HeaderSearch/index.tsx +++ b/src/components/HeaderSearch/index.tsx @@ -2,8 +2,7 @@ import React, { Component } from 'react'; import { Input, Icon, AutoComplete } from 'antd'; import { DataSourceItemType } from 'antd/es/auto-complete'; import classNames from 'classnames'; -import Debounce from 'lodash-decorators/debounce'; -import Bind from 'lodash-decorators/bind'; +import debounce from 'lodash/debounce'; import styles from './index.less'; export interface HeaderSearchProps { @@ -55,6 +54,10 @@ export default class HeaderSearch extends Component { const { onPressEnter } = this.props; const { value } = this.state; onPressEnter(value); - } + }; render() { const { className, placeholder, open, ...restProps } = this.props;