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
package/lib/vant.es.js
CHANGED
@@ -116,6 +116,22 @@ function isHidden(elementRef) {
|
|
116
116
|
return hidden || parentHidden;
|
117
117
|
}
|
118
118
|
const { width: windowWidth, height: windowHeight } = useWindowSize();
|
119
|
+
function isContainingBlock(el) {
|
120
|
+
const css = window.getComputedStyle(el);
|
121
|
+
return css.transform !== "none" || css.perspective !== "none" || ["transform", "perspective", "filter"].some(
|
122
|
+
(value) => (css.willChange || "").includes(value)
|
123
|
+
);
|
124
|
+
}
|
125
|
+
function getContainingBlock(el) {
|
126
|
+
let node = el.parentElement;
|
127
|
+
while (node) {
|
128
|
+
if (node && node.tagName !== "HTML" && node.tagName !== "BODY" && isContainingBlock(node)) {
|
129
|
+
return node;
|
130
|
+
}
|
131
|
+
node = node.parentElement;
|
132
|
+
}
|
133
|
+
return null;
|
134
|
+
}
|
119
135
|
function addUnit(value) {
|
120
136
|
if (isDef(value)) {
|
121
137
|
return isNumeric(value) ? `${value}px` : String(value);
|
@@ -2113,7 +2129,7 @@ var stdin_default$1G = defineComponent({
|
|
2113
2129
|
if (container) {
|
2114
2130
|
const containerRect = useRect(container);
|
2115
2131
|
const difference = containerRect.bottom - offset.value - state.height;
|
2116
|
-
state.fixed = offset.value
|
2132
|
+
state.fixed = offset.value >= rootRect.top && containerRect.bottom > 0;
|
2117
2133
|
state.transform = difference < 0 ? difference : 0;
|
2118
2134
|
} else {
|
2119
2135
|
state.fixed = offset.value > rootRect.top;
|
@@ -4546,7 +4562,7 @@ function lockClick(lock) {
|
|
4546
4562
|
}
|
4547
4563
|
}
|
4548
4564
|
const [name$1k, bem$1g] = createNamespace("toast");
|
4549
|
-
const popupInheritProps = ["show", "overlay", "teleport", "transition", "overlayClass", "overlayStyle", "closeOnClickOverlay"];
|
4565
|
+
const popupInheritProps$1 = ["show", "overlay", "teleport", "transition", "overlayClass", "overlayStyle", "closeOnClickOverlay", "zIndex"];
|
4550
4566
|
const toastProps = {
|
4551
4567
|
icon: String,
|
4552
4568
|
show: Boolean,
|
@@ -4566,7 +4582,8 @@ const toastProps = {
|
|
4566
4582
|
overlayClass: unknownProp,
|
4567
4583
|
overlayStyle: Object,
|
4568
4584
|
closeOnClick: Boolean,
|
4569
|
-
closeOnClickOverlay: Boolean
|
4585
|
+
closeOnClickOverlay: Boolean,
|
4586
|
+
zIndex: numericProp
|
4570
4587
|
};
|
4571
4588
|
var stdin_default$1u = defineComponent({
|
4572
4589
|
name: name$1k,
|
@@ -4656,7 +4673,7 @@ var stdin_default$1u = defineComponent({
|
|
4656
4673
|
"onClick": onClick,
|
4657
4674
|
"onClosed": clearTimer,
|
4658
4675
|
"onUpdate:show": updateShow
|
4659
|
-
}, pick(props2, popupInheritProps)), {
|
4676
|
+
}, pick(props2, popupInheritProps$1)), {
|
4660
4677
|
default: () => [renderIcon(), renderMessage()]
|
4661
4678
|
});
|
4662
4679
|
}
|
@@ -9541,6 +9558,7 @@ const dropdownMenuProps = {
|
|
9541
9558
|
duration: makeNumericProp(0.2),
|
9542
9559
|
direction: makeStringProp("down"),
|
9543
9560
|
activeColor: String,
|
9561
|
+
autoLocate: Boolean,
|
9544
9562
|
closeOnClickOutside: truthProp,
|
9545
9563
|
closeOnClickOverlay: truthProp,
|
9546
9564
|
swipeThreshold: numericProp
|
@@ -9696,6 +9714,7 @@ var stdin_default$T = defineComponent({
|
|
9696
9714
|
transition: true,
|
9697
9715
|
showWrapper: false
|
9698
9716
|
});
|
9717
|
+
const wrapperRef = ref();
|
9699
9718
|
const {
|
9700
9719
|
parent,
|
9701
9720
|
index
|
@@ -9784,6 +9803,7 @@ var stdin_default$T = defineComponent({
|
|
9784
9803
|
offset
|
9785
9804
|
} = parent;
|
9786
9805
|
const {
|
9806
|
+
autoLocate,
|
9787
9807
|
zIndex,
|
9788
9808
|
overlay,
|
9789
9809
|
duration,
|
@@ -9791,12 +9811,20 @@ var stdin_default$T = defineComponent({
|
|
9791
9811
|
closeOnClickOverlay
|
9792
9812
|
} = parent.props;
|
9793
9813
|
const style = getZIndexStyle(zIndex);
|
9814
|
+
let offsetValue = offset.value;
|
9815
|
+
if (autoLocate && wrapperRef.value) {
|
9816
|
+
const offsetParent = getContainingBlock(wrapperRef.value);
|
9817
|
+
if (offsetParent) {
|
9818
|
+
offsetValue -= useRect(offsetParent).top;
|
9819
|
+
}
|
9820
|
+
}
|
9794
9821
|
if (direction === "down") {
|
9795
|
-
style.top = `${
|
9822
|
+
style.top = `${offsetValue}px`;
|
9796
9823
|
} else {
|
9797
|
-
style.bottom = `${
|
9824
|
+
style.bottom = `${offsetValue}px`;
|
9798
9825
|
}
|
9799
9826
|
return withDirectives(createVNode("div", mergeProps({
|
9827
|
+
"ref": wrapperRef,
|
9800
9828
|
"style": style,
|
9801
9829
|
"class": bem$K([direction]),
|
9802
9830
|
"onClick": onClickWrapper
|
@@ -10443,6 +10471,7 @@ const imagePreviewItemProps = {
|
|
10443
10471
|
rootHeight: makeRequiredProp(Number),
|
10444
10472
|
disableZoom: Boolean,
|
10445
10473
|
doubleScale: Boolean,
|
10474
|
+
closeOnClickImage: Boolean,
|
10446
10475
|
closeOnClickOverlay: Boolean
|
10447
10476
|
};
|
10448
10477
|
var stdin_default$N = defineComponent({
|
@@ -10605,18 +10634,25 @@ var stdin_default$N = defineComponent({
|
|
10605
10634
|
}
|
10606
10635
|
}
|
10607
10636
|
};
|
10608
|
-
const
|
10637
|
+
const checkClose = (event) => {
|
10609
10638
|
var _a;
|
10639
|
+
const swipeItemEl = (_a = swipeItem.value) == null ? void 0 : _a.$el;
|
10640
|
+
const imageEl = swipeItemEl.firstElementChild;
|
10641
|
+
const isClickOverlay = event.target === swipeItemEl;
|
10642
|
+
const isClickImage = imageEl == null ? void 0 : imageEl.contains(event.target);
|
10643
|
+
if (!props2.closeOnClickImage && isClickImage)
|
10644
|
+
return;
|
10645
|
+
if (!props2.closeOnClickOverlay && isClickOverlay)
|
10646
|
+
return;
|
10647
|
+
emit("close");
|
10648
|
+
};
|
10649
|
+
const checkTap = (event) => {
|
10610
10650
|
if (fingerNum > 1) {
|
10611
10651
|
return;
|
10612
10652
|
}
|
10613
|
-
const {
|
10614
|
-
offsetX,
|
10615
|
-
offsetY
|
10616
|
-
} = touch;
|
10617
10653
|
const deltaTime = Date.now() - touchStartTime;
|
10618
10654
|
const TAP_TIME = 250;
|
10619
|
-
if (
|
10655
|
+
if (touch.isTap.value) {
|
10620
10656
|
if (deltaTime < TAP_TIME) {
|
10621
10657
|
if (props2.doubleScale) {
|
10622
10658
|
if (doubleTapTimer) {
|
@@ -10624,16 +10660,13 @@ var stdin_default$N = defineComponent({
|
|
10624
10660
|
doubleTapTimer = null;
|
10625
10661
|
toggleScale();
|
10626
10662
|
} else {
|
10627
|
-
if (!props2.closeOnClickOverlay && event.target === ((_a = swipeItem.value) == null ? void 0 : _a.$el)) {
|
10628
|
-
return;
|
10629
|
-
}
|
10630
10663
|
doubleTapTimer = setTimeout(() => {
|
10631
|
-
|
10664
|
+
checkClose(event);
|
10632
10665
|
doubleTapTimer = null;
|
10633
10666
|
}, TAP_TIME);
|
10634
10667
|
}
|
10635
10668
|
} else {
|
10636
|
-
|
10669
|
+
checkClose(event);
|
10637
10670
|
}
|
10638
10671
|
} else if (deltaTime > LONG_PRESS_START_TIME) {
|
10639
10672
|
emit("longPress");
|
@@ -10768,6 +10801,7 @@ const imagePreviewProps = {
|
|
10768
10801
|
startPosition: makeNumericProp(0),
|
10769
10802
|
showIndicators: Boolean,
|
10770
10803
|
closeOnPopstate: truthProp,
|
10804
|
+
closeOnClickImage: truthProp,
|
10771
10805
|
closeOnClickOverlay: truthProp,
|
10772
10806
|
closeIconPosition: makeStringProp("top-right"),
|
10773
10807
|
teleport: [String, Object]
|
@@ -10860,6 +10894,7 @@ var stdin_default$M = defineComponent({
|
|
10860
10894
|
"rootHeight": state.rootHeight,
|
10861
10895
|
"disableZoom": state.disableZoom,
|
10862
10896
|
"doubleScale": props2.doubleScale,
|
10897
|
+
"closeOnClickImage": props2.closeOnClickImage,
|
10863
10898
|
"closeOnClickOverlay": props2.closeOnClickOverlay,
|
10864
10899
|
"onScale": emitScale,
|
10865
10900
|
"onClose": emitClose,
|
@@ -11669,6 +11704,7 @@ var stdin_default$H = defineComponent({
|
|
11669
11704
|
});
|
11670
11705
|
const NoticeBar = withInstall(stdin_default$H);
|
11671
11706
|
const [name$y, bem$x] = createNamespace("notify");
|
11707
|
+
const popupInheritProps = ["lockScroll", "position", "show", "teleport", "zIndex"];
|
11672
11708
|
const notifyProps = extend({}, popupSharedProps, {
|
11673
11709
|
type: makeStringProp("danger"),
|
11674
11710
|
color: String,
|
@@ -11687,20 +11723,16 @@ var stdin_default$G = defineComponent({
|
|
11687
11723
|
slots
|
11688
11724
|
}) {
|
11689
11725
|
const updateShow = (show) => emit("update:show", show);
|
11690
|
-
return () => createVNode(Popup, {
|
11691
|
-
"show": props2.show,
|
11726
|
+
return () => createVNode(Popup, mergeProps({
|
11692
11727
|
"class": [bem$x([props2.type]), props2.className],
|
11693
11728
|
"style": {
|
11694
11729
|
color: props2.color,
|
11695
11730
|
background: props2.background
|
11696
11731
|
},
|
11697
11732
|
"overlay": false,
|
11698
|
-
"zIndex": props2.zIndex,
|
11699
|
-
"position": props2.position,
|
11700
11733
|
"duration": 0.2,
|
11701
|
-
"lockScroll": props2.lockScroll,
|
11702
11734
|
"onUpdate:show": updateShow
|
11703
|
-
}, {
|
11735
|
+
}, pick(props2, popupInheritProps)), {
|
11704
11736
|
default: () => [slots.default ? slots.default() : props2.message]
|
11705
11737
|
});
|
11706
11738
|
}
|
@@ -14945,7 +14977,8 @@ var stdin_default$9 = defineComponent({
|
|
14945
14977
|
props: textEllipsisProps,
|
14946
14978
|
emits: ["clickAction"],
|
14947
14979
|
setup(props2, {
|
14948
|
-
emit
|
14980
|
+
emit,
|
14981
|
+
slots
|
14949
14982
|
}) {
|
14950
14983
|
const text = ref("");
|
14951
14984
|
const expanded = ref(false);
|
@@ -15053,10 +15086,15 @@ var stdin_default$9 = defineComponent({
|
|
15053
15086
|
toggle();
|
15054
15087
|
emit("clickAction", event);
|
15055
15088
|
};
|
15056
|
-
const renderAction = () =>
|
15057
|
-
|
15058
|
-
|
15059
|
-
|
15089
|
+
const renderAction = () => {
|
15090
|
+
const action = slots.action ? slots.action({
|
15091
|
+
expanded: expanded.value
|
15092
|
+
}) : actionText.value;
|
15093
|
+
return createVNode("span", {
|
15094
|
+
"class": bem$3("action"),
|
15095
|
+
"onClick": onClickAction
|
15096
|
+
}, [action]);
|
15097
|
+
};
|
15060
15098
|
onMounted(calcEllipsised);
|
15061
15099
|
watch([windowWidth, () => [props2.content, props2.rows, props2.position]], calcEllipsised);
|
15062
15100
|
useExpose({
|
@@ -16728,7 +16766,7 @@ const Lazyload = {
|
|
16728
16766
|
});
|
16729
16767
|
}
|
16730
16768
|
};
|
16731
|
-
const version = "4.8.
|
16769
|
+
const version = "4.8.3";
|
16732
16770
|
function install(app) {
|
16733
16771
|
const components = [
|
16734
16772
|
ActionBar,
|
package/lib/vant.js
CHANGED
@@ -506,6 +506,22 @@
|
|
506
506
|
return hidden || parentHidden;
|
507
507
|
}
|
508
508
|
const { width: windowWidth, height: windowHeight } = useWindowSize();
|
509
|
+
function isContainingBlock(el) {
|
510
|
+
const css = window.getComputedStyle(el);
|
511
|
+
return css.transform !== "none" || css.perspective !== "none" || ["transform", "perspective", "filter"].some(
|
512
|
+
(value) => (css.willChange || "").includes(value)
|
513
|
+
);
|
514
|
+
}
|
515
|
+
function getContainingBlock$1(el) {
|
516
|
+
let node = el.parentElement;
|
517
|
+
while (node) {
|
518
|
+
if (node && node.tagName !== "HTML" && node.tagName !== "BODY" && isContainingBlock(node)) {
|
519
|
+
return node;
|
520
|
+
}
|
521
|
+
node = node.parentElement;
|
522
|
+
}
|
523
|
+
return null;
|
524
|
+
}
|
509
525
|
function addUnit(value) {
|
510
526
|
if (isDef(value)) {
|
511
527
|
return isNumeric(value) ? `${value}px` : String(value);
|
@@ -2335,6 +2351,11 @@
|
|
2335
2351
|
});
|
2336
2352
|
return propRef;
|
2337
2353
|
};
|
2354
|
+
/**
|
2355
|
+
* @vue/shared v3.4.12
|
2356
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
2357
|
+
* @license MIT
|
2358
|
+
**/
|
2338
2359
|
const isArray = Array.isArray;
|
2339
2360
|
const isString = (val) => typeof val === "string";
|
2340
2361
|
const isObject = (val) => val !== null && typeof val === "object";
|
@@ -2362,9 +2383,7 @@
|
|
2362
2383
|
}
|
2363
2384
|
}
|
2364
2385
|
return res;
|
2365
|
-
} else if (isString(value)) {
|
2366
|
-
return value;
|
2367
|
-
} else if (isObject(value)) {
|
2386
|
+
} else if (isString(value) || isObject(value)) {
|
2368
2387
|
return value;
|
2369
2388
|
}
|
2370
2389
|
}
|
@@ -2580,7 +2599,7 @@
|
|
2580
2599
|
if (container) {
|
2581
2600
|
const containerRect = useRect(container);
|
2582
2601
|
const difference = containerRect.bottom - offset2.value - state.height;
|
2583
|
-
state.fixed = offset2.value
|
2602
|
+
state.fixed = offset2.value >= rootRect.top && containerRect.bottom > 0;
|
2584
2603
|
state.transform = difference < 0 ? difference : 0;
|
2585
2604
|
} else {
|
2586
2605
|
state.fixed = offset2.value > rootRect.top;
|
@@ -5007,7 +5026,7 @@
|
|
5007
5026
|
}
|
5008
5027
|
}
|
5009
5028
|
const [name$1k, bem$1g] = createNamespace("toast");
|
5010
|
-
const popupInheritProps = ["show", "overlay", "teleport", "transition", "overlayClass", "overlayStyle", "closeOnClickOverlay"];
|
5029
|
+
const popupInheritProps$1 = ["show", "overlay", "teleport", "transition", "overlayClass", "overlayStyle", "closeOnClickOverlay", "zIndex"];
|
5011
5030
|
const toastProps = {
|
5012
5031
|
icon: String,
|
5013
5032
|
show: Boolean,
|
@@ -5027,7 +5046,8 @@
|
|
5027
5046
|
overlayClass: unknownProp,
|
5028
5047
|
overlayStyle: Object,
|
5029
5048
|
closeOnClick: Boolean,
|
5030
|
-
closeOnClickOverlay: Boolean
|
5049
|
+
closeOnClickOverlay: Boolean,
|
5050
|
+
zIndex: numericProp
|
5031
5051
|
};
|
5032
5052
|
var stdin_default$1u = vue.defineComponent({
|
5033
5053
|
name: name$1k,
|
@@ -5117,7 +5137,7 @@
|
|
5117
5137
|
"onClick": onClick,
|
5118
5138
|
"onClosed": clearTimer,
|
5119
5139
|
"onUpdate:show": updateShow
|
5120
|
-
}, pick(props2, popupInheritProps)), {
|
5140
|
+
}, pick(props2, popupInheritProps$1)), {
|
5121
5141
|
default: () => [renderIcon(), renderMessage()]
|
5122
5142
|
});
|
5123
5143
|
}
|
@@ -9979,6 +9999,7 @@
|
|
9979
9999
|
duration: makeNumericProp(0.2),
|
9980
10000
|
direction: makeStringProp("down"),
|
9981
10001
|
activeColor: String,
|
10002
|
+
autoLocate: Boolean,
|
9982
10003
|
closeOnClickOutside: truthProp,
|
9983
10004
|
closeOnClickOverlay: truthProp,
|
9984
10005
|
swipeThreshold: numericProp
|
@@ -10134,6 +10155,7 @@
|
|
10134
10155
|
transition: true,
|
10135
10156
|
showWrapper: false
|
10136
10157
|
});
|
10158
|
+
const wrapperRef = vue.ref();
|
10137
10159
|
const {
|
10138
10160
|
parent,
|
10139
10161
|
index
|
@@ -10219,6 +10241,7 @@
|
|
10219
10241
|
offset: offset2
|
10220
10242
|
} = parent;
|
10221
10243
|
const {
|
10244
|
+
autoLocate,
|
10222
10245
|
zIndex,
|
10223
10246
|
overlay,
|
10224
10247
|
duration,
|
@@ -10226,12 +10249,20 @@
|
|
10226
10249
|
closeOnClickOverlay
|
10227
10250
|
} = parent.props;
|
10228
10251
|
const style = getZIndexStyle(zIndex);
|
10252
|
+
let offsetValue = offset2.value;
|
10253
|
+
if (autoLocate && wrapperRef.value) {
|
10254
|
+
const offsetParent = getContainingBlock$1(wrapperRef.value);
|
10255
|
+
if (offsetParent) {
|
10256
|
+
offsetValue -= useRect(offsetParent).top;
|
10257
|
+
}
|
10258
|
+
}
|
10229
10259
|
if (direction === "down") {
|
10230
|
-
style.top = `${
|
10260
|
+
style.top = `${offsetValue}px`;
|
10231
10261
|
} else {
|
10232
|
-
style.bottom = `${
|
10262
|
+
style.bottom = `${offsetValue}px`;
|
10233
10263
|
}
|
10234
10264
|
return vue.withDirectives(vue.createVNode("div", vue.mergeProps({
|
10265
|
+
"ref": wrapperRef,
|
10235
10266
|
"style": style,
|
10236
10267
|
"class": bem$K([direction]),
|
10237
10268
|
"onClick": onClickWrapper
|
@@ -10875,6 +10906,7 @@
|
|
10875
10906
|
rootHeight: makeRequiredProp(Number),
|
10876
10907
|
disableZoom: Boolean,
|
10877
10908
|
doubleScale: Boolean,
|
10909
|
+
closeOnClickImage: Boolean,
|
10878
10910
|
closeOnClickOverlay: Boolean
|
10879
10911
|
};
|
10880
10912
|
var stdin_default$N = vue.defineComponent({
|
@@ -11037,18 +11069,25 @@
|
|
11037
11069
|
}
|
11038
11070
|
}
|
11039
11071
|
};
|
11040
|
-
const
|
11072
|
+
const checkClose = (event) => {
|
11041
11073
|
var _a;
|
11074
|
+
const swipeItemEl = (_a = swipeItem.value) == null ? void 0 : _a.$el;
|
11075
|
+
const imageEl = swipeItemEl.firstElementChild;
|
11076
|
+
const isClickOverlay = event.target === swipeItemEl;
|
11077
|
+
const isClickImage = imageEl == null ? void 0 : imageEl.contains(event.target);
|
11078
|
+
if (!props2.closeOnClickImage && isClickImage)
|
11079
|
+
return;
|
11080
|
+
if (!props2.closeOnClickOverlay && isClickOverlay)
|
11081
|
+
return;
|
11082
|
+
emit("close");
|
11083
|
+
};
|
11084
|
+
const checkTap = (event) => {
|
11042
11085
|
if (fingerNum > 1) {
|
11043
11086
|
return;
|
11044
11087
|
}
|
11045
|
-
const {
|
11046
|
-
offsetX,
|
11047
|
-
offsetY
|
11048
|
-
} = touch;
|
11049
11088
|
const deltaTime = Date.now() - touchStartTime;
|
11050
11089
|
const TAP_TIME = 250;
|
11051
|
-
if (
|
11090
|
+
if (touch.isTap.value) {
|
11052
11091
|
if (deltaTime < TAP_TIME) {
|
11053
11092
|
if (props2.doubleScale) {
|
11054
11093
|
if (doubleTapTimer) {
|
@@ -11056,16 +11095,13 @@
|
|
11056
11095
|
doubleTapTimer = null;
|
11057
11096
|
toggleScale();
|
11058
11097
|
} else {
|
11059
|
-
if (!props2.closeOnClickOverlay && event.target === ((_a = swipeItem.value) == null ? void 0 : _a.$el)) {
|
11060
|
-
return;
|
11061
|
-
}
|
11062
11098
|
doubleTapTimer = setTimeout(() => {
|
11063
|
-
|
11099
|
+
checkClose(event);
|
11064
11100
|
doubleTapTimer = null;
|
11065
11101
|
}, TAP_TIME);
|
11066
11102
|
}
|
11067
11103
|
} else {
|
11068
|
-
|
11104
|
+
checkClose(event);
|
11069
11105
|
}
|
11070
11106
|
} else if (deltaTime > LONG_PRESS_START_TIME) {
|
11071
11107
|
emit("longPress");
|
@@ -11200,6 +11236,7 @@
|
|
11200
11236
|
startPosition: makeNumericProp(0),
|
11201
11237
|
showIndicators: Boolean,
|
11202
11238
|
closeOnPopstate: truthProp,
|
11239
|
+
closeOnClickImage: truthProp,
|
11203
11240
|
closeOnClickOverlay: truthProp,
|
11204
11241
|
closeIconPosition: makeStringProp("top-right"),
|
11205
11242
|
teleport: [String, Object]
|
@@ -11292,6 +11329,7 @@
|
|
11292
11329
|
"rootHeight": state.rootHeight,
|
11293
11330
|
"disableZoom": state.disableZoom,
|
11294
11331
|
"doubleScale": props2.doubleScale,
|
11332
|
+
"closeOnClickImage": props2.closeOnClickImage,
|
11295
11333
|
"closeOnClickOverlay": props2.closeOnClickOverlay,
|
11296
11334
|
"onScale": emitScale,
|
11297
11335
|
"onClose": emitClose,
|
@@ -12098,6 +12136,7 @@
|
|
12098
12136
|
});
|
12099
12137
|
const NoticeBar = withInstall(stdin_default$H);
|
12100
12138
|
const [name$y, bem$x] = createNamespace("notify");
|
12139
|
+
const popupInheritProps = ["lockScroll", "position", "show", "teleport", "zIndex"];
|
12101
12140
|
const notifyProps = extend({}, popupSharedProps, {
|
12102
12141
|
type: makeStringProp("danger"),
|
12103
12142
|
color: String,
|
@@ -12116,20 +12155,16 @@
|
|
12116
12155
|
slots
|
12117
12156
|
}) {
|
12118
12157
|
const updateShow = (show) => emit("update:show", show);
|
12119
|
-
return () => vue.createVNode(Popup, {
|
12120
|
-
"show": props2.show,
|
12158
|
+
return () => vue.createVNode(Popup, vue.mergeProps({
|
12121
12159
|
"class": [bem$x([props2.type]), props2.className],
|
12122
12160
|
"style": {
|
12123
12161
|
color: props2.color,
|
12124
12162
|
background: props2.background
|
12125
12163
|
},
|
12126
12164
|
"overlay": false,
|
12127
|
-
"zIndex": props2.zIndex,
|
12128
|
-
"position": props2.position,
|
12129
12165
|
"duration": 0.2,
|
12130
|
-
"lockScroll": props2.lockScroll,
|
12131
12166
|
"onUpdate:show": updateShow
|
12132
|
-
}, {
|
12167
|
+
}, pick(props2, popupInheritProps)), {
|
12133
12168
|
default: () => [slots.default ? slots.default() : props2.message]
|
12134
12169
|
});
|
12135
12170
|
}
|
@@ -16177,7 +16212,8 @@
|
|
16177
16212
|
props: textEllipsisProps,
|
16178
16213
|
emits: ["clickAction"],
|
16179
16214
|
setup(props2, {
|
16180
|
-
emit
|
16215
|
+
emit,
|
16216
|
+
slots
|
16181
16217
|
}) {
|
16182
16218
|
const text = vue.ref("");
|
16183
16219
|
const expanded = vue.ref(false);
|
@@ -16285,10 +16321,15 @@
|
|
16285
16321
|
toggle();
|
16286
16322
|
emit("clickAction", event);
|
16287
16323
|
};
|
16288
|
-
const renderAction = () =>
|
16289
|
-
|
16290
|
-
|
16291
|
-
|
16324
|
+
const renderAction = () => {
|
16325
|
+
const action = slots.action ? slots.action({
|
16326
|
+
expanded: expanded.value
|
16327
|
+
}) : actionText.value;
|
16328
|
+
return vue.createVNode("span", {
|
16329
|
+
"class": bem$3("action"),
|
16330
|
+
"onClick": onClickAction
|
16331
|
+
}, [action]);
|
16332
|
+
};
|
16292
16333
|
vue.onMounted(calcEllipsised);
|
16293
16334
|
vue.watch([windowWidth, () => [props2.content, props2.rows, props2.position]], calcEllipsised);
|
16294
16335
|
useExpose({
|
@@ -17940,7 +17981,7 @@
|
|
17940
17981
|
});
|
17941
17982
|
}
|
17942
17983
|
};
|
17943
|
-
const version = "4.8.
|
17984
|
+
const version = "4.8.3";
|
17944
17985
|
function install(app) {
|
17945
17986
|
const components = [
|
17946
17987
|
ActionBar,
|