Commit e93eca1c by caoyanzhi

update: 升级simple-transfer

parent fd3a1097
...@@ -54,8 +54,10 @@ export default { ...@@ -54,8 +54,10 @@ export default {
console.log(val); console.log(val);
this.$emit('change', val); this.$emit('change', val);
}, },
filterMethod(val, item) { filterMethod(query, list) {
return item.storeName.toLowerCase().indexOf(val.toLowerCase()) > -1 || item.storeCode.toLowerCase().indexOf(val.toLowerCase()) > -1; return list.filter(el => {
return el.storeName.toLowerCase().indexOf(query.toLowerCase()) > -1 || el.storeCode.toLowerCase().indexOf(query.toLowerCase()) > -1;
});
} }
} }
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment