Skip to content

Commit f8c5762

Browse files
committed
解决没有心的问题
1 parent 7f8ffdc commit f8c5762

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/components/OthersList/OthersList.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
</div>
77
</div>
88
<div class="view-content">
9+
<HeartItems @spawn="handleSpawn" />
910
<CoinItems @spawn="handleSpawn" />
1011
<BoomItems @spawn="handleSpawn" />
1112
<KeyItems @spawn="handleSpawn" />
@@ -19,6 +20,7 @@
1920
</template>
2021

2122
<script setup>
23+
import HeartItems from './hearts.vue'
2224
import CoinItems from './coins.vue'
2325
import BoomItems from './booms.vue'
2426
import KeyItems from './keys.vue'

src/components/OthersList/hearts.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
<template>
22
<div class="item heart" v-for="item in arr" @click="handleSpawn(item.id)">
33
<div class="image">
4-
<img :src="`${item.image}`" alt="" srcset="">
4+
<img :src="`${item.image}`" alt="">
55
</div>
6-
<div class="id">{{ item.id }}</div>
76
</div>
87
</template>
98

@@ -18,5 +17,6 @@ const handleSpawn = (id) => {
1817
<style lang="less">
1918
.item.heart .image img {
2019
width: 100%;
20+
scale: 2;
2121
}
2222
</style>

0 commit comments

Comments
 (0)