@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,174 @@
1
+ declare function __VLS_template(): {
2
+ attrs: Partial<{}>;
3
+ slots: Readonly<{
4
+ default: any;
5
+ title: any;
6
+ footer: any;
7
+ }> & {
8
+ default: any;
9
+ title: any;
10
+ footer: any;
11
+ };
12
+ refs: {};
13
+ rootEl: any;
14
+ };
15
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
16
+ declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
17
+ readonly modelValue: {
18
+ readonly type: BooleanConstructor;
19
+ readonly default: false;
20
+ };
21
+ readonly appendTo: {
22
+ readonly type: import('vue').PropType<string | HTMLElement>;
23
+ readonly default: "body";
24
+ };
25
+ readonly mask: {
26
+ readonly type: BooleanConstructor;
27
+ readonly default: true;
28
+ };
29
+ readonly destroyOnClose: {
30
+ readonly type: BooleanConstructor;
31
+ readonly default: false;
32
+ };
33
+ readonly top: {
34
+ readonly type: import('vue').PropType<string | number>;
35
+ readonly validator: (value: number | string) => boolean;
36
+ readonly default: "15vh";
37
+ };
38
+ readonly width: {
39
+ readonly type: import('vue').PropType<string | number>;
40
+ readonly validator: (value: number | string) => boolean;
41
+ readonly default: "fit-content";
42
+ };
43
+ readonly padding: {
44
+ readonly type: import('vue').PropType<Array<number | number> | number | string>;
45
+ readonly validator: (value: number | string | Array<number | string>) => boolean;
46
+ readonly default: () => number[];
47
+ };
48
+ readonly showClose: {
49
+ readonly type: BooleanConstructor;
50
+ readonly default: true;
51
+ };
52
+ readonly title: {
53
+ readonly type: StringConstructor;
54
+ readonly default: "";
55
+ };
56
+ readonly alignCenter: {
57
+ readonly type: BooleanConstructor;
58
+ readonly default: false;
59
+ };
60
+ readonly closeOnClickModal: {
61
+ readonly type: BooleanConstructor;
62
+ readonly default: true;
63
+ };
64
+ readonly beforeClose: {
65
+ readonly type: import('vue').PropType<() => Promise<any>>;
66
+ readonly default: () => Promise<void>;
67
+ };
68
+ readonly background: {
69
+ readonly type: StringConstructor;
70
+ readonly default: "#fff";
71
+ };
72
+ readonly zIndex: {
73
+ readonly type: NumberConstructor;
74
+ };
75
+ readonly fullscreen: {
76
+ readonly type: BooleanConstructor;
77
+ readonly default: false;
78
+ };
79
+ }>, {
80
+ close: () => void;
81
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
82
+ close: () => any;
83
+ "update:modelValue": (args_0: boolean) => any;
84
+ closed: () => any;
85
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
86
+ readonly modelValue: {
87
+ readonly type: BooleanConstructor;
88
+ readonly default: false;
89
+ };
90
+ readonly appendTo: {
91
+ readonly type: import('vue').PropType<string | HTMLElement>;
92
+ readonly default: "body";
93
+ };
94
+ readonly mask: {
95
+ readonly type: BooleanConstructor;
96
+ readonly default: true;
97
+ };
98
+ readonly destroyOnClose: {
99
+ readonly type: BooleanConstructor;
100
+ readonly default: false;
101
+ };
102
+ readonly top: {
103
+ readonly type: import('vue').PropType<string | number>;
104
+ readonly validator: (value: number | string) => boolean;
105
+ readonly default: "15vh";
106
+ };
107
+ readonly width: {
108
+ readonly type: import('vue').PropType<string | number>;
109
+ readonly validator: (value: number | string) => boolean;
110
+ readonly default: "fit-content";
111
+ };
112
+ readonly padding: {
113
+ readonly type: import('vue').PropType<Array<number | number> | number | string>;
114
+ readonly validator: (value: number | string | Array<number | string>) => boolean;
115
+ readonly default: () => number[];
116
+ };
117
+ readonly showClose: {
118
+ readonly type: BooleanConstructor;
119
+ readonly default: true;
120
+ };
121
+ readonly title: {
122
+ readonly type: StringConstructor;
123
+ readonly default: "";
124
+ };
125
+ readonly alignCenter: {
126
+ readonly type: BooleanConstructor;
127
+ readonly default: false;
128
+ };
129
+ readonly closeOnClickModal: {
130
+ readonly type: BooleanConstructor;
131
+ readonly default: true;
132
+ };
133
+ readonly beforeClose: {
134
+ readonly type: import('vue').PropType<() => Promise<any>>;
135
+ readonly default: () => Promise<void>;
136
+ };
137
+ readonly background: {
138
+ readonly type: StringConstructor;
139
+ readonly default: "#fff";
140
+ };
141
+ readonly zIndex: {
142
+ readonly type: NumberConstructor;
143
+ };
144
+ readonly fullscreen: {
145
+ readonly type: BooleanConstructor;
146
+ readonly default: false;
147
+ };
148
+ }>> & Readonly<{
149
+ onClose?: (() => any) | undefined;
150
+ "onUpdate:modelValue"?: ((args_0: boolean) => any) | undefined;
151
+ onClosed?: (() => any) | undefined;
152
+ }>, {
153
+ readonly top: string | number;
154
+ readonly background: string;
155
+ readonly title: string;
156
+ readonly mask: boolean;
157
+ readonly width: string | number;
158
+ readonly modelValue: boolean;
159
+ readonly appendTo: string | HTMLElement;
160
+ readonly destroyOnClose: boolean;
161
+ readonly padding: string | number | number[];
162
+ readonly showClose: boolean;
163
+ readonly alignCenter: boolean;
164
+ readonly closeOnClickModal: boolean;
165
+ readonly beforeClose: () => Promise<any>;
166
+ readonly fullscreen: boolean;
167
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
168
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
169
+ export default _default;
170
+ type __VLS_WithTemplateSlots<T, S> = T & {
171
+ new (): {
172
+ $slots: S;
173
+ };
174
+ };
@@ -0,0 +1,116 @@
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
+ /**
12
+ * 是否显示确认按钮
13
+ */
14
+ showConfirm: {
15
+ type: BooleanConstructor;
16
+ default: boolean;
17
+ };
18
+ /**
19
+ * 确认按钮的文本
20
+ */
21
+ confirmText: {
22
+ type: StringConstructor;
23
+ default: string;
24
+ };
25
+ /**
26
+ * 是否显示取消按钮
27
+ */
28
+ showCancel: {
29
+ type: BooleanConstructor;
30
+ default: boolean;
31
+ };
32
+ /**
33
+ * 取消按钮的文本
34
+ */
35
+ cancelText: {
36
+ type: StringConstructor;
37
+ default: string;
38
+ };
39
+ /**
40
+ * 提交时是否显示加载中状态
41
+ */
42
+ loading: {
43
+ type: BooleanConstructor;
44
+ default: boolean;
45
+ };
46
+ /**
47
+ * 确认按钮是否禁用
48
+ */
49
+ disabled: {
50
+ type: BooleanConstructor;
51
+ default: boolean;
52
+ };
53
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
54
+ cancel: () => any;
55
+ confirm: () => any;
56
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
57
+ /**
58
+ * 是否显示确认按钮
59
+ */
60
+ showConfirm: {
61
+ type: BooleanConstructor;
62
+ default: boolean;
63
+ };
64
+ /**
65
+ * 确认按钮的文本
66
+ */
67
+ confirmText: {
68
+ type: StringConstructor;
69
+ default: string;
70
+ };
71
+ /**
72
+ * 是否显示取消按钮
73
+ */
74
+ showCancel: {
75
+ type: BooleanConstructor;
76
+ default: boolean;
77
+ };
78
+ /**
79
+ * 取消按钮的文本
80
+ */
81
+ cancelText: {
82
+ type: StringConstructor;
83
+ default: string;
84
+ };
85
+ /**
86
+ * 提交时是否显示加载中状态
87
+ */
88
+ loading: {
89
+ type: BooleanConstructor;
90
+ default: boolean;
91
+ };
92
+ /**
93
+ * 确认按钮是否禁用
94
+ */
95
+ disabled: {
96
+ type: BooleanConstructor;
97
+ default: boolean;
98
+ };
99
+ }>> & Readonly<{
100
+ onCancel?: (() => any) | undefined;
101
+ onConfirm?: (() => any) | undefined;
102
+ }>, {
103
+ loading: boolean;
104
+ disabled: boolean;
105
+ showConfirm: boolean;
106
+ confirmText: string;
107
+ showCancel: boolean;
108
+ cancelText: string;
109
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
110
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
111
+ export default _default;
112
+ type __VLS_WithTemplateSlots<T, S> = T & {
113
+ new (): {
114
+ $slots: S;
115
+ };
116
+ };
@@ -0,0 +1,86 @@
1
+ export declare const MtEmpty: {
2
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
3
+ readonly image: {
4
+ readonly type: StringConstructor;
5
+ readonly default: "";
6
+ };
7
+ readonly imageWidth: {
8
+ readonly type: import('vue').PropType<string | number>;
9
+ readonly validator: (value: number | string) => boolean;
10
+ readonly default: "50%";
11
+ };
12
+ readonly description: {
13
+ readonly type: StringConstructor;
14
+ readonly default: "";
15
+ };
16
+ readonly verticalPadding: {
17
+ readonly type: NumberConstructor;
18
+ readonly validator: (value: number) => boolean;
19
+ readonly default: 20;
20
+ };
21
+ }>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
22
+ readonly image: string;
23
+ readonly description: string;
24
+ readonly imageWidth: string | number;
25
+ readonly verticalPadding: number;
26
+ }, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
27
+ P: {};
28
+ B: {};
29
+ D: {};
30
+ C: {};
31
+ M: {};
32
+ Defaults: {};
33
+ }, Readonly<import('vue').ExtractPropTypes<{
34
+ readonly image: {
35
+ readonly type: StringConstructor;
36
+ readonly default: "";
37
+ };
38
+ readonly imageWidth: {
39
+ readonly type: import('vue').PropType<string | number>;
40
+ readonly validator: (value: number | string) => boolean;
41
+ readonly default: "50%";
42
+ };
43
+ readonly description: {
44
+ readonly type: StringConstructor;
45
+ readonly default: "";
46
+ };
47
+ readonly verticalPadding: {
48
+ readonly type: NumberConstructor;
49
+ readonly validator: (value: number) => boolean;
50
+ readonly default: 20;
51
+ };
52
+ }>> & Readonly<{}>, {}, {}, {}, {}, {
53
+ readonly image: string;
54
+ readonly description: string;
55
+ readonly imageWidth: string | number;
56
+ readonly verticalPadding: number;
57
+ }>;
58
+ __isFragment?: never;
59
+ __isTeleport?: never;
60
+ __isSuspense?: never;
61
+ } & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
62
+ readonly image: {
63
+ readonly type: StringConstructor;
64
+ readonly default: "";
65
+ };
66
+ readonly imageWidth: {
67
+ readonly type: import('vue').PropType<string | number>;
68
+ readonly validator: (value: number | string) => boolean;
69
+ readonly default: "50%";
70
+ };
71
+ readonly description: {
72
+ readonly type: StringConstructor;
73
+ readonly default: "";
74
+ };
75
+ readonly verticalPadding: {
76
+ readonly type: NumberConstructor;
77
+ readonly validator: (value: number) => boolean;
78
+ readonly default: 20;
79
+ };
80
+ }>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
81
+ readonly image: string;
82
+ readonly description: string;
83
+ readonly imageWidth: string | number;
84
+ readonly verticalPadding: number;
85
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & import('vue').Plugin;
86
+ export default MtEmpty;
@@ -0,0 +1,35 @@
1
+ import { ExtractPropTypes, PropType } from 'vue';
2
+ declare const emptyProps: {
3
+ /**
4
+ * 自定义图片
5
+ */
6
+ readonly image: {
7
+ readonly type: StringConstructor;
8
+ readonly default: "";
9
+ };
10
+ /**
11
+ * 图片宽度
12
+ */
13
+ readonly imageWidth: {
14
+ readonly type: PropType<string | number>;
15
+ readonly validator: (value: number | string) => boolean;
16
+ readonly default: "50%";
17
+ };
18
+ /**
19
+ * 描述
20
+ */
21
+ readonly description: {
22
+ readonly type: StringConstructor;
23
+ readonly default: "";
24
+ };
25
+ /**
26
+ * 上下的内边距
27
+ */
28
+ readonly verticalPadding: {
29
+ readonly type: NumberConstructor;
30
+ readonly validator: (value: number) => boolean;
31
+ readonly default: 20;
32
+ };
33
+ };
34
+ export type EmptyProps = ExtractPropTypes<typeof emptyProps>;
35
+ export { emptyProps };
@@ -0,0 +1,45 @@
1
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ readonly image: {
3
+ readonly type: StringConstructor;
4
+ readonly default: "";
5
+ };
6
+ readonly imageWidth: {
7
+ readonly type: import('vue').PropType<string | number>;
8
+ readonly validator: (value: number | string) => boolean;
9
+ readonly default: "50%";
10
+ };
11
+ readonly description: {
12
+ readonly type: StringConstructor;
13
+ readonly default: "";
14
+ };
15
+ readonly verticalPadding: {
16
+ readonly type: NumberConstructor;
17
+ readonly validator: (value: number) => boolean;
18
+ readonly default: 20;
19
+ };
20
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
21
+ readonly image: {
22
+ readonly type: StringConstructor;
23
+ readonly default: "";
24
+ };
25
+ readonly imageWidth: {
26
+ readonly type: import('vue').PropType<string | number>;
27
+ readonly validator: (value: number | string) => boolean;
28
+ readonly default: "50%";
29
+ };
30
+ readonly description: {
31
+ readonly type: StringConstructor;
32
+ readonly default: "";
33
+ };
34
+ readonly verticalPadding: {
35
+ readonly type: NumberConstructor;
36
+ readonly validator: (value: number) => boolean;
37
+ readonly default: 20;
38
+ };
39
+ }>> & Readonly<{}>, {
40
+ readonly image: string;
41
+ readonly description: string;
42
+ readonly imageWidth: string | number;
43
+ readonly verticalPadding: number;
44
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
45
+ export default _default;
@@ -0,0 +1,49 @@
1
+ export declare const MtFadeTransition: {
2
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
3
+ readonly duration: {
4
+ readonly type: NumberConstructor;
5
+ readonly default: 300;
6
+ };
7
+ }>> & Readonly<{
8
+ onAfterLeave?: ((...args: any[]) => any) | undefined;
9
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
10
+ afterLeave: (...args: any[]) => void;
11
+ }, import('vue').PublicProps, {
12
+ readonly duration: number;
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 duration: {
22
+ readonly type: NumberConstructor;
23
+ readonly default: 300;
24
+ };
25
+ }>> & Readonly<{
26
+ onAfterLeave?: ((...args: any[]) => any) | undefined;
27
+ }>, {}, {}, {}, {}, {
28
+ readonly duration: number;
29
+ }>;
30
+ __isFragment?: never;
31
+ __isTeleport?: never;
32
+ __isSuspense?: never;
33
+ } & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
34
+ readonly duration: {
35
+ readonly type: NumberConstructor;
36
+ readonly default: 300;
37
+ };
38
+ }>> & Readonly<{
39
+ onAfterLeave?: ((...args: any[]) => any) | undefined;
40
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
41
+ afterLeave: (...args: any[]) => void;
42
+ }, string, {
43
+ readonly duration: number;
44
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
45
+ $slots: {
46
+ default?(_: {}): any;
47
+ };
48
+ }) & import('vue').Plugin;
49
+ export default MtFadeTransition;
@@ -0,0 +1,9 @@
1
+ import { ExtractPropTypes } from 'vue';
2
+ declare const fadeTransitionProps: {
3
+ readonly duration: {
4
+ readonly type: NumberConstructor;
5
+ readonly default: 300;
6
+ };
7
+ };
8
+ export type FadeTransitionProps = ExtractPropTypes<typeof fadeTransitionProps>;
9
+ export { fadeTransitionProps };
@@ -0,0 +1,33 @@
1
+ declare function __VLS_template(): {
2
+ attrs: Partial<{}>;
3
+ slots: {
4
+ default?(_: {}): any;
5
+ };
6
+ refs: {};
7
+ rootEl: any;
8
+ };
9
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
10
+ declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
11
+ readonly duration: {
12
+ readonly type: NumberConstructor;
13
+ readonly default: 300;
14
+ };
15
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
16
+ afterLeave: (...args: any[]) => void;
17
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
18
+ readonly duration: {
19
+ readonly type: NumberConstructor;
20
+ readonly default: 300;
21
+ };
22
+ }>> & Readonly<{
23
+ onAfterLeave?: ((...args: any[]) => any) | undefined;
24
+ }>, {
25
+ readonly duration: number;
26
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
27
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
28
+ export default _default;
29
+ type __VLS_WithTemplateSlots<T, S> = T & {
30
+ new (): {
31
+ $slots: S;
32
+ };
33
+ };
@@ -0,0 +1,4 @@
1
+ import { default as FilePreview } from './src/method';
2
+ export declare const MtFilePreview: typeof FilePreview & import('vue').Plugin;
3
+ export default MtFilePreview;
4
+ export type * from './src/file-preview';
@@ -0,0 +1,43 @@
1
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ title: {
3
+ type: StringConstructor;
4
+ require: boolean;
5
+ };
6
+ prompt: {
7
+ type: StringConstructor;
8
+ require: boolean;
9
+ };
10
+ src: {
11
+ type: StringConstructor;
12
+ require: boolean;
13
+ };
14
+ background: {
15
+ type: StringConstructor;
16
+ require: boolean;
17
+ };
18
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
19
+ load: () => any;
20
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
21
+ title: {
22
+ type: StringConstructor;
23
+ require: boolean;
24
+ };
25
+ prompt: {
26
+ type: StringConstructor;
27
+ require: boolean;
28
+ };
29
+ src: {
30
+ type: StringConstructor;
31
+ require: boolean;
32
+ };
33
+ background: {
34
+ type: StringConstructor;
35
+ require: boolean;
36
+ };
37
+ }>> & Readonly<{
38
+ onLoad?: (() => any) | undefined;
39
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
40
+ audioRef: HTMLAudioElement;
41
+ promptContentRef: HTMLDivElement;
42
+ }, HTMLDivElement>;
43
+ export default _default;
@@ -0,0 +1,41 @@
1
+ import { ExtractPropTypes } from 'vue';
2
+ declare const filePreviewProps: {
3
+ /**
4
+ * 文件在Obs服务器上原始地址。
5
+ */
6
+ readonly viewUrl: {
7
+ readonly type: StringConstructor;
8
+ readonly required: true;
9
+ };
10
+ /**
11
+ * 文件生成iframe的预览地址。
12
+ */
13
+ readonly previewUrl: {
14
+ readonly type: StringConstructor;
15
+ readonly required: true;
16
+ };
17
+ /**
18
+ * Ai生成的音乐预览时,音乐的标题。
19
+ */
20
+ readonly title: {
21
+ readonly type: StringConstructor;
22
+ };
23
+ /**
24
+ * Ai生成的音乐预览时,音乐的背景图片。
25
+ */
26
+ readonly background: {
27
+ readonly type: StringConstructor;
28
+ };
29
+ /**
30
+ * Ai生成的音乐预览时,音乐的歌词。
31
+ */
32
+ readonly prompt: {
33
+ readonly type: StringConstructor;
34
+ };
35
+ };
36
+ interface FilePreviewConfigContext {
37
+ generatePreviewUrl: (viewUrl: string, previewParams?: Record<string, string>) => string;
38
+ }
39
+ export type FilePreviewProps = ExtractPropTypes<typeof filePreviewProps>;
40
+ export { filePreviewProps };
41
+ export type { FilePreviewConfigContext, };
@@ -0,0 +1,42 @@
1
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ readonly viewUrl: {
3
+ readonly type: StringConstructor;
4
+ readonly required: true;
5
+ };
6
+ readonly previewUrl: {
7
+ readonly type: StringConstructor;
8
+ readonly required: true;
9
+ };
10
+ readonly title: {
11
+ readonly type: StringConstructor;
12
+ };
13
+ readonly background: {
14
+ readonly type: StringConstructor;
15
+ };
16
+ readonly prompt: {
17
+ readonly type: StringConstructor;
18
+ };
19
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
20
+ close: () => any;
21
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
22
+ readonly viewUrl: {
23
+ readonly type: StringConstructor;
24
+ readonly required: true;
25
+ };
26
+ readonly previewUrl: {
27
+ readonly type: StringConstructor;
28
+ readonly required: true;
29
+ };
30
+ readonly title: {
31
+ readonly type: StringConstructor;
32
+ };
33
+ readonly background: {
34
+ readonly type: StringConstructor;
35
+ };
36
+ readonly prompt: {
37
+ readonly type: StringConstructor;
38
+ };
39
+ }>> & Readonly<{
40
+ onClose?: (() => any) | undefined;
41
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
42
+ export default _default;