Skip to main content

AdminShell

Function AdminShell 

Source
pub(crate) fn AdminShell(props: AdminShellProps) -> impl IntoView
Expand description

后台外壳:侧栏、顶栏与主画布。认证和路由留在 AdminLayout。

Props:

  • sidebar / drawer:桌面侧栏与手机抽屉里的导航(抽屉每次打开重新创建)
  • crumbs / title:顶栏面包屑与手机顶栏标题
  • content:主画布内容(传返回响应式视图的闭包以随登录态切换)
  • internal_scroll:页面在主内容区内部自行滚动
  • focus_write:写作页自带页头,隐藏后台顶栏
  • checking:登录态校验中,主画布不滚动

§Required Props

§Optional Props