pull/10027/head
navorite 3 years ago
parent c34f3d0e86
commit 92cd4cfa83

@ -2,6 +2,8 @@
let { a, arr } = $props();
</script>
<text x="0" y=14>outside blocks</text>
{#if a}
{@const tag = "test"}
<text x="0" y="26">A {tag}</text>

@ -18,8 +18,7 @@
<text x="0" y="26">not A</text>
{/if}
</svg>
{#each arr as item, idx}
<text x={idx * 10} y={42}>{item}</text>
{/each}
</svg>

Loading…
Cancel
Save