Merge branch 'dev' into hugo

This commit is contained in:
hugo committed 2026-06-23 11:22:39 +08:00
commit d5928b42f3
63 files changed
+5759 -1493

No files matched your search

@@ -9,7 +9,6 @@ import {
Check,
ChevronDown,
Database,
Globe,
Link2,
Loader2,
Mic,
@@ -44,12 +43,10 @@ const props = defineProps<{
/** 用对象包裹 Ref,避免 template 自动解包 */
shippingPickerRefHolder: { pickerRef: Ref<HTMLInputElement | null> };
getKbLabel: (kb: string) => string;
browserPanelOpen: boolean;
}>();
const emit = defineEmits<{
send: [];
'toggle-browser': [];
'voice-click': [];
'remove-attachment': [id: string];
'local-files-selected': [event: Event];
@@ -312,16 +309,6 @@ onBeforeUnmount(() => {
</button>
</div>
</div>
<button
type="button"
:disabled="isThinking"
class="flex items-center gap-1 rounded-lg border border-default px-3 py-1.5 text-xs font-medium text-secondary transition-colors hover:bg-surface-soft disabled:cursor-not-allowed disabled:opacity-50"
@click="emit('toggle-browser')"
>
<Globe class="h-3.5 w-3.5 text-brand-500" />
{{ browserPanelOpen ? $t('chat.collapseBrowser') : $t('chat.openBrowser') }}
</button>
</div>
<button
@@ -141,8 +141,6 @@ const page = useChatPageContext();
:shipping-suggested-prompt="page.shippingSuggestedPrompt"
:shipping-picker-ref-holder="page.shippingPickerRefHolder"
:get-kb-label="page.getKbLabel"
:browser-panel-open="page.browserPanelOpen"
@toggle-browser="page.toggleBrowserPanel"
@send="page.handleSend()"
@voice-click="page.handleVoiceFeatureClick"
@remove-attachment="page.removeAttachment"