书架管理返回问题
This commit is contained in:
@@ -468,6 +468,7 @@ private fun BookshelfManageScreen(
|
|||||||
searchKey = ""
|
searchKey = ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
onClearSelection = clearSelection,
|
||||||
onSearchQueryChange = { searchKey = it },
|
onSearchQueryChange = { searchKey = it },
|
||||||
searchPlaceholder = "筛选书名/作者/书源/分组",
|
searchPlaceholder = "筛选书名/作者/书源/分组",
|
||||||
topBarActions = {
|
topBarActions = {
|
||||||
|
|||||||
@@ -55,6 +55,7 @@ fun <T> ListScaffold(
|
|||||||
topBarActions: @Composable RowScope.() -> Unit = {},
|
topBarActions: @Composable RowScope.() -> Unit = {},
|
||||||
bottomContent: @Composable (ColumnScope.(GlassTopAppBarScrollBehavior) -> Unit)? = null,
|
bottomContent: @Composable (ColumnScope.(GlassTopAppBarScrollBehavior) -> Unit)? = null,
|
||||||
dropDownMenuContent: @Composable (ColumnScope.(dismiss: () -> Unit) -> Unit)? = null,
|
dropDownMenuContent: @Composable (ColumnScope.(dismiss: () -> Unit) -> Unit)? = null,
|
||||||
|
onClearSelection: (() -> Unit)? = null,
|
||||||
selectionActions: SelectionActions? = null,
|
selectionActions: SelectionActions? = null,
|
||||||
onAddClick: (() -> Unit)? = null,
|
onAddClick: (() -> Unit)? = null,
|
||||||
floatingActionButton: @Composable () -> Unit = {
|
floatingActionButton: @Composable () -> Unit = {
|
||||||
@@ -99,7 +100,7 @@ fun <T> ListScaffold(
|
|||||||
onSearchSubmit = onSearchSubmit,
|
onSearchSubmit = onSearchSubmit,
|
||||||
searchTrailingIcon = searchTrailingIcon,
|
searchTrailingIcon = searchTrailingIcon,
|
||||||
searchPlaceholder = searchPlaceholder,
|
searchPlaceholder = searchPlaceholder,
|
||||||
onClearSelection = { selectionActions?.onClearSelection?.invoke() },
|
onClearSelection = { onClearSelection?.invoke() ?: selectionActions?.onClearSelection?.invoke() },
|
||||||
topBarActions = topBarActions,
|
topBarActions = topBarActions,
|
||||||
dropDownMenuContent = dropDownMenuContent,
|
dropDownMenuContent = dropDownMenuContent,
|
||||||
bottomContent = bottomContent
|
bottomContent = bottomContent
|
||||||
|
|||||||
Reference in New Issue
Block a user