{
title: '序号',
dataIndex: 'index',
valueType: 'indexBorder',
width: 48,
hideInSearch: true,
render: (text, record, index) => {
const page = actionRef.current.pageInfo
return index + (page.current-1) * page.pageSize +1
}
}
其中
const actionRef = useRef<ActionType>();
通过 actionRef.current.pageInfo可获得当前接口的页数 每页数据条数等数据