mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-05-15 01:33:54 +00:00
wrking on scroll up at last item
This commit is contained in:
parent
949a7feb97
commit
1239fed5dd
@ -189,6 +189,7 @@ export default defineComponent({
|
||||
const tabRef = ref<any>("");
|
||||
const tabObserveContainer = ref<any>(null);
|
||||
const currentItem = ref("");
|
||||
const lastItem = ref("");
|
||||
const l = dashboardStore.layout.findIndex(
|
||||
(d: LayoutConfig) => d.i === props.data.i
|
||||
);
|
||||
@ -248,6 +249,11 @@ export default defineComponent({
|
||||
() => {
|
||||
setTimeout(() => {
|
||||
observeItems();
|
||||
lastItem.value = `${
|
||||
dashboardStore.currentTabItems[
|
||||
dashboardStore.currentTabItems.length - 1
|
||||
].i
|
||||
}`;
|
||||
}, 500);
|
||||
}
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user