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

@opentiny/vue-pager

Package Overview
Dependencies
Maintainers
1
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opentiny/vue-pager - npm Package Compare versions

Comparing version 3.11.0 to 3.12.0

2

lib/index.js

@@ -123,3 +123,3 @@ function _extends() {

});
var version = "3.11.0";
var version = "3.12.0";
Pager.install = function(Vue) {

@@ -126,0 +126,0 @@ Vue.component(Pager.name, Pager);

@@ -206,3 +206,3 @@ function _extends() {

if (Array.isArray(newVal)) {
this.$parent.internalPageSize = newVal.indexOf(this.$parent.pageSize) > -1 ? this.$parent.pageSize : this.pageSizes[0];
this.$parent.internalPageSize = newVal.includes(this.$parent.pageSize) ? this.$parent.pageSize : this.pageSizes[0];
}

@@ -209,0 +209,0 @@ }

@@ -364,7 +364,10 @@ function _extends() {

watch: {
"$parent.internalCurrentPage": function $parentInternalCurrentPage(currentPage) {
var value = String(currentPage);
if (this.value !== value) {
this.value = value;
}
"$parent.internalCurrentPage": {
handler: function handler2(currentPage) {
var value = String(currentPage);
if (this.value !== value) {
this.value = value;
}
},
immediate: true
}

@@ -497,3 +500,3 @@ },

var totalTemplate = createVNode("div", {
"class": ["tiny-pager__group", this.$parent.disabled ? "is-disabled" : ""]
"class": ["tiny-pager__group tiny-pager__pull-left", this.$parent.disabled ? "is-disabled" : ""]
}, [" ", createVNode("div", {

@@ -531,3 +534,3 @@ "class": ["tiny-pager__total", this.$parent.size ? "tiny-pager--" + this.$parent.size : ""]

beforePagerChangeHandler: function beforePagerChangeHandler(params) {
var newPage = params.newPage, currentPage = params.currentPage, callback = params.callback;
var newPage = params.newPage, currentPage = params.currentPage, callback = params.callback, rollback = params.rollback;
var newPageSize = this.internalPageSize;

@@ -540,3 +543,4 @@ var currentPageSize = this.internalPageSize;

currentPageSize,
callback
callback,
rollback
};

@@ -712,3 +716,3 @@ this.$emit("before-page-change", temp);

} else {
layout = "prev, pager, next, jumper, total";
layout = "total, prev, pager, next, jumper";
}

@@ -720,3 +724,3 @@ return layout;

currentPage: {
handler: function handler2(curPage) {
handler: function handler3(curPage) {
this.internalCurrentPage = this.getValidCurrentPage(curPage);

@@ -737,3 +741,3 @@ },

internalCurrentPage: {
handler: function handler3(newVal) {
handler: function handler4(newVal) {
this.$emit("update:currentPage", newVal);

@@ -745,3 +749,3 @@ this.$emit("current-change", newVal);

pageSize: {
handler: function handler4(pageSize) {
handler: function handler5(pageSize) {
this.internalPageSize = isNaN(pageSize) ? 10 : pageSize;

@@ -748,0 +752,0 @@ },

{
"name": "@opentiny/vue-pager",
"version": "3.11.0",
"version": "3.12.0",
"description": "",

@@ -10,7 +10,7 @@ "main": "./lib/index.js",

"dependencies": {
"@opentiny/vue-renderless": "~3.11.0",
"@opentiny/vue-icon": "~3.11.0",
"@opentiny/vue-popover": "~3.11.0",
"@opentiny/vue-locale": "~3.11.0",
"@opentiny/vue-pager-item": "~3.11.0"
"@opentiny/vue-renderless": "~3.12.0",
"@opentiny/vue-icon": "~3.12.0",
"@opentiny/vue-popover": "~3.12.0",
"@opentiny/vue-locale": "~3.12.0",
"@opentiny/vue-pager-item": "~3.12.0"
},

@@ -17,0 +17,0 @@ "license": "MIT",

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