{
  "icon": "input",
  "name": {
    "zh_CN": "输入框"
  },
  "component": "tiny-input",
  "schema": {
    "properties": [
      {
        "label": {
          "zh_CN": "基础信息"
        },
        "description": {
          "zh_CN": "基础信息"
        },
        "collapse": {
          "number": 6,
          "text": {
            "zh_CN": "显示更多"
          }
        },
        "content": [
          {
            "property": "modelValue",
            "label": {
              "text": {
                "zh_CN": "绑定值"
              }
            },
            "required": true,
            "readOnly": false,
            "disabled": false,
            "cols": 12,
            "widget": {
              "component": "MetaInput",
              "props": {}
            },
            "description": {
              "zh_CN": "双向绑定值"
            },
            "labelPosition": "left"
          },
          {
            "property": "placeholder",
            "label": {
              "text": {
                "zh_CN": "占位文本"
              }
            },
            "required": true,
            "readOnly": false,
            "disabled": false,
            "cols": 12,
            "widget": {
              "component": "MetaInput",
              "props": {}
            },
            "description": {
              "zh_CN": "输入框占位文本"
            },
            "labelPosition": "left"
          },
          {
            "property": "clearable",
            "label": {
              "text": {
                "zh_CN": "清除按钮"
              }
            },
            "required": true,
            "readOnly": false,
            "disabled": false,
            "cols": 12,
            "widget": {
              "component": "MetaSwitch",
              "props": {}
            },
            "description": {
              "zh_CN": "是否显示清除按钮"
            },
            "labelPosition": "left"
          },
          {
            "property": "disabled",
            "label": {
              "text": {
                "zh_CN": "是否禁用"
              }
            },
            "required": true,
            "readOnly": false,
            "disabled": false,
            "cols": 12,
            "widget": {
              "component": "MetaSwitch",
              "props": {}
            },
            "description": {
              "zh_CN": ""
            }
          },
          {
            "property": "size",
            "label": {
              "text": {
                "zh_CN": "尺寸"
              }
            },
            "required": true,
            "readOnly": false,
            "disabled": false,
            "cols": 12,
            "widget": {
              "component": "MetaSelect",
              "props": {
                "options": [
                  {
                    "label": "medium",
                    "value": "medium"
                  },
                  {
                    "label": "small",
                    "value": "small"
                  },
                  {
                    "label": "mini",
                    "value": "mini"
                  }
                ]
              }
            },
            "description": {
              "zh_CN": "输入框尺寸。该属性的可选值为 medium / small / mini"
            }
          }
        ]
      },
      {
        "name": "1",
        "label": {
          "zh_CN": "其他"
        },
        "content": [
          {
            "property": "maxlength",
            "label": {
              "text": {
                "zh_CN": "最大长度"
              }
            },
            "required": true,
            "readOnly": false,
            "disabled": false,
            "cols": 12,
            "widget": {
              "component": "MetaNumeric",
              "props": {}
            },
            "description": {
              "zh_CN": "设置 input 框的maxLength"
            },
            "labelPosition": "left"
          },
          {
            "property": "autofocus",
            "label": {
              "text": {
                "zh_CN": "聚焦"
              }
            },
            "required": true,
            "readOnly": false,
            "disabled": false,
            "cols": 12,
            "widget": {
              "component": "MetaSwitch",
              "props": {}
            },
            "description": {
              "zh_CN": "自动获取焦点"
            },
            "labelPosition": "left"
          }
        ],
        "description": {
          "zh_CN": ""
        }
      }
    ],
    "events": {
      "onChange": {
        "label": {
          "zh_CN": "值改变时触发"
        },
        "description": {
          "zh_CN": "在 Input 值改变时触发"
        },
        "type": "event",
        "functionInfo": {
          "params": [
            {
              "name": "value",
              "type": "string",
              "defaultValue": "",
              "description": {
                "zh_CN": "输入框改变后的值"
              }
            }
          ],
          "returns": {}
        },
        "defaultValue": ""
      },
      "onInput": {
        "label": {
          "zh_CN": "输入值改变时触发"
        },
        "description": {
          "zh_CN": "在 Input 输入值改变时触发"
        },
        "type": "event",
        "functionInfo": {
          "params": [
            {
              "name": "value",
              "type": "string",
              "defaultValue": "",
              "description": {
                "zh_CN": "输入框输入的值"
              }
            }
          ],
          "returns": {}
        },
        "defaultValue": ""
      },
      "onBlur": {
        "label": {
          "zh_CN": "失去焦点时触发"
        },
        "description": {
          "zh_CN": "在 Input 失去焦点时触发"
        },
        "type": "event",
        "functionInfo": {
          "params": [
            {
              "name": "event",
              "type": "Object",
              "defaultValue": "",
              "description": {
                "zh_CN": "原生 event"
              }
            }
          ],
          "returns": {}
        },
        "defaultValue": ""
      },
      "onFocus": {
        "label": {
          "zh_CN": "获取焦点时触发"
        },
        "description": {
          "zh_CN": "在 Input 获取焦点时触发"
        },
        "type": "event",
        "functionInfo": {
          "params": [
            {
              "name": "event",
              "type": "Object",
              "defaultValue": "",
              "description": {
                "zh_CN": "原生 event"
              }
            }
          ],
          "returns": {}
        },
        "defaultValue": ""
      },
      "onClear": {
        "label": {
          "zh_CN": "点击清空按钮时触发"
        },
        "description": {
          "zh_CN": "点击清空按钮时触发"
        },
        "type": "event",
        "functionInfo": {
          "params": [],
          "returns": {}
        },
        "defaultValue": ""
      }
    },
    "shortcuts": {
      "properties": ["value", "disabled"]
    },
    "contentMenu": {
      "actions": ["create symbol"]
    }
  }
}
