2
0
mirror of https://github.com/tenrok/vue-select.git synced 2026-06-16 09:10:33 +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
+1 -1
View File
@@ -324,7 +324,7 @@ describe('Select.vue', () => {
it('can determine if a given option should match the current search text', () => {
const vm = new Vue({
template: `<div><v-select ref="select" :filter-match="customFn" :options="[{label: 'Aoo', value: 'foo'}, {label: 'Bar', value: 'bar'}, {label: 'Baz', value: 'baz'}]" v-model="value"></v-select></div>`,
template: `<div><v-select ref="select" :filter-by="customFn" :options="[{label: 'Aoo', value: 'foo'}, {label: 'Bar', value: 'bar'}, {label: 'Baz', value: 'baz'}]" v-model="value"></v-select></div>`,
data: {value: 'foo'},
methods:{
customFn: (option, label, search) => label.match(new RegExp('^' + search, 'i'))