Skip to main content

Module delayed_skeleton

Module delayed_skeleton 

Source
Expand description

延迟显示骨架屏组件。 延迟骨架屏包装组件

200ms 内完全不渲染骨架屏,避免快速加载时骨架屏一闪而过; 超过 200ms 后渲染骨架屏;占位块自带扫光(.skeleton),提示正在加载。 导航挂起(is-route-pending)期间挂载时立即显示,接上路由骨架。

Structs§

DelayedSkeletonProps
Props for the DelayedSkeleton component.

Constants§

SKELETON_DELAY_MS 🔒
骨架屏显示延迟(毫秒)。

Functions§

DelayedSkeleton
延迟渲染的骨架屏包装组件。