Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
monorepo
/
venus
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
1
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 253b0da7
authored
Jul 03, 2025
by
xue-jn
Committed by
GitHub
Jul 03, 2025
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix: 接口返回子节点为空数组时,还会显示折叠箭头 (#6463)
1 parent
33a4d524
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
packages/@core/ui-kit/shadcn-ui/src/ui/tree/tree.vue
packages/@core/ui-kit/shadcn-ui/src/ui/tree/tree.vue
View file @
253b0da
...
...
@@ -287,7 +287,7 @@ defineExpose({
class="tree-node focus:ring-grass8 my-0.5 flex items-center rounded px-2 py-1 outline-none focus:ring-2"
>
<ChevronRight
v-if=
"item.hasChildren"
v-if=
"item.hasChildren
&& Array.isArray(item.value[childrenField]) && item.value[childrenField].length > 0
"
class=
"size-4 cursor-pointer transition"
:class=
"
{ 'rotate-90': isExpanded }"
@click.stop="
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment