当前位置:网站首页>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;边栏推荐
- The solution of porting stm32f103zet6 program to c8t6+c8t6 download program flash timeout
- 数据集成这个地方的过滤条件该咋写,用的啥语法?sql语法处理bizdate可以不
- The data type of symbol, a new feature of ES6
- Pointer of pointer???...
- Asp. Net MVC, how can the controller in the folder jump to the controller in the root directory?
- SQL语句 关于字段转换怎么写
- Simple cases of inner connection and left connection
- [introduction to C language] zzulioj 1031-1035
- 一文学透MySQL表的创建和约束
- Data mining -- code implementation of association analysis example (Part 2)
猜你喜欢

Ssl== certificate related concepts

Analysis of new retail o2o e-commerce model

Configmap configuration and secret encryption

内连接和左连接简单案例

When array is used as a function parameter, it is better to use the array size as a function parameter

EMD 经验模态分解

SSL==证书相关概念

VScode连接ssh遇到的问题

Solve the problem of garbled code when opening the project code in idea

1985-2020 (8 Editions) global surface coverage download and introduction
随机推荐
C language: getchar () and cache
新零售O2O 电商模式解析
VScode连接ssh遇到的问题
Alibaba Font Icon Library Usage and update methods
Opensql quick learning
Install the laser of ROS_ scan_ Problems encountered in match library (I)
Pointer variables -printf%d and%p meaning
Typescript from getting started to mastering (19) enumeration types
从2019 年开始,你一定停止使用了这个营销策略…
pat A1041 Be Unique
Lua language (stm32+2g/4g module) and C language (stm32+esp8266) methods of extracting relevant data from strings - collation
Is the array name a pointer
Typescript from getting started to mastering (XX) function generics
路由 知识
Code ~ hide or disable the status bar and virtual keys
A little understanding of pointer, secondary pointer, wild pointer, pointer as function return value
Note: restframe work records many to one tables, how to serialize in that table (reverse query)
大厂们终于无法忍受“加一秒”了,微软谷歌Meta等公司提议废除闰秒
Const read only variable constant
Let variable declaration feature of ES6 new feature and its case