在使用element-ui的時候,經常見有插入 template slot-scope="scope"
<template slot-scope="scope"> <span v-else>{{scope.row[scope.column.property]}}</span> </template>
但是里面的scope具體是什么,我把他打印了出來記錄一下。
scope里面含有很多的參數,就是我們使用的table里面里面的各種參數值
scope里面的column:
scope.row:
在進行循環table列表的時候,可以通過 scope.column.property 來進行不同參數值的匹配。