下拉多选时候,搜索不好使
parent
1072347d40
commit
d619e7a123
|
@ -170,7 +170,7 @@
|
|||
/** 用于搜索下拉框中的内容 */
|
||||
function handleFilterOption(input, option) {
|
||||
// 在 label 中搜索
|
||||
let labelIf = option?.children[0]?.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
||||
let labelIf = option.children()[0]?.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
||||
if (labelIf) {
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue