mirror of https://github.com/sveltejs/svelte
parent
92cd4cfa83
commit
5598c4c48b
@ -1,19 +0,0 @@
|
|||||||
<script>
|
|
||||||
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>
|
|
||||||
{:else}
|
|
||||||
{@html "<text x=0 y=25>temp</text>"}
|
|
||||||
<text x="0" y="26">not A</text>
|
|
||||||
{/if}
|
|
||||||
|
|
||||||
{#each arr as item, idx}
|
|
||||||
<text x={idx * 10} y={42}>{item}</text>
|
|
||||||
{/each}
|
|
||||||
|
|
||||||
<!-- test comment -->
|
|
||||||
@ -1,24 +0,0 @@
|
|||||||
<script>
|
|
||||||
import Wrapper from "./Wrapper.svelte";
|
|
||||||
|
|
||||||
let a = true;
|
|
||||||
let arr = ["x", "y", "z"];
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<svg>
|
|
||||||
<Wrapper {a} {arr} />
|
|
||||||
</svg>
|
|
||||||
|
|
||||||
<svg>
|
|
||||||
{#if a}
|
|
||||||
{@const tag = "test"}
|
|
||||||
<text x="0" y="26">A {tag}</text>
|
|
||||||
{:else}
|
|
||||||
{@html "<text x=0 y=25>temp</text>"}
|
|
||||||
<text x="0" y="26">not A</text>
|
|
||||||
{/if}
|
|
||||||
|
|
||||||
{#each arr as item, idx}
|
|
||||||
<text x={idx * 10} y={42}>{item}</text>
|
|
||||||
{/each}
|
|
||||||
</svg>
|
|
||||||
Loading…
Reference in new issue