cnhis-design-vue 3.2.7-beta.1 → 3.2.7-beta.10
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/classification/index.d.ts +39 -0
- package/es/components/classification/src/components/search-filter/index.vue.d.ts +39 -0
- package/es/components/classification/src/components/search-filter/index.vue2.js +1 -1
- package/es/components/classification/src/components/set-classification/index.vue.d.ts +39 -0
- package/es/components/classification/src/components/table-modal/index.vue.d.ts +3 -0
- package/es/components/classification/src/components/table-modal/index.vue2.js +1 -1
- package/es/components/classification/src/index.vue.d.ts +39 -0
- package/es/components/date-picker/index.d.ts +13 -0
- package/es/components/date-picker/src/DatePicker.vue.d.ts +13 -0
- package/es/components/date-picker/src/DatePicker.vue2.js +1 -1
- package/es/components/fabric-chart/src/constants/index.d.ts +3 -1
- package/es/components/fabric-chart/src/constants/index.js +1 -1
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +1 -1
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcessChart.d.ts +8 -3
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcessChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogramChart.d.ts +9 -6
- package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogramChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/newBirthProcess/useNewBirthProcess.js +1 -1
- package/es/components/fabric-chart/src/hooks/newBirthProcess/useNewBirthProcessChart.d.ts +0 -2
- package/es/components/fabric-chart/src/hooks/newBirthProcess/useNewBirthProcessChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.d.ts +8 -3
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useLeft.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.d.ts +8 -3
- package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/useScaleColumn.d.ts +1 -1
- package/es/components/fabric-chart/src/hooks/useScaleColumn.js +1 -1
- package/es/components/fabric-chart/src/interface.d.ts +11 -1
- package/es/components/field-set/src/FieldColor.vue.d.ts +26 -0
- package/es/components/field-set/src/components/condition.vue.d.ts +13 -0
- package/es/components/field-set/src/components/edit-dialog.vue.d.ts +26 -0
- package/es/components/field-set/src/components/edit-filter.vue.d.ts +13 -0
- package/es/components/form-config/index.d.ts +3 -3
- package/es/components/form-config/src/FormConfig.vue.d.ts +3 -3
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +3 -3
- package/es/components/form-render/src/components/renderer/combination/tableCombination.js +1 -1
- package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
- package/es/components/form-render/src/hooks/useFormValidator.js +1 -1
- package/es/components/form-render/src/types/fieldItem.d.ts +2 -1
- package/es/components/form-render/src/utils/schema.d.ts +1 -1
- package/es/components/form-render/src/utils/schema.js +1 -1
- package/es/components/iho-chat/index.d.ts +160 -45
- package/es/components/iho-chat/src/Index.vue.d.ts +160 -45
- package/es/components/iho-chat/src/Index.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatAdd.vue.d.ts +25 -10
- package/es/components/iho-chat/src/components/ChatAdd.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatFooter.vue.d.ts +29 -10
- package/es/components/iho-chat/src/components/ChatFooter.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatHeader.vue.d.ts +39 -11
- package/es/components/iho-chat/src/components/ChatHeader.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatMain.vue.d.ts +21 -5
- package/es/components/iho-chat/src/components/ChatMain.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatRecord.vue.d.ts +13 -0
- package/es/components/iho-chat/src/components/ChatRecord.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ContextMenu.d.ts +15 -2
- package/es/components/iho-chat/src/components/ContextMenu.js +1 -1
- package/es/components/iho-chat/src/components/MultipleVideo.vue.d.ts +25 -10
- package/es/components/iho-chat/src/components/MultipleVideo.vue2.js +1 -1
- package/es/components/iho-chat/src/components/Video.vue2.js +1 -1
- package/es/components/iho-chat/src/hooks/useScrollLoading.d.ts +1 -1
- package/es/components/iho-chat/src/hooks/useScrollLoading.js +1 -1
- package/es/components/iho-chat/src/hooks/useState.js +1 -1
- package/es/components/iho-chat/style/index.css +1 -1
- package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue.d.ts +13 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +13 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.d.ts +20 -2
- package/es/components/index.css +1 -1
- package/es/components/quick-search/src/index.vue2.js +1 -1
- package/es/components/scale-view/src/ScaleView.vue2.js +1 -1
- package/es/components/select-label/src/LabelFormContent.vue2.js +1 -1
- package/es/components/shortcut-setter/index.d.ts +1 -1
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +1 -1
- package/es/components/table-export-field/src/components/ExportModal.vue2.js +1 -1
- package/es/components/table-export-field/src/components/SaveProjectModal.vue2.js +1 -1
- package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue.d.ts +13 -0
- package/es/components/table-filter/src/components/bi-filter/components/Date.vue.d.ts +13 -0
- package/es/components/table-filter/src/components/bi-filter/components/index.d.ts +13 -0
- package/es/components/table-filter/src/components/bi-filter/index.vue.d.ts +13 -0
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +26 -0
- package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +13 -0
- package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +13 -0
- package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue2.js +1 -1
- package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +26 -0
- package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +26 -0
- package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.d.ts +13 -0
- package/es/components/table-filter/src/components/render-widget/components/DateOut.vue.d.ts +13 -0
- package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.d.ts +13 -0
- package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue.d.ts +13 -0
- package/es/components/table-filter/src/components/render-widget/components/Select.vue2.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue2.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue2.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/index.d.ts +52 -0
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +52 -0
- package/es/components/time-picker/index.d.ts +20 -2
- package/es/components/time-picker/src/TimePicker.vue.d.ts +21 -2
- package/es/components/time-picker/src/TimePicker.vue2.js +1 -1
- 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/package.json.js +1 -1
- package/es/shared/utils/business.js +1 -1
- package/package.json +2 -2
- 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
@@ -21,6 +21,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
21
21
|
type: StringConstructor;
|
22
22
|
default: string;
|
23
23
|
};
|
24
|
+
chatBox: {
|
25
|
+
type: BooleanConstructor;
|
26
|
+
default: boolean;
|
27
|
+
};
|
28
|
+
defaultSessionKey: {
|
29
|
+
type: StringConstructor;
|
30
|
+
};
|
24
31
|
}, {
|
25
32
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
26
33
|
token: {
|
@@ -39,6 +46,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
39
46
|
type: StringConstructor;
|
40
47
|
default: string;
|
41
48
|
};
|
49
|
+
chatBox: {
|
50
|
+
type: BooleanConstructor;
|
51
|
+
default: boolean;
|
52
|
+
};
|
53
|
+
defaultSessionKey: {
|
54
|
+
type: StringConstructor;
|
55
|
+
};
|
42
56
|
}>> & {
|
43
57
|
"onTemplate-click"?: ((...args: any[]) => any) | undefined;
|
44
58
|
"onUnread-message-update"?: ((...args: any[]) => any) | undefined;
|
@@ -78,6 +92,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
78
92
|
handleUserSearch: () => Promise<void>;
|
79
93
|
initWebSocket: () => void;
|
80
94
|
subscribeSessionList: () => void;
|
95
|
+
handleDefaultSession: () => void;
|
81
96
|
subscribeGroupMessage: () => void;
|
82
97
|
subscribeMessage: () => void;
|
83
98
|
handleMessage: (messageVo: AnyObject, chatType: string) => Promise<void>;
|
@@ -137,7 +152,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
137
152
|
defaultValue?: undefined;
|
138
153
|
} | {
|
139
154
|
mode: string;
|
140
|
-
defaultValue:
|
155
|
+
defaultValue: AnyObject[];
|
141
156
|
disabledIds?: undefined;
|
142
157
|
}>;
|
143
158
|
handleOpenChatFile: (type: string) => void;
|
@@ -419,6 +434,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
419
434
|
allowedInvalidValue: {
|
420
435
|
type: StringConstructor;
|
421
436
|
};
|
437
|
+
to: {
|
438
|
+
type: PropType<string | false | HTMLElement>;
|
439
|
+
default: string;
|
440
|
+
};
|
422
441
|
}, {
|
423
442
|
attrs: {
|
424
443
|
[x: string]: unknown;
|
@@ -439,6 +458,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
439
458
|
allowedInvalidValue: {
|
440
459
|
type: StringConstructor;
|
441
460
|
};
|
461
|
+
to: {
|
462
|
+
type: PropType<string | false | HTMLElement>;
|
463
|
+
default: string;
|
464
|
+
};
|
442
465
|
}>> & {
|
443
466
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
444
467
|
}>>;
|
@@ -475,10 +498,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
475
498
|
allowedInvalidValue: {
|
476
499
|
type: StringConstructor;
|
477
500
|
};
|
501
|
+
to: {
|
502
|
+
type: PropType<string | false | HTMLElement>;
|
503
|
+
default: string;
|
504
|
+
};
|
478
505
|
}>> & {
|
479
506
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
480
507
|
}, {
|
481
508
|
updateUnchangedValue: boolean;
|
509
|
+
to: string | false | HTMLElement;
|
482
510
|
}>>;
|
483
511
|
formatTime: typeof import("./utils").formatTime;
|
484
512
|
MESSAGE_TYPE: typeof import("./constants").MESSAGE_TYPE;
|
@@ -507,9 +535,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
507
535
|
};
|
508
536
|
disabledIds: {
|
509
537
|
type: PropType<string[]>;
|
538
|
+
default: () => never[];
|
510
539
|
};
|
511
540
|
defaultValue: {
|
512
|
-
type: PropType<
|
541
|
+
type: PropType<AnyObject[]>;
|
513
542
|
};
|
514
543
|
}, {
|
515
544
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
@@ -526,9 +555,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
526
555
|
};
|
527
556
|
disabledIds: {
|
528
557
|
type: PropType<string[]>;
|
558
|
+
default: () => never[];
|
529
559
|
};
|
530
560
|
defaultValue: {
|
531
|
-
type: PropType<
|
561
|
+
type: PropType<AnyObject[]>;
|
532
562
|
};
|
533
563
|
}>> & {
|
534
564
|
onComfirm?: ((...args: any[]) => any) | undefined;
|
@@ -536,24 +566,35 @@ declare const _default: import("vue").DefineComponent<{
|
|
536
566
|
emit: (event: "comfirm", ...args: any[]) => void;
|
537
567
|
state: IState;
|
538
568
|
showModal: import("vue").Ref<boolean>;
|
539
|
-
|
569
|
+
checkedOptions: import("vue").Ref<AnyObject[]>;
|
540
570
|
options: import("vue").Ref<AnyObject[]>;
|
541
571
|
groupName: import("vue").Ref<string>;
|
572
|
+
checkedSourceIds: import("vue").Ref<(string | number)[]>;
|
573
|
+
_disabledIds: import("vue").ComputedRef<any[]>;
|
574
|
+
defaultOptions: import("vue").ComputedRef<{
|
575
|
+
id: any;
|
576
|
+
name: any;
|
577
|
+
avatar: any;
|
578
|
+
}[]>;
|
579
|
+
checkedIds: import("vue").ComputedRef<any[]>;
|
542
580
|
btnDisabled: import("vue").ComputedRef<boolean>;
|
581
|
+
allChecked: import("vue").WritableComputedRef<boolean>;
|
543
582
|
handlePositiveClick: () => Promise<void>;
|
583
|
+
updateSourceIds: (value: (string | number)[], meta: {
|
584
|
+
actionType: "check" | "uncheck";
|
585
|
+
value: string | number;
|
586
|
+
}) => void;
|
544
587
|
renderSourceLabel: ({ option }: {
|
545
588
|
option: AnyObject;
|
546
589
|
}) => JSX.Element;
|
547
|
-
|
548
|
-
|
549
|
-
checkedOptions: AnyObject[];
|
550
|
-
pattern: string;
|
551
|
-
}) => JSX.Element | null;
|
590
|
+
closeTag: (id: string) => void;
|
591
|
+
renderTargetList: () => JSX.Element[] | null;
|
552
592
|
NModal: any;
|
553
593
|
NButton: any;
|
554
|
-
NTransfer: any;
|
555
594
|
NIcon: any;
|
556
595
|
NInput: any;
|
596
|
+
NCheckbox: any;
|
597
|
+
NCheckboxGroup: any;
|
557
598
|
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<{}>>, {}>;
|
558
599
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "comfirm"[], "comfirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
559
600
|
title: {
|
@@ -569,15 +610,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
569
610
|
};
|
570
611
|
disabledIds: {
|
571
612
|
type: PropType<string[]>;
|
613
|
+
default: () => never[];
|
572
614
|
};
|
573
615
|
defaultValue: {
|
574
|
-
type: PropType<
|
616
|
+
type: PropType<AnyObject[]>;
|
575
617
|
};
|
576
618
|
}>> & {
|
577
619
|
onComfirm?: ((...args: any[]) => any) | undefined;
|
578
620
|
}, {
|
579
621
|
mode: string;
|
580
622
|
title: string;
|
623
|
+
disabledIds: string[];
|
581
624
|
}>;
|
582
625
|
PersonAddOutline: 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<{}>>, {}>;
|
583
626
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
@@ -587,7 +630,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
587
630
|
setMsgList: (list?: AnyObject[]) => void;
|
588
631
|
setCurrentSessionItem: (item: AnyObject) => void;
|
589
632
|
isGroupChat: import("vue").ComputedRef<boolean>;
|
633
|
+
contextmenuRef: import("vue").Ref<any>;
|
590
634
|
showMenu: import("vue").Ref<boolean>;
|
635
|
+
menuPosition: any;
|
636
|
+
menuMsgId: import("vue").Ref<any>;
|
591
637
|
pageInfo: {
|
592
638
|
page: number;
|
593
639
|
hasMore: boolean;
|
@@ -598,6 +644,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
598
644
|
'--c-tip-gap': string;
|
599
645
|
}>;
|
600
646
|
getHistoryRecord: () => Promise<void>;
|
647
|
+
handleContextmenu: (event: MouseEvent, msgId: string) => Promise<void>;
|
648
|
+
setMenuPosition: (event: MouseEvent) => Promise<void>;
|
601
649
|
showMessage: (item: AnyObject) => boolean;
|
602
650
|
showTemplateMsg: (item: AnyObject, type: "template" | "system") => boolean | undefined;
|
603
651
|
isTemplate3: (content: AnyObject) => boolean;
|
@@ -768,25 +816,35 @@ declare const _default: import("vue").DefineComponent<{
|
|
768
816
|
type: BooleanConstructor;
|
769
817
|
default: boolean;
|
770
818
|
};
|
771
|
-
|
819
|
+
position: {
|
820
|
+
type: PropType<import("vue").CSSProperties>;
|
821
|
+
};
|
822
|
+
msgId: {
|
823
|
+
type: StringConstructor;
|
824
|
+
};
|
825
|
+
}, () => JSX.Element | null, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "update:show")[], "select" | "update:show", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
772
826
|
show: {
|
773
827
|
type: BooleanConstructor;
|
774
828
|
default: boolean;
|
775
829
|
};
|
830
|
+
position: {
|
831
|
+
type: PropType<import("vue").CSSProperties>;
|
832
|
+
};
|
833
|
+
msgId: {
|
834
|
+
type: StringConstructor;
|
835
|
+
};
|
776
836
|
}>> & {
|
777
|
-
|
837
|
+
onSelect?: ((...args: any[]) => any) | undefined;
|
778
838
|
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
779
839
|
}, {
|
780
840
|
show: boolean;
|
781
841
|
}>;
|
782
|
-
formatTime: typeof import("./utils").formatTime;
|
783
842
|
downloadFile: typeof import("./utils").downloadFile;
|
784
843
|
simplifyMessage: typeof import("./utils").simplifyMessage;
|
785
844
|
isAudioOrVideoMessage: typeof isAudioOrVideoMessage;
|
786
845
|
getAVTime: typeof import("./utils").getAVTime;
|
787
846
|
MESSAGE_TYPE: typeof import("./constants").MESSAGE_TYPE;
|
788
847
|
ChatbubbleEllipsesOutline: 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<{}>>, {}>;
|
789
|
-
EllipsisHorizontal: 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<{}>>, {}>;
|
790
848
|
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<{}>>, {}>;
|
791
849
|
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<{}>>, {}>;
|
792
850
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
@@ -801,6 +859,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
801
859
|
}) => Promise<void>;
|
802
860
|
isGroupChat: import("vue").ComputedRef<boolean>;
|
803
861
|
showEmoji: import("vue").Ref<boolean>;
|
862
|
+
chatAddProps: import("vue").ComputedRef<{
|
863
|
+
options: AnyObject[];
|
864
|
+
defaultValue: AnyObject[];
|
865
|
+
}>;
|
804
866
|
handleCall: (chatMessageType: string, checkedIds?: never[]) => void;
|
805
867
|
handleKeyDown: (event: KeyboardEvent) => void;
|
806
868
|
isWrap: (event: KeyboardEvent) => boolean;
|
@@ -832,9 +894,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
832
894
|
};
|
833
895
|
disabledIds: {
|
834
896
|
type: PropType<string[]>;
|
897
|
+
default: () => never[];
|
835
898
|
};
|
836
899
|
defaultValue: {
|
837
|
-
type: PropType<
|
900
|
+
type: PropType<AnyObject[]>;
|
838
901
|
};
|
839
902
|
}, {
|
840
903
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
@@ -851,9 +914,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
851
914
|
};
|
852
915
|
disabledIds: {
|
853
916
|
type: PropType<string[]>;
|
917
|
+
default: () => never[];
|
854
918
|
};
|
855
919
|
defaultValue: {
|
856
|
-
type: PropType<
|
920
|
+
type: PropType<AnyObject[]>;
|
857
921
|
};
|
858
922
|
}>> & {
|
859
923
|
onComfirm?: ((...args: any[]) => any) | undefined;
|
@@ -861,24 +925,35 @@ declare const _default: import("vue").DefineComponent<{
|
|
861
925
|
emit: (event: "comfirm", ...args: any[]) => void;
|
862
926
|
state: IState;
|
863
927
|
showModal: import("vue").Ref<boolean>;
|
864
|
-
|
928
|
+
checkedOptions: import("vue").Ref<AnyObject[]>;
|
865
929
|
options: import("vue").Ref<AnyObject[]>;
|
866
930
|
groupName: import("vue").Ref<string>;
|
931
|
+
checkedSourceIds: import("vue").Ref<(string | number)[]>;
|
932
|
+
_disabledIds: import("vue").ComputedRef<any[]>;
|
933
|
+
defaultOptions: import("vue").ComputedRef<{
|
934
|
+
id: any;
|
935
|
+
name: any;
|
936
|
+
avatar: any;
|
937
|
+
}[]>;
|
938
|
+
checkedIds: import("vue").ComputedRef<any[]>;
|
867
939
|
btnDisabled: import("vue").ComputedRef<boolean>;
|
940
|
+
allChecked: import("vue").WritableComputedRef<boolean>;
|
868
941
|
handlePositiveClick: () => Promise<void>;
|
942
|
+
updateSourceIds: (value: (string | number)[], meta: {
|
943
|
+
actionType: "check" | "uncheck";
|
944
|
+
value: string | number;
|
945
|
+
}) => void;
|
869
946
|
renderSourceLabel: ({ option }: {
|
870
947
|
option: AnyObject;
|
871
948
|
}) => JSX.Element;
|
872
|
-
|
873
|
-
|
874
|
-
checkedOptions: AnyObject[];
|
875
|
-
pattern: string;
|
876
|
-
}) => JSX.Element | null;
|
949
|
+
closeTag: (id: string) => void;
|
950
|
+
renderTargetList: () => JSX.Element[] | null;
|
877
951
|
NModal: any;
|
878
952
|
NButton: any;
|
879
|
-
NTransfer: any;
|
880
953
|
NIcon: any;
|
881
954
|
NInput: any;
|
955
|
+
NCheckbox: any;
|
956
|
+
NCheckboxGroup: any;
|
882
957
|
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<{}>>, {}>;
|
883
958
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "comfirm"[], "comfirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
884
959
|
title: {
|
@@ -894,15 +969,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
894
969
|
};
|
895
970
|
disabledIds: {
|
896
971
|
type: PropType<string[]>;
|
972
|
+
default: () => never[];
|
897
973
|
};
|
898
974
|
defaultValue: {
|
899
|
-
type: PropType<
|
975
|
+
type: PropType<AnyObject[]>;
|
900
976
|
};
|
901
977
|
}>> & {
|
902
978
|
onComfirm?: ((...args: any[]) => any) | undefined;
|
903
979
|
}, {
|
904
980
|
mode: string;
|
905
981
|
title: string;
|
982
|
+
disabledIds: string[];
|
906
983
|
}>;
|
907
984
|
emojis: {
|
908
985
|
default: string[][];
|
@@ -952,9 +1029,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
952
1029
|
};
|
953
1030
|
disabledIds: {
|
954
1031
|
type: PropType<string[]>;
|
1032
|
+
default: () => never[];
|
955
1033
|
};
|
956
1034
|
defaultValue: {
|
957
|
-
type: PropType<
|
1035
|
+
type: PropType<AnyObject[]>;
|
958
1036
|
};
|
959
1037
|
}, {
|
960
1038
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
@@ -971,9 +1049,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
971
1049
|
};
|
972
1050
|
disabledIds: {
|
973
1051
|
type: PropType<string[]>;
|
1052
|
+
default: () => never[];
|
974
1053
|
};
|
975
1054
|
defaultValue: {
|
976
|
-
type: PropType<
|
1055
|
+
type: PropType<AnyObject[]>;
|
977
1056
|
};
|
978
1057
|
}>> & {
|
979
1058
|
onComfirm?: ((...args: any[]) => any) | undefined;
|
@@ -981,24 +1060,35 @@ declare const _default: import("vue").DefineComponent<{
|
|
981
1060
|
emit: (event: "comfirm", ...args: any[]) => void;
|
982
1061
|
state: IState;
|
983
1062
|
showModal: import("vue").Ref<boolean>;
|
984
|
-
|
1063
|
+
checkedOptions: import("vue").Ref<AnyObject[]>;
|
985
1064
|
options: import("vue").Ref<AnyObject[]>;
|
986
1065
|
groupName: import("vue").Ref<string>;
|
1066
|
+
checkedSourceIds: import("vue").Ref<(string | number)[]>;
|
1067
|
+
_disabledIds: import("vue").ComputedRef<any[]>;
|
1068
|
+
defaultOptions: import("vue").ComputedRef<{
|
1069
|
+
id: any;
|
1070
|
+
name: any;
|
1071
|
+
avatar: any;
|
1072
|
+
}[]>;
|
1073
|
+
checkedIds: import("vue").ComputedRef<any[]>;
|
987
1074
|
btnDisabled: import("vue").ComputedRef<boolean>;
|
1075
|
+
allChecked: import("vue").WritableComputedRef<boolean>;
|
988
1076
|
handlePositiveClick: () => Promise<void>;
|
1077
|
+
updateSourceIds: (value: (string | number)[], meta: {
|
1078
|
+
actionType: "check" | "uncheck";
|
1079
|
+
value: string | number;
|
1080
|
+
}) => void;
|
989
1081
|
renderSourceLabel: ({ option }: {
|
990
1082
|
option: AnyObject;
|
991
1083
|
}) => JSX.Element;
|
992
|
-
|
993
|
-
|
994
|
-
checkedOptions: AnyObject[];
|
995
|
-
pattern: string;
|
996
|
-
}) => JSX.Element | null;
|
1084
|
+
closeTag: (id: string) => void;
|
1085
|
+
renderTargetList: () => JSX.Element[] | null;
|
997
1086
|
NModal: any;
|
998
1087
|
NButton: any;
|
999
|
-
NTransfer: any;
|
1000
1088
|
NIcon: any;
|
1001
1089
|
NInput: any;
|
1090
|
+
NCheckbox: any;
|
1091
|
+
NCheckboxGroup: any;
|
1002
1092
|
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<{}>>, {}>;
|
1003
1093
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "comfirm"[], "comfirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
1004
1094
|
title: {
|
@@ -1014,15 +1104,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
1014
1104
|
};
|
1015
1105
|
disabledIds: {
|
1016
1106
|
type: PropType<string[]>;
|
1107
|
+
default: () => never[];
|
1017
1108
|
};
|
1018
1109
|
defaultValue: {
|
1019
|
-
type: PropType<
|
1110
|
+
type: PropType<AnyObject[]>;
|
1020
1111
|
};
|
1021
1112
|
}>> & {
|
1022
1113
|
onComfirm?: ((...args: any[]) => any) | undefined;
|
1023
1114
|
}, {
|
1024
1115
|
mode: string;
|
1025
1116
|
title: string;
|
1117
|
+
disabledIds: string[];
|
1026
1118
|
}>;
|
1027
1119
|
Video: import("vue").DefineComponent<{}, {
|
1028
1120
|
sendMessage: (message: {
|
@@ -1126,9 +1218,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
1126
1218
|
};
|
1127
1219
|
disabledIds: {
|
1128
1220
|
type: PropType<string[]>;
|
1221
|
+
default: () => never[];
|
1129
1222
|
};
|
1130
1223
|
defaultValue: {
|
1131
|
-
type: PropType<
|
1224
|
+
type: PropType<AnyObject[]>;
|
1132
1225
|
};
|
1133
1226
|
}, {
|
1134
1227
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
@@ -1145,9 +1238,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
1145
1238
|
};
|
1146
1239
|
disabledIds: {
|
1147
1240
|
type: PropType<string[]>;
|
1241
|
+
default: () => never[];
|
1148
1242
|
};
|
1149
1243
|
defaultValue: {
|
1150
|
-
type: PropType<
|
1244
|
+
type: PropType<AnyObject[]>;
|
1151
1245
|
};
|
1152
1246
|
}>> & {
|
1153
1247
|
onComfirm?: ((...args: any[]) => any) | undefined;
|
@@ -1155,24 +1249,35 @@ declare const _default: import("vue").DefineComponent<{
|
|
1155
1249
|
emit: (event: "comfirm", ...args: any[]) => void;
|
1156
1250
|
state: IState;
|
1157
1251
|
showModal: import("vue").Ref<boolean>;
|
1158
|
-
|
1252
|
+
checkedOptions: import("vue").Ref<AnyObject[]>;
|
1159
1253
|
options: import("vue").Ref<AnyObject[]>;
|
1160
1254
|
groupName: import("vue").Ref<string>;
|
1255
|
+
checkedSourceIds: import("vue").Ref<(string | number)[]>;
|
1256
|
+
_disabledIds: import("vue").ComputedRef<any[]>;
|
1257
|
+
defaultOptions: import("vue").ComputedRef<{
|
1258
|
+
id: any;
|
1259
|
+
name: any;
|
1260
|
+
avatar: any;
|
1261
|
+
}[]>;
|
1262
|
+
checkedIds: import("vue").ComputedRef<any[]>;
|
1161
1263
|
btnDisabled: import("vue").ComputedRef<boolean>;
|
1264
|
+
allChecked: import("vue").WritableComputedRef<boolean>;
|
1162
1265
|
handlePositiveClick: () => Promise<void>;
|
1266
|
+
updateSourceIds: (value: (string | number)[], meta: {
|
1267
|
+
actionType: "check" | "uncheck";
|
1268
|
+
value: string | number;
|
1269
|
+
}) => void;
|
1163
1270
|
renderSourceLabel: ({ option }: {
|
1164
1271
|
option: AnyObject;
|
1165
1272
|
}) => JSX.Element;
|
1166
|
-
|
1167
|
-
|
1168
|
-
checkedOptions: AnyObject[];
|
1169
|
-
pattern: string;
|
1170
|
-
}) => JSX.Element | null;
|
1273
|
+
closeTag: (id: string) => void;
|
1274
|
+
renderTargetList: () => JSX.Element[] | null;
|
1171
1275
|
NModal: any;
|
1172
1276
|
NButton: any;
|
1173
|
-
NTransfer: any;
|
1174
1277
|
NIcon: any;
|
1175
1278
|
NInput: any;
|
1279
|
+
NCheckbox: any;
|
1280
|
+
NCheckboxGroup: any;
|
1176
1281
|
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<{}>>, {}>;
|
1177
1282
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "comfirm"[], "comfirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
1178
1283
|
title: {
|
@@ -1188,15 +1293,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
1188
1293
|
};
|
1189
1294
|
disabledIds: {
|
1190
1295
|
type: PropType<string[]>;
|
1296
|
+
default: () => never[];
|
1191
1297
|
};
|
1192
1298
|
defaultValue: {
|
1193
|
-
type: PropType<
|
1299
|
+
type: PropType<AnyObject[]>;
|
1194
1300
|
};
|
1195
1301
|
}>> & {
|
1196
1302
|
onComfirm?: ((...args: any[]) => any) | undefined;
|
1197
1303
|
}, {
|
1198
1304
|
mode: string;
|
1199
1305
|
title: string;
|
1306
|
+
disabledIds: string[];
|
1200
1307
|
}>;
|
1201
1308
|
Call: 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<{}>>, {}>;
|
1202
1309
|
Videocam: 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<{}>>, {}>;
|
@@ -1223,10 +1330,18 @@ declare const _default: import("vue").DefineComponent<{
|
|
1223
1330
|
type: StringConstructor;
|
1224
1331
|
default: string;
|
1225
1332
|
};
|
1333
|
+
chatBox: {
|
1334
|
+
type: BooleanConstructor;
|
1335
|
+
default: boolean;
|
1336
|
+
};
|
1337
|
+
defaultSessionKey: {
|
1338
|
+
type: StringConstructor;
|
1339
|
+
};
|
1226
1340
|
}>> & {
|
1227
1341
|
"onTemplate-click"?: ((...args: any[]) => any) | undefined;
|
1228
1342
|
"onUnread-message-update"?: ((...args: any[]) => any) | undefined;
|
1229
1343
|
}, {
|
1230
1344
|
baseURL: string;
|
1345
|
+
chatBox: boolean;
|
1231
1346
|
}>;
|
1232
1347
|
export default _default;
|
@@ -1 +1 @@
|
|
1
|
-
import{defineComponent as e,ref as s,reactive as o,provide as t,onBeforeUnmount as
|
1
|
+
import{defineComponent as e,ref as s,reactive as o,provide as t,onBeforeUnmount as n,openBlock as r,createElementBlock as i,normalizeStyle as a,unref as c,createVNode as d,withCtx as u,createBlock as l,Fragment as p,createElementVNode as m,renderSlot as h,createCommentVNode as f}from"vue";import{NConfigProvider as g,NSpin as y,NLayout as v,NLayoutContent as S}from"naive-ui";import b from"./components/SiderList.vue.js";import I from"./components/ChatHeader.vue.js";import M from"./components/ChatMain.vue.js";import k from"./components/ChatFooter.vue.js";import T from"./components/ChatSearch.vue.js";import V from"./components/ChatAdd.vue.js";import j from"./components/Video.vue.js";import w from"./components/MultipleVideo.vue.js";import{ChatSock as L}from"./utils/chatSock.js";import{instanceAxios as N,listUserApi as U,readMessageApi as _}from"./api/index.js";import{useTheme as A}from"../../../shared/hooks/useTheme.js";import"@vueuse/core";import"date-fns";import{isArray as C,isNumber as O}from"lodash-es";import"@vue/shared";import"../../../shared/utils/index.js";import"@vueuse/shared";import"../../../shared/hooks/selectHooks/useSearchContent.js";import"@vicons/ionicons5";import{CHAT_TYPE as x,SUBSCRIBE_MESSAGE_TYPE as R,AV_STATUS as G}from"./constants/index.js";import{InjectionIChatState as K,InjectionIChatStompClient as E,InjectionIChatEmits as B}from"./types/index.js";import{isAudioOrVideoMessage as J}from"./utils/index.js";import{useSession as P}from"./hooks/useSession.js";import"trtc-sdk-v5";const $={key:0,class:"iho-chat__header"},q={class:"toolbar"};var z=e({__name:"Index",props:{token:{type:String,required:!0},orgId:{type:[String,Number],required:!0},userId:{type:String,required:!0},baseURL:{type:String,default:"/fdp-chat"},chatBox:{type:Boolean,default:!1},defaultSessionKey:{type:String}},emits:["template-click","unread-message-update"],setup(e,{expose:z,emit:F}){const H=e;N.defaults.baseURL=H.baseURL,N.defaults.headers.Authorization="bearer "+H.token;const D=A(),W=s(!1),Y=s(),Q=o({orgId:H.orgId,currentSessionItem:{},id:"",userInfo:{id:H.userId},msgList:[],currentMsg:{},isAppendMsg:!1,sessionList:[],isChangeSession:!1,updateSessionItem:{},isUpdateSession:!1,currentReferenceMsg:null,showVideo:!1,currentAVMsg:{},userList:[],currentGroupUser:[],showMultipleVideo:!1});t(K,Q),t(E,Y),t(B,F);const{openSession:X,closeSession:Z,getCurrentSession:ee,setSessionList:se,setUpdateSessionItem:oe,setCurrentSessionItem:te}=P(Q),ne=[];function re(){const e={headers:{AccessToken:H.token,UserId:H.userId},heartbeatFn(){try{Y.value.send("test")}catch(e){Y.value.disconnect(),re()}},connectCb(){console.log("连接成功"),Y.value.subscribe("/user/topic/single",(({body:e})=>ae({body:e,chatType:x.SINGLE}))),Y.value.subscribe("/app/sessionList",(({body:e})=>{try{const s=JSON.parse(e),{authentication:o,currentUser:t,sessionVos:n}=s;if(console.log("body",s),Object.assign(Q.userInfo,t,o),!(null==n?void 0:n.length))return;se(n),ne.splice(0,ne.length),ne.push(...n.filter((e=>e.chatType===x.GROUP))),ne.forEach((e=>{Y.value.subscribe(`/topic/group/${e.receiver}`,(({body:e})=>ae({body:e,chatType:x.GROUP})))})),function(){const e=Q.sessionList.find((e=>e.sessionKey===H.defaultSessionKey));e&&X(e)}()}catch(e){console.log(e)}}))},errorCb(e,s){console.log("断线了,正在重连...")}};Y.value=new L("/fdp-chat/websocket",e)}async function ie(e,s){if(Q.currentMsg=e,e.sessionKey===Q.currentSessionItem.sessionKey)return Q.isAppendMsg=!0,e.sender!==Q.userInfo.id&&await _({chatType:s,messageIdSet:[e.id],receiver:Q.userInfo.id,sender:e.sender}),void te({lastMessageSendTime:e.sendTime,lastMessage:e.content,sortTime:e.sendTime,unreadNum:0,lastSenderName:e.senderName});const o={lastMessageSendTime:e.sendTime,sortTime:e.sendTime,lastMessage:e.content,sessionKey:e.sessionKey,lastSenderName:e.senderName};oe(o)}async function ae({body:e,chatType:s}){try{console.log(JSON.parse(e),"订阅新增消息");const o=JSON.parse(e),{messageVo:t,sessionVo:n,chatAvStatusVo:r}=o;switch(o.event){case R.MESSAGE:J(t.content)?!Q.showVideo&&!Q.showMultipleVideo||t.content.avStatus!==G.IN_CALL?(Q.currentMsg=t,Object.assign(Q.currentAVMsg,{strRoomId:t.sessionKey,chatMessageType:t.content.chatMessageType,callMode:t.sender===Q.userInfo.id?"call":"invite",currentMsg:t}),Q.showVideo||Q.showMultipleVideo?ie(t,s):Q.showVideo=!0):(Y.value.send("/app/chat/send",{},JSON.stringify({chatType:x.SINGLE,receiver:t.sender,content:{chatMessageType:t.content.chatMessageType,avStatus:G.CALL_BUSY}})),console.log("用户忙!")):ie(t,s);break;case R.AV_STATUS:Object.assign(Q.currentAVMsg,r,{callMode:r.sender===Q.userInfo.id?"call":"invite",checkedIds:[]}),Q.showVideo||Q.showMultipleVideo?console.log("用户忙!"):Q.showMultipleVideo=!0;break;case R.NEW_SESSION:if(s===x.GROUP)return;oe(n);break;case R.JOIN:if(s===x.GROUP)return;oe(n),Y.value.subscribe(`/topic/group/${n.receiver}`,(({body:e})=>ae({body:e,chatType:x.GROUP})))}}catch(e){console.log(e)}}return async function(){re(),async function(){const e=await U({orgId:Q.orgId,keyword:"",page:1,pageSize:50});if(!C(e.records))return;Q.userList=e.records}()}(),n((()=>{var e;null==(e=Y.value)||e.disconnect()})),z({getUnreadData:function(){return Q.sessionList.filter((e=>O(e.unreadNum)&&e.unreadNum>0))},openSession:X,closeSession:Z,getCurrentSession:ee}),(s,o)=>(r(),i("div",{class:"iho-chat",style:a(c(D))},[d(c(g),{abstract:"",namespace:"iho-chat__popover"},{default:u((()=>[W.value?(r(),l(c(y),{key:0,stroke:"#5585f5"})):(r(),i(p,{key:1},[e.chatBox?f("v-if",!0):(r(),i("div",$,[d(T),d(V,{title:"发起群聊",mode:"create","default-value":[Q.userInfo]},null,8,["default-value"]),m("div",q,[h(s.$slots,"toolbar")])])),d(c(v),{class:"iho-chat__body","has-sider":""},{default:u((()=>[e.chatBox?f("v-if",!0):(r(),l(b,{key:0})),d(c(S),{class:"chat-content"},{default:u((()=>[d(I),d(M),d(k)])),_:1}),h(s.$slots,"external")])),_:3}),Q.showVideo?(r(),l(j,{key:1})):f("v-if",!0),Q.showMultipleVideo?(r(),l(w,{key:2})):f("v-if",!0)],64))])),_:3})],4))}});export{z as default};
|
@@ -14,9 +14,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
14
14
|
};
|
15
15
|
disabledIds: {
|
16
16
|
type: PropType<string[]>;
|
17
|
+
default: () => never[];
|
17
18
|
};
|
18
19
|
defaultValue: {
|
19
|
-
type: PropType<
|
20
|
+
type: PropType<AnyObject[]>;
|
20
21
|
};
|
21
22
|
}, {
|
22
23
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
@@ -33,9 +34,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
33
34
|
};
|
34
35
|
disabledIds: {
|
35
36
|
type: PropType<string[]>;
|
37
|
+
default: () => never[];
|
36
38
|
};
|
37
39
|
defaultValue: {
|
38
|
-
type: PropType<
|
40
|
+
type: PropType<AnyObject[]>;
|
39
41
|
};
|
40
42
|
}>> & {
|
41
43
|
onComfirm?: ((...args: any[]) => any) | undefined;
|
@@ -43,24 +45,35 @@ declare const _default: import("vue").DefineComponent<{
|
|
43
45
|
emit: (event: "comfirm", ...args: any[]) => void;
|
44
46
|
state: import("../types").IState;
|
45
47
|
showModal: import("vue").Ref<boolean>;
|
46
|
-
|
48
|
+
checkedOptions: import("vue").Ref<AnyObject[]>;
|
47
49
|
options: import("vue").Ref<AnyObject[]>;
|
48
50
|
groupName: import("vue").Ref<string>;
|
51
|
+
checkedSourceIds: import("vue").Ref<(string | number)[]>;
|
52
|
+
_disabledIds: import("vue").ComputedRef<any[]>;
|
53
|
+
defaultOptions: import("vue").ComputedRef<{
|
54
|
+
id: any;
|
55
|
+
name: any;
|
56
|
+
avatar: any;
|
57
|
+
}[]>;
|
58
|
+
checkedIds: import("vue").ComputedRef<any[]>;
|
49
59
|
btnDisabled: import("vue").ComputedRef<boolean>;
|
60
|
+
allChecked: import("vue").WritableComputedRef<boolean>;
|
50
61
|
handlePositiveClick: () => Promise<void>;
|
62
|
+
updateSourceIds: (value: (string | number)[], meta: {
|
63
|
+
actionType: 'check' | 'uncheck';
|
64
|
+
value: string | number;
|
65
|
+
}) => void;
|
51
66
|
renderSourceLabel: ({ option }: {
|
52
67
|
option: AnyObject;
|
53
68
|
}) => JSX.Element;
|
54
|
-
|
55
|
-
|
56
|
-
checkedOptions: AnyObject[];
|
57
|
-
pattern: string;
|
58
|
-
}) => JSX.Element | null;
|
69
|
+
closeTag: (id: string) => void;
|
70
|
+
renderTargetList: () => JSX.Element[] | null;
|
59
71
|
NModal: any;
|
60
72
|
NButton: any;
|
61
|
-
NTransfer: any;
|
62
73
|
NIcon: any;
|
63
74
|
NInput: any;
|
75
|
+
NCheckbox: any;
|
76
|
+
NCheckboxGroup: any;
|
64
77
|
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<{}>>, {}>;
|
65
78
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "comfirm"[], "comfirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
66
79
|
title: {
|
@@ -76,14 +89,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
76
89
|
};
|
77
90
|
disabledIds: {
|
78
91
|
type: PropType<string[]>;
|
92
|
+
default: () => never[];
|
79
93
|
};
|
80
94
|
defaultValue: {
|
81
|
-
type: PropType<
|
95
|
+
type: PropType<AnyObject[]>;
|
82
96
|
};
|
83
97
|
}>> & {
|
84
98
|
onComfirm?: ((...args: any[]) => any) | undefined;
|
85
99
|
}, {
|
86
100
|
mode: string;
|
87
101
|
title: string;
|
102
|
+
disabledIds: string[];
|
88
103
|
}>;
|
89
104
|
export default _default;
|