跳到主要内容

Interface: LayoutViewDomProps

Defined in: LayoutViewDom.tsx:70

库的(唯一)渲染组件的 props

Properties

initialLayout?

optional initialLayout?: InitialLayout

Defined in: LayoutViewDom.tsx:85

初始布局:组件挂载时若 store 仍为原始默认布局则应用(声明式,见 InitialLayout)。 仅「仍是默认」时生效,交互过或重挂载不会把用户已改的布局冲回初始值。


positioning?

optional positioning?: "absolute" | "flow"

Defined in: LayoutViewDom.tsx:80

容器定位策略:

  • "absolute"(默认):铺满最近 positioned 祖先的 padding-box(需父元素有定位上下文)
  • "flow":正常文档流元素,宽高 100% 撑满父元素 content-box —— 父元素无需 position, padding 自动内缩舞台、margin 天然在外侧。要求父级有确定高度(否则塌 0 高, 库会 console.warn 提示)。

slots?

optional slots?: RenderSlots

Defined in: LayoutViewDom.tsx:74

渲染插槽(定制头部/角标/分界线/区域盒/预览层;不传用默认外观)


style?

optional style?: CSSProperties

Defined in: LayoutViewDom.tsx:82

透传到 .tl-stage-wrap 的内联样式(如自定义 padding/margin/背景/混合定位)


theme?

optional theme?: LayoutConfig

Defined in: LayoutViewDom.tsx:72

视觉/间距配置(实例级覆盖,展开为 --tl-* CSS 变量)。⚠ interaction 是全局的,写这里无效。