/** * features/chat/components/messages/ChatMessageBubble.vue * 用途:渲染单条聊天消息,统一承接用户气泡、助手 Markdown、内嵌文件下载、请假/出货子组件与操作栏。 * 依赖:Vue computed、lucide 图标、Leave/Shipping 子消息组件、chat.types 与页面级 handlers。 * 逻辑:由 ChatMessageList 按消息逐条挂载;正文渲染与特殊交互委托 useChatPageMarkdown 等页面编排层提供的 handlers。 */ {{ message.content }} {{ entry.file.name }} {{ handlers.getQueryPreviewSummary(message) }} {{ $t('chat.shippingNoticeActionsHint') }} {{ action.label }} {{ file.name }} {{ $t('chat.sourceDocs') }} ({{ retrieverResources.length }}) {{ handlers.getSourceTitle(doc) }} {{ handlers.getSourceMeta(doc) }} {{ handlers.getSourceBrief(doc) }} {{ $t('chat.attributionParts') }} {{ part }} {{ activeInlineDialogEntry.file.name }} {{ $t('chat.inlineFile.previewHint', { rows: activeInlineDialogEntry.table.totalRows }) }} {{ $t('chat.inlineFile.download') }} {{ $t('chat.inlineFile.filters.reset') }} {{ header || '-' }} {{ cell || '-' }} {{ activeInlineDialogEntry.file.data }} {{ activeInlineFilteredRows.length > 0 ? $t('chat.inlineFile.pagination.range', { start: activeInlineRangeStart, end: activeInlineRangeEnd, total: activeInlineFilteredRows.length, }) : $t('chat.inlineFile.pagination.empty') }} {{ $t('chat.inlineFile.pagination.prev') }} {{ $t('chat.inlineFile.pagination.page', { page: inlineDialogPage, total: activeInlineTotalPages }) }} {{ $t('chat.inlineFile.pagination.next') }}
{{ $t('chat.inlineFile.previewHint', { rows: activeInlineDialogEntry.table.totalRows }) }}