vant 4.10.0 → 4.10.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/README.md +4 -8
- package/es/cell/Cell.mjs +2 -2
- package/es/collapse-item/CollapseItem.d.ts +6 -6
- package/es/date-picker/DatePicker.d.ts +10 -10
- package/es/field/Field.d.ts +6 -6
- package/es/index.d.ts +1 -1
- package/es/index.mjs +1 -1
- package/es/locale/lang/de-DE.mjs +1 -1
- package/es/locale/lang/ja-JP.mjs +2 -2
- package/es/popup/Popup.d.ts +3 -3
- package/es/search/Search.d.ts +20 -20
- package/es/time-picker/TimePicker.d.ts +10 -10
- package/es/utils/basic.d.ts +1 -1
- package/lib/cell/Cell.js +2 -2
- package/lib/collapse-item/CollapseItem.d.ts +6 -6
- package/lib/date-picker/DatePicker.d.ts +10 -10
- package/lib/field/Field.d.ts +6 -6
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/lang/de-DE.js +1 -1
- package/lib/locale/lang/ja-JP.js +2 -2
- package/lib/popup/Popup.d.ts +3 -3
- package/lib/search/Search.d.ts +20 -20
- package/lib/time-picker/TimePicker.d.ts +10 -10
- package/lib/utils/basic.d.ts +1 -1
- package/lib/vant.cjs.js +3 -3
- package/lib/vant.es.js +3 -3
- package/lib/vant.js +4 -4
- package/lib/vant.min.js +2 -2
- package/lib/web-types.json +1 -1
- package/package.json +10 -10
package/README.md
CHANGED
|
@@ -22,6 +22,10 @@
|
|
|
22
22
|
·
|
|
23
23
|
|
|
24
24
|
<a href="./README.zh-CN.md">中文介绍</a>
|
|
25
|
+
|
|
26
|
+
·
|
|
27
|
+
|
|
28
|
+
<a href="./README.ja-JP.md">日本語</a>
|
|
25
29
|
</p>
|
|
26
30
|
|
|
27
31
|
---
|
|
@@ -158,14 +162,6 @@ Core contributors of Vant and Vant Weapp:
|
|
|
158
162
|
| :-: | :-: | :-: | :-: | :-: | :-: |
|
|
159
163
|
| [Lindysen](https://github.com/Lindysen/) | [JakeLaoyu](https://github.com/JakeLaoyu/) | [landluck](https://github.com/landluck/) | [wjw-gavin](https://github.com/wjw-gavin/) | [inottn](https://github.com/inottn/) | [zhousg](https://github.com/zhousg/) |
|
|
160
164
|
|
|
161
|
-
## All Contributors
|
|
162
|
-
|
|
163
|
-
Thanks to the following friends for their contributions to Vant:
|
|
164
|
-
|
|
165
|
-
<a href="https://github.com/vant-ui/vant/graphs/contributors">
|
|
166
|
-
<img src="https://opencollective.com/vant/contributors.svg?width=890&button=false" alt="contributors">
|
|
167
|
-
</a>
|
|
168
|
-
|
|
169
165
|
## Contribution Guide
|
|
170
166
|
|
|
171
167
|
Please make sure to read the [Contributing Guide](./.github/CONTRIBUTING.md) before making a pull request.
|
package/es/cell/Cell.mjs
CHANGED
|
@@ -91,7 +91,7 @@ var stdin_default = defineComponent({
|
|
|
91
91
|
}
|
|
92
92
|
};
|
|
93
93
|
return () => {
|
|
94
|
-
var _a;
|
|
94
|
+
var _a, _b, _c;
|
|
95
95
|
const {
|
|
96
96
|
tag,
|
|
97
97
|
size,
|
|
@@ -100,7 +100,7 @@ var stdin_default = defineComponent({
|
|
|
100
100
|
isLink,
|
|
101
101
|
required
|
|
102
102
|
} = props;
|
|
103
|
-
const clickable = (_a = props.clickable) != null ? _a : isLink;
|
|
103
|
+
const clickable = Boolean((_c = (_b = (_a = props.clickable) != null ? _a : props.to) != null ? _b : props.url) != null ? _c : isLink);
|
|
104
104
|
const classes = {
|
|
105
105
|
center,
|
|
106
106
|
required: !!required,
|
|
@@ -5,7 +5,7 @@ export declare const collapseItemProps: {
|
|
|
5
5
|
default: keyof HTMLElementTagNameMap;
|
|
6
6
|
};
|
|
7
7
|
icon: StringConstructor;
|
|
8
|
-
size: import("vue").PropType<import("
|
|
8
|
+
size: import("vue").PropType<import("..").CellSize>;
|
|
9
9
|
title: (NumberConstructor | StringConstructor)[];
|
|
10
10
|
value: (NumberConstructor | StringConstructor)[];
|
|
11
11
|
label: (NumberConstructor | StringConstructor)[];
|
|
@@ -20,7 +20,7 @@ export declare const collapseItemProps: {
|
|
|
20
20
|
labelClass: import("vue").PropType<unknown>;
|
|
21
21
|
titleClass: import("vue").PropType<unknown>;
|
|
22
22
|
titleStyle: import("vue").PropType<string | import("vue").CSSProperties>;
|
|
23
|
-
arrowDirection: import("vue").PropType<import("
|
|
23
|
+
arrowDirection: import("vue").PropType<import("..").CellArrowDirection>;
|
|
24
24
|
required: {
|
|
25
25
|
type: import("vue").PropType<boolean | "auto">;
|
|
26
26
|
default: null;
|
|
@@ -49,7 +49,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
49
49
|
default: keyof HTMLElementTagNameMap;
|
|
50
50
|
};
|
|
51
51
|
icon: StringConstructor;
|
|
52
|
-
size: import("vue").PropType<import("
|
|
52
|
+
size: import("vue").PropType<import("..").CellSize>;
|
|
53
53
|
title: (NumberConstructor | StringConstructor)[];
|
|
54
54
|
value: (NumberConstructor | StringConstructor)[];
|
|
55
55
|
label: (NumberConstructor | StringConstructor)[];
|
|
@@ -64,7 +64,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
64
64
|
labelClass: import("vue").PropType<unknown>;
|
|
65
65
|
titleClass: import("vue").PropType<unknown>;
|
|
66
66
|
titleStyle: import("vue").PropType<string | import("vue").CSSProperties>;
|
|
67
|
-
arrowDirection: import("vue").PropType<import("
|
|
67
|
+
arrowDirection: import("vue").PropType<import("..").CellArrowDirection>;
|
|
68
68
|
required: {
|
|
69
69
|
type: import("vue").PropType<boolean | "auto">;
|
|
70
70
|
default: null;
|
|
@@ -91,7 +91,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
91
91
|
default: keyof HTMLElementTagNameMap;
|
|
92
92
|
};
|
|
93
93
|
icon: StringConstructor;
|
|
94
|
-
size: import("vue").PropType<import("
|
|
94
|
+
size: import("vue").PropType<import("..").CellSize>;
|
|
95
95
|
title: (NumberConstructor | StringConstructor)[];
|
|
96
96
|
value: (NumberConstructor | StringConstructor)[];
|
|
97
97
|
label: (NumberConstructor | StringConstructor)[];
|
|
@@ -106,7 +106,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
106
106
|
labelClass: import("vue").PropType<unknown>;
|
|
107
107
|
titleClass: import("vue").PropType<unknown>;
|
|
108
108
|
titleStyle: import("vue").PropType<string | import("vue").CSSProperties>;
|
|
109
|
-
arrowDirection: import("vue").PropType<import("
|
|
109
|
+
arrowDirection: import("vue").PropType<import("..").CellArrowDirection>;
|
|
110
110
|
required: {
|
|
111
111
|
type: import("vue").PropType<boolean | "auto">;
|
|
112
112
|
default: null;
|
|
@@ -29,10 +29,10 @@ export declare const datePickerProps: {
|
|
|
29
29
|
type: PropType<string[]>;
|
|
30
30
|
default: () => never[];
|
|
31
31
|
};
|
|
32
|
-
filter: PropType<(columnType: string, options: import("
|
|
32
|
+
filter: PropType<(columnType: string, options: import("..").PickerOption[], values: string[]) => import("..").PickerOption[]>;
|
|
33
33
|
formatter: {
|
|
34
|
-
type: PropType<(type: string, option: import("
|
|
35
|
-
default: (type: string, option: import("
|
|
34
|
+
type: PropType<(type: string, option: import("..").PickerOption) => import("..").PickerOption>;
|
|
35
|
+
default: (type: string, option: import("..").PickerOption) => import("..").PickerOption;
|
|
36
36
|
};
|
|
37
37
|
} & {
|
|
38
38
|
columnsType: {
|
|
@@ -85,10 +85,10 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
85
85
|
type: PropType<string[]>;
|
|
86
86
|
default: () => never[];
|
|
87
87
|
};
|
|
88
|
-
filter: PropType<(columnType: string, options: import("
|
|
88
|
+
filter: PropType<(columnType: string, options: import("..").PickerOption[], values: string[]) => import("..").PickerOption[]>;
|
|
89
89
|
formatter: {
|
|
90
|
-
type: PropType<(type: string, option: import("
|
|
91
|
-
default: (type: string, option: import("
|
|
90
|
+
type: PropType<(type: string, option: import("..").PickerOption) => import("..").PickerOption>;
|
|
91
|
+
default: (type: string, option: import("..").PickerOption) => import("..").PickerOption;
|
|
92
92
|
};
|
|
93
93
|
} & {
|
|
94
94
|
columnsType: {
|
|
@@ -134,10 +134,10 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
134
134
|
type: PropType<string[]>;
|
|
135
135
|
default: () => never[];
|
|
136
136
|
};
|
|
137
|
-
filter: PropType<(columnType: string, options: import("
|
|
137
|
+
filter: PropType<(columnType: string, options: import("..").PickerOption[], values: string[]) => import("..").PickerOption[]>;
|
|
138
138
|
formatter: {
|
|
139
|
-
type: PropType<(type: string, option: import("
|
|
140
|
-
default: (type: string, option: import("
|
|
139
|
+
type: PropType<(type: string, option: import("..").PickerOption) => import("..").PickerOption>;
|
|
140
|
+
default: (type: string, option: import("..").PickerOption) => import("..").PickerOption;
|
|
141
141
|
};
|
|
142
142
|
} & {
|
|
143
143
|
columnsType: {
|
|
@@ -160,7 +160,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
160
160
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
161
161
|
onConfirm?: ((...args: any[]) => any) | undefined;
|
|
162
162
|
}>, {
|
|
163
|
-
formatter: (type: string, option: import("
|
|
163
|
+
formatter: (type: string, option: import("..").PickerOption) => import("..").PickerOption;
|
|
164
164
|
modelValue: string[];
|
|
165
165
|
readonly: boolean;
|
|
166
166
|
loading: boolean;
|
package/es/field/Field.d.ts
CHANGED
|
@@ -58,7 +58,7 @@ export declare const fieldProps: {
|
|
|
58
58
|
default: keyof HTMLElementTagNameMap;
|
|
59
59
|
};
|
|
60
60
|
icon: StringConstructor;
|
|
61
|
-
size: PropType<import("
|
|
61
|
+
size: PropType<import("..").CellSize>;
|
|
62
62
|
title: (NumberConstructor | StringConstructor)[];
|
|
63
63
|
value: (NumberConstructor | StringConstructor)[];
|
|
64
64
|
label: (NumberConstructor | StringConstructor)[];
|
|
@@ -73,7 +73,7 @@ export declare const fieldProps: {
|
|
|
73
73
|
labelClass: PropType<unknown>;
|
|
74
74
|
titleClass: PropType<unknown>;
|
|
75
75
|
titleStyle: PropType<string | import("vue").CSSProperties>;
|
|
76
|
-
arrowDirection: PropType<import("
|
|
76
|
+
arrowDirection: PropType<import("..").CellArrowDirection>;
|
|
77
77
|
required: {
|
|
78
78
|
type: PropType<boolean | "auto">;
|
|
79
79
|
default: null;
|
|
@@ -158,7 +158,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
158
158
|
default: keyof HTMLElementTagNameMap;
|
|
159
159
|
};
|
|
160
160
|
icon: StringConstructor;
|
|
161
|
-
size: PropType<import("
|
|
161
|
+
size: PropType<import("..").CellSize>;
|
|
162
162
|
title: (NumberConstructor | StringConstructor)[];
|
|
163
163
|
value: (NumberConstructor | StringConstructor)[];
|
|
164
164
|
label: (NumberConstructor | StringConstructor)[];
|
|
@@ -173,7 +173,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
173
173
|
labelClass: PropType<unknown>;
|
|
174
174
|
titleClass: PropType<unknown>;
|
|
175
175
|
titleStyle: PropType<string | import("vue").CSSProperties>;
|
|
176
|
-
arrowDirection: PropType<import("
|
|
176
|
+
arrowDirection: PropType<import("..").CellArrowDirection>;
|
|
177
177
|
required: {
|
|
178
178
|
type: PropType<boolean | "auto">;
|
|
179
179
|
default: null;
|
|
@@ -256,7 +256,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
256
256
|
default: keyof HTMLElementTagNameMap;
|
|
257
257
|
};
|
|
258
258
|
icon: StringConstructor;
|
|
259
|
-
size: PropType<import("
|
|
259
|
+
size: PropType<import("..").CellSize>;
|
|
260
260
|
title: (NumberConstructor | StringConstructor)[];
|
|
261
261
|
value: (NumberConstructor | StringConstructor)[];
|
|
262
262
|
label: (NumberConstructor | StringConstructor)[];
|
|
@@ -271,7 +271,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
271
271
|
labelClass: PropType<unknown>;
|
|
272
272
|
titleClass: PropType<unknown>;
|
|
273
273
|
titleStyle: PropType<string | import("vue").CSSProperties>;
|
|
274
|
-
arrowDirection: PropType<import("
|
|
274
|
+
arrowDirection: PropType<import("..").CellArrowDirection>;
|
|
275
275
|
required: {
|
|
276
276
|
type: PropType<boolean | "auto">;
|
|
277
277
|
default: null;
|
package/es/index.d.ts
CHANGED
package/es/index.mjs
CHANGED
|
@@ -99,7 +99,7 @@ import { Toast } from "./toast/index.mjs";
|
|
|
99
99
|
import { TreeSelect } from "./tree-select/index.mjs";
|
|
100
100
|
import { Uploader } from "./uploader/index.mjs";
|
|
101
101
|
import { Watermark } from "./watermark/index.mjs";
|
|
102
|
-
const version = "4.10.
|
|
102
|
+
const version = "4.10.2";
|
|
103
103
|
function install(app) {
|
|
104
104
|
const components = [
|
|
105
105
|
ActionBar,
|
package/es/locale/lang/de-DE.mjs
CHANGED
|
@@ -16,7 +16,7 @@ var stdin_default = {
|
|
|
16
16
|
end: "Ende",
|
|
17
17
|
start: "Start",
|
|
18
18
|
title: "Kalender",
|
|
19
|
-
weekdays: ["So", "Mo", "Di", "
|
|
19
|
+
weekdays: ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"],
|
|
20
20
|
monthTitle: (year, month) => `${year}/${month}`,
|
|
21
21
|
rangePrompt: (maxRange) => `W\xE4hle nicht mehr als ${maxRange} Tage`
|
|
22
22
|
},
|
package/es/locale/lang/ja-JP.mjs
CHANGED
|
@@ -44,8 +44,8 @@ var stdin_default = {
|
|
|
44
44
|
count: (count) => `${count}\u679A\u304C\u5229\u7528\u53EF\u80FD`
|
|
45
45
|
},
|
|
46
46
|
vanCouponList: {
|
|
47
|
-
exchange: "\
|
|
48
|
-
close: "\u4F7F\u7528\
|
|
47
|
+
exchange: "\u4EA4\u63DB",
|
|
48
|
+
close: "\u4F7F\u7528\u3057\u306A\u3044",
|
|
49
49
|
enable: "\u5229\u7528\u53EF\u80FD",
|
|
50
50
|
disabled: "\u5229\u7528\u3067\u304D\u307E\u305B\u3093",
|
|
51
51
|
placeholder: "\u5272\u5F15\u30B3\u30FC\u30C9\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044"
|
package/es/popup/Popup.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ export declare const popupProps: {
|
|
|
18
18
|
default: true;
|
|
19
19
|
};
|
|
20
20
|
beforeClose: import("vue").PropType<import("../utils").Interceptor>;
|
|
21
|
-
overlayProps: import("vue").PropType<Partial<import("
|
|
21
|
+
overlayProps: import("vue").PropType<Partial<import("..").OverlayProps>>;
|
|
22
22
|
overlayStyle: import("vue").PropType<CSSProperties>;
|
|
23
23
|
overlayClass: import("vue").PropType<unknown>;
|
|
24
24
|
transitionAppear: BooleanConstructor;
|
|
@@ -67,7 +67,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
67
67
|
default: true;
|
|
68
68
|
};
|
|
69
69
|
beforeClose: import("vue").PropType<import("../utils").Interceptor>;
|
|
70
|
-
overlayProps: import("vue").PropType<Partial<import("
|
|
70
|
+
overlayProps: import("vue").PropType<Partial<import("..").OverlayProps>>;
|
|
71
71
|
overlayStyle: import("vue").PropType<CSSProperties>;
|
|
72
72
|
overlayClass: import("vue").PropType<unknown>;
|
|
73
73
|
transitionAppear: BooleanConstructor;
|
|
@@ -114,7 +114,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
114
114
|
default: true;
|
|
115
115
|
};
|
|
116
116
|
beforeClose: import("vue").PropType<import("../utils").Interceptor>;
|
|
117
|
-
overlayProps: import("vue").PropType<Partial<import("
|
|
117
|
+
overlayProps: import("vue").PropType<Partial<import("..").OverlayProps>>;
|
|
118
118
|
overlayStyle: import("vue").PropType<CSSProperties>;
|
|
119
119
|
overlayClass: import("vue").PropType<unknown>;
|
|
120
120
|
transitionAppear: BooleanConstructor;
|
package/es/search/Search.d.ts
CHANGED
|
@@ -19,20 +19,20 @@ export declare const searchProps: {
|
|
|
19
19
|
type: (NumberConstructor | StringConstructor)[];
|
|
20
20
|
default: string;
|
|
21
21
|
};
|
|
22
|
-
inputAlign: import("vue").PropType<import("
|
|
22
|
+
inputAlign: import("vue").PropType<import("..").FieldTextAlign>;
|
|
23
23
|
placeholder: StringConstructor;
|
|
24
24
|
autocomplete: StringConstructor;
|
|
25
25
|
autocapitalize: StringConstructor;
|
|
26
26
|
autocorrect: StringConstructor;
|
|
27
27
|
errorMessage: StringConstructor;
|
|
28
|
-
enterkeyhint: import("vue").PropType<import("
|
|
28
|
+
enterkeyhint: import("vue").PropType<import("..").FieldEnterKeyHint>;
|
|
29
29
|
clearTrigger: {
|
|
30
|
-
type: import("vue").PropType<import("
|
|
31
|
-
default: import("
|
|
30
|
+
type: import("vue").PropType<import("..").FieldClearTrigger>;
|
|
31
|
+
default: import("..").FieldClearTrigger;
|
|
32
32
|
};
|
|
33
33
|
formatTrigger: {
|
|
34
|
-
type: import("vue").PropType<import("
|
|
35
|
-
default: import("
|
|
34
|
+
type: import("vue").PropType<import("..").FieldFormatTrigger>;
|
|
35
|
+
default: import("..").FieldFormatTrigger;
|
|
36
36
|
};
|
|
37
37
|
spellcheck: {
|
|
38
38
|
type: BooleanConstructor;
|
|
@@ -89,20 +89,20 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
89
89
|
type: (NumberConstructor | StringConstructor)[];
|
|
90
90
|
default: string;
|
|
91
91
|
};
|
|
92
|
-
inputAlign: import("vue").PropType<import("
|
|
92
|
+
inputAlign: import("vue").PropType<import("..").FieldTextAlign>;
|
|
93
93
|
placeholder: StringConstructor;
|
|
94
94
|
autocomplete: StringConstructor;
|
|
95
95
|
autocapitalize: StringConstructor;
|
|
96
96
|
autocorrect: StringConstructor;
|
|
97
97
|
errorMessage: StringConstructor;
|
|
98
|
-
enterkeyhint: import("vue").PropType<import("
|
|
98
|
+
enterkeyhint: import("vue").PropType<import("..").FieldEnterKeyHint>;
|
|
99
99
|
clearTrigger: {
|
|
100
|
-
type: import("vue").PropType<import("
|
|
101
|
-
default: import("
|
|
100
|
+
type: import("vue").PropType<import("..").FieldClearTrigger>;
|
|
101
|
+
default: import("..").FieldClearTrigger;
|
|
102
102
|
};
|
|
103
103
|
formatTrigger: {
|
|
104
|
-
type: import("vue").PropType<import("
|
|
105
|
-
default: import("
|
|
104
|
+
type: import("vue").PropType<import("..").FieldFormatTrigger>;
|
|
105
|
+
default: import("..").FieldFormatTrigger;
|
|
106
106
|
};
|
|
107
107
|
spellcheck: {
|
|
108
108
|
type: BooleanConstructor;
|
|
@@ -157,20 +157,20 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
157
157
|
type: (NumberConstructor | StringConstructor)[];
|
|
158
158
|
default: string;
|
|
159
159
|
};
|
|
160
|
-
inputAlign: import("vue").PropType<import("
|
|
160
|
+
inputAlign: import("vue").PropType<import("..").FieldTextAlign>;
|
|
161
161
|
placeholder: StringConstructor;
|
|
162
162
|
autocomplete: StringConstructor;
|
|
163
163
|
autocapitalize: StringConstructor;
|
|
164
164
|
autocorrect: StringConstructor;
|
|
165
165
|
errorMessage: StringConstructor;
|
|
166
|
-
enterkeyhint: import("vue").PropType<import("
|
|
166
|
+
enterkeyhint: import("vue").PropType<import("..").FieldEnterKeyHint>;
|
|
167
167
|
clearTrigger: {
|
|
168
|
-
type: import("vue").PropType<import("
|
|
169
|
-
default: import("
|
|
168
|
+
type: import("vue").PropType<import("..").FieldClearTrigger>;
|
|
169
|
+
default: import("..").FieldClearTrigger;
|
|
170
170
|
};
|
|
171
171
|
formatTrigger: {
|
|
172
|
-
type: import("vue").PropType<import("
|
|
173
|
-
default: import("
|
|
172
|
+
type: import("vue").PropType<import("..").FieldFormatTrigger>;
|
|
173
|
+
default: import("..").FieldFormatTrigger;
|
|
174
174
|
};
|
|
175
175
|
spellcheck: {
|
|
176
176
|
type: BooleanConstructor;
|
|
@@ -224,8 +224,8 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
224
224
|
clearable: boolean;
|
|
225
225
|
clearIcon: string;
|
|
226
226
|
modelValue: string | number;
|
|
227
|
-
clearTrigger: import("
|
|
228
|
-
formatTrigger: import("
|
|
227
|
+
clearTrigger: import("..").FieldClearTrigger;
|
|
228
|
+
formatTrigger: import("..").FieldFormatTrigger;
|
|
229
229
|
spellcheck: boolean;
|
|
230
230
|
error: boolean;
|
|
231
231
|
readonly: boolean;
|
|
@@ -29,10 +29,10 @@ export declare const timePickerProps: {
|
|
|
29
29
|
type: PropType<string[]>;
|
|
30
30
|
default: () => never[];
|
|
31
31
|
};
|
|
32
|
-
filter: PropType<(columnType: string, options: import("
|
|
32
|
+
filter: PropType<(columnType: string, options: import("..").PickerOption[], values: string[]) => import("..").PickerOption[]>;
|
|
33
33
|
formatter: {
|
|
34
|
-
type: PropType<(type: string, option: import("
|
|
35
|
-
default: (type: string, option: import("
|
|
34
|
+
type: PropType<(type: string, option: import("..").PickerOption) => import("..").PickerOption>;
|
|
35
|
+
default: (type: string, option: import("..").PickerOption) => import("..").PickerOption;
|
|
36
36
|
};
|
|
37
37
|
} & {
|
|
38
38
|
minHour: {
|
|
@@ -107,10 +107,10 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
107
107
|
type: PropType<string[]>;
|
|
108
108
|
default: () => never[];
|
|
109
109
|
};
|
|
110
|
-
filter: PropType<(columnType: string, options: import("
|
|
110
|
+
filter: PropType<(columnType: string, options: import("..").PickerOption[], values: string[]) => import("..").PickerOption[]>;
|
|
111
111
|
formatter: {
|
|
112
|
-
type: PropType<(type: string, option: import("
|
|
113
|
-
default: (type: string, option: import("
|
|
112
|
+
type: PropType<(type: string, option: import("..").PickerOption) => import("..").PickerOption>;
|
|
113
|
+
default: (type: string, option: import("..").PickerOption) => import("..").PickerOption;
|
|
114
114
|
};
|
|
115
115
|
} & {
|
|
116
116
|
minHour: {
|
|
@@ -178,10 +178,10 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
178
178
|
type: PropType<string[]>;
|
|
179
179
|
default: () => never[];
|
|
180
180
|
};
|
|
181
|
-
filter: PropType<(columnType: string, options: import("
|
|
181
|
+
filter: PropType<(columnType: string, options: import("..").PickerOption[], values: string[]) => import("..").PickerOption[]>;
|
|
182
182
|
formatter: {
|
|
183
|
-
type: PropType<(type: string, option: import("
|
|
184
|
-
default: (type: string, option: import("
|
|
183
|
+
type: PropType<(type: string, option: import("..").PickerOption) => import("..").PickerOption>;
|
|
184
|
+
default: (type: string, option: import("..").PickerOption) => import("..").PickerOption;
|
|
185
185
|
};
|
|
186
186
|
} & {
|
|
187
187
|
minHour: {
|
|
@@ -226,7 +226,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
226
226
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
227
227
|
onConfirm?: ((...args: any[]) => any) | undefined;
|
|
228
228
|
}>, {
|
|
229
|
-
formatter: (type: string, option: import("
|
|
229
|
+
formatter: (type: string, option: import("..").PickerOption) => import("..").PickerOption;
|
|
230
230
|
modelValue: string[];
|
|
231
231
|
readonly: boolean;
|
|
232
232
|
loading: boolean;
|
package/es/utils/basic.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export type Numeric = number | string;
|
|
|
11
11
|
export type ComponentInstance = ComponentPublicInstance<{}, any>;
|
|
12
12
|
export declare const isObject: (val: unknown) => val is Record<any, any>;
|
|
13
13
|
export declare const isDef: <T>(val: T) => val is NonNullable<T>;
|
|
14
|
-
export declare const isFunction: (val: unknown) => val is
|
|
14
|
+
export declare const isFunction: (val: unknown) => val is (...args: any[]) => any;
|
|
15
15
|
export declare const isPromise: <T = any>(val: unknown) => val is Promise<T>;
|
|
16
16
|
export declare const isDate: (val: unknown) => val is Date;
|
|
17
17
|
export declare function isMobile(value: string): boolean;
|
package/lib/cell/Cell.js
CHANGED
|
@@ -115,7 +115,7 @@ var stdin_default = (0, import_vue.defineComponent)({
|
|
|
115
115
|
}
|
|
116
116
|
};
|
|
117
117
|
return () => {
|
|
118
|
-
var _a;
|
|
118
|
+
var _a, _b, _c;
|
|
119
119
|
const {
|
|
120
120
|
tag,
|
|
121
121
|
size,
|
|
@@ -124,7 +124,7 @@ var stdin_default = (0, import_vue.defineComponent)({
|
|
|
124
124
|
isLink,
|
|
125
125
|
required
|
|
126
126
|
} = props;
|
|
127
|
-
const clickable = (_a = props.clickable) != null ? _a : isLink;
|
|
127
|
+
const clickable = Boolean((_c = (_b = (_a = props.clickable) != null ? _a : props.to) != null ? _b : props.url) != null ? _c : isLink);
|
|
128
128
|
const classes = {
|
|
129
129
|
center,
|
|
130
130
|
required: !!required,
|
|
@@ -5,7 +5,7 @@ export declare const collapseItemProps: {
|
|
|
5
5
|
default: keyof HTMLElementTagNameMap;
|
|
6
6
|
};
|
|
7
7
|
icon: StringConstructor;
|
|
8
|
-
size: import("vue").PropType<import("
|
|
8
|
+
size: import("vue").PropType<import("..").CellSize>;
|
|
9
9
|
title: (NumberConstructor | StringConstructor)[];
|
|
10
10
|
value: (NumberConstructor | StringConstructor)[];
|
|
11
11
|
label: (NumberConstructor | StringConstructor)[];
|
|
@@ -20,7 +20,7 @@ export declare const collapseItemProps: {
|
|
|
20
20
|
labelClass: import("vue").PropType<unknown>;
|
|
21
21
|
titleClass: import("vue").PropType<unknown>;
|
|
22
22
|
titleStyle: import("vue").PropType<string | import("vue").CSSProperties>;
|
|
23
|
-
arrowDirection: import("vue").PropType<import("
|
|
23
|
+
arrowDirection: import("vue").PropType<import("..").CellArrowDirection>;
|
|
24
24
|
required: {
|
|
25
25
|
type: import("vue").PropType<boolean | "auto">;
|
|
26
26
|
default: null;
|
|
@@ -49,7 +49,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
49
49
|
default: keyof HTMLElementTagNameMap;
|
|
50
50
|
};
|
|
51
51
|
icon: StringConstructor;
|
|
52
|
-
size: import("vue").PropType<import("
|
|
52
|
+
size: import("vue").PropType<import("..").CellSize>;
|
|
53
53
|
title: (NumberConstructor | StringConstructor)[];
|
|
54
54
|
value: (NumberConstructor | StringConstructor)[];
|
|
55
55
|
label: (NumberConstructor | StringConstructor)[];
|
|
@@ -64,7 +64,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
64
64
|
labelClass: import("vue").PropType<unknown>;
|
|
65
65
|
titleClass: import("vue").PropType<unknown>;
|
|
66
66
|
titleStyle: import("vue").PropType<string | import("vue").CSSProperties>;
|
|
67
|
-
arrowDirection: import("vue").PropType<import("
|
|
67
|
+
arrowDirection: import("vue").PropType<import("..").CellArrowDirection>;
|
|
68
68
|
required: {
|
|
69
69
|
type: import("vue").PropType<boolean | "auto">;
|
|
70
70
|
default: null;
|
|
@@ -91,7 +91,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
91
91
|
default: keyof HTMLElementTagNameMap;
|
|
92
92
|
};
|
|
93
93
|
icon: StringConstructor;
|
|
94
|
-
size: import("vue").PropType<import("
|
|
94
|
+
size: import("vue").PropType<import("..").CellSize>;
|
|
95
95
|
title: (NumberConstructor | StringConstructor)[];
|
|
96
96
|
value: (NumberConstructor | StringConstructor)[];
|
|
97
97
|
label: (NumberConstructor | StringConstructor)[];
|
|
@@ -106,7 +106,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
106
106
|
labelClass: import("vue").PropType<unknown>;
|
|
107
107
|
titleClass: import("vue").PropType<unknown>;
|
|
108
108
|
titleStyle: import("vue").PropType<string | import("vue").CSSProperties>;
|
|
109
|
-
arrowDirection: import("vue").PropType<import("
|
|
109
|
+
arrowDirection: import("vue").PropType<import("..").CellArrowDirection>;
|
|
110
110
|
required: {
|
|
111
111
|
type: import("vue").PropType<boolean | "auto">;
|
|
112
112
|
default: null;
|
|
@@ -29,10 +29,10 @@ export declare const datePickerProps: {
|
|
|
29
29
|
type: PropType<string[]>;
|
|
30
30
|
default: () => never[];
|
|
31
31
|
};
|
|
32
|
-
filter: PropType<(columnType: string, options: import("
|
|
32
|
+
filter: PropType<(columnType: string, options: import("..").PickerOption[], values: string[]) => import("..").PickerOption[]>;
|
|
33
33
|
formatter: {
|
|
34
|
-
type: PropType<(type: string, option: import("
|
|
35
|
-
default: (type: string, option: import("
|
|
34
|
+
type: PropType<(type: string, option: import("..").PickerOption) => import("..").PickerOption>;
|
|
35
|
+
default: (type: string, option: import("..").PickerOption) => import("..").PickerOption;
|
|
36
36
|
};
|
|
37
37
|
} & {
|
|
38
38
|
columnsType: {
|
|
@@ -85,10 +85,10 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
85
85
|
type: PropType<string[]>;
|
|
86
86
|
default: () => never[];
|
|
87
87
|
};
|
|
88
|
-
filter: PropType<(columnType: string, options: import("
|
|
88
|
+
filter: PropType<(columnType: string, options: import("..").PickerOption[], values: string[]) => import("..").PickerOption[]>;
|
|
89
89
|
formatter: {
|
|
90
|
-
type: PropType<(type: string, option: import("
|
|
91
|
-
default: (type: string, option: import("
|
|
90
|
+
type: PropType<(type: string, option: import("..").PickerOption) => import("..").PickerOption>;
|
|
91
|
+
default: (type: string, option: import("..").PickerOption) => import("..").PickerOption;
|
|
92
92
|
};
|
|
93
93
|
} & {
|
|
94
94
|
columnsType: {
|
|
@@ -134,10 +134,10 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
134
134
|
type: PropType<string[]>;
|
|
135
135
|
default: () => never[];
|
|
136
136
|
};
|
|
137
|
-
filter: PropType<(columnType: string, options: import("
|
|
137
|
+
filter: PropType<(columnType: string, options: import("..").PickerOption[], values: string[]) => import("..").PickerOption[]>;
|
|
138
138
|
formatter: {
|
|
139
|
-
type: PropType<(type: string, option: import("
|
|
140
|
-
default: (type: string, option: import("
|
|
139
|
+
type: PropType<(type: string, option: import("..").PickerOption) => import("..").PickerOption>;
|
|
140
|
+
default: (type: string, option: import("..").PickerOption) => import("..").PickerOption;
|
|
141
141
|
};
|
|
142
142
|
} & {
|
|
143
143
|
columnsType: {
|
|
@@ -160,7 +160,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
160
160
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
161
161
|
onConfirm?: ((...args: any[]) => any) | undefined;
|
|
162
162
|
}>, {
|
|
163
|
-
formatter: (type: string, option: import("
|
|
163
|
+
formatter: (type: string, option: import("..").PickerOption) => import("..").PickerOption;
|
|
164
164
|
modelValue: string[];
|
|
165
165
|
readonly: boolean;
|
|
166
166
|
loading: boolean;
|
package/lib/field/Field.d.ts
CHANGED
|
@@ -58,7 +58,7 @@ export declare const fieldProps: {
|
|
|
58
58
|
default: keyof HTMLElementTagNameMap;
|
|
59
59
|
};
|
|
60
60
|
icon: StringConstructor;
|
|
61
|
-
size: PropType<import("
|
|
61
|
+
size: PropType<import("..").CellSize>;
|
|
62
62
|
title: (NumberConstructor | StringConstructor)[];
|
|
63
63
|
value: (NumberConstructor | StringConstructor)[];
|
|
64
64
|
label: (NumberConstructor | StringConstructor)[];
|
|
@@ -73,7 +73,7 @@ export declare const fieldProps: {
|
|
|
73
73
|
labelClass: PropType<unknown>;
|
|
74
74
|
titleClass: PropType<unknown>;
|
|
75
75
|
titleStyle: PropType<string | import("vue").CSSProperties>;
|
|
76
|
-
arrowDirection: PropType<import("
|
|
76
|
+
arrowDirection: PropType<import("..").CellArrowDirection>;
|
|
77
77
|
required: {
|
|
78
78
|
type: PropType<boolean | "auto">;
|
|
79
79
|
default: null;
|
|
@@ -158,7 +158,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
158
158
|
default: keyof HTMLElementTagNameMap;
|
|
159
159
|
};
|
|
160
160
|
icon: StringConstructor;
|
|
161
|
-
size: PropType<import("
|
|
161
|
+
size: PropType<import("..").CellSize>;
|
|
162
162
|
title: (NumberConstructor | StringConstructor)[];
|
|
163
163
|
value: (NumberConstructor | StringConstructor)[];
|
|
164
164
|
label: (NumberConstructor | StringConstructor)[];
|
|
@@ -173,7 +173,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
173
173
|
labelClass: PropType<unknown>;
|
|
174
174
|
titleClass: PropType<unknown>;
|
|
175
175
|
titleStyle: PropType<string | import("vue").CSSProperties>;
|
|
176
|
-
arrowDirection: PropType<import("
|
|
176
|
+
arrowDirection: PropType<import("..").CellArrowDirection>;
|
|
177
177
|
required: {
|
|
178
178
|
type: PropType<boolean | "auto">;
|
|
179
179
|
default: null;
|
|
@@ -256,7 +256,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
256
256
|
default: keyof HTMLElementTagNameMap;
|
|
257
257
|
};
|
|
258
258
|
icon: StringConstructor;
|
|
259
|
-
size: PropType<import("
|
|
259
|
+
size: PropType<import("..").CellSize>;
|
|
260
260
|
title: (NumberConstructor | StringConstructor)[];
|
|
261
261
|
value: (NumberConstructor | StringConstructor)[];
|
|
262
262
|
label: (NumberConstructor | StringConstructor)[];
|
|
@@ -271,7 +271,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
271
271
|
labelClass: PropType<unknown>;
|
|
272
272
|
titleClass: PropType<unknown>;
|
|
273
273
|
titleStyle: PropType<string | import("vue").CSSProperties>;
|
|
274
|
-
arrowDirection: PropType<import("
|
|
274
|
+
arrowDirection: PropType<import("..").CellArrowDirection>;
|
|
275
275
|
required: {
|
|
276
276
|
type: PropType<boolean | "auto">;
|
|
277
277
|
default: null;
|
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
|
@@ -226,7 +226,7 @@ __reExport(stdin_exports, require("./toast"), module.exports);
|
|
|
226
226
|
__reExport(stdin_exports, require("./tree-select"), module.exports);
|
|
227
227
|
__reExport(stdin_exports, require("./uploader"), module.exports);
|
|
228
228
|
__reExport(stdin_exports, require("./watermark"), module.exports);
|
|
229
|
-
const version = "4.10.
|
|
229
|
+
const version = "4.10.2";
|
|
230
230
|
function install(app) {
|
|
231
231
|
const components = [
|
|
232
232
|
import_action_bar.ActionBar,
|
package/lib/locale/lang/de-DE.js
CHANGED
|
@@ -38,7 +38,7 @@ var stdin_default = {
|
|
|
38
38
|
end: "Ende",
|
|
39
39
|
start: "Start",
|
|
40
40
|
title: "Kalender",
|
|
41
|
-
weekdays: ["So", "Mo", "Di", "
|
|
41
|
+
weekdays: ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"],
|
|
42
42
|
monthTitle: (year, month) => `${year}/${month}`,
|
|
43
43
|
rangePrompt: (maxRange) => `W\xE4hle nicht mehr als ${maxRange} Tage`
|
|
44
44
|
},
|