Skip to content

Commit

Permalink
fix: 搜索🔍忽略大小写 (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
donaldshen authored Apr 10, 2020
1 parent 87e93c5 commit c46975e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/el-data-tree.vue
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ export default {
filterNode(value, data) {
if (!value) return true
const label = this.treeAttributes.props.label
return data[label].indexOf(value) !== -1
return data[label].toLowerCase().includes(value.toLowerCase())
},
/**
* 获取el-tree对象,方便调用其方法
Expand Down

0 comments on commit c46975e

Please sign in to comment.