Attribute 组件属性
只给流程用
1. 结构声明
- TS Declaration
- JSON Schema
class Attribute extends BaseNode {
name: string;
group: string;
title: string;
description: string;
typeAnnotation: string;
defaultValue?: DefaultValue;
sync: boolean;
options: Array<{
value: string;
title: string;
}>; // TODO
}
{
"type": "object",
"properties": {
"composedBy": {
"type": "array",
"items": {
"type": "string"
}
},
"name": {
"type": "string"
},
"group": {
"type": "string"
},
"title": {
"type": "string"
},
"description": {
"type": "string"
},
"typeAnnotation": {
"type": "string"
},
"defaultValue": {
"$ref": "#/definitions/DefaultValue"
},
"sync": {
"type": "boolean"
},
"options": {
"type": "array",
"items": {
"type": "object",
"properties": {
"value": {
"type": "string"
},
"title": {
"type": "string"
}
},
"required": [
"value",
"title"
],
"additionalProperties": false
}
}
},
"required": [
"name",
"group",
"title",
"description",
"typeAnnotation",
"sync",
"options"
],
"additionalProperties": false
}