From 5600443fe5bf24e5d6ca8b2b798b070eb1769b4e Mon Sep 17 00:00:00 2001 From: wuduoyi Date: Thu, 20 Aug 2020 13:18:05 +0800 Subject: [PATCH] =?UTF-8?q?select=20=E7=9A=84=E6=96=B0=E5=A2=9E=E7=A7=BB?= =?UTF-8?q?=E5=88=B0=E5=89=8D=E9=9D=A2=E6=96=B9=E4=BE=BF=E4=BD=BF=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Select.tsx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/components/Select.tsx b/src/components/Select.tsx index 9f1dcb77..7d0e4975 100644 --- a/src/components/Select.tsx +++ b/src/components/Select.tsx @@ -874,8 +874,15 @@ export class Select extends React.Component { Placeholder + {creatable && !disabled ? ( + + + {__(createBtnLabel)} + + ) : null} + {filtedOptions.length ? ( - filtedOptions.length > 100 ? ( // 超过 100 个数据才启用 virtuallist 避免滚动条问题 + filtedOptions.length > 100 ? ( // 超过 100 行数据才启用 virtuallist 避免滚动条问题 8 @@ -894,13 +901,6 @@ export class Select extends React.Component { ) : (
{__(noResultsText)}
)} - - {creatable && !disabled ? ( - - - {__(createBtnLabel)} - - ) : null} );