Event handling when the vue parent component references multiple identical child components

as shown in the figure, the following button subcomponents are referenced on the page, the first is online and selected, the second is online unselected, and the third is offline. Whether the button is returned in the online background, only the online status can be clicked and selected, and other online status buttons become unchecked after being selected. Button in offline state is read-only (does not trigger click event)

clipboard.png


isClick true isClickfalse.
:isClicktruefalse

clipboard.png


parent component isclick,

<div v-for="(item,index) in channelBtns" :key="index">
    <channel-btn :channel-name="item.name" :is-online="item.isonline" :isClick="item.isClick" 
    class="channelBtn" @change="clickBtn"></channel-btn>
</div>```
isclickprops

props: {

    channelName:String,
    isOnline:Boolean,
    isClick: Boolean,
},
Menu