cnhis-design-vue 3.2.2-beta.22 → 3.2.2-beta.29
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/es/components/biunique-chat/index.d.ts +35 -98
- package/es/components/biunique-chat/src/Index.vue.d.ts +36 -98
- package/es/components/biunique-chat/src/Index.vue2.js +1 -1
- package/es/components/biunique-chat/src/components/ChatFooter.vue.d.ts +3 -14
- package/es/components/biunique-chat/src/components/ChatFooter.vue2.js +1 -1
- package/es/components/biunique-chat/src/components/ChatHeader.vue.d.ts +3 -36
- package/es/components/biunique-chat/src/components/ChatHeader.vue2.js +1 -1
- package/es/components/biunique-chat/src/components/ChatMain.vue.d.ts +2 -13
- package/es/components/biunique-chat/src/components/ChatMain.vue2.js +1 -1
- package/es/components/biunique-chat/src/components/ChatRecord.vue.d.ts +1 -12
- package/es/components/biunique-chat/src/components/ChatSet.vue.d.ts +1 -12
- package/es/components/biunique-chat/src/components/ChatSet.vue2.js +1 -1
- package/es/components/biunique-chat/src/components/SiderList.vue.d.ts +10 -17
- package/es/components/biunique-chat/src/components/SiderList.vue2.js +1 -1
- package/es/components/biunique-chat/src/hooks/index.d.ts +2 -0
- package/es/components/biunique-chat/src/hooks/index.js +1 -0
- package/es/components/biunique-chat/src/hooks/useSession.d.ts +7 -0
- package/es/components/biunique-chat/src/hooks/useSession.js +1 -0
- package/es/components/biunique-chat/src/hooks/useState.d.ts +1 -13
- package/es/components/biunique-chat/src/hooks/useState.js +1 -1
- package/es/components/biunique-chat/src/types/index.d.ts +2 -3
- package/es/components/biunique-chat/src/utils/emoji.d.ts +1 -1
- package/es/components/biunique-chat/src/utils/emoji.js +1 -1
- package/es/components/biunique-chat/src/utils/index.js +1 -1
- package/es/components/biunique-chat/style/index.css +1 -1
- package/es/components/card-reader-sdk/src/cardReaderSDK.js +1 -1
- package/es/components/card-reader-sdk/src/insuranceSDK.js +1 -1
- package/es/components/card-reader-sdk/src/types/index.d.ts +1 -1
- package/es/components/form-config/src/constants/index.d.ts +1 -0
- package/es/components/form-config/src/constants/index.js +1 -1
- package/es/components/form-config/src/hooks/useConfigurationField.js +1 -1
- package/es/components/form-render/src/hooks/useFormEvent.js +1 -1
- package/es/components/index.css +1 -1
- package/es/components/step-notice/index.d.ts +1538 -1
- package/es/components/step-notice/src/StepNotice.vue.d.ts +1538 -1
- package/es/components/step-notice/src/StepNotice.vue2.js +1 -1
- package/es/components/step-notice/style/index.css +1 -1
- package/es/shared/assets/img/emoji/666.gif.js +1 -0
- package/es/shared/package.json.js +1 -1
- package/package.json +2 -2
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import { SFCWithInstall } from '../../shared/types';
|
|
2
2
|
declare const BiuniqueChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
3
|
-
token: {
|
|
4
|
-
type: StringConstructor;
|
|
5
|
-
required: true;
|
|
6
|
-
};
|
|
7
3
|
userId: {
|
|
8
4
|
type: StringConstructor;
|
|
9
5
|
required: true;
|
|
@@ -14,10 +10,6 @@ declare const BiuniqueChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
14
10
|
};
|
|
15
11
|
}, {
|
|
16
12
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
17
|
-
token: {
|
|
18
|
-
type: StringConstructor;
|
|
19
|
-
required: true;
|
|
20
|
-
};
|
|
21
13
|
userId: {
|
|
22
14
|
type: StringConstructor;
|
|
23
15
|
required: true;
|
|
@@ -28,19 +20,30 @@ declare const BiuniqueChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
28
20
|
};
|
|
29
21
|
}>> & {
|
|
30
22
|
"onTemplate-click"?: ((...args: any[]) => any) | undefined;
|
|
31
|
-
"
|
|
23
|
+
"onUnread-message-update"?: ((...args: any[]) => any) | undefined;
|
|
32
24
|
}>>;
|
|
33
|
-
emit: (event: "template-click" | "message-
|
|
25
|
+
emit: (event: "template-click" | "unread-message-update", ...args: any[]) => void;
|
|
34
26
|
cssVars: import("vue").ComputedRef<import("vue").CSSProperties>;
|
|
35
27
|
loading: import("vue").Ref<boolean>;
|
|
36
28
|
stompClient: import("vue").Ref<import("./src/utils/chatSock").ChatSock | undefined>;
|
|
37
|
-
state:
|
|
29
|
+
state: {
|
|
30
|
+
currentSessionItem: import("../../shared/types").AnyObject;
|
|
31
|
+
id: string;
|
|
32
|
+
userInfo: import("../../shared/types").AnyObject;
|
|
33
|
+
msgList: import("../../shared/types").AnyObject[];
|
|
34
|
+
currentMsg: import("../../shared/types").AnyObject;
|
|
35
|
+
isAppendMsg: boolean;
|
|
36
|
+
sessionList: import("../../shared/types").AnyObject[];
|
|
37
|
+
isChangeSession: boolean;
|
|
38
|
+
updateSessionItem: import("../../shared/types").AnyObject;
|
|
39
|
+
isUpdateSession: boolean;
|
|
40
|
+
};
|
|
38
41
|
reConnention: number;
|
|
39
42
|
init: () => Promise<void>;
|
|
40
43
|
initWebSocket: () => void;
|
|
41
44
|
subscribeSessionList: () => void;
|
|
42
|
-
subscribeSession: () => void;
|
|
43
45
|
subscribeMessage: () => void;
|
|
46
|
+
getUnreadData: () => import("../../shared/types").AnyObject[];
|
|
44
47
|
NLayout: any;
|
|
45
48
|
NLayoutContent: import("vue").DefineComponent<{
|
|
46
49
|
embedded: BooleanConstructor;
|
|
@@ -445,36 +448,29 @@ declare const BiuniqueChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
445
448
|
NSpin: any;
|
|
446
449
|
NConfigProvider: any;
|
|
447
450
|
SiderList: import("vue").DefineComponent<{}, {
|
|
451
|
+
filterKey: {
|
|
452
|
+
all: string;
|
|
453
|
+
unread: string;
|
|
454
|
+
};
|
|
448
455
|
flexWidth: import("vue").Ref<number>;
|
|
449
456
|
listBoxRef: import("vue").Ref<HTMLElement | undefined>;
|
|
450
457
|
keyword: import("vue").Ref<string>;
|
|
451
|
-
sessionList: import("vue").Ref<import("../../shared/types").AnyObject[]>;
|
|
452
458
|
loading: import("vue").Ref<boolean>;
|
|
453
459
|
filterList: import("vue").Ref<{
|
|
454
460
|
label: string;
|
|
455
461
|
key: string;
|
|
456
|
-
number: number;
|
|
457
462
|
}[]>;
|
|
458
463
|
currentFilterKey: import("vue").Ref<string>;
|
|
459
|
-
state:
|
|
460
|
-
|
|
461
|
-
sessionKey: string;
|
|
462
|
-
userInfo: import("../../shared/types").AnyObject;
|
|
463
|
-
msgList: import("../../shared/types").AnyObject[];
|
|
464
|
-
currentMsg: import("../../shared/types").AnyObject;
|
|
465
|
-
isAppendMsg: boolean;
|
|
466
|
-
sessionList: import("../../shared/types").AnyObject[];
|
|
467
|
-
isChangeSession: boolean;
|
|
468
|
-
updateSessionItem: import("../../shared/types").AnyObject;
|
|
469
|
-
isUpdateSession: boolean;
|
|
470
|
-
};
|
|
471
|
-
setCurrentSessionItem: (item: import("../../shared/types").AnyObject) => void;
|
|
472
|
-
currentWidth: import("vue").ComputedRef<number>;
|
|
473
|
-
handleSearch: () => void;
|
|
464
|
+
state: import("./src/types").IState;
|
|
465
|
+
emit: (event: string, ...args: any[]) => void;
|
|
474
466
|
entrySession: (item: import("../../shared/types").AnyObject) => void;
|
|
467
|
+
unreadTotal: import("vue").ComputedRef<number>;
|
|
468
|
+
currentWidth: import("vue").ComputedRef<number>;
|
|
469
|
+
sessionList: import("vue").ComputedRef<import("../../shared/types").AnyObject[]>;
|
|
475
470
|
sessionChange: (sessionItem: import("../../shared/types").AnyObject) => void;
|
|
476
471
|
changeWidth: ({ distance }: import("../../shared/types").AnyObject) => void;
|
|
477
472
|
handleFilter: (key: string) => void;
|
|
473
|
+
showSession: (item: import("../../shared/types").AnyObject, currentKey?: string) => boolean | undefined;
|
|
478
474
|
NSpin: any;
|
|
479
475
|
NBadge: any;
|
|
480
476
|
NAvatar: any;
|
|
@@ -486,18 +482,7 @@ declare const BiuniqueChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
486
482
|
formatTime: typeof import("./src/utils").formatTime;
|
|
487
483
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
488
484
|
ChatHeader: import("vue").DefineComponent<{}, {
|
|
489
|
-
state:
|
|
490
|
-
currentSessionItem: import("../../shared/types").AnyObject;
|
|
491
|
-
sessionKey: string;
|
|
492
|
-
userInfo: import("../../shared/types").AnyObject;
|
|
493
|
-
msgList: import("../../shared/types").AnyObject[];
|
|
494
|
-
currentMsg: import("../../shared/types").AnyObject;
|
|
495
|
-
isAppendMsg: boolean;
|
|
496
|
-
sessionList: import("../../shared/types").AnyObject[];
|
|
497
|
-
isChangeSession: boolean;
|
|
498
|
-
updateSessionItem: import("../../shared/types").AnyObject;
|
|
499
|
-
isUpdateSession: boolean;
|
|
500
|
-
};
|
|
485
|
+
state: import("./src/types").IState;
|
|
501
486
|
showChatSet: import("vue").Ref<boolean>;
|
|
502
487
|
showChatFile: import("vue").Ref<boolean>;
|
|
503
488
|
chatFileType: import("vue").Ref<string>;
|
|
@@ -561,18 +546,7 @@ declare const BiuniqueChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
561
546
|
};
|
|
562
547
|
}>>, {}>;
|
|
563
548
|
ChatSet: import("vue").DefineComponent<{}, {
|
|
564
|
-
state:
|
|
565
|
-
currentSessionItem: import("../../shared/types").AnyObject;
|
|
566
|
-
sessionKey: string;
|
|
567
|
-
userInfo: import("../../shared/types").AnyObject;
|
|
568
|
-
msgList: import("../../shared/types").AnyObject[];
|
|
569
|
-
currentMsg: import("../../shared/types").AnyObject;
|
|
570
|
-
isAppendMsg: boolean;
|
|
571
|
-
sessionList: import("../../shared/types").AnyObject[];
|
|
572
|
-
isChangeSession: boolean;
|
|
573
|
-
updateSessionItem: import("../../shared/types").AnyObject;
|
|
574
|
-
isUpdateSession: boolean;
|
|
575
|
-
};
|
|
549
|
+
state: import("./src/types").IState;
|
|
576
550
|
setCurrentSessionItem: (item: import("../../shared/types").AnyObject) => void;
|
|
577
551
|
handleTopping: (value: boolean) => Promise<void>;
|
|
578
552
|
NDrawer: any;
|
|
@@ -1057,18 +1031,7 @@ declare const BiuniqueChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1057
1031
|
color: string;
|
|
1058
1032
|
textColor: string;
|
|
1059
1033
|
};
|
|
1060
|
-
state:
|
|
1061
|
-
currentSessionItem: import("../../shared/types").AnyObject;
|
|
1062
|
-
sessionKey: string;
|
|
1063
|
-
userInfo: import("../../shared/types").AnyObject;
|
|
1064
|
-
msgList: import("../../shared/types").AnyObject[];
|
|
1065
|
-
currentMsg: import("../../shared/types").AnyObject;
|
|
1066
|
-
isAppendMsg: boolean;
|
|
1067
|
-
sessionList: import("../../shared/types").AnyObject[];
|
|
1068
|
-
isChangeSession: boolean;
|
|
1069
|
-
updateSessionItem: import("../../shared/types").AnyObject;
|
|
1070
|
-
isUpdateSession: boolean;
|
|
1071
|
-
};
|
|
1034
|
+
state: import("./src/types").IState;
|
|
1072
1035
|
options: {
|
|
1073
1036
|
label: any;
|
|
1074
1037
|
value: any;
|
|
@@ -1164,18 +1127,7 @@ declare const BiuniqueChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1164
1127
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
1165
1128
|
ChatMain: import("vue").DefineComponent<{}, {
|
|
1166
1129
|
chatMainRef: import("vue").Ref<HTMLElement | undefined>;
|
|
1167
|
-
state:
|
|
1168
|
-
currentSessionItem: import("../../shared/types").AnyObject;
|
|
1169
|
-
sessionKey: string;
|
|
1170
|
-
userInfo: import("../../shared/types").AnyObject;
|
|
1171
|
-
msgList: import("../../shared/types").AnyObject[];
|
|
1172
|
-
currentMsg: import("../../shared/types").AnyObject;
|
|
1173
|
-
isAppendMsg: boolean;
|
|
1174
|
-
sessionList: import("../../shared/types").AnyObject[];
|
|
1175
|
-
isChangeSession: boolean;
|
|
1176
|
-
updateSessionItem: import("../../shared/types").AnyObject;
|
|
1177
|
-
isUpdateSession: boolean;
|
|
1178
|
-
};
|
|
1130
|
+
state: import("./src/types").IState;
|
|
1179
1131
|
setMsgList: (list?: import("../../shared/types").AnyObject[]) => void;
|
|
1180
1132
|
page: number;
|
|
1181
1133
|
getHistoryRecord: () => Promise<void>;
|
|
@@ -1314,26 +1266,15 @@ declare const BiuniqueChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1314
1266
|
required: true;
|
|
1315
1267
|
};
|
|
1316
1268
|
}>>, {}>;
|
|
1317
|
-
images: any[]
|
|
1269
|
+
images: import("vue").Ref<any[]>;
|
|
1318
1270
|
MESSAGE_TYPE: typeof import("./src/constants").MESSAGE_TYPE;
|
|
1319
1271
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
1320
1272
|
ChatFooter: import("vue").DefineComponent<{}, {
|
|
1321
1273
|
inputRef: import("vue").Ref<HTMLDivElement | undefined>;
|
|
1322
1274
|
content: import("vue").Ref<string>;
|
|
1323
|
-
state:
|
|
1324
|
-
currentSessionItem: import("../../shared/types").AnyObject;
|
|
1325
|
-
sessionKey: string;
|
|
1326
|
-
userInfo: import("../../shared/types").AnyObject;
|
|
1327
|
-
msgList: import("../../shared/types").AnyObject[];
|
|
1328
|
-
currentMsg: import("../../shared/types").AnyObject;
|
|
1329
|
-
isAppendMsg: boolean;
|
|
1330
|
-
sessionList: import("../../shared/types").AnyObject[];
|
|
1331
|
-
isChangeSession: boolean;
|
|
1332
|
-
updateSessionItem: import("../../shared/types").AnyObject;
|
|
1333
|
-
isUpdateSession: boolean;
|
|
1334
|
-
};
|
|
1335
|
-
setCurrentSessionItem: (item: import("../../shared/types").AnyObject) => void;
|
|
1275
|
+
state: import("./src/types").IState;
|
|
1336
1276
|
stompClient: import("vue").Ref<import("./src/utils/chatSock").ChatSock>;
|
|
1277
|
+
setCurrentSessionItem: (item: import("../../shared/types").AnyObject) => void;
|
|
1337
1278
|
handleKeyDown: (event: KeyboardEvent) => void;
|
|
1338
1279
|
isWrap: (event: KeyboardEvent) => boolean;
|
|
1339
1280
|
handleInput: () => void;
|
|
@@ -1342,15 +1283,11 @@ declare const BiuniqueChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1342
1283
|
NButton: any;
|
|
1343
1284
|
NPopover: any;
|
|
1344
1285
|
NTooltip: any;
|
|
1345
|
-
images: any[]
|
|
1286
|
+
images: import("vue").Ref<any[]>;
|
|
1346
1287
|
alt: string[];
|
|
1347
1288
|
MESSAGE_TYPE: typeof import("./src/constants").MESSAGE_TYPE;
|
|
1348
1289
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
1349
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("template-click" | "message-
|
|
1350
|
-
token: {
|
|
1351
|
-
type: StringConstructor;
|
|
1352
|
-
required: true;
|
|
1353
|
-
};
|
|
1290
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("template-click" | "unread-message-update")[], "template-click" | "unread-message-update", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1354
1291
|
userId: {
|
|
1355
1292
|
type: StringConstructor;
|
|
1356
1293
|
required: true;
|
|
@@ -1361,7 +1298,7 @@ declare const BiuniqueChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1361
1298
|
};
|
|
1362
1299
|
}>> & {
|
|
1363
1300
|
"onTemplate-click"?: ((...args: any[]) => any) | undefined;
|
|
1364
|
-
"
|
|
1301
|
+
"onUnread-message-update"?: ((...args: any[]) => any) | undefined;
|
|
1365
1302
|
}, {
|
|
1366
1303
|
baseURL: string;
|
|
1367
1304
|
}>>;
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import { type PropType } from 'vue';
|
|
2
2
|
import { ChatSock } from './utils/chatSock';
|
|
3
3
|
import { AnyObject } from '../../../shared/types';
|
|
4
|
+
import { IState } from './types';
|
|
4
5
|
declare const _default: import("vue").DefineComponent<{
|
|
5
|
-
token: {
|
|
6
|
-
type: StringConstructor;
|
|
7
|
-
required: true;
|
|
8
|
-
};
|
|
9
6
|
userId: {
|
|
10
7
|
type: StringConstructor;
|
|
11
8
|
required: true;
|
|
@@ -16,10 +13,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
16
13
|
};
|
|
17
14
|
}, {
|
|
18
15
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
19
|
-
token: {
|
|
20
|
-
type: StringConstructor;
|
|
21
|
-
required: true;
|
|
22
|
-
};
|
|
23
16
|
userId: {
|
|
24
17
|
type: StringConstructor;
|
|
25
18
|
required: true;
|
|
@@ -30,19 +23,30 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
30
23
|
};
|
|
31
24
|
}>> & {
|
|
32
25
|
"onTemplate-click"?: ((...args: any[]) => any) | undefined;
|
|
33
|
-
"
|
|
26
|
+
"onUnread-message-update"?: ((...args: any[]) => any) | undefined;
|
|
34
27
|
}>>;
|
|
35
|
-
emit: (event: "template-click" | "message-
|
|
28
|
+
emit: (event: "template-click" | "unread-message-update", ...args: any[]) => void;
|
|
36
29
|
cssVars: import("vue").ComputedRef<import("vue").CSSProperties>;
|
|
37
30
|
loading: import("vue").Ref<boolean>;
|
|
38
31
|
stompClient: import("vue").Ref<ChatSock | undefined>;
|
|
39
|
-
state:
|
|
32
|
+
state: {
|
|
33
|
+
currentSessionItem: AnyObject;
|
|
34
|
+
id: string;
|
|
35
|
+
userInfo: AnyObject;
|
|
36
|
+
msgList: AnyObject[];
|
|
37
|
+
currentMsg: AnyObject;
|
|
38
|
+
isAppendMsg: boolean;
|
|
39
|
+
sessionList: AnyObject[];
|
|
40
|
+
isChangeSession: boolean;
|
|
41
|
+
updateSessionItem: AnyObject;
|
|
42
|
+
isUpdateSession: boolean;
|
|
43
|
+
};
|
|
40
44
|
reConnention: number;
|
|
41
45
|
init: () => Promise<void>;
|
|
42
46
|
initWebSocket: () => void;
|
|
43
47
|
subscribeSessionList: () => void;
|
|
44
|
-
subscribeSession: () => void;
|
|
45
48
|
subscribeMessage: () => void;
|
|
49
|
+
getUnreadData: () => AnyObject[];
|
|
46
50
|
NLayout: any;
|
|
47
51
|
NLayoutContent: import("vue").DefineComponent<{
|
|
48
52
|
embedded: BooleanConstructor;
|
|
@@ -447,36 +451,29 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
447
451
|
NSpin: any;
|
|
448
452
|
NConfigProvider: any;
|
|
449
453
|
SiderList: import("vue").DefineComponent<{}, {
|
|
454
|
+
filterKey: {
|
|
455
|
+
all: string;
|
|
456
|
+
unread: string;
|
|
457
|
+
};
|
|
450
458
|
flexWidth: import("vue").Ref<number>;
|
|
451
459
|
listBoxRef: import("vue").Ref<HTMLElement | undefined>;
|
|
452
460
|
keyword: import("vue").Ref<string>;
|
|
453
|
-
sessionList: import("vue").Ref<AnyObject[]>;
|
|
454
461
|
loading: import("vue").Ref<boolean>;
|
|
455
462
|
filterList: import("vue").Ref<{
|
|
456
463
|
label: string;
|
|
457
464
|
key: string;
|
|
458
|
-
number: number;
|
|
459
465
|
}[]>;
|
|
460
466
|
currentFilterKey: import("vue").Ref<string>;
|
|
461
|
-
state:
|
|
462
|
-
|
|
463
|
-
sessionKey: string;
|
|
464
|
-
userInfo: AnyObject;
|
|
465
|
-
msgList: AnyObject[];
|
|
466
|
-
currentMsg: AnyObject;
|
|
467
|
-
isAppendMsg: boolean;
|
|
468
|
-
sessionList: AnyObject[];
|
|
469
|
-
isChangeSession: boolean;
|
|
470
|
-
updateSessionItem: AnyObject;
|
|
471
|
-
isUpdateSession: boolean;
|
|
472
|
-
};
|
|
473
|
-
setCurrentSessionItem: (item: AnyObject) => void;
|
|
474
|
-
currentWidth: import("vue").ComputedRef<number>;
|
|
475
|
-
handleSearch: () => void;
|
|
467
|
+
state: IState;
|
|
468
|
+
emit: (event: string, ...args: any[]) => void;
|
|
476
469
|
entrySession: (item: AnyObject) => void;
|
|
470
|
+
unreadTotal: import("vue").ComputedRef<number>;
|
|
471
|
+
currentWidth: import("vue").ComputedRef<number>;
|
|
472
|
+
sessionList: import("vue").ComputedRef<AnyObject[]>;
|
|
477
473
|
sessionChange: (sessionItem: AnyObject) => void;
|
|
478
474
|
changeWidth: ({ distance }: AnyObject) => void;
|
|
479
475
|
handleFilter: (key: string) => void;
|
|
476
|
+
showSession: (item: AnyObject, currentKey?: string) => boolean | undefined;
|
|
480
477
|
NSpin: any;
|
|
481
478
|
NBadge: any;
|
|
482
479
|
NAvatar: any;
|
|
@@ -488,18 +485,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
488
485
|
formatTime: typeof import("./utils").formatTime;
|
|
489
486
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
490
487
|
ChatHeader: import("vue").DefineComponent<{}, {
|
|
491
|
-
state:
|
|
492
|
-
currentSessionItem: AnyObject;
|
|
493
|
-
sessionKey: string;
|
|
494
|
-
userInfo: AnyObject;
|
|
495
|
-
msgList: AnyObject[];
|
|
496
|
-
currentMsg: AnyObject;
|
|
497
|
-
isAppendMsg: boolean;
|
|
498
|
-
sessionList: AnyObject[];
|
|
499
|
-
isChangeSession: boolean;
|
|
500
|
-
updateSessionItem: AnyObject;
|
|
501
|
-
isUpdateSession: boolean;
|
|
502
|
-
};
|
|
488
|
+
state: IState;
|
|
503
489
|
showChatSet: import("vue").Ref<boolean>;
|
|
504
490
|
showChatFile: import("vue").Ref<boolean>;
|
|
505
491
|
chatFileType: import("vue").Ref<string>;
|
|
@@ -563,18 +549,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
563
549
|
};
|
|
564
550
|
}>>, {}>;
|
|
565
551
|
ChatSet: import("vue").DefineComponent<{}, {
|
|
566
|
-
state:
|
|
567
|
-
currentSessionItem: AnyObject;
|
|
568
|
-
sessionKey: string;
|
|
569
|
-
userInfo: AnyObject;
|
|
570
|
-
msgList: AnyObject[];
|
|
571
|
-
currentMsg: AnyObject;
|
|
572
|
-
isAppendMsg: boolean;
|
|
573
|
-
sessionList: AnyObject[];
|
|
574
|
-
isChangeSession: boolean;
|
|
575
|
-
updateSessionItem: AnyObject;
|
|
576
|
-
isUpdateSession: boolean;
|
|
577
|
-
};
|
|
552
|
+
state: IState;
|
|
578
553
|
setCurrentSessionItem: (item: AnyObject) => void;
|
|
579
554
|
handleTopping: (value: boolean) => Promise<void>;
|
|
580
555
|
NDrawer: any;
|
|
@@ -1059,18 +1034,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1059
1034
|
color: string;
|
|
1060
1035
|
textColor: string;
|
|
1061
1036
|
};
|
|
1062
|
-
state:
|
|
1063
|
-
currentSessionItem: AnyObject;
|
|
1064
|
-
sessionKey: string;
|
|
1065
|
-
userInfo: AnyObject;
|
|
1066
|
-
msgList: AnyObject[];
|
|
1067
|
-
currentMsg: AnyObject;
|
|
1068
|
-
isAppendMsg: boolean;
|
|
1069
|
-
sessionList: AnyObject[];
|
|
1070
|
-
isChangeSession: boolean;
|
|
1071
|
-
updateSessionItem: AnyObject;
|
|
1072
|
-
isUpdateSession: boolean;
|
|
1073
|
-
};
|
|
1037
|
+
state: IState;
|
|
1074
1038
|
options: {
|
|
1075
1039
|
label: any;
|
|
1076
1040
|
value: any;
|
|
@@ -1166,18 +1130,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1166
1130
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
1167
1131
|
ChatMain: import("vue").DefineComponent<{}, {
|
|
1168
1132
|
chatMainRef: import("vue").Ref<HTMLElement | undefined>;
|
|
1169
|
-
state:
|
|
1170
|
-
currentSessionItem: AnyObject;
|
|
1171
|
-
sessionKey: string;
|
|
1172
|
-
userInfo: AnyObject;
|
|
1173
|
-
msgList: AnyObject[];
|
|
1174
|
-
currentMsg: AnyObject;
|
|
1175
|
-
isAppendMsg: boolean;
|
|
1176
|
-
sessionList: AnyObject[];
|
|
1177
|
-
isChangeSession: boolean;
|
|
1178
|
-
updateSessionItem: AnyObject;
|
|
1179
|
-
isUpdateSession: boolean;
|
|
1180
|
-
};
|
|
1133
|
+
state: IState;
|
|
1181
1134
|
setMsgList: (list?: AnyObject[]) => void;
|
|
1182
1135
|
page: number;
|
|
1183
1136
|
getHistoryRecord: () => Promise<void>;
|
|
@@ -1316,26 +1269,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1316
1269
|
required: true;
|
|
1317
1270
|
};
|
|
1318
1271
|
}>>, {}>;
|
|
1319
|
-
images: any[]
|
|
1272
|
+
images: import("vue").Ref<any[]>;
|
|
1320
1273
|
MESSAGE_TYPE: typeof import("./constants").MESSAGE_TYPE;
|
|
1321
1274
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
1322
1275
|
ChatFooter: import("vue").DefineComponent<{}, {
|
|
1323
1276
|
inputRef: import("vue").Ref<HTMLDivElement | undefined>;
|
|
1324
1277
|
content: import("vue").Ref<string>;
|
|
1325
|
-
state:
|
|
1326
|
-
currentSessionItem: AnyObject;
|
|
1327
|
-
sessionKey: string;
|
|
1328
|
-
userInfo: AnyObject;
|
|
1329
|
-
msgList: AnyObject[];
|
|
1330
|
-
currentMsg: AnyObject;
|
|
1331
|
-
isAppendMsg: boolean;
|
|
1332
|
-
sessionList: AnyObject[];
|
|
1333
|
-
isChangeSession: boolean;
|
|
1334
|
-
updateSessionItem: AnyObject;
|
|
1335
|
-
isUpdateSession: boolean;
|
|
1336
|
-
};
|
|
1337
|
-
setCurrentSessionItem: (item: AnyObject) => void;
|
|
1278
|
+
state: IState;
|
|
1338
1279
|
stompClient: import("vue").Ref<ChatSock>;
|
|
1280
|
+
setCurrentSessionItem: (item: AnyObject) => void;
|
|
1339
1281
|
handleKeyDown: (event: KeyboardEvent) => void;
|
|
1340
1282
|
isWrap: (event: KeyboardEvent) => boolean;
|
|
1341
1283
|
handleInput: () => void;
|
|
@@ -1344,15 +1286,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1344
1286
|
NButton: any;
|
|
1345
1287
|
NPopover: any;
|
|
1346
1288
|
NTooltip: any;
|
|
1347
|
-
images: any[]
|
|
1289
|
+
images: import("vue").Ref<any[]>;
|
|
1348
1290
|
alt: string[];
|
|
1349
1291
|
MESSAGE_TYPE: typeof import("./constants").MESSAGE_TYPE;
|
|
1350
1292
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
1351
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("template-click" | "message-
|
|
1352
|
-
token: {
|
|
1353
|
-
type: StringConstructor;
|
|
1354
|
-
required: true;
|
|
1355
|
-
};
|
|
1293
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("template-click" | "unread-message-update")[], "template-click" | "unread-message-update", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1356
1294
|
userId: {
|
|
1357
1295
|
type: StringConstructor;
|
|
1358
1296
|
required: true;
|
|
@@ -1363,7 +1301,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1363
1301
|
};
|
|
1364
1302
|
}>> & {
|
|
1365
1303
|
"onTemplate-click"?: ((...args: any[]) => any) | undefined;
|
|
1366
|
-
"
|
|
1304
|
+
"onUnread-message-update"?: ((...args: any[]) => any) | undefined;
|
|
1367
1305
|
}, {
|
|
1368
1306
|
baseURL: string;
|
|
1369
1307
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,ref as s,reactive as t,provide as o,onBeforeUnmount as
|
|
1
|
+
import{defineComponent as e,ref as s,reactive as t,provide as o,onBeforeUnmount as n,openBlock as r,createElementBlock as i,normalizeStyle as a,unref as c,createVNode as u,withCtx as d,createBlock as m,Fragment as p,createElementVNode as l,renderSlot as h}from"vue";import{NConfigProvider as f,NSpin as v,NLayout as S,NLayoutContent as g}from"naive-ui";import b from"./components/SiderList.vue.js";import y from"./components/ChatHeader.vue.js";import j from"./components/ChatMain.vue.js";import I from"./components/ChatFooter.vue.js";import{ChatSock as _}from"./utils/chatSock.js";import{instanceAxios as k}from"./api/index.js";import{useTheme as M}from"../../../shared/hooks/useTheme.js";import"@vueuse/core";import"date-fns";import{isNumber as L}from"lodash-es";import"@vue/shared";import"../../../shared/utils/index.js";import"@vueuse/shared";import"../../../shared/hooks/selectHooks/useSearchContent.js";import"@vicons/ionicons5";import{SUBSCRIBE_MESSAGE_TYPE as U}from"./constants/index.js";import{InjectionIChatState as x,InjectionIChatStompClient as C,InjectionIChatEmits as N}from"./types/index.js";import"./utils/emoji.js";import{useSession as T}from"./hooks/useSession.js";const q={class:"c-biunique-chat__header"},E={class:"toolbar"};var O=e({__name:"Index",props:{userId:{type:String,required:!0},baseURL:{type:String,default:"/fdp-chat"}},emits:["template-click","unread-message-update"],setup(e,{expose:O,emit:V}){const w=e;k.defaults.baseURL=w.baseURL+"/chat";const A=M(),J=s(!1),R=s(),F=t({currentSessionItem:{},id:"",userInfo:{},msgList:[],currentMsg:{},isAppendMsg:!1,sessionList:[],isChangeSession:!1,updateSessionItem:{},isUpdateSession:!1});function H(){const e={headers:{UserId:w.userId},heartbeatFn:()=>{try{R.value.send("test")}catch(e){R.value.disconnect(),H()}},connectCb:()=>{console.log("连接成功"),R.value.subscribe("/user/topic/single",(({body:e})=>{try{console.log(JSON.parse(e),"订阅新增消息");const s=JSON.parse(e),{messageVo:t,sessionVo:o}=s;switch(s.event){case U.MESSAGE:if(s.messageVo.sender===F.userInfo.id)return;t.sender===F.currentSessionItem.receiver&&(F.currentMsg=t,F.isAppendMsg=!0),F.updateSessionItem={receiver:t.sender,lastMessageSendTime:t.sendTime,sortTime:t.sendTime,lastMessage:t.content.msg,chatMessageType:t.content.chatMessageType},F.isUpdateSession=!0;break;case U.NEW_SESSION:F.updateSessionItem=o,F.isUpdateSession=!0}}catch(e){console.log(e)}})),R.value.subscribe("/app/sessionList",(({body:e})=>{try{const s=JSON.parse(e),{currentUser:t,sessionVos:o}=s;if(console.log("body",s),F.userInfo=t,!(null==o?void 0:o.length))return;F.sessionList=o}catch(e){console.log(e)}}))},errorCb:(e,s)=>{console.log("断线了,正在重连...")}};R.value=new _("/fdp-chat/websocket",e)}return o(x,F),o(C,R),o(N,V),async function(){H()}(),n((()=>{var e;null==(e=R.value)||e.disconnect()})),O({getUnreadData:function(){return F.sessionList.filter((e=>L(e.unreadNum)&&e.unreadNum>0))},entrySession:T(F).entrySession}),(e,s)=>(r(),i("div",{class:"c-biunique-chat",style:a(c(A))},[u(c(f),{abstract:"",namespace:"c-biunique-chat__popover"},{default:d((()=>[J.value?(r(),m(c(v),{key:0,stroke:"#5585f5"})):(r(),i(p,{key:1},[l("div",q,[l("div",E,[h(e.$slots,"toolbar")])]),u(c(S),{class:"c-biunique-chat__body","has-sider":""},{default:d((()=>[u(b),u(c(g),{class:"chat-content"},{default:d((()=>[u(y),u(j),u(I)])),_:1}),h(e.$slots,"external")])),_:3})],64))])),_:3})],4))}});export{O as default};
|
|
@@ -3,20 +3,9 @@ import { MESSAGE_TYPE } from '../constants';
|
|
|
3
3
|
declare const _default: import("vue").DefineComponent<{}, {
|
|
4
4
|
inputRef: import("vue").Ref<HTMLDivElement | undefined>;
|
|
5
5
|
content: import("vue").Ref<string>;
|
|
6
|
-
state:
|
|
7
|
-
currentSessionItem: AnyObject;
|
|
8
|
-
sessionKey: string;
|
|
9
|
-
userInfo: AnyObject;
|
|
10
|
-
msgList: AnyObject[];
|
|
11
|
-
currentMsg: AnyObject;
|
|
12
|
-
isAppendMsg: boolean;
|
|
13
|
-
sessionList: AnyObject[];
|
|
14
|
-
isChangeSession: boolean;
|
|
15
|
-
updateSessionItem: AnyObject;
|
|
16
|
-
isUpdateSession: boolean;
|
|
17
|
-
};
|
|
18
|
-
setCurrentSessionItem: (item: AnyObject) => void;
|
|
6
|
+
state: import("../types").IState;
|
|
19
7
|
stompClient: import("vue").Ref<import("../utils/chatSock").ChatSock>;
|
|
8
|
+
setCurrentSessionItem: (item: AnyObject) => void;
|
|
20
9
|
handleKeyDown: (event: KeyboardEvent) => void;
|
|
21
10
|
isWrap: (event: KeyboardEvent) => boolean;
|
|
22
11
|
handleInput: () => void;
|
|
@@ -25,7 +14,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
25
14
|
NButton: any;
|
|
26
15
|
NPopover: any;
|
|
27
16
|
NTooltip: any;
|
|
28
|
-
images: any[]
|
|
17
|
+
images: import("vue").Ref<any[]>;
|
|
29
18
|
alt: string[];
|
|
30
19
|
MESSAGE_TYPE: typeof MESSAGE_TYPE;
|
|
31
20
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as t,ref as e,
|
|
1
|
+
import{defineComponent as t,ref as e,withDirectives as s,openBlock as n,createElementBlock as i,normalizeStyle as a,unref as o,createElementVNode as r,createVNode as c,withCtx as l,createCommentVNode as u,Fragment as d,renderList as g,createBlock as m,createTextVNode as p,toDisplayString as f,vShow as h}from"vue";import{NPopover as y,NTooltip as v,NButton as M}from"naive-ui";import{format as T}from"date-fns";import{useState as k}from"../hooks/useState.js";import{useSession as x}from"../hooks/useSession.js";import{images as b,alt as E}from"../utils/emoji.js";import{MESSAGE_TYPE as S}from"../constants/index.js";const w={class:"tool-box"},C=r("span",null,[r("i",{class:"chat--iconfont chat--icon-face"})],-1),I={class:"emoji-box"},j=r("span",null,"默认表情",-1),_={class:"list-box"},K=["onClick"],D=["src"],H=[r("i",{class:"chat--iconfont chat--icon-good"},null,-1)],J=r("span",null,[r("i",{class:"chat--iconfont chat--icon-image"})],-1),L=r("span",null,[r("i",{class:"chat--iconfont chat--icon-folder"})],-1),N={class:"btn-box"},O=r("span",{class:"tip"},"Enter 发送, Shift + Enter 换行",-1);var X=t({__name:"ChatFooter",setup(t){const X=e(),A=e(""),{state:B,stompClient:F}=k(),{setCurrentSessionItem:G}=x(B);function R(t){["Enter"].includes(t.key)&&(function(t){return t.altKey||t.ctrlKey||t.metaKey||t.shiftKey}(t)||(t.preventDefault(),z()))}function q(){var t,e;A.value=(null==(e=null==(t=X.value)?void 0:t.innerText)?void 0:e.trim())||""}function z(){if(!(A.value.length>2e3))return A.value?void P({msg:A.value}):console.log("请输入内容");console.log("请控制在2000字以内")}async function P(t){const{chatMessageType:e=S.TEXT,msg:s}=t,n={msg:s,chatMessageType:e};[S.TEXT,S.BLEND].includes(e)&&(X.value.innerHTML="",A.value="");const i=T(new Date,"yyyy-MM-dd HH:mm:ss");B.currentMsg={content:n,sender:B.userInfo.id,id:"",sendTime:i,sending:!0,fail:!1},B.isAppendMsg=!0,G({lastMessageSendTime:i,lastMessage:n.msg,sortTime:i,chatMessageType:n.chatMessageType}),B.isChangeSession=!0;try{F.value.send("/app/chat/send",{},JSON.stringify({chatType:"SINGLE",content:{chatMessageType:n.chatMessageType,msg:n.msg},receiver:B.currentSessionItem.receiver})),B.currentMsg={...B.currentMsg,fail:!1}}catch(t){B.currentMsg={...B.currentMsg,fail:!0}}finally{B.currentMsg={...B.currentMsg,sending:!1}}}return(t,e)=>s((n(),i("section",{class:"chat-footer",style:a({cursor:o(B).id?"default":"not-allowed"})},[r("div",w,[c(o(y),{placement:"top",trigger:"click","show-arrow":!1,"display-directive":"show"},{trigger:l((()=>[C])),default:l((()=>[r("div",I,[u(' <span>最近使用</span>\n\t\t\t\t\t<div class="list-box">\n\t\t\t\t\t\t<template v-for="(img, index) in images" :key="index">\n\t\t\t\t\t\t\t<i>\n\t\t\t\t\t\t\t\t<img :src="img" />\n\t\t\t\t\t\t\t</i>\n\t\t\t\t\t\t</template>\n\t\t\t\t\t</div> '),j,r("div",_,[(n(!0),i(d,null,g(o(b),((t,e)=>(n(),i(d,{key:e},[e>0?(n(),m(o(v),{key:0,"show-arrow":!1,trigger:"hover"},{trigger:l((()=>[r("i",{onClick:()=>P({chatMessageType:o(S).EMOJI,msg:e})},[r("img",{src:t},null,8,D)],8,K)])),default:l((()=>[p(" "+f(o(E)[e-1]||"微笑"),1)])),_:2},1024)):u("v-if",!0)],64)))),128))])])])),_:1}),r("span",{onClick:e[0]||(e[0]=()=>P({chatMessageType:o(S).EMOJI,msg:0}))},H),J,L]),s(r("div",{ref_key:"inputRef",ref:X,class:"input-box",contenteditable:"",onKeydown:R,onInput:q},null,544),[[h,o(B).id]]),r("div",N,[O,c(o(M),{type:"primary",round:"",disabled:!A.value,onClick:z},{default:l((()=>[p("发送")])),_:1},8,["disabled"])])],4)),[[h,o(B).id]])}});export{X as default};
|
|
@@ -1,17 +1,6 @@
|
|
|
1
1
|
import { AnyObject } from '../../../../shared/types';
|
|
2
2
|
declare const _default: import("vue").DefineComponent<{}, {
|
|
3
|
-
state:
|
|
4
|
-
currentSessionItem: AnyObject;
|
|
5
|
-
sessionKey: string;
|
|
6
|
-
userInfo: AnyObject;
|
|
7
|
-
msgList: AnyObject[];
|
|
8
|
-
currentMsg: AnyObject;
|
|
9
|
-
isAppendMsg: boolean;
|
|
10
|
-
sessionList: AnyObject[];
|
|
11
|
-
isChangeSession: boolean;
|
|
12
|
-
updateSessionItem: AnyObject;
|
|
13
|
-
isUpdateSession: boolean;
|
|
14
|
-
};
|
|
3
|
+
state: import("../types").IState;
|
|
15
4
|
showChatSet: import("vue").Ref<boolean>;
|
|
16
5
|
showChatFile: import("vue").Ref<boolean>;
|
|
17
6
|
chatFileType: import("vue").Ref<string>;
|
|
@@ -75,18 +64,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
75
64
|
};
|
|
76
65
|
}>>, {}>;
|
|
77
66
|
ChatSet: import("vue").DefineComponent<{}, {
|
|
78
|
-
state:
|
|
79
|
-
currentSessionItem: AnyObject;
|
|
80
|
-
sessionKey: string;
|
|
81
|
-
userInfo: AnyObject;
|
|
82
|
-
msgList: AnyObject[];
|
|
83
|
-
currentMsg: AnyObject;
|
|
84
|
-
isAppendMsg: boolean;
|
|
85
|
-
sessionList: AnyObject[];
|
|
86
|
-
isChangeSession: boolean;
|
|
87
|
-
updateSessionItem: AnyObject;
|
|
88
|
-
isUpdateSession: boolean;
|
|
89
|
-
};
|
|
67
|
+
state: import("../types").IState;
|
|
90
68
|
setCurrentSessionItem: (item: AnyObject) => void;
|
|
91
69
|
handleTopping: (value: boolean) => Promise<void>;
|
|
92
70
|
NDrawer: any;
|
|
@@ -571,18 +549,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
571
549
|
color: string;
|
|
572
550
|
textColor: string;
|
|
573
551
|
};
|
|
574
|
-
state:
|
|
575
|
-
currentSessionItem: AnyObject;
|
|
576
|
-
sessionKey: string;
|
|
577
|
-
userInfo: AnyObject;
|
|
578
|
-
msgList: AnyObject[];
|
|
579
|
-
currentMsg: AnyObject;
|
|
580
|
-
isAppendMsg: boolean;
|
|
581
|
-
sessionList: AnyObject[];
|
|
582
|
-
isChangeSession: boolean;
|
|
583
|
-
updateSessionItem: AnyObject;
|
|
584
|
-
isUpdateSession: boolean;
|
|
585
|
-
};
|
|
552
|
+
state: import("../types").IState;
|
|
586
553
|
options: {
|
|
587
554
|
label: any;
|
|
588
555
|
value: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,ref as o,computed as a,openBlock as
|
|
1
|
+
import{defineComponent as e,ref as o,computed as a,openBlock as t,createElementBlock as s,Fragment as i,unref as n,createElementVNode as c,createVNode as r,withCtx as l,toDisplayString as u,createCommentVNode as h}from"vue";import{NAvatar as m}from"naive-ui";import{useState as v}from"../hooks/useState.js";import f from"./PersonProfile.vue.js";import d from"./ChatSet.vue.js";import p from"./ChatFile.vue.js";import w from"./ChatRecord.vue.js";const C={key:0,class:"chat-header box-shadow"},_={class:"chat-header__left"},g={class:"name"},k={class:"chat-header__right"};var j=e({__name:"ChatHeader",setup(e){const{state:j}=v(),S=o(!1),y=o(!1),I=o("image"),U=o(!1),x=a((()=>j.currentSessionItem.name||""));function P(e){I.value=e,y.value=!0}return(e,o)=>(t(),s(i,null,[n(j).id?(t(),s("section",C,[c("div",_,[r(f,{"user-info":n(j).currentSessionItem},{trigger:l((()=>[r(n(m),{round:"",size:30,src:n(j).currentSessionItem.avatar},null,8,["src"])])),_:1},8,["user-info"]),c("span",g,u(n(x)),1)]),c("div",k,[c("i",{class:"chat--iconfont chat--icon-image",onClick:o[0]||(o[0]=()=>P("image"))}),c("i",{class:"chat--iconfont chat--icon-folder",onClick:o[1]||(o[1]=()=>P("file"))}),c("i",{class:"chat--iconfont chat--icon-list-search",onClick:o[2]||(o[2]=e=>U.value=!0)}),c("i",{class:"chat--iconfont chat--icon-set",onClick:o[3]||(o[3]=e=>S.value=!0)})])])):h("v-if",!0),r(d,{show:S.value,"onUpdate:show":o[4]||(o[4]=e=>S.value=e)},null,8,["show"]),r(p,{show:y.value,"onUpdate:show":o[5]||(o[5]=e=>y.value=e),type:I.value},null,8,["show","type"]),r(w,{show:U.value,"onUpdate:show":o[6]||(o[6]=e=>U.value=e)},null,8,["show"])],64))}});export{j as default};
|