BigW Consortium Gitlab

Commit 1c85514a by Regis

remove uneeded methods

parent 59560758
......@@ -8,23 +8,10 @@
'count',
'pagenum',
],
methods: {
pagestatus(n) {
if (this.getItems[1].prev) {
if (n === +this.pagenum) return true;
}
if (n - 1 === +this.pagenum) return true;
return false;
},
prevstatus(index) {
if (index > 0) return false;
if (+this.pagenum < 2) return true;
return false;
},
createSection(n) { return Array.from(Array(n)).map((e, i) => i); },
},
computed: {
last() { return Math.ceil(+this.count / 5); },
last() {
return Math.ceil(+this.count / 5);
},
getItems() {
const total = +this.last;
const page = +this.pagenum;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment