feat: add virtual scrolling demo and fix build hanging issues

This commit is contained in:
sanbuphy
2026-01-18 23:59:25 +08:00
parent e41063a1cd
commit bb28f010e3
5 changed files with 219 additions and 4 deletions
@@ -177,7 +177,7 @@
</template>
<script setup>
import { ref, computed, onUnmounted } from 'vue'
import { ref, computed, onMounted, onUnmounted } from 'vue'
const selectedScenario = ref('order')
const sending = ref(false)
@@ -286,7 +286,9 @@ const updateTimers = () => {
})
}
timer = setInterval(updateTimers, 1000)
onMounted(() => {
timer = setInterval(updateTimers, 1000)
})
onUnmounted(() => {
if (timer) {