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

[Transfer] 穿梭框与Tree一起使用有许多问题 #2943

Open
spacemeowx2 opened this issue Jun 4, 2024 · 2 comments
Open

[Transfer] 穿梭框与Tree一起使用有许多问题 #2943

spacemeowx2 opened this issue Jun 4, 2024 · 2 comments
Labels
💭 discussion we are discussing

Comments

@spacemeowx2
Copy link

tdesign-react 版本

1.7.5

重现链接

https://codesandbox.io/p/sandbox/tdesign-react-demo-tqtp5d?file=%2Fsrc%2Fdemo.jsx

重现步骤

https://tdesign.tencent.com/react/components/transfer?tab=demo#%E4%B8%8E-tree-%E7%BB%93%E5%90%88%E4%BD%BF%E7%94%A8

添加 search={true}, transition={false} 均不能按预期执行。

期望结果

  1. search={true}

预期行为:过滤所有子节点

实际行为:只过滤第一层数据

  1. transition={false}

预期行为:Tree在折叠时瞬间完成

实际行为:Tree在children比较多时(几十个)会明显看到子节点一个个消失

  1. Tree的折叠和展开效率极低,动画很慢

实际结果

上面写过,略

框架版本

React 16.14.0

浏览器版本

Firefox 126.0.1

系统版本

macOS 14.4.1

Node版本

No response

补充说明

No response

Copy link
Contributor

github-actions bot commented Jun 4, 2024

👋 @spacemeowx2,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@HaixingOoO HaixingOoO added the 💭 discussion we are discussing label Jun 21, 2024
@huangchen1031
Copy link
Contributor

defaultValue也只支持第一层数据

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💭 discussion we are discussing
Projects
None yet
Development

No branches or pull requests

3 participants