File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
src/components/OthersList Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 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" />
1920</template >
2021
2122<script setup>
23+ import HeartItems from ' ./hearts.vue'
2224import CoinItems from ' ./coins.vue'
2325import BoomItems from ' ./booms.vue'
2426import KeyItems from ' ./keys.vue'
Original file line number Diff line number Diff line change 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 >
You can’t perform that action at this time.
0 commit comments