fix slidergroup

This commit is contained in:
jxxghp
2023-06-30 10:50:42 +08:00
parent 6958fca86c
commit 8cecbb7876
2 changed files with 29 additions and 1 deletions

View File

@@ -15,7 +15,7 @@ const titles: { [key: string]: any } = {
douban: { douban: {
movies: '最新电影', movies: '最新电影',
tvs: '最新电视剧', tvs: '最新电视剧',
tv_weekly_chinese: '国产剧集榜', tv_weekly_chinese: '华语剧集榜',
tv_weekly_global: '全球剧集榜', tv_weekly_global: '全球剧集榜',
}, },
}; };

View File

@@ -32,6 +32,13 @@ onMounted(fetchData);
<VSlideGroup <VSlideGroup
show-arrows=false show-arrows=false
> >
<template #prev>
<VBtn
class="rounded-circle shadow-none"
icon="mdi-chevron-left"
color="grey"
/>
</template>
<VSlideGroupItem v-for="data in dataList" <VSlideGroupItem v-for="data in dataList"
:key="data.tmdb_id" :key="data.tmdb_id"
> >
@@ -39,6 +46,13 @@ onMounted(fetchData);
:media="data" :media="data"
/> />
</VSlideGroupItem> </VSlideGroupItem>
<template #next>
<VBtn
class="rounded-circle shadow-none"
icon="mdi-chevron-right"
color="grey"
/>
</template>
</VSlideGroup> </VSlideGroup>
</template> </template>
@@ -48,4 +62,18 @@ onMounted(fetchData);
@apply m-2; @apply m-2;
} }
.v-slide-group__prev {
@apply absolute right-11;
z-index: 3;
margin-block-start: -40px;
}
.v-slide-group__next {
@apply absolute right-1;
z-index: 3;
margin-block-start: -40px;
}
</style> </style>