compote-ui 0.49.3 → 0.49.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
PhMinus,
|
|
13
13
|
PhX
|
|
14
14
|
} from '../../icons';
|
|
15
|
-
import { Button, Field } from '../..';
|
|
15
|
+
import { Button, Field, ScrollArea } from '../..';
|
|
16
16
|
import { SvelteSet } from 'svelte/reactivity';
|
|
17
17
|
|
|
18
18
|
import Icon from '@iconify/svelte';
|
|
@@ -137,13 +137,24 @@
|
|
|
137
137
|
</div>
|
|
138
138
|
</div>
|
|
139
139
|
|
|
140
|
-
<
|
|
141
|
-
<
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
140
|
+
<ScrollArea.Root class="flex-1">
|
|
141
|
+
<ScrollArea.Viewport>
|
|
142
|
+
<ScrollArea.Content class="p-0">
|
|
143
|
+
<TreeView.Tree class="flex flex-col text-sm">
|
|
144
|
+
{#each collection.rootNode.children ?? [] as node, index (node.value)}
|
|
145
|
+
{@render renderNode(node as T, [index])}
|
|
146
|
+
{/each}
|
|
147
|
+
</TreeView.Tree>
|
|
148
|
+
</ScrollArea.Content>
|
|
149
|
+
</ScrollArea.Viewport>
|
|
150
|
+
<ScrollArea.Scrollbar orientation="vertical">
|
|
151
|
+
<ScrollArea.Thumb />
|
|
152
|
+
</ScrollArea.Scrollbar>
|
|
153
|
+
<ScrollArea.Scrollbar orientation="horizontal">
|
|
154
|
+
<ScrollArea.Thumb />
|
|
155
|
+
</ScrollArea.Scrollbar>
|
|
156
|
+
<ScrollArea.Corner />
|
|
157
|
+
</ScrollArea.Root>
|
|
147
158
|
</TreeView.Root>
|
|
148
159
|
|
|
149
160
|
{#snippet nodeCheckbox()}
|