<template>
<H3>el-popover的循环写法,visible和属性virtual-ref</H3>
<div style="display: flex">
<div v-for="(item, index) in data" :key="index">
<el-popover
:visible="visible && item.type === showKey"
:virtual-ref="refName"
>
<template #reference>
<el-button
class="m-2"
@click="toggleNameFilter(item.type)"
:id="item.type"
>{
{ item.name }}
</el-button>
</template>
<span>这是:{
{ item.name }} </span>
<el-button class&
09-12
6726
07-12
742
07-24
3188
04-10