我的文档库

多根目录侧边栏

flex-layout

  • Getting Started

  • Guides

  • Reference

typed-rx-http

  • Getting Started

  • Guides

  • Reference

global-rx-state

  • Getting Started

  • Guides

  • Reference

webflux-fe-dev-assistant

reactive-mongo-dsl

打开/关闭面板

折叠和展开容器的命令事件。


使用 containerOpenCloseSubjectMap

每个容器由 ContainerOpenCloseProvider准备内部主题。外部按钮发送 containerOpenCloseSubjectMap[containerName].next(...)open/close/toggle 命令.

tsx
ContainerStateRequest 核心选项

mode

open, close, toggle 중 하나입니다.

initOpenState

초기 open 상태를 함께 전달할 때 사용합니다.

openOption

열릴 때 전달되는 옵션입니다. 이전 크기로 열고 싶다면 isPrevSizeOpen을 사용합니다.

closeOption

닫힐 때 전달되는 옵션입니다. 닫을 때 grow를 어떻게 계산할지 조정합니다.

onOpen / onClose

열림/닫힘 처리가 끝난 뒤 호출되는 콜백입니다.

双击切换
tsx
© 2026 Byeolnaerim. 保留所有权利.介绍隐私政策