@minto-ai/mini-ui 1.0.102 → 1.0.105
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/dist/button/index.d.ts +227 -0
- package/dist/button/src/button.d.ts +93 -0
- package/dist/button/src/button.vue.d.ts +141 -0
- package/dist/icon/assets/font/iconfont.json.d.ts +1537 -0
- package/dist/icon/index.d.ts +3 -0
- package/dist/icon/src/icon.d.ts +1 -0
- package/dist/icon/src/icon.vue.d.ts +2 -0
- package/dist/image/index.d.ts +14 -8
- package/dist/image/src/image.d.ts +4 -2
- package/dist/image/src/image.vue.d.ts +7 -3
- package/dist/index.d.ts +3 -1
- package/dist/index.es.js +1845 -87
- package/dist/loading/index.d.ts +3 -3
- package/dist/loading/src/loading.vue.d.ts +1 -1
- package/dist/style.css +295 -79
- package/dist/utils/dom/unit.d.ts +32 -2
- package/dist/utils/function/index.d.ts +1 -0
- package/dist/utils/function/shared.d.ts +2 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/prop/index.d.ts +1 -0
- package/dist/utils/prop/size.d.ts +9 -0
- package/package.json +1 -1
package/dist/icon/index.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export declare const MtIcon: {
|
|
|
12
12
|
readonly name: {
|
|
13
13
|
readonly type: StringConstructor;
|
|
14
14
|
readonly required: true;
|
|
15
|
+
readonly validator: (value: string) => boolean;
|
|
15
16
|
};
|
|
16
17
|
readonly rotate: {
|
|
17
18
|
readonly type: NumberConstructor;
|
|
@@ -41,6 +42,7 @@ export declare const MtIcon: {
|
|
|
41
42
|
readonly name: {
|
|
42
43
|
readonly type: StringConstructor;
|
|
43
44
|
readonly required: true;
|
|
45
|
+
readonly validator: (value: string) => boolean;
|
|
44
46
|
};
|
|
45
47
|
readonly rotate: {
|
|
46
48
|
readonly type: NumberConstructor;
|
|
@@ -67,6 +69,7 @@ export declare const MtIcon: {
|
|
|
67
69
|
readonly name: {
|
|
68
70
|
readonly type: StringConstructor;
|
|
69
71
|
readonly required: true;
|
|
72
|
+
readonly validator: (value: string) => boolean;
|
|
70
73
|
};
|
|
71
74
|
readonly rotate: {
|
|
72
75
|
readonly type: NumberConstructor;
|
package/dist/icon/src/icon.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
11
11
|
readonly name: {
|
|
12
12
|
readonly type: StringConstructor;
|
|
13
13
|
readonly required: true;
|
|
14
|
+
readonly validator: (value: string) => boolean;
|
|
14
15
|
};
|
|
15
16
|
readonly rotate: {
|
|
16
17
|
readonly type: NumberConstructor;
|
|
@@ -29,6 +30,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
29
30
|
readonly name: {
|
|
30
31
|
readonly type: StringConstructor;
|
|
31
32
|
readonly required: true;
|
|
33
|
+
readonly validator: (value: string) => boolean;
|
|
32
34
|
};
|
|
33
35
|
readonly rotate: {
|
|
34
36
|
readonly type: NumberConstructor;
|
package/dist/image/index.d.ts
CHANGED
|
@@ -6,10 +6,12 @@ export declare const MtImage: {
|
|
|
6
6
|
};
|
|
7
7
|
readonly width: {
|
|
8
8
|
readonly type: import('vue').PropType<number | string>;
|
|
9
|
+
readonly validator: (value: number | string) => boolean;
|
|
9
10
|
readonly default: "100%";
|
|
10
11
|
};
|
|
11
12
|
readonly height: {
|
|
12
13
|
readonly type: import('vue').PropType<number | string>;
|
|
14
|
+
readonly validator: (value: number | string) => boolean;
|
|
13
15
|
readonly default: "100%";
|
|
14
16
|
};
|
|
15
17
|
readonly fit: {
|
|
@@ -18,15 +20,15 @@ export declare const MtImage: {
|
|
|
18
20
|
readonly default: "cover";
|
|
19
21
|
};
|
|
20
22
|
}>> & Readonly<{
|
|
21
|
-
onLoad?: (() => any) | undefined;
|
|
22
23
|
onError?: (() => any) | undefined;
|
|
24
|
+
onLoad?: (() => any) | undefined;
|
|
23
25
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
24
|
-
load: () => any;
|
|
25
26
|
error: () => any;
|
|
27
|
+
load: () => any;
|
|
26
28
|
}, import('vue').PublicProps, {
|
|
27
|
-
readonly src: string;
|
|
28
29
|
readonly width: string | number;
|
|
29
30
|
readonly height: string | number;
|
|
31
|
+
readonly src: string;
|
|
30
32
|
readonly fit: "fill" | "contain" | "cover" | "none" | "scale-down";
|
|
31
33
|
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
32
34
|
P: {};
|
|
@@ -42,10 +44,12 @@ export declare const MtImage: {
|
|
|
42
44
|
};
|
|
43
45
|
readonly width: {
|
|
44
46
|
readonly type: import('vue').PropType<number | string>;
|
|
47
|
+
readonly validator: (value: number | string) => boolean;
|
|
45
48
|
readonly default: "100%";
|
|
46
49
|
};
|
|
47
50
|
readonly height: {
|
|
48
51
|
readonly type: import('vue').PropType<number | string>;
|
|
52
|
+
readonly validator: (value: number | string) => boolean;
|
|
49
53
|
readonly default: "100%";
|
|
50
54
|
};
|
|
51
55
|
readonly fit: {
|
|
@@ -54,12 +58,12 @@ export declare const MtImage: {
|
|
|
54
58
|
readonly default: "cover";
|
|
55
59
|
};
|
|
56
60
|
}>> & Readonly<{
|
|
57
|
-
onLoad?: (() => any) | undefined;
|
|
58
61
|
onError?: (() => any) | undefined;
|
|
62
|
+
onLoad?: (() => any) | undefined;
|
|
59
63
|
}>, {}, {}, {}, {}, {
|
|
60
|
-
readonly src: string;
|
|
61
64
|
readonly width: string | number;
|
|
62
65
|
readonly height: string | number;
|
|
66
|
+
readonly src: string;
|
|
63
67
|
readonly fit: "fill" | "contain" | "cover" | "none" | "scale-down";
|
|
64
68
|
}>;
|
|
65
69
|
__isFragment?: never;
|
|
@@ -72,10 +76,12 @@ export declare const MtImage: {
|
|
|
72
76
|
};
|
|
73
77
|
readonly width: {
|
|
74
78
|
readonly type: import('vue').PropType<number | string>;
|
|
79
|
+
readonly validator: (value: number | string) => boolean;
|
|
75
80
|
readonly default: "100%";
|
|
76
81
|
};
|
|
77
82
|
readonly height: {
|
|
78
83
|
readonly type: import('vue').PropType<number | string>;
|
|
84
|
+
readonly validator: (value: number | string) => boolean;
|
|
79
85
|
readonly default: "100%";
|
|
80
86
|
};
|
|
81
87
|
readonly fit: {
|
|
@@ -84,15 +90,15 @@ export declare const MtImage: {
|
|
|
84
90
|
readonly default: "cover";
|
|
85
91
|
};
|
|
86
92
|
}>> & Readonly<{
|
|
87
|
-
onLoad?: (() => any) | undefined;
|
|
88
93
|
onError?: (() => any) | undefined;
|
|
94
|
+
onLoad?: (() => any) | undefined;
|
|
89
95
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
90
|
-
load: () => any;
|
|
91
96
|
error: () => any;
|
|
97
|
+
load: () => any;
|
|
92
98
|
}, string, {
|
|
93
|
-
readonly src: string;
|
|
94
99
|
readonly width: string | number;
|
|
95
100
|
readonly height: string | number;
|
|
101
|
+
readonly src: string;
|
|
96
102
|
readonly fit: "fill" | "contain" | "cover" | "none" | "scale-down";
|
|
97
103
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
98
104
|
$slots: Readonly<{
|
|
@@ -8,17 +8,19 @@ declare const imageProps: {
|
|
|
8
8
|
readonly default: "";
|
|
9
9
|
};
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* 图片的宽度
|
|
12
12
|
*/
|
|
13
13
|
readonly width: {
|
|
14
14
|
readonly type: PropType<number | string>;
|
|
15
|
+
readonly validator: (value: number | string) => boolean;
|
|
15
16
|
readonly default: "100%";
|
|
16
17
|
};
|
|
17
18
|
/**
|
|
18
|
-
*
|
|
19
|
+
* 图片的高度
|
|
19
20
|
*/
|
|
20
21
|
readonly height: {
|
|
21
22
|
readonly type: PropType<number | string>;
|
|
23
|
+
readonly validator: (value: number | string) => boolean;
|
|
22
24
|
readonly default: "100%";
|
|
23
25
|
};
|
|
24
26
|
/**
|
|
@@ -16,10 +16,12 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
16
16
|
};
|
|
17
17
|
readonly width: {
|
|
18
18
|
readonly type: import('vue').PropType<number | string>;
|
|
19
|
+
readonly validator: (value: number | string) => boolean;
|
|
19
20
|
readonly default: "100%";
|
|
20
21
|
};
|
|
21
22
|
readonly height: {
|
|
22
23
|
readonly type: import('vue').PropType<number | string>;
|
|
24
|
+
readonly validator: (value: number | string) => boolean;
|
|
23
25
|
readonly default: "100%";
|
|
24
26
|
};
|
|
25
27
|
readonly fit: {
|
|
@@ -28,8 +30,8 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
28
30
|
readonly default: "cover";
|
|
29
31
|
};
|
|
30
32
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
31
|
-
load: () => any;
|
|
32
33
|
error: () => any;
|
|
34
|
+
load: () => any;
|
|
33
35
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
34
36
|
readonly src: {
|
|
35
37
|
readonly type: StringConstructor;
|
|
@@ -37,10 +39,12 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
37
39
|
};
|
|
38
40
|
readonly width: {
|
|
39
41
|
readonly type: import('vue').PropType<number | string>;
|
|
42
|
+
readonly validator: (value: number | string) => boolean;
|
|
40
43
|
readonly default: "100%";
|
|
41
44
|
};
|
|
42
45
|
readonly height: {
|
|
43
46
|
readonly type: import('vue').PropType<number | string>;
|
|
47
|
+
readonly validator: (value: number | string) => boolean;
|
|
44
48
|
readonly default: "100%";
|
|
45
49
|
};
|
|
46
50
|
readonly fit: {
|
|
@@ -49,12 +53,12 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
49
53
|
readonly default: "cover";
|
|
50
54
|
};
|
|
51
55
|
}>> & Readonly<{
|
|
52
|
-
onLoad?: (() => any) | undefined;
|
|
53
56
|
onError?: (() => any) | undefined;
|
|
57
|
+
onLoad?: (() => any) | undefined;
|
|
54
58
|
}>, {
|
|
55
|
-
readonly src: string;
|
|
56
59
|
readonly width: string | number;
|
|
57
60
|
readonly height: string | number;
|
|
61
|
+
readonly src: string;
|
|
58
62
|
readonly fit: "fill" | "contain" | "cover" | "none" | "scale-down";
|
|
59
63
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
60
64
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { App } from 'vue';
|
|
2
|
+
import { MtButton } from './button';
|
|
2
3
|
import { MtIcon } from './icon';
|
|
3
4
|
import { MtImage } from './image';
|
|
4
5
|
import { MtLoading } from './loading';
|
|
@@ -6,11 +7,12 @@ declare const _default: {
|
|
|
6
7
|
install: (app: App) => void;
|
|
7
8
|
};
|
|
8
9
|
export default _default;
|
|
9
|
-
export { MtIcon, MtImage, MtLoading, };
|
|
10
|
+
export { MtButton, MtIcon, MtImage, MtLoading, };
|
|
10
11
|
declare module 'vue' {
|
|
11
12
|
interface GlobalComponents {
|
|
12
13
|
MtImage: typeof MtImage;
|
|
13
14
|
MtLoading: typeof MtLoading;
|
|
14
15
|
MtIcon: typeof MtIcon;
|
|
16
|
+
MtButton: typeof MtButton;
|
|
15
17
|
}
|
|
16
18
|
}
|