仪表盘
版本库
文件存储
活动
搜索
登录
董宇坤
/
iailab-plat-ui-vue3
分支自
iailab-plat-ui-vue3
概况
提交次数
目录
文档
分支
对比
blame
|
历史
|
原始文档
转炉大模型功能完善
houzhongjian
2025-06-18
923f49266b00bd05bf8a4037b29ecb706d1306ff
[~dongyukun/iailab-plat-ui-vue3.git]
/
src
/
components
/
Table
/
src
/
helper.ts
1
2
3
4
5
6
7
8
export const setIndex = (reserveIndex: boolean, index: number, size: number, current: number) => {
const newIndex = index + 1
if (reserveIndex) {
return size * (current - 1) + newIndex
} else {
return newIndex
}
}