FrontendType 端类型
1. 结构声明
- TS Declaration
- JSON Schema
class FrontendType extends BaseNode {
name: 'pc' | 'h5';
kind: 'pc' | 'h5';
frontends: Array<Frontend>;
businessComponents: Array<BusinessComponent>;
componentDependencies: Array<Module>;
frameworkKind: 'vue2' | 'react' = 'vue2';
frameworkUI: string = '';
componentPanelSetting?: string;
}
{
"type": "object",
"properties": {
"composedBy": {
"type": "array",
"items": {
"type": "string"
}
},
"changedTime": {
"$ref": "#/definitions/long"
},
"name": {
"type": "string",
"enum": [
"pc",
"h5"
]
},
"kind": {
"type": "string",
"enum": [
"pc",
"h5"
]
},
"frontends": {
"type": "array",
"items": {
"$ref": "#/definitions/Frontend"
}
},
"businessComponents": {
"type": "array",
"items": {
"$ref": "#/definitions/BusinessComponent"
}
},
"componentDependencies": {
"type": "array",
"items": {
"$ref": "#/definitions/Module"
}
},
"frameworkKind": {
"type": "string",
"enum": [
"vue2",
"react"
]
},
"frameworkUI": {
"type": "string"
},
"componentPanelSetting": {
"type": "string"
}
},
"required": [
"name",
"kind",
"frontends",
"businessComponents",
"componentDependencies",
"frameworkKind",
"frameworkUI"
],
"additionalProperties": false
}