<Table
columns={messageColumns}
dataSource={messageData}
pagination={{ pageSize: 10 }}
size="small"
/>
이렇게 pagination = {{pageSize: 10}}
넣어주면 한 페이지에 pageSize만큼의 열이 들어간다.
참조
https://github.com/ant-design/ant-design/issues/7477
How can we define the number of rows per page on the table pagination? like 10, 25, 50 etc · Issue #7477 · ant-design/ant-desi
What problem does this feature solve? If we can define the number of rows per page on the table pagination, So we can set a number of rows on the same page according to user wish. What does the pro...
github.com
'Front-end' 카테고리의 다른 글
[React] useEffect 란? (1) | 2022.11.03 |
---|
댓글