@matechat/core 1.10.0 → 1.11.0-alpha.1
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/Attachment/Attachment.vue.d.ts +121 -0
- package/Attachment/attachment-types.d.ts +103 -0
- package/Attachment/drop-area.vue.d.ts +13 -0
- package/Attachment/index.css +1 -1
- package/Attachment/index.d.ts +2 -0
- package/Attachment/index.js +211 -311
- package/Attachment/uploader.d.ts +11 -0
- package/Attachment/use-upload.d.ts +8 -0
- package/Bubble/Bubble.vue.d.ts +75 -0
- package/Bubble/BubbleLoading.vue.d.ts +3 -0
- package/Bubble/bubble-constants.d.ts +4 -0
- package/Bubble/bubble-types.d.ts +38 -0
- package/Bubble/components/Avatar.vue.d.ts +57 -0
- package/Bubble/components/AvatarBodyIcon.vue.d.ts +24 -0
- package/Bubble/components/AvatarNoBodyIcon.vue.d.ts +24 -0
- package/Bubble/components/avatar-types.d.ts +25 -0
- package/Bubble/index.css +1 -1
- package/Bubble/index.d.ts +2 -0
- package/Bubble/index.js +11 -11
- package/FileList/FileIcon/CodeFile.vue.d.ts +10 -0
- package/FileList/FileIcon/CompressedFile.vue.d.ts +10 -0
- package/FileList/FileIcon/DefaultFileIcon.vue.d.ts +10 -0
- package/FileList/FileIcon/Document.vue.d.ts +10 -0
- package/FileList/FileIcon/DrawingBoard.vue.d.ts +10 -0
- package/FileList/FileIcon/EmailFile.vue.d.ts +10 -0
- package/FileList/FileIcon/Excel.vue.d.ts +10 -0
- package/FileList/FileIcon/FlowChart.vue.d.ts +10 -0
- package/FileList/FileIcon/FolderClosed.vue.d.ts +10 -0
- package/FileList/FileIcon/FolderOpen.vue.d.ts +10 -0
- package/FileList/FileIcon/Image.vue.d.ts +10 -0
- package/FileList/FileIcon/Markdown.vue.d.ts +10 -0
- package/FileList/FileIcon/Mind.vue.d.ts +10 -0
- package/FileList/FileIcon/Mp4.vue.d.ts +10 -0
- package/FileList/FileIcon/MultidimentionalTable.vue.d.ts +10 -0
- package/FileList/FileIcon/Page.vue.d.ts +10 -0
- package/FileList/FileIcon/Pdf.vue.d.ts +10 -0
- package/FileList/FileIcon/Ppt.vue.d.ts +10 -0
- package/FileList/FileIcon/Unknown.vue.d.ts +10 -0
- package/FileList/FileIcon/Wrong.vue.d.ts +10 -0
- package/FileList/FileList.vue.d.ts +36 -0
- package/FileList/fileList-types.d.ts +21 -0
- package/FileList/index.d.ts +2 -0
- package/FileList/index.js +220 -228
- package/Header/Header.vue.d.ts +47 -0
- package/Header/header-types.d.ts +14 -0
- package/Header/index.d.ts +2 -0
- package/Input/Input.vue.d.ts +165 -0
- package/Input/components/EditableBlock.vue.d.ts +101 -0
- package/Input/components/InputTag.vue.d.ts +30 -0
- package/Input/components/LoadingIcon.vue.d.ts +3 -0
- package/Input/components/SendIcon.vue.d.ts +3 -0
- package/Input/components/button.vue.d.ts +3 -0
- package/Input/components/textarea-utils.d.ts +17 -0
- package/Input/components/textarea.vue.d.ts +3 -0
- package/Input/components/use-textarea-autosize.d.ts +12 -0
- package/Input/components/util.d.ts +3 -0
- package/Input/index.css +1 -1
- package/Input/index.d.ts +2 -0
- package/Input/index.js +593 -165
- package/Input/input-types.d.ts +118 -0
- package/Introduction/Introduction.vue.d.ts +88 -0
- package/Introduction/index.css +1 -1
- package/Introduction/index.d.ts +2 -0
- package/Introduction/index.js +41 -32
- package/Introduction/introduction-types.d.ts +37 -0
- package/Layout/Aside.vue.d.ts +13 -0
- package/Layout/Content.vue.d.ts +13 -0
- package/Layout/Header.vue.d.ts +13 -0
- package/Layout/Layout.vue.d.ts +13 -0
- package/Layout/Sender.vue.d.ts +13 -0
- package/Layout/index.d.ts +6 -0
- package/List/List.vue.d.ts +98 -0
- package/List/const.d.ts +5 -0
- package/List/index.d.ts +3 -0
- package/List/list-types.d.ts +52 -0
- package/List/use-list.d.ts +13 -0
- package/Locale/i18n.d.ts +21 -0
- package/Locale/index.d.ts +7 -0
- package/Locale/index.js +33 -51
- package/Locale/lang/en-us.d.ts +34 -0
- package/Locale/lang/zh-cn.d.ts +34 -0
- package/MarkdownCard/CodeBlock.vue.d.ts +76 -0
- package/MarkdownCard/MDCardParser.d.ts +12 -0
- package/MarkdownCard/MDCardService.d.ts +14 -0
- package/MarkdownCard/MermaidService.d.ts +22 -0
- package/MarkdownCard/index.css +1 -1
- package/MarkdownCard/index.d.ts +2 -0
- package/MarkdownCard/index.js +159 -159
- package/MarkdownCard/mdCard.types.d.ts +88 -0
- package/MarkdownCard/mdCard.vue.d.ts +29 -0
- package/Mention/Mention.vue.d.ts +51 -0
- package/Mention/const.d.ts +4 -0
- package/Mention/index.d.ts +2 -0
- package/Mention/mention-types.d.ts +24 -0
- package/Mention/use-mention.d.ts +10 -0
- package/Prompt/Prompt.vue.d.ts +38 -0
- package/Prompt/PromptItem.vue.d.ts +11 -0
- package/Prompt/components/Icon.vue.d.ts +42 -0
- package/Prompt/components/icon-types.d.ts +18 -0
- package/Prompt/index.d.ts +2 -0
- package/Prompt/prompt-types.d.ts +33 -0
- package/Toolbar/Toolbar.vue.d.ts +68 -0
- package/Toolbar/icon/CopyIcon.vue.d.ts +42 -0
- package/Toolbar/icon/DeleteIcon.vue.d.ts +42 -0
- package/Toolbar/icon/DislikeIcon.vue.d.ts +46 -0
- package/Toolbar/icon/LikeIcon.vue.d.ts +46 -0
- package/Toolbar/icon/RefreshIcon.vue.d.ts +42 -0
- package/Toolbar/icon/ShareIcon.vue.d.ts +42 -0
- package/Toolbar/index.css +1 -0
- package/Toolbar/index.d.ts +9 -0
- package/Toolbar/index.js +520 -0
- package/Toolbar/toolbar.types.d.ts +60 -0
- package/index.d.ts +18 -6
- package/mate-chat.js +11 -2
- package/package.json +1 -1
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import type { ExtractPropTypes, PropType, Ref } from "vue";
|
|
2
|
+
export declare enum DisplayType {
|
|
3
|
+
Simple = "simple",
|
|
4
|
+
Full = "full"
|
|
5
|
+
}
|
|
6
|
+
export declare enum InputVariant {
|
|
7
|
+
Bordered = "bordered",
|
|
8
|
+
BorderLess = "borderless"
|
|
9
|
+
}
|
|
10
|
+
export declare enum SendBtnVariant {
|
|
11
|
+
Simple = "simple",
|
|
12
|
+
Full = "full"
|
|
13
|
+
}
|
|
14
|
+
export declare enum SubmitShortKey {
|
|
15
|
+
Enter = "enter",
|
|
16
|
+
ShiftEnter = "shiftEnter"
|
|
17
|
+
}
|
|
18
|
+
export interface ThemeTagItem {
|
|
19
|
+
type: 'themeTag';
|
|
20
|
+
themeTagKey?: string;
|
|
21
|
+
themeTagText: string;
|
|
22
|
+
clearInput?: boolean;
|
|
23
|
+
popoverContent: string;
|
|
24
|
+
}
|
|
25
|
+
export interface TipTagOption {
|
|
26
|
+
tipTagKey?: string;
|
|
27
|
+
tipTagText: string;
|
|
28
|
+
clearInput?: boolean;
|
|
29
|
+
popoverContent: string;
|
|
30
|
+
}
|
|
31
|
+
export interface FormatTextItem {
|
|
32
|
+
type: 'text';
|
|
33
|
+
key: string;
|
|
34
|
+
content: string;
|
|
35
|
+
}
|
|
36
|
+
export interface FormatInputItem {
|
|
37
|
+
type: 'input';
|
|
38
|
+
key: string;
|
|
39
|
+
placeholder?: string;
|
|
40
|
+
content?: string;
|
|
41
|
+
}
|
|
42
|
+
export type FormatContentItem = FormatTextItem | FormatInputItem | ThemeTagItem;
|
|
43
|
+
export interface FormatContentOptions {
|
|
44
|
+
formatContent: FormatContentItem[];
|
|
45
|
+
}
|
|
46
|
+
export type TextareaAutoSize = {
|
|
47
|
+
minRows?: number;
|
|
48
|
+
maxRows?: number;
|
|
49
|
+
} | boolean;
|
|
50
|
+
export declare const DEFAULT_AUTOSIZE: {
|
|
51
|
+
minRows: number;
|
|
52
|
+
maxRows: number;
|
|
53
|
+
};
|
|
54
|
+
export declare const inputProps: {
|
|
55
|
+
value: {
|
|
56
|
+
type: StringConstructor;
|
|
57
|
+
default: string;
|
|
58
|
+
};
|
|
59
|
+
formatContentOptions: {
|
|
60
|
+
type: PropType<FormatContentOptions>;
|
|
61
|
+
default: () => void;
|
|
62
|
+
};
|
|
63
|
+
placeholder: {
|
|
64
|
+
type: StringConstructor;
|
|
65
|
+
};
|
|
66
|
+
disabled: {
|
|
67
|
+
type: BooleanConstructor;
|
|
68
|
+
default: boolean;
|
|
69
|
+
};
|
|
70
|
+
displayType: {
|
|
71
|
+
type: PropType<DisplayType>;
|
|
72
|
+
default: DisplayType;
|
|
73
|
+
};
|
|
74
|
+
variant: {
|
|
75
|
+
type: PropType<InputVariant>;
|
|
76
|
+
default: InputVariant;
|
|
77
|
+
};
|
|
78
|
+
sendBtnVariant: {
|
|
79
|
+
type: PropType<SendBtnVariant>;
|
|
80
|
+
default: SendBtnVariant;
|
|
81
|
+
};
|
|
82
|
+
loading: {
|
|
83
|
+
type: BooleanConstructor;
|
|
84
|
+
default: boolean;
|
|
85
|
+
};
|
|
86
|
+
showCount: {
|
|
87
|
+
type: BooleanConstructor;
|
|
88
|
+
default: boolean;
|
|
89
|
+
};
|
|
90
|
+
maxLength: {
|
|
91
|
+
type: NumberConstructor;
|
|
92
|
+
};
|
|
93
|
+
submitShortKey: {
|
|
94
|
+
type: PropType<SubmitShortKey | null>;
|
|
95
|
+
default: SubmitShortKey;
|
|
96
|
+
};
|
|
97
|
+
autofocus: {
|
|
98
|
+
type: BooleanConstructor;
|
|
99
|
+
default: boolean;
|
|
100
|
+
};
|
|
101
|
+
autosize: {
|
|
102
|
+
type: PropType<TextareaAutoSize>;
|
|
103
|
+
default: boolean;
|
|
104
|
+
};
|
|
105
|
+
autoClear: {
|
|
106
|
+
type: BooleanConstructor;
|
|
107
|
+
default: boolean;
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
export type InputProps = ExtractPropTypes<typeof inputProps>;
|
|
111
|
+
export interface InputContext {
|
|
112
|
+
inputValue: Ref<string>;
|
|
113
|
+
rootProps: InputProps;
|
|
114
|
+
rootEmits: (event: string, ...args: any[]) => void;
|
|
115
|
+
clearInputAfterSubmit: () => void;
|
|
116
|
+
}
|
|
117
|
+
export declare const inputEmits: string[];
|
|
118
|
+
export declare const inputInjectionKey = "mc-input";
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
declare var __VLS_1: {};
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
default?: (props: typeof __VLS_1) => any;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
6
|
+
logoImg: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
default: string;
|
|
9
|
+
};
|
|
10
|
+
logoWidth: {
|
|
11
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
14
|
+
logoHeight: {
|
|
15
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
|
+
title: {
|
|
19
|
+
type: StringConstructor;
|
|
20
|
+
default: string;
|
|
21
|
+
};
|
|
22
|
+
subTitle: {
|
|
23
|
+
type: StringConstructor;
|
|
24
|
+
default: string;
|
|
25
|
+
};
|
|
26
|
+
description: {
|
|
27
|
+
type: import("vue").PropType<string[]>;
|
|
28
|
+
default: () => never[];
|
|
29
|
+
};
|
|
30
|
+
background: {
|
|
31
|
+
type: import("vue").PropType<import("./introduction-types").IntroductionBackground>;
|
|
32
|
+
default: string;
|
|
33
|
+
};
|
|
34
|
+
align: {
|
|
35
|
+
type: import("vue").PropType<import("./introduction-types").IntroductionAlign>;
|
|
36
|
+
default: string;
|
|
37
|
+
};
|
|
38
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
39
|
+
logoImg: {
|
|
40
|
+
type: StringConstructor;
|
|
41
|
+
default: string;
|
|
42
|
+
};
|
|
43
|
+
logoWidth: {
|
|
44
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
45
|
+
default: string;
|
|
46
|
+
};
|
|
47
|
+
logoHeight: {
|
|
48
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
49
|
+
default: string;
|
|
50
|
+
};
|
|
51
|
+
title: {
|
|
52
|
+
type: StringConstructor;
|
|
53
|
+
default: string;
|
|
54
|
+
};
|
|
55
|
+
subTitle: {
|
|
56
|
+
type: StringConstructor;
|
|
57
|
+
default: string;
|
|
58
|
+
};
|
|
59
|
+
description: {
|
|
60
|
+
type: import("vue").PropType<string[]>;
|
|
61
|
+
default: () => never[];
|
|
62
|
+
};
|
|
63
|
+
background: {
|
|
64
|
+
type: import("vue").PropType<import("./introduction-types").IntroductionBackground>;
|
|
65
|
+
default: string;
|
|
66
|
+
};
|
|
67
|
+
align: {
|
|
68
|
+
type: import("vue").PropType<import("./introduction-types").IntroductionAlign>;
|
|
69
|
+
default: string;
|
|
70
|
+
};
|
|
71
|
+
}>> & Readonly<{}>, {
|
|
72
|
+
background: import("./introduction-types").IntroductionBackground;
|
|
73
|
+
title: string;
|
|
74
|
+
description: string[];
|
|
75
|
+
align: import("./introduction-types").IntroductionAlign;
|
|
76
|
+
logoImg: string;
|
|
77
|
+
logoWidth: string | number;
|
|
78
|
+
logoHeight: string | number;
|
|
79
|
+
subTitle: string;
|
|
80
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
81
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
82
|
+
declare const _default: typeof __VLS_export;
|
|
83
|
+
export default _default;
|
|
84
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
85
|
+
new (): {
|
|
86
|
+
$slots: S;
|
|
87
|
+
};
|
|
88
|
+
};
|
package/Introduction/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.mc-introduction[data-v-
|
|
1
|
+
.mc-introduction[data-v-31ff847b]{display:flex;gap:12px;flex-direction:column;color:var(--devui-text, #252b3a)}.mc-introduction .mc-introduction-logo-container[data-v-31ff847b]{display:flex;align-items:center;gap:8px}.mc-introduction .mc-introduction-logo-container .mc-introduction-title[data-v-31ff847b]{font-weight:700;font-size:32px;letter-spacing:1px}.mc-introduction .mc-introduction-sub-title[data-v-31ff847b]{font-weight:500;font-size:18px}.mc-introduction .mc-introduction-description[data-v-31ff847b]{font-size:var(--devui-font-size, 12px)}.mc-introduction .mc-introduction-description>div[data-v-31ff847b]{line-height:1.5}.mc-introduction.filled[data-v-31ff847b]{background-color:var(--devui-global-bg, #f6f6f8);border-radius:8px;padding:8px 12px}.mc-introduction.center[data-v-31ff847b]{align-items:center}.mc-introduction.center .mc-introduction-description[data-v-31ff847b]{text-align:center}.mc-introduction.left[data-v-31ff847b]{align-items:flex-start}.mc-introduction.left .mc-introduction-description[data-v-31ff847b]{text-align:left}.mc-introduction.right[data-v-31ff847b]{align-items:flex-end}.mc-introduction.right .mc-introduction-description[data-v-31ff847b]{text-align:right}
|
package/Introduction/index.js
CHANGED
|
@@ -1,10 +1,18 @@
|
|
|
1
1
|
import "./index.css";
|
|
2
|
-
import { defineComponent as
|
|
3
|
-
const
|
|
2
|
+
import { defineComponent as c, createElementBlock as e, openBlock as o, normalizeClass as g, createElementVNode as a, createCommentVNode as s, renderSlot as p, normalizeStyle as m, toDisplayString as d, Fragment as f, renderList as y } from "vue";
|
|
3
|
+
const h = {
|
|
4
4
|
logoImg: {
|
|
5
5
|
type: String,
|
|
6
6
|
default: ""
|
|
7
7
|
},
|
|
8
|
+
logoWidth: {
|
|
9
|
+
type: [String, Number],
|
|
10
|
+
default: ""
|
|
11
|
+
},
|
|
12
|
+
logoHeight: {
|
|
13
|
+
type: [String, Number],
|
|
14
|
+
default: ""
|
|
15
|
+
},
|
|
8
16
|
title: {
|
|
9
17
|
type: String,
|
|
10
18
|
default: ""
|
|
@@ -25,73 +33,74 @@ const v = {
|
|
|
25
33
|
type: String,
|
|
26
34
|
default: "center"
|
|
27
35
|
}
|
|
28
|
-
},
|
|
36
|
+
}, v = { class: "mc-introduction-logo-container" }, b = ["src", "alt"], S = { class: "mc-introduction-title" }, k = {
|
|
29
37
|
key: 0,
|
|
30
38
|
class: "mc-introduction-sub-title"
|
|
31
39
|
}, I = {
|
|
32
40
|
key: 1,
|
|
33
41
|
class: "mc-introduction-description"
|
|
34
|
-
},
|
|
42
|
+
}, _ = /* @__PURE__ */ c({
|
|
35
43
|
__name: "Introduction",
|
|
36
|
-
props:
|
|
37
|
-
setup(
|
|
38
|
-
return (t,
|
|
44
|
+
props: h,
|
|
45
|
+
setup(i) {
|
|
46
|
+
return (t, n) => (o(), e(
|
|
39
47
|
"div",
|
|
40
48
|
{
|
|
41
|
-
class:
|
|
49
|
+
class: g(["mc-introduction", [t.align, t.background]])
|
|
42
50
|
},
|
|
43
51
|
[
|
|
44
|
-
|
|
52
|
+
a("div", v, [
|
|
45
53
|
t.logoImg ? (o(), e("img", {
|
|
46
54
|
key: 0,
|
|
47
55
|
src: t.logoImg,
|
|
48
|
-
alt: t.title
|
|
49
|
-
|
|
50
|
-
|
|
56
|
+
alt: t.title,
|
|
57
|
+
style: m({ width: typeof t.logoWidth == "number" ? `${t.logoWidth}px` : t.logoWidth, height: typeof t.logoHeight == "number" ? `${t.logoHeight}px` : t.logoHeight })
|
|
58
|
+
}, null, 12, b)) : s("v-if", !0),
|
|
59
|
+
a(
|
|
51
60
|
"div",
|
|
52
|
-
|
|
53
|
-
|
|
61
|
+
S,
|
|
62
|
+
d(t.title),
|
|
54
63
|
1
|
|
55
64
|
/* TEXT */
|
|
56
65
|
)
|
|
57
66
|
]),
|
|
58
67
|
t.subTitle ? (o(), e(
|
|
59
68
|
"div",
|
|
60
|
-
|
|
61
|
-
|
|
69
|
+
k,
|
|
70
|
+
d(t.subTitle),
|
|
62
71
|
1
|
|
63
72
|
/* TEXT */
|
|
64
|
-
)) :
|
|
73
|
+
)) : s("v-if", !0),
|
|
65
74
|
t.description.length ? (o(), e("div", I, [
|
|
66
75
|
(o(!0), e(
|
|
67
|
-
|
|
76
|
+
f,
|
|
68
77
|
null,
|
|
69
|
-
|
|
78
|
+
y(t.description, (r, l) => (o(), e(
|
|
70
79
|
"div",
|
|
71
|
-
{ key:
|
|
72
|
-
|
|
80
|
+
{ key: l },
|
|
81
|
+
d(r),
|
|
73
82
|
1
|
|
74
83
|
/* TEXT */
|
|
75
84
|
))),
|
|
76
85
|
128
|
|
77
86
|
/* KEYED_FRAGMENT */
|
|
78
87
|
))
|
|
79
|
-
])) :
|
|
80
|
-
|
|
88
|
+
])) : s("v-if", !0),
|
|
89
|
+
p(t.$slots, "default", {}, void 0, !0)
|
|
81
90
|
],
|
|
82
91
|
2
|
|
83
92
|
/* CLASS */
|
|
84
93
|
));
|
|
85
94
|
}
|
|
86
|
-
}),
|
|
87
|
-
const
|
|
88
|
-
for (const [r,
|
|
89
|
-
|
|
90
|
-
return
|
|
91
|
-
},
|
|
92
|
-
|
|
93
|
-
|
|
95
|
+
}), H = (i, t) => {
|
|
96
|
+
const n = i.__vccOpts || i;
|
|
97
|
+
for (const [r, l] of t)
|
|
98
|
+
n[r] = l;
|
|
99
|
+
return n;
|
|
100
|
+
}, u = /* @__PURE__ */ H(_, [["__scopeId", "data-v-31ff847b"]]);
|
|
101
|
+
u.install = (i) => {
|
|
102
|
+
i.component("McIntroduction", u);
|
|
94
103
|
};
|
|
95
104
|
export {
|
|
96
|
-
|
|
105
|
+
u as McIntroduction
|
|
97
106
|
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { PropType } from 'vue';
|
|
2
|
+
export type IntroductionBackground = 'filled' | 'transparent';
|
|
3
|
+
export type IntroductionAlign = 'left' | 'center' | 'right';
|
|
4
|
+
export declare const props: {
|
|
5
|
+
logoImg: {
|
|
6
|
+
type: StringConstructor;
|
|
7
|
+
default: string;
|
|
8
|
+
};
|
|
9
|
+
logoWidth: {
|
|
10
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
11
|
+
default: string;
|
|
12
|
+
};
|
|
13
|
+
logoHeight: {
|
|
14
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
15
|
+
default: string;
|
|
16
|
+
};
|
|
17
|
+
title: {
|
|
18
|
+
type: StringConstructor;
|
|
19
|
+
default: string;
|
|
20
|
+
};
|
|
21
|
+
subTitle: {
|
|
22
|
+
type: StringConstructor;
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
25
|
+
description: {
|
|
26
|
+
type: PropType<string[]>;
|
|
27
|
+
default: () => never[];
|
|
28
|
+
};
|
|
29
|
+
background: {
|
|
30
|
+
type: PropType<IntroductionBackground>;
|
|
31
|
+
default: string;
|
|
32
|
+
};
|
|
33
|
+
align: {
|
|
34
|
+
type: PropType<IntroductionAlign>;
|
|
35
|
+
default: string;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare var __VLS_1: {};
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
default?: (props: typeof __VLS_1) => any;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
9
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
10
|
+
new (): {
|
|
11
|
+
$slots: S;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare var __VLS_1: {};
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
default?: (props: typeof __VLS_1) => any;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
9
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
10
|
+
new (): {
|
|
11
|
+
$slots: S;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare var __VLS_1: {};
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
default?: (props: typeof __VLS_1) => any;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
9
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
10
|
+
new (): {
|
|
11
|
+
$slots: S;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare var __VLS_1: {};
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
default?: (props: typeof __VLS_1) => any;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
9
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
10
|
+
new (): {
|
|
11
|
+
$slots: S;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare var __VLS_1: {};
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
default?: (props: typeof __VLS_1) => any;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
9
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
10
|
+
new (): {
|
|
11
|
+
$slots: S;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import McLayoutAside from './Aside.vue.ts';
|
|
2
|
+
import McLayoutContent from './Content.vue.ts';
|
|
3
|
+
import McLayoutHeader from './Header.vue.ts';
|
|
4
|
+
import McLayout from './Layout.vue.ts';
|
|
5
|
+
import McLayoutSender from './Sender.vue.ts';
|
|
6
|
+
export { McLayoutAside, McLayoutContent, McLayoutHeader, McLayout, McLayoutSender };
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { ListVariant } from './list-types';
|
|
2
|
+
declare var __VLS_1: {
|
|
3
|
+
item: import("./list-types").ListItemData;
|
|
4
|
+
}, __VLS_3: {
|
|
5
|
+
item: import("./list-types").ListItemData;
|
|
6
|
+
};
|
|
7
|
+
type __VLS_Slots = {} & {
|
|
8
|
+
item?: (props: typeof __VLS_1) => any;
|
|
9
|
+
} & {
|
|
10
|
+
item?: (props: typeof __VLS_3) => any;
|
|
11
|
+
};
|
|
12
|
+
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
13
|
+
direction: {
|
|
14
|
+
type: import("vue").PropType<import("./list-types").ListDirection>;
|
|
15
|
+
default: import("./list-types").ListDirection;
|
|
16
|
+
};
|
|
17
|
+
autoWrap: {
|
|
18
|
+
type: BooleanConstructor;
|
|
19
|
+
default: boolean;
|
|
20
|
+
};
|
|
21
|
+
variant: {
|
|
22
|
+
type: import("vue").PropType<ListVariant>;
|
|
23
|
+
default: ListVariant;
|
|
24
|
+
};
|
|
25
|
+
enableLazyLoad: {
|
|
26
|
+
type: BooleanConstructor;
|
|
27
|
+
default: boolean;
|
|
28
|
+
};
|
|
29
|
+
data: {
|
|
30
|
+
type: import("vue").PropType<import("./list-types").ListItemData[]>;
|
|
31
|
+
default: () => never[];
|
|
32
|
+
};
|
|
33
|
+
enableShortKey: {
|
|
34
|
+
type: BooleanConstructor;
|
|
35
|
+
default: boolean;
|
|
36
|
+
};
|
|
37
|
+
inputEl: {
|
|
38
|
+
type: import("vue").PropType<HTMLElement>;
|
|
39
|
+
};
|
|
40
|
+
selectable: {
|
|
41
|
+
type: BooleanConstructor;
|
|
42
|
+
default: boolean;
|
|
43
|
+
};
|
|
44
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
45
|
+
select: (...args: any[]) => void;
|
|
46
|
+
loadMore: (...args: any[]) => void;
|
|
47
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
48
|
+
direction: {
|
|
49
|
+
type: import("vue").PropType<import("./list-types").ListDirection>;
|
|
50
|
+
default: import("./list-types").ListDirection;
|
|
51
|
+
};
|
|
52
|
+
autoWrap: {
|
|
53
|
+
type: BooleanConstructor;
|
|
54
|
+
default: boolean;
|
|
55
|
+
};
|
|
56
|
+
variant: {
|
|
57
|
+
type: import("vue").PropType<ListVariant>;
|
|
58
|
+
default: ListVariant;
|
|
59
|
+
};
|
|
60
|
+
enableLazyLoad: {
|
|
61
|
+
type: BooleanConstructor;
|
|
62
|
+
default: boolean;
|
|
63
|
+
};
|
|
64
|
+
data: {
|
|
65
|
+
type: import("vue").PropType<import("./list-types").ListItemData[]>;
|
|
66
|
+
default: () => never[];
|
|
67
|
+
};
|
|
68
|
+
enableShortKey: {
|
|
69
|
+
type: BooleanConstructor;
|
|
70
|
+
default: boolean;
|
|
71
|
+
};
|
|
72
|
+
inputEl: {
|
|
73
|
+
type: import("vue").PropType<HTMLElement>;
|
|
74
|
+
};
|
|
75
|
+
selectable: {
|
|
76
|
+
type: BooleanConstructor;
|
|
77
|
+
default: boolean;
|
|
78
|
+
};
|
|
79
|
+
}>> & Readonly<{
|
|
80
|
+
onSelect?: ((...args: any[]) => any) | undefined;
|
|
81
|
+
onLoadMore?: ((...args: any[]) => any) | undefined;
|
|
82
|
+
}>, {
|
|
83
|
+
variant: ListVariant;
|
|
84
|
+
data: import("./list-types").ListItemData[];
|
|
85
|
+
direction: import("./list-types").ListDirection;
|
|
86
|
+
autoWrap: boolean;
|
|
87
|
+
enableLazyLoad: boolean;
|
|
88
|
+
enableShortKey: boolean;
|
|
89
|
+
selectable: boolean;
|
|
90
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
91
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
92
|
+
declare const _default: typeof __VLS_export;
|
|
93
|
+
export default _default;
|
|
94
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
95
|
+
new (): {
|
|
96
|
+
$slots: S;
|
|
97
|
+
};
|
|
98
|
+
};
|
package/List/const.d.ts
ADDED
package/List/index.d.ts
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import type { ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
export declare enum ListDirection {
|
|
3
|
+
Horizontal = "horizontal",
|
|
4
|
+
Vertical = "vertical"
|
|
5
|
+
}
|
|
6
|
+
export declare enum ListVariant {
|
|
7
|
+
Transparent = "transparent",
|
|
8
|
+
Filled = "filled",
|
|
9
|
+
Bordered = "bordered",
|
|
10
|
+
None = "none"
|
|
11
|
+
}
|
|
12
|
+
export interface ListItemData {
|
|
13
|
+
label: string;
|
|
14
|
+
value: string | number;
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
active?: boolean;
|
|
17
|
+
[key: string]: any;
|
|
18
|
+
}
|
|
19
|
+
export declare const listProps: {
|
|
20
|
+
direction: {
|
|
21
|
+
type: PropType<ListDirection>;
|
|
22
|
+
default: ListDirection;
|
|
23
|
+
};
|
|
24
|
+
autoWrap: {
|
|
25
|
+
type: BooleanConstructor;
|
|
26
|
+
default: boolean;
|
|
27
|
+
};
|
|
28
|
+
variant: {
|
|
29
|
+
type: PropType<ListVariant>;
|
|
30
|
+
default: ListVariant;
|
|
31
|
+
};
|
|
32
|
+
enableLazyLoad: {
|
|
33
|
+
type: BooleanConstructor;
|
|
34
|
+
default: boolean;
|
|
35
|
+
};
|
|
36
|
+
data: {
|
|
37
|
+
type: PropType<ListItemData[]>;
|
|
38
|
+
default: () => never[];
|
|
39
|
+
};
|
|
40
|
+
enableShortKey: {
|
|
41
|
+
type: BooleanConstructor;
|
|
42
|
+
default: boolean;
|
|
43
|
+
};
|
|
44
|
+
inputEl: {
|
|
45
|
+
type: PropType<HTMLElement>;
|
|
46
|
+
};
|
|
47
|
+
selectable: {
|
|
48
|
+
type: BooleanConstructor;
|
|
49
|
+
default: boolean;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
export type ListProps = ExtractPropTypes<typeof listProps>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ListProps, ListItemData } from './list-types';
|
|
2
|
+
export declare function useList(props: ListProps, emits: (event: 'select' | 'loadMore', ...args: any[]) => void): {
|
|
3
|
+
preSelectIndex: import("vue").Ref<number, number>;
|
|
4
|
+
onItemClick: (item: ListItemData) => void;
|
|
5
|
+
onListScroll: (e: Event) => void;
|
|
6
|
+
};
|
|
7
|
+
export declare function useListRender(props: ListProps): {
|
|
8
|
+
listClasses: import("vue").ComputedRef<{
|
|
9
|
+
'mc-list': boolean;
|
|
10
|
+
'mc-list-horizontal': boolean;
|
|
11
|
+
'mc-list-nowrap': boolean;
|
|
12
|
+
}>;
|
|
13
|
+
};
|
package/Locale/i18n.d.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export type LocaleMessages = Record<string, any>;
|
|
2
|
+
export interface McI18nOptions {
|
|
3
|
+
locale: string;
|
|
4
|
+
messages: LocaleMessages;
|
|
5
|
+
}
|
|
6
|
+
export declare function createMcI18n(options: McI18nOptions): McI18n;
|
|
7
|
+
export declare class McI18n {
|
|
8
|
+
locale: import("vue").Ref<string, string>;
|
|
9
|
+
messages: LocaleMessages;
|
|
10
|
+
constructor(options: McI18nOptions);
|
|
11
|
+
/** 切换语言 */
|
|
12
|
+
use: (locale: string) => void;
|
|
13
|
+
/** 翻译函数 */
|
|
14
|
+
t: (path: string, params?: {}) => any;
|
|
15
|
+
/** 覆盖、合并国际化翻译 */
|
|
16
|
+
mergeLocaleMessages: (locale: string, messages: LocaleMessages) => LocaleMessages;
|
|
17
|
+
}
|
|
18
|
+
export declare function get(path: string, params: any, messages: LocaleMessages): any;
|
|
19
|
+
export declare function deepMerge(target: LocaleMessages, source: LocaleMessages): {
|
|
20
|
+
[x: string]: any;
|
|
21
|
+
};
|