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:
@@ -58,6 +58,7 @@ const selectedLabel = computed(() => {
|
||||
:data="data"
|
||||
:selected-value="modelValue"
|
||||
:on-fetch-children="onFetchChildren"
|
||||
:level="0"
|
||||
@select="handleSelect"
|
||||
/>
|
||||
</CommandGroup>
|
||||
|
||||
Reference in New Issue
Block a user