vant 4.9.1 → 4.9.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/es/action-bar-button/ActionBarButton.d.ts +3 -3
- package/es/action-bar-button/index.d.ts +2 -2
- package/es/action-bar-icon/ActionBarIcon.d.ts +3 -3
- package/es/action-bar-icon/index.d.ts +2 -2
- package/es/button/Button.d.ts +3 -3
- package/es/button/index.d.ts +2 -2
- package/es/card/Card.mjs +3 -3
- package/es/cell/Cell.d.ts +3 -3
- package/es/cell/index.d.ts +2 -2
- package/es/composables/use-route.d.ts +1 -2
- package/es/form/Form.d.ts +3 -0
- package/es/form/Form.mjs +9 -2
- package/es/form/index.d.ts +2 -0
- package/es/grid-item/GridItem.d.ts +3 -3
- package/es/grid-item/index.d.ts +2 -2
- package/es/index.d.ts +1 -1
- package/es/index.mjs +1 -1
- package/es/notify/types.d.ts +3 -0
- package/es/sidebar-item/SidebarItem.d.ts +3 -3
- package/es/sidebar-item/index.d.ts +2 -2
- package/es/tab/Tab.d.ts +3 -3
- package/es/tab/index.d.ts +2 -2
- package/es/tabbar-item/TabbarItem.d.ts +3 -3
- package/es/tabbar-item/index.d.ts +2 -2
- package/es/tabs/utils.mjs +3 -1
- package/es/uploader/index.d.ts +1 -1
- package/lib/action-bar-button/ActionBarButton.d.ts +3 -3
- package/lib/action-bar-button/index.d.ts +2 -2
- package/lib/action-bar-icon/ActionBarIcon.d.ts +3 -3
- package/lib/action-bar-icon/index.d.ts +2 -2
- package/lib/button/Button.d.ts +3 -3
- package/lib/button/index.d.ts +2 -2
- package/lib/card/Card.js +2 -2
- package/lib/cell/Cell.d.ts +3 -3
- package/lib/cell/index.d.ts +2 -2
- package/lib/composables/use-route.d.ts +1 -2
- package/lib/form/Form.d.ts +3 -0
- package/lib/form/Form.js +9 -2
- package/lib/form/index.d.ts +2 -0
- package/lib/grid-item/GridItem.d.ts +3 -3
- package/lib/grid-item/index.d.ts +2 -2
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/notify/types.d.ts +3 -0
- package/lib/sidebar-item/SidebarItem.d.ts +3 -3
- package/lib/sidebar-item/index.d.ts +2 -2
- package/lib/tab/Tab.d.ts +3 -3
- package/lib/tab/index.d.ts +2 -2
- package/lib/tabbar-item/TabbarItem.d.ts +3 -3
- package/lib/tabbar-item/index.d.ts +2 -2
- package/lib/tabs/utils.js +3 -1
- package/lib/uploader/index.d.ts +1 -1
- package/lib/vant.cjs.js +15 -6
- package/lib/vant.es.js +15 -6
- package/lib/vant.js +16 -7
- package/lib/vant.min.js +2 -2
- package/lib/web-types.json +1 -1
- package/package.json +12 -12
package/lib/button/Button.d.ts
CHANGED
@@ -2,7 +2,7 @@ import { type PropType, type ExtractPropTypes } from 'vue';
|
|
2
2
|
import { LoadingType } from '../loading';
|
3
3
|
import { ButtonSize, ButtonType, ButtonNativeType, ButtonIconPosition } from './types';
|
4
4
|
export declare const buttonProps: {
|
5
|
-
to: PropType<import("vue-router").
|
5
|
+
to: PropType<string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric>;
|
6
6
|
url: StringConstructor;
|
7
7
|
replace: BooleanConstructor;
|
8
8
|
} & {
|
@@ -43,7 +43,7 @@ export declare const buttonProps: {
|
|
43
43
|
};
|
44
44
|
export type ButtonProps = ExtractPropTypes<typeof buttonProps>;
|
45
45
|
declare const _default: import("vue").DefineComponent<{
|
46
|
-
to: PropType<import("vue-router").
|
46
|
+
to: PropType<string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric>;
|
47
47
|
url: StringConstructor;
|
48
48
|
replace: BooleanConstructor;
|
49
49
|
} & {
|
@@ -82,7 +82,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
82
82
|
default: ButtonIconPosition;
|
83
83
|
};
|
84
84
|
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
85
|
-
to: PropType<import("vue-router").
|
85
|
+
to: PropType<string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric>;
|
86
86
|
url: StringConstructor;
|
87
87
|
replace: BooleanConstructor;
|
88
88
|
} & {
|
package/lib/button/index.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
export declare const Button: import("../utils").WithInstall<import("vue").DefineComponent<{
|
2
|
-
to: import("vue").PropType<import("vue-router").
|
2
|
+
to: import("vue").PropType<string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric>;
|
3
3
|
url: StringConstructor;
|
4
4
|
replace: BooleanConstructor;
|
5
5
|
} & {
|
@@ -38,7 +38,7 @@ export declare const Button: import("../utils").WithInstall<import("vue").Define
|
|
38
38
|
default: import("./types").ButtonIconPosition;
|
39
39
|
};
|
40
40
|
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
41
|
-
to: import("vue").PropType<import("vue-router").
|
41
|
+
to: import("vue").PropType<string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric>;
|
42
42
|
url: StringConstructor;
|
43
43
|
replace: BooleanConstructor;
|
44
44
|
} & {
|
package/lib/card/Card.js
CHANGED
@@ -107,9 +107,9 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
107
107
|
"class": bem("price-currency")
|
108
108
|
}, [props.currency]), (0, import_vue.createVNode)("span", {
|
109
109
|
"class": bem("price-integer")
|
110
|
-
}, [priceArr[0]]), (0, import_vue.createTextVNode)("."), (0, import_vue.createVNode)("span", {
|
110
|
+
}, [priceArr[0]]), priceArr.length > 1 && (0, import_vue.createVNode)(import_vue.Fragment, null, [(0, import_vue.createTextVNode)("."), (0, import_vue.createVNode)("span", {
|
111
111
|
"class": bem("price-decimal")
|
112
|
-
}, [priceArr[1]])]);
|
112
|
+
}, [priceArr[1]])])]);
|
113
113
|
};
|
114
114
|
return () => {
|
115
115
|
var _a, _b, _c;
|
package/lib/cell/Cell.d.ts
CHANGED
@@ -63,7 +63,7 @@ export declare const cellProps: {
|
|
63
63
|
default: null;
|
64
64
|
};
|
65
65
|
} & {
|
66
|
-
to: PropType<import("vue-router").
|
66
|
+
to: PropType<string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric>;
|
67
67
|
url: StringConstructor;
|
68
68
|
replace: BooleanConstructor;
|
69
69
|
};
|
@@ -99,7 +99,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
99
99
|
default: null;
|
100
100
|
};
|
101
101
|
} & {
|
102
|
-
to: PropType<import("vue-router").
|
102
|
+
to: PropType<string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric>;
|
103
103
|
url: StringConstructor;
|
104
104
|
replace: BooleanConstructor;
|
105
105
|
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
@@ -133,7 +133,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
133
133
|
default: null;
|
134
134
|
};
|
135
135
|
} & {
|
136
|
-
to: PropType<import("vue-router").
|
136
|
+
to: PropType<string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric>;
|
137
137
|
url: StringConstructor;
|
138
138
|
replace: BooleanConstructor;
|
139
139
|
}>>, {
|
package/lib/cell/index.d.ts
CHANGED
@@ -29,7 +29,7 @@ export declare const Cell: import("../utils").WithInstall<import("vue").DefineCo
|
|
29
29
|
default: null;
|
30
30
|
};
|
31
31
|
} & {
|
32
|
-
to: import("vue").PropType<import("vue-router").
|
32
|
+
to: import("vue").PropType<string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric>;
|
33
33
|
url: StringConstructor;
|
34
34
|
replace: BooleanConstructor;
|
35
35
|
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
@@ -63,7 +63,7 @@ export declare const Cell: import("../utils").WithInstall<import("vue").DefineCo
|
|
63
63
|
default: null;
|
64
64
|
};
|
65
65
|
} & {
|
66
|
-
to: import("vue").PropType<import("vue-router").
|
66
|
+
to: import("vue").PropType<string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric>;
|
67
67
|
url: StringConstructor;
|
68
68
|
replace: BooleanConstructor;
|
69
69
|
}>>, {
|
@@ -2,9 +2,8 @@
|
|
2
2
|
* Vue Router support
|
3
3
|
*/
|
4
4
|
import { type PropType, type ExtractPropTypes, type ComponentPublicInstance } from 'vue';
|
5
|
-
import type { RouteLocationRaw } from 'vue-router';
|
6
5
|
export declare const routeProps: {
|
7
|
-
to: PropType<
|
6
|
+
to: PropType<string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric>;
|
8
7
|
url: StringConstructor;
|
9
8
|
replace: BooleanConstructor;
|
10
9
|
};
|
package/lib/form/Form.d.ts
CHANGED
@@ -10,6 +10,7 @@ export declare const formProps: {
|
|
10
10
|
labelAlign: PropType<FieldTextAlign>;
|
11
11
|
inputAlign: PropType<FieldTextAlign>;
|
12
12
|
scrollToError: BooleanConstructor;
|
13
|
+
scrollToErrorPosition: PropType<ScrollLogicalPosition>;
|
13
14
|
validateFirst: BooleanConstructor;
|
14
15
|
submitOnEnter: {
|
15
16
|
type: BooleanConstructor;
|
@@ -36,6 +37,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
36
37
|
labelAlign: PropType<FieldTextAlign>;
|
37
38
|
inputAlign: PropType<FieldTextAlign>;
|
38
39
|
scrollToError: BooleanConstructor;
|
40
|
+
scrollToErrorPosition: PropType<ScrollLogicalPosition>;
|
39
41
|
validateFirst: BooleanConstructor;
|
40
42
|
submitOnEnter: {
|
41
43
|
type: BooleanConstructor;
|
@@ -60,6 +62,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
60
62
|
labelAlign: PropType<FieldTextAlign>;
|
61
63
|
inputAlign: PropType<FieldTextAlign>;
|
62
64
|
scrollToError: BooleanConstructor;
|
65
|
+
scrollToErrorPosition: PropType<ScrollLogicalPosition>;
|
63
66
|
validateFirst: BooleanConstructor;
|
64
67
|
submitOnEnter: {
|
65
68
|
type: BooleanConstructor;
|
package/lib/form/Form.js
CHANGED
@@ -37,6 +37,7 @@ const formProps = {
|
|
37
37
|
labelAlign: String,
|
38
38
|
inputAlign: String,
|
39
39
|
scrollToError: Boolean,
|
40
|
+
scrollToErrorPosition: String,
|
40
41
|
validateFirst: Boolean,
|
41
42
|
submitOnEnter: import_utils.truthProp,
|
42
43
|
showErrorMessage: import_utils.truthProp,
|
@@ -150,8 +151,14 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
150
151
|
values,
|
151
152
|
errors
|
152
153
|
});
|
153
|
-
|
154
|
-
|
154
|
+
const {
|
155
|
+
scrollToError,
|
156
|
+
scrollToErrorPosition
|
157
|
+
} = props;
|
158
|
+
if (scrollToError && errors[0].name) {
|
159
|
+
scrollToField(errors[0].name, scrollToErrorPosition ? {
|
160
|
+
block: scrollToErrorPosition
|
161
|
+
} : void 0);
|
155
162
|
}
|
156
163
|
});
|
157
164
|
};
|
package/lib/form/index.d.ts
CHANGED
@@ -9,6 +9,7 @@ export declare const Form: import("../utils").WithInstall<import("vue").DefineCo
|
|
9
9
|
labelAlign: import("vue").PropType<import("..").FieldTextAlign>;
|
10
10
|
inputAlign: import("vue").PropType<import("..").FieldTextAlign>;
|
11
11
|
scrollToError: BooleanConstructor;
|
12
|
+
scrollToErrorPosition: import("vue").PropType<ScrollLogicalPosition>;
|
12
13
|
validateFirst: BooleanConstructor;
|
13
14
|
submitOnEnter: {
|
14
15
|
type: BooleanConstructor;
|
@@ -33,6 +34,7 @@ export declare const Form: import("../utils").WithInstall<import("vue").DefineCo
|
|
33
34
|
labelAlign: import("vue").PropType<import("..").FieldTextAlign>;
|
34
35
|
inputAlign: import("vue").PropType<import("..").FieldTextAlign>;
|
35
36
|
scrollToError: BooleanConstructor;
|
37
|
+
scrollToErrorPosition: import("vue").PropType<ScrollLogicalPosition>;
|
36
38
|
validateFirst: BooleanConstructor;
|
37
39
|
submitOnEnter: {
|
38
40
|
type: BooleanConstructor;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { type PropType, type ExtractPropTypes } from 'vue';
|
2
2
|
import { type BadgeProps } from '../badge';
|
3
3
|
export declare const gridItemProps: {
|
4
|
-
to: PropType<import("vue-router").
|
4
|
+
to: PropType<string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric>;
|
5
5
|
url: StringConstructor;
|
6
6
|
replace: BooleanConstructor;
|
7
7
|
} & {
|
@@ -15,7 +15,7 @@ export declare const gridItemProps: {
|
|
15
15
|
};
|
16
16
|
export type GridItemProps = ExtractPropTypes<typeof gridItemProps>;
|
17
17
|
declare const _default: import("vue").DefineComponent<{
|
18
|
-
to: PropType<import("vue-router").
|
18
|
+
to: PropType<string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric>;
|
19
19
|
url: StringConstructor;
|
20
20
|
replace: BooleanConstructor;
|
21
21
|
} & {
|
@@ -27,7 +27,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
27
27
|
iconPrefix: StringConstructor;
|
28
28
|
badgeProps: PropType<Partial<BadgeProps>>;
|
29
29
|
}, (() => import("vue/jsx-runtime").JSX.Element) | undefined, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
30
|
-
to: PropType<import("vue-router").
|
30
|
+
to: PropType<string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric>;
|
31
31
|
url: StringConstructor;
|
32
32
|
replace: BooleanConstructor;
|
33
33
|
} & {
|
package/lib/grid-item/index.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
export declare const GridItem: import("../utils").WithInstall<import("vue").DefineComponent<{
|
2
|
-
to: import("vue").PropType<import("vue-router").
|
2
|
+
to: import("vue").PropType<string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric>;
|
3
3
|
url: StringConstructor;
|
4
4
|
replace: BooleanConstructor;
|
5
5
|
} & {
|
@@ -11,7 +11,7 @@ export declare const GridItem: import("../utils").WithInstall<import("vue").Defi
|
|
11
11
|
iconPrefix: StringConstructor;
|
12
12
|
badgeProps: import("vue").PropType<Partial<import("..").BadgeProps>>;
|
13
13
|
}, (() => import("vue/jsx-runtime").JSX.Element) | undefined, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
14
|
-
to: import("vue").PropType<import("vue-router").
|
14
|
+
to: import("vue").PropType<string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric>;
|
15
15
|
url: StringConstructor;
|
16
16
|
replace: BooleanConstructor;
|
17
17
|
} & {
|
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.9.
|
229
|
+
const version = "4.9.2";
|
230
230
|
function install(app) {
|
231
231
|
const components = [
|
232
232
|
import_action_bar.ActionBar,
|
package/lib/notify/types.d.ts
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
import type { TeleportProps } from 'vue';
|
1
2
|
import type { Numeric } from '../utils';
|
2
3
|
export type NotifyMessage = Numeric;
|
3
4
|
export type NotifyType = 'primary' | 'success' | 'danger' | 'warning';
|
@@ -7,10 +8,12 @@ export type NotifyOptions = {
|
|
7
8
|
color?: string;
|
8
9
|
message?: NotifyMessage;
|
9
10
|
duration?: number;
|
11
|
+
zIndex?: number;
|
10
12
|
position?: NotifyPosition;
|
11
13
|
className?: unknown;
|
12
14
|
background?: string;
|
13
15
|
lockScroll?: boolean;
|
16
|
+
teleport?: TeleportProps['to'];
|
14
17
|
onClick?: (event: MouseEvent) => void;
|
15
18
|
onClose?: () => void;
|
16
19
|
onOpened?: () => void;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { type PropType, type ExtractPropTypes } from 'vue';
|
2
2
|
import { type BadgeProps } from '../badge';
|
3
3
|
export declare const sidebarItemProps: {
|
4
|
-
to: PropType<import("vue-router").
|
4
|
+
to: PropType<string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric>;
|
5
5
|
url: StringConstructor;
|
6
6
|
replace: BooleanConstructor;
|
7
7
|
} & {
|
@@ -13,7 +13,7 @@ export declare const sidebarItemProps: {
|
|
13
13
|
};
|
14
14
|
export type SidebarItemProps = ExtractPropTypes<typeof sidebarItemProps>;
|
15
15
|
declare const _default: import("vue").DefineComponent<{
|
16
|
-
to: PropType<import("vue-router").
|
16
|
+
to: PropType<string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric>;
|
17
17
|
url: StringConstructor;
|
18
18
|
replace: BooleanConstructor;
|
19
19
|
} & {
|
@@ -23,7 +23,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
23
23
|
disabled: BooleanConstructor;
|
24
24
|
badgeProps: PropType<Partial<BadgeProps>>;
|
25
25
|
}, (() => import("vue/jsx-runtime").JSX.Element) | undefined, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
26
|
-
to: PropType<import("vue-router").
|
26
|
+
to: PropType<string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric>;
|
27
27
|
url: StringConstructor;
|
28
28
|
replace: BooleanConstructor;
|
29
29
|
} & {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
export declare const SidebarItem: import("../utils").WithInstall<import("vue").DefineComponent<{
|
2
|
-
to: import("vue").PropType<import("vue-router").
|
2
|
+
to: import("vue").PropType<string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric>;
|
3
3
|
url: StringConstructor;
|
4
4
|
replace: BooleanConstructor;
|
5
5
|
} & {
|
@@ -9,7 +9,7 @@ export declare const SidebarItem: import("../utils").WithInstall<import("vue").D
|
|
9
9
|
disabled: BooleanConstructor;
|
10
10
|
badgeProps: import("vue").PropType<Partial<import("..").BadgeProps>>;
|
11
11
|
}, (() => import("vue/jsx-runtime").JSX.Element) | undefined, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
12
|
-
to: import("vue").PropType<import("vue-router").
|
12
|
+
to: import("vue").PropType<string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric>;
|
13
13
|
url: StringConstructor;
|
14
14
|
replace: BooleanConstructor;
|
15
15
|
} & {
|
package/lib/tab/Tab.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { type PropType, type CSSProperties, type ExtractPropTypes } from 'vue';
|
2
2
|
export declare const tabProps: {
|
3
|
-
to: PropType<import("vue-router").
|
3
|
+
to: PropType<string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric>;
|
4
4
|
url: StringConstructor;
|
5
5
|
replace: BooleanConstructor;
|
6
6
|
} & {
|
@@ -18,7 +18,7 @@ export declare const tabProps: {
|
|
18
18
|
};
|
19
19
|
export type TabProps = ExtractPropTypes<typeof tabProps>;
|
20
20
|
declare const _default: import("vue").DefineComponent<{
|
21
|
-
to: PropType<import("vue-router").
|
21
|
+
to: PropType<string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric>;
|
22
22
|
url: StringConstructor;
|
23
23
|
replace: BooleanConstructor;
|
24
24
|
} & {
|
@@ -34,7 +34,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
34
34
|
default: true;
|
35
35
|
};
|
36
36
|
}, (() => import("vue/jsx-runtime").JSX.Element | undefined) | undefined, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
37
|
-
to: PropType<import("vue-router").
|
37
|
+
to: PropType<string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric>;
|
38
38
|
url: StringConstructor;
|
39
39
|
replace: BooleanConstructor;
|
40
40
|
} & {
|
package/lib/tab/index.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
export declare const Tab: import("../utils").WithInstall<import("vue").DefineComponent<{
|
2
|
-
to: import("vue").PropType<import("vue-router").
|
2
|
+
to: import("vue").PropType<string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric>;
|
3
3
|
url: StringConstructor;
|
4
4
|
replace: BooleanConstructor;
|
5
5
|
} & {
|
@@ -15,7 +15,7 @@ export declare const Tab: import("../utils").WithInstall<import("vue").DefineCom
|
|
15
15
|
default: true;
|
16
16
|
};
|
17
17
|
}, (() => import("vue/jsx-runtime").JSX.Element | undefined) | undefined, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
18
|
-
to: import("vue").PropType<import("vue-router").
|
18
|
+
to: import("vue").PropType<string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric>;
|
19
19
|
url: StringConstructor;
|
20
20
|
replace: BooleanConstructor;
|
21
21
|
} & {
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { type PropType, type ExtractPropTypes } from 'vue';
|
2
2
|
import { type BadgeProps } from '../badge';
|
3
3
|
export declare const tabbarItemProps: {
|
4
|
-
to: PropType<import("vue-router").
|
4
|
+
to: PropType<string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric>;
|
5
5
|
url: StringConstructor;
|
6
6
|
replace: BooleanConstructor;
|
7
7
|
} & {
|
@@ -14,7 +14,7 @@ export declare const tabbarItemProps: {
|
|
14
14
|
};
|
15
15
|
export type TabbarItemProps = ExtractPropTypes<typeof tabbarItemProps>;
|
16
16
|
declare const _default: import("vue").DefineComponent<{
|
17
|
-
to: PropType<import("vue-router").
|
17
|
+
to: PropType<string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric>;
|
18
18
|
url: StringConstructor;
|
19
19
|
replace: BooleanConstructor;
|
20
20
|
} & {
|
@@ -25,7 +25,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
25
25
|
badgeProps: PropType<Partial<BadgeProps>>;
|
26
26
|
iconPrefix: StringConstructor;
|
27
27
|
}, (() => import("vue/jsx-runtime").JSX.Element) | undefined, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
28
|
-
to: PropType<import("vue-router").
|
28
|
+
to: PropType<string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric>;
|
29
29
|
url: StringConstructor;
|
30
30
|
replace: BooleanConstructor;
|
31
31
|
} & {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
export declare const TabbarItem: import("../utils").WithInstall<import("vue").DefineComponent<{
|
2
|
-
to: import("vue").PropType<import("vue-router").
|
2
|
+
to: import("vue").PropType<string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric>;
|
3
3
|
url: StringConstructor;
|
4
4
|
replace: BooleanConstructor;
|
5
5
|
} & {
|
@@ -10,7 +10,7 @@ export declare const TabbarItem: import("../utils").WithInstall<import("vue").De
|
|
10
10
|
badgeProps: import("vue").PropType<Partial<import("..").BadgeProps>>;
|
11
11
|
iconPrefix: StringConstructor;
|
12
12
|
}, (() => import("vue/jsx-runtime").JSX.Element) | undefined, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
13
|
-
to: import("vue").PropType<import("vue-router").
|
13
|
+
to: import("vue").PropType<string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric>;
|
14
14
|
url: StringConstructor;
|
15
15
|
replace: BooleanConstructor;
|
16
16
|
} & {
|
package/lib/tabs/utils.js
CHANGED
@@ -28,11 +28,13 @@ function scrollLeftTo(scroller, to, duration) {
|
|
28
28
|
let count = 0;
|
29
29
|
const from = scroller.scrollLeft;
|
30
30
|
const frames = duration === 0 ? 1 : Math.round(duration * 1e3 / 16);
|
31
|
+
let scrollLeft = from;
|
31
32
|
function cancel() {
|
32
33
|
(0, import_use.cancelRaf)(rafId);
|
33
34
|
}
|
34
35
|
function animate() {
|
35
|
-
|
36
|
+
scrollLeft += (to - from) / frames;
|
37
|
+
scroller.scrollLeft = scrollLeft;
|
36
38
|
if (++count < frames) {
|
37
39
|
rafId = (0, import_use.raf)(animate);
|
38
40
|
}
|
package/lib/uploader/index.d.ts
CHANGED
@@ -151,7 +151,7 @@ export declare const Uploader: import("../utils").WithInstall<import("vue").Defi
|
|
151
151
|
export default Uploader;
|
152
152
|
export { uploaderProps } from './Uploader';
|
153
153
|
export type { UploaderProps };
|
154
|
-
export type { UploaderInstance, UploaderThemeVars, UploaderResultType, UploaderFileListItem, } from './types';
|
154
|
+
export type { UploaderInstance, UploaderThemeVars, UploaderResultType, UploaderFileListItem, UploaderBeforeRead, UploaderAfterRead, } from './types';
|
155
155
|
declare module 'vue' {
|
156
156
|
interface GlobalComponents {
|
157
157
|
VanUploader: typeof Uploader;
|
package/lib/vant.cjs.js
CHANGED
@@ -1985,11 +1985,13 @@ function scrollLeftTo(scroller, to, duration) {
|
|
1985
1985
|
let count = 0;
|
1986
1986
|
const from = scroller.scrollLeft;
|
1987
1987
|
const frames = duration === 0 ? 1 : Math.round(duration * 1e3 / 16);
|
1988
|
+
let scrollLeft = from;
|
1988
1989
|
function cancel() {
|
1989
1990
|
use.cancelRaf(rafId);
|
1990
1991
|
}
|
1991
1992
|
function animate() {
|
1992
|
-
|
1993
|
+
scrollLeft += (to - from) / frames;
|
1994
|
+
scroller.scrollLeft = scrollLeft;
|
1993
1995
|
if (++count < frames) {
|
1994
1996
|
rafId = use.raf(animate);
|
1995
1997
|
}
|
@@ -3821,6 +3823,7 @@ const formProps = {
|
|
3821
3823
|
labelAlign: String,
|
3822
3824
|
inputAlign: String,
|
3823
3825
|
scrollToError: Boolean,
|
3826
|
+
scrollToErrorPosition: String,
|
3824
3827
|
validateFirst: Boolean,
|
3825
3828
|
submitOnEnter: truthProp,
|
3826
3829
|
showErrorMessage: truthProp,
|
@@ -3934,8 +3937,14 @@ var stdin_default$1w = vue.defineComponent({
|
|
3934
3937
|
values,
|
3935
3938
|
errors
|
3936
3939
|
});
|
3937
|
-
|
3938
|
-
|
3940
|
+
const {
|
3941
|
+
scrollToError,
|
3942
|
+
scrollToErrorPosition
|
3943
|
+
} = props2;
|
3944
|
+
if (scrollToError && errors[0].name) {
|
3945
|
+
scrollToField(errors[0].name, scrollToErrorPosition ? {
|
3946
|
+
block: scrollToErrorPosition
|
3947
|
+
} : void 0);
|
3939
3948
|
}
|
3940
3949
|
});
|
3941
3950
|
};
|
@@ -7519,9 +7528,9 @@ var stdin_default$1b = vue.defineComponent({
|
|
7519
7528
|
"class": bem$11("price-currency")
|
7520
7529
|
}, [props2.currency]), vue.createVNode("span", {
|
7521
7530
|
"class": bem$11("price-integer")
|
7522
|
-
}, [priceArr[0]]), vue.createTextVNode("."), vue.createVNode("span", {
|
7531
|
+
}, [priceArr[0]]), priceArr.length > 1 && vue.createVNode(vue.Fragment, null, [vue.createTextVNode("."), vue.createVNode("span", {
|
7523
7532
|
"class": bem$11("price-decimal")
|
7524
|
-
}, [priceArr[1]])]);
|
7533
|
+
}, [priceArr[1]])])]);
|
7525
7534
|
};
|
7526
7535
|
return () => {
|
7527
7536
|
var _a, _b, _c;
|
@@ -17034,7 +17043,7 @@ const Lazyload = {
|
|
17034
17043
|
});
|
17035
17044
|
}
|
17036
17045
|
};
|
17037
|
-
const version = "4.9.
|
17046
|
+
const version = "4.9.2";
|
17038
17047
|
function install(app) {
|
17039
17048
|
const components = [
|
17040
17049
|
ActionBar,
|
package/lib/vant.es.js
CHANGED
@@ -1983,11 +1983,13 @@ function scrollLeftTo(scroller, to, duration) {
|
|
1983
1983
|
let count = 0;
|
1984
1984
|
const from = scroller.scrollLeft;
|
1985
1985
|
const frames = duration === 0 ? 1 : Math.round(duration * 1e3 / 16);
|
1986
|
+
let scrollLeft = from;
|
1986
1987
|
function cancel() {
|
1987
1988
|
cancelRaf(rafId);
|
1988
1989
|
}
|
1989
1990
|
function animate() {
|
1990
|
-
|
1991
|
+
scrollLeft += (to - from) / frames;
|
1992
|
+
scroller.scrollLeft = scrollLeft;
|
1991
1993
|
if (++count < frames) {
|
1992
1994
|
rafId = raf(animate);
|
1993
1995
|
}
|
@@ -3819,6 +3821,7 @@ const formProps = {
|
|
3819
3821
|
labelAlign: String,
|
3820
3822
|
inputAlign: String,
|
3821
3823
|
scrollToError: Boolean,
|
3824
|
+
scrollToErrorPosition: String,
|
3822
3825
|
validateFirst: Boolean,
|
3823
3826
|
submitOnEnter: truthProp,
|
3824
3827
|
showErrorMessage: truthProp,
|
@@ -3932,8 +3935,14 @@ var stdin_default$1w = defineComponent({
|
|
3932
3935
|
values,
|
3933
3936
|
errors
|
3934
3937
|
});
|
3935
|
-
|
3936
|
-
|
3938
|
+
const {
|
3939
|
+
scrollToError,
|
3940
|
+
scrollToErrorPosition
|
3941
|
+
} = props2;
|
3942
|
+
if (scrollToError && errors[0].name) {
|
3943
|
+
scrollToField(errors[0].name, scrollToErrorPosition ? {
|
3944
|
+
block: scrollToErrorPosition
|
3945
|
+
} : void 0);
|
3937
3946
|
}
|
3938
3947
|
});
|
3939
3948
|
};
|
@@ -7517,9 +7526,9 @@ var stdin_default$1b = defineComponent({
|
|
7517
7526
|
"class": bem$11("price-currency")
|
7518
7527
|
}, [props2.currency]), createVNode("span", {
|
7519
7528
|
"class": bem$11("price-integer")
|
7520
|
-
}, [priceArr[0]]), createTextVNode("."), createVNode("span", {
|
7529
|
+
}, [priceArr[0]]), priceArr.length > 1 && createVNode(Fragment, null, [createTextVNode("."), createVNode("span", {
|
7521
7530
|
"class": bem$11("price-decimal")
|
7522
|
-
}, [priceArr[1]])]);
|
7531
|
+
}, [priceArr[1]])])]);
|
7523
7532
|
};
|
7524
7533
|
return () => {
|
7525
7534
|
var _a, _b, _c;
|
@@ -17032,7 +17041,7 @@ const Lazyload = {
|
|
17032
17041
|
});
|
17033
17042
|
}
|
17034
17043
|
};
|
17035
|
-
const version = "4.9.
|
17044
|
+
const version = "4.9.2";
|
17036
17045
|
function install(app) {
|
17037
17046
|
const components = [
|
17038
17047
|
ActionBar,
|
package/lib/vant.js
CHANGED
@@ -2369,7 +2369,7 @@
|
|
2369
2369
|
return propRef;
|
2370
2370
|
};
|
2371
2371
|
/**
|
2372
|
-
* @vue/shared v3.4.
|
2372
|
+
* @vue/shared v3.4.29
|
2373
2373
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
2374
2374
|
* @license MIT
|
2375
2375
|
**/
|
@@ -2456,11 +2456,13 @@
|
|
2456
2456
|
let count = 0;
|
2457
2457
|
const from = scroller.scrollLeft;
|
2458
2458
|
const frames = duration === 0 ? 1 : Math.round(duration * 1e3 / 16);
|
2459
|
+
let scrollLeft = from;
|
2459
2460
|
function cancel() {
|
2460
2461
|
cancelRaf(rafId);
|
2461
2462
|
}
|
2462
2463
|
function animate() {
|
2463
|
-
|
2464
|
+
scrollLeft += (to - from) / frames;
|
2465
|
+
scroller.scrollLeft = scrollLeft;
|
2464
2466
|
if (++count < frames) {
|
2465
2467
|
rafId = raf(animate);
|
2466
2468
|
}
|
@@ -4283,6 +4285,7 @@
|
|
4283
4285
|
labelAlign: String,
|
4284
4286
|
inputAlign: String,
|
4285
4287
|
scrollToError: Boolean,
|
4288
|
+
scrollToErrorPosition: String,
|
4286
4289
|
validateFirst: Boolean,
|
4287
4290
|
submitOnEnter: truthProp,
|
4288
4291
|
showErrorMessage: truthProp,
|
@@ -4396,8 +4399,14 @@
|
|
4396
4399
|
values,
|
4397
4400
|
errors
|
4398
4401
|
});
|
4399
|
-
|
4400
|
-
|
4402
|
+
const {
|
4403
|
+
scrollToError,
|
4404
|
+
scrollToErrorPosition
|
4405
|
+
} = props2;
|
4406
|
+
if (scrollToError && errors[0].name) {
|
4407
|
+
scrollToField(errors[0].name, scrollToErrorPosition ? {
|
4408
|
+
block: scrollToErrorPosition
|
4409
|
+
} : void 0);
|
4401
4410
|
}
|
4402
4411
|
});
|
4403
4412
|
};
|
@@ -7978,9 +7987,9 @@
|
|
7978
7987
|
"class": bem$11("price-currency")
|
7979
7988
|
}, [props2.currency]), vue.createVNode("span", {
|
7980
7989
|
"class": bem$11("price-integer")
|
7981
|
-
}, [priceArr[0]]), vue.createTextVNode("."), vue.createVNode("span", {
|
7990
|
+
}, [priceArr[0]]), priceArr.length > 1 && vue.createVNode(vue.Fragment, null, [vue.createTextVNode("."), vue.createVNode("span", {
|
7982
7991
|
"class": bem$11("price-decimal")
|
7983
|
-
}, [priceArr[1]])]);
|
7992
|
+
}, [priceArr[1]])])]);
|
7984
7993
|
};
|
7985
7994
|
return () => {
|
7986
7995
|
var _a, _b, _c;
|
@@ -18247,7 +18256,7 @@
|
|
18247
18256
|
});
|
18248
18257
|
}
|
18249
18258
|
};
|
18250
|
-
const version = "4.9.
|
18259
|
+
const version = "4.9.2";
|
18251
18260
|
function install(app) {
|
18252
18261
|
const components = [
|
18253
18262
|
ActionBar,
|