Fixed reference errors
parent
bfb5e58e0d
commit
84569ecd37
|
@ -558,12 +558,12 @@ export default {
|
||||||
|
|
||||||
for (let j = 0; j < this.columns.length; j++) {
|
for (let j = 0; j < this.columns.length; j++) {
|
||||||
let col = this.columns[j];
|
let col = this.columns[j];
|
||||||
let filterField = this.columnProp(column, 'field');
|
let filterField = this.columnProp(col, 'field');
|
||||||
|
|
||||||
//local
|
//local
|
||||||
if (Object.prototype.hasOwnProperty.call(this.filters, this.columnProp(column, 'field'))) {
|
if (Object.prototype.hasOwnProperty.call(this.filters, this.columnProp(col, 'field'))) {
|
||||||
let filterMatchMode = this.columnProp(column, 'filterMatchMode') || 'startsWith';
|
let filterMatchMode = this.columnProp(col, 'filterMatchMode') || 'startsWith';
|
||||||
let filterValue = this.filters[this.columnProp(column, 'field')];
|
let filterValue = this.filters[this.columnProp(col, 'field')];
|
||||||
let filterConstraint = FilterUtils[filterMatchMode];
|
let filterConstraint = FilterUtils[filterMatchMode];
|
||||||
let paramsWithoutNode = {filterField, filterValue, filterConstraint, strict};
|
let paramsWithoutNode = {filterField, filterValue, filterConstraint, strict};
|
||||||
|
|
||||||
|
@ -652,8 +652,8 @@ export default {
|
||||||
if (this.hasFilters()) {
|
if (this.hasFilters()) {
|
||||||
filterMatchModes = {};
|
filterMatchModes = {};
|
||||||
this.columns.forEach(col => {
|
this.columns.forEach(col => {
|
||||||
if (this.columnProp(column, 'field')) {
|
if (this.columnProp(col, 'field')) {
|
||||||
filterMatchModes[col.props.field] = this.columnProp(column, 'filterMatchMode');
|
filterMatchModes[col.props.field] = this.columnProp(col, 'filterMatchMode');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -858,7 +858,7 @@ export default {
|
||||||
let hasFooter = false;
|
let hasFooter = false;
|
||||||
|
|
||||||
for (let col of this.columns) {
|
for (let col of this.columns) {
|
||||||
if (this.columnProp(column, 'footer')|| col.children?.footer) {
|
if (this.columnProp(col, 'footer')|| col.children?.footer) {
|
||||||
hasFooter = true;
|
hasFooter = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue