mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-03 12:38:53 +08:00
fix: 减小 virtual select 高度避免两个滚动条 (#1275)
This commit is contained in:
parent
3b6103f789
commit
13a8aebd45
@ -918,7 +918,7 @@ export class Select extends React.Component<SelectProps, SelectState> {
|
|||||||
<VirtualList
|
<VirtualList
|
||||||
height={
|
height={
|
||||||
filtedOptions.length > 8
|
filtedOptions.length > 8
|
||||||
? 280
|
? 266
|
||||||
: filtedOptions.length * itemHeight
|
: filtedOptions.length * itemHeight
|
||||||
}
|
}
|
||||||
itemCount={filtedOptions.length}
|
itemCount={filtedOptions.length}
|
||||||
|
Loading…
Reference in New Issue
Block a user