|
|
|
@ -70,13 +70,13 @@ const getTransform = computed(() => {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
onMounted(() => {
|
|
|
|
onMounted(() => {
|
|
|
|
containerHeight.value = virtualListContainer.value.clientHeight;
|
|
|
|
containerHeight.value = containerRef.value.clientHeight;
|
|
|
|
console.log('containerHeight容器高度为:', containerHeight.value);
|
|
|
|
console.log('containerHeight容器高度为:', containerHeight.value);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
.virtual-list-container {
|
|
|
|
.container {
|
|
|
|
width: 100%;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
height: 100%;
|
|
|
|
position: relative;
|
|
|
|
position: relative;
|
|
|
|
|