Skip to content

页面协议

PageSchema

KeyValue TypeDescriptionExample
versionstring协议版本号1.0.0
namestring页面名称TestPage
cssCSSType页面 css
componentsMetaComponentMetaType页面使用的组件物料
thirdLibsLibMetaType页面依赖使用的第三方库描述
componentsTreeCRootNodeDataType页面结构
assetsAssetPackage页面使用的所有资源信息,包含 url 信息

更多描述请参考 【模型定定义】

CRootNodeDataType

KeyValue TypeDescriptionExample
idstring节点唯一 idxassas
titlestring节点名称root node
componentNamestring组件名称Button
type’lowcode’、 ‘normal’节点类型, lowcode 表示低码组件normal
propsCPropObjDataType组件传入的属性值{‘text’: ‘我是一个按钮’}
stateRecord<string, any>组件的 state-
nodeNamestring组件的 state 别名,便于其他组件索引使用-
schemaCPageDataTypeif type is lowcode, schema is required-
classNamesClassNameType[]存储节点的 className-
cssCSSType[]存储节点的 css 样式-
refIdstring组件的唯一引用标示-
children(string | CNodeDataType)[]当前节点的 children 节点-

更多描述请参考 【模型定定义】

ComponentMetaType

更多描述请参考 【模型定定义】

LibMetaType

更多描述请参考 【模型定定义】

CSSType

更多描述请参考 【模型定定义】

AssetPackage

更多描述请参考 【模型定定义】