mirror of
https://gitee.com/zongzhige/shopxo-diy.git
synced 2026-06-07 10:22:23 +08:00
数据选项卡切换优化
This commit is contained in:
@ -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>
|
||||
|
||||
Reference in New Issue
Block a user