21 lines
563 B
JavaScript
21 lines
563 B
JavaScript
|
|
import React from 'react';
|
||
|
|
import DataTable from './Table.js';
|
||
|
|
|
||
|
|
class ContentTable extends React.Component {
|
||
|
|
changePlatform(p) {
|
||
|
|
// this.refs.table.firstPage();
|
||
|
|
// this.setState({platform: p});
|
||
|
|
// this.refs.table.setState({platform: p})
|
||
|
|
this.refs.table.updatePlatform(p);
|
||
|
|
}
|
||
|
|
|
||
|
|
render() {
|
||
|
|
// const {platform} = this.state;
|
||
|
|
return (<div style={{ padding: 24, background: '#fff', minHeight: 780 }}>
|
||
|
|
<DataTable ref="table" ></DataTable >
|
||
|
|
</div>)
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
export default ContentTable;
|
||
|
|
|