fix: 减小 virtual select 高度避免两个滚动条 (#1275)

This commit is contained in:
吴多益 2020-12-29 16:47:10 +08:00 committed by GitHub
parent 3b6103f789
commit 13a8aebd45
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -918,7 +918,7 @@ export class Select extends React.Component<SelectProps, SelectState> {
<VirtualList
height={
filtedOptions.length > 8
? 280
? 266
: filtedOptions.length * itemHeight
}
itemCount={filtedOptions.length}