You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
1.3 KiB
44 lines
1.3 KiB
import PropTypes from '../_util/vue-types';
|
|
export default {
|
|
prefixCls: PropTypes.string,
|
|
inputPrefixCls: PropTypes.string,
|
|
defaultValue: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
placeholder: [String, Number],
|
|
type: {
|
|
default: 'text',
|
|
type: String,
|
|
},
|
|
name: String,
|
|
size: PropTypes.oneOf(['small', 'large', 'default']),
|
|
disabled: PropTypes.bool,
|
|
readonly: PropTypes.bool,
|
|
addonBefore: PropTypes.any,
|
|
addonAfter: PropTypes.any,
|
|
// onPressEnter?: React.FormEventHandler<any>;
|
|
// onKeyDown?: React.FormEventHandler<any>;
|
|
// onChange?: React.ChangeEventHandler<HTMLInputElement>;
|
|
// onClick?: React.FormEventHandler<any>;
|
|
// onFocus?: React.FormEventHandler<any>;
|
|
// onBlur?: React.FormEventHandler<any>;
|
|
prefix: PropTypes.any,
|
|
suffix: PropTypes.any,
|
|
// spellCheck: Boolean,
|
|
autofocus: Boolean,
|
|
allowClear: Boolean,
|
|
lazy: {
|
|
default: true,
|
|
type: Boolean,
|
|
},
|
|
maxlength: PropTypes.number,
|
|
loading: PropTypes.bool,
|
|
onPressEnter: PropTypes.func,
|
|
onKeydown: PropTypes.func,
|
|
onKeyup: PropTypes.func,
|
|
onFocus: PropTypes.func,
|
|
onBlur: PropTypes.func,
|
|
onChange: PropTypes.func,
|
|
onInput: PropTypes.func,
|
|
'onUpdate:value': PropTypes.func,
|
|
};
|