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: 2/11/2022, 8:31:25 AM
Contributors: John