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

[Feature]: Tree Animation or Allow passing tree node items into TreeVirtualizer? #1561

Open
2 tasks
frankchen211 opened this issue Jan 17, 2025 · 0 comments
Open
2 tasks

Comments

@frankchen211
Copy link

frankchen211 commented Jan 17, 2025

Describe the feature

I’m trying to implement tree expand & collapse animations following the Ant Design Vue's tree method:

NodeList.tsx
MotionTreeNode.tsx
Based on this approach, the tree node items are dynamically computed and passed to the Virtualizer component.

If there’s an easier way to animate tree items, I would appreciate any advice!

I’ve attempted using TransitionGroup, but the result doesn’t match the animation style of Ant Design Tree.

Another question is how to get and watch the changes of flattenItems in TreeRoot?

Additional information

  • I intend to submit a PR for this feature.
  • I have already implemented and/or tested this feature.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant