@touchvue/ui 1.0.0-beta.36 → 1.0.0-beta.38
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/es/components/breadcrumb/src/breadcrumb-item.vue.d.ts +4 -2
- package/es/components/breadcrumb/src/breadcrumb.vue.d.ts +1 -3
- package/es/components/export/src/export.vue.d.ts +2 -2
- package/es/components/fix/index.d.ts +36 -31
- package/es/components/fix/src/Fix.vue.d.ts +23 -18
- package/es/components/float/index.d.ts +3 -3
- package/es/components/float/src/Float.vue.d.ts +2 -2
- package/es/components/form/src/form.vue.d.ts +36 -0
- package/es/components/import/index.d.ts +1 -1
- package/es/components/import/src/import.vue.d.ts +2 -2
- package/es/components/table/src/table-body.vue.d.ts +1 -1
- package/es/components/upload/src/upload.vue.d.ts +2 -2
- package/es/index.mjs +1 -1
- package/es/packages/components/breadcrumb/src/breadcrumb-item.vue.mjs +4 -3
- package/es/packages/components/breadcrumb/src/breadcrumb-item.vue.mjs.map +1 -1
- package/es/packages/components/breadcrumb/src/breadcrumb-item.vue2.mjs +3 -6
- package/es/packages/components/breadcrumb/src/breadcrumb-item.vue2.mjs.map +1 -1
- package/es/packages/components/breadcrumb/src/breadcrumb.vue.mjs.map +1 -1
- package/es/packages/components/breadcrumb/src/breadcrumb.vue2.mjs +5 -7
- package/es/packages/components/breadcrumb/src/breadcrumb.vue2.mjs.map +1 -1
- package/es/packages/components/datepicker/src/DatePicker.vue2.mjs +5 -9
- package/es/packages/components/datepicker/src/DatePicker.vue2.mjs.map +1 -1
- package/es/packages/components/daterange/src/date-range.vue2.mjs +13 -1
- package/es/packages/components/daterange/src/date-range.vue2.mjs.map +1 -1
- package/es/packages/components/export/src/export.vue2.mjs +100 -91
- package/es/packages/components/export/src/export.vue2.mjs.map +1 -1
- package/es/packages/components/fix/src/Fix.vue2.mjs +191 -233
- package/es/packages/components/fix/src/Fix.vue2.mjs.map +1 -1
- package/es/packages/components/float/src/Float.vue2.mjs +168 -174
- package/es/packages/components/float/src/Float.vue2.mjs.map +1 -1
- package/es/packages/components/float/src/float.mjs +1 -1
- package/es/packages/components/float/src/float.mjs.map +1 -1
- package/es/packages/components/form/src/form-item.vue2.mjs +4 -1
- package/es/packages/components/form/src/form-item.vue2.mjs.map +1 -1
- package/es/packages/components/form/src/form.vue2.mjs +88 -6
- package/es/packages/components/form/src/form.vue2.mjs.map +1 -1
- package/es/packages/components/import/src/import.vue2.mjs +280 -81
- package/es/packages/components/import/src/import.vue2.mjs.map +1 -1
- package/es/packages/components/input/src/input.vue2.mjs +187 -169
- package/es/packages/components/input/src/input.vue2.mjs.map +1 -1
- package/es/packages/components/page/src/page.vue2.mjs +1 -0
- package/es/packages/components/page/src/page.vue2.mjs.map +1 -1
- package/es/packages/components/select/src/select.vue2.mjs +11 -24
- package/es/packages/components/select/src/select.vue2.mjs.map +1 -1
- package/es/packages/components/table/src/table-body.vue2.mjs +8 -8
- package/es/packages/components/table/src/table-body.vue2.mjs.map +1 -1
- package/es/packages/components/upload/src/upload.vue2.mjs +2 -2
- package/es/packages/components/upload/src/upload.vue2.mjs.map +1 -1
- package/es/packages/utils/date.mjs +30 -3
- package/es/packages/utils/date.mjs.map +1 -1
- package/es/packages/utils/fileAjax.mjs +81 -8
- package/es/packages/utils/fileAjax.mjs.map +1 -1
- package/es/packages/utils/index.mjs +1 -1
- package/es/utils/date.d.ts +48 -0
- package/es/utils/fileAjax.d.ts +10 -3
- package/lib/components/breadcrumb/src/breadcrumb-item.vue.d.ts +4 -2
- package/lib/components/breadcrumb/src/breadcrumb.vue.d.ts +1 -3
- package/lib/components/export/src/export.vue.d.ts +2 -2
- package/lib/components/fix/index.d.ts +36 -31
- package/lib/components/fix/src/Fix.vue.d.ts +23 -18
- package/lib/components/float/index.d.ts +3 -3
- package/lib/components/float/src/Float.vue.d.ts +2 -2
- package/lib/components/form/src/form.vue.d.ts +36 -0
- package/lib/components/import/index.d.ts +1 -1
- package/lib/components/import/src/import.vue.d.ts +2 -2
- package/lib/components/table/src/table-body.vue.d.ts +1 -1
- package/lib/components/upload/src/upload.vue.d.ts +2 -2
- package/lib/index.js +1 -0
- package/lib/index.js.map +1 -1
- package/lib/packages/components/breadcrumb/src/breadcrumb-item.vue.js +4 -3
- package/lib/packages/components/breadcrumb/src/breadcrumb-item.vue.js.map +1 -1
- package/lib/packages/components/breadcrumb/src/breadcrumb-item.vue2.js +2 -5
- package/lib/packages/components/breadcrumb/src/breadcrumb-item.vue2.js.map +1 -1
- package/lib/packages/components/breadcrumb/src/breadcrumb.vue.js.map +1 -1
- package/lib/packages/components/breadcrumb/src/breadcrumb.vue2.js +4 -6
- package/lib/packages/components/breadcrumb/src/breadcrumb.vue2.js.map +1 -1
- package/lib/packages/components/datepicker/src/DatePicker.vue2.js +4 -8
- package/lib/packages/components/datepicker/src/DatePicker.vue2.js.map +1 -1
- package/lib/packages/components/daterange/src/date-range.vue2.js +13 -1
- package/lib/packages/components/daterange/src/date-range.vue2.js.map +1 -1
- package/lib/packages/components/export/src/export.vue2.js +101 -92
- package/lib/packages/components/export/src/export.vue2.js.map +1 -1
- package/lib/packages/components/fix/src/Fix.vue2.js +190 -232
- package/lib/packages/components/fix/src/Fix.vue2.js.map +1 -1
- package/lib/packages/components/float/src/Float.vue2.js +167 -173
- package/lib/packages/components/float/src/Float.vue2.js.map +1 -1
- package/lib/packages/components/float/src/float.js +1 -1
- package/lib/packages/components/float/src/float.js.map +1 -1
- package/lib/packages/components/form/src/form-item.vue2.js +4 -1
- package/lib/packages/components/form/src/form-item.vue2.js.map +1 -1
- package/lib/packages/components/form/src/form.vue2.js +87 -5
- package/lib/packages/components/form/src/form.vue2.js.map +1 -1
- package/lib/packages/components/import/src/import.vue2.js +279 -80
- package/lib/packages/components/import/src/import.vue2.js.map +1 -1
- package/lib/packages/components/input/src/input.vue2.js +186 -168
- package/lib/packages/components/input/src/input.vue2.js.map +1 -1
- package/lib/packages/components/page/src/page.vue2.js +1 -0
- package/lib/packages/components/page/src/page.vue2.js.map +1 -1
- package/lib/packages/components/select/src/select.vue2.js +11 -24
- package/lib/packages/components/select/src/select.vue2.js.map +1 -1
- package/lib/packages/components/table/src/table-body.vue2.js +8 -8
- package/lib/packages/components/table/src/table-body.vue2.js.map +1 -1
- package/lib/packages/components/upload/src/upload.vue2.js +2 -2
- package/lib/packages/components/upload/src/upload.vue2.js.map +1 -1
- package/lib/packages/utils/date.js +30 -2
- package/lib/packages/utils/date.js.map +1 -1
- package/lib/packages/utils/fileAjax.js +81 -8
- package/lib/packages/utils/fileAjax.js.map +1 -1
- package/lib/packages/utils/index.js +1 -0
- package/lib/packages/utils/index.js.map +1 -1
- package/lib/utils/date.d.ts +48 -0
- package/lib/utils/fileAjax.d.ts +10 -3
- package/package.json +1 -1
- package/theme/components/index.css +243 -76
- package/theme/index.css +243 -76
- package/theme/skin/default.css +243 -76
|
@@ -8,8 +8,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
8
8
|
default: boolean;
|
|
9
9
|
};
|
|
10
10
|
}>, {
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
breadcrumbData: {
|
|
12
|
+
separator: string;
|
|
13
|
+
separatorIcon: string;
|
|
14
|
+
};
|
|
13
15
|
handleClick: () => void;
|
|
14
16
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
15
17
|
to: {
|
|
@@ -11,9 +11,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
11
11
|
type: StringConstructor;
|
|
12
12
|
default: string;
|
|
13
13
|
};
|
|
14
|
-
}>, {
|
|
15
|
-
breadcrumb: import("vue").Ref<any, any>;
|
|
16
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
14
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
17
15
|
separator: {
|
|
18
16
|
type: StringConstructor;
|
|
19
17
|
default: string;
|
|
@@ -8,7 +8,7 @@ export interface ExportProps {
|
|
|
8
8
|
fileName?: string;
|
|
9
9
|
action?: string;
|
|
10
10
|
headers?: object | null;
|
|
11
|
-
|
|
11
|
+
withCredentials?: boolean;
|
|
12
12
|
data?: object | null;
|
|
13
13
|
beforeStart?: () => boolean | Promise<boolean>;
|
|
14
14
|
httpRequest?: (option: AjaxOptions) => XMLHttpRequest;
|
|
@@ -38,7 +38,7 @@ declare const _default: import("vue").DefineComponent<ExportProps, {}, {}, {}, {
|
|
|
38
38
|
beforeClose: () => boolean | Promise<boolean>;
|
|
39
39
|
closed: () => any;
|
|
40
40
|
action: string;
|
|
41
|
-
|
|
41
|
+
withCredentials: boolean;
|
|
42
42
|
headers: object | null;
|
|
43
43
|
beforeStart: () => boolean | Promise<boolean>;
|
|
44
44
|
buttonText: string;
|
|
@@ -1,22 +1,26 @@
|
|
|
1
1
|
export declare const ToFix: import("@touchvue/ui/es/utils").SFCWithInstall<{
|
|
2
2
|
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
|
|
3
|
-
|
|
3
|
+
mode: {
|
|
4
|
+
type: StringConstructor;
|
|
5
|
+
default: string;
|
|
6
|
+
};
|
|
7
|
+
top: {
|
|
4
8
|
type: (NumberConstructor | StringConstructor)[];
|
|
5
9
|
default: string;
|
|
6
10
|
};
|
|
7
|
-
|
|
11
|
+
number: {
|
|
8
12
|
type: (NumberConstructor | StringConstructor)[];
|
|
9
|
-
default:
|
|
13
|
+
default: string;
|
|
10
14
|
};
|
|
11
|
-
|
|
15
|
+
left: {
|
|
12
16
|
type: (NumberConstructor | StringConstructor)[];
|
|
13
17
|
default: string;
|
|
14
18
|
};
|
|
15
|
-
|
|
19
|
+
right: {
|
|
16
20
|
type: (NumberConstructor | StringConstructor)[];
|
|
17
21
|
default: number;
|
|
18
22
|
};
|
|
19
|
-
|
|
23
|
+
bottom: {
|
|
20
24
|
type: (NumberConstructor | StringConstructor)[];
|
|
21
25
|
default: number;
|
|
22
26
|
};
|
|
@@ -25,12 +29,9 @@ export declare const ToFix: import("@touchvue/ui/es/utils").SFCWithInstall<{
|
|
|
25
29
|
default: boolean;
|
|
26
30
|
};
|
|
27
31
|
draggable: BooleanConstructor;
|
|
28
|
-
}>> & Readonly<{
|
|
29
|
-
onClick?: (...args: any[]) => any;
|
|
30
|
-
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
31
|
-
click: (...args: any[]) => void;
|
|
32
|
-
}, import("vue").PublicProps, {
|
|
32
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
|
|
33
33
|
number: string | number;
|
|
34
|
+
mode: string;
|
|
34
35
|
left: string | number;
|
|
35
36
|
right: string | number;
|
|
36
37
|
bottom: string | number;
|
|
@@ -45,23 +46,27 @@ export declare const ToFix: import("@touchvue/ui/es/utils").SFCWithInstall<{
|
|
|
45
46
|
M: {};
|
|
46
47
|
Defaults: {};
|
|
47
48
|
}, Readonly<import("vue").ExtractPropTypes<{
|
|
48
|
-
|
|
49
|
+
mode: {
|
|
50
|
+
type: StringConstructor;
|
|
51
|
+
default: string;
|
|
52
|
+
};
|
|
53
|
+
top: {
|
|
49
54
|
type: (NumberConstructor | StringConstructor)[];
|
|
50
55
|
default: string;
|
|
51
56
|
};
|
|
52
|
-
|
|
57
|
+
number: {
|
|
53
58
|
type: (NumberConstructor | StringConstructor)[];
|
|
54
|
-
default:
|
|
59
|
+
default: string;
|
|
55
60
|
};
|
|
56
|
-
|
|
61
|
+
left: {
|
|
57
62
|
type: (NumberConstructor | StringConstructor)[];
|
|
58
63
|
default: string;
|
|
59
64
|
};
|
|
60
|
-
|
|
65
|
+
right: {
|
|
61
66
|
type: (NumberConstructor | StringConstructor)[];
|
|
62
67
|
default: number;
|
|
63
68
|
};
|
|
64
|
-
|
|
69
|
+
bottom: {
|
|
65
70
|
type: (NumberConstructor | StringConstructor)[];
|
|
66
71
|
default: number;
|
|
67
72
|
};
|
|
@@ -70,10 +75,9 @@ export declare const ToFix: import("@touchvue/ui/es/utils").SFCWithInstall<{
|
|
|
70
75
|
default: boolean;
|
|
71
76
|
};
|
|
72
77
|
draggable: BooleanConstructor;
|
|
73
|
-
}>> & Readonly<{
|
|
74
|
-
onClick?: (...args: any[]) => any;
|
|
75
|
-
}>, {}, {}, {}, {}, {
|
|
78
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, {
|
|
76
79
|
number: string | number;
|
|
80
|
+
mode: string;
|
|
77
81
|
left: string | number;
|
|
78
82
|
right: string | number;
|
|
79
83
|
bottom: string | number;
|
|
@@ -85,23 +89,27 @@ export declare const ToFix: import("@touchvue/ui/es/utils").SFCWithInstall<{
|
|
|
85
89
|
__isTeleport?: never;
|
|
86
90
|
__isSuspense?: never;
|
|
87
91
|
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
88
|
-
|
|
92
|
+
mode: {
|
|
93
|
+
type: StringConstructor;
|
|
94
|
+
default: string;
|
|
95
|
+
};
|
|
96
|
+
top: {
|
|
89
97
|
type: (NumberConstructor | StringConstructor)[];
|
|
90
98
|
default: string;
|
|
91
99
|
};
|
|
92
|
-
|
|
100
|
+
number: {
|
|
93
101
|
type: (NumberConstructor | StringConstructor)[];
|
|
94
|
-
default:
|
|
102
|
+
default: string;
|
|
95
103
|
};
|
|
96
|
-
|
|
104
|
+
left: {
|
|
97
105
|
type: (NumberConstructor | StringConstructor)[];
|
|
98
106
|
default: string;
|
|
99
107
|
};
|
|
100
|
-
|
|
108
|
+
right: {
|
|
101
109
|
type: (NumberConstructor | StringConstructor)[];
|
|
102
110
|
default: number;
|
|
103
111
|
};
|
|
104
|
-
|
|
112
|
+
bottom: {
|
|
105
113
|
type: (NumberConstructor | StringConstructor)[];
|
|
106
114
|
default: number;
|
|
107
115
|
};
|
|
@@ -110,12 +118,9 @@ export declare const ToFix: import("@touchvue/ui/es/utils").SFCWithInstall<{
|
|
|
110
118
|
default: boolean;
|
|
111
119
|
};
|
|
112
120
|
draggable: BooleanConstructor;
|
|
113
|
-
}>> & Readonly<{
|
|
114
|
-
onClick?: (...args: any[]) => any;
|
|
115
|
-
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
116
|
-
click: (...args: any[]) => void;
|
|
117
|
-
}, string, {
|
|
121
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
118
122
|
number: string | number;
|
|
123
|
+
mode: string;
|
|
119
124
|
left: string | number;
|
|
120
125
|
right: string | number;
|
|
121
126
|
bottom: string | number;
|
|
@@ -2,23 +2,27 @@ declare function __VLS_template(): {
|
|
|
2
2
|
default?(_: {}): any;
|
|
3
3
|
};
|
|
4
4
|
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
5
|
-
|
|
5
|
+
mode: {
|
|
6
|
+
type: StringConstructor;
|
|
7
|
+
default: string;
|
|
8
|
+
};
|
|
9
|
+
top: {
|
|
6
10
|
type: (NumberConstructor | StringConstructor)[];
|
|
7
11
|
default: string;
|
|
8
12
|
};
|
|
9
|
-
|
|
13
|
+
number: {
|
|
10
14
|
type: (NumberConstructor | StringConstructor)[];
|
|
11
|
-
default:
|
|
15
|
+
default: string;
|
|
12
16
|
};
|
|
13
|
-
|
|
17
|
+
left: {
|
|
14
18
|
type: (NumberConstructor | StringConstructor)[];
|
|
15
19
|
default: string;
|
|
16
20
|
};
|
|
17
|
-
|
|
21
|
+
right: {
|
|
18
22
|
type: (NumberConstructor | StringConstructor)[];
|
|
19
23
|
default: number;
|
|
20
24
|
};
|
|
21
|
-
|
|
25
|
+
bottom: {
|
|
22
26
|
type: (NumberConstructor | StringConstructor)[];
|
|
23
27
|
default: number;
|
|
24
28
|
};
|
|
@@ -27,26 +31,28 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
27
31
|
default: boolean;
|
|
28
32
|
};
|
|
29
33
|
draggable: BooleanConstructor;
|
|
30
|
-
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
35
|
+
mode: {
|
|
36
|
+
type: StringConstructor;
|
|
37
|
+
default: string;
|
|
38
|
+
};
|
|
39
|
+
top: {
|
|
34
40
|
type: (NumberConstructor | StringConstructor)[];
|
|
35
41
|
default: string;
|
|
36
42
|
};
|
|
37
|
-
|
|
43
|
+
number: {
|
|
38
44
|
type: (NumberConstructor | StringConstructor)[];
|
|
39
|
-
default:
|
|
45
|
+
default: string;
|
|
40
46
|
};
|
|
41
|
-
|
|
47
|
+
left: {
|
|
42
48
|
type: (NumberConstructor | StringConstructor)[];
|
|
43
49
|
default: string;
|
|
44
50
|
};
|
|
45
|
-
|
|
51
|
+
right: {
|
|
46
52
|
type: (NumberConstructor | StringConstructor)[];
|
|
47
53
|
default: number;
|
|
48
54
|
};
|
|
49
|
-
|
|
55
|
+
bottom: {
|
|
50
56
|
type: (NumberConstructor | StringConstructor)[];
|
|
51
57
|
default: number;
|
|
52
58
|
};
|
|
@@ -55,10 +61,9 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
55
61
|
default: boolean;
|
|
56
62
|
};
|
|
57
63
|
draggable: BooleanConstructor;
|
|
58
|
-
}>> & Readonly<{
|
|
59
|
-
onClick?: (...args: any[]) => any;
|
|
60
|
-
}>, {
|
|
64
|
+
}>> & Readonly<{}>, {
|
|
61
65
|
number: string | number;
|
|
66
|
+
mode: string;
|
|
62
67
|
left: string | number;
|
|
63
68
|
right: string | number;
|
|
64
69
|
bottom: string | number;
|
|
@@ -76,7 +76,7 @@ export declare const ToFloat: import("@touchvue/ui/es/utils").SFCWithInstall<{
|
|
|
76
76
|
open: (by?: any) => void;
|
|
77
77
|
close: (e?: Event) => void;
|
|
78
78
|
toggle: (by?: any) => void;
|
|
79
|
-
set: (link
|
|
79
|
+
set: (link?: any) => void;
|
|
80
80
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
|
|
81
81
|
mode: string;
|
|
82
82
|
left: string | number;
|
|
@@ -180,7 +180,7 @@ export declare const ToFloat: import("@touchvue/ui/es/utils").SFCWithInstall<{
|
|
|
180
180
|
open: (by?: any) => void;
|
|
181
181
|
close: (e?: Event) => void;
|
|
182
182
|
toggle: (by?: any) => void;
|
|
183
|
-
set: (link
|
|
183
|
+
set: (link?: any) => void;
|
|
184
184
|
}, {}, {}, {}, {
|
|
185
185
|
mode: string;
|
|
186
186
|
left: string | number;
|
|
@@ -281,7 +281,7 @@ export declare const ToFloat: import("@touchvue/ui/es/utils").SFCWithInstall<{
|
|
|
281
281
|
open: (by?: any) => void;
|
|
282
282
|
close: (e?: Event) => void;
|
|
283
283
|
toggle: (by?: any) => void;
|
|
284
|
-
set: (link
|
|
284
|
+
set: (link?: any) => void;
|
|
285
285
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
286
286
|
mode: string;
|
|
287
287
|
left: string | number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
declare function
|
|
2
|
-
declare function set(link: any): void;
|
|
1
|
+
declare function set(link?: any): void;
|
|
3
2
|
declare function open(by?: any): void;
|
|
3
|
+
declare function close(e?: Event): void;
|
|
4
4
|
declare function toggle(by?: any): void;
|
|
5
5
|
declare function __VLS_template(): {
|
|
6
6
|
default?(_: {}): any;
|
|
@@ -7,6 +7,10 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
7
7
|
type: (NumberConstructor | StringConstructor)[];
|
|
8
8
|
default: string;
|
|
9
9
|
};
|
|
10
|
+
labelPosition: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
10
14
|
col: {
|
|
11
15
|
type: (NumberConstructor | StringConstructor)[];
|
|
12
16
|
default: number;
|
|
@@ -31,6 +35,18 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
31
35
|
type: StringConstructor;
|
|
32
36
|
default: string;
|
|
33
37
|
};
|
|
38
|
+
space: {
|
|
39
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
40
|
+
default: string;
|
|
41
|
+
};
|
|
42
|
+
spaceX: {
|
|
43
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
44
|
+
default: string;
|
|
45
|
+
};
|
|
46
|
+
spaceY: {
|
|
47
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
48
|
+
default: string;
|
|
49
|
+
};
|
|
34
50
|
comparable: BooleanConstructor;
|
|
35
51
|
readonly: BooleanConstructor;
|
|
36
52
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -38,6 +54,10 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
38
54
|
type: (NumberConstructor | StringConstructor)[];
|
|
39
55
|
default: string;
|
|
40
56
|
};
|
|
57
|
+
labelPosition: {
|
|
58
|
+
type: StringConstructor;
|
|
59
|
+
default: string;
|
|
60
|
+
};
|
|
41
61
|
col: {
|
|
42
62
|
type: (NumberConstructor | StringConstructor)[];
|
|
43
63
|
default: number;
|
|
@@ -62,6 +82,18 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
62
82
|
type: StringConstructor;
|
|
63
83
|
default: string;
|
|
64
84
|
};
|
|
85
|
+
space: {
|
|
86
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
87
|
+
default: string;
|
|
88
|
+
};
|
|
89
|
+
spaceX: {
|
|
90
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
91
|
+
default: string;
|
|
92
|
+
};
|
|
93
|
+
spaceY: {
|
|
94
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
95
|
+
default: string;
|
|
96
|
+
};
|
|
65
97
|
comparable: BooleanConstructor;
|
|
66
98
|
readonly: BooleanConstructor;
|
|
67
99
|
}>> & Readonly<{}>, {
|
|
@@ -72,8 +104,12 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
72
104
|
dir: string;
|
|
73
105
|
comparable: boolean;
|
|
74
106
|
labelWidth: string | number;
|
|
107
|
+
labelPosition: string;
|
|
75
108
|
submitPosition: string;
|
|
76
109
|
valueWidth: string;
|
|
110
|
+
space: string | number;
|
|
111
|
+
spaceX: string | number;
|
|
112
|
+
spaceY: string | number;
|
|
77
113
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
78
114
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
79
115
|
export default _default;
|
|
@@ -22,7 +22,7 @@ export declare const ToImport: import("@touchvue/ui/es/utils").SFCWithInstall<im
|
|
|
22
22
|
closed: () => any;
|
|
23
23
|
action: string;
|
|
24
24
|
accept: string;
|
|
25
|
-
|
|
25
|
+
withCredentials: boolean;
|
|
26
26
|
headers: object | null;
|
|
27
27
|
beforeStart: (file: any) => boolean | Promise<boolean>;
|
|
28
28
|
buttonText: string;
|
|
@@ -11,7 +11,7 @@ export interface ImportProps {
|
|
|
11
11
|
opened?: () => any;
|
|
12
12
|
beforeOpen?: () => boolean | Promise<boolean>;
|
|
13
13
|
headers?: object | null;
|
|
14
|
-
|
|
14
|
+
withCredentials?: boolean;
|
|
15
15
|
data?: object | null;
|
|
16
16
|
disabled?: boolean;
|
|
17
17
|
}
|
|
@@ -39,7 +39,7 @@ declare const _default: import("vue").DefineComponent<ImportProps, {}, {}, {}, {
|
|
|
39
39
|
closed: () => any;
|
|
40
40
|
action: string;
|
|
41
41
|
accept: string;
|
|
42
|
-
|
|
42
|
+
withCredentials: boolean;
|
|
43
43
|
headers: object | null;
|
|
44
44
|
beforeStart: (file: any) => boolean | Promise<boolean>;
|
|
45
45
|
buttonText: string;
|
|
@@ -20,7 +20,7 @@ export interface FileProps {
|
|
|
20
20
|
disabled?: boolean;
|
|
21
21
|
downloadable?: boolean;
|
|
22
22
|
name?: string;
|
|
23
|
-
|
|
23
|
+
withCredentials?: boolean;
|
|
24
24
|
files?: any[];
|
|
25
25
|
data?: object;
|
|
26
26
|
beforeSelect?: ((fileList: any) => boolean | Promise<any>) | null;
|
|
@@ -81,7 +81,7 @@ declare const __VLS_component: import("vue").DefineComponent<FileProps, {
|
|
|
81
81
|
duplicatable: false;
|
|
82
82
|
fileIdText: string;
|
|
83
83
|
downloadable: boolean;
|
|
84
|
-
|
|
84
|
+
withCredentials: boolean;
|
|
85
85
|
files: any[];
|
|
86
86
|
headers: object;
|
|
87
87
|
beforeSelect: ((fileList: any) => boolean | Promise<any>) | null;
|
package/es/index.mjs
CHANGED
|
@@ -82,7 +82,7 @@ export { isArray, isBoolean, isDateObj, isDefined, isFunction, isHtmlElement, is
|
|
|
82
82
|
export { getComponentConfig, useGlobalConfig } from './packages/utils/config.mjs';
|
|
83
83
|
export { addClass, getDataSet, getEventPath, getScrollContainer, getStyle, hasClass, isInContainer, isScroll, off, on, once, queryVm, removeClass, setStyle } from './packages/utils/dom.mjs';
|
|
84
84
|
export { arrayEquals, arrayFind, arrayFindIndex, autoprefixer, capitalize, coerceTruthyValueToArray, deepClone, escapeRegexpString, generateId, generateUUID, getPropByPath, getValueByPath, hasOwn, isEmpty, isEqual, isipadOS, kebabCase, looseEqual, noop, objToArray, rafThrottle, removeElement, rsaEncryptByPublicKey, toObject, trim, valueEquals } from './packages/utils/util.mjs';
|
|
85
|
-
export { isAnyDate, isDate, isDatetime, isMonth, matchFormat } from './packages/utils/date.mjs';
|
|
85
|
+
export { format, isAnyDate, isDate, isDatetime, isMonth, matchFormat } from './packages/utils/date.mjs';
|
|
86
86
|
export { handleBeforeChange } from './packages/utils/beforeChange.mjs';
|
|
87
87
|
export { ajax } from './packages/utils/ajax.mjs';
|
|
88
88
|
export { fileAjax } from './packages/utils/fileAjax.mjs';
|
|
@@ -3,6 +3,7 @@ import { resolveComponent, openBlock, createElementBlock, createElementVNode, no
|
|
|
3
3
|
import _export_sfc from '../../../../_virtual/_plugin-vue_export-helper.mjs';
|
|
4
4
|
|
|
5
5
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6
|
+
var _a, _b, _c;
|
|
6
7
|
const _component_to_icon = resolveComponent("to-icon");
|
|
7
8
|
return openBlock(), createElementBlock("span", { class: "to-breadcrumb-item" }, [
|
|
8
9
|
createElementVNode("span", {
|
|
@@ -12,19 +13,19 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12
13
|
}, [
|
|
13
14
|
renderSlot(_ctx.$slots, "default")
|
|
14
15
|
], 10, ["onClick"]),
|
|
15
|
-
!_ctx.separatorIcon ? (openBlock(), createElementBlock(
|
|
16
|
+
!((_a = _ctx.breadcrumbData) == null ? void 0 : _a.separatorIcon) ? (openBlock(), createElementBlock(
|
|
16
17
|
"span",
|
|
17
18
|
{
|
|
18
19
|
key: 0,
|
|
19
20
|
class: "to-breadcrumb-item__separator"
|
|
20
21
|
},
|
|
21
|
-
toDisplayString(_ctx.separator),
|
|
22
|
+
toDisplayString((_b = _ctx.breadcrumbData) == null ? void 0 : _b.separator),
|
|
22
23
|
1
|
|
23
24
|
/* TEXT */
|
|
24
25
|
)) : (openBlock(), createBlock(_component_to_icon, {
|
|
25
26
|
key: 1,
|
|
26
27
|
class: "to-breadcrumb-item__separator",
|
|
27
|
-
value: _ctx.separatorIcon
|
|
28
|
+
value: (_c = _ctx.breadcrumbData) == null ? void 0 : _c.separatorIcon
|
|
28
29
|
}, null, 8, ["value"]))
|
|
29
30
|
]);
|
|
30
31
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"breadcrumb-item.vue.mjs","sources":["../../../../../../packages/components/breadcrumb/src/breadcrumb-item.vue"],"sourcesContent":["<template>\n\t<span class=\"to-breadcrumb-item\">\n\t\t<span
|
|
1
|
+
{"version":3,"file":"breadcrumb-item.vue.mjs","sources":["../../../../../../packages/components/breadcrumb/src/breadcrumb-item.vue"],"sourcesContent":["<template>\n\t<span class=\"to-breadcrumb-item\">\n\t\t<span :class=\"['to-breadcrumb-item__inner', to ? 'is-link' : '']\" role=\"link\" @click=\"handleClick\">\n\t\t\t<slot></slot>\n\t\t</span>\n\t\t<span v-if=\"!breadcrumbData?.separatorIcon\" class=\"to-breadcrumb-item__separator\">{{ breadcrumbData?.separator }}</span>\n\t\t<to-icon v-else class=\"to-breadcrumb-item__separator\" :value=\"breadcrumbData?.separatorIcon\"></to-icon>\n\t</span>\n</template>\n\n<script lang=\"ts\">\nimport { defineComponent, inject, getCurrentInstance } from 'vue'\nimport { breadcrumbItemProps } from './breadcrumb-item'\n\nexport default defineComponent({\n\tname: 'ToBreadcrumbItem',\n\tprops: breadcrumbItemProps,\n\tsetup(props) {\n\t\tconst breadcrumbData = inject('breadcrumb', { separator: '/', separatorIcon: '' })\n\n\t\tconst handleClick = () => {\n\t\t\tif (!props.to || !router) return\n\n\t\t\tconst routes = router.resolve(props.to)\n\t\t\tconst routerMethod = props.replace ? router.replace : router.push\n\t\t\trouterMethod(routes.href)\n\t\t}\n\n\t\tconst router = getCurrentInstance()?.appContext.config.globalProperties.$router || undefined\n\n\t\treturn {\n\t\t\tbreadcrumbData,\n\t\t\thandleClick\n\t\t}\n\t}\n})\n</script>\n"],"names":["_resolveComponent","_openBlock","to","_createElementVNode","_normalizeClass","handleClick","breadcrumbData","_createElementBlock","_createBlock"],"mappings":";;;;;;AACC,EAAA,MAAA,kBAAA,GAAAA,iBAMO,SAND,CAAA,CAAA;AACE,EAAA,OAAAC,iDAAqCC,sBAAE,EAAA;AAAA,IAA+BC,mBAAA,MAAA,EAAA;AAAA,MAAE,KAAA,EAAKC,eAAEC,CAAW,2BAAA,EAAA,KAAA,EAAA,GAAA,SAAA,GAAA,EAAA,CAAA,CAAA;AAAA,MAAA,IAAA,EAAA,MAAA;AAAA,MAChG,SAAa,IAAA,CAAA,WAAA;AAAA,KAAA,EAAA;AAAA,MAEDC,UAAAA,CAAAA,IAAAA,CAAAA,MAAAA,EAAgB,SAAa,CAAA;AAAA,KAA1C,EAAA,EAAA,EAAA,CAAA,SAAA,CAAA,CAAA;AAAA,IAAkD,GAAA,EAAA,GAAA,IAAA,CAAA,cAAA,KAAA,IAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,aAAA,CAAA,IAAAL,WAAA,EAAAM,kBAAA;AAAA,MAAA,MAAA;AAAA,MAA+B;AAAA,QAAA,GAAA,EAAA,CAAA;AAAA;;;;;qBAC5B,EAAAC,WAAA,CAAA,kBAAA,EAAA;AAAA,MAAE,GAAK,EAAA,CAAA;AAAA,MAAA,KAAA,EAAA,+BAAA;AAAA;;;;;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, inject,
|
|
1
|
+
import { defineComponent, inject, getCurrentInstance } from 'vue';
|
|
2
2
|
import { breadcrumbItemProps } from './breadcrumb-item.mjs';
|
|
3
3
|
|
|
4
4
|
var _sfc_main = defineComponent({
|
|
@@ -6,9 +6,7 @@ var _sfc_main = defineComponent({
|
|
|
6
6
|
props: breadcrumbItemProps,
|
|
7
7
|
setup(props) {
|
|
8
8
|
var _a;
|
|
9
|
-
const
|
|
10
|
-
const separator = computed(() => breadcrumb.separator);
|
|
11
|
-
const separatorIcon = computed(() => breadcrumb.separatorIcon);
|
|
9
|
+
const breadcrumbData = inject("breadcrumb", { separator: "/", separatorIcon: "" });
|
|
12
10
|
const handleClick = () => {
|
|
13
11
|
if (!props.to || !router)
|
|
14
12
|
return;
|
|
@@ -18,8 +16,7 @@ var _sfc_main = defineComponent({
|
|
|
18
16
|
};
|
|
19
17
|
const router = ((_a = getCurrentInstance()) == null ? void 0 : _a.appContext.config.globalProperties.$router) || void 0;
|
|
20
18
|
return {
|
|
21
|
-
|
|
22
|
-
separatorIcon,
|
|
19
|
+
breadcrumbData,
|
|
23
20
|
handleClick
|
|
24
21
|
};
|
|
25
22
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"breadcrumb-item.vue2.mjs","sources":["../../../../../../packages/components/breadcrumb/src/breadcrumb-item.vue"],"sourcesContent":["<template>\n\t<span class=\"to-breadcrumb-item\">\n\t\t<span
|
|
1
|
+
{"version":3,"file":"breadcrumb-item.vue2.mjs","sources":["../../../../../../packages/components/breadcrumb/src/breadcrumb-item.vue"],"sourcesContent":["<template>\n\t<span class=\"to-breadcrumb-item\">\n\t\t<span :class=\"['to-breadcrumb-item__inner', to ? 'is-link' : '']\" role=\"link\" @click=\"handleClick\">\n\t\t\t<slot></slot>\n\t\t</span>\n\t\t<span v-if=\"!breadcrumbData?.separatorIcon\" class=\"to-breadcrumb-item__separator\">{{ breadcrumbData?.separator }}</span>\n\t\t<to-icon v-else class=\"to-breadcrumb-item__separator\" :value=\"breadcrumbData?.separatorIcon\"></to-icon>\n\t</span>\n</template>\n\n<script lang=\"ts\">\nimport { defineComponent, inject, getCurrentInstance } from 'vue'\nimport { breadcrumbItemProps } from './breadcrumb-item'\n\nexport default defineComponent({\n\tname: 'ToBreadcrumbItem',\n\tprops: breadcrumbItemProps,\n\tsetup(props) {\n\t\tconst breadcrumbData = inject('breadcrumb', { separator: '/', separatorIcon: '' })\n\n\t\tconst handleClick = () => {\n\t\t\tif (!props.to || !router) return\n\n\t\t\tconst routes = router.resolve(props.to)\n\t\t\tconst routerMethod = props.replace ? router.replace : router.push\n\t\t\trouterMethod(routes.href)\n\t\t}\n\n\t\tconst router = getCurrentInstance()?.appContext.config.globalProperties.$router || undefined\n\n\t\treturn {\n\t\t\tbreadcrumbData,\n\t\t\thandleClick\n\t\t}\n\t}\n})\n</script>\n"],"names":[],"mappings":";;;AAcA,gBAAe,eAAgB,CAAA;AAAA,EAC9B,IAAM,EAAA,kBAAA;AAAA,EACN,KAAO,EAAA,mBAAA;AAAA,EACP,MAAM,KAAO,EAAA;;AACZ,IAAM,MAAA,cAAA,GAAiB,OAAO,YAAc,EAAA,EAAE,WAAW,GAAK,EAAA,aAAA,EAAe,IAAI,CAAA,CAAA;AAEjF,IAAA,MAAM,cAAc,MAAM;AACzB,MAAI,IAAA,CAAC,KAAM,CAAA,EAAA,IAAM,CAAC,MAAA;AAAQ,QAAA,OAAA;AAE1B,MAAA,MAAM,MAAS,GAAA,MAAA,CAAO,OAAQ,CAAA,KAAA,CAAM,EAAE,CAAA,CAAA;AACtC,MAAA,MAAM,YAAe,GAAA,KAAA,CAAM,OAAU,GAAA,MAAA,CAAO,UAAU,MAAO,CAAA,IAAA,CAAA;AAC7D,MAAA,YAAA,CAAa,OAAO,IAAI,CAAA,CAAA;AAAA,KACzB,CAAA;AAEA,IAAA,MAAM,WAAS,EAAmB,GAAA,kBAAA,EAAA,KAAnB,mBAAsB,UAAW,CAAA,MAAA,CAAO,iBAAiB,OAAW,KAAA,KAAA,CAAA,CAAA;AAEnF,IAAO,OAAA;AAAA,MACN,cAAA;AAAA,MACA,WAAA;AAAA,KACD,CAAA;AAAA,GACD;AACD,CAAC,CAAA;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"breadcrumb.vue.mjs","sources":["../../../../../../packages/components/breadcrumb/src/breadcrumb.vue"],"sourcesContent":["<template>\n\t<div class=\"to-breadcrumb\" :class=\"[`is-${mode}`]\">\n\t\t<slot></slot>\n\t</div>\n</template>\n\n<script lang=\"ts\">\nimport { defineComponent, provide,
|
|
1
|
+
{"version":3,"file":"breadcrumb.vue.mjs","sources":["../../../../../../packages/components/breadcrumb/src/breadcrumb.vue"],"sourcesContent":["<template>\n\t<div class=\"to-breadcrumb\" :class=\"[`is-${mode}`]\">\n\t\t<slot></slot>\n\t</div>\n</template>\n\n<script lang=\"ts\">\nimport { defineComponent, provide, computed } from 'vue'\nimport { breadcrumbProps } from './breadcrumb'\n\nexport default defineComponent({\n\tname: 'ToBreadcrumb',\n\tprops: breadcrumbProps,\n\tsetup(props) {\n\t\tconst breadcrumbData = computed(() => ({\n\t\t\tseparator: props.separator,\n\t\t\tseparatorIcon: props.separatorIcon\n\t\t}))\n\n\t\tprovide('breadcrumb', breadcrumbData)\n\n\t\treturn {}\n\t}\n})\n</script>\n"],"names":["mode","_normalizeClass"],"mappings":";;;;SACW,YAAC,IAAA,EAAA,MAAA,EAAA,MAAe,EAAA,MAAA,SAAgBA,QAAI,EAAA;;;;MAC7C,KAAA,EAAaC,eAAA,CAAA,eAAA,EAAA,CAAA,CAAA,GAAA,EAAA,IAAA,CAAA,IAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,KAAA;AAAA;;;;;;;;;;;"}
|
|
@@ -1,18 +1,16 @@
|
|
|
1
|
-
import { defineComponent,
|
|
1
|
+
import { defineComponent, computed, provide } from 'vue';
|
|
2
2
|
import { breadcrumbProps } from './breadcrumb.mjs';
|
|
3
3
|
|
|
4
4
|
var _sfc_main = defineComponent({
|
|
5
5
|
name: "ToBreadcrumb",
|
|
6
6
|
props: breadcrumbProps,
|
|
7
7
|
setup(props) {
|
|
8
|
-
const
|
|
9
|
-
provide("breadcrumb", {
|
|
8
|
+
const breadcrumbData = computed(() => ({
|
|
10
9
|
separator: props.separator,
|
|
11
10
|
separatorIcon: props.separatorIcon
|
|
12
|
-
});
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
};
|
|
11
|
+
}));
|
|
12
|
+
provide("breadcrumb", breadcrumbData);
|
|
13
|
+
return {};
|
|
16
14
|
}
|
|
17
15
|
});
|
|
18
16
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"breadcrumb.vue2.mjs","sources":["../../../../../../packages/components/breadcrumb/src/breadcrumb.vue"],"sourcesContent":["<template>\n\t<div class=\"to-breadcrumb\" :class=\"[`is-${mode}`]\">\n\t\t<slot></slot>\n\t</div>\n</template>\n\n<script lang=\"ts\">\nimport { defineComponent, provide,
|
|
1
|
+
{"version":3,"file":"breadcrumb.vue2.mjs","sources":["../../../../../../packages/components/breadcrumb/src/breadcrumb.vue"],"sourcesContent":["<template>\n\t<div class=\"to-breadcrumb\" :class=\"[`is-${mode}`]\">\n\t\t<slot></slot>\n\t</div>\n</template>\n\n<script lang=\"ts\">\nimport { defineComponent, provide, computed } from 'vue'\nimport { breadcrumbProps } from './breadcrumb'\n\nexport default defineComponent({\n\tname: 'ToBreadcrumb',\n\tprops: breadcrumbProps,\n\tsetup(props) {\n\t\tconst breadcrumbData = computed(() => ({\n\t\t\tseparator: props.separator,\n\t\t\tseparatorIcon: props.separatorIcon\n\t\t}))\n\n\t\tprovide('breadcrumb', breadcrumbData)\n\n\t\treturn {}\n\t}\n})\n</script>\n"],"names":[],"mappings":";;;AAUA,gBAAe,eAAgB,CAAA;AAAA,EAC9B,IAAM,EAAA,cAAA;AAAA,EACN,KAAO,EAAA,eAAA;AAAA,EACP,MAAM,KAAO,EAAA;AACZ,IAAM,MAAA,cAAA,GAAiB,SAAS,OAAO;AAAA,MACtC,WAAW,KAAM,CAAA,SAAA;AAAA,MACjB,eAAe,KAAM,CAAA,aAAA;AAAA,KACpB,CAAA,CAAA,CAAA;AAEF,IAAA,OAAA,CAAQ,cAAc,cAAc,CAAA,CAAA;AAEpC,IAAA,OAAO,EAAC,CAAA;AAAA,GACT;AACD,CAAC,CAAA;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, ref, watch, onMounted, computed, resolveComponent, openBlock, createBlock, unref, withCtx, normalizeClass, createVNode, createCommentVNode, isRef, createElementBlock, Fragment, createTextVNode, nextTick } from 'vue';
|
|
1
|
+
import { defineComponent, ref, watch, onMounted, computed, resolveComponent, openBlock, createBlock, unref, withCtx, normalizeClass, withModifiers, createVNode, createCommentVNode, isRef, createElementBlock, Fragment, createTextVNode, nextTick } from 'vue';
|
|
2
2
|
import { ToIcon } from '../../icon/index.mjs';
|
|
3
3
|
import { ToCalendar } from '../../calendar/index.mjs';
|
|
4
4
|
import { ToInput } from '../../input/index.mjs';
|
|
@@ -158,7 +158,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
158
158
|
const errorType = ref("rule");
|
|
159
159
|
const errorTip = ref("");
|
|
160
160
|
const layerSlide = ref(false);
|
|
161
|
-
const layerPosition = ref("
|
|
161
|
+
const layerPosition = ref("");
|
|
162
162
|
const disabled = ref(props.disabled);
|
|
163
163
|
const inputBox = ref(null);
|
|
164
164
|
const layerRef = ref(null);
|
|
@@ -220,11 +220,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
220
220
|
}
|
|
221
221
|
function showLayer() {
|
|
222
222
|
var _a;
|
|
223
|
-
let className = inputBox.value && inputBox.value.$el && inputBox.value.$el.className || "";
|
|
224
223
|
errorTip.value = inputBox.value.errorTip = "";
|
|
225
|
-
if (className.indexOf("to-dis") > -1) {
|
|
226
|
-
return;
|
|
227
|
-
}
|
|
228
224
|
if (!disabled.value) {
|
|
229
225
|
(_a = layerRef.value) == null ? void 0 : _a.toggle(inputBox.value.$el);
|
|
230
226
|
nextTick(() => {
|
|
@@ -278,13 +274,13 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
278
274
|
link: __props.inputable,
|
|
279
275
|
class: normalizeClass(disabled.value ? "to-dis" : ""),
|
|
280
276
|
value: "time",
|
|
281
|
-
onClick: showLayer
|
|
277
|
+
onClick: withModifiers(showLayer, ["stop"])
|
|
282
278
|
}, null, 8, ["link", "class"])) : (openBlock(), createBlock(unref(ToIcon), {
|
|
283
279
|
key: 1,
|
|
284
280
|
link: __props.inputable,
|
|
285
281
|
class: normalizeClass(disabled.value ? "to-dis" : ""),
|
|
286
282
|
value: "date",
|
|
287
|
-
onClick: showLayer
|
|
283
|
+
onClick: withModifiers(showLayer, ["stop"])
|
|
288
284
|
}, null, 8, ["link", "class"]))
|
|
289
285
|
]),
|
|
290
286
|
default: withCtx(() => [
|
|
@@ -296,7 +292,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
296
292
|
position: layerPosition.value,
|
|
297
293
|
padding: 0.5,
|
|
298
294
|
width: unref(isPc) ? __props.type === "datetime" ? 43 : 23 : "",
|
|
299
|
-
align: __props.optionAlign ? __props.optionAlign : unref(isPc) ? "right" : "
|
|
295
|
+
align: __props.optionAlign ? __props.optionAlign : unref(isPc) ? "right" : "",
|
|
300
296
|
onClosed: handleLayerClose
|
|
301
297
|
}, {
|
|
302
298
|
default: withCtx(() => [
|