From c7d591e9ab518d22d919dd81063de8af3703320e Mon Sep 17 00:00:00 2001 From: ElsaOOo <48074435+ElsaOOo@users.noreply.github.com> Date: Fri, 20 Nov 2020 09:33:35 +0800 Subject: [PATCH] fix: AutoComplete dataSource prop type error (#27870) Co-authored-by: jingjing.ye --- components/auto-complete/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/auto-complete/index.tsx b/components/auto-complete/index.tsx index c82bf84c8c..1da5246410 100755 --- a/components/auto-complete/index.tsx +++ b/components/auto-complete/index.tsx @@ -20,7 +20,7 @@ export interface DataSourceItemObject { value: string; text: string; } -export type DataSourceItemType = string | DataSourceItemObject; +export type DataSourceItemType = string | DataSourceItemObject | React.ReactNode; export interface AutoCompleteProps extends Omit<