diff --git a/components/apolloTable/component/Cell.tsx b/components/apolloTable/component/Cell.tsx index c99657afc7f952dcaf79ecd44f73438e8690b78d..54d4d3eeaf48ebeca508b0c0475b1ecea9903a83 100644 --- a/components/apolloTable/component/Cell.tsx +++ b/components/apolloTable/component/Cell.tsx @@ -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