Skip to content

Commit

Permalink
feat: 标签栏左右滚动按钮文字提示
Browse files Browse the repository at this point in the history
  • Loading branch information
pany-ang committed Nov 27, 2024
1 parent 0cbb1ea commit fa0eadd
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions src/layouts/components/TagsView/ScrollPane.vue
Original file line number Diff line number Diff line change
Expand Up @@ -108,17 +108,21 @@ listenerRouteChange(() => {

<template>
<div class="scroll-container">
<el-icon class="arrow left" @click="scrollTo('left')">
<ArrowLeft />
</el-icon>
<el-tooltip content="向左滚动标签(超出最大宽度可点击)">
<el-icon class="arrow left" @click="scrollTo('left')">
<ArrowLeft />
</el-icon>
</el-tooltip>
<el-scrollbar ref="scrollbarRef" @wheel.passive="wheelScroll" @scroll="scroll">
<div ref="scrollbarContentRef" class="scrollbar-content">
<slot />
</div>
</el-scrollbar>
<el-icon class="arrow right" @click="scrollTo('right')">
<ArrowRight />
</el-icon>
<el-tooltip content="向右滚动标签(超出最大宽度可点击)">
<el-icon class="arrow right" @click="scrollTo('right')">
<ArrowRight />
</el-icon>
</el-tooltip>
<Screenfull v-if="settingsStore.showScreenfull" :content="true" class="screenfull" />
</div>
</template>
Expand Down

0 comments on commit fa0eadd

Please sign in to comment.