mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-03-10 18:06:02 +00:00
feat: 🎸 根据低代码协议文档, 将 BlockSchema 也改成继承自 ContainerSchema
This commit is contained in:
parent
7ad9f7563c
commit
7901c8e96d
@ -55,19 +55,32 @@ export interface ContainerSchema extends NodeSchema {
|
|||||||
defaultProps?: CompositeObject;
|
defaultProps?: CompositeObject;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 页面容器
|
||||||
|
* @see https://yuque.antfin-inc.com/mo/spec/spec-low-code-building-schema#XMeF5
|
||||||
|
*/
|
||||||
export interface PageSchema extends ContainerSchema {
|
export interface PageSchema extends ContainerSchema {
|
||||||
componentName: 'Page';
|
componentName: 'Page';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 低代码业务组件容器
|
||||||
|
* @see https://yuque.antfin-inc.com/mo/spec/spec-low-code-building-schema#XMeF5
|
||||||
|
*/
|
||||||
export interface ComponentSchema extends ContainerSchema {
|
export interface ComponentSchema extends ContainerSchema {
|
||||||
componentName: 'Component';
|
componentName: 'Component';
|
||||||
}
|
}
|
||||||
|
|
||||||
export type RootSchema = PageSchema | ComponentSchema;
|
/**
|
||||||
|
* 区块容器
|
||||||
export interface BlockSchema extends NodeSchema {
|
* @see https://yuque.antfin-inc.com/mo/spec/spec-low-code-building-schema#XMeF5
|
||||||
|
*/
|
||||||
|
export interface BlockSchema extends ContainerSchema {
|
||||||
componentName: 'Block';
|
componentName: 'Block';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type RootSchema = PageSchema | ComponentSchema | BlockSchema;
|
||||||
|
|
||||||
export interface SlotSchema extends NodeSchema {
|
export interface SlotSchema extends NodeSchema {
|
||||||
name?: string;
|
name?: string;
|
||||||
componentName: 'Slot';
|
componentName: 'Slot';
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user