Too many stutters of table data in sub-components of vue elementui

as shown above, now about 2000 pieces of data are obtained in the background. If table is placed directly on the page, there is no problem, but if you put table into the child component, then the page will be very stuttered if you introduce a child component with 2000 pieces of data table in the parent component. Do you have any good ideas?

Jun.30,2022
After receiving 2000 pieces of data, the

subcomponent writes a static page and lets the table render one part at a time.
or if you want to render all 2000 entries, divide the data into several renderings, such as rendering 500items at a time. If you haven't tried, it's just an idea.


you can optimize
1 from two aspects. In terms of server interface, remove the unwanted interface fields and retain the desired rendering.
2. Page rendering data is paged and loaded with the paging component that comes with element-ui. During loading, v-loading is used to create a loading effect to reduce blank stutters while users are waiting


https://github.com/livelyPeng... perfectly solves the stutter problem of 10,000-level data rendering. Smooth rendering of 10,000-level data does not affect the original function of element el-table

Menu