Skip to content

Commit 5a13bf3

Browse files
committed
docs: improve clarity on using refs (#395) #396
1 parent a864471 commit 5a13bf3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/guide/essentials/template-refs.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,8 @@ onMounted(() => console.log(itemRefs.value))
142142
<details>
143143
<summary>Použití před verzí 3.5</summary>
144144

145+
Ve verzích před 3.5, kde `useTemplateRef()` ještě není dostupné, musíme deklarovat ref s&nbsp;názvem, který odpovídá hodnotě atributu `ref` v šabloně. Ref by měl obsahovat hodnotu typu pole:
146+
145147
```vue
146148
<script setup>
147149
import { ref, onMounted } from 'vue'

0 commit comments

Comments
 (0)