2018-02-27 04:17:53 +00:00
|
|
|
import PropTypes from '../_util/vue-types'
|
2017-12-06 10:54:20 +00:00
|
|
|
export default {
|
|
|
|
prefixCls: {
|
|
|
|
default: 'ant-input',
|
|
|
|
type: String,
|
|
|
|
},
|
|
|
|
defaultValue: [String, Number],
|
|
|
|
value: [String, Number],
|
|
|
|
placeholder: [String, Number],
|
|
|
|
type: {
|
|
|
|
default: 'text',
|
|
|
|
type: String,
|
|
|
|
},
|
|
|
|
id: [String, Number],
|
|
|
|
name: String,
|
|
|
|
size: {
|
|
|
|
validator (value) {
|
|
|
|
return ['small', 'large', 'default'].includes(value)
|
|
|
|
},
|
|
|
|
},
|
|
|
|
disabled: {
|
|
|
|
default: false,
|
|
|
|
type: Boolean,
|
|
|
|
},
|
|
|
|
readOnly: Boolean,
|
2018-02-27 04:17:53 +00:00
|
|
|
addonBefore: PropTypes.any,
|
|
|
|
addonAfter: PropTypes.any,
|
2017-12-06 10:54:20 +00: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 04:17:53 +00:00
|
|
|
prefix: PropTypes.any,
|
|
|
|
suffix: PropTypes.any,
|
2017-12-06 10:54:20 +00:00
|
|
|
spellCheck: Boolean,
|
|
|
|
autoFocus: Boolean,
|
|
|
|
}
|