LoadMore

Note

In LoadMore mode, only Request Method is supported.

We will automatically help you manage the list data. The data structure returned by Service must contain {list: LR[]}. If not, you can specify another key name with listKey or convert it once with formatResult(). Then we can get the requested data list collection through the returned dataList variable, and then use loadMore() to trigger loading more.

In addition, we will pass in the first parameter of the Request Method {data: R, dataList: LR}. You can decide the parameters of the next request based on these parameters.

See more available configurations: LoadMore API

Usage

import { useLoadMore } from 'vue-request';

Example

You can also use it with ant-design-vue. Here we provide a demo, click to viewopen in new window

Last Updated: 6/6/2023, 4:05:10 AM
Contributors: John