Merge pull request #5523 from franklx/master

Fix TreeTable not using filterField
pull/5630/head
Tuğçe Küçükoğlu 2024-04-19 14:41:57 +03:00 committed by GitHub
commit d93034881a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -494,12 +494,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(col, 'field'); let filterField = this.columnProp(col, 'filterField') || this.columnProp(col, 'field');
//local //local
if (Object.prototype.hasOwnProperty.call(this.filters, this.columnProp(col, 'field'))) { if (Object.prototype.hasOwnProperty.call(this.filters, filterField)) {
let filterMatchMode = this.columnProp(col, 'filterMatchMode') || 'startsWith'; let filterMatchMode = this.columnProp(col, 'filterMatchMode') || 'startsWith';
let filterValue = this.filters[this.columnProp(col, 'field')]; let filterValue = this.filters[filterField];
let filterConstraint = FilterService.filters[filterMatchMode]; let filterConstraint = FilterService.filters[filterMatchMode];
let paramsWithoutNode = { filterField, filterValue, filterConstraint, strict }; let paramsWithoutNode = { filterField, filterValue, filterConstraint, strict };