Template
1
0
mirror of https://github.com/un-pany/v3-admin-vite.git synced 2025-04-20 19:09:21 +08:00

fix: 修复控制台告警 “Added non-passive event listener to a scroll-blocking 'wheel' event”

This commit is contained in:
pany 2023-06-21 12:24:54 +08:00
parent ed1748a111
commit 8c6f1bd450

View File

@ -110,7 +110,7 @@ watch(
<el-icon class="arrow left" @click="scrollTo('left')">
<ArrowLeft />
</el-icon>
<el-scrollbar ref="scrollbarRef" @wheel.prevent="wheelScroll" @scroll="scroll">
<el-scrollbar ref="scrollbarRef" @wheel.passive="wheelScroll" @scroll="scroll">
<div ref="scrollbarContentRef" class="scrollbar-content">
<slot />
</div>