主要的面向对象是开发者。
解决的场景是 定义好一套组件好,可以通过拖拽生成页面,达到快速开发的效果
-
手机扫码预览效果
核心功能均在src目录,example目录只是作为一个使用示例
data === Array<Page> export type IPage = IBlockData<{ title: string; }>; export const Page: IBlock<IPage> = { name: '页面', type: BasicType.PAGE, Editor, Renderer, Panel, createInstance, validChildrenType: [] }; export interface IBlockData<T extends any = any> { style: Partial<React.CSSProperties>; type: BlockType; data: { value: T; link?: string; action?: string; variable?: string; }; children: IBlockData<any>[]; }