UseComponent IDE 中使用的编辑组件
结构声明
- TS Declaration
- Java Class
- JSON Schema
interface UseComponent {
"concept": "UseComponent", // 产品概念
"type": string, // type
"attrs": Object, // 需要传入的属性
}
class UseComponentTreeNode {
ConceptEnum concept; // 产品概念
String type; // type
Object attrs; // 需要传入的属性
}
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$ref": "#/definitions/UseComponent",
"definitions": {
"UseComponent": {
"type": "object",
"properties": {
"concept": {
"type": "string",
"const": "UseComponent"
},
"type": {
"type": "string"
},
"attrs": {
"type": "object",
"properties": {
"constructor": {
"type": "object",
"properties": {
"prototype": {},
"length": {
"type": "number"
},
"arguments": {},
"caller": {
"$ref": "#/definitions/interface-2073358172-9821-11285-2073358172-0-212510"
}
},
"required": [
"prototype",
"length",
"arguments",
"caller"
],
"additionalProperties": false
}
},
"required": [
"constructor"
],
"additionalProperties": false
}
},
"required": [
"concept",
"type",
"attrs"
],
"additionalProperties": false
}
}
}
示例
简单示例
- JSON
- YAML
{
"concept": "UseComponent",
"type": "s-enum-select",
"attrs": null
}
concept: UseComponent
type: s-enum-select
attrs: null