mirror of https://github.com/sveltejs/svelte
parent
6f634b8fc6
commit
45632d0f7b
@ -0,0 +1,9 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"code": "invalid-slotted-content",
|
||||||
|
"message": "Element with a slot='...' attribute must be a child of a component or custom element",
|
||||||
|
"start": { "line": 10, "column": 9, "character": 138 },
|
||||||
|
"end": { "line": 10, "column": 19, "character": 148 },
|
||||||
|
"pos": 138
|
||||||
|
}
|
||||||
|
]
|
@ -0,0 +1,14 @@
|
|||||||
|
<script>
|
||||||
|
import Nested from './Nested.svelte';
|
||||||
|
let thing = false;
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<custom-element>
|
||||||
|
<Nested>
|
||||||
|
{#if thing}
|
||||||
|
<div>
|
||||||
|
<div slot='bar' />
|
||||||
|
</div>
|
||||||
|
{/if}
|
||||||
|
</Nested>
|
||||||
|
</custom-element>
|
@ -0,0 +1 @@
|
|||||||
|
[]
|
@ -0,0 +1,15 @@
|
|||||||
|
<script>
|
||||||
|
import Nested from './Nested.svelte';
|
||||||
|
let thing = false;
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<Nested>
|
||||||
|
<custom-element>
|
||||||
|
<div>
|
||||||
|
<div slot='foo' />
|
||||||
|
</div>
|
||||||
|
{#if thing}
|
||||||
|
<div slot='bar' />
|
||||||
|
{/if}
|
||||||
|
</custom-element>
|
||||||
|
</Nested>
|
Loading…
Reference in new issue