2018-02-27 12:17:53 +08:00
|
|
|
import PropTypes from '../_util/vue-types'
|
2017-12-06 18:54:20 +08:00
|
|
|
export default {
|
|
|
|
prefixCls: {
|
|
|
|
default: 'ant-input',
|
|
|
|
type: String,
|
|
|
|
},
|
|
|
|
defaultValue: [String, Number],
|
|
|
|
value: [String, Number],
|
|
|
|
placeholder: [String, Number],
|
|
|
|
type: {
|
|
|
|
default: 'text',
|
|
|
|
type: String,
|
|
|
|
},
|
|
|
|
name: String,
|
|
|
|
size: {
|
|
|
|
validator (value) {
|
|
|
|
return ['small', 'large', 'default'].includes(value)
|
|
|
|
},
|
|
|
|
},
|
|
|
|
disabled: {
|
|
|
|
default: false,
|
|
|
|
type: Boolean,
|
|
|
|
},
|
|
|
|
readOnly: Boolean,
|
2018-02-27 12:17:53 +08:00
|
|
|
addonBefore: PropTypes.any,
|
|
|
|
addonAfter: PropTypes.any,
|
2017-12-06 18:54:20 +08:00
|
|
|
// onPressEnter?: React.FormEventHandler<any>;
|
|
|
|
// onKeyDown?: React.FormEventHandler<any>;
|
|
|
|
// onChange?: React.ChangeEventHandler<HTMLInputElement>;
|
|
|
|
// onClick?: React.FormEventHandler<any>;
|
|
|
|
// onFocus?: React.FormEventHandler<any>;
|
|
|
|
// onBlur?: React.FormEventHandler<any>;
|
2018-02-27 12:17:53 +08:00
|
|
|
prefix: PropTypes.any,
|
|
|
|
suffix: PropTypes.any,
|
2017-12-06 18:54:20 +08:00
|
|
|
spellCheck: Boolean,
|
|
|
|
autoFocus: Boolean,
|
|
|
|
}
|