@opentiny/vue-pager
Advanced tools
Comparing version 2.18.0 to 2.19.0
@@ -63,2 +63,5 @@ function _extends() { | ||
}, | ||
pageSizeText: { | ||
type: String | ||
}, | ||
pageSizes: { | ||
@@ -126,3 +129,3 @@ type: Array, | ||
}); | ||
var version = "2.18.0"; | ||
var version = "2.19.0"; | ||
Pager.install = function(Vue) { | ||
@@ -129,0 +132,0 @@ Vue.component(Pager.name, Pager); |
import PagerItem from '@opentiny/vue-pager-item'; | ||
import BaseSelect from '@opentiny/vue-base-select'; | ||
import Popover from '@opentiny/vue-popover'; | ||
@@ -65,3 +66,3 @@ import Loading from '@opentiny/vue-loading'; | ||
name: $prefix + "Pager", | ||
props: [].concat(props, ["accurateJumper", "appendToBody", "currentPage", "disabled", "hideOnSinglePage", "isBeforePageChange", "layout", "mode", "nextText", "pageCount", "pageSize", "pageSizes", "pagerCount", "popperAppendToBody", "showTotalLoading", "customTotal", "popperClass", "prevText", "total", "size", "align", "totalFixedLeft"]), | ||
props: [].concat(props, ["accurateJumper", "appendToBody", "currentPage", "disabled", "hideOnSinglePage", "isBeforePageChange", "layout", "mode", "nextText", "pageCount", "pageSize", "pageSizes", "pagerCount", "popperAppendToBody", "showTotalLoading", "customTotal", "popperClass", "prevText", "total", "size", "align", "totalFixedLeft", "pageSizeText"]), | ||
directives: { | ||
@@ -80,2 +81,3 @@ loading: Loading.directive | ||
TinyPopover: Popover, | ||
TinyBaseSelect: BaseSelect, | ||
ChevronLeft: iconChevronLeft(), | ||
@@ -131,3 +133,3 @@ ChevronRight: iconChevronRight(), | ||
} | ||
}), _vm.state.showJumperSufix ? _c("span", { | ||
}), _vm.state.showJumperSuffix ? _c("span", { | ||
staticClass: "tiny-pager__goto-text tiny-pager__goto-text-sufix" | ||
@@ -154,2 +156,24 @@ }, [_vm._v(_vm._s(_vm.t("ui.page.pageClassifier")))]) : _vm._e()])]) : item === "current" ? _c("div", { | ||
} | ||
}) : item === "simplest-pager" ? _c("tiny-base-select", { | ||
key: "simplest-pager" + index, | ||
style: { | ||
width: _vm.state.simplestPagerWidth + "px" | ||
}, | ||
attrs: { | ||
"size": _vm.size, | ||
"disabled": _vm.disabled, | ||
"options": _vm.state.simplestPagerOption, | ||
"popper-class": "tiny-pager__simplest-pager-popover", | ||
"optimization": _vm.state.simplestPagerOption.length > 30 | ||
}, | ||
on: { | ||
"change": _vm.handleCurrentChange | ||
}, | ||
model: { | ||
value: _vm.state.internalCurrentPage, | ||
callback: function callback($$v) { | ||
_vm.$set(_vm.state, "internalCurrentPage", $$v); | ||
}, | ||
expression: "state.internalCurrentPage" | ||
} | ||
}) : item === "next" ? _c("button", { | ||
@@ -188,2 +212,3 @@ key: "next" + index, | ||
fn: function fn() { | ||
var _vm$state$pageSizeTex; | ||
return [_c("div", { | ||
@@ -203,3 +228,3 @@ staticClass: "tiny-pager__popover", | ||
staticClass: "sizes" | ||
}, [_vm._v(_vm._s(_vm.state.internalPageSize))]), _c("span", [_vm._v(_vm._s(_vm.t("ui.page.page")))]), _c("div", { | ||
}, [_vm._v(_vm._s(_vm.state.internalPageSize))]), _c("span", [_vm._v(_vm._s((_vm$state$pageSizeTex = _vm.state.pageSizeText) !== null && _vm$state$pageSizeTex !== void 0 ? _vm$state$pageSizeTex : _vm.t("ui.page.page")))]), _c("div", { | ||
staticClass: "tiny-pager__page-size-btn" | ||
@@ -251,3 +276,7 @@ }, [_c("triangle-down", { | ||
staticClass: "tiny-pager__total-allpage" | ||
}, [_vm._v(" " + _vm._s(_vm.customTotal ? _vm.state.totalText : _vm.state.internalTotal) + " ")]), _c("span", [_vm._v(_vm._s(_vm.t("ui.page.item")))])] : [_c("span", [_vm._v(_vm._s(_vm.t("ui.page.totals")))]), _c("span", [_vm._v(" " + _vm._s(_vm.customTotal ? _vm.state.totalText : _vm.state.internalTotal) + " ")])]], 2)]) : _vm._e()]; | ||
}, [_vm._v(" " + _vm._s(_vm.customTotal ? _vm.state.totalText : _vm.state.internalTotal) + " ")]), _c("span", [_vm._v(_vm._s(_vm.t("ui.page.item")))])] : [_c("span", [_vm._v(_vm._s(_vm.t("ui.page.totals")))]), _c("span", { | ||
class: { | ||
"tiny-pager__total-num": !_vm.customTotal | ||
} | ||
}, [_vm._v(" " + _vm._s(_vm.customTotal ? _vm.state.totalText : _vm.state.internalTotal) + " ")])]], 2)]) : _vm._e()]; | ||
})], 2) : _vm._e(); | ||
@@ -254,0 +283,0 @@ }; |
{ | ||
"name": "@opentiny/vue-pager", | ||
"version": "2.18.0", | ||
"type": "module", | ||
"version": "2.19.0", | ||
"description": "", | ||
"license": "MIT", | ||
"sideEffects": false, | ||
"main": "./lib/index.js", | ||
"module": "./lib/index.js", | ||
"sideEffects": false, | ||
"type": "module", | ||
"dependencies": { | ||
"@opentiny/vue-renderless": "~3.18.0", | ||
"@opentiny/vue-icon": "~2.18.0", | ||
"@opentiny/vue-popover": "~2.18.0", | ||
"@opentiny/vue-pager-item": "~2.18.0", | ||
"@opentiny/vue-loading": "~2.18.0", | ||
"@opentiny/vue-theme": "~3.18.0", | ||
"@opentiny/vue-common": "~2.18.0" | ||
"@opentiny/vue-base-select": "~2.19.0", | ||
"@opentiny/vue-common": "~2.19.0", | ||
"@opentiny/vue-icon": "~2.19.0", | ||
"@opentiny/vue-loading": "~2.19.0", | ||
"@opentiny/vue-pager-item": "~2.19.0", | ||
"@opentiny/vue-popover": "~2.19.0", | ||
"@opentiny/vue-renderless": "~3.19.0", | ||
"@opentiny/vue-theme": "~3.19.0" | ||
}, | ||
"license": "MIT", | ||
"types": "index.d.ts", | ||
@@ -20,0 +21,0 @@ "scripts": { |
@@ -29,2 +29,5 @@ import type { PropType } from 'vue'; | ||
}; | ||
pageSizeText: { | ||
type: StringConstructor; | ||
}; | ||
pageSizes: { | ||
@@ -31,0 +34,0 @@ type: PropType<number[]>; |
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
29804
835
8
+ Added@better-scroll/core@2.5.0(transitive)
+ Added@better-scroll/shared-utils@2.5.1(transitive)
+ Added@opentiny/vue-action-sheet@2.19.0(transitive)
+ Added@opentiny/vue-base-select@2.19.0(transitive)
+ Added@opentiny/vue-button@2.19.0(transitive)
+ Added@opentiny/vue-checkbox@2.19.0(transitive)
+ Added@opentiny/vue-collapse-transition@2.19.0(transitive)
+ Added@opentiny/vue-common@2.19.0(transitive)
+ Added@opentiny/vue-dialog-box@2.19.0(transitive)
+ Added@opentiny/vue-directive@2.19.0(transitive)
+ Added@opentiny/vue-drawer@2.19.1(transitive)
+ Added@opentiny/vue-filter-box@2.19.0(transitive)
+ Added@opentiny/vue-icon@2.19.0(transitive)
+ Added@opentiny/vue-input@2.19.0(transitive)
+ Added@opentiny/vue-loading@2.19.0(transitive)
+ Added@opentiny/vue-locale@2.19.0(transitive)
+ Added@opentiny/vue-option@2.19.0(transitive)
+ Added@opentiny/vue-pager-item@2.19.0(transitive)
+ Added@opentiny/vue-popover@2.19.0(transitive)
+ Added@opentiny/vue-radio@2.19.0(transitive)
+ Added@opentiny/vue-recycle-scroller@2.19.0(transitive)
+ Added@opentiny/vue-renderless@3.19.5(transitive)
+ Added@opentiny/vue-scrollbar@2.19.0(transitive)
+ Added@opentiny/vue-search@2.19.0(transitive)
+ Added@opentiny/vue-select-dropdown@2.19.0(transitive)
+ Added@opentiny/vue-switch@2.19.0(transitive)
+ Added@opentiny/vue-tag@2.19.0(transitive)
+ Added@opentiny/vue-theme@3.19.5(transitive)
+ Added@opentiny/vue-theme-mobile@3.19.0(transitive)
+ Added@opentiny/vue-tooltip@2.19.0(transitive)
+ Added@opentiny/vue-tree@2.19.2(transitive)
- Removed@opentiny/vue-common@2.18.0(transitive)
- Removed@opentiny/vue-icon@2.18.0(transitive)
- Removed@opentiny/vue-loading@2.18.0(transitive)
- Removed@opentiny/vue-locale@2.18.0(transitive)
- Removed@opentiny/vue-pager-item@2.18.0(transitive)
- Removed@opentiny/vue-popover@2.18.0(transitive)
- Removed@opentiny/vue-renderless@3.18.7(transitive)
- Removed@opentiny/vue-theme@3.18.4(transitive)
- Removed@opentiny/vue-theme-mobile@3.18.0(transitive)
Updated@opentiny/vue-common@~2.19.0
Updated@opentiny/vue-icon@~2.19.0
Updated@opentiny/vue-theme@~3.19.0