cnhis-design-vue 3.3.3-beta.31 → 3.3.3-beta.41
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/README.md +87 -87
- package/es/components/button-print/src/components/NewPrintComponent.vue2.js +2 -0
- package/es/components/card-render/src/components/index.d.ts +23 -23
- package/es/components/classification/src/components/table-modal/index.vue.d.ts +3 -0
- package/es/components/form-config/index.d.ts +10 -0
- package/es/components/form-config/src/FormConfig.vue.d.ts +10 -0
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +10 -0
- package/es/components/form-config/src/components/FormConfigEdit.vue2.js +4 -4
- package/es/components/form-config/src/constants/index.d.ts +3 -1
- package/es/components/form-config/src/constants/index.js +2 -0
- package/es/components/form-config/src/hooks/useConfigurationField.js +24 -4
- package/es/components/form-config/src/hooks/useLocale.d.ts +2 -0
- package/es/components/form-config/src/hooks/useLocale.js +2 -0
- package/es/components/form-config/src/types/index.d.ts +5 -0
- package/es/components/form-render/src/components/renderer/formItem.d.ts +2 -0
- package/es/components/form-render/src/components/renderer/formItem.js +9 -2
- package/es/components/form-render/src/components/renderer/levelSearchCascader/index.js +4 -2
- package/es/components/form-render/src/components/renderer/searchCascade.js +3 -0
- package/es/components/form-render/src/hooks/useFieldListAdaptor.js +5 -2
- package/es/components/iho-chat/index.d.ts +836 -44
- package/es/components/iho-chat/src/Index.vue.d.ts +836 -44
- package/es/components/iho-chat/src/components/ChatAdd.vue.d.ts +24 -1
- package/es/components/iho-chat/src/components/ChatFile.vue.d.ts +179 -6
- package/es/components/iho-chat/src/components/ChatFile.vue2.js +48 -28
- package/es/components/iho-chat/src/components/ChatFooter.vue.d.ts +61 -5
- package/es/components/iho-chat/src/components/ChatFooter.vue2.js +83 -38
- package/es/components/iho-chat/src/components/ChatHeader.vue.d.ts +327 -13
- package/es/components/iho-chat/src/components/ChatHeader.vue2.js +18 -17
- package/es/components/iho-chat/src/components/ChatMain.vue.d.ts +232 -17
- package/es/components/iho-chat/src/components/ChatMain.vue2.js +299 -272
- package/es/components/iho-chat/src/components/ChatRecord.vue.d.ts +49 -3
- package/es/components/iho-chat/src/components/ChatSearch.vue.d.ts +24 -1
- package/es/components/iho-chat/src/components/ChatSet.vue.d.ts +48 -2
- package/es/components/iho-chat/src/components/ImageLightbox.vue.d.ts +104 -0
- package/es/components/iho-chat/src/components/ImageLightbox.vue.js +6 -0
- package/es/components/iho-chat/src/components/ImageLightbox.vue2.js +307 -0
- package/es/components/iho-chat/src/components/MessageEvent.vue.d.ts +24 -1
- package/es/components/iho-chat/src/components/MessageMergeForward.vue.d.ts +51 -4
- package/es/components/iho-chat/src/components/MultipleVideo.vue.d.ts +48 -2
- package/es/components/iho-chat/src/components/PersonProfile.vue.d.ts +24 -1
- package/es/components/iho-chat/src/components/PersonProfile.vue2.js +1 -1
- package/es/components/iho-chat/src/components/SelectLabel.vue.d.ts +1 -1
- package/es/components/iho-chat/src/components/SiderList.vue.d.ts +24 -1
- package/es/components/iho-chat/src/components/Video.vue.d.ts +24 -1
- package/es/components/iho-chat/src/hooks/useData.d.ts +51 -4
- package/es/components/iho-chat/src/hooks/useVideo.d.ts +24 -1
- package/es/components/iho-chat/src/types/index.d.ts +37 -1
- package/es/components/iho-chat/src/utils/emoji.d.ts +1 -1
- package/es/components/iho-chat/src/utils/emoji.js +1 -1
- package/es/components/iho-chat/src/utils/index.d.ts +1 -0
- package/es/components/iho-chat/src/utils/index.js +8 -1
- package/es/components/iho-chat/style/index.css +1 -1
- package/es/components/index.css +1 -1
- package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue2.js +20 -15
- package/es/env.d.ts +25 -25
- package/es/shared/assets/img/defaultCover/10review_successful.png.js +1 -1
- package/es/shared/assets/img/defaultCover/11review_fail.png.js +1 -1
- package/es/shared/assets/img/defaultCover/12no_setting.png.js +1 -1
- package/es/shared/assets/img/defaultCover/13no_menu_setting.png.js +1 -1
- package/es/shared/assets/img/defaultCover/14no_call_setting.png.js +1 -1
- package/es/shared/assets/img/defaultCover/15no_use_tag.png.js +1 -1
- package/es/shared/assets/img/defaultCover/16no_table_data.png.js +1 -1
- package/es/shared/assets/img/defaultCover/1location.png.js +1 -1
- package/es/shared/assets/img/defaultCover/2notfound.png.js +1 -1
- package/es/shared/assets/img/defaultCover/3loading.png.js +1 -1
- package/es/shared/assets/img/defaultCover/4no_permission.png.js +1 -1
- package/es/shared/assets/img/defaultCover/5no_data.png.js +1 -1
- package/es/shared/assets/img/defaultCover/6no_network.png.js +1 -1
- package/es/shared/assets/img/defaultCover/7no_doctor.png.js +1 -1
- package/es/shared/assets/img/defaultCover/8system_error.png.js +1 -1
- package/es/shared/assets/img/defaultCover/9system_upgrade.png.js +1 -1
- package/es/shared/assets/img/failure.png.js +1 -1
- package/es/shared/assets/img/no-permission.png.js +1 -1
- package/es/shared/assets/img/nodata.png.js +1 -1
- package/es/shared/assets/img/notfound.png.js +1 -1
- package/es/shared/assets/img/qr.png.js +1 -1
- package/es/shared/assets/img/success.png.js +1 -1
- package/es/shared/assets/img/table_style_2.png.js +1 -1
- package/es/shared/assets/img/video.png.js +1 -1
- package/es/shared/assets/img/video_default_cover.png.js +1 -1
- package/es/shared/assets/img/xb_big.png.js +1 -1
- package/es/shared/assets/img/xb_small.png.js +1 -1
- package/es/shared/hooks/useLevelSearchCascader.js +3 -3
- package/es/shared/package.json.js +1 -1
- package/package.json +3 -2
- package/es/components/audio-sdk/src/utils/recorder/fft.d.ts +0 -4
- package/es/components/audio-sdk/src/utils/recorder/mp3-engine.d.ts +0 -4
- package/es/components/audio-sdk/src/utils/recorder/mp3.d.ts +0 -4
- package/es/components/audio-sdk/src/utils/recorder/recorder.d.ts +0 -4
- package/es/components/audio-sdk/src/utils/recorder/wave.d.ts +0 -4
- package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
- package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
- package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
- package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
- package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
- package/es/shared/utils/fabricjs/index.d.ts +0 -6823
- package/es/shared/utils/tapable/index.d.ts +0 -139
@@ -65,7 +65,30 @@ declare const _default: import("vue").DefineComponent<{
|
|
65
65
|
currentSessionItem: AnyObject;
|
66
66
|
id: string;
|
67
67
|
userInfo: AnyObject;
|
68
|
-
msgList:
|
68
|
+
msgList: {
|
69
|
+
[x: string]: any;
|
70
|
+
id: string;
|
71
|
+
sessionKey: string;
|
72
|
+
content: {
|
73
|
+
[x: string]: any;
|
74
|
+
chatMessageType: string;
|
75
|
+
msg: string;
|
76
|
+
referenceContent?: any;
|
77
|
+
forwardMessageList?: AnyObject[] | undefined;
|
78
|
+
messageTemplate?: any;
|
79
|
+
messageTemplateData?: any;
|
80
|
+
fileUrl?: string | undefined;
|
81
|
+
avStatus?: string | undefined;
|
82
|
+
};
|
83
|
+
senderName: string;
|
84
|
+
sendTime: string;
|
85
|
+
sender: string;
|
86
|
+
status: string;
|
87
|
+
senderAvatar: string;
|
88
|
+
__content: string;
|
89
|
+
__time?: string | undefined;
|
90
|
+
__sendTime?: string | undefined;
|
91
|
+
}[];
|
69
92
|
currentMsg: AnyObject;
|
70
93
|
isAppendMsg: boolean;
|
71
94
|
sessionList: AnyObject[];
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import { PropType } from 'vue';
|
2
2
|
import { AnyObject } from '../../../../shared/types';
|
3
3
|
import { downloadFile, formatJsonstr, getFileType, getDetail } from '../utils';
|
4
|
+
import { ImageItem } from '../types';
|
4
5
|
declare const _default: import("vue").DefineComponent<{
|
5
6
|
type: {
|
6
7
|
type: StringConstructor;
|
@@ -25,7 +26,30 @@ declare const _default: import("vue").DefineComponent<{
|
|
25
26
|
currentSessionItem: AnyObject;
|
26
27
|
id: string;
|
27
28
|
userInfo: AnyObject;
|
28
|
-
msgList:
|
29
|
+
msgList: {
|
30
|
+
[x: string]: any;
|
31
|
+
id: string;
|
32
|
+
sessionKey: string;
|
33
|
+
content: {
|
34
|
+
[x: string]: any;
|
35
|
+
chatMessageType: string;
|
36
|
+
msg: string;
|
37
|
+
referenceContent?: any;
|
38
|
+
forwardMessageList?: AnyObject[] | undefined;
|
39
|
+
messageTemplate?: any;
|
40
|
+
messageTemplateData?: any;
|
41
|
+
fileUrl?: string | undefined;
|
42
|
+
avStatus?: string | undefined;
|
43
|
+
};
|
44
|
+
senderName: string;
|
45
|
+
sendTime: string;
|
46
|
+
sender: string;
|
47
|
+
status: string;
|
48
|
+
senderAvatar: string;
|
49
|
+
__content: string;
|
50
|
+
__time?: string | undefined;
|
51
|
+
__sendTime?: string | undefined;
|
52
|
+
}[];
|
29
53
|
currentMsg: AnyObject;
|
30
54
|
isAppendMsg: boolean;
|
31
55
|
sessionList: AnyObject[];
|
@@ -54,11 +78,26 @@ declare const _default: import("vue").DefineComponent<{
|
|
54
78
|
remark: string;
|
55
79
|
contents: AnyObject[];
|
56
80
|
}) => Promise<void>;
|
57
|
-
imageList: import("vue").Ref<
|
81
|
+
imageList: import("vue").Ref<{
|
82
|
+
label: string;
|
83
|
+
list: {
|
84
|
+
[x: string]: any;
|
85
|
+
id: string;
|
86
|
+
fileUrl: string;
|
87
|
+
senderName: string;
|
88
|
+
fileSize: string;
|
89
|
+
sendTime: string;
|
90
|
+
fileName: string;
|
91
|
+
width?: number | undefined;
|
92
|
+
height?: number | undefined;
|
93
|
+
}[];
|
94
|
+
}[]>;
|
58
95
|
fileList: import("vue").Ref<AnyObject[]>;
|
59
96
|
imageRef: import("vue").Ref<any>;
|
60
97
|
fileRef: import("vue").Ref<any>;
|
61
98
|
keyword: import("vue").Ref<any>;
|
99
|
+
currentImgId: import("vue").Ref<string | undefined>;
|
100
|
+
showLightbox: import("vue").Ref<boolean>;
|
62
101
|
handleInput: () => void;
|
63
102
|
pageInfo: {
|
64
103
|
page: number;
|
@@ -68,13 +107,23 @@ declare const _default: import("vue").DefineComponent<{
|
|
68
107
|
handleSearch: () => Promise<void>;
|
69
108
|
formatImageList: (data: AnyObject[]) => {
|
70
109
|
label: string;
|
71
|
-
list:
|
110
|
+
list: ImageItem[];
|
72
111
|
}[];
|
73
112
|
resetAndSearch: () => void;
|
113
|
+
previewImg: (fileUrl: string) => void;
|
74
114
|
title: import("vue").ComputedRef<"聊天图片" | "聊天文件">;
|
115
|
+
images: import("vue").ComputedRef<{
|
116
|
+
[x: string]: any;
|
117
|
+
id: string;
|
118
|
+
fileUrl: string;
|
119
|
+
senderName: string;
|
120
|
+
fileSize: string;
|
121
|
+
sendTime: string;
|
122
|
+
fileName: string;
|
123
|
+
width?: number | undefined;
|
124
|
+
height?: number | undefined;
|
125
|
+
}[]>;
|
75
126
|
NModal: any;
|
76
|
-
NImageGroup: any;
|
77
|
-
NImage: any;
|
78
127
|
NInput: any;
|
79
128
|
NIcon: any;
|
80
129
|
NTooltip: any;
|
@@ -149,7 +198,30 @@ declare const _default: import("vue").DefineComponent<{
|
|
149
198
|
currentSessionItem: AnyObject;
|
150
199
|
id: string;
|
151
200
|
userInfo: AnyObject;
|
152
|
-
msgList:
|
201
|
+
msgList: {
|
202
|
+
[x: string]: any;
|
203
|
+
id: string;
|
204
|
+
sessionKey: string;
|
205
|
+
content: {
|
206
|
+
[x: string]: any;
|
207
|
+
chatMessageType: string;
|
208
|
+
msg: string;
|
209
|
+
referenceContent?: any;
|
210
|
+
forwardMessageList?: AnyObject[] | undefined;
|
211
|
+
messageTemplate?: any;
|
212
|
+
messageTemplateData?: any;
|
213
|
+
fileUrl?: string | undefined;
|
214
|
+
avStatus?: string | undefined;
|
215
|
+
};
|
216
|
+
senderName: string;
|
217
|
+
sendTime: string;
|
218
|
+
sender: string;
|
219
|
+
status: string;
|
220
|
+
senderAvatar: string;
|
221
|
+
__content: string;
|
222
|
+
__time?: string | undefined;
|
223
|
+
__sendTime?: string | undefined;
|
224
|
+
}[];
|
153
225
|
currentMsg: AnyObject;
|
154
226
|
isAppendMsg: boolean;
|
155
227
|
sessionList: AnyObject[];
|
@@ -279,6 +351,107 @@ declare const _default: import("vue").DefineComponent<{
|
|
279
351
|
mode: string;
|
280
352
|
disabledIds: string[];
|
281
353
|
}>;
|
354
|
+
ImageLightbox: import("vue").DefineComponent<{
|
355
|
+
images: {
|
356
|
+
type: PropType<ImageItem[]>;
|
357
|
+
default: () => never[];
|
358
|
+
};
|
359
|
+
visible: {
|
360
|
+
type: BooleanConstructor;
|
361
|
+
};
|
362
|
+
currentId: {
|
363
|
+
type: StringConstructor;
|
364
|
+
default: string;
|
365
|
+
};
|
366
|
+
}, {
|
367
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
368
|
+
images: {
|
369
|
+
type: PropType<ImageItem[]>;
|
370
|
+
default: () => never[];
|
371
|
+
};
|
372
|
+
visible: {
|
373
|
+
type: BooleanConstructor;
|
374
|
+
};
|
375
|
+
currentId: {
|
376
|
+
type: StringConstructor;
|
377
|
+
default: string;
|
378
|
+
};
|
379
|
+
}>> & {
|
380
|
+
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
381
|
+
"onUpdate:currentId"?: ((...args: any[]) => any) | undefined;
|
382
|
+
}>>;
|
383
|
+
emit: (event: "update:visible" | "update:currentId", ...args: any[]) => void;
|
384
|
+
imageEl: import("vue").Ref<HTMLImageElement | null>;
|
385
|
+
naturalSize: import("vue").Ref<{
|
386
|
+
width: number;
|
387
|
+
height: number;
|
388
|
+
}>;
|
389
|
+
scale: import("vue").Ref<number>;
|
390
|
+
rotation: import("vue").Ref<number>;
|
391
|
+
isDragging: import("vue").Ref<boolean>;
|
392
|
+
offset: import("vue").Ref<{
|
393
|
+
x: number;
|
394
|
+
y: number;
|
395
|
+
}>;
|
396
|
+
lastMouse: import("vue").Ref<{
|
397
|
+
x: number;
|
398
|
+
y: number;
|
399
|
+
}>;
|
400
|
+
idToIndexMap: import("vue").ComputedRef<Map<string, number>>;
|
401
|
+
currentIndex: import("vue").ComputedRef<number>;
|
402
|
+
currentImageData: import("vue").ComputedRef<ImageItem>;
|
403
|
+
hasNext: import("vue").ComputedRef<boolean>;
|
404
|
+
hasPrev: import("vue").ComputedRef<boolean>;
|
405
|
+
imageStyle: import("vue").ComputedRef<{
|
406
|
+
left: string;
|
407
|
+
top: string;
|
408
|
+
transform: string;
|
409
|
+
cursor: string;
|
410
|
+
transition: string;
|
411
|
+
}>;
|
412
|
+
resetImageState: () => void;
|
413
|
+
close: () => void;
|
414
|
+
nextImage: () => void;
|
415
|
+
prevImage: () => void;
|
416
|
+
rotate: (degrees: number) => void;
|
417
|
+
zoomIn: () => void;
|
418
|
+
zoomOut: () => void;
|
419
|
+
resetZoom: () => void;
|
420
|
+
startDrag: (e: MouseEvent) => void;
|
421
|
+
onDragMove: (e: MouseEvent) => void;
|
422
|
+
endDrag: () => void;
|
423
|
+
handleWheel: (e: WheelEvent) => void;
|
424
|
+
handleImageLoad: () => void;
|
425
|
+
download: () => void;
|
426
|
+
Close: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
427
|
+
PlaySkipBackOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
428
|
+
PlaySkipForwardOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
429
|
+
DownloadOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
430
|
+
RefreshOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
431
|
+
AddOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
432
|
+
RemoveSharp: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
433
|
+
NButton: any;
|
434
|
+
NIcon: any;
|
435
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:visible" | "update:currentId")[], "update:visible" | "update:currentId", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
436
|
+
images: {
|
437
|
+
type: PropType<ImageItem[]>;
|
438
|
+
default: () => never[];
|
439
|
+
};
|
440
|
+
visible: {
|
441
|
+
type: BooleanConstructor;
|
442
|
+
};
|
443
|
+
currentId: {
|
444
|
+
type: StringConstructor;
|
445
|
+
default: string;
|
446
|
+
};
|
447
|
+
}>> & {
|
448
|
+
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
449
|
+
"onUpdate:currentId"?: ((...args: any[]) => any) | undefined;
|
450
|
+
}, {
|
451
|
+
visible: boolean;
|
452
|
+
images: ImageItem[];
|
453
|
+
currentId: string;
|
454
|
+
}>;
|
282
455
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
283
456
|
type: {
|
284
457
|
type: StringConstructor;
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { defineComponent, ref, computed, watch, openBlock, createBlock, unref, withCtx, withDirectives, createElementVNode,
|
2
|
-
import { NModal,
|
1
|
+
import { defineComponent, ref, computed, watch, openBlock, createBlock, unref, withCtx, withDirectives, createElementVNode, createElementBlock, Fragment, renderList, toDisplayString, vShow, normalizeStyle, createVNode, createTextVNode } from 'vue';
|
2
|
+
import { NModal, NInput, NIcon, NTooltip } from 'naive-ui';
|
3
3
|
import { SearchOutline, OpenOutline, DownloadOutline } from '@vicons/ionicons5';
|
4
4
|
import { searchChatRecordApi } from '../api/index.js';
|
5
5
|
import '../../../../shared/utils/index.js';
|
@@ -16,26 +16,28 @@ import 'sockjs-client/dist/sockjs.min.js';
|
|
16
16
|
import { formatJsonstr, getFileType, getDetail, downloadFile } from '../utils/index.js';
|
17
17
|
import 'trtc-sdk-v5';
|
18
18
|
import ChatAdd from './ChatAdd.vue.js';
|
19
|
+
import ImageLightbox from './ImageLightbox.vue.js';
|
19
20
|
|
20
21
|
const _hoisted_1 = {
|
21
22
|
class: "label"
|
22
23
|
};
|
23
24
|
const _hoisted_2 = {
|
24
|
-
class: "image-
|
25
|
+
class: "image-list"
|
25
26
|
};
|
26
|
-
const _hoisted_3 =
|
27
|
+
const _hoisted_3 = ["src", "onClick"];
|
28
|
+
const _hoisted_4 = {
|
27
29
|
class: "file-type"
|
28
30
|
};
|
29
|
-
const
|
31
|
+
const _hoisted_5 = {
|
30
32
|
class: "text"
|
31
33
|
};
|
32
|
-
const
|
34
|
+
const _hoisted_6 = {
|
33
35
|
class: "name"
|
34
36
|
};
|
35
|
-
const
|
37
|
+
const _hoisted_7 = {
|
36
38
|
class: "detail"
|
37
39
|
};
|
38
|
-
const
|
40
|
+
const _hoisted_8 = {
|
39
41
|
class: "opt-box"
|
40
42
|
};
|
41
43
|
var _sfc_main = /* @__PURE__ */ defineComponent({
|
@@ -61,6 +63,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
61
63
|
const imageRef = ref();
|
62
64
|
const fileRef = ref();
|
63
65
|
const keyword = ref();
|
66
|
+
const currentImgId = ref();
|
67
|
+
const showLightbox = ref(false);
|
64
68
|
const handleInput = useDebounceFn(resetAndSearch, 500);
|
65
69
|
const pageInfo = {
|
66
70
|
page: 0,
|
@@ -136,7 +140,15 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
136
140
|
if (!result[label]) {
|
137
141
|
result[label] = [];
|
138
142
|
}
|
139
|
-
|
143
|
+
const fileUrl = formatJsonstr(item.content.msg, "fileUrl");
|
144
|
+
result[label].push({
|
145
|
+
id: fileUrl,
|
146
|
+
fileUrl,
|
147
|
+
fileName: formatJsonstr(item.content.msg, "fileName"),
|
148
|
+
fileSize: formatJsonstr(item.content.msg, "fileSize"),
|
149
|
+
senderName: item.senderName,
|
150
|
+
sendTime: item.sendTime
|
151
|
+
});
|
140
152
|
});
|
141
153
|
const imageList2 = Object.entries(result).map(([label, list]) => ({
|
142
154
|
label,
|
@@ -152,6 +164,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
152
164
|
});
|
153
165
|
handleSearch();
|
154
166
|
}
|
167
|
+
function previewImg(fileUrl) {
|
168
|
+
currentImgId.value = fileUrl;
|
169
|
+
showLightbox.value = true;
|
170
|
+
}
|
155
171
|
const title = computed(() => props.type === "image" ? function() {
|
156
172
|
var _a, _b, _c;
|
157
173
|
try {
|
@@ -167,6 +183,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
167
183
|
return "\u804A\u5929\u6587\u4EF6";
|
168
184
|
}
|
169
185
|
}());
|
186
|
+
const images = computed(() => imageList.value.flatMap((item) => item.list));
|
170
187
|
watch(() => props.visible, (value) => {
|
171
188
|
if (!value) {
|
172
189
|
keyword.value = "";
|
@@ -187,24 +204,21 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
187
204
|
class: "iho-chat-dialog__content iho-chat-image-wrapper",
|
188
205
|
ref_key: "imageRef",
|
189
206
|
ref: imageRef
|
190
|
-
}, [
|
191
|
-
"
|
192
|
-
|
193
|
-
|
207
|
+
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(imageList.value, (item) => {
|
208
|
+
return openBlock(), createElementBlock("div", {
|
209
|
+
class: "image-item",
|
210
|
+
key: item.label
|
211
|
+
}, [createElementVNode("span", _hoisted_1, toDisplayString(item.label), 1), createElementVNode("div", _hoisted_2, [(openBlock(true), createElementBlock(Fragment, null, renderList(item.list, (image) => {
|
194
212
|
return openBlock(), createElementBlock("div", {
|
195
|
-
|
196
|
-
|
197
|
-
}, [createElementVNode("
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
}), 128))])]);
|
205
|
-
}), 128))]),
|
206
|
-
_: 1
|
207
|
-
})], 512), [[vShow, __props.type === "image"]]), withDirectives(createElementVNode("div", {
|
213
|
+
key: image,
|
214
|
+
class: "image-box"
|
215
|
+
}, [createElementVNode("img", {
|
216
|
+
src: image.fileUrl,
|
217
|
+
alt: "",
|
218
|
+
onClick: () => previewImg(image.fileUrl)
|
219
|
+
}, null, 8, _hoisted_3)]);
|
220
|
+
}), 128))])]);
|
221
|
+
}), 128))], 512), [[vShow, __props.type === "image"]]), withDirectives(createElementVNode("div", {
|
208
222
|
class: "iho-chat-dialog__content iho-chat-file-wrapper",
|
209
223
|
style: normalizeStyle(unref(cssVars))
|
210
224
|
}, [createVNode(unref(NInput), {
|
@@ -236,7 +250,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
236
250
|
return openBlock(), createElementBlock("div", {
|
237
251
|
class: "file-item",
|
238
252
|
key: i
|
239
|
-
}, [createElementVNode("span",
|
253
|
+
}, [createElementVNode("span", _hoisted_4, toDisplayString(unref(getFileType)(item.content.msg)), 1), createElementVNode("div", _hoisted_5, [createElementVNode("span", _hoisted_6, toDisplayString(unref(formatJsonstr)(item.content.msg, "fileName")), 1), createElementVNode("span", _hoisted_7, toDisplayString(unref(getDetail)(item, true)), 1)]), createElementVNode("div", _hoisted_8, [createVNode(ChatAdd, {
|
240
254
|
title: function() {
|
241
255
|
var _a, _b, _c;
|
242
256
|
try {
|
@@ -288,7 +302,13 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
288
302
|
}())]),
|
289
303
|
_: 2
|
290
304
|
}, 1024)])]);
|
291
|
-
}), 128))], 512)], 4), [[vShow, __props.type !== "image"]])
|
305
|
+
}), 128))], 512)], 4), [[vShow, __props.type !== "image"]]), createVNode(ImageLightbox, {
|
306
|
+
images: unref(images),
|
307
|
+
"current-id": currentImgId.value,
|
308
|
+
"onUpdate:current-id": _cache[1] || (_cache[1] = ($event) => currentImgId.value = $event),
|
309
|
+
visible: showLightbox.value,
|
310
|
+
"onUpdate:visible": _cache[2] || (_cache[2] = ($event) => showLightbox.value = $event)
|
311
|
+
}, null, 8, ["images", "current-id", "visible"])]),
|
292
312
|
_: 1
|
293
313
|
}, 8, ["title"]);
|
294
314
|
};
|
@@ -11,7 +11,30 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
11
11
|
currentSessionItem: AnyObject;
|
12
12
|
id: string;
|
13
13
|
userInfo: AnyObject;
|
14
|
-
msgList:
|
14
|
+
msgList: {
|
15
|
+
[x: string]: any;
|
16
|
+
id: string;
|
17
|
+
sessionKey: string;
|
18
|
+
content: {
|
19
|
+
[x: string]: any;
|
20
|
+
chatMessageType: string;
|
21
|
+
msg: string;
|
22
|
+
referenceContent?: any;
|
23
|
+
forwardMessageList?: AnyObject[] | undefined;
|
24
|
+
messageTemplate?: any;
|
25
|
+
messageTemplateData?: any;
|
26
|
+
fileUrl?: string | undefined;
|
27
|
+
avStatus?: string | undefined;
|
28
|
+
};
|
29
|
+
senderName: string;
|
30
|
+
sendTime: string;
|
31
|
+
sender: string;
|
32
|
+
status: string;
|
33
|
+
senderAvatar: string;
|
34
|
+
__content: string;
|
35
|
+
__time?: string | undefined;
|
36
|
+
__sendTime?: string | undefined;
|
37
|
+
}[];
|
15
38
|
currentMsg: AnyObject;
|
16
39
|
isAppendMsg: boolean;
|
17
40
|
sessionList: AnyObject[];
|
@@ -63,8 +86,13 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
63
86
|
handleInput: () => void;
|
64
87
|
selectEmoji: (name: string) => void;
|
65
88
|
insertSpace: () => void;
|
66
|
-
doUpdateFile: (file: File) => Promise<
|
67
|
-
fileChange: (options: FileOptions
|
89
|
+
doUpdateFile: (file: File) => Promise<any>;
|
90
|
+
fileChange: (options: FileOptions | {
|
91
|
+
file: {
|
92
|
+
file: File;
|
93
|
+
name: string;
|
94
|
+
};
|
95
|
+
}, chatMessageType: MESSAGE_TYPE) => Promise<void>;
|
68
96
|
handleMsgSend: () => Promise<void>;
|
69
97
|
removeSpace: () => void;
|
70
98
|
doSendMessage: (contentInfo: AnyObject) => Promise<void>;
|
@@ -74,6 +102,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
74
102
|
remark: string;
|
75
103
|
}, type?: string) => void;
|
76
104
|
handlecancelForward: () => void;
|
105
|
+
handleFilePaste: (event: ClipboardEvent) => void;
|
77
106
|
NButton: any;
|
78
107
|
NPopover: any;
|
79
108
|
NTooltip: any;
|
@@ -144,7 +173,30 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
144
173
|
currentSessionItem: AnyObject;
|
145
174
|
id: string;
|
146
175
|
userInfo: AnyObject;
|
147
|
-
msgList:
|
176
|
+
msgList: {
|
177
|
+
[x: string]: any;
|
178
|
+
id: string;
|
179
|
+
sessionKey: string;
|
180
|
+
content: {
|
181
|
+
[x: string]: any;
|
182
|
+
chatMessageType: string;
|
183
|
+
msg: string;
|
184
|
+
referenceContent?: any;
|
185
|
+
forwardMessageList?: AnyObject[] | undefined;
|
186
|
+
messageTemplate?: any;
|
187
|
+
messageTemplateData?: any;
|
188
|
+
fileUrl?: string | undefined;
|
189
|
+
avStatus?: string | undefined;
|
190
|
+
};
|
191
|
+
senderName: string;
|
192
|
+
sendTime: string;
|
193
|
+
sender: string;
|
194
|
+
status: string;
|
195
|
+
senderAvatar: string;
|
196
|
+
__content: string;
|
197
|
+
__time?: string | undefined;
|
198
|
+
__sendTime?: string | undefined;
|
199
|
+
}[];
|
148
200
|
currentMsg: AnyObject;
|
149
201
|
isAppendMsg: boolean;
|
150
202
|
sessionList: AnyObject[];
|
@@ -276,13 +328,17 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
276
328
|
}>;
|
277
329
|
emojis: {
|
278
330
|
default: string[][];
|
279
|
-
findEmoji(name: string):
|
331
|
+
findEmoji(name: string): string | undefined;
|
280
332
|
};
|
281
333
|
MESSAGE_TYPE: typeof MESSAGE_TYPE;
|
282
334
|
CloseCircleOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
283
335
|
CallOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
284
336
|
VideocamOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
285
337
|
CloseOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
338
|
+
FolderOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
339
|
+
ImageOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
340
|
+
HappyOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
341
|
+
ThumbsUp: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
286
342
|
simplifyMessage: typeof simplifyMessage;
|
287
343
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
288
344
|
export default _default;
|