当前位置:网站首页>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 diagnosis service] i. diagnosis overview (3) - ISO 15765 architecture
QT icon application
Generate shortcut
微信小程序之改变数组中某值,对象中某值的方法
信息学一本通-小球
FOC SVPWM函数PWMC_SetPhaseVoltage解析
C语言结构体指定初始化
Joseph sequence segment tree o (nlogn)
Vs can be compiled, but there will be a red underline to indicate the problem of undefined identifiers
统计字符串中每个字符出现的次数
cartographer_node 编译没问题,但是运行直接挂掉的bug
[UDS unified diagnostic service] IV. typical diagnostic service (5) - function / component test function unit (routine function unit 0x31)
软件工程中的十三种文档
undefined reference to `Nabo::NearestNeighbourSearch
Sdoi2009-hh Necklace
Log writing method (with time)
基于VGG卷积神经网络的图像识别代码实现
Matlab calibration board corner detection principle
C语言实用小技巧合集(持续更新)
Modify registry values







