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