{
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可获得当前接口的页数 每页数据条数等数据
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)