View 页面
1. 结构声明
- TS Declaration
- JSON Schema
class View extends Annotatable {
pageTemplateId?: string;
name: string = '';
uuid?: string;
title: string;
crumb?: StaticString;
auth: boolean;
authDescription?: string;
isIndex?: boolean;
template?: string;
script: string;
style?: string;
elements: Array<ViewElement>;
params: Array<Param>;
variables: Array<Variable>;
logics: Array<Logic>;
bindEvents: Array<BindEvent>;
bindRoles: Array<string>;
children: Array<View>;
}
{
"type": "object",
"properties": {
"composedBy": {
"type": "array",
"items": {
"type": "string"
}
},
"changedTime": {
"$ref": "#/definitions/long"
},
"applyAnnotations": {
"type": "array",
"items": {
"$ref": "#/definitions/ApplyAnnotation"
}
},
"pageTemplateId": {
"type": "string"
},
"name": {
"type": "string"
},
"uuid": {
"type": "string"
},
"title": {
"type": "string"
},
"crumb": {
"$ref": "#/definitions/StaticString"
},
"auth": {
"type": "boolean"
},
"authDescription": {
"type": "string"
},
"isIndex": {
"type": "boolean"
},
"template": {
"type": "string"
},
"script": {
"type": "string"
},
"style": {
"type": "string"
},
"elements": {
"type": "array",
"items": {
"$ref": "#/definitions/ViewElement"
}
},
"params": {
"type": "array",
"items": {
"$ref": "#/definitions/Param"
}
},
"variables": {
"type": "array",
"items": {
"$ref": "#/definitions/Variable"
}
},
"logics": {
"type": "array",
"items": {
"$ref": "#/definitions/Logic"
}
},
"bindEvents": {
"type": "array",
"items": {
"$ref": "#/definitions/BindEvent"
}
},
"bindRoles": {
"type": "array",
"items": {
"type": "string"
}
},
"children": {
"type": "array",
"items": {
"$ref": "#/definitions/View"
}
}
},
"required": [
"name",
"title",
"auth",
"script",
"elements",
"params",
"variables",
"logics",
"bindEvents",
"bindRoles",
"children"
],
"additionalProperties": false
}