书架管理返回问题

This commit is contained in:
HapeLee
2026-05-29 01:10:04 +08:00
parent afee7886b1
commit 562af402d9
2 changed files with 3 additions and 1 deletions
@@ -468,6 +468,7 @@ private fun BookshelfManageScreen(
searchKey = ""
}
},
onClearSelection = clearSelection,
onSearchQueryChange = { searchKey = it },
searchPlaceholder = "筛选书名/作者/书源/分组",
topBarActions = {
@@ -55,6 +55,7 @@ fun <T> ListScaffold(
topBarActions: @Composable RowScope.() -> Unit = {},
bottomContent: @Composable (ColumnScope.(GlassTopAppBarScrollBehavior) -> Unit)? = null,
dropDownMenuContent: @Composable (ColumnScope.(dismiss: () -> Unit) -> Unit)? = null,
onClearSelection: (() -> Unit)? = null,
selectionActions: SelectionActions? = null,
onAddClick: (() -> Unit)? = null,
floatingActionButton: @Composable () -> Unit = {
@@ -99,7 +100,7 @@ fun <T> ListScaffold(
onSearchSubmit = onSearchSubmit,
searchTrailingIcon = searchTrailingIcon,
searchPlaceholder = searchPlaceholder,
onClearSelection = { selectionActions?.onClearSelection?.invoke() },
onClearSelection = { onClearSelection?.invoke() ?: selectionActions?.onClearSelection?.invoke() },
topBarActions = topBarActions,
dropDownMenuContent = dropDownMenuContent,
bottomContent = bottomContent