import type { ReactText } from 'react'; import React, { useState } from 'react'; import { Button, Progress, Tag, Space } from 'infrad'; import ProList from 'infrad-pro-list'; const dataSource = [ { title: '语雀的天空', avatar: 'https://gw.alipayobjects.com/zos/antfincdn/efFD%24IOql2/weixintupian_20170331104822.jpg', }, { title: 'Ant Design', avatar: 'https://gw.alipayobjects.com/zos/antfincdn/efFD%24IOql2/weixintupian_20170331104822.jpg', }, { title: '蚂蚁金服体验科技', avatar: 'https://gw.alipayobjects.com/zos/antfincdn/efFD%24IOql2/weixintupian_20170331104822.jpg', }, { title: 'TechUI', avatar: 'https://gw.alipayobjects.com/zos/antfincdn/efFD%24IOql2/weixintupian_20170331104822.jpg', }, ]; export default () => { const [expandedRowKeys, setExpandedRowKeys] = useState([]); return ( rowKey="title" headerTitle="支持展开的列表" toolBarRender={() => { return [ , ]; }} expandable={{ expandedRowKeys, onExpandedRowsChange: setExpandedRowKeys }} dataSource={dataSource} metas={{ title: {}, subTitle: { render: () => { return ( Ant Design TechUI ); }, }, description: { render: () => { return 'Ant Design, a design language for background applications, is refined by Ant UED Team'; }, }, avatar: {}, content: { render: () => (
发布中
), }, actions: { render: () => { return 邀请; }, }, }} /> ); };