Encapsulate a paging component based on vue3

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)
insert image description here
:

<template>
  <div class="xtx-pagination">
    <a @click='changePage(false)' href="javascript:;" :

Supongo que te gusta

Origin blog.csdn.net/weixin_48585264/article/details/120545607
Recomendado
Clasificación