Skip to content

输入框(Input)

组件标识

component: 'Input'

componentProps

参数名类型说明
placeholderstring占位符
disabledboolean禁用
readonlyboolean只读
clearableboolean是否显示清空按钮
maxlengthnumber最大长度
showWordLimitboolean是否显示字数统计
aiPromptstringAI 生成提示词
onBlur(e: Event) => void失焦事件
onFocus(e: Event) => void聚焦事件
onChange(value: string) => void值变更事件
onInput(value: string) => void输入事件
onClear() => void清空事件
styleRecord<string, any>自定义样式