1.0.3 • Published 2 years ago

moon-page v1.0.3

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

moon-page

一个用于分页的组件

  • 可以自定义页码的背景颜色
  • 可以自定义页码的文字颜色
  • 可以自定义页码激活时的颜色
  • 使用方式基本与 element-ui 一样

install

npm install moon-page

import

// main.js
import Page from 'moon-page'
Vue.use(Page)
// 单文件组件模板中使用
<template>
   <moon-page :total="total" :pageSize="pageSize"></moon-page>
</template>

Attriutes

参数说明类型默认值
total总的记录数量number0
pageSize每页希望显示的记录数量number15
bgColor页码背景颜色string#fff
textColor页码文字颜色string#333
activeTextColor激活的页码颜色stringorange

Events

事件名称说明回调函数
current_change点击页码时的回调