diff --git a/src/components/ui.rs b/src/components/ui.rs index 425a393..cc23c82 100644 --- a/src/components/ui.rs +++ b/src/components/ui.rs @@ -115,18 +115,24 @@ pub const BTN_ICON: &str = /// - `current_page`:当前页码(从 1 开始) /// - `total`:数据总条数 /// - `per_page`:每页条数,用于计算总页数 -/// - `prev_route`:点击上一页跳转的目标路由 -/// - `next_route`:点击下一页跳转的目标路由 +/// - `prev_route`:点击上一页跳转的目标路由(路由式翻页用) +/// - `next_route`:点击下一页跳转的目标路由(路由式翻页用) /// - `unit`:计数单位("篇" / "条"),仅 admin 显示计数时使用 +/// - `on_prev` / `on_next`:可选回调。传入时渲染 `