mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2026-01-03 21:52:14 +08:00
feat: improve scrolling effect of left-side on website configuration page
This commit is contained in:
parent
74f29e3dc3
commit
e73070f3f4
1 changed files with 5 additions and 0 deletions
|
|
@ -135,6 +135,11 @@ const handleScroll = (event: WheelEvent) => {
|
|||
const tabContainer = tabsRef.value.$el.querySelector('.el-tabs__nav-scroll');
|
||||
if (!tabContainer) return;
|
||||
|
||||
const currentScrollTop = tabContainer.scrollTop;
|
||||
if (currentScrollTop == 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
const target = event.target as HTMLElement;
|
||||
if (!target.classList.contains('el-tabs__item')) {
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue