-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
/
Copy pathinputProps.js
36 lines (36 loc) · 1.07 KB
/
inputProps.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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,
className: PropTypes.string,
};