'use strict';

Object.defineProperty(exports, "__esModule", {
  value: true
});

var _react = require('react');

var _react2 = _interopRequireDefault(_react);

var _mxa = require('../../../../components/mxa');

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

/**
 * Created by baoyinghai on 5/31/17.
 */
exports.default = {
  getKeys: function getKeys(keys) {
    return keys;
  },
  setFormItems: function setFormItems(key, setting) {
    return {
      key: key,
      label: key,
      comp: _react2.default.createElement(_mxa.Input, null),
      initData: setting && setting[key] || key
    };
  }
};