element ui Tree 筛选不区分大小写

直接上代码

 "gfigfoAddTree"
                :data="treeData"
                node-key="id"
                :props="defaultProps"
                :filter-node-method="filterMethod"
              >`
  filterMethod(value, data) {
      let label = data.label || "";
      return label.toLowerCase().indexOf(value.toLowerCase()) !== -1;
    },

over

你可能感兴趣的:(elementui)