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
@@ -1,7 +1,7 @@
|
|
1
1
|
import { type PropType, type ExtractPropTypes } from 'vue';
|
2
2
|
import { ButtonType } from '../button';
|
3
3
|
export declare const actionBarButtonProps: {
|
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 actionBarButtonProps: {
|
|
14
14
|
};
|
15
15
|
export type ActionBarButtonProps = ExtractPropTypes<typeof actionBarButtonProps>;
|
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
|
loading: BooleanConstructor;
|
26
26
|
disabled: BooleanConstructor;
|
27
27
|
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, 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 ActionBarButton: 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 ActionBarButton: import("../utils").WithInstall<import("vue
|
|
10
10
|
loading: BooleanConstructor;
|
11
11
|
disabled: BooleanConstructor;
|
12
12
|
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, 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
|
} & {
|
@@ -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 actionBarIconProps: {
|
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
|
} & {
|
@@ -16,7 +16,7 @@ export declare const actionBarIconProps: {
|
|
16
16
|
};
|
17
17
|
export type ActionBarIconProps = ExtractPropTypes<typeof actionBarIconProps>;
|
18
18
|
declare const _default: import("vue").DefineComponent<{
|
19
|
-
to: PropType<import("vue-router").
|
19
|
+
to: PropType<string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric>;
|
20
20
|
url: StringConstructor;
|
21
21
|
replace: BooleanConstructor;
|
22
22
|
} & {
|
@@ -29,7 +29,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
29
29
|
badgeProps: PropType<Partial<BadgeProps>>;
|
30
30
|
iconPrefix: StringConstructor;
|
31
31
|
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
32
|
-
to: PropType<import("vue-router").
|
32
|
+
to: PropType<string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric>;
|
33
33
|
url: StringConstructor;
|
34
34
|
replace: BooleanConstructor;
|
35
35
|
} & {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
export declare const ActionBarIcon: 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
|
} & {
|
@@ -12,7 +12,7 @@ export declare const ActionBarIcon: import("../utils").WithInstall<import("vue")
|
|
12
12
|
badgeProps: import("vue").PropType<Partial<import("..").BadgeProps>>;
|
13
13
|
iconPrefix: StringConstructor;
|
14
14
|
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
15
|
-
to: import("vue").PropType<import("vue-router").
|
15
|
+
to: import("vue").PropType<string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric>;
|
16
16
|
url: StringConstructor;
|
17
17
|
replace: BooleanConstructor;
|
18
18
|
} & {
|
package/es/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/es/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/es/card/Card.mjs
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { createTextVNode as _createTextVNode, createVNode as _createVNode } from "vue";
|
1
|
+
import { createTextVNode as _createTextVNode, Fragment as _Fragment, createVNode as _createVNode } from "vue";
|
2
2
|
import { defineComponent } from "vue";
|
3
3
|
import { isDef, numericProp, makeStringProp, createNamespace } from "../utils/index.mjs";
|
4
4
|
import { Tag } from "../tag/index.mjs";
|
@@ -84,9 +84,9 @@ var stdin_default = defineComponent({
|
|
84
84
|
"class": bem("price-currency")
|
85
85
|
}, [props.currency]), _createVNode("span", {
|
86
86
|
"class": bem("price-integer")
|
87
|
-
}, [priceArr[0]]), _createTextVNode("."), _createVNode("span", {
|
87
|
+
}, [priceArr[0]]), priceArr.length > 1 && _createVNode(_Fragment, null, [_createTextVNode("."), _createVNode("span", {
|
88
88
|
"class": bem("price-decimal")
|
89
|
-
}, [priceArr[1]])]);
|
89
|
+
}, [priceArr[1]])])]);
|
90
90
|
};
|
91
91
|
return () => {
|
92
92
|
var _a, _b, _c;
|
package/es/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/es/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/es/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/es/form/Form.mjs
CHANGED
@@ -14,6 +14,7 @@ const formProps = {
|
|
14
14
|
labelAlign: String,
|
15
15
|
inputAlign: String,
|
16
16
|
scrollToError: Boolean,
|
17
|
+
scrollToErrorPosition: String,
|
17
18
|
validateFirst: Boolean,
|
18
19
|
submitOnEnter: truthProp,
|
19
20
|
showErrorMessage: truthProp,
|
@@ -127,8 +128,14 @@ var stdin_default = defineComponent({
|
|
127
128
|
values,
|
128
129
|
errors
|
129
130
|
});
|
130
|
-
|
131
|
-
|
131
|
+
const {
|
132
|
+
scrollToError,
|
133
|
+
scrollToErrorPosition
|
134
|
+
} = props;
|
135
|
+
if (scrollToError && errors[0].name) {
|
136
|
+
scrollToField(errors[0].name, scrollToErrorPosition ? {
|
137
|
+
block: scrollToErrorPosition
|
138
|
+
} : void 0);
|
132
139
|
}
|
133
140
|
});
|
134
141
|
};
|
package/es/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/es/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/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.9.
|
102
|
+
const version = "4.9.2";
|
103
103
|
function install(app) {
|
104
104
|
const components = [
|
105
105
|
ActionBar,
|
package/es/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/es/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/es/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/es/tabs/utils.mjs
CHANGED
@@ -5,11 +5,13 @@ function scrollLeftTo(scroller, to, duration) {
|
|
5
5
|
let count = 0;
|
6
6
|
const from = scroller.scrollLeft;
|
7
7
|
const frames = duration === 0 ? 1 : Math.round(duration * 1e3 / 16);
|
8
|
+
let scrollLeft = from;
|
8
9
|
function cancel() {
|
9
10
|
cancelRaf(rafId);
|
10
11
|
}
|
11
12
|
function animate() {
|
12
|
-
|
13
|
+
scrollLeft += (to - from) / frames;
|
14
|
+
scroller.scrollLeft = scrollLeft;
|
13
15
|
if (++count < frames) {
|
14
16
|
rafId = raf(animate);
|
15
17
|
}
|
package/es/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;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { type PropType, type ExtractPropTypes } from 'vue';
|
2
2
|
import { ButtonType } from '../button';
|
3
3
|
export declare const actionBarButtonProps: {
|
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 actionBarButtonProps: {
|
|
14
14
|
};
|
15
15
|
export type ActionBarButtonProps = ExtractPropTypes<typeof actionBarButtonProps>;
|
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
|
loading: BooleanConstructor;
|
26
26
|
disabled: BooleanConstructor;
|
27
27
|
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, 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 ActionBarButton: 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 ActionBarButton: import("../utils").WithInstall<import("vue
|
|
10
10
|
loading: BooleanConstructor;
|
11
11
|
disabled: BooleanConstructor;
|
12
12
|
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, 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
|
} & {
|
@@ -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 actionBarIconProps: {
|
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
|
} & {
|
@@ -16,7 +16,7 @@ export declare const actionBarIconProps: {
|
|
16
16
|
};
|
17
17
|
export type ActionBarIconProps = ExtractPropTypes<typeof actionBarIconProps>;
|
18
18
|
declare const _default: import("vue").DefineComponent<{
|
19
|
-
to: PropType<import("vue-router").
|
19
|
+
to: PropType<string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric>;
|
20
20
|
url: StringConstructor;
|
21
21
|
replace: BooleanConstructor;
|
22
22
|
} & {
|
@@ -29,7 +29,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
29
29
|
badgeProps: PropType<Partial<BadgeProps>>;
|
30
30
|
iconPrefix: StringConstructor;
|
31
31
|
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
32
|
-
to: PropType<import("vue-router").
|
32
|
+
to: PropType<string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric>;
|
33
33
|
url: StringConstructor;
|
34
34
|
replace: BooleanConstructor;
|
35
35
|
} & {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
export declare const ActionBarIcon: 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
|
} & {
|
@@ -12,7 +12,7 @@ export declare const ActionBarIcon: import("../utils").WithInstall<import("vue")
|
|
12
12
|
badgeProps: import("vue").PropType<Partial<import("..").BadgeProps>>;
|
13
13
|
iconPrefix: StringConstructor;
|
14
14
|
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
15
|
-
to: import("vue").PropType<import("vue-router").
|
15
|
+
to: import("vue").PropType<string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric>;
|
16
16
|
url: StringConstructor;
|
17
17
|
replace: BooleanConstructor;
|
18
18
|
} & {
|