2023-04-11 07:42:27 +09:00
|
|
|
<template>
|
2023-05-07 08:05:18 +09:00
|
|
|
<MkPagination :pagination="pagination">
|
|
|
|
<template #empty>
|
|
|
|
<div class="_fullinfo">
|
|
|
|
<img
|
2023-05-07 09:43:11 +09:00
|
|
|
src="/static-assets/badges/info.png"
|
2023-05-07 08:05:18 +09:00
|
|
|
class="_ghost"
|
2023-05-07 09:43:11 +09:00
|
|
|
:alt="i18n.ts.notFound"
|
2023-05-07 08:05:18 +09:00
|
|
|
/>
|
|
|
|
<div>{{ i18n.ts.notFound }}</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
2023-04-11 07:42:27 +09:00
|
|
|
|
2023-05-07 08:05:18 +09:00
|
|
|
<template #default="{ items }">
|
|
|
|
<MkChannelPreview
|
|
|
|
v-for="item in items"
|
|
|
|
:key="item.id"
|
|
|
|
class="_margin"
|
|
|
|
:channel="extractor(item)"
|
|
|
|
/>
|
|
|
|
</template>
|
|
|
|
</MkPagination>
|
2023-04-11 07:42:27 +09:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts" setup>
|
2023-05-07 08:05:18 +09:00
|
|
|
import MkChannelPreview from "@/components/MkChannelPreview.vue";
|
|
|
|
import MkPagination, { Paging } from "@/components/MkPagination.vue";
|
|
|
|
import { i18n } from "@/i18n";
|
2023-04-11 07:42:27 +09:00
|
|
|
|
2023-05-07 08:05:18 +09:00
|
|
|
const props = withDefaults(
|
|
|
|
defineProps<{
|
|
|
|
pagination: Paging;
|
|
|
|
noGap?: boolean;
|
|
|
|
extractor?: (item: any) => any;
|
|
|
|
}>(),
|
|
|
|
{
|
|
|
|
extractor: (item) => item,
|
|
|
|
}
|
|
|
|
);
|
2023-04-11 07:42:27 +09:00
|
|
|
</script>
|
|
|
|
|
2023-05-07 08:05:18 +09:00
|
|
|
<style lang="scss" scoped></style>
|