@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.
Files changed (155) hide show
  1. package/README.md +19 -0
  2. package/dist/avatar-image/index.d.ts +86 -0
  3. package/dist/avatar-image/src/avatar-image.d.ts +35 -0
  4. package/dist/avatar-image/src/avatar-image.vue.d.ts +45 -0
  5. package/dist/avatar-text/index.d.ts +92 -0
  6. package/dist/avatar-text/src/avatar-text.d.ts +35 -0
  7. package/dist/avatar-text/src/avatar-text.vue.d.ts +62 -0
  8. package/dist/backtop/index.d.ts +103 -0
  9. package/dist/backtop/src/backtop.d.ts +43 -0
  10. package/dist/backtop/src/backtop.vue.d.ts +66 -0
  11. package/dist/badge/index.d.ts +117 -0
  12. package/dist/badge/src/badge.d.ts +48 -0
  13. package/dist/badge/src/badge.vue.d.ts +76 -0
  14. package/dist/button/index.d.ts +230 -0
  15. package/dist/button/src/button.d.ts +93 -0
  16. package/dist/button/src/button.vue.d.ts +144 -0
  17. package/dist/button-group/index.d.ts +18 -0
  18. package/dist/button-group/src/button-group.d.ts +3 -0
  19. package/dist/button-group/src/button-group.vue.d.ts +17 -0
  20. package/dist/cell/index.d.ts +157 -0
  21. package/dist/cell/src/cell.d.ts +56 -0
  22. package/dist/cell/src/cell.vue.d.ts +103 -0
  23. package/dist/cell-group/index.d.ts +83 -0
  24. package/dist/cell-group/src/cell-group.d.ts +104 -0
  25. package/dist/collapse-transition/index.d.ts +18 -0
  26. package/dist/collapse-transition/src/collapse-transition.d.ts +4 -0
  27. package/dist/collapse-transition/src/collapse-transition.vue.d.ts +17 -0
  28. package/dist/config-provider/index.d.ts +51 -0
  29. package/dist/config-provider/src/config-provider.d.ts +32 -0
  30. package/dist/dialog/index.d.ts +414 -0
  31. package/dist/dialog/src/dialog.d.ts +124 -0
  32. package/dist/dialog/src/dialog.vue.d.ts +174 -0
  33. package/dist/dialog/src/layout/dialog-confirm-layout.vue.d.ts +116 -0
  34. package/dist/empty/index.d.ts +86 -0
  35. package/dist/empty/src/empty.d.ts +35 -0
  36. package/dist/empty/src/empty.vue.d.ts +45 -0
  37. package/dist/fade-transition/index.d.ts +49 -0
  38. package/dist/fade-transition/src/fade-transition.d.ts +9 -0
  39. package/dist/fade-transition/src/fade-transition.vue.d.ts +33 -0
  40. package/dist/file-preview/index.d.ts +4 -0
  41. package/dist/file-preview/src/ai-music-preview.vue.d.ts +43 -0
  42. package/dist/file-preview/src/file-preview.d.ts +41 -0
  43. package/dist/file-preview/src/file-preview.vue.d.ts +42 -0
  44. package/dist/file-preview/src/iframe-preview.vue.d.ts +16 -0
  45. package/dist/file-preview/src/image-preview.vue.d.ts +14 -0
  46. package/dist/file-preview/src/method.d.ts +9 -0
  47. package/dist/file-preview/src/music-preview.vue.d.ts +14 -0
  48. package/dist/file-preview/src/video-preview.vue.d.ts +14 -0
  49. package/dist/hooks/dom/index.d.ts +1 -0
  50. package/dist/hooks/dom/use-z-index.d.ts +3 -0
  51. package/dist/hooks/event/index.d.ts +1 -0
  52. package/dist/hooks/event/use-click-outside.d.ts +2 -0
  53. package/dist/hooks/event/use-same-target.d.ts +5 -0
  54. package/dist/hooks/index.d.ts +4 -0
  55. package/dist/hooks/locale/index.d.ts +1 -0
  56. package/dist/hooks/locale/use-locale.d.ts +10 -0
  57. package/dist/hooks/vue/index.d.ts +2 -0
  58. package/dist/hooks/vue/use-children.d.ts +5 -0
  59. package/dist/hooks/vue/use-parent.d.ts +11 -0
  60. package/dist/icon/assets/font/iconfont.json.d.ts +2034 -0
  61. package/dist/icon/index.d.ts +98 -0
  62. package/dist/icon/src/icon.d.ts +42 -0
  63. package/dist/icon/src/icon.vue.d.ts +53 -0
  64. package/dist/image/index.d.ts +142 -0
  65. package/dist/image/src/image.d.ts +50 -0
  66. package/dist/image/src/image.vue.d.ts +92 -0
  67. package/dist/index.d.ts +80 -0
  68. package/dist/index.es.js +64743 -0
  69. package/dist/index.umd.js +64742 -0
  70. package/dist/infinite-scroll/index.d.ts +319 -0
  71. package/dist/infinite-scroll/src/infinite-scroll.d.ts +123 -0
  72. package/dist/infinite-scroll/src/infinite-scroll.vue.d.ts +197 -0
  73. package/dist/loading/index.d.ts +72 -0
  74. package/dist/loading/src/loading.d.ts +27 -0
  75. package/dist/loading/src/loading.vue.d.ts +49 -0
  76. package/dist/locale/index.d.ts +17 -0
  77. package/dist/locale/lang/ar.d.ts +40 -0
  78. package/dist/locale/lang/en.d.ts +40 -0
  79. package/dist/locale/lang/ms.d.ts +40 -0
  80. package/dist/locale/lang/th.d.ts +40 -0
  81. package/dist/locale/lang/vi.d.ts +40 -0
  82. package/dist/locale/lang/zh-cn.d.ts +40 -0
  83. package/dist/locale/lang/zh-tw.d.ts +40 -0
  84. package/dist/message/index.d.ts +4 -0
  85. package/dist/message/src/instance.d.ts +16 -0
  86. package/dist/message/src/message.d.ts +69 -0
  87. package/dist/message/src/message.vue.d.ts +96 -0
  88. package/dist/message/src/method.d.ts +3 -0
  89. package/dist/overlay/index.d.ts +54 -0
  90. package/dist/overlay/src/overlay.d.ts +18 -0
  91. package/dist/overlay/src/overlay.vue.d.ts +38 -0
  92. package/dist/popover/index.d.ts +596 -0
  93. package/dist/popover/src/arrow.vue.d.ts +6 -0
  94. package/dist/popover/src/content.vue.d.ts +216 -0
  95. package/dist/popover/src/popover.d.ts +217 -0
  96. package/dist/popover/src/popover.vue.d.ts +344 -0
  97. package/dist/popover/src/trigger-ref.d.ts +17 -0
  98. package/dist/popover/src/trigger.vue.d.ts +59 -0
  99. package/dist/poster/index.d.ts +3 -0
  100. package/dist/poster/src/method.d.ts +51 -0
  101. package/dist/progress/index.d.ts +170 -0
  102. package/dist/progress/src/progress.d.ts +47 -0
  103. package/dist/progress/src/progress.vue.d.ts +109 -0
  104. package/dist/qrcode/index.d.ts +160 -0
  105. package/dist/qrcode/src/qrcode.d.ts +71 -0
  106. package/dist/qrcode/src/qrcode.vue.d.ts +88 -0
  107. package/dist/style.css +20075 -0
  108. package/dist/tab/index.d.ts +57 -0
  109. package/dist/tab/src/tab.d.ts +23 -0
  110. package/dist/tab/src/tab.vue.d.ts +25 -0
  111. package/dist/table/index.d.ts +20 -0
  112. package/dist/table/src/table.vue.d.ts +19 -0
  113. package/dist/table-column/index.d.ts +22 -0
  114. package/dist/table-column/src/table-column.vue.d.ts +21 -0
  115. package/dist/tabs/index.d.ts +71 -0
  116. package/dist/tabs/src/tabs.d.ts +26 -0
  117. package/dist/tabs/src/tabs.vue.d.ts +48 -0
  118. package/dist/tag/index.d.ts +118 -0
  119. package/dist/tag/src/tag.d.ts +44 -0
  120. package/dist/tag/src/tag.vue.d.ts +75 -0
  121. package/dist/teleport/index.d.ts +52 -0
  122. package/dist/teleport/src/teleport.d.ts +12 -0
  123. package/dist/teleport/src/teleport.vue.d.ts +38 -0
  124. package/dist/tooltip/index.d.ts +934 -0
  125. package/dist/tooltip/src/tooltip.d.ts +94 -0
  126. package/dist/tooltip/src/tooltip.vue.d.ts +1295 -0
  127. package/dist/upload/index.d.ts +982 -0
  128. package/dist/upload/src/layout/upload-file-list-layout.vue.d.ts +29 -0
  129. package/dist/upload/src/layout/upload-image-grid-layout.vue.d.ts +59 -0
  130. package/dist/upload/src/layout/upload-image-only-layout.vue.d.ts +59 -0
  131. package/dist/upload/src/trigger/upload-file-list-trigger.vue.d.ts +47 -0
  132. package/dist/upload/src/trigger/upload-image-grid-trigger.vue.d.ts +45 -0
  133. package/dist/upload/src/trigger/upload-image-only-trigger.vue.d.ts +135 -0
  134. package/dist/upload/src/upload-config.d.ts +3 -0
  135. package/dist/upload/src/upload-content.d.ts +63 -0
  136. package/dist/upload/src/upload-content.vue.d.ts +129 -0
  137. package/dist/upload/src/upload-full-screen-drag.vue.d.ts +12 -0
  138. package/dist/upload/src/upload-image-copper.vue.d.ts +9 -0
  139. package/dist/upload/src/upload.d.ts +196 -0
  140. package/dist/upload/src/upload.vue.d.ts +825 -0
  141. package/dist/upload/src/use-full-scree-drag.d.ts +6 -0
  142. package/dist/utils/class/deferred.d.ts +7 -0
  143. package/dist/utils/dom/__test__/is-valid-css-value.test.d.ts +1 -0
  144. package/dist/utils/dom/index.d.ts +2 -0
  145. package/dist/utils/dom/style.d.ts +10 -0
  146. package/dist/utils/dom/unit.d.ts +35 -0
  147. package/dist/utils/function/index.d.ts +1 -0
  148. package/dist/utils/function/shared.d.ts +2 -0
  149. package/dist/utils/index.d.ts +5 -0
  150. package/dist/utils/prop/index.d.ts +1 -0
  151. package/dist/utils/prop/size.d.ts +9 -0
  152. package/dist/utils/vue/children.d.ts +5 -0
  153. package/dist/utils/vue/index.d.ts +2 -0
  154. package/dist/utils/vue/install.d.ts +5 -0
  155. package/package.json +41 -0
