当前位置:网站首页>el-table添加序号
el-table添加序号
2022-04-23 05:53:00 【Time202051】
element 的 table添加序号 template中用 props.$index可以获取当前索引(必须type="index"时)
<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://blog.csdn.net/weixin_45890414/article/details/120905199
边栏推荐
猜你喜欢
[UDS unified diagnostic service] i. overview of diagnosis (4) - basic concepts and terms
基于VGG对五种类别图片的迁移学习
2020 Jiangsu Collegiate Programming Contest-A.Array
卷积神经网络实现CIFAR100数据集分类
FOC single resistance sampling position loop control servo motor
深蓝学院激光slam理论与实践 -第二章(里程计标定)作业
Analysis and setting of dead time
[UDS unified diagnostic service] II. Network layer protocol (2) - data transmission rules (single frame and multi frame)
C语言实用小技巧合集(持续更新)
JS中 t, _ => 的解析
随机推荐
微信小程序之 js 时间戳/1000 转换 秒,六个小时后,一天后,本周五 选项计算时间
日志写法(带时间)
Makefile基础、常用函数及通用Makefile
POJ-The Unique MST
Figure guessing game
C language code specification
C language advanced notes 3
FOC电机库 定点PID代码分析
欢迎使用Markdown编辑器
微信小程序之改变数组中某值,对象中某值的方法
JS高频面试题
Initialization of classes and objects (constructors and destructors)
JS中 t, _ => 的解析
uniapp 自定义搜索框适配小程序对齐胶囊
C语言进阶要点笔记3
基于SSD的物体检测案例实现
C语言 #和##的使用
HDU-Memory Control
Quaternion multiplication
MOS管特性和导通过程