当前位置:网站首页>Add serial number to El table
Add serial number to El table
2022-04-23 06:50:00 【Time202051】
element Of table Add serial number template of use props.$index Can get the current index ( must type="index" when )
<el-table-column label="#" type="index" align="center">
<template #default="props">
{
{
(pagination.currentPage - 1) * pagination.pageSize + props.$index + 1 }}
</template>
</el-table-column>
版权声明
本文为[Time202051]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230551594361.html
边栏推荐
猜你喜欢
随机推荐
C language code specification
Redux概述
excel快速自动填充空白单元格上一行的内容
元素计算距离与event事件对象
Node访问服务器端静态资源
ASP.NET CORE在类库项目中读取配置文件
说说ts的心里话
Set up a personal blog of jpress
Principle and characteristic analysis of triode
SQLite compilation
查漏补缺(六)
Node的数据库编程
Use of C language and
Interprocess communication - mutex
HDU-Memory Control
手动实现call,apply,bind函数
提交本地仓库并同步码云仓库
查漏补缺(九)---程序篇
token详解以及应用原理
sqlserver性能优化建议