@flexem/chat-box 1.0.10 → 1.0.11

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.
@@ -353,6 +353,28 @@ Component({
353
353
  return;
354
354
  }
355
355
 
356
+ // 检查是否有正在上传的附件
357
+ const uploadingAttachments = this.data.attachments.filter(item => item.uploading);
358
+ if (uploadingAttachments.length > 0) {
359
+ const hasUploadingImage = uploadingAttachments.some(item => item.type === 'image');
360
+ const hasUploadingFile = uploadingAttachments.some(item => item.type === 'file');
361
+
362
+ let message = '';
363
+ if (hasUploadingImage && hasUploadingFile) {
364
+ message = '图片和文件上传中,请稍后';
365
+ } else if (hasUploadingImage) {
366
+ message = '图片上传中,请稍后';
367
+ } else {
368
+ message = '文件上传中,请稍后';
369
+ }
370
+
371
+ wx.showToast({
372
+ title: message,
373
+ icon: 'none'
374
+ });
375
+ return;
376
+ }
377
+
356
378
  // 通知父组件停止语音播放
357
379
  this.triggerEvent('voicerecordstart');
358
380
 
@@ -5,7 +5,7 @@
5
5
  left: 0;
6
6
  width: 85vw;
7
7
  height: 100%;
8
- z-index: 1;
8
+ z-index: 20;
9
9
  pointer-events: none;
10
10
  opacity: 0;
11
11
  transition: opacity 0.3s ease;
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@flexem/chat-box",
3
- "version": "1.0.10",
3
+ "version": "1.0.11",
4
4
  "main": "index.js"
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flexem/chat-box",
3
- "version": "1.0.10",
3
+ "version": "1.0.11",
4
4
  "description": "chat box",
5
5
  "main": "miniprogram_dist/index.js",
6
6
  "miniprogram": "miniprogram_dist",