File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
packages/repl/src/lib/Output/console Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 11<script lang =" ts" >
2+ import ConsoleLine from ' ./ConsoleLine.svelte' ;
23 import JSONNode from ' @sveltejs/svelte-json-tree' ;
34 import ConsoleTable from ' ./ConsoleTable.svelte' ;
45 import type { Log } from ' ./Log.svelte' ;
56
6- export let log: Log ;
7- export let depth = 0 ;
7+ interface Props {
8+ log: Log ;
9+ depth? : number ;
10+ }
11+
12+ let { log = $bindable (), depth = 0 }: Props = $props ();
813
914 function toggle_group_collapse() {
1015 log .collapsed = ! log .collapsed ;
182187
183188{#if log .command === ' group' && ! log .collapsed }
184189 {#each log .logs ?? [] as childLog }
185- <svelte:self log ={childLog } depth ={depth + 1 } />
190+ <ConsoleLine log ={childLog } depth ={depth + 1 } />
186191 {/each }
187192{/if }
188193
You can’t perform that action at this time.
0 commit comments