mirror of
https://github.com/muerwre/muerwre.github.io.git
synced 2025-04-25 02:46:39 +07:00
initial
This commit is contained in:
commit
5104c2518b
34 changed files with 6844 additions and 0 deletions
34
components/home/HomeContentList.vue
Normal file
34
components/home/HomeContentList.vue
Normal file
|
@ -0,0 +1,34 @@
|
|||
<template>
|
||||
<masonry-wall
|
||||
:items="parentItems"
|
||||
:ssr-columns="1"
|
||||
:column-width="300"
|
||||
:gap="10"
|
||||
>
|
||||
<template #default="{ item }">
|
||||
<div :class="$style.row">
|
||||
<LayoutMainMenuRow
|
||||
:title="item.title"
|
||||
:url="item.url"
|
||||
:children="item.children"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
</masonry-wall>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
const { data: navigation } = await useAsyncData("navigation", () => {
|
||||
return fetchContentNavigation();
|
||||
});
|
||||
|
||||
const parentItems = navigation.value.filter(
|
||||
(it) => it.children && Array.isArray(it.children) && it.children.length > 0
|
||||
);
|
||||
</script>
|
||||
|
||||
<style lang="scss" module>
|
||||
.row {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
</style>
|
Loading…
Add table
Add a link
Reference in a new issue