{
  "title": "input",
  "type": "object",
  "properties": {
    "value": {
      "type": "string",
      "description": "初始内容。"
    },
    "name": {
      "type": "string",
      "description": "组件名字，用于表单提交获取数据。"
    },
    "type": {
      "type": "string",
      "description": "input 的类型，有效值：text、 number、 idcard、 digit(可以唤起带有小数点的数字键盘)、numberpad、digitpad、 idcardpad。my.canIUse(\"input.type.numberpad\") 来检测。\n注意： 当启用数字键盘时，在 Android 客户端上，脱离文档流（如设置了 float 或 position: fixed 等样式）并指定了 bottom 属性的元素会被影响（该元素会被键盘顶起）。可以采用如下方法来暂且避免这个问题：当 input 框聚焦后隐藏被影响的元素。",
      "defaultValue": "text"
    },
    "password": {
      "type": "boolean",
      "description": "是否是密码类型。",
      "defaultValue": false
    },
    "placeholder": {
      "type": "string",
      "description": "占位符。"
    },
    "placeholder-style": {
      "type": "string",
      "description": "指定 placeholder 的样式，可设置间距。"
    },
    "placeholder-class": {
      "type": "string",
      "description": "指定 placeholder 的样式类。"
    },
    "disabled": {
      "type": "boolean",
      "description": "是否禁用。",
      "defaultValue": false
    },
    "maxlength": {
      "type": "number",
      "description": "最大长度。",
      "defaultValue": 140
    },
    "focus": {
      "type": "boolean",
      "description": "获取焦点。",
      "defaultValue": false
    },
    "confirm-type": {
      "type": "string",
      "description": "设置键盘右下角按钮的文字，有效值：done（显示“完成”）、go（显示“前往”）、next（显示“下一个”）、search（显示“搜索”）、send（显示“发送”），平台不同显示的文字略有差异。\n注意： 只有在 type=text 时有效。",
      "defaultValue": "done"
    },
    "confirm-hold": {
      "type": "boolean",
      "description": "点击键盘右下角按钮时是否保持键盘不收起状态。",
      "defaultValue": false
    },
    "cursor": {
      "type": "number",
      "description": "指定 focus 时的光标位置。"
    },
    "selection-start": {
      "type": "number",
      "description": "获取光标时，选中文本对应的焦点光标起始位置，需要和 selection-end 配合使用。",
      "defaultValue": -1
    },
    "selection-end": {
      "type": "number",
      "description": "获取光标时，选中文本对应的焦点光标结束位置，需要和 selection-start 配合使用。",
      "defaultValue": -1
    },
    "random-number": {
      "type": "boolean",
      "description": "当 type 为 number, digit, idcard 数字键盘是否随机排列。",
      "defaultValue": false
    },
    "controlled": {
      "type": "boolean",
      "description": "是否为受控组件。为 true 时，value 内容会完全受 setData 控制。\n建议当 type 值为 text 时不要将 controlled 设置为 true，详见 Bugs & Tips。",
      "defaultValue": false
    },
    "always-system": {
      "type": "boolean",
      "description": "是否强制使用系统键盘和 Web-view 创建的 input 元素。为 true 时，confirm-type、confirm-hold 可能失效。",
      "defaultValue": false
    },
    "onInput": {
      "tsType": "() => void",
      "description": "键盘输入时触发 input 事件，event.detail = {value: value,cursor: cursor}。"
    },
    "onConfirm": {
      "tsType": "() => void",
      "description": "点击键盘完成时触发，event.detail = {value: value}"
    },
    "onFocus": {
      "tsType": "() => void",
      "description": "聚焦时触发，event.detail = {value: value}。"
    },
    "onBlur": {
      "tsType": "() => void",
      "description": "失去焦点时触发（仅支持真机），event.detail = {value: value}。"
    }
  },
  "additionalProperties": false
}