{
  "title": "input",
  "type": "object",
  "properties": {
    "value": {
      "type": "string",
      "description": "输入框的初始值。"
    },
    "type": {
      "type": "string",
      "description": "input 的类型，详情见 type 的合法值。",
      "defaultValue": "text",
      "enum": [
        "text",
        "number",
        "digit"
      ]
    },
    "password": {
      "type": "boolean",
      "description": "是否是密码类型。",
      "defaultValue": false
    },
    "placeholder": {
      "type": "string",
      "description": "输入框为空时占位符。"
    },
    "placeholder-style": {
      "type": "string",
      "description": "指定 placeholder 的样式，只支持 font-size、font-weight、color 三个 CSS 特性。"
    },
    "placeholder-class": {
      "type": "string",
      "description": "指定 placeholder 的样式类。"
    },
    "disabled": {
      "type": "boolean",
      "description": "是否禁用。",
      "defaultValue": false
    },
    "maxlength": {
      "type": "number",
      "description": "最大输入长度。",
      "defaultValue": 140
    },
    "cursor-spacing": {
      "type": "number",
      "description": "指定软键盘弹出时，与光标的距离是多少，单位是 px。",
      "defaultValue": 0
    },
    "focus": {
      "type": "boolean",
      "description": "获取焦点，详情见 Bug & Tip。",
      "defaultValue": false
    },
    "cursor": {
      "type": "number",
      "description": "指定 focus 时的光标位置，详情见光标位置说明。",
      "defaultValue": -1
    },
    "selection-start": {
      "type": "number",
      "description": "指定 focus 时选中片段的起始位置，详情见光标位置说明。",
      "defaultValue": -1
    },
    "selection-end": {
      "type": "number",
      "description": "指定 focus 时选中片段的结束位置，详情见光标位置说明。",
      "defaultValue": -1
    },
    "adjust-position": {
      "type": "boolean",
      "description": "键盘弹起时，是否自动上推页面。",
      "defaultValue": true
    },
    "confirm-type": {
      "type": "string",
      "description": "设置键盘右下角按钮的文字，仅在 type='text' 时生效，详情见 confirm-type 的合法值。",
      "defaultValue": "done",
      "enum": [
        "send",
        "search",
        "next",
        "go",
        "done"
      ]
    },
    "confirm-hold": {
      "type": "boolean",
      "description": "点击键盘右下角按钮时是否保持键盘不收起。",
      "defaultValue": false
    },
    "hold-keyboard": {
      "type": "boolean",
      "description": "focus 时，点击页面的时候不收起键盘。",
      "defaultValue": false
    },
    "clue-type": {
      "type": "number",
      "description": "用于分发目的。取值：0 和 1，其中 0 表示默认，1 表示手机号，需要和留资分发配置一起使用，详情见留资分发配置。",
      "defaultValue": 0
    },
    "bindInput": {
      "tsType": "() => void",
      "description": "键盘输入时触发，处理函数可以直接 return 一个字符串，将替换输入框的内容，详情见 bindinput 说明。"
    },
    "bindFocus": {
      "tsType": "() => void",
      "description": "输入框聚焦时触发，详情见 bindfocus 说明。"
    },
    "bindBlur": {
      "tsType": "() => void",
      "description": "输入框失去焦点时触发，详情见 bindblur 说明。"
    },
    "bindConfirm": {
      "tsType": "() => void",
      "description": "用户点击键盘的完成按钮时触发，详情见 bindconfirm 说明。"
    },
    "bindKeyboardHeightChange": {
      "tsType": "() => void",
      "description": "键盘高度发生变化的时候触发此事件，详情见 bindkeyboardheightchange 说明。"
    }
  },
  "additionalProperties": false
}