cnhis-design-vue 3.4.0-beta.72 → 3.4.0-beta.74

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.
Files changed (46) hide show
  1. package/README.md +87 -87
  2. package/es/components/iho-chat/index.d.ts +2732 -332
  3. package/es/components/iho-chat/src/Index.vue.d.ts +2732 -332
  4. package/es/components/iho-chat/src/Index.vue2.js +5 -3
  5. package/es/components/iho-chat/src/api/index.d.ts +89 -16
  6. package/es/components/iho-chat/src/api/index.js +8 -1
  7. package/es/components/iho-chat/src/components/ChatAdd.vue.d.ts +104 -22
  8. package/es/components/iho-chat/src/components/ChatFile.vue.d.ts +191 -29
  9. package/es/components/iho-chat/src/components/ChatFooter.vue.d.ts +191 -29
  10. package/es/components/iho-chat/src/components/ChatHeader.vue.d.ts +755 -101
  11. package/es/components/iho-chat/src/components/ChatMain.vue.d.ts +610 -51
  12. package/es/components/iho-chat/src/components/ChatMain.vue2.js +28 -29
  13. package/es/components/iho-chat/src/components/ChatRecord.vue.d.ts +176 -14
  14. package/es/components/iho-chat/src/components/ChatSearch.vue.d.ts +175 -10
  15. package/es/components/iho-chat/src/components/ChatSearch.vue2.js +2 -1
  16. package/es/components/iho-chat/src/components/ChatSet.vue.d.ts +197 -29
  17. package/es/components/iho-chat/src/components/ChatSet.vue2.js +48 -11
  18. package/es/components/iho-chat/src/components/ContextMenu.js +7 -10
  19. package/es/components/iho-chat/src/components/MessageEvent.vue.d.ts +88 -7
  20. package/es/components/iho-chat/src/components/MessageMarkdown.vue.d.ts +157 -0
  21. package/es/components/iho-chat/src/components/MessageMarkdown.vue.js +6 -0
  22. package/es/components/iho-chat/src/components/MessageMarkdown.vue2.js +41 -0
  23. package/es/components/iho-chat/src/components/MessageMergeForward.vue.d.ts +176 -14
  24. package/es/components/iho-chat/src/components/MultipleVideo.vue.d.ts +192 -29
  25. package/es/components/iho-chat/src/components/PersonProfile.vue.d.ts +91 -8
  26. package/es/components/iho-chat/src/components/PersonProfile.vue2.js +1 -1
  27. package/es/components/iho-chat/src/components/SiderList.vue.d.ts +93 -11
  28. package/es/components/iho-chat/src/components/Video.vue.d.ts +89 -8
  29. package/es/components/iho-chat/src/components/userItemRender.js +2 -1
  30. package/es/components/iho-chat/src/constants/index.d.ts +2 -1
  31. package/es/components/iho-chat/src/constants/index.js +1 -0
  32. package/es/components/iho-chat/src/hooks/useData.d.ts +374 -27
  33. package/es/components/iho-chat/src/hooks/useData.js +30 -9
  34. package/es/components/iho-chat/src/hooks/useStreamOutput.d.ts +6 -0
  35. package/es/components/iho-chat/src/hooks/useStreamOutput.js +100 -0
  36. package/es/components/iho-chat/src/hooks/useVideo.d.ts +89 -7
  37. package/es/components/iho-chat/src/hooks/useWebSocket.js +14 -4
  38. package/es/components/iho-chat/src/types/index.d.ts +39 -7
  39. package/es/components/iho-chat/src/utils/index.d.ts +2 -1
  40. package/es/components/iho-chat/src/utils/sseClient.d.ts +22 -0
  41. package/es/components/iho-chat/src/utils/sseClient.js +97 -0
  42. package/es/components/iho-chat/style/index.css +1 -1
  43. package/es/components/index.css +1 -1
  44. package/es/env.d.ts +25 -25
  45. package/es/shared/package.json.js +1 -1
  46. package/package.json +3 -3
