-
-
Notifications
You must be signed in to change notification settings - Fork 7k
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
[Enhancement] Allow disable transition for VDataTable expand row #4764
Comments
Use css for this. Also, I'm not seeing any performance issues in your example. |
@KaelWD , Thanks for replying. Could you help clarify what do you mean by use css for this? In my case for a nested table with 200 rows(maximum 3 levels, 20 columns), use dropdown select to re-grouping the rows takes 500ms to display the transitions. in the code here,
ref: https://gist.github.com/paulirish/5d52fb081b3570c81e3a |
To be clear, single row expand will not be an issue. The bottleneck comes with the for (let i = 0; i < this.items.length; i += 1) {
const item = this.items[i];
this.$set(this.$refs.dTable.expanded, item.name, true)
} |
More information here FYI. Besides vuetify's transition, vue's global update lifecyle method also adds a unconditional getTransitionInfo getComputedStyle hard query for all browser better than IE9 which aggravated the situation here. In short, we can not overburden it by adding transition too much element here. |
This is affecting us too, is there any workaround for time being? |
@pwang2 expand transition has been refactored in 1.3.10, is the issue still valid? |
New codepens with more rows: Seems the new transition is even slower, because it has to reflow the page twice for each element. I wonder if we could batch the reflows with requestAnimationFrame somehow so it only has to be done once for the whole page. |
@jacekkarczmarczyk, sorry for the so late response. I quick checked the code and it seems the performance issue is still there. |
I have same problem. My application have VTable with 100 rows. Even expanding a single row will create some lag. |
@amanbolat This is what I did to get rid of the transition because we didn't really need that effect. Not sure if this is the right solution but it worked for me. |
v-data-table doesn't have transition on expanded row in 2.x, see #8197 |
What problem does this feature solve?
As requested here #2890, expand all is quite helpful to implement some treeview rows.
The current transition of expand rows makes workaround solution like https://codepen.io/anon/pen/aEJeVo perform very slow. I saw 300ms Recalculate Style in performance profiler.
What is your proposed solution?
Expose the transition as an props to opt in by user.
The text was updated successfully, but these errors were encountered: