Slot 插槽
1. 结构声明
- TS Declaration
- JSON Schema
class Slot extends BaseNode {
name: string;
title: string;
description: string;
emptyBackground: 'addSub' | 'addSubLarge' | 'image' | 'dragEntityHere' | 'addAny';
advanced: boolean;
slotProps: Param;
}
{
"type": "object",
"properties": {
"composedBy": {
"type": "array",
"items": {
"type": "string"
}
},
"changedTime": {
"$ref": "#/definitions/long"
},
"name": {
"type": "string"
},
"title": {
"type": "string"
},
"description": {
"type": "string"
},
"emptyBackground": {
"type": "string",
"enum": [
"addSub",
"addSubLarge",
"image",
"dragEntityHere",
"addAny"
]
},
"advanced": {
"type": "boolean"
},
"slotProps": {
"$ref": "#/definitions/Param"
}
},
"required": [
"name",
"title",
"description",
"emptyBackground",
"advanced",
"slotProps"
],
"additionalProperties": false
}