refac
This commit is contained in:
@@ -25,7 +25,7 @@ export function getSuggestionRenderer(Component: any, ComponentProps = {}) {
|
||||
char: props?.text?.charAt(0),
|
||||
query: props?.query,
|
||||
command: (item) => {
|
||||
props.command({ id: item.id, label: item.label });
|
||||
props.command(item);
|
||||
},
|
||||
...ComponentProps
|
||||
},
|
||||
@@ -88,7 +88,7 @@ export function getSuggestionRenderer(Component: any, ComponentProps = {}) {
|
||||
component.$set({
|
||||
query: props.query,
|
||||
command: (item) => {
|
||||
props.command({ id: item.id, label: item.label });
|
||||
props.command(item);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user