2
0
mirror of https://github.com/tenrok/vue-select.git synced 2026-06-13 08:32:26 +03:00

rename filterMatch to filterBy

This commit is contained in:
Jeff
2018-01-12 22:53:13 -08:00
parent f530ab952b
commit 2cffee27f6
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -585,7 +585,7 @@
* @param {String} search
* @return {Boolean}
*/
filterMatch: {
filterBy: {
type: Function,
default(option, label, search) {
return (label || '').toLowerCase().indexOf(search.toLowerCase()) > -1
@@ -596,7 +596,7 @@
* Callback to filter results when search text
* is provided. Default implementation loops
* each option, and returns the result of
* this.filterMatch.
* this.filterBy.
* @type {Function}
* @param {Array} list of options
* @param {String} search text
@@ -611,7 +611,7 @@
if (typeof label === 'number') {
label = label.toString()
}
return this.filterMatch(option, label, search)
return this.filterBy(option, label, search)
});
}
},