mirror of https://github.com/sveltejs/svelte
parent
b352f08e9d
commit
b0e694604b
@ -0,0 +1,5 @@
|
||||
---
|
||||
'svelte': patch
|
||||
---
|
||||
|
||||
feat: add `migration-task` for impossible to migrate slots
|
||||
@ -0,0 +1,39 @@
|
||||
<script>
|
||||
import Comp from "./Component.svelte";
|
||||
</script>
|
||||
|
||||
<Comp>
|
||||
<div slot="cool:stuff">
|
||||
cool
|
||||
</div>
|
||||
</Comp>
|
||||
|
||||
<Comp>
|
||||
<div slot="cool stuff">
|
||||
cool
|
||||
</div>
|
||||
</Comp>
|
||||
|
||||
<Comp>
|
||||
<div slot="stuff">
|
||||
cool
|
||||
</div>
|
||||
</Comp>
|
||||
|
||||
<Comp>
|
||||
<svelte:fragment slot="cool:stuff">
|
||||
cool
|
||||
</svelte:fragment>
|
||||
</Comp>
|
||||
|
||||
<Comp>
|
||||
<svelte:fragment slot="cool stuff">
|
||||
cool
|
||||
</svelte:fragment>
|
||||
</Comp>
|
||||
|
||||
<Comp>
|
||||
<svelte:fragment slot="stuff">
|
||||
cool
|
||||
</svelte:fragment>
|
||||
</Comp>
|
||||
@ -0,0 +1,47 @@
|
||||
<script>
|
||||
import Comp from "./Component.svelte";
|
||||
</script>
|
||||
|
||||
<Comp>
|
||||
<!-- @migration-task: migrate this slot by hand -->
|
||||
<div slot="cool:stuff">
|
||||
cool
|
||||
</div>
|
||||
</Comp>
|
||||
|
||||
<Comp>
|
||||
<!-- @migration-task: migrate this slot by hand -->
|
||||
<div slot="cool stuff">
|
||||
cool
|
||||
</div>
|
||||
</Comp>
|
||||
|
||||
<Comp>
|
||||
{#snippet stuff()}
|
||||
<div >
|
||||
cool
|
||||
</div>
|
||||
{/snippet}
|
||||
</Comp>
|
||||
|
||||
<Comp>
|
||||
<!-- @migration-task: migrate this slot by hand -->
|
||||
<svelte:fragment slot="cool:stuff">
|
||||
cool
|
||||
</svelte:fragment>
|
||||
</Comp>
|
||||
|
||||
<Comp>
|
||||
<!-- @migration-task: migrate this slot by hand -->
|
||||
<svelte:fragment slot="cool stuff">
|
||||
cool
|
||||
</svelte:fragment>
|
||||
</Comp>
|
||||
|
||||
<Comp>
|
||||
{#snippet stuff()}
|
||||
|
||||
cool
|
||||
|
||||
{/snippet}
|
||||
</Comp>
|
||||
Loading…
Reference in new issue