{
  "title": "button",
  "type": "object",
  "properties": {
    "size": {
      "type": "string",
      "description": "按钮的大小",
      "defaultValue": "default",
      "enum": [
        "default",
        "mini"
      ]
    },
    "type": {
      "type": "string",
      "description": "按钮的样式类型",
      "defaultValue": "default",
      "enum": [
        "primary",
        "default",
        "warn"
      ]
    },
    "plain": {
      "type": "boolean",
      "description": "按钮是否镂空，背景色透明",
      "defaultValue": false
    },
    "disabled": {
      "type": "boolean",
      "description": "是否禁用",
      "defaultValue": false
    },
    "loading": {
      "type": "boolean",
      "description": "loading 动画样式暂未支持",
      "defaultValue": false
    },
    "form-type": {
      "type": "string",
      "description": "用于 form 组件，点击分别会触发 form 组件的 submit/reset 事件",
      "enum": [
        "submit",
        "reset"
      ]
    },
    "open-type": {
      "type": "string",
      "description": "微信开放能力",
      "enum": [
        "contact",
        "share",
        "getPhoneNumber",
        "getUserInfo",
        "launchApp",
        "openSetting",
        "feedback",
        "chooseAvatar"
      ]
    },
    "hover-class": {
      "type": "string",
      "description": "指定按钮按下去的样式类。当 `hover-class=\"none\"` 时，没有点击态效果",
      "defaultValue": "button-hover"
    },
    "hover-stop-propagation": {
      "type": "boolean",
      "description": "指定是否阻止本节点的祖先节点出现点击态",
      "defaultValue": false
    },
    "hover-start-time": {
      "type": "number",
      "description": "按住后多久出现点击态，单位毫秒",
      "defaultValue": 20
    },
    "hover-stay-time": {
      "type": "number",
      "description": "手指松开后点击态保留时间，单位毫秒",
      "defaultValue": 70
    },
    "lang": {
      "type": "string",
      "description": "指定返回用户信息的语言，zh_CN 简体中文，zh_TW 繁体中文，en 英文。",
      "defaultValue": "en",
      "enum": [
        "en",
        "zh_CN",
        "zh_TW"
      ]
    },
    "session-from": {
      "type": "string",
      "description": "会话来源，open-type=\"contact\"时有效"
    },
    "send-message-title": {
      "type": "string",
      "description": "会话内消息卡片标题，open-type=\"contact\"时有效",
      "defaultValue": "当前标题"
    },
    "send-message-path": {
      "type": "string",
      "description": "会话内消息卡片点击跳转小程序路径，open-type=\"contact\"时有效",
      "defaultValue": "当前分享路径"
    },
    "send-message-img": {
      "type": "string",
      "description": "会话内消息卡片图片，open-type=\"contact\"时有效",
      "defaultValue": "截图"
    },
    "app-parameter": {
      "type": "string",
      "description": "打开 APP 时，向 APP 传递的参数，open-type=launchApp时有效"
    },
    "show-message-card": {
      "type": "boolean",
      "description": "是否显示会话内消息卡片，设置此参数为 true，用户进入客服会话会在右下角显示\"可能要发送的小程序\"提示，用户点击后可以快速发送小程序消息，open-type=\"contact\"时有效",
      "defaultValue": false
    },
    "bindGetUserInfo": {
      "tsType": "() => void",
      "description": "用户点击该按钮时，会返回获取到的用户信息，回调的detail数据与wx.getUserInfo返回的一致，open-type=\"getUserInfo\"时有效"
    },
    "bindContact": {
      "tsType": "() => void",
      "description": "客服消息回调，open-type=\"contact\"时有效"
    },
    "bindGetPhoneNumber": {
      "tsType": "() => void",
      "description": "获取用户手机号回调，open-type=getPhoneNumber时有效"
    },
    "bindError": {
      "tsType": "() => void",
      "description": "当使用开放能力时，发生错误的回调，open-type=launchApp时有效"
    },
    "bindOpenSetting": {
      "tsType": "() => void",
      "description": "在打开授权设置页后回调，open-type=openSetting时有效"
    },
    "bindLaunchApp": {
      "tsType": "() => void",
      "description": "打开 APP 成功的回调，open-type=launchApp时有效"
    },
    "bindChooseAvatar": {
      "tsType": "() => void",
      "description": "获取用户头像回调，open-type=chooseAvatar时有效"
    }
  },
  "additionalProperties": false
}