mirror of
https://github.com/open-webui/computer.git
synced 2026-12-03 02:07:51 -05:00
refac
This commit is contained in:
1 parent
a25957c88c
commit
f46467d359
14 files changed
+329
-200
No files matched your search
@@ -8,8 +8,14 @@
|
||||
selectedModel: string;
|
||||
preferAbove?: boolean;
|
||||
align?: 'start' | 'end';
|
||||
onchange?: (model: string) => void;
|
||||
}
|
||||
let { selectedModel = $bindable(), preferAbove = true, align = 'end' }: Props = $props();
|
||||
let {
|
||||
selectedModel = $bindable(),
|
||||
preferAbove = true,
|
||||
align = 'end',
|
||||
onchange
|
||||
}: Props = $props();
|
||||
|
||||
let btnEl: HTMLButtonElement | undefined = $state();
|
||||
let searchInputEl: HTMLInputElement | undefined = $state();
|
||||
@@ -33,6 +39,7 @@
|
||||
check: true,
|
||||
onclick: () => {
|
||||
selectedModel = m.id;
|
||||
onchange?.(m.id);
|
||||
}
|
||||
}))
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user