You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+19-6Lines changed: 19 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -114,12 +114,6 @@ React.render(
114
114
</tr>
115
115
</thead>
116
116
<tbody>
117
-
<tr>
118
-
<td>autoClearSearchValue</td>
119
-
<td>boolean</td>
120
-
<td>true</td>
121
-
<td>Whether the current search will be cleared on selecting an item. Only applies when checkable</td>
122
-
</tr>
123
117
<tr>
124
118
<td>options</td>
125
119
<td>Object</td>
@@ -234,9 +228,28 @@ React.render(
234
228
<td>>true</td>
235
229
<td>hide popup on select</td>
236
230
</tr>
231
+
<tr>
232
+
<td>showSearch</td>
233
+
<td>boolean | object</td>
234
+
<td>false</td>
235
+
<td>Whether show search input in single mode</td>
236
+
</tr>
237
237
</tbody>
238
238
</table>
239
239
240
+
### showSearch
241
+
242
+
| Property | Description | Type | Default | Version |
243
+
| --- | --- | --- | --- | --- |
244
+
| autoClearSearchValue | Whether the current search will be cleared on selecting an item. Only applies when checkable| boolean | true |
245
+
| filter | The function will receive two arguments, inputValue and option, if the function returns true, the option will be included in the filtered set; Otherwise, it will be excluded | function(inputValue, path): boolean | - ||
246
+
| limit | Set the count of filtered items | number \| false | 50 ||
247
+
| matchInputWidth | Whether the width of list matches input, ([how it looks](https://github.com/ant-design/ant-design/issues/25779)) | boolean | true ||
248
+
| render | Used to render filtered options | function(inputValue, path): ReactNode | - ||
249
+
| sort | Used to sort filtered options | function(a, b, inputValue) | - ||
250
+
| searchValue | The current input "search" text | string | - | - |
251
+
| onSearch | called when input changed | function | - | - |
0 commit comments