<el-table-column prop="capacity" label="操作" min-width="90" align="center">
<template slot-scope="scope">
<el-button @click="printIndex(scope.$index)">查看Index</el-button>
</template>
</el-table-column>
效果图
<el-table-column prop="capacity" label="操作" min-width="90" align="center">
<template slot-scope="scope">
<el-button @click="printIndex(scope.$index)">查看Index</el-button>
</template>
</el-table-column>
效果图
转载于:https://www.cnblogs.com/xinci/p/10075504.html