Compare commits
38 Commits
omm-large-
...
tree-rever
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7a0a67070d | ||
|
|
d36db3b958 | ||
|
|
5f4aa88556 | ||
|
|
73451700f2 | ||
|
|
5610ef9921 | ||
|
|
1b46b0d032 | ||
|
|
048805418f | ||
|
|
0e7704d628 | ||
|
|
76614f8507 | ||
|
|
77460961ce | ||
|
|
ec83426de2 | ||
|
|
3e23a0b044 | ||
|
|
b96b099551 | ||
|
|
31c2dbd273 | ||
|
|
8009944f1d | ||
|
|
4748bb1e21 | ||
|
|
43a1d60a3f | ||
|
|
06d7486d2a | ||
|
|
a2a9f99538 | ||
|
|
261ea7b543 | ||
|
|
4330b54f0f | ||
|
|
212adfc3c1 | ||
|
|
9e371f29d2 | ||
|
|
5d8bef6ef8 | ||
|
|
52f70a0489 | ||
|
|
d48951c340 | ||
|
|
bd2d6d9ea5 | ||
|
|
8e735379f9 | ||
|
|
b9c8404d9d | ||
|
|
0b71f97b3b | ||
|
|
dc14858253 | ||
|
|
938a127e46 | ||
|
|
21ec2e46fe | ||
|
|
170927748b | ||
|
|
648c8a13c4 | ||
|
|
bd09b1a2cb | ||
|
|
4eb5fe3978 | ||
|
|
776baa159a |
@@ -308,6 +308,7 @@ export default {
|
|||||||
|| !checkItem.navigationPath.includes(path);
|
|| !checkItem.navigationPath.includes(path);
|
||||||
});
|
});
|
||||||
this.openTreeItems.splice(pathIndex, 1);
|
this.openTreeItems.splice(pathIndex, 1);
|
||||||
|
this.removeCompositionListenerFor(path);
|
||||||
},
|
},
|
||||||
closeTreeItem(item) {
|
closeTreeItem(item) {
|
||||||
this.closeTreeItemByPath(item.navigationPath);
|
this.closeTreeItemByPath(item.navigationPath);
|
||||||
@@ -393,12 +394,18 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const indexOfScroll = this.treeItems.findIndex(item => item.navigationPath === navigationPath);
|
const indexOfScroll = this.treeItems.findIndex(item => item.navigationPath === navigationPath);
|
||||||
const scrollTopAmount = indexOfScroll * this.itemHeight;
|
|
||||||
|
|
||||||
this.$refs.scrollable.scrollTo({
|
if (indexOfScroll !== -1) {
|
||||||
top: scrollTopAmount,
|
const scrollTopAmount = indexOfScroll * this.itemHeight;
|
||||||
behavior: 'smooth'
|
|
||||||
});
|
this.$refs.scrollable.scrollTo({
|
||||||
|
top: scrollTopAmount,
|
||||||
|
behavior: 'smooth'
|
||||||
|
});
|
||||||
|
} else if (this.scrollToPath) {
|
||||||
|
this.scrollToPath = undefined;
|
||||||
|
delete this.scrollToPath;
|
||||||
|
}
|
||||||
},
|
},
|
||||||
scrollEndEvent() {
|
scrollEndEvent() {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user