{
  "widgetName": "Textarea",
  "title": "段落文本输入框",
  "desc": "常用于多行文本输入",
  "tag": "input textarea 段落文本输入框 段落框 段落文本框 段落输入框 多行文本框 多行输入框 区域文本框 区域输入框 表单",
  "props": {
    "lugiaHidden": {
      "type": "boolean",
      "desc": "是否渲染当前组件",
      "defaultValue": false
    },
    "createPortal": {
      "type": "boolean",
      "desc": "是否全局弹出校验框"
    },
    "popupContainerId": {
      "type": "ContainerDomIdType",
      "desc": "配置弹出校验框的作用容器id"
    },
    "disabled": {
      "type": "boolean",
      "desc": "禁用状态,是否不可用",
      "propsDefaultValue": false
    },
    "placeholder": {
      "type": "string",
      "desc": "段落文本输入框输入提示信息"
    },
    "defaultValue": {
      "type": "string",
      "desc": "默认显示内容"
    },
    "value": {
      "type": "string",
      "desc": "显示内容"
    },
    "clearIcon": {
      "type": "icon",
      "desc": "清除图标类型"
    },
    "canClear": {
      "type": "boolean",
      "desc": "是否展示清除按钮",
      "propsDefaultValue": true
    },
    "autoFocus": {
      "type": "boolean",
      "desc": "是否自动获取焦点",
      "propsDefaultValue": false
    },
    "resizeType": {
      "type": "ResizeType",
      "desc": "可以调整段落文本输入框宽高的类型",
      "propsDefaultValue": "both"
    },
    "validateStatus": {
      "type": "ValidateStatus",
      "desc": "校验状态"
    },
    "validateType": {
      "type": "ValidateType",
      "desc": "校验信息显示类型",
      "propsDefaultValue": "top"
    },
    "help": {
      "type": "string",
      "desc": "校验提示信息"
    },
    "cols": {
      "type": "number",
      "desc": "段落文本输入框展示内容的字数"
    },
    "rows": {
      "type": "number",
      "desc": "段落文本输入框展示内容的行数"
    },
    "showMaxLength": {
      "desc": "是否展示限制最大长度",
      "type": "boolean",
      "designOnly": false,
      "injectProps": false,
      "propsDefaultValue": false
    },
    "maxLength": {
      "desc": "限制输入的最大长度",
      "type": "number",
      "designOnly": false,
      "injectProps": false
    }
  },
  "events": {
    "onChange": {
      "desc": "内容改变时触发",
      "args": [
        {
          "name": "event",
          "desc": "改变内容的DOM事件",
          "type": "ChangeType"
        }
      ]
    },
    "onFocus": {
      "desc": "段落文本输入框获得焦点时触发",
      "args": [
        {
          "name": "event",
          "desc": "获取焦点的DOM事件",
          "type": "FocusEvent"
        }
      ]
    },
    "onBlur": {
      "desc": "段落文本输入框失去焦点时触发",
      "args": [
        {
          "name": "event",
          "desc": "失去焦点的DOM事件",
          "type": "FocusEvent"
        }
      ]
    },
    "onKeyUp": {
      "desc": "键盘按下去并松开后执行",
      "args": [
        {
          "name": "event",
          "desc": "改变键盘输入的内容",
          "type": "KeyboardEvent"
        }
      ]
    },
    "onKeyDown": {
      "desc": "键盘按下任何键时触发",
      "args": [
        {
          "name": "event",
          "desc": "改变键盘输入的内容",
          "type": "KeyboardEvent"
        }
      ]
    },
    "onKeyPress": {
      "desc": "键盘按下任何键时触发",
      "args": [
        {
          "name": "event",
          "desc": "改变键盘输入的内容",
          "type": "KeyboardEvent"
        }
      ]
    },
    "onClear": {
      "desc": "清除段落文本输入框内容时触发",
      "args": [
        {
          "name": "event",
          "desc": "清除段落文本输入框内容事件",
          "type": "Object"
        }
      ]
    },
    "onEnter": {
      "desc": "当键入回车时触发事件",
      "args": [
        {
          "name": "event",
          "desc": "当键入回车时触发",
          "type": "KeyboardEvent"
        }
      ]
    },
    "getFocus": {
      "desc": "段落文本输入框主动聚焦事件",
      "args": [
        {
          "name": "focus",
          "desc": "输入框的聚焦方法",
          "type": "Function"
        }
      ]
    }
  },
  "type": {
    "ChangeType": {
      "newValue": "string",
      "oldValue": "string",
      "event": "SyntheticEvent"
    },
    "ResizeType": [
      {
        "value": "both",
        "text": "可调整宽高"
      },
      {
        "value": "horizontal",
        "text": "可调整宽"
      },
      {
        "value": "vertical",
        "text": "可调整高"
      },
      {
        "value": "none",
        "text": "宽高固定"
      }
    ],
    "ValidateStatus": [
      {
        "value": "default",
        "text": "正常"
      },
      {
        "value": "error",
        "text": "错误"
      }
    ],
    "ValidateType": [
      {
        "value": "top",
        "text": "顶部弹窗"
      },
      {
        "value": "bottom",
        "text": "底部文本"
      },
      {
        "value": "inner",
        "text": "框内文本"
      }
    ]
  },
  "category": ["数据录入"],
  "needExport": true,
  "theme": {
    "Container": {
      "name": "段落文本输入框",
      "desc": "配置段落文本输入框",
      "normal": [
        ["width"],
        ["height"],
        ["fontSize"],
        ["font"],
        ["color"],
        ["background"],
        ["border"],
        ["borderRadius"],
        ["cursor"],
        ["opacity"],
        ["margin"],
        ["padding"],
        ["lineHeight"]
      ],
      "hover": [
        ["border"],
        ["borderRadius"],
        ["cursor"],
        ["background"],
        ["opacity"],
        ["boxShadow"]
      ],
      "focus": [["boxShadow"], ["border"], ["borderRadius"], ["cursor"], ["background"]],
      "active": [["boxShadow"], ["border"], ["borderRadius"], ["cursor"], ["background"]],
      "disabled": [
        ["fontSize"],
        ["font"],
        ["color"],
        ["background"],
        ["border"],
        ["borderRadius"],
        ["cursor"],
        ["padding"],
        ["opacity"]
      ]
    },
    "Placeholder": {
      "name": "提示信息文字",
      "desc": "提示信息文字",
      "normal": [["color"], ["fontSize"], ["font"]]
    },
    "ClearButton": {
      "name": "清除图标",
      "desc": "后缀清除图标",
      "normal": [["color"], ["fontSize"], ["font"]],
      "hover": [["color"], ["fontSize"], ["font"]],
      "clicked": [],
      "disabled": []
    },
    "ValidateErrorInput": {
      "name": "校验失败的输入框",
      "desc": "配置校验失败的输入框",
      "normal": [
        ["fontSize"],
        ["font"],
        ["color"],
        ["background"],
        ["border"],
        ["boxShadow"],
        ["opacity"]
      ],
      "hover": [["background"], ["border"], ["boxShadow"]],
      "focus": [["background"], ["border"], ["boxShadow"]],
      "active": [["background"], ["border"], ["boxShadow"]]
    },
    "ValidateErrorText": {
      "name": "校验失败提示信息",
      "desc": "配置校验失败的提示信息",
      "normal": [
        ["background"],
        ["boxShadow"],
        ["borderRadius"],
        ["border"],
        ["fontSize"],
        ["font"],
        ["color"],
        ["margin"]
      ],
      "hover": [],
      "active": []
    }
  },
  "defaultTheme": {
    "Container": {
      "normal": {
        "width": 250,
        "height": 200
      }
    }
  }
}
