el-table添加序号
主要的就是加入<template>标签加入额外的内容,感觉没啥好说的看代码应该能明白,记录一下。<el-table-columnlabel="编号" align="center"><template slot-scope="scop">{{scop.$index+1}}</template></el-table-column>...
·
主要的就是加入<template>标签加入额外的内容,感觉没啥好说的看代码应该能明白,记录一下。
<el-table-column label="编号" align="center">
<template slot-scope="scop">
{{scop.$index+1}}
</template>
</el-table-column>
更多推荐
已为社区贡献1条内容
所有评论(0)