@mingto/mt-ui 1.1.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +19 -0
- package/dist/avatar-image/index.d.ts +86 -0
- package/dist/avatar-image/src/avatar-image.d.ts +35 -0
- package/dist/avatar-image/src/avatar-image.vue.d.ts +45 -0
- package/dist/avatar-text/index.d.ts +92 -0
- package/dist/avatar-text/src/avatar-text.d.ts +35 -0
- package/dist/avatar-text/src/avatar-text.vue.d.ts +62 -0
- package/dist/backtop/index.d.ts +103 -0
- package/dist/backtop/src/backtop.d.ts +43 -0
- package/dist/backtop/src/backtop.vue.d.ts +66 -0
- package/dist/badge/index.d.ts +117 -0
- package/dist/badge/src/badge.d.ts +48 -0
- package/dist/badge/src/badge.vue.d.ts +76 -0
- package/dist/button/index.d.ts +230 -0
- package/dist/button/src/button.d.ts +93 -0
- package/dist/button/src/button.vue.d.ts +144 -0
- package/dist/button-group/index.d.ts +18 -0
- package/dist/button-group/src/button-group.d.ts +3 -0
- package/dist/button-group/src/button-group.vue.d.ts +17 -0
- package/dist/cell/index.d.ts +157 -0
- package/dist/cell/src/cell.d.ts +56 -0
- package/dist/cell/src/cell.vue.d.ts +103 -0
- package/dist/cell-group/index.d.ts +83 -0
- package/dist/cell-group/src/cell-group.d.ts +104 -0
- package/dist/collapse-transition/index.d.ts +18 -0
- package/dist/collapse-transition/src/collapse-transition.d.ts +4 -0
- package/dist/collapse-transition/src/collapse-transition.vue.d.ts +17 -0
- package/dist/config-provider/index.d.ts +51 -0
- package/dist/config-provider/src/config-provider.d.ts +32 -0
- package/dist/dialog/index.d.ts +414 -0
- package/dist/dialog/src/dialog.d.ts +124 -0
- package/dist/dialog/src/dialog.vue.d.ts +174 -0
- package/dist/dialog/src/layout/dialog-confirm-layout.vue.d.ts +116 -0
- package/dist/empty/index.d.ts +86 -0
- package/dist/empty/src/empty.d.ts +35 -0
- package/dist/empty/src/empty.vue.d.ts +45 -0
- package/dist/fade-transition/index.d.ts +49 -0
- package/dist/fade-transition/src/fade-transition.d.ts +9 -0
- package/dist/fade-transition/src/fade-transition.vue.d.ts +33 -0
- package/dist/file-preview/index.d.ts +4 -0
- package/dist/file-preview/src/ai-music-preview.vue.d.ts +43 -0
- package/dist/file-preview/src/file-preview.d.ts +41 -0
- package/dist/file-preview/src/file-preview.vue.d.ts +42 -0
- package/dist/file-preview/src/iframe-preview.vue.d.ts +16 -0
- package/dist/file-preview/src/image-preview.vue.d.ts +14 -0
- package/dist/file-preview/src/method.d.ts +9 -0
- package/dist/file-preview/src/music-preview.vue.d.ts +14 -0
- package/dist/file-preview/src/video-preview.vue.d.ts +14 -0
- package/dist/hooks/dom/index.d.ts +1 -0
- package/dist/hooks/dom/use-z-index.d.ts +3 -0
- package/dist/hooks/event/index.d.ts +1 -0
- package/dist/hooks/event/use-click-outside.d.ts +2 -0
- package/dist/hooks/event/use-same-target.d.ts +5 -0
- package/dist/hooks/index.d.ts +4 -0
- package/dist/hooks/locale/index.d.ts +1 -0
- package/dist/hooks/locale/use-locale.d.ts +10 -0
- package/dist/hooks/vue/index.d.ts +2 -0
- package/dist/hooks/vue/use-children.d.ts +5 -0
- package/dist/hooks/vue/use-parent.d.ts +11 -0
- package/dist/icon/assets/font/iconfont.json.d.ts +2034 -0
- package/dist/icon/index.d.ts +98 -0
- package/dist/icon/src/icon.d.ts +42 -0
- package/dist/icon/src/icon.vue.d.ts +53 -0
- package/dist/image/index.d.ts +142 -0
- package/dist/image/src/image.d.ts +50 -0
- package/dist/image/src/image.vue.d.ts +92 -0
- package/dist/index.d.ts +80 -0
- package/dist/index.es.js +64743 -0
- package/dist/index.umd.js +64742 -0
- package/dist/infinite-scroll/index.d.ts +319 -0
- package/dist/infinite-scroll/src/infinite-scroll.d.ts +123 -0
- package/dist/infinite-scroll/src/infinite-scroll.vue.d.ts +197 -0
- package/dist/loading/index.d.ts +72 -0
- package/dist/loading/src/loading.d.ts +27 -0
- package/dist/loading/src/loading.vue.d.ts +49 -0
- package/dist/locale/index.d.ts +17 -0
- package/dist/locale/lang/ar.d.ts +40 -0
- package/dist/locale/lang/en.d.ts +40 -0
- package/dist/locale/lang/ms.d.ts +40 -0
- package/dist/locale/lang/th.d.ts +40 -0
- package/dist/locale/lang/vi.d.ts +40 -0
- package/dist/locale/lang/zh-cn.d.ts +40 -0
- package/dist/locale/lang/zh-tw.d.ts +40 -0
- package/dist/message/index.d.ts +4 -0
- package/dist/message/src/instance.d.ts +16 -0
- package/dist/message/src/message.d.ts +69 -0
- package/dist/message/src/message.vue.d.ts +96 -0
- package/dist/message/src/method.d.ts +3 -0
- package/dist/overlay/index.d.ts +54 -0
- package/dist/overlay/src/overlay.d.ts +18 -0
- package/dist/overlay/src/overlay.vue.d.ts +38 -0
- package/dist/popover/index.d.ts +596 -0
- package/dist/popover/src/arrow.vue.d.ts +6 -0
- package/dist/popover/src/content.vue.d.ts +216 -0
- package/dist/popover/src/popover.d.ts +217 -0
- package/dist/popover/src/popover.vue.d.ts +344 -0
- package/dist/popover/src/trigger-ref.d.ts +17 -0
- package/dist/popover/src/trigger.vue.d.ts +59 -0
- package/dist/poster/index.d.ts +3 -0
- package/dist/poster/src/method.d.ts +51 -0
- package/dist/progress/index.d.ts +170 -0
- package/dist/progress/src/progress.d.ts +47 -0
- package/dist/progress/src/progress.vue.d.ts +109 -0
- package/dist/qrcode/index.d.ts +160 -0
- package/dist/qrcode/src/qrcode.d.ts +71 -0
- package/dist/qrcode/src/qrcode.vue.d.ts +88 -0
- package/dist/style.css +20075 -0
- package/dist/tab/index.d.ts +57 -0
- package/dist/tab/src/tab.d.ts +23 -0
- package/dist/tab/src/tab.vue.d.ts +25 -0
- package/dist/table/index.d.ts +20 -0
- package/dist/table/src/table.vue.d.ts +19 -0
- package/dist/table-column/index.d.ts +22 -0
- package/dist/table-column/src/table-column.vue.d.ts +21 -0
- package/dist/tabs/index.d.ts +71 -0
- package/dist/tabs/src/tabs.d.ts +26 -0
- package/dist/tabs/src/tabs.vue.d.ts +48 -0
- package/dist/tag/index.d.ts +118 -0
- package/dist/tag/src/tag.d.ts +44 -0
- package/dist/tag/src/tag.vue.d.ts +75 -0
- package/dist/teleport/index.d.ts +52 -0
- package/dist/teleport/src/teleport.d.ts +12 -0
- package/dist/teleport/src/teleport.vue.d.ts +38 -0
- package/dist/tooltip/index.d.ts +934 -0
- package/dist/tooltip/src/tooltip.d.ts +94 -0
- package/dist/tooltip/src/tooltip.vue.d.ts +1295 -0
- package/dist/upload/index.d.ts +982 -0
- package/dist/upload/src/layout/upload-file-list-layout.vue.d.ts +29 -0
- package/dist/upload/src/layout/upload-image-grid-layout.vue.d.ts +59 -0
- package/dist/upload/src/layout/upload-image-only-layout.vue.d.ts +59 -0
- package/dist/upload/src/trigger/upload-file-list-trigger.vue.d.ts +47 -0
- package/dist/upload/src/trigger/upload-image-grid-trigger.vue.d.ts +45 -0
- package/dist/upload/src/trigger/upload-image-only-trigger.vue.d.ts +135 -0
- package/dist/upload/src/upload-config.d.ts +3 -0
- package/dist/upload/src/upload-content.d.ts +63 -0
- package/dist/upload/src/upload-content.vue.d.ts +129 -0
- package/dist/upload/src/upload-full-screen-drag.vue.d.ts +12 -0
- package/dist/upload/src/upload-image-copper.vue.d.ts +9 -0
- package/dist/upload/src/upload.d.ts +196 -0
- package/dist/upload/src/upload.vue.d.ts +825 -0
- package/dist/upload/src/use-full-scree-drag.d.ts +6 -0
- package/dist/utils/class/deferred.d.ts +7 -0
- package/dist/utils/dom/__test__/is-valid-css-value.test.d.ts +1 -0
- package/dist/utils/dom/index.d.ts +2 -0
- package/dist/utils/dom/style.d.ts +10 -0
- package/dist/utils/dom/unit.d.ts +35 -0
- package/dist/utils/function/index.d.ts +1 -0
- package/dist/utils/function/shared.d.ts +2 -0
- package/dist/utils/index.d.ts +5 -0
- package/dist/utils/prop/index.d.ts +1 -0
- package/dist/utils/prop/size.d.ts +9 -0
- package/dist/utils/vue/children.d.ts +5 -0
- package/dist/utils/vue/index.d.ts +2 -0
- package/dist/utils/vue/install.d.ts +5 -0
- package/package.json +41 -0
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
export declare const MtTab: {
|
|
2
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
3
|
+
readonly label: {
|
|
4
|
+
readonly type: StringConstructor;
|
|
5
|
+
readonly default: "";
|
|
6
|
+
};
|
|
7
|
+
readonly name: {
|
|
8
|
+
readonly type: import('vue').PropType<string | number>;
|
|
9
|
+
readonly default: 0;
|
|
10
|
+
};
|
|
11
|
+
}>> & Readonly<{}>, {
|
|
12
|
+
isActive: import('vue').ComputedRef<boolean>;
|
|
13
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
14
|
+
readonly name: string | number;
|
|
15
|
+
readonly label: string;
|
|
16
|
+
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
17
|
+
P: {};
|
|
18
|
+
B: {};
|
|
19
|
+
D: {};
|
|
20
|
+
C: {};
|
|
21
|
+
M: {};
|
|
22
|
+
Defaults: {};
|
|
23
|
+
}, Readonly<import('vue').ExtractPropTypes<{
|
|
24
|
+
readonly label: {
|
|
25
|
+
readonly type: StringConstructor;
|
|
26
|
+
readonly default: "";
|
|
27
|
+
};
|
|
28
|
+
readonly name: {
|
|
29
|
+
readonly type: import('vue').PropType<string | number>;
|
|
30
|
+
readonly default: 0;
|
|
31
|
+
};
|
|
32
|
+
}>> & Readonly<{}>, {
|
|
33
|
+
isActive: import('vue').ComputedRef<boolean>;
|
|
34
|
+
}, {}, {}, {}, {
|
|
35
|
+
readonly name: string | number;
|
|
36
|
+
readonly label: string;
|
|
37
|
+
}>;
|
|
38
|
+
__isFragment?: never;
|
|
39
|
+
__isTeleport?: never;
|
|
40
|
+
__isSuspense?: never;
|
|
41
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
|
42
|
+
readonly label: {
|
|
43
|
+
readonly type: StringConstructor;
|
|
44
|
+
readonly default: "";
|
|
45
|
+
};
|
|
46
|
+
readonly name: {
|
|
47
|
+
readonly type: import('vue').PropType<string | number>;
|
|
48
|
+
readonly default: 0;
|
|
49
|
+
};
|
|
50
|
+
}>> & Readonly<{}>, {
|
|
51
|
+
isActive: import('vue').ComputedRef<boolean>;
|
|
52
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
53
|
+
readonly name: string | number;
|
|
54
|
+
readonly label: string;
|
|
55
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & import('vue').Plugin;
|
|
56
|
+
export default MtTab;
|
|
57
|
+
export * from './src/tab';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ComputedRef, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
declare const tabProps: {
|
|
3
|
+
/**
|
|
4
|
+
* 选项卡标题
|
|
5
|
+
*/
|
|
6
|
+
readonly label: {
|
|
7
|
+
readonly type: StringConstructor;
|
|
8
|
+
readonly default: "";
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* 与选项卡绑定值 value 对应的标识符,表示选项卡别名。默认值是tab面板的序列号,如第一个 tab 是 0
|
|
12
|
+
*/
|
|
13
|
+
readonly name: {
|
|
14
|
+
readonly type: PropType<string | number>;
|
|
15
|
+
readonly default: 0;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
interface TabContext {
|
|
19
|
+
isActive: ComputedRef<boolean>;
|
|
20
|
+
}
|
|
21
|
+
type TabProps = ExtractPropTypes<typeof tabProps>;
|
|
22
|
+
export type { TabContext, TabProps, };
|
|
23
|
+
export { tabProps };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
readonly label: {
|
|
3
|
+
readonly type: StringConstructor;
|
|
4
|
+
readonly default: "";
|
|
5
|
+
};
|
|
6
|
+
readonly name: {
|
|
7
|
+
readonly type: import('vue').PropType<string | number>;
|
|
8
|
+
readonly default: 0;
|
|
9
|
+
};
|
|
10
|
+
}>, {
|
|
11
|
+
isActive: import('vue').ComputedRef<boolean>;
|
|
12
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
13
|
+
readonly label: {
|
|
14
|
+
readonly type: StringConstructor;
|
|
15
|
+
readonly default: "";
|
|
16
|
+
};
|
|
17
|
+
readonly name: {
|
|
18
|
+
readonly type: import('vue').PropType<string | number>;
|
|
19
|
+
readonly default: 0;
|
|
20
|
+
};
|
|
21
|
+
}>> & Readonly<{}>, {
|
|
22
|
+
readonly name: string | number;
|
|
23
|
+
readonly label: string;
|
|
24
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
25
|
+
export default _default;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare const MtTable: {
|
|
2
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
3
|
+
P: {};
|
|
4
|
+
B: {};
|
|
5
|
+
D: {};
|
|
6
|
+
C: {};
|
|
7
|
+
M: {};
|
|
8
|
+
Defaults: {};
|
|
9
|
+
}, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
10
|
+
__isFragment?: never;
|
|
11
|
+
__isTeleport?: never;
|
|
12
|
+
__isSuspense?: never;
|
|
13
|
+
} & import('vue').ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
14
|
+
$slots: Readonly<{
|
|
15
|
+
default: any;
|
|
16
|
+
}> & {
|
|
17
|
+
default: any;
|
|
18
|
+
};
|
|
19
|
+
}) & import('vue').Plugin;
|
|
20
|
+
export default MtTable;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
attrs: Partial<{}>;
|
|
3
|
+
slots: Readonly<{
|
|
4
|
+
default: any;
|
|
5
|
+
}> & {
|
|
6
|
+
default: any;
|
|
7
|
+
};
|
|
8
|
+
refs: {};
|
|
9
|
+
rootEl: any;
|
|
10
|
+
};
|
|
11
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
12
|
+
declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
13
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
14
|
+
export default _default;
|
|
15
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
16
|
+
new (): {
|
|
17
|
+
$slots: S;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare const MtTableColumn: {
|
|
2
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
3
|
+
P: {};
|
|
4
|
+
B: {};
|
|
5
|
+
D: {};
|
|
6
|
+
C: {};
|
|
7
|
+
M: {};
|
|
8
|
+
Defaults: {};
|
|
9
|
+
}, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
10
|
+
__isFragment?: never;
|
|
11
|
+
__isTeleport?: never;
|
|
12
|
+
__isSuspense?: never;
|
|
13
|
+
} & import('vue').ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
14
|
+
$slots: Readonly<{
|
|
15
|
+
default: any;
|
|
16
|
+
header: any;
|
|
17
|
+
}> & {
|
|
18
|
+
default: any;
|
|
19
|
+
header: any;
|
|
20
|
+
};
|
|
21
|
+
}) & import('vue').Plugin;
|
|
22
|
+
export default MtTableColumn;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
attrs: Partial<{}>;
|
|
3
|
+
slots: Readonly<{
|
|
4
|
+
default: any;
|
|
5
|
+
header: any;
|
|
6
|
+
}> & {
|
|
7
|
+
default: any;
|
|
8
|
+
header: any;
|
|
9
|
+
};
|
|
10
|
+
refs: {};
|
|
11
|
+
rootEl: any;
|
|
12
|
+
};
|
|
13
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
14
|
+
declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
15
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
16
|
+
export default _default;
|
|
17
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
18
|
+
new (): {
|
|
19
|
+
$slots: S;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
export declare const MtTabs: {
|
|
2
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
3
|
+
readonly modelValue: {
|
|
4
|
+
readonly type: import('vue').PropType<number | string>;
|
|
5
|
+
readonly default: 0;
|
|
6
|
+
};
|
|
7
|
+
readonly type: {
|
|
8
|
+
readonly type: import('vue').PropType<"button" | "card" | "line">;
|
|
9
|
+
readonly default: "card";
|
|
10
|
+
};
|
|
11
|
+
}>> & Readonly<{
|
|
12
|
+
onChange?: ((args_0: string | number) => any) | undefined;
|
|
13
|
+
"onUpdate:modelValue"?: ((args_0: string | number) => any) | undefined;
|
|
14
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
15
|
+
change: (args_0: string | number) => any;
|
|
16
|
+
"update:modelValue": (args_0: string | number) => any;
|
|
17
|
+
}, import('vue').PublicProps, {
|
|
18
|
+
readonly type: "button" | "line" | "card";
|
|
19
|
+
readonly modelValue: string | number;
|
|
20
|
+
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
21
|
+
tabsRef: HTMLDivElement;
|
|
22
|
+
}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
23
|
+
P: {};
|
|
24
|
+
B: {};
|
|
25
|
+
D: {};
|
|
26
|
+
C: {};
|
|
27
|
+
M: {};
|
|
28
|
+
Defaults: {};
|
|
29
|
+
}, Readonly<import('vue').ExtractPropTypes<{
|
|
30
|
+
readonly modelValue: {
|
|
31
|
+
readonly type: import('vue').PropType<number | string>;
|
|
32
|
+
readonly default: 0;
|
|
33
|
+
};
|
|
34
|
+
readonly type: {
|
|
35
|
+
readonly type: import('vue').PropType<"button" | "card" | "line">;
|
|
36
|
+
readonly default: "card";
|
|
37
|
+
};
|
|
38
|
+
}>> & Readonly<{
|
|
39
|
+
onChange?: ((args_0: string | number) => any) | undefined;
|
|
40
|
+
"onUpdate:modelValue"?: ((args_0: string | number) => any) | undefined;
|
|
41
|
+
}>, {}, {}, {}, {}, {
|
|
42
|
+
readonly type: "button" | "line" | "card";
|
|
43
|
+
readonly modelValue: string | number;
|
|
44
|
+
}>;
|
|
45
|
+
__isFragment?: never;
|
|
46
|
+
__isTeleport?: never;
|
|
47
|
+
__isSuspense?: never;
|
|
48
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
|
49
|
+
readonly modelValue: {
|
|
50
|
+
readonly type: import('vue').PropType<number | string>;
|
|
51
|
+
readonly default: 0;
|
|
52
|
+
};
|
|
53
|
+
readonly type: {
|
|
54
|
+
readonly type: import('vue').PropType<"button" | "card" | "line">;
|
|
55
|
+
readonly default: "card";
|
|
56
|
+
};
|
|
57
|
+
}>> & Readonly<{
|
|
58
|
+
onChange?: ((args_0: string | number) => any) | undefined;
|
|
59
|
+
"onUpdate:modelValue"?: ((args_0: string | number) => any) | undefined;
|
|
60
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
61
|
+
change: (args_0: string | number) => any;
|
|
62
|
+
"update:modelValue": (args_0: string | number) => any;
|
|
63
|
+
}, string, {
|
|
64
|
+
readonly type: "button" | "line" | "card";
|
|
65
|
+
readonly modelValue: string | number;
|
|
66
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
67
|
+
$slots: {
|
|
68
|
+
default?(_: {}): any;
|
|
69
|
+
};
|
|
70
|
+
}) & import('vue').Plugin;
|
|
71
|
+
export default MtTabs;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ComputedRef, ExtractPropTypes, InjectionKey, PropType } from 'vue';
|
|
2
|
+
declare const tabsProps: {
|
|
3
|
+
/**
|
|
4
|
+
* 绑定值,选中选项卡的 name/索引 ,默认值是第一个 tab 的 索引
|
|
5
|
+
*/
|
|
6
|
+
readonly modelValue: {
|
|
7
|
+
readonly type: PropType<number | string>;
|
|
8
|
+
readonly default: 0;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* 风格类型
|
|
12
|
+
*/
|
|
13
|
+
readonly type: {
|
|
14
|
+
readonly type: PropType<"button" | "card" | "line">;
|
|
15
|
+
readonly default: "card";
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
interface TabsContext {
|
|
19
|
+
currentTabName: ComputedRef<number | string>;
|
|
20
|
+
onChange: (tabName: number | string) => void;
|
|
21
|
+
type: 'button' | 'card' | 'line';
|
|
22
|
+
}
|
|
23
|
+
declare const TabsKey: InjectionKey<TabsContext>;
|
|
24
|
+
export { TabsKey };
|
|
25
|
+
export type TabsProps = ExtractPropTypes<typeof tabsProps>;
|
|
26
|
+
export { tabsProps };
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
attrs: Partial<{}>;
|
|
3
|
+
slots: {
|
|
4
|
+
default?(_: {}): any;
|
|
5
|
+
};
|
|
6
|
+
refs: {
|
|
7
|
+
tabsRef: HTMLDivElement;
|
|
8
|
+
};
|
|
9
|
+
rootEl: HTMLDivElement;
|
|
10
|
+
};
|
|
11
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
12
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
13
|
+
readonly modelValue: {
|
|
14
|
+
readonly type: import('vue').PropType<number | string>;
|
|
15
|
+
readonly default: 0;
|
|
16
|
+
};
|
|
17
|
+
readonly type: {
|
|
18
|
+
readonly type: import('vue').PropType<"button" | "card" | "line">;
|
|
19
|
+
readonly default: "card";
|
|
20
|
+
};
|
|
21
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
22
|
+
change: (args_0: string | number) => any;
|
|
23
|
+
"update:modelValue": (args_0: string | number) => any;
|
|
24
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
25
|
+
readonly modelValue: {
|
|
26
|
+
readonly type: import('vue').PropType<number | string>;
|
|
27
|
+
readonly default: 0;
|
|
28
|
+
};
|
|
29
|
+
readonly type: {
|
|
30
|
+
readonly type: import('vue').PropType<"button" | "card" | "line">;
|
|
31
|
+
readonly default: "card";
|
|
32
|
+
};
|
|
33
|
+
}>> & Readonly<{
|
|
34
|
+
onChange?: ((args_0: string | number) => any) | undefined;
|
|
35
|
+
"onUpdate:modelValue"?: ((args_0: string | number) => any) | undefined;
|
|
36
|
+
}>, {
|
|
37
|
+
readonly type: "button" | "line" | "card";
|
|
38
|
+
readonly modelValue: string | number;
|
|
39
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
40
|
+
tabsRef: HTMLDivElement;
|
|
41
|
+
}, HTMLDivElement>;
|
|
42
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
43
|
+
export default _default;
|
|
44
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
45
|
+
new (): {
|
|
46
|
+
$slots: S;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
export declare const MtTag: {
|
|
2
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
3
|
+
readonly type: {
|
|
4
|
+
readonly type: import('vue').PropType<"default" | "primary" | "success" | "error" | "warning">;
|
|
5
|
+
readonly validator: (value: string) => boolean;
|
|
6
|
+
readonly default: "default";
|
|
7
|
+
};
|
|
8
|
+
readonly closable: {
|
|
9
|
+
readonly type: BooleanConstructor;
|
|
10
|
+
readonly default: false;
|
|
11
|
+
};
|
|
12
|
+
readonly size: {
|
|
13
|
+
type: import('vue').PropType<"normal" | "small" | "large">;
|
|
14
|
+
default: string;
|
|
15
|
+
validator: (value: "normal" | "small" | "large") => boolean;
|
|
16
|
+
};
|
|
17
|
+
readonly round: {
|
|
18
|
+
readonly type: BooleanConstructor;
|
|
19
|
+
readonly default: false;
|
|
20
|
+
};
|
|
21
|
+
readonly effect: {
|
|
22
|
+
readonly type: import('vue').PropType<"dark" | "light" | "plain">;
|
|
23
|
+
readonly validator: (value: string) => boolean;
|
|
24
|
+
readonly default: "light";
|
|
25
|
+
};
|
|
26
|
+
}>> & Readonly<{
|
|
27
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
28
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
29
|
+
close: (...args: any[]) => void;
|
|
30
|
+
}, import('vue').PublicProps, {
|
|
31
|
+
readonly round: boolean;
|
|
32
|
+
readonly size: "normal" | "small" | "large";
|
|
33
|
+
readonly type: "default" | "error" | "primary" | "success" | "warning";
|
|
34
|
+
readonly effect: "dark" | "light" | "plain";
|
|
35
|
+
readonly closable: boolean;
|
|
36
|
+
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLSpanElement, import('vue').ComponentProvideOptions, {
|
|
37
|
+
P: {};
|
|
38
|
+
B: {};
|
|
39
|
+
D: {};
|
|
40
|
+
C: {};
|
|
41
|
+
M: {};
|
|
42
|
+
Defaults: {};
|
|
43
|
+
}, Readonly<import('vue').ExtractPropTypes<{
|
|
44
|
+
readonly type: {
|
|
45
|
+
readonly type: import('vue').PropType<"default" | "primary" | "success" | "error" | "warning">;
|
|
46
|
+
readonly validator: (value: string) => boolean;
|
|
47
|
+
readonly default: "default";
|
|
48
|
+
};
|
|
49
|
+
readonly closable: {
|
|
50
|
+
readonly type: BooleanConstructor;
|
|
51
|
+
readonly default: false;
|
|
52
|
+
};
|
|
53
|
+
readonly size: {
|
|
54
|
+
type: import('vue').PropType<"normal" | "small" | "large">;
|
|
55
|
+
default: string;
|
|
56
|
+
validator: (value: "normal" | "small" | "large") => boolean;
|
|
57
|
+
};
|
|
58
|
+
readonly round: {
|
|
59
|
+
readonly type: BooleanConstructor;
|
|
60
|
+
readonly default: false;
|
|
61
|
+
};
|
|
62
|
+
readonly effect: {
|
|
63
|
+
readonly type: import('vue').PropType<"dark" | "light" | "plain">;
|
|
64
|
+
readonly validator: (value: string) => boolean;
|
|
65
|
+
readonly default: "light";
|
|
66
|
+
};
|
|
67
|
+
}>> & Readonly<{
|
|
68
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
69
|
+
}>, {}, {}, {}, {}, {
|
|
70
|
+
readonly round: boolean;
|
|
71
|
+
readonly size: "normal" | "small" | "large";
|
|
72
|
+
readonly type: "default" | "error" | "primary" | "success" | "warning";
|
|
73
|
+
readonly effect: "dark" | "light" | "plain";
|
|
74
|
+
readonly closable: boolean;
|
|
75
|
+
}>;
|
|
76
|
+
__isFragment?: never;
|
|
77
|
+
__isTeleport?: never;
|
|
78
|
+
__isSuspense?: never;
|
|
79
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
|
80
|
+
readonly type: {
|
|
81
|
+
readonly type: import('vue').PropType<"default" | "primary" | "success" | "error" | "warning">;
|
|
82
|
+
readonly validator: (value: string) => boolean;
|
|
83
|
+
readonly default: "default";
|
|
84
|
+
};
|
|
85
|
+
readonly closable: {
|
|
86
|
+
readonly type: BooleanConstructor;
|
|
87
|
+
readonly default: false;
|
|
88
|
+
};
|
|
89
|
+
readonly size: {
|
|
90
|
+
type: import('vue').PropType<"normal" | "small" | "large">;
|
|
91
|
+
default: string;
|
|
92
|
+
validator: (value: "normal" | "small" | "large") => boolean;
|
|
93
|
+
};
|
|
94
|
+
readonly round: {
|
|
95
|
+
readonly type: BooleanConstructor;
|
|
96
|
+
readonly default: false;
|
|
97
|
+
};
|
|
98
|
+
readonly effect: {
|
|
99
|
+
readonly type: import('vue').PropType<"dark" | "light" | "plain">;
|
|
100
|
+
readonly validator: (value: string) => boolean;
|
|
101
|
+
readonly default: "light";
|
|
102
|
+
};
|
|
103
|
+
}>> & Readonly<{
|
|
104
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
105
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
106
|
+
close: (...args: any[]) => void;
|
|
107
|
+
}, string, {
|
|
108
|
+
readonly round: boolean;
|
|
109
|
+
readonly size: "normal" | "small" | "large";
|
|
110
|
+
readonly type: "default" | "error" | "primary" | "success" | "warning";
|
|
111
|
+
readonly effect: "dark" | "light" | "plain";
|
|
112
|
+
readonly closable: boolean;
|
|
113
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
114
|
+
$slots: {
|
|
115
|
+
default?(_: {}): any;
|
|
116
|
+
};
|
|
117
|
+
}) & import('vue').Plugin;
|
|
118
|
+
export default MtTag;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
declare const tagProps: {
|
|
3
|
+
/**
|
|
4
|
+
* 标签类型
|
|
5
|
+
*/
|
|
6
|
+
readonly type: {
|
|
7
|
+
readonly type: PropType<"default" | "primary" | "success" | "error" | "warning">;
|
|
8
|
+
readonly validator: (value: string) => boolean;
|
|
9
|
+
readonly default: "default";
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* 是否可关闭
|
|
13
|
+
*/
|
|
14
|
+
readonly closable: {
|
|
15
|
+
readonly type: BooleanConstructor;
|
|
16
|
+
readonly default: false;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* 标签大小
|
|
20
|
+
*/
|
|
21
|
+
readonly size: {
|
|
22
|
+
type: PropType<"normal" | "small" | "large">;
|
|
23
|
+
default: string;
|
|
24
|
+
validator: (value: "normal" | "small" | "large") => boolean;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* 是否为圆形
|
|
28
|
+
*/
|
|
29
|
+
readonly round: {
|
|
30
|
+
readonly type: BooleanConstructor;
|
|
31
|
+
readonly default: false;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* 主题效果
|
|
35
|
+
*/
|
|
36
|
+
readonly effect: {
|
|
37
|
+
readonly type: PropType<"dark" | "light" | "plain">;
|
|
38
|
+
readonly validator: (value: string) => boolean;
|
|
39
|
+
readonly default: "light";
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
type TagProps = ExtractPropTypes<typeof tagProps>;
|
|
43
|
+
export { tagProps, };
|
|
44
|
+
export type { TagProps, };
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
attrs: Partial<{}>;
|
|
3
|
+
slots: {
|
|
4
|
+
default?(_: {}): any;
|
|
5
|
+
};
|
|
6
|
+
refs: {};
|
|
7
|
+
rootEl: HTMLSpanElement;
|
|
8
|
+
};
|
|
9
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
11
|
+
readonly type: {
|
|
12
|
+
readonly type: import('vue').PropType<"default" | "primary" | "success" | "error" | "warning">;
|
|
13
|
+
readonly validator: (value: string) => boolean;
|
|
14
|
+
readonly default: "default";
|
|
15
|
+
};
|
|
16
|
+
readonly closable: {
|
|
17
|
+
readonly type: BooleanConstructor;
|
|
18
|
+
readonly default: false;
|
|
19
|
+
};
|
|
20
|
+
readonly size: {
|
|
21
|
+
type: import('vue').PropType<"normal" | "small" | "large">;
|
|
22
|
+
default: string;
|
|
23
|
+
validator: (value: "normal" | "small" | "large") => boolean;
|
|
24
|
+
};
|
|
25
|
+
readonly round: {
|
|
26
|
+
readonly type: BooleanConstructor;
|
|
27
|
+
readonly default: false;
|
|
28
|
+
};
|
|
29
|
+
readonly effect: {
|
|
30
|
+
readonly type: import('vue').PropType<"dark" | "light" | "plain">;
|
|
31
|
+
readonly validator: (value: string) => boolean;
|
|
32
|
+
readonly default: "light";
|
|
33
|
+
};
|
|
34
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
35
|
+
close: (...args: any[]) => void;
|
|
36
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
37
|
+
readonly type: {
|
|
38
|
+
readonly type: import('vue').PropType<"default" | "primary" | "success" | "error" | "warning">;
|
|
39
|
+
readonly validator: (value: string) => boolean;
|
|
40
|
+
readonly default: "default";
|
|
41
|
+
};
|
|
42
|
+
readonly closable: {
|
|
43
|
+
readonly type: BooleanConstructor;
|
|
44
|
+
readonly default: false;
|
|
45
|
+
};
|
|
46
|
+
readonly size: {
|
|
47
|
+
type: import('vue').PropType<"normal" | "small" | "large">;
|
|
48
|
+
default: string;
|
|
49
|
+
validator: (value: "normal" | "small" | "large") => boolean;
|
|
50
|
+
};
|
|
51
|
+
readonly round: {
|
|
52
|
+
readonly type: BooleanConstructor;
|
|
53
|
+
readonly default: false;
|
|
54
|
+
};
|
|
55
|
+
readonly effect: {
|
|
56
|
+
readonly type: import('vue').PropType<"dark" | "light" | "plain">;
|
|
57
|
+
readonly validator: (value: string) => boolean;
|
|
58
|
+
readonly default: "light";
|
|
59
|
+
};
|
|
60
|
+
}>> & Readonly<{
|
|
61
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
62
|
+
}>, {
|
|
63
|
+
readonly round: boolean;
|
|
64
|
+
readonly size: "normal" | "small" | "large";
|
|
65
|
+
readonly type: "default" | "error" | "primary" | "success" | "warning";
|
|
66
|
+
readonly effect: "dark" | "light" | "plain";
|
|
67
|
+
readonly closable: boolean;
|
|
68
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLSpanElement>;
|
|
69
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
70
|
+
export default _default;
|
|
71
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
72
|
+
new (): {
|
|
73
|
+
$slots: S;
|
|
74
|
+
};
|
|
75
|
+
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
export declare const MtTeleport: {
|
|
2
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
3
|
+
readonly to: {
|
|
4
|
+
readonly type: import('vue').PropType<string | HTMLElement>;
|
|
5
|
+
readonly required: true;
|
|
6
|
+
};
|
|
7
|
+
readonly disabled: {
|
|
8
|
+
readonly type: BooleanConstructor;
|
|
9
|
+
readonly default: false;
|
|
10
|
+
};
|
|
11
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
12
|
+
readonly disabled: boolean;
|
|
13
|
+
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
14
|
+
P: {};
|
|
15
|
+
B: {};
|
|
16
|
+
D: {};
|
|
17
|
+
C: {};
|
|
18
|
+
M: {};
|
|
19
|
+
Defaults: {};
|
|
20
|
+
}, Readonly<import('vue').ExtractPropTypes<{
|
|
21
|
+
readonly to: {
|
|
22
|
+
readonly type: import('vue').PropType<string | HTMLElement>;
|
|
23
|
+
readonly required: true;
|
|
24
|
+
};
|
|
25
|
+
readonly disabled: {
|
|
26
|
+
readonly type: BooleanConstructor;
|
|
27
|
+
readonly default: false;
|
|
28
|
+
};
|
|
29
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, {
|
|
30
|
+
readonly disabled: boolean;
|
|
31
|
+
}>;
|
|
32
|
+
__isFragment?: never;
|
|
33
|
+
__isTeleport?: never;
|
|
34
|
+
__isSuspense?: never;
|
|
35
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
|
36
|
+
readonly to: {
|
|
37
|
+
readonly type: import('vue').PropType<string | HTMLElement>;
|
|
38
|
+
readonly required: true;
|
|
39
|
+
};
|
|
40
|
+
readonly disabled: {
|
|
41
|
+
readonly type: BooleanConstructor;
|
|
42
|
+
readonly default: false;
|
|
43
|
+
};
|
|
44
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
45
|
+
readonly disabled: boolean;
|
|
46
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
47
|
+
$slots: {
|
|
48
|
+
default?(_: {}): any;
|
|
49
|
+
default?(_: {}): any;
|
|
50
|
+
};
|
|
51
|
+
}) & import('vue').Plugin;
|
|
52
|
+
export default MtTeleport;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
export declare const teleportProps: {
|
|
3
|
+
readonly to: {
|
|
4
|
+
readonly type: PropType<string | HTMLElement>;
|
|
5
|
+
readonly required: true;
|
|
6
|
+
};
|
|
7
|
+
readonly disabled: {
|
|
8
|
+
readonly type: BooleanConstructor;
|
|
9
|
+
readonly default: false;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
export type TeleportProps = ExtractPropTypes<typeof teleportProps>;
|