import {
	observer
} from 'mobx-react';
import {
	WeaTableNew,
} from 'comsMobx';
const WeaTable = WeaTableNew.WeaTable;

@observer
export default class Table extends React.Component {
	render() {
		const {
			store
		} = this.props, {
			tableProps,
			tableStore,
			onOperatesClick,
			reRenderColumns,
		} = store;
		
		return (
			<WeaTable ecId={`${this && this.props && this.props.ecId || ''}_WeaTable@q79gux`} 
				{...tableProps}
				comsWeaTableStore={tableStore}
				onOperatesClick={(record,index,operate,flag)=>onOperatesClick(record,index,operate,flag)}
				getColumns={columns=>reRenderColumns(columns)}
			/>
		);
	}
}