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