feat(render): M2 — React 渲染内核 + 布局画廊(playground)
- core 新增 render 子路径(vibe-registry/render):PageView + WidgetView + LayoutGallery - layout 注册项支持 render 实现;缺省兜底 DefaultLayout - widget 注册项 component 挂真实 React 组件 - PageBlockDecl 增加 slot 字段(块落在布局哪个槽位) - playground:admin 布局真实骨架 + 组件 + 订单页,dev 预览 + 生产构建通过 - 全量回归:core/qa-orchestrator/playground typecheck 全绿
This commit is contained in:
@@ -12,6 +12,8 @@ import { type RegistryApi, registry } from './registry.ts'
|
||||
export interface PageBlockDecl {
|
||||
/** widget 注册 id,如 'data-table'、'page-header' */
|
||||
readonly widget: string
|
||||
/** 落在布局的哪个槽位(缺省 'content';渲染内核按布局 slots 装配) */
|
||||
readonly slot?: string
|
||||
/** 静态 props(可选) */
|
||||
readonly props?: Record<string, unknown>
|
||||
/** 业务绑定:setup 返回的数据里取哪些字段喂给 widget(键:widget prop 名,值:setup 结果字段) */
|
||||
|
||||
Reference in New Issue
Block a user