Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BasicTree异步树无法追加子节点 #3401

Closed
4 tasks
qichangleixin opened this issue Dec 11, 2023 · 2 comments
Closed
4 tasks

BasicTree异步树无法追加子节点 #3401

qichangleixin opened this issue Dec 11, 2023 · 2 comments

Comments

@qichangleixin
Copy link

⚠️ 重要 ⚠️ 在进一步操作之前,请检查下列选项。如果您忽视此模板或者没有提供关键信息,您的 Issue 将直接被关闭

  • 已阅读 文档.
  • 确保您的代码已是最新或者所报告的 Bug 在最新版本中可以重现. (部分 Bug 可能已经在最近的代码中修复)
  • 已在 Issues 中搜索了相关的关键词
  • 不是 ant design vue 组件库的 Bug

描述 Bug

BasicTree异步树无法追加子节点。

复现 Bug

<BasicTree
title="部门列表"
toolbar
search
treeWrapperClassName="h-[calc(100%-35px)] overflow-auto"
:clickRowToExpand="false"
:loading="treeLoading"
:treeData="treeData"
:load-data="onLoadData"
:fieldNames="{ key: 'id', title: 'name', children: 'children' }"
@select="handleSelect"
/>
image
treeNode中已经有子节点,但是treeData.value没有更新子节点
image

系统信息

  • 操作系统: win11
  • Node 版本:18.12.1
  • 包管理器 (npm/yarn/pnpm) 及其版本:8.18.0
@zwtvip
Copy link

zwtvip commented Dec 12, 2023

组件内部的treeData是跟外部隔离的,你可以通过getTreeData()获取添加后的数据

@anncwb
Copy link
Collaborator

anncwb commented Apr 9, 2024

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

@anncwb anncwb added the Stale label Apr 9, 2024
@anncwb anncwb closed this as completed Apr 17, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Aug 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants