import type { BasicType } from '../../_utils'; import type { PropType, ExtractPropTypes } from 'vue'; import type { InputType, InputUpdate } from './interface'; import type { HandleEvent, VmSize, VmIcon } from '../../_interface'; export declare const Props: { /** 绑定值 */ readonly modelValue: BasicType, string | number | null>; /** * 类型 * * 文字输入框或者密码输入框 * * @values text password number * @default text */ readonly type: BasicType, InputType | null>; /** * 尺寸 * * @values large middle small mini * @default null */ readonly size: BasicType, VmSize | null>; /** * 是否禁用 * * @see disabled https://developer.mozilla.org/zh-CN/docs/Web/HTML/Element/Input#attr-disabled */ readonly disabled: BasicType; /** * 最大(数字或日期时间)值 * * @see max https://developer.mozilla.org/zh-CN/docs/Web/HTML/Element/Input#attr-max */ readonly max: BasicType; /** * 最小(数字或日期时间)值 * * @see min https://developer.mozilla.org/zh-CN/docs/Web/HTML/Element/Input#attr-min */ readonly min: BasicType; /** * 最大输入长度 * * @see maxLength https://developer.mozilla.org/zh-CN/docs/Web/HTML/Element/Input#attr-maxlength */ readonly maxLength: BasicType; /** * 设置字体大小 * * @see font-size https://developer.mozilla.org/zh-CN/docs/Web/CSS/font-size */ readonly fontSize: BasicType, string | number | null>; /** * 是否自动获取焦点 * * @see autofocus https://developer.mozilla.org/zh-CN/docs/Web/HTML/Element/Input#attr-autofocus */ readonly autofocus: BasicType; /** * 原生 name 属性 * * @see name https://developer.mozilla.org/zh-CN/docs/Web/HTML/Element/Input#attr-name */ readonly name: BasicType, string | null>; /** * 占位符 * * @see placeholder https://developer.mozilla.org/zh-CN/docs/Web/HTML/Element/Input#attr-placeholder */ readonly placeholder: BasicType, string | null>; /** 占位符颜色 */ readonly placeholderColor: BasicType, string | null>; /** 是否可清除 */ readonly clear: BasicType; /** 自定义宽度 */ readonly width: BasicType, string | number | null>; /** 自定义高度 */ readonly height: BasicType, string | number | null>; /** 是否可搜索 */ readonly search: BasicType; /** 自定义背景色 */ readonly background: BasicType, string | null>; /** 自定义文字颜色 */ readonly textColor: BasicType, string | null>; /** 自定义获取焦点背景色 */ readonly activeBackground: BasicType, string | null>; /** 自定义获取焦点边框颜色 */ readonly activeBorderColor: BasicType, string | null>; /** * 是否只读 * * @see readonly https://developer.mozilla.org/zh-CN/docs/Web/HTML/Element/Input#attr-readonly */ readonly readonly: BasicType; /** 是否显示查看密码的按钮 */ readonly showPassword: BasicType; /** 是否按下回车进行搜索 */ readonly enterSearch: BasicType; /** 自定义 icon */ readonly icon: BasicType, null>; /** 后缀 icon */ readonly afterIcon: BasicType, null>; /** * 是否开启自动填充特性提示 * * 注意这不是一个布尔属性! * * 详情配置可参考 * * @see HTML属性autocomplete https://developer.mozilla.org/zh-CN/docs/Web/HTML/Attributes/autocomplete * @see autocomplete https://developer.mozilla.org/zh-CN/docs/Web/HTML/Element/Input#autocomplete */ readonly autocomplete: BasicType, string | null>; /** 点击搜索之后触发的回调 */ readonly onSearch: BasicType, null>; /** 绑定值发生改变时触发的回调 */ readonly onChange: BasicType, null>; /** input 事件触发的回调 */ readonly onInput: BasicType, null>; /** 失去焦点时触发的回调 */ readonly onBlur: BasicType, null>; /** 获得焦点时触发的回调 */ readonly onFocus: BasicType, null>; /** 按下回车触发的 */ readonly onEnter: BasicType, null>; }; /** input 组件 props 类型 */ export type InputProps = ExtractPropTypes;