Event 组件事件
结构声明
- TS Declaration
- Java Class
- JSON Schema
interface Event {
"concept": "Event", // 产品概念
"name": string, // 组件事件名称
"group": string, // 组件事件分组
"title": string, // 组件事件标题
"description": string, // 组件事件描述
"advanced": boolean, // 是否为高级功能,不在低代码中显示
"params": Array<Param>, // 输入参数列表
}
class EventTreeNode {
ConceptEnum concept; // 产品概念
String name; // 组件事件名称
String group; // 组件事件分组
String title; // 组件事件标题
String description; // 组件事件描述
boolean advanced; // 是否为高级功能,不在低代码中显示
List<ParamTreeNode> params; // 输入参数列表
}
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$ref": "#/definitions/Event",
"definitions": {
"Event": {
"type": "object",
"properties": {
"concept": {
"type": "string",
"const": "Event"
},
"name": {
"type": "string"
},
"group": {
"type": "string"
},
"title": {
"type": "string"
},
"description": {
"type": "string"
},
"advanced": {
"type": "boolean"
},
"params": {
"type": "array",
"items": {
"$ref": "#/definitions/Param"
}
}
},
"required": [
"concept",
"name",
"group",
"title",
"description",
"advanced",
"params"
],
"additionalProperties": false
}
}
}
示例
简单示例
- JSON
- YAML
{
"concept": "Event",
"name": "before-load",
"group": "数据属性",
"title": "加载前",
"description": "加载前触发",
"advanced": null,
"params": []
}
concept: Event
name: before-load
group: 数据属性
title: 加载前
description: 加载前触发
advanced: null
params: []