-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
67 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
test/runtime/samples/component-svelte-slot-nested/Child.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<script> | ||
import Nested from './Nested.svelte'; | ||
</script> | ||
|
||
<Nested> | ||
<svelte:fragment slot="name"> | ||
<slot /> | ||
</svelte:fragment> | ||
</Nested> | ||
|
||
<Nested> | ||
<svelte:fragment slot="name"> | ||
<slot name="b" /> | ||
</svelte:fragment> | ||
</Nested> |
1 change: 1 addition & 0 deletions
1
test/runtime/samples/component-svelte-slot-nested/Nested.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<slot name="name"></slot> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
export default { | ||
html: ` | ||
`, | ||
solo: true, | ||
skip_if_ssr: true, | ||
skip_if_hydrate: true, | ||
}; |
12 changes: 12 additions & 0 deletions
12
test/runtime/samples/component-svelte-slot-nested/main.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<script> | ||
import Child from './Child.svelte'; | ||
</script> | ||
|
||
<Child> | ||
<svelte:fragment> | ||
Default | ||
</svelte:fragment> | ||
<svelte:fragment slot="b"> | ||
<p>B slot</p> | ||
</svelte:fragment> | ||
</Child> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters