This commit is contained in:
jxxghp
2023-09-21 20:31:24 +08:00
parent 41471b9fd6
commit d936b68597
+11 -17
View File
@@ -460,14 +460,14 @@ const getImgUrl: Ref<string> = computed(() => {
</VCard> </VCard>
</template> </template>
</VHover> </VHover>
<VDialog <!-- 订阅季弹窗 -->
<VBottomSheet
v-model="subscribeSeasonDialog" v-model="subscribeSeasonDialog"
max-width="50rem" inset
content-class="whitespace-nowrap"
scrollable scrollable
> >
<!-- Dialog Content -->
<VCard title="选择订阅季"> <VCard title="选择订阅季">
<DialogCloseBtn @click="subscribeSeasonDialog = false" />
<VCardText style="padding: 0;"> <VCardText style="padding: 0;">
<VDataTable <VDataTable
v-model="seasonsSelected" v-model="seasonsSelected"
@@ -478,17 +478,15 @@ const getImgUrl: Ref<string> = computed(() => {
fixed-header fixed-header
show-select show-select
:items-per-page="100" :items-per-page="100"
density="compact"
height="auto" height="auto"
> >
<template #item.title="{ item }"> <template #item.title="{ item }">
<span class="d-block whitespace-nowrap"> {{ item.raw.season_number }} <span class="d-block whitespace-nowrap text-high-emphasis"> {{ item.raw.season_number }}
</span> </span>
</template> </template>
<template #item.episodes="{ item }"> <template #item.episodes="{ item }">
<VChip <VChip
variant="outlined" variant="outlined"
size="small"
> >
{{ item.raw.episode_count }} {{ item.raw.episode_count }}
</VChip> </VChip>
@@ -500,8 +498,6 @@ const getImgUrl: Ref<string> = computed(() => {
<VChip <VChip
v-if="seasonsNotExisted" v-if="seasonsNotExisted"
:color="getExistColor(item.raw.season_number)" :color="getExistColor(item.raw.season_number)"
flat
size="small"
> >
{{ getExistText(item.raw.season_number) }} {{ getExistText(item.raw.season_number) }}
</VChip> </VChip>
@@ -512,20 +508,18 @@ const getImgUrl: Ref<string> = computed(() => {
<template #bottom /> <template #bottom />
</VDataTable> </VDataTable>
</VCardText> </VCardText>
<VCardActions> <div class="my-2 text-center">
<VBtn @click="subscribeSeasonDialog = false">
取消
</VBtn>
<VSpacer />
<VBtn <VBtn
:disabled="seasonsSelected.length === 0"
width="30%"
@click="subscribeSeasons" @click="subscribeSeasons"
@keydown.enter="subscribeSeasons" @keydown.enter="subscribeSeasons"
> >
确定 提交订阅
</VBtn> </VBtn>
</VCardActions> </div>
</VCard> </VCard>
</VDialog> </VBottomSheet>
</template> </template>
<style lang="scss"> <style lang="scss">