pub fn EmptyState(_: EmptyStateProps) -> ElementExpand description
空状态组件。
默认渲染「线条小狗」配图;提供 title / description / action 可覆盖默认文案。
所有元素垂直居中,配图下方留白,与首页 HomeInfo 的居中布局对齐。
Props 由 #[component] 宏自动生成(title / description / action 均为可选)。
§Props
For details, see the props struct definition.
title:String主标题(通常为「还没有文章」之类)。
description:String副文案,说明当前状态或引导用户。
action:Option<EmptyStateAction>可选的行动按钮。