<el-table>
<el-table-column
fixed="right"
label="操作"
width="100">
<template slot-scope="scope">
<el-button @click="handleClick(scope.row)" type="text" size="small">查看</el- button>
<el-button type="text" size="small">编辑</el-button>
</template>
</el-table-column>
</el-table>
el-table中只有一个el-table-column组件,template中也只有一套组件,elementui是怎么做到重复渲染了很多个template的,每一列都有,而且还能绑定slot-scope的值。