2019-01-12 11:33:27 +08:00
|
|
|
import PropTypes from '../_util/vue-types';
|
2017-12-06 18:54:20 +08:00
|
|
|
export default {
|
2019-09-11 18:11:48 +08:00
|
|
|
prefixCls: PropTypes.string,
|
|
|
|
inputPrefixCls: PropTypes.string,
|
2020-03-07 19:45:13 +08:00
|
|
|
defaultValue: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
|
|
value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
2017-12-06 18:54:20 +08:00
|
|
|
placeholder: [String, Number],
|
|
|
|
type: {
|
|
|
|
default: 'text',
|
|
|
|
type: String,
|
|
|
|
},
|
|
|
|
name: String,
|
2020-03-07 19:45:13 +08:00
|
|
|
size: PropTypes.oneOf(['small', 'large', 'default']),
|
|
|
|
disabled: PropTypes.bool,
|
|
|
|
readOnly: PropTypes.bool,
|
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,
|
2020-01-12 20:19:28 +08:00
|
|
|
// spellCheck: Boolean,
|
2017-12-06 18:54:20 +08:00
|
|
|
autoFocus: Boolean,
|
2019-04-07 17:19:18 +08:00
|
|
|
allowClear: Boolean,
|
2019-12-06 17:11:17 +08:00
|
|
|
lazy: {
|
|
|
|
default: true,
|
|
|
|
type: Boolean,
|
|
|
|
},
|
2020-03-07 19:45:13 +08:00
|
|
|
maxLength: PropTypes.number,
|
|
|
|
loading: PropTypes.bool,
|
2020-04-15 20:38:58 +08:00
|
|
|
className: PropTypes.string,
|
2019-01-12 11:33:27 +08:00
|
|
|
};
|