Pagination

We will automatically help you manage the paging information, such as current page number, number of entries per page, the total number of entries, etc. You only need to use the changeCurrent() and changePageSize() provided by us. Easily manage paged data.

Note: We will inject the parameters required for paging in the first position of the params array.

See more available configurations: Pagination API

Usage

import { usePagination } 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