/** * features/chat/components/messages/ChatMessageBubble.vue * 用途:渲染单条聊天消息,统一承接用户气泡、助手 Markdown、内嵌文件下载、请假/出货子组件与操作栏。 * 依赖:Vue computed、lucide 图标、消息附件/Leave/Shipping 子组件、chat.types 与页面级 handlers。 * 逻辑:由 ChatMessageList 按消息逐条挂载;货代履约写按钮不在气泡内渲染,仅展示只读卡与深链通知。 * 用户附件区支持 summaryOnly:下方已有抽取进度卡时只显示附件摘要。 * 助手 Markdown 排版在本组件内收口:全局 base 只恢复标题字重,列表序号/圆点、 * 层级缩进与标题字号层级由 scoped 样式统一补齐,避免回答渲染成无结构平铺文本。 * 兼容:同时承接采购合同审查、库存映射、订单提取和 Mermaid 展示。 */ {{ message.content }} {{ entry.file.name }} {{ handlers.getQueryPreviewSummary(message) }} {{ 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 || '-' }} {{ 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 }) }}