mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-02-28 21:20:28 +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;
|
||||
}
|
||||
|
||||
/**
|
||||
* 页面容器
|
||||
* @see https://yuque.antfin-inc.com/mo/spec/spec-low-code-building-schema#XMeF5
|
||||
*/
|
||||
export interface PageSchema extends ContainerSchema {
|
||||
componentName: 'Page';
|
||||
}
|
||||
|
||||
/**
|
||||
* 低代码业务组件容器
|
||||
* @see https://yuque.antfin-inc.com/mo/spec/spec-low-code-building-schema#XMeF5
|
||||
*/
|
||||
export interface ComponentSchema extends ContainerSchema {
|
||||
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';
|
||||
}
|
||||
|
||||
export type RootSchema = PageSchema | ComponentSchema | BlockSchema;
|
||||
|
||||
export interface SlotSchema extends NodeSchema {
|
||||
name?: string;
|
||||
componentName: 'Slot';
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user