Skip to main content

Module posts_trash

Module posts_trash 

Source
Expand description

回收站页面模块(/admin/posts/trash 独立路由)。 回收站页面(/admin/posts/trash 独立路由,属侧边栏「内容管理」子菜单)。

展示已软删除文章,支持恢复、彻底删除、批量操作、一键清空, 以及自动清理配置(启用开关 + 保留天数)。 数据加载与操作仅在 WASM 前端通过 Dioxus server functions 交互。

Re-exports§

pub use PostsTrash_completions::Component::PostsTrash;

Structs§

AutoPurgeSettingsProps 🔒
Properties for the AutoPurgeSettings component.
TrashRowProps 🔒
Properties for the TrashRow component.

Constants§

TRASH_PER_PAGE 🔒
每页展示的回收站文章数量。

Functions§

AutoPurgeSettings 🔒
自动清理配置子组件:使用共享可折叠设置卡片。
PostsTrash
回收站页面:列表 + 批量操作 + 自动清理配置。
TrashRow 🔒
回收站表格行组件。
remaining_days 🔒
计算剩余天数(保留期 - 已删除天数)。