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