Side Panel

停靠在页面旁边的面板,包含标题栏、标题、操作、关闭按钮和可滚动的内容区。

可用框架
  • Angular: 可用
  • Vue: 可用
  • React: 可用
  • React Native: 暂不可用

用法

Weekly sync — the note stays in place while the panel docks beside it.

导入

ts
import {
  SoneSidePanelActionsDirective,
  SoneSidePanelCloseComponent,
  SoneSidePanelContentDirective,
  SoneSidePanelDirective,
  SoneSidePanelHeaderDirective,
  SoneSidePanelTitleDirective,
} from "@surface-one/angular/side-panel";

API 参考

SoneSidePanelActionsDirective指令

选择器
[soneSidePanelActions]

SoneSidePanelCloseComponent组件

选择器
sone-side-panel-close
输入
名称类型 默认值
label必填string—
输出
名称类型
closedvoid

SoneSidePanelContentDirective指令

选择器
[soneSidePanelContent]

SoneSidePanelDirective指令

选择器
[soneSidePanel]

SoneSidePanelHeaderDirective指令

选择器
[soneSidePanelHeader]

SoneSidePanelTitleDirective指令

选择器
[soneSidePanelTitle]