Slot 插槽
结构声明
- TS Declaration
- Java Class
- JSON Schema
interface Slot {
"concept": "Slot", // 产品概念
"name": string, // 插槽名称
"title": string, // 插槽标题
"description": string, // 插槽描述
"emptyBackground": "drag-entity-here", // emptyBackground
"advanced": boolean, // 是否为高级功能,不在低代码中显示
"slotProps": Param, // 是否为高级功能,不在低代码中显示
}
class SlotTreeNode {
ConceptEnum concept; // 产品概念
String name; // 插槽名称
String title; // 插槽标题
String description; // 插槽描述
EmptyBackgroundEnum emptyBackground; // emptyBackground
boolean advanced; // 是否为高级功能,不在低代码中显示
ParamTreeNode slotProps; // 是否为高级功能,不在低代码中显示
}
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$ref": "#/definitions/Slot",
"definitions": {
"Slot": {
"type": "object",
"properties": {
"concept": {
"type": "string",
"const": "Slot"
},
"name": {
"type": "string"
},
"title": {
"type": "string"
},
"description": {
"type": "string"
},
"emptyBackground": {
"type": "string",
"const": "drag-entity-here"
},
"advanced": {
"type": "boolean"
},
"slotProps": {
"$ref": "#/definitions/Param"
}
},
"required": [
"concept",
"name",
"title",
"description",
"emptyBackground",
"advanced",
"slotProps"
],
"additionalProperties": false
}
}
}
示例
简单示例
- JSON
- YAML
{
"concept": "Slot",
"name": "default",
"title": "加载前",
"description": "在表格中插入",
"emptyBackground": null,
"advanced": null,
"slotProps": null
}
concept: Slot
name: default
title: 加载前
description: 在表格中插入
emptyBackground: null
advanced: null
slotProps: null