提交 056fc131 编写于 作者: V vben

fix(table): index column value error #187

上级 6d5c49f0
...@@ -73,8 +73,7 @@ function handleIndexColumn( ...@@ -73,8 +73,7 @@ function handleIndexColumn(
return `${index + 1}`; return `${index + 1}`;
} }
const { current = 1, pageSize = PAGE_SIZE } = getPagination; const { current = 1, pageSize = PAGE_SIZE } = getPagination;
const currentIndex = (current - 1) * pageSize + index + 1; return ((current < 1 ? 1 : current) - 1) * pageSize + index + 1;
return currentIndex;
}, },
...(isFixedLeft ...(isFixedLeft
? { ? {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册