Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added treeitem role to tree items. Updated a few devDependencies. #182

Merged
merged 8 commits into from
Dec 20, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
removed duplicated watcher on filter
  • Loading branch information
Isaac Vargas committed Dec 19, 2019
commit 7daa45c2df27fdce327486049a9aa322be1c9623
10 changes: 3 additions & 7 deletions src/components/TreeRoot.vue
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@
default: 'div'
}
},

data () {
// we should not mutating a prop directly...
// that's why we have to create a new object
Expand All @@ -134,30 +135,25 @@
draggableNode: null
}
},

computed: {
visibleModel() {
return this.model.filter(function(node) {
return node && node.visible()
})
},

visibleMatches() {
return this.matches.filter(function(node) {
return node && node.visible()
})
}
},

watch: {
filter (term) {
this.tree.filter(term)
}
},

watch: {
filter (term) {
this.tree.filter(term)
}
}
}
</script>

Expand Down