BindEvent 元素绑定事件
结构声明
- TS Declaration
- Java Class
- JSON Schema
interface BindEvent {
"concept": "BindEvent", // 产品概念
"name": string, // 元素绑定事件名称
"logics": Array<Logic>, // 逻辑列表
"calleeNamespace": string, // calleeNamespace
"calleeName": string, // calleeName
"arguments": Array<Argument>, // 实际参数
}
class BindEventTreeNode {
ConceptEnum concept; // 产品概念
String name; // 元素绑定事件名称
List<LogicTreeNode> logics; // 逻辑列表
String calleeNamespace; // calleeNamespace
String calleeName; // calleeName
List<ArgumentTreeNode> arguments; // 实际参数
}
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$ref": "#/definitions/BindEvent",
"definitions": {
"BindEvent": {
"type": "object",
"properties": {
"concept": {
"type": "string",
"const": "BindEvent"
},
"name": {
"type": "string"
},
"logics": {
"type": "array",
"items": {
"$ref": "#/definitions/Logic"
}
},
"calleeNamespace": {
"type": "string"
},
"calleeName": {
"type": "string"
},
"arguments": {
"type": "array",
"items": {
"$ref": "#/definitions/Argument"
}
}
},
"required": [
"concept",
"name",
"logics",
"calleeNamespace",
"calleeName",
"arguments"
],
"additionalProperties": false
}
}
}
示例
简单示例
- JSON
- YAML
{
"concept": "BindEvent",
"name": "click",
"logics": [],
"calleeNamespace": null,
"calleeName": null,
"arguments": []
}
concept: BindEvent
name: click
logics: []
calleeNamespace: null
calleeName: null
arguments: []