Skip to content

Commit

Permalink
Bug fix for #26 #27
Browse files Browse the repository at this point in the history
  • Loading branch information
lzhoucs committed Nov 3, 2018
1 parent 0306a1e commit 9f822bb
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions src/components/VDataTable/mixins/body.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,21 @@ export default {
return this.$createElement('tbody', children)
},
collapseAll () {
this._groupExpanded = this.groupExpanded
this.groupExpanded = false
this.activeGroup = {}
if (this.groupExpanded) {
for (const group in this.activeGroup) {
this.activeGroup[group] = false
}
} else {
this.activeGroup = {}
}
},
expandAll () {
this.groupExpanded = this._groupExpanded
for (const group in this.activeGroup) {
this.activeGroup[group] = true
if (this.groupExpanded) {
this.activeGroup = {}
} else {
for (const group in this.activeGroup) {
this.activeGroup[group] = true
}
}
},
genGroupRow (props) {
Expand Down

0 comments on commit 9f822bb

Please sign in to comment.