mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-12-16 01:41:15 +08:00
dc8306bea9
close #2077
37 lines
1.1 KiB
JavaScript
37 lines
1.1 KiB
JavaScript
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,
|
|
};
|