Fix Svelte 5 deprecation: Replace <slot /> with {@render children()}

This commit is contained in:
chaos
2026-03-17 00:15:55 +08:00
parent 8a055daf5e
commit 52b4f43f45
3 changed files with 22 additions and 14 deletions

View File

@@ -1,5 +1,6 @@
<script>
import "../app.css";
let { children } = $props();
</script>
<slot />
{@render children()}