Skip to main content

AdminSidebar

Function AdminSidebar 

Source
pub(crate) fn AdminSidebar(props: AdminSidebarProps) -> impl IntoView
Expand description

后台侧栏:栏目导航、搜索入口、主题切换与用户区。

Props:

  • page:当前后台页面(决定激活栏目)
  • user_name / avatar_url:底部用户行;未登录或未校验时显示占位
  • counts:文章、素材、评论的数量;未加载时不显示
  • drawer:放在手机抽屉里(始终展开、点选后关闭抽屉、没有收起按钮)

§Required Props

§Optional Props