Expand description
回收站页面模块(文章管理下的 tab)。
回收站(文章管理下的 tab,由 posts.rs::Posts 容器渲染)。
展示已软删除文章,支持恢复、彻底删除、批量操作、一键清空, 以及自动清理配置(启用开关 + 保留天数)。 数据加载与操作仅在 WASM 前端通过 Dioxus server functions 交互。
本组件作为 PostsTrashPanel 被 /admin/posts 单路由下的 tab 容器(见
posts.rs::Posts)渲染:header 与 tab 栏由容器统一提供,本组件只负责
回收站列表内容(自动清理配置 + 批量栏 + 列表 + 分页)。翻页走客户端 signal,
与全部文章 tab 状态通过容器层的 key 化挂载隔离。
Structs§
- Auto
Purge 🔒Settings Props - Properties for the
AutoPurgeSettingscomponent. - Trash
RowProps 🔒 - Properties for the
TrashRowcomponent.
Constants§
- TRASH_
PER_ 🔒PAGE - 每页展示的回收站文章数量。
Functions§
- Auto
Purge 🔒Settings - 自动清理配置子组件:可折叠的设置面板。
- Posts
Trash 🔒Panel - 回收站 tab 内容:列表 + 批量操作 + 自动清理配置。
- Trash
Row 🔒 - 回收站表格行组件。
- remaining_
days 🔒 - 计算剩余天数(保留期 - 已删除天数)。