用element的table组件怎么获取每一行的index
1个回答
2017-09-17
展开全部
-table :data="employees" highlight-current-row border style="width: 100%" @row-click="getEmpDetail" @selection-change="ss">
<el-table-column label="员工列表" inline-template>
<div class="empList">
<span class="employeeName">{{ row.employee_name }}</span>
<span class="employeeJob">{{ row.type }}</span>
</div>
</el-table-column>
</el-table>
<el-table-column label="员工列表" inline-template>
<div class="empList">
<span class="employeeName">{{ row.employee_name }}</span>
<span class="employeeJob">{{ row.type }}</span>
</div>
</el-table-column>
</el-table>
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询