el-table中使用el-popover翻页之后操作无效,操作不生效

给el-popover做一个唯一标识 :ref="`node-${scope.row.id}`" 使用v-if加以判断 重新渲染

   <el-popover placement="top" width="165" trigger="click" v-if="scope.row.status == '1'"

              :ref="`node-${scope.row.id}`">

              <div style="display: contents;justify-content: space-around;align-items: center;">

                <span>更新标准值</span> &nbsp;&nbsp;<el-input size="mini" style="width:70px;"

                  v-model.trim="updateValue"></el-input>

                <el-button size="mini" type="primary" @click="updateTestCase(scope.row)"

                  style="float: right;margin-top: 20px;">确定</el-button>

              </div>

              <el-button slot="reference" size="mini" round icon="el-icon-refresh" @click="popShow(scope.row.id)"

                v-show="scope.row.status == '1'">

              </el-button>

            </el-popover>

 

操作成功,如图,换页也很流畅 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值