el-infinite-scroll

Load more data automatically when users scroll to the bottom of Vue lists.

21|2|Updated Mar 13, 2026
One-click install
npx skills add https://github.com/jiaiyan/element-plus-skills --skill el-infinite-scroll
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: el-infinite-scroll
Source: https://github.com/jiaiyan/element-plus-skills/tree/main/components/el-infinite-scroll
Command: npx skills add https://github.com/jiaiyan/element-plus-skills --skill el-infinite-scroll

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

InfiniteScroll helps load additional data automatically as users approach the end of a list, eliminating manual pagination and keeping interfaces fluid.

Core Features & Use Cases

  • Automatic data loading when the user reaches the bottom of a container or page.
  • Configurable behavior with options like delay, distance, and immediate execution to tune UX.
  • Useful for feeds, lists, and galleries where content is fetched on demand.

Quick Start

Create a list in Vue and attach the v-infinite-scroll directive with a load method to fetch more items.

Frequently Asked Questions about el-infinite-scroll

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement infinite scroll for a list in Vue to load data automatically?

You can implement infinite scroll in Vue by attaching the v-infinite-scroll directive to your list and providing a load method that fetches more items as the user scrolls. This automatically loads data when reaching the bottom to reduce manual pagination.

What is infinite scroll and when should I use it for data loading?

Infinite scroll is a UX mechanism that automatically loads additional data as users approach the end of a list. Use it for feeds, galleries, and pagination-style content in web apps to eliminate manual pagination and keep interfaces fluid.

Can I configure the scroll distance and delay before triggering data loading in Vue?

Yes, you can configure infinite scroll behavior using options like infinite-scroll-distance to set the trigger threshold, infinite-scroll-delay to pause execution, and infinite-scroll-immediate for instant loading when the directive is applied.

How do I stop infinite scroll from loading data when my list has no more items?

You can stop infinite scroll from loading data by binding the infinite-scroll-disabled option to a boolean state in your Vue component. This prevents the directive from triggering further load methods when the data feed is exhausted.

What is the best way to handle dynamic data loading across different Vue components?

The best way to handle dynamic data loading across Vue components is using a directive-based approach like v-infinite-scroll. It enables consistent automatic loading across infinite lists and feeds without requiring complex component-level pagination logic.