fix(select-tree): adjust tree node indentation and alignment logic

- Add level prop to track node hierarchy
- Fix indentation calculation for leaves and nodes
- Simplify alignment logic based on node level
This commit is contained in:
Khafid Prayoga
2025-09-16 15:14:37 +07:00
parent b106b1d23e
commit c5ec8ccd32
4 changed files with 18 additions and 12 deletions
@@ -58,6 +58,7 @@ const selectedLabel = computed(() => {
:data="data"
:selected-value="modelValue"
:on-fetch-children="onFetchChildren"
:level="0"
@select="handleSelect"
/>
</CommandGroup>