File tree 4 files changed +13
-12
lines changed
4 files changed +13
-12
lines changed Original file line number Diff line number Diff line change 40
40
}: OwnProps & SmuiAttrs <' tbody' , keyof OwnProps > = $props ();
41
41
42
42
let element: HTMLTableSectionElement ;
43
- let rows: SMUIDataTableRowAccessor [] = $state ([]) ;
44
- const rowAccessorMap = $state (
45
- new WeakMap < HTMLTableRowElement , SMUIDataTableRowAccessor >() ,
46
- );
47
-
43
+ let rows: SMUIDataTableRowAccessor [] = [] ;
44
+ const rowAccessorMap = new WeakMap <
45
+ HTMLTableRowElement ,
46
+ SMUIDataTableRowAccessor
47
+ > ();
48
48
setContext (' SMUI:data-table:row:header' , false );
49
49
50
50
setContext (
Original file line number Diff line number Diff line change 30
30
31
31
let element: HTMLTableSectionElement ;
32
32
let checkbox: SMUICheckboxInputAccessor | undefined = $state ();
33
- let cells: SMUIDataTableCellAccessor [] = $state ([]);
34
- const cellAccessorMap = $state .raw (
35
- new WeakMap <HTMLTableCellElement , SMUIDataTableCellAccessor >(),
36
- );
33
+ let cells: SMUIDataTableCellAccessor [] = [];
34
+ const cellAccessorMap = new WeakMap <
35
+ HTMLTableCellElement ,
36
+ SMUIDataTableCellAccessor
37
+ > ();
37
38
38
39
setContext (' SMUI:data-table:row:header' , true );
39
40
Original file line number Diff line number Diff line change 189
189
190
190
let element: ReturnType <SmuiComponent <SmuiElementMap [TagName ]>>;
191
191
let instance: MDCListFoundation | undefined = $state ();
192
- let items: SMUIListItemAccessor [] = $state ([]) ;
192
+ let items: SMUIListItemAccessor [] = [] ;
193
193
let role = getContext <string | undefined >(' SMUI:list:role' );
194
194
const itemAccessorMap = new WeakMap <Element , SMUIListItemAccessor >();
195
195
let selectionDialog = getContext <boolean | undefined >(
Original file line number Diff line number Diff line change 241
241
: ' shortcut' in section
242
242
? section .shortcut
243
243
: undefined }
244
- activated ={section === activeSection }
244
+ activated ={section . route === activeSection ?. route }
245
245
style ={section .indent
246
246
? ' margin-left: ' + section .indent * 25 + ' px;'
247
247
: ' ' }
284
284
285
285
let { children }: { children: Snippet } = $props ();
286
286
287
- const iframe = $page .url .pathname .includes (' /iframe' );
287
+ const iframe = $derived ( $ page .url .pathname .includes (' /iframe' ) );
288
288
289
289
let drawer: Drawer | undefined = $state ();
290
290
let mainContent: HTMLElement | undefined = $state ();
You can’t perform that action at this time.
0 commit comments