From 9465e76c1ae2d579b9c362854cb5e19ba3f3b164 Mon Sep 17 00:00:00 2001 From: zhuyangbin Date: Mon, 26 Oct 2020 14:19:33 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BA=8F=E5=8F=B7=E5=8F=AF=E4=BB=A5=E4=BC=A0?= =?UTF-8?q?=E5=85=A5=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/apolloTable/component/Cell.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/apolloTable/component/Cell.tsx b/components/apolloTable/component/Cell.tsx index c99657a..54d4d3e 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 -- 2.21.0