React+antd 如何使用Table表格
效果展示:1、;引入组件import React from 'react'
import { Breadcrumb, Card, Table, Button } from 'antd';
import { render } from '@testing-library/react';
2、;编写页面function Article() {
;;;const columns = [
;;;;;;;{
;;;;;;;;;;;title: '序号',
;;;;;;;;;;;key: 'id',
;;;;;;;;;;;width: 80,
;;;;;;;;;;;align: 'center',
;;;;;;;;;;;render: (txt, record, index) =>index + 1
;;;;;;;},
;;;;;;;{
;;;;;;;;;;;title: '标题',
;;;;;;;;;;;dataIndex: 'title'
;;;;;;;},
;;;;;;;{
;;;;;;;;;;;title: '分类',
;;;;;;;;;;;