@robot-admin/naive-ui-components 0.31.5 → 0.32.0
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/CHANGELOG.md +10 -0
- package/README.md +9 -5
- package/README_EN.md +9 -5
- package/dist/C_AutoComplete.cjs +1 -0
- package/dist/C_AutoComplete.css +36 -0
- package/dist/C_AutoComplete.d.cts +4 -0
- package/dist/C_AutoComplete.d.ts +4 -0
- package/dist/C_AutoComplete.js +1 -0
- package/dist/C_AutoComplete2.cjs +1 -0
- package/dist/C_AutoComplete2.js +1 -0
- package/dist/C_AvatarGroup.d.cts +1 -1
- package/dist/C_AvatarGroup.d.ts +1 -1
- package/dist/C_Barcode.d.cts +1 -1
- package/dist/C_Barcode.d.ts +1 -1
- package/dist/C_BatchResult.d.cts +1 -1
- package/dist/C_BatchResult.d.ts +1 -1
- package/dist/C_Breadcrumb.d.cts +2 -2
- package/dist/C_Breadcrumb.d.ts +1 -1
- package/dist/C_Cascade.d.cts +1 -1
- package/dist/C_Cascade.d.ts +1 -1
- package/dist/C_Chat.d.cts +1 -1
- package/dist/C_Chat.d.ts +1 -1
- package/dist/C_City.d.cts +1 -1
- package/dist/C_City.d.ts +1 -1
- package/dist/C_Code.d.cts +1 -1
- package/dist/C_Code.d.ts +1 -1
- package/dist/C_ContextMenu.d.cts +1 -1
- package/dist/C_ContextMenu.d.ts +1 -1
- package/dist/C_DataPicker.css +198 -31
- package/dist/C_DataPicker.d.cts +2 -2
- package/dist/C_DataPicker.d.ts +2 -2
- package/dist/C_Date.d.cts +1 -1
- package/dist/C_Date.d.ts +1 -1
- package/dist/C_Density.d.cts +1 -1
- package/dist/C_Density.d.ts +1 -1
- package/dist/C_Editor.d.cts +1 -1
- package/dist/C_Editor.d.ts +1 -1
- package/dist/C_ErrorSummary.d.cts +1 -1
- package/dist/C_ErrorSummary.d.ts +1 -1
- package/dist/C_Form.base.css +68 -1
- package/dist/C_Form.cjs +1 -1
- package/dist/C_Form.css +68 -1
- package/dist/C_Form.d.cts +3 -3
- package/dist/C_Form.d.ts +5 -3
- package/dist/C_Form.js +1 -1
- package/dist/C_FormModal.cjs +1 -1
- package/dist/C_FormModal.d.cts +1 -1
- package/dist/C_FormModal.d.ts +3 -1
- package/dist/C_FormModal.js +1 -1
- package/dist/C_FormModal2.cjs +1 -1
- package/dist/C_FormModal2.js +1 -1
- package/dist/C_FormSearch.css +139 -72
- package/dist/C_FormSearch.d.cts +1 -1
- package/dist/C_FormSearch.d.ts +1 -1
- package/dist/C_Guide.d.cts +1 -1
- package/dist/C_Guide.d.ts +1 -1
- package/dist/C_Icon.d.cts +1 -1
- package/dist/C_Icon.d.ts +1 -1
- package/dist/C_Language.d.cts +1 -1
- package/dist/C_Language.d.ts +1 -1
- package/dist/C_Loading.d.cts +1 -1
- package/dist/C_Loading.d.ts +1 -1
- package/dist/C_Login.d.cts +1 -1
- package/dist/C_Login.d.ts +1 -1
- package/dist/C_Markdown.d.cts +1 -1
- package/dist/C_Markdown.d.ts +1 -1
- package/dist/C_Menu.d.cts +2 -2
- package/dist/C_Menu.d.ts +1 -1
- package/dist/C_OrgChart.d.cts +1 -1
- package/dist/C_OrgChart.d.ts +1 -1
- package/dist/C_Progress.d.cts +1 -1
- package/dist/C_Progress.d.ts +1 -1
- package/dist/C_SectionNav.d.cts +1 -1
- package/dist/C_SectionNav.d.ts +1 -1
- package/dist/C_Select.css +32 -1
- package/dist/C_Select.d.cts +4 -2
- package/dist/C_Select.d.ts +4 -2
- package/dist/C_Select2.cjs +1 -1
- package/dist/C_Select2.js +1 -1
- package/dist/C_Skeleton.d.cts +1 -1
- package/dist/C_Skeleton.d.ts +1 -1
- package/dist/C_Steps.d.cts +1 -1
- package/dist/C_Steps.d.ts +1 -1
- package/dist/C_Table.base.css +68 -1
- package/dist/C_Table.cjs +1 -1
- package/dist/C_Table.d.cts +1 -1
- package/dist/C_Table.d.ts +11 -8
- package/dist/C_Table.js +1 -1
- package/dist/C_Table2.cjs +1 -1
- package/dist/C_Table2.js +1 -1
- package/dist/C_TagsView.d.cts +2 -2
- package/dist/C_TagsView.d.ts +1 -1
- package/dist/C_Theme.d.cts +1 -1
- package/dist/C_Theme.d.ts +1 -1
- package/dist/C_Timeline.d.cts +1 -1
- package/dist/C_Timeline.d.ts +1 -1
- package/dist/C_Transfer.d.cts +1 -1
- package/dist/C_Transfer.d.ts +1 -1
- package/dist/C_Tree.cjs +1 -1
- package/dist/C_Tree.d.ts +10 -7
- package/dist/C_Tree.js +1 -1
- package/dist/C_Tree2.cjs +1 -1
- package/dist/C_Tree2.js +1 -1
- package/dist/OptionStatus.cjs +1 -0
- package/dist/OptionStatus.js +1 -0
- package/dist/constants.d.cts +2 -2
- package/dist/constants.d.ts +2 -2
- package/dist/constants2.d.cts +2 -2
- package/dist/constants2.d.ts +2 -2
- package/dist/constants4.d.cts +5 -5
- package/dist/constants4.d.ts +5 -5
- package/dist/constants5.d.cts +4 -4
- package/dist/constants5.d.ts +4 -4
- package/dist/data.d.cts +2 -1
- package/dist/data.d.ts +2 -1
- package/dist/data2.d.cts +6 -6
- package/dist/data2.d.ts +6 -6
- package/dist/dateRange.d.cts +9 -4
- package/dist/dateRange.d.ts +9 -4
- package/dist/fieldRenderers.cjs +1 -0
- package/dist/fieldRenderers.js +1 -0
- package/dist/formField.cjs +1 -1
- package/dist/formField.d.cts +46 -19
- package/dist/formField.d.ts +46 -19
- package/dist/formField.js +1 -1
- package/dist/helpers.cjs +1 -1
- package/dist/helpers.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +62 -58
- package/dist/index.d.ts +62 -57
- package/dist/index.js +1 -1
- package/dist/index.vue.d.cts +4 -4
- package/dist/index.vue.d.ts +4 -4
- package/dist/index10.vue.d.cts +27 -35
- package/dist/index10.vue.d.ts +37 -80
- package/dist/index11.vue.d.cts +37 -80
- package/dist/index11.vue.d.ts +83 -16
- package/dist/index12.vue.d.cts +83 -16
- package/dist/index12.vue.d.ts +16 -59
- package/dist/index13.vue.d.cts +16 -59
- package/dist/index13.vue.d.ts +57 -17
- package/dist/index14.vue.d.cts +57 -17
- package/dist/index14.vue.d.ts +18 -55
- package/dist/index15.vue.d.cts +18 -55
- package/dist/index15.vue.d.ts +53 -124
- package/dist/index16.vue.d.cts +53 -124
- package/dist/index16.vue.d.ts +123 -51
- package/dist/index17.vue.d.cts +123 -51
- package/dist/index17.vue.d.ts +52 -25
- package/dist/index18.vue.d.cts +52 -25
- package/dist/index18.vue.d.ts +25 -12
- package/dist/index19.vue.d.cts +25 -12
- package/dist/index19.vue.d.ts +13 -129
- package/dist/index2.vue.d.cts +26 -82
- package/dist/index2.vue.d.ts +26 -82
- package/dist/index20.vue.d.cts +13 -129
- package/dist/index20.vue.d.ts +129 -76
- package/dist/index21.vue.d.cts +129 -76
- package/dist/index21.vue.d.ts +78 -72
- package/dist/index22.vue.d.cts +75 -97
- package/dist/index22.vue.d.ts +68 -96
- package/dist/index23.vue.d.cts +91 -40
- package/dist/index23.vue.d.ts +91 -40
- package/dist/index24.vue.d.cts +49 -23
- package/dist/index24.vue.d.ts +49 -23
- package/dist/index25.vue.d.cts +19 -46
- package/dist/index25.vue.d.ts +19 -46
- package/dist/index26.vue.d.cts +25 -98
- package/dist/index26.vue.d.ts +25 -98
- package/dist/index27.vue.d.cts +95 -37
- package/dist/index27.vue.d.ts +95 -37
- package/dist/index28.vue.d.cts +34 -8
- package/dist/index28.vue.d.ts +34 -8
- package/dist/index29.vue.d.cts +9 -86
- package/dist/index29.vue.d.ts +9 -86
- package/dist/index3.vue.d.cts +80 -30
- package/dist/index3.vue.d.ts +80 -30
- package/dist/index30.vue.d.cts +85 -99
- package/dist/index30.vue.d.ts +85 -99
- package/dist/index31.vue.d.cts +94 -63
- package/dist/index31.vue.d.ts +94 -63
- package/dist/index32.vue.d.cts +79 -0
- package/dist/index32.vue.d.ts +79 -0
- package/dist/index4.vue.d.cts +30 -19
- package/dist/index4.vue.d.ts +30 -19
- package/dist/index5.vue.d.cts +19 -128
- package/dist/index5.vue.d.ts +17 -34
- package/dist/index6.vue.d.cts +127 -35
- package/dist/index6.vue.d.ts +30 -22
- package/dist/index7.vue.d.cts +30 -22
- package/dist/index7.vue.d.ts +25 -118
- package/dist/index8.vue.d.cts +25 -118
- package/dist/index8.vue.d.ts +112 -21
- package/dist/index9.vue.d.cts +112 -21
- package/dist/index9.vue.d.ts +27 -35
- package/dist/mapUtils.d.cts +3 -3
- package/dist/mapUtils.d.ts +3 -3
- package/dist/optionSource.d.cts +30 -0
- package/dist/optionSource.d.ts +30 -0
- package/dist/presets.d.cts +1 -1
- package/dist/presets.d.ts +1 -1
- package/dist/resolver.cjs +1 -1
- package/dist/resolver.d.cts +1 -1
- package/dist/resolver.d.ts +1 -1
- package/dist/resolver.js +1 -1
- package/dist/serializeSearch.cjs +1 -1
- package/dist/serializeSearch.js +1 -1
- package/dist/style.css +234 -103
- package/dist/types2.d.cts +29 -103
- package/dist/types2.d.ts +30 -55
- package/dist/types3.d.cts +104 -55
- package/dist/types3.d.ts +60 -0
- package/dist/types4.d.cts +60 -0
- package/dist/types4.d.ts +42 -0
- package/dist/types5.d.cts +42 -0
- package/dist/useCalendarEvents.d.cts +1 -1
- package/dist/useCalendarEvents.d.ts +1 -1
- package/dist/useCollapsePanel.d.cts +5 -5
- package/dist/useCollapsePanel.d.ts +5 -5
- package/dist/useComponentLocale.cjs +1 -1
- package/dist/useComponentLocale.js +1 -1
- package/dist/useCropperCore.d.cts +9 -9
- package/dist/useCropperCore.d.ts +9 -9
- package/dist/useDataResource.cjs +1 -1
- package/dist/useDataResource.js +1 -1
- package/dist/useDraggableLayout.d.cts +2 -2
- package/dist/useDraggableLayout.d.ts +2 -2
- package/dist/useDynamicFormState.d.cts +15 -1
- package/dist/useDynamicFormState.d.ts +15 -1
- package/dist/useEdgeInteraction.d.cts +2 -2
- package/dist/useEdgeInteraction.d.ts +2 -2
- package/dist/useFormConfig.d.cts +5 -2
- package/dist/useFormConfig.d.ts +5 -2
- package/dist/useFormRenderer.d.cts +1 -1
- package/dist/useFormRenderer.d.ts +1 -1
- package/dist/useFullscreen.d.cts +1 -1
- package/dist/useFullscreen.d.ts +1 -1
- package/dist/useGridWidth.cjs +1 -1
- package/dist/useGridWidth.js +1 -1
- package/dist/useInfiniteScroll.d.cts +2 -2
- package/dist/useInfiniteScroll.d.ts +2 -2
- package/dist/useQRCode.d.cts +3 -3
- package/dist/useQRCode.d.ts +3 -3
- package/dist/useSignatureHistory.d.cts +4 -4
- package/dist/useSignatureHistory.d.ts +4 -4
- package/dist/useSplitResize.d.cts +2 -2
- package/dist/useSplitResize.d.ts +2 -2
- package/dist/useTableQuery.d.cts +9 -11
- package/dist/useTableQuery.d.ts +9 -11
- package/dist/useWorkflowValidation.d.cts +33 -33
- package/dist/useWorkflowValidation.d.ts +33 -33
- package/dist/verification.d.cts +5 -5
- package/dist/verification.d.ts +5 -5
- package/docs/architecture.md +3 -1
- package/docs/components.en.md +2 -1
- package/docs/components.md +2 -1
- package/docs/engineering.en.md +11 -1
- package/docs/engineering.md +11 -1
- package/docs/guides/data-picker.md +37 -1
- package/docs/guides/remote-options.md +93 -0
- package/docs/guides/search-workflows.md +99 -2
- package/docs/search-selection-coverage.md +59 -0
- package/docs/wl-ui-produce-coverage.md +2 -0
- package/package.json +6 -3
- package/dist/helpers2.cjs +0 -1
- package/dist/helpers2.js +0 -1
package/dist/index7.vue.d.cts
CHANGED
|
@@ -1,35 +1,43 @@
|
|
|
1
|
+
import { t as BreadcrumbItem } from "./types3.cjs";
|
|
1
2
|
import * as vue from "vue";
|
|
2
3
|
|
|
3
|
-
//#region src/components/
|
|
4
|
-
interface
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
//#region src/components/C_Breadcrumb/types.d.ts
|
|
5
|
+
interface BreadcrumbRouteMeta {
|
|
6
|
+
[key: string]: unknown;
|
|
7
|
+
title?: unknown;
|
|
8
|
+
icon?: unknown;
|
|
9
|
+
hidden?: unknown;
|
|
10
|
+
breadcrumb?: unknown;
|
|
8
11
|
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
12
|
+
/** 可直接接收应用提供的授权菜单,非字符串图标由组件安全忽略。 */
|
|
13
|
+
interface BreadcrumbMenuItem {
|
|
14
|
+
path?: string;
|
|
15
|
+
key?: string | number;
|
|
16
|
+
name?: string | symbol | null;
|
|
17
|
+
label?: string;
|
|
18
|
+
icon?: unknown;
|
|
19
|
+
meta?: BreadcrumbRouteMeta;
|
|
20
|
+
children?: readonly BreadcrumbMenuItem[];
|
|
21
|
+
disabled?: boolean;
|
|
22
|
+
type?: string;
|
|
13
23
|
}
|
|
14
24
|
//#endregion
|
|
15
|
-
//#region src/components/
|
|
25
|
+
//#region src/components/C_Breadcrumb/index.vue.d.ts
|
|
16
26
|
type __VLS_Props = {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
size?: 'small' | 'medium' | 'large';
|
|
27
|
+
/** 手动路径,标签沿用传入值。 */items?: readonly BreadcrumbItem[]; /** 授权后的菜单树;提供时(含空数组)作为目录的唯一数据来源。 */
|
|
28
|
+
menus?: readonly BreadcrumbMenuItem[];
|
|
29
|
+
showIcon?: boolean;
|
|
30
|
+
iconSize?: number; /** 自动路径和菜单标签的翻译函数。 */
|
|
31
|
+
labelFormatter?: (label: string) => string;
|
|
23
32
|
};
|
|
24
33
|
declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
25
|
-
|
|
26
|
-
"update:modelValue": (value: CascadeValue) => any;
|
|
34
|
+
select: (path: string) => any;
|
|
27
35
|
}, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
28
|
-
|
|
29
|
-
"onUpdate:modelValue"?: ((value: CascadeValue) => any) | undefined;
|
|
36
|
+
onSelect?: ((path: string) => any) | undefined;
|
|
30
37
|
}>, {
|
|
31
|
-
|
|
38
|
+
showIcon: boolean;
|
|
39
|
+
iconSize: number;
|
|
32
40
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
33
41
|
declare const _default: typeof __VLS_export;
|
|
34
42
|
//#endregion
|
|
35
|
-
export {
|
|
43
|
+
export { BreadcrumbMenuItem as n, _default as t };
|
package/dist/index7.vue.d.ts
CHANGED
|
@@ -1,128 +1,35 @@
|
|
|
1
1
|
import * as vue from "vue";
|
|
2
2
|
|
|
3
|
-
//#region src/components/
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
type MessageType = 'text' | 'image' | 'file' | 'system';
|
|
9
|
-
/** 消息发送方 */
|
|
10
|
-
type MessageSender = 'self' | 'other' | 'system';
|
|
11
|
-
/** 消息状态 */
|
|
12
|
-
type MessageStatus = 'sending' | 'sent' | 'failed';
|
|
13
|
-
/** 单条消息 */
|
|
14
|
-
interface ChatMessage {
|
|
15
|
-
/** 唯一标识 */
|
|
16
|
-
id: string;
|
|
17
|
-
/** 消息内容(文本 / 图片 URL / 文件信息 JSON) */
|
|
18
|
-
content: string;
|
|
19
|
-
/** 消息类型 */
|
|
20
|
-
type: MessageType;
|
|
21
|
-
/** 发送方 */
|
|
22
|
-
sender: MessageSender;
|
|
23
|
-
/** 发送时间(ISO 字符串 或 时间戳) */
|
|
24
|
-
timestamp: string | number;
|
|
25
|
-
/** 发送者头像 URL */
|
|
26
|
-
avatar?: string;
|
|
27
|
-
/** 发送者用户名 */
|
|
28
|
-
username?: string;
|
|
29
|
-
/** 消息状态 */
|
|
30
|
-
status?: MessageStatus;
|
|
31
|
-
/** 文件名(type = 'file' 时使用) */
|
|
32
|
-
fileName?: string;
|
|
33
|
-
/** 文件大小(字节) */
|
|
34
|
-
fileSize?: number;
|
|
3
|
+
//#region src/components/C_Cascade/types.d.ts
|
|
4
|
+
interface CascadeItem {
|
|
5
|
+
label: string;
|
|
6
|
+
value: string | number;
|
|
7
|
+
children?: CascadeItem[];
|
|
35
8
|
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
/** 显示名称 */
|
|
41
|
-
name: string;
|
|
42
|
-
/** 头像 URL */
|
|
43
|
-
avatar?: string;
|
|
44
|
-
/** 最后一条消息摘要 */
|
|
45
|
-
lastMessage?: string;
|
|
46
|
-
/** 最后消息时间 */
|
|
47
|
-
lastTime?: string | number;
|
|
48
|
-
/** 未读数 */
|
|
49
|
-
unread?: number;
|
|
50
|
-
/** 是否在线 */
|
|
51
|
-
online?: boolean;
|
|
9
|
+
interface CascadeValue {
|
|
10
|
+
primary?: Pick<CascadeItem, 'label' | 'value'> | null;
|
|
11
|
+
secondary?: Pick<CascadeItem, 'label' | 'value'> | null;
|
|
12
|
+
tertiary?: Pick<CascadeItem, 'label' | 'value'> | null;
|
|
52
13
|
}
|
|
53
|
-
interface ChatProps {
|
|
54
|
-
/** 联系人列表 */
|
|
55
|
-
contacts?: ChatContact[];
|
|
56
|
-
/** 消息列表 */
|
|
57
|
-
messages?: ChatMessage[];
|
|
58
|
-
/** 当前选中的联系人 ID */
|
|
59
|
-
currentContactId?: string;
|
|
60
|
-
/** 输入框占位符 */
|
|
61
|
-
placeholder?: string;
|
|
62
|
-
/** 是否显示联系人侧栏 */
|
|
63
|
-
showContacts?: boolean;
|
|
64
|
-
/** 是否显示消息时间戳 */
|
|
65
|
-
showTimestamp?: boolean;
|
|
66
|
-
/** 当前用户头像 */
|
|
67
|
-
selfAvatar?: string;
|
|
68
|
-
/** 当前用户名 */
|
|
69
|
-
selfName?: string;
|
|
70
|
-
/** 是否显示发送按钮 */
|
|
71
|
-
showSendBtn?: boolean;
|
|
72
|
-
/** 是否正在加载历史消息 */
|
|
73
|
-
loadingHistory?: boolean;
|
|
74
|
-
/** 大列表自动窗口化;false 可保留完整 DOM(消息 200 条、联系人 100 条起)。 */
|
|
75
|
-
virtualScroll?: boolean;
|
|
76
|
-
/** 标题(无联系人模式时显示) */
|
|
77
|
-
title?: string;
|
|
78
|
-
}
|
|
79
|
-
declare const DEFAULT_CHAT_PROPS: Required<Pick<ChatProps, 'placeholder' | 'showContacts' | 'showTimestamp' | 'showSendBtn' | 'loadingHistory' | 'title'>>;
|
|
80
14
|
//#endregion
|
|
81
|
-
//#region src/components/
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
15
|
+
//#region src/components/C_Cascade/index.vue.d.ts
|
|
16
|
+
type __VLS_Props = {
|
|
17
|
+
data: CascadeItem[];
|
|
18
|
+
placeholders?: string[];
|
|
19
|
+
modelValue?: CascadeValue;
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
readonly?: boolean;
|
|
22
|
+
size?: 'small' | 'medium' | 'large';
|
|
87
23
|
};
|
|
88
|
-
declare const
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
"image-preview": (url: string) => any;
|
|
95
|
-
"file-click": (msg: ChatMessage) => any;
|
|
96
|
-
"file-upload": () => any;
|
|
97
|
-
"emoji-click": () => any;
|
|
98
|
-
resend: (msg: ChatMessage) => any;
|
|
99
|
-
}, string, vue.PublicProps, Readonly<ChatProps> & Readonly<{
|
|
100
|
-
"onLoad-more"?: (() => any) | undefined;
|
|
101
|
-
onSend?: ((content: string) => any) | undefined;
|
|
102
|
-
"onSelect-contact"?: ((id: string) => any) | undefined;
|
|
103
|
-
"onImage-preview"?: ((url: string) => any) | undefined;
|
|
104
|
-
"onFile-click"?: ((msg: ChatMessage) => any) | undefined;
|
|
105
|
-
"onFile-upload"?: (() => any) | undefined;
|
|
106
|
-
"onEmoji-click"?: (() => any) | undefined;
|
|
107
|
-
onResend?: ((msg: ChatMessage) => any) | undefined;
|
|
24
|
+
declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
25
|
+
"update:modelValue": (value: CascadeValue) => any;
|
|
26
|
+
change: (value: CascadeValue) => any;
|
|
27
|
+
}, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
28
|
+
"onUpdate:modelValue"?: ((value: CascadeValue) => any) | undefined;
|
|
29
|
+
onChange?: ((value: CascadeValue) => any) | undefined;
|
|
108
30
|
}>, {
|
|
109
|
-
|
|
110
|
-
showContacts: boolean;
|
|
111
|
-
showTimestamp: boolean;
|
|
112
|
-
showSendBtn: boolean;
|
|
113
|
-
loadingHistory: boolean;
|
|
114
|
-
contacts: ChatContact[];
|
|
115
|
-
messages: ChatMessage[];
|
|
116
|
-
currentContactId: string;
|
|
117
|
-
selfAvatar: string;
|
|
118
|
-
selfName: string;
|
|
31
|
+
placeholders: string[];
|
|
119
32
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
120
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
121
33
|
declare const _default: typeof __VLS_export;
|
|
122
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
123
|
-
new (): {
|
|
124
|
-
$slots: S;
|
|
125
|
-
};
|
|
126
|
-
};
|
|
127
34
|
//#endregion
|
|
128
|
-
export {
|
|
35
|
+
export { CascadeItem as n, CascadeValue as r, _default as t };
|
package/dist/index8.vue.d.cts
CHANGED
|
@@ -1,128 +1,35 @@
|
|
|
1
1
|
import * as vue from "vue";
|
|
2
2
|
|
|
3
|
-
//#region src/components/
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
type MessageType = 'text' | 'image' | 'file' | 'system';
|
|
9
|
-
/** 消息发送方 */
|
|
10
|
-
type MessageSender = 'self' | 'other' | 'system';
|
|
11
|
-
/** 消息状态 */
|
|
12
|
-
type MessageStatus = 'sending' | 'sent' | 'failed';
|
|
13
|
-
/** 单条消息 */
|
|
14
|
-
interface ChatMessage {
|
|
15
|
-
/** 唯一标识 */
|
|
16
|
-
id: string;
|
|
17
|
-
/** 消息内容(文本 / 图片 URL / 文件信息 JSON) */
|
|
18
|
-
content: string;
|
|
19
|
-
/** 消息类型 */
|
|
20
|
-
type: MessageType;
|
|
21
|
-
/** 发送方 */
|
|
22
|
-
sender: MessageSender;
|
|
23
|
-
/** 发送时间(ISO 字符串 或 时间戳) */
|
|
24
|
-
timestamp: string | number;
|
|
25
|
-
/** 发送者头像 URL */
|
|
26
|
-
avatar?: string;
|
|
27
|
-
/** 发送者用户名 */
|
|
28
|
-
username?: string;
|
|
29
|
-
/** 消息状态 */
|
|
30
|
-
status?: MessageStatus;
|
|
31
|
-
/** 文件名(type = 'file' 时使用) */
|
|
32
|
-
fileName?: string;
|
|
33
|
-
/** 文件大小(字节) */
|
|
34
|
-
fileSize?: number;
|
|
3
|
+
//#region src/components/C_Cascade/types.d.ts
|
|
4
|
+
interface CascadeItem {
|
|
5
|
+
label: string;
|
|
6
|
+
value: string | number;
|
|
7
|
+
children?: CascadeItem[];
|
|
35
8
|
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
/** 显示名称 */
|
|
41
|
-
name: string;
|
|
42
|
-
/** 头像 URL */
|
|
43
|
-
avatar?: string;
|
|
44
|
-
/** 最后一条消息摘要 */
|
|
45
|
-
lastMessage?: string;
|
|
46
|
-
/** 最后消息时间 */
|
|
47
|
-
lastTime?: string | number;
|
|
48
|
-
/** 未读数 */
|
|
49
|
-
unread?: number;
|
|
50
|
-
/** 是否在线 */
|
|
51
|
-
online?: boolean;
|
|
9
|
+
interface CascadeValue {
|
|
10
|
+
primary?: Pick<CascadeItem, 'label' | 'value'> | null;
|
|
11
|
+
secondary?: Pick<CascadeItem, 'label' | 'value'> | null;
|
|
12
|
+
tertiary?: Pick<CascadeItem, 'label' | 'value'> | null;
|
|
52
13
|
}
|
|
53
|
-
interface ChatProps {
|
|
54
|
-
/** 联系人列表 */
|
|
55
|
-
contacts?: ChatContact[];
|
|
56
|
-
/** 消息列表 */
|
|
57
|
-
messages?: ChatMessage[];
|
|
58
|
-
/** 当前选中的联系人 ID */
|
|
59
|
-
currentContactId?: string;
|
|
60
|
-
/** 输入框占位符 */
|
|
61
|
-
placeholder?: string;
|
|
62
|
-
/** 是否显示联系人侧栏 */
|
|
63
|
-
showContacts?: boolean;
|
|
64
|
-
/** 是否显示消息时间戳 */
|
|
65
|
-
showTimestamp?: boolean;
|
|
66
|
-
/** 当前用户头像 */
|
|
67
|
-
selfAvatar?: string;
|
|
68
|
-
/** 当前用户名 */
|
|
69
|
-
selfName?: string;
|
|
70
|
-
/** 是否显示发送按钮 */
|
|
71
|
-
showSendBtn?: boolean;
|
|
72
|
-
/** 是否正在加载历史消息 */
|
|
73
|
-
loadingHistory?: boolean;
|
|
74
|
-
/** 大列表自动窗口化;false 可保留完整 DOM(消息 200 条、联系人 100 条起)。 */
|
|
75
|
-
virtualScroll?: boolean;
|
|
76
|
-
/** 标题(无联系人模式时显示) */
|
|
77
|
-
title?: string;
|
|
78
|
-
}
|
|
79
|
-
declare const DEFAULT_CHAT_PROPS: Required<Pick<ChatProps, 'placeholder' | 'showContacts' | 'showTimestamp' | 'showSendBtn' | 'loadingHistory' | 'title'>>;
|
|
80
14
|
//#endregion
|
|
81
|
-
//#region src/components/
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
15
|
+
//#region src/components/C_Cascade/index.vue.d.ts
|
|
16
|
+
type __VLS_Props = {
|
|
17
|
+
data: CascadeItem[];
|
|
18
|
+
placeholders?: string[];
|
|
19
|
+
modelValue?: CascadeValue;
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
readonly?: boolean;
|
|
22
|
+
size?: 'small' | 'medium' | 'large';
|
|
87
23
|
};
|
|
88
|
-
declare const
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
"image-preview": (url: string) => any;
|
|
95
|
-
"file-click": (msg: ChatMessage) => any;
|
|
96
|
-
"file-upload": () => any;
|
|
97
|
-
"emoji-click": () => any;
|
|
98
|
-
resend: (msg: ChatMessage) => any;
|
|
99
|
-
}, string, vue.PublicProps, Readonly<ChatProps> & Readonly<{
|
|
100
|
-
"onLoad-more"?: (() => any) | undefined;
|
|
101
|
-
onSend?: ((content: string) => any) | undefined;
|
|
102
|
-
"onSelect-contact"?: ((id: string) => any) | undefined;
|
|
103
|
-
"onImage-preview"?: ((url: string) => any) | undefined;
|
|
104
|
-
"onFile-click"?: ((msg: ChatMessage) => any) | undefined;
|
|
105
|
-
"onFile-upload"?: (() => any) | undefined;
|
|
106
|
-
"onEmoji-click"?: (() => any) | undefined;
|
|
107
|
-
onResend?: ((msg: ChatMessage) => any) | undefined;
|
|
24
|
+
declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
25
|
+
"update:modelValue": (value: CascadeValue) => any;
|
|
26
|
+
change: (value: CascadeValue) => any;
|
|
27
|
+
}, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
28
|
+
"onUpdate:modelValue"?: ((value: CascadeValue) => any) | undefined;
|
|
29
|
+
onChange?: ((value: CascadeValue) => any) | undefined;
|
|
108
30
|
}>, {
|
|
109
|
-
|
|
110
|
-
showContacts: boolean;
|
|
111
|
-
showTimestamp: boolean;
|
|
112
|
-
showSendBtn: boolean;
|
|
113
|
-
loadingHistory: boolean;
|
|
114
|
-
contacts: ChatContact[];
|
|
115
|
-
messages: ChatMessage[];
|
|
116
|
-
currentContactId: string;
|
|
117
|
-
selfAvatar: string;
|
|
118
|
-
selfName: string;
|
|
31
|
+
placeholders: string[];
|
|
119
32
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
120
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
121
33
|
declare const _default: typeof __VLS_export;
|
|
122
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
123
|
-
new (): {
|
|
124
|
-
$slots: S;
|
|
125
|
-
};
|
|
126
|
-
};
|
|
127
34
|
//#endregion
|
|
128
|
-
export {
|
|
35
|
+
export { CascadeItem as n, CascadeValue as r, _default as t };
|
package/dist/index8.vue.d.ts
CHANGED
|
@@ -1,30 +1,121 @@
|
|
|
1
1
|
import * as vue from "vue";
|
|
2
2
|
|
|
3
|
-
//#region src/components/
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
//#region src/components/C_Chat/types.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* @Description: C_Chat 通用聊天组件 - 类型定义
|
|
6
|
+
*/
|
|
7
|
+
/** 消息类型 */
|
|
8
|
+
type MessageType = 'text' | 'image' | 'file' | 'system';
|
|
9
|
+
/** 消息发送方 */
|
|
10
|
+
type MessageSender = 'self' | 'other' | 'system';
|
|
11
|
+
/** 消息状态 */
|
|
12
|
+
type MessageStatus = 'sending' | 'sent' | 'failed';
|
|
13
|
+
/** 单条消息 */
|
|
14
|
+
interface ChatMessage {
|
|
15
|
+
/** 唯一标识 */
|
|
16
|
+
id: string;
|
|
17
|
+
/** 消息内容(文本 / 图片 URL / 文件信息 JSON) */
|
|
18
|
+
content: string;
|
|
19
|
+
/** 消息类型 */
|
|
20
|
+
type: MessageType;
|
|
21
|
+
/** 发送方 */
|
|
22
|
+
sender: MessageSender;
|
|
23
|
+
/** 发送时间(ISO 字符串 或 时间戳) */
|
|
24
|
+
timestamp: string | number;
|
|
25
|
+
/** 发送者头像 URL */
|
|
26
|
+
avatar?: string;
|
|
27
|
+
/** 发送者用户名 */
|
|
28
|
+
username?: string;
|
|
29
|
+
/** 消息状态 */
|
|
30
|
+
status?: MessageStatus;
|
|
31
|
+
/** 文件名(type = 'file' 时使用) */
|
|
32
|
+
fileName?: string;
|
|
33
|
+
/** 文件大小(字节) */
|
|
34
|
+
fileSize?: number;
|
|
35
|
+
}
|
|
36
|
+
/** 联系人 / 会话 */
|
|
37
|
+
interface ChatContact {
|
|
38
|
+
/** 唯一标识 */
|
|
39
|
+
id: string;
|
|
40
|
+
/** 显示名称 */
|
|
41
|
+
name: string;
|
|
42
|
+
/** 头像 URL */
|
|
43
|
+
avatar?: string;
|
|
44
|
+
/** 最后一条消息摘要 */
|
|
45
|
+
lastMessage?: string;
|
|
46
|
+
/** 最后消息时间 */
|
|
47
|
+
lastTime?: string | number;
|
|
48
|
+
/** 未读数 */
|
|
49
|
+
unread?: number;
|
|
50
|
+
/** 是否在线 */
|
|
51
|
+
online?: boolean;
|
|
52
|
+
}
|
|
53
|
+
interface ChatProps {
|
|
54
|
+
/** 联系人列表 */
|
|
55
|
+
contacts?: ChatContact[];
|
|
56
|
+
/** 消息列表 */
|
|
57
|
+
messages?: ChatMessage[];
|
|
58
|
+
/** 当前选中的联系人 ID */
|
|
59
|
+
currentContactId?: string;
|
|
60
|
+
/** 输入框占位符 */
|
|
6
61
|
placeholder?: string;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
62
|
+
/** 是否显示联系人侧栏 */
|
|
63
|
+
showContacts?: boolean;
|
|
64
|
+
/** 是否显示消息时间戳 */
|
|
65
|
+
showTimestamp?: boolean;
|
|
66
|
+
/** 当前用户头像 */
|
|
67
|
+
selfAvatar?: string;
|
|
68
|
+
/** 当前用户名 */
|
|
69
|
+
selfName?: string;
|
|
70
|
+
/** 是否显示发送按钮 */
|
|
71
|
+
showSendBtn?: boolean;
|
|
72
|
+
/** 是否正在加载历史消息 */
|
|
73
|
+
loadingHistory?: boolean;
|
|
74
|
+
/** 大列表自动窗口化;false 可保留完整 DOM(消息 200 条、联系人 100 条起)。 */
|
|
75
|
+
virtualScroll?: boolean;
|
|
76
|
+
/** 标题(无联系人模式时显示) */
|
|
77
|
+
title?: string;
|
|
10
78
|
}
|
|
11
|
-
declare
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
};
|
|
79
|
+
declare const DEFAULT_CHAT_PROPS: Required<Pick<ChatProps, 'placeholder' | 'showContacts' | 'showTimestamp' | 'showSendBtn' | 'loadingHistory' | 'title'>>;
|
|
80
|
+
//#endregion
|
|
81
|
+
//#region src/components/C_Chat/index.vue.d.ts
|
|
82
|
+
declare var __VLS_39: {}, __VLS_83: {};
|
|
16
83
|
type __VLS_Slots = {} & {
|
|
17
|
-
|
|
84
|
+
header?: (props: typeof __VLS_39) => any;
|
|
85
|
+
} & {
|
|
86
|
+
'input-actions'?: (props: typeof __VLS_83) => any;
|
|
18
87
|
};
|
|
19
|
-
declare const __VLS_base: vue.DefineComponent<
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
"
|
|
88
|
+
declare const __VLS_base: vue.DefineComponent<ChatProps, {
|
|
89
|
+
scrollToBottom: () => void;
|
|
90
|
+
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
|
|
91
|
+
send: (content: string) => any;
|
|
92
|
+
"select-contact": (id: string) => any;
|
|
93
|
+
"load-more": () => any;
|
|
94
|
+
"image-preview": (url: string) => any;
|
|
95
|
+
"file-click": (msg: ChatMessage) => any;
|
|
96
|
+
"file-upload": () => any;
|
|
97
|
+
"emoji-click": () => any;
|
|
98
|
+
resend: (msg: ChatMessage) => any;
|
|
99
|
+
}, string, vue.PublicProps, Readonly<ChatProps> & Readonly<{
|
|
100
|
+
onSend?: ((content: string) => any) | undefined;
|
|
101
|
+
"onSelect-contact"?: ((id: string) => any) | undefined;
|
|
102
|
+
"onLoad-more"?: (() => any) | undefined;
|
|
103
|
+
"onImage-preview"?: ((url: string) => any) | undefined;
|
|
104
|
+
"onFile-click"?: ((msg: ChatMessage) => any) | undefined;
|
|
105
|
+
"onFile-upload"?: (() => any) | undefined;
|
|
106
|
+
"onEmoji-click"?: (() => any) | undefined;
|
|
107
|
+
onResend?: ((msg: ChatMessage) => any) | undefined;
|
|
25
108
|
}>, {
|
|
26
|
-
|
|
27
|
-
|
|
109
|
+
showContacts: boolean;
|
|
110
|
+
showTimestamp: boolean;
|
|
111
|
+
showSendBtn: boolean;
|
|
112
|
+
loadingHistory: boolean;
|
|
113
|
+
contacts: ChatContact[];
|
|
114
|
+
messages: ChatMessage[];
|
|
115
|
+
currentContactId: string;
|
|
116
|
+
selfAvatar: string;
|
|
117
|
+
selfName: string;
|
|
118
|
+
virtualScroll: boolean;
|
|
28
119
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
29
120
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
30
121
|
declare const _default: typeof __VLS_export;
|
|
@@ -34,4 +125,4 @@ type __VLS_WithSlots<T, S> = T & {
|
|
|
34
125
|
};
|
|
35
126
|
};
|
|
36
127
|
//#endregion
|
|
37
|
-
export { _default as t };
|
|
128
|
+
export { DEFAULT_CHAT_PROPS as a, MessageType as c, ChatProps as i, ChatContact as n, MessageSender as o, ChatMessage as r, MessageStatus as s, _default as t };
|
package/dist/index9.vue.d.cts
CHANGED
|
@@ -1,30 +1,121 @@
|
|
|
1
1
|
import * as vue from "vue";
|
|
2
2
|
|
|
3
|
-
//#region src/components/
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
//#region src/components/C_Chat/types.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* @Description: C_Chat 通用聊天组件 - 类型定义
|
|
6
|
+
*/
|
|
7
|
+
/** 消息类型 */
|
|
8
|
+
type MessageType = 'text' | 'image' | 'file' | 'system';
|
|
9
|
+
/** 消息发送方 */
|
|
10
|
+
type MessageSender = 'self' | 'other' | 'system';
|
|
11
|
+
/** 消息状态 */
|
|
12
|
+
type MessageStatus = 'sending' | 'sent' | 'failed';
|
|
13
|
+
/** 单条消息 */
|
|
14
|
+
interface ChatMessage {
|
|
15
|
+
/** 唯一标识 */
|
|
16
|
+
id: string;
|
|
17
|
+
/** 消息内容(文本 / 图片 URL / 文件信息 JSON) */
|
|
18
|
+
content: string;
|
|
19
|
+
/** 消息类型 */
|
|
20
|
+
type: MessageType;
|
|
21
|
+
/** 发送方 */
|
|
22
|
+
sender: MessageSender;
|
|
23
|
+
/** 发送时间(ISO 字符串 或 时间戳) */
|
|
24
|
+
timestamp: string | number;
|
|
25
|
+
/** 发送者头像 URL */
|
|
26
|
+
avatar?: string;
|
|
27
|
+
/** 发送者用户名 */
|
|
28
|
+
username?: string;
|
|
29
|
+
/** 消息状态 */
|
|
30
|
+
status?: MessageStatus;
|
|
31
|
+
/** 文件名(type = 'file' 时使用) */
|
|
32
|
+
fileName?: string;
|
|
33
|
+
/** 文件大小(字节) */
|
|
34
|
+
fileSize?: number;
|
|
35
|
+
}
|
|
36
|
+
/** 联系人 / 会话 */
|
|
37
|
+
interface ChatContact {
|
|
38
|
+
/** 唯一标识 */
|
|
39
|
+
id: string;
|
|
40
|
+
/** 显示名称 */
|
|
41
|
+
name: string;
|
|
42
|
+
/** 头像 URL */
|
|
43
|
+
avatar?: string;
|
|
44
|
+
/** 最后一条消息摘要 */
|
|
45
|
+
lastMessage?: string;
|
|
46
|
+
/** 最后消息时间 */
|
|
47
|
+
lastTime?: string | number;
|
|
48
|
+
/** 未读数 */
|
|
49
|
+
unread?: number;
|
|
50
|
+
/** 是否在线 */
|
|
51
|
+
online?: boolean;
|
|
52
|
+
}
|
|
53
|
+
interface ChatProps {
|
|
54
|
+
/** 联系人列表 */
|
|
55
|
+
contacts?: ChatContact[];
|
|
56
|
+
/** 消息列表 */
|
|
57
|
+
messages?: ChatMessage[];
|
|
58
|
+
/** 当前选中的联系人 ID */
|
|
59
|
+
currentContactId?: string;
|
|
60
|
+
/** 输入框占位符 */
|
|
6
61
|
placeholder?: string;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
62
|
+
/** 是否显示联系人侧栏 */
|
|
63
|
+
showContacts?: boolean;
|
|
64
|
+
/** 是否显示消息时间戳 */
|
|
65
|
+
showTimestamp?: boolean;
|
|
66
|
+
/** 当前用户头像 */
|
|
67
|
+
selfAvatar?: string;
|
|
68
|
+
/** 当前用户名 */
|
|
69
|
+
selfName?: string;
|
|
70
|
+
/** 是否显示发送按钮 */
|
|
71
|
+
showSendBtn?: boolean;
|
|
72
|
+
/** 是否正在加载历史消息 */
|
|
73
|
+
loadingHistory?: boolean;
|
|
74
|
+
/** 大列表自动窗口化;false 可保留完整 DOM(消息 200 条、联系人 100 条起)。 */
|
|
75
|
+
virtualScroll?: boolean;
|
|
76
|
+
/** 标题(无联系人模式时显示) */
|
|
77
|
+
title?: string;
|
|
10
78
|
}
|
|
11
|
-
declare
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
};
|
|
79
|
+
declare const DEFAULT_CHAT_PROPS: Required<Pick<ChatProps, 'placeholder' | 'showContacts' | 'showTimestamp' | 'showSendBtn' | 'loadingHistory' | 'title'>>;
|
|
80
|
+
//#endregion
|
|
81
|
+
//#region src/components/C_Chat/index.vue.d.ts
|
|
82
|
+
declare var __VLS_39: {}, __VLS_83: {};
|
|
16
83
|
type __VLS_Slots = {} & {
|
|
17
|
-
|
|
84
|
+
header?: (props: typeof __VLS_39) => any;
|
|
85
|
+
} & {
|
|
86
|
+
'input-actions'?: (props: typeof __VLS_83) => any;
|
|
18
87
|
};
|
|
19
|
-
declare const __VLS_base: vue.DefineComponent<
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
"
|
|
88
|
+
declare const __VLS_base: vue.DefineComponent<ChatProps, {
|
|
89
|
+
scrollToBottom: () => void;
|
|
90
|
+
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
|
|
91
|
+
send: (content: string) => any;
|
|
92
|
+
"select-contact": (id: string) => any;
|
|
93
|
+
"load-more": () => any;
|
|
94
|
+
"image-preview": (url: string) => any;
|
|
95
|
+
"file-click": (msg: ChatMessage) => any;
|
|
96
|
+
"file-upload": () => any;
|
|
97
|
+
"emoji-click": () => any;
|
|
98
|
+
resend: (msg: ChatMessage) => any;
|
|
99
|
+
}, string, vue.PublicProps, Readonly<ChatProps> & Readonly<{
|
|
100
|
+
onSend?: ((content: string) => any) | undefined;
|
|
101
|
+
"onSelect-contact"?: ((id: string) => any) | undefined;
|
|
102
|
+
"onLoad-more"?: (() => any) | undefined;
|
|
103
|
+
"onImage-preview"?: ((url: string) => any) | undefined;
|
|
104
|
+
"onFile-click"?: ((msg: ChatMessage) => any) | undefined;
|
|
105
|
+
"onFile-upload"?: (() => any) | undefined;
|
|
106
|
+
"onEmoji-click"?: (() => any) | undefined;
|
|
107
|
+
onResend?: ((msg: ChatMessage) => any) | undefined;
|
|
25
108
|
}>, {
|
|
26
|
-
|
|
27
|
-
|
|
109
|
+
showContacts: boolean;
|
|
110
|
+
showTimestamp: boolean;
|
|
111
|
+
showSendBtn: boolean;
|
|
112
|
+
loadingHistory: boolean;
|
|
113
|
+
contacts: ChatContact[];
|
|
114
|
+
messages: ChatMessage[];
|
|
115
|
+
currentContactId: string;
|
|
116
|
+
selfAvatar: string;
|
|
117
|
+
selfName: string;
|
|
118
|
+
virtualScroll: boolean;
|
|
28
119
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
29
120
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
30
121
|
declare const _default: typeof __VLS_export;
|
|
@@ -34,4 +125,4 @@ type __VLS_WithSlots<T, S> = T & {
|
|
|
34
125
|
};
|
|
35
126
|
};
|
|
36
127
|
//#endregion
|
|
37
|
-
export { _default as t };
|
|
128
|
+
export { DEFAULT_CHAT_PROPS as a, MessageType as c, ChatProps as i, ChatContact as n, MessageSender as o, ChatMessage as r, MessageStatus as s, _default as t };
|