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/lib/locale/lang/ja-JP.js
CHANGED
|
@@ -66,8 +66,8 @@ var stdin_default = {
|
|
|
66
66
|
count: (count) => `${count}\u679A\u304C\u5229\u7528\u53EF\u80FD`
|
|
67
67
|
},
|
|
68
68
|
vanCouponList: {
|
|
69
|
-
exchange: "\
|
|
70
|
-
close: "\u4F7F\u7528\
|
|
69
|
+
exchange: "\u4EA4\u63DB",
|
|
70
|
+
close: "\u4F7F\u7528\u3057\u306A\u3044",
|
|
71
71
|
enable: "\u5229\u7528\u53EF\u80FD",
|
|
72
72
|
disabled: "\u5229\u7528\u3067\u304D\u307E\u305B\u3093",
|
|
73
73
|
placeholder: "\u5272\u5F15\u30B3\u30FC\u30C9\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044"
|
package/lib/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/lib/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/lib/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/vant.cjs.js
CHANGED
|
@@ -3827,7 +3827,7 @@ var stdin_default$1x = vue.defineComponent({
|
|
|
3827
3827
|
}
|
|
3828
3828
|
};
|
|
3829
3829
|
return () => {
|
|
3830
|
-
var _a;
|
|
3830
|
+
var _a, _b, _c;
|
|
3831
3831
|
const {
|
|
3832
3832
|
tag,
|
|
3833
3833
|
size,
|
|
@@ -3836,7 +3836,7 @@ var stdin_default$1x = vue.defineComponent({
|
|
|
3836
3836
|
isLink,
|
|
3837
3837
|
required
|
|
3838
3838
|
} = props2;
|
|
3839
|
-
const clickable = (_a = props2.clickable) != null ? _a : isLink;
|
|
3839
|
+
const clickable = Boolean((_c = (_b = (_a = props2.clickable) != null ? _a : props2.to) != null ? _b : props2.url) != null ? _c : isLink);
|
|
3840
3840
|
const classes = {
|
|
3841
3841
|
center,
|
|
3842
3842
|
required: !!required,
|
|
@@ -17206,7 +17206,7 @@ const Lazyload = {
|
|
|
17206
17206
|
});
|
|
17207
17207
|
}
|
|
17208
17208
|
};
|
|
17209
|
-
const version = "4.10.
|
|
17209
|
+
const version = "4.10.2";
|
|
17210
17210
|
function install(app) {
|
|
17211
17211
|
const components = [
|
|
17212
17212
|
ActionBar,
|
package/lib/vant.es.js
CHANGED
|
@@ -3825,7 +3825,7 @@ var stdin_default$1x = defineComponent({
|
|
|
3825
3825
|
}
|
|
3826
3826
|
};
|
|
3827
3827
|
return () => {
|
|
3828
|
-
var _a;
|
|
3828
|
+
var _a, _b, _c;
|
|
3829
3829
|
const {
|
|
3830
3830
|
tag,
|
|
3831
3831
|
size,
|
|
@@ -3834,7 +3834,7 @@ var stdin_default$1x = defineComponent({
|
|
|
3834
3834
|
isLink,
|
|
3835
3835
|
required
|
|
3836
3836
|
} = props2;
|
|
3837
|
-
const clickable = (_a = props2.clickable) != null ? _a : isLink;
|
|
3837
|
+
const clickable = Boolean((_c = (_b = (_a = props2.clickable) != null ? _a : props2.to) != null ? _b : props2.url) != null ? _c : isLink);
|
|
3838
3838
|
const classes = {
|
|
3839
3839
|
center,
|
|
3840
3840
|
required: !!required,
|
|
@@ -17204,7 +17204,7 @@ const Lazyload = {
|
|
|
17204
17204
|
});
|
|
17205
17205
|
}
|
|
17206
17206
|
};
|
|
17207
|
-
const version = "4.10.
|
|
17207
|
+
const version = "4.10.2";
|
|
17208
17208
|
function install(app) {
|
|
17209
17209
|
const components = [
|
|
17210
17210
|
ActionBar,
|
package/lib/vant.js
CHANGED
|
@@ -2365,7 +2365,7 @@
|
|
|
2365
2365
|
return propRef;
|
|
2366
2366
|
};
|
|
2367
2367
|
/**
|
|
2368
|
-
* @vue/shared v3.5.
|
|
2368
|
+
* @vue/shared v3.5.42
|
|
2369
2369
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
2370
2370
|
* @license MIT
|
|
2371
2371
|
**/
|
|
@@ -4254,7 +4254,7 @@
|
|
|
4254
4254
|
}
|
|
4255
4255
|
};
|
|
4256
4256
|
return () => {
|
|
4257
|
-
var _a;
|
|
4257
|
+
var _a, _b, _c;
|
|
4258
4258
|
const {
|
|
4259
4259
|
tag,
|
|
4260
4260
|
size,
|
|
@@ -4263,7 +4263,7 @@
|
|
|
4263
4263
|
isLink,
|
|
4264
4264
|
required
|
|
4265
4265
|
} = props2;
|
|
4266
|
-
const clickable = (_a = props2.clickable) != null ? _a : isLink;
|
|
4266
|
+
const clickable = Boolean((_c = (_b = (_a = props2.clickable) != null ? _a : props2.to) != null ? _b : props2.url) != null ? _c : isLink);
|
|
4267
4267
|
const classes = {
|
|
4268
4268
|
center,
|
|
4269
4269
|
required: !!required,
|
|
@@ -18323,7 +18323,7 @@
|
|
|
18323
18323
|
});
|
|
18324
18324
|
}
|
|
18325
18325
|
};
|
|
18326
|
-
const version = "4.10.
|
|
18326
|
+
const version = "4.10.2";
|
|
18327
18327
|
function install(app) {
|
|
18328
18328
|
const components = [
|
|
18329
18329
|
ActionBar,
|