Skip to content

Commit c8c3ef9

Browse files
committed
refactor(skeleton): service group
1 parent 24b61b3 commit c8c3ef9

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

components/service/Group.vue components/Group.vue

+5-3
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,19 @@
44
{{ title }}
55
</h2>
66
<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">
7-
<template v-for="(item, key) in items" :key="key">
8-
<ServiceItem v-bind="item" />
7+
<template v-for="item in items" :key="item.id">
8+
<Item v-bind="item" />
99
</template>
1010
</div>
1111
</div>
1212
</template>
1313

1414
<script setup lang="ts">
15+
import type { BaseService } from '~/types'
16+
1517
export interface Props {
1618
title: string
17-
items: any[]
19+
items: BaseService[]
1820
}
1921
2022
defineProps<Props>()

0 commit comments

Comments
 (0)