Expand description
通用骨架原子组件。 骨架屏原子组件
提供通用的脉冲动画占位块,供各页面骨架屏组合使用。
Re-exports§
pub use SkeletonBox_completions::Component::SkeletonBox;pub use SkeletonCard_completions::Component::SkeletonCard;pub use SkeletonTable_completions::Component::SkeletonTable;
Structs§
- Skeleton
BoxProps - Properties for the
SkeletonBoxcomponent. - Skeleton
Card Props - Properties for the
SkeletonCardcomponent. - Skeleton
Table Column - 表格骨架屏一列的规格:表头单元格类名/占位块类名 + 表体单元格类名/占位形状。
- Skeleton
Table Props - Properties for the
SkeletonTablecomponent.
Enums§
- Skeleton
Cell Shape - 表格骨架屏单元格占位形状:不同列的表体内容并非全部是单个占位块,
部分列(如「用户」列)需要头像+两行文字堆叠,因此用枚举描述形状而非
单一
&'static str。
Functions§
- Skeleton
Box - 通用骨架占位块。
- Skeleton
Card - 通用骨架「幽灵卡片」外壳:半透明背景 + 圆角 + 描边,供各页面骨架屏包裹
内容占位(列表行、表格、日志区等)。收敛此前散落在各骨架屏文件里手打的
同一段
bg-[var(--color-paper-entry)]/40 rounded-2xl border ...前缀。 - Skeleton
Table - 通用表格骨架屏:渲染
<table>本身(表头一行 + N 行占位表体),不含外层 卡片包裹——各调用方的外层卡片形态并不完全一致(有的独立成卡,有的与标题栏 共享同一张卡,有的嵌套在已带阴影的父卡片内无需再叠一层阴影),故由调用方 自行用SkeletonCard或既有容器包裹。收敛此前散落在多个后台列表页骨架屏 里几乎逐字重复的thead/tbody结构。