Tencent / Tencent/tdesign-react

[Tree] 希望树节点可以控制异步加载load方法的触发时机

Open
#2,740 2 comments 0 reactions 1 assignee View on GitHub

@uyarn is already working on this.

Since Feb 1, 2024.

💪🏻 enhancement
Dominant language
TypeScript
Stars
965
Forks
373
Avg merge
3d 6h
Merged PRs (30d)
17

Description

这个功能解决了什么问题

目前的Tree组件的异步加载,点击展开只会触发一次load方法,获取了一次数据后就不再触发了。
由于业务设计为每次节点展开实时拉取对应数据,希望Tree组件增加配置可以让每次点击触发加载事件。

你建议的方案是什么

建议Tree组件增加相关配置,可以让开发者通过参数决定load事件的触发时机

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.