Giter Site home page Giter Site logo

s-pager's Introduction

s-pager项目

一个自定义的分页组件(A custom paging widget)

项目安装

npm install
npm run dev

npm安装使用:s-pager

npm i s-pager

import sPager from 's-pager'

<s-pager ref="pager" 
	:themecolor="themecolor" 
	:current-page.sync="currentpage" 
	:pagesize="pagesize" 
	:total="total" 
	@current-change="gotopage" 
	@prev-click-change="handleprevchange" 
	@next-click-change="handlenextchange" 
/>

Attributes

参数 说明 类型 默认值
prevText 首页按钮显示文字 String '首页'
prevPageText 上一页显示文字 String '上一页'
nextText 末页按钮显示文字 String '末页'
nextPageText 下一页显示文字 String '下一页'
currentPage 当前页 Number 1
pageSize 每页显示个数 Number 10
total 总个数 Number 0
themeColor 主题色值 String '#409eff'

Events

事件名称 说明 回调参数
current-change 用户点击页码后触发 当前页码号
prev-click-change 用户点击上一页按钮改变当前页后触发 当前页码号
next-click-change 用户点击下一页按钮改变当前页后触发 当前页码号

效果图

s-pager.png

s-pager's People

Contributors

shiwewe avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.