@opentiny/vue-pager
Advanced tools
Comparing version 3.11.0 to 3.12.0
@@ -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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
67219
2022
+ Added@opentiny/vue-common@3.12.0(transitive)
+ Added@opentiny/vue-icon@3.12.0(transitive)
+ Added@opentiny/vue-locale@3.12.0(transitive)
+ Added@opentiny/vue-pager-item@3.12.0(transitive)
+ Added@opentiny/vue-popover@3.12.0(transitive)
+ Added@opentiny/vue-renderless@3.12.1(transitive)
+ Added@opentiny/vue-theme@3.12.1(transitive)
+ Added@opentiny/vue-theme-mobile@3.12.0(transitive)
- Removed@opentiny/vue-common@3.11.0(transitive)
- Removed@opentiny/vue-icon@3.11.0(transitive)
- Removed@opentiny/vue-locale@3.11.0(transitive)
- Removed@opentiny/vue-pager-item@3.11.0(transitive)
- Removed@opentiny/vue-popover@3.11.0(transitive)
- Removed@opentiny/vue-renderless@3.11.8(transitive)
- Removed@opentiny/vue-theme@3.11.6(transitive)
- Removed@opentiny/vue-theme-mobile@3.11.1(transitive)
Updated@opentiny/vue-icon@~3.12.0
Updated@opentiny/vue-locale@~3.12.0