Skip to content

Commit

Permalink
refactor(skeleton): service group
Browse files Browse the repository at this point in the history
  • Loading branch information
hywax committed Dec 28, 2023
1 parent 24b61b3 commit c8c3ef9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions components/service/Group.vue → components/Group.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,19 @@
{{ title }}
</h2>
<div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-1 lg:gap-2 lg:gap-y-4">
<template v-for="(item, key) in items" :key="key">
<ServiceItem v-bind="item" />
<template v-for="item in items" :key="item.id">
<Item v-bind="item" />
</template>
</div>
</div>
</template>

<script setup lang="ts">
import type { BaseService } from '~/types'
export interface Props {
title: string
items: any[]
items: BaseService[]
}
defineProps<Props>()
Expand Down

0 comments on commit c8c3ef9

Please sign in to comment.