mirror of https://github.com/sveltejs/svelte
parent
87ef5ffefd
commit
5b3e8cd88f
@ -0,0 +1,5 @@
|
|||||||
|
<div>
|
||||||
|
<slot name='foo'>
|
||||||
|
<slot name='bar'></slot>
|
||||||
|
</slot>
|
||||||
|
</div>
|
@ -0,0 +1,6 @@
|
|||||||
|
export default {
|
||||||
|
html: `
|
||||||
|
<div>
|
||||||
|
<p slot='bar'>bar</p>
|
||||||
|
</div>`
|
||||||
|
};
|
@ -0,0 +1,13 @@
|
|||||||
|
<Nested>
|
||||||
|
<p slot='bar'>bar</p>
|
||||||
|
</Nested>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import Nested from './Nested.html';
|
||||||
|
|
||||||
|
export default {
|
||||||
|
components: {
|
||||||
|
Nested
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
@ -1,8 +0,0 @@
|
|||||||
[{
|
|
||||||
"message": "<slot> elements cannot be nested",
|
|
||||||
"loc": {
|
|
||||||
"line": 2,
|
|
||||||
"column": 1
|
|
||||||
},
|
|
||||||
"pos": 8
|
|
||||||
}]
|
|
@ -1,3 +0,0 @@
|
|||||||
<slot>
|
|
||||||
<slot name='foo'></slot>
|
|
||||||
</slot>
|
|
Loading…
Reference in new issue