From 4d6f8e96b93c40b10f4cb05b4f9dfe9d3a23acde Mon Sep 17 00:00:00 2001 From: Wei Zhu Date: Sat, 9 Jun 2018 15:58:32 +0800 Subject: [PATCH] Improve AutoComplete types close #10619 --- components/auto-complete/index.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/components/auto-complete/index.tsx b/components/auto-complete/index.tsx index 0b68cad89b..9fac6d62b4 100755 --- a/components/auto-complete/index.tsx +++ b/components/auto-complete/index.tsx @@ -6,7 +6,11 @@ import Input from '../input'; import InputElement from './InputElement'; export interface DataSourceItemObject { value: string; text: string; } -export type DataSourceItemType = string | DataSourceItemObject; +export type DataSourceItemType = + string | + DataSourceItemObject | + React.ReactElement | + React.ReactElement; export interface AutoCompleteInputProps { onChange?: React.FormEventHandler;