Socket
Socket
Sign inDemoInstall

element-pagination

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    element-pagination

A pagination component for Vue.js.


Version published
Weekly downloads
6
increased by500%
Maintainers
1
Install size
96.1 kB
Created
Weekly downloads
 

Readme

Source

element-pagination

A element-pagination component for Vue.js.

Demo

http://element-component.github.io/element-pagination

Installation

npm i element-pagination -D

Usage

import Vue from 'vue'
import ElPagination from 'element-pagination'
import 'element-theme-chalk/dist/pagination.css'

Vue.use(ElPagination)

or

import Vue from 'vue'
import ElPagination from 'element-pagination'

Vue.component('el-pagination', ElPagination)

Attributes

参数说明类型可选值默认值
small是否使用小型分页样式Booleanfalse
page-size每页显示条目个数Number10
total总条目数Number-
page-count总页数,total 和 page-count 设置任意一个就可以达到显示页码的功能;如果要支持 page-sizes 的更改,则需要使用 total 属性Number-
current-page当前页数Number1
layout组件布局,子组件名用逗号分隔Stringsizes, prev, pager, next, jumper, ->, total'prev, pager, next, jumper, ->, total'
page-sizes每页显示个数选择器的选项设置Number[][10, 20, 30, 40, 50, 100]

Events

事件名称说明回调参数
size-changepageSize 改变时会触发每页条数size
current-changecurrentPage 改变时会触发当前页currentPage

Development

make dev

## test
make test

## build
make build

License

MIT

Keywords

FAQs

Last updated on 20 Dec 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc