/** * title: "可展开表格" * description: "" */ import React, { useState } from 'react'; import { Table } from '@alicloud/console-components'; import Actions, { LinkButton } from '@alicloud/console-components-actions'; const getDataSource = () => { const result: any[] = []; for (let i = 0; i < 5; i++) { result.push({ id: 100306660940 + i, status: i % 2 === 0 ? '运行中' : '停用', type: '专用网络', title: '可以通过 expandedRowRender 额外渲染行', }); } return result; }; const render = () => { return ( {}}> 操作项 {}}> 操作项 {}}> 操作项 {}}> 操作项 ); }; const expandedStyle = { borderWidth: 0, borderStyle: 'solid', borderColor: '#e5e5e5', padding: '16px', background: '#ffffff', }; const centerStyle = { height: '128px', borderRadius: '4px', lineHeight: '128px', background: '#f6f6f6', textAlign: 'center', } as const; export default () => { const [dataSource] = useState(getDataSource()); return ( (
Content Placeholder
)} >
); };