set scroll bar

This commit is contained in:
Qiuxia Fan 2022-05-07 13:23:21 +08:00
parent 3c92edc35c
commit 96b1445a2f
2 changed files with 23 additions and 1 deletions

View File

@ -171,3 +171,21 @@
color: #ddd;
}
}
.scroll_bar_style::-webkit-scrollbar {
width: 9px;
height: 4px;
background-color: #eee;
}
.scroll_bar_style::-webkit-scrollbar-track {
background-color: #eee;
border-radius: 3px;
box-shadow: inset 0 0 6px #ccc;
}
.scroll_bar_style::-webkit-scrollbar-thumb {
border-radius: 3px;
box-shadow: inset 0 0 6px #ccc;
background-color: #aaa;
}

View File

@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License. -->
<template>
<div class="flex-h tab-header">
<div class="tabs">
<div class="tabs scroll_bar_style">
<span
v-for="(child, idx) in data.children || []"
:key="idx"
@ -259,6 +259,10 @@ export default defineComponent({
.tabs {
height: 40px;
color: #ccc;
width: 100%;
overflow-x: auto;
white-space: nowrap;
overflow-y: hidden;
span {
display: inline-block;