@mingto/mt-ui 1.1.36 → 1.1.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +173 -19
- package/dist/avatar-image/index.d.ts +3 -3
- package/dist/avatar-image/src/avatar-image.vue.d.ts +1 -1
- package/dist/avatar-text/index.d.ts +2 -2
- package/dist/avatar-text/src/avatar-text.vue.d.ts +3 -2
- package/dist/backtop/index.d.ts +2 -2
- package/dist/backtop/src/backtop.d.ts +1 -1
- package/dist/backtop/src/backtop.vue.d.ts +1 -1
- package/dist/badge/index.d.ts +3 -3
- package/dist/badge/src/badge.vue.d.ts +1 -1
- package/dist/button/index.d.ts +44 -26
- package/dist/button/src/button.vue.d.ts +25 -13
- package/dist/cell/index.d.ts +15 -22
- package/dist/cell/src/cell.vue.d.ts +9 -16
- package/dist/cell-group/index.d.ts +8 -6
- package/dist/cell-group/src/cell-group.d.ts +6 -6
- package/dist/config-provider/index.d.ts +12 -3
- package/dist/config-provider/src/config-provider.d.ts +41 -6
- package/dist/dialog/index.d.ts +29 -29
- package/dist/dialog/src/dialog.d.ts +2 -2
- package/dist/dialog/src/dialog.vue.d.ts +15 -14
- package/dist/dialog/src/layout/dialog-confirm-layout.vue.d.ts +1 -37
- package/dist/empty/index.d.ts +3 -3
- package/dist/empty/src/empty.d.ts +1 -1
- package/dist/empty/src/empty.vue.d.ts +2 -2
- package/dist/fade-transition/index.d.ts +5 -5
- package/dist/fade-transition/src/fade-transition.vue.d.ts +2 -2
- package/dist/file-preview/src/ai-music-preview.vue.d.ts +17 -16
- package/dist/file-preview/src/iframe-preview.vue.d.ts +3 -2
- package/dist/file-preview/src/image-preview.vue.d.ts +3 -2
- package/dist/file-preview/src/music-preview.vue.d.ts +3 -2
- package/dist/hooks/dom/use-z-index.d.ts +4 -1
- package/dist/hooks/event/use-same-target.d.ts +4 -2
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/locale/use-locale.d.ts +2 -2
- package/dist/hooks/use-namespace/index.d.ts +23 -0
- package/dist/hooks/vue/use-children.d.ts +6 -3
- package/dist/image/index.d.ts +25 -10
- package/dist/image/src/image.d.ts +7 -0
- package/dist/image/src/image.vue.d.ts +15 -5
- package/dist/index.es.js +67694 -64647
- package/dist/index.umd.js +68544 -106524
- package/dist/infinite-scroll/index.d.ts +27 -27
- package/dist/infinite-scroll/src/infinite-scroll.d.ts +7 -4
- package/dist/infinite-scroll/src/infinite-scroll.vue.d.ts +18 -16
- package/dist/loading/src/loading.d.ts +3 -1
- package/dist/locale/index.d.ts +2 -0
- package/dist/locale/lang/ar.d.ts +8 -0
- package/dist/locale/lang/en.d.ts +8 -0
- package/dist/locale/lang/ms.d.ts +8 -0
- package/dist/locale/lang/th.d.ts +8 -0
- package/dist/locale/lang/vi.d.ts +8 -0
- package/dist/locale/lang/zh-cn.d.ts +8 -0
- package/dist/locale/lang/zh-tw.d.ts +8 -0
- package/dist/message/src/message.d.ts +1 -1
- package/dist/message/src/message.vue.d.ts +4 -4
- package/dist/popover/index.d.ts +28 -28
- package/dist/popover/src/content.vue.d.ts +6 -10
- package/dist/popover/src/popover.vue.d.ts +15 -15
- package/dist/poster/src/method.d.ts +3 -3
- package/dist/progress/index.d.ts +16 -13
- package/dist/progress/src/progress.d.ts +2 -2
- package/dist/progress/src/progress.vue.d.ts +10 -7
- package/dist/qrcode/index.d.ts +3 -3
- package/dist/qrcode/src/qrcode.vue.d.ts +1 -1
- package/dist/style.css +544 -373
- package/dist/tab/src/tab.d.ts +2 -1
- package/dist/table/index.d.ts +2 -4
- package/dist/table/src/table.vue.d.ts +2 -4
- package/dist/table-column/index.d.ts +3 -6
- package/dist/table-column/src/table-column.vue.d.ts +3 -6
- package/dist/tabs/index.d.ts +8 -8
- package/dist/tabs/src/tabs.d.ts +1 -0
- package/dist/tabs/src/tabs.vue.d.ts +3 -3
- package/dist/tag/index.d.ts +17 -17
- package/dist/tag/src/tag.d.ts +6 -2
- package/dist/tag/src/tag.vue.d.ts +8 -8
- package/dist/tooltip/index.d.ts +60 -53
- package/dist/tooltip/src/tooltip.vue.d.ts +78 -77
- package/dist/upload/index.d.ts +320 -237
- package/dist/upload/src/layout/upload-file-list-layout.vue.d.ts +8 -2
- package/dist/upload/src/layout/upload-image-grid-layout.vue.d.ts +8 -2
- package/dist/upload/src/layout/upload-image-only-layout.vue.d.ts +8 -2
- package/dist/upload/src/trigger/upload-file-list-trigger.vue.d.ts +1 -1
- package/dist/upload/src/trigger/upload-image-only-trigger.vue.d.ts +8 -2
- package/dist/upload/src/upload-content.d.ts +15 -4
- package/dist/upload/src/upload-content.vue.d.ts +41 -16
- package/dist/upload/src/upload.d.ts +16 -7
- package/dist/upload/src/upload.vue.d.ts +407 -213
- package/dist/utils/class/deferred.d.ts +8 -5
- package/dist/utils/prop/size.d.ts +1 -1
- package/dist/utils/vue/children.d.ts +1 -3
- package/dist/utils/vue/install.d.ts +2 -2
- package/package.json +6 -4
- /package/dist/upload/src/{use-full-scree-drag.d.ts → use-full-screen-drag.d.ts} +0 -0
package/dist/tab/src/tab.d.ts
CHANGED
|
@@ -19,5 +19,6 @@ interface TabContext {
|
|
|
19
19
|
isActive: ComputedRef<boolean>;
|
|
20
20
|
}
|
|
21
21
|
type TabProps = ExtractPropTypes<typeof tabProps>;
|
|
22
|
+
declare function isTabContext(obj: unknown): obj is TabContext;
|
|
22
23
|
export type { TabContext, TabProps, };
|
|
23
|
-
export { tabProps };
|
|
24
|
+
export { isTabContext, tabProps };
|
package/dist/table/index.d.ts
CHANGED
|
@@ -11,10 +11,8 @@ export declare const MtTable: {
|
|
|
11
11
|
__isTeleport?: never;
|
|
12
12
|
__isSuspense?: never;
|
|
13
13
|
} & import('vue').ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
14
|
-
$slots:
|
|
15
|
-
default: any;
|
|
16
|
-
}> & {
|
|
17
|
-
default: any;
|
|
14
|
+
$slots: {
|
|
15
|
+
default?(_: any): any;
|
|
18
16
|
};
|
|
19
17
|
}) & import('vue').Plugin;
|
|
20
18
|
export default MtTable;
|
|
@@ -11,12 +11,9 @@ export declare const MtTableColumn: {
|
|
|
11
11
|
__isTeleport?: never;
|
|
12
12
|
__isSuspense?: never;
|
|
13
13
|
} & import('vue').ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
14
|
-
$slots:
|
|
15
|
-
default: any;
|
|
16
|
-
header: any;
|
|
17
|
-
}> & {
|
|
18
|
-
default: any;
|
|
19
|
-
header: any;
|
|
14
|
+
$slots: {
|
|
15
|
+
default?(_: any): any;
|
|
16
|
+
header?(_: any): any;
|
|
20
17
|
};
|
|
21
18
|
}) & import('vue').Plugin;
|
|
22
19
|
export default MtTableColumn;
|
package/dist/tabs/index.d.ts
CHANGED
|
@@ -9,14 +9,14 @@ export declare const MtTabs: {
|
|
|
9
9
|
readonly default: "card";
|
|
10
10
|
};
|
|
11
11
|
}>> & Readonly<{
|
|
12
|
-
onChange?: ((args_0: string | number) => any) | undefined;
|
|
13
12
|
"onUpdate:modelValue"?: ((args_0: string | number) => any) | undefined;
|
|
13
|
+
onChange?: ((args_0: string | number) => any) | undefined;
|
|
14
14
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
15
|
-
change: (args_0: string | number) => any;
|
|
16
15
|
"update:modelValue": (args_0: string | number) => any;
|
|
16
|
+
change: (args_0: string | number) => any;
|
|
17
17
|
}, import('vue').PublicProps, {
|
|
18
|
-
readonly type: "button" | "line" | "card";
|
|
19
18
|
readonly modelValue: string | number;
|
|
19
|
+
readonly type: "button" | "line" | "card";
|
|
20
20
|
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
21
21
|
tabsRef: HTMLDivElement;
|
|
22
22
|
}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
@@ -36,11 +36,11 @@ export declare const MtTabs: {
|
|
|
36
36
|
readonly default: "card";
|
|
37
37
|
};
|
|
38
38
|
}>> & Readonly<{
|
|
39
|
-
onChange?: ((args_0: string | number) => any) | undefined;
|
|
40
39
|
"onUpdate:modelValue"?: ((args_0: string | number) => any) | undefined;
|
|
40
|
+
onChange?: ((args_0: string | number) => any) | undefined;
|
|
41
41
|
}>, {}, {}, {}, {}, {
|
|
42
|
-
readonly type: "button" | "line" | "card";
|
|
43
42
|
readonly modelValue: string | number;
|
|
43
|
+
readonly type: "button" | "line" | "card";
|
|
44
44
|
}>;
|
|
45
45
|
__isFragment?: never;
|
|
46
46
|
__isTeleport?: never;
|
|
@@ -55,14 +55,14 @@ export declare const MtTabs: {
|
|
|
55
55
|
readonly default: "card";
|
|
56
56
|
};
|
|
57
57
|
}>> & Readonly<{
|
|
58
|
-
onChange?: ((args_0: string | number) => any) | undefined;
|
|
59
58
|
"onUpdate:modelValue"?: ((args_0: string | number) => any) | undefined;
|
|
59
|
+
onChange?: ((args_0: string | number) => any) | undefined;
|
|
60
60
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
61
|
-
change: (args_0: string | number) => any;
|
|
62
61
|
"update:modelValue": (args_0: string | number) => any;
|
|
62
|
+
change: (args_0: string | number) => any;
|
|
63
63
|
}, string, {
|
|
64
|
-
readonly type: "button" | "line" | "card";
|
|
65
64
|
readonly modelValue: string | number;
|
|
65
|
+
readonly type: "button" | "line" | "card";
|
|
66
66
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
67
67
|
$slots: {
|
|
68
68
|
default?(_: {}): any;
|
package/dist/tabs/src/tabs.d.ts
CHANGED
|
@@ -19,8 +19,8 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
19
19
|
readonly default: "card";
|
|
20
20
|
};
|
|
21
21
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
22
|
-
change: (args_0: string | number) => any;
|
|
23
22
|
"update:modelValue": (args_0: string | number) => any;
|
|
23
|
+
change: (args_0: string | number) => any;
|
|
24
24
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
25
25
|
readonly modelValue: {
|
|
26
26
|
readonly type: import('vue').PropType<number | string>;
|
|
@@ -31,11 +31,11 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
31
31
|
readonly default: "card";
|
|
32
32
|
};
|
|
33
33
|
}>> & Readonly<{
|
|
34
|
-
onChange?: ((args_0: string | number) => any) | undefined;
|
|
35
34
|
"onUpdate:modelValue"?: ((args_0: string | number) => any) | undefined;
|
|
35
|
+
onChange?: ((args_0: string | number) => any) | undefined;
|
|
36
36
|
}>, {
|
|
37
|
-
readonly type: "button" | "line" | "card";
|
|
38
37
|
readonly modelValue: string | number;
|
|
38
|
+
readonly type: "button" | "line" | "card";
|
|
39
39
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
40
40
|
tabsRef: HTMLDivElement;
|
|
41
41
|
}, HTMLDivElement>;
|
package/dist/tag/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const MtTag: {
|
|
2
2
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
3
3
|
readonly type: {
|
|
4
|
-
readonly type: import('vue').PropType<"default" | "primary" | "
|
|
4
|
+
readonly type: import('vue').PropType<"default" | "primary" | "error" | "success" | "warning">;
|
|
5
5
|
readonly validator: (value: string) => boolean;
|
|
6
6
|
readonly default: "default";
|
|
7
7
|
};
|
|
@@ -19,19 +19,19 @@ export declare const MtTag: {
|
|
|
19
19
|
readonly default: false;
|
|
20
20
|
};
|
|
21
21
|
readonly effect: {
|
|
22
|
-
readonly type: import('vue').PropType<"
|
|
22
|
+
readonly type: import('vue').PropType<"plain" | "dark" | "light">;
|
|
23
23
|
readonly validator: (value: string) => boolean;
|
|
24
24
|
readonly default: "light";
|
|
25
25
|
};
|
|
26
26
|
}>> & Readonly<{
|
|
27
|
-
onClose?: ((
|
|
27
|
+
onClose?: (() => any) | undefined;
|
|
28
28
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
29
|
-
close: (
|
|
29
|
+
close: () => any;
|
|
30
30
|
}, import('vue').PublicProps, {
|
|
31
31
|
readonly round: boolean;
|
|
32
32
|
readonly size: "normal" | "small" | "large";
|
|
33
|
-
readonly type: "default" | "
|
|
34
|
-
readonly effect: "
|
|
33
|
+
readonly type: "default" | "primary" | "error" | "success" | "warning";
|
|
34
|
+
readonly effect: "plain" | "dark" | "light";
|
|
35
35
|
readonly closable: boolean;
|
|
36
36
|
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLSpanElement, import('vue').ComponentProvideOptions, {
|
|
37
37
|
P: {};
|
|
@@ -42,7 +42,7 @@ export declare const MtTag: {
|
|
|
42
42
|
Defaults: {};
|
|
43
43
|
}, Readonly<import('vue').ExtractPropTypes<{
|
|
44
44
|
readonly type: {
|
|
45
|
-
readonly type: import('vue').PropType<"default" | "primary" | "
|
|
45
|
+
readonly type: import('vue').PropType<"default" | "primary" | "error" | "success" | "warning">;
|
|
46
46
|
readonly validator: (value: string) => boolean;
|
|
47
47
|
readonly default: "default";
|
|
48
48
|
};
|
|
@@ -60,17 +60,17 @@ export declare const MtTag: {
|
|
|
60
60
|
readonly default: false;
|
|
61
61
|
};
|
|
62
62
|
readonly effect: {
|
|
63
|
-
readonly type: import('vue').PropType<"
|
|
63
|
+
readonly type: import('vue').PropType<"plain" | "dark" | "light">;
|
|
64
64
|
readonly validator: (value: string) => boolean;
|
|
65
65
|
readonly default: "light";
|
|
66
66
|
};
|
|
67
67
|
}>> & Readonly<{
|
|
68
|
-
onClose?: ((
|
|
68
|
+
onClose?: (() => any) | undefined;
|
|
69
69
|
}>, {}, {}, {}, {}, {
|
|
70
70
|
readonly round: boolean;
|
|
71
71
|
readonly size: "normal" | "small" | "large";
|
|
72
|
-
readonly type: "default" | "
|
|
73
|
-
readonly effect: "
|
|
72
|
+
readonly type: "default" | "primary" | "error" | "success" | "warning";
|
|
73
|
+
readonly effect: "plain" | "dark" | "light";
|
|
74
74
|
readonly closable: boolean;
|
|
75
75
|
}>;
|
|
76
76
|
__isFragment?: never;
|
|
@@ -78,7 +78,7 @@ export declare const MtTag: {
|
|
|
78
78
|
__isSuspense?: never;
|
|
79
79
|
} & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
|
80
80
|
readonly type: {
|
|
81
|
-
readonly type: import('vue').PropType<"default" | "primary" | "
|
|
81
|
+
readonly type: import('vue').PropType<"default" | "primary" | "error" | "success" | "warning">;
|
|
82
82
|
readonly validator: (value: string) => boolean;
|
|
83
83
|
readonly default: "default";
|
|
84
84
|
};
|
|
@@ -96,19 +96,19 @@ export declare const MtTag: {
|
|
|
96
96
|
readonly default: false;
|
|
97
97
|
};
|
|
98
98
|
readonly effect: {
|
|
99
|
-
readonly type: import('vue').PropType<"
|
|
99
|
+
readonly type: import('vue').PropType<"plain" | "dark" | "light">;
|
|
100
100
|
readonly validator: (value: string) => boolean;
|
|
101
101
|
readonly default: "light";
|
|
102
102
|
};
|
|
103
103
|
}>> & Readonly<{
|
|
104
|
-
onClose?: ((
|
|
104
|
+
onClose?: (() => any) | undefined;
|
|
105
105
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
106
|
-
close: (
|
|
106
|
+
close: () => any;
|
|
107
107
|
}, string, {
|
|
108
108
|
readonly round: boolean;
|
|
109
109
|
readonly size: "normal" | "small" | "large";
|
|
110
|
-
readonly type: "default" | "
|
|
111
|
-
readonly effect: "
|
|
110
|
+
readonly type: "default" | "primary" | "error" | "success" | "warning";
|
|
111
|
+
readonly effect: "plain" | "dark" | "light";
|
|
112
112
|
readonly closable: boolean;
|
|
113
113
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
114
114
|
$slots: {
|
package/dist/tag/src/tag.d.ts
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import { ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
declare const tagTypes: readonly ["default", "primary", "success", "error", "warning"];
|
|
3
|
+
declare const tagEffects: readonly ["dark", "light", "plain"];
|
|
4
|
+
type TagType = (typeof tagTypes)[number];
|
|
5
|
+
type TagEffect = (typeof tagEffects)[number];
|
|
2
6
|
declare const tagProps: {
|
|
3
7
|
/**
|
|
4
8
|
* 标签类型
|
|
5
9
|
*/
|
|
6
10
|
readonly type: {
|
|
7
|
-
readonly type: PropType<
|
|
11
|
+
readonly type: PropType<TagType>;
|
|
8
12
|
readonly validator: (value: string) => boolean;
|
|
9
13
|
readonly default: "default";
|
|
10
14
|
};
|
|
@@ -34,7 +38,7 @@ declare const tagProps: {
|
|
|
34
38
|
* 主题效果
|
|
35
39
|
*/
|
|
36
40
|
readonly effect: {
|
|
37
|
-
readonly type: PropType<
|
|
41
|
+
readonly type: PropType<TagEffect>;
|
|
38
42
|
readonly validator: (value: string) => boolean;
|
|
39
43
|
readonly default: "light";
|
|
40
44
|
};
|
|
@@ -9,7 +9,7 @@ declare function __VLS_template(): {
|
|
|
9
9
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
10
|
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
11
11
|
readonly type: {
|
|
12
|
-
readonly type: import('vue').PropType<"default" | "primary" | "
|
|
12
|
+
readonly type: import('vue').PropType<"default" | "primary" | "error" | "success" | "warning">;
|
|
13
13
|
readonly validator: (value: string) => boolean;
|
|
14
14
|
readonly default: "default";
|
|
15
15
|
};
|
|
@@ -27,15 +27,15 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
27
27
|
readonly default: false;
|
|
28
28
|
};
|
|
29
29
|
readonly effect: {
|
|
30
|
-
readonly type: import('vue').PropType<"
|
|
30
|
+
readonly type: import('vue').PropType<"plain" | "dark" | "light">;
|
|
31
31
|
readonly validator: (value: string) => boolean;
|
|
32
32
|
readonly default: "light";
|
|
33
33
|
};
|
|
34
34
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
35
|
-
close: (
|
|
35
|
+
close: () => any;
|
|
36
36
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
37
37
|
readonly type: {
|
|
38
|
-
readonly type: import('vue').PropType<"default" | "primary" | "
|
|
38
|
+
readonly type: import('vue').PropType<"default" | "primary" | "error" | "success" | "warning">;
|
|
39
39
|
readonly validator: (value: string) => boolean;
|
|
40
40
|
readonly default: "default";
|
|
41
41
|
};
|
|
@@ -53,17 +53,17 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
53
53
|
readonly default: false;
|
|
54
54
|
};
|
|
55
55
|
readonly effect: {
|
|
56
|
-
readonly type: import('vue').PropType<"
|
|
56
|
+
readonly type: import('vue').PropType<"plain" | "dark" | "light">;
|
|
57
57
|
readonly validator: (value: string) => boolean;
|
|
58
58
|
readonly default: "light";
|
|
59
59
|
};
|
|
60
60
|
}>> & Readonly<{
|
|
61
|
-
onClose?: ((
|
|
61
|
+
onClose?: (() => any) | undefined;
|
|
62
62
|
}>, {
|
|
63
63
|
readonly round: boolean;
|
|
64
64
|
readonly size: "normal" | "small" | "large";
|
|
65
|
-
readonly type: "default" | "
|
|
66
|
-
readonly effect: "
|
|
65
|
+
readonly type: "default" | "primary" | "error" | "success" | "warning";
|
|
66
|
+
readonly effect: "plain" | "dark" | "light";
|
|
67
67
|
readonly closable: boolean;
|
|
68
68
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLSpanElement>;
|
|
69
69
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
package/dist/tooltip/index.d.ts
CHANGED
|
@@ -83,16 +83,20 @@ export declare const MtTooltip: {
|
|
|
83
83
|
type: import('vue').PropType<string>;
|
|
84
84
|
default: string;
|
|
85
85
|
};
|
|
86
|
-
}>> & Readonly<{
|
|
86
|
+
}>> & Readonly<{
|
|
87
|
+
"onUpdate:visible"?: ((args_0: boolean) => any) | undefined;
|
|
88
|
+
}>, {
|
|
87
89
|
hide: () => void;
|
|
88
90
|
show: () => void;
|
|
89
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
91
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
92
|
+
"update:visible": (args_0: boolean) => any;
|
|
93
|
+
}, import('vue').PublicProps, {
|
|
90
94
|
width: string;
|
|
91
|
-
|
|
95
|
+
disabled: boolean;
|
|
92
96
|
visible: boolean | null;
|
|
93
|
-
offset: number;
|
|
94
97
|
content: string;
|
|
95
|
-
|
|
98
|
+
offset: number;
|
|
99
|
+
effect: import('../popover').PopoverEffect;
|
|
96
100
|
placement: import('@popperjs/core').Placement;
|
|
97
101
|
enterable: boolean;
|
|
98
102
|
'visible-arrow': boolean;
|
|
@@ -130,13 +134,13 @@ export declare const MtTooltip: {
|
|
|
130
134
|
$: import('vue').ComponentInternalInstance;
|
|
131
135
|
$data: {};
|
|
132
136
|
$props: Partial<{
|
|
137
|
+
appendTo: string | HTMLElement;
|
|
133
138
|
width: string | number;
|
|
134
|
-
|
|
139
|
+
disabled: boolean;
|
|
135
140
|
visible: boolean | null;
|
|
136
|
-
offset: number;
|
|
137
141
|
content: string;
|
|
138
|
-
|
|
139
|
-
|
|
142
|
+
offset: number;
|
|
143
|
+
effect: import('../popover').PopoverEffect;
|
|
140
144
|
trigger: import('../popover').PopoverTriggerType;
|
|
141
145
|
placement: import('@popperjs/core').Placement;
|
|
142
146
|
strategy: "fixed" | "absolute";
|
|
@@ -179,12 +183,12 @@ export declare const MtTooltip: {
|
|
|
179
183
|
enterable: boolean;
|
|
180
184
|
teleported: boolean;
|
|
181
185
|
}> & Omit<{
|
|
186
|
+
readonly appendTo: string | HTMLElement;
|
|
182
187
|
readonly width: string | number;
|
|
183
|
-
readonly
|
|
188
|
+
readonly disabled: boolean;
|
|
184
189
|
readonly visible: boolean | null;
|
|
185
190
|
readonly content: string;
|
|
186
|
-
readonly
|
|
187
|
-
readonly appendTo: string | HTMLElement;
|
|
191
|
+
readonly effect: import('../popover').PopoverEffect;
|
|
188
192
|
readonly trigger: import('../popover').PopoverTriggerType;
|
|
189
193
|
readonly placement: import('@popperjs/core').Placement;
|
|
190
194
|
readonly strategy: "fixed" | "absolute";
|
|
@@ -225,15 +229,15 @@ export declare const MtTooltip: {
|
|
|
225
229
|
readonly virtualRef: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
|
|
226
230
|
readonly enterable: boolean;
|
|
227
231
|
readonly teleported: boolean;
|
|
228
|
-
readonly offset?: number | undefined;
|
|
229
232
|
readonly zIndex?: number | undefined;
|
|
233
|
+
readonly offset?: number | undefined;
|
|
230
234
|
readonly 'onUpdate:visible'?: (((visible: boolean) => void) & ((args_0: boolean) => any)) | undefined;
|
|
231
235
|
readonly fallbackPlacements?: import('@popperjs/core').Placement[] | undefined;
|
|
232
|
-
readonly onBeforeEnter?: (() => any) | undefined;
|
|
233
|
-
readonly onBeforeLeave?: (() => any) | undefined;
|
|
234
236
|
readonly onHide?: (() => any) | undefined;
|
|
235
237
|
readonly onShow?: (() => any) | undefined;
|
|
236
|
-
|
|
238
|
+
readonly onBeforeLeave?: (() => any) | undefined;
|
|
239
|
+
readonly onBeforeEnter?: (() => any) | undefined;
|
|
240
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "appendTo" | "width" | "disabled" | "visible" | "content" | "offset" | "effect" | "trigger" | "placement" | "strategy" | "showArrow" | "popperOptions" | "fallbackPlacements" | "gpuAcceleration" | "popperClass" | "showAfter" | "hideAfter" | "autoClose" | "popperStyle" | "rawContent" | "virtualTriggering" | "virtualRef" | "enterable" | "teleported">;
|
|
237
241
|
$attrs: import('vue').Attrs;
|
|
238
242
|
$refs: {
|
|
239
243
|
[x: string]: unknown;
|
|
@@ -244,7 +248,7 @@ export declare const MtTooltip: {
|
|
|
244
248
|
$root: import('vue').ComponentPublicInstance | null;
|
|
245
249
|
$parent: import('vue').ComponentPublicInstance | null;
|
|
246
250
|
$host: Element | null;
|
|
247
|
-
$emit: ((event: "
|
|
251
|
+
$emit: ((event: "hide") => void) & ((event: "show") => void) & ((event: "beforeLeave") => void) & ((event: "beforeEnter") => void) & ((event: "update:visible", args_0: boolean) => void);
|
|
248
252
|
$el: any;
|
|
249
253
|
$options: import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
|
250
254
|
trigger: {
|
|
@@ -375,28 +379,28 @@ export declare const MtTooltip: {
|
|
|
375
379
|
default: boolean;
|
|
376
380
|
};
|
|
377
381
|
}>> & Readonly<{
|
|
378
|
-
onBeforeEnter?: (() => any) | undefined;
|
|
379
|
-
onBeforeLeave?: (() => any) | undefined;
|
|
380
382
|
onHide?: (() => any) | undefined;
|
|
381
383
|
onShow?: (() => any) | undefined;
|
|
384
|
+
onBeforeLeave?: (() => any) | undefined;
|
|
385
|
+
onBeforeEnter?: (() => any) | undefined;
|
|
382
386
|
"onUpdate:visible"?: ((args_0: boolean) => any) | undefined;
|
|
383
387
|
}>, {
|
|
384
388
|
hide: () => void;
|
|
385
389
|
show: () => void;
|
|
386
390
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
387
|
-
beforeEnter: () => any;
|
|
388
|
-
beforeLeave: () => any;
|
|
389
391
|
hide: () => any;
|
|
390
392
|
show: () => any;
|
|
393
|
+
beforeLeave: () => any;
|
|
394
|
+
beforeEnter: () => any;
|
|
391
395
|
"update:visible": (args_0: boolean) => any;
|
|
392
396
|
}, string, {
|
|
397
|
+
appendTo: string | HTMLElement;
|
|
393
398
|
width: string | number;
|
|
394
|
-
|
|
399
|
+
disabled: boolean;
|
|
395
400
|
visible: boolean | null;
|
|
396
|
-
offset: number;
|
|
397
401
|
content: string;
|
|
398
|
-
|
|
399
|
-
|
|
402
|
+
offset: number;
|
|
403
|
+
effect: import('../popover').PopoverEffect;
|
|
400
404
|
trigger: import('../popover').PopoverTriggerType;
|
|
401
405
|
placement: import('@popperjs/core').Placement;
|
|
402
406
|
strategy: "fixed" | "absolute";
|
|
@@ -459,13 +463,13 @@ export declare const MtTooltip: {
|
|
|
459
463
|
$nextTick: typeof import('vue').nextTick;
|
|
460
464
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
461
465
|
} & Readonly<{
|
|
466
|
+
appendTo: string | HTMLElement;
|
|
462
467
|
width: string | number;
|
|
463
|
-
|
|
468
|
+
disabled: boolean;
|
|
464
469
|
visible: boolean | null;
|
|
465
|
-
offset: number;
|
|
466
470
|
content: string;
|
|
467
|
-
|
|
468
|
-
|
|
471
|
+
offset: number;
|
|
472
|
+
effect: import('../popover').PopoverEffect;
|
|
469
473
|
trigger: import('../popover').PopoverTriggerType;
|
|
470
474
|
placement: import('@popperjs/core').Placement;
|
|
471
475
|
strategy: "fixed" | "absolute";
|
|
@@ -636,23 +640,23 @@ export declare const MtTooltip: {
|
|
|
636
640
|
default: boolean;
|
|
637
641
|
};
|
|
638
642
|
}>> & Readonly<{
|
|
639
|
-
onBeforeEnter?: (() => any) | undefined;
|
|
640
|
-
onBeforeLeave?: (() => any) | undefined;
|
|
641
643
|
onHide?: (() => any) | undefined;
|
|
642
644
|
onShow?: (() => any) | undefined;
|
|
645
|
+
onBeforeLeave?: (() => any) | undefined;
|
|
646
|
+
onBeforeEnter?: (() => any) | undefined;
|
|
643
647
|
"onUpdate:visible"?: ((args_0: boolean) => any) | undefined;
|
|
644
|
-
}>, "hide" | "show" | ("
|
|
648
|
+
}>, "hide" | "show" | ("appendTo" | "width" | "disabled" | "visible" | "content" | "offset" | "effect" | "trigger" | "placement" | "strategy" | "showArrow" | "popperOptions" | "fallbackPlacements" | "gpuAcceleration" | "popperClass" | "showAfter" | "hideAfter" | "autoClose" | "popperStyle" | "rawContent" | "virtualTriggering" | "virtualRef" | "enterable" | "teleported")> & {
|
|
645
649
|
hide: () => void;
|
|
646
650
|
show: () => void;
|
|
647
651
|
} & {} & import('vue').ComponentCustomProperties & {} & {
|
|
648
652
|
$slots: Readonly<{
|
|
649
|
-
reference
|
|
650
|
-
default
|
|
651
|
-
content
|
|
653
|
+
reference?: () => import('vue').VNode[];
|
|
654
|
+
default?: () => import('vue').VNode[];
|
|
655
|
+
content?: () => import('vue').VNode[];
|
|
652
656
|
}> & {
|
|
653
|
-
reference
|
|
654
|
-
default
|
|
655
|
-
content
|
|
657
|
+
reference?: () => import('vue').VNode[];
|
|
658
|
+
default?: () => import('vue').VNode[];
|
|
659
|
+
content?: () => import('vue').VNode[];
|
|
656
660
|
};
|
|
657
661
|
}) | null;
|
|
658
662
|
}, any, import('vue').ComponentProvideOptions, {
|
|
@@ -746,16 +750,18 @@ export declare const MtTooltip: {
|
|
|
746
750
|
type: import('vue').PropType<string>;
|
|
747
751
|
default: string;
|
|
748
752
|
};
|
|
749
|
-
}>> & Readonly<{
|
|
753
|
+
}>> & Readonly<{
|
|
754
|
+
"onUpdate:visible"?: ((args_0: boolean) => any) | undefined;
|
|
755
|
+
}>, {
|
|
750
756
|
hide: () => void;
|
|
751
757
|
show: () => void;
|
|
752
758
|
}, {}, {}, {}, {
|
|
753
759
|
width: string;
|
|
754
|
-
|
|
760
|
+
disabled: boolean;
|
|
755
761
|
visible: boolean | null;
|
|
756
|
-
offset: number;
|
|
757
762
|
content: string;
|
|
758
|
-
|
|
763
|
+
offset: number;
|
|
764
|
+
effect: import('../popover').PopoverEffect;
|
|
759
765
|
placement: import('@popperjs/core').Placement;
|
|
760
766
|
enterable: boolean;
|
|
761
767
|
'visible-arrow': boolean;
|
|
@@ -876,16 +882,20 @@ export declare const MtTooltip: {
|
|
|
876
882
|
type: import('vue').PropType<string>;
|
|
877
883
|
default: string;
|
|
878
884
|
};
|
|
879
|
-
}>> & Readonly<{
|
|
885
|
+
}>> & Readonly<{
|
|
886
|
+
"onUpdate:visible"?: ((args_0: boolean) => any) | undefined;
|
|
887
|
+
}>, {
|
|
880
888
|
hide: () => void;
|
|
881
889
|
show: () => void;
|
|
882
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
890
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
891
|
+
"update:visible": (args_0: boolean) => any;
|
|
892
|
+
}, string, {
|
|
883
893
|
width: string;
|
|
884
|
-
|
|
894
|
+
disabled: boolean;
|
|
885
895
|
visible: boolean | null;
|
|
886
|
-
offset: number;
|
|
887
896
|
content: string;
|
|
888
|
-
|
|
897
|
+
offset: number;
|
|
898
|
+
effect: import('../popover').PopoverEffect;
|
|
889
899
|
placement: import('@popperjs/core').Placement;
|
|
890
900
|
enterable: boolean;
|
|
891
901
|
'visible-arrow': boolean;
|
|
@@ -919,12 +929,9 @@ export declare const MtTooltip: {
|
|
|
919
929
|
[x: string]: boolean;
|
|
920
930
|
} | /*elided*/ any)[])[])[])[])[])[])[])[])[])[])[];
|
|
921
931
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
922
|
-
$slots:
|
|
923
|
-
default: any;
|
|
924
|
-
content: any;
|
|
925
|
-
}> & {
|
|
926
|
-
default: any;
|
|
927
|
-
content: any;
|
|
932
|
+
$slots: {
|
|
933
|
+
default?(_: {}): any;
|
|
934
|
+
content?(_: {}): any;
|
|
928
935
|
};
|
|
929
936
|
}) & import('vue').Plugin;
|
|
930
937
|
export default MtTooltip;
|