vant 4.8.4 → 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/DropdownMenu.mjs +2 -2
- 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/Image.d.ts +6 -0
- package/es/image/Image.mjs +6 -2
- package/es/image/index.d.ts +5 -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/NumberKeyboard.mjs +1 -1
- 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/DropdownMenu.js +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/Image.d.ts +6 -0
- package/lib/image/Image.js +6 -2
- package/lib/image/index.d.ts +5 -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/NumberKeyboard.js +1 -1
- 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 +28 -9
- package/lib/vant.es.js +29 -10
- package/lib/vant.js +28 -9
- 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 +6 -6
@@ -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) {
|
@@ -6986,7 +6994,9 @@ const imageProps = {
|
|
6986
6994
|
errorIcon: makeStringProp("photo-fail"),
|
6987
6995
|
iconPrefix: String,
|
6988
6996
|
showLoading: truthProp,
|
6989
|
-
loadingIcon: makeStringProp("photo")
|
6997
|
+
loadingIcon: makeStringProp("photo"),
|
6998
|
+
crossorigin: String,
|
6999
|
+
referrerpolicy: String
|
6990
7000
|
};
|
6991
7001
|
var stdin_default$1e = vue.defineComponent({
|
6992
7002
|
name: name$15,
|
@@ -7069,7 +7079,9 @@ var stdin_default$1e = vue.defineComponent({
|
|
7069
7079
|
style: {
|
7070
7080
|
objectFit: props2.fit,
|
7071
7081
|
objectPosition: props2.position
|
7072
|
-
}
|
7082
|
+
},
|
7083
|
+
crossorigin: props2.crossorigin,
|
7084
|
+
referrerpolicy: props2.referrerpolicy
|
7073
7085
|
};
|
7074
7086
|
if (props2.lazyLoad) {
|
7075
7087
|
return vue.withDirectives(vue.createVNode("img", vue.mergeProps({
|
@@ -9641,7 +9653,7 @@ var stdin_default$U = vue.defineComponent({
|
|
9641
9653
|
const {
|
9642
9654
|
disabled,
|
9643
9655
|
titleClass
|
9644
|
-
} =
|
9656
|
+
} = item;
|
9645
9657
|
return vue.createVNode("div", {
|
9646
9658
|
"id": `${id}-${index}`,
|
9647
9659
|
"role": "button",
|
@@ -10482,7 +10494,8 @@ const imagePreviewItemProps = {
|
|
10482
10494
|
disableZoom: Boolean,
|
10483
10495
|
doubleScale: Boolean,
|
10484
10496
|
closeOnClickImage: Boolean,
|
10485
|
-
closeOnClickOverlay: Boolean
|
10497
|
+
closeOnClickOverlay: Boolean,
|
10498
|
+
vertical: Boolean
|
10486
10499
|
};
|
10487
10500
|
var stdin_default$N = vue.defineComponent({
|
10488
10501
|
props: imagePreviewItemProps,
|
@@ -10625,7 +10638,7 @@ var stdin_default$N = vue.defineComponent({
|
|
10625
10638
|
} = touch;
|
10626
10639
|
const moveX = deltaX.value + startMoveX;
|
10627
10640
|
const moveY = deltaY.value + startMoveY;
|
10628
|
-
if ((
|
10641
|
+
if ((props2.vertical ? touch.isVertical() && Math.abs(moveY) > maxMoveY.value : touch.isHorizontal() && Math.abs(moveX) > maxMoveX.value) && !isImageMoved) {
|
10629
10642
|
state.moving = false;
|
10630
10643
|
return;
|
10631
10644
|
}
|
@@ -10798,6 +10811,7 @@ const imagePreviewProps = {
|
|
10798
10811
|
minZoom: makeNumericProp(1 / 3),
|
10799
10812
|
maxZoom: makeNumericProp(3),
|
10800
10813
|
overlay: truthProp,
|
10814
|
+
vertical: Boolean,
|
10801
10815
|
closeable: Boolean,
|
10802
10816
|
showIndex: truthProp,
|
10803
10817
|
className: unknownProp,
|
@@ -10881,6 +10895,7 @@ var stdin_default$M = vue.defineComponent({
|
|
10881
10895
|
"lazyRender": true,
|
10882
10896
|
"loop": props2.loop,
|
10883
10897
|
"class": bem$D("swipe"),
|
10898
|
+
"vertical": props2.vertical,
|
10884
10899
|
"duration": props2.swipeDuration,
|
10885
10900
|
"initialSwipe": props2.startPosition,
|
10886
10901
|
"showIndicators": props2.showIndicators,
|
@@ -10906,6 +10921,7 @@ var stdin_default$M = vue.defineComponent({
|
|
10906
10921
|
"doubleScale": props2.doubleScale,
|
10907
10922
|
"closeOnClickImage": props2.closeOnClickImage,
|
10908
10923
|
"closeOnClickOverlay": props2.closeOnClickOverlay,
|
10924
|
+
"vertical": props2.vertical,
|
10909
10925
|
"onScale": emitScale,
|
10910
10926
|
"onClose": emitClose,
|
10911
10927
|
"onLongPress": () => emit("longPress", {
|
@@ -10979,6 +10995,7 @@ const defaultConfig = {
|
|
10979
10995
|
onScale: void 0,
|
10980
10996
|
onClose: void 0,
|
10981
10997
|
onChange: void 0,
|
10998
|
+
vertical: false,
|
10982
10999
|
teleport: "body",
|
10983
11000
|
className: "",
|
10984
11001
|
showIndex: true,
|
@@ -12062,7 +12079,7 @@ var stdin_default$E = vue.defineComponent({
|
|
12062
12079
|
"type": "delete",
|
12063
12080
|
"onPress": onPress
|
12064
12081
|
}, {
|
12065
|
-
|
12082
|
+
default: slots.delete
|
12066
12083
|
}), vue.createVNode(stdin_default$F, {
|
12067
12084
|
"large": true,
|
12068
12085
|
"text": props2.closeButtonText,
|
@@ -13574,7 +13591,9 @@ var stdin_default$r = vue.defineComponent({
|
|
13574
13591
|
vue.watch(windowWidth, resize);
|
13575
13592
|
vue.onMounted(initialize);
|
13576
13593
|
useExpose({
|
13577
|
-
resize
|
13594
|
+
resize,
|
13595
|
+
clear,
|
13596
|
+
submit
|
13578
13597
|
});
|
13579
13598
|
return () => vue.createVNode("div", {
|
13580
13599
|
"class": bem$i()
|
@@ -16776,7 +16795,7 @@ const Lazyload = {
|
|
16776
16795
|
});
|
16777
16796
|
}
|
16778
16797
|
};
|
16779
|
-
const version = "4.8.
|
16798
|
+
const version = "4.8.6";
|
16780
16799
|
function install(app) {
|
16781
16800
|
const components = [
|
16782
16801
|
ActionBar,
|
package/lib/vant.es.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { unref, ref, reactive, inject, watch, onMounted, nextTick, createVNode, defineComponent, getCurrentInstance, computed, onActivated, onDeactivated, onBeforeUnmount, provide, watchEffect, mergeProps, Transition, withDirectives, vShow, Teleport, Fragment, onBeforeUpdate, Comment, createTextVNode, onUnmounted, createApp, resolveDirective, withKeys,
|
1
|
+
import { unref, ref, reactive, inject, watch, onMounted, nextTick, createVNode, defineComponent, getCurrentInstance, computed, onActivated, onDeactivated, onBeforeUnmount, provide, watchEffect, mergeProps, Transition, withDirectives, vShow, Teleport, Fragment, onBeforeUpdate, Comment, createTextVNode, onUnmounted, createApp, resolveDirective, withKeys, onUpdated, Text, h } from "vue";
|
2
2
|
import { useWindowSize, useRect, useChildren, useParent, onMountedOrActivated, getScrollParent, useEventListener, cancelRaf, raf, useScrollParent, usePageVisibility, doubleRaf, CUSTOM_FIELD_INJECTION_KEY, useCustomFieldValue, inBrowser as inBrowser$1, useToggle, useCountDown, useClickAway } from "@vant/use";
|
3
3
|
import { normalizeClass, stringifyStyle, normalizeStyle } from "@vue/shared";
|
4
4
|
import { offsetModifier, createPopper } from "@vant/popperjs";
|
@@ -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) {
|
@@ -6984,7 +6992,9 @@ const imageProps = {
|
|
6984
6992
|
errorIcon: makeStringProp("photo-fail"),
|
6985
6993
|
iconPrefix: String,
|
6986
6994
|
showLoading: truthProp,
|
6987
|
-
loadingIcon: makeStringProp("photo")
|
6995
|
+
loadingIcon: makeStringProp("photo"),
|
6996
|
+
crossorigin: String,
|
6997
|
+
referrerpolicy: String
|
6988
6998
|
};
|
6989
6999
|
var stdin_default$1e = defineComponent({
|
6990
7000
|
name: name$15,
|
@@ -7067,7 +7077,9 @@ var stdin_default$1e = defineComponent({
|
|
7067
7077
|
style: {
|
7068
7078
|
objectFit: props2.fit,
|
7069
7079
|
objectPosition: props2.position
|
7070
|
-
}
|
7080
|
+
},
|
7081
|
+
crossorigin: props2.crossorigin,
|
7082
|
+
referrerpolicy: props2.referrerpolicy
|
7071
7083
|
};
|
7072
7084
|
if (props2.lazyLoad) {
|
7073
7085
|
return withDirectives(createVNode("img", mergeProps({
|
@@ -9639,7 +9651,7 @@ var stdin_default$U = defineComponent({
|
|
9639
9651
|
const {
|
9640
9652
|
disabled,
|
9641
9653
|
titleClass
|
9642
|
-
} =
|
9654
|
+
} = item;
|
9643
9655
|
return createVNode("div", {
|
9644
9656
|
"id": `${id}-${index}`,
|
9645
9657
|
"role": "button",
|
@@ -10480,7 +10492,8 @@ const imagePreviewItemProps = {
|
|
10480
10492
|
disableZoom: Boolean,
|
10481
10493
|
doubleScale: Boolean,
|
10482
10494
|
closeOnClickImage: Boolean,
|
10483
|
-
closeOnClickOverlay: Boolean
|
10495
|
+
closeOnClickOverlay: Boolean,
|
10496
|
+
vertical: Boolean
|
10484
10497
|
};
|
10485
10498
|
var stdin_default$N = defineComponent({
|
10486
10499
|
props: imagePreviewItemProps,
|
@@ -10623,7 +10636,7 @@ var stdin_default$N = defineComponent({
|
|
10623
10636
|
} = touch;
|
10624
10637
|
const moveX = deltaX.value + startMoveX;
|
10625
10638
|
const moveY = deltaY.value + startMoveY;
|
10626
|
-
if ((
|
10639
|
+
if ((props2.vertical ? touch.isVertical() && Math.abs(moveY) > maxMoveY.value : touch.isHorizontal() && Math.abs(moveX) > maxMoveX.value) && !isImageMoved) {
|
10627
10640
|
state.moving = false;
|
10628
10641
|
return;
|
10629
10642
|
}
|
@@ -10796,6 +10809,7 @@ const imagePreviewProps = {
|
|
10796
10809
|
minZoom: makeNumericProp(1 / 3),
|
10797
10810
|
maxZoom: makeNumericProp(3),
|
10798
10811
|
overlay: truthProp,
|
10812
|
+
vertical: Boolean,
|
10799
10813
|
closeable: Boolean,
|
10800
10814
|
showIndex: truthProp,
|
10801
10815
|
className: unknownProp,
|
@@ -10879,6 +10893,7 @@ var stdin_default$M = defineComponent({
|
|
10879
10893
|
"lazyRender": true,
|
10880
10894
|
"loop": props2.loop,
|
10881
10895
|
"class": bem$D("swipe"),
|
10896
|
+
"vertical": props2.vertical,
|
10882
10897
|
"duration": props2.swipeDuration,
|
10883
10898
|
"initialSwipe": props2.startPosition,
|
10884
10899
|
"showIndicators": props2.showIndicators,
|
@@ -10904,6 +10919,7 @@ var stdin_default$M = defineComponent({
|
|
10904
10919
|
"doubleScale": props2.doubleScale,
|
10905
10920
|
"closeOnClickImage": props2.closeOnClickImage,
|
10906
10921
|
"closeOnClickOverlay": props2.closeOnClickOverlay,
|
10922
|
+
"vertical": props2.vertical,
|
10907
10923
|
"onScale": emitScale,
|
10908
10924
|
"onClose": emitClose,
|
10909
10925
|
"onLongPress": () => emit("longPress", {
|
@@ -10977,6 +10993,7 @@ const defaultConfig = {
|
|
10977
10993
|
onScale: void 0,
|
10978
10994
|
onClose: void 0,
|
10979
10995
|
onChange: void 0,
|
10996
|
+
vertical: false,
|
10980
10997
|
teleport: "body",
|
10981
10998
|
className: "",
|
10982
10999
|
showIndex: true,
|
@@ -12060,7 +12077,7 @@ var stdin_default$E = defineComponent({
|
|
12060
12077
|
"type": "delete",
|
12061
12078
|
"onPress": onPress
|
12062
12079
|
}, {
|
12063
|
-
|
12080
|
+
default: slots.delete
|
12064
12081
|
}), createVNode(stdin_default$F, {
|
12065
12082
|
"large": true,
|
12066
12083
|
"text": props2.closeButtonText,
|
@@ -13572,7 +13589,9 @@ var stdin_default$r = defineComponent({
|
|
13572
13589
|
watch(windowWidth, resize);
|
13573
13590
|
onMounted(initialize);
|
13574
13591
|
useExpose({
|
13575
|
-
resize
|
13592
|
+
resize,
|
13593
|
+
clear,
|
13594
|
+
submit
|
13576
13595
|
});
|
13577
13596
|
return () => createVNode("div", {
|
13578
13597
|
"class": bem$i()
|
@@ -16774,7 +16793,7 @@ const Lazyload = {
|
|
16774
16793
|
});
|
16775
16794
|
}
|
16776
16795
|
};
|
16777
|
-
const version = "4.8.
|
16796
|
+
const version = "4.8.6";
|
16778
16797
|
function install(app) {
|
16779
16798
|
const components = [
|
16780
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) {
|
@@ -7445,7 +7453,9 @@
|
|
7445
7453
|
errorIcon: makeStringProp("photo-fail"),
|
7446
7454
|
iconPrefix: String,
|
7447
7455
|
showLoading: truthProp,
|
7448
|
-
loadingIcon: makeStringProp("photo")
|
7456
|
+
loadingIcon: makeStringProp("photo"),
|
7457
|
+
crossorigin: String,
|
7458
|
+
referrerpolicy: String
|
7449
7459
|
};
|
7450
7460
|
var stdin_default$1e = vue.defineComponent({
|
7451
7461
|
name: name$15,
|
@@ -7528,7 +7538,9 @@
|
|
7528
7538
|
style: {
|
7529
7539
|
objectFit: props2.fit,
|
7530
7540
|
objectPosition: props2.position
|
7531
|
-
}
|
7541
|
+
},
|
7542
|
+
crossorigin: props2.crossorigin,
|
7543
|
+
referrerpolicy: props2.referrerpolicy
|
7532
7544
|
};
|
7533
7545
|
if (props2.lazyLoad) {
|
7534
7546
|
return vue.withDirectives(vue.createVNode("img", vue.mergeProps({
|
@@ -10080,7 +10092,7 @@
|
|
10080
10092
|
const {
|
10081
10093
|
disabled,
|
10082
10094
|
titleClass
|
10083
|
-
} =
|
10095
|
+
} = item;
|
10084
10096
|
return vue.createVNode("div", {
|
10085
10097
|
"id": `${id}-${index}`,
|
10086
10098
|
"role": "button",
|
@@ -10915,7 +10927,8 @@
|
|
10915
10927
|
disableZoom: Boolean,
|
10916
10928
|
doubleScale: Boolean,
|
10917
10929
|
closeOnClickImage: Boolean,
|
10918
|
-
closeOnClickOverlay: Boolean
|
10930
|
+
closeOnClickOverlay: Boolean,
|
10931
|
+
vertical: Boolean
|
10919
10932
|
};
|
10920
10933
|
var stdin_default$N = vue.defineComponent({
|
10921
10934
|
props: imagePreviewItemProps,
|
@@ -11058,7 +11071,7 @@
|
|
11058
11071
|
} = touch;
|
11059
11072
|
const moveX = deltaX.value + startMoveX;
|
11060
11073
|
const moveY = deltaY.value + startMoveY;
|
11061
|
-
if ((
|
11074
|
+
if ((props2.vertical ? touch.isVertical() && Math.abs(moveY) > maxMoveY.value : touch.isHorizontal() && Math.abs(moveX) > maxMoveX.value) && !isImageMoved) {
|
11062
11075
|
state.moving = false;
|
11063
11076
|
return;
|
11064
11077
|
}
|
@@ -11231,6 +11244,7 @@
|
|
11231
11244
|
minZoom: makeNumericProp(1 / 3),
|
11232
11245
|
maxZoom: makeNumericProp(3),
|
11233
11246
|
overlay: truthProp,
|
11247
|
+
vertical: Boolean,
|
11234
11248
|
closeable: Boolean,
|
11235
11249
|
showIndex: truthProp,
|
11236
11250
|
className: unknownProp,
|
@@ -11314,6 +11328,7 @@
|
|
11314
11328
|
"lazyRender": true,
|
11315
11329
|
"loop": props2.loop,
|
11316
11330
|
"class": bem$D("swipe"),
|
11331
|
+
"vertical": props2.vertical,
|
11317
11332
|
"duration": props2.swipeDuration,
|
11318
11333
|
"initialSwipe": props2.startPosition,
|
11319
11334
|
"showIndicators": props2.showIndicators,
|
@@ -11339,6 +11354,7 @@
|
|
11339
11354
|
"doubleScale": props2.doubleScale,
|
11340
11355
|
"closeOnClickImage": props2.closeOnClickImage,
|
11341
11356
|
"closeOnClickOverlay": props2.closeOnClickOverlay,
|
11357
|
+
"vertical": props2.vertical,
|
11342
11358
|
"onScale": emitScale,
|
11343
11359
|
"onClose": emitClose,
|
11344
11360
|
"onLongPress": () => emit("longPress", {
|
@@ -11412,6 +11428,7 @@
|
|
11412
11428
|
onScale: void 0,
|
11413
11429
|
onClose: void 0,
|
11414
11430
|
onChange: void 0,
|
11431
|
+
vertical: false,
|
11415
11432
|
teleport: "body",
|
11416
11433
|
className: "",
|
11417
11434
|
showIndex: true,
|
@@ -12492,7 +12509,7 @@
|
|
12492
12509
|
"type": "delete",
|
12493
12510
|
"onPress": onPress
|
12494
12511
|
}, {
|
12495
|
-
|
12512
|
+
default: slots.delete
|
12496
12513
|
}), vue.createVNode(stdin_default$F, {
|
12497
12514
|
"large": true,
|
12498
12515
|
"text": props2.closeButtonText,
|
@@ -14813,7 +14830,9 @@
|
|
14813
14830
|
vue.watch(windowWidth, resize);
|
14814
14831
|
vue.onMounted(initialize);
|
14815
14832
|
useExpose({
|
14816
|
-
resize
|
14833
|
+
resize,
|
14834
|
+
clear,
|
14835
|
+
submit
|
14817
14836
|
});
|
14818
14837
|
return () => vue.createVNode("div", {
|
14819
14838
|
"class": bem$i()
|
@@ -17989,7 +18008,7 @@
|
|
17989
18008
|
});
|
17990
18009
|
}
|
17991
18010
|
};
|
17992
|
-
const version = "4.8.
|
18011
|
+
const version = "4.8.6";
|
17993
18012
|
function install(app) {
|
17994
18013
|
const components = [
|
17995
18014
|
ActionBar,
|