mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
Fix section empty
This commit is contained in:
parent
7f3974e858
commit
cc0bc33be3
@ -33,6 +33,9 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="episodes-picker-items">
|
<div class="episodes-picker-items">
|
||||||
|
<div v-if="episodeItems.length === 0" class="episodes-picker-empty">
|
||||||
|
<VEmpty />
|
||||||
|
</div>
|
||||||
<div v-for="(item, index) of episodeItems" :key="item.key" class="episodes-picker-item">
|
<div v-for="(item, index) of episodeItems" :key="item.key" class="episodes-picker-item">
|
||||||
<CheckBox
|
<CheckBox
|
||||||
v-model="item.isChecked"
|
v-model="item.isChecked"
|
||||||
@ -54,7 +57,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { VButton, VIcon, CheckBox } from '@/ui'
|
import { VButton, VIcon, CheckBox, VEmpty } from '@/ui'
|
||||||
import { EpisodeItem } from './episode-item'
|
import { EpisodeItem } from './episode-item'
|
||||||
|
|
||||||
export default Vue.extend({
|
export default Vue.extend({
|
||||||
@ -62,6 +65,7 @@ export default Vue.extend({
|
|||||||
VButton,
|
VButton,
|
||||||
VIcon,
|
VIcon,
|
||||||
CheckBox,
|
CheckBox,
|
||||||
|
VEmpty,
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
api: {
|
api: {
|
||||||
@ -171,5 +175,10 @@ export default Vue.extend({
|
|||||||
opacity: 0.5;
|
opacity: 0.5;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
&-empty {
|
||||||
|
@include h-center();
|
||||||
|
justify-content: center;
|
||||||
|
padding: 4px 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@ -66,7 +66,6 @@ export const videoSeasonBatchInput: DownloadVideoInput = {
|
|||||||
}
|
}
|
||||||
const sections: { episodes: any[] }[] = lodash.get(json, 'data.View.ugc_season.sections', [])
|
const sections: { episodes: any[] }[] = lodash.get(json, 'data.View.ugc_season.sections', [])
|
||||||
if (sections.length === 0) {
|
if (sections.length === 0) {
|
||||||
logError('获取视频合集列表失败, 没有找到合集信息.')
|
|
||||||
return []
|
return []
|
||||||
}
|
}
|
||||||
const totalEpisodesLength = lodash.sumBy(sections, it => it.episodes.length)
|
const totalEpisodesLength = lodash.sumBy(sections, it => it.episodes.length)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user