@momo-kits/native-kits 0.160.1-searchinput.1-debug → 0.160.1-searchinput.2-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
|
@@ -147,12 +147,13 @@ fun InputSearch(
|
|
|
147
147
|
)
|
|
148
148
|
}
|
|
149
149
|
|
|
150
|
-
Row(
|
|
151
|
-
.
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
150
|
+
Row(
|
|
151
|
+
verticalAlignment = Alignment.CenterVertically, modifier = Modifier
|
|
152
|
+
.fillMaxWidth()
|
|
153
|
+
.height(36.dp)
|
|
154
|
+
.conditional(IsShowBaseLineDebug) {
|
|
155
|
+
border(1.dp, Colors.blue_03)
|
|
156
|
+
}
|
|
156
157
|
) {
|
|
157
158
|
BasicTextField(
|
|
158
159
|
enabled = !inputSearchProps.disabled,
|
|
@@ -200,19 +201,16 @@ fun InputSearch(
|
|
|
200
201
|
color = AppTheme.current.colors.text.hint
|
|
201
202
|
)
|
|
202
203
|
Box(Modifier.weight(1f)) {
|
|
203
|
-
inputSearchProps.
|
|
204
|
-
|
|
205
|
-
Text(
|
|
204
|
+
if (inputSearchProps.text.value.isEmpty()) {
|
|
205
|
+
inputSearchProps.placeholderCustomRender?.invoke()
|
|
206
|
+
?: Text(
|
|
206
207
|
text = inputSearchProps.placeholder,
|
|
207
208
|
style = placeHolderStyle,
|
|
208
209
|
maxLines = 1,
|
|
209
210
|
color = placeholderColor,
|
|
210
211
|
overflow = TextOverflow.Ellipsis
|
|
211
212
|
)
|
|
212
|
-
|
|
213
|
-
} else {
|
|
214
|
-
|
|
215
|
-
}
|
|
213
|
+
}
|
|
216
214
|
innerTextField()
|
|
217
215
|
}
|
|
218
216
|
if (inputSearchProps.clearCondition?.invoke() == true || (isFocused && inputSearchProps.text.value.isNotEmpty())) {
|