TagView

@Composable
fun TagView(size: Int, titleProvider: (Int) -> String, modifier: Modifier = Modifier, iconProvider: (Int) -> ImageVector?? = null, readonly: Boolean = false, onClick: (Int) -> Unit? = null, onDelete: (Int) -> Unit? = null, containerColor: Color = Theme.color.backgroundVariant, contentColor: Color = Theme.color.onBackground, style: TextStyle = LocalStyle.current, maxItemsInEachRow: Int = Int.MAX_VALUE, maxLines: Int = Int.MAX_VALUE)

标签组

Parameters

size

标签数

titleProvider

标题

iconProvider

图标

onClick

单击事件

onDelete

长按删除事件

containerColor

容器色

contentColor

内容色

style

文字样式

maxItemsInEachRow

最大行内标签数

maxLines

最大行