添加注释和日志,添加自采添加物品添加后删除图片

This commit is contained in:
zxj
2025-07-14 11:07:04 +08:00
parent f1283ba11e
commit ab55bb0fdc
9 changed files with 103 additions and 176 deletions
@@ -78,8 +78,6 @@ fun SingleSelectButtonGroup(
var selectedOption by remember { mutableStateOf(options.firstOrNull() ?: "") }
val lazyGridState = rememberLazyGridState()
// val canLoadMore by viewModel.canLoadMore.collectAsState()
// val isMoreLoading by viewModel.isMoreLoading.collectAsState()
var pageNum by remember { mutableIntStateOf(1) }
// 检测是否滚动到底部
@@ -103,7 +101,6 @@ fun SingleSelectButtonGroup(
val selectedColor = Color(0xFFD9E3F9)
val unselectedColor = Color(0xFFDCDCF0)
LazyVerticalGrid(
state = lazyGridState,
columns = GridCells.Fixed(2), // 每行2列
@@ -112,7 +109,7 @@ fun SingleSelectButtonGroup(
horizontalArrangement = Arrangement.spacedBy(horizontalSpacing),
verticalArrangement = Arrangement.spacedBy(verticalSpacing)
) {
items(items = options) { option ->
items(items = options, key = { it.goodsId ?: it.goodsCode!! }) { option ->
Box(
modifier = modifier
.border(
@@ -143,7 +140,6 @@ fun SingleSelectButtonGroup(
softWrap = false
)
}
}
}
}