var _typeMap;
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
/**
 * 组件的默认type类型，未指定类型为void
 */
var typeMap = (_typeMap = {
  Input: 'string',
  Password: 'string',
  TextArea: 'string',
  NumberPicker: 'number',
  Percent: 'number',
  Money: 'number',
  Select: 'string',
  MenuSelect: 'string',
  MultipleMenuSelect: 'array',
  MultipleSelect: 'array',
  MenuCascaderSelect: 'string',
  MultipleMenuCascaderSelect: 'array',
  TreeSelect: 'string',
  Cascader: 'string',
  MultipleCascader: 'array',
  ArbitraryCascader: 'string',
  Radio: 'string',
  Checkbox: 'boolean',
  Switch: 'boolean',
  DatePicker: 'string',
  TimePicker: 'string',
  DateTimePicker: 'string',
  WeekPicker: 'string',
  MonthPicker: 'string',
  YearPicker: 'string',
  QuarterPicker: 'string',
  DateRangePicker: 'array',
  TimeRangePicker: 'array',
  DateTimeRangePicker: 'array',
  WeekRangePicker: 'array',
  MonthRangePicker: 'array',
  YearRangePicker: 'array',
  QuarterRangePicker: 'array',
  Transfer: 'array',
  Upload: 'object',
  ColorPicker: 'string',
  ColorRadio: 'string',
  IconPicker: 'string',
  JsonInput: 'object',
  TagPicker: 'string',
  MultipleTagPicker: 'array',
  Range: 'string',
  Search: 'array',
  SelectGroup: 'array',
  SelectTable: 'array',
  SelectTable2: 'array'
}, _defineProperty(_typeMap, 'SelectTable.Column', 'string'), _defineProperty(_typeMap, "ArrayCollapse", 'array'), _defineProperty(_typeMap, "ArrayCards", 'array'), _defineProperty(_typeMap, "ArrayTable", 'array'), _defineProperty(_typeMap, "ArrayItems", 'array'), _defineProperty(_typeMap, 'Editable.Popover', 'object'), _defineProperty(_typeMap, 'Editable.Dialog', 'object'), _defineProperty(_typeMap, 'Editable.Drawer', 'object'), _typeMap);
export default (function (type, component) {
  return type || typeMap[component] || 'void';
});