mirror of https://github.com/sveltejs/svelte
parent
41026341d8
commit
aa183df289
@ -0,0 +1,5 @@
|
||||
<div>
|
||||
<slot>default fallback content</slot>
|
||||
<slot name='bar'>bar fallback content</slot>
|
||||
<slot name='foo'>foo fallback content</slot>
|
||||
</div>
|
@ -0,0 +1,9 @@
|
||||
export default {
|
||||
html: `
|
||||
<div>
|
||||
<slot>default fallback content</slot>
|
||||
<slot name='bar'>bar fallback content</slot>
|
||||
<slot name='foo'>foo fallback content</slot>
|
||||
</div>
|
||||
`
|
||||
};
|
@ -0,0 +1,11 @@
|
||||
<Nested ref:nested></Nested>
|
||||
|
||||
<script>
|
||||
import Nested from './Nested.html';
|
||||
|
||||
export default {
|
||||
components: {
|
||||
Nested
|
||||
}
|
||||
};
|
||||
</script>
|
Loading…
Reference in new issue