Element: Popover 弹出框在v-for循环中生成多个弹出框时会报错!!!

Created on 21 Mar 2017  ·  1Comment  ·  Source: ElemeFE/element

`

弹出内容!!!

`

Most helpful comment

基本的逻辑理解都有问题啊...
这样来写姿势才对:

<div class="msg-add" v-for="(item, index) in addresses" :key="item">
    <el-popover placement="top" width="220">
        弹出内容!!!
        <el-button type="text" slot="reference" icon="edit" class="edit-btn"></el-button>
    </el-popover>
</div>

http://jsfiddle.net/5vjb037h/

>All comments

基本的逻辑理解都有问题啊...
这样来写姿势才对:

<div class="msg-add" v-for="(item, index) in addresses" :key="item">
    <el-popover placement="top" width="220">
        弹出内容!!!
        <el-button type="text" slot="reference" icon="edit" class="edit-btn"></el-button>
    </el-popover>
</div>

http://jsfiddle.net/5vjb037h/

Was this page helpful?
0 / 5 - 0 ratings