fix TreeView item warning about anchor
This commit is contained in:
parent
47bc197b45
commit
3a9a76763e
|
@ -1,6 +1,7 @@
|
||||||
<script>
|
<script>
|
||||||
export let selected = false
|
export let selected = false
|
||||||
export let open = false
|
export let open = false
|
||||||
|
export let href = false
|
||||||
export let title
|
export let title
|
||||||
export let icon
|
export let icon
|
||||||
</script>
|
</script>
|
||||||
|
@ -10,7 +11,7 @@
|
||||||
class:is-open={open}
|
class:is-open={open}
|
||||||
class="spectrum-TreeView-item"
|
class="spectrum-TreeView-item"
|
||||||
>
|
>
|
||||||
<a on:click class="spectrum-TreeView-itemLink" href="#">
|
<a on:click class="spectrum-TreeView-itemLink" {href}>
|
||||||
{#if $$slots.default}
|
{#if $$slots.default}
|
||||||
<svg
|
<svg
|
||||||
class="spectrum-Icon spectrum-UIIcon-ChevronRight100 spectrum-TreeView-itemIndicator"
|
class="spectrum-Icon spectrum-UIIcon-ChevronRight100 spectrum-TreeView-itemIndicator"
|
||||||
|
|
Loading…
Reference in New Issue