af-mobile-client-vue3 1.4.49 → 1.4.51

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -24,6 +24,8 @@ const include = [
24
24
  'vant/es/tabbar-item/style/index',
25
25
  'vant/es/list/style/index',
26
26
  'vant/es/text-ellipsis/style/index',
27
+ // 确保 @matechat/core 及其依赖 xss 被正确预构建
28
+ '@matechat/core',
27
29
  ]
28
30
 
29
31
  const exclude = [
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "af-mobile-client-vue3",
3
3
  "type": "module",
4
- "version": "1.4.49",
4
+ "version": "1.4.51",
5
5
  "packageManager": "pnpm@10.13.1",
6
6
  "description": "Vue + Vite component lib",
7
7
  "engines": {
@@ -21,7 +21,6 @@
21
21
  "prepare": "simple-git-hooks"
22
22
  },
23
23
  "dependencies": {
24
- "@devui-design/icons": "^1.4.0",
25
24
  "@iconify/vue": "4.3.0",
26
25
  "@matechat/core": "^1.10.0",
27
26
  "@micro-zoe/micro-app": "1.0.0-rc.26",
@@ -45,7 +44,6 @@
45
44
  "vant": "^4.9.21",
46
45
  "vconsole": "^3.15.1",
47
46
  "vue": "^3.5.17",
48
- "vue-devui": "^1.6.34",
49
47
  "vue-i18n": "^11.1.10",
50
48
  "vue-router": "^4.5.1",
51
49
  "vue3-hash-calendar": "^1.1.3",
package/src/main.ts CHANGED
@@ -4,6 +4,8 @@ import Plugins from '@af-mobile-client-vue3/plugins'
4
4
  import router from '@af-mobile-client-vue3/router'
5
5
  import pinia from '@af-mobile-client-vue3/stores'
6
6
  import { i18n } from '@af-mobile-client-vue3/utils/i18n'
7
+ // MateChat ai 对话相关
8
+ import MateChat from '@matechat/core'
7
9
  import { createHead } from '@unhead/vue/client'
8
10
  import { createApp } from 'vue'
9
11
  import 'virtual:uno.css'
@@ -32,6 +34,7 @@ import 'vant/es/notify/style'
32
34
  app.use(pinia)
33
35
  app.use(i18n)
34
36
  app.use(Plugins)
37
+ app.use(MateChat)
35
38
 
36
39
  await bootstrap(router)
37
40
  app.mount('#system-app')
@@ -1,14 +1,10 @@
1
1
  <script setup lang="ts">
2
2
  import liuliLogo from '@af-mobile-client-vue3/assets/img/component/liuli.png'
3
3
  // MateChat ai 对话相关
4
- import { McBubble, McInput, McIntroduction, McLayout, McLayoutContent, McLayoutSender, McMarkdownCard, McPrompt } from '@matechat/core/mate-chat'
5
- import { showToast } from 'vant'
4
+ import { showToast, Button as VanButton } from 'vant'
6
5
  import { ref } from 'vue'
7
- import { Button } from 'vue-devui/button'
8
6
  import { chatCompletions } from './apiService'
9
- import 'vue-devui/button/style.css'
10
7
  import 'vant/es/image-preview/style'
11
- import '@devui-design/icons/icomoon/devui-icon.css'
12
8
 
13
9
  const description = [
14
10
  '我是【奥枫天然气公司】官方公众号专属 AI 客服小璃,可以为您提供专业、高效、易懂的天然气相关咨询服务。',
@@ -182,12 +178,12 @@ async function onSubmit(evt: string) {
182
178
  style="flex: 1"
183
179
  @item-click="onSubmit($event.label)"
184
180
  />
185
- <Button
181
+ <VanButton
186
182
  style="margin-left: auto"
187
183
  icon="add"
188
- shape="circle"
189
184
  title="新建对话"
190
- size="md"
185
+ size="small"
186
+ round
191
187
  @click="newConversation"
192
188
  />
193
189
  </div>