mirror of https://github.com/sveltejs/svelte
parent
01347777a3
commit
1680033901
@ -0,0 +1,9 @@
|
||||
<script>
|
||||
const props = $props();
|
||||
</script>
|
||||
|
||||
<p>{Object.keys(props)}</p>
|
||||
|
||||
{#if $$slots.foo}
|
||||
<p>foo exists</p>
|
||||
{/if}
|
||||
@ -0,0 +1,8 @@
|
||||
import { test } from '../../test';
|
||||
|
||||
export default test({
|
||||
html: `
|
||||
<p>a</p>
|
||||
<p>foo exists</p>
|
||||
`
|
||||
});
|
||||
@ -0,0 +1,7 @@
|
||||
<script>
|
||||
import Child from './Child.svelte';
|
||||
</script>
|
||||
|
||||
<Child a="b">
|
||||
<div slot="foo">foo</div>
|
||||
</Child>
|
||||
@ -1,5 +0,0 @@
|
||||
<script>
|
||||
const props = $props();
|
||||
</script>
|
||||
|
||||
{#if $$slots.foo}{/if}
|
||||
Loading…
Reference in new issue