import { WeaDialog, WeaFormItem, WeaNewScroll, WeaSearchGroup, WeaMoreButton, WeaTable } from 'ecCom' import { Spin, Button, } from 'antd' import { WeaSwitch } from 'comsMobx' import { i18n } from '../public/i18n'; export default class NewTableDialog extends React.Component { constructor(props) { super(props); this.state = { width: 800, } } render() { const { title, visible, onCancel, loading, height, dataSource, columns } = this.props, { width, } = this.state; const buttons = [ //(), () ]; return ( onCancel()} buttons={buttons} style={{ width: width, height: height }} > { loading ?
: record.id} dataSource={dataSource} childrenColumnName="children" columns={columns} indentSize={15} defaultExpandedRowKeys={[1, 2]} /> }
) } }