当前位置:网站首页>The table of antd hides the pager when there is only one page
The table of antd hides the pager when there is only one page
2022-07-29 04:03:00 【Boiled water】
Baidu found it hard to find , So write for the benefit of future generations
The version I use :"react": "17.0.2", "react-dom": "17.0.2","antd": "4.20.6"
The point is to pagination Medium hideOnSinglePage Property set to true, The code is as follows
import React from 'react';
import 'antd/dist/antd.css';
import { Table } from 'antd';
const columns = [
{
title: 'Name',
dataIndex: 'name',
},
{
title: 'Age',
dataIndex: 'age',
}
];
const data = [
{
key: '1',
name: 'John Brown',
age: 32
}
];
const paginationProps = {
hideOnSinglePage: true
}
const ScorelistA = () => (
<div>
<Table columns={columns} dataSource={data} size="small" pagination={paginationProps}/>
</div>
);
export default ScorelistA;边栏推荐
- Alibaba Font Icon Library Usage and update methods
- SQL window function
- Ssl== certificate related concepts
- 力扣面试题17.04 消失的数字||260.只出现一次的数字(内含位运算知识点)
- Flask framework operation database_ Add, delete, modify and query statements
- 消费行业数字化升级成 “刚需”,weiit 新零售 SaaS 为企业赋能!
- 这个报错是什么鬼啊,不影响执行结果,但是在执行sql时一直报错。。。连接maxComputer是使用
- [BGP] small scale experiment
- Extended operator of new features in ES6
- [deep learning CPU (part outside) - virtual memory]
猜你喜欢

Typescript from getting started to mastering (XXII) namespace namespace (I)

mmdetection初步使用

Zhihuijun, a genius of Huawei, made a modular mechanical keyboard, which caused an earthquake in the geek circle. Netizens: This is the real customization

Configmap configuration and secret encryption

新零售O2O 电商模式解析

Simple cases of inner connection and left connection

UCOS任务切换过程

OA项目之会议通知(查询&是否参会&反馈详情)

Connection broken by 'readtimc rt-443): read timed out (read timeout=l5)“)‘: /pac

面试必备!TCP协议经典十五连问!
随机推荐
The solution of porting stm32f103zet6 program to c8t6+c8t6 download program flash timeout
Note: restframe work records many to one tables, how to serialize in that table (reverse query)
面试必备!TCP协议经典十五连问!
The function parameters of the new features of ES6 are assigned initial values and rest parameters
[untitled]
LVS+KeepAlived高可用部署实战应用
Meeting notice of OA project (Query & whether to attend the meeting & feedback details)
Uni app internationalization
Ssl== certificate related concepts
Communication between parent-child components and parent-child components provide and inject
C语言实现三子棋游戏(详解)
大厂们终于无法忍受“加一秒”了,微软谷歌Meta等公司提议废除闰秒
Zhihuijun, a genius of Huawei, made a modular mechanical keyboard, which caused an earthquake in the geek circle. Netizens: This is the real customization
关于双指针的思想总结
3.解决Pycharm报错Unresolved reference ‘selenium‘ Unresolved reference ‘webdriver‘
关于ALV格式控制部分的写法
Shopify卖家:EDM营销就要搭配SaleSmartly,轻松搞定转化率
Deep understanding of browser caching mechanism (HTTP)
The list is not updated in real time when JS V-for data changes
Lua language (stm32+2g/4g module) and C language (stm32+esp8266) methods of extracting relevant data from strings - collation