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 1
1
<script lang =" ts" >
2
+ import ConsoleLine from ' ./ConsoleLine.svelte' ;
2
3
import JSONNode from ' @sveltejs/svelte-json-tree' ;
3
4
import ConsoleTable from ' ./ConsoleTable.svelte' ;
4
5
import type { Log } from ' ./Log.svelte' ;
5
6
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 ();
8
13
9
14
function toggle_group_collapse() {
10
15
log .collapsed = ! log .collapsed ;
182
187
183
188
{#if log .command === ' group' && ! log .collapsed }
184
189
{#each log .logs ?? [] as childLog }
185
- <svelte:self log ={childLog } depth ={depth + 1 } />
190
+ <ConsoleLine log ={childLog } depth ={depth + 1 } />
186
191
{/each }
187
192
{/if }
188
193
You can’t perform that action at this time.
0 commit comments