pub(crate) fn AdminSidebar(props: AdminSidebarProps) -> impl IntoViewExpand description
后台侧栏:栏目导航、搜索入口、主题切换与用户区。
Props:
page:当前后台页面(决定激活栏目)user_name/avatar_url:底部用户行;未登录或未校验时显示占位counts:文章、素材、评论的数量;未加载时不显示drawer:放在手机抽屉里(始终展开、点选后关闭抽屉、没有收起按钮)
§Required Props
page:impl Into<Signal<AdminPage>>user_name:impl Into<Signal<Option<String>>>avatar_url:impl Into<Signal<Option<String>>>on_logout:impl Into<Callback<()>>counts:impl Into<Signal<Option<AdminNavCounts>>>
§Optional Props
drawer:bool