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