2021-06-26 01:35:40 +00:00
|
|
|
import type { PropType } from 'vue';
|
2019-01-12 03:33:27 +00:00
|
|
|
import PropTypes from '../_util/vue-types';
|
2021-06-30 07:17:53 +00:00
|
|
|
import type { SizeType } from '../config-provider';
|
2017-12-06 10:54:20 +00:00
|
|
|
export default {
|
2021-09-25 08:51:32 +00:00
|
|
|
id: PropTypes.string,
|
2019-09-11 10:11:48 +00:00
|
|
|
prefixCls: PropTypes.string,
|
|
|
|
inputPrefixCls: PropTypes.string,
|
2020-03-07 11:45:13 +00:00
|
|
|
defaultValue: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
|
|
value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
2020-10-16 06:24:14 +00:00
|
|
|
placeholder: {
|
|
|
|
type: [String, Number] as PropType<string | number>,
|
2017-12-06 10:54:20 +00:00
|
|
|
},
|
2020-10-16 06:24:14 +00:00
|
|
|
type: PropTypes.string.def('text'),
|
|
|
|
name: PropTypes.string,
|
2021-06-30 07:17:53 +00:00
|
|
|
size: { type: String as PropType<SizeType> },
|
2020-10-10 10:16:28 +00:00
|
|
|
disabled: PropTypes.looseBool,
|
|
|
|
readonly: PropTypes.looseBool,
|
2020-10-16 06:24:14 +00:00
|
|
|
addonBefore: PropTypes.VNodeChild,
|
|
|
|
addonAfter: PropTypes.VNodeChild,
|
|
|
|
prefix: PropTypes.VNodeChild,
|
|
|
|
suffix: PropTypes.VNodeChild,
|
2020-10-11 13:31:57 +00:00
|
|
|
autofocus: PropTypes.looseBool,
|
|
|
|
allowClear: PropTypes.looseBool,
|
2020-10-16 06:24:14 +00:00
|
|
|
lazy: PropTypes.looseBool.def(true),
|
2020-07-17 09:26:04 +00:00
|
|
|
maxlength: PropTypes.number,
|
2020-10-10 10:16:28 +00:00
|
|
|
loading: PropTypes.looseBool,
|
2020-07-30 10:41:38 +00:00
|
|
|
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,
|
2019-01-12 03:33:27 +00:00
|
|
|
};
|