Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

v-page

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

v-page

A simple pagination bar, based on Vue2.x

  • 1.6.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
424
increased by13.67%
Maintainers
1
Weekly downloads
 
Created
Source

v-page



A simple pagination bar, including length Menu, i18n support, based on Vue2.x

v-page






Demo、Document、Changelog

Explorer on

the jQuery version: bPage

Quick demo: v-page gallery



Vue plugin series

PluginStatusDescription
v-pagenpm versionA simple pagination bar, including length Menu, i18n support
v-dialogsnpm versionA simple and powerful dialog, including Modal, Alert, Mask and Toast modes
v-tablegridnpm versionA simpler to use and practical datatable
v-uploadernpm versionA Vue2 plugin to make files upload simple and easier,
you can drag files or select file in dialog to upload
v-ztreenpm versionA simple tree for Vue2, support single or multiple(check) select tree,
and support server side data
v-gallerynpm versionA Vue2 plugin make browsing images in gallery
v-regionnpm versionA simple region selector, provide Chinese administrative division data



Install

# install dependencies
npm install v-page --save

Include plugin in your main.js file.

import Vue from 'vue'
import vPage from 'v-page';
...

Vue.use(vPage);

Deploy on your component

template code

<template>
  <!-- v-bind 'setting' data to config page bar -->
  <!-- bind event 'page-change' to receive page info change -->
  <v-page :setting="pageSet" @page-change="pageChange"></v-page>
</template>

script code

export default {
  name: 'myComponent',
  data(){
    return {
      pageSet: {
        totalRow: 0,//required option
        language: 'en',//default: 'cn'
        pageSizeMenu: [20,100]//default: [10, 20, 50, 100]
      }
    }
  },
  methods:{
    //receive page info change callback
    pageChange(pInfo){
      console.log(pInfo);//{pageNumber: 1, pageSize: 10}
    }
  }
};

Keywords

FAQs

Package last updated on 08 Jun 2018

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc