✨ Site > File Tree > Add fuzzy search
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user