fix(tags-view): 🐛 移除阻止滚轮默认行为以优化滚动性能,解决控制台关于被动事件监听器的警告
移除 @wheel 事件 prevent 修饰符,默认 passive 为 true 避免阻塞滚动,移除多余的默认行为阻止 tags-view 容器高度使用CSS变量增强灵活性 #IBQTF1 #IBQTF1
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<div class="tags-container">
|
||||
<el-scrollbar class="scroll-container" :vertical="false" @wheel.prevent="handleScroll">
|
||||
<el-scrollbar class="scroll-container" :vertical="false" @wheel="handleScroll">
|
||||
<router-link
|
||||
v-for="tag in visitedViews"
|
||||
ref="tagRef"
|
||||
@@ -341,7 +341,7 @@ onMounted(() => {
|
||||
<style lang="scss" scoped>
|
||||
.tags-container {
|
||||
width: 100%;
|
||||
height: 34px;
|
||||
height: $tags-view-height;
|
||||
background-color: var(--el-bg-color);
|
||||
border: 1px solid var(--el-border-color-light);
|
||||
box-shadow: 0 1px 1px var(--el-box-shadow-light);
|
||||
|
||||
Reference in New Issue
Block a user