fix(components): [select] fix select dropdown width (#8396) (#8435)

This commit is contained in:
Cheerwhy 2022-06-24 21:26:10 +08:00 committed by GitHub
parent 49bc137430
commit 4abd29c597
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,9 +29,7 @@ export default defineComponent({
const minWidth = ref('')
function updateMinWidth() {
minWidth.value = `${
select.selectWrapper?.getBoundingClientRect().width
}px`
minWidth.value = `${select.selectWrapper?.offsetWidth}px`
}
onMounted(() => {