mirror of
https://github.com/lowdefy/lowdefy.git
synced 2025-02-23 14:39:32 +08:00
feat(blocksAntd): Add onSearch event to AutoComplete.
This commit is contained in:
parent
406686994f
commit
672624faa9
@ -70,6 +70,9 @@ const AutoCompleteInput = ({
|
||||
methods.setValue(val);
|
||||
methods.triggerEvent({ name: 'onChange' });
|
||||
}}
|
||||
onSearch={(newVal) => {
|
||||
methods.triggerEvent({ name: 'onChange', event: { value: newVal } });
|
||||
}}
|
||||
value={type.isNone(value) ? undefined : value}
|
||||
>
|
||||
{(properties.options || []).map((opt, i) =>
|
||||
|
@ -183,6 +183,10 @@
|
||||
"onChange": {
|
||||
"type": "array",
|
||||
"description": "Trigger actions when selection is changed."
|
||||
},
|
||||
"onSearch": {
|
||||
"type": "array",
|
||||
"description": "Called when searching items."
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user