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.
ant-design-vue/components/input/inputProps.js

37 lines
942 B

import PropTypes from '../_util/vue-types';
7 years ago
export default {
5 years ago
prefixCls: PropTypes.string,
inputPrefixCls: PropTypes.string,
7 years ago
defaultValue: [String, Number],
value: [String, Number],
placeholder: [String, Number],
type: {
default: 'text',
type: String,
},
name: String,
size: {
validator(value) {
return ['small', 'large', 'default'].includes(value);
7 years ago
},
},
disabled: {
default: false,
type: Boolean,
},
readOnly: Boolean,
addonBefore: PropTypes.any,
addonAfter: PropTypes.any,
7 years ago
// 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,
7 years ago
spellCheck: Boolean,
autoFocus: Boolean,
6 years ago
allowClear: Boolean,
};