BusinessComponent 业务组件
1. 结构声明
- TS Declaration
- JSON Schema
class BusinessComponent extends BaseNode {
name: string;
title: string;
description: string;
events: Array<Event>;
params: Array<ParamWithGroup>;
variables: Array<Variable>;
bindEvents: Array<BindEvent>;
logics: Array<BusinessLogic>;
elements: Array<ViewElement>;
icon: string;
}
{
"type": "object",
"properties": {
"name": {
"type": "string"
},
"title": {
"type": "string"
},
"description": {
"type": "string"
},
"events": {
"type": "array",
"items": {
"$ref": "#/definitions/Event"
}
},
"params": {
"type": "array",
"items": {
"$ref": "#/definitions/ParamWithGroup"
}
},
"variables": {
"type": "array",
"items": {
"$ref": "#/definitions/Variable"
}
},
"bindEvents": {
"type": "array",
"items": {
"$ref": "#/definitions/BindEvent"
}
},
"logics": {
"type": "array",
"items": {
"$ref": "#/definitions/BusinessLogic"
}
},
"elements": {
"type": "array",
"items": {
"$ref": "#/definitions/ViewElement"
}
},
"icon": {
"type": "string"
}
},
"required": [
"name",
"title",
"description",
"events",
"params",
"variables",
"bindEvents",
"logics",
"elements",
"icon"
],
"additionalProperties": false
}