Fix virtual scrolling for tree threading
Ref: tree-threading
This commit is contained in:
parent
0db5a5a581
commit
2a510205c3
3 changed files with 18 additions and 6 deletions
|
@ -48,6 +48,13 @@ const ThreadTree = {
|
|||
dive: Function
|
||||
},
|
||||
computed: {
|
||||
suspendable () {
|
||||
const selfSuspendable = this.$refs.statusComponent ? this.$refs.statusComponent.suspendable : true
|
||||
if (this.$refs.childComponent) {
|
||||
return selfSuspendable && this.$refs.childComponent.every(s => s.suspendable)
|
||||
}
|
||||
return selfSuspendable
|
||||
},
|
||||
reverseLookupTable () {
|
||||
return this.conversation.reduce((table, status, index) => {
|
||||
table[status.id] = index
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue