Skip to content

Commit 5245538

Browse files
committed
feat(styles): tabs can be scrolled with a wheel.
1 parent 03dd64c commit 5245538

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/layouts/modules/global-tab/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ init();
164164

165165
<template>
166166
<DarkModeContainer class="size-full flex-y-center px-16px shadow-tab">
167-
<div ref="bsWrapper" class="h-full flex-1-hidden">
167+
<div ref="bsWrapper" class="h-full flex-1 overflow-x-auto overflow-y-hidden scrollbar-none">
168168
<BetterScroll ref="bsScroll" :options="{ scrollX: true, scrollY: false, click: !isPCFlag }" @click="removeFocus">
169169
<div
170170
ref="tabRef"

uno.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ export default defineConfig<Theme>({
2525
shortcuts: {
2626
'card-wrapper': 'rd-8px shadow-sm'
2727
},
28+
rules: [['scrollbar-none', { 'scrollbar-width': 'none' }]],
2829
transformers: [transformerDirectives(), transformerVariantGroup()],
2930
presets: [presetWind3({ dark: 'class' }), presetSoybeanAdmin()]
3031
});

0 commit comments

Comments
 (0)