{
  "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": [
        "share",
        "getUserInfo",
        "getPhoneNumber",
        "launchApp",
        "openSetting"
      ]
    },
    "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"
    },
    "app-parameter": {
      "type": "string",
      "description": "打开 App 时，向 App 传递的参数"
    },
    "bindGetUserInfo": {
      "tsType": "() => void",
      "description": "用户点击该按钮时，会返回获取到的用户信息，回调的detail数据与jd.getUserInfo返回的一致"
    },
    "bindGetPhoneNumber": {
      "tsType": "() => void",
      "description": "获取用户手机号回调"
    },
    "bindError": {
      "tsType": "() => void",
      "description": "当使用开放能力时，发生错误的回调"
    },
    "bindOpenSetting": {
      "tsType": "() => void",
      "description": "在打开授权设置页后回调"
    }
  },
  "additionalProperties": false
}