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@t0m8ld`} col={1} title={fieldSettingFormCondition.title} showGroup={fieldSettingFormCondition.defaultshow}>
				<WeaTableEdit ecId={`${this && this.props && this.props.ecId || ''}_WeaTableEdit@m7kmy3`} {...tableEditConfig} ref={(editTable) => setEditTable(editTable, 'fieldDef')}/>
			</WeaSearchGroup>
		)
	}
}