From e6728b295c594ca77c07b8657328ba3cef0b4fb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=B8=85?= Date: Wed, 22 May 2019 20:58:06 +0800 Subject: [PATCH] remove decorators --- src/components/HeaderSearch/index.tsx | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/src/components/HeaderSearch/index.tsx b/src/components/HeaderSearch/index.tsx index 521ef82f..dc252603 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; -- GitLab