mirror of https://github.com/sveltejs/svelte
Merge pull request #2097 from sveltejs/gh-2031-with-fix
assign elements to correct block when slots are involvedpull/2101/head
commit
47ab23c1de
@ -0,0 +1,11 @@
|
|||||||
|
<script>
|
||||||
|
import Two from './Two.svelte';
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<Two>
|
||||||
|
<div slot="b">
|
||||||
|
<div>
|
||||||
|
<slot name="a"></slot>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</Two>
|
@ -0,0 +1 @@
|
|||||||
|
<slot name="b"></slot>
|
@ -0,0 +1,9 @@
|
|||||||
|
export default {
|
||||||
|
html: `
|
||||||
|
<div slot="b">
|
||||||
|
<div>
|
||||||
|
<div slot="a">a</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
`
|
||||||
|
};
|
@ -0,0 +1,7 @@
|
|||||||
|
<script>
|
||||||
|
import One from './One.svelte';
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<One>
|
||||||
|
<div slot="a">a</div>
|
||||||
|
</One>
|
Loading…
Reference in new issue