
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "type": "object",
  "title": "组合input",
  "required": ["type", "message"],
  "properties": {
    "size": {
      "$id": "#/properties/size",
      "type": "object",
      "title": "输入框尺寸",
      "enum":[
        {"label":"标准","value":"default"},
        {"label":"大号","value":"large"},
        {"label":"小号","value":"small"}
      ],
      "default": {"label":"标准","value":"default"}
    },
    "value": {
      "$id": "#/properties/value",
      "type": "string",
      "title": "输入框内容"
    },
    "placeholder": {
      "$id": "#/properties/placeholder",
      "type": "string",
      "title": "placeholder"
    },
    "status": {
      "$id": "#/properties/status",
      "type": "object",
      "title": "输入框状态",
      "enum":[
        {"label":"normal","value":"正常"},
        {"label":"disabled","value":"禁用"},
        {"label":"isHint","value":"提示"},
        {"label":"error","value":"错误"}
      ],
      "default": {"label":"normal","value":"正常"}
    },
    "readOnly": {
      "$id": "#/properties/readOnly",
      "type": "boolean",
      "title": "只读状态",
      "default": false
    },
    "maxLength": {
      "$id": "#/properties/maxLength",
      "type": "string",
      "title": "最大输入字符"
    },
    "addonBefore": {
      "$id": "#/properties/addonBefore",
      "type": "string",
      "title": "复合输入框前置元素"
    },
    "addonAfter": {
      "$id": "#/properties/addonAfter",
      "type": "string",
      "title": "复合输入框后置元素"
    },
    "translation": {
      "$id": "#/properties/translation",
      "type": "object",
      "title": "国际化",
      "items":{
        "$id": "#/properties/translation/items",
        "type": "string",
        "title": "组件大小选项"
      }
    }
  }
}