当前位置:网站首页>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
边栏推荐
猜你喜欢
随机推荐
Log writing method (with time)
锚点定位——如何设置锚点居页面顶部距离,锚点定位并距离顶部一定偏移
赛氪-zeal
查漏补缺(八)
Special register C51 / C52
todesk远程控制软件的使用
关于软件的空间占用,安装目录
v-for下定时给图片添加动画
若依框架从零开始
Palindromic Primes
Vs can be compiled, but there will be a red underline to indicate the problem of undefined identifiers
Informatics one book pass - small ball
JS中 t, _ => 的解析
Oracle改成mysql
Detailed explanation and application principle of token
赛氪-二进制
【ES6】 Promise相关(事件循环,宏/微任务,promise,await/await)
Detailed explanation and application of PN junction and diode principle
JS实现私有属性
VHDL finite state machine (FSM) code example