@polyv/chat-ui 2.2.0-rc-20251113.1 → 2.4.0-rc-20251225.2
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/index.d.ts +300 -40
- package/index.es.js +27443 -17629
- package/index.umd.js +861 -544
- package/package.json +1 -1
- package/special.d.ts +228 -39
- package/special.es.js +25542 -16302
- package/special.umd.js +759 -445
package/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { AskMsgType } from '@polyv/chat';
|
|
1
2
|
import { ChatMessageUser } from '@polyv/chat';
|
|
2
3
|
import { ChatMsgRewardType } from '@polyv/chat';
|
|
3
4
|
import { ChatMsgSource } from '@polyv/chat';
|
|
@@ -22,8 +23,36 @@ import { SystemMsgType } from '@polyv/chat';
|
|
|
22
23
|
import { ValidatorFunction } from 'vue-types/dist/types';
|
|
23
24
|
import { Vue3Instance } from 'vue/types/v3-component-public-instance';
|
|
24
25
|
import { VueTypeValidableDef } from 'vue-types';
|
|
26
|
+
import { VueTypeValidableDef as VueTypeValidableDef_2 } from 'vue-types';
|
|
27
|
+
import { VueTypeValidableDef as VueTypeValidableDef_3 } from 'vue-types';
|
|
25
28
|
|
|
26
|
-
declare const __VLS_component: DefineComponent< {
|
|
29
|
+
declare const __VLS_component: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, Readonly<ExtractPropTypes< {}>>, {}>;
|
|
30
|
+
|
|
31
|
+
declare const __VLS_component_2: DefineComponent< {
|
|
32
|
+
/**
|
|
33
|
+
* 是否显示发送图片图标
|
|
34
|
+
* @default false
|
|
35
|
+
*/
|
|
36
|
+
showSendImage: VueTypeValidableDef<boolean, ValidatorFunction<boolean>> & {
|
|
37
|
+
default: boolean;
|
|
38
|
+
} & {
|
|
39
|
+
default: boolean;
|
|
40
|
+
};
|
|
41
|
+
}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, Readonly<ExtractPropTypes< {
|
|
42
|
+
/**
|
|
43
|
+
* 是否显示发送图片图标
|
|
44
|
+
* @default false
|
|
45
|
+
*/
|
|
46
|
+
showSendImage: VueTypeValidableDef<boolean, ValidatorFunction<boolean>> & {
|
|
47
|
+
default: boolean;
|
|
48
|
+
} & {
|
|
49
|
+
default: boolean;
|
|
50
|
+
};
|
|
51
|
+
}>>, {
|
|
52
|
+
showSendImage: boolean;
|
|
53
|
+
}>;
|
|
54
|
+
|
|
55
|
+
declare const __VLS_component_3: DefineComponent< {
|
|
27
56
|
defaultHeight: VueTypeValidableDef<number, ValidatorFunction<number>> & {
|
|
28
57
|
default: number;
|
|
29
58
|
} & {
|
|
@@ -52,9 +81,27 @@ defaultHeight: number;
|
|
|
52
81
|
showMore: boolean;
|
|
53
82
|
}>;
|
|
54
83
|
|
|
55
|
-
declare const __VLS_component_2: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, Readonly<ExtractPropTypes< {}>>, {}>;
|
|
56
|
-
|
|
57
84
|
declare function __VLS_template(): {
|
|
85
|
+
attrs: Partial<{}>;
|
|
86
|
+
slots: {
|
|
87
|
+
'body-suffix'?(_: {}): any;
|
|
88
|
+
suffix?(_: {}): any;
|
|
89
|
+
};
|
|
90
|
+
refs: {};
|
|
91
|
+
rootEl: HTMLDivElement;
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
declare function __VLS_template_2(): {
|
|
95
|
+
attrs: Partial<{}>;
|
|
96
|
+
slots: {
|
|
97
|
+
'body-suffix'?(_: {}): any;
|
|
98
|
+
suffix?(_: {}): any;
|
|
99
|
+
};
|
|
100
|
+
refs: {};
|
|
101
|
+
rootEl: HTMLDivElement;
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
declare function __VLS_template_3(): {
|
|
58
105
|
attrs: Partial<{}>;
|
|
59
106
|
slots: {
|
|
60
107
|
'more-panel'?(_: {}): any;
|
|
@@ -64,6 +111,7 @@ declare function __VLS_template(): {
|
|
|
64
111
|
};
|
|
65
112
|
refs: {
|
|
66
113
|
msgInputBaseRef: (Vue3Instance< {}, Readonly<ExtractPropTypes< {
|
|
114
|
+
resizeStorageKey: VueTypeValidableDef<string, ValidatorFunction<string>>;
|
|
67
115
|
defaultHeight: VueTypeValidableDef<number, ValidatorFunction<number>> & {
|
|
68
116
|
default: number;
|
|
69
117
|
} & {
|
|
@@ -74,6 +122,11 @@ declare function __VLS_template(): {
|
|
|
74
122
|
} & {
|
|
75
123
|
default: boolean;
|
|
76
124
|
};
|
|
125
|
+
showSendImage: VueTypeValidableDef<boolean, ValidatorFunction<boolean>> & {
|
|
126
|
+
default: boolean;
|
|
127
|
+
} & {
|
|
128
|
+
default: boolean;
|
|
129
|
+
};
|
|
77
130
|
placeholder: VueTypeValidableDef<string, ValidatorFunction<string>> & {
|
|
78
131
|
default: string;
|
|
79
132
|
};
|
|
@@ -92,7 +145,18 @@ declare function __VLS_template(): {
|
|
|
92
145
|
} & {
|
|
93
146
|
default: number;
|
|
94
147
|
};
|
|
148
|
+
showFaceEmotion: VueTypeValidableDef<boolean, ValidatorFunction<boolean>> & {
|
|
149
|
+
default: boolean;
|
|
150
|
+
} & {
|
|
151
|
+
default: boolean;
|
|
152
|
+
};
|
|
153
|
+
showImageEmotion: VueTypeValidableDef<boolean, ValidatorFunction<boolean>> & {
|
|
154
|
+
default: boolean;
|
|
155
|
+
} & {
|
|
156
|
+
default: boolean;
|
|
157
|
+
};
|
|
95
158
|
}>>, Readonly<ExtractPropTypes< {
|
|
159
|
+
resizeStorageKey: VueTypeValidableDef<string, ValidatorFunction<string>>;
|
|
96
160
|
defaultHeight: VueTypeValidableDef<number, ValidatorFunction<number>> & {
|
|
97
161
|
default: number;
|
|
98
162
|
} & {
|
|
@@ -103,6 +167,11 @@ declare function __VLS_template(): {
|
|
|
103
167
|
} & {
|
|
104
168
|
default: boolean;
|
|
105
169
|
};
|
|
170
|
+
showSendImage: VueTypeValidableDef<boolean, ValidatorFunction<boolean>> & {
|
|
171
|
+
default: boolean;
|
|
172
|
+
} & {
|
|
173
|
+
default: boolean;
|
|
174
|
+
};
|
|
106
175
|
placeholder: VueTypeValidableDef<string, ValidatorFunction<string>> & {
|
|
107
176
|
default: string;
|
|
108
177
|
};
|
|
@@ -121,6 +190,16 @@ declare function __VLS_template(): {
|
|
|
121
190
|
} & {
|
|
122
191
|
default: number;
|
|
123
192
|
};
|
|
193
|
+
showFaceEmotion: VueTypeValidableDef<boolean, ValidatorFunction<boolean>> & {
|
|
194
|
+
default: boolean;
|
|
195
|
+
} & {
|
|
196
|
+
default: boolean;
|
|
197
|
+
};
|
|
198
|
+
showImageEmotion: VueTypeValidableDef<boolean, ValidatorFunction<boolean>> & {
|
|
199
|
+
default: boolean;
|
|
200
|
+
} & {
|
|
201
|
+
default: boolean;
|
|
202
|
+
};
|
|
124
203
|
}>>, {
|
|
125
204
|
submit: (arg: {
|
|
126
205
|
contentList: InputContent[];
|
|
@@ -132,12 +211,16 @@ declare function __VLS_template(): {
|
|
|
132
211
|
"click-send-image": (arg?: void | undefined) => void;
|
|
133
212
|
}, {
|
|
134
213
|
disabledInput: boolean;
|
|
214
|
+
showFaceEmotion: boolean;
|
|
215
|
+
showImageEmotion: boolean;
|
|
135
216
|
placeholder: string;
|
|
136
217
|
disabledSubmitBtn: boolean;
|
|
137
218
|
maxInputTextLength: number;
|
|
138
219
|
defaultHeight: number;
|
|
139
220
|
showBottom: boolean;
|
|
221
|
+
showSendImage: boolean;
|
|
140
222
|
}, true, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, any>> & Readonly<Readonly<ExtractPropTypes< {
|
|
223
|
+
resizeStorageKey: VueTypeValidableDef<string, ValidatorFunction<string>>;
|
|
141
224
|
defaultHeight: VueTypeValidableDef<number, ValidatorFunction<number>> & {
|
|
142
225
|
default: number;
|
|
143
226
|
} & {
|
|
@@ -148,6 +231,11 @@ declare function __VLS_template(): {
|
|
|
148
231
|
} & {
|
|
149
232
|
default: boolean;
|
|
150
233
|
};
|
|
234
|
+
showSendImage: VueTypeValidableDef<boolean, ValidatorFunction<boolean>> & {
|
|
235
|
+
default: boolean;
|
|
236
|
+
} & {
|
|
237
|
+
default: boolean;
|
|
238
|
+
};
|
|
151
239
|
placeholder: VueTypeValidableDef<string, ValidatorFunction<string>> & {
|
|
152
240
|
default: string;
|
|
153
241
|
};
|
|
@@ -166,9 +254,20 @@ declare function __VLS_template(): {
|
|
|
166
254
|
} & {
|
|
167
255
|
default: number;
|
|
168
256
|
};
|
|
257
|
+
showFaceEmotion: VueTypeValidableDef<boolean, ValidatorFunction<boolean>> & {
|
|
258
|
+
default: boolean;
|
|
259
|
+
} & {
|
|
260
|
+
default: boolean;
|
|
261
|
+
};
|
|
262
|
+
showImageEmotion: VueTypeValidableDef<boolean, ValidatorFunction<boolean>> & {
|
|
263
|
+
default: boolean;
|
|
264
|
+
} & {
|
|
265
|
+
default: boolean;
|
|
266
|
+
};
|
|
169
267
|
}>>> & ShallowUnwrapRef< {
|
|
170
268
|
focusInput: () => void;
|
|
171
269
|
}> & ExtractComputedReturns< {}> & ComponentCustomProperties & Readonly<ExtractPropTypes< {
|
|
270
|
+
resizeStorageKey: VueTypeValidableDef<string, ValidatorFunction<string>>;
|
|
172
271
|
defaultHeight: VueTypeValidableDef<number, ValidatorFunction<number>> & {
|
|
173
272
|
default: number;
|
|
174
273
|
} & {
|
|
@@ -179,6 +278,11 @@ declare function __VLS_template(): {
|
|
|
179
278
|
} & {
|
|
180
279
|
default: boolean;
|
|
181
280
|
};
|
|
281
|
+
showSendImage: VueTypeValidableDef<boolean, ValidatorFunction<boolean>> & {
|
|
282
|
+
default: boolean;
|
|
283
|
+
} & {
|
|
284
|
+
default: boolean;
|
|
285
|
+
};
|
|
182
286
|
placeholder: VueTypeValidableDef<string, ValidatorFunction<string>> & {
|
|
183
287
|
default: string;
|
|
184
288
|
};
|
|
@@ -197,6 +301,16 @@ declare function __VLS_template(): {
|
|
|
197
301
|
} & {
|
|
198
302
|
default: number;
|
|
199
303
|
};
|
|
304
|
+
showFaceEmotion: VueTypeValidableDef<boolean, ValidatorFunction<boolean>> & {
|
|
305
|
+
default: boolean;
|
|
306
|
+
} & {
|
|
307
|
+
default: boolean;
|
|
308
|
+
};
|
|
309
|
+
showImageEmotion: VueTypeValidableDef<boolean, ValidatorFunction<boolean>> & {
|
|
310
|
+
default: boolean;
|
|
311
|
+
} & {
|
|
312
|
+
default: boolean;
|
|
313
|
+
};
|
|
200
314
|
}>> & {
|
|
201
315
|
$scopedSlots: {
|
|
202
316
|
'panel-suffix'?(_: {}): any;
|
|
@@ -207,24 +321,17 @@ declare function __VLS_template(): {
|
|
|
207
321
|
'bottom-suffix'?(_: {}): any;
|
|
208
322
|
};
|
|
209
323
|
}) | null;
|
|
324
|
+
morePanelRef: HTMLDivElement;
|
|
210
325
|
};
|
|
211
326
|
rootEl: HTMLDivElement;
|
|
212
327
|
};
|
|
213
328
|
|
|
214
|
-
declare function __VLS_template_2(): {
|
|
215
|
-
attrs: Partial<{}>;
|
|
216
|
-
slots: {
|
|
217
|
-
'body-suffix'?(_: {}): any;
|
|
218
|
-
suffix?(_: {}): any;
|
|
219
|
-
};
|
|
220
|
-
refs: {};
|
|
221
|
-
rootEl: HTMLDivElement;
|
|
222
|
-
};
|
|
223
|
-
|
|
224
329
|
declare type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
225
330
|
|
|
226
331
|
declare type __VLS_TemplateResult_2 = ReturnType<typeof __VLS_template_2>;
|
|
227
332
|
|
|
333
|
+
declare type __VLS_TemplateResult_3 = ReturnType<typeof __VLS_template_3>;
|
|
334
|
+
|
|
228
335
|
declare type __VLS_WithTemplateSlots<T, S> = T & {
|
|
229
336
|
new (): {
|
|
230
337
|
$scopedSlots: S;
|
|
@@ -237,21 +344,84 @@ declare type __VLS_WithTemplateSlots_2<T, S> = T & {
|
|
|
237
344
|
};
|
|
238
345
|
};
|
|
239
346
|
|
|
347
|
+
declare type __VLS_WithTemplateSlots_3<T, S> = T & {
|
|
348
|
+
new (): {
|
|
349
|
+
$scopedSlots: S;
|
|
350
|
+
};
|
|
351
|
+
};
|
|
352
|
+
|
|
240
353
|
/**
|
|
241
354
|
* 动画来源
|
|
242
355
|
*/
|
|
243
356
|
declare type AnimationSource = 'donate-animation' | 'chat-like' | 'special-effect-animation';
|
|
244
357
|
|
|
358
|
+
/**
|
|
359
|
+
* 提问配置
|
|
360
|
+
*/
|
|
361
|
+
declare interface AskConfig {
|
|
362
|
+
/**
|
|
363
|
+
* 提问欢迎语
|
|
364
|
+
* @default ''
|
|
365
|
+
*/
|
|
366
|
+
askWelcomeText?: string;
|
|
367
|
+
/**
|
|
368
|
+
* 显示在线状态
|
|
369
|
+
* @default false
|
|
370
|
+
*/
|
|
371
|
+
showOnlineStatus?: boolean;
|
|
372
|
+
/**
|
|
373
|
+
* 提问新消息回调
|
|
374
|
+
*/
|
|
375
|
+
onNewAskMessage?: (askMsg: AskMsgType) => void;
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
export declare const AskManager: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
379
|
+
"open-ask": (arg?: void | undefined) => void;
|
|
380
|
+
}, string, Readonly<ExtractPropTypes< {}>>, {}>;
|
|
381
|
+
|
|
382
|
+
export declare const AskMessageInputControl: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
383
|
+
|
|
384
|
+
export declare const AskMessageInputPopup: DefineComponent< {}, {
|
|
385
|
+
showInputPopup: typeof showInputPopup;
|
|
386
|
+
closeInputPopup: typeof closeInputPopup;
|
|
387
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
388
|
+
"visible-change": (arg: boolean) => void;
|
|
389
|
+
}, string, Readonly<ExtractPropTypes< {}>>, {}>;
|
|
390
|
+
|
|
391
|
+
export declare const AskMessageInputSection: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, Readonly<ExtractPropTypes< {}>>, {}>;
|
|
392
|
+
|
|
393
|
+
export declare const AskMessageList: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, Readonly<ExtractPropTypes< {}>>, {}>;
|
|
394
|
+
|
|
395
|
+
export declare const AskUserList: DefineComponent< {}, {
|
|
396
|
+
addAskUser: (data: {
|
|
397
|
+
targetUserId: string;
|
|
398
|
+
user: ChatMessageUser;
|
|
399
|
+
setActive?: boolean;
|
|
400
|
+
}) => void;
|
|
401
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, Readonly<ExtractPropTypes< {}>>, {}>;
|
|
402
|
+
|
|
245
403
|
export declare const BanList: DefineComponent< {}, {
|
|
246
404
|
openBanList: () => void;
|
|
247
405
|
closeBanList: () => void;
|
|
248
406
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, Readonly<ExtractPropTypes< {}>>, {}>;
|
|
249
407
|
|
|
408
|
+
export declare interface BaseConfig {
|
|
409
|
+
/**
|
|
410
|
+
* 是否隐藏昵称
|
|
411
|
+
* @default false
|
|
412
|
+
*/
|
|
413
|
+
hideNickname?: boolean;
|
|
414
|
+
}
|
|
415
|
+
|
|
250
416
|
export declare interface ChatGlobalInject {
|
|
251
417
|
/**
|
|
252
418
|
* 获取聊天室实例对象
|
|
253
419
|
*/
|
|
254
420
|
getChatTarget: () => PolyvChat;
|
|
421
|
+
/**
|
|
422
|
+
* 获取基础配置
|
|
423
|
+
*/
|
|
424
|
+
getBaseConfig?: () => BaseConfig;
|
|
255
425
|
/**
|
|
256
426
|
* 获取消息配置
|
|
257
427
|
*/
|
|
@@ -292,6 +462,10 @@ export declare interface ChatGlobalInject {
|
|
|
292
462
|
* 获取是否显示动画
|
|
293
463
|
*/
|
|
294
464
|
getAnimationVisible?: (animationSource: AnimationSource) => boolean;
|
|
465
|
+
/**
|
|
466
|
+
* 获取提问配置
|
|
467
|
+
*/
|
|
468
|
+
getAskConfig?: () => AskConfig;
|
|
295
469
|
/**
|
|
296
470
|
* 拦截处理,返回 true 表示终止后续的业务逻辑执行
|
|
297
471
|
*/
|
|
@@ -300,12 +474,16 @@ export declare interface ChatGlobalInject {
|
|
|
300
474
|
|
|
301
475
|
export declare const ChatLike: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, Readonly<ExtractPropTypes< {}>>, {}>;
|
|
302
476
|
|
|
477
|
+
export declare const ChatMessageInputControl: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
|
|
478
|
+
|
|
303
479
|
export declare const ChatMessageInputPopup: DefineComponent< {}, {
|
|
304
|
-
showInputPopup: typeof
|
|
305
|
-
closeInputPopup: typeof
|
|
306
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
480
|
+
showInputPopup: typeof showInputPopup_2;
|
|
481
|
+
closeInputPopup: typeof closeInputPopup_2;
|
|
482
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
483
|
+
"visible-change": (arg: boolean) => void;
|
|
484
|
+
}, string, Readonly<ExtractPropTypes< {}>>, {}>;
|
|
307
485
|
|
|
308
|
-
export declare const ChatMessageInputSection:
|
|
486
|
+
export declare const ChatMessageInputSection: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
|
|
309
487
|
|
|
310
488
|
export declare const ChatMessageList: DefineComponent< {}, {
|
|
311
489
|
setIsOnlySpecialMsg: (value: boolean) => void;
|
|
@@ -313,14 +491,16 @@ setIsOnlySpecialMsg: (value: boolean) => void;
|
|
|
313
491
|
|
|
314
492
|
declare function closeInputPopup(): void;
|
|
315
493
|
|
|
494
|
+
declare function closeInputPopup_2(): void;
|
|
495
|
+
|
|
316
496
|
export declare const DonateAnimation: DefineComponent< {
|
|
317
|
-
trackCount:
|
|
497
|
+
trackCount: VueTypeValidableDef_2<number, ValidatorFunction<number>> & {
|
|
318
498
|
default: number;
|
|
319
499
|
} & {
|
|
320
500
|
default: number;
|
|
321
501
|
};
|
|
322
502
|
}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, Readonly<ExtractPropTypes< {
|
|
323
|
-
trackCount:
|
|
503
|
+
trackCount: VueTypeValidableDef_2<number, ValidatorFunction<number>> & {
|
|
324
504
|
default: number;
|
|
325
505
|
} & {
|
|
326
506
|
default: number;
|
|
@@ -352,14 +532,14 @@ export declare interface HistoryConfig {
|
|
|
352
532
|
* @default false
|
|
353
533
|
*/
|
|
354
534
|
workWechatMyCustomerHistory?: boolean;
|
|
535
|
+
/**
|
|
536
|
+
* 是否获取聊天历史消息
|
|
537
|
+
* @default true
|
|
538
|
+
*/
|
|
539
|
+
getChatHistory?: boolean;
|
|
355
540
|
}
|
|
356
541
|
|
|
357
542
|
export declare interface InputConfig {
|
|
358
|
-
/**
|
|
359
|
-
* 聊天室输入框占位符
|
|
360
|
-
* @default ''
|
|
361
|
-
*/
|
|
362
|
-
inputPlaceholder?: string;
|
|
363
543
|
/**
|
|
364
544
|
* 黄脸表情开关
|
|
365
545
|
* @default true
|
|
@@ -376,15 +556,29 @@ export declare interface InputConfig {
|
|
|
376
556
|
*/
|
|
377
557
|
disabledInput?: boolean;
|
|
378
558
|
/**
|
|
379
|
-
*
|
|
559
|
+
* 输入框遮罩文案
|
|
560
|
+
* @default ''
|
|
561
|
+
*/
|
|
562
|
+
inputMaskPlaceholder?: string;
|
|
563
|
+
/**
|
|
564
|
+
* 聊天室输入框占位符
|
|
565
|
+
* @default ''
|
|
566
|
+
*/
|
|
567
|
+
chatInputPlaceholder?: string;
|
|
568
|
+
/**
|
|
569
|
+
* 聊天区发送图片开关
|
|
380
570
|
* @default true
|
|
381
571
|
*/
|
|
382
|
-
|
|
572
|
+
sendChatImageEnabled?: boolean;
|
|
383
573
|
/**
|
|
384
|
-
*
|
|
574
|
+
* 提问区输入框占位符
|
|
385
575
|
* @default ''
|
|
386
576
|
*/
|
|
387
|
-
|
|
577
|
+
askInputPlaceholder?: string;
|
|
578
|
+
/**
|
|
579
|
+
* 提问区发送图片开关
|
|
580
|
+
*/
|
|
581
|
+
sendAskImageEnabled?: boolean;
|
|
388
582
|
}
|
|
389
583
|
|
|
390
584
|
export declare type InputContent = InputContentText | InputContentImage;
|
|
@@ -442,6 +636,19 @@ declare interface LikeConfig {
|
|
|
442
636
|
* @default 40
|
|
443
637
|
*/
|
|
444
638
|
triggerSize?: number;
|
|
639
|
+
/**
|
|
640
|
+
* 气泡列表
|
|
641
|
+
*/
|
|
642
|
+
bubbles?: string[];
|
|
643
|
+
/**
|
|
644
|
+
* 是否显示点赞数
|
|
645
|
+
* @default true
|
|
646
|
+
*/
|
|
647
|
+
showCount?: boolean;
|
|
648
|
+
/**
|
|
649
|
+
* 图标图片
|
|
650
|
+
*/
|
|
651
|
+
triggerImage?: string;
|
|
445
652
|
}
|
|
446
653
|
|
|
447
654
|
/**
|
|
@@ -488,10 +695,6 @@ export declare interface ManageConfig {
|
|
|
488
695
|
* @default false
|
|
489
696
|
*/
|
|
490
697
|
askUserEnabled?: boolean;
|
|
491
|
-
/**
|
|
492
|
-
* 私聊用户回调
|
|
493
|
-
*/
|
|
494
|
-
askUserCallback?: boolean | ((user: ChatMessageUser) => void);
|
|
495
698
|
/**
|
|
496
699
|
* 聊天室全体禁言开关
|
|
497
700
|
* @default false
|
|
@@ -516,9 +719,23 @@ export declare interface ManageConfig {
|
|
|
516
719
|
downloadOnlineListEnabled?: boolean;
|
|
517
720
|
}
|
|
518
721
|
|
|
519
|
-
export declare const
|
|
520
|
-
|
|
521
|
-
|
|
722
|
+
export declare const MemberList: DefineComponent< {
|
|
723
|
+
showTop: VueTypeValidableDef_3<boolean, ValidatorFunction<boolean>> & {
|
|
724
|
+
default: boolean;
|
|
725
|
+
} & {
|
|
726
|
+
default: boolean;
|
|
727
|
+
};
|
|
728
|
+
}, {
|
|
729
|
+
openRulePopup: typeof openRulePopup;
|
|
730
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, Readonly<ExtractPropTypes< {
|
|
731
|
+
showTop: VueTypeValidableDef_3<boolean, ValidatorFunction<boolean>> & {
|
|
732
|
+
default: boolean;
|
|
733
|
+
} & {
|
|
734
|
+
default: boolean;
|
|
735
|
+
};
|
|
736
|
+
}>>, {
|
|
737
|
+
showTop: boolean;
|
|
738
|
+
}>;
|
|
522
739
|
|
|
523
740
|
export declare interface MessageConfig {
|
|
524
741
|
/**
|
|
@@ -526,6 +743,11 @@ export declare interface MessageConfig {
|
|
|
526
743
|
* @default ''
|
|
527
744
|
*/
|
|
528
745
|
introductionText?: string;
|
|
746
|
+
/**
|
|
747
|
+
* 聊天区系统消息
|
|
748
|
+
* @default ''
|
|
749
|
+
*/
|
|
750
|
+
systemText?: string;
|
|
529
751
|
/**
|
|
530
752
|
* 是否显示聊天室空数据提示
|
|
531
753
|
* @default false
|
|
@@ -777,6 +999,21 @@ export declare interface OnlineConfig {
|
|
|
777
999
|
* @default 200
|
|
778
1000
|
*/
|
|
779
1001
|
requestCount?: number;
|
|
1002
|
+
/**
|
|
1003
|
+
* 搜索在线列表开关
|
|
1004
|
+
* @default true
|
|
1005
|
+
*/
|
|
1006
|
+
searchEnabled?: boolean;
|
|
1007
|
+
/**
|
|
1008
|
+
* 规则开关
|
|
1009
|
+
* @default false
|
|
1010
|
+
*/
|
|
1011
|
+
ruleEnabled?: boolean;
|
|
1012
|
+
/**
|
|
1013
|
+
* 轮训间隔,单位:毫秒
|
|
1014
|
+
* @default 10000
|
|
1015
|
+
*/
|
|
1016
|
+
pollingTime?: number;
|
|
780
1017
|
/**
|
|
781
1018
|
* 在线人数更新回调
|
|
782
1019
|
* @param count 在线人数
|
|
@@ -784,14 +1021,16 @@ export declare interface OnlineConfig {
|
|
|
784
1021
|
onlineCountCallback?: (count: number) => void;
|
|
785
1022
|
}
|
|
786
1023
|
|
|
1024
|
+
declare function openRulePopup(): void;
|
|
1025
|
+
|
|
787
1026
|
export declare const RunwayEffect: DefineComponent< {
|
|
788
|
-
left:
|
|
1027
|
+
left: VueTypeValidableDef_2<number, ValidatorFunction<number>> & {
|
|
789
1028
|
default: number;
|
|
790
1029
|
} & {
|
|
791
1030
|
default: number;
|
|
792
1031
|
};
|
|
793
1032
|
}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, Readonly<ExtractPropTypes< {
|
|
794
|
-
left:
|
|
1033
|
+
left: VueTypeValidableDef_2<number, ValidatorFunction<number>> & {
|
|
795
1034
|
default: number;
|
|
796
1035
|
} & {
|
|
797
1036
|
default: number;
|
|
@@ -802,6 +1041,8 @@ left: number;
|
|
|
802
1041
|
|
|
803
1042
|
declare function showInputPopup(): void;
|
|
804
1043
|
|
|
1044
|
+
declare function showInputPopup_2(): void;
|
|
1045
|
+
|
|
805
1046
|
export declare const SpecialEffectAnimation: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, Readonly<ExtractPropTypes< {}>>, {}>;
|
|
806
1047
|
|
|
807
1048
|
/**
|
|
@@ -824,6 +1065,27 @@ export declare interface SpecialEffectConfig {
|
|
|
824
1065
|
visibleChangeCallback?: (visible: boolean) => void;
|
|
825
1066
|
}
|
|
826
1067
|
|
|
1068
|
+
export declare const SwiperSection: DefineComponent< {
|
|
1069
|
+
swiperList: VueTypeValidableDef_2<("ask" | "chat")[], ValidatorFunction<("ask" | "chat")[]>> & {
|
|
1070
|
+
default: () => ("ask" | "chat")[];
|
|
1071
|
+
} & {
|
|
1072
|
+
default: () => ("ask" | "chat")[];
|
|
1073
|
+
};
|
|
1074
|
+
}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1075
|
+
"slide-reach-end": (arg?: void | undefined) => void;
|
|
1076
|
+
"slide-reach-beginning": (arg?: void | undefined) => void;
|
|
1077
|
+
}, string, Readonly<ExtractPropTypes< {
|
|
1078
|
+
swiperList: VueTypeValidableDef_2<("ask" | "chat")[], ValidatorFunction<("ask" | "chat")[]>> & {
|
|
1079
|
+
default: () => ("ask" | "chat")[];
|
|
1080
|
+
} & {
|
|
1081
|
+
default: () => ("ask" | "chat")[];
|
|
1082
|
+
};
|
|
1083
|
+
}>>, {
|
|
1084
|
+
swiperList: ("ask" | "chat")[];
|
|
1085
|
+
}>;
|
|
1086
|
+
|
|
1087
|
+
export declare const SwiperSectionControl: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, Readonly<ExtractPropTypes< {}>>, {}>;
|
|
1088
|
+
|
|
827
1089
|
export declare const TopingMsgList: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, Readonly<ExtractPropTypes< {}>>, {}>;
|
|
828
1090
|
|
|
829
1091
|
export declare const useChatGlobalProvide: (injectData: ChatGlobalInject) => void;
|
|
@@ -835,7 +1097,7 @@ setIsOnlySpecialMsg: (value: boolean) => void;
|
|
|
835
1097
|
toggleOnlySpecialMsg: () => void;
|
|
836
1098
|
}>;
|
|
837
1099
|
|
|
838
|
-
export declare const
|
|
1100
|
+
export declare const useSendChatMsg: () => {
|
|
839
1101
|
sendSpeakMsg: (options: SendSpeakMsgOptions) => Promise<void>;
|
|
840
1102
|
sendImageMsg: (options: SendImageMsgOptions) => Promise<void>;
|
|
841
1103
|
sendEmotionImageMsg: (options: SendEmotionImageMsgOptions) => Promise<void>;
|
|
@@ -855,6 +1117,4 @@ showSpecialEffect: () => void;
|
|
|
855
1117
|
hideSpecialEffect: () => void;
|
|
856
1118
|
}>;
|
|
857
1119
|
|
|
858
|
-
export declare const ViewerInputControl: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
|
|
859
|
-
|
|
860
1120
|
export { }
|