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

38 lines
916 B
JavaScript
Raw Normal View History

2019-01-12 11:33:27 +08:00
import PropTypes from '../_util/vue-types';
2017-12-06 18:54:20 +08:00
export default {
prefixCls: {
default: 'ant-input',
type: String,
},
defaultValue: [String, Number],
value: [String, Number],
placeholder: [String, Number],
type: {
default: 'text',
type: String,
},
name: String,
size: {
2019-01-12 11:33:27 +08:00
validator(value) {
return ['small', 'large', 'default'].includes(value);
2017-12-06 18:54:20 +08:00
},
},
disabled: {
default: false,
type: Boolean,
},
readOnly: Boolean,
2018-02-27 12:17:53 +08:00
addonBefore: PropTypes.any,
addonAfter: PropTypes.any,
2017-12-06 18:54:20 +08: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 12:17:53 +08:00
prefix: PropTypes.any,
suffix: PropTypes.any,
2017-12-06 18:54:20 +08:00
spellCheck: Boolean,
autoFocus: Boolean,
2019-01-12 11:33:27 +08:00
};