Commit 9465e76c authored by zhuyangbin's avatar zhuyangbin

序号可以传入方法

parent d98bec2c
...@@ -132,6 +132,9 @@ const Cell = (props: CellProps) => { ...@@ -132,6 +132,9 @@ const Cell = (props: CellProps) => {
const { current = 1, pageSize = 20 } = paginationConfig || {}; const { current = 1, pageSize = 20 } = paginationConfig || {};
// 构造序号 // 构造序号
const getIndex = () => { const getIndex = () => {
if(typeof showIndex === 'function'){
return showIndex(props)
}
return (current - 1) * pageSize + rowIndex + 1; return (current - 1) * pageSize + rowIndex + 1;
}; };
// 获取当前行在所选列表中的index // 获取当前行在所选列表中的index
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment