{
  "title": "switch",
  "type": "object",
  "properties": {
    "checked": {
      "type": "boolean",
      "description": "是否选中",
      "defaultValue": false
    },
    "disabled": {
      "type": "boolean",
      "description": "是否禁用",
      "defaultValue": false
    },
    "type": {
      "type": "string",
      "description": "样式，详见 type 的合法值。",
      "defaultValue": "switch",
      "enum": [
        "switch",
        "checkbox"
      ]
    },
    "color": {
      "type": "string",
      "description": "switch 的颜色，同 CSS 的 color。",
      "defaultValue": "#f85959"
    },
    "bindChange": {
      "tsType": "() => void",
      "description": "checked 改变时触发该事件，event.detail={value:checked}。"
    }
  },
  "additionalProperties": false
}