列表数据在 dataSource={this.state.list} 中可自己调用添加 需要自己调接口并把数值赋值给list
import React from 'react';
import {
connect } from 'dva';
import {
Table, Row, Col, Button } from 'antd';
// eslint-disable-next-line react/prefer-stateless-function
class Once extends React.Component {
constructor(props) {
super(props);
this.state = {
pagination: {
pageSize: 10,
pageNumber: 1,
},
list: [],
}
}
componentDidMount() {
this.query();
}
//当页码切换的时候触发
pageNumChange = ({
pageSize, current }) => {
const pagination = this.state.pagination;
pagination.</