fix: tree bugs

This commit is contained in:
xingyu4j
2025-10-09 18:23:35 +08:00
parent f63dc0ecef
commit d2f50c9388
7 changed files with 60 additions and 58 deletions

View File

@@ -135,12 +135,12 @@ function getAllNodeIds(nodes: any[], ids: number[] = []): number[] {
<Form class="mx-6">
<template #menuIds="slotProps">
<Tree
v-loading="menuLoading"
class="max-h-96 overflow-y-auto"
:loading="menuLoading"
:tree-data="menuTree"
multiple
bordered
:expanded="expandedKeys"
:default-expanded-keys="expandedKeys"
v-bind="slotProps"
value-field="id"
label-field="name"