@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,98 @@
|
|
|
1
|
+
export declare const MtIcon: {
|
|
2
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
3
|
+
readonly size: {
|
|
4
|
+
readonly type: import('vue').PropType<number | string>;
|
|
5
|
+
readonly validator: (value: number | string) => value is number | "inherit";
|
|
6
|
+
readonly default: "inherit";
|
|
7
|
+
};
|
|
8
|
+
readonly color: {
|
|
9
|
+
readonly type: StringConstructor;
|
|
10
|
+
readonly default: "inherit";
|
|
11
|
+
};
|
|
12
|
+
readonly name: {
|
|
13
|
+
readonly type: StringConstructor;
|
|
14
|
+
readonly required: true;
|
|
15
|
+
readonly validator: (value: string) => boolean;
|
|
16
|
+
};
|
|
17
|
+
readonly rotate: {
|
|
18
|
+
readonly type: NumberConstructor;
|
|
19
|
+
readonly default: 0;
|
|
20
|
+
};
|
|
21
|
+
readonly clickable: {
|
|
22
|
+
readonly type: BooleanConstructor;
|
|
23
|
+
readonly default: false;
|
|
24
|
+
};
|
|
25
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
26
|
+
readonly size: string | number;
|
|
27
|
+
readonly color: string;
|
|
28
|
+
readonly rotate: number;
|
|
29
|
+
readonly clickable: boolean;
|
|
30
|
+
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLElement, import('vue').ComponentProvideOptions, {
|
|
31
|
+
P: {};
|
|
32
|
+
B: {};
|
|
33
|
+
D: {};
|
|
34
|
+
C: {};
|
|
35
|
+
M: {};
|
|
36
|
+
Defaults: {};
|
|
37
|
+
}, Readonly<import('vue').ExtractPropTypes<{
|
|
38
|
+
readonly size: {
|
|
39
|
+
readonly type: import('vue').PropType<number | string>;
|
|
40
|
+
readonly validator: (value: number | string) => value is number | "inherit";
|
|
41
|
+
readonly default: "inherit";
|
|
42
|
+
};
|
|
43
|
+
readonly color: {
|
|
44
|
+
readonly type: StringConstructor;
|
|
45
|
+
readonly default: "inherit";
|
|
46
|
+
};
|
|
47
|
+
readonly name: {
|
|
48
|
+
readonly type: StringConstructor;
|
|
49
|
+
readonly required: true;
|
|
50
|
+
readonly validator: (value: string) => boolean;
|
|
51
|
+
};
|
|
52
|
+
readonly rotate: {
|
|
53
|
+
readonly type: NumberConstructor;
|
|
54
|
+
readonly default: 0;
|
|
55
|
+
};
|
|
56
|
+
readonly clickable: {
|
|
57
|
+
readonly type: BooleanConstructor;
|
|
58
|
+
readonly default: false;
|
|
59
|
+
};
|
|
60
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, {
|
|
61
|
+
readonly size: string | number;
|
|
62
|
+
readonly color: string;
|
|
63
|
+
readonly rotate: number;
|
|
64
|
+
readonly clickable: boolean;
|
|
65
|
+
}>;
|
|
66
|
+
__isFragment?: never;
|
|
67
|
+
__isTeleport?: never;
|
|
68
|
+
__isSuspense?: never;
|
|
69
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
|
70
|
+
readonly size: {
|
|
71
|
+
readonly type: import('vue').PropType<number | string>;
|
|
72
|
+
readonly validator: (value: number | string) => value is number | "inherit";
|
|
73
|
+
readonly default: "inherit";
|
|
74
|
+
};
|
|
75
|
+
readonly color: {
|
|
76
|
+
readonly type: StringConstructor;
|
|
77
|
+
readonly default: "inherit";
|
|
78
|
+
};
|
|
79
|
+
readonly name: {
|
|
80
|
+
readonly type: StringConstructor;
|
|
81
|
+
readonly required: true;
|
|
82
|
+
readonly validator: (value: string) => boolean;
|
|
83
|
+
};
|
|
84
|
+
readonly rotate: {
|
|
85
|
+
readonly type: NumberConstructor;
|
|
86
|
+
readonly default: 0;
|
|
87
|
+
};
|
|
88
|
+
readonly clickable: {
|
|
89
|
+
readonly type: BooleanConstructor;
|
|
90
|
+
readonly default: false;
|
|
91
|
+
};
|
|
92
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
93
|
+
readonly size: string | number;
|
|
94
|
+
readonly color: string;
|
|
95
|
+
readonly rotate: number;
|
|
96
|
+
readonly clickable: boolean;
|
|
97
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & import('vue').Plugin;
|
|
98
|
+
export default MtIcon;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
declare const iconProps: {
|
|
3
|
+
/**
|
|
4
|
+
* 图标大小
|
|
5
|
+
*/
|
|
6
|
+
readonly size: {
|
|
7
|
+
readonly type: PropType<number | string>;
|
|
8
|
+
readonly validator: (value: number | string) => value is number | "inherit";
|
|
9
|
+
readonly default: "inherit";
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* 图标颜色
|
|
13
|
+
*/
|
|
14
|
+
readonly color: {
|
|
15
|
+
readonly type: StringConstructor;
|
|
16
|
+
readonly default: "inherit";
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* 图标名称
|
|
20
|
+
*/
|
|
21
|
+
readonly name: {
|
|
22
|
+
readonly type: StringConstructor;
|
|
23
|
+
readonly required: true;
|
|
24
|
+
readonly validator: (value: string) => boolean;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* 图标旋转角度
|
|
28
|
+
*/
|
|
29
|
+
readonly rotate: {
|
|
30
|
+
readonly type: NumberConstructor;
|
|
31
|
+
readonly default: 0;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* 是否显示可点击指针样式
|
|
35
|
+
*/
|
|
36
|
+
readonly clickable: {
|
|
37
|
+
readonly type: BooleanConstructor;
|
|
38
|
+
readonly default: false;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
export type IconProps = ExtractPropTypes<typeof iconProps>;
|
|
42
|
+
export { iconProps };
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
readonly size: {
|
|
3
|
+
readonly type: import('vue').PropType<number | string>;
|
|
4
|
+
readonly validator: (value: number | string) => value is number | "inherit";
|
|
5
|
+
readonly default: "inherit";
|
|
6
|
+
};
|
|
7
|
+
readonly color: {
|
|
8
|
+
readonly type: StringConstructor;
|
|
9
|
+
readonly default: "inherit";
|
|
10
|
+
};
|
|
11
|
+
readonly name: {
|
|
12
|
+
readonly type: StringConstructor;
|
|
13
|
+
readonly required: true;
|
|
14
|
+
readonly validator: (value: string) => boolean;
|
|
15
|
+
};
|
|
16
|
+
readonly rotate: {
|
|
17
|
+
readonly type: NumberConstructor;
|
|
18
|
+
readonly default: 0;
|
|
19
|
+
};
|
|
20
|
+
readonly clickable: {
|
|
21
|
+
readonly type: BooleanConstructor;
|
|
22
|
+
readonly default: false;
|
|
23
|
+
};
|
|
24
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
25
|
+
readonly size: {
|
|
26
|
+
readonly type: import('vue').PropType<number | string>;
|
|
27
|
+
readonly validator: (value: number | string) => value is number | "inherit";
|
|
28
|
+
readonly default: "inherit";
|
|
29
|
+
};
|
|
30
|
+
readonly color: {
|
|
31
|
+
readonly type: StringConstructor;
|
|
32
|
+
readonly default: "inherit";
|
|
33
|
+
};
|
|
34
|
+
readonly name: {
|
|
35
|
+
readonly type: StringConstructor;
|
|
36
|
+
readonly required: true;
|
|
37
|
+
readonly validator: (value: string) => boolean;
|
|
38
|
+
};
|
|
39
|
+
readonly rotate: {
|
|
40
|
+
readonly type: NumberConstructor;
|
|
41
|
+
readonly default: 0;
|
|
42
|
+
};
|
|
43
|
+
readonly clickable: {
|
|
44
|
+
readonly type: BooleanConstructor;
|
|
45
|
+
readonly default: false;
|
|
46
|
+
};
|
|
47
|
+
}>> & Readonly<{}>, {
|
|
48
|
+
readonly size: string | number;
|
|
49
|
+
readonly color: string;
|
|
50
|
+
readonly rotate: number;
|
|
51
|
+
readonly clickable: boolean;
|
|
52
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLElement>;
|
|
53
|
+
export default _default;
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
export declare const MtImage: {
|
|
2
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
3
|
+
readonly src: {
|
|
4
|
+
readonly type: StringConstructor;
|
|
5
|
+
readonly default: "";
|
|
6
|
+
};
|
|
7
|
+
readonly width: {
|
|
8
|
+
readonly type: import('vue').PropType<number | string>;
|
|
9
|
+
readonly validator: (value: number | string) => boolean;
|
|
10
|
+
readonly default: "100%";
|
|
11
|
+
};
|
|
12
|
+
readonly height: {
|
|
13
|
+
readonly type: import('vue').PropType<number | string>;
|
|
14
|
+
readonly validator: (value: number | string) => boolean;
|
|
15
|
+
readonly default: "100%";
|
|
16
|
+
};
|
|
17
|
+
readonly fit: {
|
|
18
|
+
readonly type: import('vue').PropType<"fill" | "contain" | "cover" | "none" | "scale-down">;
|
|
19
|
+
readonly validator: (value: string) => boolean;
|
|
20
|
+
readonly default: "cover";
|
|
21
|
+
};
|
|
22
|
+
readonly draggable: {
|
|
23
|
+
readonly type: BooleanConstructor;
|
|
24
|
+
readonly default: false;
|
|
25
|
+
};
|
|
26
|
+
readonly lazy: {
|
|
27
|
+
readonly type: BooleanConstructor;
|
|
28
|
+
readonly default: false;
|
|
29
|
+
};
|
|
30
|
+
}>> & Readonly<{
|
|
31
|
+
onLoad?: (() => any) | undefined;
|
|
32
|
+
onError?: (() => any) | undefined;
|
|
33
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
34
|
+
load: () => any;
|
|
35
|
+
error: () => any;
|
|
36
|
+
}, import('vue').PublicProps, {
|
|
37
|
+
readonly src: string;
|
|
38
|
+
readonly width: string | number;
|
|
39
|
+
readonly height: string | number;
|
|
40
|
+
readonly fit: "none" | "fill" | "contain" | "cover" | "scale-down";
|
|
41
|
+
readonly draggable: boolean;
|
|
42
|
+
readonly lazy: boolean;
|
|
43
|
+
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
44
|
+
imageRef: HTMLDivElement;
|
|
45
|
+
}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
46
|
+
P: {};
|
|
47
|
+
B: {};
|
|
48
|
+
D: {};
|
|
49
|
+
C: {};
|
|
50
|
+
M: {};
|
|
51
|
+
Defaults: {};
|
|
52
|
+
}, Readonly<import('vue').ExtractPropTypes<{
|
|
53
|
+
readonly src: {
|
|
54
|
+
readonly type: StringConstructor;
|
|
55
|
+
readonly default: "";
|
|
56
|
+
};
|
|
57
|
+
readonly width: {
|
|
58
|
+
readonly type: import('vue').PropType<number | string>;
|
|
59
|
+
readonly validator: (value: number | string) => boolean;
|
|
60
|
+
readonly default: "100%";
|
|
61
|
+
};
|
|
62
|
+
readonly height: {
|
|
63
|
+
readonly type: import('vue').PropType<number | string>;
|
|
64
|
+
readonly validator: (value: number | string) => boolean;
|
|
65
|
+
readonly default: "100%";
|
|
66
|
+
};
|
|
67
|
+
readonly fit: {
|
|
68
|
+
readonly type: import('vue').PropType<"fill" | "contain" | "cover" | "none" | "scale-down">;
|
|
69
|
+
readonly validator: (value: string) => boolean;
|
|
70
|
+
readonly default: "cover";
|
|
71
|
+
};
|
|
72
|
+
readonly draggable: {
|
|
73
|
+
readonly type: BooleanConstructor;
|
|
74
|
+
readonly default: false;
|
|
75
|
+
};
|
|
76
|
+
readonly lazy: {
|
|
77
|
+
readonly type: BooleanConstructor;
|
|
78
|
+
readonly default: false;
|
|
79
|
+
};
|
|
80
|
+
}>> & Readonly<{
|
|
81
|
+
onLoad?: (() => any) | undefined;
|
|
82
|
+
onError?: (() => any) | undefined;
|
|
83
|
+
}>, {}, {}, {}, {}, {
|
|
84
|
+
readonly src: string;
|
|
85
|
+
readonly width: string | number;
|
|
86
|
+
readonly height: string | number;
|
|
87
|
+
readonly fit: "none" | "fill" | "contain" | "cover" | "scale-down";
|
|
88
|
+
readonly draggable: boolean;
|
|
89
|
+
readonly lazy: boolean;
|
|
90
|
+
}>;
|
|
91
|
+
__isFragment?: never;
|
|
92
|
+
__isTeleport?: never;
|
|
93
|
+
__isSuspense?: never;
|
|
94
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
|
95
|
+
readonly src: {
|
|
96
|
+
readonly type: StringConstructor;
|
|
97
|
+
readonly default: "";
|
|
98
|
+
};
|
|
99
|
+
readonly width: {
|
|
100
|
+
readonly type: import('vue').PropType<number | string>;
|
|
101
|
+
readonly validator: (value: number | string) => boolean;
|
|
102
|
+
readonly default: "100%";
|
|
103
|
+
};
|
|
104
|
+
readonly height: {
|
|
105
|
+
readonly type: import('vue').PropType<number | string>;
|
|
106
|
+
readonly validator: (value: number | string) => boolean;
|
|
107
|
+
readonly default: "100%";
|
|
108
|
+
};
|
|
109
|
+
readonly fit: {
|
|
110
|
+
readonly type: import('vue').PropType<"fill" | "contain" | "cover" | "none" | "scale-down">;
|
|
111
|
+
readonly validator: (value: string) => boolean;
|
|
112
|
+
readonly default: "cover";
|
|
113
|
+
};
|
|
114
|
+
readonly draggable: {
|
|
115
|
+
readonly type: BooleanConstructor;
|
|
116
|
+
readonly default: false;
|
|
117
|
+
};
|
|
118
|
+
readonly lazy: {
|
|
119
|
+
readonly type: BooleanConstructor;
|
|
120
|
+
readonly default: false;
|
|
121
|
+
};
|
|
122
|
+
}>> & Readonly<{
|
|
123
|
+
onLoad?: (() => any) | undefined;
|
|
124
|
+
onError?: (() => any) | undefined;
|
|
125
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
126
|
+
load: () => any;
|
|
127
|
+
error: () => any;
|
|
128
|
+
}, string, {
|
|
129
|
+
readonly src: string;
|
|
130
|
+
readonly width: string | number;
|
|
131
|
+
readonly height: string | number;
|
|
132
|
+
readonly fit: "none" | "fill" | "contain" | "cover" | "scale-down";
|
|
133
|
+
readonly draggable: boolean;
|
|
134
|
+
readonly lazy: boolean;
|
|
135
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
136
|
+
$slots: Readonly<{
|
|
137
|
+
error: any;
|
|
138
|
+
}> & {
|
|
139
|
+
error: any;
|
|
140
|
+
};
|
|
141
|
+
}) & import('vue').Plugin;
|
|
142
|
+
export default MtImage;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
declare const imageProps: {
|
|
3
|
+
/**
|
|
4
|
+
* 图片地址
|
|
5
|
+
*/
|
|
6
|
+
readonly src: {
|
|
7
|
+
readonly type: StringConstructor;
|
|
8
|
+
readonly default: "";
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* 图片的宽度
|
|
12
|
+
*/
|
|
13
|
+
readonly width: {
|
|
14
|
+
readonly type: PropType<number | string>;
|
|
15
|
+
readonly validator: (value: number | string) => boolean;
|
|
16
|
+
readonly default: "100%";
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* 图片的高度
|
|
20
|
+
*/
|
|
21
|
+
readonly height: {
|
|
22
|
+
readonly type: PropType<number | string>;
|
|
23
|
+
readonly validator: (value: number | string) => boolean;
|
|
24
|
+
readonly default: "100%";
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* 图片缩放模式
|
|
28
|
+
*/
|
|
29
|
+
readonly fit: {
|
|
30
|
+
readonly type: PropType<"fill" | "contain" | "cover" | "none" | "scale-down">;
|
|
31
|
+
readonly validator: (value: string) => boolean;
|
|
32
|
+
readonly default: "cover";
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* 图片是否可拖动
|
|
36
|
+
*/
|
|
37
|
+
readonly draggable: {
|
|
38
|
+
readonly type: BooleanConstructor;
|
|
39
|
+
readonly default: false;
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* 懒加载
|
|
43
|
+
*/
|
|
44
|
+
readonly lazy: {
|
|
45
|
+
readonly type: BooleanConstructor;
|
|
46
|
+
readonly default: false;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
export type ImageProps = ExtractPropTypes<typeof imageProps>;
|
|
50
|
+
export { imageProps };
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
attrs: Partial<{}>;
|
|
3
|
+
slots: Readonly<{
|
|
4
|
+
error: any;
|
|
5
|
+
}> & {
|
|
6
|
+
error: any;
|
|
7
|
+
};
|
|
8
|
+
refs: {
|
|
9
|
+
imageRef: HTMLDivElement;
|
|
10
|
+
};
|
|
11
|
+
rootEl: HTMLDivElement;
|
|
12
|
+
};
|
|
13
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
14
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
15
|
+
readonly src: {
|
|
16
|
+
readonly type: StringConstructor;
|
|
17
|
+
readonly default: "";
|
|
18
|
+
};
|
|
19
|
+
readonly width: {
|
|
20
|
+
readonly type: import('vue').PropType<number | string>;
|
|
21
|
+
readonly validator: (value: number | string) => boolean;
|
|
22
|
+
readonly default: "100%";
|
|
23
|
+
};
|
|
24
|
+
readonly height: {
|
|
25
|
+
readonly type: import('vue').PropType<number | string>;
|
|
26
|
+
readonly validator: (value: number | string) => boolean;
|
|
27
|
+
readonly default: "100%";
|
|
28
|
+
};
|
|
29
|
+
readonly fit: {
|
|
30
|
+
readonly type: import('vue').PropType<"fill" | "contain" | "cover" | "none" | "scale-down">;
|
|
31
|
+
readonly validator: (value: string) => boolean;
|
|
32
|
+
readonly default: "cover";
|
|
33
|
+
};
|
|
34
|
+
readonly draggable: {
|
|
35
|
+
readonly type: BooleanConstructor;
|
|
36
|
+
readonly default: false;
|
|
37
|
+
};
|
|
38
|
+
readonly lazy: {
|
|
39
|
+
readonly type: BooleanConstructor;
|
|
40
|
+
readonly default: false;
|
|
41
|
+
};
|
|
42
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
43
|
+
load: () => any;
|
|
44
|
+
error: () => any;
|
|
45
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
46
|
+
readonly src: {
|
|
47
|
+
readonly type: StringConstructor;
|
|
48
|
+
readonly default: "";
|
|
49
|
+
};
|
|
50
|
+
readonly width: {
|
|
51
|
+
readonly type: import('vue').PropType<number | string>;
|
|
52
|
+
readonly validator: (value: number | string) => boolean;
|
|
53
|
+
readonly default: "100%";
|
|
54
|
+
};
|
|
55
|
+
readonly height: {
|
|
56
|
+
readonly type: import('vue').PropType<number | string>;
|
|
57
|
+
readonly validator: (value: number | string) => boolean;
|
|
58
|
+
readonly default: "100%";
|
|
59
|
+
};
|
|
60
|
+
readonly fit: {
|
|
61
|
+
readonly type: import('vue').PropType<"fill" | "contain" | "cover" | "none" | "scale-down">;
|
|
62
|
+
readonly validator: (value: string) => boolean;
|
|
63
|
+
readonly default: "cover";
|
|
64
|
+
};
|
|
65
|
+
readonly draggable: {
|
|
66
|
+
readonly type: BooleanConstructor;
|
|
67
|
+
readonly default: false;
|
|
68
|
+
};
|
|
69
|
+
readonly lazy: {
|
|
70
|
+
readonly type: BooleanConstructor;
|
|
71
|
+
readonly default: false;
|
|
72
|
+
};
|
|
73
|
+
}>> & Readonly<{
|
|
74
|
+
onLoad?: (() => any) | undefined;
|
|
75
|
+
onError?: (() => any) | undefined;
|
|
76
|
+
}>, {
|
|
77
|
+
readonly src: string;
|
|
78
|
+
readonly width: string | number;
|
|
79
|
+
readonly height: string | number;
|
|
80
|
+
readonly fit: "none" | "fill" | "contain" | "cover" | "scale-down";
|
|
81
|
+
readonly draggable: boolean;
|
|
82
|
+
readonly lazy: boolean;
|
|
83
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
84
|
+
imageRef: HTMLDivElement;
|
|
85
|
+
}, HTMLDivElement>;
|
|
86
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
87
|
+
export default _default;
|
|
88
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
89
|
+
new (): {
|
|
90
|
+
$slots: S;
|
|
91
|
+
};
|
|
92
|
+
};
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { App } from 'vue';
|
|
2
|
+
import { MtAvatarImage } from './avatar-image';
|
|
3
|
+
import { MtAvatarText } from './avatar-text';
|
|
4
|
+
import { MtBacktop } from './backtop';
|
|
5
|
+
import { MtBadge } from './badge';
|
|
6
|
+
import { MtButton } from './button';
|
|
7
|
+
import { MtButtonGroup } from './button-group';
|
|
8
|
+
import { MtCell } from './cell';
|
|
9
|
+
import { MtCellGroup } from './cell-group';
|
|
10
|
+
import { MtCollapseTransition } from './collapse-transition';
|
|
11
|
+
import { MtConfigProvider } from './config-provider';
|
|
12
|
+
import { MtDialog, MtDialogConfirmLayout } from './dialog';
|
|
13
|
+
import { MtEmpty } from './empty';
|
|
14
|
+
import { MtFadeTransition } from './fade-transition';
|
|
15
|
+
import { MtFilePreview } from './file-preview';
|
|
16
|
+
import { MtIcon } from './icon';
|
|
17
|
+
import { default as iconfontJson } from './icon/assets/font/iconfont.json';
|
|
18
|
+
import { MtImage } from './image';
|
|
19
|
+
import { MtInfiniteScroll } from './infinite-scroll';
|
|
20
|
+
import { MtLoading } from './loading';
|
|
21
|
+
import { MtMessage } from './message';
|
|
22
|
+
import { MtOverlay } from './overlay';
|
|
23
|
+
import { MtPopover } from './popover';
|
|
24
|
+
import { MtPoster } from './poster';
|
|
25
|
+
import { MtProgress } from './progress';
|
|
26
|
+
import { MtQrcode } from './qrcode';
|
|
27
|
+
import { MtTab } from './tab';
|
|
28
|
+
import { MtTable } from './table';
|
|
29
|
+
import { MtTableColumn } from './table-column';
|
|
30
|
+
import { MtTabs } from './tabs';
|
|
31
|
+
import { MtTag } from './tag';
|
|
32
|
+
import { MtTeleport } from './teleport';
|
|
33
|
+
import { MtTooltip } from './tooltip';
|
|
34
|
+
import { formatUploadFiles, MtUpload, MtUploadFileListLayout, MtUploadImageGridLayout, MtUploadImageOnlyLayout } from './upload';
|
|
35
|
+
declare const _default: {
|
|
36
|
+
install: (app: App) => void;
|
|
37
|
+
};
|
|
38
|
+
export default _default;
|
|
39
|
+
export { formatUploadFiles, MtAvatarImage, MtAvatarText, MtBacktop, MtBadge, MtButton, MtButtonGroup, MtCell, MtCellGroup, MtCollapseTransition, MtConfigProvider, MtDialog, MtDialogConfirmLayout, MtEmpty, MtFadeTransition, MtFilePreview, MtIcon, MtImage, MtInfiniteScroll, MtLoading, MtMessage, MtOverlay, MtPopover, MtPoster, MtProgress, MtQrcode, MtTab, MtTable, MtTableColumn, MtTabs, MtTag, MtTeleport, MtTooltip, MtUpload, MtUploadFileListLayout, MtUploadImageGridLayout, MtUploadImageOnlyLayout, };
|
|
40
|
+
export * from './hooks';
|
|
41
|
+
export * from './locale';
|
|
42
|
+
declare module 'vue' {
|
|
43
|
+
interface GlobalComponents {
|
|
44
|
+
MtAvatarText: typeof MtAvatarText;
|
|
45
|
+
MtAvatarImage: typeof MtAvatarImage;
|
|
46
|
+
MtBacktop: typeof MtBacktop;
|
|
47
|
+
MtIcon: typeof MtIcon;
|
|
48
|
+
MtLoading: typeof MtLoading;
|
|
49
|
+
MtImage: typeof MtImage;
|
|
50
|
+
MtButton: typeof MtButton;
|
|
51
|
+
MtButtonGroup: typeof MtButtonGroup;
|
|
52
|
+
MtInfiniteScroll: typeof MtInfiniteScroll;
|
|
53
|
+
MtProgress: typeof MtProgress;
|
|
54
|
+
MtBadge: typeof MtBadge;
|
|
55
|
+
MtTable: typeof MtTable;
|
|
56
|
+
MtTableColumn: typeof MtTableColumn;
|
|
57
|
+
MtTab: typeof MtTab;
|
|
58
|
+
MtTabs: typeof MtTabs;
|
|
59
|
+
MtCollapseTransition: typeof MtCollapseTransition;
|
|
60
|
+
MtEmpty: typeof MtEmpty;
|
|
61
|
+
MtCell: typeof MtCell;
|
|
62
|
+
MtCellGroup: typeof MtCellGroup;
|
|
63
|
+
MtTeleport: typeof MtTeleport;
|
|
64
|
+
MtOverlay: typeof MtOverlay;
|
|
65
|
+
MtDialog: typeof MtDialog;
|
|
66
|
+
MtFadeTransition: typeof MtFadeTransition;
|
|
67
|
+
MtPopover: typeof MtPopover;
|
|
68
|
+
MtTooltip: typeof MtTooltip;
|
|
69
|
+
MtDialogConfirmLayout: typeof MtDialogConfirmLayout;
|
|
70
|
+
MtConfigProvider: typeof MtConfigProvider;
|
|
71
|
+
MtMessage: typeof MtMessage;
|
|
72
|
+
MtUpload: typeof MtUpload;
|
|
73
|
+
MtUploadFileListLayout: typeof MtUploadFileListLayout;
|
|
74
|
+
MtUploadImageGridLayout: typeof MtUploadImageGridLayout;
|
|
75
|
+
MtUploadImageOnlyLayout: typeof MtUploadImageOnlyLayout;
|
|
76
|
+
MtTag: typeof MtTag;
|
|
77
|
+
MtQrcode: typeof MtQrcode;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
export { iconfontJson, };
|