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} );