- App/ChatView 接入 ElConfigProvider 多语言(zh-CN/zh-TW/en),AdminLayout 间距壳层统一持有 - OrderProfile 全家 22 文件迁移:页头/按钮/徽标/自绘弹窗/表单控件统一 element-trial 范式 - schema/审计中心/字段资产/身份规则/库存源/连接器/调拨类型页面同步迁移,新增 __tests__ 回归 - 迁移遵循「业务脚本零改动」:事件内联适配保持原 handler 契约,焦点陷阱与关闭语义不变 - i18n admin/common 四语言补充组件文案,架构文档记录迁移范式
26 lines
1.1 KiB
Vue
26 lines
1.1 KiB
Vue
<script setup lang="ts">
|
|
/**
|
|
* features/chat/views/ChatView.vue
|
|
* 单个 Agent 对话页入口:provide 编排上下文,子组件 inject 消费。
|
|
* 依赖:useChatPage、ChatViewContent/ChatViewOverlays。
|
|
* 逻辑:在途调拨业务面板(Transfer* 组件)已 EP 组件化(el-dialog/el-table/el-select),
|
|
* EP 样式随本页入口全量引入(亮色 + 暗色变量,模式同 admin 页面内引入),
|
|
* 保证 chat 直达时样式就绪、不依赖 admin 路由先行加载。
|
|
*/
|
|
import { provide, reactive } from 'vue';
|
|
import 'element-plus/dist/index.css';
|
|
import 'element-plus/theme-chalk/dark/css-vars.css';
|
|
import { useChatPage } from '@/features/chat/composables/useChatPage';
|
|
import { CHAT_PAGE_KEY, type ChatPageContextProvided } from '@/features/chat/composables/chat.context';
|
|
import ChatViewContent from '@/features/chat/components/ChatViewContent.vue';
|
|
import ChatViewOverlays from '@/features/chat/components/ChatViewOverlays.vue';
|
|
|
|
const page = reactive(useChatPage()) as ChatPageContextProvided;
|
|
provide(CHAT_PAGE_KEY, page);
|
|
</script>
|
|
|
|
<template>
|
|
<ChatViewContent />
|
|
<ChatViewOverlays />
|
|
</template>
|