Skip to content

Commit df066c9

Browse files
committed
chore: more test
1 parent 3d3ae3e commit df066c9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/ref.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,13 @@
44
</script>
55

66
<div
7+
id="root"
8+
ref="root"
79
v-scope="{ dynamicRef: 'x', show: true }"
810
v-effect="console.log({ x: $refs.x, y: $refs.y, input: $refs.input })"
911
>
12+
<p>Accessing root el: id is {{ $refs.root.id }}</p>
13+
1014
<input ref="input" />
1115
<span v-if="show" :ref="dynamicRef">Span with dynamic ref</span>
1216
<p>dynamicRef is {{ dynamicRef }}</p>

0 commit comments

Comments
 (0)