fix(select-menu): max-height not correct when virtual

This commit is contained in:
07akioni 2020-11-12 21:33:24 +08:00
parent ef7fea8e78
commit f08b5b9229
2 changed files with 5 additions and 2 deletions

View File

@ -15,8 +15,8 @@
v-if="!empty"
ref="scrollbarRef"
:scrollable="scrollable"
:container="virtualListContainer"
:content="virtualListContent"
:container="virtualScroll && virtualListContainer"
:content="virtualScroll && virtualListContent"
@scroll="doScroll"
>
<virtual-list

View File

@ -13,6 +13,9 @@ export default c([
cM(size + '-size', {
padding
}, [
cB('scrollbar', {
maxHeight: menuHeight
}),
cB('virtual-list', {
maxHeight: menuHeight
}),