SlotDeclaration 插槽
1. 结构声明
- TS Declaration
- JSON Schema
class SlotDeclaration extends BaseNode {
name: string = '';
title: string;
description?: string;
tsType: TSExpression;
params: Array<Param>;
emptyBackground?: string;
snippets!: Array<ViewBlockWithImage>;
}
{
"type": "object",
"properties": {
"composedBy": {
"type": "array",
"items": {
"type": "string"
}
},
"name": {
"type": "string"
},
"title": {
"type": "string"
},
"description": {
"type": "string"
},
"tsType": {
"$ref": "#/definitions/TSExpression"
},
"params": {
"type": "array",
"items": {
"$ref": "#/definitions/Param"
}
},
"emptyBackground": {
"type": "string"
},
"snippets": {
"type": "array",
"items": {
"$ref": "#/definitions/ViewBlockWithImage"
}
}
},
"required": [
"name",
"title",
"tsType",
"params",
"snippets"
],
"additionalProperties": false
}