import React, { useEffect } from "react"; import { Typography, Input, Select, Button, Space, Table } from "antd"; import type { ColumnsType } from "antd/es/table"; import styles from "./index.module.less"; import { PlusOutlined, ReloadOutlined } from "@ant-design/icons"; import { login } from "../../../api/index"; interface DataType { key: string; name: string; age: number; address: string; } const columns: ColumnsType = [ { title: "Name", dataIndex: "name", key: "name", render: (text) => {text}, }, { title: "Age", dataIndex: "age", key: "age", }, { title: "Address", dataIndex: "address", key: "address", }, { title: "Action", key: "action", render: (_, record) => ( Invite {record.name} Delete ), }, ]; const data: DataType[] = [ { key: "1", name: "John Brown", age: 32, address: "New York No. 1 Lake Park", }, { key: "2", name: "Jim Green", age: 42, address: "London No. 1 Lake Park", }, { key: "3", name: "Joe Black", age: 32, address: "Sydney No. 1 Lake Park", }, ]; export const VodListPage: React.FC = () => { useEffect(() => {}, []); const handleChange = (e: any) => { console.log(e); }; return ( <>
课程名称:
课程分类: