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