vant 4.8.1 → 4.8.3
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/ActionBar.d.ts +1 -1
- package/es/action-bar/index.css +1 -1
- package/es/action-bar/index.d.ts +1 -1
- package/es/action-bar-button/ActionBarButton.d.ts +1 -1
- package/es/action-bar-button/index.css +1 -1
- package/es/action-bar-button/index.d.ts +1 -1
- package/es/action-bar-icon/ActionBarIcon.d.ts +1 -1
- package/es/action-bar-icon/index.css +1 -1
- package/es/action-bar-icon/index.d.ts +1 -1
- package/es/action-sheet/ActionSheet.d.ts +1 -1
- package/es/action-sheet/index.css +1 -1
- package/es/action-sheet/index.d.ts +1 -1
- package/es/address-edit/AddressEdit.d.ts +2 -2
- package/es/address-edit/AddressEditDetail.d.ts +1 -1
- package/es/address-edit/index.css +1 -1
- package/es/address-edit/index.d.ts +2 -2
- package/es/address-list/AddressList.d.ts +1 -1
- package/es/address-list/AddressListItem.d.ts +1 -1
- package/es/address-list/index.css +1 -1
- package/es/address-list/index.d.ts +1 -1
- package/es/area/Area.d.ts +1 -1
- package/es/area/index.d.ts +1 -1
- package/es/back-top/BackTop.d.ts +1 -1
- package/es/back-top/index.css +1 -1
- package/es/back-top/index.d.ts +1 -1
- package/es/badge/Badge.d.ts +1 -1
- package/es/badge/index.css +1 -1
- package/es/badge/index.d.ts +1 -1
- package/es/barrage/Barrage.d.ts +1 -1
- package/es/barrage/index.css +1 -1
- package/es/barrage/index.d.ts +1 -1
- package/es/button/Button.d.ts +2 -2
- package/es/button/index.css +1 -1
- package/es/button/index.d.ts +2 -2
- package/es/calendar/Calendar.d.ts +1 -1
- package/es/calendar/CalendarDay.d.ts +1 -1
- package/es/calendar/CalendarHeader.d.ts +1 -1
- package/es/calendar/CalendarMonth.d.ts +1 -1
- package/es/calendar/index.css +1 -1
- package/es/calendar/index.d.ts +1 -1
- package/es/card/Card.d.ts +1 -1
- package/es/card/index.css +1 -1
- package/es/card/index.d.ts +1 -1
- package/es/cascader/Cascader.d.ts +1 -1
- package/es/cascader/index.css +1 -1
- package/es/cascader/index.d.ts +1 -1
- package/es/cell/Cell.d.ts +1 -1
- package/es/cell/index.css +1 -1
- package/es/cell/index.d.ts +1 -1
- package/es/cell-group/CellGroup.d.ts +1 -1
- package/es/cell-group/index.css +1 -1
- package/es/cell-group/index.d.ts +1 -1
- package/es/checkbox/Checkbox.d.ts +1 -1
- package/es/checkbox/Checker.d.ts +1 -1
- package/es/checkbox/index.css +1 -1
- package/es/checkbox/index.d.ts +1 -1
- package/es/checkbox-group/CheckboxGroup.d.ts +1 -1
- package/es/checkbox-group/index.d.ts +1 -1
- package/es/circle/Circle.d.ts +1 -1
- package/es/circle/index.css +1 -1
- package/es/circle/index.d.ts +1 -1
- package/es/col/Col.d.ts +1 -1
- package/es/col/index.d.ts +1 -1
- package/es/collapse/Collapse.d.ts +1 -1
- package/es/collapse/index.d.ts +1 -1
- package/es/collapse-item/CollapseItem.d.ts +1 -1
- package/es/collapse-item/index.css +1 -1
- package/es/collapse-item/index.d.ts +1 -1
- package/es/composables/use-lazy-render.d.ts +1 -0
- package/es/composables/use-placeholder.d.ts +2 -1
- package/es/config-provider/ConfigProvider.d.ts +1 -1
- package/es/config-provider/index.d.ts +1 -1
- package/es/contact-card/ContactCard.d.ts +1 -1
- package/es/contact-card/index.css +1 -1
- package/es/contact-card/index.d.ts +1 -1
- package/es/contact-edit/ContactEdit.d.ts +2 -2
- package/es/contact-edit/index.css +1 -1
- package/es/contact-edit/index.d.ts +2 -2
- package/es/contact-list/ContactList.d.ts +1 -1
- package/es/contact-list/index.css +1 -1
- package/es/contact-list/index.d.ts +1 -1
- package/es/count-down/CountDown.d.ts +1 -1
- package/es/count-down/index.css +1 -1
- package/es/count-down/index.d.ts +1 -1
- package/es/coupon/Coupon.d.ts +1 -1
- package/es/coupon/index.css +1 -1
- package/es/coupon/index.d.ts +1 -1
- package/es/coupon-cell/CouponCell.d.ts +1 -1
- package/es/coupon-cell/index.css +1 -1
- package/es/coupon-cell/index.d.ts +1 -1
- package/es/coupon-list/CouponList.d.ts +1 -1
- package/es/coupon-list/index.css +1 -1
- package/es/coupon-list/index.d.ts +1 -1
- package/es/date-picker/DatePicker.d.ts +1 -1
- package/es/date-picker/index.d.ts +1 -1
- package/es/dialog/Dialog.d.ts +1 -1
- package/es/dialog/index.css +1 -1
- package/es/dialog/index.d.ts +1 -1
- package/es/dialog/types.d.ts +1 -0
- package/es/divider/Divider.d.ts +1 -1
- package/es/divider/index.css +1 -1
- package/es/divider/index.d.ts +1 -1
- package/es/dropdown-item/DropdownItem.d.ts +1 -1
- package/es/dropdown-item/DropdownItem.mjs +15 -5
- package/es/dropdown-item/index.css +1 -1
- package/es/dropdown-item/index.d.ts +1 -1
- package/es/dropdown-menu/DropdownMenu.d.ts +5 -1
- package/es/dropdown-menu/DropdownMenu.mjs +1 -0
- package/es/dropdown-menu/index.css +1 -1
- package/es/dropdown-menu/index.d.ts +4 -1
- package/es/empty/Empty.d.ts +1 -1
- package/es/empty/index.css +1 -1
- package/es/empty/index.d.ts +1 -1
- package/es/field/Field.d.ts +1 -1
- package/es/field/index.css +1 -1
- package/es/field/index.d.ts +1 -1
- package/es/floating-bubble/FloatingBubble.d.ts +1 -1
- package/es/floating-bubble/index.css +1 -1
- package/es/floating-bubble/index.d.ts +1 -1
- package/es/floating-panel/FloatingPanel.d.ts +1 -1
- package/es/floating-panel/index.css +1 -1
- package/es/floating-panel/index.d.ts +1 -1
- package/es/form/Form.d.ts +1 -1
- package/es/form/index.d.ts +1 -1
- package/es/grid/Grid.d.ts +1 -1
- package/es/grid/index.d.ts +1 -1
- package/es/grid-item/GridItem.d.ts +1 -1
- package/es/grid-item/index.css +1 -1
- package/es/grid-item/index.d.ts +1 -1
- package/es/highlight/Highlight.d.ts +1 -1
- package/es/highlight/index.css +1 -1
- package/es/highlight/index.d.ts +1 -1
- package/es/icon/Icon.d.ts +1 -1
- package/es/icon/index.css +1 -1
- package/es/icon/index.d.ts +1 -1
- package/es/image/Image.d.ts +7 -9
- package/es/image/index.css +1 -1
- package/es/image/index.d.ts +7 -7
- package/es/image/types.d.ts +3 -0
- package/es/image-preview/ImagePreview.d.ts +14 -1
- package/es/image-preview/ImagePreview.mjs +2 -0
- package/es/image-preview/ImagePreviewItem.d.ts +5 -1
- package/es/image-preview/ImagePreviewItem.mjs +17 -12
- package/es/image-preview/index.css +1 -1
- package/es/image-preview/index.d.ts +10 -1
- package/es/image-preview/types.d.ts +1 -0
- package/es/index-anchor/IndexAnchor.d.ts +1 -1
- package/es/index-anchor/index.css +1 -1
- package/es/index-anchor/index.d.ts +1 -1
- package/es/index-bar/IndexBar.d.ts +1 -1
- package/es/index-bar/index.css +1 -1
- package/es/index-bar/index.d.ts +1 -1
- package/es/index.d.ts +1 -1
- package/es/index.mjs +1 -1
- package/es/list/List.d.ts +1 -1
- package/es/list/index.css +1 -1
- package/es/list/index.d.ts +1 -1
- package/es/loading/Loading.d.ts +1 -1
- package/es/loading/index.css +1 -1
- package/es/loading/index.d.ts +1 -1
- package/es/nav-bar/NavBar.d.ts +1 -1
- package/es/nav-bar/index.css +1 -1
- package/es/nav-bar/index.d.ts +1 -1
- package/es/notice-bar/NoticeBar.d.ts +1 -1
- package/es/notice-bar/index.css +1 -1
- package/es/notice-bar/index.d.ts +1 -1
- package/es/notify/Notify.d.ts +1 -1
- package/es/notify/Notify.mjs +5 -8
- package/es/notify/index.css +1 -1
- package/es/notify/index.d.ts +1 -1
- package/es/number-keyboard/NumberKeyboard.d.ts +1 -1
- package/es/number-keyboard/NumberKeyboardKey.d.ts +1 -1
- package/es/number-keyboard/index.css +1 -1
- package/es/number-keyboard/index.d.ts +1 -1
- package/es/overlay/Overlay.d.ts +1 -1
- package/es/overlay/index.css +1 -1
- package/es/overlay/index.d.ts +1 -1
- package/es/pagination/Pagination.d.ts +1 -1
- package/es/pagination/index.css +1 -1
- package/es/pagination/index.d.ts +1 -1
- package/es/password-input/PasswordInput.d.ts +1 -1
- package/es/password-input/index.css +1 -1
- package/es/password-input/index.d.ts +1 -1
- package/es/picker/Picker.d.ts +1 -1
- package/es/picker/PickerColumn.d.ts +1 -1
- package/es/picker/PickerToolbar.d.ts +1 -1
- package/es/picker/index.css +1 -1
- package/es/picker/index.d.ts +1 -1
- package/es/picker-group/PickerGroup.d.ts +1 -1
- package/es/picker-group/index.css +1 -1
- package/es/picker-group/index.d.ts +1 -1
- package/es/popover/Popover.d.ts +1 -1
- package/es/popover/index.css +1 -1
- package/es/popover/index.d.ts +1 -1
- package/es/popup/Popup.d.ts +1 -1
- package/es/popup/index.css +1 -1
- package/es/popup/index.d.ts +1 -1
- package/es/progress/Progress.d.ts +1 -1
- package/es/progress/index.css +1 -1
- package/es/progress/index.d.ts +1 -1
- package/es/pull-refresh/PullRefresh.d.ts +1 -1
- package/es/pull-refresh/index.css +1 -1
- package/es/pull-refresh/index.d.ts +1 -1
- package/es/radio/Radio.d.ts +1 -1
- package/es/radio/index.css +1 -1
- package/es/radio/index.d.ts +1 -1
- package/es/radio-group/RadioGroup.d.ts +1 -1
- package/es/radio-group/index.d.ts +1 -1
- package/es/rate/Rate.d.ts +1 -1
- package/es/rate/index.css +1 -1
- package/es/rate/index.d.ts +1 -1
- package/es/rolling-text/RollingText.d.ts +1 -1
- package/es/rolling-text/RollingTextItem.d.ts +1 -1
- package/es/rolling-text/index.css +1 -1
- package/es/rolling-text/index.d.ts +1 -1
- package/es/row/Row.d.ts +1 -1
- package/es/row/index.d.ts +1 -1
- package/es/search/Search.d.ts +1 -1
- package/es/search/index.css +1 -1
- package/es/search/index.d.ts +1 -1
- package/es/share-sheet/ShareSheet.d.ts +1 -1
- package/es/share-sheet/index.css +1 -1
- package/es/share-sheet/index.d.ts +1 -1
- package/es/sidebar/Sidebar.d.ts +1 -1
- package/es/sidebar/index.css +1 -1
- package/es/sidebar/index.d.ts +1 -1
- package/es/sidebar-item/SidebarItem.d.ts +1 -1
- package/es/sidebar-item/index.css +1 -1
- package/es/sidebar-item/index.d.ts +1 -1
- package/es/signature/Signature.d.ts +1 -1
- package/es/signature/index.css +1 -1
- package/es/signature/index.d.ts +1 -1
- package/es/skeleton/Skeleton.d.ts +2 -2
- package/es/skeleton/index.css +1 -1
- package/es/skeleton/index.d.ts +2 -2
- package/es/skeleton-avatar/SkeletonAvatar.d.ts +1 -1
- package/es/skeleton-avatar/index.css +1 -1
- package/es/skeleton-avatar/index.d.ts +1 -1
- package/es/skeleton-image/SkeletonImage.d.ts +1 -1
- package/es/skeleton-image/index.css +1 -1
- package/es/skeleton-image/index.d.ts +1 -1
- package/es/skeleton-paragraph/SkeletonParagraph.d.ts +1 -1
- package/es/skeleton-paragraph/index.css +1 -1
- package/es/skeleton-paragraph/index.d.ts +1 -1
- package/es/skeleton-title/SkeletonTitle.d.ts +1 -1
- package/es/skeleton-title/index.css +1 -1
- package/es/skeleton-title/index.d.ts +1 -1
- package/es/slider/Slider.d.ts +1 -1
- package/es/slider/index.css +1 -1
- package/es/slider/index.d.ts +1 -1
- package/es/space/Space.d.ts +1 -1
- package/es/space/index.d.ts +1 -1
- package/es/step/Step.d.ts +1 -1
- package/es/step/index.css +1 -1
- package/es/step/index.d.ts +1 -1
- package/es/stepper/Stepper.d.ts +1 -1
- package/es/stepper/index.css +1 -1
- package/es/stepper/index.d.ts +1 -1
- package/es/steps/Steps.d.ts +1 -1
- package/es/steps/index.css +1 -1
- package/es/steps/index.d.ts +1 -1
- package/es/sticky/Sticky.d.ts +1 -1
- package/es/sticky/Sticky.mjs +1 -1
- package/es/sticky/index.css +1 -1
- package/es/sticky/index.d.ts +1 -1
- package/es/style/base.css +1 -1
- package/es/style/css-variables.css +1 -1
- package/es/submit-bar/SubmitBar.d.ts +1 -1
- package/es/submit-bar/index.css +1 -1
- package/es/submit-bar/index.d.ts +1 -1
- package/es/swipe/Swipe.d.ts +1 -1
- package/es/swipe/index.css +1 -1
- package/es/swipe/index.d.ts +1 -1
- package/es/swipe-cell/SwipeCell.d.ts +1 -1
- package/es/swipe-cell/index.d.ts +1 -1
- package/es/swipe-item/SwipeItem.d.ts +1 -1
- package/es/swipe-item/index.d.ts +1 -1
- package/es/switch/Switch.d.ts +1 -1
- package/es/switch/index.css +1 -1
- package/es/switch/index.d.ts +1 -1
- package/es/tab/Tab.d.ts +1 -1
- package/es/tab/TabTitle.d.ts +2 -2
- package/es/tab/index.d.ts +1 -1
- package/es/tabbar/Tabbar.d.ts +1 -1
- package/es/tabbar/index.css +1 -1
- package/es/tabbar/index.d.ts +1 -1
- package/es/tabbar-item/TabbarItem.d.ts +1 -1
- package/es/tabbar-item/index.css +1 -1
- package/es/tabbar-item/index.d.ts +1 -1
- package/es/tabs/Tabs.d.ts +1 -1
- package/es/tabs/TabsContent.d.ts +1 -1
- package/es/tabs/index.css +1 -1
- package/es/tabs/index.d.ts +1 -1
- package/es/tag/Tag.d.ts +1 -1
- package/es/tag/index.css +1 -1
- package/es/tag/index.d.ts +1 -1
- package/es/text-ellipsis/TextEllipsis.d.ts +1 -1
- package/es/text-ellipsis/TextEllipsis.mjs +11 -5
- package/es/text-ellipsis/index.css +1 -1
- package/es/text-ellipsis/index.d.ts +1 -1
- package/es/time-picker/TimePicker.d.ts +1 -1
- package/es/time-picker/index.d.ts +1 -1
- package/es/toast/Toast.d.ts +4 -1
- package/es/toast/Toast.mjs +3 -2
- package/es/toast/index.css +1 -1
- package/es/toast/index.d.ts +3 -1
- package/es/toast/types.d.ts +3 -2
- package/es/tree-select/TreeSelect.d.ts +1 -1
- package/es/tree-select/index.css +1 -1
- package/es/tree-select/index.d.ts +1 -1
- package/es/uploader/Uploader.d.ts +8 -9
- package/es/uploader/UploaderPreviewItem.d.ts +3 -4
- package/es/uploader/index.css +1 -1
- package/es/uploader/index.d.ts +6 -6
- package/es/utils/constant.d.ts +7 -7
- package/es/utils/dom.d.ts +1 -0
- package/es/utils/dom.mjs +17 -0
- package/es/watermark/Watermark.d.ts +1 -1
- package/es/watermark/index.css +1 -1
- package/es/watermark/index.d.ts +1 -1
- package/lib/action-bar/ActionBar.d.ts +1 -1
- package/lib/action-bar/index.css +1 -1
- package/lib/action-bar/index.d.ts +1 -1
- package/lib/action-bar-button/ActionBarButton.d.ts +1 -1
- package/lib/action-bar-button/index.css +1 -1
- package/lib/action-bar-button/index.d.ts +1 -1
- package/lib/action-bar-icon/ActionBarIcon.d.ts +1 -1
- package/lib/action-bar-icon/index.css +1 -1
- package/lib/action-bar-icon/index.d.ts +1 -1
- package/lib/action-sheet/ActionSheet.d.ts +1 -1
- package/lib/action-sheet/index.css +1 -1
- package/lib/action-sheet/index.d.ts +1 -1
- package/lib/address-edit/AddressEdit.d.ts +2 -2
- package/lib/address-edit/AddressEditDetail.d.ts +1 -1
- package/lib/address-edit/index.css +1 -1
- package/lib/address-edit/index.d.ts +2 -2
- package/lib/address-list/AddressList.d.ts +1 -1
- package/lib/address-list/AddressListItem.d.ts +1 -1
- package/lib/address-list/index.css +1 -1
- package/lib/address-list/index.d.ts +1 -1
- package/lib/area/Area.d.ts +1 -1
- package/lib/area/index.d.ts +1 -1
- package/lib/back-top/BackTop.d.ts +1 -1
- package/lib/back-top/index.css +1 -1
- package/lib/back-top/index.d.ts +1 -1
- package/lib/badge/Badge.d.ts +1 -1
- package/lib/badge/index.css +1 -1
- package/lib/badge/index.d.ts +1 -1
- package/lib/barrage/Barrage.d.ts +1 -1
- package/lib/barrage/index.css +1 -1
- package/lib/barrage/index.d.ts +1 -1
- package/lib/button/Button.d.ts +2 -2
- package/lib/button/index.css +1 -1
- package/lib/button/index.d.ts +2 -2
- package/lib/calendar/Calendar.d.ts +1 -1
- package/lib/calendar/CalendarDay.d.ts +1 -1
- package/lib/calendar/CalendarHeader.d.ts +1 -1
- package/lib/calendar/CalendarMonth.d.ts +1 -1
- package/lib/calendar/index.css +1 -1
- package/lib/calendar/index.d.ts +1 -1
- package/lib/card/Card.d.ts +1 -1
- package/lib/card/index.css +1 -1
- package/lib/card/index.d.ts +1 -1
- package/lib/cascader/Cascader.d.ts +1 -1
- package/lib/cascader/index.css +1 -1
- package/lib/cascader/index.d.ts +1 -1
- package/lib/cell/Cell.d.ts +1 -1
- package/lib/cell/index.css +1 -1
- package/lib/cell/index.d.ts +1 -1
- package/lib/cell-group/CellGroup.d.ts +1 -1
- package/lib/cell-group/index.css +1 -1
- package/lib/cell-group/index.d.ts +1 -1
- package/lib/checkbox/Checkbox.d.ts +1 -1
- package/lib/checkbox/Checker.d.ts +1 -1
- package/lib/checkbox/index.css +1 -1
- package/lib/checkbox/index.d.ts +1 -1
- package/lib/checkbox-group/CheckboxGroup.d.ts +1 -1
- package/lib/checkbox-group/index.d.ts +1 -1
- package/lib/circle/Circle.d.ts +1 -1
- package/lib/circle/index.css +1 -1
- package/lib/circle/index.d.ts +1 -1
- package/lib/col/Col.d.ts +1 -1
- package/lib/col/index.d.ts +1 -1
- package/lib/collapse/Collapse.d.ts +1 -1
- package/lib/collapse/index.d.ts +1 -1
- package/lib/collapse-item/CollapseItem.d.ts +1 -1
- package/lib/collapse-item/index.css +1 -1
- package/lib/collapse-item/index.d.ts +1 -1
- package/lib/composables/use-lazy-render.d.ts +1 -0
- package/lib/composables/use-placeholder.d.ts +2 -1
- package/lib/config-provider/ConfigProvider.d.ts +1 -1
- package/lib/config-provider/index.d.ts +1 -1
- package/lib/contact-card/ContactCard.d.ts +1 -1
- package/lib/contact-card/index.css +1 -1
- package/lib/contact-card/index.d.ts +1 -1
- package/lib/contact-edit/ContactEdit.d.ts +2 -2
- package/lib/contact-edit/index.css +1 -1
- package/lib/contact-edit/index.d.ts +2 -2
- package/lib/contact-list/ContactList.d.ts +1 -1
- package/lib/contact-list/index.css +1 -1
- package/lib/contact-list/index.d.ts +1 -1
- package/lib/count-down/CountDown.d.ts +1 -1
- package/lib/count-down/index.css +1 -1
- package/lib/count-down/index.d.ts +1 -1
- package/lib/coupon/Coupon.d.ts +1 -1
- package/lib/coupon/index.css +1 -1
- package/lib/coupon/index.d.ts +1 -1
- package/lib/coupon-cell/CouponCell.d.ts +1 -1
- package/lib/coupon-cell/index.css +1 -1
- package/lib/coupon-cell/index.d.ts +1 -1
- package/lib/coupon-list/CouponList.d.ts +1 -1
- package/lib/coupon-list/index.css +1 -1
- package/lib/coupon-list/index.d.ts +1 -1
- package/lib/date-picker/DatePicker.d.ts +1 -1
- package/lib/date-picker/index.d.ts +1 -1
- package/lib/dialog/Dialog.d.ts +1 -1
- package/lib/dialog/index.css +1 -1
- package/lib/dialog/index.d.ts +1 -1
- package/lib/dialog/types.d.ts +1 -0
- package/lib/divider/Divider.d.ts +1 -1
- package/lib/divider/index.css +1 -1
- package/lib/divider/index.d.ts +1 -1
- package/lib/dropdown-item/DropdownItem.d.ts +1 -1
- package/lib/dropdown-item/DropdownItem.js +12 -2
- package/lib/dropdown-item/index.css +1 -1
- package/lib/dropdown-item/index.d.ts +1 -1
- package/lib/dropdown-menu/DropdownMenu.d.ts +5 -1
- package/lib/dropdown-menu/DropdownMenu.js +1 -0
- package/lib/dropdown-menu/index.css +1 -1
- package/lib/dropdown-menu/index.d.ts +4 -1
- package/lib/empty/Empty.d.ts +1 -1
- package/lib/empty/index.css +1 -1
- package/lib/empty/index.d.ts +1 -1
- package/lib/field/Field.d.ts +1 -1
- package/lib/field/index.css +1 -1
- package/lib/field/index.d.ts +1 -1
- package/lib/floating-bubble/FloatingBubble.d.ts +1 -1
- package/lib/floating-bubble/index.css +1 -1
- package/lib/floating-bubble/index.d.ts +1 -1
- package/lib/floating-panel/FloatingPanel.d.ts +1 -1
- package/lib/floating-panel/index.css +1 -1
- package/lib/floating-panel/index.d.ts +1 -1
- package/lib/form/Form.d.ts +1 -1
- package/lib/form/index.d.ts +1 -1
- package/lib/grid/Grid.d.ts +1 -1
- package/lib/grid/index.d.ts +1 -1
- package/lib/grid-item/GridItem.d.ts +1 -1
- package/lib/grid-item/index.css +1 -1
- package/lib/grid-item/index.d.ts +1 -1
- package/lib/highlight/Highlight.d.ts +1 -1
- package/lib/highlight/index.css +1 -1
- package/lib/highlight/index.d.ts +1 -1
- package/lib/icon/Icon.d.ts +1 -1
- package/lib/icon/index.css +1 -1
- package/lib/icon/index.d.ts +1 -1
- package/lib/image/Image.d.ts +7 -9
- package/lib/image/index.css +1 -1
- package/lib/image/index.d.ts +7 -7
- package/lib/image/types.d.ts +3 -0
- package/lib/image-preview/ImagePreview.d.ts +14 -1
- package/lib/image-preview/ImagePreview.js +2 -0
- package/lib/image-preview/ImagePreviewItem.d.ts +5 -1
- package/lib/image-preview/ImagePreviewItem.js +16 -11
- package/lib/image-preview/index.css +1 -1
- package/lib/image-preview/index.d.ts +10 -1
- package/lib/image-preview/types.d.ts +1 -0
- package/lib/index-anchor/IndexAnchor.d.ts +1 -1
- package/lib/index-anchor/index.css +1 -1
- package/lib/index-anchor/index.d.ts +1 -1
- package/lib/index-bar/IndexBar.d.ts +1 -1
- package/lib/index-bar/index.css +1 -1
- package/lib/index-bar/index.d.ts +1 -1
- package/lib/index.css +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/list/List.d.ts +1 -1
- package/lib/list/index.css +1 -1
- package/lib/list/index.d.ts +1 -1
- package/lib/loading/Loading.d.ts +1 -1
- package/lib/loading/index.css +1 -1
- package/lib/loading/index.d.ts +1 -1
- package/lib/nav-bar/NavBar.d.ts +1 -1
- package/lib/nav-bar/index.css +1 -1
- package/lib/nav-bar/index.d.ts +1 -1
- package/lib/notice-bar/NoticeBar.d.ts +1 -1
- package/lib/notice-bar/index.css +1 -1
- package/lib/notice-bar/index.d.ts +1 -1
- package/lib/notify/Notify.d.ts +1 -1
- package/lib/notify/Notify.js +3 -6
- package/lib/notify/index.css +1 -1
- package/lib/notify/index.d.ts +1 -1
- package/lib/number-keyboard/NumberKeyboard.d.ts +1 -1
- package/lib/number-keyboard/NumberKeyboardKey.d.ts +1 -1
- package/lib/number-keyboard/index.css +1 -1
- package/lib/number-keyboard/index.d.ts +1 -1
- package/lib/overlay/Overlay.d.ts +1 -1
- package/lib/overlay/index.css +1 -1
- package/lib/overlay/index.d.ts +1 -1
- package/lib/pagination/Pagination.d.ts +1 -1
- package/lib/pagination/index.css +1 -1
- package/lib/pagination/index.d.ts +1 -1
- package/lib/password-input/PasswordInput.d.ts +1 -1
- package/lib/password-input/index.css +1 -1
- package/lib/password-input/index.d.ts +1 -1
- package/lib/picker/Picker.d.ts +1 -1
- package/lib/picker/PickerColumn.d.ts +1 -1
- package/lib/picker/PickerToolbar.d.ts +1 -1
- package/lib/picker/index.css +1 -1
- package/lib/picker/index.d.ts +1 -1
- package/lib/picker-group/PickerGroup.d.ts +1 -1
- package/lib/picker-group/index.css +1 -1
- package/lib/picker-group/index.d.ts +1 -1
- package/lib/popover/Popover.d.ts +1 -1
- package/lib/popover/index.css +1 -1
- package/lib/popover/index.d.ts +1 -1
- package/lib/popup/Popup.d.ts +1 -1
- package/lib/popup/index.css +1 -1
- package/lib/popup/index.d.ts +1 -1
- package/lib/progress/Progress.d.ts +1 -1
- package/lib/progress/index.css +1 -1
- package/lib/progress/index.d.ts +1 -1
- package/lib/pull-refresh/PullRefresh.d.ts +1 -1
- package/lib/pull-refresh/index.css +1 -1
- package/lib/pull-refresh/index.d.ts +1 -1
- package/lib/radio/Radio.d.ts +1 -1
- package/lib/radio/index.css +1 -1
- package/lib/radio/index.d.ts +1 -1
- package/lib/radio-group/RadioGroup.d.ts +1 -1
- package/lib/radio-group/index.d.ts +1 -1
- package/lib/rate/Rate.d.ts +1 -1
- package/lib/rate/index.css +1 -1
- package/lib/rate/index.d.ts +1 -1
- package/lib/rolling-text/RollingText.d.ts +1 -1
- package/lib/rolling-text/RollingTextItem.d.ts +1 -1
- package/lib/rolling-text/index.css +1 -1
- package/lib/rolling-text/index.d.ts +1 -1
- package/lib/row/Row.d.ts +1 -1
- package/lib/row/index.d.ts +1 -1
- package/lib/search/Search.d.ts +1 -1
- package/lib/search/index.css +1 -1
- package/lib/search/index.d.ts +1 -1
- package/lib/share-sheet/ShareSheet.d.ts +1 -1
- package/lib/share-sheet/index.css +1 -1
- package/lib/share-sheet/index.d.ts +1 -1
- package/lib/sidebar/Sidebar.d.ts +1 -1
- package/lib/sidebar/index.css +1 -1
- package/lib/sidebar/index.d.ts +1 -1
- package/lib/sidebar-item/SidebarItem.d.ts +1 -1
- package/lib/sidebar-item/index.css +1 -1
- package/lib/sidebar-item/index.d.ts +1 -1
- package/lib/signature/Signature.d.ts +1 -1
- package/lib/signature/index.css +1 -1
- package/lib/signature/index.d.ts +1 -1
- package/lib/skeleton/Skeleton.d.ts +2 -2
- package/lib/skeleton/index.css +1 -1
- package/lib/skeleton/index.d.ts +2 -2
- package/lib/skeleton-avatar/SkeletonAvatar.d.ts +1 -1
- package/lib/skeleton-avatar/index.css +1 -1
- package/lib/skeleton-avatar/index.d.ts +1 -1
- package/lib/skeleton-image/SkeletonImage.d.ts +1 -1
- package/lib/skeleton-image/index.css +1 -1
- package/lib/skeleton-image/index.d.ts +1 -1
- package/lib/skeleton-paragraph/SkeletonParagraph.d.ts +1 -1
- package/lib/skeleton-paragraph/index.css +1 -1
- package/lib/skeleton-paragraph/index.d.ts +1 -1
- package/lib/skeleton-title/SkeletonTitle.d.ts +1 -1
- package/lib/skeleton-title/index.css +1 -1
- package/lib/skeleton-title/index.d.ts +1 -1
- package/lib/slider/Slider.d.ts +1 -1
- package/lib/slider/index.css +1 -1
- package/lib/slider/index.d.ts +1 -1
- package/lib/space/Space.d.ts +1 -1
- package/lib/space/index.d.ts +1 -1
- package/lib/step/Step.d.ts +1 -1
- package/lib/step/index.css +1 -1
- package/lib/step/index.d.ts +1 -1
- package/lib/stepper/Stepper.d.ts +1 -1
- package/lib/stepper/index.css +1 -1
- package/lib/stepper/index.d.ts +1 -1
- package/lib/steps/Steps.d.ts +1 -1
- package/lib/steps/index.css +1 -1
- package/lib/steps/index.d.ts +1 -1
- package/lib/sticky/Sticky.d.ts +1 -1
- package/lib/sticky/Sticky.js +1 -1
- package/lib/sticky/index.css +1 -1
- package/lib/sticky/index.d.ts +1 -1
- package/lib/style/base.css +1 -1
- package/lib/style/css-variables.css +1 -1
- package/lib/submit-bar/SubmitBar.d.ts +1 -1
- package/lib/submit-bar/index.css +1 -1
- package/lib/submit-bar/index.d.ts +1 -1
- package/lib/swipe/Swipe.d.ts +1 -1
- package/lib/swipe/index.css +1 -1
- package/lib/swipe/index.d.ts +1 -1
- package/lib/swipe-cell/SwipeCell.d.ts +1 -1
- package/lib/swipe-cell/index.d.ts +1 -1
- package/lib/swipe-item/SwipeItem.d.ts +1 -1
- package/lib/swipe-item/index.d.ts +1 -1
- package/lib/switch/Switch.d.ts +1 -1
- package/lib/switch/index.css +1 -1
- package/lib/switch/index.d.ts +1 -1
- package/lib/tab/Tab.d.ts +1 -1
- package/lib/tab/TabTitle.d.ts +2 -2
- package/lib/tab/index.d.ts +1 -1
- package/lib/tabbar/Tabbar.d.ts +1 -1
- package/lib/tabbar/index.css +1 -1
- package/lib/tabbar/index.d.ts +1 -1
- package/lib/tabbar-item/TabbarItem.d.ts +1 -1
- package/lib/tabbar-item/index.css +1 -1
- package/lib/tabbar-item/index.d.ts +1 -1
- package/lib/tabs/Tabs.d.ts +1 -1
- package/lib/tabs/TabsContent.d.ts +1 -1
- package/lib/tabs/index.css +1 -1
- package/lib/tabs/index.d.ts +1 -1
- package/lib/tag/Tag.d.ts +1 -1
- package/lib/tag/index.css +1 -1
- package/lib/tag/index.d.ts +1 -1
- package/lib/text-ellipsis/TextEllipsis.d.ts +1 -1
- package/lib/text-ellipsis/TextEllipsis.js +11 -5
- package/lib/text-ellipsis/index.css +1 -1
- package/lib/text-ellipsis/index.d.ts +1 -1
- package/lib/time-picker/TimePicker.d.ts +1 -1
- package/lib/time-picker/index.d.ts +1 -1
- package/lib/toast/Toast.d.ts +4 -1
- package/lib/toast/Toast.js +3 -2
- package/lib/toast/index.css +1 -1
- package/lib/toast/index.d.ts +3 -1
- package/lib/toast/types.d.ts +3 -2
- package/lib/tree-select/TreeSelect.d.ts +1 -1
- package/lib/tree-select/index.css +1 -1
- package/lib/tree-select/index.d.ts +1 -1
- package/lib/uploader/Uploader.d.ts +8 -9
- package/lib/uploader/UploaderPreviewItem.d.ts +3 -4
- package/lib/uploader/index.css +1 -1
- package/lib/uploader/index.d.ts +6 -6
- package/lib/utils/constant.d.ts +7 -7
- package/lib/utils/dom.d.ts +1 -0
- package/lib/utils/dom.js +17 -0
- package/lib/vant.cjs.js +67 -29
- package/lib/vant.es.js +67 -29
- package/lib/vant.js +73 -32
- package/lib/vant.min.js +6 -1
- package/lib/watermark/Watermark.d.ts +1 -1
- package/lib/watermark/index.css +1 -1
- package/lib/watermark/index.d.ts +1 -1
- package/lib/web-types.json +1 -1
- package/package.json +11 -10
@@ -54,6 +54,10 @@ export declare const imagePreviewProps: {
|
|
54
54
|
type: BooleanConstructor;
|
55
55
|
default: true;
|
56
56
|
};
|
57
|
+
closeOnClickImage: {
|
58
|
+
type: BooleanConstructor;
|
59
|
+
default: true;
|
60
|
+
};
|
57
61
|
closeOnClickOverlay: {
|
58
62
|
type: BooleanConstructor;
|
59
63
|
default: true;
|
@@ -118,6 +122,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
118
122
|
type: BooleanConstructor;
|
119
123
|
default: true;
|
120
124
|
};
|
125
|
+
closeOnClickImage: {
|
126
|
+
type: BooleanConstructor;
|
127
|
+
default: true;
|
128
|
+
};
|
121
129
|
closeOnClickOverlay: {
|
122
130
|
type: BooleanConstructor;
|
123
131
|
default: true;
|
@@ -127,7 +135,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
127
135
|
default: PopupCloseIconPosition;
|
128
136
|
};
|
129
137
|
teleport: PropType<string | import("vue").RendererElement | null | undefined>;
|
130
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "close" | "closed" | "update:show" | "scale" | "longPress")[], "change" | "close" | "closed" | "update:show" | "scale" | "longPress", import("vue").
|
138
|
+
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "close" | "closed" | "update:show" | "scale" | "longPress")[], "change" | "close" | "closed" | "update:show" | "scale" | "longPress", import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
131
139
|
show: BooleanConstructor;
|
132
140
|
loop: {
|
133
141
|
type: BooleanConstructor;
|
@@ -180,6 +188,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
180
188
|
type: BooleanConstructor;
|
181
189
|
default: true;
|
182
190
|
};
|
191
|
+
closeOnClickImage: {
|
192
|
+
type: BooleanConstructor;
|
193
|
+
default: true;
|
194
|
+
};
|
183
195
|
closeOnClickOverlay: {
|
184
196
|
type: BooleanConstructor;
|
185
197
|
default: true;
|
@@ -211,6 +223,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
211
223
|
minZoom: string | number;
|
212
224
|
maxZoom: string | number;
|
213
225
|
doubleScale: boolean;
|
226
|
+
closeOnClickImage: boolean;
|
214
227
|
images: string[];
|
215
228
|
showIndex: boolean;
|
216
229
|
}, {}>;
|
@@ -62,6 +62,7 @@ const imagePreviewProps = {
|
|
62
62
|
startPosition: (0, import_utils.makeNumericProp)(0),
|
63
63
|
showIndicators: Boolean,
|
64
64
|
closeOnPopstate: import_utils.truthProp,
|
65
|
+
closeOnClickImage: import_utils.truthProp,
|
65
66
|
closeOnClickOverlay: import_utils.truthProp,
|
66
67
|
closeIconPosition: (0, import_utils.makeStringProp)("top-right"),
|
67
68
|
teleport: [String, Object]
|
@@ -154,6 +155,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
154
155
|
"rootHeight": state.rootHeight,
|
155
156
|
"disableZoom": state.disableZoom,
|
156
157
|
"doubleScale": props.doubleScale,
|
158
|
+
"closeOnClickImage": props.closeOnClickImage,
|
157
159
|
"closeOnClickOverlay": props.closeOnClickOverlay,
|
158
160
|
"onScale": emitScale,
|
159
161
|
"onClose": emitClose,
|
@@ -21,6 +21,7 @@ declare const imagePreviewItemProps: {
|
|
21
21
|
};
|
22
22
|
disableZoom: BooleanConstructor;
|
23
23
|
doubleScale: BooleanConstructor;
|
24
|
+
closeOnClickImage: BooleanConstructor;
|
24
25
|
closeOnClickOverlay: BooleanConstructor;
|
25
26
|
};
|
26
27
|
export type ImagePreviewItemProps = ExtractPropTypes<typeof imagePreviewItemProps>;
|
@@ -46,8 +47,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
46
47
|
};
|
47
48
|
disableZoom: BooleanConstructor;
|
48
49
|
doubleScale: BooleanConstructor;
|
50
|
+
closeOnClickImage: BooleanConstructor;
|
49
51
|
closeOnClickOverlay: BooleanConstructor;
|
50
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "scale" | "longPress")[], "close" | "scale" | "longPress", import("vue").
|
52
|
+
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "scale" | "longPress")[], "close" | "scale" | "longPress", import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
51
53
|
src: StringConstructor;
|
52
54
|
show: BooleanConstructor;
|
53
55
|
active: NumberConstructor;
|
@@ -69,6 +71,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
69
71
|
};
|
70
72
|
disableZoom: BooleanConstructor;
|
71
73
|
doubleScale: BooleanConstructor;
|
74
|
+
closeOnClickImage: BooleanConstructor;
|
72
75
|
closeOnClickOverlay: BooleanConstructor;
|
73
76
|
}>> & {
|
74
77
|
onClose?: ((...args: any[]) => any) | undefined;
|
@@ -79,5 +82,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
79
82
|
closeOnClickOverlay: boolean;
|
80
83
|
disableZoom: boolean;
|
81
84
|
doubleScale: boolean;
|
85
|
+
closeOnClickImage: boolean;
|
82
86
|
}, {}>;
|
83
87
|
export default _default;
|
@@ -46,6 +46,7 @@ const imagePreviewItemProps = {
|
|
46
46
|
rootHeight: (0, import_utils.makeRequiredProp)(Number),
|
47
47
|
disableZoom: Boolean,
|
48
48
|
doubleScale: Boolean,
|
49
|
+
closeOnClickImage: Boolean,
|
49
50
|
closeOnClickOverlay: Boolean
|
50
51
|
};
|
51
52
|
var stdin_default = (0, import_vue2.defineComponent)({
|
@@ -208,18 +209,25 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
208
209
|
}
|
209
210
|
}
|
210
211
|
};
|
211
|
-
const
|
212
|
+
const checkClose = (event) => {
|
212
213
|
var _a;
|
214
|
+
const swipeItemEl = (_a = swipeItem.value) == null ? void 0 : _a.$el;
|
215
|
+
const imageEl = swipeItemEl.firstElementChild;
|
216
|
+
const isClickOverlay = event.target === swipeItemEl;
|
217
|
+
const isClickImage = imageEl == null ? void 0 : imageEl.contains(event.target);
|
218
|
+
if (!props.closeOnClickImage && isClickImage)
|
219
|
+
return;
|
220
|
+
if (!props.closeOnClickOverlay && isClickOverlay)
|
221
|
+
return;
|
222
|
+
emit("close");
|
223
|
+
};
|
224
|
+
const checkTap = (event) => {
|
213
225
|
if (fingerNum > 1) {
|
214
226
|
return;
|
215
227
|
}
|
216
|
-
const {
|
217
|
-
offsetX,
|
218
|
-
offsetY
|
219
|
-
} = touch;
|
220
228
|
const deltaTime = Date.now() - touchStartTime;
|
221
229
|
const TAP_TIME = 250;
|
222
|
-
if (
|
230
|
+
if (touch.isTap.value) {
|
223
231
|
if (deltaTime < TAP_TIME) {
|
224
232
|
if (props.doubleScale) {
|
225
233
|
if (doubleTapTimer) {
|
@@ -227,16 +235,13 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
227
235
|
doubleTapTimer = null;
|
228
236
|
toggleScale();
|
229
237
|
} else {
|
230
|
-
if (!props.closeOnClickOverlay && event.target === ((_a = swipeItem.value) == null ? void 0 : _a.$el)) {
|
231
|
-
return;
|
232
|
-
}
|
233
238
|
doubleTapTimer = setTimeout(() => {
|
234
|
-
|
239
|
+
checkClose(event);
|
235
240
|
doubleTapTimer = null;
|
236
241
|
}, TAP_TIME);
|
237
242
|
}
|
238
243
|
} else {
|
239
|
-
|
244
|
+
checkClose(event);
|
240
245
|
}
|
241
246
|
} else if (deltaTime > import_utils.LONG_PRESS_START_TIME) {
|
242
247
|
emit("longPress");
|
@@ -1 +1 @@
|
|
1
|
-
:root{--van-image-preview-index-text-color: var(--van-white);--van-image-preview-index-font-size: var(--van-font-size-md);--van-image-preview-index-line-height: var(--van-line-height-md);--van-image-preview-index-text-shadow: 0 1px 1px var(--van-gray-8);--van-image-preview-overlay-background: rgba(0, 0, 0, .9);--van-image-preview-close-icon-size: 22px;--van-image-preview-close-icon-color: var(--van-gray-5);--van-image-preview-close-icon-margin: var(--van-padding-md);--van-image-preview-close-icon-z-index: 1}.van-image-preview{position:fixed;top:0;left:0;width:100%;height:100%;max-width:none;background-color:transparent;transform:none}.van-image-preview__swipe{height:100%}.van-image-preview__swipe-item{display:flex;align-items:center;justify-content:center;overflow:hidden}.van-image-preview__cover{position:absolute;top:0;left:0}.van-image-preview__image,.van-image-preview__image-wrap{width:100%;transition-property:transform}.van-image-preview__image--vertical,.van-image-preview__image-wrap--vertical{width:auto;height:100%}.van-image-preview__image img,.van-image-preview__image-wrap img,.van-image-preview__image video,.van-image-preview__image-wrap video{-webkit-user-drag:none}.van-image-preview__image .van-image__error,.van-image-preview__image-wrap .van-image__error{top:30%;height:40%}.van-image-preview__image .van-image__error-icon,.van-image-preview__image-wrap .van-image__error-icon{font-size:36px}.van-image-preview__image .van-image__loading,.van-image-preview__image-wrap .van-image__loading{background-color:transparent}.van-image-preview__index{position:absolute;top:var(--van-padding-md);left:50%;color:var(--van-image-preview-index-text-color);font-size:var(--van-image-preview-index-font-size);line-height:var(--van-image-preview-index-line-height);text-shadow:var(--van-image-preview-index-text-shadow);transform:translate(-50%)}.van-image-preview__overlay{background:var(--van-image-preview-overlay-background)}.van-image-preview__close-icon{position:absolute;z-index:var(--van-image-preview-close-icon-z-index);color:var(--van-image-preview-close-icon-color);font-size:var(--van-image-preview-close-icon-size)}.van-image-preview__close-icon--top-left{top:var(--van-image-preview-close-icon-margin);left:var(--van-image-preview-close-icon-margin)}.van-image-preview__close-icon--top-right{top:var(--van-image-preview-close-icon-margin);right:var(--van-image-preview-close-icon-margin)}.van-image-preview__close-icon--bottom-left{bottom:var(--van-image-preview-close-icon-margin);left:var(--van-image-preview-close-icon-margin)}.van-image-preview__close-icon--bottom-right{right:var(--van-image-preview-close-icon-margin);bottom:var(--van-image-preview-close-icon-margin)}
|
1
|
+
:root,:host{--van-image-preview-index-text-color: var(--van-white);--van-image-preview-index-font-size: var(--van-font-size-md);--van-image-preview-index-line-height: var(--van-line-height-md);--van-image-preview-index-text-shadow: 0 1px 1px var(--van-gray-8);--van-image-preview-overlay-background: rgba(0, 0, 0, .9);--van-image-preview-close-icon-size: 22px;--van-image-preview-close-icon-color: var(--van-gray-5);--van-image-preview-close-icon-margin: var(--van-padding-md);--van-image-preview-close-icon-z-index: 1}.van-image-preview{position:fixed;top:0;left:0;width:100%;height:100%;max-width:none;background-color:transparent;transform:none}.van-image-preview__swipe{height:100%}.van-image-preview__swipe-item{display:flex;align-items:center;justify-content:center;overflow:hidden}.van-image-preview__cover{position:absolute;top:0;left:0}.van-image-preview__image,.van-image-preview__image-wrap{width:100%;transition-property:transform}.van-image-preview__image--vertical,.van-image-preview__image-wrap--vertical{width:auto;height:100%}.van-image-preview__image img,.van-image-preview__image-wrap img,.van-image-preview__image video,.van-image-preview__image-wrap video{-webkit-user-drag:none}.van-image-preview__image .van-image__error,.van-image-preview__image-wrap .van-image__error{top:30%;height:40%}.van-image-preview__image .van-image__error-icon,.van-image-preview__image-wrap .van-image__error-icon{font-size:36px}.van-image-preview__image .van-image__loading,.van-image-preview__image-wrap .van-image__loading{background-color:transparent}.van-image-preview__index{position:absolute;top:var(--van-padding-md);left:50%;color:var(--van-image-preview-index-text-color);font-size:var(--van-image-preview-index-font-size);line-height:var(--van-image-preview-index-line-height);text-shadow:var(--van-image-preview-index-text-shadow);transform:translate(-50%)}.van-image-preview__overlay{background:var(--van-image-preview-overlay-background)}.van-image-preview__close-icon{position:absolute;z-index:var(--van-image-preview-close-icon-z-index);color:var(--van-image-preview-close-icon-color);font-size:var(--van-image-preview-close-icon-size)}.van-image-preview__close-icon--top-left{top:var(--van-image-preview-close-icon-margin);left:var(--van-image-preview-close-icon-margin)}.van-image-preview__close-icon--top-right{top:var(--van-image-preview-close-icon-margin);right:var(--van-image-preview-close-icon-margin)}.van-image-preview__close-icon--bottom-left{bottom:var(--van-image-preview-close-icon-margin);left:var(--van-image-preview-close-icon-margin)}.van-image-preview__close-icon--bottom-right{right:var(--van-image-preview-close-icon-margin);bottom:var(--van-image-preview-close-icon-margin)}
|
@@ -52,6 +52,10 @@ export declare const ImagePreview: import("../utils").WithInstall<import("vue").
|
|
52
52
|
type: BooleanConstructor;
|
53
53
|
default: true;
|
54
54
|
};
|
55
|
+
closeOnClickImage: {
|
56
|
+
type: BooleanConstructor;
|
57
|
+
default: true;
|
58
|
+
};
|
55
59
|
closeOnClickOverlay: {
|
56
60
|
type: BooleanConstructor;
|
57
61
|
default: true;
|
@@ -61,7 +65,7 @@ export declare const ImagePreview: import("../utils").WithInstall<import("vue").
|
|
61
65
|
default: import("..").PopupCloseIconPosition;
|
62
66
|
};
|
63
67
|
teleport: import("vue").PropType<string | import("vue").RendererElement | null | undefined>;
|
64
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "close" | "closed" | "update:show" | "scale" | "longPress")[], "change" | "close" | "closed" | "update:show" | "scale" | "longPress", import("vue").
|
68
|
+
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "close" | "closed" | "update:show" | "scale" | "longPress")[], "change" | "close" | "closed" | "update:show" | "scale" | "longPress", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
65
69
|
show: BooleanConstructor;
|
66
70
|
loop: {
|
67
71
|
type: BooleanConstructor;
|
@@ -114,6 +118,10 @@ export declare const ImagePreview: import("../utils").WithInstall<import("vue").
|
|
114
118
|
type: BooleanConstructor;
|
115
119
|
default: true;
|
116
120
|
};
|
121
|
+
closeOnClickImage: {
|
122
|
+
type: BooleanConstructor;
|
123
|
+
default: true;
|
124
|
+
};
|
117
125
|
closeOnClickOverlay: {
|
118
126
|
type: BooleanConstructor;
|
119
127
|
default: true;
|
@@ -145,6 +153,7 @@ export declare const ImagePreview: import("../utils").WithInstall<import("vue").
|
|
145
153
|
minZoom: string | number;
|
146
154
|
maxZoom: string | number;
|
147
155
|
doubleScale: boolean;
|
156
|
+
closeOnClickImage: boolean;
|
148
157
|
images: string[];
|
149
158
|
showIndex: boolean;
|
150
159
|
}, {}>>;
|
@@ -5,7 +5,7 @@ export declare const indexAnchorProps: {
|
|
5
5
|
export type IndexAnchorProps = ExtractPropTypes<typeof indexAnchorProps>;
|
6
6
|
declare const _default: import("vue").DefineComponent<{
|
7
7
|
index: (NumberConstructor | StringConstructor)[];
|
8
|
-
}, (() => JSX.Element) | undefined, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
8
|
+
}, (() => import("vue/jsx-runtime").JSX.Element) | undefined, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
9
9
|
index: (NumberConstructor | StringConstructor)[];
|
10
10
|
}>>, {}, {}>;
|
11
11
|
export default _default;
|
@@ -1 +1 @@
|
|
1
|
-
:root{--van-index-anchor-z-index: 1;--van-index-anchor-padding: 0 var(--van-padding-md);--van-index-anchor-text-color: var(--van-text-color);--van-index-anchor-font-weight: var(--van-font-bold);--van-index-anchor-font-size: var(--van-font-size-md);--van-index-anchor-line-height: 32px;--van-index-anchor-background: transparent;--van-index-anchor-sticky-text-color: var(--van-primary-color);--van-index-anchor-sticky-background: var(--van-background-2)}.van-index-anchor{z-index:var(--van-index-anchor-z-index);box-sizing:border-box;padding:var(--van-index-anchor-padding);color:var(--van-index-anchor-text-color);font-weight:var(--van-index-anchor-font-weight);font-size:var(--van-index-anchor-font-size);line-height:var(--van-index-anchor-line-height);background:var(--van-index-anchor-background)}.van-index-anchor--sticky{position:fixed;top:0;right:0;left:0;color:var(--van-index-anchor-sticky-text-color);background:var(--van-index-anchor-sticky-background)}
|
1
|
+
:root,:host{--van-index-anchor-z-index: 1;--van-index-anchor-padding: 0 var(--van-padding-md);--van-index-anchor-text-color: var(--van-text-color);--van-index-anchor-font-weight: var(--van-font-bold);--van-index-anchor-font-size: var(--van-font-size-md);--van-index-anchor-line-height: 32px;--van-index-anchor-background: transparent;--van-index-anchor-sticky-text-color: var(--van-primary-color);--van-index-anchor-sticky-background: var(--van-background-2)}.van-index-anchor{z-index:var(--van-index-anchor-z-index);box-sizing:border-box;padding:var(--van-index-anchor-padding);color:var(--van-index-anchor-text-color);font-weight:var(--van-index-anchor-font-weight);font-size:var(--van-index-anchor-font-size);line-height:var(--van-index-anchor-line-height);background:var(--van-index-anchor-background)}.van-index-anchor--sticky{position:fixed;top:0;right:0;left:0;color:var(--van-index-anchor-sticky-text-color);background:var(--van-index-anchor-sticky-background)}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
export declare const IndexAnchor: import("../utils").WithInstall<import("vue").DefineComponent<{
|
2
2
|
index: (NumberConstructor | StringConstructor)[];
|
3
|
-
}, (() => JSX.Element) | undefined, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
3
|
+
}, (() => import("vue/jsx-runtime").JSX.Element) | undefined, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
4
4
|
index: (NumberConstructor | StringConstructor)[];
|
5
5
|
}>>, {}, {}>>;
|
6
6
|
export default IndexAnchor;
|
@@ -37,7 +37,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
37
37
|
type: PropType<Numeric[]>;
|
38
38
|
default: typeof genAlphabet;
|
39
39
|
};
|
40
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "change")[], "select" | "change", import("vue").
|
40
|
+
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "change")[], "select" | "change", import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
41
41
|
sticky: {
|
42
42
|
type: BooleanConstructor;
|
43
43
|
default: true;
|
package/lib/index-bar/index.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
:root{--van-index-bar-sidebar-z-index: 2;--van-index-bar-index-font-size: var(--van-font-size-xs);--van-index-bar-index-line-height: var(--van-line-height-xs);--van-index-bar-index-active-color: var(--van-primary-color)}.van-index-bar__sidebar{position:fixed;top:50%;right:0;z-index:var(--van-index-bar-sidebar-z-index);display:flex;flex-direction:column;text-align:center;transform:translateY(-50%);cursor:pointer;-webkit-user-select:none;user-select:none}.van-index-bar__index{padding:0 var(--van-padding-xs) 0 var(--van-padding-md);font-weight:var(--van-font-bold);font-size:var(--van-index-bar-index-font-size);line-height:var(--van-index-bar-index-line-height)}.van-index-bar__index--active{color:var(--van-index-bar-index-active-color);font-weight:700}
|
1
|
+
:root,:host{--van-index-bar-sidebar-z-index: 2;--van-index-bar-index-font-size: var(--van-font-size-xs);--van-index-bar-index-line-height: var(--van-line-height-xs);--van-index-bar-index-active-color: var(--van-primary-color)}.van-index-bar__sidebar{position:fixed;top:50%;right:0;z-index:var(--van-index-bar-sidebar-z-index);display:flex;flex-direction:column;text-align:center;transform:translateY(-50%);cursor:pointer;-webkit-user-select:none;user-select:none}.van-index-bar__index{padding:0 var(--van-padding-xs) 0 var(--van-padding-md);font-weight:var(--van-font-bold);font-size:var(--van-index-bar-index-font-size);line-height:var(--van-index-bar-index-line-height)}.van-index-bar__index--active{color:var(--van-index-bar-index-active-color);font-weight:700}
|
package/lib/index-bar/index.d.ts
CHANGED
@@ -15,7 +15,7 @@ export declare const IndexBar: import("../utils").WithInstall<import("vue").Defi
|
|
15
15
|
type: import("vue").PropType<import("../utils").Numeric[]>;
|
16
16
|
default: () => string[];
|
17
17
|
};
|
18
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "change")[], "select" | "change", import("vue").
|
18
|
+
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "change")[], "select" | "change", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
19
19
|
sticky: {
|
20
20
|
type: BooleanConstructor;
|
21
21
|
default: true;
|