Commit 9465e76c authored by zhuyangbin's avatar zhuyangbin

序号可以传入方法

parent d98bec2c
......@@ -132,6 +132,9 @@ const Cell = (props: CellProps) => {
const { current = 1, pageSize = 20 } = paginationConfig || {};
// 构造序号
const getIndex = () => {
if(typeof showIndex === 'function'){
return showIndex(props)
}
return (current - 1) * pageSize + rowIndex + 1;
};
// 获取当前行在所选列表中的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