/**
 * Created by baoyinghai on 5/31/17.
 */
import React from 'react';
import { Select } from '../../../../components/mxa';

export default {
  getKeys: keys => ['column'],
  setFormItems: (key, setting, fields) => {
    return {
      key,
      label: key,
      comp:(
        <Select>
          {fields.map(f => (<Option value={f}>{f}</Option>))}
        </Select>
      ),
      initData: setting[key] || key
    };
  }
}