@gindow/vant-go 1.0.1 → 1.0.2
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/src/components/VaxAssetPreview.vue.d.ts +35 -0
- package/dist/src/components/VaxAvatar.vue.d.ts +32 -0
- package/dist/src/components/VaxButton.vue.d.ts +53 -0
- package/dist/src/components/VaxCaptcha.vue.d.ts +62 -0
- package/dist/src/components/VaxCell.vue.d.ts +108 -0
- package/dist/src/components/VaxCellGroup.vue.d.ts +113 -0
- package/dist/src/components/VaxEmpty.vue.d.ts +41 -0
- package/dist/src/components/VaxField.vue.d.ts +63 -0
- package/dist/src/components/VaxIcon.vue.d.ts +88 -0
- package/dist/src/components/VaxLoading.vue.d.ts +75 -0
- package/dist/src/components/VaxNavBar.vue.d.ts +56 -0
- package/dist/src/components/VaxPage.vue.d.ts +17 -0
- package/dist/src/components/VaxSelect.vue.d.ts +34 -0
- package/dist/src/components/VaxTabbar.vue.d.ts +116 -0
- package/dist/src/components/VaxTabs.vue.d.ts +39 -0
- package/dist/src/hooks/useCaptcha.d.ts +4 -0
- package/dist/src/hooks/useMessage.d.ts +10 -0
- package/dist/src/index.d.ts +20 -0
- package/dist/src/locale/en-US.d.ts +25 -0
- package/dist/src/locale/index.d.ts +15 -0
- package/dist/src/locale/zh-CN.d.ts +25 -0
- package/dist/src/resolver.d.ts +19 -0
- package/dist/src/types/index.d.ts +14 -0
- package/dist/src/utils/validate.d.ts +13 -0
- package/package.json +4 -4
- package/dist/resolver.d.ts +0 -1
- package/dist/vant-go.d.ts +0 -1
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { IAsset } from '../types';
|
|
3
|
+
declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
|
|
4
|
+
asset: {
|
|
5
|
+
type: PropType<IAsset>;
|
|
6
|
+
default: () => {};
|
|
7
|
+
};
|
|
8
|
+
assets: {
|
|
9
|
+
type: PropType<IAsset[]>;
|
|
10
|
+
default: () => never[];
|
|
11
|
+
};
|
|
12
|
+
show: {
|
|
13
|
+
type: PropType<boolean>;
|
|
14
|
+
};
|
|
15
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
16
|
+
"update:show": (value: boolean) => any;
|
|
17
|
+
}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
18
|
+
asset: {
|
|
19
|
+
type: PropType<IAsset>;
|
|
20
|
+
default: () => {};
|
|
21
|
+
};
|
|
22
|
+
assets: {
|
|
23
|
+
type: PropType<IAsset[]>;
|
|
24
|
+
default: () => never[];
|
|
25
|
+
};
|
|
26
|
+
show: {
|
|
27
|
+
type: PropType<boolean>;
|
|
28
|
+
};
|
|
29
|
+
}>> & Readonly<{
|
|
30
|
+
"onUpdate:show"?: ((value: boolean) => any) | undefined;
|
|
31
|
+
}>, {
|
|
32
|
+
asset: IAsset;
|
|
33
|
+
assets: IAsset[];
|
|
34
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
35
|
+
export default _default;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
|
|
2
|
+
src: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
default: string;
|
|
5
|
+
};
|
|
6
|
+
size: {
|
|
7
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
8
|
+
default: string;
|
|
9
|
+
};
|
|
10
|
+
round: {
|
|
11
|
+
type: BooleanConstructor;
|
|
12
|
+
default: boolean;
|
|
13
|
+
};
|
|
14
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
15
|
+
src: {
|
|
16
|
+
type: StringConstructor;
|
|
17
|
+
default: string;
|
|
18
|
+
};
|
|
19
|
+
size: {
|
|
20
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
21
|
+
default: string;
|
|
22
|
+
};
|
|
23
|
+
round: {
|
|
24
|
+
type: BooleanConstructor;
|
|
25
|
+
default: boolean;
|
|
26
|
+
};
|
|
27
|
+
}>> & Readonly<{}>, {
|
|
28
|
+
size: string | number;
|
|
29
|
+
src: string;
|
|
30
|
+
round: boolean;
|
|
31
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
32
|
+
export default _default;
|
|
@@ -0,0 +1,53 @@
|
|
|
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<globalThis.ExtractPropTypes<{
|
|
11
|
+
icon: {
|
|
12
|
+
type: StringConstructor;
|
|
13
|
+
default: string;
|
|
14
|
+
};
|
|
15
|
+
iconSize: {
|
|
16
|
+
type: NumberConstructor;
|
|
17
|
+
default: number;
|
|
18
|
+
};
|
|
19
|
+
iconColor: {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
default: string;
|
|
22
|
+
};
|
|
23
|
+
iconStrokeWidth: {
|
|
24
|
+
type: NumberConstructor;
|
|
25
|
+
};
|
|
26
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
27
|
+
icon: {
|
|
28
|
+
type: StringConstructor;
|
|
29
|
+
default: string;
|
|
30
|
+
};
|
|
31
|
+
iconSize: {
|
|
32
|
+
type: NumberConstructor;
|
|
33
|
+
default: number;
|
|
34
|
+
};
|
|
35
|
+
iconColor: {
|
|
36
|
+
type: StringConstructor;
|
|
37
|
+
default: string;
|
|
38
|
+
};
|
|
39
|
+
iconStrokeWidth: {
|
|
40
|
+
type: NumberConstructor;
|
|
41
|
+
};
|
|
42
|
+
}>> & Readonly<{}>, {
|
|
43
|
+
iconSize: number;
|
|
44
|
+
icon: string;
|
|
45
|
+
iconColor: string;
|
|
46
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
47
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
48
|
+
export default _default;
|
|
49
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
50
|
+
new (): {
|
|
51
|
+
$slots: S;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
|
|
2
|
+
method: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
default: string;
|
|
5
|
+
};
|
|
6
|
+
label: {
|
|
7
|
+
type: BooleanConstructor;
|
|
8
|
+
default: boolean;
|
|
9
|
+
};
|
|
10
|
+
whatsApp: {
|
|
11
|
+
type: BooleanConstructor;
|
|
12
|
+
default: boolean;
|
|
13
|
+
};
|
|
14
|
+
onSend: {
|
|
15
|
+
type: PropType<(data: any) => Promise<void>>;
|
|
16
|
+
required: true;
|
|
17
|
+
};
|
|
18
|
+
phone: {
|
|
19
|
+
type: globalThis.PropType<string>;
|
|
20
|
+
required: true;
|
|
21
|
+
};
|
|
22
|
+
captcha: {
|
|
23
|
+
type: globalThis.PropType<string>;
|
|
24
|
+
required: true;
|
|
25
|
+
};
|
|
26
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
27
|
+
"update:phone": (value: string) => any;
|
|
28
|
+
"update:captcha": (value: string) => any;
|
|
29
|
+
}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
30
|
+
method: {
|
|
31
|
+
type: StringConstructor;
|
|
32
|
+
default: string;
|
|
33
|
+
};
|
|
34
|
+
label: {
|
|
35
|
+
type: BooleanConstructor;
|
|
36
|
+
default: boolean;
|
|
37
|
+
};
|
|
38
|
+
whatsApp: {
|
|
39
|
+
type: BooleanConstructor;
|
|
40
|
+
default: boolean;
|
|
41
|
+
};
|
|
42
|
+
onSend: {
|
|
43
|
+
type: PropType<(data: any) => Promise<void>>;
|
|
44
|
+
required: true;
|
|
45
|
+
};
|
|
46
|
+
phone: {
|
|
47
|
+
type: globalThis.PropType<string>;
|
|
48
|
+
required: true;
|
|
49
|
+
};
|
|
50
|
+
captcha: {
|
|
51
|
+
type: globalThis.PropType<string>;
|
|
52
|
+
required: true;
|
|
53
|
+
};
|
|
54
|
+
}>> & Readonly<{
|
|
55
|
+
"onUpdate:phone"?: ((value: string) => any) | undefined;
|
|
56
|
+
"onUpdate:captcha"?: ((value: string) => any) | undefined;
|
|
57
|
+
}>, {
|
|
58
|
+
label: boolean;
|
|
59
|
+
method: string;
|
|
60
|
+
whatsApp: boolean;
|
|
61
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
62
|
+
export default _default;
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
attrs: Partial<{}>;
|
|
3
|
+
slots: {
|
|
4
|
+
icon?(_: {}): any;
|
|
5
|
+
title?(_: {}): any;
|
|
6
|
+
label?(_: {}): any;
|
|
7
|
+
value?(_: {}): any;
|
|
8
|
+
};
|
|
9
|
+
refs: {};
|
|
10
|
+
rootEl: any;
|
|
11
|
+
};
|
|
12
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
13
|
+
declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
|
|
14
|
+
icon: {
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
};
|
|
17
|
+
iconSize: {
|
|
18
|
+
type: NumberConstructor;
|
|
19
|
+
};
|
|
20
|
+
iconColor: {
|
|
21
|
+
type: StringConstructor;
|
|
22
|
+
};
|
|
23
|
+
iconBackground: {
|
|
24
|
+
type: StringConstructor;
|
|
25
|
+
};
|
|
26
|
+
iconStrokeWidth: {
|
|
27
|
+
type: NumberConstructor;
|
|
28
|
+
};
|
|
29
|
+
title: {
|
|
30
|
+
type: StringConstructor;
|
|
31
|
+
};
|
|
32
|
+
label: {
|
|
33
|
+
type: StringConstructor;
|
|
34
|
+
};
|
|
35
|
+
value: {
|
|
36
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
37
|
+
};
|
|
38
|
+
titleClass: {
|
|
39
|
+
type: StringConstructor;
|
|
40
|
+
};
|
|
41
|
+
valueClass: {
|
|
42
|
+
type: StringConstructor;
|
|
43
|
+
};
|
|
44
|
+
labelClass: {
|
|
45
|
+
type: StringConstructor;
|
|
46
|
+
};
|
|
47
|
+
isLink: {
|
|
48
|
+
type: BooleanConstructor;
|
|
49
|
+
};
|
|
50
|
+
to: {
|
|
51
|
+
type: StringConstructor;
|
|
52
|
+
};
|
|
53
|
+
onClick: {
|
|
54
|
+
type: PropType<() => void>;
|
|
55
|
+
};
|
|
56
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
57
|
+
icon: {
|
|
58
|
+
type: StringConstructor;
|
|
59
|
+
};
|
|
60
|
+
iconSize: {
|
|
61
|
+
type: NumberConstructor;
|
|
62
|
+
};
|
|
63
|
+
iconColor: {
|
|
64
|
+
type: StringConstructor;
|
|
65
|
+
};
|
|
66
|
+
iconBackground: {
|
|
67
|
+
type: StringConstructor;
|
|
68
|
+
};
|
|
69
|
+
iconStrokeWidth: {
|
|
70
|
+
type: NumberConstructor;
|
|
71
|
+
};
|
|
72
|
+
title: {
|
|
73
|
+
type: StringConstructor;
|
|
74
|
+
};
|
|
75
|
+
label: {
|
|
76
|
+
type: StringConstructor;
|
|
77
|
+
};
|
|
78
|
+
value: {
|
|
79
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
80
|
+
};
|
|
81
|
+
titleClass: {
|
|
82
|
+
type: StringConstructor;
|
|
83
|
+
};
|
|
84
|
+
valueClass: {
|
|
85
|
+
type: StringConstructor;
|
|
86
|
+
};
|
|
87
|
+
labelClass: {
|
|
88
|
+
type: StringConstructor;
|
|
89
|
+
};
|
|
90
|
+
isLink: {
|
|
91
|
+
type: BooleanConstructor;
|
|
92
|
+
};
|
|
93
|
+
to: {
|
|
94
|
+
type: StringConstructor;
|
|
95
|
+
};
|
|
96
|
+
onClick: {
|
|
97
|
+
type: PropType<() => void>;
|
|
98
|
+
};
|
|
99
|
+
}>> & Readonly<{}>, {
|
|
100
|
+
isLink: boolean;
|
|
101
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
102
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
103
|
+
export default _default;
|
|
104
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
105
|
+
new (): {
|
|
106
|
+
$slots: S;
|
|
107
|
+
};
|
|
108
|
+
};
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
interface IVaxCardItem {
|
|
2
|
+
icon?: string;
|
|
3
|
+
iconSize?: number;
|
|
4
|
+
iconColor?: string;
|
|
5
|
+
iconBackground?: string;
|
|
6
|
+
iconStrokeWidth?: number;
|
|
7
|
+
title: string;
|
|
8
|
+
value?: string | number;
|
|
9
|
+
label?: string;
|
|
10
|
+
to?: string;
|
|
11
|
+
titleClass?: string;
|
|
12
|
+
valueClass?: string;
|
|
13
|
+
labelClass?: string;
|
|
14
|
+
isLink?: boolean;
|
|
15
|
+
onClick?: () => void;
|
|
16
|
+
}
|
|
17
|
+
declare function __VLS_template(): {
|
|
18
|
+
attrs: Partial<{}>;
|
|
19
|
+
slots: {
|
|
20
|
+
title?(_: {}): any;
|
|
21
|
+
default?(_: {}): any;
|
|
22
|
+
};
|
|
23
|
+
refs: {};
|
|
24
|
+
rootEl: any;
|
|
25
|
+
};
|
|
26
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
27
|
+
declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
|
|
28
|
+
title: {
|
|
29
|
+
type: StringConstructor;
|
|
30
|
+
default: string;
|
|
31
|
+
};
|
|
32
|
+
iconSize: {
|
|
33
|
+
type: NumberConstructor;
|
|
34
|
+
};
|
|
35
|
+
iconColor: {
|
|
36
|
+
type: StringConstructor;
|
|
37
|
+
};
|
|
38
|
+
iconBackground: {
|
|
39
|
+
type: StringConstructor;
|
|
40
|
+
};
|
|
41
|
+
iconStrokeWidth: {
|
|
42
|
+
type: NumberConstructor;
|
|
43
|
+
};
|
|
44
|
+
items: {
|
|
45
|
+
type: PropType<IVaxCardItem[]>;
|
|
46
|
+
default: () => never[];
|
|
47
|
+
};
|
|
48
|
+
titleClass: {
|
|
49
|
+
type: StringConstructor;
|
|
50
|
+
};
|
|
51
|
+
valueClass: {
|
|
52
|
+
type: StringConstructor;
|
|
53
|
+
};
|
|
54
|
+
labelClass: {
|
|
55
|
+
type: StringConstructor;
|
|
56
|
+
};
|
|
57
|
+
isLink: {
|
|
58
|
+
type: BooleanConstructor;
|
|
59
|
+
};
|
|
60
|
+
compact: {
|
|
61
|
+
type: BooleanConstructor;
|
|
62
|
+
default: boolean;
|
|
63
|
+
};
|
|
64
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
65
|
+
title: {
|
|
66
|
+
type: StringConstructor;
|
|
67
|
+
default: string;
|
|
68
|
+
};
|
|
69
|
+
iconSize: {
|
|
70
|
+
type: NumberConstructor;
|
|
71
|
+
};
|
|
72
|
+
iconColor: {
|
|
73
|
+
type: StringConstructor;
|
|
74
|
+
};
|
|
75
|
+
iconBackground: {
|
|
76
|
+
type: StringConstructor;
|
|
77
|
+
};
|
|
78
|
+
iconStrokeWidth: {
|
|
79
|
+
type: NumberConstructor;
|
|
80
|
+
};
|
|
81
|
+
items: {
|
|
82
|
+
type: PropType<IVaxCardItem[]>;
|
|
83
|
+
default: () => never[];
|
|
84
|
+
};
|
|
85
|
+
titleClass: {
|
|
86
|
+
type: StringConstructor;
|
|
87
|
+
};
|
|
88
|
+
valueClass: {
|
|
89
|
+
type: StringConstructor;
|
|
90
|
+
};
|
|
91
|
+
labelClass: {
|
|
92
|
+
type: StringConstructor;
|
|
93
|
+
};
|
|
94
|
+
isLink: {
|
|
95
|
+
type: BooleanConstructor;
|
|
96
|
+
};
|
|
97
|
+
compact: {
|
|
98
|
+
type: BooleanConstructor;
|
|
99
|
+
default: boolean;
|
|
100
|
+
};
|
|
101
|
+
}>> & Readonly<{}>, {
|
|
102
|
+
title: string;
|
|
103
|
+
isLink: boolean;
|
|
104
|
+
items: IVaxCardItem[];
|
|
105
|
+
compact: boolean;
|
|
106
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
107
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
108
|
+
export default _default;
|
|
109
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
110
|
+
new (): {
|
|
111
|
+
$slots: S;
|
|
112
|
+
};
|
|
113
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
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<globalThis.ExtractPropTypes<{
|
|
11
|
+
image: {
|
|
12
|
+
type: StringConstructor;
|
|
13
|
+
default: string;
|
|
14
|
+
};
|
|
15
|
+
imageSize: {
|
|
16
|
+
type: NumberConstructor;
|
|
17
|
+
};
|
|
18
|
+
description: {
|
|
19
|
+
type: StringConstructor;
|
|
20
|
+
};
|
|
21
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
22
|
+
image: {
|
|
23
|
+
type: StringConstructor;
|
|
24
|
+
default: string;
|
|
25
|
+
};
|
|
26
|
+
imageSize: {
|
|
27
|
+
type: NumberConstructor;
|
|
28
|
+
};
|
|
29
|
+
description: {
|
|
30
|
+
type: StringConstructor;
|
|
31
|
+
};
|
|
32
|
+
}>> & Readonly<{}>, {
|
|
33
|
+
image: string;
|
|
34
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
35
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
36
|
+
export default _default;
|
|
37
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
38
|
+
new (): {
|
|
39
|
+
$slots: S;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
|
|
2
|
+
icon: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
};
|
|
5
|
+
label: {
|
|
6
|
+
type: StringConstructor;
|
|
7
|
+
};
|
|
8
|
+
type: {
|
|
9
|
+
type: StringConstructor;
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
12
|
+
readonly: {
|
|
13
|
+
type: BooleanConstructor;
|
|
14
|
+
default: boolean;
|
|
15
|
+
};
|
|
16
|
+
columns: {
|
|
17
|
+
type: PropType<{
|
|
18
|
+
text: string;
|
|
19
|
+
value: string;
|
|
20
|
+
}[]>;
|
|
21
|
+
default: () => never[];
|
|
22
|
+
};
|
|
23
|
+
modelValue: {
|
|
24
|
+
type: globalThis.PropType<string | number>;
|
|
25
|
+
};
|
|
26
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
27
|
+
"update:modelValue": (...args: any[]) => void;
|
|
28
|
+
}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
29
|
+
icon: {
|
|
30
|
+
type: StringConstructor;
|
|
31
|
+
};
|
|
32
|
+
label: {
|
|
33
|
+
type: StringConstructor;
|
|
34
|
+
};
|
|
35
|
+
type: {
|
|
36
|
+
type: StringConstructor;
|
|
37
|
+
default: string;
|
|
38
|
+
};
|
|
39
|
+
readonly: {
|
|
40
|
+
type: BooleanConstructor;
|
|
41
|
+
default: boolean;
|
|
42
|
+
};
|
|
43
|
+
columns: {
|
|
44
|
+
type: PropType<{
|
|
45
|
+
text: string;
|
|
46
|
+
value: string;
|
|
47
|
+
}[]>;
|
|
48
|
+
default: () => never[];
|
|
49
|
+
};
|
|
50
|
+
modelValue: {
|
|
51
|
+
type: globalThis.PropType<string | number>;
|
|
52
|
+
};
|
|
53
|
+
}>> & Readonly<{
|
|
54
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
55
|
+
}>, {
|
|
56
|
+
type: string;
|
|
57
|
+
readonly: boolean;
|
|
58
|
+
columns: {
|
|
59
|
+
text: string;
|
|
60
|
+
value: string;
|
|
61
|
+
}[];
|
|
62
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
63
|
+
export default _default;
|
|
@@ -0,0 +1,88 @@
|
|
|
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<globalThis.ExtractPropTypes<{
|
|
11
|
+
vendor: {
|
|
12
|
+
type: StringConstructor;
|
|
13
|
+
default: string;
|
|
14
|
+
};
|
|
15
|
+
icon: {
|
|
16
|
+
type: StringConstructor;
|
|
17
|
+
default: string;
|
|
18
|
+
};
|
|
19
|
+
size: {
|
|
20
|
+
type: NumberConstructor;
|
|
21
|
+
default: number;
|
|
22
|
+
};
|
|
23
|
+
strokeWidth: {
|
|
24
|
+
type: NumberConstructor;
|
|
25
|
+
default: number;
|
|
26
|
+
};
|
|
27
|
+
color: {
|
|
28
|
+
type: StringConstructor;
|
|
29
|
+
};
|
|
30
|
+
background: {
|
|
31
|
+
type: StringConstructor;
|
|
32
|
+
};
|
|
33
|
+
padding: {
|
|
34
|
+
type: StringConstructor;
|
|
35
|
+
};
|
|
36
|
+
round: {
|
|
37
|
+
type: BooleanConstructor;
|
|
38
|
+
};
|
|
39
|
+
disabled: {
|
|
40
|
+
type: BooleanConstructor;
|
|
41
|
+
};
|
|
42
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
43
|
+
vendor: {
|
|
44
|
+
type: StringConstructor;
|
|
45
|
+
default: string;
|
|
46
|
+
};
|
|
47
|
+
icon: {
|
|
48
|
+
type: StringConstructor;
|
|
49
|
+
default: string;
|
|
50
|
+
};
|
|
51
|
+
size: {
|
|
52
|
+
type: NumberConstructor;
|
|
53
|
+
default: number;
|
|
54
|
+
};
|
|
55
|
+
strokeWidth: {
|
|
56
|
+
type: NumberConstructor;
|
|
57
|
+
default: number;
|
|
58
|
+
};
|
|
59
|
+
color: {
|
|
60
|
+
type: StringConstructor;
|
|
61
|
+
};
|
|
62
|
+
background: {
|
|
63
|
+
type: StringConstructor;
|
|
64
|
+
};
|
|
65
|
+
padding: {
|
|
66
|
+
type: StringConstructor;
|
|
67
|
+
};
|
|
68
|
+
round: {
|
|
69
|
+
type: BooleanConstructor;
|
|
70
|
+
};
|
|
71
|
+
disabled: {
|
|
72
|
+
type: BooleanConstructor;
|
|
73
|
+
};
|
|
74
|
+
}>> & Readonly<{}>, {
|
|
75
|
+
size: number;
|
|
76
|
+
round: boolean;
|
|
77
|
+
vendor: string;
|
|
78
|
+
icon: string;
|
|
79
|
+
strokeWidth: number;
|
|
80
|
+
disabled: boolean;
|
|
81
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
82
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
83
|
+
export default _default;
|
|
84
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
85
|
+
new (): {
|
|
86
|
+
$slots: S;
|
|
87
|
+
};
|
|
88
|
+
};
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { LoadingType } from 'vant';
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
4
|
+
slots: {
|
|
5
|
+
default?(_: {}): any;
|
|
6
|
+
};
|
|
7
|
+
refs: {};
|
|
8
|
+
rootEl: any;
|
|
9
|
+
};
|
|
10
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
11
|
+
declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
|
|
12
|
+
type: {
|
|
13
|
+
type: PropType<LoadingType>;
|
|
14
|
+
default: string;
|
|
15
|
+
};
|
|
16
|
+
size: {
|
|
17
|
+
type: NumberConstructor;
|
|
18
|
+
default: number;
|
|
19
|
+
};
|
|
20
|
+
color: {
|
|
21
|
+
type: StringConstructor;
|
|
22
|
+
default: string;
|
|
23
|
+
};
|
|
24
|
+
vertical: {
|
|
25
|
+
type: BooleanConstructor;
|
|
26
|
+
default: boolean;
|
|
27
|
+
};
|
|
28
|
+
text: {
|
|
29
|
+
type: StringConstructor;
|
|
30
|
+
default: string;
|
|
31
|
+
};
|
|
32
|
+
fullscreen: {
|
|
33
|
+
type: BooleanConstructor;
|
|
34
|
+
default: boolean;
|
|
35
|
+
};
|
|
36
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
37
|
+
type: {
|
|
38
|
+
type: PropType<LoadingType>;
|
|
39
|
+
default: string;
|
|
40
|
+
};
|
|
41
|
+
size: {
|
|
42
|
+
type: NumberConstructor;
|
|
43
|
+
default: number;
|
|
44
|
+
};
|
|
45
|
+
color: {
|
|
46
|
+
type: StringConstructor;
|
|
47
|
+
default: string;
|
|
48
|
+
};
|
|
49
|
+
vertical: {
|
|
50
|
+
type: BooleanConstructor;
|
|
51
|
+
default: boolean;
|
|
52
|
+
};
|
|
53
|
+
text: {
|
|
54
|
+
type: StringConstructor;
|
|
55
|
+
default: string;
|
|
56
|
+
};
|
|
57
|
+
fullscreen: {
|
|
58
|
+
type: BooleanConstructor;
|
|
59
|
+
default: boolean;
|
|
60
|
+
};
|
|
61
|
+
}>> & Readonly<{}>, {
|
|
62
|
+
size: number;
|
|
63
|
+
type: LoadingType;
|
|
64
|
+
vertical: boolean;
|
|
65
|
+
text: string;
|
|
66
|
+
color: string;
|
|
67
|
+
fullscreen: boolean;
|
|
68
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
69
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
70
|
+
export default _default;
|
|
71
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
72
|
+
new (): {
|
|
73
|
+
$slots: S;
|
|
74
|
+
};
|
|
75
|
+
};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
attrs: Partial<{}>;
|
|
3
|
+
slots: {
|
|
4
|
+
right?(_: {}): any;
|
|
5
|
+
};
|
|
6
|
+
refs: {};
|
|
7
|
+
rootEl: any;
|
|
8
|
+
};
|
|
9
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
|
+
declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
|
|
11
|
+
back: {
|
|
12
|
+
type: BooleanConstructor;
|
|
13
|
+
default: boolean;
|
|
14
|
+
};
|
|
15
|
+
leftArrow: {
|
|
16
|
+
type: BooleanConstructor;
|
|
17
|
+
default: boolean;
|
|
18
|
+
};
|
|
19
|
+
leftText: {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
default: string;
|
|
22
|
+
};
|
|
23
|
+
clickLeft: {
|
|
24
|
+
type: FunctionConstructor;
|
|
25
|
+
default: () => void;
|
|
26
|
+
};
|
|
27
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
28
|
+
back: {
|
|
29
|
+
type: BooleanConstructor;
|
|
30
|
+
default: boolean;
|
|
31
|
+
};
|
|
32
|
+
leftArrow: {
|
|
33
|
+
type: BooleanConstructor;
|
|
34
|
+
default: boolean;
|
|
35
|
+
};
|
|
36
|
+
leftText: {
|
|
37
|
+
type: StringConstructor;
|
|
38
|
+
default: string;
|
|
39
|
+
};
|
|
40
|
+
clickLeft: {
|
|
41
|
+
type: FunctionConstructor;
|
|
42
|
+
default: () => void;
|
|
43
|
+
};
|
|
44
|
+
}>> & Readonly<{}>, {
|
|
45
|
+
back: boolean;
|
|
46
|
+
leftArrow: boolean;
|
|
47
|
+
leftText: string;
|
|
48
|
+
clickLeft: Function;
|
|
49
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
50
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
51
|
+
export default _default;
|
|
52
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
53
|
+
new (): {
|
|
54
|
+
$slots: S;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
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').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
11
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
12
|
+
export default _default;
|
|
13
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
14
|
+
new (): {
|
|
15
|
+
$slots: S;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
|
|
3
|
+
multiple: {
|
|
4
|
+
type: BooleanConstructor;
|
|
5
|
+
default: boolean;
|
|
6
|
+
};
|
|
7
|
+
options: {
|
|
8
|
+
type: PropType<string[]>;
|
|
9
|
+
default: () => never[];
|
|
10
|
+
};
|
|
11
|
+
modelValue: {
|
|
12
|
+
type: PropType<string | number | string[] | number[]>;
|
|
13
|
+
};
|
|
14
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
15
|
+
"update:modelValue": (value: string | number | string[] | number[] | undefined) => any;
|
|
16
|
+
}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
17
|
+
multiple: {
|
|
18
|
+
type: BooleanConstructor;
|
|
19
|
+
default: boolean;
|
|
20
|
+
};
|
|
21
|
+
options: {
|
|
22
|
+
type: PropType<string[]>;
|
|
23
|
+
default: () => never[];
|
|
24
|
+
};
|
|
25
|
+
modelValue: {
|
|
26
|
+
type: PropType<string | number | string[] | number[]>;
|
|
27
|
+
};
|
|
28
|
+
}>> & Readonly<{
|
|
29
|
+
"onUpdate:modelValue"?: ((value: string | number | string[] | number[] | undefined) => any) | undefined;
|
|
30
|
+
}>, {
|
|
31
|
+
multiple: boolean;
|
|
32
|
+
options: string[];
|
|
33
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
34
|
+
export default _default;
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
|
|
2
|
+
menu: {
|
|
3
|
+
type: {
|
|
4
|
+
(arrayLength: number): {
|
|
5
|
+
title?: string;
|
|
6
|
+
icon: string;
|
|
7
|
+
to: string;
|
|
8
|
+
dot?: boolean;
|
|
9
|
+
}[];
|
|
10
|
+
(...items: {
|
|
11
|
+
title?: string;
|
|
12
|
+
icon: string;
|
|
13
|
+
to: string;
|
|
14
|
+
dot?: boolean;
|
|
15
|
+
}[]): {
|
|
16
|
+
title?: string;
|
|
17
|
+
icon: string;
|
|
18
|
+
to: string;
|
|
19
|
+
dot?: boolean;
|
|
20
|
+
}[];
|
|
21
|
+
new (arrayLength: number): {
|
|
22
|
+
title?: string;
|
|
23
|
+
icon: string;
|
|
24
|
+
to: string;
|
|
25
|
+
dot?: boolean;
|
|
26
|
+
}[];
|
|
27
|
+
new (...items: {
|
|
28
|
+
title?: string;
|
|
29
|
+
icon: string;
|
|
30
|
+
to: string;
|
|
31
|
+
dot?: boolean;
|
|
32
|
+
}[]): {
|
|
33
|
+
title?: string;
|
|
34
|
+
icon: string;
|
|
35
|
+
to: string;
|
|
36
|
+
dot?: boolean;
|
|
37
|
+
}[];
|
|
38
|
+
isArray(arg: any): arg is any[];
|
|
39
|
+
readonly prototype: any[];
|
|
40
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
41
|
+
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
42
|
+
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
43
|
+
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
44
|
+
of<T>(...items: T[]): T[];
|
|
45
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
46
|
+
};
|
|
47
|
+
required: true;
|
|
48
|
+
default: () => never[];
|
|
49
|
+
};
|
|
50
|
+
flash: {
|
|
51
|
+
type: BooleanConstructor;
|
|
52
|
+
default: boolean;
|
|
53
|
+
};
|
|
54
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
55
|
+
menu: {
|
|
56
|
+
type: {
|
|
57
|
+
(arrayLength: number): {
|
|
58
|
+
title?: string;
|
|
59
|
+
icon: string;
|
|
60
|
+
to: string;
|
|
61
|
+
dot?: boolean;
|
|
62
|
+
}[];
|
|
63
|
+
(...items: {
|
|
64
|
+
title?: string;
|
|
65
|
+
icon: string;
|
|
66
|
+
to: string;
|
|
67
|
+
dot?: boolean;
|
|
68
|
+
}[]): {
|
|
69
|
+
title?: string;
|
|
70
|
+
icon: string;
|
|
71
|
+
to: string;
|
|
72
|
+
dot?: boolean;
|
|
73
|
+
}[];
|
|
74
|
+
new (arrayLength: number): {
|
|
75
|
+
title?: string;
|
|
76
|
+
icon: string;
|
|
77
|
+
to: string;
|
|
78
|
+
dot?: boolean;
|
|
79
|
+
}[];
|
|
80
|
+
new (...items: {
|
|
81
|
+
title?: string;
|
|
82
|
+
icon: string;
|
|
83
|
+
to: string;
|
|
84
|
+
dot?: boolean;
|
|
85
|
+
}[]): {
|
|
86
|
+
title?: string;
|
|
87
|
+
icon: string;
|
|
88
|
+
to: string;
|
|
89
|
+
dot?: boolean;
|
|
90
|
+
}[];
|
|
91
|
+
isArray(arg: any): arg is any[];
|
|
92
|
+
readonly prototype: any[];
|
|
93
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
94
|
+
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
95
|
+
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
96
|
+
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
97
|
+
of<T>(...items: T[]): T[];
|
|
98
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
99
|
+
};
|
|
100
|
+
required: true;
|
|
101
|
+
default: () => never[];
|
|
102
|
+
};
|
|
103
|
+
flash: {
|
|
104
|
+
type: BooleanConstructor;
|
|
105
|
+
default: boolean;
|
|
106
|
+
};
|
|
107
|
+
}>> & Readonly<{}>, {
|
|
108
|
+
menu: {
|
|
109
|
+
title?: string;
|
|
110
|
+
icon: string;
|
|
111
|
+
to: string;
|
|
112
|
+
dot?: boolean;
|
|
113
|
+
}[];
|
|
114
|
+
flash: boolean;
|
|
115
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
116
|
+
export default _default;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export interface IVaxTab {
|
|
2
|
+
name: string;
|
|
3
|
+
label: string;
|
|
4
|
+
badge?: number | string;
|
|
5
|
+
}
|
|
6
|
+
declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
|
|
7
|
+
tabs: {
|
|
8
|
+
type: () => IVaxTab[];
|
|
9
|
+
required: true;
|
|
10
|
+
};
|
|
11
|
+
sticky: {
|
|
12
|
+
type: BooleanConstructor;
|
|
13
|
+
default: boolean;
|
|
14
|
+
};
|
|
15
|
+
active: {
|
|
16
|
+
type: globalThis.PropType<string>;
|
|
17
|
+
required: true;
|
|
18
|
+
};
|
|
19
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
20
|
+
"update:active": (value: string) => any;
|
|
21
|
+
}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
22
|
+
tabs: {
|
|
23
|
+
type: () => IVaxTab[];
|
|
24
|
+
required: true;
|
|
25
|
+
};
|
|
26
|
+
sticky: {
|
|
27
|
+
type: BooleanConstructor;
|
|
28
|
+
default: boolean;
|
|
29
|
+
};
|
|
30
|
+
active: {
|
|
31
|
+
type: globalThis.PropType<string>;
|
|
32
|
+
required: true;
|
|
33
|
+
};
|
|
34
|
+
}>> & Readonly<{
|
|
35
|
+
"onUpdate:active"?: ((value: string) => any) | undefined;
|
|
36
|
+
}>, {
|
|
37
|
+
sticky: boolean;
|
|
38
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
39
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ToastOptions } from 'vant';
|
|
2
|
+
export declare const useMessage: () => {
|
|
3
|
+
message: (message: string, options?: {}) => import('vant').ToastWrapperInstance;
|
|
4
|
+
success: (message: string, options?: {}) => import('vant').ToastWrapperInstance;
|
|
5
|
+
error: (message: string, options?: {}) => import('vant').ToastWrapperInstance;
|
|
6
|
+
warning: (message: string, options?: {}) => import('vant').ToastWrapperInstance;
|
|
7
|
+
dialog: (message: string, title?: string, options?: {}) => Promise<import('vant/lib/dialog/types').DialogAction | undefined>;
|
|
8
|
+
confirm: (message: string, title?: string, options?: {}) => Promise<import('vant/lib/dialog/types').DialogAction | undefined>;
|
|
9
|
+
loading: (options: string | ToastOptions) => import('vant').ToastWrapperInstance;
|
|
10
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Plugin } from 'vue';
|
|
2
|
+
import { provider, setLocale, getLocale, useLocale } from './locale';
|
|
3
|
+
import { default as VaxAssetPreview } from './components/VaxAssetPreview.vue';
|
|
4
|
+
import { default as VaxAvatar } from './components/VaxAvatar.vue';
|
|
5
|
+
import { default as VaxButton } from './components/VaxButton.vue';
|
|
6
|
+
import { default as VaxCaptcha } from './components/VaxCaptcha.vue';
|
|
7
|
+
import { default as VaxCell } from './components/VaxCell.vue';
|
|
8
|
+
import { default as VaxCellGroup } from './components/VaxCellGroup.vue';
|
|
9
|
+
import { default as VaxEmpty } from './components/VaxEmpty.vue';
|
|
10
|
+
import { default as VaxField } from './components/VaxField.vue';
|
|
11
|
+
import { default as VaxIcon } from './components/VaxIcon.vue';
|
|
12
|
+
import { default as VaxLoading } from './components/VaxLoading.vue';
|
|
13
|
+
import { default as VaxNavBar } from './components/VaxNavBar.vue';
|
|
14
|
+
import { default as VaxPage } from './components/VaxPage.vue';
|
|
15
|
+
import { default as VaxSelect } from './components/VaxSelect.vue';
|
|
16
|
+
import { default as VaxTabbar } from './components/VaxTabbar.vue';
|
|
17
|
+
import { default as VaxTabs } from './components/VaxTabs.vue';
|
|
18
|
+
declare const VantGo: Plugin;
|
|
19
|
+
export default VantGo;
|
|
20
|
+
export { VaxAssetPreview, VaxAvatar, VaxButton, VaxCaptcha, VaxCell, VaxCellGroup, VaxEmpty, VaxField, VaxIcon, VaxLoading, VaxNavBar, VaxPage, VaxSelect, VaxTabbar, VaxTabs, provider, setLocale, getLocale, useLocale, };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
cancel: string;
|
|
3
|
+
confirm: string;
|
|
4
|
+
auth: {
|
|
5
|
+
phone: string;
|
|
6
|
+
otp: string;
|
|
7
|
+
enterPhone: string;
|
|
8
|
+
enterOTP: string;
|
|
9
|
+
getOTP: string;
|
|
10
|
+
viaWhatsApp: string;
|
|
11
|
+
viaPhone: string;
|
|
12
|
+
};
|
|
13
|
+
message: {
|
|
14
|
+
otpSent: string;
|
|
15
|
+
phoneInvalid: string;
|
|
16
|
+
};
|
|
17
|
+
empty: {
|
|
18
|
+
noData: string;
|
|
19
|
+
};
|
|
20
|
+
dialog: {
|
|
21
|
+
tip: string;
|
|
22
|
+
confirm: string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
export default _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
type Messages = Record<string, any>;
|
|
2
|
+
export declare const provider: (opts?: {
|
|
3
|
+
locale?: string;
|
|
4
|
+
messages?: Messages;
|
|
5
|
+
}) => {
|
|
6
|
+
locale: globalThis.Ref<string, string>;
|
|
7
|
+
messages: Messages;
|
|
8
|
+
};
|
|
9
|
+
export declare const useLocale: () => {
|
|
10
|
+
locale: globalThis.Ref<string, string>;
|
|
11
|
+
t: (path: string, params?: Record<string, string | number>) => string;
|
|
12
|
+
};
|
|
13
|
+
export declare const setLocale: (lang: string) => string;
|
|
14
|
+
export declare const getLocale: () => string;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
cancel: string;
|
|
3
|
+
confirm: string;
|
|
4
|
+
auth: {
|
|
5
|
+
phone: string;
|
|
6
|
+
otp: string;
|
|
7
|
+
enterPhone: string;
|
|
8
|
+
enterOTP: string;
|
|
9
|
+
getOTP: string;
|
|
10
|
+
viaWhatsApp: string;
|
|
11
|
+
viaPhone: string;
|
|
12
|
+
};
|
|
13
|
+
message: {
|
|
14
|
+
otpSent: string;
|
|
15
|
+
phoneInvalid: string;
|
|
16
|
+
};
|
|
17
|
+
empty: {
|
|
18
|
+
noData: string;
|
|
19
|
+
};
|
|
20
|
+
dialog: {
|
|
21
|
+
tip: string;
|
|
22
|
+
confirm: string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
export default _default;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export interface VantGoResolverOptions {
|
|
2
|
+
/**
|
|
3
|
+
* 是否自动导入 vant-go 的聚合样式文件。
|
|
4
|
+
* 默认 true:每次解析到 Vax* 组件时附带 `@gindow/vant-go/style.css` 副作用导入
|
|
5
|
+
* (unplugin-vue-components 会去重,不会重复打包)。
|
|
6
|
+
* 设为 false 时需在应用入口手动 `import '@gindow/vant-go/style.css'`。
|
|
7
|
+
*/
|
|
8
|
+
importStyle?: boolean;
|
|
9
|
+
/** 自定义前缀,默认 'Vax' */
|
|
10
|
+
prefix?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare function VantGoResolver(options?: VantGoResolverOptions): {
|
|
13
|
+
type: "component";
|
|
14
|
+
resolve(name: string): {
|
|
15
|
+
name: string;
|
|
16
|
+
from: string;
|
|
17
|
+
sideEffects: string | undefined;
|
|
18
|
+
} | undefined;
|
|
19
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface IModel {
|
|
2
|
+
id?: string | any;
|
|
3
|
+
created_at?: string;
|
|
4
|
+
updated_at?: string;
|
|
5
|
+
deleted_at?: string;
|
|
6
|
+
[property: string]: any;
|
|
7
|
+
}
|
|
8
|
+
export interface IAsset extends IModel {
|
|
9
|
+
id: string;
|
|
10
|
+
type: string;
|
|
11
|
+
title: string;
|
|
12
|
+
url: string;
|
|
13
|
+
shrink: string;
|
|
14
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare class Validate {
|
|
2
|
+
static country: string;
|
|
3
|
+
static set: (country: string) => string;
|
|
4
|
+
static get phone_pattern(): RegExp;
|
|
5
|
+
static email_pattern: RegExp;
|
|
6
|
+
static idcard_pattern: RegExp;
|
|
7
|
+
static cname_pattern: RegExp;
|
|
8
|
+
static password_pattern: RegExp;
|
|
9
|
+
static phone: (str: string) => boolean;
|
|
10
|
+
static email: (str: string) => boolean;
|
|
11
|
+
static idcard: (str: string) => boolean;
|
|
12
|
+
static cname: (str: string) => boolean;
|
|
13
|
+
}
|
package/package.json
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gindow/vant-go",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "基于 Vant 的移动端扩展组件库",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"main": "./dist/vant-go.cjs",
|
|
8
|
-
"types": "./dist/
|
|
8
|
+
"types": "./dist/src/index.d.ts",
|
|
9
9
|
"exports": {
|
|
10
10
|
".": {
|
|
11
|
-
"types": "./dist/
|
|
11
|
+
"types": "./dist/src/index.d.ts",
|
|
12
12
|
"import": "./dist/vant-go.mjs",
|
|
13
13
|
"require": "./dist/vant-go.cjs"
|
|
14
14
|
},
|
|
15
15
|
"./resolver": {
|
|
16
|
-
"types": "./dist/resolver.d.ts",
|
|
16
|
+
"types": "./dist/src/resolver.d.ts",
|
|
17
17
|
"import": "./dist/resolver.mjs",
|
|
18
18
|
"require": "./dist/resolver.cjs"
|
|
19
19
|
},
|
package/dist/resolver.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { }
|
package/dist/vant-go.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { }
|