import React, {
	Component
} from 'react';
import {
	observer
} from 'mobx-react';
import {
	WeaSearchGroup,
	WeaTableEdit
} from 'ecCom';
import {
	i18n
} from '../../public/i18n';

@observer
export default class FieldSetting extends Component {
	constructor(props) {
		super(props);
	}

	componentDidMount() {}

	componentWillReceiveProps(nextProps) {}

	render() {
		const {
			store
		} = this.props;
		const {
			fieldSettingFormCondition,
			tableEditConfig,
			refreshTableData,
			setEditTable
		} = store;
		return (
			<WeaSearchGroup ecId={`${this && this.props && this.props.ecId || ''}_WeaSearchGroup@y5k8bu`} col={1} title={fieldSettingFormCondition.title} showGroup={fieldSettingFormCondition.defaultshow}>
				<WeaTableEdit ecId={`${this && this.props && this.props.ecId || ''}_WeaTableEdit@xnay0r`} {...tableEditConfig} ref={(editTable) => setEditTable(editTable, 'fieldDef')}/>
			</WeaSearchGroup>
		)
	}
}