Site > File Tree > Add fuzzy search

This commit is contained in:
brunosimon
2017-08-15 23:56:51 +02:00
parent 555bff11ab
commit 923d3558f6
5 changed files with 65 additions and 2 deletions
+20
View File
@@ -5,6 +5,13 @@ export default
{
name: 'files-tree',
data()
{
return {
searchValue: ''
}
},
components:
{
FilesTreeFile,
@@ -17,5 +24,18 @@ export default
{
return this.$store.state.files.tree
}
},
watch:
{
searchValue: 'onSearchValueChange'
},
methods:
{
onSearchValueChange(value)
{
this.$store.commit('searchFile', value)
}
}
}