@momo-kits/native-kits 0.160.1-searchBackground.5-debug → 0.160.1-searchBackground.6-debug
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/compose/build.gradle.kts
CHANGED
|
@@ -528,6 +528,7 @@ data class LiteInputSearchProps(
|
|
|
528
528
|
val customSearchIcon: @Composable (() -> Unit)? = null,
|
|
529
529
|
val customPlaceHolder: @Composable (() -> Unit)? = null,
|
|
530
530
|
val customTextStyle: TextStyle? = null,
|
|
531
|
+
val customIconClear: @Composable (() -> Unit)? = null,
|
|
531
532
|
val iconRightTextField: @Composable ((Modifier) -> Unit)? = null,
|
|
532
533
|
)
|
|
533
534
|
|
|
@@ -645,7 +646,7 @@ private fun LiteInputSearch(
|
|
|
645
646
|
}
|
|
646
647
|
|
|
647
648
|
if (isShowClear) {
|
|
648
|
-
Icon(
|
|
649
|
+
inputSearchProps.customIconClear?.invoke() ?: Icon(
|
|
649
650
|
source = "24_navigation_close_circle_full",
|
|
650
651
|
size = 16.dp,
|
|
651
652
|
color = theme.colors.text.hint,
|