import React from 'react'; import ReactDOM from 'react-dom'; import Table from '..'; const data = [ { key: 1, name: 'a', age: 32, address: 'aa', children: [ { key: 11, name: 'b', age: 33, address: 'bb', }, { key: 12, name: 'c', age: 33, address: 'cc', children: [ { key: 121, name: 'd', age: 33, address: 'dd', }, ], }, { key: 13, name: 'e', age: 33, address: 'ee', children: [ { key: 131, name: 'f', age: 33, address: 'ff', children: [ { key: 1311, name: 'g', age: 33, address: 'gg', }, { key: 1312, name: 'h', age: 33, address: 'hh', }, ], }, ], }, ], }, { key: 2, name: 'i', age: 32, address: 'ii', children: [], }, ]; const tableMixTree = ( {} }} >
); const tableMixExpanded = ( record.address} rowSelection={{ onChange: () => {} }} >
); const tableMixSelectionTreeLock = (
{} }} isTree >
); const tableMixLock = (
{} }} >
); const tableMixExpandedLock = (
{} }} expandedRowRender={record => record.address} expandedRowIndent={[ 3, 1 ]} >
); const tableMixTreeLock = (
); ReactDOM.render(

tree & select

{tableMixTree}

extra & select

{tableMixExpanded}

tree & lock column & select

{tableMixSelectionTreeLock}

extra & lock column & select

{tableMixExpandedLock}

lock column & select

{tableMixLock}

tree & lock column

{tableMixTreeLock}
, document.getElementById('table-demo-22'), );