FrontendLibrary 前端库
前端依赖库
1. 结构声明
- TS Declaration
- JSON Schema
class FrontendLibrary extends BaseNode {
name: 'pc' | 'h5' = 'pc';
type: 'pc' | 'h5';
logics: Array<Logic>;
viewComponents: Array<ViewComponent>;
}
{
"type": "object",
"properties": {
"name": {
"type": "string",
"enum": [
"pc",
"h5"
]
},
"type": {
"type": "string",
"enum": [
"pc",
"h5"
]
},
"logics": {
"type": "array",
"items": {
"$ref": "#/definitions/Logic"
}
},
"viewComponents": {
"type": "array",
"items": {
"$ref": "#/definitions/ViewComponent"
}
}
},
"required": [
"name",
"type",
"logics",
"viewComponents"
],
"additionalProperties": false
}