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

why my tree renders very slow? #34

Closed
xinyu7git opened this issue Dec 28, 2018 · 3 comments
Closed

why my tree renders very slow? #34

xinyu7git opened this issue Dec 28, 2018 · 3 comments

Comments

@xinyu7git
Copy link

my tree renders very slow. after flush page , it will cost 1-2s to render.
Do you know why?

image

render finish:
image

@David-Desmaisons
Copy link
Owner

  1. Set a fixed height to your component
  2. change the duration property to 0

@xinyu7git
Copy link
Author

xinyu7git commented Dec 29, 2018

  1. Set a fixed height to your component
  2. change the duration property to 0

I have tried, but not work. my codes:
image

@KurosakiRei
Copy link

  1. Set a fixed height to your component
  2. change the duration property to 0

I have tried, but not work. my codes: image

I know my reply is probably too late, but I want to provide a solution for the people who encounter the same issue after. You can try to use the inline-CSS in your "tree" element.
For example, <tree :data="tree" style="height: 100vh">

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

3 participants