shower[index] = !shower[index]
$set(shower, index, !shower[index])
data: () => ({
items: [
{ name: '...', show: false },
{ name: '...', show: false },
...
],
...
}),
<span @click="item.show = !item.show">{{ item.name }}</span>
<div class="dialog_show" v-if="item.show">{{ index }}</div>