How to add a paging navigation bar to the page through Element UI

How to add a paging navigation bar to the page through Element UI

need

Add a paging bar, which can jump to the page, select a specific page according to the page number, and set the size of the current page.

Select the Pagination component on the element ui official website

Go to the element ui official website and select a suitable paging component, as shown below:

insert image description here

The code and effect of the paging component in the template of the UserList.vue component

The code of the paging component is as follows:

insert image description here

The effect of the paging component is as follows:

insert image description here

Data and methods involved in the paging component

The data involved in the paging component is as follows:

insert image description here

The methods involved in the paging component are as follows:

insert image description here

test

First enter the homepage, as shown below:

insert image description here

Then change the page size to 2 items/page, as shown below:

insert image description here

Select the 5th page navigation and go to page 5, as shown below:

insert image description here

Jump to the page through the jump input box, as shown below:

insert image description here

insert image description here

This is the end of this article about how to add a paging navigation bar to a page through Element ui. For more relevant Element paging navigation bar content, please search 123WORDPRESS.COM's previous articles or continue to browse the following related articles. I hope everyone will support 123WORDPRESS.COM in the future!

You may also be interested in:
  • How to use vue + element to implement table paging and front-end search
  • Vue+element-ui implements table paging function example
  • Element implements table paging data selection + select all to improve batch operations
  • Implementation of paging problem of vue + element-ui
  • Element UI paging multiple selection, page turning memory example
  • vue+element tabs tab paging effect
  • Detailed explanation of the example code for implementing paging effect with vue+Element-ui
  • Vue+ElementUI table realizes table paging
  • vue+Element-ui front-end realizes paging effect
  • Vue+Element UI+Lumen implements universal table paging function

<<:  Install Windows Server 2019 on VMware Workstation (Graphic Tutorial)

>>:  MySQL multi-instance configuration solution

Recommend

Detailed explanation of Nginx Rewrite usage scenarios and code examples

Nginx Rewrite usage scenarios 1. URL address jump...

How to use Font Awesome 5 in Vue development projects

Table of contents Install Dependencies Configurat...

Vue implements websocket customer service chat function

This article mainly introduces how to implement a...

Detailed steps to delete environment variables in Linux

How to delete environment variables in Linux? Use...

A brief discussion on several ways to pass parameters in react routing

The first parameter passing method is dynamic rou...

Five delay methods for MySQL time blind injection

Five delay methods for MySQL time blind injection...

Perfect solution to Docker Alpine image time zone problem

Recently, when I was using Docker to deploy a Jav...

CSS injection knowledge summary

Modern browsers no longer allow JavaScript to be ...

How to use JS to check if an element is within the viewport

Preface Share two methods to monitor whether an e...

Detailed explanation of the pitfalls of Apache domain name configuration

I have never used apache. After I started working...

Getting Started with Vue 3.0 Custom Directives

Table of contents 1. Custom instructions 1. Regis...