@fe6/water-pro
Version:
An enterprise-class UI design language and Vue-based implementation
35 lines (34 loc) • 1.16 kB
text/typescript
import { tuple } from '../_util/type';
import { PropType } from 'vue';
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: {
type: [String, Number] as PropType<string | number>,
},
type: PropTypes.string.def('text'),
name: PropTypes.string,
size: PropTypes.oneOf(tuple('small', 'large', 'default')),
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,
};