Purpose: Encapsulate a unified paging component for easy reuse.
The essence of paging: query data in batches (based on the page number page and the number of pages per page). After receiving the paging parameters, the backend will query the database based on these parameters, and then perform paging based on the database: the code based on the SQL statement (select * from user limit n, m)
:
<template>
<div class="xtx-pagination">
<a @click='changePage(false)' href="javascript:;" :