vant 3.2.3 → 3.2.4
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/changelog.generated.md +90 -45
- package/es/address-edit/index.d.ts +2 -0
- package/es/area/index.d.ts +2 -0
- package/es/calendar/index.d.ts +2 -0
- package/es/checkbox/Checker.js +1 -1
- package/es/checkbox/index.d.ts +2 -0
- package/es/checkbox-group/index.d.ts +2 -0
- package/es/collapse-item/CollapseItem.js +3 -1
- package/es/collapse-item/index.d.ts +2 -0
- package/es/count-down/CountDown.d.ts +2 -10
- package/es/count-down/index.d.ts +3 -1
- package/es/count-down/types.d.ts +11 -0
- package/es/count-down/types.js +1 -0
- package/es/coupon-list/CouponList.js +4 -11
- package/es/coupon-list/index.css +1 -1
- package/es/coupon-list/index.less +6 -1
- package/es/datetime-picker/index.d.ts +2 -0
- package/es/dialog/Dialog.d.ts +1 -4
- package/es/dialog/Dialog.js +2 -1
- package/es/dialog/function-call.d.ts +12 -37
- package/es/dialog/index.d.ts +2 -3
- package/es/dialog/types.d.ts +36 -0
- package/es/dialog/types.js +1 -0
- package/es/dropdown-item/index.d.ts +2 -0
- package/es/dropdown-menu/index.d.ts +2 -0
- package/es/field/Field.d.ts +8 -6
- package/es/field/Field.js +2 -2
- package/es/field/index.d.ts +6 -4
- package/es/form/index.d.ts +2 -0
- package/es/icon/index.css +1 -1
- package/es/image/Image.js +1 -2
- package/es/image-preview/index.d.ts +2 -0
- package/es/index-bar/index.d.ts +2 -0
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/list/index.d.ts +2 -0
- package/es/notice-bar/index.d.ts +2 -0
- package/es/notify/Notify.d.ts +1 -1
- package/es/notify/function-call.d.ts +4 -17
- package/es/notify/index.d.ts +2 -3
- package/es/notify/types.d.ts +20 -0
- package/es/notify/types.js +1 -0
- package/es/picker/index.d.ts +2 -0
- package/es/popover/Popover.d.ts +1 -0
- package/es/progress/index.d.ts +2 -0
- package/es/search/Search.d.ts +8 -0
- package/es/search/index.d.ts +8 -0
- package/es/submit-bar/index.css +1 -1
- package/es/submit-bar/index.less +1 -1
- package/es/swipe/index.d.ts +2 -0
- package/es/swipe-cell/index.d.ts +2 -0
- package/es/tabs/index.d.ts +2 -0
- package/es/tabs/utils.js +2 -4
- package/es/toast/Toast.d.ts +1 -2
- package/es/toast/Toast.js +2 -1
- package/es/toast/function-call.d.ts +2 -25
- package/es/toast/index.d.ts +2 -3
- package/es/toast/types.d.ts +32 -0
- package/es/toast/types.js +1 -0
- package/es/uploader/index.css +1 -1
- package/es/uploader/index.d.ts +2 -0
- package/es/uploader/index.less +0 -1
- package/lib/address-edit/index.d.ts +2 -0
- package/lib/area/index.d.ts +2 -0
- package/lib/calendar/index.d.ts +2 -0
- package/lib/checkbox/Checker.js +1 -1
- package/lib/checkbox/index.d.ts +2 -0
- package/lib/checkbox-group/index.d.ts +2 -0
- package/lib/collapse-item/CollapseItem.js +3 -1
- package/lib/collapse-item/index.d.ts +2 -0
- package/lib/count-down/CountDown.d.ts +2 -10
- package/lib/count-down/index.d.ts +3 -1
- package/lib/count-down/types.d.ts +11 -0
- package/lib/count-down/types.js +3 -0
- package/lib/coupon-list/CouponList.js +4 -12
- package/lib/coupon-list/index.css +1 -1
- package/lib/coupon-list/index.less +6 -1
- package/lib/datetime-picker/index.d.ts +2 -0
- package/lib/dialog/Dialog.d.ts +1 -4
- package/lib/dialog/function-call.d.ts +12 -37
- package/lib/dialog/index.d.ts +2 -3
- package/lib/dialog/types.d.ts +36 -0
- package/lib/dialog/types.js +3 -0
- package/lib/dropdown-item/index.d.ts +2 -0
- package/lib/dropdown-menu/index.d.ts +2 -0
- package/lib/field/Field.d.ts +8 -6
- package/lib/field/Field.js +2 -2
- package/lib/field/index.d.ts +6 -4
- package/lib/form/index.d.ts +2 -0
- package/lib/icon/index.css +1 -1
- package/lib/image/Image.js +1 -2
- package/lib/image-preview/index.d.ts +2 -0
- package/lib/index-bar/index.d.ts +2 -0
- package/lib/index.css +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/list/index.d.ts +2 -0
- package/lib/notice-bar/index.d.ts +2 -0
- package/lib/notify/Notify.d.ts +1 -1
- package/lib/notify/function-call.d.ts +4 -17
- package/lib/notify/index.d.ts +2 -3
- package/lib/notify/types.d.ts +20 -0
- package/lib/notify/types.js +3 -0
- package/lib/picker/index.d.ts +2 -0
- package/lib/popover/Popover.d.ts +1 -0
- package/lib/progress/index.d.ts +2 -0
- package/lib/search/Search.d.ts +8 -0
- package/lib/search/index.d.ts +8 -0
- package/lib/submit-bar/index.css +1 -1
- package/lib/submit-bar/index.less +1 -1
- package/lib/swipe/index.d.ts +2 -0
- package/lib/swipe-cell/index.d.ts +2 -0
- package/lib/tabs/index.d.ts +2 -0
- package/lib/tabs/utils.js +1 -4
- package/lib/toast/Toast.d.ts +1 -2
- package/lib/toast/function-call.d.ts +2 -25
- package/lib/toast/index.d.ts +2 -3
- package/lib/toast/types.d.ts +32 -0
- package/lib/toast/types.js +3 -0
- package/lib/uploader/index.css +1 -1
- package/lib/uploader/index.d.ts +2 -0
- package/lib/uploader/index.less +0 -1
- package/lib/vant.es.js +225 -269
- package/lib/vant.es.min.js +1 -1
- package/lib/vant.js +227 -271
- package/lib/vant.min.js +1 -1
- package/package.json +9 -9
- package/vetur/attributes.json +743 -731
- package/vetur/tags.json +234 -231
- package/vetur/web-types.json +2263 -2233
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
@@ -781,7 +781,7 @@ Object.keys(_uploader).forEach(function (key) {
|
|
781
781
|
if (key in exports && exports[key] === _uploader[key]) return;
|
782
782
|
exports[key] = _uploader[key];
|
783
783
|
});
|
784
|
-
var version = '3.2.
|
784
|
+
var version = '3.2.4';
|
785
785
|
exports.version = version;
|
786
786
|
|
787
787
|
function install(app) {
|
package/lib/list/index.d.ts
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
import { ListProps } from './List';
|
1
2
|
export declare const List: import("../utils").WithInstall<import("vue").DefineComponent<{
|
2
3
|
error: BooleanConstructor;
|
3
4
|
loading: BooleanConstructor;
|
@@ -51,4 +52,5 @@ export declare const List: import("../utils").WithInstall<import("vue").DefineCo
|
|
51
52
|
immediateCheck: boolean;
|
52
53
|
}>>;
|
53
54
|
export default List;
|
55
|
+
export type { ListProps };
|
54
56
|
export type { ListInstance, ListDirection } from './types';
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import { NoticeBarProps } from './NoticeBar';
|
1
2
|
export declare const NoticeBar: import("../utils").WithInstall<import("vue").DefineComponent<{
|
2
3
|
text: StringConstructor;
|
3
4
|
mode: import("vue").PropType<import("./types").NoticeBarMode>;
|
@@ -48,4 +49,5 @@ export declare const NoticeBar: import("../utils").WithInstall<import("vue").Def
|
|
48
49
|
delay: string | number;
|
49
50
|
}>>;
|
50
51
|
export default NoticeBar;
|
52
|
+
export type { NoticeBarProps };
|
51
53
|
export type { NoticeBarMode, NoticeBarInstance } from './types';
|
package/lib/notify/Notify.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { PropType } from 'vue';
|
2
|
-
|
2
|
+
import type { NotifyType } from './types';
|
3
3
|
declare const _default: import("vue").DefineComponent<{
|
4
4
|
show: BooleanConstructor;
|
5
5
|
zIndex: (NumberConstructor | StringConstructor)[];
|
@@ -1,19 +1,6 @@
|
|
1
1
|
import { App } from 'vue';
|
2
2
|
import { ComponentInstance } from '../utils';
|
3
|
-
import {
|
4
|
-
export declare type NotifyMessage = string | number;
|
5
|
-
export declare type NotifyOptions = {
|
6
|
-
type?: NotifyType;
|
7
|
-
color?: string;
|
8
|
-
message?: NotifyMessage;
|
9
|
-
duration?: number;
|
10
|
-
className?: unknown;
|
11
|
-
background?: string;
|
12
|
-
lockScroll?: boolean;
|
13
|
-
onClick?: (event: MouseEvent) => void;
|
14
|
-
onClose?: () => void;
|
15
|
-
onOpened?: () => void;
|
16
|
-
};
|
3
|
+
import type { NotifyMessage, NotifyOptions } from './types';
|
17
4
|
declare function Notify(options: NotifyMessage | NotifyOptions): ComponentInstance | undefined;
|
18
5
|
declare namespace Notify {
|
19
6
|
var clear: () => void;
|
@@ -52,7 +39,7 @@ declare namespace Notify {
|
|
52
39
|
background: StringConstructor;
|
53
40
|
lockScroll: BooleanConstructor;
|
54
41
|
type: {
|
55
|
-
type: import("vue").PropType<NotifyType>;
|
42
|
+
type: import("vue").PropType<import("./types").NotifyType>;
|
56
43
|
default: string;
|
57
44
|
};
|
58
45
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
|
@@ -74,7 +61,7 @@ declare namespace Notify {
|
|
74
61
|
background?: unknown;
|
75
62
|
type?: unknown;
|
76
63
|
} & {
|
77
|
-
type: NotifyType;
|
64
|
+
type: import("./types").NotifyType;
|
78
65
|
overlay: boolean;
|
79
66
|
show: boolean;
|
80
67
|
lockScroll: boolean;
|
@@ -93,7 +80,7 @@ declare namespace Notify {
|
|
93
80
|
className?: unknown;
|
94
81
|
background?: string | undefined;
|
95
82
|
}>, {
|
96
|
-
type: NotifyType;
|
83
|
+
type: import("./types").NotifyType;
|
97
84
|
overlay: boolean;
|
98
85
|
show: boolean;
|
99
86
|
lockScroll: boolean;
|
package/lib/notify/index.d.ts
CHANGED
@@ -1,5 +1,4 @@
|
|
1
|
-
import { Notify
|
2
|
-
import type { NotifyType } from './Notify';
|
1
|
+
import { Notify } from './function-call';
|
3
2
|
export default Notify;
|
4
3
|
export { Notify };
|
5
|
-
export type { NotifyType, NotifyOptions };
|
4
|
+
export type { NotifyType, NotifyOptions } from './types';
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import { Notify } from './function-call';
|
2
|
+
export declare type NotifyMessage = string | number;
|
3
|
+
export declare type NotifyType = 'primary' | 'success' | 'danger' | 'warning';
|
4
|
+
export declare type NotifyOptions = {
|
5
|
+
type?: NotifyType;
|
6
|
+
color?: string;
|
7
|
+
message?: NotifyMessage;
|
8
|
+
duration?: number;
|
9
|
+
className?: unknown;
|
10
|
+
background?: string;
|
11
|
+
lockScroll?: boolean;
|
12
|
+
onClick?: (event: MouseEvent) => void;
|
13
|
+
onClose?: () => void;
|
14
|
+
onOpened?: () => void;
|
15
|
+
};
|
16
|
+
declare module '@vue/runtime-core' {
|
17
|
+
interface ComponentCustomProperties {
|
18
|
+
$notify: typeof Notify;
|
19
|
+
}
|
20
|
+
}
|
package/lib/picker/index.d.ts
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
import { PickerProps } from './Picker';
|
1
2
|
export declare const Picker: import("../utils").WithInstall<import("vue").DefineComponent<{
|
2
3
|
title: StringConstructor;
|
3
4
|
loading: BooleanConstructor;
|
@@ -86,4 +87,5 @@ export declare const Picker: import("../utils").WithInstall<import("vue").Define
|
|
86
87
|
toolbarPosition: import("./types").PickerToolbarPosition;
|
87
88
|
}>>;
|
88
89
|
export default Picker;
|
90
|
+
export type { PickerProps };
|
89
91
|
export type { PickerColumn, PickerOption, PickerInstance, PickerFieldNames, PickerObjectColumn, PickerObjectOption, PickerToolbarPosition, } from './types';
|
package/lib/popover/Popover.d.ts
CHANGED
package/lib/progress/index.d.ts
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
import { ProgressProps } from './Progress';
|
1
2
|
export declare const Progress: import("../utils").WithInstall<import("vue").DefineComponent<{
|
2
3
|
color: StringConstructor;
|
3
4
|
inactive: BooleanConstructor;
|
@@ -42,4 +43,5 @@ export declare const Progress: import("../utils").WithInstall<import("vue").Defi
|
|
42
43
|
percentage: string | number;
|
43
44
|
}>>;
|
44
45
|
export default Progress;
|
46
|
+
export type { ProgressProps };
|
45
47
|
export type { ProgressInstance } from './types';
|
package/lib/search/Search.d.ts
CHANGED
@@ -2,6 +2,7 @@ import { PropType, ExtractPropTypes } from 'vue';
|
|
2
2
|
import type { SearchShape } from './types';
|
3
3
|
declare const props: {
|
4
4
|
id: StringConstructor;
|
5
|
+
name: StringConstructor;
|
5
6
|
formatter: PropType<(value: string) => string>;
|
6
7
|
leftIcon: StringConstructor;
|
7
8
|
rightIcon: StringConstructor;
|
@@ -10,6 +11,7 @@ declare const props: {
|
|
10
11
|
maxlength: (NumberConstructor | StringConstructor)[];
|
11
12
|
inputAlign: PropType<import("../field").FieldTextAlign>;
|
12
13
|
placeholder: StringConstructor;
|
14
|
+
autocomplete: StringConstructor;
|
13
15
|
errorMessage: StringConstructor;
|
14
16
|
error: {
|
15
17
|
type: BooleanConstructor;
|
@@ -60,6 +62,7 @@ declare const props: {
|
|
60
62
|
export declare type SearchProps = ExtractPropTypes<typeof props>;
|
61
63
|
declare const _default: import("vue").DefineComponent<{
|
62
64
|
id: StringConstructor;
|
65
|
+
name: StringConstructor;
|
63
66
|
formatter: PropType<(value: string) => string>;
|
64
67
|
leftIcon: StringConstructor;
|
65
68
|
rightIcon: StringConstructor;
|
@@ -68,6 +71,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
68
71
|
maxlength: (NumberConstructor | StringConstructor)[];
|
69
72
|
inputAlign: PropType<import("../field").FieldTextAlign>;
|
70
73
|
placeholder: StringConstructor;
|
74
|
+
autocomplete: StringConstructor;
|
71
75
|
errorMessage: StringConstructor;
|
72
76
|
error: {
|
73
77
|
type: BooleanConstructor;
|
@@ -116,6 +120,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
116
120
|
};
|
117
121
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("search" | "update:modelValue" | "cancel")[], "search" | "update:modelValue" | "cancel", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
|
118
122
|
id?: unknown;
|
123
|
+
name?: unknown;
|
119
124
|
formatter?: unknown;
|
120
125
|
leftIcon?: unknown;
|
121
126
|
rightIcon?: unknown;
|
@@ -124,6 +129,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
124
129
|
maxlength?: unknown;
|
125
130
|
inputAlign?: unknown;
|
126
131
|
placeholder?: unknown;
|
132
|
+
autocomplete?: unknown;
|
127
133
|
errorMessage?: unknown;
|
128
134
|
error?: unknown;
|
129
135
|
disabled?: unknown;
|
@@ -151,7 +157,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
151
157
|
formatTrigger: import("../field").FieldFormatTrigger;
|
152
158
|
showAction: boolean;
|
153
159
|
} & {
|
160
|
+
name?: string | undefined;
|
154
161
|
label?: string | undefined;
|
162
|
+
autocomplete?: string | undefined;
|
155
163
|
id?: string | undefined;
|
156
164
|
formatter?: ((value: string) => string) | undefined;
|
157
165
|
rightIcon?: string | undefined;
|
package/lib/search/index.d.ts
CHANGED
@@ -1,5 +1,7 @@
|
|
1
|
+
import { SearchProps } from './Search';
|
1
2
|
export declare const Search: import("../utils").WithInstall<import("vue").DefineComponent<{
|
2
3
|
id: StringConstructor;
|
4
|
+
name: StringConstructor;
|
3
5
|
formatter: import("vue").PropType<(value: string) => string>;
|
4
6
|
leftIcon: StringConstructor;
|
5
7
|
rightIcon: StringConstructor;
|
@@ -8,6 +10,7 @@ export declare const Search: import("../utils").WithInstall<import("vue").Define
|
|
8
10
|
maxlength: (NumberConstructor | StringConstructor)[];
|
9
11
|
inputAlign: import("vue").PropType<import("..").FieldTextAlign>;
|
10
12
|
placeholder: StringConstructor;
|
13
|
+
autocomplete: StringConstructor;
|
11
14
|
errorMessage: StringConstructor;
|
12
15
|
error: {
|
13
16
|
type: BooleanConstructor;
|
@@ -56,6 +59,7 @@ export declare const Search: import("../utils").WithInstall<import("vue").Define
|
|
56
59
|
};
|
57
60
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("search" | "update:modelValue" | "cancel")[], "search" | "update:modelValue" | "cancel", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
|
58
61
|
id?: unknown;
|
62
|
+
name?: unknown;
|
59
63
|
formatter?: unknown;
|
60
64
|
leftIcon?: unknown;
|
61
65
|
rightIcon?: unknown;
|
@@ -64,6 +68,7 @@ export declare const Search: import("../utils").WithInstall<import("vue").Define
|
|
64
68
|
maxlength?: unknown;
|
65
69
|
inputAlign?: unknown;
|
66
70
|
placeholder?: unknown;
|
71
|
+
autocomplete?: unknown;
|
67
72
|
errorMessage?: unknown;
|
68
73
|
error?: unknown;
|
69
74
|
disabled?: unknown;
|
@@ -91,7 +96,9 @@ export declare const Search: import("../utils").WithInstall<import("vue").Define
|
|
91
96
|
formatTrigger: import("..").FieldFormatTrigger;
|
92
97
|
showAction: boolean;
|
93
98
|
} & {
|
99
|
+
name?: string | undefined;
|
94
100
|
label?: string | undefined;
|
101
|
+
autocomplete?: string | undefined;
|
95
102
|
id?: string | undefined;
|
96
103
|
formatter?: ((value: string) => string) | undefined;
|
97
104
|
rightIcon?: string | undefined;
|
@@ -120,4 +127,5 @@ export declare const Search: import("../utils").WithInstall<import("vue").Define
|
|
120
127
|
showAction: boolean;
|
121
128
|
}>>;
|
122
129
|
export default Search;
|
130
|
+
export type { SearchProps };
|
123
131
|
export type { SearchShape, SearchInstance } from './types';
|
package/lib/submit-bar/index.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
:root{--van-submit-bar-height:50px;--van-submit-bar-z-index:100;--van-submit-bar-background-color:var(--van-white);--van-submit-bar-button-width:110px;--van-submit-bar-price-color:var(--van-danger-color);--van-submit-bar-price-font-size:var(--van-font-size-sm);--van-submit-bar-price-integer-font-size:20px;--van-submit-bar-price-font-family:var(--van-price-integer-font-family);--van-submit-bar-currency-font-size:var(--van-font-size-md);--van-submit-bar-text-color:var(--van-text-color);--van-submit-bar-text-font-size:var(--van-font-size-md);--van-submit-bar-tip-padding:var(--van-padding-xs) var(--van-padding-sm);--van-submit-bar-tip-font-size:var(--van-font-size-sm);--van-submit-bar-tip-line-height:1.5;--van-submit-bar-tip-color:#f56723;--van-submit-bar-tip-background-color:#fff7cc;--van-submit-bar-tip-icon-size:12px;--van-submit-bar-button-height:40px;--van-submit-bar-padding:0 var(--van-padding-md)}.van-submit-bar{position:fixed;bottom:0;left:0;z-index:var(--van-submit-bar-z-index);width:100%;background-color:var(--van-submit-bar-background-color);-webkit-user-select:none;user-select:none}.van-submit-bar__tip{padding:var(--van-submit-bar-tip-padding);color:var(--van-submit-bar-tip-color);font-size:var(--van-submit-bar-tip-font-size);line-height:var(--van-submit-bar-tip-line-height);background-color:var(--van-submit-bar-tip-background-color)}.van-submit-bar__tip-icon{
|
1
|
+
:root{--van-submit-bar-height:50px;--van-submit-bar-z-index:100;--van-submit-bar-background-color:var(--van-white);--van-submit-bar-button-width:110px;--van-submit-bar-price-color:var(--van-danger-color);--van-submit-bar-price-font-size:var(--van-font-size-sm);--van-submit-bar-price-integer-font-size:20px;--van-submit-bar-price-font-family:var(--van-price-integer-font-family);--van-submit-bar-currency-font-size:var(--van-font-size-md);--van-submit-bar-text-color:var(--van-text-color);--van-submit-bar-text-font-size:var(--van-font-size-md);--van-submit-bar-tip-padding:var(--van-padding-xs) var(--van-padding-sm);--van-submit-bar-tip-font-size:var(--van-font-size-sm);--van-submit-bar-tip-line-height:1.5;--van-submit-bar-tip-color:#f56723;--van-submit-bar-tip-background-color:#fff7cc;--van-submit-bar-tip-icon-size:12px;--van-submit-bar-button-height:40px;--van-submit-bar-padding:0 var(--van-padding-md)}.van-submit-bar{position:fixed;bottom:0;left:0;z-index:var(--van-submit-bar-z-index);width:100%;background-color:var(--van-submit-bar-background-color);-webkit-user-select:none;user-select:none}.van-submit-bar__tip{padding:var(--van-submit-bar-tip-padding);color:var(--van-submit-bar-tip-color);font-size:var(--van-submit-bar-tip-font-size);line-height:var(--van-submit-bar-tip-line-height);background-color:var(--van-submit-bar-tip-background-color)}.van-submit-bar__tip-icon{margin-right:var(--van-padding-base);font-size:var(--van-submit-bar-tip-icon-size);vertical-align:middle}.van-submit-bar__tip-text{vertical-align:middle}.van-submit-bar__bar{display:flex;align-items:center;justify-content:flex-end;height:var(--van-submit-bar-height);padding:var(--van-submit-bar-padding);font-size:var(--van-submit-bar-text-font-size)}.van-submit-bar__text{flex:1;padding-right:var(--van-padding-sm);color:var(--van-submit-bar-text-color);text-align:right}.van-submit-bar__text span{display:inline-block}.van-submit-bar__suffix-label{margin-left:var(--van-padding-base);font-weight:var(--van-font-weight-bold)}.van-submit-bar__price{color:var(--van-submit-bar-price-color);font-weight:var(--van-font-weight-bold);font-size:var(--van-submit-bar-price-font-size)}.van-submit-bar__price-integer{font-size:var(--van-submit-bar-price-integer-font-size);font-family:var(--van-submit-bar-price-font-family)}.van-submit-bar__button{width:var(--van-submit-bar-button-width);height:var(--van-submit-bar-button-height);font-weight:var(--van-font-weight-bold);border:none}.van-submit-bar__button--danger{background:var(--van-gradient-red)}
|
package/lib/swipe/index.d.ts
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
import { SwipeProps } from './Swipe';
|
1
2
|
export declare const Swipe: import("../utils").WithInstall<import("vue").DefineComponent<{
|
2
3
|
loop: {
|
3
4
|
type: BooleanConstructor;
|
@@ -73,4 +74,5 @@ export declare const Swipe: import("../utils").WithInstall<import("vue").DefineC
|
|
73
74
|
initialSwipe: string | number;
|
74
75
|
}>>;
|
75
76
|
export default Swipe;
|
77
|
+
export type { SwipeProps };
|
76
78
|
export type { SwipeInstance, SwipeToOptions } from './types';
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import { SwipeCellProps } from './SwipeCell';
|
1
2
|
export declare const SwipeCell: import("../utils").WithInstall<import("vue").DefineComponent<{
|
2
3
|
disabled: BooleanConstructor;
|
3
4
|
leftWidth: (NumberConstructor | StringConstructor)[];
|
@@ -33,4 +34,5 @@ export declare const SwipeCell: import("../utils").WithInstall<import("vue").Def
|
|
33
34
|
stopPropagation: boolean;
|
34
35
|
}>>;
|
35
36
|
export default SwipeCell;
|
37
|
+
export type { SwipeCellProps };
|
36
38
|
export type { SwipeCellSide, SwipeCellPosition, SwipeCellInstance, } from './types';
|
package/lib/tabs/index.d.ts
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
import { TabsProps } from './Tabs';
|
1
2
|
export declare const Tabs: import("../utils").WithInstall<import("vue").DefineComponent<{
|
2
3
|
color: StringConstructor;
|
3
4
|
border: BooleanConstructor;
|
@@ -103,4 +104,5 @@ export declare const Tabs: import("../utils").WithInstall<import("vue").DefineCo
|
|
103
104
|
swipeThreshold: string | number;
|
104
105
|
}>>;
|
105
106
|
export default Tabs;
|
107
|
+
export type { TabsProps };
|
106
108
|
export type { TabsType, TabsInstance } from './types';
|
package/lib/tabs/utils.js
CHANGED
@@ -8,10 +8,7 @@ var _use = require("@vant/use");
|
|
8
8
|
|
9
9
|
var _utils = require("../utils");
|
10
10
|
|
11
|
-
var rafId;
|
12
|
-
|
13
11
|
function scrollLeftTo(scroller, to, duration) {
|
14
|
-
(0, _use.cancelRaf)(rafId);
|
15
12
|
var count = 0;
|
16
13
|
var from = scroller.scrollLeft;
|
17
14
|
var frames = duration === 0 ? 1 : Math.round(duration * 1000 / 16);
|
@@ -20,7 +17,7 @@ function scrollLeftTo(scroller, to, duration) {
|
|
20
17
|
scroller.scrollLeft += (to - from) / frames;
|
21
18
|
|
22
19
|
if (++count < frames) {
|
23
|
-
|
20
|
+
(0, _use.raf)(animate);
|
24
21
|
}
|
25
22
|
}
|
26
23
|
|
package/lib/toast/Toast.d.ts
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
import { PropType, CSSProperties } from 'vue';
|
2
2
|
import { LoadingType } from '../loading';
|
3
|
-
|
4
|
-
export declare type ToastPosition = 'top' | 'middle' | 'bottom';
|
3
|
+
import type { ToastType, ToastPosition } from './types';
|
5
4
|
declare const _default: import("vue").DefineComponent<{
|
6
5
|
icon: StringConstructor;
|
7
6
|
show: BooleanConstructor;
|
@@ -1,29 +1,6 @@
|
|
1
|
-
import { App
|
1
|
+
import { App } from 'vue';
|
2
2
|
import { ComponentInstance } from '../utils';
|
3
|
-
import { ToastType,
|
4
|
-
import type { LoadingType } from '../loading';
|
5
|
-
export declare type ToastOptions = {
|
6
|
-
icon?: string;
|
7
|
-
type?: ToastType;
|
8
|
-
mask?: boolean;
|
9
|
-
message?: string | number;
|
10
|
-
onClose?: () => void;
|
11
|
-
onOpened?: () => void;
|
12
|
-
overlay?: boolean;
|
13
|
-
duration?: number;
|
14
|
-
teleport?: TeleportProps['to'];
|
15
|
-
iconSize?: number | string;
|
16
|
-
position?: ToastPosition;
|
17
|
-
className?: unknown;
|
18
|
-
transition?: string;
|
19
|
-
iconPrefix?: string;
|
20
|
-
loadingType?: LoadingType;
|
21
|
-
forbidClick?: boolean;
|
22
|
-
closeOnClick?: boolean;
|
23
|
-
overlayClass?: unknown;
|
24
|
-
overlayStyle?: Record<string, any>;
|
25
|
-
closeOnClickOverlay?: boolean;
|
26
|
-
};
|
3
|
+
import type { ToastType, ToastOptions } from './types';
|
27
4
|
declare function Toast(options?: string | ToastOptions): ComponentInstance;
|
28
5
|
declare namespace Toast {
|
29
6
|
var loading: (options: string | ToastOptions) => ComponentInstance;
|
package/lib/toast/index.d.ts
CHANGED
@@ -1,5 +1,4 @@
|
|
1
|
-
import { Toast
|
2
|
-
import type { ToastType, ToastPosition } from './Toast';
|
1
|
+
import { Toast } from './function-call';
|
3
2
|
export default Toast;
|
4
3
|
export { Toast };
|
5
|
-
export type { ToastType, ToastOptions, ToastPosition };
|
4
|
+
export type { ToastType, ToastOptions, ToastPosition } from './types';
|
@@ -0,0 +1,32 @@
|
|
1
|
+
import { Toast } from './function-call';
|
2
|
+
import type { TeleportProps } from 'vue';
|
3
|
+
import type { LoadingType } from '../loading';
|
4
|
+
export declare type ToastType = 'text' | 'loading' | 'success' | 'fail' | 'html';
|
5
|
+
export declare type ToastPosition = 'top' | 'middle' | 'bottom';
|
6
|
+
export declare type ToastOptions = {
|
7
|
+
icon?: string;
|
8
|
+
type?: ToastType;
|
9
|
+
mask?: boolean;
|
10
|
+
message?: string | number;
|
11
|
+
onClose?: () => void;
|
12
|
+
onOpened?: () => void;
|
13
|
+
overlay?: boolean;
|
14
|
+
duration?: number;
|
15
|
+
teleport?: TeleportProps['to'];
|
16
|
+
iconSize?: number | string;
|
17
|
+
position?: ToastPosition;
|
18
|
+
className?: unknown;
|
19
|
+
transition?: string;
|
20
|
+
iconPrefix?: string;
|
21
|
+
loadingType?: LoadingType;
|
22
|
+
forbidClick?: boolean;
|
23
|
+
closeOnClick?: boolean;
|
24
|
+
overlayClass?: unknown;
|
25
|
+
overlayStyle?: Record<string, any>;
|
26
|
+
closeOnClickOverlay?: boolean;
|
27
|
+
};
|
28
|
+
declare module '@vue/runtime-core' {
|
29
|
+
interface ComponentCustomProperties {
|
30
|
+
$toast: typeof Toast;
|
31
|
+
}
|
32
|
+
}
|
package/lib/uploader/index.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
:root{--van-uploader-size:80px;--van-uploader-icon-size:24px;--van-uploader-icon-color:var(--van-gray-4);--van-uploader-text-color:var(--van-gray-6);--van-uploader-text-font-size:var(--van-font-size-sm);--van-uploader-upload-background-color:var(--van-gray-1);--van-uploader-upload-active-color:var(--van-active-color);--van-uploader-delete-color:var(--van-white);--van-uploader-delete-icon-size:14px;--van-uploader-delete-background-color:rgba(0, 0, 0, 0.7);--van-uploader-file-background-color:var(--van-background-color);--van-uploader-file-icon-size:20px;--van-uploader-file-icon-color:var(--van-gray-7);--van-uploader-file-name-padding:0 var(--van-padding-base);--van-uploader-file-name-margin-top:var(--van-padding-xs);--van-uploader-file-name-font-size:var(--van-font-size-sm);--van-uploader-file-name-text-color:var(--van-gray-7);--van-uploader-mask-text-color:var(--van-white);--van-uploader-mask-background-color:rgba(50, 50, 51, 0.88);--van-uploader-mask-icon-size:22px;--van-uploader-mask-message-font-size:var(--van-font-size-sm);--van-uploader-mask-message-line-height:var(--van-line-height-xs);--van-uploader-loading-icon-size:22px;--van-uploader-loading-icon-color:var(--van-white);--van-uploader-disabled-opacity:var(--van-disabled-opacity)}.van-uploader{position:relative;display:inline-block}.van-uploader__wrapper{display:flex;flex-wrap:wrap}.van-uploader__wrapper--disabled{opacity:var(--van-uploader-disabled-opacity)}.van-uploader__input{position:absolute;top:0;left:0;width:100%;height:100%;overflow:hidden;cursor:pointer;opacity:0}.van-uploader__input-wrapper{position:relative}.van-uploader__input:disabled{cursor:not-allowed}.van-uploader__upload{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;box-sizing:border-box;width:var(--van-uploader-size);height:var(--van-uploader-size);margin:0 var(--van-padding-xs) var(--van-padding-xs) 0;background-color:var(--van-uploader-upload-background-color)}.van-uploader__upload:active{background-color:var(--van-uploader-upload-active-color)}.van-uploader__upload--readonly:active{background-color:var(--van-uploader-upload-background-color)}.van-uploader__upload-icon{color:var(--van-uploader-icon-color);font-size:var(--van-uploader-icon-size)}.van-uploader__upload-text{margin-top:var(--van-padding-xs);color:var(--van-uploader-text-color);font-size:var(--van-uploader-text-font-size)}.van-uploader__preview{position:relative;margin:0 var(--van-padding-xs) var(--van-padding-xs) 0;cursor:pointer}.van-uploader__preview-image{display:block;width:var(--van-uploader-size);height:var(--van-uploader-size);overflow:hidden}.van-uploader__preview-delete{position:absolute;top:0;right:0;width:var(--van-uploader-delete-icon-size);height:var(--van-uploader-delete-icon-size);background-color:var(--van-uploader-delete-background-color);border-radius:0 0 0 12px}.van-uploader__preview-delete-icon{position:absolute;top:0;right:0;color
|
1
|
+
:root{--van-uploader-size:80px;--van-uploader-icon-size:24px;--van-uploader-icon-color:var(--van-gray-4);--van-uploader-text-color:var(--van-gray-6);--van-uploader-text-font-size:var(--van-font-size-sm);--van-uploader-upload-background-color:var(--van-gray-1);--van-uploader-upload-active-color:var(--van-active-color);--van-uploader-delete-color:var(--van-white);--van-uploader-delete-icon-size:14px;--van-uploader-delete-background-color:rgba(0, 0, 0, 0.7);--van-uploader-file-background-color:var(--van-background-color);--van-uploader-file-icon-size:20px;--van-uploader-file-icon-color:var(--van-gray-7);--van-uploader-file-name-padding:0 var(--van-padding-base);--van-uploader-file-name-margin-top:var(--van-padding-xs);--van-uploader-file-name-font-size:var(--van-font-size-sm);--van-uploader-file-name-text-color:var(--van-gray-7);--van-uploader-mask-text-color:var(--van-white);--van-uploader-mask-background-color:rgba(50, 50, 51, 0.88);--van-uploader-mask-icon-size:22px;--van-uploader-mask-message-font-size:var(--van-font-size-sm);--van-uploader-mask-message-line-height:var(--van-line-height-xs);--van-uploader-loading-icon-size:22px;--van-uploader-loading-icon-color:var(--van-white);--van-uploader-disabled-opacity:var(--van-disabled-opacity)}.van-uploader{position:relative;display:inline-block}.van-uploader__wrapper{display:flex;flex-wrap:wrap}.van-uploader__wrapper--disabled{opacity:var(--van-uploader-disabled-opacity)}.van-uploader__input{position:absolute;top:0;left:0;width:100%;height:100%;overflow:hidden;cursor:pointer;opacity:0}.van-uploader__input-wrapper{position:relative}.van-uploader__input:disabled{cursor:not-allowed}.van-uploader__upload{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;box-sizing:border-box;width:var(--van-uploader-size);height:var(--van-uploader-size);margin:0 var(--van-padding-xs) var(--van-padding-xs) 0;background-color:var(--van-uploader-upload-background-color)}.van-uploader__upload:active{background-color:var(--van-uploader-upload-active-color)}.van-uploader__upload--readonly:active{background-color:var(--van-uploader-upload-background-color)}.van-uploader__upload-icon{color:var(--van-uploader-icon-color);font-size:var(--van-uploader-icon-size)}.van-uploader__upload-text{margin-top:var(--van-padding-xs);color:var(--van-uploader-text-color);font-size:var(--van-uploader-text-font-size)}.van-uploader__preview{position:relative;margin:0 var(--van-padding-xs) var(--van-padding-xs) 0;cursor:pointer}.van-uploader__preview-image{display:block;width:var(--van-uploader-size);height:var(--van-uploader-size);overflow:hidden}.van-uploader__preview-delete{position:absolute;top:0;right:0;width:var(--van-uploader-delete-icon-size);height:var(--van-uploader-delete-icon-size);background-color:var(--van-uploader-delete-background-color);border-radius:0 0 0 12px}.van-uploader__preview-delete-icon{position:absolute;top:0;right:0;color:var(--van-uploader-delete-color);font-size:var(--van-uploader-delete-icon-size);transform:scale(.7) translate(10%,-10%)}.van-uploader__preview-cover{position:absolute;top:0;right:0;bottom:0;left:0}.van-uploader__mask{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--van-uploader-mask-text-color);background-color:var(--van-uploader-mask-background-color)}.van-uploader__mask-icon{font-size:var(--van-uploader-mask-icon-size)}.van-uploader__mask-message{margin-top:6px;padding:0 var(--van-padding-base);font-size:var(--van-uploader-mask-message-font-size);line-height:var(--van-uploader-mask-message-line-height)}.van-uploader__loading{width:var(--van-uploader-loading-icon-size);height:var(--van-uploader-loading-icon-size);color:var(--van-uploader-loading-icon-color)}.van-uploader__file{display:flex;flex-direction:column;align-items:center;justify-content:center;width:var(--van-uploader-size);height:var(--van-uploader-size);background-color:var(--van-uploader-file-background-color)}.van-uploader__file-icon{color:var(--van-uploader-file-icon-color);font-size:var(--van-uploader-file-icon-size)}.van-uploader__file-name{box-sizing:border-box;width:100%;margin-top:var(--van-uploader-file-name-margin-top);padding:var(--van-uploader-file-name-padding);color:var(--van-uploader-file-name-text-color);font-size:var(--van-uploader-file-name-font-size);text-align:center}
|
package/lib/uploader/index.d.ts
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
import { UploaderProps } from './Uploader';
|
1
2
|
export declare const Uploader: import("../utils").WithInstall<import("vue").DefineComponent<{
|
2
3
|
capture: StringConstructor;
|
3
4
|
multiple: BooleanConstructor;
|
@@ -133,4 +134,5 @@ export declare const Uploader: import("../utils").WithInstall<import("vue").Defi
|
|
133
134
|
uploadIcon: string;
|
134
135
|
}>>;
|
135
136
|
export default Uploader;
|
137
|
+
export type { UploaderProps };
|
136
138
|
export type { UploaderInstance, UploaderResultType, UploaderFileListItem, } from './types';
|