@@ -1,13 +1,56 @@
1
1
  import { AnyObject } from '../../../../shared/types';
2
2
  import { isDoctorRole, getRoleName } from '../utils';
3
3
  import { FileOptions } from '../types';
4
+ import { MESSAGE_TYPE } from '../constants';
4
5
  declare const _default: import("vue").DefineComponent<{}, {
5
6
  attrs: {
6
7
  [x: string]: unknown;
7
8
  };
8
9
  state: {
9
- orgId: string | number;
10
- currentSessionItem: AnyObject;
10
+ [x: string]: any;
11
+ orgId: string;
12
+ currentSessionItem: {
13
+ id: string;
14
+ sessionKey: string;
15
+ receiver: string;
16
+ createdTime: string;
17
+ avatar: string;
18
+ name: string;
19
+ defaultName: string;
20
+ chatType: import("../constants").CHAT_TYPE;
21
+ roleInfo: import("../constants").ROLE_TYPE;
22
+ status: import("../constants").STATUS;
23
+ sortTime: string;
24
+ topping: boolean;
25
+ unreadNum: number;
26
+ updatedTime: string;
27
+ lastMessageContent: string;
28
+ sender?: string | undefined;
29
+ lastMessageId?: string | undefined;
30
+ lastMessage?: {
31
+ [x: string]: any;
32
+ chatMessageType: MESSAGE_TYPE;
33
+ msg: string;
34
+ referenceContent?: any;
35
+ forwardMessageList?: AnyObject[] | undefined;
36
+ messageTemplate?: any;
37
+ messageTemplateData?: any;
38
+ fileUrl?: string | undefined;
39
+ avStatus?: string | undefined;
40
+ } | undefined;
41
+ lastMessageSendTime?: string | undefined;
42
+ lastMessageStatus?: string | undefined;
43
+ lastSenderName?: string | undefined;
44
+ businessInfo?: {
45
+ uiSetting?: AnyObject | undefined;
46
+ topicInfo?: {
47
+ [x: string]: any;
48
+ param?: AnyObject | undefined;
49
+ } | undefined;
50
+ } | undefined;
51
+ labelList?: AnyObject[] | undefined;
52
+ notDisturb: boolean;
53
+ };
11
54
  id: string;
12
55
  userInfo: AnyObject;
13
56
  msgList: {
@@ -16,7 +59,7 @@ declare const _default: import("vue").DefineComponent<{}, {
16
59
  sessionKey: string;
17
60
  content: {
18
61
  [x: string]: any;
19
- chatMessageType: string;
62
+ chatMessageType: MESSAGE_TYPE;
20
63
  msg: string;
21
64
  referenceContent?: any;
22
65
  forwardMessageList?: AnyObject[] | undefined;
@@ -34,11 +77,49 @@ declare const _default: import("vue").DefineComponent<{}, {
34
77
  __time?: string | undefined;
35
78
  __sendTime?: string | undefined;
36
79
  }[];
37
- currentMsg: AnyObject;
38
- isAppendMsg: boolean;
39
- sessionList: AnyObject[];
80
+ sessionList: {
81
+ id: string;
82
+ sessionKey: string;
83
+ receiver: string;
84
+ createdTime: string;
85
+ avatar: string;
86
+ name: string;
87
+ defaultName: string;
88
+ chatType: import("../constants").CHAT_TYPE;
89
+ roleInfo: import("../constants").ROLE_TYPE;
90
+ status: import("../constants").STATUS;
91
+ sortTime: string;
92
+ topping: boolean;
93
+ unreadNum: number;
94
+ updatedTime: string;
95
+ lastMessageContent: string;
96
+ sender?: string | undefined;
97
+ lastMessageId?: string | undefined;
98
+ lastMessage?: {
99
+ [x: string]: any;
100
+ chatMessageType: MESSAGE_TYPE;
101
+ msg: string;
102
+ referenceContent?: any;
103
+ forwardMessageList?: AnyObject[] | undefined;
104
+ messageTemplate?: any;
105
+ messageTemplateData?: any;
106
+ fileUrl?: string | undefined;
107
+ avStatus?: string | undefined;
108
+ } | undefined;
109
+ lastMessageSendTime?: string | undefined;
110
+ lastMessageStatus?: string | undefined;
111
+ lastSenderName?: string | undefined;
112
+ businessInfo?: {
113
+ uiSetting?: AnyObject | undefined;
114
+ topicInfo?: {
115
+ [x: string]: any;
116
+ param?: AnyObject | undefined;
117
+ } | undefined;
118
+ } | undefined;
119
+ labelList?: AnyObject[] | undefined;
120
+ notDisturb: boolean;
121
+ }[];
40
122
  isChangeSession: boolean;
41
- updateSessionItem: AnyObject;
42
123
  isUpdateSession: boolean;
43
124
  currentReferenceMsg: AnyObject | null;
44
125
  currentReEditMsg: AnyObject | null;
@@ -56,11 +137,16 @@ declare const _default: import("vue").DefineComponent<{}, {
56
137
  info: AnyObject | null;
57
138
  };
58
139
  isForward: boolean;
140
+ loading: boolean;
59
141
  };
60
142
  setCurrentSessionItem: (item: AnyObject) => void;
61
143
  setUserDetail: (event: MouseEvent, userDetail: AnyObject) => void;
62
144
  isGroupChat: import("vue").ComputedRef<boolean>;
63
145
  isGroupLeader: import("vue").ComputedRef<boolean>;
146
+ handleStreamOutput: () => Promise<{
147
+ msgId: string;
148
+ content: string;
149
+ } | undefined>;
64
150
  inputRef: import("vue").Ref<any, any>;
65
151
  groupNameEditing: import("vue").Ref<boolean, boolean>;
66
152
  groupName: import("vue").Ref<string, string>;
@@ -70,6 +156,7 @@ declare const _default: import("vue").DefineComponent<{}, {
70
156
  handleTopping: (value: boolean) => Promise<void>;
71
157
  handleLeaveGroup: (dissolution: boolean) => Promise<void>;
72
158
  handleToEdit: () => Promise<void>;
159
+ handleGroupSummary: () => Promise<import("naive-ui/es/message").MessageReactive | undefined>;
73
160
  submitFormData: (o: AnyObject) => Promise<void>;
74
161
  handleGroupName: () => Promise<void>;
75
162
  handleAvatar: (options: FileOptions) => Promise<void>;
@@ -150,8 +237,50 @@ declare const _default: import("vue").DefineComponent<{}, {
150
237
  }> & {}>;
151
238
  emit: (event: "comfirm", ...args: any[]) => void;
152
239
  state: {
153
- orgId: string | number;
154
- currentSessionItem: AnyObject;
240
+ [x: string]: any;
241
+ orgId: string;
242
+ currentSessionItem: {
243
+ id: string;
244
+ sessionKey: string;
245
+ receiver: string;
246
+ createdTime: string;
247
+ avatar: string;
248
+ name: string;
249
+ defaultName: string;
250
+ chatType: import("../constants").CHAT_TYPE;
251
+ roleInfo: import("../constants").ROLE_TYPE;
252
+ status: import("../constants").STATUS;
253
+ sortTime: string;
254
+ topping: boolean;
255
+ unreadNum: number;
256
+ updatedTime: string;
257
+ lastMessageContent: string;
258
+ sender?: string | undefined;
259
+ lastMessageId?: string | undefined;
260
+ lastMessage?: {
261
+ [x: string]: any;
262
+ chatMessageType: MESSAGE_TYPE;
263
+ msg: string;
264
+ referenceContent?: any;
265
+ forwardMessageList?: AnyObject[] | undefined;
266
+ messageTemplate?: any;
267
+ messageTemplateData?: any;
268
+ fileUrl?: string | undefined;
269
+ avStatus?: string | undefined;
270
+ } | undefined;
271
+ lastMessageSendTime?: string | undefined;
272
+ lastMessageStatus?: string | undefined;
273
+ lastSenderName?: string | undefined;
274
+ businessInfo?: {
275
+ uiSetting?: AnyObject | undefined;
276
+ topicInfo?: {
277
+ [x: string]: any;
278
+ param?: AnyObject | undefined;
279
+ } | undefined;
280
+ } | undefined;
281
+ labelList?: AnyObject[] | undefined;
282
+ notDisturb: boolean;
283
+ };
155
284
  id: string;
156
285
  userInfo: AnyObject;
157
286
  msgList: {
@@ -160,7 +289,7 @@ declare const _default: import("vue").DefineComponent<{}, {
160
289
  sessionKey: string;
161
290
  content: {
162
291
  [x: string]: any;
163
- chatMessageType: string;
292
+ chatMessageType: MESSAGE_TYPE;
164
293
  msg: string;
165
294
  referenceContent?: any;
166
295
  forwardMessageList?: AnyObject[] | undefined;
@@ -178,11 +307,49 @@ declare const _default: import("vue").DefineComponent<{}, {
178
307
  __time?: string | undefined;
179
308
  __sendTime?: string | undefined;
180
309
  }[];
181
- currentMsg: AnyObject;
182
- isAppendMsg: boolean;
183
- sessionList: AnyObject[];
310
+ sessionList: {
311
+ id: string;
312
+ sessionKey: string;
313
+ receiver: string;
314
+ createdTime: string;
315
+ avatar: string;
316
+ name: string;
317
+ defaultName: string;
318
+ chatType: import("../constants").CHAT_TYPE;
319
+ roleInfo: import("../constants").ROLE_TYPE;
320
+ status: import("../constants").STATUS;
321
+ sortTime: string;
322
+ topping: boolean;
323
+ unreadNum: number;
324
+ updatedTime: string;
325
+ lastMessageContent: string;
326
+ sender?: string | undefined;
327
+ lastMessageId?: string | undefined;
328
+ lastMessage?: {
329
+ [x: string]: any;
330
+ chatMessageType: MESSAGE_TYPE;
331
+ msg: string;
332
+ referenceContent?: any;
333
+ forwardMessageList?: AnyObject[] | undefined;
334
+ messageTemplate?: any;
335
+ messageTemplateData?: any;
336
+ fileUrl?: string | undefined;
337
+ avStatus?: string | undefined;
338
+ } | undefined;
339
+ lastMessageSendTime?: string | undefined;
340
+ lastMessageStatus?: string | undefined;
341
+ lastSenderName?: string | undefined;
342
+ businessInfo?: {
343
+ uiSetting?: AnyObject | undefined;
344
+ topicInfo?: {
345
+ [x: string]: any;
346
+ param?: AnyObject | undefined;
347
+ } | undefined;
348
+ } | undefined;
349
+ labelList?: AnyObject[] | undefined;
350
+ notDisturb: boolean;
351
+ }[];
184
352
  isChangeSession: boolean;
185
- updateSessionItem: AnyObject;
186
353
  isUpdateSession: boolean;
187
354
  currentReferenceMsg: AnyObject | null;
188
355
  currentReEditMsg: AnyObject | null;
@@ -200,6 +367,7 @@ declare const _default: import("vue").DefineComponent<{}, {
200
367
  info: AnyObject | null;
201
368
  };
202
369
  isForward: boolean;
370
+ loading: boolean;
203
371
  };
204
372
  setCurrentSessionItem: (item: AnyObject) => void;
205
373
  listRef: import("vue").Ref<any, any>;
@@ -215,25 +383,25 @@ declare const _default: import("vue").DefineComponent<{}, {
215
383
  handleInput: () => void;
216
384
  _disabledIds: import("vue").ComputedRef<any[]>;
217
385
  sessionList: import("vue").ComputedRef<{
218
- id: any;
219
- name: any;
220
- avatar: any;
221
- chatType: any;
222
- roleInfo: any;
386
+ id: string;
387
+ name: string;
388
+ avatar: string;
389
+ chatType: import("../constants").CHAT_TYPE;
390
+ roleInfo: import("../constants").ROLE_TYPE;
223
391
  }[]>;
224
392
  friends: import("vue").ComputedRef<{
225
- id: any;
226
- name: any;
227
- avatar: any;
228
- chatType: any;
229
- roleInfo: any;
393
+ id: string;
394
+ name: string;
395
+ avatar: string;
396
+ chatType: import("../constants").CHAT_TYPE;
397
+ roleInfo: import("../constants").ROLE_TYPE;
230
398
  }[]>;
231
399
  groups: import("vue").ComputedRef<{
232
- id: any;
233
- name: any;
234
- avatar: any;
235
- chatType: any;
236
- roleInfo: any;
400
+ id: string;
401
+ name: string;
402
+ avatar: string;
403
+ chatType: import("../constants").CHAT_TYPE;
404
+ roleInfo: import("../constants").ROLE_TYPE;
237
405
  }[]>;
238
406
  checkedIds: import("vue").ComputedRef<any[]>;
239
407
  btnDisabled: import("vue").ComputedRef<boolean>;
@@ -5,11 +5,13 @@ import { ChevronBackOutline, ChevronForwardOutline, AddOutline, RemoveOutline, P
5
5
  import { useData } from '../hooks/useData.js';
6
6
  import 'stompjs';
7
7
  import 'sockjs-client/dist/sockjs.min.js';
8
- import { toppingSessionApi, groupLeaveApi, groupUpdateApi } from '../api/index.js';
9
- import { isDoctorRole, getRoleName } from '../utils/index.js';
10
- import { trim, isFunction } from 'lodash-es';
8
+ import { MESSAGE_TYPE } from '../constants/index.js';
9
+ import { toppingSessionApi, groupLeaveApi, messageSummaryApi, groupUpdateApi } from '../api/index.js';
10
+ import { isDoctorRole, getRoleName, $message } from '../utils/index.js';
11
+ import { remove, trim, isFunction } from 'lodash-es';
11
12
  import 'trtc-sdk-v5';
12
13
  import ChatAdd from './ChatAdd.vue.js';
14
+ import { useStreamOutput } from '../hooks/useStreamOutput.js';
13
15
 
14
16
  const _hoisted_1 = {
15
17
  key: 0,
@@ -78,6 +80,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
78
80
  isGroupChat,
79
81
  isGroupLeader
80
82
  } = useData();
83
+ const {
84
+ handleStreamOutput
85
+ } = useStreamOutput();
81
86
  const inputRef = ref();
82
87
  const groupNameEditing = ref(false);
83
88
  const groupName = ref("");
@@ -118,6 +123,29 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
118
123
  await nextTick();
119
124
  (_a = inputRef.value) == null ? void 0 : _a.select();
120
125
  }
126
+ async function handleGroupSummary() {
127
+ const [firstMsg] = state.msgList || [];
128
+ if (!firstMsg || firstMsg.content.chatMessageType === MESSAGE_TYPE.AI_SUMMARY)
129
+ return $message.warning("\u6682\u65E0\u53EF\u603B\u7ED3\u7684\u6D88\u606F\u5185\u5BB9\uFF01");
130
+ closeChatSet();
131
+ const {
132
+ msgId,
133
+ content
134
+ } = await handleStreamOutput() || {};
135
+ if (content) {
136
+ try {
137
+ await messageSummaryApi({
138
+ id: state.currentSessionItem.receiver,
139
+ sender: state.userInfo.id,
140
+ summaryMessage: content
141
+ });
142
+ remove(state.msgList, {
143
+ id: msgId
144
+ });
145
+ } catch (err) {
146
+ }
147
+ }
148
+ }
121
149
  async function submitFormData(o) {
122
150
  const formData = new FormData();
123
151
  const _o = Object.assign({
@@ -304,7 +332,16 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
304
332
  }, null, 8, ["component"])]),
305
333
  default: withCtx(() => [_cache[12] || (_cache[12] = createTextVNode(i18n("10010.1.89", "\u67E5\u770B\u5168\u90E8\u7FA4\u6210\u5458"), -1))]),
306
334
  _: 1
307
- })]), createVNode(unref(NUpload), {
335
+ })]), createElementVNode("div", {
336
+ class: "item",
337
+ onClick: handleGroupSummary
338
+ }, [_cache[14] || (_cache[14] = createElementVNode("span", {
339
+ class: "label"
340
+ }, "\u7FA4\u6D88\u606F\u603B\u7ED3", -1)), createVNode(unref(NIcon), {
341
+ size: 20,
342
+ component: unref(ChevronForwardOutline),
343
+ class: "item__right"
344
+ }, null, 8, ["component"])]), createVNode(unref(NUpload), {
308
345
  abstract: "",
309
346
  multiple: "",
310
347
  accept: "image/*",
@@ -318,7 +355,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
318
355
  }) => [createElementVNode("div", {
319
356
  class: "item",
320
357
  onClick: handleClick
321
- }, [_cache[14] || (_cache[14] = createElementVNode("span", {
358
+ }, [_cache[15] || (_cache[15] = createElementVNode("span", {
322
359
  class: "label"
323
360
  }, i18n("10010.1.90", "\u7FA4\u5934\u50CF"), -1)), createVNode(unref(NIcon), {
324
361
  size: 20,
@@ -328,7 +365,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
328
365
  _: 1
329
366
  })]),
330
367
  _: 1
331
- }), createElementVNode("div", _hoisted_14, [_cache[15] || (_cache[15] = createElementVNode("span", {
368
+ }), createElementVNode("div", _hoisted_14, [_cache[16] || (_cache[16] = createElementVNode("span", {
332
369
  class: "label"
333
370
  }, i18n("10010.1.91", "\u7FA4\u540D\u79F0"), -1)), createElementVNode("div", _hoisted_15, [groupNameEditing.value ? (openBlock(), createBlock(unref(NInput), {
334
371
  key: 0,
@@ -357,7 +394,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
357
394
  _: 1
358
395
  })]),
359
396
  _: 1
360
- }))])])], 64)) : createCommentVNode("v-if", true), createElementVNode("div", _hoisted_17, [_cache[16] || (_cache[16] = createElementVNode("span", {
397
+ }))])])], 64)) : createCommentVNode("v-if", true), createElementVNode("div", _hoisted_17, [_cache[17] || (_cache[17] = createElementVNode("span", {
361
398
  class: "label"
362
399
  }, i18n("10010.1.92", "\u7F6E\u9876\u804A\u5929"), -1)), createVNode(unref(NSwitch), {
363
400
  value: unref(state).currentSessionItem.topping,
@@ -368,14 +405,14 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
368
405
  }, [createVNode(unref(NPopconfirm), {
369
406
  onPositiveClick: _cache[6] || (_cache[6] = () => handleLeaveGroup(false))
370
407
  }, {
371
- trigger: withCtx(() => [createElementVNode("div", _hoisted_18, [_cache[17] || (_cache[17] = createElementVNode("span", {
408
+ trigger: withCtx(() => [createElementVNode("div", _hoisted_18, [_cache[18] || (_cache[18] = createElementVNode("span", {
372
409
  class: "label"
373
410
  }, i18n("10010.1.93", "\u9000\u51FA\u7FA4\u804A"), -1)), createVNode(unref(NIcon), {
374
411
  size: 20,
375
412
  component: unref(ChevronForwardOutline),
376
413
  class: "item__right"
377
414
  }, null, 8, ["component"])])]),
378
- default: withCtx(() => [_cache[18] || (_cache[18] = createElementVNode("p", {
415
+ default: withCtx(() => [_cache[19] || (_cache[19] = createElementVNode("p", {
379
416
  style: {
380
417
  "width": "230px"
381
418
  }
@@ -385,14 +422,14 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
385
422
  key: 0,
386
423
  onPositiveClick: _cache[7] || (_cache[7] = () => handleLeaveGroup(true))
387
424
  }, {
388
- trigger: withCtx(() => [createElementVNode("div", _hoisted_19, [_cache[19] || (_cache[19] = createElementVNode("span", {
425
+ trigger: withCtx(() => [createElementVNode("div", _hoisted_19, [_cache[20] || (_cache[20] = createElementVNode("span", {
389
426
  class: "label"
390
427
  }, i18n("10010.1.95", "\u89E3\u6563\u8BE5\u7FA4"), -1)), createVNode(unref(NIcon), {
391
428
  size: 20,
392
429
  component: unref(ChevronForwardOutline),
393
430
  class: "item__right"
394
431
  }, null, 8, ["component"])])]),
395
- default: withCtx(() => [_cache[20] || (_cache[20] = createElementVNode("p", {
432
+ default: withCtx(() => [_cache[21] || (_cache[21] = createElementVNode("p", {
396
433
  style: {
397
434
  "width": "230px"
398
435
  }
@@ -79,12 +79,11 @@ var ContextMenu = /* @__PURE__ */ defineComponent({
79
79
  key: "remove"
80
80
  }];
81
81
  const menuRef = ref();
82
- const item = computed(() => {
83
- const list = props.type === "message" ? state.msgList : state.sessionList;
84
- return list.find(({
85
- id
86
- }) => id === props.id);
87
- });
82
+ const item = computed(() => props.type === "message" ? state.msgList.find(({
83
+ id
84
+ }) => id === props.id) : state.sessionList.find(({
85
+ id
86
+ }) => id === props.id));
88
87
  const menuList = computed(() => {
89
88
  var _a;
90
89
  if (!props.id)
@@ -99,7 +98,7 @@ var ContextMenu = /* @__PURE__ */ defineComponent({
99
98
  return _defaultSessionMenuList;
100
99
  }
101
100
  const {
102
- content = {},
101
+ content,
103
102
  sendTime,
104
103
  sender
105
104
  } = item.value;
@@ -155,9 +154,7 @@ var ContextMenu = /* @__PURE__ */ defineComponent({
155
154
  var _a, _b;
156
155
  emit("update:show", false);
157
156
  const {
158
- content = {},
159
- sendTime,
160
- sender,
157
+ content,
161
158
  __content = ""
162
159
  } = item.value || {};
163
160
  const {
@@ -13,8 +13,50 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
13
13
  };
14
14
  }>> & Readonly<{}> & {}>;
15
15
  state: {
16
- orgId: string | number;
17
- currentSessionItem: AnyObject;
16
+ [x: string]: any;
17
+ orgId: string;
18
+ currentSessionItem: {
19
+ id: string;
20
+ sessionKey: string;
21
+ receiver: string;
22
+ createdTime: string;
23
+ avatar: string;
24
+ name: string;
25
+ defaultName: string;
26
+ chatType: import("../constants").CHAT_TYPE;
27
+ roleInfo: import("../constants").ROLE_TYPE;
28
+ status: import("../constants").STATUS;
29
+ sortTime: string;
30
+ topping: boolean;
31
+ unreadNum: number;
32
+ updatedTime: string;
33
+ lastMessageContent: string;
34
+ sender?: string | undefined;
35
+ lastMessageId?: string | undefined;
36
+ lastMessage?: {
37
+ [x: string]: any;
38
+ chatMessageType: import("../constants").MESSAGE_TYPE;
39
+ msg: string;
40
+ referenceContent?: any;
41
+ forwardMessageList?: AnyObject[] | undefined;
42
+ messageTemplate?: any;
43
+ messageTemplateData?: any;
44
+ fileUrl?: string | undefined;
45
+ avStatus?: string | undefined;
46
+ } | undefined;
47
+ lastMessageSendTime?: string | undefined;
48
+ lastMessageStatus?: string | undefined;
49
+ lastSenderName?: string | undefined;
50
+ businessInfo?: {
51
+ uiSetting?: AnyObject | undefined;
52
+ topicInfo?: {
53
+ [x: string]: any;
54
+ param?: AnyObject | undefined;
55
+ } | undefined;
56
+ } | undefined;
57
+ labelList?: AnyObject[] | undefined;
58
+ notDisturb: boolean;
59
+ };
18
60
  id: string;
19
61
  userInfo: AnyObject;
20
62
  msgList: {
@@ -23,7 +65,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
23
65
  sessionKey: string;
24
66
  content: {
25
67
  [x: string]: any;
26
- chatMessageType: string;
68
+ chatMessageType: import("../constants").MESSAGE_TYPE;
27
69
  msg: string;
28
70
  referenceContent?: any;
29
71
  forwardMessageList?: AnyObject[] | undefined;
@@ -41,11 +83,49 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
41
83
  __time?: string | undefined;
42
84
  __sendTime?: string | undefined;
43
85
  }[];
44
- currentMsg: AnyObject;
45
- isAppendMsg: boolean;
46
- sessionList: AnyObject[];
86
+ sessionList: {
87
+ id: string;
88
+ sessionKey: string;
89
+ receiver: string;
90
+ createdTime: string;
91
+ avatar: string;
92
+ name: string;
93
+ defaultName: string;
94
+ chatType: import("../constants").CHAT_TYPE;
95
+ roleInfo: import("../constants").ROLE_TYPE;
96
+ status: import("../constants").STATUS;
97
+ sortTime: string;
98
+ topping: boolean;
99
+ unreadNum: number;
100
+ updatedTime: string;
101
+ lastMessageContent: string;
102
+ sender?: string | undefined;
103
+ lastMessageId?: string | undefined;
104
+ lastMessage?: {
105
+ [x: string]: any;
106
+ chatMessageType: import("../constants").MESSAGE_TYPE;
107
+ msg: string;
108
+ referenceContent?: any;
109
+ forwardMessageList?: AnyObject[] | undefined;
110
+ messageTemplate?: any;
111
+ messageTemplateData?: any;
112
+ fileUrl?: string | undefined;
113
+ avStatus?: string | undefined;
114
+ } | undefined;
115
+ lastMessageSendTime?: string | undefined;
116
+ lastMessageStatus?: string | undefined;
117
+ lastSenderName?: string | undefined;
118
+ businessInfo?: {
119
+ uiSetting?: AnyObject | undefined;
120
+ topicInfo?: {
121
+ [x: string]: any;
122
+ param?: AnyObject | undefined;
123
+ } | undefined;
124
+ } | undefined;
125
+ labelList?: AnyObject[] | undefined;
126
+ notDisturb: boolean;
127
+ }[];
47
128
  isChangeSession: boolean;
48
- updateSessionItem: AnyObject;
49
129
  isUpdateSession: boolean;
50
130
  currentReferenceMsg: AnyObject | null;
51
131
  currentReEditMsg: AnyObject | null;
@@ -63,6 +143,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
63
143
  info: AnyObject | null;
64
144
  };
65
145
  isForward: boolean;
146
+ loading: boolean;
66
147
  };
67
148
  setUserDetail: (event: MouseEvent, userDetail: AnyObject) => void;
68
149
  inviter: import("vue").Ref<any, any>;