/* tslint:disable */ /** * This file was automatically generated by json-schema-to-typescript. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run json-schema-to-typescript to regenerate this file. */ export interface Textarea { /** * 组件名字,用于表单提交获取数据。 */ name?: string; /** * 初始内容。 */ value?: string; /** * 占位符。 */ placeholder?: string; /** * 指定 placeholder 的样式。 */ "placeholder-style"?: string; /** * 指定 placeholder 的样式类。 */ "placeholder-class"?: string; /** * 是否禁用。 */ disabled?: boolean; /** * 最大长度,当设置为 -1 时不限制最大长度。 */ maxlength?: number; /** * 获取焦点。 */ focus?: boolean; /** * 是否自动增高。 */ "auto-height"?: boolean; /** * 是否渲染字数统计功能(是否删除默认计数器/是否显示字数统计)。 */ "show-count"?: boolean; /** * 是否为受控组件。为 true 时,value 内容会完全受 setData 控制。 */ controlled?: boolean; /** * 设置键盘右下角按钮的文字。有效值:return(显示“换行”)、done(显示“完成”)、go(显示“前往”)、next(显示“下一个”)、search(显示“搜索”)、send(显示“发送”)。 * 注意: 仅支持 Android。 */ "confirm-type"?: string; /** * 键盘输入时触发,event.detail = {value: value, cursor: cursor}。 */ onInput?: () => void; /** * 输入框聚焦时触发 event.detail = {value: value}。 */ onFocus?: () => void; /** * 输入框失去焦点时触发,event.detail = {value: value}。 */ onBlur?: () => void; /** * 点击完成时触发,event.detail = {value: value}。 */ onConfirm?: () => void; }