mdm-im-v3 2.0.2 → 2.0.3

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.
package/CHANGELOG.md CHANGED
@@ -77,3 +77,8 @@
77
77
  - 发布mdm-im-v3@2.0.2版本
78
78
  1. PC端创建群聊时,邀请人员接口更换,人员头像颜色修改;
79
79
  2. PC端会话列表免打扰提示图标位置调整。
80
+
81
+ ## V2.0.3 2026-08-18
82
+ - 发布mdm-im-v3@2.0.3版本
83
+ 1. PC端页面主题背景图未加载问题修复;
84
+ 2. PC端人员选择弹框、消息转发弹框样式优化。
@@ -2,7 +2,7 @@ import { reactive, computed, ref, watch, nextTick, resolveComponent, openBlock,
2
2
  import { DocumentDelete, ZoomOut, ZoomIn } from "@element-plus/icons-vue";
3
3
  import { u as useChatStore } from "./index-D8yaC3ve.js";
4
4
  import axios from "axios";
5
- import { _ as _export_sfc } from "./index-HUSyWSoO.js";
5
+ import { _ as _export_sfc } from "./index-B3MeQmIL.js";
6
6
  const _hoisted_1 = { class: "file-preview-box" };
7
7
  const _hoisted_2 = {
8
8
  key: 0,
@@ -3148,8 +3148,8 @@ const _hoisted_5$b = { class: "search-item-pos" };
3148
3148
  const _hoisted_6$b = { class: "list-container" };
3149
3149
  const _hoisted_7$b = ["data-cvs-id", "onClick", "onContextmenu"];
3150
3150
  const _hoisted_8$b = ["src"];
3151
- const _hoisted_9$a = ["src"];
3152
- const _hoisted_10$a = { class: "chat-info" };
3151
+ const _hoisted_9$b = ["src"];
3152
+ const _hoisted_10$b = { class: "chat-info" };
3153
3153
  const _hoisted_11$9 = { class: "cvs-item-top" };
3154
3154
  const _hoisted_12$9 = ["title"];
3155
3155
  const _hoisted_13$8 = { class: "cvs-send-time" };
@@ -3531,8 +3531,8 @@ const _sfc_main$c = {
3531
3531
  alt: "头像",
3532
3532
  class: "avatar",
3533
3533
  onError: handleError
3534
- }, null, 40, _hoisted_9$a)),
3535
- createElementVNode("div", _hoisted_10$a, [
3534
+ }, null, 40, _hoisted_9$b)),
3535
+ createElementVNode("div", _hoisted_10$b, [
3536
3536
  createElementVNode("div", _hoisted_11$9, [
3537
3537
  createVNode(_component_el_badge, {
3538
3538
  value: effectiveUnreadCount(item2),
@@ -3669,8 +3669,8 @@ const _hoisted_5$a = { class: "info-item-value" };
3669
3669
  const _hoisted_6$a = { class: "info-item" };
3670
3670
  const _hoisted_7$a = { class: "info-item-value" };
3671
3671
  const _hoisted_8$a = { class: "info-item" };
3672
- const _hoisted_9$9 = { class: "info-item-value" };
3673
- const _hoisted_10$9 = {
3672
+ const _hoisted_9$a = { class: "info-item-value" };
3673
+ const _hoisted_10$a = {
3674
3674
  key: 0,
3675
3675
  class: "dialog-footer"
3676
3676
  };
@@ -3746,7 +3746,7 @@ const _sfc_main$b = {
3746
3746
  class: "member-detail-dialog"
3747
3747
  }, {
3748
3748
  footer: withCtx(() => [
3749
- isGroup.value && !isSelf.value ? (openBlock(), createElementBlock("div", _hoisted_10$9, [
3749
+ isGroup.value && !isSelf.value ? (openBlock(), createElementBlock("div", _hoisted_10$a, [
3750
3750
  createElementVNode("div", {
3751
3751
  text: "",
3752
3752
  class: "btn btn-primary",
@@ -3771,7 +3771,7 @@ const _sfc_main$b = {
3771
3771
  ]),
3772
3772
  createElementVNode("div", _hoisted_8$a, [
3773
3773
  _cache[4] || (_cache[4] = createElementVNode("div", { class: "info-item-label" }, "邮箱", -1)),
3774
- createElementVNode("div", _hoisted_9$9, toDisplayString(memberDetail.value.email || "-"), 1)
3774
+ createElementVNode("div", _hoisted_9$a, toDisplayString(memberDetail.value.email || "-"), 1)
3775
3775
  ])
3776
3776
  ])
3777
3777
  ]),
@@ -3817,11 +3817,11 @@ const _hoisted_5$9 = { class: "chat-info" };
3817
3817
  const _hoisted_6$9 = { class: "chat-name" };
3818
3818
  const _hoisted_7$9 = ["src"];
3819
3819
  const _hoisted_8$9 = { class: "member-count" };
3820
- const _hoisted_9$8 = {
3820
+ const _hoisted_9$9 = {
3821
3821
  key: 0,
3822
3822
  class: "header-center"
3823
3823
  };
3824
- const _hoisted_10$8 = ["src"];
3824
+ const _hoisted_10$9 = ["src"];
3825
3825
  const _hoisted_11$8 = { class: "n-txt" };
3826
3826
  const _hoisted_12$8 = { class: "header-right" };
3827
3827
  const _hoisted_13$7 = ["src"];
@@ -5169,12 +5169,12 @@ const _sfc_main$a = {
5169
5169
  ])) : createCommentVNode("", true)
5170
5170
  ])
5171
5171
  ]),
5172
- notices.value ? (openBlock(), createElementBlock("div", _hoisted_9$8, [
5172
+ notices.value ? (openBlock(), createElementBlock("div", _hoisted_9$9, [
5173
5173
  createElementVNode("img", {
5174
5174
  class: "speaker-img",
5175
5175
  src: unref$1(icons).speaker,
5176
5176
  alt: "speaker"
5177
- }, null, 8, _hoisted_10$8),
5177
+ }, null, 8, _hoisted_10$9),
5178
5178
  createElementVNode("div", {
5179
5179
  class: "notice-box",
5180
5180
  onClick: _cache[1] || (_cache[1] = ($event) => settingNotice.value = true)
@@ -6284,11 +6284,11 @@ const _hoisted_8$8 = {
6284
6284
  key: 0,
6285
6285
  class: "file-size"
6286
6286
  };
6287
- const _hoisted_9$7 = {
6287
+ const _hoisted_9$8 = {
6288
6288
  key: 0,
6289
6289
  class: "file-info-right"
6290
6290
  };
6291
- const _hoisted_10$7 = {
6291
+ const _hoisted_10$8 = {
6292
6292
  key: 1,
6293
6293
  class: "file-info-right"
6294
6294
  };
@@ -6570,7 +6570,7 @@ const _sfc_main$9 = {
6570
6570
  ]),
6571
6571
  !props.isReply ? (openBlock(), createElementBlock("div", _hoisted_8$8, toDisplayString(formatFileSize(msg.value.fileElem.fileSize)), 1)) : createCommentVNode("", true)
6572
6572
  ]),
6573
- props.isReply ? (openBlock(), createElementBlock("div", _hoisted_9$7, [
6573
+ props.isReply ? (openBlock(), createElementBlock("div", _hoisted_9$8, [
6574
6574
  !msg.value.downloadStatus ? (openBlock(), createElementBlock("span", {
6575
6575
  key: 0,
6576
6576
  class: "file-icon",
@@ -6588,7 +6588,7 @@ const _sfc_main$9 = {
6588
6588
  })
6589
6589
  ])) : createCommentVNode("", true)
6590
6590
  ])) : createCommentVNode("", true),
6591
- !props.isReply ? (openBlock(), createElementBlock("div", _hoisted_10$7, [
6591
+ !props.isReply ? (openBlock(), createElementBlock("div", _hoisted_10$8, [
6592
6592
  createElementVNode("img", {
6593
6593
  src: getFileImg.value(msg.value.fileElem.fileType),
6594
6594
  alt: "file",
@@ -6824,13 +6824,13 @@ const _hoisted_8$7 = {
6824
6824
  src: checkedIcon,
6825
6825
  alt: ""
6826
6826
  };
6827
- const _hoisted_9$6 = {
6827
+ const _hoisted_9$7 = {
6828
6828
  key: 1,
6829
6829
  class: "select-img",
6830
6830
  src: noCheckedIcon,
6831
6831
  alt: ""
6832
6832
  };
6833
- const _hoisted_10$6 = ["src", "onClick"];
6833
+ const _hoisted_10$7 = ["src", "onClick"];
6834
6834
  const _hoisted_11$6 = ["onClick"];
6835
6835
  const _hoisted_12$6 = ["onContextmenu"];
6836
6836
  const _hoisted_13$5 = { class: "msg-info" };
@@ -6918,7 +6918,7 @@ const _sfc_main$7 = {
6918
6918
  "scrollToBottom"
6919
6919
  ],
6920
6920
  setup(__props, { expose: __expose, emit: __emit }) {
6921
- const FilePreview = defineAsyncComponent(() => import("./FilePreview-u-aYsWSs.js"));
6921
+ const FilePreview = defineAsyncComponent(() => import("./FilePreview-CqsQCI87.js"));
6922
6922
  const isTextTypeQuote = (msg) => {
6923
6923
  if (!msg) return false;
6924
6924
  return [IM_MSG_TYPE.TextMessage, IM_MSG_TYPE.AtTextMessage].includes(msg.contentType);
@@ -7655,7 +7655,7 @@ const _sfc_main$7 = {
7655
7655
  unref$1(IM_MSG_TYPE).FriendAdded === item2.contentType ? (openBlock(), createElementBlock("div", _hoisted_5$7, "你们已经成为好友,可以开始聊天了!")) : (openBlock(), createElementBlock("div", _hoisted_6$7, toDisplayString(handleJsonDetail((_a = item2.notificationElem) == null ? void 0 : _a.detail, item2.contentType)), 1))
7656
7656
  ])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
7657
7657
  isMultiSelect.value ? (openBlock(), createElementBlock("div", _hoisted_7$7, [
7658
- selectMsgIds.value.includes(item2.clientMsgID) ? (openBlock(), createElementBlock("img", _hoisted_8$7)) : selectMsgIds.value.length <= maxSelectCount ? (openBlock(), createElementBlock("img", _hoisted_9$6)) : createCommentVNode("", true)
7658
+ selectMsgIds.value.includes(item2.clientMsgID) ? (openBlock(), createElementBlock("img", _hoisted_8$7)) : selectMsgIds.value.length <= maxSelectCount ? (openBlock(), createElementBlock("img", _hoisted_9$7)) : createCommentVNode("", true)
7659
7659
  ])) : createCommentVNode("", true),
7660
7660
  !item2.isSelf && !unref$1(isDefaultAvatar)(item2.senderFaceUrl) ? (openBlock(), createElementBlock("img", {
7661
7661
  key: 1,
@@ -7664,7 +7664,7 @@ const _sfc_main$7 = {
7664
7664
  alt: "",
7665
7665
  onError: handleAvatarError,
7666
7666
  onClick: withModifiers(($event) => showMemberDetail(item2), ["stop"])
7667
- }, null, 40, _hoisted_10$6)) : !item2.isSelf ? (openBlock(), createElementBlock("div", {
7667
+ }, null, 40, _hoisted_10$7)) : !item2.isSelf ? (openBlock(), createElementBlock("div", {
7668
7668
  key: 2,
7669
7669
  class: "msg-avatar avatar-text",
7670
7670
  style: normalizeStyle({ background: unref$1(getAvatarBg)(item2.sendID) }),
@@ -8116,11 +8116,11 @@ const _hoisted_6$6 = {
8116
8116
  };
8117
8117
  const _hoisted_7$6 = { class: "reply-msg-box" };
8118
8118
  const _hoisted_8$6 = ["innerHTML"];
8119
- const _hoisted_9$5 = {
8119
+ const _hoisted_9$6 = {
8120
8120
  class: "user-list",
8121
8121
  style: { "max-height": "300px" }
8122
8122
  };
8123
- const _hoisted_10$5 = ["onClick"];
8123
+ const _hoisted_10$6 = ["onClick"];
8124
8124
  const _hoisted_11$5 = ["src"];
8125
8125
  const _hoisted_12$5 = { class: "user-name" };
8126
8126
  const DRAFT_PREFIX = "MDM_MESSAGE_";
@@ -8159,7 +8159,7 @@ const _sfc_main$6 = {
8159
8159
  "restoreReplyMsg"
8160
8160
  ],
8161
8161
  setup(__props, { expose: __expose, emit: __emit }) {
8162
- const Editor = defineAsyncComponent(() => import("./index-Bn5zFiV_.js"));
8162
+ const Editor = defineAsyncComponent(() => import("./index-C4_SSULD.js"));
8163
8163
  const props = __props;
8164
8164
  const emit = __emit;
8165
8165
  const chatMessage = useChatStore();
@@ -8540,7 +8540,7 @@ const _sfc_main$6 = {
8540
8540
  style: normalizeStyle({ position: "fixed", left: menuPosition.value.x + "px", top: menuPosition.value.y + "px" })
8541
8541
  }, [
8542
8542
  _cache[3] || (_cache[3] = createElementVNode("div", { class: "user-list-header" }, "会话内成员", -1)),
8543
- createElementVNode("div", _hoisted_9$5, [
8543
+ createElementVNode("div", _hoisted_9$6, [
8544
8544
  (openBlock(true), createElementBlock(Fragment, null, renderList(currentCvsUsers.value, (item2) => {
8545
8545
  return openBlock(), createElementBlock("div", {
8546
8546
  class: normalizeClass(["user-item", { "is-selected": atUser[item2.userID] }]),
@@ -8574,7 +8574,7 @@ const _sfc_main$6 = {
8574
8574
  ]),
8575
8575
  _: 1
8576
8576
  })) : createCommentVNode("", true)
8577
- ], 10, _hoisted_10$5);
8577
+ ], 10, _hoisted_10$6);
8578
8578
  }), 128))
8579
8579
  ])
8580
8580
  ], 4), [
@@ -8596,11 +8596,11 @@ const _hoisted_6$5 = {
8596
8596
  };
8597
8597
  const _hoisted_7$5 = { class: "user-list-panel" };
8598
8598
  const _hoisted_8$5 = { class: "panel-title" };
8599
- const _hoisted_9$4 = {
8599
+ const _hoisted_9$5 = {
8600
8600
  key: 0,
8601
8601
  class: "selected-count-badge"
8602
8602
  };
8603
- const _hoisted_10$4 = { class: "tools" };
8603
+ const _hoisted_10$5 = { class: "tools" };
8604
8604
  const _hoisted_11$4 = ["onClick"];
8605
8605
  const _hoisted_12$4 = ["src"];
8606
8606
  const _hoisted_13$4 = ["src", "onError"];
@@ -8948,6 +8948,7 @@ const _sfc_main$5 = {
8948
8948
  }, {
8949
8949
  default: withCtx(() => [
8950
8950
  createVNode(_component_el_input, {
8951
+ class: "group-name-input",
8951
8952
  modelValue: talkGroup.groupName,
8952
8953
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => talkGroup.groupName = $event),
8953
8954
  modelModifiers: { trim: true },
@@ -9019,10 +9020,10 @@ const _sfc_main$5 = {
9019
9020
  default: withCtx(() => [
9020
9021
  createElementVNode("div", _hoisted_7$5, [
9021
9022
  createElementVNode("div", _hoisted_8$5, [
9022
- _cache[5] || (_cache[5] = createTextVNode("人员列表 ", -1)),
9023
- checkedMembers.value.length > 0 ? (openBlock(), createElementBlock("span", _hoisted_9$4, "已选 " + toDisplayString(checkedMembers.value.length), 1)) : createCommentVNode("", true)
9023
+ _cache[5] || (_cache[5] = createTextVNode(" 人员列表 ", -1)),
9024
+ checkedMembers.value.length > 0 ? (openBlock(), createElementBlock("span", _hoisted_9$5, " 已选 " + toDisplayString(checkedMembers.value.length), 1)) : createCommentVNode("", true)
9024
9025
  ]),
9025
- createElementVNode("div", _hoisted_10$4, [
9026
+ createElementVNode("div", _hoisted_10$5, [
9026
9027
  createVNode(_component_el_input, {
9027
9028
  modelValue: rightKeyword.value,
9028
9029
  "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => rightKeyword.value = $event),
@@ -9045,7 +9046,10 @@ const _sfc_main$5 = {
9045
9046
  (openBlock(true), createElementBlock(Fragment, null, renderList(rightUsers.value, (user) => {
9046
9047
  return openBlock(), createElementBlock("div", {
9047
9048
  key: user.userID,
9048
- class: normalizeClass(["user-item", { "is-disabled": user.loginCode === localUser.value.userID || user.disabled, "is-checked": isUserChecked(user) }]),
9049
+ class: normalizeClass(["user-item", {
9050
+ "is-disabled": user.loginCode === localUser.value.userID || user.disabled,
9051
+ "is-checked": isUserChecked(user)
9052
+ }]),
9049
9053
  onClick: ($event) => toggleUser(user)
9050
9054
  }, [
9051
9055
  !(user.loginCode === localUser.value.userID || user.disabled) ? (openBlock(), createElementBlock("img", {
@@ -9089,7 +9093,7 @@ const _sfc_main$5 = {
9089
9093
  };
9090
9094
  }
9091
9095
  };
9092
- const SelectChatUser = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-b7cfcafa"]]);
9096
+ const SelectChatUser = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-c6a5d3ce"]]);
9093
9097
  const _imports_0 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAA+klEQVR4AexXsQ3CMBC8tyigSwWUjAAb0EHJCmwQJMZAgg0YAeiggg1gBMp0UJEUUZ43VYQUfRQrSeNXXnb8ur/zybJkA4lhGI8GYXzth5+XjFx/JgfLKdQwdpKB7/IzJVAgYwMfLxh0t9wmA22pMeL83jhgYG8IvMgvNzun8e8MoLXgoGUBgBfgHfAOeAdUB9azDqJtt1JarHbJ6gLmHa1HYX1dAqsK2FzSQgKtUAarCzinGK6SSrkRrCZSFaA1cK17Ad4B74B3oH0HGPx2vc1c8PIyoodLAzcsn0QAlm24YDkJFJpo13sa0ASgI2qI/5aWWNZultNyfwEAAP//lfh3cgAAAAZJREFUAwBqNqSKBRn2+AAAAABJRU5ErkJggg==";
9094
9098
  const _hoisted_1$4 = { class: "m-box" };
9095
9099
  const _hoisted_2$4 = { class: "m-list-box m-list" };
@@ -9102,8 +9106,8 @@ const _hoisted_5$4 = ["onClick"];
9102
9106
  const _hoisted_6$4 = ["src"];
9103
9107
  const _hoisted_7$4 = ["src"];
9104
9108
  const _hoisted_8$4 = ["src"];
9105
- const _hoisted_9$3 = { class: "m-item-name" };
9106
- const _hoisted_10$3 = { class: "m-selected m-list" };
9109
+ const _hoisted_9$4 = { class: "m-item-name" };
9110
+ const _hoisted_10$4 = { class: "m-selected m-list" };
9107
9111
  const _hoisted_11$3 = { class: "m-list-header" };
9108
9112
  const _hoisted_12$3 = { class: "choise-count" };
9109
9113
  const _hoisted_13$3 = { class: "list-scroll" };
@@ -9277,12 +9281,12 @@ const _sfc_main$4 = {
9277
9281
  src: item2.faceURL,
9278
9282
  alt: ""
9279
9283
  }, null, 8, _hoisted_8$4)),
9280
- createElementVNode("span", _hoisted_9$3, toDisplayString(item2.showName), 1)
9284
+ createElementVNode("span", _hoisted_9$4, toDisplayString(item2.showName), 1)
9281
9285
  ], 8, _hoisted_5$4);
9282
9286
  }), 128))
9283
9287
  ])) : createCommentVNode("", true)
9284
9288
  ]),
9285
- createElementVNode("div", _hoisted_10$3, [
9289
+ createElementVNode("div", _hoisted_10$4, [
9286
9290
  createElementVNode("div", _hoisted_11$3, [
9287
9291
  _cache[1] || (_cache[1] = createElementVNode("span", { class: "choise-title" }, "已选", -1)),
9288
9292
  createElementVNode("span", _hoisted_12$3, toDisplayString(checkedChats.value.length), 1)
@@ -9327,7 +9331,7 @@ const _sfc_main$4 = {
9327
9331
  };
9328
9332
  }
9329
9333
  };
9330
- const ForwardForm = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-d02bee4a"]]);
9334
+ const ForwardForm = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-8603b0c0"]]);
9331
9335
  const checkedImg = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAjCAYAAADxG9hnAAAAAXNSR0IArs4c6QAAA59JREFUWEfNmN1dGkEUxf93xXetIFhBsIJgBSEVqBUYnyXJGuBZU0FIBWoFmgpCKgipIDwnyI139oPZ3VlAIL9f9hFmZ86ee879GOE/eeRZOGLdY5fjSGkptIAmsJfuMQHGCGMVbvnNV2IZr7r/akB62hbhA9BedWO3TrjVGZ94Jw/L3lsMJNamNPjsA1B4QPmOMmKHEX8wJmAnZ6eN8EoSxpLHAP3hfBFDtUCigZ6pEmfUKwxRvqzyde7wWJs0iAWOs9ApXNKV6xA7QSDRQD+kIHAMCOdcyGgZvcH/jdVd7lHHGCLEswu5LK+tACmAUBfft2sBKL/U0zjVWRBMAUgaDkedKpe8EwtN9TH3RHQQmpHwwhbMlJ/AiEceiCXRzQIwCud+mOZAEmF+M03Ugoi1GTWIFV57tq2cJzCcTbkMirOn1yKcAROdcpityYHIQG+enNCxXKBdOSjvXhbvCuGa1IlT+nqfOvFBu3KUGMueJE/Yn+iUg/KX+LpZAUBhSVCcA22JOvZNAkfmRAckY8NZtCun/k6+bp4LIltf1oP7va/D1NqOFTG/S4MfQTY83awLIn2voIdAFPaFj3oikcueI+3KYYGNvg51npA2wuIEXGI704oxJnlYyjkj1j1p8Guj04svGyumv7m1UweZJET6aqKxatqhK3f5uz3tiHCzRSDojFPeyzDf04uGAbGvttzh1OsByTPhtsBU8tPcPRMDokGh9nQokhesrWCpuNIzyn8FJAmNcFiosF6R2godofo1T6QuNIlY64W0LRzWUtQZYiSkWtCwfS3RZT3pxoB0yn6Nfe+Evr4VuHoqQnkByk+cp+HNQQTKRx6NiBNL8Xniqlj4X6b4UmlJil5alkNp2GNsbVZCRS9Ky4fCHV3pVNuAsnvs+A0cFGyyfDb8NsBnJaiVpGyblmy2WVW89Y3RQH9YM+0GsQt5487P+fb0IHA968p5JRbVESEULgNwS02r6DVZ4VYxbVYyB9W2/W6dNc87buprkTbPWPOsjJlxW9c8l8aUmuY5+7Ylbf+6io36eqXgRpOQbsKTXlGcY51y9JyBugA2qbCWp9zcXDch1M++JXEuHBFCNPW0HQknXodXK96iWEObmTh3uZJkzMiekShfZzaKwoRHkquHXfZ4pBUJLRVeVgb3KadrDeEFXD1tE3FWArRULunNgU2MG15LlI8yhiLa7PDa8sBTuAoXNWoXNTZ2iruu+FI7egY+4S9P/RQuBDlAEQAAAABJRU5ErkJggg==";
9332
9336
  const checkImg = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAjCAYAAADxG9hnAAAAAXNSR0IArs4c6QAAA25JREFUWEfNWL1WGkEU/u4snY15AywErQJPEBZO0sYUolbqEyhPoDyB+gRiZcRCbRNx8QkklQELfYPQWOHMzbkDu2cloLsbQpzC4znM3P3mu7/fEN7Iojg4Dr2b2RnMrCuDnCHkAKQBzA5sdAE8gPlBKee8h971mrv4ENV+JCCn3l0BzDsMFKIatvuYz0mpg2V3vvnauReBHHu36RQ7h0MAmobNDwa3HO20tNbCBJBCWpGaZeKCIvUBsIwN8PC5UabyEkNjgdS9zhYYuwH1hJp+0kdrHxdfvZ18XS6hWO0SaN13nWFTXS0t7I9iZySQU+9uh5kFhKwmCJWym2m9Ru+o3wWQw8oDSOIJRLS77M5Xh/f+ASQMwrA5WC0tbCcBMHzmpNHeJaKdcWCeARm4w1LHzNWVUtZnZRJYEAZj2FTCbgqA9Cl0biQm/gUI/yb1RmcfhC0AXU067wdwAKTeuDsD8RLAD+Vidm4iFIwxcnrV8SQTCWguFzOudZf8kTrBzJ78r0nPxSlESQDXv3VySEHYh9balUy0QAI2CLWym9lMYjzumZOrdk1S22eFBrFxPy02fMDH328LjuNYLzzS4zuqNzobIBwC3CoXs/m4N/ub/X6sSAaR75ZJ1oyo4IIMItSoftWRoMkRzNJyceEiqpFJ7At7Q4D8ktrhR+8kPhDVRt3r5MA2e7oChKcdqEHA9ouoTZQ3BcS6BoR80g4b1RXD+0KF1LrGBisYm+VSppbUaJJzJ5ftJVJ0JqWD/Ar3P9PXwFzQ18bPbUVqL9yAktwuyRnfG0y8QWfe/WyPexInQQNKYjTumeHW0u++g7YMRq1cmlLTu2zXSNG6uGW1uLBkgYQbEJ6QL39KNp9GZeUZG+ExIMzKNGKlftWRIpZm5vOVUvaLLWhDVW4wKmJ/pZSpRL1hnH2h4Xz0qCjG/AyyCMeM/XE+OqKABTJl7PDsH3pt7E8K5NS722NmK01GDecjBVYYjAhrTdpNOsdKhyXGni9bxymEsZJz4CYRRH21z6hppatRAUkfMdpsSIoOWOzGlpzPAhipPbDIjGC1jDHX5FBTQXVTSNmnhx56AjhntMk5Sr0fFu6a9GYiER6OBVtnVGqrr3tirabWuhpFuEd6HwkzBIOCg9RnEIuoHvFQgxYUWo94PNp08/0niwjrN1EZAv0NJhEsAAAAAElFTkSuQmCC";
9333
9337
  const _hoisted_1$3 = { class: "search-area" };
@@ -9341,8 +9345,8 @@ const _hoisted_5$3 = { class: "radio-col" };
9341
9345
  const _hoisted_6$3 = ["src"];
9342
9346
  const _hoisted_7$3 = ["src"];
9343
9347
  const _hoisted_8$3 = ["src"];
9344
- const _hoisted_9$2 = { class: "info-col" };
9345
- const _hoisted_10$2 = { class: "group-name" };
9348
+ const _hoisted_9$3 = { class: "info-col" };
9349
+ const _hoisted_10$3 = { class: "group-name" };
9346
9350
  const _hoisted_11$2 = { class: "group-sub" };
9347
9351
  const _hoisted_12$2 = { class: "member-col" };
9348
9352
  const _hoisted_13$2 = { class: "dialog-footer" };
@@ -9507,8 +9511,8 @@ const _sfc_main$3 = /* @__PURE__ */ Object.assign(__default__$2, {
9507
9511
  class: "group-avatar",
9508
9512
  src: unref$1(getGroupAvatarBg)(item2.groupID)
9509
9513
  }, null, 8, _hoisted_8$3)),
9510
- createElementVNode("div", _hoisted_9$2, [
9511
- createElementVNode("div", _hoisted_10$2, toDisplayString(item2.groupName), 1),
9514
+ createElementVNode("div", _hoisted_9$3, [
9515
+ createElementVNode("div", _hoisted_10$3, toDisplayString(item2.groupName), 1),
9512
9516
  createElementVNode("div", _hoisted_11$2, [
9513
9517
  createElementVNode("span", null, "群号:" + toDisplayString(item2.groupID), 1)
9514
9518
  ])
@@ -9534,8 +9538,8 @@ const _hoisted_5$2 = { class: "group-name" };
9534
9538
  const _hoisted_6$2 = { class: "group-meta" };
9535
9539
  const _hoisted_7$2 = { class: "member-section" };
9536
9540
  const _hoisted_8$2 = { class: "member-header" };
9537
- const _hoisted_9$1 = { class: "count" };
9538
- const _hoisted_10$1 = {
9541
+ const _hoisted_9$2 = { class: "count" };
9542
+ const _hoisted_10$2 = {
9539
9543
  key: 0,
9540
9544
  class: "member-list"
9541
9545
  };
@@ -9724,9 +9728,9 @@ const _sfc_main$2 = /* @__PURE__ */ Object.assign(__default__$1, {
9724
9728
  createElementVNode("div", _hoisted_7$2, [
9725
9729
  createElementVNode("div", _hoisted_8$2, [
9726
9730
  _cache[5] || (_cache[5] = createElementVNode("span", { class: "label" }, "群成员", -1)),
9727
- createElementVNode("span", _hoisted_9$1, toDisplayString(groupDetail.value.memberCount || 0) + "人", 1)
9731
+ createElementVNode("span", _hoisted_9$2, toDisplayString(groupDetail.value.memberCount || 0) + "人", 1)
9728
9732
  ]),
9729
- isMember.value && groupMembers.value.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_10$1, [
9733
+ isMember.value && groupMembers.value.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_10$2, [
9730
9734
  (openBlock(true), createElementBlock(Fragment, null, renderList(groupMembers.value, (member) => {
9731
9735
  return openBlock(), createElementBlock("div", {
9732
9736
  key: member.userID,
@@ -9779,8 +9783,8 @@ const _hoisted_5$1 = ["src"];
9779
9783
  const _hoisted_6$1 = { class: "app-info" };
9780
9784
  const _hoisted_7$1 = { class: "group-name" };
9781
9785
  const _hoisted_8$1 = { class: "applicant-info" };
9782
- const _hoisted_9 = { class: "applicant-text" };
9783
- const _hoisted_10 = { class: "group-name-txt" };
9786
+ const _hoisted_9$1 = { class: "applicant-text" };
9787
+ const _hoisted_10$1 = { class: "group-name-txt" };
9784
9788
  const _hoisted_11 = ["title"];
9785
9789
  const _hoisted_12 = { class: "app-status" };
9786
9790
  const _hoisted_13 = { class: "section" };
@@ -9901,9 +9905,9 @@ const _sfc_main$1 = /* @__PURE__ */ Object.assign(__default__, {
9901
9905
  createElementVNode("div", _hoisted_6$1, [
9902
9906
  createElementVNode("div", _hoisted_7$1, toDisplayString(item2.nickname), 1),
9903
9907
  createElementVNode("div", _hoisted_8$1, [
9904
- createElementVNode("span", _hoisted_9, [
9908
+ createElementVNode("span", _hoisted_9$1, [
9905
9909
  _cache[2] || (_cache[2] = createTextVNode(" 申请加入 ", -1)),
9906
- createElementVNode("span", _hoisted_10, toDisplayString(item2.groupName), 1)
9910
+ createElementVNode("span", _hoisted_10$1, toDisplayString(item2.groupName), 1)
9907
9911
  ])
9908
9912
  ]),
9909
9913
  item2.reqMsg ? (openBlock(), createElementBlock("div", {
@@ -10006,8 +10010,10 @@ const _hoisted_6 = {
10006
10010
  key: 3,
10007
10011
  class: "no-chat-word"
10008
10012
  };
10009
- const _hoisted_7 = { class: "dialog-footer" };
10013
+ const _hoisted_7 = { class: "dialog-title" };
10010
10014
  const _hoisted_8 = { class: "dialog-footer" };
10015
+ const _hoisted_9 = { class: "dialog-title" };
10016
+ const _hoisted_10 = { class: "dialog-footer" };
10011
10017
  const _sfc_main = {
10012
10018
  __name: "index",
10013
10019
  props: {
@@ -10105,12 +10111,7 @@ const _sfc_main = {
10105
10111
  } = useConversations();
10106
10112
  const { isLastMessage, messagePageCount, messageList, updateMessageList, handleMessage, deleteMessageById } = useMsgList();
10107
10113
  const { addPendingMessage, removePendingMessage, getPendingMessages, updatePendingMessage } = useUploadQueue();
10108
- const {
10109
- loadConversationsFromCache,
10110
- saveConversationsToCache,
10111
- loadMessagesFromCache,
10112
- saveMessagesToCache
10113
- } = useMessageCache();
10114
+ const { loadConversationsFromCache, saveConversationsToCache, loadMessagesFromCache, saveMessagesToCache } = useMessageCache();
10114
10115
  const debouncedSaveConversations = debounce(() => {
10115
10116
  if (conversationList.value.length > 0) {
10116
10117
  const plainList = JSON.parse(JSON.stringify(conversationList.value));
@@ -10689,9 +10690,7 @@ const _sfc_main = {
10689
10690
  if (hasCachedMsgs) {
10690
10691
  updateMessageList(cachedMsgs.list, "init", conversationID, true);
10691
10692
  await nextTick();
10692
- console.log(
10693
- `[MessageCache] ⚡ 缓存渲染完成 | 消息数=${cachedMsgs.list.length} | 会话=${conversationID}`
10694
- );
10693
+ console.log(`[MessageCache] ⚡ 缓存渲染完成 | 消息数=${cachedMsgs.list.length} | 会话=${conversationID}`);
10695
10694
  }
10696
10695
  const { list } = await (imInstance == null ? void 0 : imInstance.getAdvancedHistoryMessageList({
10697
10696
  conversationID,
@@ -10876,9 +10875,7 @@ const _sfc_main = {
10876
10875
  const cvs = currentConversation.value;
10877
10876
  if (isLargeFile) {
10878
10877
  const cachedTasks = getCachedUploadTasks();
10879
- const matched = cachedTasks.find(
10880
- (t) => t.fileName === file.name && t.fileSize === file.size
10881
- );
10878
+ const matched = cachedTasks.find((t) => t.fileName === file.name && t.fileSize === file.size);
10882
10879
  const cachedPercent = (matched == null ? void 0 : matched.uploadedChunks) ? Math.floor(matched.uploadedChunks.length / matched.totalChunks * 100) : 0;
10883
10880
  uploadProgressMap[clientMsgID] = { percent: cachedPercent, isLargeFile: true };
10884
10881
  }
@@ -10890,9 +10887,7 @@ const _sfc_main = {
10890
10887
  let uploadResult = null;
10891
10888
  if (isLargeFile) {
10892
10889
  const cachedTasks = getCachedUploadTasks();
10893
- const matched = cachedTasks.find(
10894
- (t) => t.fileName === file.name && t.fileSize === file.size
10895
- );
10890
+ const matched = cachedTasks.find((t) => t.fileName === file.name && t.fileSize === file.size);
10896
10891
  if (matched) {
10897
10892
  try {
10898
10893
  uploadResult = await resumeUpload(matched.uploadID, file, { onProgress: handleProgress });
@@ -10958,9 +10953,7 @@ const _sfc_main = {
10958
10953
  const isLargeFile = file.size >= LARGE_FILE_THRESHOLD;
10959
10954
  if (isLargeFile) {
10960
10955
  const cachedTasks = getCachedUploadTasks();
10961
- const matched = cachedTasks.find(
10962
- (t) => t.fileName === file.name && t.fileSize === file.size
10963
- );
10956
+ const matched = cachedTasks.find((t) => t.fileName === file.name && t.fileSize === file.size);
10964
10957
  if (matched) {
10965
10958
  const cachedPercent = matched.uploadedChunks ? Math.floor(matched.uploadedChunks.length / matched.totalChunks * 100) : 0;
10966
10959
  uploadProgressMap[clientMsgID] = { percent: cachedPercent, isLargeFile: true };
@@ -11285,9 +11278,7 @@ const _sfc_main = {
11285
11278
  let uploadResult = null;
11286
11279
  if (isLargeFile) {
11287
11280
  const cachedTasks = getCachedUploadTasks();
11288
- const matched = cachedTasks.find(
11289
- (t) => t.fileName === info.file.name && t.fileSize === info.file.size
11290
- );
11281
+ const matched = cachedTasks.find((t) => t.fileName === info.file.name && t.fileSize === info.file.size);
11291
11282
  if (matched) {
11292
11283
  try {
11293
11284
  uploadResult = await resumeUpload(matched.uploadID, info.file, {
@@ -11719,9 +11710,7 @@ const _sfc_main = {
11719
11710
  hasCachedData = true;
11720
11711
  loadingPage.value = false;
11721
11712
  handleConversationList(cached.list, "init", handleMessage);
11722
- console.log(
11723
- `[MessageCache] ⚡ 会话列表缓存渲染完成 | 会话数=${cached.list.length}`
11724
- );
11713
+ console.log(`[MessageCache] ⚡ 会话列表缓存渲染完成 | 会话数=${cached.list.length}`);
11725
11714
  } else {
11726
11715
  loadingPage.value = true;
11727
11716
  }
@@ -11919,10 +11908,19 @@ const _sfc_main = {
11919
11908
  createVNode(_component_el_dialog, {
11920
11909
  modelValue: selectUserVisible.value,
11921
11910
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => selectUserVisible.value = $event),
11922
- title: selectUserTitle.value,
11911
+ "show-close": false,
11923
11912
  class: normalizeClass([chatTheme.value, "select-user-dialog"]),
11924
- onClose: cancelSelectUser
11913
+ draggable: ""
11925
11914
  }, {
11915
+ header: withCtx(() => [
11916
+ createElementVNode("div", _hoisted_7, [
11917
+ createTextVNode(toDisplayString(selectUserTitle.value) + " ", 1),
11918
+ createElementVNode("span", {
11919
+ class: "close-icon iconfont mdm-icon-close",
11920
+ onClick: withModifiers(cancelSelectUser, ["stop"])
11921
+ })
11922
+ ])
11923
+ ]),
11926
11924
  default: withCtx(() => [
11927
11925
  selectUserVisible.value ? (openBlock(), createBlock(SelectChatUser, {
11928
11926
  key: 0,
@@ -11935,7 +11933,7 @@ const _sfc_main = {
11935
11933
  oldMembers: oldMembers.value,
11936
11934
  onSuccess: createChat
11937
11935
  }, null, 8, ["type", "chat-type", "chat-info", "member-list", "oldMembers"])) : createCommentVNode("", true),
11938
- createElementVNode("div", _hoisted_7, [
11936
+ createElementVNode("div", _hoisted_8, [
11939
11937
  createVNode(_component_el_button, {
11940
11938
  onClick: cancelSelectUser,
11941
11939
  class: "cancel"
@@ -11957,14 +11955,23 @@ const _sfc_main = {
11957
11955
  ])
11958
11956
  ]),
11959
11957
  _: 1
11960
- }, 8, ["modelValue", "title", "class"]),
11958
+ }, 8, ["modelValue", "class"]),
11961
11959
  createVNode(_component_el_dialog, {
11962
11960
  modelValue: selectChatVisible.value,
11963
11961
  "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => selectChatVisible.value = $event),
11964
- title: selectChatTitle.value,
11962
+ "show-close": false,
11965
11963
  class: normalizeClass(["msg-send-dialog", chatTheme.value]),
11966
- onClose: cancelSelectChat
11964
+ draggable: ""
11967
11965
  }, {
11966
+ header: withCtx(() => [
11967
+ createElementVNode("div", _hoisted_9, [
11968
+ createTextVNode(toDisplayString(selectChatTitle.value) + " ", 1),
11969
+ createElementVNode("span", {
11970
+ class: "close-icon iconfont mdm-icon-close",
11971
+ onClick: withModifiers(cancelSelectChat, ["stop"])
11972
+ })
11973
+ ])
11974
+ ]),
11968
11975
  default: withCtx(() => [
11969
11976
  selectChatVisible.value ? (openBlock(), createBlock(ForwardForm, {
11970
11977
  key: 0,
@@ -11976,7 +11983,7 @@ const _sfc_main = {
11976
11983
  "chat-list": unref$1(conversationList),
11977
11984
  onSubmit: createForwardMsg
11978
11985
  }, null, 8, ["type", "forward-text", "msg-item", "chat-list"])) : createCommentVNode("", true),
11979
- createElementVNode("div", _hoisted_8, [
11986
+ createElementVNode("div", _hoisted_10, [
11980
11987
  createVNode(_component_el_button, {
11981
11988
  onClick: cancelSelectChat,
11982
11989
  class: "cancel"
@@ -11998,7 +12005,7 @@ const _sfc_main = {
11998
12005
  ])
11999
12006
  ]),
12000
12007
  _: 1
12001
- }, 8, ["modelValue", "title", "class"]),
12008
+ }, 8, ["modelValue", "class"]),
12002
12009
  createVNode(JoinGroupDialog, {
12003
12010
  ref_key: "joinGroupRef",
12004
12011
  ref: joinGroupRef,
@@ -12033,7 +12040,7 @@ const _sfc_main = {
12033
12040
  };
12034
12041
  }
12035
12042
  };
12036
- const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-06e331a2"]]);
12043
+ const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-be0e73f4"]]);
12037
12044
  export {
12038
12045
  _export_sfc as _,
12039
12046
  _imports_0$2 as a,
@@ -1,5 +1,5 @@
1
1
  import { computed, reactive, ref, onBeforeMount, watch, resolveComponent, openBlock, createElementBlock, Fragment, renderList, unref, createBlock, withCtx, createElementVNode, createVNode, createSlots, toDisplayString, withModifiers, createCommentVNode, inject, shallowRef, onBeforeUnmount, renderSlot, normalizeClass, normalizeStyle, Teleport, nextTick } from "vue";
2
- import { _ as _export_sfc, u as uploadFiles, a as _imports_0 } from "./index-HUSyWSoO.js";
2
+ import { _ as _export_sfc, u as uploadFiles, a as _imports_0 } from "./index-B3MeQmIL.js";
3
3
  import { ElMessage } from "element-plus";
4
4
  import { Promotion } from "@element-plus/icons-vue";
5
5
  import { E as Editor } from "./wangeditor-3yO_BGRp.js";
package/dist/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { i } from "./index-HUSyWSoO.js";
1
+ import { i } from "./index-B3MeQmIL.js";
2
2
  export {
3
3
  i as mdmImV3
4
4
  };