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

@opentiny/vue-pager

Package Overview
Dependencies
Maintainers
0
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 2.18.0 to 2.19.0

5

lib/index.js

@@ -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);

37

lib/pc.js
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[]>;

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