From 0d35b1e3e33e7a2ca7b310fe77f24cfa95883b0e Mon Sep 17 00:00:00 2001 From: afc163 Date: Wed, 3 Jul 2019 16:55:30 +0800 Subject: [PATCH] :bug: Omit AutoComplete loading type close #17432 --- components/auto-complete/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/auto-complete/index.tsx b/components/auto-complete/index.tsx index 918d488c08..e75ffc7d00 100755 --- a/components/auto-complete/index.tsx +++ b/components/auto-complete/index.tsx @@ -5,6 +5,7 @@ import InputElement from './InputElement'; import Input, { InputProps } from '../input'; import Select, { AbstractSelectProps, SelectValue, OptionProps, OptGroupProps } from '../select'; import { ConfigConsumer, ConfigConsumerProps } from '../config-provider'; +import { Omit } from '../_util/type'; export interface DataSourceItemObject { value: string; @@ -26,7 +27,7 @@ export type ValidInputElement = | HTMLTextAreaElement | React.ReactElement; -export interface AutoCompleteProps extends AbstractSelectProps { +export interface AutoCompleteProps extends Omit { value?: SelectValue; defaultValue?: SelectValue; dataSource?: DataSourceItemType[];