xfy 61c64841f9 refactor(skeletons): 统一骨架屏延迟机制,200ms 内加载不显示
- DelayedSkeleton 从「延迟 pulse 动画」改为「延迟渲染」:
  前 200ms 完全不渲染,超时后才显示并带 pulse 动画
- admin_layout 从 use_delayed_loading hook 改为 DelayedSkeleton 包裹
- CommentListSkeleton 的两处裸用(section.rs / post_detail.rs)
  补上 DelayedSkeleton 包裹
- 移除不再使用的 use_delayed_loading hook 模块
2026-07-08 14:18:08 +08:00

17 lines
669 B
Rust
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//! 共享的 Dioxus Hooks 模块。
//!
//! 该模块集中管理可在组件树中复用的自定义 Hook包括
//! - 通用 DOM 事件监听(注册 + 自动卸载清理)
//! - 客户端分页数据加载
//!
//! 评论草稿持久化localStorage 读写)已迁至 `crate::utils::comment_storage`
//! 因为它是纯工具函数而非渲染期 Hook。
//!
//! 骨架屏延迟渲染已统一至 `crate::components::skeletons::delayed_skeleton::DelayedSkeleton` 组件。
/// 通用 DOM 事件监听 Hookadd/remove_event_listener 生命周期封装)。
pub mod event_listener;
/// 客户端数据加载 Hookuse_paginated
pub mod query;