From fb77d95e34f228f24080316d820bee4f0da7eb34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Keviin=20=C3=85berg=20Kultalahti?= Date: Fri, 16 Apr 2021 16:41:04 +0200 Subject: [PATCH] implements working TreeView component --- packages/bbui/src/TreeView/Item.svelte | 18 ++++++++++-------- packages/bbui/src/TreeView/Tree.svelte | 5 +++-- 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/packages/bbui/src/TreeView/Item.svelte b/packages/bbui/src/TreeView/Item.svelte index bc378ecb22..4f2a54fa2e 100644 --- a/packages/bbui/src/TreeView/Item.svelte +++ b/packages/bbui/src/TreeView/Item.svelte @@ -6,8 +6,8 @@
  • - - {#if $$slots.default} + {#if $$slots.default} + @@ -17,16 +17,18 @@ {/if} {title} -
      - -
    - {:else} +
    + + {:else} + {#if icon} {/if} {title} - {/if} - + + {/if}
  • \ No newline at end of file diff --git a/packages/bbui/src/TreeView/Tree.svelte b/packages/bbui/src/TreeView/Tree.svelte index 124ffb46bd..5a4e254732 100644 --- a/packages/bbui/src/TreeView/Tree.svelte +++ b/packages/bbui/src/TreeView/Tree.svelte @@ -2,9 +2,10 @@ import "@spectrum-css/treeview/dist/index-vars.css" export let quiet = false - export let width; + export let standalone = true + export let width = '250px'; -