-
Notifications
You must be signed in to change notification settings - Fork 403
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
84 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/** | ||
* vue-good-table v2.17.2 | ||
* vue-good-table v2.17.4 | ||
* (c) 2018-present xaksis <[email protected]> | ||
* https://github.com/xaksis/vue-good-table | ||
* Released under the MIT License. | ||
|
@@ -7671,7 +7671,7 @@ var script$1 = { | |
perPage: { | ||
handler: function handler(newValue, oldValue) { | ||
this.handlePerPage(); | ||
this.perPageChanged(); | ||
this.perPageChanged(oldValue); | ||
}, | ||
immediate: true | ||
}, | ||
|
@@ -7741,11 +7741,15 @@ var script$1 = { | |
}); | ||
}, | ||
// Indicate per page changing | ||
perPageChanged: function perPageChanged() { | ||
perPageChanged: function perPageChanged(oldValue) { | ||
// go back to first page | ||
this.$emit('per-page-changed', { | ||
currentPerPage: this.currentPerPage | ||
}); | ||
if (oldValue) { | ||
//* only emit if this isn't first initialization | ||
this.$emit('per-page-changed', { | ||
currentPerPage: this.currentPerPage | ||
}); | ||
} | ||
|
||
this.changePage(1, false); | ||
}, | ||
// Handle per page changing | ||
|
@@ -8040,9 +8044,7 @@ var script$3 = { | |
watch: { | ||
columns: { | ||
handler: function handler(newValue, oldValue) { | ||
if (!lodash_isequal(newValue, oldValue)) { | ||
this.populateInitialFilters(); | ||
} | ||
this.populateInitialFilters(); | ||
}, | ||
deep: true, | ||
immediate: true | ||
|
@@ -8128,16 +8130,17 @@ var script$3 = { | |
|
||
if (this.isFilterable(col) && typeof col.filterOptions.filterValue !== 'undefined' && col.filterOptions.filterValue !== null) { | ||
this.$set(this.columnFilters, col.field, col.filterOptions.filterValue); // this.updateFilters(col, col.filterOptions.filterValue); | ||
|
||
this.$set(col.filterOptions, 'filterValue', undefined); | ||
// this.$set(col.filterOptions, 'filterValue', undefined); | ||
} | ||
} //* lets emit event once all filters are set | ||
|
||
|
||
this.$emit('filter-changed', this.columnFilters); | ||
} | ||
}, | ||
mounted: function mounted() {} | ||
mounted: function mounted() { | ||
console.log(this.columns); | ||
} | ||
}; | ||
|
||
/* script */ | ||
|
@@ -8230,7 +8233,7 @@ var __vue_staticRenderFns__$3 = []; | |
var __vue_inject_styles__$3 = undefined; | ||
/* scoped */ | ||
|
||
var __vue_scope_id__$3 = "data-v-892cc66c"; | ||
var __vue_scope_id__$3 = "data-v-74c08ac1"; | ||
/* module identifier */ | ||
|
||
var __vue_module_identifier__$3 = undefined; | ||
|
@@ -11578,9 +11581,7 @@ var script$6 = { | |
}, | ||
paginationOptions: { | ||
handler: function handler(newValue, oldValue) { | ||
if (!lodash_isequal(newValue, oldValue)) { | ||
this.initializePagination(); | ||
} | ||
this.initializePagination(); | ||
}, | ||
deep: true, | ||
immediate: true | ||
|
@@ -11600,9 +11601,8 @@ var script$6 = { | |
}, | ||
sortOptions: { | ||
handler: function handler(newValue, oldValue) { | ||
if (!lodash_isequal(newValue, oldValue)) { | ||
this.initializeSort(); | ||
} | ||
// if (!isEqual(newValue, oldValue)) { | ||
this.initializeSort(); // } | ||
}, | ||
deep: true | ||
}, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/** | ||
* vue-good-table v2.17.2 | ||
* vue-good-table v2.17.4 | ||
* (c) 2018-present xaksis <[email protected]> | ||
* https://github.com/xaksis/vue-good-table | ||
* Released under the MIT License. | ||
|
@@ -7667,7 +7667,7 @@ var script$1 = { | |
perPage: { | ||
handler: function handler(newValue, oldValue) { | ||
this.handlePerPage(); | ||
this.perPageChanged(); | ||
this.perPageChanged(oldValue); | ||
}, | ||
immediate: true | ||
}, | ||
|
@@ -7737,11 +7737,15 @@ var script$1 = { | |
}); | ||
}, | ||
// Indicate per page changing | ||
perPageChanged: function perPageChanged() { | ||
perPageChanged: function perPageChanged(oldValue) { | ||
// go back to first page | ||
this.$emit('per-page-changed', { | ||
currentPerPage: this.currentPerPage | ||
}); | ||
if (oldValue) { | ||
//* only emit if this isn't first initialization | ||
this.$emit('per-page-changed', { | ||
currentPerPage: this.currentPerPage | ||
}); | ||
} | ||
|
||
this.changePage(1, false); | ||
}, | ||
// Handle per page changing | ||
|
@@ -8036,9 +8040,7 @@ var script$3 = { | |
watch: { | ||
columns: { | ||
handler: function handler(newValue, oldValue) { | ||
if (!lodash_isequal(newValue, oldValue)) { | ||
this.populateInitialFilters(); | ||
} | ||
this.populateInitialFilters(); | ||
}, | ||
deep: true, | ||
immediate: true | ||
|
@@ -8124,16 +8126,17 @@ var script$3 = { | |
|
||
if (this.isFilterable(col) && typeof col.filterOptions.filterValue !== 'undefined' && col.filterOptions.filterValue !== null) { | ||
this.$set(this.columnFilters, col.field, col.filterOptions.filterValue); // this.updateFilters(col, col.filterOptions.filterValue); | ||
|
||
this.$set(col.filterOptions, 'filterValue', undefined); | ||
// this.$set(col.filterOptions, 'filterValue', undefined); | ||
} | ||
} //* lets emit event once all filters are set | ||
|
||
|
||
this.$emit('filter-changed', this.columnFilters); | ||
} | ||
}, | ||
mounted: function mounted() {} | ||
mounted: function mounted() { | ||
console.log(this.columns); | ||
} | ||
}; | ||
|
||
/* script */ | ||
|
@@ -8226,7 +8229,7 @@ var __vue_staticRenderFns__$3 = []; | |
var __vue_inject_styles__$3 = undefined; | ||
/* scoped */ | ||
|
||
var __vue_scope_id__$3 = "data-v-892cc66c"; | ||
var __vue_scope_id__$3 = "data-v-74c08ac1"; | ||
/* module identifier */ | ||
|
||
var __vue_module_identifier__$3 = undefined; | ||
|
@@ -11574,9 +11577,7 @@ var script$6 = { | |
}, | ||
paginationOptions: { | ||
handler: function handler(newValue, oldValue) { | ||
if (!lodash_isequal(newValue, oldValue)) { | ||
this.initializePagination(); | ||
} | ||
this.initializePagination(); | ||
}, | ||
deep: true, | ||
immediate: true | ||
|
@@ -11596,9 +11597,8 @@ var script$6 = { | |
}, | ||
sortOptions: { | ||
handler: function handler(newValue, oldValue) { | ||
if (!lodash_isequal(newValue, oldValue)) { | ||
this.initializeSort(); | ||
} | ||
// if (!isEqual(newValue, oldValue)) { | ||
this.initializeSort(); // } | ||
}, | ||
deep: true | ||
}, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/** | ||
* vue-good-table v2.17.2 | ||
* vue-good-table v2.17.4 | ||
* (c) 2018-present xaksis <[email protected]> | ||
* https://github.com/xaksis/vue-good-table | ||
* Released under the MIT License. | ||
|
@@ -7673,7 +7673,7 @@ | |
perPage: { | ||
handler: function handler(newValue, oldValue) { | ||
this.handlePerPage(); | ||
this.perPageChanged(); | ||
this.perPageChanged(oldValue); | ||
}, | ||
immediate: true | ||
}, | ||
|
@@ -7743,11 +7743,15 @@ | |
}); | ||
}, | ||
// Indicate per page changing | ||
perPageChanged: function perPageChanged() { | ||
perPageChanged: function perPageChanged(oldValue) { | ||
// go back to first page | ||
this.$emit('per-page-changed', { | ||
currentPerPage: this.currentPerPage | ||
}); | ||
if (oldValue) { | ||
//* only emit if this isn't first initialization | ||
this.$emit('per-page-changed', { | ||
currentPerPage: this.currentPerPage | ||
}); | ||
} | ||
|
||
this.changePage(1, false); | ||
}, | ||
// Handle per page changing | ||
|
@@ -8042,9 +8046,7 @@ | |
watch: { | ||
columns: { | ||
handler: function handler(newValue, oldValue) { | ||
if (!lodash_isequal(newValue, oldValue)) { | ||
this.populateInitialFilters(); | ||
} | ||
this.populateInitialFilters(); | ||
}, | ||
deep: true, | ||
immediate: true | ||
|
@@ -8130,16 +8132,17 @@ | |
|
||
if (this.isFilterable(col) && typeof col.filterOptions.filterValue !== 'undefined' && col.filterOptions.filterValue !== null) { | ||
this.$set(this.columnFilters, col.field, col.filterOptions.filterValue); // this.updateFilters(col, col.filterOptions.filterValue); | ||
|
||
this.$set(col.filterOptions, 'filterValue', undefined); | ||
// this.$set(col.filterOptions, 'filterValue', undefined); | ||
} | ||
} //* lets emit event once all filters are set | ||
|
||
|
||
this.$emit('filter-changed', this.columnFilters); | ||
} | ||
}, | ||
mounted: function mounted() {} | ||
mounted: function mounted() { | ||
console.log(this.columns); | ||
} | ||
}; | ||
|
||
/* script */ | ||
|
@@ -8232,7 +8235,7 @@ | |
var __vue_inject_styles__$3 = undefined; | ||
/* scoped */ | ||
|
||
var __vue_scope_id__$3 = "data-v-892cc66c"; | ||
var __vue_scope_id__$3 = "data-v-74c08ac1"; | ||
/* module identifier */ | ||
|
||
var __vue_module_identifier__$3 = undefined; | ||
|
@@ -11580,9 +11583,7 @@ | |
}, | ||
paginationOptions: { | ||
handler: function handler(newValue, oldValue) { | ||
if (!lodash_isequal(newValue, oldValue)) { | ||
this.initializePagination(); | ||
} | ||
this.initializePagination(); | ||
}, | ||
deep: true, | ||
immediate: true | ||
|
@@ -11602,9 +11603,8 @@ | |
}, | ||
sortOptions: { | ||
handler: function handler(newValue, oldValue) { | ||
if (!lodash_isequal(newValue, oldValue)) { | ||
this.initializeSort(); | ||
} | ||
// if (!isEqual(newValue, oldValue)) { | ||
this.initializeSort(); // } | ||
}, | ||
deep: true | ||
}, | ||
|
Oops, something went wrong.