@@ -0,0 +1,72 @@
1
+ export declare const MtLoading: {
2
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
3
+ readonly type: {
4
+ readonly type: import('vue').PropType<"spinner" | "dots">;
5
+ readonly validator: (value: string) => boolean;
6
+ readonly default: "spinner";
7
+ };
8
+ readonly size: {
9
+ readonly type: NumberConstructor;
10
+ readonly default: 42;
11
+ };
12
+ readonly text: {
13
+ readonly type: StringConstructor;
14
+ readonly default: "";
15
+ };
16
+ }>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
17
+ readonly size: number;
18
+ readonly type: "spinner" | "dots";
19
+ readonly text: string;
20
+ }, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
21
+ P: {};
22
+ B: {};
23
+ D: {};
24
+ C: {};
25
+ M: {};
26
+ Defaults: {};
27
+ }, Readonly<import('vue').ExtractPropTypes<{
28
+ readonly type: {
29
+ readonly type: import('vue').PropType<"spinner" | "dots">;
30
+ readonly validator: (value: string) => boolean;
31
+ readonly default: "spinner";
32
+ };
33
+ readonly size: {
34
+ readonly type: NumberConstructor;
35
+ readonly default: 42;
36
+ };
37
+ readonly text: {
38
+ readonly type: StringConstructor;
39
+ readonly default: "";
40
+ };
41
+ }>> & Readonly<{}>, {}, {}, {}, {}, {
42
+ readonly size: number;
43
+ readonly type: "spinner" | "dots";
44
+ readonly text: string;
45
+ }>;
46
+ __isFragment?: never;
47
+ __isTeleport?: never;
48
+ __isSuspense?: never;
49
+ } & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
50
+ readonly type: {
51
+ readonly type: import('vue').PropType<"spinner" | "dots">;
52
+ readonly validator: (value: string) => boolean;
53
+ readonly default: "spinner";
54
+ };
55
+ readonly size: {
56
+ readonly type: NumberConstructor;
57
+ readonly default: 42;
58
+ };
59
+ readonly text: {
60
+ readonly type: StringConstructor;
61
+ readonly default: "";
62
+ };
63
+ }>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
64
+ readonly size: number;
65
+ readonly type: "spinner" | "dots";
66
+ readonly text: string;
67
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
68
+ $slots: {
69
+ default?(_: {}): any;
70
+ };
71
+ }) & import('vue').Plugin;
72
+ export default MtLoading;
@@ -0,0 +1,27 @@
1
+ import { ExtractPropTypes, PropType } from 'vue';
2
+ declare const loadingProps: {
3
+ /**
4
+ * 加载动画的类型
5
+ */
6
+ readonly type: {
7
+ readonly type: PropType<"spinner" | "dots">;
8
+ readonly validator: (value: string) => boolean;
9
+ readonly default: "spinner";
10
+ };
11
+ /**
12
+ * 加载动画的大小
13
+ */
14
+ readonly size: {
15
+ readonly type: NumberConstructor;
16
+ readonly default: 42;
17
+ };
18
+ /**
19
+ * 加载时显示的文本
20
+ */
21
+ readonly text: {
22
+ readonly type: StringConstructor;
23
+ readonly default: "";
24
+ };
25
+ };
26
+ export type LoadingProps = ExtractPropTypes<typeof loadingProps>;
27
+ export { loadingProps };
@@ -0,0 +1,49 @@
1
+ declare function __VLS_template(): {
2
+ attrs: Partial<{}>;
3
+ slots: {
4
+ default?(_: {}): any;
5
+ };
6
+ refs: {};
7
+ rootEl: HTMLDivElement;
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<"spinner" | "dots">;
13
+ readonly validator: (value: string) => boolean;
14
+ readonly default: "spinner";
15
+ };
16
+ readonly size: {
17
+ readonly type: NumberConstructor;
18
+ readonly default: 42;
19
+ };
20
+ readonly text: {
21
+ readonly type: StringConstructor;
22
+ readonly default: "";
23
+ };
24
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
25
+ readonly type: {
26
+ readonly type: import('vue').PropType<"spinner" | "dots">;
27
+ readonly validator: (value: string) => boolean;
28
+ readonly default: "spinner";
29
+ };
30
+ readonly size: {
31
+ readonly type: NumberConstructor;
32
+ readonly default: 42;
33
+ };
34
+ readonly text: {
35
+ readonly type: StringConstructor;
36
+ readonly default: "";
37
+ };
38
+ }>> & Readonly<{}>, {
39
+ readonly size: number;
40
+ readonly type: "spinner" | "dots";
41
+ readonly text: string;
42
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
43
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
44
+ export default _default;
45
+ type __VLS_WithTemplateSlots<T, S> = T & {
46
+ new (): {
47
+ $slots: S;
48
+ };
49
+ };
@@ -0,0 +1,17 @@
1
+ export { default as ar } from './lang/ar';
2
+ export { default as en } from './lang/en';
3
+ export { default as ms } from './lang/ms';
4
+ export { default as th } from './lang/th';
5
+ export { default as vi } from './lang/vi';
6
+ export { default as zhCn } from './lang/zh-cn';
7
+ export { default as zhTw } from './lang/zh-tw';
8
+ export interface TranslatePair {
9
+ [key: string]: string | string[] | TranslatePair;
10
+ }
11
+ export interface LocaleConfig {
12
+ lang: string;
13
+ }
14
+ export interface Language {
15
+ lang: LocaleConfig['lang'];
16
+ mt: TranslatePair;
17
+ }
@@ -0,0 +1,40 @@
1
+ declare const _default: {
2
+ lang: string;
3
+ mt: {
4
+ popover: {
5
+ confirm: string;
6
+ cancel: string;
7
+ };
8
+ empty: {
9
+ description: string;
10
+ };
11
+ upload: {
12
+ uploadSuccess: string;
13
+ uploadFail: string;
14
+ uploading: string;
15
+ fileSizeExceeded: string;
16
+ fileTypeMismatch: string;
17
+ deleteConfirm: string;
18
+ maxCountExceeded: string;
19
+ image: string;
20
+ video: string;
21
+ audio: string;
22
+ document: string;
23
+ ppt: string;
24
+ zip: string;
25
+ fileTypeNotSupport: string;
26
+ preview: string;
27
+ cropSuccess: string;
28
+ cropFail: string;
29
+ uploadFile: string;
30
+ recommendRatio: string;
31
+ dragFileToUpload: string;
32
+ confirm: string;
33
+ cancel: string;
34
+ };
35
+ imagePreview: {
36
+ loadError: string;
37
+ };
38
+ };
39
+ };
40
+ export default _default;
@@ -0,0 +1,40 @@
1
+ declare const _default: {
2
+ lang: string;
3
+ mt: {
4
+ popover: {
5
+ confirm: string;
6
+ cancel: string;
7
+ };
8
+ empty: {
9
+ description: string;
10
+ };
11
+ upload: {
12
+ uploadSuccess: string;
13
+ uploadFail: string;
14
+ uploading: string;
15
+ fileSizeExceeded: string;
16
+ fileTypeMismatch: string;
17
+ deleteConfirm: string;
18
+ maxCountExceeded: string;
19
+ image: string;
20
+ video: string;
21
+ audio: string;
22
+ document: string;
23
+ ppt: string;
24
+ zip: string;
25
+ fileTypeNotSupport: string;
26
+ preview: string;
27
+ cropSuccess: string;
28
+ cropFail: string;
29
+ uploadFile: string;
30
+ recommendRatio: string;
31
+ dragFileToUpload: string;
32
+ confirm: string;
33
+ cancel: string;
34
+ };
35
+ imagePreview: {
36
+ loadError: string;
37
+ };
38
+ };
39
+ };
40
+ export default _default;
@@ -0,0 +1,40 @@
1
+ declare const _default: {
2
+ lang: string;
3
+ mt: {
4
+ popover: {
5
+ confirm: string;
6
+ cancel: string;
7
+ };
8
+ empty: {
9
+ description: string;
10
+ };
11
+ upload: {
12
+ uploadSuccess: string;
13
+ uploadFail: string;
14
+ uploading: string;
15
+ fileSizeExceeded: string;
16
+ fileTypeMismatch: string;
17
+ deleteConfirm: string;
18
+ maxCountExceeded: string;
19
+ image: string;
20
+ video: string;
21
+ audio: string;
22
+ document: string;
23
+ ppt: string;
24
+ zip: string;
25
+ fileTypeNotSupport: string;
26
+ preview: string;
27
+ cropSuccess: string;
28
+ cropFail: string;
29
+ uploadFile: string;
30
+ recommendRatio: string;
31
+ dragFileToUpload: string;
32
+ confirm: string;
33
+ cancel: string;
34
+ };
35
+ imagePreview: {
36
+ loadError: string;
37
+ };
38
+ };
39
+ };
40
+ export default _default;
@@ -0,0 +1,40 @@
1
+ declare const _default: {
2
+ lang: string;
3
+ mt: {
4
+ popover: {
5
+ confirm: string;
6
+ cancel: string;
7
+ };
8
+ empty: {
9
+ description: string;
10
+ };
11
+ upload: {
12
+ uploadSuccess: string;
13
+ uploadFail: string;
14
+ uploading: string;
15
+ fileSizeExceeded: string;
16
+ fileTypeMismatch: string;
17
+ deleteConfirm: string;
18
+ maxCountExceeded: string;
19
+ image: string;
20
+ video: string;
21
+ audio: string;
22
+ document: string;
23
+ ppt: string;
24
+ zip: string;
25
+ fileTypeNotSupport: string;
26
+ preview: string;
27
+ cropSuccess: string;
28
+ cropFail: string;
29
+ uploadFile: string;
30
+ recommendRatio: string;
31
+ dragFileToUpload: string;
32
+ confirm: string;
33
+ cancel: string;
34
+ };
35
+ imagePreview: {
36
+ loadError: string;
37
+ };
38
+ };
39
+ };
40
+ export default _default;
@@ -0,0 +1,40 @@
1
+ declare const _default: {
2
+ lang: string;
3
+ mt: {
4
+ popover: {
5
+ confirm: string;
6
+ cancel: string;
7
+ };
8
+ empty: {
9
+ description: string;
10
+ };
11
+ upload: {
12
+ uploadSuccess: string;
13
+ uploadFail: string;
14
+ uploading: string;
15
+ fileSizeExceeded: string;
16
+ fileTypeMismatch: string;
17
+ deleteConfirm: string;
18
+ maxCountExceeded: string;
19
+ image: string;
20
+ video: string;
21
+ audio: string;
22
+ document: string;
23
+ ppt: string;
24
+ zip: string;
25
+ fileTypeNotSupport: string;
26
+ preview: string;
27
+ cropSuccess: string;
28
+ cropFail: string;
29
+ uploadFile: string;
30
+ recommendRatio: string;
31
+ dragFileToUpload: string;
32
+ confirm: string;
33
+ cancel: string;
34
+ };
35
+ imagePreview: {
36
+ loadError: string;
37
+ };
38
+ };
39
+ };
40
+ export default _default;
@@ -0,0 +1,40 @@
1
+ declare const _default: {
2
+ lang: string;
3
+ mt: {
4
+ popover: {
5
+ confirm: string;
6
+ cancel: string;
7
+ };
8
+ empty: {
9
+ description: string;
10
+ };
11
+ upload: {
12
+ uploadSuccess: string;
13
+ uploadFail: string;
14
+ uploading: string;
15
+ fileSizeExceeded: string;
16
+ fileTypeMismatch: string;
17
+ deleteConfirm: string;
18
+ maxCountExceeded: string;
19
+ image: string;
20
+ video: string;
21
+ audio: string;
22
+ document: string;
23
+ ppt: string;
24
+ zip: string;
25
+ fileTypeNotSupport: string;
26
+ preview: string;
27
+ cropSuccess: string;
28
+ cropFail: string;
29
+ uploadFile: string;
30
+ recommendRatio: string;
31
+ dragFileToUpload: string;
32
+ confirm: string;
33
+ cancel: string;
34
+ };
35
+ imagePreview: {
36
+ loadError: string;
37
+ };
38
+ };
39
+ };
40
+ export default _default;
@@ -0,0 +1,40 @@
1
+ declare const _default: {
2
+ lang: string;
3
+ mt: {
4
+ popover: {
5
+ confirm: string;
6
+ cancel: string;
7
+ };
8
+ empty: {
9
+ description: string;
10
+ };
11
+ upload: {
12
+ uploadSuccess: string;
13
+ uploadFail: string;
14
+ uploading: string;
15
+ fileSizeExceeded: string;
16
+ fileTypeMismatch: string;
17
+ deleteConfirm: string;
18
+ maxCountExceeded: string;
19
+ image: string;
20
+ video: string;
21
+ audio: string;
22
+ document: string;
23
+ ppt: string;
24
+ zip: string;
25
+ fileTypeNotSupport: string;
26
+ preview: string;
27
+ cropSuccess: string;
28
+ cropFail: string;
29
+ uploadFile: string;
30
+ recommendRatio: string;
31
+ dragFileToUpload: string;
32
+ confirm: string;
33
+ cancel: string;
34
+ };
35
+ imagePreview: {
36
+ loadError: string;
37
+ };
38
+ };
39
+ };
40
+ export default _default;
@@ -0,0 +1,4 @@
1
+ export declare const MtMessage: ((options: import('./src/message').MessageParamsNormalized | import('./src/message').MessageParamsNormalized["message"]) => void) & Record<"error" | "success" | "warning", (options: import('./src/message').MessageParamsNormalized | import('./src/message').MessageParamsNormalized["message"]) => void> & {
2
+ closeAll: (type?: import('./src/message').MessageTypes) => void;
3
+ } & import('vue').Plugin;
4
+ export default MtMessage;
@@ -0,0 +1,16 @@
1
+ import { ComponentInternalInstance, VNode } from 'vue';
2
+ import { MessageHandler, MessageProps } from './message';
3
+ export interface MessageContext {
4
+ id: string;
5
+ vnode: VNode;
6
+ handler: MessageHandler;
7
+ vm: ComponentInternalInstance;
8
+ props: MessageProps;
9
+ }
10
+ export declare const instances: MessageContext[];
11
+ export declare function getInstance(id: string): {
12
+ current: MessageContext | undefined;
13
+ prev: MessageContext | undefined;
14
+ };
15
+ export declare function getLastOffset(id: string): number;
16
+ export declare function getOffsetOrSpace(id: string, offset: number): number;
@@ -0,0 +1,69 @@
1
+ import { ExtractPropTypes, PropType } from 'vue';
2
+ import { default as MessageConstructor } from './message.vue';
3
+ declare const messageTypes: readonly ["success", "error", "warning"];
4
+ type MessageTypes = typeof messageTypes[number];
5
+ declare const messageProps: {
6
+ /**
7
+ * 消息文字
8
+ */
9
+ readonly message: {
10
+ readonly type: StringConstructor;
11
+ readonly required: true;
12
+ };
13
+ /**
14
+ * 消息类型
15
+ */
16
+ readonly type: {
17
+ readonly type: PropType<MessageTypes>;
18
+ readonly validator: (value: MessageTypes) => boolean;
19
+ readonly default: "success";
20
+ };
21
+ /**
22
+ * 显示时间,单位为毫秒。 设为 0 则不会自动关闭
23
+ */
24
+ readonly duration: {
25
+ readonly type: NumberConstructor;
26
+ readonly default: 3000;
27
+ };
28
+ /**
29
+ * 是否显示关闭按钮
30
+ */
31
+ readonly showClose: {
32
+ readonly type: BooleanConstructor;
33
+ readonly default: false;
34
+ };
35
+ /**
36
+ * Message 距离窗口顶部的偏移量
37
+ */
38
+ readonly offset: {
39
+ readonly type: NumberConstructor;
40
+ readonly default: 16;
41
+ };
42
+ /**
43
+ * 关闭时的回调函数, 参数为被关闭的 message 实例
44
+ */
45
+ readonly onClose: {
46
+ readonly type: FunctionConstructor;
47
+ readonly default: () => void;
48
+ };
49
+ /**
50
+ * 唯一标识符
51
+ */
52
+ readonly id: {
53
+ readonly type: StringConstructor;
54
+ readonly required: true;
55
+ };
56
+ };
57
+ type MessageProps = ExtractPropTypes<typeof messageProps>;
58
+ type MessageInstance = InstanceType<typeof MessageConstructor>;
59
+ type MessageFunction = {
60
+ (options: MessageParamsNormalized | MessageParamsNormalized['message']): void;
61
+ } & Record<MessageTypes, (options: MessageParamsNormalized | MessageParamsNormalized['message']) => void> & {
62
+ closeAll: (type?: MessageTypes) => void;
63
+ };
64
+ interface MessageHandler {
65
+ close: () => void;
66
+ }
67
+ type MessageParamsNormalized = Partial<Omit<MessageProps, 'id'>> & Pick<MessageProps, 'message'>;
68
+ export type { MessageFunction, MessageHandler, MessageInstance, MessageParamsNormalized, MessageProps, MessageTypes, };
69
+ export { messageProps, messageTypes, };
@@ -0,0 +1,96 @@
1
+ import { MessageTypes } from './message';
2
+ declare function close(): void;
3
+ declare function __VLS_template(): {
4
+ attrs: Partial<{}>;
5
+ slots: {
6
+ default?(_: {}): any;
7
+ };
8
+ refs: {
9
+ messageRef: HTMLDivElement;
10
+ };
11
+ rootEl: any;
12
+ };
13
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
14
+ declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
15
+ readonly message: {
16
+ readonly type: StringConstructor;
17
+ readonly required: true;
18
+ };
19
+ readonly type: {
20
+ readonly type: import('vue').PropType<MessageTypes>;
21
+ readonly validator: (value: MessageTypes) => boolean;
22
+ readonly default: "success";
23
+ };
24
+ readonly duration: {
25
+ readonly type: NumberConstructor;
26
+ readonly default: 3000;
27
+ };
28
+ readonly showClose: {
29
+ readonly type: BooleanConstructor;
30
+ readonly default: false;
31
+ };
32
+ readonly offset: {
33
+ readonly type: NumberConstructor;
34
+ readonly default: 16;
35
+ };
36
+ readonly onClose: {
37
+ readonly type: FunctionConstructor;
38
+ readonly default: () => void;
39
+ };
40
+ readonly id: {
41
+ readonly type: StringConstructor;
42
+ readonly required: true;
43
+ };
44
+ }>, {
45
+ close: typeof close;
46
+ bottom: import('vue').ComputedRef<number>;
47
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
48
+ destroy: (...args: any[]) => void;
49
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
50
+ readonly message: {
51
+ readonly type: StringConstructor;
52
+ readonly required: true;
53
+ };
54
+ readonly type: {
55
+ readonly type: import('vue').PropType<MessageTypes>;
56
+ readonly validator: (value: MessageTypes) => boolean;
57
+ readonly default: "success";
58
+ };
59
+ readonly duration: {
60
+ readonly type: NumberConstructor;
61
+ readonly default: 3000;
62
+ };
63
+ readonly showClose: {
64
+ readonly type: BooleanConstructor;
65
+ readonly default: false;
66
+ };
67
+ readonly offset: {
68
+ readonly type: NumberConstructor;
69
+ readonly default: 16;
70
+ };
71
+ readonly onClose: {
72
+ readonly type: FunctionConstructor;
73
+ readonly default: () => void;
74
+ };
75
+ readonly id: {
76
+ readonly type: StringConstructor;
77
+ readonly required: true;
78
+ };
79
+ }>> & Readonly<{
80
+ onDestroy?: ((...args: any[]) => any) | undefined;
81
+ }>, {
82
+ readonly type: "error" | "success" | "warning";
83
+ readonly duration: number;
84
+ readonly offset: number;
85
+ readonly showClose: boolean;
86
+ readonly onClose: Function;
87
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
88
+ messageRef: HTMLDivElement;
89
+ }, any>;
90
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
91
+ export default _default;
92
+ type __VLS_WithTemplateSlots<T, S> = T & {
93
+ new (): {
94
+ $slots: S;
95
+ };
96
+ };
@@ -0,0 +1,3 @@
1
+ import { MessageFunction } from './message';
2
+ declare const Message: MessageFunction;
3
+ export default Message;