Skip to main content

AdminPageHead

Function AdminPageHead 

Source
pub(crate) fn AdminPageHead(props: AdminPageHeadProps) -> impl IntoView
Expand description

后台页面标题行:左侧 h1 与副标题,右侧可选操作区。样式见 admin.css .admin-page-head。

  • title:页面标题(手机宽度隐藏,顶栏已显示)
  • class:附加类,如日志页的 logs-head
  • actions:右侧内容(传闭包),统一包进 .admin-page-actions
  • children:副标题内容;为空时 p 由 CSS min-height: 1lh 保留一行高度

§Required Props

§Optional Props