feat: 需求 select 搜索功能情况下问题,label和value都进行了匹配 只匹配label
This commit is contained in:
parent
551c730771
commit
b3d1fe2855
1 changed files with 1 additions and 1 deletions
|
@ -496,7 +496,7 @@
|
||||||
const nodeText = node.elm ? node.elm.textContent : node.text;
|
const nodeText = node.elm ? node.elm.textContent : node.text;
|
||||||
return `${str} ${nodeText}`;
|
return `${str} ${nodeText}`;
|
||||||
}, '') || '';
|
}, '') || '';
|
||||||
const stringValues = JSON.stringify([value, label, textContent]);
|
const stringValues = JSON.stringify([label, textContent]);
|
||||||
const query = this.query.toLowerCase().trim();
|
const query = this.query.toLowerCase().trim();
|
||||||
return stringValues.toLowerCase().includes(query);
|
return stringValues.toLowerCase().includes(query);
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Reference in a new issue