import { t } from '../../src/locale'; import snippets from './snippets'; export default { snippets, componentName: 'Input.Search', "group":t('inputSearch.key_AJJQVZTEtuVM'), title: t('inputSearch.key_MYj9lA68Vj30'), category: t('inputSearch.key_dtLTcRwf2zWk'), props: [ { name: 'defaultValue', title: { label: t('inputSearch.key_kFXe5yuL4Gxn'), tip: t('inputSearch.key_Mv23wvmCFCSw') }, propType: 'string', setter: 'StringSetter' }, { name: 'value', title: { label: t('inputSearch.key_4eB41fk7H3AW'), tip: t('inputSearch.key_DxMiPgYFpH41') }, propType: 'string', setter: 'StringSetter' }, { name: 'bordered', title: { label: t('inputSearch.key_J3sClNT0LJsr'), tip: t('inputSearch.key_skNfBlZ3n5f3') }, propType: 'bool', defaultValue: true, setter: 'BoolSetter' }, { name: 'loading', title: { label: t('inputSearch.key_mmHbECJKb9kQ'), tip: 'loading' }, propType: 'bool', setter: 'BoolSetter' }, { name: 'disabled', title: { label: t('inputSearch.key_0G2HbZpanNd6'), tip: t('inputSearch.key_bIHGU67l9EFO') }, propType: 'bool', defaultValue: false, setter: 'BoolSetter' }, { name: 'placeholder', title: { label: t('inputSearch.key_3mVFaC0LDNrN'), tip: t('inputSearch.key_bEtBVrsWdlam') }, propType: 'string', defaultValue: t('inputSearch.key_eeQv1QyBX7Vm'), setter: 'StringSetter' }, { name: 'size', title: { label: t('inputSearch.key_IEVNXrRuPJ5b'), tip: t('inputSearch.key_dzQUotImL4us') }, propType: { type: 'oneOf', value: ['large', 'middle', 'small'] }, setter: { componentName: 'RadioGroupSetter', props: { options: [ { title: t('inputSearch.key_2JFOnJ9qrXOe'), value: 'large', }, { title: t('inputSearch.key_eCbfty98Rbao'), value: 'middle', }, { title: t('inputSearch.key_wB9ZYCNLToJ0'), value: 'small', }, ], }, }, defaultValue: 'middle', }, { name: 'enterButton', title: { label: t('inputSearch.key_eXb85hXRPlDy'), tip: t('inputSearch.key_FjWYH9J9ldEg'), }, propType: { type: 'oneOfType', value: ['bool', 'node'] }, defaultValue: false, }, { name: 'addonAfter', title: { label: t('inputSearch.key_6cf3IyLDhGsD'), tip: t('inputSearch.key_EO3NI4rTG9kg') }, propType: { type: 'oneOfType', value: ['string', 'node'] }, }, { name: 'addonBefore', title: { label: t('inputSearch.key_e1ntO5TPNQTa'), tip: t('inputSearch.key_7BfvbIxtNnQr') }, propType: { type: 'oneOfType', value: ['string', 'node'] }, }, { name: 'prefix', title: { label: t('inputSearch.key_yBYQohheZTJ1'), tip: t('inputSearch.key_OGbf4RhSnELC') }, propType: { type: 'oneOfType', value: ['string', 'node'] }, }, { name: 'suffix', title: { label: t('inputSearch.key_Kjgzm6aV44hR'), tip: t('inputSearch.key_m3LiogS04MhW') }, propType: { type: 'oneOfType', value: ['string', 'node'] }, }, { name: 'onChange', title: { label: t('inputSearch.key_PPRZ38TKRSJT'), tip: t('inputSearch.key_MZ2s80NJ4C6w') }, propType: 'func', }, { name: 'onPressEnter', title: { label: t('inputSearch.key_uSZCDPmfGv8q'), tip: t('inputSearch.key_4YYQ7sBH3AOO') }, propType: 'func', }, { name: 'onSearch', title: { label: t('inputSearch.key_FfaeSfGWzWJX'), tip: t('inputSearch.key_N0vI8P13ZBUK'), }, propType: 'func', }, { name: 'onFocus', title: { label: t('inputSearch.key_PrQwuPSsPUKD'), tip: t('inputSearch.key_YEYo5a4XE2we') }, propType: 'func', }, { name: 'onKeyDown', title: { label: t('inputSearch.key_OGG08NP898Og'), tip: t('inputSearch.key_ZBTYFsxX2Vl8') }, propType: 'func', }, { name: 'onKeyPress', title: { label: t('inputSearch.key_efaatVbhT6f2'), tip: t('inputSearch.key_Eg4kKKxz61Jx') }, propType: 'func', }, { name: 'onKeyUp', title: { label: t('inputSearch.key_Bn43Ip6OpV9X'), tip: t('inputSearch.key_lakccHH9aOui') }, propType: 'func', }, { name: 'onBlur', title: { label: t('inputSearch.key_So966Wq8ve0t'), tip: t('inputSearch.key_qpUAwK6n8ah3') }, propType: 'func', }, ], configure: { supports: { style: true, events: false, }, }, };