v-page 2.0.6 → 2.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack:///webpack/universalModuleDefinition","webpack:///v-page.js","webpack:///webpack/bootstrap 28704fca4de36e49dc5c","webpack:///src/Page.vue","webpack:///./src/index.js","webpack:///./src/Page.vue","webpack:///./node_modules/_vue-loader@13.7.1@vue-loader/lib/component-normalizer.js","webpack:///./src/language.js","webpack:///./src/page.scss?8f48","webpack:///./src/page.scss","webpack:///./node_modules/_css-loader@0.28.11@css-loader/lib/css-base.js","webpack:///./node_modules/_vue-style-loader@3.1.2@vue-style-loader/lib/addStylesClient.js","webpack:///./node_modules/_vue-style-loader@3.1.2@vue-style-loader/lib/listToStyles.js","webpack:///./src/Page.vue?2b58"],"names":["root","factory","exports","module","define","amd","self","this","modules","__webpack_require__","moduleId","installedModules","i","l","call","m","c","d","name","getter","o","Object","defineProperty","configurable","enumerable","get","n","__esModule","object","property","prototype","hasOwnProperty","p","s","__webpack_exports__","__WEBPACK_IMPORTED_MODULE_0__language__","__WEBPACK_IMPORTED_MODULE_1__page_scss__","props","totalRow","type","Number","default","pageSizeMenu","Boolean","Array","language","String","align","disabled","border","info","pageNumber","first","last","data","pageSize","totalPage","currentPage","pageNumberSize","i18n","computed","pageNumbers","start","end","nums","half","Math","floor","push","pageInfo","replace","classes","v-pagination--no-border","v-pagination--right","v-pagination--center","watch","calcTotalPage","methods","goPage","pNum","num","change","reload","$emit","ceil","position","target","switchPage","switchLength","mounted","value","__WEBPACK_IMPORTED_MODULE_0__Page__","Plugin","install","Vue","options","arguments","length","undefined","keys","component","__WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_13_7_1_vue_loader_lib_selector_type_script_index_0_Page_vue__","__WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_13_7_1_vue_loader_lib_template_compiler_index_id_data_v_19543066_hasScoped_false_buble_transforms_node_modules_vue_loader_13_7_1_vue_loader_lib_selector_type_template_index_0_Page_vue__","normalizeComponent","Component","rawScriptExports","compiledTemplate","functionalTemplate","injectStyles","scopeId","moduleIdentifier","esModule","scriptExports","render","staticRenderFns","_compiled","functional","_scopeId","hook","context","$vnode","ssrContext","parent","__VUE_SSR_CONTEXT__","_registeredComponents","add","_ssrRegister","existing","beforeCreate","_injectStyles","h","concat","languages","cn","pageLength","previous","next","en","jp","content","locals","cssWithMappingToString","item","useSourceMap","cssMapping","btoa","sourceMapping","toComment","sources","map","source","sourceRoot","join","sourceMap","unescape","encodeURIComponent","JSON","stringify","list","toString","mediaQuery","alreadyImportedModules","id","addStylesToDom","styles","domStyle","stylesInDom","refs","j","parts","addStyle","createStyleElement","styleElement","document","createElement","head","appendChild","obj","update","remove","querySelector","ssrIdKey","isProduction","noop","parentNode","removeChild","isOldIE","styleIndex","singletonCounter","singletonElement","applyToSingletonTag","bind","applyToTag","newObj","css","media","index","styleSheet","cssText","replaceText","cssNode","createTextNode","childNodes","insertBefore","setAttribute","ssrId","firstChild","hasDocument","DEBUG","Error","listToStyles","getElementsByTagName","navigator","test","userAgent","toLowerCase","parentId","_isProduction","_options","newList","mayRemove","textStore","replacement","filter","newStyles","part","_vm","_h","$createElement","_c","_self","staticClass","class","_v","_s","directives","rawName","expression","attrs","on","$event","$$selectedVal","selected","_value","multiple","_l","len","key","_e","domProps","textContent","href","click","active","esExports"],"mappings":"CAAA,SAAAA,EAAAC,GACA,gBAAAC,UAAA,gBAAAC,QACAA,OAAAD,QAAAD,IACA,kBAAAG,gBAAAC,IACAD,OAAA,WAAAH,GACA,gBAAAC,SACAA,QAAA,MAAAD,IAEAD,EAAA,MAAAC,KACC,mBAAAK,WAAAC,KAAA,WACD,MCAgB,UAAUC,GCN1B,QAAAC,GAAAC,GAGA,GAAAC,EAAAD,GACA,MAAAC,GAAAD,GAAAR,OAGA,IAAAC,GAAAQ,EAAAD,IACAE,EAAAF,EACAG,GAAA,EACAX,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,WAAA,kBAAoC2I,EAAAO,GAAA,KAAAP,EAAA,WAAAA,EAAAmB,GAAAnB,EAAA,qBAAAlJ,EAAAoH,GAA8E,MAAAiC,GAAA,MAAgBkB,IAAAnD,EAAAoC,OAAiBqB,OAAA7K,IAAAkJ,EAAAzK,YAAAT,SAAAkL,EAAAlL,UAAAgC,IAAAkJ,EAAAzK,eAAiF4K,EAAA,KAAUS,OAAOa,KAAA,uBAA6BF,UAAWC,YAAAxB,EAAAQ,GAAA1J,IAA0B+J,IAAKa,MAAA,SAAAZ,GAAyB,MAAAd,GAAA3I,WAAAP,WAAiCkJ,EAAAsB,KAAAtB,EAAAO,GAAA,KAAAJ,EAAA,MAAgCG,OAAOxL,SAAAkL,EAAAzK,cAAAyK,EAAA1K,WAAA0K,EAAAlL,YAA0DqL,EAAA,KAAUS,OAAOa,KAAA,uBAA6BF,UAAWC,YAAAxB,EAAAQ,GAAAR,EAAAvK,KAAA6E,OAAoCuG,IAAKa,MAAA,SAAAZ,GAAyB,MAAAd,GAAA3I,WAAA,cAAgC2I,EAAAO,GAAA,KAAAP,EAAA,KAAAG,EAAA,MAAoCG,OAAOxL,SAAAkL,EAAAzK,cAAAyK,EAAA1K,WAAA0K,EAAAlL,YAA0DqL,EAAA,KAAUS,OAAOa,KAAA,uBAA6BF,UAAWC,YAAAxB,EAAAQ,GAAAR,EAAAvK,KAAAN,OAAoC0L,IAAKa,MAAA,SAAAZ,GAAyB,MAAAd,GAAA3I,WAAA,cAAgC2I,EAAAsB,MAAA,MAC3wEtI,KACA4I,GAAiB7I,SAAAC,kBACjBhF,GAAA","file":"v-page.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"vPage\", [], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"vPage\"] = factory();\n\telse\n\t\troot[\"vPage\"] = factory();\n})(typeof self !== 'undefined' ? self : this, function() {\nreturn \n\n\n// WEBPACK FOOTER //\n// webpack/universalModuleDefinition","(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"vPage\", [], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"vPage\"] = factory();\n\telse\n\t\troot[\"vPage\"] = factory();\n})(typeof self !== 'undefined' ? self : this, function() {\nreturn /******/ (function(modules) { // webpackBootstrap\n/******/ \t// The module cache\n/******/ \tvar installedModules = {};\n/******/\n/******/ \t// The require function\n/******/ \tfunction __webpack_require__(moduleId) {\n/******/\n/******/ \t\t// Check if module is in cache\n/******/ \t\tif(installedModules[moduleId]) {\n/******/ \t\t\treturn installedModules[moduleId].exports;\n/******/ \t\t}\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = installedModules[moduleId] = {\n/******/ \t\t\ti: moduleId,\n/******/ \t\t\tl: false,\n/******/ \t\t\texports: {}\n/******/ \t\t};\n/******/\n/******/ \t\t// Execute the module function\n/******/ \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n/******/\n/******/ \t\t// Flag the module as loaded\n/******/ \t\tmodule.l = true;\n/******/\n/******/ \t\t// Return the exports of the module\n/******/ \t\treturn module.exports;\n/******/ \t}\n/******/\n/******/\n/******/ \t// expose the modules object (__webpack_modules__)\n/******/ \t__webpack_require__.m = modules;\n/******/\n/******/ \t// expose the module cache\n/******/ \t__webpack_require__.c = installedModules;\n/******/\n/******/ \t// define getter function for harmony exports\n/******/ \t__webpack_require__.d = function(exports, name, getter) {\n/******/ \t\tif(!__webpack_require__.o(exports, name)) {\n/******/ \t\t\tObject.defineProperty(exports, name, {\n/******/ \t\t\t\tconfigurable: false,\n/******/ \t\t\t\tenumerable: true,\n/******/ \t\t\t\tget: getter\n/******/ \t\t\t});\n/******/ \t\t}\n/******/ \t};\n/******/\n/******/ \t// getDefaultExport function for compatibility with non-harmony modules\n/******/ \t__webpack_require__.n = function(module) {\n/******/ \t\tvar getter = module && module.__esModule ?\n/******/ \t\t\tfunction getDefault() { return module['default']; } :\n/******/ \t\t\tfunction getModuleExports() { return module; };\n/******/ \t\t__webpack_require__.d(getter, 'a', getter);\n/******/ \t\treturn getter;\n/******/ \t};\n/******/\n/******/ \t// Object.prototype.hasOwnProperty.call\n/******/ \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n/******/\n/******/ \t// __webpack_public_path__\n/******/ \t__webpack_require__.p = \"/dist/\";\n/******/\n/******/ \t// Load entry module and return exports\n/******/ \treturn __webpack_require__(__webpack_require__.s = 1);\n/******/ })\n/************************************************************************/\n/******/ ([\n/* 0 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__language__ = __webpack_require__(4);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__page_scss__ = __webpack_require__(5);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__page_scss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__page_scss__);\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\n\nvar FIRST = 1;\n\n/* harmony default export */ __webpack_exports__[\"a\"] = ({\n name: \"v-page\",\n props: {\n totalRow: {\n type: Number,\n default: 0\n },\n pageSizeMenu: {\n type: [Boolean, Array],\n default: function _default() {\n return [10, 20, 50, 100];\n }\n },\n language: {\n type: String,\n default: 'cn'\n },\n align: {\n type: String,\n default: 'right'\n },\n disabled: {\n type: Boolean,\n default: false\n },\n border: {\n type: Boolean,\n default: true\n },\n info: {\n type: Boolean,\n default: true\n },\n pageNumber: {\n type: Boolean,\n default: true\n },\n first: {\n type: Boolean,\n default: true\n },\n last: {\n type: Boolean,\n default: true\n }\n },\n data: function data() {\n return {\n pageSize: this.pageSizeMenu === false ? 10 : this.pageSizeMenu[0],\n totalPage: 0,\n currentPage: 0,\n pageNumberSize: 5,\n i18n: __WEBPACK_IMPORTED_MODULE_0__language__[\"a\" /* default */][this.language] || __WEBPACK_IMPORTED_MODULE_0__language__[\"a\" /* default */]['cn']\n };\n },\n\n computed: {\n pageNumbers: function pageNumbers() {\n var start = 1,\n end = void 0,\n nums = [],\n half = Math.floor(this.pageNumberSize / 2);\n if (this.totalPage < this.pageNumberSize) end = this.totalPage;else if (this.currentPage <= half) end = this.pageNumberSize;else if (this.currentPage >= this.totalPage - half) {\n start = this.totalPage - this.pageNumberSize + 1;\n end = this.totalPage;\n } else {\n start = this.currentPage - half;\n end = start + this.pageNumberSize - 1;\n }\n\n for (var i = start; i <= end; i++) {\n nums.push(i);\n }\n return nums;\n },\n pageInfo: function pageInfo() {\n return this.i18n.pageInfo.replace('#pageNumber#', this.currentPage).replace('#totalPage#', this.totalPage).replace('#totalRow#', this.totalRow);\n },\n classes: function classes() {\n return {\n 'v-pagination--no-border': !this.border,\n 'v-pagination--right': this.align === 'right',\n 'v-pagination--center': this.align === 'center'\n };\n }\n },\n watch: {\n totalRow: function totalRow() {\n this.calcTotalPage();\n }\n },\n methods: {\n goPage: function goPage(pNum) {\n if (typeof pNum !== 'number') return;\n var num = FIRST;\n if (pNum > num) num = pNum;\n if (pNum > this.totalPage && this.totalPage > 0) num = this.totalPage;\n\n if (num === this.currentPage) return;\n this.currentPage = num;\n this.change();\n this.calcTotalPage();\n },\n reload: function reload() {\n this.change();\n },\n change: function change() {\n this.$emit('page-change', {\n pageNumber: this.currentPage,\n pageSize: Number(this.pageSize)\n });\n },\n calcTotalPage: function calcTotalPage() {\n this.totalPage = Math.ceil(this.totalRow / this.pageSize);\n },\n position: function position(target) {\n if (typeof target === 'string') {\n switch (target) {\n case 'first':\n return FIRST;\n case 'previous':\n return this.currentPage - 1;\n case 'next':\n return this.currentPage + 1;\n case 'last':\n return this.totalPage;\n }\n } else if (typeof target === 'number') return target;\n },\n switchPage: function switchPage(target) {\n if (this.disabled) return;\n this.goPage(this.position(target));\n },\n switchLength: function switchLength() {\n this.goPage(FIRST);\n }\n },\n mounted: function mounted() {\n this.goPage(FIRST);\n }\n});\n\n/***/ }),\n/* 1 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\nObject.defineProperty(__webpack_exports__, \"__esModule\", { value: true });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Page__ = __webpack_require__(2);\n/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, \"vPage\", function() { return __WEBPACK_IMPORTED_MODULE_0__Page__[\"a\"]; });\n\n\nvar Plugin = {\n install: function install(Vue) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n if (Object.keys(options).length) {\n if (options.language) __WEBPACK_IMPORTED_MODULE_0__Page__[\"a\" /* default */].props.language.default = options.language;\n if (options.align) __WEBPACK_IMPORTED_MODULE_0__Page__[\"a\" /* default */].props.align.default = options.align;\n if (typeof options.info === 'boolean') __WEBPACK_IMPORTED_MODULE_0__Page__[\"a\" /* default */].props.info.default = options.info;\n if (typeof options.border === 'boolean') __WEBPACK_IMPORTED_MODULE_0__Page__[\"a\" /* default */].props.border.default = options.border;\n if (typeof options.pageNumber === 'boolean') __WEBPACK_IMPORTED_MODULE_0__Page__[\"a\" /* default */].props.pageNumber.default = options.pageNumber;\n if (typeof options.first === 'boolean') __WEBPACK_IMPORTED_MODULE_0__Page__[\"a\" /* default */].props.first.default = options.first;\n if (typeof options.last === 'boolean') __WEBPACK_IMPORTED_MODULE_0__Page__[\"a\" /* default */].props.last.default = options.last;\n if (typeof options.pageSizeMenu !== 'undefined') __WEBPACK_IMPORTED_MODULE_0__Page__[\"a\" /* default */].props.pageSizeMenu.default = options.pageSizeMenu;\n }\n Vue.component(__WEBPACK_IMPORTED_MODULE_0__Page__[\"a\" /* default */].name, __WEBPACK_IMPORTED_MODULE_0__Page__[\"a\" /* default */]);\n }\n};\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (Plugin);\n\n/***/ }),\n/* 2 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_13_7_1_vue_loader_lib_selector_type_script_index_0_Page_vue__ = __webpack_require__(0);\n/* unused harmony namespace reexport */\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_13_7_1_vue_loader_lib_template_compiler_index_id_data_v_19543066_hasScoped_false_buble_transforms_node_modules_vue_loader_13_7_1_vue_loader_lib_selector_type_template_index_0_Page_vue__ = __webpack_require__(10);\nvar normalizeComponent = __webpack_require__(3)\n/* script */\n\n\n/* template */\n\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = null\n/* scopeId */\nvar __vue_scopeId__ = null\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_13_7_1_vue_loader_lib_selector_type_script_index_0_Page_vue__[\"a\" /* default */],\n __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_13_7_1_vue_loader_lib_template_compiler_index_id_data_v_19543066_hasScoped_false_buble_transforms_node_modules_vue_loader_13_7_1_vue_loader_lib_selector_type_template_index_0_Page_vue__[\"a\" /* default */],\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\n/* harmony default export */ __webpack_exports__[\"a\"] = (Component.exports);\n\n\n/***/ }),\n/* 3 */\n/***/ (function(module, exports) {\n\n/* globals __VUE_SSR_CONTEXT__ */\n\n// IMPORTANT: Do NOT use ES2015 features in this file.\n// This module is a runtime utility for cleaner component module output and will\n// be included in the final webpack user bundle.\n\nmodule.exports = function normalizeComponent (\n rawScriptExports,\n compiledTemplate,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier /* server only */\n) {\n var esModule\n var scriptExports = rawScriptExports = rawScriptExports || {}\n\n // ES6 modules interop\n var type = typeof rawScriptExports.default\n if (type === 'object' || type === 'function') {\n esModule = rawScriptExports\n scriptExports = rawScriptExports.default\n }\n\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // render functions\n if (compiledTemplate) {\n options.render = compiledTemplate.render\n options.staticRenderFns = compiledTemplate.staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = injectStyles\n }\n\n if (hook) {\n var functional = options.functional\n var existing = functional\n ? options.render\n : options.beforeCreate\n\n if (!functional) {\n // inject component registration as beforeCreate hook\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n } else {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return existing(h, context)\n }\n }\n }\n\n return {\n esModule: esModule,\n exports: scriptExports,\n options: options\n }\n}\n\n\n/***/ }),\n/* 4 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\nvar languages = {\n cn: {\n pageLength: '每页记录数 ',\n pageInfo: '\\u5F53\\u524D\\u663E\\u793A\\u7B2C #pageNumber# / #totalPage# \\u9875\\uFF08\\u5171#totalRow#\\u6761\\u8BB0\\u5F55\\uFF09',\n first: '首页',\n previous: '«',\n next: '»',\n last: '尾页'\n },\n en: {\n pageLength: 'Page length ',\n pageInfo: 'Current #pageNumber# / #totalPage# (total #totalRow# records)',\n first: 'First',\n previous: '«',\n next: '»',\n last: 'Last'\n },\n jp: {\n pageLength: 'ページごとの記録数',\n pageInfo: '現在の第 #pageNumber# / #totalPage# ページ(全部で #totalRow# 条の記録)',\n first: 'トップページ',\n previous: '«',\n next: '»',\n last: '尾のページ'\n }\n};\n\n/* harmony default export */ __webpack_exports__[\"a\"] = (languages);\n\n/***/ }),\n/* 5 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = __webpack_require__(6);\nif(typeof content === 'string') content = [[module.i, content, '']];\nif(content.locals) module.exports = content.locals;\n// add the styles to the DOM\nvar update = __webpack_require__(8)(\"2dbe92cf\", content, true, {});\n\n/***/ }),\n/* 6 */\n/***/ (function(module, exports, __webpack_require__) {\n\nexports = module.exports = __webpack_require__(7)(false);\n// imports\n\n\n// module\nexports.push([module.i, \"div.v-pagination{margin:0;display:block}div.v-pagination.v-pagination--right{text-align:right}div.v-pagination.v-pagination--center{text-align:center}div.v-pagination>ul{display:inline-block;list-style:none;margin:0;padding:0;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;-webkit-box-shadow:0 1px 2px rgba(0,0,0,.05);-moz-box-shadow:0 1px 2px rgba(0,0,0,.05);box-shadow:0 1px 2px rgba(0,0,0,.05)}div.v-pagination>ul>li{text-align:center;margin:0;display:inline}div.v-pagination>ul>li>a{margin:0 0 0 -1px;position:relative;border:1px solid #dee2e6;padding:6px 12px;line-height:1.4;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;background-color:#fff;font-size:14px;display:inline-block;float:left;text-decoration:none;color:#333;-webkit-transition:all .5s cubic-bezier(.175,.885,.32,1);transition:all .5s cubic-bezier(.175,.885,.32,1)}div.v-pagination>ul>li>a:hover{z-index:2;-webkit-box-shadow:0 0 8px rgba(0,0,0,.2);-moz-box-shadow:0 0 8px rgba(0,0,0,.2);box-shadow:0 0 8px rgba(0,0,0,.2)}div.v-pagination>ul>li.disabled>a,div.v-pagination>ul>li.v-pagination__info>a,div.v-pagination>ul>li.v-pagination__list>a{color:#999;cursor:default}div.v-pagination>ul>li.disabled>a:hover,div.v-pagination>ul>li.v-pagination__info>a:hover,div.v-pagination>ul>li.v-pagination__list>a:hover{color:#999;background-color:#fff;box-shadow:none}div.v-pagination>ul>li.active>a,div.v-pagination>ul>li.active>span{cursor:default;color:#999;background-color:#eee}div.v-pagination>ul>li.active>a:hover,div.v-pagination>ul>li.active>span:hover{box-shadow:none}div.v-pagination>ul>li:first-child>a,div.v-pagination>ul>li:first-child>span{border-left-width:1px;border-bottom-left-radius:2px;border-top-left-radius:2px;-webkit-border-bottom-left-radius:2px;-webkit-border-top-left-radius:2px;-moz-border-radius-bottomleft:2px;-moz-border-radius-topleft:2px}div.v-pagination>ul>li:last-child>a,div.v-pagination>ul>li:last-child>span{border-top-right-radius:2px;border-bottom-right-radius:2px;-webkit-border-bottom-right-radius:2px;-webkit-border-top-right-radius:2px;-moz-border-radius-bottomright:2px;-moz-border-radius-topright:2px}div.v-pagination>ul>li.v-pagination__list select{margin-left:5px;width:auto!important;font-size:12px;padding:0;display:inline-block;border:1px solid #ccc;color:#333;outline:0}div.v-pagination>ul>li.v-pagination__list select:hover{-webkit-box-shadow:0 0 3px rgba(0,0,0,.2);-moz-box-shadow:0 0 3px rgba(0,0,0,.2);box-shadow:0 0 3px rgba(0,0,0,.2)}div.v-pagination>ul>li.v-pagination__list select[disabled]{color:#999}div.v-pagination.v-pagination--no-border>ul{box-shadow:none}div.v-pagination.v-pagination--no-border>ul>li:not(.active):not(.disabled):not(.v-pagination__info):not(.v-pagination__list) a:hover{box-shadow:none;z-index:auto;background-color:#ddd}div.v-pagination.v-pagination--no-border>ul>li.active a{background-color:#f5f5f5;color:#aaa}div.v-pagination.v-pagination--no-border>ul>li>a{border:0}div.v-pagination.v-pagination--no-border>ul>li>a:hover{z-index:auto}\", \"\"]);\n\n// exports\n\n\n/***/ }),\n/* 7 */\n/***/ (function(module, exports) {\n\n/*\n\tMIT License http://www.opensource.org/licenses/mit-license.php\n\tAuthor Tobias Koppers @sokra\n*/\n// css base code, injected by the css-loader\nmodule.exports = function(useSourceMap) {\n\tvar list = [];\n\n\t// return the list of modules as css string\n\tlist.toString = function toString() {\n\t\treturn this.map(function (item) {\n\t\t\tvar content = cssWithMappingToString(item, useSourceMap);\n\t\t\tif(item[2]) {\n\t\t\t\treturn \"@media \" + item[2] + \"{\" + content + \"}\";\n\t\t\t} else {\n\t\t\t\treturn content;\n\t\t\t}\n\t\t}).join(\"\");\n\t};\n\n\t// import a list of modules into the list\n\tlist.i = function(modules, mediaQuery) {\n\t\tif(typeof modules === \"string\")\n\t\t\tmodules = [[null, modules, \"\"]];\n\t\tvar alreadyImportedModules = {};\n\t\tfor(var i = 0; i < this.length; i++) {\n\t\t\tvar id = this[i][0];\n\t\t\tif(typeof id === \"number\")\n\t\t\t\talreadyImportedModules[id] = true;\n\t\t}\n\t\tfor(i = 0; i < modules.length; i++) {\n\t\t\tvar item = modules[i];\n\t\t\t// skip already imported module\n\t\t\t// this implementation is not 100% perfect for weird media query combinations\n\t\t\t// when a module is imported multiple times with different media queries.\n\t\t\t// I hope this will never occur (Hey this way we have smaller bundles)\n\t\t\tif(typeof item[0] !== \"number\" || !alreadyImportedModules[item[0]]) {\n\t\t\t\tif(mediaQuery && !item[2]) {\n\t\t\t\t\titem[2] = mediaQuery;\n\t\t\t\t} else if(mediaQuery) {\n\t\t\t\t\titem[2] = \"(\" + item[2] + \") and (\" + mediaQuery + \")\";\n\t\t\t\t}\n\t\t\t\tlist.push(item);\n\t\t\t}\n\t\t}\n\t};\n\treturn list;\n};\n\nfunction cssWithMappingToString(item, useSourceMap) {\n\tvar content = item[1] || '';\n\tvar cssMapping = item[3];\n\tif (!cssMapping) {\n\t\treturn content;\n\t}\n\n\tif (useSourceMap && typeof btoa === 'function') {\n\t\tvar sourceMapping = toComment(cssMapping);\n\t\tvar sourceURLs = cssMapping.sources.map(function (source) {\n\t\t\treturn '/*# sourceURL=' + cssMapping.sourceRoot + source + ' */'\n\t\t});\n\n\t\treturn [content].concat(sourceURLs).concat([sourceMapping]).join('\\n');\n\t}\n\n\treturn [content].join('\\n');\n}\n\n// Adapted from convert-source-map (MIT)\nfunction toComment(sourceMap) {\n\t// eslint-disable-next-line no-undef\n\tvar base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))));\n\tvar data = 'sourceMappingURL=data:application/json;charset=utf-8;base64,' + base64;\n\n\treturn '/*# ' + data + ' */';\n}\n\n\n/***/ }),\n/* 8 */\n/***/ (function(module, exports, __webpack_require__) {\n\n/*\n MIT License http://www.opensource.org/licenses/mit-license.php\n Author Tobias Koppers @sokra\n Modified by Evan You @yyx990803\n*/\n\nvar hasDocument = typeof document !== 'undefined'\n\nif (typeof DEBUG !== 'undefined' && DEBUG) {\n if (!hasDocument) {\n throw new Error(\n 'vue-style-loader cannot be used in a non-browser environment. ' +\n \"Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.\"\n ) }\n}\n\nvar listToStyles = __webpack_require__(9)\n\n/*\ntype StyleObject = {\n id: number;\n parts: Array<StyleObjectPart>\n}\n\ntype StyleObjectPart = {\n css: string;\n media: string;\n sourceMap: ?string\n}\n*/\n\nvar stylesInDom = {/*\n [id: number]: {\n id: number,\n refs: number,\n parts: Array<(obj?: StyleObjectPart) => void>\n }\n*/}\n\nvar head = hasDocument && (document.head || document.getElementsByTagName('head')[0])\nvar singletonElement = null\nvar singletonCounter = 0\nvar isProduction = false\nvar noop = function () {}\nvar options = null\nvar ssrIdKey = 'data-vue-ssr-id'\n\n// Force single-tag solution on IE6-9, which has a hard limit on the # of <style>\n// tags it will allow on a page\nvar isOldIE = typeof navigator !== 'undefined' && /msie [6-9]\\b/.test(navigator.userAgent.toLowerCase())\n\nmodule.exports = function (parentId, list, _isProduction, _options) {\n isProduction = _isProduction\n\n options = _options || {}\n\n var styles = listToStyles(parentId, list)\n addStylesToDom(styles)\n\n return function update (newList) {\n var mayRemove = []\n for (var i = 0; i < styles.length; i++) {\n var item = styles[i]\n var domStyle = stylesInDom[item.id]\n domStyle.refs--\n mayRemove.push(domStyle)\n }\n if (newList) {\n styles = listToStyles(parentId, newList)\n addStylesToDom(styles)\n } else {\n styles = []\n }\n for (var i = 0; i < mayRemove.length; i++) {\n var domStyle = mayRemove[i]\n if (domStyle.refs === 0) {\n for (var j = 0; j < domStyle.parts.length; j++) {\n domStyle.parts[j]()\n }\n delete stylesInDom[domStyle.id]\n }\n }\n }\n}\n\nfunction addStylesToDom (styles /* Array<StyleObject> */) {\n for (var i = 0; i < styles.length; i++) {\n var item = styles[i]\n var domStyle = stylesInDom[item.id]\n if (domStyle) {\n domStyle.refs++\n for (var j = 0; j < domStyle.parts.length; j++) {\n domStyle.parts[j](item.parts[j])\n }\n for (; j < item.parts.length; j++) {\n domStyle.parts.push(addStyle(item.parts[j]))\n }\n if (domStyle.parts.length > item.parts.length) {\n domStyle.parts.length = item.parts.length\n }\n } else {\n var parts = []\n for (var j = 0; j < item.parts.length; j++) {\n parts.push(addStyle(item.parts[j]))\n }\n stylesInDom[item.id] = { id: item.id, refs: 1, parts: parts }\n }\n }\n}\n\nfunction createStyleElement () {\n var styleElement = document.createElement('style')\n styleElement.type = 'text/css'\n head.appendChild(styleElement)\n return styleElement\n}\n\nfunction addStyle (obj /* StyleObjectPart */) {\n var update, remove\n var styleElement = document.querySelector('style[' + ssrIdKey + '~=\"' + obj.id + '\"]')\n\n if (styleElement) {\n if (isProduction) {\n // has SSR styles and in production mode.\n // simply do nothing.\n return noop\n } else {\n // has SSR styles but in dev mode.\n // for some reason Chrome can't handle source map in server-rendered\n // style tags - source maps in <style> only works if the style tag is\n // created and inserted dynamically. So we remove the server rendered\n // styles and inject new ones.\n styleElement.parentNode.removeChild(styleElement)\n }\n }\n\n if (isOldIE) {\n // use singleton mode for IE9.\n var styleIndex = singletonCounter++\n styleElement = singletonElement || (singletonElement = createStyleElement())\n update = applyToSingletonTag.bind(null, styleElement, styleIndex, false)\n remove = applyToSingletonTag.bind(null, styleElement, styleIndex, true)\n } else {\n // use multi-style-tag mode in all other cases\n styleElement = createStyleElement()\n update = applyToTag.bind(null, styleElement)\n remove = function () {\n styleElement.parentNode.removeChild(styleElement)\n }\n }\n\n update(obj)\n\n return function updateStyle (newObj /* StyleObjectPart */) {\n if (newObj) {\n if (newObj.css === obj.css &&\n newObj.media === obj.media &&\n newObj.sourceMap === obj.sourceMap) {\n return\n }\n update(obj = newObj)\n } else {\n remove()\n }\n }\n}\n\nvar replaceText = (function () {\n var textStore = []\n\n return function (index, replacement) {\n textStore[index] = replacement\n return textStore.filter(Boolean).join('\\n')\n }\n})()\n\nfunction applyToSingletonTag (styleElement, index, remove, obj) {\n var css = remove ? '' : obj.css\n\n if (styleElement.styleSheet) {\n styleElement.styleSheet.cssText = replaceText(index, css)\n } else {\n var cssNode = document.createTextNode(css)\n var childNodes = styleElement.childNodes\n if (childNodes[index]) styleElement.removeChild(childNodes[index])\n if (childNodes.length) {\n styleElement.insertBefore(cssNode, childNodes[index])\n } else {\n styleElement.appendChild(cssNode)\n }\n }\n}\n\nfunction applyToTag (styleElement, obj) {\n var css = obj.css\n var media = obj.media\n var sourceMap = obj.sourceMap\n\n if (media) {\n styleElement.setAttribute('media', media)\n }\n if (options.ssrId) {\n styleElement.setAttribute(ssrIdKey, obj.id)\n }\n\n if (sourceMap) {\n // https://developer.chrome.com/devtools/docs/javascript-debugging\n // this makes source maps inside style tags work properly in Chrome\n css += '\\n/*# sourceURL=' + sourceMap.sources[0] + ' */'\n // http://stackoverflow.com/a/26603875\n css += '\\n/*# sourceMappingURL=data:application/json;base64,' + btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))) + ' */'\n }\n\n if (styleElement.styleSheet) {\n styleElement.styleSheet.cssText = css\n } else {\n while (styleElement.firstChild) {\n styleElement.removeChild(styleElement.firstChild)\n }\n styleElement.appendChild(document.createTextNode(css))\n }\n}\n\n\n/***/ }),\n/* 9 */\n/***/ (function(module, exports) {\n\n/**\n * Translates the list format produced by css-loader into something\n * easier to manipulate.\n */\nmodule.exports = function listToStyles (parentId, list) {\n var styles = []\n var newStyles = {}\n for (var i = 0; i < list.length; i++) {\n var item = list[i]\n var id = item[0]\n var css = item[1]\n var media = item[2]\n var sourceMap = item[3]\n var part = {\n id: parentId + ':' + i,\n css: css,\n media: media,\n sourceMap: sourceMap\n }\n if (!newStyles[id]) {\n styles.push(newStyles[id] = { id: id, parts: [part] })\n } else {\n newStyles[id].parts.push(part)\n }\n }\n return styles\n}\n\n\n/***/ }),\n/* 10 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\nvar render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"v-pagination\",class:_vm.classes},[_c('ul',[(_vm.pageSizeMenu)?_c('li',{staticClass:\"v-pagination__list\"},[_c('a',[_vm._v(_vm._s(_vm.i18n.pageLength)+\"\\n \"),_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.pageSize),expression:\"pageSize\"}],attrs:{\"disabled\":_vm.disabled},on:{\"change\":[function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.pageSize=$event.target.multiple ? $$selectedVal : $$selectedVal[0]},_vm.switchLength]}},_vm._l((_vm.pageSizeMenu),function(len,index){return _c('option',{key:index},[_vm._v(_vm._s(len))])}),0)])]):_vm._e(),_vm._v(\" \"),(_vm.info)?_c('li',{staticClass:\"v-pagination__info\"},[_c('a',{domProps:{\"textContent\":_vm._s(_vm.pageInfo)}})]):_vm._e(),_vm._v(\" \"),(_vm.first)?_c('li',{class:{disabled:_vm.currentPage === 1||_vm.disabled}},[_c('a',{attrs:{\"href\":\"javascript:void(0);\"},domProps:{\"textContent\":_vm._s(_vm.i18n.first)},on:{\"click\":function($event){return _vm.switchPage('first')}}})]):_vm._e(),_vm._v(\" \"),_c('li',{class:{disabled:_vm.currentPage === 1||_vm.disabled}},[_c('a',{attrs:{\"href\":\"javascript:void(0);\"},domProps:{\"textContent\":_vm._s(_vm.i18n.previous)},on:{\"click\":function($event){return _vm.switchPage('previous')}}})]),_vm._v(\" \"),(_vm.pageNumber)?_vm._l((_vm.pageNumbers),function(num,index){return _c('li',{key:index,class:{active:(num === _vm.currentPage),disabled:_vm.disabled&&num !== _vm.currentPage}},[_c('a',{attrs:{\"href\":\"javascript:void(0);\"},domProps:{\"textContent\":_vm._s(num)},on:{\"click\":function($event){return _vm.switchPage(num)}}})])}):_vm._e(),_vm._v(\" \"),_c('li',{class:{disabled:_vm.currentPage === _vm.totalPage||_vm.disabled}},[_c('a',{attrs:{\"href\":\"javascript:void(0);\"},domProps:{\"textContent\":_vm._s(_vm.i18n.next)},on:{\"click\":function($event){return _vm.switchPage('next')}}})]),_vm._v(\" \"),(_vm.last)?_c('li',{class:{disabled:_vm.currentPage === _vm.totalPage||_vm.disabled}},[_c('a',{attrs:{\"href\":\"javascript:void(0);\"},domProps:{\"textContent\":_vm._s(_vm.i18n.last)},on:{\"click\":function($event){return _vm.switchPage('last')}}})]):_vm._e()],2)])}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\n/* harmony default export */ __webpack_exports__[\"a\"] = (esExports);\n\n/***/ })\n/******/ ]);\n});\n\n\n// WEBPACK FOOTER //\n// v-page.js"," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/dist/\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 1);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap 28704fca4de36e49dc5c","<template>\r\n <div class=\"v-pagination\" :class=\"classes\">\r\n <ul>\r\n <!-- page length list -->\r\n <li class=\"v-pagination__list\" v-if=\"pageSizeMenu\">\r\n <a>{{i18n.pageLength}}\r\n <select @change=\"switchLength\" v-model=\"pageSize\" :disabled=\"disabled\">\r\n <option :key=\"index\" v-for=\"(len,index) in pageSizeMenu\">{{len}}</option>\r\n </select>\r\n </a>\r\n </li>\r\n <!-- page info -->\r\n <li class=\"v-pagination__info\" v-if=\"info\">\r\n <a v-text=\"pageInfo\"></a>\r\n </li>\r\n\r\n <li :class=\"{disabled:currentPage === 1||disabled} \" v-if=\"first\">\r\n <a href=\"javascript:void(0);\" @click=\"switchPage('first')\" v-text=\"i18n.first\"></a>\r\n </li>\r\n <li :class=\"{disabled:currentPage === 1||disabled}\">\r\n <a href=\"javascript:void(0);\" @click=\"switchPage('previous')\" v-text=\"i18n.previous\"></a>\r\n </li>\r\n\r\n <!-- page numbers -->\r\n <template v-if=\"pageNumber\">\r\n <li :class=\"{active:(num === currentPage),disabled:disabled&&num !== currentPage}\"\r\n v-for=\"(num,index) in pageNumbers\" :key=\"index\">\r\n <a href=\"javascript:void(0);\" @click=\"switchPage(num)\" v-text=\"num\"></a>\r\n </li>\r\n </template>\r\n\r\n <li :class=\"{disabled:currentPage === totalPage||disabled}\">\r\n <a href=\"javascript:void(0);\" @click=\"switchPage('next')\" v-text=\"i18n.next\"></a>\r\n </li>\r\n <li :class=\"{disabled:currentPage === totalPage||disabled}\" v-if=\"last\">\r\n <a href=\"javascript:void(0);\" @click=\"switchPage('last')\" v-text=\"i18n.last\"></a>\r\n </li>\r\n </ul>\r\n </div>\r\n</template>\r\n\r\n<script>\r\n import languages from './language';\r\n import './page.scss';\r\n\r\n const FIRST = 1;\r\n\r\n export default {\r\n name: \"v-page\",\r\n props: {\r\n totalRow: {\r\n type: Number,\r\n default: 0\r\n },\r\n pageSizeMenu: {\r\n type: [Boolean, Array],\r\n default: function () {\r\n return [10, 20, 50, 100];\r\n }\r\n },\r\n language: {\r\n type: String,\r\n default: 'cn'\r\n },\r\n align: {\r\n type: String,\r\n default: 'right'\r\n },\r\n disabled: {\r\n type: Boolean,\r\n default: false\r\n },\r\n border: {\r\n type: Boolean,\r\n default: true\r\n },\r\n info: {\r\n type: Boolean,\r\n default: true\r\n },\r\n pageNumber: {\r\n type: Boolean,\r\n default: true\r\n },\r\n first: {\r\n type: Boolean,\r\n default: true\r\n },\r\n last: {\r\n type: Boolean,\r\n default: true\r\n }\r\n },\r\n data() {\r\n return {\r\n pageSize: this.pageSizeMenu === false ? 10 : this.pageSizeMenu[0],\r\n totalPage: 0,\r\n currentPage: 0,\r\n pageNumberSize: 5,\r\n i18n: languages[this.language] || languages['cn']\r\n };\r\n },\r\n computed: {\r\n pageNumbers() {\r\n let start = 1, end, nums = [], half = Math.floor(this.pageNumberSize / 2);\r\n if (this.totalPage < this.pageNumberSize) end = this.totalPage;\r\n else if (this.currentPage <= half) end = this.pageNumberSize;\r\n else if (this.currentPage >= (this.totalPage - half)) {\r\n start = this.totalPage - this.pageNumberSize + 1;\r\n end = this.totalPage;\r\n } else {\r\n start = this.currentPage - half;\r\n end = start + this.pageNumberSize - 1;\r\n }\r\n\r\n for (let i = start; i <= end; i++) {\r\n nums.push(i);\r\n }\r\n return nums;\r\n },\r\n pageInfo() {\r\n return this.i18n.pageInfo.replace('#pageNumber#', this.currentPage)\r\n .replace('#totalPage#', this.totalPage)\r\n .replace('#totalRow#', this.totalRow);\r\n },\r\n classes(){\r\n return {\r\n 'v-pagination--no-border': !this.border,\r\n 'v-pagination--right': this.align === 'right',\r\n 'v-pagination--center': this.align === 'center'\r\n };\r\n }\r\n },\r\n watch: {\r\n totalRow() {\r\n this.calcTotalPage();\r\n }\r\n },\r\n methods: {\r\n goPage(pNum) {\r\n if(typeof pNum !== 'number') return;\r\n let num = FIRST;\r\n if(pNum > num) num = pNum;\r\n if(pNum > this.totalPage && this.totalPage > 0) num = this.totalPage;\r\n\r\n if(num === this.currentPage) return;\r\n this.currentPage = num;\r\n this.change();\r\n this.calcTotalPage();\r\n },\r\n reload(){\r\n this.change();\r\n },\r\n change(){\r\n this.$emit('page-change', {\r\n pageNumber: this.currentPage,\r\n pageSize: Number(this.pageSize)\r\n });\r\n },\r\n calcTotalPage() {\r\n this.totalPage = Math.ceil(this.totalRow / this.pageSize);\r\n },\r\n position(target){\r\n if (typeof target === 'string') {\r\n switch (target) {\r\n case 'first': return FIRST;\r\n case 'previous': return this.currentPage - 1;\r\n case 'next': return this.currentPage + 1;\r\n case 'last': return this.totalPage;\r\n }\r\n } else if (typeof target === 'number') return target;\r\n },\r\n switchPage(target) {\r\n if (this.disabled) return;\r\n this.goPage(this.position(target));\r\n },\r\n switchLength() {\r\n this.goPage(FIRST);\r\n }\r\n },\r\n mounted() {\r\n this.goPage(FIRST);\r\n }\r\n }\r\n</script>\n\n\n// WEBPACK FOOTER //\n// src/Page.vue","import vPage from './Page';\r\n\r\nconst Plugin = {\r\n install(Vue, options = {}){\r\n if(Object.keys(options).length){\r\n if(options.language) vPage.props.language.default = options.language;\r\n if(options.align) vPage.props.align.default = options.align;\r\n if(typeof options.info === 'boolean') vPage.props.info.default = options.info;\r\n if(typeof options.border === 'boolean') vPage.props.border.default = options.border;\r\n if(typeof options.pageNumber === 'boolean') vPage.props.pageNumber.default = options.pageNumber;\r\n if(typeof options.first === 'boolean') vPage.props.first.default = options.first;\r\n if(typeof options.last === 'boolean') vPage.props.last.default = options.last;\r\n if(typeof options.pageSizeMenu !== 'undefined')\r\n vPage.props.pageSizeMenu.default = options.pageSizeMenu;\r\n }\r\n Vue.component(vPage.name, vPage);\r\n }\r\n};\r\n\r\nexport {vPage};\r\nexport default Plugin;\n\n\n// WEBPACK FOOTER //\n// ./src/index.js","var normalizeComponent = require(\"!../node_modules/_vue-loader@13.7.1@vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../node_modules/_vue-loader@13.7.1@vue-loader/lib/selector?type=script&index=0!./Page.vue\"\nimport __vue_script__ from \"!!babel-loader!../node_modules/_vue-loader@13.7.1@vue-loader/lib/selector?type=script&index=0!./Page.vue\"\n/* template */\nimport __vue_template__ from \"!!../node_modules/_vue-loader@13.7.1@vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-19543066\\\",\\\"hasScoped\\\":false,\\\"buble\\\":{\\\"transforms\\\":{}}}!../node_modules/_vue-loader@13.7.1@vue-loader/lib/selector?type=template&index=0!./Page.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = null\n/* scopeId */\nvar __vue_scopeId__ = null\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/Page.vue\n// module id = 2\n// module chunks = 0","/* globals __VUE_SSR_CONTEXT__ */\n\n// IMPORTANT: Do NOT use ES2015 features in this file.\n// This module is a runtime utility for cleaner component module output and will\n// be included in the final webpack user bundle.\n\nmodule.exports = function normalizeComponent (\n rawScriptExports,\n compiledTemplate,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier /* server only */\n) {\n var esModule\n var scriptExports = rawScriptExports = rawScriptExports || {}\n\n // ES6 modules interop\n var type = typeof rawScriptExports.default\n if (type === 'object' || type === 'function') {\n esModule = rawScriptExports\n scriptExports = rawScriptExports.default\n }\n\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // render functions\n if (compiledTemplate) {\n options.render = compiledTemplate.render\n options.staticRenderFns = compiledTemplate.staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = injectStyles\n }\n\n if (hook) {\n var functional = options.functional\n var existing = functional\n ? options.render\n : options.beforeCreate\n\n if (!functional) {\n // inject component registration as beforeCreate hook\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n } else {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return existing(h, context)\n }\n }\n }\n\n return {\n esModule: esModule,\n exports: scriptExports,\n options: options\n }\n}\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_vue-loader@13.7.1@vue-loader/lib/component-normalizer.js\n// module id = 3\n// module chunks = 0","const languages = {\r\n cn: {\r\n pageLength: '每页记录数 ',\r\n pageInfo: `当前显示第 #pageNumber# / #totalPage# 页(共#totalRow#条记录)`,\r\n first: '首页',\r\n previous: '«',\r\n next: '»',\r\n last: '尾页'\r\n },\r\n en: {\r\n pageLength: 'Page length ',\r\n pageInfo: 'Current #pageNumber# / #totalPage# (total #totalRow# records)',\r\n first: 'First',\r\n previous: '«',\r\n next: '»',\r\n last: 'Last'\r\n },\r\n jp: {\r\n pageLength: 'ページごとの記録数',\r\n pageInfo: '現在の第 #pageNumber# / #totalPage# ページ(全部で #totalRow# 条の記録)',\r\n first: 'トップページ',\r\n previous: '«',\r\n next: '»',\r\n last: '尾のページ'\r\n }\r\n};\r\n\r\nexport default languages;\n\n\n// WEBPACK FOOTER //\n// ./src/language.js","// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = require(\"!!../node_modules/_css-loader@0.28.11@css-loader/index.js!../node_modules/_sass-loader@6.0.7@sass-loader/lib/loader.js!./page.scss\");\nif(typeof content === 'string') content = [[module.id, content, '']];\nif(content.locals) module.exports = content.locals;\n// add the styles to the DOM\nvar update = require(\"!../node_modules/_vue-style-loader@3.1.2@vue-style-loader/lib/addStylesClient.js\")(\"2dbe92cf\", content, true, {});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/page.scss\n// module id = 5\n// module chunks = 0","exports = module.exports = require(\"../node_modules/_css-loader@0.28.11@css-loader/lib/css-base.js\")(false);\n// imports\n\n\n// module\nexports.push([module.id, \"div.v-pagination{margin:0;display:block}div.v-pagination.v-pagination--right{text-align:right}div.v-pagination.v-pagination--center{text-align:center}div.v-pagination>ul{display:inline-block;list-style:none;margin:0;padding:0;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;-webkit-box-shadow:0 1px 2px rgba(0,0,0,.05);-moz-box-shadow:0 1px 2px rgba(0,0,0,.05);box-shadow:0 1px 2px rgba(0,0,0,.05)}div.v-pagination>ul>li{text-align:center;margin:0;display:inline}div.v-pagination>ul>li>a{margin:0 0 0 -1px;position:relative;border:1px solid #dee2e6;padding:6px 12px;line-height:1.4;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;background-color:#fff;font-size:14px;display:inline-block;float:left;text-decoration:none;color:#333;-webkit-transition:all .5s cubic-bezier(.175,.885,.32,1);transition:all .5s cubic-bezier(.175,.885,.32,1)}div.v-pagination>ul>li>a:hover{z-index:2;-webkit-box-shadow:0 0 8px rgba(0,0,0,.2);-moz-box-shadow:0 0 8px rgba(0,0,0,.2);box-shadow:0 0 8px rgba(0,0,0,.2)}div.v-pagination>ul>li.disabled>a,div.v-pagination>ul>li.v-pagination__info>a,div.v-pagination>ul>li.v-pagination__list>a{color:#999;cursor:default}div.v-pagination>ul>li.disabled>a:hover,div.v-pagination>ul>li.v-pagination__info>a:hover,div.v-pagination>ul>li.v-pagination__list>a:hover{color:#999;background-color:#fff;box-shadow:none}div.v-pagination>ul>li.active>a,div.v-pagination>ul>li.active>span{cursor:default;color:#999;background-color:#eee}div.v-pagination>ul>li.active>a:hover,div.v-pagination>ul>li.active>span:hover{box-shadow:none}div.v-pagination>ul>li:first-child>a,div.v-pagination>ul>li:first-child>span{border-left-width:1px;border-bottom-left-radius:2px;border-top-left-radius:2px;-webkit-border-bottom-left-radius:2px;-webkit-border-top-left-radius:2px;-moz-border-radius-bottomleft:2px;-moz-border-radius-topleft:2px}div.v-pagination>ul>li:last-child>a,div.v-pagination>ul>li:last-child>span{border-top-right-radius:2px;border-bottom-right-radius:2px;-webkit-border-bottom-right-radius:2px;-webkit-border-top-right-radius:2px;-moz-border-radius-bottomright:2px;-moz-border-radius-topright:2px}div.v-pagination>ul>li.v-pagination__list select{margin-left:5px;width:auto!important;font-size:12px;padding:0;display:inline-block;border:1px solid #ccc;color:#333;outline:0}div.v-pagination>ul>li.v-pagination__list select:hover{-webkit-box-shadow:0 0 3px rgba(0,0,0,.2);-moz-box-shadow:0 0 3px rgba(0,0,0,.2);box-shadow:0 0 3px rgba(0,0,0,.2)}div.v-pagination>ul>li.v-pagination__list select[disabled]{color:#999}div.v-pagination.v-pagination--no-border>ul{box-shadow:none}div.v-pagination.v-pagination--no-border>ul>li:not(.active):not(.disabled):not(.v-pagination__info):not(.v-pagination__list) a:hover{box-shadow:none;z-index:auto;background-color:#ddd}div.v-pagination.v-pagination--no-border>ul>li.active a{background-color:#f5f5f5;color:#aaa}div.v-pagination.v-pagination--no-border>ul>li>a{border:0}div.v-pagination.v-pagination--no-border>ul>li>a:hover{z-index:auto}\", \"\"]);\n\n// exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_css-loader@0.28.11@css-loader!./node_modules/_sass-loader@6.0.7@sass-loader/lib/loader.js!./src/page.scss\n// module id = 6\n// module chunks = 0","/*\n\tMIT License http://www.opensource.org/licenses/mit-license.php\n\tAuthor Tobias Koppers @sokra\n*/\n// css base code, injected by the css-loader\nmodule.exports = function(useSourceMap) {\n\tvar list = [];\n\n\t// return the list of modules as css string\n\tlist.toString = function toString() {\n\t\treturn this.map(function (item) {\n\t\t\tvar content = cssWithMappingToString(item, useSourceMap);\n\t\t\tif(item[2]) {\n\t\t\t\treturn \"@media \" + item[2] + \"{\" + content + \"}\";\n\t\t\t} else {\n\t\t\t\treturn content;\n\t\t\t}\n\t\t}).join(\"\");\n\t};\n\n\t// import a list of modules into the list\n\tlist.i = function(modules, mediaQuery) {\n\t\tif(typeof modules === \"string\")\n\t\t\tmodules = [[null, modules, \"\"]];\n\t\tvar alreadyImportedModules = {};\n\t\tfor(var i = 0; i < this.length; i++) {\n\t\t\tvar id = this[i][0];\n\t\t\tif(typeof id === \"number\")\n\t\t\t\talreadyImportedModules[id] = true;\n\t\t}\n\t\tfor(i = 0; i < modules.length; i++) {\n\t\t\tvar item = modules[i];\n\t\t\t// skip already imported module\n\t\t\t// this implementation is not 100% perfect for weird media query combinations\n\t\t\t// when a module is imported multiple times with different media queries.\n\t\t\t// I hope this will never occur (Hey this way we have smaller bundles)\n\t\t\tif(typeof item[0] !== \"number\" || !alreadyImportedModules[item[0]]) {\n\t\t\t\tif(mediaQuery && !item[2]) {\n\t\t\t\t\titem[2] = mediaQuery;\n\t\t\t\t} else if(mediaQuery) {\n\t\t\t\t\titem[2] = \"(\" + item[2] + \") and (\" + mediaQuery + \")\";\n\t\t\t\t}\n\t\t\t\tlist.push(item);\n\t\t\t}\n\t\t}\n\t};\n\treturn list;\n};\n\nfunction cssWithMappingToString(item, useSourceMap) {\n\tvar content = item[1] || '';\n\tvar cssMapping = item[3];\n\tif (!cssMapping) {\n\t\treturn content;\n\t}\n\n\tif (useSourceMap && typeof btoa === 'function') {\n\t\tvar sourceMapping = toComment(cssMapping);\n\t\tvar sourceURLs = cssMapping.sources.map(function (source) {\n\t\t\treturn '/*# sourceURL=' + cssMapping.sourceRoot + source + ' */'\n\t\t});\n\n\t\treturn [content].concat(sourceURLs).concat([sourceMapping]).join('\\n');\n\t}\n\n\treturn [content].join('\\n');\n}\n\n// Adapted from convert-source-map (MIT)\nfunction toComment(sourceMap) {\n\t// eslint-disable-next-line no-undef\n\tvar base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))));\n\tvar data = 'sourceMappingURL=data:application/json;charset=utf-8;base64,' + base64;\n\n\treturn '/*# ' + data + ' */';\n}\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_css-loader@0.28.11@css-loader/lib/css-base.js\n// module id = 7\n// module chunks = 0","/*\n MIT License http://www.opensource.org/licenses/mit-license.php\n Author Tobias Koppers @sokra\n Modified by Evan You @yyx990803\n*/\n\nvar hasDocument = typeof document !== 'undefined'\n\nif (typeof DEBUG !== 'undefined' && DEBUG) {\n if (!hasDocument) {\n throw new Error(\n 'vue-style-loader cannot be used in a non-browser environment. ' +\n \"Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.\"\n ) }\n}\n\nvar listToStyles = require('./listToStyles')\n\n/*\ntype StyleObject = {\n id: number;\n parts: Array<StyleObjectPart>\n}\n\ntype StyleObjectPart = {\n css: string;\n media: string;\n sourceMap: ?string\n}\n*/\n\nvar stylesInDom = {/*\n [id: number]: {\n id: number,\n refs: number,\n parts: Array<(obj?: StyleObjectPart) => void>\n }\n*/}\n\nvar head = hasDocument && (document.head || document.getElementsByTagName('head')[0])\nvar singletonElement = null\nvar singletonCounter = 0\nvar isProduction = false\nvar noop = function () {}\nvar options = null\nvar ssrIdKey = 'data-vue-ssr-id'\n\n// Force single-tag solution on IE6-9, which has a hard limit on the # of <style>\n// tags it will allow on a page\nvar isOldIE = typeof navigator !== 'undefined' && /msie [6-9]\\b/.test(navigator.userAgent.toLowerCase())\n\nmodule.exports = function (parentId, list, _isProduction, _options) {\n isProduction = _isProduction\n\n options = _options || {}\n\n var styles = listToStyles(parentId, list)\n addStylesToDom(styles)\n\n return function update (newList) {\n var mayRemove = []\n for (var i = 0; i < styles.length; i++) {\n var item = styles[i]\n var domStyle = stylesInDom[item.id]\n domStyle.refs--\n mayRemove.push(domStyle)\n }\n if (newList) {\n styles = listToStyles(parentId, newList)\n addStylesToDom(styles)\n } else {\n styles = []\n }\n for (var i = 0; i < mayRemove.length; i++) {\n var domStyle = mayRemove[i]\n if (domStyle.refs === 0) {\n for (var j = 0; j < domStyle.parts.length; j++) {\n domStyle.parts[j]()\n }\n delete stylesInDom[domStyle.id]\n }\n }\n }\n}\n\nfunction addStylesToDom (styles /* Array<StyleObject> */) {\n for (var i = 0; i < styles.length; i++) {\n var item = styles[i]\n var domStyle = stylesInDom[item.id]\n if (domStyle) {\n domStyle.refs++\n for (var j = 0; j < domStyle.parts.length; j++) {\n domStyle.parts[j](item.parts[j])\n }\n for (; j < item.parts.length; j++) {\n domStyle.parts.push(addStyle(item.parts[j]))\n }\n if (domStyle.parts.length > item.parts.length) {\n domStyle.parts.length = item.parts.length\n }\n } else {\n var parts = []\n for (var j = 0; j < item.parts.length; j++) {\n parts.push(addStyle(item.parts[j]))\n }\n stylesInDom[item.id] = { id: item.id, refs: 1, parts: parts }\n }\n }\n}\n\nfunction createStyleElement () {\n var styleElement = document.createElement('style')\n styleElement.type = 'text/css'\n head.appendChild(styleElement)\n return styleElement\n}\n\nfunction addStyle (obj /* StyleObjectPart */) {\n var update, remove\n var styleElement = document.querySelector('style[' + ssrIdKey + '~=\"' + obj.id + '\"]')\n\n if (styleElement) {\n if (isProduction) {\n // has SSR styles and in production mode.\n // simply do nothing.\n return noop\n } else {\n // has SSR styles but in dev mode.\n // for some reason Chrome can't handle source map in server-rendered\n // style tags - source maps in <style> only works if the style tag is\n // created and inserted dynamically. So we remove the server rendered\n // styles and inject new ones.\n styleElement.parentNode.removeChild(styleElement)\n }\n }\n\n if (isOldIE) {\n // use singleton mode for IE9.\n var styleIndex = singletonCounter++\n styleElement = singletonElement || (singletonElement = createStyleElement())\n update = applyToSingletonTag.bind(null, styleElement, styleIndex, false)\n remove = applyToSingletonTag.bind(null, styleElement, styleIndex, true)\n } else {\n // use multi-style-tag mode in all other cases\n styleElement = createStyleElement()\n update = applyToTag.bind(null, styleElement)\n remove = function () {\n styleElement.parentNode.removeChild(styleElement)\n }\n }\n\n update(obj)\n\n return function updateStyle (newObj /* StyleObjectPart */) {\n if (newObj) {\n if (newObj.css === obj.css &&\n newObj.media === obj.media &&\n newObj.sourceMap === obj.sourceMap) {\n return\n }\n update(obj = newObj)\n } else {\n remove()\n }\n }\n}\n\nvar replaceText = (function () {\n var textStore = []\n\n return function (index, replacement) {\n textStore[index] = replacement\n return textStore.filter(Boolean).join('\\n')\n }\n})()\n\nfunction applyToSingletonTag (styleElement, index, remove, obj) {\n var css = remove ? '' : obj.css\n\n if (styleElement.styleSheet) {\n styleElement.styleSheet.cssText = replaceText(index, css)\n } else {\n var cssNode = document.createTextNode(css)\n var childNodes = styleElement.childNodes\n if (childNodes[index]) styleElement.removeChild(childNodes[index])\n if (childNodes.length) {\n styleElement.insertBefore(cssNode, childNodes[index])\n } else {\n styleElement.appendChild(cssNode)\n }\n }\n}\n\nfunction applyToTag (styleElement, obj) {\n var css = obj.css\n var media = obj.media\n var sourceMap = obj.sourceMap\n\n if (media) {\n styleElement.setAttribute('media', media)\n }\n if (options.ssrId) {\n styleElement.setAttribute(ssrIdKey, obj.id)\n }\n\n if (sourceMap) {\n // https://developer.chrome.com/devtools/docs/javascript-debugging\n // this makes source maps inside style tags work properly in Chrome\n css += '\\n/*# sourceURL=' + sourceMap.sources[0] + ' */'\n // http://stackoverflow.com/a/26603875\n css += '\\n/*# sourceMappingURL=data:application/json;base64,' + btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))) + ' */'\n }\n\n if (styleElement.styleSheet) {\n styleElement.styleSheet.cssText = css\n } else {\n while (styleElement.firstChild) {\n styleElement.removeChild(styleElement.firstChild)\n }\n styleElement.appendChild(document.createTextNode(css))\n }\n}\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_vue-style-loader@3.1.2@vue-style-loader/lib/addStylesClient.js\n// module id = 8\n// module chunks = 0","/**\n * Translates the list format produced by css-loader into something\n * easier to manipulate.\n */\nmodule.exports = function listToStyles (parentId, list) {\n var styles = []\n var newStyles = {}\n for (var i = 0; i < list.length; i++) {\n var item = list[i]\n var id = item[0]\n var css = item[1]\n var media = item[2]\n var sourceMap = item[3]\n var part = {\n id: parentId + ':' + i,\n css: css,\n media: media,\n sourceMap: sourceMap\n }\n if (!newStyles[id]) {\n styles.push(newStyles[id] = { id: id, parts: [part] })\n } else {\n newStyles[id].parts.push(part)\n }\n }\n return styles\n}\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_vue-style-loader@3.1.2@vue-style-loader/lib/listToStyles.js\n// module id = 9\n// module chunks = 0","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"v-pagination\",class:_vm.classes},[_c('ul',[(_vm.pageSizeMenu)?_c('li',{staticClass:\"v-pagination__list\"},[_c('a',[_vm._v(_vm._s(_vm.i18n.pageLength)+\"\\n \"),_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.pageSize),expression:\"pageSize\"}],attrs:{\"disabled\":_vm.disabled},on:{\"change\":[function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.pageSize=$event.target.multiple ? $$selectedVal : $$selectedVal[0]},_vm.switchLength]}},_vm._l((_vm.pageSizeMenu),function(len,index){return _c('option',{key:index},[_vm._v(_vm._s(len))])}),0)])]):_vm._e(),_vm._v(\" \"),(_vm.info)?_c('li',{staticClass:\"v-pagination__info\"},[_c('a',{domProps:{\"textContent\":_vm._s(_vm.pageInfo)}})]):_vm._e(),_vm._v(\" \"),(_vm.first)?_c('li',{class:{disabled:_vm.currentPage === 1||_vm.disabled}},[_c('a',{attrs:{\"href\":\"javascript:void(0);\"},domProps:{\"textContent\":_vm._s(_vm.i18n.first)},on:{\"click\":function($event){return _vm.switchPage('first')}}})]):_vm._e(),_vm._v(\" \"),_c('li',{class:{disabled:_vm.currentPage === 1||_vm.disabled}},[_c('a',{attrs:{\"href\":\"javascript:void(0);\"},domProps:{\"textContent\":_vm._s(_vm.i18n.previous)},on:{\"click\":function($event){return _vm.switchPage('previous')}}})]),_vm._v(\" \"),(_vm.pageNumber)?_vm._l((_vm.pageNumbers),function(num,index){return _c('li',{key:index,class:{active:(num === _vm.currentPage),disabled:_vm.disabled&&num !== _vm.currentPage}},[_c('a',{attrs:{\"href\":\"javascript:void(0);\"},domProps:{\"textContent\":_vm._s(num)},on:{\"click\":function($event){return _vm.switchPage(num)}}})])}):_vm._e(),_vm._v(\" \"),_c('li',{class:{disabled:_vm.currentPage === _vm.totalPage||_vm.disabled}},[_c('a',{attrs:{\"href\":\"javascript:void(0);\"},domProps:{\"textContent\":_vm._s(_vm.i18n.next)},on:{\"click\":function($event){return _vm.switchPage('next')}}})]),_vm._v(\" \"),(_vm.last)?_c('li',{class:{disabled:_vm.currentPage === _vm.totalPage||_vm.disabled}},[_c('a',{attrs:{\"href\":\"javascript:void(0);\"},domProps:{\"textContent\":_vm._s(_vm.i18n.last)},on:{\"click\":function($event){return _vm.switchPage('last')}}})]):_vm._e()],2)])}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_vue-loader@13.7.1@vue-loader/lib/template-compiler?{\"id\":\"data-v-19543066\",\"hasScoped\":false,\"buble\":{\"transforms\":{}}}!./node_modules/_vue-loader@13.7.1@vue-loader/lib/selector.js?type=template&index=0!./src/Page.vue\n// module id = 10\n// module chunks = 0"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack:///webpack/universalModuleDefinition","webpack:///webpack/bootstrap c864b312fec396a5eb01","webpack:///v-page.js","webpack:///./src/index.js","webpack:///./src/Page.js","webpack:///./src/page.sass?506b","webpack:///./src/page.sass","webpack:///./node_modules/.pnpm/registry.npmmirror.com+css-loader@0.28.11/node_modules/css-loader/lib/css-base.js","webpack:///./node_modules/.pnpm/registry.nlark.com+vue-style-loader@4.1.3/node_modules/vue-style-loader/lib/addStylesClient.js","webpack:///./node_modules/.pnpm/registry.nlark.com+vue-style-loader@4.1.3/node_modules/vue-style-loader/lib/listToStyles.js","webpack:///./src/language.js","webpack:///./src/helper.js"],"names":["root","factory","exports","module","define","amd","self","this","__webpack_require__","moduleId","installedModules","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","configurable","enumerable","get","n","__esModule","object","property","prototype","hasOwnProperty","p","s","value","Page","undefined","_Page2","obj","default","_Page","install","Vue","options","keys","length","props","language","align","info","border","pageNumber","first","last","pageSizeMenu","component","_toConsumableArray","arr","Array","isArray","arr2","from","_language2","_language","type","Number","totalRow","String","Boolean","defaultPageSizeMenu","disabled","data","current","pageSize","defaultPageSize","pageNumberSize","defaultPageNumberSize","i18n","languages","cn","lastPageSize","computed","totalPage","Math","ceil","pageNumbers","start","getPageNumberStart","apply","map","val","index","filter","FIRST","pageInfo","replace","classes","isFirst","isLast","watch","goPage","render","h","pageNumberGenerator","items","push","class","pageLength","attrs","on","change","e","srcElement","firstClass","prevClass","previous","active","nextClass","next","lastClass","methods","pNum","respond","num","$emit","reload","text","option","href","click","$createElement","mounted","content","locals","add","cssWithMappingToString","item","useSourceMap","cssMapping","btoa","sourceMapping","toComment","concat","sources","source","sourceRoot","join","sourceMap","unescape","encodeURIComponent","JSON","stringify","list","toString","mediaQuery","alreadyImportedModules","id","__webpack_exports__","addStylesClient","parentId","_isProduction","_options","isProduction","styles","addStylesToDom","newList","mayRemove","domStyle","stylesInDom","refs","j","parts","addStyle","createStyleElement","styleElement","document","createElement","head","appendChild","update","remove","querySelector","ssrIdKey","noop","parentNode","removeChild","isOldIE","styleIndex","singletonCounter","singletonElement","applyToSingletonTag","bind","applyToTag","newObj","css","media","styleSheet","cssText","replaceText","cssNode","createTextNode","childNodes","insertBefore","setAttribute","ssrId","firstChild","hasDocument","DEBUG","Error","getElementsByTagName","navigator","test","userAgent","toLowerCase","textStore","replacement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M,GAAQA,EAARA,MAAQ,EAIRnB,GAFwBE,EAAxBA,sBAAwB,EAENF,EAAlBA,gBAAkB,GAEIL,GAAtBA,qBAAuBK,EAAiB,GAAI,GAAI","file":"v-page.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"vPage\", [], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"vPage\"] = factory();\n\telse\n\t\troot[\"vPage\"] = factory();\n})(typeof self !== 'undefined' ? self : this, function() {\nreturn \n\n\n// WEBPACK FOOTER //\n// webpack/universalModuleDefinition"," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/dist/\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 0);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap c864b312fec396a5eb01","(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"vPage\", [], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"vPage\"] = factory();\n\telse\n\t\troot[\"vPage\"] = factory();\n})(typeof self !== 'undefined' ? self : this, function() {\nreturn /******/ (function(modules) { // webpackBootstrap\n/******/ \t// The module cache\n/******/ \tvar installedModules = {};\n/******/\n/******/ \t// The require function\n/******/ \tfunction __webpack_require__(moduleId) {\n/******/\n/******/ \t\t// Check if module is in cache\n/******/ \t\tif(installedModules[moduleId]) {\n/******/ \t\t\treturn installedModules[moduleId].exports;\n/******/ \t\t}\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = installedModules[moduleId] = {\n/******/ \t\t\ti: moduleId,\n/******/ \t\t\tl: false,\n/******/ \t\t\texports: {}\n/******/ \t\t};\n/******/\n/******/ \t\t// Execute the module function\n/******/ \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n/******/\n/******/ \t\t// Flag the module as loaded\n/******/ \t\tmodule.l = true;\n/******/\n/******/ \t\t// Return the exports of the module\n/******/ \t\treturn module.exports;\n/******/ \t}\n/******/\n/******/\n/******/ \t// expose the modules object (__webpack_modules__)\n/******/ \t__webpack_require__.m = modules;\n/******/\n/******/ \t// expose the module cache\n/******/ \t__webpack_require__.c = installedModules;\n/******/\n/******/ \t// define getter function for harmony exports\n/******/ \t__webpack_require__.d = function(exports, name, getter) {\n/******/ \t\tif(!__webpack_require__.o(exports, name)) {\n/******/ \t\t\tObject.defineProperty(exports, name, {\n/******/ \t\t\t\tconfigurable: false,\n/******/ \t\t\t\tenumerable: true,\n/******/ \t\t\t\tget: getter\n/******/ \t\t\t});\n/******/ \t\t}\n/******/ \t};\n/******/\n/******/ \t// getDefaultExport function for compatibility with non-harmony modules\n/******/ \t__webpack_require__.n = function(module) {\n/******/ \t\tvar getter = module && module.__esModule ?\n/******/ \t\t\tfunction getDefault() { return module['default']; } :\n/******/ \t\t\tfunction getModuleExports() { return module; };\n/******/ \t\t__webpack_require__.d(getter, 'a', getter);\n/******/ \t\treturn getter;\n/******/ \t};\n/******/\n/******/ \t// Object.prototype.hasOwnProperty.call\n/******/ \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n/******/\n/******/ \t// __webpack_public_path__\n/******/ \t__webpack_require__.p = \"/dist/\";\n/******/\n/******/ \t// Load entry module and return exports\n/******/ \treturn __webpack_require__(__webpack_require__.s = 0);\n/******/ })\n/************************************************************************/\n/******/ ([\n/* 0 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.Page = undefined;\n\nvar _Page = __webpack_require__(1);\n\nvar _Page2 = _interopRequireDefault(_Page);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_Page2.default.install = function (Vue) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n if (Object.keys(options).length) {\n var props = _Page2.default.props;\n var language = options.language,\n align = options.align,\n info = options.info,\n border = options.border,\n pageNumber = options.pageNumber,\n first = options.first,\n last = options.last,\n pageSizeMenu = options.pageSizeMenu;\n\n\n if (language) props.language.default = language;\n if (align) props.align.default = align;\n if (typeof info === 'boolean') props.info.default = info;\n if (typeof border === 'boolean') props.border.default = border;\n if (typeof pageNumber === 'boolean') props.pageNumber.default = pageNumber;\n if (typeof first === 'boolean') props.first.default = first;\n if (typeof last === 'boolean') props.last.default = last;\n if (typeof pageSizeMenu !== 'undefined') props.pageSizeMenu.default = pageSizeMenu;\n }\n Vue.component(_Page2.default.name, _Page2.default);\n};\n\nexports.Page = _Page2.default;\nexports.default = _Page2.default;\n\n/***/ }),\n/* 1 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\n__webpack_require__(2);\n\nvar _language = __webpack_require__(7);\n\nvar _language2 = _interopRequireDefault(_language);\n\nvar _helper = __webpack_require__(8);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }\n\nexports.default = {\n name: 'v-page',\n props: {\n value: { type: Number, default: 0 },\n totalRow: { type: Number, default: 0 },\n language: { type: String, default: 'cn' },\n /**\r\n * Page size list\r\n * false: close page size menu bar\r\n * array: custom page sizes menu\r\n */\n pageSizeMenu: {\n type: [Boolean, Array],\n default: function _default() {\n return _helper.defaultPageSizeMenu;\n }\n },\n /**\r\n * Pagination alignment direction\r\n * `left`, `center` and `right`(default)\r\n */\n align: { type: String, default: 'right' },\n disabled: { type: Boolean, default: false },\n border: { type: Boolean, default: true },\n info: { type: Boolean, default: true },\n pageNumber: { type: Boolean, default: true },\n /** first page button */\n first: { type: Boolean, default: true },\n /** last page button */\n last: { type: Boolean, default: true }\n },\n data: function data() {\n return {\n current: 0,\n pageSize: this.pageSizeMenu === false ? _helper.defaultPageSize : this.pageSizeMenu[0],\n pageNumberSize: _helper.defaultPageNumberSize,\n i18n: _language2.default[this.language] || _language2.default.cn,\n lastPageSize: -1\n };\n },\n\n computed: {\n totalPage: function totalPage() {\n return Math.ceil(this.totalRow / this.pageSize);\n },\n pageNumbers: function pageNumbers() {\n var current = this.current,\n pageNumberSize = this.pageNumberSize,\n totalPage = this.totalPage;\n\n var start = (0, _helper.getPageNumberStart)(current, totalPage, pageNumberSize);\n\n return Array.apply(null, { length: pageNumberSize }).map(function (val, index) {\n return start + index;\n }).filter(function (val) {\n return val >= _helper.FIRST && val <= totalPage;\n });\n },\n pageInfo: function pageInfo() {\n return this.i18n.pageInfo.replace('#pageNumber#', this.current).replace('#totalPage#', this.totalPage).replace('#totalRow#', this.totalRow);\n },\n classes: function classes() {\n return {\n 'v-pagination': true,\n 'v-pagination--no-border': !this.border,\n 'v-pagination--right': this.align === 'right',\n 'v-pagination--center': this.align === 'center',\n 'v-pagination--disabled': this.disabled\n };\n },\n isFirst: function isFirst() {\n return this.current === _helper.FIRST;\n },\n isLast: function isLast() {\n return this.current === this.totalPage;\n }\n },\n watch: {\n value: function value(val) {\n if (typeof val === 'number' && val > 0) this.goPage(val, false);\n }\n },\n render: function render(h) {\n var _this = this;\n\n var pageNumberGenerator = this.pageNumberGenerator,\n current = this.current,\n i18n = this.i18n,\n isFirst = this.isFirst,\n isLast = this.isLast;\n\n var items = [];\n // page length list\n if (Array.isArray(this.pageSizeMenu) && this.pageSizeMenu.length) {\n items.push(h('li', { class: 'v-pagination__list' }, [h('a', [h('span', i18n.pageLength), h('select', {\n attrs: { disabled: this.disabled },\n on: {\n change: function change(e) {\n _this.pageSize = Number(e.srcElement.value);\n _this.goPage();\n }\n }\n }, this.pageSizeMenu.map(function (val) {\n return h('option', { attrs: { value: val } }, val);\n }))])]));\n }\n // page info\n if (this.info) {\n items.push(h('li', { class: 'v-pagination__info' }, [h('a', this.pageInfo)]));\n }\n // first\n if (this.first) {\n var firstClass = { 'v-pagination__first': true, disabled: isFirst };\n items.push(pageNumberGenerator(firstClass, _helper.FIRST, i18n.first));\n }\n // previous\n var prevClass = { 'v-pagination__previous': true, disabled: isFirst };\n items.push(pageNumberGenerator(prevClass, current - 1, i18n.previous));\n // page numbers\n if (this.pageNumber) {\n items.push.apply(items, _toConsumableArray(this.pageNumbers.map(function (val) {\n var numberClass = { active: val === current };\n return pageNumberGenerator(numberClass, val, val);\n })));\n }\n // next\n var nextClass = { 'v-pagination__next': true, disabled: isLast };\n items.push(pageNumberGenerator(nextClass, current + 1, i18n.next));\n // last\n if (this.last) {\n var lastClass = { 'v-pagination__last': true, disabled: isLast };\n items.push(pageNumberGenerator(lastClass, this.totalPage, i18n.last));\n }\n return h('div', { class: this.classes }, [h('ul', items)]);\n },\n\n methods: {\n goPage: function goPage() {\n var pNum = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : _helper.FIRST;\n var respond = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;\n\n if (this.disabled) return;\n if (typeof pNum !== 'number') return;\n var num = pNum < _helper.FIRST ? _helper.FIRST : pNum;\n if (pNum > this.totalPage && this.totalPage > 0) num = this.totalPage;\n\n // exit when duplicate operation\n if (num === this.current && this.pageSize === this.lastPageSize) return;\n\n this.current = num;\n // update v-model value\n if (respond) this.$emit('input', this.current);\n this.lastPageSize = this.pageSize;\n this.change();\n },\n reload: function reload() {\n this.change();\n },\n change: function change() {\n this.$emit('page-change', {\n pageNumber: this.current,\n pageSize: Number(this.pageSize)\n });\n },\n pageNumberGenerator: function pageNumberGenerator(classes, num, text) {\n var _this2 = this;\n\n var option = {\n attrs: { href: 'javascript:void(0)' },\n on: { click: function click() {\n return _this2.goPage(num);\n } }\n };\n return this.$createElement('li', { class: classes }, [this.$createElement('a', option, text)]);\n }\n },\n mounted: function mounted() {\n this.goPage(this.value || _helper.FIRST);\n }\n};\n\n/***/ }),\n/* 2 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = __webpack_require__(3);\nif(content.__esModule) content = content.default;\nif(typeof content === 'string') content = [[module.i, content, '']];\nif(content.locals) module.exports = content.locals;\n// add the styles to the DOM\nvar add = __webpack_require__(5).default\nvar update = add(\"271f52e6\", content, true, {});\n\n/***/ }),\n/* 3 */\n/***/ (function(module, exports, __webpack_require__) {\n\nexports = module.exports = __webpack_require__(4)(false);\n// imports\n\n\n// module\nexports.push([module.i, \"div.v-pagination{margin:0;display:block}div.v-pagination.v-pagination--right{text-align:right}div.v-pagination.v-pagination--center{text-align:center}div.v-pagination.v-pagination--disabled li a{color:#999;cursor:default}div.v-pagination.v-pagination--disabled li a:hover{color:#999;background-color:#fff;box-shadow:none;z-index:auto}div.v-pagination.v-pagination--disabled li.active a{background-color:#f6f6f6}div.v-pagination>ul{display:inline-block;list-style:none;margin:0;padding:0;-webkit-box-shadow:0 1px 2px rgba(0,0,0,.05);-moz-box-shadow:0 1px 2px rgba(0,0,0,.05);-ms-box-shadow:0 1px 2px rgba(0,0,0,.05);-o-box-shadow:0 1px 2px rgba(0,0,0,.05);box-shadow:0 1px 2px rgba(0,0,0,.05)}div.v-pagination>ul>li{text-align:center;margin:0;display:inline}div.v-pagination>ul>li>a{margin:0 0 0 -1px;outline:none;position:relative;border:1px solid #dee2e6;padding:6px 12px;line-height:1.43;box-shadow:none;background-color:#fff;font-size:14px;display:inline-block;text-decoration:none;color:#333;-webkit-transition:all .5s cubic-bezier(.175,.885,.32,1);-moz-transition:all .5s cubic-bezier(.175,.885,.32,1);-ms-transition:all .5s cubic-bezier(.175,.885,.32,1);-o-transition:all .5s cubic-bezier(.175,.885,.32,1);transition:all .5s cubic-bezier(.175,.885,.32,1)}div.v-pagination>ul>li>a:hover{z-index:2;-webkit-box-shadow:0 0 8px rgba(0,0,0,.2);-moz-box-shadow:0 0 8px rgba(0,0,0,.2);-ms-box-shadow:0 0 8px rgba(0,0,0,.2);-o-box-shadow:0 0 8px rgba(0,0,0,.2);box-shadow:0 0 8px rgba(0,0,0,.2)}div.v-pagination>ul>li.disabled>a,div.v-pagination>ul>li.v-pagination__info>a,div.v-pagination>ul>li.v-pagination__list>a{color:#999;cursor:default}div.v-pagination>ul>li.disabled>a:hover,div.v-pagination>ul>li.v-pagination__info>a:hover,div.v-pagination>ul>li.v-pagination__list>a:hover{color:#999;background-color:#fff;box-shadow:none;z-index:auto}div.v-pagination>ul>li.active>a{cursor:default;color:#999;background-color:#eee}div.v-pagination>ul>li.active>a:hover{box-shadow:none;z-index:auto}div.v-pagination>ul>li:first-child>a{border-left-width:1px;-webkit-border-bottom-left-radius:2px;-moz-border-bottom-left-radius:2px;-ms-border-bottom-left-radius:2px;-o-border-bottom-left-radius:2px;border-bottom-left-radius:2px;-webkit-border-top-left-radius:2px;-moz-border-top-left-radius:2px;-ms-border-top-left-radius:2px;-o-border-top-left-radius:2px;border-top-left-radius:2px}div.v-pagination>ul>li:last-child>a{-webkit-border-top-right-radius:2px;-moz-border-top-right-radius:2px;-ms-border-top-right-radius:2px;-o-border-top-right-radius:2px;border-top-right-radius:2px;-webkit-border-bottom-right-radius:2px;-moz-border-bottom-right-radius:2px;-ms-border-bottom-right-radius:2px;-o-border-bottom-right-radius:2px;border-bottom-right-radius:2px}div.v-pagination>ul>li.v-pagination__list select{margin-left:5px;width:auto!important;font-size:12px;padding:0;border:1px solid #ccc;color:#333;outline:0}div.v-pagination>ul>li.v-pagination__list select:hover{-webkit-box-shadow:0 0 2px rgba(0,0,0,.2);-moz-box-shadow:0 0 2px rgba(0,0,0,.2);-ms-box-shadow:0 0 2px rgba(0,0,0,.2);-o-box-shadow:0 0 2px rgba(0,0,0,.2);box-shadow:0 0 2px rgba(0,0,0,.2)}div.v-pagination>ul>li.v-pagination__list select[disabled]{color:#999}div.v-pagination.v-pagination--no-border>ul{box-shadow:none}div.v-pagination.v-pagination--no-border>ul>li:not(.active):not(.disabled):not(.v-pagination__info):not(.v-pagination__list) a:hover{box-shadow:none;z-index:auto;background-color:#ddd}div.v-pagination.v-pagination--no-border>ul>li.active a{background-color:#f6f6f6;color:#aaa}div.v-pagination.v-pagination--no-border>ul>li>a{border:0}div.v-pagination.v-pagination--no-border>ul>li>a:hover{z-index:auto}\", \"\"]);\n\n// exports\n\n\n/***/ }),\n/* 4 */\n/***/ (function(module, exports) {\n\n/*\n\tMIT License http://www.opensource.org/licenses/mit-license.php\n\tAuthor Tobias Koppers @sokra\n*/\n// css base code, injected by the css-loader\nmodule.exports = function(useSourceMap) {\n\tvar list = [];\n\n\t// return the list of modules as css string\n\tlist.toString = function toString() {\n\t\treturn this.map(function (item) {\n\t\t\tvar content = cssWithMappingToString(item, useSourceMap);\n\t\t\tif(item[2]) {\n\t\t\t\treturn \"@media \" + item[2] + \"{\" + content + \"}\";\n\t\t\t} else {\n\t\t\t\treturn content;\n\t\t\t}\n\t\t}).join(\"\");\n\t};\n\n\t// import a list of modules into the list\n\tlist.i = function(modules, mediaQuery) {\n\t\tif(typeof modules === \"string\")\n\t\t\tmodules = [[null, modules, \"\"]];\n\t\tvar alreadyImportedModules = {};\n\t\tfor(var i = 0; i < this.length; i++) {\n\t\t\tvar id = this[i][0];\n\t\t\tif(typeof id === \"number\")\n\t\t\t\talreadyImportedModules[id] = true;\n\t\t}\n\t\tfor(i = 0; i < modules.length; i++) {\n\t\t\tvar item = modules[i];\n\t\t\t// skip already imported module\n\t\t\t// this implementation is not 100% perfect for weird media query combinations\n\t\t\t// when a module is imported multiple times with different media queries.\n\t\t\t// I hope this will never occur (Hey this way we have smaller bundles)\n\t\t\tif(typeof item[0] !== \"number\" || !alreadyImportedModules[item[0]]) {\n\t\t\t\tif(mediaQuery && !item[2]) {\n\t\t\t\t\titem[2] = mediaQuery;\n\t\t\t\t} else if(mediaQuery) {\n\t\t\t\t\titem[2] = \"(\" + item[2] + \") and (\" + mediaQuery + \")\";\n\t\t\t\t}\n\t\t\t\tlist.push(item);\n\t\t\t}\n\t\t}\n\t};\n\treturn list;\n};\n\nfunction cssWithMappingToString(item, useSourceMap) {\n\tvar content = item[1] || '';\n\tvar cssMapping = item[3];\n\tif (!cssMapping) {\n\t\treturn content;\n\t}\n\n\tif (useSourceMap && typeof btoa === 'function') {\n\t\tvar sourceMapping = toComment(cssMapping);\n\t\tvar sourceURLs = cssMapping.sources.map(function (source) {\n\t\t\treturn '/*# sourceURL=' + cssMapping.sourceRoot + source + ' */'\n\t\t});\n\n\t\treturn [content].concat(sourceURLs).concat([sourceMapping]).join('\\n');\n\t}\n\n\treturn [content].join('\\n');\n}\n\n// Adapted from convert-source-map (MIT)\nfunction toComment(sourceMap) {\n\t// eslint-disable-next-line no-undef\n\tvar base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))));\n\tvar data = 'sourceMappingURL=data:application/json;charset=utf-8;base64,' + base64;\n\n\treturn '/*# ' + data + ' */';\n}\n\n\n/***/ }),\n/* 5 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\nObject.defineProperty(__webpack_exports__, \"__esModule\", { value: true });\n/* harmony export (immutable) */ __webpack_exports__[\"default\"] = addStylesClient;\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__listToStyles__ = __webpack_require__(6);\n/*\n MIT License http://www.opensource.org/licenses/mit-license.php\n Author Tobias Koppers @sokra\n Modified by Evan You @yyx990803\n*/\n\n\n\nvar hasDocument = typeof document !== 'undefined'\n\nif (typeof DEBUG !== 'undefined' && DEBUG) {\n if (!hasDocument) {\n throw new Error(\n 'vue-style-loader cannot be used in a non-browser environment. ' +\n \"Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.\"\n ) }\n}\n\n/*\ntype StyleObject = {\n id: number;\n parts: Array<StyleObjectPart>\n}\n\ntype StyleObjectPart = {\n css: string;\n media: string;\n sourceMap: ?string\n}\n*/\n\nvar stylesInDom = {/*\n [id: number]: {\n id: number,\n refs: number,\n parts: Array<(obj?: StyleObjectPart) => void>\n }\n*/}\n\nvar head = hasDocument && (document.head || document.getElementsByTagName('head')[0])\nvar singletonElement = null\nvar singletonCounter = 0\nvar isProduction = false\nvar noop = function () {}\nvar options = null\nvar ssrIdKey = 'data-vue-ssr-id'\n\n// Force single-tag solution on IE6-9, which has a hard limit on the # of <style>\n// tags it will allow on a page\nvar isOldIE = typeof navigator !== 'undefined' && /msie [6-9]\\b/.test(navigator.userAgent.toLowerCase())\n\nfunction addStylesClient (parentId, list, _isProduction, _options) {\n isProduction = _isProduction\n\n options = _options || {}\n\n var styles = Object(__WEBPACK_IMPORTED_MODULE_0__listToStyles__[\"a\" /* default */])(parentId, list)\n addStylesToDom(styles)\n\n return function update (newList) {\n var mayRemove = []\n for (var i = 0; i < styles.length; i++) {\n var item = styles[i]\n var domStyle = stylesInDom[item.id]\n domStyle.refs--\n mayRemove.push(domStyle)\n }\n if (newList) {\n styles = Object(__WEBPACK_IMPORTED_MODULE_0__listToStyles__[\"a\" /* default */])(parentId, newList)\n addStylesToDom(styles)\n } else {\n styles = []\n }\n for (var i = 0; i < mayRemove.length; i++) {\n var domStyle = mayRemove[i]\n if (domStyle.refs === 0) {\n for (var j = 0; j < domStyle.parts.length; j++) {\n domStyle.parts[j]()\n }\n delete stylesInDom[domStyle.id]\n }\n }\n }\n}\n\nfunction addStylesToDom (styles /* Array<StyleObject> */) {\n for (var i = 0; i < styles.length; i++) {\n var item = styles[i]\n var domStyle = stylesInDom[item.id]\n if (domStyle) {\n domStyle.refs++\n for (var j = 0; j < domStyle.parts.length; j++) {\n domStyle.parts[j](item.parts[j])\n }\n for (; j < item.parts.length; j++) {\n domStyle.parts.push(addStyle(item.parts[j]))\n }\n if (domStyle.parts.length > item.parts.length) {\n domStyle.parts.length = item.parts.length\n }\n } else {\n var parts = []\n for (var j = 0; j < item.parts.length; j++) {\n parts.push(addStyle(item.parts[j]))\n }\n stylesInDom[item.id] = { id: item.id, refs: 1, parts: parts }\n }\n }\n}\n\nfunction createStyleElement () {\n var styleElement = document.createElement('style')\n styleElement.type = 'text/css'\n head.appendChild(styleElement)\n return styleElement\n}\n\nfunction addStyle (obj /* StyleObjectPart */) {\n var update, remove\n var styleElement = document.querySelector('style[' + ssrIdKey + '~=\"' + obj.id + '\"]')\n\n if (styleElement) {\n if (isProduction) {\n // has SSR styles and in production mode.\n // simply do nothing.\n return noop\n } else {\n // has SSR styles but in dev mode.\n // for some reason Chrome can't handle source map in server-rendered\n // style tags - source maps in <style> only works if the style tag is\n // created and inserted dynamically. So we remove the server rendered\n // styles and inject new ones.\n styleElement.parentNode.removeChild(styleElement)\n }\n }\n\n if (isOldIE) {\n // use singleton mode for IE9.\n var styleIndex = singletonCounter++\n styleElement = singletonElement || (singletonElement = createStyleElement())\n update = applyToSingletonTag.bind(null, styleElement, styleIndex, false)\n remove = applyToSingletonTag.bind(null, styleElement, styleIndex, true)\n } else {\n // use multi-style-tag mode in all other cases\n styleElement = createStyleElement()\n update = applyToTag.bind(null, styleElement)\n remove = function () {\n styleElement.parentNode.removeChild(styleElement)\n }\n }\n\n update(obj)\n\n return function updateStyle (newObj /* StyleObjectPart */) {\n if (newObj) {\n if (newObj.css === obj.css &&\n newObj.media === obj.media &&\n newObj.sourceMap === obj.sourceMap) {\n return\n }\n update(obj = newObj)\n } else {\n remove()\n }\n }\n}\n\nvar replaceText = (function () {\n var textStore = []\n\n return function (index, replacement) {\n textStore[index] = replacement\n return textStore.filter(Boolean).join('\\n')\n }\n})()\n\nfunction applyToSingletonTag (styleElement, index, remove, obj) {\n var css = remove ? '' : obj.css\n\n if (styleElement.styleSheet) {\n styleElement.styleSheet.cssText = replaceText(index, css)\n } else {\n var cssNode = document.createTextNode(css)\n var childNodes = styleElement.childNodes\n if (childNodes[index]) styleElement.removeChild(childNodes[index])\n if (childNodes.length) {\n styleElement.insertBefore(cssNode, childNodes[index])\n } else {\n styleElement.appendChild(cssNode)\n }\n }\n}\n\nfunction applyToTag (styleElement, obj) {\n var css = obj.css\n var media = obj.media\n var sourceMap = obj.sourceMap\n\n if (media) {\n styleElement.setAttribute('media', media)\n }\n if (options.ssrId) {\n styleElement.setAttribute(ssrIdKey, obj.id)\n }\n\n if (sourceMap) {\n // https://developer.chrome.com/devtools/docs/javascript-debugging\n // this makes source maps inside style tags work properly in Chrome\n css += '\\n/*# sourceURL=' + sourceMap.sources[0] + ' */'\n // http://stackoverflow.com/a/26603875\n css += '\\n/*# sourceMappingURL=data:application/json;base64,' + btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))) + ' */'\n }\n\n if (styleElement.styleSheet) {\n styleElement.styleSheet.cssText = css\n } else {\n while (styleElement.firstChild) {\n styleElement.removeChild(styleElement.firstChild)\n }\n styleElement.appendChild(document.createTextNode(css))\n }\n}\n\n\n/***/ }),\n/* 6 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (immutable) */ __webpack_exports__[\"a\"] = listToStyles;\n/**\n * Translates the list format produced by css-loader into something\n * easier to manipulate.\n */\nfunction listToStyles (parentId, list) {\n var styles = []\n var newStyles = {}\n for (var i = 0; i < list.length; i++) {\n var item = list[i]\n var id = item[0]\n var css = item[1]\n var media = item[2]\n var sourceMap = item[3]\n var part = {\n id: parentId + ':' + i,\n css: css,\n media: media,\n sourceMap: sourceMap\n }\n if (!newStyles[id]) {\n styles.push(newStyles[id] = { id: id, parts: [part] })\n } else {\n newStyles[id].parts.push(part)\n }\n }\n return styles\n}\n\n\n/***/ }),\n/* 7 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = {\n cn: {\n pageLength: '每页记录数 ',\n pageInfo: '当前显示第 #pageNumber# / #totalPage# 页(共#totalRow#条记录)',\n first: '首页',\n previous: '«',\n next: '»',\n last: '尾页'\n },\n en: {\n pageLength: 'Page length ',\n pageInfo: 'Current #pageNumber# / #totalPage# (total #totalRow# records)',\n first: 'First',\n previous: '«',\n next: '»',\n last: 'Last'\n },\n de: {\n pageLength: 'Seitenlänge ',\n pageInfo: 'Aktuell #pageNumber# / #totalPage# (gesamt #totalRow# Aufzeichnungen)',\n first: 'Zuerst',\n previous: '«',\n next: '»',\n last: 'Letzte'\n },\n jp: {\n pageLength: 'ページごとの記録数',\n pageInfo: '現在の第 #pageNumber# / #totalPage# ページ(全部で #totalRow# 条の記録)',\n first: 'トップページ',\n previous: '«',\n next: '»',\n last: '尾のページ'\n },\n pt: {\n pageLength: 'Resultados por página ',\n pageInfo: '#pageNumber# / #totalPage# (total de #totalRow#)',\n first: 'Início',\n previous: '<',\n next: '>',\n last: 'Fim'\n }\n};\n\n/***/ }),\n/* 8 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.getPageNumberStart = getPageNumberStart;\nvar FIRST = exports.FIRST = 1;\n\nvar defaultPageNumberSize = exports.defaultPageNumberSize = 5;\n\nvar defaultPageSize = exports.defaultPageSize = 10;\n\nvar defaultPageSizeMenu = exports.defaultPageSizeMenu = [defaultPageSize, 20, 50, 100];\n\nfunction getPageNumberStart(current, totalPage, pageNumberSize) {\n if (totalPage <= pageNumberSize) return FIRST;\n\n var half = Math.floor(pageNumberSize / 2);\n var lastRangeStart = totalPage - pageNumberSize + 1;\n var start = current - half;\n\n if (start < FIRST) return FIRST;\n if (start > lastRangeStart) return lastRangeStart;\n\n return start;\n}\n\n/***/ })\n/******/ ]);\n});\n\n\n// WEBPACK FOOTER //\n// v-page.js","import Page from './Page'\r\n\r\nPage.install = (Vue, options = {}) => {\r\n if (Object.keys(options).length) {\r\n const { props } = Page\r\n const {\r\n language,\r\n align,\r\n info,\r\n border,\r\n pageNumber,\r\n first,\r\n last,\r\n pageSizeMenu\r\n } = options\r\n\r\n if (language) props.language.default = language\r\n if (align) props.align.default = align\r\n if (typeof info === 'boolean') props.info.default = info\r\n if (typeof border === 'boolean') props.border.default = border\r\n if (typeof pageNumber === 'boolean') props.pageNumber.default = pageNumber\r\n if (typeof first === 'boolean') props.first.default = first\r\n if (typeof last === 'boolean') props.last.default = last\r\n if (typeof pageSizeMenu !== 'undefined') props.pageSizeMenu.default = pageSizeMenu\r\n }\r\n Vue.component(Page.name, Page)\r\n}\r\n\r\nexport { Page }\r\nexport default Page\r\n\n\n\n// WEBPACK FOOTER //\n// ./src/index.js","import './page.sass'\r\nimport languages from './language'\r\nimport {\r\n FIRST, defaultPageSize, defaultPageNumberSize,\r\n defaultPageSizeMenu, getPageNumberStart\r\n} from './helper'\r\n\r\nexport default {\r\n name: 'v-page',\r\n props: {\r\n value: { type: Number, default: 0 },\r\n totalRow: { type: Number, default: 0 },\r\n language: { type: String, default: 'cn' },\r\n /**\r\n * Page size list\r\n * false: close page size menu bar\r\n * array: custom page sizes menu\r\n */\r\n pageSizeMenu: {\r\n type: [Boolean, Array],\r\n default: () => defaultPageSizeMenu\r\n },\r\n /**\r\n * Pagination alignment direction\r\n * `left`, `center` and `right`(default)\r\n */\r\n align: { type: String, default: 'right' },\r\n disabled: { type: Boolean, default: false },\r\n border: { type: Boolean, default: true },\r\n info: { type: Boolean, default: true },\r\n pageNumber: { type: Boolean, default: true },\r\n /** first page button */\r\n first: { type: Boolean, default: true },\r\n /** last page button */\r\n last: { type: Boolean, default: true }\r\n },\r\n data () {\r\n return {\r\n current: 0,\r\n pageSize: this.pageSizeMenu === false ? defaultPageSize : this.pageSizeMenu[0],\r\n pageNumberSize: defaultPageNumberSize,\r\n i18n: languages[this.language] || languages.cn,\r\n lastPageSize: -1\r\n }\r\n },\r\n computed: {\r\n totalPage () {\r\n return Math.ceil(this.totalRow / this.pageSize)\r\n },\r\n pageNumbers () {\r\n const { current, pageNumberSize, totalPage } = this\r\n const start = getPageNumberStart(current, totalPage, pageNumberSize)\r\n\r\n return Array.apply(null, { length: pageNumberSize })\r\n .map((val, index) => start + index)\r\n .filter(val => val >= FIRST && val <= totalPage)\r\n },\r\n pageInfo () {\r\n return this.i18n.pageInfo\r\n .replace('#pageNumber#', this.current)\r\n .replace('#totalPage#', this.totalPage)\r\n .replace('#totalRow#', this.totalRow)\r\n },\r\n classes () {\r\n return {\r\n 'v-pagination': true,\r\n 'v-pagination--no-border': !this.border,\r\n 'v-pagination--right': this.align === 'right',\r\n 'v-pagination--center': this.align === 'center',\r\n 'v-pagination--disabled': this.disabled\r\n }\r\n },\r\n isFirst () {\r\n return this.current === FIRST\r\n },\r\n isLast () {\r\n return this.current === this.totalPage\r\n }\r\n },\r\n watch: {\r\n value (val) {\r\n if (typeof val === 'number' && val > 0) this.goPage(val, false)\r\n }\r\n },\r\n render (h) {\r\n const { pageNumberGenerator, current, i18n, isFirst, isLast } = this\r\n const items = []\r\n // page length list\r\n if (Array.isArray(this.pageSizeMenu) && this.pageSizeMenu.length) {\r\n items.push(h('li', { class: 'v-pagination__list' }, [h('a', [\r\n h('span', i18n.pageLength),\r\n h('select', {\r\n attrs: { disabled: this.disabled },\r\n on: {\r\n change: e => {\r\n this.pageSize = Number(e.srcElement.value)\r\n this.goPage()\r\n }\r\n }\r\n }, this.pageSizeMenu.map(val => {\r\n return h('option', { attrs: { value: val } }, val)\r\n }))\r\n ])]))\r\n }\r\n // page info\r\n if (this.info) {\r\n items.push(h('li', { class: 'v-pagination__info' }, [h('a', this.pageInfo)]))\r\n }\r\n // first\r\n if (this.first) {\r\n const firstClass = { 'v-pagination__first': true, disabled: isFirst }\r\n items.push(pageNumberGenerator(firstClass, FIRST, i18n.first))\r\n }\r\n // previous\r\n const prevClass = { 'v-pagination__previous': true, disabled: isFirst }\r\n items.push(pageNumberGenerator(prevClass, current - 1, i18n.previous))\r\n // page numbers\r\n if (this.pageNumber) {\r\n items.push(...this.pageNumbers.map(val => {\r\n const numberClass = { active: val === current }\r\n return pageNumberGenerator(numberClass, val, val)\r\n }))\r\n }\r\n // next\r\n const nextClass = { 'v-pagination__next': true, disabled: isLast }\r\n items.push(pageNumberGenerator(nextClass, current + 1, i18n.next))\r\n // last\r\n if (this.last) {\r\n const lastClass = { 'v-pagination__last': true, disabled: isLast }\r\n items.push(pageNumberGenerator(lastClass, this.totalPage, i18n.last))\r\n }\r\n return h('div', { class: this.classes }, [h('ul', items)])\r\n },\r\n methods: {\r\n goPage (pNum = FIRST, respond = true) {\r\n if (this.disabled) return\r\n if (typeof pNum !== 'number') return\r\n let num = pNum < FIRST ? FIRST : pNum\r\n if (pNum > this.totalPage && this.totalPage > 0) num = this.totalPage\r\n\r\n // exit when duplicate operation\r\n if (num === this.current && this.pageSize === this.lastPageSize) return\r\n\r\n this.current = num\r\n // update v-model value\r\n if (respond) this.$emit('input', this.current)\r\n this.lastPageSize = this.pageSize\r\n this.change()\r\n },\r\n reload () {\r\n this.change()\r\n },\r\n change () {\r\n this.$emit('page-change', {\r\n pageNumber: this.current,\r\n pageSize: Number(this.pageSize)\r\n })\r\n },\r\n pageNumberGenerator (classes, num, text) {\r\n const option = {\r\n attrs: { href: 'javascript:void(0)' },\r\n on: { click: () => this.goPage(num) }\r\n }\r\n return this.$createElement('li', { class: classes }, [\r\n this.$createElement('a', option, text)\r\n ])\r\n }\r\n },\r\n mounted () {\r\n this.goPage(this.value || FIRST)\r\n }\r\n}\r\n\n\n\n// WEBPACK FOOTER //\n// ./src/Page.js","// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = require(\"!!../node_modules/.pnpm/registry.npmmirror.com+css-loader@0.28.11/node_modules/css-loader/index.js!../node_modules/.pnpm/registry.npmmirror.com+sass-loader@7.3.1_webpack@3.12.0/node_modules/sass-loader/dist/cjs.js!./page.sass\");\nif(content.__esModule) content = content.default;\nif(typeof content === 'string') content = [[module.id, content, '']];\nif(content.locals) module.exports = content.locals;\n// add the styles to the DOM\nvar add = require(\"!../node_modules/.pnpm/registry.nlark.com+vue-style-loader@4.1.3/node_modules/vue-style-loader/lib/addStylesClient.js\").default\nvar update = add(\"271f52e6\", content, true, {});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/page.sass\n// module id = 2\n// module chunks = 0","exports = module.exports = require(\"../node_modules/.pnpm/registry.npmmirror.com+css-loader@0.28.11/node_modules/css-loader/lib/css-base.js\")(false);\n// imports\n\n\n// module\nexports.push([module.id, \"div.v-pagination{margin:0;display:block}div.v-pagination.v-pagination--right{text-align:right}div.v-pagination.v-pagination--center{text-align:center}div.v-pagination.v-pagination--disabled li a{color:#999;cursor:default}div.v-pagination.v-pagination--disabled li a:hover{color:#999;background-color:#fff;box-shadow:none;z-index:auto}div.v-pagination.v-pagination--disabled li.active a{background-color:#f6f6f6}div.v-pagination>ul{display:inline-block;list-style:none;margin:0;padding:0;-webkit-box-shadow:0 1px 2px rgba(0,0,0,.05);-moz-box-shadow:0 1px 2px rgba(0,0,0,.05);-ms-box-shadow:0 1px 2px rgba(0,0,0,.05);-o-box-shadow:0 1px 2px rgba(0,0,0,.05);box-shadow:0 1px 2px rgba(0,0,0,.05)}div.v-pagination>ul>li{text-align:center;margin:0;display:inline}div.v-pagination>ul>li>a{margin:0 0 0 -1px;outline:none;position:relative;border:1px solid #dee2e6;padding:6px 12px;line-height:1.43;box-shadow:none;background-color:#fff;font-size:14px;display:inline-block;text-decoration:none;color:#333;-webkit-transition:all .5s cubic-bezier(.175,.885,.32,1);-moz-transition:all .5s cubic-bezier(.175,.885,.32,1);-ms-transition:all .5s cubic-bezier(.175,.885,.32,1);-o-transition:all .5s cubic-bezier(.175,.885,.32,1);transition:all .5s cubic-bezier(.175,.885,.32,1)}div.v-pagination>ul>li>a:hover{z-index:2;-webkit-box-shadow:0 0 8px rgba(0,0,0,.2);-moz-box-shadow:0 0 8px rgba(0,0,0,.2);-ms-box-shadow:0 0 8px rgba(0,0,0,.2);-o-box-shadow:0 0 8px rgba(0,0,0,.2);box-shadow:0 0 8px rgba(0,0,0,.2)}div.v-pagination>ul>li.disabled>a,div.v-pagination>ul>li.v-pagination__info>a,div.v-pagination>ul>li.v-pagination__list>a{color:#999;cursor:default}div.v-pagination>ul>li.disabled>a:hover,div.v-pagination>ul>li.v-pagination__info>a:hover,div.v-pagination>ul>li.v-pagination__list>a:hover{color:#999;background-color:#fff;box-shadow:none;z-index:auto}div.v-pagination>ul>li.active>a{cursor:default;color:#999;background-color:#eee}div.v-pagination>ul>li.active>a:hover{box-shadow:none;z-index:auto}div.v-pagination>ul>li:first-child>a{border-left-width:1px;-webkit-border-bottom-left-radius:2px;-moz-border-bottom-left-radius:2px;-ms-border-bottom-left-radius:2px;-o-border-bottom-left-radius:2px;border-bottom-left-radius:2px;-webkit-border-top-left-radius:2px;-moz-border-top-left-radius:2px;-ms-border-top-left-radius:2px;-o-border-top-left-radius:2px;border-top-left-radius:2px}div.v-pagination>ul>li:last-child>a{-webkit-border-top-right-radius:2px;-moz-border-top-right-radius:2px;-ms-border-top-right-radius:2px;-o-border-top-right-radius:2px;border-top-right-radius:2px;-webkit-border-bottom-right-radius:2px;-moz-border-bottom-right-radius:2px;-ms-border-bottom-right-radius:2px;-o-border-bottom-right-radius:2px;border-bottom-right-radius:2px}div.v-pagination>ul>li.v-pagination__list select{margin-left:5px;width:auto!important;font-size:12px;padding:0;border:1px solid #ccc;color:#333;outline:0}div.v-pagination>ul>li.v-pagination__list select:hover{-webkit-box-shadow:0 0 2px rgba(0,0,0,.2);-moz-box-shadow:0 0 2px rgba(0,0,0,.2);-ms-box-shadow:0 0 2px rgba(0,0,0,.2);-o-box-shadow:0 0 2px rgba(0,0,0,.2);box-shadow:0 0 2px rgba(0,0,0,.2)}div.v-pagination>ul>li.v-pagination__list select[disabled]{color:#999}div.v-pagination.v-pagination--no-border>ul{box-shadow:none}div.v-pagination.v-pagination--no-border>ul>li:not(.active):not(.disabled):not(.v-pagination__info):not(.v-pagination__list) a:hover{box-shadow:none;z-index:auto;background-color:#ddd}div.v-pagination.v-pagination--no-border>ul>li.active a{background-color:#f6f6f6;color:#aaa}div.v-pagination.v-pagination--no-border>ul>li>a{border:0}div.v-pagination.v-pagination--no-border>ul>li>a:hover{z-index:auto}\", \"\"]);\n\n// exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/.pnpm/registry.npmmirror.com+css-loader@0.28.11/node_modules/css-loader!./node_modules/.pnpm/registry.npmmirror.com+sass-loader@7.3.1_webpack@3.12.0/node_modules/sass-loader/dist/cjs.js!./src/page.sass\n// module id = 3\n// module chunks = 0","/*\n\tMIT License http://www.opensource.org/licenses/mit-license.php\n\tAuthor Tobias Koppers @sokra\n*/\n// css base code, injected by the css-loader\nmodule.exports = function(useSourceMap) {\n\tvar list = [];\n\n\t// return the list of modules as css string\n\tlist.toString = function toString() {\n\t\treturn this.map(function (item) {\n\t\t\tvar content = cssWithMappingToString(item, useSourceMap);\n\t\t\tif(item[2]) {\n\t\t\t\treturn \"@media \" + item[2] + \"{\" + content + \"}\";\n\t\t\t} else {\n\t\t\t\treturn content;\n\t\t\t}\n\t\t}).join(\"\");\n\t};\n\n\t// import a list of modules into the list\n\tlist.i = function(modules, mediaQuery) {\n\t\tif(typeof modules === \"string\")\n\t\t\tmodules = [[null, modules, \"\"]];\n\t\tvar alreadyImportedModules = {};\n\t\tfor(var i = 0; i < this.length; i++) {\n\t\t\tvar id = this[i][0];\n\t\t\tif(typeof id === \"number\")\n\t\t\t\talreadyImportedModules[id] = true;\n\t\t}\n\t\tfor(i = 0; i < modules.length; i++) {\n\t\t\tvar item = modules[i];\n\t\t\t// skip already imported module\n\t\t\t// this implementation is not 100% perfect for weird media query combinations\n\t\t\t// when a module is imported multiple times with different media queries.\n\t\t\t// I hope this will never occur (Hey this way we have smaller bundles)\n\t\t\tif(typeof item[0] !== \"number\" || !alreadyImportedModules[item[0]]) {\n\t\t\t\tif(mediaQuery && !item[2]) {\n\t\t\t\t\titem[2] = mediaQuery;\n\t\t\t\t} else if(mediaQuery) {\n\t\t\t\t\titem[2] = \"(\" + item[2] + \") and (\" + mediaQuery + \")\";\n\t\t\t\t}\n\t\t\t\tlist.push(item);\n\t\t\t}\n\t\t}\n\t};\n\treturn list;\n};\n\nfunction cssWithMappingToString(item, useSourceMap) {\n\tvar content = item[1] || '';\n\tvar cssMapping = item[3];\n\tif (!cssMapping) {\n\t\treturn content;\n\t}\n\n\tif (useSourceMap && typeof btoa === 'function') {\n\t\tvar sourceMapping = toComment(cssMapping);\n\t\tvar sourceURLs = cssMapping.sources.map(function (source) {\n\t\t\treturn '/*# sourceURL=' + cssMapping.sourceRoot + source + ' */'\n\t\t});\n\n\t\treturn [content].concat(sourceURLs).concat([sourceMapping]).join('\\n');\n\t}\n\n\treturn [content].join('\\n');\n}\n\n// Adapted from convert-source-map (MIT)\nfunction toComment(sourceMap) {\n\t// eslint-disable-next-line no-undef\n\tvar base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))));\n\tvar data = 'sourceMappingURL=data:application/json;charset=utf-8;base64,' + base64;\n\n\treturn '/*# ' + data + ' */';\n}\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/.pnpm/registry.npmmirror.com+css-loader@0.28.11/node_modules/css-loader/lib/css-base.js\n// module id = 4\n// module chunks = 0","/*\n MIT License http://www.opensource.org/licenses/mit-license.php\n Author Tobias Koppers @sokra\n Modified by Evan You @yyx990803\n*/\n\nimport listToStyles from './listToStyles'\n\nvar hasDocument = typeof document !== 'undefined'\n\nif (typeof DEBUG !== 'undefined' && DEBUG) {\n if (!hasDocument) {\n throw new Error(\n 'vue-style-loader cannot be used in a non-browser environment. ' +\n \"Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.\"\n ) }\n}\n\n/*\ntype StyleObject = {\n id: number;\n parts: Array<StyleObjectPart>\n}\n\ntype StyleObjectPart = {\n css: string;\n media: string;\n sourceMap: ?string\n}\n*/\n\nvar stylesInDom = {/*\n [id: number]: {\n id: number,\n refs: number,\n parts: Array<(obj?: StyleObjectPart) => void>\n }\n*/}\n\nvar head = hasDocument && (document.head || document.getElementsByTagName('head')[0])\nvar singletonElement = null\nvar singletonCounter = 0\nvar isProduction = false\nvar noop = function () {}\nvar options = null\nvar ssrIdKey = 'data-vue-ssr-id'\n\n// Force single-tag solution on IE6-9, which has a hard limit on the # of <style>\n// tags it will allow on a page\nvar isOldIE = typeof navigator !== 'undefined' && /msie [6-9]\\b/.test(navigator.userAgent.toLowerCase())\n\nexport default function addStylesClient (parentId, list, _isProduction, _options) {\n isProduction = _isProduction\n\n options = _options || {}\n\n var styles = listToStyles(parentId, list)\n addStylesToDom(styles)\n\n return function update (newList) {\n var mayRemove = []\n for (var i = 0; i < styles.length; i++) {\n var item = styles[i]\n var domStyle = stylesInDom[item.id]\n domStyle.refs--\n mayRemove.push(domStyle)\n }\n if (newList) {\n styles = listToStyles(parentId, newList)\n addStylesToDom(styles)\n } else {\n styles = []\n }\n for (var i = 0; i < mayRemove.length; i++) {\n var domStyle = mayRemove[i]\n if (domStyle.refs === 0) {\n for (var j = 0; j < domStyle.parts.length; j++) {\n domStyle.parts[j]()\n }\n delete stylesInDom[domStyle.id]\n }\n }\n }\n}\n\nfunction addStylesToDom (styles /* Array<StyleObject> */) {\n for (var i = 0; i < styles.length; i++) {\n var item = styles[i]\n var domStyle = stylesInDom[item.id]\n if (domStyle) {\n domStyle.refs++\n for (var j = 0; j < domStyle.parts.length; j++) {\n domStyle.parts[j](item.parts[j])\n }\n for (; j < item.parts.length; j++) {\n domStyle.parts.push(addStyle(item.parts[j]))\n }\n if (domStyle.parts.length > item.parts.length) {\n domStyle.parts.length = item.parts.length\n }\n } else {\n var parts = []\n for (var j = 0; j < item.parts.length; j++) {\n parts.push(addStyle(item.parts[j]))\n }\n stylesInDom[item.id] = { id: item.id, refs: 1, parts: parts }\n }\n }\n}\n\nfunction createStyleElement () {\n var styleElement = document.createElement('style')\n styleElement.type = 'text/css'\n head.appendChild(styleElement)\n return styleElement\n}\n\nfunction addStyle (obj /* StyleObjectPart */) {\n var update, remove\n var styleElement = document.querySelector('style[' + ssrIdKey + '~=\"' + obj.id + '\"]')\n\n if (styleElement) {\n if (isProduction) {\n // has SSR styles and in production mode.\n // simply do nothing.\n return noop\n } else {\n // has SSR styles but in dev mode.\n // for some reason Chrome can't handle source map in server-rendered\n // style tags - source maps in <style> only works if the style tag is\n // created and inserted dynamically. So we remove the server rendered\n // styles and inject new ones.\n styleElement.parentNode.removeChild(styleElement)\n }\n }\n\n if (isOldIE) {\n // use singleton mode for IE9.\n var styleIndex = singletonCounter++\n styleElement = singletonElement || (singletonElement = createStyleElement())\n update = applyToSingletonTag.bind(null, styleElement, styleIndex, false)\n remove = applyToSingletonTag.bind(null, styleElement, styleIndex, true)\n } else {\n // use multi-style-tag mode in all other cases\n styleElement = createStyleElement()\n update = applyToTag.bind(null, styleElement)\n remove = function () {\n styleElement.parentNode.removeChild(styleElement)\n }\n }\n\n update(obj)\n\n return function updateStyle (newObj /* StyleObjectPart */) {\n if (newObj) {\n if (newObj.css === obj.css &&\n newObj.media === obj.media &&\n newObj.sourceMap === obj.sourceMap) {\n return\n }\n update(obj = newObj)\n } else {\n remove()\n }\n }\n}\n\nvar replaceText = (function () {\n var textStore = []\n\n return function (index, replacement) {\n textStore[index] = replacement\n return textStore.filter(Boolean).join('\\n')\n }\n})()\n\nfunction applyToSingletonTag (styleElement, index, remove, obj) {\n var css = remove ? '' : obj.css\n\n if (styleElement.styleSheet) {\n styleElement.styleSheet.cssText = replaceText(index, css)\n } else {\n var cssNode = document.createTextNode(css)\n var childNodes = styleElement.childNodes\n if (childNodes[index]) styleElement.removeChild(childNodes[index])\n if (childNodes.length) {\n styleElement.insertBefore(cssNode, childNodes[index])\n } else {\n styleElement.appendChild(cssNode)\n }\n }\n}\n\nfunction applyToTag (styleElement, obj) {\n var css = obj.css\n var media = obj.media\n var sourceMap = obj.sourceMap\n\n if (media) {\n styleElement.setAttribute('media', media)\n }\n if (options.ssrId) {\n styleElement.setAttribute(ssrIdKey, obj.id)\n }\n\n if (sourceMap) {\n // https://developer.chrome.com/devtools/docs/javascript-debugging\n // this makes source maps inside style tags work properly in Chrome\n css += '\\n/*# sourceURL=' + sourceMap.sources[0] + ' */'\n // http://stackoverflow.com/a/26603875\n css += '\\n/*# sourceMappingURL=data:application/json;base64,' + btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))) + ' */'\n }\n\n if (styleElement.styleSheet) {\n styleElement.styleSheet.cssText = css\n } else {\n while (styleElement.firstChild) {\n styleElement.removeChild(styleElement.firstChild)\n }\n styleElement.appendChild(document.createTextNode(css))\n }\n}\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/.pnpm/registry.nlark.com+vue-style-loader@4.1.3/node_modules/vue-style-loader/lib/addStylesClient.js\n// module id = 5\n// module chunks = 0","/**\n * Translates the list format produced by css-loader into something\n * easier to manipulate.\n */\nexport default function listToStyles (parentId, list) {\n var styles = []\n var newStyles = {}\n for (var i = 0; i < list.length; i++) {\n var item = list[i]\n var id = item[0]\n var css = item[1]\n var media = item[2]\n var sourceMap = item[3]\n var part = {\n id: parentId + ':' + i,\n css: css,\n media: media,\n sourceMap: sourceMap\n }\n if (!newStyles[id]) {\n styles.push(newStyles[id] = { id: id, parts: [part] })\n } else {\n newStyles[id].parts.push(part)\n }\n }\n return styles\n}\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/.pnpm/registry.nlark.com+vue-style-loader@4.1.3/node_modules/vue-style-loader/lib/listToStyles.js\n// module id = 6\n// module chunks = 0","export default {\r\n cn: {\r\n pageLength: '每页记录数 ',\r\n pageInfo: '当前显示第 #pageNumber# / #totalPage# 页(共#totalRow#条记录)',\r\n first: '首页',\r\n previous: '«',\r\n next: '»',\r\n last: '尾页'\r\n },\r\n en: {\r\n pageLength: 'Page length ',\r\n pageInfo: 'Current #pageNumber# / #totalPage# (total #totalRow# records)',\r\n first: 'First',\r\n previous: '«',\r\n next: '»',\r\n last: 'Last'\r\n },\r\n de: {\r\n pageLength: 'Seitenlänge ',\r\n pageInfo: 'Aktuell #pageNumber# / #totalPage# (gesamt #totalRow# Aufzeichnungen)',\r\n first: 'Zuerst',\r\n previous: '«',\r\n next: '»',\r\n last: 'Letzte'\r\n },\r\n jp: {\r\n pageLength: 'ページごとの記録数',\r\n pageInfo: '現在の第 #pageNumber# / #totalPage# ページ(全部で #totalRow# 条の記録)',\r\n first: 'トップページ',\r\n previous: '«',\r\n next: '»',\r\n last: '尾のページ'\r\n },\r\n pt: {\r\n pageLength: 'Resultados por página ',\r\n pageInfo: '#pageNumber# / #totalPage# (total de #totalRow#)',\r\n first: 'Início',\r\n previous: '<',\r\n next: '>',\r\n last: 'Fim'\r\n }\r\n}\r\n\n\n\n// WEBPACK FOOTER //\n// ./src/language.js","export const FIRST = 1\r\n\r\nexport const defaultPageNumberSize = 5\r\n\r\nexport const defaultPageSize = 10\r\n\r\nexport const defaultPageSizeMenu = [defaultPageSize, 20, 50, 100]\r\n\r\nexport function getPageNumberStart (current, totalPage, pageNumberSize) {\r\n if (totalPage <= pageNumberSize) return FIRST\r\n\r\n const half = Math.floor(pageNumberSize / 2)\r\n const lastRangeStart = totalPage - pageNumberSize + 1\r\n const start = current - half\r\n\r\n if (start < FIRST) return FIRST\r\n if (start > lastRangeStart) return lastRangeStart\r\n\r\n return start\r\n}\r\n\n\n\n// WEBPACK FOOTER //\n// ./src/helper.js"],"sourceRoot":""}
package/package.json CHANGED
@@ -1,13 +1,20 @@
1
1
  {
2
2
  "name": "v-page",
3
- "description": "A simple pagination bar, based on Vue2.x",
4
- "version": "2.0.6",
3
+ "description": "A simple pagination bar, based on Vue2",
4
+ "version": "2.0.10",
5
5
  "author": "TerryZ <terry5@foxmail.com>",
6
6
  "main": "dist/v-page.js",
7
+ "files": [
8
+ "/dist",
9
+ "/types"
10
+ ],
11
+ "typings": "types/index.d.ts",
7
12
  "license": "MIT",
8
13
  "scripts": {
9
14
  "dev": "cross-env NODE_ENV=development webpack-dev-server --open --hot",
10
- "build": "cross-env NODE_ENV=production webpack --progress --hide-modules"
15
+ "build": "cross-env NODE_ENV=production webpack --progress --hide-modules",
16
+ "test:unit": "mocha-webpack --webpack-config webpack.config.js --require tests/unit/setup.js tests/unit/**/*.spec.js",
17
+ "cover": "cross-env NODE_ENV=coverage nyc --reporter=lcov --reporter=text npm run test:unit"
11
18
  },
12
19
  "repository": {
13
20
  "type": "git",
@@ -21,27 +28,45 @@
21
28
  "page",
22
29
  "pagination"
23
30
  ],
24
- "dependencies": {
25
- "vue": "^2.6.10"
26
- },
27
31
  "browserslist": [
28
32
  "> 1%",
29
33
  "last 2 versions",
30
34
  "not ie <= 8"
31
35
  ],
32
36
  "devDependencies": {
33
- "babel-core": "^6.26.0",
37
+ "@vue/test-utils": "^1.2.2",
38
+ "babel-core": "^6.26.3",
34
39
  "babel-loader": "^7.1.2",
35
40
  "babel-preset-env": "^1.6.0",
41
+ "babel-preset-es2015": "^6.24.1",
36
42
  "babel-preset-stage-3": "^6.24.1",
43
+ "chai": "^4.3.4",
44
+ "codecov": "^3.5.0",
37
45
  "cross-env": "^5.0.5",
38
- "css-loader": "^0.28.7",
39
- "file-loader": "^1.1.4",
40
- "node-sass": "^4.12.0",
41
- "sass-loader": "^6.0.7",
42
- "vue-loader": "^13.0.5",
43
- "vue-template-compiler": "^2.6.10",
46
+ "css-loader": "^0.28.11",
47
+ "file-loader": "^1.1.11",
48
+ "istanbul-instrumenter-loader": "^3.0.1",
49
+ "jsdom": "^15.1.1",
50
+ "jsdom-global": "^3.0.2",
51
+ "mocha": "^6.1.4",
52
+ "mocha-webpack": "^1.1.0",
53
+ "nyc": "^14.1.1",
54
+ "sass": "^1.43.4",
55
+ "sass-loader": "^7.3.1",
56
+ "typescript": "^4.3.5",
57
+ "vue": "^2.6.14",
58
+ "vue-loader": "^13.7.3",
59
+ "vue-style-loader": "^4.1.3",
60
+ "vue-template-compiler": "^2.6.14",
44
61
  "webpack": "^3.6.0",
45
- "webpack-dev-server": "^3.1.14"
62
+ "webpack-dev-server": "^3.1.14",
63
+ "webpack-node-externals": "^1.7.2"
64
+ },
65
+ "nyc": {
66
+ "include": [
67
+ "src/Page.js"
68
+ ],
69
+ "instrument": false,
70
+ "sourceMap": false
46
71
  }
47
72
  }
@@ -0,0 +1,62 @@
1
+ export module 'v-page' {
2
+ import Vue from 'vue'
3
+
4
+ /**
5
+ * Pagination plugin for Vue
6
+ */
7
+ declare class Page extends Vue {
8
+ /**
9
+ * the number of current page
10
+ */
11
+ value: number
12
+ /**
13
+ * the number of total record
14
+ */
15
+ totalRow: number
16
+ /**
17
+ * v-page language
18
+ * `cn` by default
19
+ */
20
+ language?: string = 'cn'
21
+ /**
22
+ * page size list
23
+ */
24
+ pageSizeMenu?: boolean|number[] = [10, 20, 50, 100]
25
+ /**
26
+ * alignment direction
27
+ */
28
+ align?: string = 'right'
29
+ /**
30
+ * disabled the pagination
31
+ */
32
+ disabled?: boolean = false
33
+ /**
34
+ * whether to display the border
35
+ */
36
+ border?: boolean = true
37
+ /**
38
+ * whether to display page info bar
39
+ */
40
+ info?: boolean = true
41
+ /**
42
+ * whether to display page number buttons
43
+ */
44
+ pageNumber?: boolean = true
45
+ /**
46
+ * whether to display first page button
47
+ */
48
+ first?: boolean = true
49
+ /**
50
+ * whether to display last page button
51
+ */
52
+ last?: boolean = true
53
+ $emit(eventName: 'input'): this
54
+ /**
55
+ * page change event
56
+ * @param eventName
57
+ */
58
+ $emit(eventName: 'page-change'): this
59
+ }
60
+
61
+ export default Page
62
+ }
package/.babelrc DELETED
@@ -1,6 +0,0 @@
1
- {
2
- "presets": [
3
- ["env", { "modules": false }],
4
- "stage-3"
5
- ]
6
- }
package/.editorconfig DELETED
@@ -1,9 +0,0 @@
1
- root = true
2
-
3
- [*]
4
- charset = utf-8
5
- indent_style = space
6
- indent_size = 2
7
- end_of_line = lf
8
- insert_final_newline = true
9
- trim_trailing_whitespace = true