"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports["default"] = void 0;
var _loopData = _interopRequireDefault(require("../_com-props/loopData"));
var _locale = require("../../src/locale");
var _snippets = _interopRequireDefault(require("./snippets"));
var _default = exports["default"] = {
  snippets: _snippets["default"],
  componentName: 'Input',
  "group": (0, _locale.t)('input.key_B7SkWmwkrl0t'),
  title: (0, _locale.t)('input.key_oMbEGJS3qY7z'),
  category: (0, _locale.t)('input.key_4QevZWKiKSAP'),
  props: [_loopData["default"], {
    name: 'defaultValue',
    title: {
      label: (0, _locale.t)('input.key_zr7liimckn7P'),
      tip: (0, _locale.t)('input.key_jTqwLbxzDPE5')
    },
    propType: 'string',
    setter: 'StringSetter'
  }, {
    name: 'value',
    title: {
      label: (0, _locale.t)('input.key_Ll9TzQqR8O4W'),
      tip: (0, _locale.t)('input.key_WiiGbmzRGkxh')
    },
    propType: 'string',
    setter: 'StringSetter'
  }, {
    name: 'allowClear',
    title: {
      label: (0, _locale.t)('input.key_g3frTyhYouv6'),
      tip: (0, _locale.t)('input.key_nqaIsqOskTP7')
    },
    propType: 'bool',
    setter: 'BoolSetter'
  }, {
    name: 'bordered',
    title: {
      label: (0, _locale.t)('input.key_5apYZomqGMYN'),
      tip: (0, _locale.t)('input.key_ZdR0h3TSEhkP')
    },
    propType: 'bool',
    defaultValue: true,
    setter: 'BoolSetter'
  }, {
    name: 'disabled',
    title: {
      label: (0, _locale.t)('input.key_yIJlvgEKMPQH'),
      tip: (0, _locale.t)('input.key_S6FlcaYVscsS')
    },
    propType: 'bool',
    defaultValue: false,
    setter: 'BoolSetter'
  }, {
    name: 'placeholder',
    title: {
      label: (0, _locale.t)('input.key_JQPyEvTPpOIz'),
      tip: (0, _locale.t)('input.key_TCJOXUoVFxrB')
    },
    propType: 'string',
    defaultValue: (0, _locale.t)('input.key_io1pmxKP6mnz'),
    setter: 'StringSetter'
  }, {
    name: "placeholderColor",
    title: {
      label: '占位颜色',
      tip: (0, _locale.t)("connector-pro.key_RAouAWkB9UYs")
    },
    propType: "string",
    setter: "ColorSetter",
    defaultValue: "rgba(255, 255, 255, 0.02)"
  }, {
    name: 'maxLength',
    title: {
      label: (0, _locale.t)('input.key_ccEsaOzfrtEv'),
      tip: (0, _locale.t)('input.key_Pbvu7YYuhAek')
    },
    propType: 'number',
    setter: 'NumberSetter'
  }, {
    name: 'size',
    title: {
      label: (0, _locale.t)('input.key_E2cKAp2OS5zP'),
      tip: (0, _locale.t)('input.key_G431xLOANbqu')
    },
    setter: {
      componentName: 'RadioGroupSetter',
      props: {
        options: [{
          title: (0, _locale.t)('input.key_x5ohLB7iwHdG'),
          value: 'large'
        }, {
          title: (0, _locale.t)('input.key_i9cJ6IUnixzw'),
          value: 'middle'
        }, {
          title: (0, _locale.t)('input.key_D9D65DI5me5X'),
          value: 'small'
        }]
      }
    },
    propType: {
      type: 'oneOf',
      value: ['large', 'middle', 'small']
    },
    defaultValue: 'middle'
  }, {
    name: 'addonAfter',
    title: {
      label: (0, _locale.t)('input.key_kXfC7KuMic0V'),
      tip: (0, _locale.t)('input.key_poTZBdu3lnn5')
    },
    propType: {
      type: 'oneOfType',
      value: ['string', 'node']
    }
  }, {
    name: 'addonBefore',
    title: {
      label: (0, _locale.t)('input.key_i2izGhC3trnB'),
      tip: (0, _locale.t)('input.key_cKXNewOhquv1')
    },
    propType: {
      type: 'oneOfType',
      value: ['string', 'node']
    }
  }, {
    name: 'prefix',
    title: {
      label: (0, _locale.t)('input.key_AXu6RKG2kCb2'),
      tip: (0, _locale.t)('input.key_ugqY4xgMmrQa')
    },
    propType: {
      type: 'oneOfType',
      value: ['string', 'node']
    }
  }, {
    name: 'suffix',
    title: {
      label: (0, _locale.t)('input.key_1c4auuYqPUni'),
      tip: (0, _locale.t)('input.key_H5vMXi3ztDAY')
    },
    propType: {
      type: 'oneOfType',
      value: ['string', 'node']
    }
  }, {
    name: 'onChange',
    title: {
      label: (0, _locale.t)('input.key_1oaoHGUk7YnD'),
      tip: (0, _locale.t)('input.key_DaFaUUkJ2CI3')
    },
    propType: 'func'
  }, {
    name: 'onPressEnter',
    title: {
      label: (0, _locale.t)('input.key_thNRZCE3vKa2'),
      tip: (0, _locale.t)('input.key_WWTfLBEwENfU')
    },
    propType: 'func'
  }, {
    name: 'onFocus',
    title: {
      label: (0, _locale.t)('input.key_i2Q5r2i4snuP'),
      tip: (0, _locale.t)('input.key_fHxkirSa6Q5j')
    },
    propType: 'func'
  }, {
    name: 'onKeyDown',
    title: {
      label: (0, _locale.t)('input.key_QPUlFkQKgOds'),
      tip: (0, _locale.t)('input.key_Fpb4dDmuAQjU')
    },
    propType: 'func'
  }, {
    name: 'onKeyPress',
    title: {
      label: (0, _locale.t)('input.key_mH9cotbgMmee'),
      tip: (0, _locale.t)('input.key_yNWAwKS5vX2v')
    },
    propType: 'func'
  }, {
    name: 'onKeyUp',
    title: {
      label: (0, _locale.t)('input.key_Zl2FChcAtazJ'),
      tip: (0, _locale.t)('input.key_THmKg4hry4Oi')
    },
    propType: 'func'
  }, {
    name: 'onBlur',
    title: {
      label: (0, _locale.t)('input.key_JGv5e48quBga'),
      tip: (0, _locale.t)('input.key_EJviRPPoXVWS')
    },
    propType: 'func'
  }],
  configure: {
    supports: {
      style: true,
      events: false
    }
  }
};