diff --git a/src/lib/common/ui/Node.svelte b/src/lib/common/ui/Node.svelte index 5916703..ce51fa8 100644 --- a/src/lib/common/ui/Node.svelte +++ b/src/lib/common/ui/Node.svelte @@ -2,14 +2,12 @@ import { slide } from 'svelte/transition'; // open — bindable: родитель может раскрыть пункт программно (например, тизером) let { label, icon = undefined, hint = undefined, open = $bindable(false), children } = $props(); - // есть вложенный контент → пункт раскрывающийся, нет → обычная строка const expandable = $derived(children !== undefined); {#if expandable}