mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-07-12 16:01:35 +08:00
fix slidergroup
This commit is contained in:
@@ -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: '全球剧集榜',
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user