fix(components): [select-v2] popup height is not accurate (#15012) (#15014)

Co-authored-by: “Jevin” <jevin@mogul-tech.com>
This commit is contained in:
Jevin 2023-11-30 15:58:56 +08:00 committed by GitHub
parent a152212d63
commit 77e7f41c17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -83,7 +83,7 @@ const useSelect = (props: ISelectProps, emit) => {
const selectDisabled = computed(() => props.disabled || elForm?.disabled)
const popupHeight = computed(() => {
const totalHeight = filteredOptions.value.length * 34
const totalHeight = filteredOptions.value.length * props.itemHeight
return totalHeight > props.height ? props.height : totalHeight
})