vant 4.8.5 → 4.8.6
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/index.d.ts +1 -1
- package/es/action-bar-button/index.d.ts +3 -3
- package/es/action-bar-icon/index.d.ts +3 -3
- package/es/action-sheet/ActionSheet.d.ts +4 -3
- package/es/action-sheet/ActionSheet.mjs +9 -1
- package/es/action-sheet/index.css +1 -1
- package/es/action-sheet/index.d.ts +3 -3
- package/es/address-edit/index.d.ts +5 -5
- package/es/address-list/index.d.ts +1 -1
- package/es/area/Area.d.ts +3 -3
- package/es/area/index.d.ts +2 -2
- package/es/back-top/index.d.ts +1 -1
- package/es/badge/index.d.ts +3 -3
- package/es/barrage/Barrage.d.ts +1 -1
- package/es/barrage/index.d.ts +2 -2
- package/es/button/index.d.ts +3 -3
- package/es/calendar/index.d.ts +6 -6
- package/es/calendar/utils.d.ts +1 -1
- package/es/card/index.d.ts +1 -1
- package/es/cascader/index.d.ts +1 -1
- package/es/cell/index.d.ts +1 -1
- package/es/cell-group/index.d.ts +1 -1
- package/es/checkbox/index.d.ts +5 -5
- package/es/checkbox-group/index.d.ts +8 -8
- package/es/circle/index.d.ts +1 -1
- package/es/col/index.d.ts +1 -1
- package/es/collapse/index.d.ts +4 -4
- package/es/collapse-item/index.d.ts +5 -5
- package/es/config-provider/index.d.ts +1 -1
- package/es/contact-card/index.d.ts +1 -1
- package/es/contact-edit/index.d.ts +3 -3
- package/es/contact-list/index.d.ts +1 -1
- package/es/count-down/index.d.ts +1 -1
- package/es/coupon/index.d.ts +1 -1
- package/es/coupon-cell/index.d.ts +4 -4
- package/es/coupon-list/index.d.ts +7 -7
- package/es/date-picker/DatePicker.d.ts +10 -10
- package/es/date-picker/index.d.ts +8 -8
- package/es/dialog/Dialog.d.ts +3 -3
- package/es/dialog/index.d.ts +3 -3
- package/es/divider/index.d.ts +1 -1
- package/es/dropdown-item/index.d.ts +1 -1
- package/es/dropdown-menu/DropdownMenu.d.ts +1 -1
- package/es/dropdown-menu/index.d.ts +2 -2
- package/es/empty/index.d.ts +3 -3
- package/es/field/index.d.ts +5 -5
- package/es/floating-bubble/index.d.ts +1 -1
- package/es/floating-panel/FloatingPanel.d.ts +1 -1
- package/es/floating-panel/index.d.ts +2 -2
- package/es/form/index.d.ts +10 -10
- package/es/grid/index.d.ts +1 -1
- package/es/grid-item/index.d.ts +3 -3
- package/es/highlight/index.d.ts +1 -1
- package/es/icon/index.d.ts +3 -3
- package/es/image/index.d.ts +1 -1
- package/es/image-preview/ImagePreview.d.ts +4 -0
- package/es/image-preview/ImagePreview.mjs +3 -0
- package/es/image-preview/ImagePreviewItem.d.ts +4 -0
- package/es/image-preview/ImagePreviewItem.mjs +3 -2
- package/es/image-preview/function-call.mjs +1 -0
- package/es/image-preview/index.d.ts +11 -8
- package/es/image-preview/types.d.ts +1 -0
- package/es/index-anchor/index.d.ts +1 -1
- package/es/index-bar/index.d.ts +4 -4
- package/es/index.d.ts +1 -1
- package/es/index.mjs +1 -1
- package/es/list/index.d.ts +1 -1
- package/es/loading/index.d.ts +1 -1
- package/es/nav-bar/index.d.ts +1 -1
- package/es/notice-bar/index.d.ts +1 -1
- package/es/notify/Notify.d.ts +3 -3
- package/es/notify/index.d.ts +3 -3
- package/es/number-keyboard/index.d.ts +1 -1
- package/es/overlay/index.d.ts +1 -1
- package/es/pagination/Pagination.d.ts +1 -1
- package/es/pagination/index.d.ts +2 -2
- package/es/password-input/index.d.ts +1 -1
- package/es/picker/index.d.ts +4 -4
- package/es/picker/utils.d.ts +1 -1
- package/es/picker-group/index.d.ts +1 -1
- package/es/popover/index.d.ts +1 -1
- package/es/popup/Popup.d.ts +3 -3
- package/es/popup/index.d.ts +3 -3
- package/es/progress/index.d.ts +3 -3
- package/es/pull-refresh/index.d.ts +1 -1
- package/es/radio/index.d.ts +3 -3
- package/es/radio-group/index.d.ts +5 -5
- package/es/rate/index.d.ts +1 -1
- package/es/rolling-text/index.d.ts +1 -1
- package/es/row/index.d.ts +1 -1
- package/es/search/Search.d.ts +17 -17
- package/es/search/index.d.ts +13 -13
- package/es/share-sheet/ShareSheet.d.ts +3 -3
- package/es/share-sheet/index.d.ts +3 -3
- package/es/sidebar/index.d.ts +1 -1
- package/es/sidebar-item/index.d.ts +3 -3
- package/es/signature/Signature.mjs +3 -1
- package/es/signature/index.d.ts +1 -1
- package/es/signature/types.d.ts +2 -0
- package/es/skeleton/index.d.ts +9 -9
- package/es/skeleton-avatar/index.d.ts +1 -1
- package/es/skeleton-image/index.d.ts +1 -1
- package/es/skeleton-paragraph/index.d.ts +1 -1
- package/es/skeleton-title/index.d.ts +1 -1
- package/es/slider/index.d.ts +1 -1
- package/es/space/index.d.ts +1 -1
- package/es/step/index.d.ts +1 -1
- package/es/stepper/index.d.ts +3 -3
- package/es/steps/index.d.ts +1 -1
- package/es/sticky/index.d.ts +1 -1
- package/es/submit-bar/index.d.ts +6 -6
- package/es/swipe/Swipe.d.ts +1 -1
- package/es/swipe/index.d.ts +2 -2
- package/es/swipe-cell/index.d.ts +3 -3
- package/es/swipe-item/index.d.ts +1 -1
- package/es/switch/index.d.ts +1 -1
- package/es/tab/index.d.ts +1 -1
- package/es/tabbar/index.d.ts +3 -3
- package/es/tabbar-item/index.d.ts +3 -3
- package/es/tabs/Tabs.d.ts +1 -1
- package/es/tabs/index.d.ts +4 -4
- package/es/tag/index.d.ts +1 -1
- package/es/text-ellipsis/index.d.ts +1 -1
- package/es/time-picker/TimePicker.d.ts +13 -13
- package/es/time-picker/index.d.ts +10 -10
- package/es/toast/Toast.d.ts +1 -1
- package/es/toast/index.d.ts +4 -4
- package/es/tree-select/index.d.ts +4 -4
- package/es/uploader/index.d.ts +7 -7
- package/es/uploader/utils.d.ts +1 -1
- package/es/watermark/index.d.ts +1 -1
- package/lib/action-bar/index.d.ts +1 -1
- package/lib/action-bar-button/index.d.ts +3 -3
- package/lib/action-bar-icon/index.d.ts +3 -3
- package/lib/action-sheet/ActionSheet.d.ts +4 -3
- package/lib/action-sheet/ActionSheet.js +9 -1
- package/lib/action-sheet/index.css +1 -1
- package/lib/action-sheet/index.d.ts +3 -3
- package/lib/address-edit/index.d.ts +5 -5
- package/lib/address-list/index.d.ts +1 -1
- package/lib/area/Area.d.ts +3 -3
- package/lib/area/index.d.ts +2 -2
- package/lib/back-top/index.d.ts +1 -1
- package/lib/badge/index.d.ts +3 -3
- package/lib/barrage/Barrage.d.ts +1 -1
- package/lib/barrage/index.d.ts +2 -2
- package/lib/button/index.d.ts +3 -3
- package/lib/calendar/index.d.ts +6 -6
- package/lib/calendar/utils.d.ts +1 -1
- package/lib/card/index.d.ts +1 -1
- package/lib/cascader/index.d.ts +1 -1
- package/lib/cell/index.d.ts +1 -1
- package/lib/cell-group/index.d.ts +1 -1
- package/lib/checkbox/index.d.ts +5 -5
- package/lib/checkbox-group/index.d.ts +8 -8
- package/lib/circle/index.d.ts +1 -1
- package/lib/col/index.d.ts +1 -1
- package/lib/collapse/index.d.ts +4 -4
- package/lib/collapse-item/index.d.ts +5 -5
- package/lib/config-provider/index.d.ts +1 -1
- package/lib/contact-card/index.d.ts +1 -1
- package/lib/contact-edit/index.d.ts +3 -3
- package/lib/contact-list/index.d.ts +1 -1
- package/lib/count-down/index.d.ts +1 -1
- package/lib/coupon/index.d.ts +1 -1
- package/lib/coupon-cell/index.d.ts +4 -4
- package/lib/coupon-list/index.d.ts +7 -7
- package/lib/date-picker/DatePicker.d.ts +10 -10
- package/lib/date-picker/index.d.ts +8 -8
- package/lib/dialog/Dialog.d.ts +3 -3
- package/lib/dialog/index.d.ts +3 -3
- package/lib/divider/index.d.ts +1 -1
- package/lib/dropdown-item/index.d.ts +1 -1
- package/lib/dropdown-menu/DropdownMenu.d.ts +1 -1
- package/lib/dropdown-menu/index.d.ts +2 -2
- package/lib/empty/index.d.ts +3 -3
- package/lib/field/index.d.ts +5 -5
- package/lib/floating-bubble/index.d.ts +1 -1
- package/lib/floating-panel/FloatingPanel.d.ts +1 -1
- package/lib/floating-panel/index.d.ts +2 -2
- package/lib/form/index.d.ts +10 -10
- package/lib/grid/index.d.ts +1 -1
- package/lib/grid-item/index.d.ts +3 -3
- package/lib/highlight/index.d.ts +1 -1
- package/lib/icon/index.d.ts +3 -3
- package/lib/image/index.d.ts +1 -1
- package/lib/image-preview/ImagePreview.d.ts +4 -0
- package/lib/image-preview/ImagePreview.js +3 -0
- package/lib/image-preview/ImagePreviewItem.d.ts +4 -0
- package/lib/image-preview/ImagePreviewItem.js +3 -2
- package/lib/image-preview/function-call.js +1 -0
- package/lib/image-preview/index.d.ts +11 -8
- package/lib/image-preview/types.d.ts +1 -0
- package/lib/index-anchor/index.d.ts +1 -1
- package/lib/index-bar/index.d.ts +4 -4
- 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 +1 -1
- package/lib/loading/index.d.ts +1 -1
- package/lib/nav-bar/index.d.ts +1 -1
- package/lib/notice-bar/index.d.ts +1 -1
- package/lib/notify/Notify.d.ts +3 -3
- package/lib/notify/index.d.ts +3 -3
- package/lib/number-keyboard/index.d.ts +1 -1
- package/lib/overlay/index.d.ts +1 -1
- package/lib/pagination/Pagination.d.ts +1 -1
- package/lib/pagination/index.d.ts +2 -2
- package/lib/password-input/index.d.ts +1 -1
- package/lib/picker/index.d.ts +4 -4
- package/lib/picker/utils.d.ts +1 -1
- package/lib/picker-group/index.d.ts +1 -1
- package/lib/popover/index.d.ts +1 -1
- package/lib/popup/Popup.d.ts +3 -3
- package/lib/popup/index.d.ts +3 -3
- package/lib/progress/index.d.ts +3 -3
- package/lib/pull-refresh/index.d.ts +1 -1
- package/lib/radio/index.d.ts +3 -3
- package/lib/radio-group/index.d.ts +5 -5
- package/lib/rate/index.d.ts +1 -1
- package/lib/rolling-text/index.d.ts +1 -1
- package/lib/row/index.d.ts +1 -1
- package/lib/search/Search.d.ts +17 -17
- package/lib/search/index.d.ts +13 -13
- package/lib/share-sheet/ShareSheet.d.ts +3 -3
- package/lib/share-sheet/index.d.ts +3 -3
- package/lib/sidebar/index.d.ts +1 -1
- package/lib/sidebar-item/index.d.ts +3 -3
- package/lib/signature/Signature.js +3 -1
- package/lib/signature/index.d.ts +1 -1
- package/lib/signature/types.d.ts +2 -0
- package/lib/skeleton/index.d.ts +9 -9
- package/lib/skeleton-avatar/index.d.ts +1 -1
- package/lib/skeleton-image/index.d.ts +1 -1
- package/lib/skeleton-paragraph/index.d.ts +1 -1
- package/lib/skeleton-title/index.d.ts +1 -1
- package/lib/slider/index.d.ts +1 -1
- package/lib/space/index.d.ts +1 -1
- package/lib/step/index.d.ts +1 -1
- package/lib/stepper/index.d.ts +3 -3
- package/lib/steps/index.d.ts +1 -1
- package/lib/sticky/index.d.ts +1 -1
- package/lib/submit-bar/index.d.ts +6 -6
- package/lib/swipe/Swipe.d.ts +1 -1
- package/lib/swipe/index.d.ts +2 -2
- package/lib/swipe-cell/index.d.ts +3 -3
- package/lib/swipe-item/index.d.ts +1 -1
- package/lib/switch/index.d.ts +1 -1
- package/lib/tab/index.d.ts +1 -1
- package/lib/tabbar/index.d.ts +3 -3
- package/lib/tabbar-item/index.d.ts +3 -3
- package/lib/tabs/Tabs.d.ts +1 -1
- package/lib/tabs/index.d.ts +4 -4
- package/lib/tag/index.d.ts +1 -1
- package/lib/text-ellipsis/index.d.ts +1 -1
- package/lib/time-picker/TimePicker.d.ts +13 -13
- package/lib/time-picker/index.d.ts +10 -10
- package/lib/toast/Toast.d.ts +1 -1
- package/lib/toast/index.d.ts +4 -4
- package/lib/tree-select/index.d.ts +4 -4
- package/lib/uploader/index.d.ts +7 -7
- package/lib/uploader/utils.d.ts +1 -1
- package/lib/vant.cjs.js +20 -5
- package/lib/vant.es.js +20 -5
- package/lib/vant.js +20 -5
- package/lib/vant.min.js +2 -2
- package/lib/watermark/index.d.ts +1 -1
- package/lib/web-types.json +1 -1
- package/package.json +1 -1
@@ -1,4 +1,4 @@
|
|
1
|
-
export declare const TreeSelect: import("
|
1
|
+
export declare const TreeSelect: import("packages/vant/lib/utils/with-install").WithInstall<import("vue").DefineComponent<{
|
2
2
|
max: {
|
3
3
|
type: (NumberConstructor | StringConstructor)[];
|
4
4
|
default: number;
|
@@ -20,7 +20,7 @@ export declare const TreeSelect: import("../utils").WithInstall<import("vue").De
|
|
20
20
|
default: number;
|
21
21
|
};
|
22
22
|
activeId: {
|
23
|
-
type: import("vue").PropType<import("
|
23
|
+
type: import("vue").PropType<import("packages/vant/lib/utils/basic").Numeric | import("packages/vant/lib/utils/basic").Numeric[]>;
|
24
24
|
default: number;
|
25
25
|
};
|
26
26
|
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clickItem" | "clickNav" | "update:activeId" | "update:mainActiveIndex")[], "clickItem" | "clickNav" | "update:activeId" | "update:mainActiveIndex", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
@@ -45,7 +45,7 @@ export declare const TreeSelect: import("../utils").WithInstall<import("vue").De
|
|
45
45
|
default: number;
|
46
46
|
};
|
47
47
|
activeId: {
|
48
|
-
type: import("vue").PropType<import("
|
48
|
+
type: import("vue").PropType<import("packages/vant/lib/utils/basic").Numeric | import("packages/vant/lib/utils/basic").Numeric[]>;
|
49
49
|
default: number;
|
50
50
|
};
|
51
51
|
}>> & {
|
@@ -59,7 +59,7 @@ export declare const TreeSelect: import("../utils").WithInstall<import("vue").De
|
|
59
59
|
items: import("./TreeSelect").TreeSelectItem[];
|
60
60
|
selectedIcon: string;
|
61
61
|
mainActiveIndex: string | number;
|
62
|
-
activeId: import("
|
62
|
+
activeId: import("packages/vant/lib/utils/basic").Numeric | import("packages/vant/lib/utils/basic").Numeric[];
|
63
63
|
}, {}>>;
|
64
64
|
export default TreeSelect;
|
65
65
|
export { treeSelectProps } from './TreeSelect';
|
package/lib/uploader/index.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { UploaderProps } from './Uploader';
|
2
|
-
export declare const Uploader: import("
|
2
|
+
export declare const Uploader: import("packages/vant/lib/utils/with-install").WithInstall<import("vue").DefineComponent<{
|
3
3
|
name: {
|
4
4
|
type: (NumberConstructor | StringConstructor)[];
|
5
5
|
default: string;
|
@@ -45,13 +45,13 @@ export declare const Uploader: import("../utils").WithInstall<import("vue").Defi
|
|
45
45
|
default: () => never[];
|
46
46
|
};
|
47
47
|
beforeRead: import("vue").PropType<import("./types").UploaderBeforeRead>;
|
48
|
-
beforeDelete: import("vue").PropType<import("
|
49
|
-
previewSize: import("vue").PropType<import("
|
48
|
+
beforeDelete: import("vue").PropType<import("packages/vant/lib/utils/interceptor").Interceptor>;
|
49
|
+
previewSize: import("vue").PropType<import("packages/vant/lib/utils/basic").Numeric | [import("packages/vant/lib/utils/basic").Numeric, import("packages/vant/lib/utils/basic").Numeric]>;
|
50
50
|
previewImage: {
|
51
51
|
type: BooleanConstructor;
|
52
52
|
default: true;
|
53
53
|
};
|
54
|
-
previewOptions: import("vue").PropType<Partial<import("
|
54
|
+
previewOptions: import("vue").PropType<Partial<import("packages/vant/lib").ImagePreviewOptions>>;
|
55
55
|
previewFullImage: {
|
56
56
|
type: BooleanConstructor;
|
57
57
|
default: true;
|
@@ -106,13 +106,13 @@ export declare const Uploader: import("../utils").WithInstall<import("vue").Defi
|
|
106
106
|
default: () => never[];
|
107
107
|
};
|
108
108
|
beforeRead: import("vue").PropType<import("./types").UploaderBeforeRead>;
|
109
|
-
beforeDelete: import("vue").PropType<import("
|
110
|
-
previewSize: import("vue").PropType<import("
|
109
|
+
beforeDelete: import("vue").PropType<import("packages/vant/lib/utils/interceptor").Interceptor>;
|
110
|
+
previewSize: import("vue").PropType<import("packages/vant/lib/utils/basic").Numeric | [import("packages/vant/lib/utils/basic").Numeric, import("packages/vant/lib/utils/basic").Numeric]>;
|
111
111
|
previewImage: {
|
112
112
|
type: BooleanConstructor;
|
113
113
|
default: true;
|
114
114
|
};
|
115
|
-
previewOptions: import("vue").PropType<Partial<import("
|
115
|
+
previewOptions: import("vue").PropType<Partial<import("packages/vant/lib").ImagePreviewOptions>>;
|
116
116
|
previewFullImage: {
|
117
117
|
type: BooleanConstructor;
|
118
118
|
default: true;
|
package/lib/uploader/utils.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import type { UploaderMaxSize, UploaderResultType, UploaderFileListItem } from './types';
|
2
|
-
declare const name: string, bem: (el?: import("
|
2
|
+
declare const name: string, bem: (el?: import("packages/vant/lib/utils/create").Mods | undefined, mods?: import("packages/vant/lib/utils/create").Mods | undefined) => import("packages/vant/lib/utils/create").Mods, t: (path: string, ...args: unknown[]) => any;
|
3
3
|
export { name, bem, t };
|
4
4
|
export declare function readFileContent(file: File, resultType: UploaderResultType): Promise<string | void>;
|
5
5
|
export declare function isOversize(items: UploaderFileListItem | UploaderFileListItem[], maxSize: UploaderMaxSize): boolean;
|
package/lib/vant.cjs.js
CHANGED
@@ -1567,6 +1567,14 @@ var stdin_default$1J = vue.defineComponent({
|
|
1567
1567
|
}, [slots.cancel ? slots.cancel() : props2.cancelText])];
|
1568
1568
|
}
|
1569
1569
|
};
|
1570
|
+
const renderIcon = (action) => {
|
1571
|
+
if (action.icon) {
|
1572
|
+
return vue.createVNode(Icon, {
|
1573
|
+
"class": bem$1v("item-icon"),
|
1574
|
+
"name": action.icon
|
1575
|
+
}, null);
|
1576
|
+
}
|
1577
|
+
};
|
1570
1578
|
const renderActionContent = (action, index) => {
|
1571
1579
|
if (action.loading) {
|
1572
1580
|
return vue.createVNode(Loading, {
|
@@ -1615,7 +1623,7 @@ var stdin_default$1J = vue.defineComponent({
|
|
1615
1623
|
disabled
|
1616
1624
|
}), className],
|
1617
1625
|
"onClick": onClick
|
1618
|
-
}, [renderActionContent(action, index)]);
|
1626
|
+
}, [renderIcon(action), renderActionContent(action, index)]);
|
1619
1627
|
};
|
1620
1628
|
const renderDescription = () => {
|
1621
1629
|
if (props2.description || slots.description) {
|
@@ -10486,7 +10494,8 @@ const imagePreviewItemProps = {
|
|
10486
10494
|
disableZoom: Boolean,
|
10487
10495
|
doubleScale: Boolean,
|
10488
10496
|
closeOnClickImage: Boolean,
|
10489
|
-
closeOnClickOverlay: Boolean
|
10497
|
+
closeOnClickOverlay: Boolean,
|
10498
|
+
vertical: Boolean
|
10490
10499
|
};
|
10491
10500
|
var stdin_default$N = vue.defineComponent({
|
10492
10501
|
props: imagePreviewItemProps,
|
@@ -10629,7 +10638,7 @@ var stdin_default$N = vue.defineComponent({
|
|
10629
10638
|
} = touch;
|
10630
10639
|
const moveX = deltaX.value + startMoveX;
|
10631
10640
|
const moveY = deltaY.value + startMoveY;
|
10632
|
-
if ((
|
10641
|
+
if ((props2.vertical ? touch.isVertical() && Math.abs(moveY) > maxMoveY.value : touch.isHorizontal() && Math.abs(moveX) > maxMoveX.value) && !isImageMoved) {
|
10633
10642
|
state.moving = false;
|
10634
10643
|
return;
|
10635
10644
|
}
|
@@ -10802,6 +10811,7 @@ const imagePreviewProps = {
|
|
10802
10811
|
minZoom: makeNumericProp(1 / 3),
|
10803
10812
|
maxZoom: makeNumericProp(3),
|
10804
10813
|
overlay: truthProp,
|
10814
|
+
vertical: Boolean,
|
10805
10815
|
closeable: Boolean,
|
10806
10816
|
showIndex: truthProp,
|
10807
10817
|
className: unknownProp,
|
@@ -10885,6 +10895,7 @@ var stdin_default$M = vue.defineComponent({
|
|
10885
10895
|
"lazyRender": true,
|
10886
10896
|
"loop": props2.loop,
|
10887
10897
|
"class": bem$D("swipe"),
|
10898
|
+
"vertical": props2.vertical,
|
10888
10899
|
"duration": props2.swipeDuration,
|
10889
10900
|
"initialSwipe": props2.startPosition,
|
10890
10901
|
"showIndicators": props2.showIndicators,
|
@@ -10910,6 +10921,7 @@ var stdin_default$M = vue.defineComponent({
|
|
10910
10921
|
"doubleScale": props2.doubleScale,
|
10911
10922
|
"closeOnClickImage": props2.closeOnClickImage,
|
10912
10923
|
"closeOnClickOverlay": props2.closeOnClickOverlay,
|
10924
|
+
"vertical": props2.vertical,
|
10913
10925
|
"onScale": emitScale,
|
10914
10926
|
"onClose": emitClose,
|
10915
10927
|
"onLongPress": () => emit("longPress", {
|
@@ -10983,6 +10995,7 @@ const defaultConfig = {
|
|
10983
10995
|
onScale: void 0,
|
10984
10996
|
onClose: void 0,
|
10985
10997
|
onChange: void 0,
|
10998
|
+
vertical: false,
|
10986
10999
|
teleport: "body",
|
10987
11000
|
className: "",
|
10988
11001
|
showIndex: true,
|
@@ -13578,7 +13591,9 @@ var stdin_default$r = vue.defineComponent({
|
|
13578
13591
|
vue.watch(windowWidth, resize);
|
13579
13592
|
vue.onMounted(initialize);
|
13580
13593
|
useExpose({
|
13581
|
-
resize
|
13594
|
+
resize,
|
13595
|
+
clear,
|
13596
|
+
submit
|
13582
13597
|
});
|
13583
13598
|
return () => vue.createVNode("div", {
|
13584
13599
|
"class": bem$i()
|
@@ -16780,7 +16795,7 @@ const Lazyload = {
|
|
16780
16795
|
});
|
16781
16796
|
}
|
16782
16797
|
};
|
16783
|
-
const version = "4.8.
|
16798
|
+
const version = "4.8.6";
|
16784
16799
|
function install(app) {
|
16785
16800
|
const components = [
|
16786
16801
|
ActionBar,
|
package/lib/vant.es.js
CHANGED
@@ -1565,6 +1565,14 @@ var stdin_default$1J = defineComponent({
|
|
1565
1565
|
}, [slots.cancel ? slots.cancel() : props2.cancelText])];
|
1566
1566
|
}
|
1567
1567
|
};
|
1568
|
+
const renderIcon = (action) => {
|
1569
|
+
if (action.icon) {
|
1570
|
+
return createVNode(Icon, {
|
1571
|
+
"class": bem$1v("item-icon"),
|
1572
|
+
"name": action.icon
|
1573
|
+
}, null);
|
1574
|
+
}
|
1575
|
+
};
|
1568
1576
|
const renderActionContent = (action, index) => {
|
1569
1577
|
if (action.loading) {
|
1570
1578
|
return createVNode(Loading, {
|
@@ -1613,7 +1621,7 @@ var stdin_default$1J = defineComponent({
|
|
1613
1621
|
disabled
|
1614
1622
|
}), className],
|
1615
1623
|
"onClick": onClick
|
1616
|
-
}, [renderActionContent(action, index)]);
|
1624
|
+
}, [renderIcon(action), renderActionContent(action, index)]);
|
1617
1625
|
};
|
1618
1626
|
const renderDescription = () => {
|
1619
1627
|
if (props2.description || slots.description) {
|
@@ -10484,7 +10492,8 @@ const imagePreviewItemProps = {
|
|
10484
10492
|
disableZoom: Boolean,
|
10485
10493
|
doubleScale: Boolean,
|
10486
10494
|
closeOnClickImage: Boolean,
|
10487
|
-
closeOnClickOverlay: Boolean
|
10495
|
+
closeOnClickOverlay: Boolean,
|
10496
|
+
vertical: Boolean
|
10488
10497
|
};
|
10489
10498
|
var stdin_default$N = defineComponent({
|
10490
10499
|
props: imagePreviewItemProps,
|
@@ -10627,7 +10636,7 @@ var stdin_default$N = defineComponent({
|
|
10627
10636
|
} = touch;
|
10628
10637
|
const moveX = deltaX.value + startMoveX;
|
10629
10638
|
const moveY = deltaY.value + startMoveY;
|
10630
|
-
if ((
|
10639
|
+
if ((props2.vertical ? touch.isVertical() && Math.abs(moveY) > maxMoveY.value : touch.isHorizontal() && Math.abs(moveX) > maxMoveX.value) && !isImageMoved) {
|
10631
10640
|
state.moving = false;
|
10632
10641
|
return;
|
10633
10642
|
}
|
@@ -10800,6 +10809,7 @@ const imagePreviewProps = {
|
|
10800
10809
|
minZoom: makeNumericProp(1 / 3),
|
10801
10810
|
maxZoom: makeNumericProp(3),
|
10802
10811
|
overlay: truthProp,
|
10812
|
+
vertical: Boolean,
|
10803
10813
|
closeable: Boolean,
|
10804
10814
|
showIndex: truthProp,
|
10805
10815
|
className: unknownProp,
|
@@ -10883,6 +10893,7 @@ var stdin_default$M = defineComponent({
|
|
10883
10893
|
"lazyRender": true,
|
10884
10894
|
"loop": props2.loop,
|
10885
10895
|
"class": bem$D("swipe"),
|
10896
|
+
"vertical": props2.vertical,
|
10886
10897
|
"duration": props2.swipeDuration,
|
10887
10898
|
"initialSwipe": props2.startPosition,
|
10888
10899
|
"showIndicators": props2.showIndicators,
|
@@ -10908,6 +10919,7 @@ var stdin_default$M = defineComponent({
|
|
10908
10919
|
"doubleScale": props2.doubleScale,
|
10909
10920
|
"closeOnClickImage": props2.closeOnClickImage,
|
10910
10921
|
"closeOnClickOverlay": props2.closeOnClickOverlay,
|
10922
|
+
"vertical": props2.vertical,
|
10911
10923
|
"onScale": emitScale,
|
10912
10924
|
"onClose": emitClose,
|
10913
10925
|
"onLongPress": () => emit("longPress", {
|
@@ -10981,6 +10993,7 @@ const defaultConfig = {
|
|
10981
10993
|
onScale: void 0,
|
10982
10994
|
onClose: void 0,
|
10983
10995
|
onChange: void 0,
|
10996
|
+
vertical: false,
|
10984
10997
|
teleport: "body",
|
10985
10998
|
className: "",
|
10986
10999
|
showIndex: true,
|
@@ -13576,7 +13589,9 @@ var stdin_default$r = defineComponent({
|
|
13576
13589
|
watch(windowWidth, resize);
|
13577
13590
|
onMounted(initialize);
|
13578
13591
|
useExpose({
|
13579
|
-
resize
|
13592
|
+
resize,
|
13593
|
+
clear,
|
13594
|
+
submit
|
13580
13595
|
});
|
13581
13596
|
return () => createVNode("div", {
|
13582
13597
|
"class": bem$i()
|
@@ -16778,7 +16793,7 @@ const Lazyload = {
|
|
16778
16793
|
});
|
16779
16794
|
}
|
16780
16795
|
};
|
16781
|
-
const version = "4.8.
|
16796
|
+
const version = "4.8.6";
|
16782
16797
|
function install(app) {
|
16783
16798
|
const components = [
|
16784
16799
|
ActionBar,
|
package/lib/vant.js
CHANGED
@@ -1955,6 +1955,14 @@
|
|
1955
1955
|
}, [slots.cancel ? slots.cancel() : props2.cancelText])];
|
1956
1956
|
}
|
1957
1957
|
};
|
1958
|
+
const renderIcon = (action) => {
|
1959
|
+
if (action.icon) {
|
1960
|
+
return vue.createVNode(Icon, {
|
1961
|
+
"class": bem$1v("item-icon"),
|
1962
|
+
"name": action.icon
|
1963
|
+
}, null);
|
1964
|
+
}
|
1965
|
+
};
|
1958
1966
|
const renderActionContent = (action, index) => {
|
1959
1967
|
if (action.loading) {
|
1960
1968
|
return vue.createVNode(Loading, {
|
@@ -2003,7 +2011,7 @@
|
|
2003
2011
|
disabled
|
2004
2012
|
}), className],
|
2005
2013
|
"onClick": onClick
|
2006
|
-
}, [renderActionContent(action, index)]);
|
2014
|
+
}, [renderIcon(action), renderActionContent(action, index)]);
|
2007
2015
|
};
|
2008
2016
|
const renderDescription = () => {
|
2009
2017
|
if (props2.description || slots.description) {
|
@@ -10919,7 +10927,8 @@
|
|
10919
10927
|
disableZoom: Boolean,
|
10920
10928
|
doubleScale: Boolean,
|
10921
10929
|
closeOnClickImage: Boolean,
|
10922
|
-
closeOnClickOverlay: Boolean
|
10930
|
+
closeOnClickOverlay: Boolean,
|
10931
|
+
vertical: Boolean
|
10923
10932
|
};
|
10924
10933
|
var stdin_default$N = vue.defineComponent({
|
10925
10934
|
props: imagePreviewItemProps,
|
@@ -11062,7 +11071,7 @@
|
|
11062
11071
|
} = touch;
|
11063
11072
|
const moveX = deltaX.value + startMoveX;
|
11064
11073
|
const moveY = deltaY.value + startMoveY;
|
11065
|
-
if ((
|
11074
|
+
if ((props2.vertical ? touch.isVertical() && Math.abs(moveY) > maxMoveY.value : touch.isHorizontal() && Math.abs(moveX) > maxMoveX.value) && !isImageMoved) {
|
11066
11075
|
state.moving = false;
|
11067
11076
|
return;
|
11068
11077
|
}
|
@@ -11235,6 +11244,7 @@
|
|
11235
11244
|
minZoom: makeNumericProp(1 / 3),
|
11236
11245
|
maxZoom: makeNumericProp(3),
|
11237
11246
|
overlay: truthProp,
|
11247
|
+
vertical: Boolean,
|
11238
11248
|
closeable: Boolean,
|
11239
11249
|
showIndex: truthProp,
|
11240
11250
|
className: unknownProp,
|
@@ -11318,6 +11328,7 @@
|
|
11318
11328
|
"lazyRender": true,
|
11319
11329
|
"loop": props2.loop,
|
11320
11330
|
"class": bem$D("swipe"),
|
11331
|
+
"vertical": props2.vertical,
|
11321
11332
|
"duration": props2.swipeDuration,
|
11322
11333
|
"initialSwipe": props2.startPosition,
|
11323
11334
|
"showIndicators": props2.showIndicators,
|
@@ -11343,6 +11354,7 @@
|
|
11343
11354
|
"doubleScale": props2.doubleScale,
|
11344
11355
|
"closeOnClickImage": props2.closeOnClickImage,
|
11345
11356
|
"closeOnClickOverlay": props2.closeOnClickOverlay,
|
11357
|
+
"vertical": props2.vertical,
|
11346
11358
|
"onScale": emitScale,
|
11347
11359
|
"onClose": emitClose,
|
11348
11360
|
"onLongPress": () => emit("longPress", {
|
@@ -11416,6 +11428,7 @@
|
|
11416
11428
|
onScale: void 0,
|
11417
11429
|
onClose: void 0,
|
11418
11430
|
onChange: void 0,
|
11431
|
+
vertical: false,
|
11419
11432
|
teleport: "body",
|
11420
11433
|
className: "",
|
11421
11434
|
showIndex: true,
|
@@ -14817,7 +14830,9 @@
|
|
14817
14830
|
vue.watch(windowWidth, resize);
|
14818
14831
|
vue.onMounted(initialize);
|
14819
14832
|
useExpose({
|
14820
|
-
resize
|
14833
|
+
resize,
|
14834
|
+
clear,
|
14835
|
+
submit
|
14821
14836
|
});
|
14822
14837
|
return () => vue.createVNode("div", {
|
14823
14838
|
"class": bem$i()
|
@@ -17993,7 +18008,7 @@
|
|
17993
18008
|
});
|
17994
18009
|
}
|
17995
18010
|
};
|
17996
|
-
const version = "4.8.
|
18011
|
+
const version = "4.8.6";
|
17997
18012
|
function install(app) {
|
17998
18013
|
const components = [
|
17999
18014
|
ActionBar,
|