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/es/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/es/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/es/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/es/submit-bar/index.less
CHANGED
package/es/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';
|
package/es/swipe-cell/index.d.ts
CHANGED
@@ -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/es/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/es/tabs/utils.js
CHANGED
@@ -1,8 +1,6 @@
|
|
1
|
-
import { raf
|
1
|
+
import { raf } from '@vant/use';
|
2
2
|
import { getScrollTop, setScrollTop } from '../utils';
|
3
|
-
var rafId;
|
4
3
|
export function scrollLeftTo(scroller, to, duration) {
|
5
|
-
cancelRaf(rafId);
|
6
4
|
var count = 0;
|
7
5
|
var from = scroller.scrollLeft;
|
8
6
|
var frames = duration === 0 ? 1 : Math.round(duration * 1000 / 16);
|
@@ -11,7 +9,7 @@ export function scrollLeftTo(scroller, to, duration) {
|
|
11
9
|
scroller.scrollLeft += (to - from) / frames;
|
12
10
|
|
13
11
|
if (++count < frames) {
|
14
|
-
|
12
|
+
raf(animate);
|
15
13
|
}
|
16
14
|
}
|
17
15
|
|
package/es/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;
|
package/es/toast/Toast.js
CHANGED
@@ -6,7 +6,8 @@ import { lockClick } from './lock-click'; // Components
|
|
6
6
|
|
7
7
|
import { Icon } from '../icon';
|
8
8
|
import { Popup } from '../popup';
|
9
|
-
import { Loading } from '../loading';
|
9
|
+
import { Loading } from '../loading'; // Types
|
10
|
+
|
10
11
|
var [name, bem] = createNamespace('toast');
|
11
12
|
export default defineComponent({
|
12
13
|
name,
|
@@ -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/es/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
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
package/es/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/es/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';
|
package/es/uploader/index.less
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
import { AddressEditProps } from './AddressEdit';
|
1
2
|
export declare const AddressEdit: import("../utils").WithInstall<import("vue").DefineComponent<{
|
2
3
|
areaList: import("vue").PropType<import("..").AreaList>;
|
3
4
|
isSaving: BooleanConstructor;
|
@@ -120,4 +121,5 @@ export declare const AddressEdit: import("../utils").WithInstall<import("vue").D
|
|
120
121
|
areaColumnsPlaceholder: string[];
|
121
122
|
}>>;
|
122
123
|
export default AddressEdit;
|
124
|
+
export type { AddressEditProps };
|
123
125
|
export type { AddressEditInfo, AddressEditInstance, AddressEditSearchItem, } from './types';
|
package/lib/area/index.d.ts
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
import { AreaProps } from './Area';
|
1
2
|
export declare const Area: import("../utils").WithInstall<import("vue").DefineComponent<{
|
2
3
|
title: StringConstructor;
|
3
4
|
loading: BooleanConstructor;
|
@@ -90,4 +91,5 @@ export declare const Area: import("../utils").WithInstall<import("vue").DefineCo
|
|
90
91
|
columnsPlaceholder: string[];
|
91
92
|
}>>;
|
92
93
|
export default Area;
|
94
|
+
export type { AreaProps };
|
93
95
|
export type { AreaList, AreaInstance, AreaColumnOption } from './types';
|
package/lib/calendar/index.d.ts
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
import { CalendarProps } from './Calendar';
|
1
2
|
export declare const Calendar: import("../utils").WithInstall<import("vue").DefineComponent<{
|
2
3
|
show: BooleanConstructor;
|
3
4
|
title: StringConstructor;
|
@@ -174,4 +175,5 @@ export declare const Calendar: import("../utils").WithInstall<import("vue").Defi
|
|
174
175
|
showRangePrompt: boolean;
|
175
176
|
}>>;
|
176
177
|
export default Calendar;
|
178
|
+
export type { CalendarProps };
|
177
179
|
export type { CalendarType, CalendarDayItem, CalendarDayType, CalendarInstance, } from './types';
|
package/lib/checkbox/Checker.js
CHANGED
@@ -67,7 +67,7 @@ var _default = (0, _vue.defineComponent)({
|
|
67
67
|
target
|
68
68
|
} = event;
|
69
69
|
var icon = iconRef.value;
|
70
|
-
var iconClicked = icon === target || icon.contains(target);
|
70
|
+
var iconClicked = icon === target || (icon == null ? void 0 : icon.contains(target));
|
71
71
|
|
72
72
|
if (!disabled.value && (iconClicked || !props.labelDisabled)) {
|
73
73
|
emit('toggle');
|
package/lib/checkbox/index.d.ts
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
import { CheckboxProps } from './Checkbox';
|
1
2
|
export declare const Checkbox: import("../utils").WithInstall<import("vue").DefineComponent<{
|
2
3
|
name: import("vue").PropType<unknown>;
|
3
4
|
disabled: BooleanConstructor;
|
@@ -46,4 +47,5 @@ export declare const Checkbox: import("../utils").WithInstall<import("vue").Defi
|
|
46
47
|
bindGroup: boolean;
|
47
48
|
}>>;
|
48
49
|
export default Checkbox;
|
50
|
+
export type { CheckboxProps };
|
49
51
|
export type { CheckboxInstance } from './types';
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import { CheckboxGroupProps } from './CheckboxGroup';
|
1
2
|
export declare const CheckboxGroup: import("../utils").WithInstall<import("vue").DefineComponent<{
|
2
3
|
max: (NumberConstructor | StringConstructor)[];
|
3
4
|
disabled: BooleanConstructor;
|
@@ -31,4 +32,5 @@ export declare const CheckboxGroup: import("../utils").WithInstall<import("vue")
|
|
31
32
|
modelValue: unknown[];
|
32
33
|
}>>;
|
33
34
|
export default CheckboxGroup;
|
35
|
+
export type { CheckboxGroupProps };
|
34
36
|
export type { CheckboxGroupInstance, CheckboxGroupToggleAllOptions, } from './types';
|
@@ -96,7 +96,9 @@ var _default = (0, _vue.defineComponent)({
|
|
96
96
|
wrapperRef.value.style.height = value ? '0' : contentHeight; // use double raf to ensure animation can start
|
97
97
|
|
98
98
|
(0, _use.doubleRaf)(() => {
|
99
|
-
wrapperRef.value
|
99
|
+
if (wrapperRef.value) {
|
100
|
+
wrapperRef.value.style.height = value ? contentHeight : '0';
|
101
|
+
}
|
100
102
|
});
|
101
103
|
} else {
|
102
104
|
onTransitionEnd();
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import { CollapseItemProps } from './CollapseItem';
|
1
2
|
export declare const CollapseItem: import("../utils").WithInstall<import("vue").DefineComponent<{
|
2
3
|
icon: StringConstructor;
|
3
4
|
size: import("vue").PropType<"large">;
|
@@ -80,4 +81,5 @@ export declare const CollapseItem: import("../utils").WithInstall<import("vue").
|
|
80
81
|
readonly: boolean;
|
81
82
|
}>>;
|
82
83
|
export default CollapseItem;
|
84
|
+
export type { CollapseItemProps };
|
83
85
|
export type { CollapseItemInstance } from './types';
|
@@ -1,5 +1,4 @@
|
|
1
|
-
import { ExtractPropTypes
|
2
|
-
import { CurrentTime } from '@vant/use';
|
1
|
+
import { ExtractPropTypes } from 'vue';
|
3
2
|
declare const props: {
|
4
3
|
autoStart: {
|
5
4
|
type: BooleanConstructor;
|
@@ -15,14 +14,7 @@ declare const props: {
|
|
15
14
|
default: string;
|
16
15
|
};
|
17
16
|
};
|
18
|
-
declare type CountDownProps = ExtractPropTypes<typeof props>;
|
19
|
-
declare type CountDownExpose = {
|
20
|
-
start: () => void;
|
21
|
-
pause: () => void;
|
22
|
-
reset: () => void;
|
23
|
-
};
|
24
|
-
export declare type CountDownInstance = ComponentPublicInstance<CountDownProps, CountDownExpose>;
|
25
|
-
export declare type CountDownCurrentTime = CurrentTime;
|
17
|
+
export declare type CountDownProps = ExtractPropTypes<typeof props>;
|
26
18
|
declare const _default: import("vue").DefineComponent<{
|
27
19
|
autoStart: {
|
28
20
|
type: BooleanConstructor;
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import { CountDownProps } from './CountDown';
|
1
2
|
export declare const CountDown: import("../utils").WithInstall<import("vue").DefineComponent<{
|
2
3
|
autoStart: {
|
3
4
|
type: BooleanConstructor;
|
@@ -32,4 +33,5 @@ export declare const CountDown: import("../utils").WithInstall<import("vue").Def
|
|
32
33
|
format: string;
|
33
34
|
}>>;
|
34
35
|
export default CountDown;
|
35
|
-
export type {
|
36
|
+
export type { CountDownProps };
|
37
|
+
export type { CountDownInstance, CountDownCurrentTime } from './types';
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import type { ComponentPublicInstance } from 'vue';
|
2
|
+
import type { CurrentTime } from '@vant/use';
|
3
|
+
import type { CountDownProps } from './CountDown';
|
4
|
+
declare type CountDownExpose = {
|
5
|
+
start: () => void;
|
6
|
+
pause: () => void;
|
7
|
+
reset: () => void;
|
8
|
+
};
|
9
|
+
export declare type CountDownInstance = ComponentPublicInstance<CountDownProps, CountDownExpose>;
|
10
|
+
export declare type CountDownCurrentTime = CurrentTime;
|
11
|
+
export {};
|
@@ -7,8 +7,6 @@ var _vue = require("vue");
|
|
7
7
|
|
8
8
|
var _utils = require("../utils");
|
9
9
|
|
10
|
-
var _use = require("@vant/use");
|
11
|
-
|
12
10
|
var _useRefs = require("../composables/use-refs");
|
13
11
|
|
14
12
|
var _tab = require("../tab");
|
@@ -84,13 +82,7 @@ var _default = (0, _vue.defineComponent)({
|
|
84
82
|
tab: 0,
|
85
83
|
code: props.code
|
86
84
|
});
|
87
|
-
var {
|
88
|
-
height: windowHeight
|
89
|
-
} = (0, _use.useWindowSize)();
|
90
85
|
var buttonDisabled = (0, _vue.computed)(() => !props.exchangeButtonLoading && (props.exchangeButtonDisabled || !state.code || state.code.length < props.exchangeMinLength));
|
91
|
-
var listStyle = (0, _vue.computed)(() => ({
|
92
|
-
height: windowHeight.value - (props.showExchangeBar ? 140 : 94) + 'px'
|
93
|
-
}));
|
94
86
|
|
95
87
|
var onExchange = () => {
|
96
88
|
emit('exchange', state.code); // auto clear currentCode when not use v-model
|
@@ -151,9 +143,9 @@ var _default = (0, _vue.defineComponent)({
|
|
151
143
|
}, {
|
152
144
|
default: () => [(0, _vue.createVNode)("div", {
|
153
145
|
"class": bem('list', {
|
146
|
+
'with-bar': props.showExchangeBar,
|
154
147
|
'with-bottom': props.showCloseButton
|
155
|
-
})
|
156
|
-
"style": listStyle.value
|
148
|
+
})
|
157
149
|
}, [coupons.map((coupon, index) => (0, _vue.createVNode)(_coupon.Coupon, {
|
158
150
|
"key": coupon.id,
|
159
151
|
"ref": setCouponRefs(index),
|
@@ -178,9 +170,9 @@ var _default = (0, _vue.defineComponent)({
|
|
178
170
|
}, {
|
179
171
|
default: () => [(0, _vue.createVNode)("div", {
|
180
172
|
"class": bem('list', {
|
173
|
+
'with-bar': props.showExchangeBar,
|
181
174
|
'with-bottom': props.showCloseButton
|
182
|
-
})
|
183
|
-
"style": listStyle.value
|
175
|
+
})
|
184
176
|
}, [disabledCoupons.map(coupon => (0, _vue.createVNode)(_coupon.Coupon, {
|
185
177
|
"disabled": true,
|
186
178
|
"key": coupon.id,
|
@@ -1 +1 @@
|
|
1
|
-
:root{--van-coupon-list-background-color:var(--van-background-color);--van-coupon-list-field-padding:5px 0 5px var(--van-padding-md);--van-coupon-list-exchange-button-height:32px;--van-coupon-list-close-button-height:40px;--van-coupon-list-empty-image-size:200px;--van-coupon-list-empty-tip-color:var(--van-gray-6);--van-coupon-list-empty-tip-font-size:var(--van-font-size-md);--van-coupon-list-empty-tip-line-height:var(--van-line-height-md)}.van-coupon-list{position:relative;height:100%;background-color:var(--van-coupon-list-background-color)}.van-coupon-list__field{padding:var(--van-coupon-list-field-padding)}.van-coupon-list__field .van-field__body{height:34px;padding-left:var(--van-padding-sm);line-height:34px;background:var(--van-gray-1);border-radius:17px}.van-coupon-list__field .van-field__body::-webkit-input-placeholder{color:var(--van-gray-5)}.van-coupon-list__field .van-field__body::placeholder{color:var(--van-gray-5)}.van-coupon-list__field .van-field__clear{margin-right:0}.van-coupon-list__exchange-bar{display:flex;align-items:center;background-color:var(--van-white)}.van-coupon-list__exchange{flex:none;height:var(--van-coupon-list-exchange-button-height);font-size:var(--van-font-size-lg);line-height:calc(var(--van-coupon-list-exchange-button-height) - 2px);border:0}.van-coupon-list .van-tabs__wrap{box-shadow:0 6px 12px -12px var(--van-gray-6)}.van-coupon-list__list{box-sizing:border-box;padding:var(--van-padding-md) 0 var(--van-padding-lg);overflow-y:auto;-webkit-overflow-scrolling:touch}.van-coupon-list__list--with-
|
1
|
+
:root{--van-coupon-list-background-color:var(--van-background-color);--van-coupon-list-field-padding:5px 0 5px var(--van-padding-md);--van-coupon-list-exchange-button-height:32px;--van-coupon-list-close-button-height:40px;--van-coupon-list-empty-image-size:200px;--van-coupon-list-empty-tip-color:var(--van-gray-6);--van-coupon-list-empty-tip-font-size:var(--van-font-size-md);--van-coupon-list-empty-tip-line-height:var(--van-line-height-md)}.van-coupon-list{position:relative;height:100%;background-color:var(--van-coupon-list-background-color)}.van-coupon-list__field{padding:var(--van-coupon-list-field-padding)}.van-coupon-list__field .van-field__body{height:34px;padding-left:var(--van-padding-sm);line-height:34px;background:var(--van-gray-1);border-radius:17px}.van-coupon-list__field .van-field__body::-webkit-input-placeholder{color:var(--van-gray-5)}.van-coupon-list__field .van-field__body::placeholder{color:var(--van-gray-5)}.van-coupon-list__field .van-field__clear{margin-right:0}.van-coupon-list__exchange-bar{display:flex;align-items:center;background-color:var(--van-white)}.van-coupon-list__exchange{flex:none;height:var(--van-coupon-list-exchange-button-height);font-size:var(--van-font-size-lg);line-height:calc(var(--van-coupon-list-exchange-button-height) - 2px);border:0}.van-coupon-list .van-tabs__wrap{box-shadow:0 6px 12px -12px var(--van-gray-6)}.van-coupon-list__list{box-sizing:border-box;height:calc(100vh - 108px);padding:var(--van-padding-md) 0 var(--van-padding-lg);overflow-y:auto;-webkit-overflow-scrolling:touch}.van-coupon-list__list--with-bar{height:calc(100vh - 152px)}.van-coupon-list__list--with-bottom{padding-bottom:50px}.van-coupon-list__bottom{position:absolute;bottom:0;left:0;z-index:999;box-sizing:border-box;width:100%;padding:5px var(--van-padding-md);font-weight:var(--van-font-weight-bold);background-color:var(--van-white)}.van-coupon-list__close{height:var(--van-coupon-list-close-button-height)}.van-coupon-list__empty{padding-top:60px;text-align:center}.van-coupon-list__empty p{margin:var(--van-padding-md) 0;color:var(--van-coupon-list-empty-tip-color);font-size:var(--van-coupon-list-empty-tip-font-size);line-height:var(--van-coupon-list-empty-tip-line-height)}.van-coupon-list__empty img{width:var(--van-coupon-list-empty-image-size);height:var(--van-coupon-list-empty-image-size)}
|
@@ -56,12 +56,17 @@
|
|
56
56
|
|
57
57
|
&__list {
|
58
58
|
box-sizing: border-box;
|
59
|
+
height: calc(100vh - 108px);
|
59
60
|
padding: var(--van-padding-md) 0 var(--van-padding-lg);
|
60
61
|
overflow-y: auto;
|
61
62
|
-webkit-overflow-scrolling: touch;
|
62
63
|
|
64
|
+
&--with-bar {
|
65
|
+
height: calc(100vh - 152px);
|
66
|
+
}
|
67
|
+
|
63
68
|
&--with-bottom {
|
64
|
-
padding-bottom:
|
69
|
+
padding-bottom: 50px;
|
65
70
|
}
|
66
71
|
}
|
67
72
|
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import { DatetimePickerProps } from './DatetimePicker';
|
1
2
|
export declare const DatetimePicker: import("../utils").WithInstall<import("vue").DefineComponent<any, () => 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<{
|
2
3
|
[x: string]: any;
|
3
4
|
}> | Readonly<{
|
@@ -11,4 +12,5 @@ export declare const DatetimePicker: import("../utils").WithInstall<import("vue"
|
|
11
12
|
[x: string]: any;
|
12
13
|
}>>;
|
13
14
|
export default DatetimePicker;
|
15
|
+
export type { DatetimePickerProps };
|
14
16
|
export type { DatetimePickerType, DatetimePickerInstance } from './types';
|
package/lib/dialog/Dialog.d.ts
CHANGED
@@ -1,8 +1,5 @@
|
|
1
1
|
import { PropType } from 'vue';
|
2
|
-
|
3
|
-
export declare type DialogAction = 'confirm' | 'cancel';
|
4
|
-
export declare type DialogMessage = string | (() => JSX.Element);
|
5
|
-
export declare type DialogMessageAlign = 'left' | 'center' | 'right';
|
2
|
+
import type { DialogTheme, DialogAction, DialogMessage, DialogMessageAlign } from './types';
|
6
3
|
declare const _default: import("vue").DefineComponent<{
|
7
4
|
show: BooleanConstructor;
|
8
5
|
zIndex: (NumberConstructor | StringConstructor)[];
|