Fixed #356 - DataView should reset paginator on sort
parent
35688ee8ea
commit
835ad28709
|
@ -114,6 +114,12 @@ export default {
|
||||||
},
|
},
|
||||||
rows(newValue) {
|
rows(newValue) {
|
||||||
this.d_rows = newValue;
|
this.d_rows = newValue;
|
||||||
|
},
|
||||||
|
sortField(newValue) {
|
||||||
|
this.resetPage();
|
||||||
|
},
|
||||||
|
sortOrder(newValue) {
|
||||||
|
this.resetPage();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
@ -153,6 +159,10 @@ export default {
|
||||||
else {
|
else {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
resetPage() {
|
||||||
|
this.d_first = 0;
|
||||||
|
this.$emit('update:first', this.d_first);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
|
Loading…
Reference in New Issue