Nuxt/test/fixtures/basic/components/ComponentWithRef.vue
Anthony Fu adb1c122a7
fix(nuxt): fix error on layout switching (#21450)
Co-authored-by: Daniel Roe <daniel@roe.dev>
2023-06-23 11:02:01 +01:00

13 lines
246 B
Vue

<script setup lang="ts">
const list = ['a', 'b', 'c']
const templateRef = ref<HTMLElement[] | null>(null)
</script>
<template>
<div>
<div v-for="item in list" ref="templateRef" :key="item">
{{ item }}
</div>
</div>
</template>