<template>
<div>
<div v-for="box in boxes" :key="box.id">
<BaseAccordian>
<template v-slot:title>{{ box.name }}</template>
<template v-slot:content>
<div v-for="paint in paints" :key="paint.id" class="line">
<div
v-if="
matchingdata.some(
(m) => m.boxid == box.boxid && m.paintid == paint.paintid
)
"
>
<StatusComponent
:box="box"
:paint="paint"
:matchingdata="matchingdata"
/>
</div>
<!-- <div v-else>no data found</div> -->
</div>
</template>
</BaseAccordian>
</div>
</div>
</template>
When i click of each checkbox, i am loading relevant data from box,paint array. by checking in matchingdata. Array.
Now, i want to show like, if no data found onclick of checkbox, i want to display a message as "no data found"
Issue with the below code is, if i place v-if at top and v-for and v-else data at the last then only few data is displaying