mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 11:36:36 +00:00
test(tree-view): assert updated property type value
This commit is contained in:
parent
57e96c64bf
commit
e407c1a1d9
1 changed files with 3 additions and 2 deletions
|
@ -1,4 +1,5 @@
|
|||
<script lang="ts">
|
||||
import type { ComponentProps } from "svelte";
|
||||
import { TreeView } from "../types";
|
||||
import type { TreeNodeId } from "../types/TreeView/TreeView.svelte";
|
||||
import Analytics from "carbon-icons-svelte/lib/Analytics.svelte";
|
||||
|
@ -7,11 +8,11 @@
|
|||
let activeId: TreeNodeId = "";
|
||||
let selectedIds = [];
|
||||
let expandedIds = [1];
|
||||
let children = [
|
||||
let children: ComponentProps<TreeView>["children"] = [
|
||||
{ id: 0, text: "AI / Machine learning", icon: Analytics },
|
||||
{
|
||||
id: 1,
|
||||
text: "Analytics",
|
||||
text: 0,
|
||||
children: [
|
||||
{
|
||||
id: 2,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue