1 line
7.4 KiB
JSON
1 line
7.4 KiB
JSON
{"remainingRequest":"D:\\phpstudy_pro\\WWW\\travel\\admin\\node_modules\\babel-loader\\lib\\index.js!D:\\phpstudy_pro\\WWW\\travel\\admin\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\phpstudy_pro\\WWW\\travel\\admin\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\phpstudy_pro\\WWW\\travel\\admin\\src\\components\\PaginationFixed\\index.vue?vue&type=script&lang=js","dependencies":[{"path":"D:\\phpstudy_pro\\WWW\\travel\\admin\\src\\components\\PaginationFixed\\index.vue","mtime":1718611365518},{"path":"D:\\phpstudy_pro\\WWW\\travel\\admin\\babel.config.js","mtime":1718070785981},{"path":"D:\\phpstudy_pro\\WWW\\travel\\admin\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1718764957200},{"path":"D:\\phpstudy_pro\\WWW\\travel\\admin\\node_modules\\babel-loader\\lib\\index.js","mtime":1718764959024},{"path":"D:\\phpstudy_pro\\WWW\\travel\\admin\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1718764957200},{"path":"D:\\phpstudy_pro\\WWW\\travel\\admin\\node_modules\\vue-loader\\lib\\index.js","mtime":1718764959862}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:aW1wb3J0ICJjb3JlLWpzL21vZHVsZXMvZXMubnVtYmVyLmNvbnN0cnVjdG9yLmpzIjsKLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KCmltcG9ydCB7IHNjcm9sbFRvIH0gZnJvbSAnQC91dGlscy9zY3JvbGwtdG8nOwpleHBvcnQgZGVmYXVsdCB7CiAgbmFtZTogJ1BhZ2luYXRpb24nLAogIHByb3BzOiB7CiAgICB0b3RhbDogewogICAgICByZXF1aXJlZDogdHJ1ZSwKICAgICAgdHlwZTogTnVtYmVyCiAgICB9LAogICAgcGFnZTogewogICAgICB0eXBlOiBOdW1iZXIsCiAgICAgIGRlZmF1bHQ6IDEKICAgIH0sCiAgICBsaW1pdDogewogICAgICB0eXBlOiBOdW1iZXIsCiAgICAgIGRlZmF1bHQ6IDIwCiAgICB9LAogICAgcGFnZVNpemVzOiB7CiAgICAgIHR5cGU6IEFycmF5LAogICAgICBkZWZhdWx0OiBmdW5jdGlvbiBfZGVmYXVsdCgpIHsKICAgICAgICByZXR1cm4gWzEwLCAyMCwgMzAsIDUwXTsKICAgICAgfQogICAgfSwKICAgIGxheW91dDogewogICAgICB0eXBlOiBTdHJpbmcsCiAgICAgIGRlZmF1bHQ6ICd0b3RhbCwgc2l6ZXMsIHByZXYsIHBhZ2VyLCBuZXh0LCBqdW1wZXInCiAgICB9LAogICAgYmFja2dyb3VuZDogewogICAgICB0eXBlOiBCb29sZWFuLAogICAgICBkZWZhdWx0OiB0cnVlCiAgICB9LAogICAgYXV0b1Njcm9sbDogewogICAgICB0eXBlOiBCb29sZWFuLAogICAgICBkZWZhdWx0OiB0cnVlCiAgICB9LAogICAgaGlkZGVuOiB7CiAgICAgIHR5cGU6IEJvb2xlYW4sCiAgICAgIGRlZmF1bHQ6IGZhbHNlCiAgICB9CiAgfSwKICBjb21wdXRlZDogewogICAgY3VycmVudFBhZ2U6IHsKICAgICAgZ2V0OiBmdW5jdGlvbiBnZXQoKSB7CiAgICAgICAgcmV0dXJuIHRoaXMucGFnZTsKICAgICAgfSwKICAgICAgc2V0OiBmdW5jdGlvbiBzZXQodmFsKSB7CiAgICAgICAgdGhpcy4kZW1pdCgndXBkYXRlOnBhZ2UnLCB2YWwpOwogICAgICB9CiAgICB9LAogICAgcGFnZVNpemU6IHsKICAgICAgZ2V0OiBmdW5jdGlvbiBnZXQoKSB7CiAgICAgICAgcmV0dXJuIHRoaXMubGltaXQ7CiAgICAgIH0sCiAgICAgIHNldDogZnVuY3Rpb24gc2V0KHZhbCkgewogICAgICAgIHRoaXMuJGVtaXQoJ3VwZGF0ZTpsaW1pdCcsIHZhbCk7CiAgICAgIH0KICAgIH0KICB9LAogIG1ldGhvZHM6IHsKICAgIGhhbmRsZVNpemVDaGFuZ2U6IGZ1bmN0aW9uIGhhbmRsZVNpemVDaGFuZ2UodmFsKSB7CiAgICAgIHRoaXMuJGVtaXQoJ3BhZ2luYXRpb24nLCB7CiAgICAgICAgcGFnZTogdGhpcy5jdXJyZW50UGFnZSwKICAgICAgICBsaW1pdDogdmFsCiAgICAgIH0pOwogICAgICBpZiAodGhpcy5hdXRvU2Nyb2xsKSB7CiAgICAgICAgc2Nyb2xsVG8oMCwgODAwKTsKICAgICAgfQogICAgfSwKICAgIGhhbmRsZUN1cnJlbnRDaGFuZ2U6IGZ1bmN0aW9uIGhhbmRsZUN1cnJlbnRDaGFuZ2UodmFsKSB7CiAgICAgIHRoaXMuJGVtaXQoJ3BhZ2luYXRpb24nLCB7CiAgICAgICAgcGFnZTogdmFsLAogICAgICAgIGxpbWl0OiB0aGlzLnBhZ2VTaXplCiAgICAgIH0pOwogICAgICBpZiAodGhpcy5hdXRvU2Nyb2xsKSB7CiAgICAgICAgc2Nyb2xsVG8oMCwgODAwKTsKICAgICAgfQogICAgfQogIH0KfTs="},{"version":3,"names":["scrollTo","name","props","total","required","type","Number","page","default","limit","pageSizes","Array","_default","layout","String","background","Boolean","autoScroll","hidden","computed","currentPage","get","set","val","$emit","pageSize","methods","handleSizeChange","handleCurrentChange"],"sources":["src/components/PaginationFixed/index.vue"],"sourcesContent":["\r\n<!--调用也加样式-->\r\n<!--\r\n<style scoped>\r\n.app-container {\r\n position: relative;\r\n padding-bottom: 60px; /* 分页条的高度 */\r\n}\r\n\r\n.filter-container,\r\n.el-table {\r\n padding-bottom: 60px; /* 分页条的高度,以避免内容重叠 */\r\n}\r\n</style>\r\n-->\r\n\r\n<template>\r\n <div :class=\"{'hidden':hidden}\" class=\"pagination-container\">\r\n <el-pagination\r\n :background=\"background\"\r\n :current-page.sync=\"currentPage\"\r\n :page-size.sync=\"pageSize\"\r\n :layout=\"layout\"\r\n :page-sizes=\"pageSizes\"\r\n :total=\"total\"\r\n v-bind=\"$attrs\"\r\n @size-change=\"handleSizeChange\"\r\n @current-change=\"handleCurrentChange\"\r\n />\r\n </div>\r\n</template>\r\n\r\n<script>\r\nimport { scrollTo } from '@/utils/scroll-to'\r\n\r\nexport default {\r\n name: 'Pagination',\r\n props: {\r\n total: {\r\n required: true,\r\n type: Number\r\n },\r\n page: {\r\n type: Number,\r\n default: 1\r\n },\r\n limit: {\r\n type: Number,\r\n default: 20\r\n },\r\n pageSizes: {\r\n type: Array,\r\n default() {\r\n return [10, 20, 30, 50]\r\n }\r\n },\r\n layout: {\r\n type: String,\r\n default: 'total, sizes, prev, pager, next, jumper'\r\n },\r\n background: {\r\n type: Boolean,\r\n default: true\r\n },\r\n autoScroll: {\r\n type: Boolean,\r\n default: true\r\n },\r\n hidden: {\r\n type: Boolean,\r\n default: false\r\n }\r\n },\r\n computed: {\r\n currentPage: {\r\n get() {\r\n return this.page\r\n },\r\n set(val) {\r\n this.$emit('update:page', val)\r\n }\r\n },\r\n pageSize: {\r\n get() {\r\n return this.limit\r\n },\r\n set(val) {\r\n this.$emit('update:limit', val)\r\n }\r\n }\r\n },\r\n methods: {\r\n handleSizeChange(val) {\r\n this.$emit('pagination', { page: this.currentPage, limit: val })\r\n if (this.autoScroll) {\r\n scrollTo(0, 800)\r\n }\r\n },\r\n handleCurrentChange(val) {\r\n this.$emit('pagination', { page: val, limit: this.pageSize })\r\n if (this.autoScroll) {\r\n scrollTo(0, 800)\r\n }\r\n }\r\n }\r\n}\r\n</script>\r\n\r\n<style scoped>\r\n.pagination-container {\r\n background: #fff;\r\n padding: 32px 16px;\r\n}\r\n.pagination-container.hidden {\r\n display: none;\r\n}\r\n\r\n.pagination-container {\r\n position: fixed;\r\n bottom: 0;\r\n left: 0;\r\n width: 100%;\r\n background: #fff;\r\n padding: 40px 280px;\r\n box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);\r\n z-index: 100;\r\n}\r\n.pagination-container.hidden {\r\n display: none;\r\n}\r\n</style>\r\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiCA,SAAAA,QAAA;AAEA;EACAC,IAAA;EACAC,KAAA;IACAC,KAAA;MACAC,QAAA;MACAC,IAAA,EAAAC;IACA;IACAC,IAAA;MACAF,IAAA,EAAAC,MAAA;MACAE,OAAA;IACA;IACAC,KAAA;MACAJ,IAAA,EAAAC,MAAA;MACAE,OAAA;IACA;IACAE,SAAA;MACAL,IAAA,EAAAM,KAAA;MACAH,OAAA,WAAAI,SAAA;QACA;MACA;IACA;IACAC,MAAA;MACAR,IAAA,EAAAS,MAAA;MACAN,OAAA;IACA;IACAO,UAAA;MACAV,IAAA,EAAAW,OAAA;MACAR,OAAA;IACA;IACAS,UAAA;MACAZ,IAAA,EAAAW,OAAA;MACAR,OAAA;IACA;IACAU,MAAA;MACAb,IAAA,EAAAW,OAAA;MACAR,OAAA;IACA;EACA;EACAW,QAAA;IACAC,WAAA;MACAC,GAAA,WAAAA,IAAA;QACA,YAAAd,IAAA;MACA;MACAe,GAAA,WAAAA,IAAAC,GAAA;QACA,KAAAC,KAAA,gBAAAD,GAAA;MACA;IACA;IACAE,QAAA;MACAJ,GAAA,WAAAA,IAAA;QACA,YAAAZ,KAAA;MACA;MACAa,GAAA,WAAAA,IAAAC,GAAA;QACA,KAAAC,KAAA,iBAAAD,GAAA;MACA;IACA;EACA;EACAG,OAAA;IACAC,gBAAA,WAAAA,iBAAAJ,GAAA;MACA,KAAAC,KAAA;QAAAjB,IAAA,OAAAa,WAAA;QAAAX,KAAA,EAAAc;MAAA;MACA,SAAAN,UAAA;QACAjB,QAAA;MACA;IACA;IACA4B,mBAAA,WAAAA,oBAAAL,GAAA;MACA,KAAAC,KAAA;QAAAjB,IAAA,EAAAgB,GAAA;QAAAd,KAAA,OAAAgB;MAAA;MACA,SAAAR,UAAA;QACAjB,QAAA;MACA;IACA;EACA;AACA","ignoreList":[]}]} |