mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-11-30 11:08:00 +08:00
41 lines
995 B
JavaScript
41 lines
995 B
JavaScript
import PropTypes from '../_util/vue-types';
|
|
export default {
|
|
prefixCls: PropTypes.string,
|
|
inputPrefixCls: PropTypes.string,
|
|
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);
|
|
},
|
|
},
|
|
disabled: {
|
|
default: false,
|
|
type: Boolean,
|
|
},
|
|
readOnly: Boolean,
|
|
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,
|
|
},
|
|
};
|