cnhis-design-vue 3.2.2 → 3.2.3-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/es/components/biunique-chat/index.d.ts +217 -3
- package/es/components/biunique-chat/src/Index.vue.d.ts +217 -3
- package/es/components/biunique-chat/src/Index.vue2.js +1 -1
- package/es/components/biunique-chat/src/api/index.d.ts +1 -0
- package/es/components/biunique-chat/src/api/index.js +1 -1
- package/es/components/biunique-chat/src/components/ChatFooter.vue.d.ts +16 -1
- package/es/components/biunique-chat/src/components/ChatFooter.vue2.js +1 -1
- package/es/components/biunique-chat/src/components/ChatHeader.vue2.js +1 -1
- package/es/components/biunique-chat/src/components/ChatMain.vue.d.ts +201 -1
- package/es/components/biunique-chat/src/components/ChatMain.vue2.js +1 -1
- package/es/components/biunique-chat/src/components/SiderList.vue2.js +1 -1
- package/es/components/biunique-chat/src/hooks/useSession.js +1 -1
- package/es/components/biunique-chat/src/hooks/useState.js +1 -1
- package/es/components/biunique-chat/src/types/index.d.ts +1 -1
- 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/button-print/index.d.ts +16 -1
- package/es/components/button-print/src/ButtonPrint.vue.d.ts +16 -1
- package/es/components/button-print/src/ButtonPrint.vue2.js +1 -1
- package/es/components/button-print/src/utils/print.js +1 -1
- package/es/components/callback/src/components/render/popupMaps.d.ts +30 -0
- package/es/components/fabric-chart/index.d.ts +123 -22
- package/es/components/fabric-chart/src/FabricChart.vue.d.ts +115 -26
- package/es/components/fabric-chart/src/FabricChart.vue2.js +1 -1
- package/es/components/fabric-chart/src/components/PopupMenu.js +1 -1
- package/es/components/fabric-chart/src/components/PopupTip.vue.d.ts +79 -19
- package/es/components/fabric-chart/src/components/PopupTip.vue2.js +1 -1
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +1 -1
- package/es/components/fabric-chart/src/hooks/index.d.ts +1 -0
- package/es/components/fabric-chart/src/hooks/index.js +1 -1
- package/es/components/fabric-chart/src/hooks/newBirthProcess/useNewBirthProcess.d.ts +7 -0
- package/es/components/fabric-chart/src/hooks/newBirthProcess/useNewBirthProcess.js +1 -0
- package/es/components/fabric-chart/src/hooks/newBirthProcess/useNewBirthProcessChart.d.ts +10 -0
- package/es/components/fabric-chart/src/hooks/newBirthProcess/useNewBirthProcessChart.js +1 -0
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.d.ts +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useOther.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.d.ts +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +1 -1
- package/es/components/fabric-chart/src/interface.d.ts +7 -3
- package/es/components/fabric-chart/style/index.css +1 -1
- package/es/components/form-config/index.d.ts +82 -0
- package/es/components/form-config/src/FormConfig.vue.d.ts +82 -0
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +28 -0
- package/es/components/form-config/src/components/FormConfigCreator.vue2.js +1 -1
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +40 -0
- package/es/components/form-config/src/components/FormConfigMaterialItem.js +1 -1
- package/es/components/form-config/src/components/renderer/ComplexNode.vue.d.ts +4 -1
- package/es/components/form-config/src/components/renderer/ComplexNode.vue2.js +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-config/style/index.css +1 -1
- package/es/components/form-render/index.d.ts +28 -0
- package/es/components/form-render/src/FormRender.vue.d.ts +28 -0
- package/es/components/form-render/src/FormRender.vue2.js +1 -1
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +28 -0
- package/es/components/form-render/src/components/renderer/formItem.js +1 -1
- package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue.d.ts +129 -0
- package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue2.js +1 -1
- package/es/components/form-render/src/components/renderer/lineBar/index.d.ts +128 -0
- package/es/components/form-render/src/components/renderer/textarea.d.ts +6 -0
- package/es/components/form-render/src/components/renderer/textarea.js +1 -1
- package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
- package/es/components/form-render/src/hooks/useFieldNormalize.d.ts +4 -0
- package/es/components/form-render/src/hooks/useFieldNormalize.js +1 -1
- package/es/components/form-render/src/types/fieldItem.d.ts +2 -0
- package/es/components/form-render/src/types/index.d.ts +2 -0
- package/es/components/form-render/style/index.css +1 -1
- package/es/components/iho-table/index.d.ts +2 -0
- package/es/components/iho-table/src/IhoTable.vue.d.ts +2 -0
- package/es/components/iho-table/src/hooks/tapHooks/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/checkRendererPlugin.js +1 -1
- package/es/components/iho-table/src/plugins/verticalTablePlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/verticalTablePlugin/src/hooks/index.d.ts +1 -24
- package/es/components/iho-table/src/plugins/verticalTablePlugin/src/hooks/index.js +1 -1
- package/es/components/iho-table/src/plugins/verticalTablePlugin/src/hooks/useCurrentColumn.js +1 -1
- package/es/components/iho-table/src/plugins/verticalTablePlugin/src/hooks/useEditCell.js +1 -1
- package/es/components/iho-table/src/plugins/verticalTablePlugin/src/hooks/useEventConvert.js +1 -1
- package/es/components/iho-table/src/plugins/verticalTablePlugin/src/hooks/useTriggerRow.js +1 -1
- package/es/components/iho-table/src/plugins/verticalTablePlugin/src/renderer.js +1 -1
- package/es/components/iho-table/src/plugins/verticalTablePlugin/src/utils.js +1 -1
- package/es/components/iho-table/src/types/index.d.ts +1 -0
- package/es/components/iho-table/style/index.css +1 -1
- package/es/components/index.css +1 -1
- package/es/components/info-header/index.d.ts +66 -0
- package/es/components/info-header/src/InfoHeader.vue.d.ts +66 -0
- package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +2 -0
- package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +2 -0
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +30 -0
- package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +28 -0
- package/es/components/shortcut-setter/index.d.ts +30 -0
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +30 -0
- 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/components/InputNumberSlash/InputNumberSlash.js +1 -1
- package/es/shared/package.json.js +1 -1
- package/package.json +2 -2
|
@@ -12,6 +12,206 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
12
12
|
setScrollToButtom: () => Promise<void>;
|
|
13
13
|
getIntervalMsgTime: (time: string) => string;
|
|
14
14
|
NAvatar: any;
|
|
15
|
+
NImageGroup: import("vue").DefineComponent<{
|
|
16
|
+
showToolbar: {
|
|
17
|
+
type: BooleanConstructor;
|
|
18
|
+
default: boolean;
|
|
19
|
+
};
|
|
20
|
+
showToolbarTooltip: BooleanConstructor;
|
|
21
|
+
theme: import("vue").PropType<import("naive-ui/es/_mixins").Theme<"Image", {
|
|
22
|
+
toolbarIconColor: string;
|
|
23
|
+
toolbarColor: string;
|
|
24
|
+
toolbarBoxShadow: string;
|
|
25
|
+
toolbarBorderRadius: string;
|
|
26
|
+
}, {
|
|
27
|
+
Tooltip: import("naive-ui/es/_mixins").Theme<"Tooltip", {
|
|
28
|
+
borderRadius: string;
|
|
29
|
+
boxShadow: string;
|
|
30
|
+
color: string;
|
|
31
|
+
textColor: string;
|
|
32
|
+
padding: string;
|
|
33
|
+
}, {
|
|
34
|
+
Popover: import("naive-ui/es/_mixins").Theme<"Popover", {
|
|
35
|
+
fontSize: string;
|
|
36
|
+
borderRadius: string;
|
|
37
|
+
color: string;
|
|
38
|
+
dividerColor: string;
|
|
39
|
+
textColor: string;
|
|
40
|
+
boxShadow: string;
|
|
41
|
+
space: string;
|
|
42
|
+
spaceArrow: string;
|
|
43
|
+
arrowOffset: string;
|
|
44
|
+
arrowOffsetVertical: string;
|
|
45
|
+
arrowHeight: string;
|
|
46
|
+
padding: string;
|
|
47
|
+
}, any>;
|
|
48
|
+
}>;
|
|
49
|
+
}>>;
|
|
50
|
+
themeOverrides: import("vue").PropType<import("naive-ui/es/_mixins/use-theme").ExtractThemeOverrides<import("naive-ui/es/_mixins").Theme<"Image", {
|
|
51
|
+
toolbarIconColor: string;
|
|
52
|
+
toolbarColor: string;
|
|
53
|
+
toolbarBoxShadow: string;
|
|
54
|
+
toolbarBorderRadius: string;
|
|
55
|
+
}, {
|
|
56
|
+
Tooltip: import("naive-ui/es/_mixins").Theme<"Tooltip", {
|
|
57
|
+
borderRadius: string;
|
|
58
|
+
boxShadow: string;
|
|
59
|
+
color: string;
|
|
60
|
+
textColor: string;
|
|
61
|
+
padding: string;
|
|
62
|
+
}, {
|
|
63
|
+
Popover: import("naive-ui/es/_mixins").Theme<"Popover", {
|
|
64
|
+
fontSize: string;
|
|
65
|
+
borderRadius: string;
|
|
66
|
+
color: string;
|
|
67
|
+
dividerColor: string;
|
|
68
|
+
textColor: string;
|
|
69
|
+
boxShadow: string;
|
|
70
|
+
space: string;
|
|
71
|
+
spaceArrow: string;
|
|
72
|
+
arrowOffset: string;
|
|
73
|
+
arrowOffsetVertical: string;
|
|
74
|
+
arrowHeight: string;
|
|
75
|
+
padding: string;
|
|
76
|
+
}, any>;
|
|
77
|
+
}>;
|
|
78
|
+
}>>>;
|
|
79
|
+
builtinThemeOverrides: import("vue").PropType<import("naive-ui/es/_mixins/use-theme").ExtractThemeOverrides<import("naive-ui/es/_mixins").Theme<"Image", {
|
|
80
|
+
toolbarIconColor: string;
|
|
81
|
+
toolbarColor: string;
|
|
82
|
+
toolbarBoxShadow: string;
|
|
83
|
+
toolbarBorderRadius: string;
|
|
84
|
+
}, {
|
|
85
|
+
Tooltip: import("naive-ui/es/_mixins").Theme<"Tooltip", {
|
|
86
|
+
borderRadius: string;
|
|
87
|
+
boxShadow: string;
|
|
88
|
+
color: string;
|
|
89
|
+
textColor: string;
|
|
90
|
+
padding: string;
|
|
91
|
+
}, {
|
|
92
|
+
Popover: import("naive-ui/es/_mixins").Theme<"Popover", {
|
|
93
|
+
fontSize: string;
|
|
94
|
+
borderRadius: string;
|
|
95
|
+
color: string;
|
|
96
|
+
dividerColor: string;
|
|
97
|
+
textColor: string;
|
|
98
|
+
boxShadow: string;
|
|
99
|
+
space: string;
|
|
100
|
+
spaceArrow: string;
|
|
101
|
+
arrowOffset: string;
|
|
102
|
+
arrowOffsetVertical: string;
|
|
103
|
+
arrowHeight: string;
|
|
104
|
+
padding: string;
|
|
105
|
+
}, any>;
|
|
106
|
+
}>;
|
|
107
|
+
}>>>;
|
|
108
|
+
}, {
|
|
109
|
+
mergedClsPrefix: import("vue").ComputedRef<string>;
|
|
110
|
+
previewInstRef: import("vue").Ref<{
|
|
111
|
+
setThumbnailEl: (e: HTMLImageElement | null) => void;
|
|
112
|
+
setPreviewSrc: (src?: string | undefined) => void;
|
|
113
|
+
toggleShow: () => void;
|
|
114
|
+
} | null>;
|
|
115
|
+
next: () => void;
|
|
116
|
+
prev: () => void;
|
|
117
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
118
|
+
showToolbar: {
|
|
119
|
+
type: BooleanConstructor;
|
|
120
|
+
default: boolean;
|
|
121
|
+
};
|
|
122
|
+
showToolbarTooltip: BooleanConstructor;
|
|
123
|
+
theme: import("vue").PropType<import("naive-ui/es/_mixins").Theme<"Image", {
|
|
124
|
+
toolbarIconColor: string;
|
|
125
|
+
toolbarColor: string;
|
|
126
|
+
toolbarBoxShadow: string;
|
|
127
|
+
toolbarBorderRadius: string;
|
|
128
|
+
}, {
|
|
129
|
+
Tooltip: import("naive-ui/es/_mixins").Theme<"Tooltip", {
|
|
130
|
+
borderRadius: string;
|
|
131
|
+
boxShadow: string;
|
|
132
|
+
color: string;
|
|
133
|
+
textColor: string;
|
|
134
|
+
padding: string;
|
|
135
|
+
}, {
|
|
136
|
+
Popover: import("naive-ui/es/_mixins").Theme<"Popover", {
|
|
137
|
+
fontSize: string;
|
|
138
|
+
borderRadius: string;
|
|
139
|
+
color: string;
|
|
140
|
+
dividerColor: string;
|
|
141
|
+
textColor: string;
|
|
142
|
+
boxShadow: string;
|
|
143
|
+
space: string;
|
|
144
|
+
spaceArrow: string;
|
|
145
|
+
arrowOffset: string;
|
|
146
|
+
arrowOffsetVertical: string;
|
|
147
|
+
arrowHeight: string;
|
|
148
|
+
padding: string;
|
|
149
|
+
}, any>;
|
|
150
|
+
}>;
|
|
151
|
+
}>>;
|
|
152
|
+
themeOverrides: import("vue").PropType<import("naive-ui/es/_mixins/use-theme").ExtractThemeOverrides<import("naive-ui/es/_mixins").Theme<"Image", {
|
|
153
|
+
toolbarIconColor: string;
|
|
154
|
+
toolbarColor: string;
|
|
155
|
+
toolbarBoxShadow: string;
|
|
156
|
+
toolbarBorderRadius: string;
|
|
157
|
+
}, {
|
|
158
|
+
Tooltip: import("naive-ui/es/_mixins").Theme<"Tooltip", {
|
|
159
|
+
borderRadius: string;
|
|
160
|
+
boxShadow: string;
|
|
161
|
+
color: string;
|
|
162
|
+
textColor: string;
|
|
163
|
+
padding: string;
|
|
164
|
+
}, {
|
|
165
|
+
Popover: import("naive-ui/es/_mixins").Theme<"Popover", {
|
|
166
|
+
fontSize: string;
|
|
167
|
+
borderRadius: string;
|
|
168
|
+
color: string;
|
|
169
|
+
dividerColor: string;
|
|
170
|
+
textColor: string;
|
|
171
|
+
boxShadow: string;
|
|
172
|
+
space: string;
|
|
173
|
+
spaceArrow: string;
|
|
174
|
+
arrowOffset: string;
|
|
175
|
+
arrowOffsetVertical: string;
|
|
176
|
+
arrowHeight: string;
|
|
177
|
+
padding: string;
|
|
178
|
+
}, any>;
|
|
179
|
+
}>;
|
|
180
|
+
}>>>;
|
|
181
|
+
builtinThemeOverrides: import("vue").PropType<import("naive-ui/es/_mixins/use-theme").ExtractThemeOverrides<import("naive-ui/es/_mixins").Theme<"Image", {
|
|
182
|
+
toolbarIconColor: string;
|
|
183
|
+
toolbarColor: string;
|
|
184
|
+
toolbarBoxShadow: string;
|
|
185
|
+
toolbarBorderRadius: string;
|
|
186
|
+
}, {
|
|
187
|
+
Tooltip: import("naive-ui/es/_mixins").Theme<"Tooltip", {
|
|
188
|
+
borderRadius: string;
|
|
189
|
+
boxShadow: string;
|
|
190
|
+
color: string;
|
|
191
|
+
textColor: string;
|
|
192
|
+
padding: string;
|
|
193
|
+
}, {
|
|
194
|
+
Popover: import("naive-ui/es/_mixins").Theme<"Popover", {
|
|
195
|
+
fontSize: string;
|
|
196
|
+
borderRadius: string;
|
|
197
|
+
color: string;
|
|
198
|
+
dividerColor: string;
|
|
199
|
+
textColor: string;
|
|
200
|
+
boxShadow: string;
|
|
201
|
+
space: string;
|
|
202
|
+
spaceArrow: string;
|
|
203
|
+
arrowOffset: string;
|
|
204
|
+
arrowOffsetVertical: string;
|
|
205
|
+
arrowHeight: string;
|
|
206
|
+
padding: string;
|
|
207
|
+
}, any>;
|
|
208
|
+
}>;
|
|
209
|
+
}>>>;
|
|
210
|
+
}>>, {
|
|
211
|
+
showToolbar: boolean;
|
|
212
|
+
showToolbarTooltip: boolean;
|
|
213
|
+
}>;
|
|
214
|
+
NImage: any;
|
|
15
215
|
PersonProfile: import("vue").DefineComponent<{
|
|
16
216
|
userInfo: {
|
|
17
217
|
type: import("vue").PropType<AnyObject>;
|
|
@@ -141,7 +341,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
141
341
|
required: true;
|
|
142
342
|
};
|
|
143
343
|
}>>, {}>;
|
|
144
|
-
images: any[]
|
|
344
|
+
images: import("vue").Ref<any[]>;
|
|
145
345
|
MESSAGE_TYPE: typeof MESSAGE_TYPE;
|
|
146
346
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
147
347
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,ref as t,
|
|
1
|
+
import{defineComponent as e,ref as t,watch as s,openBlock as n,createElementBlock as i,createVNode as o,unref as r,withCtx as a,Fragment as c,renderList as m,normalizeClass as l,toDisplayString as u,createCommentVNode as f,createBlock as d,createElementVNode as p}from"vue";import{NImageGroup as g,NAvatar as y,NImage as v}from"naive-ui";import{useInfiniteScroll as T,promiseTimeout as M}from"@vueuse/core";import{isToday as h,format as _,isYesterday as H}from"date-fns";import{getHistoryRecordApi as k}from"../api/index.js";import{useState as E}from"../hooks/useState.js";import{isNumber as L}from"lodash-es";import A from"./PersonProfile.vue.js";import j from"./MessageTemplate.vue.js";import{images as I}from"../utils/emoji.js";import{MESSAGE_TYPE as w}from"../constants/index.js";const D={key:0,class:"time"},P={class:"message-box"},x=["data-time"],F=["innerHTML"],b=["src"],J=["href"];var K=e({__name:"ChatMain",setup(e){const K=t(),{state:O,setMsgList:R}=E();let S=1;async function Y(){try{const e=await k({sessionKey:O.currentSessionItem.sessionKey,page:S});if(console.log("getHistoryRecord",e,S),!Array.isArray(e))return;if(0===e.length)return console.log("没有更多消息了");R(S>1?[...e,...O.msgList]:e),1===S&&G()}catch(e){console.log(e)}}function z(e){var t;const{chatMessageType:s,msgTemplate:n}=e.content;return s===w.TEMPLATE&&2==(null==(t=null==n?void 0:n.setting)?void 0:t.style.id)}function C(e,t){var s;const n=L(e.sendTime)?e.sendTime:Date.parse(e.sendTime),i=null==(s=O.msgList[t-1])?void 0:s.sendTime;return n-(0===t?0:L(i)?i:Date.parse(i))>3e5}async function G(){var e,t,s;await M(50);const n=null!=(t=null==(e=K.value)?void 0:e.scrollHeight)?t:0;null==(s=K.value)||s.scrollTo({top:n})}function U(e){const t=new Date(e),s=Date.now()-t.getTime();if(s<6e4)return"刚刚";if(s<36e5)return Math.ceil(s/1e3/60)+"分钟前";if(h(t))return"今天 "+_(t,"HH:mm");if(H(t))return"昨天 "+_(t,"HH:mm");{const e=t.getFullYear(),s=(new Date).getFullYear();return _(t,e<s?"yyyy年M月d日 HH:mm":"M月d日 HH:mm")}}return T(K,(()=>{S++,Y()}),{distance:20,direction:"top"}),s((()=>O.id),(e=>{e&&(S=1,Y())}),{immediate:!0}),s((()=>O.isAppendMsg),(e=>{e&&(R([...O.msgList,O.currentMsg]),O.isAppendMsg=!1,G())}),{immediate:!0}),(e,t)=>(n(),i("div",{class:"chat-main",ref_key:"chatMainRef",ref:K},[o(r(g),{"show-toolbar-tooltip":""},{default:a((()=>[(n(!0),i(c,null,m(r(O).msgList,((e,t)=>(n(),i("div",{class:l(["message-item",{"message-item--mine":e.sender==r(O).userInfo.id}]),key:t},[C(e,t)?(n(),i("p",D,u(U(e.sendTime)),1)):f("v-if",!0),z(e)?(n(),d(j,{key:1,data:e},null,8,["data"])):f("v-if",!0),p("div",P,[o(A,{"user-info":e.sender==r(O).userInfo.id?r(O).userInfo:e},{trigger:a((()=>[o(r(y),{round:"",size:38,src:e.senderAvatar},null,8,["src"])])),_:2},1032,["user-info"]),e.content?(n(),i("div",{key:0,class:l(["content",{emoji:e.content.chatMessageType===r(w).EMOJI},{template:e.content.chatMessageType===r(w).TEMPLATE}]),"data-time":e.__time},[e.content.chatMessageType===r(w).TEXT?(n(),i("pre",{key:0,innerHTML:e.__content},null,8,F)):f("v-if",!0),e.content.chatMessageType===r(w).EMOJI?(n(),i("img",{key:1,src:r(I)[e.__content]},null,8,b)):f("v-if",!0),e.content.chatMessageType===r(w).TEMPLATE?(n(),d(j,{key:2,data:e},null,8,["data"])):f("v-if",!0),e.content.chatMessageType===r(w).IMAGE?(n(),d(r(v),{key:3,width:"240",src:e.__content},null,8,["src"])):f("v-if",!0),e.content.chatMessageType===r(w).FILE?(n(),i("a",{key:4,href:e.content.fileUrl},u(e.__content),9,J)):f("v-if",!0)],10,x)):f("v-if",!0)])],2)))),128))])),_:1})],512))}});export{K as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,ref as s,computed as i,watch as
|
|
1
|
+
import{defineComponent as e,ref as s,computed as i,watch as a,withDirectives as n,openBlock as t,createElementBlock as l,normalizeStyle as r,unref as o,createBlock as u,createCommentVNode as d,createElementVNode as v,Fragment as c,renderList as m,withCtx as p,createTextVNode as f,toDisplayString as k,normalizeClass as h,createVNode as y,vShow as _}from"vue";import{NSpin as S,NTag as g,NAvatar as b,NBadge as x}from"naive-ui";import{useState as M}from"../hooks/useState.js";import{useSession as L}from"../hooks/useSession.js";import{vFlexibleResize as C}from"../../../../shared/directive/flexibleResize.js";import{listSort as j,formatTime as T}from"../utils/index.js";const w={class:"sider-list__filter box-shadow"},I=["onClick"],N={class:"avatar-right"},R={class:"name"},z={class:"msg-tip"},H={class:"msg-tip__content"},U=["innerHTML"];var B=e({__name:"SiderList",setup(e){const B="all",E="unread",O=s(300),V=s();s("");const q=s(!1),A=s([{label:"全部",key:B},{label:"未读",key:E}]),D=s("all"),{state:F,emit:G}=M(),{entrySession:J,unreadTotal:K}=L(F),P=i((()=>Math.min(Math.max(O.value,240),360))),Q=i((()=>j(F.sessionList)));function W(e){!e.id||F.sessionList.map((e=>e.id)).includes(e.id)?F.sessionList.forEach((s=>{s.receiver===e.receiver&&(Object.assign(s,e),e.receiver!==F.currentSessionItem.receiver&&s.unreadNum++)})):F.sessionList.push(e)}function X({distance:e}){O.value=O.value+e}function Y(e,s=o(D)){var i;return s===B||(s===E?(null!=(i=e.unreadNum)?i:0)>0:void 0)}return a([()=>F.isChangeSession,()=>F.isUpdateSession],(([e,s])=>{e&&(W(F.currentSessionItem),F.isChangeSession=!1),s&&(W(F.updateSessionItem),F.isUpdateSession=!1)}),{immediate:!0}),a((()=>K.value),(e=>{const s=Q.value.filter((e=>Y(e,E)));G("unread-message-update",e,s)})),(e,s)=>n((t(),l("section",{class:"sider-list",style:r({width:o(P)+"px"})},[q.value?(t(),u(o(S),{key:0,stroke:"#5585f5"})):d("v-if",!0),d(' <n-input v-else placeholder="输入用户名模糊搜索" v-model:value="keyword" @keyup.enter="handleSearch"></n-input> '),v("div",w,[(t(!0),l(c,null,m(A.value,(e=>(t(),u(o(g),{type:D.value===e.key?"info":"default",round:"",bordered:!1,key:e.key,onClick:()=>{return s=e.key,void(D.value=s);var s}},{default:p((()=>[f(k(e.label)+"("+k(o(K))+") ",1)])),_:2},1032,["type","onClick"])))),128))]),v("div",{class:"sider-list__box",ref_key:"listBoxRef",ref:V},[(t(!0),l(c,null,m(o(Q),((e,s)=>n((t(),l("div",{key:s,onClick:()=>o(J)(e),class:h(["sider-list__box__item",{active:e.id===o(F).id}])},[y(o(b),{round:"",size:"large",src:e.avatar},null,8,["src"]),v("div",N,[v("div",R,[v("h4",null,k(e.name),1),v("span",null,k(o(T)(e.lastMessageSendTime).siderMsgTime),1)]),v("div",z,[v("div",H,[v("div",{innerHTML:e.lastMessage},null,8,U)]),y(o(x),{value:e.unreadNum},null,8,["value"])])])],10,I)),[[_,Y(e)]]))),128))],512)],4)),[[o(C),{mode:"VR",onMove:X}]])}});export{B as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{computed as
|
|
1
|
+
import{computed as e}from"vue";import{transformLastMessage as s}from"../utils/index.js";function n(n){function t(e){Object.assign(n.currentSessionItem,e,e.lastMessage?{lastMessage:s(e)}:{}),n.id!==n.currentSessionItem.id&&(n.id=n.currentSessionItem.id)}return{entrySession:function(e){e.unreadNum=0,t(e),n.isChangeSession=!0},setCurrentSessionItem:t,unreadTotal:e((()=>n.sessionList.reduce(((e,s)=>e+ +s.unreadNum),0)))}}export{n as useSession};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{inject as t}from"vue";import{formatTime as e,transformMessage as
|
|
1
|
+
import{inject as t}from"vue";import{formatTime as e,transformMessage as n}from"../utils/index.js";import{InjectionIChatState as s,InjectionIChatStompClient as i,InjectionIChatEmits as m}from"../types/index.js";import{MESSAGE_TYPE as o}from"../constants/index.js";function r(){const r=t(s),c=t(i),T=t(m);return{state:r,setMsgList:function(t=[]){r.msgList=t.map((t=>{var s,i,m;return Object.assign(t,{__time:e(t.sendTime).msgTime,__content:(m=t.content.chatMessageType,[o.TEXT,o.TEXT].includes(m)?n(null==(s=t.content)?void 0:s.msg):null==(i=t.content)?void 0:i.msg)}),t})).sort(((t,e)=>new Date(t.sendTime).getTime()-new Date(e.sendTime).getTime()))},stompClient:c,emit:T}}export{r as useState};
|
|
@@ -3,7 +3,7 @@ import { AnyObject } from '../../../../shared/types';
|
|
|
3
3
|
import { ChatSock } from '../utils/chatSock';
|
|
4
4
|
export declare type IState = {
|
|
5
5
|
currentSessionItem: AnyObject;
|
|
6
|
-
|
|
6
|
+
id: string;
|
|
7
7
|
userInfo: AnyObject;
|
|
8
8
|
msgList: AnyObject[];
|
|
9
9
|
currentMsg: AnyObject;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const images: any[]
|
|
1
|
+
export declare const images: import("vue").Ref<any[]>;
|
|
2
2
|
export declare const alt: string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const s=[],e=Object.assign({"../../../../shared/assets/img/emoji/emotion_001.png":()=>import("../../../../shared/assets/img/emoji/emotion_001.png.js"),"../../../../shared/assets/img/emoji/emotion_002.png":()=>import("../../../../shared/assets/img/emoji/emotion_002.png.js"),"../../../../shared/assets/img/emoji/emotion_003.png":()=>import("../../../../shared/assets/img/emoji/emotion_003.png.js"),"../../../../shared/assets/img/emoji/emotion_004.png":()=>import("../../../../shared/assets/img/emoji/emotion_004.png.js"),"../../../../shared/assets/img/emoji/emotion_005.png":()=>import("../../../../shared/assets/img/emoji/emotion_005.png.js"),"../../../../shared/assets/img/emoji/emotion_006.png":()=>import("../../../../shared/assets/img/emoji/emotion_006.png.js"),"../../../../shared/assets/img/emoji/emotion_007.png":()=>import("../../../../shared/assets/img/emoji/emotion_007.png.js"),"../../../../shared/assets/img/emoji/emotion_008.png":()=>import("../../../../shared/assets/img/emoji/emotion_008.png.js"),"../../../../shared/assets/img/emoji/emotion_009.png":()=>import("../../../../shared/assets/img/emoji/emotion_009.png.js"),"../../../../shared/assets/img/emoji/emotion_010.png":()=>import("../../../../shared/assets/img/emoji/emotion_010.png.js"),"../../../../shared/assets/img/emoji/emotion_011.png":()=>import("../../../../shared/assets/img/emoji/emotion_011.png.js"),"../../../../shared/assets/img/emoji/emotion_012.png":()=>import("../../../../shared/assets/img/emoji/emotion_012.png.js"),"../../../../shared/assets/img/emoji/emotion_013.png":()=>import("../../../../shared/assets/img/emoji/emotion_013.png.js"),"../../../../shared/assets/img/emoji/emotion_014.png":()=>import("../../../../shared/assets/img/emoji/emotion_014.png.js"),"../../../../shared/assets/img/emoji/emotion_015.png":()=>import("../../../../shared/assets/img/emoji/emotion_015.png.js"),"../../../../shared/assets/img/emoji/emotion_016.png":()=>import("../../../../shared/assets/img/emoji/emotion_016.png.js"),"../../../../shared/assets/img/emoji/emotion_017.png":()=>import("../../../../shared/assets/img/emoji/emotion_017.png.js"),"../../../../shared/assets/img/emoji/emotion_018.png":()=>import("../../../../shared/assets/img/emoji/emotion_018.png.js"),"../../../../shared/assets/img/emoji/emotion_019.png":()=>import("../../../../shared/assets/img/emoji/emotion_019.png.js"),"../../../../shared/assets/img/emoji/emotion_020.png":()=>import("../../../../shared/assets/img/emoji/emotion_020.png.js"),"../../../../shared/assets/img/emoji/emotion_021.png":()=>import("../../../../shared/assets/img/emoji/emotion_021.png.js"),"../../../../shared/assets/img/emoji/emotion_022.png":()=>import("../../../../shared/assets/img/emoji/emotion_022.png.js"),"../../../../shared/assets/img/emoji/emotion_023.png":()=>import("../../../../shared/assets/img/emoji/emotion_023.png.js"),"../../../../shared/assets/img/emoji/emotion_024.png":()=>import("../../../../shared/assets/img/emoji/emotion_024.png.js"),"../../../../shared/assets/img/emoji/emotion_025.png":()=>import("../../../../shared/assets/img/emoji/emotion_025.png.js"),"../../../../shared/assets/img/emoji/emotion_026.png":()=>import("../../../../shared/assets/img/emoji/emotion_026.png.js"),"../../../../shared/assets/img/emoji/emotion_027.png":()=>import("../../../../shared/assets/img/emoji/emotion_027.png.js"),"../../../../shared/assets/img/emoji/emotion_028.png":()=>import("../../../../shared/assets/img/emoji/emotion_028.png.js"),"../../../../shared/assets/img/emoji/emotion_029.png":()=>import("../../../../shared/assets/img/emoji/emotion_029.png.js"),"../../../../shared/assets/img/emoji/emotion_030.png":()=>import("../../../../shared/assets/img/emoji/emotion_030.png.js"),"../../../../shared/assets/img/emoji/emotion_031.png":()=>import("../../../../shared/assets/img/emoji/emotion_031.png.js"),"../../../../shared/assets/img/emoji/emotion_032.png":()=>import("../../../../shared/assets/img/emoji/emotion_032.png.js"),"../../../../shared/assets/img/emoji/emotion_033.png":()=>import("../../../../shared/assets/img/emoji/emotion_033.png.js"),"../../../../shared/assets/img/emoji/emotion_034.png":()=>import("../../../../shared/assets/img/emoji/emotion_034.png.js"),"../../../../shared/assets/img/emoji/emotion_035.png":()=>import("../../../../shared/assets/img/emoji/emotion_035.png.js"),"../../../../shared/assets/img/emoji/emotion_036.png":()=>import("../../../../shared/assets/img/emoji/emotion_036.png.js"),"../../../../shared/assets/img/emoji/emotion_037.png":()=>import("../../../../shared/assets/img/emoji/emotion_037.png.js"),"../../../../shared/assets/img/emoji/emotion_038.png":()=>import("../../../../shared/assets/img/emoji/emotion_038.png.js"),"../../../../shared/assets/img/emoji/emotion_039.png":()=>import("../../../../shared/assets/img/emoji/emotion_039.png.js"),"../../../../shared/assets/img/emoji/emotion_040.png":()=>import("../../../../shared/assets/img/emoji/emotion_040.png.js"),"../../../../shared/assets/img/emoji/emotion_041.png":()=>import("../../../../shared/assets/img/emoji/emotion_041.png.js"),"../../../../shared/assets/img/emoji/emotion_042.png":()=>import("../../../../shared/assets/img/emoji/emotion_042.png.js"),"../../../../shared/assets/img/emoji/emotion_043.png":()=>import("../../../../shared/assets/img/emoji/emotion_043.png.js"),"../../../../shared/assets/img/emoji/emotion_044.png":()=>import("../../../../shared/assets/img/emoji/emotion_044.png.js"),"../../../../shared/assets/img/emoji/emotion_045.png":()=>import("../../../../shared/assets/img/emoji/emotion_045.png.js"),"../../../../shared/assets/img/emoji/emotion_046.png":()=>import("../../../../shared/assets/img/emoji/emotion_046.png.js"),"../../../../shared/assets/img/emoji/emotion_047.png":()=>import("../../../../shared/assets/img/emoji/emotion_047.png.js"),"../../../../shared/assets/img/emoji/emotion_048.png":()=>import("../../../../shared/assets/img/emoji/emotion_048.png.js"),"../../../../shared/assets/img/emoji/emotion_049.png":()=>import("../../../../shared/assets/img/emoji/emotion_049.png.js"),"../../../../shared/assets/img/emoji/emotion_050.png":()=>import("../../../../shared/assets/img/emoji/emotion_050.png.js"),"../../../../shared/assets/img/emoji/emotion_051.png":()=>import("../../../../shared/assets/img/emoji/emotion_051.png.js"),"../../../../shared/assets/img/emoji/emotion_052.png":()=>import("../../../../shared/assets/img/emoji/emotion_052.png.js"),"../../../../shared/assets/img/emoji/emotion_053.png":()=>import("../../../../shared/assets/img/emoji/emotion_053.png.js"),"../../../../shared/assets/img/emoji/emotion_054.png":()=>import("../../../../shared/assets/img/emoji/emotion_054.png.js"),"../../../../shared/assets/img/emoji/emotion_055.png":()=>import("../../../../shared/assets/img/emoji/emotion_055.png.js"),"../../../../shared/assets/img/emoji/emotion_056.png":()=>import("../../../../shared/assets/img/emoji/emotion_056.png.js"),"../../../../shared/assets/img/emoji/emotion_057.png":()=>import("../../../../shared/assets/img/emoji/emotion_057.png.js"),"../../../../shared/assets/img/emoji/emotion_058.png":()=>import("../../../../shared/assets/img/emoji/emotion_058.png.js"),"../../../../shared/assets/img/emoji/emotion_059.png":()=>import("../../../../shared/assets/img/emoji/emotion_059.png.js"),"../../../../shared/assets/img/emoji/emotion_060.png":()=>import("../../../../shared/assets/img/emoji/emotion_060.png.js"),"../../../../shared/assets/img/emoji/emotion_061.png":()=>import("../../../../shared/assets/img/emoji/emotion_061.png.js"),"../../../../shared/assets/img/emoji/emotion_062.png":()=>import("../../../../shared/assets/img/emoji/emotion_062.png.js"),"../../../../shared/assets/img/emoji/emotion_063.png":()=>import("../../../../shared/assets/img/emoji/emotion_063.png.js"),"../../../../shared/assets/img/emoji/emotion_064.png":()=>import("../../../../shared/assets/img/emoji/emotion_064.png.js"),"../../../../shared/assets/img/emoji/emotion_065.png":()=>import("../../../../shared/assets/img/emoji/emotion_065.png.js"),"../../../../shared/assets/img/emoji/emotion_066.png":()=>import("../../../../shared/assets/img/emoji/emotion_066.png.js"),"../../../../shared/assets/img/emoji/emotion_067.png":()=>import("../../../../shared/assets/img/emoji/emotion_067.png.js"),"../../../../shared/assets/img/emoji/emotion_068.png":()=>import("../../../../shared/assets/img/emoji/emotion_068.png.js"),"../../../../shared/assets/img/emoji/emotion_069.png":()=>import("../../../../shared/assets/img/emoji/emotion_069.png.js"),"../../../../shared/assets/img/emoji/emotion_070.png":()=>import("../../../../shared/assets/img/emoji/emotion_070.png.js"),"../../../../shared/assets/img/emoji/emotion_071.png":()=>import("../../../../shared/assets/img/emoji/emotion_071.png.js"),"../../../../shared/assets/img/emoji/emotion_072.png":()=>import("../../../../shared/assets/img/emoji/emotion_072.png.js"),"../../../../shared/assets/img/emoji/emotion_073.png":()=>import("../../../../shared/assets/img/emoji/emotion_073.png.js"),"../../../../shared/assets/img/emoji/emotion_074.png":()=>import("../../../../shared/assets/img/emoji/emotion_074.png.js"),"../../../../shared/assets/img/emoji/emotion_075.png":()=>import("../../../../shared/assets/img/emoji/emotion_075.png.js"),"../../../../shared/assets/img/emoji/emotion_076.png":()=>import("../../../../shared/assets/img/emoji/emotion_076.png.js"),"../../../../shared/assets/img/emoji/emotion_077.png":()=>import("../../../../shared/assets/img/emoji/emotion_077.png.js"),"../../../../shared/assets/img/emoji/emotion_078.png":()=>import("../../../../shared/assets/img/emoji/emotion_078.png.js"),"../../../../shared/assets/img/emoji/emotion_079.png":()=>import("../../../../shared/assets/img/emoji/emotion_079.png.js"),"../../../../shared/assets/img/emoji/emotion_080.png":()=>import("../../../../shared/assets/img/emoji/emotion_080.png.js"),"../../../../shared/assets/img/emoji/emotion_081.png":()=>import("../../../../shared/assets/img/emoji/emotion_081.png.js"),"../../../../shared/assets/img/emoji/emotion_082.png":()=>import("../../../../shared/assets/img/emoji/emotion_082.png.js"),"../../../../shared/assets/img/emoji/emotion_083.png":()=>import("../../../../shared/assets/img/emoji/emotion_083.png.js"),"../../../../shared/assets/img/emoji/emotion_084.png":()=>import("../../../../shared/assets/img/emoji/emotion_084.png.js"),"../../../../shared/assets/img/emoji/emotion_085.png":()=>import("../../../../shared/assets/img/emoji/emotion_085.png.js"),"../../../../shared/assets/img/emoji/emotion_086.png":()=>import("../../../../shared/assets/img/emoji/emotion_086.png.js"),"../../../../shared/assets/img/emoji/emotion_087.png":()=>import("../../../../shared/assets/img/emoji/emotion_087.png.js"),"../../../../shared/assets/img/emoji/emotion_088.png":()=>import("../../../../shared/assets/img/emoji/emotion_088.png.js"),"../../../../shared/assets/img/emoji/emotion_089.png":()=>import("../../../../shared/assets/img/emoji/emotion_089.png.js"),"../../../../shared/assets/img/emoji/emotion_090.png":()=>import("../../../../shared/assets/img/emoji/emotion_090.png.js"),"../../../../shared/assets/img/emoji/emotion_091.png":()=>import("../../../../shared/assets/img/emoji/emotion_091.png.js"),"../../../../shared/assets/img/emoji/emotion_092.png":()=>import("../../../../shared/assets/img/emoji/emotion_092.png.js"),"../../../../shared/assets/img/emoji/emotion_093.png":()=>import("../../../../shared/assets/img/emoji/emotion_093.png.js"),"../../../../shared/assets/img/emoji/emotion_094.png":()=>import("../../../../shared/assets/img/emoji/emotion_094.png.js"),"../../../../shared/assets/img/emoji/emotion_095.png":()=>import("../../../../shared/assets/img/emoji/emotion_095.png.js"),"../../../../shared/assets/img/emoji/emotion_096.png":()=>import("../../../../shared/assets/img/emoji/emotion_096.png.js"),"../../../../shared/assets/img/emoji/emotion_097.png":()=>import("../../../../shared/assets/img/emoji/emotion_097.png.js"),"../../../../shared/assets/img/emoji/emotion_098.png":()=>import("../../../../shared/assets/img/emoji/emotion_098.png.js"),"../../../../shared/assets/img/emoji/emotion_099.png":()=>import("../../../../shared/assets/img/emoji/emotion_099.png.js"),"../../../../shared/assets/img/emoji/emotion_100.png":()=>import("../../../../shared/assets/img/emoji/emotion_100.png.js"),"../../../../shared/assets/img/emoji/emotion_101.png":()=>import("../../../../shared/assets/img/emoji/emotion_101.png.js"),"../../../../shared/assets/img/emoji/emotion_102.png":()=>import("../../../../shared/assets/img/emoji/emotion_102.png.js"),"../../../../shared/assets/img/emoji/emotion_103.png":()=>import("../../../../shared/assets/img/emoji/emotion_103.png.js"),"../../../../shared/assets/img/emoji/emotion_104.png":()=>import("../../../../shared/assets/img/emoji/emotion_104.png.js"),"../../../../shared/assets/img/emoji/emotion_105.png":()=>import("../../../../shared/assets/img/emoji/emotion_105.png.js"),"../../../../shared/assets/img/emoji/emotion_106.png":()=>import("../../../../shared/assets/img/emoji/emotion_106.png.js"),"../../../../shared/assets/img/emoji/emotion_107.png":()=>import("../../../../shared/assets/img/emoji/emotion_107.png.js"),"../../../../shared/assets/img/emoji/emotion_108.png":()=>import("../../../../shared/assets/img/emoji/emotion_108.png.js"),"../../../../shared/assets/img/emoji/emotion_109.png":()=>import("../../../../shared/assets/img/emoji/emotion_109.png.js"),"../../../../shared/assets/img/emoji/emotion_110.png":()=>import("../../../../shared/assets/img/emoji/emotion_110.png.js"),"../../../../shared/assets/img/emoji/emotion_111.png":()=>import("../../../../shared/assets/img/emoji/emotion_111.png.js"),"../../../../shared/assets/img/emoji/emotion_112.png":()=>import("../../../../shared/assets/img/emoji/emotion_112.png.js"),"../../../../shared/assets/img/emoji/emotion_113.png":()=>import("../../../../shared/assets/img/emoji/emotion_113.png.js"),"../../../../shared/assets/img/emoji/emotion_114.png":()=>import("../../../../shared/assets/img/emoji/emotion_114.png.js"),"../../../../shared/assets/img/emoji/emotion_115.png":()=>import("../../../../shared/assets/img/emoji/emotion_115.png.js"),"../../../../shared/assets/img/emoji/emotion_116.png":()=>import("../../../../shared/assets/img/emoji/emotion_116.png.js"),"../../../../shared/assets/img/emoji/emotion_117.png":()=>import("../../../../shared/assets/img/emoji/emotion_117.png.js"),"../../../../shared/assets/img/emoji/emotion_118.png":()=>import("../../../../shared/assets/img/emoji/emotion_118.png.js"),"../../../../shared/assets/img/emoji/emotion_119.png":()=>import("../../../../shared/assets/img/emoji/emotion_119.png.js"),"../../../../shared/assets/img/emoji/emotion_120.png":()=>import("../../../../shared/assets/img/emoji/emotion_120.png.js"),"../../../../shared/assets/img/emoji/emotion_121.png":()=>import("../../../../shared/assets/img/emoji/emotion_121.png.js"),"../../../../shared/assets/img/emoji/emotion_122.png":()=>import("../../../../shared/assets/img/emoji/emotion_122.png.js"),"../../../../shared/assets/img/emoji/emotion_123.png":()=>import("../../../../shared/assets/img/emoji/emotion_123.png.js"),"../../../../shared/assets/img/emoji/emotion_124.png":()=>import("../../../../shared/assets/img/emoji/emotion_124.png.js"),"../../../../shared/assets/img/emoji/emotion_125.png":()=>import("../../../../shared/assets/img/emoji/emotion_125.png.js"),"../../../../shared/assets/img/emoji/emotion_126.png":()=>import("../../../../shared/assets/img/emoji/emotion_126.png.js"),"../../../../shared/assets/img/emoji/emotion_127.png":()=>import("../../../../shared/assets/img/emoji/emotion_127.png.js"),"../../../../shared/assets/img/emoji/emotion_128.png":()=>import("../../../../shared/assets/img/emoji/emotion_128.png.js"),"../../../../shared/assets/img/emoji/emotion_129.png":()=>import("../../../../shared/assets/img/emoji/emotion_129.png.js"),"../../../../shared/assets/img/emoji/emotion_130.png":()=>import("../../../../shared/assets/img/emoji/emotion_130.png.js"),"../../../../shared/assets/img/emoji/emotion_131.png":()=>import("../../../../shared/assets/img/emoji/emotion_131.png.js"),"../../../../shared/assets/img/emoji/emotion_132.png":()=>import("../../../../shared/assets/img/emoji/emotion_132.png.js"),"../../../../shared/assets/img/emoji/emotion_133.png":()=>import("../../../../shared/assets/img/emoji/emotion_133.png.js"),"../../../../shared/assets/img/emoji/emotion_134.png":()=>import("../../../../shared/assets/img/emoji/emotion_134.png.js"),"../../../../shared/assets/img/emoji/emotion_135.png":()=>import("../../../../shared/assets/img/emoji/emotion_135.png.js"),"../../../../shared/assets/img/emoji/emotion_136.png":()=>import("../../../../shared/assets/img/emoji/emotion_136.png.js"),"../../../../shared/assets/img/emoji/emotion_137.png":()=>import("../../../../shared/assets/img/emoji/emotion_137.png.js"),"../../../../shared/assets/img/emoji/emotion_138.png":()=>import("../../../../shared/assets/img/emoji/emotion_138.png.js"),"../../../../shared/assets/img/emoji/emotion_139.png":()=>import("../../../../shared/assets/img/emoji/emotion_139.png.js"),"../../../../shared/assets/img/emoji/emotion_140.png":()=>import("../../../../shared/assets/img/emoji/emotion_140.png.js"),"../../../../shared/assets/img/emoji/emotion_141.png":()=>import("../../../../shared/assets/img/emoji/emotion_141.png.js"),"../../../../shared/assets/img/emoji/emotion_142.png":()=>import("../../../../shared/assets/img/emoji/emotion_142.png.js"),"../../../../shared/assets/img/emoji/emotion_143.png":()=>import("../../../../shared/assets/img/emoji/emotion_143.png.js"),"../../../../shared/assets/img/emoji/emotion_144.png":()=>import("../../../../shared/assets/img/emoji/emotion_144.png.js"),"../../../../shared/assets/img/emoji/emotion_145.png":()=>import("../../../../shared/assets/img/emoji/emotion_145.png.js"),"../../../../shared/assets/img/emoji/emotion_146.png":()=>import("../../../../shared/assets/img/emoji/emotion_146.png.js"),"../../../../shared/assets/img/emoji/emotion_147.png":()=>import("../../../../shared/assets/img/emoji/emotion_147.png.js"),"../../../../shared/assets/img/emoji/emotion_148.png":()=>import("../../../../shared/assets/img/emoji/emotion_148.png.js"),"../../../../shared/assets/img/emoji/emotion_149.png":()=>import("../../../../shared/assets/img/emoji/emotion_149.png.js"),"../../../../shared/assets/img/emoji/emotion_150.png":()=>import("../../../../shared/assets/img/emoji/emotion_150.png.js"),"../../../../shared/assets/img/emoji/emotion_151.png":()=>import("../../../../shared/assets/img/emoji/emotion_151.png.js"),"../../../../shared/assets/img/emoji/emotion_152.png":()=>import("../../../../shared/assets/img/emoji/emotion_152.png.js"),"../../../../shared/assets/img/emoji/emotion_153.png":()=>import("../../../../shared/assets/img/emoji/emotion_153.png.js"),"../../../../shared/assets/img/emoji/emotion_154.png":()=>import("../../../../shared/assets/img/emoji/emotion_154.png.js"),"../../../../shared/assets/img/emoji/emotion_155.png":()=>import("../../../../shared/assets/img/emoji/emotion_155.png.js"),"../../../../shared/assets/img/emoji/emotion_156.png":()=>import("../../../../shared/assets/img/emoji/emotion_156.png.js"),"../../../../shared/assets/img/emoji/emotion_157.png":()=>import("../../../../shared/assets/img/emoji/emotion_157.png.js"),"../../../../shared/assets/img/emoji/emotion_158.png":()=>import("../../../../shared/assets/img/emoji/emotion_158.png.js"),"../../../../shared/assets/img/emoji/emotion_159.png":()=>import("../../../../shared/assets/img/emoji/emotion_159.png.js"),"../../../../shared/assets/img/emoji/emotion_160.png":()=>import("../../../../shared/assets/img/emoji/emotion_160.png.js"),"../../../../shared/assets/img/emoji/emotion_161.png":()=>import("../../../../shared/assets/img/emoji/emotion_161.png.js"),"../../../../shared/assets/img/emoji/emotion_162.png":()=>import("../../../../shared/assets/img/emoji/emotion_162.png.js"),"../../../../shared/assets/img/emoji/emotion_163.png":()=>import("../../../../shared/assets/img/emoji/emotion_163.png.js"),"../../../../shared/assets/img/emoji/emotion_164.png":()=>import("../../../../shared/assets/img/emoji/emotion_164.png.js"),"../../../../shared/assets/img/emoji/emotion_165.png":()=>import("../../../../shared/assets/img/emoji/emotion_165.png.js"),"../../../../shared/assets/img/emoji/emotion_166.png":()=>import("../../../../shared/assets/img/emoji/emotion_166.png.js"),"../../../../shared/assets/img/emoji/emotion_167.png":()=>import("../../../../shared/assets/img/emoji/emotion_167.png.js"),"../../../../shared/assets/img/emoji/emotion_168.png":()=>import("../../../../shared/assets/img/emoji/emotion_168.png.js"),"../../../../shared/assets/img/emoji/emotion_169.png":()=>import("../../../../shared/assets/img/emoji/emotion_169.png.js"),"../../../../shared/assets/img/emoji/emotion_170.png":()=>import("../../../../shared/assets/img/emoji/emotion_170.png.js"),"../../../../shared/assets/img/emoji/emotion_171.png":()=>import("../../../../shared/assets/img/emoji/emotion_171.png.js"),"../../../../shared/assets/img/emoji/emotion_172.png":()=>import("../../../../shared/assets/img/emoji/emotion_172.png.js"),"../../../../shared/assets/img/emoji/emotion_173.png":()=>import("../../../../shared/assets/img/emoji/emotion_173.png.js"),"../../../../shared/assets/img/emoji/emotion_174.png":()=>import("../../../../shared/assets/img/emoji/emotion_174.png.js"),"../../../../shared/assets/img/emoji/emotion_175.png":()=>import("../../../../shared/assets/img/emoji/emotion_175.png.js"),"../../../../shared/assets/img/emoji/emotion_176.png":()=>import("../../../../shared/assets/img/emoji/emotion_176.png.js"),"../../../../shared/assets/img/emoji/emotion_177.png":()=>import("../../../../shared/assets/img/emoji/emotion_177.png.js"),"../../../../shared/assets/img/emoji/emotion_178.png":()=>import("../../../../shared/assets/img/emoji/emotion_178.png.js"),"../../../../shared/assets/img/emoji/emotion_179.png":()=>import("../../../../shared/assets/img/emoji/emotion_179.png.js"),"../../../../shared/assets/img/emoji/emotion_180.png":()=>import("../../../../shared/assets/img/emoji/emotion_180.png.js"),"../../../../shared/assets/img/emoji/emotion_181.png":()=>import("../../../../shared/assets/img/emoji/emotion_181.png.js"),"../../../../shared/assets/img/emoji/emotion_182.png":()=>import("../../../../shared/assets/img/emoji/emotion_182.png.js"),"../../../../shared/assets/img/emoji/emotion_183.png":()=>import("../../../../shared/assets/img/emoji/emotion_183.png.js"),"../../../../shared/assets/img/emoji/emotion_184.png":()=>import("../../../../shared/assets/img/emoji/emotion_184.png.js"),"../../../../shared/assets/img/emoji/emotion_185.png":()=>import("../../../../shared/assets/img/emoji/emotion_185.png.js"),"../../../../shared/assets/img/emoji/emotion_186.png":()=>import("../../../../shared/assets/img/emoji/emotion_186.png.js"),"../../../../shared/assets/img/emoji/emotion_187.png":()=>import("../../../../shared/assets/img/emoji/emotion_187.png.js"),"../../../../shared/assets/img/emoji/emotion_188.png":()=>import("../../../../shared/assets/img/emoji/emotion_188.png.js"),"../../../../shared/assets/img/emoji/emotion_189.png":()=>import("../../../../shared/assets/img/emoji/emotion_189.png.js"),"../../../../shared/assets/img/emoji/emotion_190.png":()=>import("../../../../shared/assets/img/emoji/emotion_190.png.js"),"../../../../shared/assets/img/emoji/emotion_191.png":()=>import("../../../../shared/assets/img/emoji/emotion_191.png.js"),"../../../../shared/assets/img/emoji/emotion_192.png":()=>import("../../../../shared/assets/img/emoji/emotion_192.png.js"),"../../../../shared/assets/img/emoji/emotion_193.png":()=>import("../../../../shared/assets/img/emoji/emotion_193.png.js"),"../../../../shared/assets/img/emoji/emotion_194.png":()=>import("../../../../shared/assets/img/emoji/emotion_194.png.js"),"../../../../shared/assets/img/emoji/emotion_195.png":()=>import("../../../../shared/assets/img/emoji/emotion_195.png.js"),"../../../../shared/assets/img/emoji/emotion_196.png":()=>import("../../../../shared/assets/img/emoji/emotion_196.png.js")});for(const o in e){const i=o.replace(/^\.\/(.*)\.\w+$/,"$1").match(/(\d+)\.png$/);e[o]().then((e=>{s[+i[1]]=e.default}))}const o=["微笑","憨笑","色","发呆","老板","流泪","害羞","闭嘴","睡","大哭","尴尬","发怒","调皮","大笑","惊讶","流汗","广播","自信","你强"];export{o as alt,s as images};
|
|
1
|
+
import{ref as s}from"vue";import e from"../../../../shared/assets/img/emoji/666.gif.js";const o=s([]),i=Object.assign({"../../../../shared/assets/img/emoji/emotion_001.png":()=>import("../../../../shared/assets/img/emoji/emotion_001.png.js"),"../../../../shared/assets/img/emoji/emotion_002.png":()=>import("../../../../shared/assets/img/emoji/emotion_002.png.js"),"../../../../shared/assets/img/emoji/emotion_003.png":()=>import("../../../../shared/assets/img/emoji/emotion_003.png.js"),"../../../../shared/assets/img/emoji/emotion_004.png":()=>import("../../../../shared/assets/img/emoji/emotion_004.png.js"),"../../../../shared/assets/img/emoji/emotion_005.png":()=>import("../../../../shared/assets/img/emoji/emotion_005.png.js"),"../../../../shared/assets/img/emoji/emotion_006.png":()=>import("../../../../shared/assets/img/emoji/emotion_006.png.js"),"../../../../shared/assets/img/emoji/emotion_007.png":()=>import("../../../../shared/assets/img/emoji/emotion_007.png.js"),"../../../../shared/assets/img/emoji/emotion_008.png":()=>import("../../../../shared/assets/img/emoji/emotion_008.png.js"),"../../../../shared/assets/img/emoji/emotion_009.png":()=>import("../../../../shared/assets/img/emoji/emotion_009.png.js"),"../../../../shared/assets/img/emoji/emotion_010.png":()=>import("../../../../shared/assets/img/emoji/emotion_010.png.js"),"../../../../shared/assets/img/emoji/emotion_011.png":()=>import("../../../../shared/assets/img/emoji/emotion_011.png.js"),"../../../../shared/assets/img/emoji/emotion_012.png":()=>import("../../../../shared/assets/img/emoji/emotion_012.png.js"),"../../../../shared/assets/img/emoji/emotion_013.png":()=>import("../../../../shared/assets/img/emoji/emotion_013.png.js"),"../../../../shared/assets/img/emoji/emotion_014.png":()=>import("../../../../shared/assets/img/emoji/emotion_014.png.js"),"../../../../shared/assets/img/emoji/emotion_015.png":()=>import("../../../../shared/assets/img/emoji/emotion_015.png.js"),"../../../../shared/assets/img/emoji/emotion_016.png":()=>import("../../../../shared/assets/img/emoji/emotion_016.png.js"),"../../../../shared/assets/img/emoji/emotion_017.png":()=>import("../../../../shared/assets/img/emoji/emotion_017.png.js"),"../../../../shared/assets/img/emoji/emotion_018.png":()=>import("../../../../shared/assets/img/emoji/emotion_018.png.js"),"../../../../shared/assets/img/emoji/emotion_019.png":()=>import("../../../../shared/assets/img/emoji/emotion_019.png.js"),"../../../../shared/assets/img/emoji/emotion_020.png":()=>import("../../../../shared/assets/img/emoji/emotion_020.png.js"),"../../../../shared/assets/img/emoji/emotion_021.png":()=>import("../../../../shared/assets/img/emoji/emotion_021.png.js"),"../../../../shared/assets/img/emoji/emotion_022.png":()=>import("../../../../shared/assets/img/emoji/emotion_022.png.js"),"../../../../shared/assets/img/emoji/emotion_023.png":()=>import("../../../../shared/assets/img/emoji/emotion_023.png.js"),"../../../../shared/assets/img/emoji/emotion_024.png":()=>import("../../../../shared/assets/img/emoji/emotion_024.png.js"),"../../../../shared/assets/img/emoji/emotion_025.png":()=>import("../../../../shared/assets/img/emoji/emotion_025.png.js"),"../../../../shared/assets/img/emoji/emotion_026.png":()=>import("../../../../shared/assets/img/emoji/emotion_026.png.js"),"../../../../shared/assets/img/emoji/emotion_027.png":()=>import("../../../../shared/assets/img/emoji/emotion_027.png.js"),"../../../../shared/assets/img/emoji/emotion_028.png":()=>import("../../../../shared/assets/img/emoji/emotion_028.png.js"),"../../../../shared/assets/img/emoji/emotion_029.png":()=>import("../../../../shared/assets/img/emoji/emotion_029.png.js"),"../../../../shared/assets/img/emoji/emotion_030.png":()=>import("../../../../shared/assets/img/emoji/emotion_030.png.js"),"../../../../shared/assets/img/emoji/emotion_031.png":()=>import("../../../../shared/assets/img/emoji/emotion_031.png.js"),"../../../../shared/assets/img/emoji/emotion_032.png":()=>import("../../../../shared/assets/img/emoji/emotion_032.png.js"),"../../../../shared/assets/img/emoji/emotion_033.png":()=>import("../../../../shared/assets/img/emoji/emotion_033.png.js"),"../../../../shared/assets/img/emoji/emotion_034.png":()=>import("../../../../shared/assets/img/emoji/emotion_034.png.js"),"../../../../shared/assets/img/emoji/emotion_035.png":()=>import("../../../../shared/assets/img/emoji/emotion_035.png.js"),"../../../../shared/assets/img/emoji/emotion_036.png":()=>import("../../../../shared/assets/img/emoji/emotion_036.png.js"),"../../../../shared/assets/img/emoji/emotion_037.png":()=>import("../../../../shared/assets/img/emoji/emotion_037.png.js"),"../../../../shared/assets/img/emoji/emotion_038.png":()=>import("../../../../shared/assets/img/emoji/emotion_038.png.js"),"../../../../shared/assets/img/emoji/emotion_039.png":()=>import("../../../../shared/assets/img/emoji/emotion_039.png.js"),"../../../../shared/assets/img/emoji/emotion_040.png":()=>import("../../../../shared/assets/img/emoji/emotion_040.png.js"),"../../../../shared/assets/img/emoji/emotion_041.png":()=>import("../../../../shared/assets/img/emoji/emotion_041.png.js"),"../../../../shared/assets/img/emoji/emotion_042.png":()=>import("../../../../shared/assets/img/emoji/emotion_042.png.js"),"../../../../shared/assets/img/emoji/emotion_043.png":()=>import("../../../../shared/assets/img/emoji/emotion_043.png.js"),"../../../../shared/assets/img/emoji/emotion_044.png":()=>import("../../../../shared/assets/img/emoji/emotion_044.png.js"),"../../../../shared/assets/img/emoji/emotion_045.png":()=>import("../../../../shared/assets/img/emoji/emotion_045.png.js"),"../../../../shared/assets/img/emoji/emotion_046.png":()=>import("../../../../shared/assets/img/emoji/emotion_046.png.js"),"../../../../shared/assets/img/emoji/emotion_047.png":()=>import("../../../../shared/assets/img/emoji/emotion_047.png.js"),"../../../../shared/assets/img/emoji/emotion_048.png":()=>import("../../../../shared/assets/img/emoji/emotion_048.png.js"),"../../../../shared/assets/img/emoji/emotion_049.png":()=>import("../../../../shared/assets/img/emoji/emotion_049.png.js"),"../../../../shared/assets/img/emoji/emotion_050.png":()=>import("../../../../shared/assets/img/emoji/emotion_050.png.js"),"../../../../shared/assets/img/emoji/emotion_051.png":()=>import("../../../../shared/assets/img/emoji/emotion_051.png.js"),"../../../../shared/assets/img/emoji/emotion_052.png":()=>import("../../../../shared/assets/img/emoji/emotion_052.png.js"),"../../../../shared/assets/img/emoji/emotion_053.png":()=>import("../../../../shared/assets/img/emoji/emotion_053.png.js"),"../../../../shared/assets/img/emoji/emotion_054.png":()=>import("../../../../shared/assets/img/emoji/emotion_054.png.js"),"../../../../shared/assets/img/emoji/emotion_055.png":()=>import("../../../../shared/assets/img/emoji/emotion_055.png.js"),"../../../../shared/assets/img/emoji/emotion_056.png":()=>import("../../../../shared/assets/img/emoji/emotion_056.png.js"),"../../../../shared/assets/img/emoji/emotion_057.png":()=>import("../../../../shared/assets/img/emoji/emotion_057.png.js"),"../../../../shared/assets/img/emoji/emotion_058.png":()=>import("../../../../shared/assets/img/emoji/emotion_058.png.js"),"../../../../shared/assets/img/emoji/emotion_059.png":()=>import("../../../../shared/assets/img/emoji/emotion_059.png.js"),"../../../../shared/assets/img/emoji/emotion_060.png":()=>import("../../../../shared/assets/img/emoji/emotion_060.png.js"),"../../../../shared/assets/img/emoji/emotion_061.png":()=>import("../../../../shared/assets/img/emoji/emotion_061.png.js"),"../../../../shared/assets/img/emoji/emotion_062.png":()=>import("../../../../shared/assets/img/emoji/emotion_062.png.js"),"../../../../shared/assets/img/emoji/emotion_063.png":()=>import("../../../../shared/assets/img/emoji/emotion_063.png.js"),"../../../../shared/assets/img/emoji/emotion_064.png":()=>import("../../../../shared/assets/img/emoji/emotion_064.png.js"),"../../../../shared/assets/img/emoji/emotion_065.png":()=>import("../../../../shared/assets/img/emoji/emotion_065.png.js"),"../../../../shared/assets/img/emoji/emotion_066.png":()=>import("../../../../shared/assets/img/emoji/emotion_066.png.js"),"../../../../shared/assets/img/emoji/emotion_067.png":()=>import("../../../../shared/assets/img/emoji/emotion_067.png.js"),"../../../../shared/assets/img/emoji/emotion_068.png":()=>import("../../../../shared/assets/img/emoji/emotion_068.png.js"),"../../../../shared/assets/img/emoji/emotion_069.png":()=>import("../../../../shared/assets/img/emoji/emotion_069.png.js"),"../../../../shared/assets/img/emoji/emotion_070.png":()=>import("../../../../shared/assets/img/emoji/emotion_070.png.js"),"../../../../shared/assets/img/emoji/emotion_071.png":()=>import("../../../../shared/assets/img/emoji/emotion_071.png.js"),"../../../../shared/assets/img/emoji/emotion_072.png":()=>import("../../../../shared/assets/img/emoji/emotion_072.png.js"),"../../../../shared/assets/img/emoji/emotion_073.png":()=>import("../../../../shared/assets/img/emoji/emotion_073.png.js"),"../../../../shared/assets/img/emoji/emotion_074.png":()=>import("../../../../shared/assets/img/emoji/emotion_074.png.js"),"../../../../shared/assets/img/emoji/emotion_075.png":()=>import("../../../../shared/assets/img/emoji/emotion_075.png.js"),"../../../../shared/assets/img/emoji/emotion_076.png":()=>import("../../../../shared/assets/img/emoji/emotion_076.png.js"),"../../../../shared/assets/img/emoji/emotion_077.png":()=>import("../../../../shared/assets/img/emoji/emotion_077.png.js"),"../../../../shared/assets/img/emoji/emotion_078.png":()=>import("../../../../shared/assets/img/emoji/emotion_078.png.js"),"../../../../shared/assets/img/emoji/emotion_079.png":()=>import("../../../../shared/assets/img/emoji/emotion_079.png.js"),"../../../../shared/assets/img/emoji/emotion_080.png":()=>import("../../../../shared/assets/img/emoji/emotion_080.png.js"),"../../../../shared/assets/img/emoji/emotion_081.png":()=>import("../../../../shared/assets/img/emoji/emotion_081.png.js"),"../../../../shared/assets/img/emoji/emotion_082.png":()=>import("../../../../shared/assets/img/emoji/emotion_082.png.js"),"../../../../shared/assets/img/emoji/emotion_083.png":()=>import("../../../../shared/assets/img/emoji/emotion_083.png.js"),"../../../../shared/assets/img/emoji/emotion_084.png":()=>import("../../../../shared/assets/img/emoji/emotion_084.png.js"),"../../../../shared/assets/img/emoji/emotion_085.png":()=>import("../../../../shared/assets/img/emoji/emotion_085.png.js"),"../../../../shared/assets/img/emoji/emotion_086.png":()=>import("../../../../shared/assets/img/emoji/emotion_086.png.js"),"../../../../shared/assets/img/emoji/emotion_087.png":()=>import("../../../../shared/assets/img/emoji/emotion_087.png.js"),"../../../../shared/assets/img/emoji/emotion_088.png":()=>import("../../../../shared/assets/img/emoji/emotion_088.png.js"),"../../../../shared/assets/img/emoji/emotion_089.png":()=>import("../../../../shared/assets/img/emoji/emotion_089.png.js"),"../../../../shared/assets/img/emoji/emotion_090.png":()=>import("../../../../shared/assets/img/emoji/emotion_090.png.js"),"../../../../shared/assets/img/emoji/emotion_091.png":()=>import("../../../../shared/assets/img/emoji/emotion_091.png.js"),"../../../../shared/assets/img/emoji/emotion_092.png":()=>import("../../../../shared/assets/img/emoji/emotion_092.png.js"),"../../../../shared/assets/img/emoji/emotion_093.png":()=>import("../../../../shared/assets/img/emoji/emotion_093.png.js"),"../../../../shared/assets/img/emoji/emotion_094.png":()=>import("../../../../shared/assets/img/emoji/emotion_094.png.js"),"../../../../shared/assets/img/emoji/emotion_095.png":()=>import("../../../../shared/assets/img/emoji/emotion_095.png.js"),"../../../../shared/assets/img/emoji/emotion_096.png":()=>import("../../../../shared/assets/img/emoji/emotion_096.png.js"),"../../../../shared/assets/img/emoji/emotion_097.png":()=>import("../../../../shared/assets/img/emoji/emotion_097.png.js"),"../../../../shared/assets/img/emoji/emotion_098.png":()=>import("../../../../shared/assets/img/emoji/emotion_098.png.js"),"../../../../shared/assets/img/emoji/emotion_099.png":()=>import("../../../../shared/assets/img/emoji/emotion_099.png.js"),"../../../../shared/assets/img/emoji/emotion_100.png":()=>import("../../../../shared/assets/img/emoji/emotion_100.png.js"),"../../../../shared/assets/img/emoji/emotion_101.png":()=>import("../../../../shared/assets/img/emoji/emotion_101.png.js"),"../../../../shared/assets/img/emoji/emotion_102.png":()=>import("../../../../shared/assets/img/emoji/emotion_102.png.js"),"../../../../shared/assets/img/emoji/emotion_103.png":()=>import("../../../../shared/assets/img/emoji/emotion_103.png.js"),"../../../../shared/assets/img/emoji/emotion_104.png":()=>import("../../../../shared/assets/img/emoji/emotion_104.png.js"),"../../../../shared/assets/img/emoji/emotion_105.png":()=>import("../../../../shared/assets/img/emoji/emotion_105.png.js"),"../../../../shared/assets/img/emoji/emotion_106.png":()=>import("../../../../shared/assets/img/emoji/emotion_106.png.js"),"../../../../shared/assets/img/emoji/emotion_107.png":()=>import("../../../../shared/assets/img/emoji/emotion_107.png.js"),"../../../../shared/assets/img/emoji/emotion_108.png":()=>import("../../../../shared/assets/img/emoji/emotion_108.png.js"),"../../../../shared/assets/img/emoji/emotion_109.png":()=>import("../../../../shared/assets/img/emoji/emotion_109.png.js"),"../../../../shared/assets/img/emoji/emotion_110.png":()=>import("../../../../shared/assets/img/emoji/emotion_110.png.js"),"../../../../shared/assets/img/emoji/emotion_111.png":()=>import("../../../../shared/assets/img/emoji/emotion_111.png.js"),"../../../../shared/assets/img/emoji/emotion_112.png":()=>import("../../../../shared/assets/img/emoji/emotion_112.png.js"),"../../../../shared/assets/img/emoji/emotion_113.png":()=>import("../../../../shared/assets/img/emoji/emotion_113.png.js"),"../../../../shared/assets/img/emoji/emotion_114.png":()=>import("../../../../shared/assets/img/emoji/emotion_114.png.js"),"../../../../shared/assets/img/emoji/emotion_115.png":()=>import("../../../../shared/assets/img/emoji/emotion_115.png.js"),"../../../../shared/assets/img/emoji/emotion_116.png":()=>import("../../../../shared/assets/img/emoji/emotion_116.png.js"),"../../../../shared/assets/img/emoji/emotion_117.png":()=>import("../../../../shared/assets/img/emoji/emotion_117.png.js"),"../../../../shared/assets/img/emoji/emotion_118.png":()=>import("../../../../shared/assets/img/emoji/emotion_118.png.js"),"../../../../shared/assets/img/emoji/emotion_119.png":()=>import("../../../../shared/assets/img/emoji/emotion_119.png.js"),"../../../../shared/assets/img/emoji/emotion_120.png":()=>import("../../../../shared/assets/img/emoji/emotion_120.png.js"),"../../../../shared/assets/img/emoji/emotion_121.png":()=>import("../../../../shared/assets/img/emoji/emotion_121.png.js"),"../../../../shared/assets/img/emoji/emotion_122.png":()=>import("../../../../shared/assets/img/emoji/emotion_122.png.js"),"../../../../shared/assets/img/emoji/emotion_123.png":()=>import("../../../../shared/assets/img/emoji/emotion_123.png.js"),"../../../../shared/assets/img/emoji/emotion_124.png":()=>import("../../../../shared/assets/img/emoji/emotion_124.png.js"),"../../../../shared/assets/img/emoji/emotion_125.png":()=>import("../../../../shared/assets/img/emoji/emotion_125.png.js"),"../../../../shared/assets/img/emoji/emotion_126.png":()=>import("../../../../shared/assets/img/emoji/emotion_126.png.js"),"../../../../shared/assets/img/emoji/emotion_127.png":()=>import("../../../../shared/assets/img/emoji/emotion_127.png.js"),"../../../../shared/assets/img/emoji/emotion_128.png":()=>import("../../../../shared/assets/img/emoji/emotion_128.png.js"),"../../../../shared/assets/img/emoji/emotion_129.png":()=>import("../../../../shared/assets/img/emoji/emotion_129.png.js"),"../../../../shared/assets/img/emoji/emotion_130.png":()=>import("../../../../shared/assets/img/emoji/emotion_130.png.js"),"../../../../shared/assets/img/emoji/emotion_131.png":()=>import("../../../../shared/assets/img/emoji/emotion_131.png.js"),"../../../../shared/assets/img/emoji/emotion_132.png":()=>import("../../../../shared/assets/img/emoji/emotion_132.png.js"),"../../../../shared/assets/img/emoji/emotion_133.png":()=>import("../../../../shared/assets/img/emoji/emotion_133.png.js"),"../../../../shared/assets/img/emoji/emotion_134.png":()=>import("../../../../shared/assets/img/emoji/emotion_134.png.js"),"../../../../shared/assets/img/emoji/emotion_135.png":()=>import("../../../../shared/assets/img/emoji/emotion_135.png.js"),"../../../../shared/assets/img/emoji/emotion_136.png":()=>import("../../../../shared/assets/img/emoji/emotion_136.png.js"),"../../../../shared/assets/img/emoji/emotion_137.png":()=>import("../../../../shared/assets/img/emoji/emotion_137.png.js"),"../../../../shared/assets/img/emoji/emotion_138.png":()=>import("../../../../shared/assets/img/emoji/emotion_138.png.js"),"../../../../shared/assets/img/emoji/emotion_139.png":()=>import("../../../../shared/assets/img/emoji/emotion_139.png.js"),"../../../../shared/assets/img/emoji/emotion_140.png":()=>import("../../../../shared/assets/img/emoji/emotion_140.png.js"),"../../../../shared/assets/img/emoji/emotion_141.png":()=>import("../../../../shared/assets/img/emoji/emotion_141.png.js"),"../../../../shared/assets/img/emoji/emotion_142.png":()=>import("../../../../shared/assets/img/emoji/emotion_142.png.js"),"../../../../shared/assets/img/emoji/emotion_143.png":()=>import("../../../../shared/assets/img/emoji/emotion_143.png.js"),"../../../../shared/assets/img/emoji/emotion_144.png":()=>import("../../../../shared/assets/img/emoji/emotion_144.png.js"),"../../../../shared/assets/img/emoji/emotion_145.png":()=>import("../../../../shared/assets/img/emoji/emotion_145.png.js"),"../../../../shared/assets/img/emoji/emotion_146.png":()=>import("../../../../shared/assets/img/emoji/emotion_146.png.js"),"../../../../shared/assets/img/emoji/emotion_147.png":()=>import("../../../../shared/assets/img/emoji/emotion_147.png.js"),"../../../../shared/assets/img/emoji/emotion_148.png":()=>import("../../../../shared/assets/img/emoji/emotion_148.png.js"),"../../../../shared/assets/img/emoji/emotion_149.png":()=>import("../../../../shared/assets/img/emoji/emotion_149.png.js"),"../../../../shared/assets/img/emoji/emotion_150.png":()=>import("../../../../shared/assets/img/emoji/emotion_150.png.js"),"../../../../shared/assets/img/emoji/emotion_151.png":()=>import("../../../../shared/assets/img/emoji/emotion_151.png.js"),"../../../../shared/assets/img/emoji/emotion_152.png":()=>import("../../../../shared/assets/img/emoji/emotion_152.png.js"),"../../../../shared/assets/img/emoji/emotion_153.png":()=>import("../../../../shared/assets/img/emoji/emotion_153.png.js"),"../../../../shared/assets/img/emoji/emotion_154.png":()=>import("../../../../shared/assets/img/emoji/emotion_154.png.js"),"../../../../shared/assets/img/emoji/emotion_155.png":()=>import("../../../../shared/assets/img/emoji/emotion_155.png.js"),"../../../../shared/assets/img/emoji/emotion_156.png":()=>import("../../../../shared/assets/img/emoji/emotion_156.png.js"),"../../../../shared/assets/img/emoji/emotion_157.png":()=>import("../../../../shared/assets/img/emoji/emotion_157.png.js"),"../../../../shared/assets/img/emoji/emotion_158.png":()=>import("../../../../shared/assets/img/emoji/emotion_158.png.js"),"../../../../shared/assets/img/emoji/emotion_159.png":()=>import("../../../../shared/assets/img/emoji/emotion_159.png.js"),"../../../../shared/assets/img/emoji/emotion_160.png":()=>import("../../../../shared/assets/img/emoji/emotion_160.png.js"),"../../../../shared/assets/img/emoji/emotion_161.png":()=>import("../../../../shared/assets/img/emoji/emotion_161.png.js"),"../../../../shared/assets/img/emoji/emotion_162.png":()=>import("../../../../shared/assets/img/emoji/emotion_162.png.js"),"../../../../shared/assets/img/emoji/emotion_163.png":()=>import("../../../../shared/assets/img/emoji/emotion_163.png.js"),"../../../../shared/assets/img/emoji/emotion_164.png":()=>import("../../../../shared/assets/img/emoji/emotion_164.png.js"),"../../../../shared/assets/img/emoji/emotion_165.png":()=>import("../../../../shared/assets/img/emoji/emotion_165.png.js"),"../../../../shared/assets/img/emoji/emotion_166.png":()=>import("../../../../shared/assets/img/emoji/emotion_166.png.js"),"../../../../shared/assets/img/emoji/emotion_167.png":()=>import("../../../../shared/assets/img/emoji/emotion_167.png.js"),"../../../../shared/assets/img/emoji/emotion_168.png":()=>import("../../../../shared/assets/img/emoji/emotion_168.png.js"),"../../../../shared/assets/img/emoji/emotion_169.png":()=>import("../../../../shared/assets/img/emoji/emotion_169.png.js"),"../../../../shared/assets/img/emoji/emotion_170.png":()=>import("../../../../shared/assets/img/emoji/emotion_170.png.js"),"../../../../shared/assets/img/emoji/emotion_171.png":()=>import("../../../../shared/assets/img/emoji/emotion_171.png.js"),"../../../../shared/assets/img/emoji/emotion_172.png":()=>import("../../../../shared/assets/img/emoji/emotion_172.png.js"),"../../../../shared/assets/img/emoji/emotion_173.png":()=>import("../../../../shared/assets/img/emoji/emotion_173.png.js"),"../../../../shared/assets/img/emoji/emotion_174.png":()=>import("../../../../shared/assets/img/emoji/emotion_174.png.js"),"../../../../shared/assets/img/emoji/emotion_175.png":()=>import("../../../../shared/assets/img/emoji/emotion_175.png.js"),"../../../../shared/assets/img/emoji/emotion_176.png":()=>import("../../../../shared/assets/img/emoji/emotion_176.png.js"),"../../../../shared/assets/img/emoji/emotion_177.png":()=>import("../../../../shared/assets/img/emoji/emotion_177.png.js"),"../../../../shared/assets/img/emoji/emotion_178.png":()=>import("../../../../shared/assets/img/emoji/emotion_178.png.js"),"../../../../shared/assets/img/emoji/emotion_179.png":()=>import("../../../../shared/assets/img/emoji/emotion_179.png.js"),"../../../../shared/assets/img/emoji/emotion_180.png":()=>import("../../../../shared/assets/img/emoji/emotion_180.png.js"),"../../../../shared/assets/img/emoji/emotion_181.png":()=>import("../../../../shared/assets/img/emoji/emotion_181.png.js"),"../../../../shared/assets/img/emoji/emotion_182.png":()=>import("../../../../shared/assets/img/emoji/emotion_182.png.js"),"../../../../shared/assets/img/emoji/emotion_183.png":()=>import("../../../../shared/assets/img/emoji/emotion_183.png.js"),"../../../../shared/assets/img/emoji/emotion_184.png":()=>import("../../../../shared/assets/img/emoji/emotion_184.png.js"),"../../../../shared/assets/img/emoji/emotion_185.png":()=>import("../../../../shared/assets/img/emoji/emotion_185.png.js"),"../../../../shared/assets/img/emoji/emotion_186.png":()=>import("../../../../shared/assets/img/emoji/emotion_186.png.js"),"../../../../shared/assets/img/emoji/emotion_187.png":()=>import("../../../../shared/assets/img/emoji/emotion_187.png.js"),"../../../../shared/assets/img/emoji/emotion_188.png":()=>import("../../../../shared/assets/img/emoji/emotion_188.png.js"),"../../../../shared/assets/img/emoji/emotion_189.png":()=>import("../../../../shared/assets/img/emoji/emotion_189.png.js"),"../../../../shared/assets/img/emoji/emotion_190.png":()=>import("../../../../shared/assets/img/emoji/emotion_190.png.js"),"../../../../shared/assets/img/emoji/emotion_191.png":()=>import("../../../../shared/assets/img/emoji/emotion_191.png.js"),"../../../../shared/assets/img/emoji/emotion_192.png":()=>import("../../../../shared/assets/img/emoji/emotion_192.png.js"),"../../../../shared/assets/img/emoji/emotion_193.png":()=>import("../../../../shared/assets/img/emoji/emotion_193.png.js"),"../../../../shared/assets/img/emoji/emotion_194.png":()=>import("../../../../shared/assets/img/emoji/emotion_194.png.js"),"../../../../shared/assets/img/emoji/emotion_195.png":()=>import("../../../../shared/assets/img/emoji/emotion_195.png.js"),"../../../../shared/assets/img/emoji/emotion_196.png":()=>import("../../../../shared/assets/img/emoji/emotion_196.png.js")});o.value[0]=e;for(const s in i){const e=s.replace(/^\.\/(.*)\.\w+$/,"$1").match(/(\d+)\.png$/);i[s]().then((s=>{o.value[+e[1]]=s.default}))}const m=["微笑","憨笑","色","发呆","老板","流泪","害羞","闭嘴","睡","大哭","尴尬","发怒","调皮","大笑","惊讶","流汗","广播","自信","你强"];export{m as alt,o as images};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{isToday as e,format as t,isYesterday as r}from"date-fns";import{cloneDeep as a}from"lodash-es";import{MESSAGE_TYPE as s}from"../constants/index.js";import{images as n}from"./emoji.js";function i(a){const s=new Date(a);let n,i;if(e(s))n=i=t(s,"HH:mm");else{n=r(s)?"昨天":t(s,"MM-dd");const e=s.getFullYear(),a=(new Date).getFullYear();i=t(s,e<a?"yyyy年M月d日 HH:mm":"M月d日 HH:mm")}return{siderMsgTime:n,msgTime:i}}function o(e){return a(e).sort(((e,t)=>e.topping&&!t.topping?-1:!e.topping&&t.topping?1:new Date(t.sortTime).getTime()-new Date(e.sortTime).getTime()))}function
|
|
1
|
+
import{isToday as e,format as t,isYesterday as r}from"date-fns";import{cloneDeep as a}from"lodash-es";import{MESSAGE_TYPE as s}from"../constants/index.js";import{images as n}from"./emoji.js";function i(a){const s=new Date(a);let n,i;if(e(s))n=i=t(s,"HH:mm");else{n=r(s)?"昨天":t(s,"MM-dd");const e=s.getFullYear(),a=(new Date).getFullYear();i=t(s,e<a?"yyyy年M月d日 HH:mm":"M月d日 HH:mm")}return{siderMsgTime:n,msgTime:i}}function o(e){return a(e).sort(((e,t)=>e.topping&&!t.topping?-1:!e.topping&&t.topping?1:new Date(t.sortTime).getTime()-new Date(e.sortTime).getTime()))}function l(e){if(!e)return"";const t=e=>new RegExp("\\n*\\["+(e||"")+"(code|pre|div|span|p|table|thead|th|tbody|tr|td|ul|li|ol|li|dl|dt|dd|h2|h3|h4|h5)([\\s\\S]*?)]\\n*","g");return e=e.toString().replace(/&(?!#?[a-zA-Z0-9]+;)/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/'/g,"'").replace(/"/g,""").replace(/@(\S+)(\s+?|$)/g,'@<a href="javascript:;">$1</a>$2').replace(t(),"<$1 $2>").replace(t("/"),"</$1>").replace(/\n/g,"<br>")}function p(e){if(!e.chatMessageType)return l(e.lastMessage);switch(e.chatMessageType){case s.TEXT:return l(e.lastMessage);case s.IMAGE:return"[图片]";case s.FILE:return"[文件]";case s.EMOJI:return`<img alt=${e.lastMessage} src=${n.value[e.lastMessage]}>`;default:return"其他消息"}}export{i as formatTime,o as listSort,p as transformLastMessage,l as transformMessage};
|