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领域博主

Logo

为开发者提供学习成长、分享交流、生态实践、资源工具等服务,帮助开发者快速成长。

更多推荐