Skip to content

Commit

Permalink
fix: search的valueChange支持object模式
Browse files Browse the repository at this point in the history
  • Loading branch information
greper committed Nov 20, 2022
1 parent 879e212 commit 133da11
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/fast-crud/src/components/search/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,8 @@ export default {
const key = item.key;
const value = form[key];
const componentRef = getComponentRef(key);
item.valueChange({ key, value, componentRef, ...getContextFn() });
const valueChange = item.valueChange instanceof Function ? item.valueChange : item.valueChange.handle;
valueChange({ key, value, componentRef, ...getContextFn() });
}
if (!item.autoSearchTrigger || item.autoSearchTrigger === "change") {
doAutoSearch();
Expand Down

0 comments on commit 133da11

Please sign in to comment.