From 68340a700ecdc050292a62bd08bb12ffee22d12c Mon Sep 17 00:00:00 2001 From: liaoxuezhi Date: Thu, 23 May 2019 20:10:28 +0800 Subject: [PATCH] =?UTF-8?q?AutoComplete=20=E6=94=AF=E6=8C=81=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=20option.tip?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderers/Form/Text.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/renderers/Form/Text.tsx b/src/renderers/Form/Text.tsx index cc2f5cfd9..817c9cd7a 100644 --- a/src/renderers/Form/Text.tsx +++ b/src/renderers/Form/Text.tsx @@ -453,7 +453,9 @@ export default class TextControl extends React.PureComponent {option.isNew ? ( 新增:{option.label}{enterIcon} - ) : option.disabled ? option.label : highlight(option.label, inputValue as string)} + ) : ( + {option.disabled ? option.label : highlight(option.label, inputValue as string)}{option.tip} + )} ); })}