Vue + Elementui
在<el-table-column>里获取每一行表格的索引,从0开始自增:
slot-scope="scope" 和 scope.$index 配合就能获取索引
<template slot-scope="scope">
{{scope.%index}} <!--输出索引-->
</template>
Vue + Elementui
在<el-table-column>里获取每一行表格的索引,从0开始自增:
slot-scope="scope" 和 scope.$index 配合就能获取索引
<template slot-scope="scope">
{{scope.%index}} <!--输出索引-->
</template>
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。