You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 18, 2022. It is now read-only.
A directive that is like v-for, but keeps only would-be-seen items in the DOM to improve performance.
One way to achieve it is to wrap items into a container, set container to position: relative;, set items to position: absolute; and calculate item positions. This is how collection-repeat works.
Another way is to replace offscreen elements with empty placeholders of appropriate height. This is how infinity works.
There is also vue-list-view by @CatchLabs, that uses the same approach that ionic collection-repeat does: position: relative on the container, position: absolute on the items and reuse elements instead of destroying/creating them.
A directive that is like
v-for
, but keeps only would-be-seen items in the DOM to improve performance.One way to achieve it is to wrap items into a container, set container to
position: relative;
, set items toposition: absolute;
and calculate item positions. This is howcollection-repeat
works.Another way is to replace offscreen elements with empty placeholders of appropriate height. This is how
infinity
works.References:
The text was updated successfully, but these errors were encountered: