@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
package/README.md ADDED
@@ -0,0 +1,19 @@
1
+ # 介绍
2
+
3
+ ## 安装
4
+
5
+ ```bash
6
+ pnpm install @minto-ai/mt-ui --save
7
+ ```
8
+
9
+ ## 引入
10
+
11
+ ```ts
12
+ import MtUi from '@minto-ai/mt-ui'
13
+ import { createApp } from 'vue'
14
+
15
+ import App from './App.vue'
16
+ import '@minto-ai/mt-ui/dist/style.css'
17
+
18
+ createApp(App).use(MtUi).mount('#app')
19
+ ```
@@ -0,0 +1,86 @@
1
+ export declare const MtAvatarImage: {
2
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
3
+ shape: {
4
+ type: import('vue').PropType<"circle" | "square">;
5
+ default: string;
6
+ validator: (value: string) => boolean;
7
+ };
8
+ size: {
9
+ type: NumberConstructor;
10
+ default: number;
11
+ };
12
+ src: {
13
+ type: StringConstructor;
14
+ default: string;
15
+ };
16
+ effect: {
17
+ type: import('vue').PropType<"dark" | "light" | "plain">;
18
+ validator: (value: string) => boolean;
19
+ default: string;
20
+ };
21
+ }>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
22
+ size: number;
23
+ src: string;
24
+ shape: "circle" | "square";
25
+ effect: "dark" | "light" | "plain";
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
+ shape: {
35
+ type: import('vue').PropType<"circle" | "square">;
36
+ default: string;
37
+ validator: (value: string) => boolean;
38
+ };
39
+ size: {
40
+ type: NumberConstructor;
41
+ default: number;
42
+ };
43
+ src: {
44
+ type: StringConstructor;
45
+ default: string;
46
+ };
47
+ effect: {
48
+ type: import('vue').PropType<"dark" | "light" | "plain">;
49
+ validator: (value: string) => boolean;
50
+ default: string;
51
+ };
52
+ }>> & Readonly<{}>, {}, {}, {}, {}, {
53
+ size: number;
54
+ src: string;
55
+ shape: "circle" | "square";
56
+ effect: "dark" | "light" | "plain";
57
+ }>;
58
+ __isFragment?: never;
59
+ __isTeleport?: never;
60
+ __isSuspense?: never;
61
+ } & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
62
+ shape: {
63
+ type: import('vue').PropType<"circle" | "square">;
64
+ default: string;
65
+ validator: (value: string) => boolean;
66
+ };
67
+ size: {
68
+ type: NumberConstructor;
69
+ default: number;
70
+ };
71
+ src: {
72
+ type: StringConstructor;
73
+ default: string;
74
+ };
75
+ effect: {
76
+ type: import('vue').PropType<"dark" | "light" | "plain">;
77
+ validator: (value: string) => boolean;
78
+ default: string;
79
+ };
80
+ }>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
81
+ size: number;
82
+ src: string;
83
+ shape: "circle" | "square";
84
+ effect: "dark" | "light" | "plain";
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 MtAvatarImage;
@@ -0,0 +1,35 @@
1
+ import { ExtractPropTypes, PropType } from 'vue';
2
+ declare const avatarImageProps: {
3
+ /**
4
+ * 头像的形状
5
+ */
6
+ shape: {
7
+ type: PropType<"circle" | "square">;
8
+ default: string;
9
+ validator: (value: string) => boolean;
10
+ };
11
+ /**
12
+ * 头像的大小
13
+ */
14
+ size: {
15
+ type: NumberConstructor;
16
+ default: number;
17
+ };
18
+ /**
19
+ * 头像的图片
20
+ */
21
+ src: {
22
+ type: StringConstructor;
23
+ default: string;
24
+ };
25
+ /**
26
+ * 头像的样式类型
27
+ */
28
+ effect: {
29
+ type: PropType<"dark" | "light" | "plain">;
30
+ validator: (value: string) => boolean;
31
+ default: string;
32
+ };
33
+ };
34
+ export type AvatarImageProps = ExtractPropTypes<typeof avatarImageProps>;
35
+ export { avatarImageProps };
@@ -0,0 +1,45 @@
1
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ shape: {
3
+ type: import('vue').PropType<"circle" | "square">;
4
+ default: string;
5
+ validator: (value: string) => boolean;
6
+ };
7
+ size: {
8
+ type: NumberConstructor;
9
+ default: number;
10
+ };
11
+ src: {
12
+ type: StringConstructor;
13
+ default: string;
14
+ };
15
+ effect: {
16
+ type: import('vue').PropType<"dark" | "light" | "plain">;
17
+ validator: (value: string) => boolean;
18
+ default: string;
19
+ };
20
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
21
+ shape: {
22
+ type: import('vue').PropType<"circle" | "square">;
23
+ default: string;
24
+ validator: (value: string) => boolean;
25
+ };
26
+ size: {
27
+ type: NumberConstructor;
28
+ default: number;
29
+ };
30
+ src: {
31
+ type: StringConstructor;
32
+ default: string;
33
+ };
34
+ effect: {
35
+ type: import('vue').PropType<"dark" | "light" | "plain">;
36
+ validator: (value: string) => boolean;
37
+ default: string;
38
+ };
39
+ }>> & Readonly<{}>, {
40
+ size: number;
41
+ src: string;
42
+ shape: "circle" | "square";
43
+ effect: "dark" | "light" | "plain";
44
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
45
+ export default _default;
@@ -0,0 +1,92 @@
1
+ export declare const MtAvatarText: {
2
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
3
+ shape: {
4
+ type: import('vue').PropType<"circle" | "square">;
5
+ default: string;
6
+ validator: (value: string) => boolean;
7
+ };
8
+ size: {
9
+ type: NumberConstructor;
10
+ default: number;
11
+ };
12
+ text: {
13
+ type: StringConstructor;
14
+ default: string;
15
+ };
16
+ effect: {
17
+ type: import('vue').PropType<"dark" | "light">;
18
+ validator: (value: string) => boolean;
19
+ default: string;
20
+ };
21
+ }>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
22
+ size: number;
23
+ text: string;
24
+ shape: "circle" | "square";
25
+ effect: "dark" | "light";
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
+ shape: {
35
+ type: import('vue').PropType<"circle" | "square">;
36
+ default: string;
37
+ validator: (value: string) => boolean;
38
+ };
39
+ size: {
40
+ type: NumberConstructor;
41
+ default: number;
42
+ };
43
+ text: {
44
+ type: StringConstructor;
45
+ default: string;
46
+ };
47
+ effect: {
48
+ type: import('vue').PropType<"dark" | "light">;
49
+ validator: (value: string) => boolean;
50
+ default: string;
51
+ };
52
+ }>> & Readonly<{}>, {}, {}, {}, {}, {
53
+ size: number;
54
+ text: string;
55
+ shape: "circle" | "square";
56
+ effect: "dark" | "light";
57
+ }>;
58
+ __isFragment?: never;
59
+ __isTeleport?: never;
60
+ __isSuspense?: never;
61
+ } & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
62
+ shape: {
63
+ type: import('vue').PropType<"circle" | "square">;
64
+ default: string;
65
+ validator: (value: string) => boolean;
66
+ };
67
+ size: {
68
+ type: NumberConstructor;
69
+ default: number;
70
+ };
71
+ text: {
72
+ type: StringConstructor;
73
+ default: string;
74
+ };
75
+ effect: {
76
+ type: import('vue').PropType<"dark" | "light">;
77
+ validator: (value: string) => boolean;
78
+ default: string;
79
+ };
80
+ }>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
81
+ size: number;
82
+ text: string;
83
+ shape: "circle" | "square";
84
+ effect: "dark" | "light";
85
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
86
+ $slots: Readonly<{
87
+ default: any;
88
+ }> & {
89
+ default: any;
90
+ };
91
+ }) & import('vue').Plugin;
92
+ export default MtAvatarText;
@@ -0,0 +1,35 @@
1
+ import { ExtractPropTypes, PropType } from 'vue';
2
+ declare const avatarTextProps: {
3
+ /**
4
+ * 头像的形状
5
+ */
6
+ shape: {
7
+ type: PropType<"circle" | "square">;
8
+ default: string;
9
+ validator: (value: string) => boolean;
10
+ };
11
+ /**
12
+ * 头像的大小
13
+ */
14
+ size: {
15
+ type: NumberConstructor;
16
+ default: number;
17
+ };
18
+ /**
19
+ * 头像的文字
20
+ */
21
+ text: {
22
+ type: StringConstructor;
23
+ default: string;
24
+ };
25
+ /**
26
+ * 样式风格
27
+ */
28
+ effect: {
29
+ type: PropType<"dark" | "light">;
30
+ validator: (value: string) => boolean;
31
+ default: string;
32
+ };
33
+ };
34
+ export type AvatarTextProps = ExtractPropTypes<typeof avatarTextProps>;
35
+ export { avatarTextProps };
@@ -0,0 +1,62 @@
1
+ declare function __VLS_template(): {
2
+ attrs: Partial<{}>;
3
+ slots: Readonly<{
4
+ default: any;
5
+ }> & {
6
+ default: any;
7
+ };
8
+ refs: {};
9
+ rootEl: HTMLDivElement;
10
+ };
11
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
12
+ declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
13
+ shape: {
14
+ type: import('vue').PropType<"circle" | "square">;
15
+ default: string;
16
+ validator: (value: string) => boolean;
17
+ };
18
+ size: {
19
+ type: NumberConstructor;
20
+ default: number;
21
+ };
22
+ text: {
23
+ type: StringConstructor;
24
+ default: string;
25
+ };
26
+ effect: {
27
+ type: import('vue').PropType<"dark" | "light">;
28
+ validator: (value: string) => boolean;
29
+ default: string;
30
+ };
31
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
32
+ shape: {
33
+ type: import('vue').PropType<"circle" | "square">;
34
+ default: string;
35
+ validator: (value: string) => boolean;
36
+ };
37
+ size: {
38
+ type: NumberConstructor;
39
+ default: number;
40
+ };
41
+ text: {
42
+ type: StringConstructor;
43
+ default: string;
44
+ };
45
+ effect: {
46
+ type: import('vue').PropType<"dark" | "light">;
47
+ validator: (value: string) => boolean;
48
+ default: string;
49
+ };
50
+ }>> & Readonly<{}>, {
51
+ size: number;
52
+ text: string;
53
+ shape: "circle" | "square";
54
+ effect: "dark" | "light";
55
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
56
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
57
+ export default _default;
58
+ type __VLS_WithTemplateSlots<T, S> = T & {
59
+ new (): {
60
+ $slots: S;
61
+ };
62
+ };
@@ -0,0 +1,103 @@
1
+ export declare const MtBacktop: {
2
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
3
+ readonly visibilityHeight: {
4
+ readonly type: import('vue').PropType<number | string>;
5
+ readonly validator: (value: number | string) => boolean;
6
+ readonly default: 200;
7
+ };
8
+ readonly target: {
9
+ readonly type: import('vue').PropType<string | HTMLElement>;
10
+ readonly default: "";
11
+ };
12
+ readonly right: {
13
+ readonly type: import('vue').PropType<number | string>;
14
+ readonly validator: (value: number | string) => boolean;
15
+ readonly default: 60;
16
+ };
17
+ readonly bottom: {
18
+ readonly type: import('vue').PropType<number | string>;
19
+ readonly validator: (value: number | string) => boolean;
20
+ readonly default: 60;
21
+ };
22
+ }>> & Readonly<{
23
+ onClick?: ((event: MouseEvent) => any) | undefined;
24
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
25
+ click: (event: MouseEvent) => void;
26
+ }, import('vue').PublicProps, {
27
+ readonly bottom: string | number;
28
+ readonly right: string | number;
29
+ readonly target: string | HTMLElement;
30
+ readonly visibilityHeight: string | number;
31
+ }, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
32
+ P: {};
33
+ B: {};
34
+ D: {};
35
+ C: {};
36
+ M: {};
37
+ Defaults: {};
38
+ }, Readonly<import('vue').ExtractPropTypes<{
39
+ readonly visibilityHeight: {
40
+ readonly type: import('vue').PropType<number | string>;
41
+ readonly validator: (value: number | string) => boolean;
42
+ readonly default: 200;
43
+ };
44
+ readonly target: {
45
+ readonly type: import('vue').PropType<string | HTMLElement>;
46
+ readonly default: "";
47
+ };
48
+ readonly right: {
49
+ readonly type: import('vue').PropType<number | string>;
50
+ readonly validator: (value: number | string) => boolean;
51
+ readonly default: 60;
52
+ };
53
+ readonly bottom: {
54
+ readonly type: import('vue').PropType<number | string>;
55
+ readonly validator: (value: number | string) => boolean;
56
+ readonly default: 60;
57
+ };
58
+ }>> & Readonly<{
59
+ onClick?: ((event: MouseEvent) => any) | undefined;
60
+ }>, {}, {}, {}, {}, {
61
+ readonly bottom: string | number;
62
+ readonly right: string | number;
63
+ readonly target: string | HTMLElement;
64
+ readonly visibilityHeight: string | number;
65
+ }>;
66
+ __isFragment?: never;
67
+ __isTeleport?: never;
68
+ __isSuspense?: never;
69
+ } & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
70
+ readonly visibilityHeight: {
71
+ readonly type: import('vue').PropType<number | string>;
72
+ readonly validator: (value: number | string) => boolean;
73
+ readonly default: 200;
74
+ };
75
+ readonly target: {
76
+ readonly type: import('vue').PropType<string | HTMLElement>;
77
+ readonly default: "";
78
+ };
79
+ readonly right: {
80
+ readonly type: import('vue').PropType<number | string>;
81
+ readonly validator: (value: number | string) => boolean;
82
+ readonly default: 60;
83
+ };
84
+ readonly bottom: {
85
+ readonly type: import('vue').PropType<number | string>;
86
+ readonly validator: (value: number | string) => boolean;
87
+ readonly default: 60;
88
+ };
89
+ }>> & Readonly<{
90
+ onClick?: ((event: MouseEvent) => any) | undefined;
91
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
92
+ click: (event: MouseEvent) => void;
93
+ }, string, {
94
+ readonly bottom: string | number;
95
+ readonly right: string | number;
96
+ readonly target: string | HTMLElement;
97
+ readonly visibilityHeight: string | number;
98
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
99
+ $slots: {
100
+ default?(_: {}): any;
101
+ };
102
+ }) & import('vue').Plugin;
103
+ export default MtBacktop;
@@ -0,0 +1,43 @@
1
+ import { ExtractPropTypes, PropType } from 'vue';
2
+ declare const backtopProps: {
3
+ /**
4
+ * 滚动高度达到此参数值才出现
5
+ */
6
+ readonly visibilityHeight: {
7
+ readonly type: PropType<number | string>;
8
+ readonly validator: (value: number | string) => boolean;
9
+ readonly default: 200;
10
+ };
11
+ /**
12
+ * 触发滚动的对象
13
+ */
14
+ readonly target: {
15
+ readonly type: PropType<string | HTMLElement>;
16
+ readonly default: "";
17
+ };
18
+ /**
19
+ * 控制其显示位置,距离页面右边距
20
+ */
21
+ readonly right: {
22
+ readonly type: PropType<number | string>;
23
+ readonly validator: (value: number | string) => boolean;
24
+ readonly default: 60;
25
+ };
26
+ /**
27
+ * 控制其显示位置,距离页面底部距离
28
+ */
29
+ readonly bottom: {
30
+ readonly type: PropType<number | string>;
31
+ readonly validator: (value: number | string) => boolean;
32
+ readonly default: 60;
33
+ };
34
+ };
35
+ declare const backtopEmits: {
36
+ /**
37
+ * 点击按钮触发的事件
38
+ */
39
+ click: (event: MouseEvent) => boolean;
40
+ };
41
+ export type BacktopProps = ExtractPropTypes<typeof backtopProps>;
42
+ export type BacktopEmits = typeof backtopEmits;
43
+ export { backtopEmits, backtopProps };
@@ -0,0 +1,66 @@
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 visibilityHeight: {
12
+ readonly type: import('vue').PropType<number | string>;
13
+ readonly validator: (value: number | string) => boolean;
14
+ readonly default: 200;
15
+ };
16
+ readonly target: {
17
+ readonly type: import('vue').PropType<string | HTMLElement>;
18
+ readonly default: "";
19
+ };
20
+ readonly right: {
21
+ readonly type: import('vue').PropType<number | string>;
22
+ readonly validator: (value: number | string) => boolean;
23
+ readonly default: 60;
24
+ };
25
+ readonly bottom: {
26
+ readonly type: import('vue').PropType<number | string>;
27
+ readonly validator: (value: number | string) => boolean;
28
+ readonly default: 60;
29
+ };
30
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
31
+ click: (event: MouseEvent) => void;
32
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
33
+ readonly visibilityHeight: {
34
+ readonly type: import('vue').PropType<number | string>;
35
+ readonly validator: (value: number | string) => boolean;
36
+ readonly default: 200;
37
+ };
38
+ readonly target: {
39
+ readonly type: import('vue').PropType<string | HTMLElement>;
40
+ readonly default: "";
41
+ };
42
+ readonly right: {
43
+ readonly type: import('vue').PropType<number | string>;
44
+ readonly validator: (value: number | string) => boolean;
45
+ readonly default: 60;
46
+ };
47
+ readonly bottom: {
48
+ readonly type: import('vue').PropType<number | string>;
49
+ readonly validator: (value: number | string) => boolean;
50
+ readonly default: 60;
51
+ };
52
+ }>> & Readonly<{
53
+ onClick?: ((event: MouseEvent) => any) | undefined;
54
+ }>, {
55
+ readonly bottom: string | number;
56
+ readonly right: string | number;
57
+ readonly target: string | HTMLElement;
58
+ readonly visibilityHeight: string | number;
59
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
60
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
61
+ export default _default;
62
+ type __VLS_WithTemplateSlots<T, S> = T & {
63
+ new (): {
64
+ $slots: S;
65
+ };
66
+ };