ant-design-vue/components/input/inputProps.js

37 lines
942 B
JavaScript
Raw Normal View History

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,
2017-12-06 10:54:20 +00:00
defaultValue: [String, Number],
value: [String, Number],
placeholder: [String, Number],
type: {
default: 'text',
type: String,
},
name: String,
size: {
2019-01-12 03:33:27 +00:00
validator(value) {
return ['small', 'large', 'default'].includes(value);
2017-12-06 10:54:20 +00:00
},
},
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,
2019-04-07 09:19:18 +00:00
allowClear: Boolean,
2019-01-12 03:33:27 +00:00
};