@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,117 @@
1
+ export declare const MtBadge: {
2
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
3
+ readonly dot: {
4
+ readonly type: BooleanConstructor;
5
+ readonly default: false;
6
+ };
7
+ readonly offset: {
8
+ readonly type: import('vue').PropType<[number, number]>;
9
+ readonly default: () => number[];
10
+ readonly validator: (value: [number, number]) => boolean;
11
+ };
12
+ readonly value: {
13
+ readonly type: import('vue').PropType<number | string>;
14
+ readonly default: "";
15
+ };
16
+ readonly max: {
17
+ readonly type: NumberConstructor;
18
+ readonly default: 99;
19
+ };
20
+ readonly zero: {
21
+ readonly type: BooleanConstructor;
22
+ readonly default: true;
23
+ };
24
+ readonly visible: {
25
+ readonly type: BooleanConstructor;
26
+ readonly default: true;
27
+ };
28
+ }>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
29
+ readonly value: string | number;
30
+ readonly visible: boolean;
31
+ readonly dot: boolean;
32
+ readonly offset: [number, number];
33
+ readonly max: number;
34
+ readonly zero: boolean;
35
+ }, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
36
+ P: {};
37
+ B: {};
38
+ D: {};
39
+ C: {};
40
+ M: {};
41
+ Defaults: {};
42
+ }, Readonly<import('vue').ExtractPropTypes<{
43
+ readonly dot: {
44
+ readonly type: BooleanConstructor;
45
+ readonly default: false;
46
+ };
47
+ readonly offset: {
48
+ readonly type: import('vue').PropType<[number, number]>;
49
+ readonly default: () => number[];
50
+ readonly validator: (value: [number, number]) => boolean;
51
+ };
52
+ readonly value: {
53
+ readonly type: import('vue').PropType<number | string>;
54
+ readonly default: "";
55
+ };
56
+ readonly max: {
57
+ readonly type: NumberConstructor;
58
+ readonly default: 99;
59
+ };
60
+ readonly zero: {
61
+ readonly type: BooleanConstructor;
62
+ readonly default: true;
63
+ };
64
+ readonly visible: {
65
+ readonly type: BooleanConstructor;
66
+ readonly default: true;
67
+ };
68
+ }>> & Readonly<{}>, {}, {}, {}, {}, {
69
+ readonly value: string | number;
70
+ readonly visible: boolean;
71
+ readonly dot: boolean;
72
+ readonly offset: [number, number];
73
+ readonly max: number;
74
+ readonly zero: boolean;
75
+ }>;
76
+ __isFragment?: never;
77
+ __isTeleport?: never;
78
+ __isSuspense?: never;
79
+ } & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
80
+ readonly dot: {
81
+ readonly type: BooleanConstructor;
82
+ readonly default: false;
83
+ };
84
+ readonly offset: {
85
+ readonly type: import('vue').PropType<[number, number]>;
86
+ readonly default: () => number[];
87
+ readonly validator: (value: [number, number]) => boolean;
88
+ };
89
+ readonly value: {
90
+ readonly type: import('vue').PropType<number | string>;
91
+ readonly default: "";
92
+ };
93
+ readonly max: {
94
+ readonly type: NumberConstructor;
95
+ readonly default: 99;
96
+ };
97
+ readonly zero: {
98
+ readonly type: BooleanConstructor;
99
+ readonly default: true;
100
+ };
101
+ readonly visible: {
102
+ readonly type: BooleanConstructor;
103
+ readonly default: true;
104
+ };
105
+ }>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
106
+ readonly value: string | number;
107
+ readonly visible: boolean;
108
+ readonly dot: boolean;
109
+ readonly offset: [number, number];
110
+ readonly max: number;
111
+ readonly zero: boolean;
112
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
113
+ $slots: {
114
+ default?(_: {}): any;
115
+ };
116
+ }) & import('vue').Plugin;
117
+ export default MtBadge;
@@ -0,0 +1,48 @@
1
+ import { ExtractPropTypes, PropType } from 'vue';
2
+ declare const badgeProps: {
3
+ /**
4
+ * 是否展示为小红点
5
+ */
6
+ readonly dot: {
7
+ readonly type: BooleanConstructor;
8
+ readonly default: false;
9
+ };
10
+ /**
11
+ * 设置徽标的偏移量,数组的两项分别对应水平向右和垂直向下方向的偏移量
12
+ */
13
+ readonly offset: {
14
+ readonly type: PropType<[number, number]>;
15
+ readonly default: () => number[];
16
+ readonly validator: (value: [number, number]) => boolean;
17
+ };
18
+ /**
19
+ * 徽标内容
20
+ */
21
+ readonly value: {
22
+ readonly type: PropType<number | string>;
23
+ readonly default: "";
24
+ };
25
+ /**
26
+ * 最大值,超过最大值会显示 {max}+,仅当 value 为数字时有效
27
+ */
28
+ readonly max: {
29
+ readonly type: NumberConstructor;
30
+ readonly default: 99;
31
+ };
32
+ /**
33
+ * 值为零时是否显示 Badge
34
+ */
35
+ readonly zero: {
36
+ readonly type: BooleanConstructor;
37
+ readonly default: true;
38
+ };
39
+ /**
40
+ * 是否显示
41
+ */
42
+ readonly visible: {
43
+ readonly type: BooleanConstructor;
44
+ readonly default: true;
45
+ };
46
+ };
47
+ export type BadgeProps = ExtractPropTypes<typeof badgeProps>;
48
+ export { badgeProps };
@@ -0,0 +1,76 @@
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 dot: {
12
+ readonly type: BooleanConstructor;
13
+ readonly default: false;
14
+ };
15
+ readonly offset: {
16
+ readonly type: import('vue').PropType<[number, number]>;
17
+ readonly default: () => number[];
18
+ readonly validator: (value: [number, number]) => boolean;
19
+ };
20
+ readonly value: {
21
+ readonly type: import('vue').PropType<number | string>;
22
+ readonly default: "";
23
+ };
24
+ readonly max: {
25
+ readonly type: NumberConstructor;
26
+ readonly default: 99;
27
+ };
28
+ readonly zero: {
29
+ readonly type: BooleanConstructor;
30
+ readonly default: true;
31
+ };
32
+ readonly visible: {
33
+ readonly type: BooleanConstructor;
34
+ readonly default: true;
35
+ };
36
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
37
+ readonly dot: {
38
+ readonly type: BooleanConstructor;
39
+ readonly default: false;
40
+ };
41
+ readonly offset: {
42
+ readonly type: import('vue').PropType<[number, number]>;
43
+ readonly default: () => number[];
44
+ readonly validator: (value: [number, number]) => boolean;
45
+ };
46
+ readonly value: {
47
+ readonly type: import('vue').PropType<number | string>;
48
+ readonly default: "";
49
+ };
50
+ readonly max: {
51
+ readonly type: NumberConstructor;
52
+ readonly default: 99;
53
+ };
54
+ readonly zero: {
55
+ readonly type: BooleanConstructor;
56
+ readonly default: true;
57
+ };
58
+ readonly visible: {
59
+ readonly type: BooleanConstructor;
60
+ readonly default: true;
61
+ };
62
+ }>> & Readonly<{}>, {
63
+ readonly value: string | number;
64
+ readonly visible: boolean;
65
+ readonly dot: boolean;
66
+ readonly offset: [number, number];
67
+ readonly max: number;
68
+ readonly zero: boolean;
69
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
70
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
71
+ export default _default;
72
+ type __VLS_WithTemplateSlots<T, S> = T & {
73
+ new (): {
74
+ $slots: S;
75
+ };
76
+ };
@@ -0,0 +1,230 @@
1
+ export declare const MtButton: {
2
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
3
+ readonly type: {
4
+ readonly type: import('vue').PropType<"default" | "primary" | "error" | "success" | "noble">;
5
+ readonly validator: (value: string) => boolean;
6
+ readonly default: "default";
7
+ };
8
+ readonly size: {
9
+ type: import('vue').PropType<"normal" | "small" | "large">;
10
+ default: string;
11
+ validator: (value: "normal" | "small" | "large") => boolean;
12
+ };
13
+ readonly width: {
14
+ readonly type: import('vue').PropType<number | string>;
15
+ readonly validator: (value: number | string) => boolean;
16
+ readonly default: "auto";
17
+ };
18
+ readonly height: {
19
+ readonly type: import('vue').PropType<number | string>;
20
+ readonly validator: (value: number | string) => boolean;
21
+ readonly default: "auto";
22
+ };
23
+ readonly round: {
24
+ readonly type: BooleanConstructor;
25
+ readonly default: false;
26
+ };
27
+ readonly circle: {
28
+ readonly type: BooleanConstructor;
29
+ readonly default: false;
30
+ };
31
+ readonly loading: {
32
+ readonly type: BooleanConstructor;
33
+ readonly default: false;
34
+ };
35
+ readonly disabled: {
36
+ readonly type: BooleanConstructor;
37
+ readonly default: false;
38
+ };
39
+ readonly text: {
40
+ readonly type: BooleanConstructor;
41
+ readonly default: false;
42
+ };
43
+ readonly block: {
44
+ readonly type: BooleanConstructor;
45
+ readonly default: false;
46
+ };
47
+ readonly plain: {
48
+ readonly type: BooleanConstructor;
49
+ readonly default: false;
50
+ };
51
+ readonly nativeType: {
52
+ readonly type: import('vue').PropType<"button" | "submit" | "reset">;
53
+ readonly default: "button";
54
+ };
55
+ }>> & Readonly<{
56
+ onClick?: ((args_0: MouseEvent) => any) | undefined;
57
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
58
+ click: (args_0: MouseEvent) => any;
59
+ }, import('vue').PublicProps, {
60
+ readonly round: boolean;
61
+ readonly size: "normal" | "small" | "large";
62
+ readonly type: "default" | "error" | "primary" | "success" | "noble";
63
+ readonly circle: boolean;
64
+ readonly text: boolean;
65
+ readonly width: string | number;
66
+ readonly height: string | number;
67
+ readonly plain: boolean;
68
+ readonly loading: boolean;
69
+ readonly disabled: boolean;
70
+ readonly block: boolean;
71
+ readonly nativeType: "button" | "reset" | "submit";
72
+ }, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLButtonElement, import('vue').ComponentProvideOptions, {
73
+ P: {};
74
+ B: {};
75
+ D: {};
76
+ C: {};
77
+ M: {};
78
+ Defaults: {};
79
+ }, Readonly<import('vue').ExtractPropTypes<{
80
+ readonly type: {
81
+ readonly type: import('vue').PropType<"default" | "primary" | "error" | "success" | "noble">;
82
+ readonly validator: (value: string) => boolean;
83
+ readonly default: "default";
84
+ };
85
+ readonly size: {
86
+ type: import('vue').PropType<"normal" | "small" | "large">;
87
+ default: string;
88
+ validator: (value: "normal" | "small" | "large") => boolean;
89
+ };
90
+ readonly width: {
91
+ readonly type: import('vue').PropType<number | string>;
92
+ readonly validator: (value: number | string) => boolean;
93
+ readonly default: "auto";
94
+ };
95
+ readonly height: {
96
+ readonly type: import('vue').PropType<number | string>;
97
+ readonly validator: (value: number | string) => boolean;
98
+ readonly default: "auto";
99
+ };
100
+ readonly round: {
101
+ readonly type: BooleanConstructor;
102
+ readonly default: false;
103
+ };
104
+ readonly circle: {
105
+ readonly type: BooleanConstructor;
106
+ readonly default: false;
107
+ };
108
+ readonly loading: {
109
+ readonly type: BooleanConstructor;
110
+ readonly default: false;
111
+ };
112
+ readonly disabled: {
113
+ readonly type: BooleanConstructor;
114
+ readonly default: false;
115
+ };
116
+ readonly text: {
117
+ readonly type: BooleanConstructor;
118
+ readonly default: false;
119
+ };
120
+ readonly block: {
121
+ readonly type: BooleanConstructor;
122
+ readonly default: false;
123
+ };
124
+ readonly plain: {
125
+ readonly type: BooleanConstructor;
126
+ readonly default: false;
127
+ };
128
+ readonly nativeType: {
129
+ readonly type: import('vue').PropType<"button" | "submit" | "reset">;
130
+ readonly default: "button";
131
+ };
132
+ }>> & Readonly<{
133
+ onClick?: ((args_0: MouseEvent) => any) | undefined;
134
+ }>, {}, {}, {}, {}, {
135
+ readonly round: boolean;
136
+ readonly size: "normal" | "small" | "large";
137
+ readonly type: "default" | "error" | "primary" | "success" | "noble";
138
+ readonly circle: boolean;
139
+ readonly text: boolean;
140
+ readonly width: string | number;
141
+ readonly height: string | number;
142
+ readonly plain: boolean;
143
+ readonly loading: boolean;
144
+ readonly disabled: boolean;
145
+ readonly block: boolean;
146
+ readonly nativeType: "button" | "reset" | "submit";
147
+ }>;
148
+ __isFragment?: never;
149
+ __isTeleport?: never;
150
+ __isSuspense?: never;
151
+ } & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
152
+ readonly type: {
153
+ readonly type: import('vue').PropType<"default" | "primary" | "error" | "success" | "noble">;
154
+ readonly validator: (value: string) => boolean;
155
+ readonly default: "default";
156
+ };
157
+ readonly size: {
158
+ type: import('vue').PropType<"normal" | "small" | "large">;
159
+ default: string;
160
+ validator: (value: "normal" | "small" | "large") => boolean;
161
+ };
162
+ readonly width: {
163
+ readonly type: import('vue').PropType<number | string>;
164
+ readonly validator: (value: number | string) => boolean;
165
+ readonly default: "auto";
166
+ };
167
+ readonly height: {
168
+ readonly type: import('vue').PropType<number | string>;
169
+ readonly validator: (value: number | string) => boolean;
170
+ readonly default: "auto";
171
+ };
172
+ readonly round: {
173
+ readonly type: BooleanConstructor;
174
+ readonly default: false;
175
+ };
176
+ readonly circle: {
177
+ readonly type: BooleanConstructor;
178
+ readonly default: false;
179
+ };
180
+ readonly loading: {
181
+ readonly type: BooleanConstructor;
182
+ readonly default: false;
183
+ };
184
+ readonly disabled: {
185
+ readonly type: BooleanConstructor;
186
+ readonly default: false;
187
+ };
188
+ readonly text: {
189
+ readonly type: BooleanConstructor;
190
+ readonly default: false;
191
+ };
192
+ readonly block: {
193
+ readonly type: BooleanConstructor;
194
+ readonly default: false;
195
+ };
196
+ readonly plain: {
197
+ readonly type: BooleanConstructor;
198
+ readonly default: false;
199
+ };
200
+ readonly nativeType: {
201
+ readonly type: import('vue').PropType<"button" | "submit" | "reset">;
202
+ readonly default: "button";
203
+ };
204
+ }>> & Readonly<{
205
+ onClick?: ((args_0: MouseEvent) => any) | undefined;
206
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
207
+ click: (args_0: MouseEvent) => any;
208
+ }, string, {
209
+ readonly round: boolean;
210
+ readonly size: "normal" | "small" | "large";
211
+ readonly type: "default" | "error" | "primary" | "success" | "noble";
212
+ readonly circle: boolean;
213
+ readonly text: boolean;
214
+ readonly width: string | number;
215
+ readonly height: string | number;
216
+ readonly plain: boolean;
217
+ readonly loading: boolean;
218
+ readonly disabled: boolean;
219
+ readonly block: boolean;
220
+ readonly nativeType: "button" | "reset" | "submit";
221
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
222
+ $slots: Readonly<{
223
+ default: any;
224
+ icon: any;
225
+ }> & {
226
+ default: any;
227
+ icon: any;
228
+ };
229
+ }) & import('vue').Plugin;
230
+ export default MtButton;
@@ -0,0 +1,93 @@
1
+ import { ExtractPropTypes, PropType } from 'vue';
2
+ declare const buttonProps: {
3
+ /**
4
+ * 按钮的外观风格
5
+ */
6
+ readonly type: {
7
+ readonly type: PropType<"default" | "primary" | "error" | "success" | "noble">;
8
+ readonly validator: (value: string) => boolean;
9
+ readonly default: "default";
10
+ };
11
+ /**
12
+ * 按钮的尺寸
13
+ */
14
+ readonly size: {
15
+ type: PropType<"normal" | "small" | "large">;
16
+ default: string;
17
+ validator: (value: "normal" | "small" | "large") => boolean;
18
+ };
19
+ /**
20
+ * 按钮的宽度
21
+ */
22
+ readonly width: {
23
+ readonly type: PropType<number | string>;
24
+ readonly validator: (value: number | string) => boolean;
25
+ readonly default: "auto";
26
+ };
27
+ /**
28
+ * 按钮的高度
29
+ */
30
+ readonly height: {
31
+ readonly type: PropType<number | string>;
32
+ readonly validator: (value: number | string) => boolean;
33
+ readonly default: "auto";
34
+ };
35
+ /**
36
+ * 控制按钮是否呈现圆角样式
37
+ */
38
+ readonly round: {
39
+ readonly type: BooleanConstructor;
40
+ readonly default: false;
41
+ };
42
+ /**
43
+ * 按钮是否为圆形按钮
44
+ */
45
+ readonly circle: {
46
+ readonly type: BooleanConstructor;
47
+ readonly default: false;
48
+ };
49
+ /**
50
+ * 按钮是否处于加载中状态
51
+ */
52
+ readonly loading: {
53
+ readonly type: BooleanConstructor;
54
+ readonly default: false;
55
+ };
56
+ /**
57
+ * 按钮是否处于禁用状态
58
+ */
59
+ readonly disabled: {
60
+ readonly type: BooleanConstructor;
61
+ readonly default: false;
62
+ };
63
+ /**
64
+ * 是否为文字按钮
65
+ */
66
+ readonly text: {
67
+ readonly type: BooleanConstructor;
68
+ readonly default: false;
69
+ };
70
+ /**
71
+ * 是否为块级元素
72
+ */
73
+ readonly block: {
74
+ readonly type: BooleanConstructor;
75
+ readonly default: false;
76
+ };
77
+ /**
78
+ * 是否为朴素按钮
79
+ */
80
+ readonly plain: {
81
+ readonly type: BooleanConstructor;
82
+ readonly default: false;
83
+ };
84
+ /**
85
+ * 原生 type 属性
86
+ */
87
+ readonly nativeType: {
88
+ readonly type: PropType<"button" | "submit" | "reset">;
89
+ readonly default: "button";
90
+ };
91
+ };
92
+ export type ButtonProps = ExtractPropTypes<typeof buttonProps>;
93
+ export { buttonProps };