数据选项卡切换优化
parent
7aa546dfb1
commit
ab964c4989
|
|
@ -239,7 +239,7 @@ const set_offset_top = (index: number) => {
|
|||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
}, 0)
|
||||
}
|
||||
// 选项卡点击
|
||||
const tabs_list_click = (item: any, index: number) => {
|
||||
|
|
|
|||
|
|
@ -131,7 +131,7 @@ const scrollTop = ref<HTMLElement | null>(null);
|
|||
const set_offset_top = (scrollY: number) => {
|
||||
if (scrollTop.value) {
|
||||
// 选中的滚动到指定位置
|
||||
scrollTop.value.scrollTo({ top: scrollY - 150, behavior: 'smooth' });
|
||||
scrollTop.value.scrollTo({ top: scrollY - 160, behavior: 'smooth' });
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Reference in New Issue