mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-12-04 04:58:16 +08:00
7d7f0f326c
close #4951
37 lines
1.2 KiB
TypeScript
37 lines
1.2 KiB
TypeScript
import type { PropType } from 'vue';
|
|
import PropTypes from '../_util/vue-types';
|
|
import type { SizeType } from '../config-provider';
|
|
export default {
|
|
id: PropTypes.string,
|
|
prefixCls: PropTypes.string,
|
|
inputPrefixCls: PropTypes.string,
|
|
defaultValue: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
placeholder: {
|
|
type: [String, Number] as PropType<string | number>,
|
|
},
|
|
type: PropTypes.string.def('text'),
|
|
name: PropTypes.string,
|
|
size: { type: String as PropType<SizeType> },
|
|
disabled: PropTypes.looseBool,
|
|
readonly: PropTypes.looseBool,
|
|
addonBefore: PropTypes.VNodeChild,
|
|
addonAfter: PropTypes.VNodeChild,
|
|
prefix: PropTypes.VNodeChild,
|
|
suffix: PropTypes.VNodeChild,
|
|
autofocus: PropTypes.looseBool,
|
|
allowClear: PropTypes.looseBool,
|
|
lazy: PropTypes.looseBool.def(true),
|
|
maxlength: PropTypes.number,
|
|
loading: PropTypes.looseBool,
|
|
onPressEnter: PropTypes.func,
|
|
onKeydown: PropTypes.func,
|
|
onKeyup: PropTypes.func,
|
|
onFocus: PropTypes.func,
|
|
onBlur: PropTypes.func,
|
|
onChange: PropTypes.func,
|
|
onInput: PropTypes.func,
|
|
'onUpdate:value': PropTypes.func,
|
|
valueModifiers: Object,
|
|
};
|