Vue中el-table-column获取当行中的数据

1、el-table-column中prop只能确定属性名不能查看其中的值?

解决方法:

temple中有一个slot-scope属性可以获取当前行{{scope.row.value}}获取当前行中的数据值

 <template slot-scope="scope">
     <el-popover
            placement="bottom"
            width="200"
            trigger="click">
           <!--value属性值-->
          <span>{{scope.row.value}}</span>
          <el-button slot="reference" size="mini" type="success">查看说明</el-button>
      </el-popover>
</template>

  博客:孤独&烙印的博客_CSDN博客-springSecurity,spring-fox,vue领域博主


版权声明:本文为qq_46372272原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。