vant 4.9.4 → 4.9.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/action-bar/ActionBar.d.ts +4 -4
- package/es/action-bar/ActionBar.mjs +1 -2
- package/es/action-bar/index.d.ts +4 -4
- package/es/action-bar-button/ActionBarButton.d.ts +7 -7
- package/es/action-bar-button/ActionBarButton.mjs +1 -2
- package/es/action-bar-button/index.d.ts +6 -6
- package/es/action-bar-icon/ActionBarIcon.d.ts +7 -7
- package/es/action-bar-icon/ActionBarIcon.mjs +1 -2
- package/es/action-bar-icon/index.d.ts +6 -6
- package/es/action-sheet/ActionSheet.d.ts +8 -8
- package/es/action-sheet/ActionSheet.mjs +1 -2
- package/es/action-sheet/index.d.ts +7 -7
- package/es/address-edit/AddressEdit.d.ts +5 -5
- package/es/address-edit/AddressEdit.mjs +1 -2
- package/es/address-edit/AddressEditDetail.d.ts +5 -5
- package/es/address-edit/AddressEditDetail.mjs +1 -2
- package/es/address-edit/index.d.ts +5 -5
- package/es/address-list/AddressList.d.ts +8 -8
- package/es/address-list/AddressList.mjs +1 -2
- package/es/address-list/AddressListItem.d.ts +5 -5
- package/es/address-list/AddressListItem.mjs +1 -2
- package/es/address-list/index.d.ts +7 -7
- package/es/area/Area.d.ts +5 -5
- package/es/area/Area.mjs +1 -2
- package/es/area/index.d.ts +5 -5
- package/es/back-top/BackTop.d.ts +12 -12
- package/es/back-top/BackTop.mjs +1 -2
- package/es/back-top/index.d.ts +9 -9
- package/es/badge/Badge.d.ts +4 -4
- package/es/badge/Badge.mjs +1 -2
- package/es/badge/index.d.ts +4 -4
- package/es/barrage/Barrage.d.ts +5 -5
- package/es/barrage/Barrage.mjs +1 -2
- package/es/barrage/index.d.ts +5 -5
- package/es/button/Button.d.ts +8 -8
- package/es/button/Button.mjs +1 -2
- package/es/button/index.d.ts +7 -7
- package/es/calendar/Calendar.d.ts +9 -9
- package/es/calendar/Calendar.mjs +6 -5
- package/es/calendar/CalendarDay.d.ts +5 -5
- package/es/calendar/CalendarDay.mjs +1 -2
- package/es/calendar/CalendarHeader.d.ts +5 -5
- package/es/calendar/CalendarHeader.mjs +1 -2
- package/es/calendar/CalendarMonth.d.ts +5 -5
- package/es/calendar/CalendarMonth.mjs +1 -2
- package/es/calendar/index.css +1 -1
- package/es/calendar/index.d.ts +7 -7
- package/es/calendar/types.d.ts +2 -2
- package/es/calendar/utils.d.ts +1 -1
- package/es/card/Card.d.ts +5 -5
- package/es/card/Card.mjs +1 -2
- package/es/card/index.d.ts +5 -5
- package/es/cascader/Cascader.d.ts +6 -6
- package/es/cascader/Cascader.mjs +2 -4
- package/es/cascader/index.d.ts +6 -6
- package/es/cell/Cell.d.ts +7 -7
- package/es/cell/Cell.mjs +1 -2
- package/es/cell/index.d.ts +6 -6
- package/es/cell-group/CellGroup.d.ts +4 -4
- package/es/cell-group/CellGroup.mjs +1 -2
- package/es/cell-group/index.d.ts +4 -4
- package/es/checkbox/Checkbox.d.ts +5 -5
- package/es/checkbox/Checkbox.mjs +3 -6
- package/es/checkbox/Checker.d.ts +7 -7
- package/es/checkbox/Checker.mjs +1 -2
- package/es/checkbox/index.d.ts +5 -5
- package/es/checkbox-group/CheckboxGroup.d.ts +5 -5
- package/es/checkbox-group/CheckboxGroup.mjs +1 -2
- package/es/checkbox-group/index.d.ts +5 -5
- package/es/circle/Circle.d.ts +5 -5
- package/es/circle/Circle.mjs +1 -2
- package/es/circle/index.d.ts +5 -5
- package/es/col/Col.d.ts +4 -4
- package/es/col/Col.mjs +1 -2
- package/es/col/index.d.ts +4 -4
- package/es/collapse/Collapse.d.ts +5 -5
- package/es/collapse/Collapse.mjs +1 -2
- package/es/collapse/index.d.ts +5 -5
- package/es/collapse-item/CollapseItem.d.ts +4 -4
- package/es/collapse-item/CollapseItem.mjs +1 -2
- package/es/collapse-item/index.d.ts +4 -4
- package/es/composables/use-height.d.ts +1 -1
- package/es/composables/use-lazy-render.d.ts +0 -1
- package/es/composables/use-placeholder.d.ts +0 -1
- package/es/composables/use-refs.d.ts +1 -1
- package/es/composables/use-route.d.ts +2 -1
- package/es/composables/use-sync-prop-ref.d.ts +1 -1
- package/es/composables/use-touch.d.ts +8 -8
- package/es/config-provider/ConfigProvider.d.ts +4 -4
- package/es/config-provider/ConfigProvider.mjs +1 -2
- package/es/config-provider/index.d.ts +4 -4
- package/es/contact-card/ContactCard.d.ts +5 -5
- package/es/contact-card/ContactCard.mjs +1 -2
- package/es/contact-card/index.d.ts +5 -5
- package/es/contact-edit/ContactEdit.d.ts +5 -5
- package/es/contact-edit/ContactEdit.mjs +1 -2
- package/es/contact-edit/index.d.ts +5 -5
- package/es/contact-list/ContactList.d.ts +4 -4
- package/es/contact-list/ContactList.mjs +1 -2
- package/es/contact-list/index.d.ts +4 -4
- package/es/count-down/CountDown.d.ts +5 -5
- package/es/count-down/CountDown.mjs +1 -2
- package/es/count-down/index.d.ts +5 -5
- package/es/coupon/Coupon.d.ts +4 -4
- package/es/coupon/Coupon.mjs +1 -2
- package/es/coupon/index.d.ts +4 -4
- package/es/coupon-cell/CouponCell.d.ts +4 -4
- package/es/coupon-cell/CouponCell.mjs +1 -2
- package/es/coupon-cell/index.d.ts +4 -4
- package/es/coupon-list/CouponList.d.ts +5 -5
- package/es/coupon-list/CouponList.mjs +1 -2
- package/es/coupon-list/index.d.ts +5 -5
- package/es/date-picker/DatePicker.d.ts +8 -8
- package/es/date-picker/DatePicker.mjs +1 -2
- package/es/date-picker/index.d.ts +7 -7
- package/es/date-picker/utils.d.ts +2 -1
- package/es/dialog/Dialog.d.ts +10 -10
- package/es/dialog/Dialog.mjs +1 -2
- package/es/dialog/function-call.mjs +1 -1
- package/es/dialog/index.d.ts +9 -9
- package/es/dialog/types.d.ts +0 -1
- package/es/divider/Divider.d.ts +4 -4
- package/es/divider/Divider.mjs +1 -2
- package/es/divider/index.d.ts +4 -4
- package/es/dropdown-item/DropdownItem.d.ts +10 -10
- package/es/dropdown-item/DropdownItem.mjs +1 -2
- package/es/dropdown-item/index.d.ts +8 -8
- package/es/dropdown-menu/DropdownMenu.d.ts +4 -4
- package/es/dropdown-menu/DropdownMenu.mjs +1 -2
- package/es/dropdown-menu/index.d.ts +4 -4
- package/es/empty/Empty.d.ts +4 -4
- package/es/empty/Empty.mjs +1 -2
- package/es/empty/index.d.ts +4 -4
- package/es/field/Field.d.ts +13 -5
- package/es/field/Field.mjs +9 -3
- package/es/field/index.d.ts +9 -5
- package/es/floating-bubble/FloatingBubble.d.ts +9 -9
- package/es/floating-bubble/FloatingBubble.mjs +9 -18
- package/es/floating-bubble/index.d.ts +7 -7
- package/es/floating-panel/FloatingPanel.d.ts +5 -5
- package/es/floating-panel/FloatingPanel.mjs +2 -4
- package/es/floating-panel/index.d.ts +5 -5
- package/es/form/Form.d.ts +5 -5
- package/es/form/Form.mjs +1 -2
- package/es/form/index.d.ts +5 -5
- package/es/grid/Grid.d.ts +4 -4
- package/es/grid/Grid.mjs +1 -2
- package/es/grid/index.d.ts +4 -4
- package/es/grid-item/GridItem.d.ts +7 -7
- package/es/grid-item/GridItem.mjs +1 -2
- package/es/grid-item/index.d.ts +6 -6
- package/es/highlight/Highlight.d.ts +4 -4
- package/es/highlight/Highlight.mjs +1 -2
- package/es/highlight/index.d.ts +4 -4
- package/es/icon/Icon.d.ts +4 -4
- package/es/icon/Icon.mjs +1 -2
- package/es/icon/index.d.ts +4 -4
- package/es/image/Image.d.ts +19 -18
- package/es/image/Image.mjs +1 -2
- package/es/image/index.d.ts +13 -13
- package/es/image-preview/ImagePreview.d.ts +9 -9
- package/es/image-preview/ImagePreview.mjs +1 -2
- package/es/image-preview/ImagePreviewItem.d.ts +5 -5
- package/es/image-preview/ImagePreviewItem.mjs +4 -8
- package/es/image-preview/function-call.mjs +1 -1
- package/es/image-preview/index.d.ts +7 -7
- package/es/index-anchor/IndexAnchor.d.ts +3 -3
- package/es/index-anchor/IndexAnchor.mjs +1 -2
- package/es/index-anchor/index.d.ts +3 -3
- package/es/index-bar/IndexBar.d.ts +9 -9
- package/es/index-bar/IndexBar.mjs +1 -2
- package/es/index-bar/index.d.ts +7 -7
- package/es/index.d.ts +1 -1
- package/es/index.mjs +1 -1
- package/es/lazyload/vue-lazyload/index.d.ts +1 -1
- package/es/lazyload/vue-lazyload/lazy-container.mjs +2 -4
- package/es/lazyload/vue-lazyload/lazy.mjs +8 -16
- package/es/lazyload/vue-lazyload/listener.mjs +2 -4
- package/es/lazyload/vue-lazyload/util.mjs +5 -10
- package/es/list/List.d.ts +5 -5
- package/es/list/List.mjs +1 -2
- package/es/list/index.d.ts +5 -5
- package/es/loading/Loading.d.ts +4 -4
- package/es/loading/Loading.mjs +1 -2
- package/es/loading/index.d.ts +4 -4
- package/es/locale/index.d.ts +1 -1
- package/es/nav-bar/NavBar.d.ts +5 -5
- package/es/nav-bar/NavBar.mjs +1 -2
- package/es/nav-bar/index.d.ts +5 -5
- package/es/notice-bar/NoticeBar.d.ts +5 -5
- package/es/notice-bar/NoticeBar.mjs +1 -2
- package/es/notice-bar/index.d.ts +5 -5
- package/es/notify/Notify.d.ts +8 -8
- package/es/notify/Notify.mjs +1 -2
- package/es/notify/function-call.mjs +1 -1
- package/es/notify/index.d.ts +7 -7
- package/es/number-keyboard/NumberKeyboard.d.ts +10 -10
- package/es/number-keyboard/NumberKeyboard.mjs +7 -3
- package/es/number-keyboard/NumberKeyboardKey.d.ts +5 -5
- package/es/number-keyboard/NumberKeyboardKey.mjs +1 -2
- package/es/number-keyboard/index.d.ts +8 -8
- package/es/overlay/Overlay.d.ts +8 -5
- package/es/overlay/Overlay.mjs +19 -9
- package/es/overlay/index.d.ts +6 -4
- package/es/pagination/Pagination.d.ts +5 -5
- package/es/pagination/Pagination.mjs +1 -2
- package/es/pagination/index.d.ts +5 -5
- package/es/password-input/PasswordInput.d.ts +5 -5
- package/es/password-input/PasswordInput.mjs +1 -2
- package/es/password-input/index.d.ts +5 -5
- package/es/picker/Picker.d.ts +5 -5
- package/es/picker/Picker.mjs +1 -2
- package/es/picker/PickerColumn.d.ts +5 -5
- package/es/picker/PickerColumn.mjs +2 -4
- package/es/picker/PickerToolbar.d.ts +4 -4
- package/es/picker/PickerToolbar.mjs +1 -2
- package/es/picker/index.d.ts +5 -5
- package/es/picker/utils.d.ts +1 -1
- package/es/picker/utils.mjs +2 -4
- package/es/picker-group/PickerGroup.d.ts +5 -5
- package/es/picker-group/PickerGroup.mjs +1 -2
- package/es/picker-group/index.d.ts +5 -5
- package/es/popover/Popover.d.ts +9 -9
- package/es/popover/Popover.mjs +1 -2
- package/es/popover/index.d.ts +7 -7
- package/es/popup/Popup.d.ts +9 -9
- package/es/popup/Popup.mjs +2 -4
- package/es/popup/index.d.ts +8 -8
- package/es/popup/shared.d.ts +2 -2
- package/es/progress/Progress.d.ts +4 -4
- package/es/progress/Progress.mjs +1 -2
- package/es/progress/index.d.ts +4 -4
- package/es/pull-refresh/PullRefresh.d.ts +5 -5
- package/es/pull-refresh/PullRefresh.mjs +1 -2
- package/es/pull-refresh/index.d.ts +5 -5
- package/es/radio/Radio.d.ts +5 -5
- package/es/radio/Radio.mjs +1 -2
- package/es/radio/index.d.ts +5 -5
- package/es/radio-group/RadioGroup.d.ts +8 -8
- package/es/radio-group/RadioGroup.mjs +1 -2
- package/es/radio-group/index.d.ts +7 -7
- package/es/rate/Rate.d.ts +5 -5
- package/es/rate/Rate.mjs +2 -4
- package/es/rate/index.d.ts +5 -5
- package/es/rolling-text/RollingText.d.ts +4 -4
- package/es/rolling-text/RollingText.mjs +4 -8
- package/es/rolling-text/RollingTextItem.d.ts +4 -4
- package/es/rolling-text/RollingTextItem.mjs +1 -2
- package/es/rolling-text/index.d.ts +4 -4
- package/es/row/Row.d.ts +4 -4
- package/es/row/Row.mjs +2 -4
- package/es/row/index.d.ts +4 -4
- package/es/search/Search.d.ts +11 -5
- package/es/search/Search.mjs +1 -2
- package/es/search/index.d.ts +9 -5
- package/es/share-sheet/ShareSheet.d.ts +8 -8
- package/es/share-sheet/ShareSheet.mjs +1 -2
- package/es/share-sheet/index.d.ts +7 -7
- package/es/sidebar/Sidebar.d.ts +5 -5
- package/es/sidebar/Sidebar.mjs +1 -2
- package/es/sidebar/index.d.ts +5 -5
- package/es/sidebar-item/SidebarItem.d.ts +8 -8
- package/es/sidebar-item/SidebarItem.mjs +1 -2
- package/es/sidebar-item/index.d.ts +7 -7
- package/es/signature/Signature.d.ts +5 -5
- package/es/signature/Signature.mjs +2 -4
- package/es/signature/index.d.ts +5 -5
- package/es/skeleton/Skeleton.d.ts +5 -5
- package/es/skeleton/Skeleton.mjs +1 -2
- package/es/skeleton/index.d.ts +5 -5
- package/es/skeleton-avatar/SkeletonAvatar.d.ts +4 -4
- package/es/skeleton-avatar/SkeletonAvatar.mjs +1 -2
- package/es/skeleton-avatar/index.d.ts +4 -4
- package/es/skeleton-image/SkeletonImage.d.ts +4 -4
- package/es/skeleton-image/SkeletonImage.mjs +1 -2
- package/es/skeleton-image/index.d.ts +4 -4
- package/es/skeleton-paragraph/SkeletonParagraph.d.ts +4 -4
- package/es/skeleton-paragraph/SkeletonParagraph.mjs +1 -2
- package/es/skeleton-paragraph/index.d.ts +4 -4
- package/es/skeleton-title/SkeletonTitle.d.ts +4 -4
- package/es/skeleton-title/SkeletonTitle.mjs +1 -2
- package/es/skeleton-title/index.d.ts +4 -4
- package/es/slider/Slider.d.ts +6 -6
- package/es/slider/Slider.mjs +1 -2
- package/es/slider/index.d.ts +6 -6
- package/es/space/Space.d.ts +10 -10
- package/es/space/Space.mjs +1 -2
- package/es/space/index.d.ts +8 -8
- package/es/step/Step.d.ts +1 -1
- package/es/step/Step.mjs +1 -2
- package/es/step/index.d.ts +1 -1
- package/es/stepper/Stepper.d.ts +5 -5
- package/es/stepper/Stepper.mjs +1 -2
- package/es/stepper/index.d.ts +5 -5
- package/es/steps/Steps.d.ts +5 -5
- package/es/steps/Steps.mjs +1 -2
- package/es/steps/index.d.ts +5 -5
- package/es/sticky/Sticky.d.ts +5 -5
- package/es/sticky/Sticky.mjs +1 -2
- package/es/sticky/index.d.ts +5 -5
- package/es/submit-bar/SubmitBar.d.ts +5 -5
- package/es/submit-bar/SubmitBar.mjs +1 -2
- package/es/submit-bar/index.d.ts +5 -5
- package/es/swipe/Swipe.d.ts +5 -5
- package/es/swipe/Swipe.mjs +2 -4
- package/es/swipe/index.d.ts +5 -5
- package/es/swipe-cell/SwipeCell.d.ts +6 -6
- package/es/swipe-cell/SwipeCell.mjs +2 -4
- package/es/swipe-cell/index.d.ts +6 -6
- package/es/swipe-item/SwipeItem.d.ts +1 -1
- package/es/swipe-item/SwipeItem.mjs +1 -2
- package/es/swipe-item/index.d.ts +1 -1
- package/es/switch/Switch.d.ts +5 -5
- package/es/switch/Switch.mjs +1 -2
- package/es/switch/index.d.ts +5 -5
- package/es/tab/Tab.d.ts +7 -7
- package/es/tab/Tab.mjs +1 -2
- package/es/tab/TabTitle.d.ts +4 -4
- package/es/tab/TabTitle.mjs +1 -2
- package/es/tab/index.d.ts +6 -6
- package/es/tabbar/Tabbar.d.ts +5 -5
- package/es/tabbar/Tabbar.mjs +1 -2
- package/es/tabbar/index.d.ts +5 -5
- package/es/tabbar-item/TabbarItem.d.ts +8 -8
- package/es/tabbar-item/TabbarItem.mjs +1 -2
- package/es/tabbar-item/index.d.ts +7 -7
- package/es/tabs/Tabs.d.ts +5 -5
- package/es/tabs/Tabs.mjs +3 -6
- package/es/tabs/TabsContent.d.ts +5 -5
- package/es/tabs/TabsContent.mjs +1 -2
- package/es/tabs/index.d.ts +5 -5
- package/es/tag/Tag.d.ts +5 -5
- package/es/tag/Tag.mjs +1 -2
- package/es/tag/index.d.ts +5 -5
- package/es/text-ellipsis/TextEllipsis.d.ts +5 -5
- package/es/text-ellipsis/TextEllipsis.mjs +3 -6
- package/es/text-ellipsis/index.d.ts +5 -5
- package/es/time-picker/TimePicker.d.ts +12 -11
- package/es/time-picker/TimePicker.mjs +1 -2
- package/es/time-picker/index.d.ts +9 -9
- package/es/toast/Toast.d.ts +9 -9
- package/es/toast/Toast.mjs +1 -2
- package/es/toast/function-call.mjs +1 -2
- package/es/toast/index.d.ts +7 -7
- package/es/tree-select/TreeSelect.d.ts +5 -5
- package/es/tree-select/TreeSelect.mjs +1 -2
- package/es/tree-select/index.d.ts +5 -5
- package/es/uploader/Uploader.d.ts +5 -5
- package/es/uploader/Uploader.mjs +1 -2
- package/es/uploader/UploaderPreviewItem.d.ts +8 -7
- package/es/uploader/UploaderPreviewItem.mjs +1 -2
- package/es/uploader/index.d.ts +5 -5
- package/es/uploader/utils.d.ts +1 -1
- package/es/utils/basic.d.ts +2 -2
- package/es/utils/create.d.ts +1 -1
- package/es/utils/dom.d.ts +1 -1
- package/es/utils/mount-component.d.ts +1 -1
- package/es/watermark/Watermark.d.ts +4 -4
- package/es/watermark/Watermark.mjs +1 -2
- package/es/watermark/index.d.ts +4 -4
- package/lib/action-bar/ActionBar.d.ts +4 -4
- package/lib/action-bar/ActionBar.js +2 -3
- package/lib/action-bar/index.d.ts +4 -4
- package/lib/action-bar-button/ActionBarButton.d.ts +7 -7
- package/lib/action-bar-button/ActionBarButton.js +3 -4
- package/lib/action-bar-button/index.d.ts +6 -6
- package/lib/action-bar-icon/ActionBarIcon.d.ts +7 -7
- package/lib/action-bar-icon/ActionBarIcon.js +1 -2
- package/lib/action-bar-icon/index.d.ts +6 -6
- package/lib/action-sheet/ActionSheet.d.ts +8 -8
- package/lib/action-sheet/ActionSheet.js +2 -3
- package/lib/action-sheet/index.d.ts +7 -7
- package/lib/address-edit/AddressEdit.d.ts +5 -5
- package/lib/address-edit/AddressEdit.js +11 -12
- package/lib/address-edit/AddressEditDetail.d.ts +5 -5
- package/lib/address-edit/AddressEditDetail.js +2 -3
- package/lib/address-edit/index.d.ts +5 -5
- package/lib/address-list/AddressList.d.ts +8 -8
- package/lib/address-list/AddressList.js +2 -3
- package/lib/address-list/AddressListItem.d.ts +5 -5
- package/lib/address-list/AddressListItem.js +1 -2
- package/lib/address-list/index.d.ts +7 -7
- package/lib/area/Area.d.ts +5 -5
- package/lib/area/Area.js +6 -7
- package/lib/area/index.d.ts +5 -5
- package/lib/back-top/BackTop.d.ts +12 -12
- package/lib/back-top/BackTop.js +11 -12
- package/lib/back-top/index.d.ts +9 -9
- package/lib/badge/Badge.d.ts +4 -4
- package/lib/badge/Badge.js +2 -3
- package/lib/badge/index.d.ts +4 -4
- package/lib/barrage/Barrage.d.ts +5 -5
- package/lib/barrage/Barrage.js +9 -10
- package/lib/barrage/index.d.ts +5 -5
- package/lib/button/Button.d.ts +8 -8
- package/lib/button/Button.js +1 -2
- package/lib/button/index.d.ts +7 -7
- package/lib/calendar/Calendar.d.ts +9 -9
- package/lib/calendar/Calendar.js +19 -18
- package/lib/calendar/CalendarDay.d.ts +5 -5
- package/lib/calendar/CalendarDay.js +2 -3
- package/lib/calendar/CalendarHeader.d.ts +5 -5
- package/lib/calendar/CalendarHeader.js +5 -6
- package/lib/calendar/CalendarMonth.d.ts +5 -5
- package/lib/calendar/CalendarMonth.js +11 -12
- package/lib/calendar/index.css +1 -1
- package/lib/calendar/index.d.ts +7 -7
- package/lib/calendar/types.d.ts +2 -2
- package/lib/calendar/utils.d.ts +1 -1
- package/lib/card/Card.d.ts +5 -5
- package/lib/card/Card.js +1 -2
- package/lib/card/index.d.ts +5 -5
- package/lib/cascader/Cascader.d.ts +6 -6
- package/lib/cascader/Cascader.js +9 -11
- package/lib/cascader/index.d.ts +6 -6
- package/lib/cell/Cell.d.ts +7 -7
- package/lib/cell/Cell.js +1 -2
- package/lib/cell/index.d.ts +6 -6
- package/lib/cell-group/CellGroup.d.ts +4 -4
- package/lib/cell-group/CellGroup.js +1 -2
- package/lib/cell-group/index.d.ts +4 -4
- package/lib/checkbox/Checkbox.d.ts +5 -5
- package/lib/checkbox/Checkbox.js +5 -8
- package/lib/checkbox/Checker.d.ts +7 -7
- package/lib/checkbox/Checker.js +6 -7
- package/lib/checkbox/index.d.ts +5 -5
- package/lib/checkbox-group/CheckboxGroup.d.ts +5 -5
- package/lib/checkbox-group/CheckboxGroup.js +2 -3
- package/lib/checkbox-group/index.d.ts +5 -5
- package/lib/circle/Circle.d.ts +5 -5
- package/lib/circle/Circle.js +5 -6
- package/lib/circle/index.d.ts +5 -5
- package/lib/col/Col.d.ts +4 -4
- package/lib/col/Col.js +2 -3
- package/lib/col/index.d.ts +4 -4
- package/lib/collapse/Collapse.d.ts +5 -5
- package/lib/collapse/Collapse.js +1 -2
- package/lib/collapse/index.d.ts +5 -5
- package/lib/collapse-item/CollapseItem.d.ts +4 -4
- package/lib/collapse-item/CollapseItem.js +8 -9
- package/lib/collapse-item/index.d.ts +4 -4
- package/lib/composables/use-height.d.ts +1 -1
- package/lib/composables/use-lazy-render.d.ts +0 -1
- package/lib/composables/use-placeholder.d.ts +0 -1
- package/lib/composables/use-refs.d.ts +1 -1
- package/lib/composables/use-route.d.ts +2 -1
- package/lib/composables/use-sync-prop-ref.d.ts +1 -1
- package/lib/composables/use-touch.d.ts +8 -8
- package/lib/config-provider/ConfigProvider.d.ts +4 -4
- package/lib/config-provider/ConfigProvider.js +10 -11
- package/lib/config-provider/index.d.ts +4 -4
- package/lib/contact-card/ContactCard.d.ts +5 -5
- package/lib/contact-card/ContactCard.js +1 -2
- package/lib/contact-card/index.d.ts +5 -5
- package/lib/contact-edit/ContactEdit.d.ts +5 -5
- package/lib/contact-edit/ContactEdit.js +3 -4
- package/lib/contact-edit/index.d.ts +5 -5
- package/lib/contact-list/ContactList.d.ts +4 -4
- package/lib/contact-list/ContactList.js +1 -2
- package/lib/contact-list/index.d.ts +4 -4
- package/lib/count-down/CountDown.d.ts +5 -5
- package/lib/count-down/CountDown.js +3 -4
- package/lib/count-down/index.d.ts +5 -5
- package/lib/coupon/Coupon.d.ts +4 -4
- package/lib/coupon/Coupon.js +4 -5
- package/lib/coupon/index.d.ts +4 -4
- package/lib/coupon-cell/CouponCell.d.ts +4 -4
- package/lib/coupon-cell/CouponCell.js +1 -2
- package/lib/coupon-cell/index.d.ts +4 -4
- package/lib/coupon-list/CouponList.d.ts +5 -5
- package/lib/coupon-list/CouponList.js +13 -14
- package/lib/coupon-list/index.d.ts +5 -5
- package/lib/date-picker/DatePicker.d.ts +8 -8
- package/lib/date-picker/DatePicker.js +7 -8
- package/lib/date-picker/index.d.ts +7 -7
- package/lib/date-picker/utils.d.ts +2 -1
- package/lib/dialog/Dialog.d.ts +10 -10
- package/lib/dialog/Dialog.js +4 -5
- package/lib/dialog/index.d.ts +9 -9
- package/lib/dialog/types.d.ts +0 -1
- package/lib/divider/Divider.d.ts +4 -4
- package/lib/divider/Divider.js +1 -2
- package/lib/divider/index.d.ts +4 -4
- package/lib/dropdown-item/DropdownItem.d.ts +10 -10
- package/lib/dropdown-item/DropdownItem.js +4 -5
- package/lib/dropdown-item/index.d.ts +8 -8
- package/lib/dropdown-menu/DropdownMenu.d.ts +4 -4
- package/lib/dropdown-menu/DropdownMenu.js +7 -8
- package/lib/dropdown-menu/index.d.ts +4 -4
- package/lib/empty/Empty.d.ts +4 -4
- package/lib/empty/Empty.js +1 -2
- package/lib/empty/index.d.ts +4 -4
- package/lib/field/Field.d.ts +13 -5
- package/lib/field/Field.js +25 -19
- package/lib/field/index.d.ts +9 -5
- package/lib/floating-bubble/FloatingBubble.d.ts +9 -9
- package/lib/floating-bubble/FloatingBubble.js +22 -31
- package/lib/floating-bubble/index.d.ts +7 -7
- package/lib/floating-panel/FloatingPanel.d.ts +5 -5
- package/lib/floating-panel/FloatingPanel.js +9 -11
- package/lib/floating-panel/index.d.ts +5 -5
- package/lib/form/Form.d.ts +5 -5
- package/lib/form/Form.js +1 -2
- package/lib/form/index.d.ts +5 -5
- package/lib/grid/Grid.d.ts +4 -4
- package/lib/grid/Grid.js +1 -2
- package/lib/grid/index.d.ts +4 -4
- package/lib/grid-item/GridItem.d.ts +7 -7
- package/lib/grid-item/GridItem.js +3 -4
- package/lib/grid-item/index.d.ts +6 -6
- package/lib/highlight/Highlight.d.ts +4 -4
- package/lib/highlight/Highlight.js +2 -3
- package/lib/highlight/index.d.ts +4 -4
- package/lib/icon/Icon.d.ts +4 -4
- package/lib/icon/Icon.js +3 -4
- package/lib/icon/index.d.ts +4 -4
- package/lib/image/Image.d.ts +19 -18
- package/lib/image/Image.js +11 -12
- package/lib/image/index.d.ts +13 -13
- package/lib/image-preview/ImagePreview.d.ts +9 -9
- package/lib/image-preview/ImagePreview.js +9 -10
- package/lib/image-preview/ImagePreviewItem.d.ts +5 -5
- package/lib/image-preview/ImagePreviewItem.js +16 -20
- package/lib/image-preview/index.d.ts +7 -7
- package/lib/index-anchor/IndexAnchor.d.ts +3 -3
- package/lib/index-anchor/IndexAnchor.js +4 -5
- package/lib/index-anchor/index.d.ts +3 -3
- package/lib/index-bar/IndexBar.d.ts +9 -9
- package/lib/index-bar/IndexBar.js +11 -12
- package/lib/index-bar/index.d.ts +7 -7
- package/lib/index.css +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/lazyload/vue-lazyload/index.d.ts +1 -1
- package/lib/lazyload/vue-lazyload/lazy-container.js +2 -4
- package/lib/lazyload/vue-lazyload/lazy.js +8 -16
- package/lib/lazyload/vue-lazyload/listener.js +2 -4
- package/lib/lazyload/vue-lazyload/util.js +5 -10
- package/lib/list/List.d.ts +5 -5
- package/lib/list/List.js +10 -11
- package/lib/list/index.d.ts +5 -5
- package/lib/loading/Loading.d.ts +4 -4
- package/lib/loading/Loading.js +2 -3
- package/lib/loading/index.d.ts +4 -4
- package/lib/locale/index.d.ts +1 -1
- package/lib/nav-bar/NavBar.d.ts +5 -5
- package/lib/nav-bar/NavBar.js +2 -3
- package/lib/nav-bar/index.d.ts +5 -5
- package/lib/notice-bar/NoticeBar.d.ts +5 -5
- package/lib/notice-bar/NoticeBar.js +5 -6
- package/lib/notice-bar/index.d.ts +5 -5
- package/lib/notify/Notify.d.ts +8 -8
- package/lib/notify/Notify.js +1 -2
- package/lib/notify/index.d.ts +7 -7
- package/lib/number-keyboard/NumberKeyboard.d.ts +10 -10
- package/lib/number-keyboard/NumberKeyboard.js +12 -8
- package/lib/number-keyboard/NumberKeyboardKey.d.ts +5 -5
- package/lib/number-keyboard/NumberKeyboardKey.js +2 -3
- package/lib/number-keyboard/index.d.ts +8 -8
- package/lib/overlay/Overlay.d.ts +8 -5
- package/lib/overlay/Overlay.js +20 -10
- package/lib/overlay/index.d.ts +6 -4
- package/lib/pagination/Pagination.d.ts +5 -5
- package/lib/pagination/Pagination.js +4 -5
- package/lib/pagination/index.d.ts +5 -5
- package/lib/password-input/PasswordInput.d.ts +5 -5
- package/lib/password-input/PasswordInput.js +1 -2
- package/lib/password-input/index.d.ts +5 -5
- package/lib/picker/Picker.d.ts +5 -5
- package/lib/picker/Picker.js +15 -16
- package/lib/picker/PickerColumn.d.ts +5 -5
- package/lib/picker/PickerColumn.js +8 -10
- package/lib/picker/PickerToolbar.d.ts +4 -4
- package/lib/picker/PickerToolbar.js +1 -2
- package/lib/picker/index.d.ts +5 -5
- package/lib/picker/utils.d.ts +1 -1
- package/lib/picker/utils.js +2 -4
- package/lib/picker-group/PickerGroup.d.ts +5 -5
- package/lib/picker-group/PickerGroup.js +3 -4
- package/lib/picker-group/index.d.ts +5 -5
- package/lib/popover/Popover.d.ts +9 -9
- package/lib/popover/Popover.js +9 -10
- package/lib/popover/index.d.ts +7 -7
- package/lib/popup/Popup.d.ts +9 -9
- package/lib/popup/Popup.js +13 -15
- package/lib/popup/index.d.ts +8 -8
- package/lib/popup/shared.d.ts +2 -2
- package/lib/progress/Progress.d.ts +4 -4
- package/lib/progress/Progress.js +2 -3
- package/lib/progress/index.d.ts +4 -4
- package/lib/pull-refresh/PullRefresh.d.ts +5 -5
- package/lib/pull-refresh/PullRefresh.js +6 -7
- package/lib/pull-refresh/index.d.ts +5 -5
- package/lib/radio/Radio.d.ts +5 -5
- package/lib/radio/Radio.js +1 -2
- package/lib/radio/index.d.ts +5 -5
- package/lib/radio-group/RadioGroup.d.ts +8 -8
- package/lib/radio-group/RadioGroup.js +2 -3
- package/lib/radio-group/index.d.ts +7 -7
- package/lib/rate/Rate.d.ts +5 -5
- package/lib/rate/Rate.js +6 -8
- package/lib/rate/index.d.ts +5 -5
- package/lib/rolling-text/RollingText.d.ts +4 -4
- package/lib/rolling-text/RollingText.js +10 -14
- package/lib/rolling-text/RollingTextItem.d.ts +4 -4
- package/lib/rolling-text/RollingTextItem.js +5 -6
- package/lib/rolling-text/index.d.ts +4 -4
- package/lib/row/Row.d.ts +4 -4
- package/lib/row/Row.js +5 -7
- package/lib/row/index.d.ts +4 -4
- package/lib/search/Search.d.ts +11 -5
- package/lib/search/Search.js +2 -3
- package/lib/search/index.d.ts +9 -5
- package/lib/share-sheet/ShareSheet.d.ts +8 -8
- package/lib/share-sheet/ShareSheet.js +1 -2
- package/lib/share-sheet/index.d.ts +7 -7
- package/lib/sidebar/Sidebar.d.ts +5 -5
- package/lib/sidebar/Sidebar.js +1 -2
- package/lib/sidebar/index.d.ts +5 -5
- package/lib/sidebar-item/SidebarItem.d.ts +8 -8
- package/lib/sidebar-item/SidebarItem.js +1 -2
- package/lib/sidebar-item/index.d.ts +7 -7
- package/lib/signature/Signature.d.ts +5 -5
- package/lib/signature/Signature.js +7 -9
- package/lib/signature/index.d.ts +5 -5
- package/lib/skeleton/Skeleton.d.ts +5 -5
- package/lib/skeleton/Skeleton.js +1 -2
- package/lib/skeleton/index.d.ts +5 -5
- package/lib/skeleton-avatar/SkeletonAvatar.d.ts +4 -4
- package/lib/skeleton-avatar/SkeletonAvatar.js +1 -2
- package/lib/skeleton-avatar/index.d.ts +4 -4
- package/lib/skeleton-image/SkeletonImage.d.ts +4 -4
- package/lib/skeleton-image/SkeletonImage.js +1 -2
- package/lib/skeleton-image/index.d.ts +4 -4
- package/lib/skeleton-paragraph/SkeletonParagraph.d.ts +4 -4
- package/lib/skeleton-paragraph/SkeletonParagraph.js +1 -2
- package/lib/skeleton-paragraph/index.d.ts +4 -4
- package/lib/skeleton-title/SkeletonTitle.d.ts +4 -4
- package/lib/skeleton-title/SkeletonTitle.js +1 -2
- package/lib/skeleton-title/index.d.ts +4 -4
- package/lib/slider/Slider.d.ts +6 -6
- package/lib/slider/Slider.js +7 -8
- package/lib/slider/index.d.ts +6 -6
- package/lib/space/Space.d.ts +10 -10
- package/lib/space/Space.js +4 -5
- package/lib/space/index.d.ts +8 -8
- package/lib/step/Step.d.ts +1 -1
- package/lib/step/Step.js +3 -4
- package/lib/step/index.d.ts +1 -1
- package/lib/stepper/Stepper.d.ts +5 -5
- package/lib/stepper/Stepper.js +11 -12
- package/lib/stepper/index.d.ts +5 -5
- package/lib/steps/Steps.d.ts +5 -5
- package/lib/steps/Steps.js +1 -2
- package/lib/steps/index.d.ts +5 -5
- package/lib/sticky/Sticky.d.ts +5 -5
- package/lib/sticky/Sticky.js +10 -11
- package/lib/sticky/index.d.ts +5 -5
- package/lib/submit-bar/SubmitBar.d.ts +5 -5
- package/lib/submit-bar/SubmitBar.js +2 -3
- package/lib/submit-bar/index.d.ts +5 -5
- package/lib/swipe/Swipe.d.ts +5 -5
- package/lib/swipe/Swipe.js +24 -26
- package/lib/swipe/index.d.ts +5 -5
- package/lib/swipe-cell/SwipeCell.d.ts +6 -6
- package/lib/swipe-cell/SwipeCell.js +8 -10
- package/lib/swipe-cell/index.d.ts +6 -6
- package/lib/swipe-item/SwipeItem.d.ts +1 -1
- package/lib/swipe-item/SwipeItem.js +6 -7
- package/lib/swipe-item/index.d.ts +1 -1
- package/lib/switch/Switch.d.ts +5 -5
- package/lib/switch/Switch.js +1 -2
- package/lib/switch/index.d.ts +5 -5
- package/lib/tab/Tab.d.ts +7 -7
- package/lib/tab/Tab.js +12 -13
- package/lib/tab/TabTitle.d.ts +4 -4
- package/lib/tab/TabTitle.js +2 -3
- package/lib/tab/index.d.ts +6 -6
- package/lib/tabbar/Tabbar.d.ts +5 -5
- package/lib/tabbar/Tabbar.js +2 -3
- package/lib/tabbar/index.d.ts +5 -5
- package/lib/tabbar-item/TabbarItem.d.ts +8 -8
- package/lib/tabbar-item/TabbarItem.js +3 -4
- package/lib/tabbar-item/index.d.ts +7 -7
- package/lib/tabs/Tabs.d.ts +5 -5
- package/lib/tabs/Tabs.js +23 -26
- package/lib/tabs/TabsContent.d.ts +5 -5
- package/lib/tabs/TabsContent.js +4 -5
- package/lib/tabs/index.d.ts +5 -5
- package/lib/tag/Tag.d.ts +5 -5
- package/lib/tag/Tag.js +2 -3
- package/lib/tag/index.d.ts +5 -5
- package/lib/text-ellipsis/TextEllipsis.d.ts +5 -5
- package/lib/text-ellipsis/TextEllipsis.js +13 -16
- package/lib/text-ellipsis/index.d.ts +5 -5
- package/lib/time-picker/TimePicker.d.ts +12 -11
- package/lib/time-picker/TimePicker.js +6 -7
- package/lib/time-picker/index.d.ts +9 -9
- package/lib/toast/Toast.d.ts +9 -9
- package/lib/toast/Toast.js +5 -6
- package/lib/toast/function-call.js +3 -4
- package/lib/toast/index.d.ts +7 -7
- package/lib/tree-select/TreeSelect.d.ts +5 -5
- package/lib/tree-select/TreeSelect.js +1 -2
- package/lib/tree-select/index.d.ts +5 -5
- package/lib/uploader/Uploader.d.ts +5 -5
- package/lib/uploader/Uploader.js +7 -8
- package/lib/uploader/UploaderPreviewItem.d.ts +8 -7
- package/lib/uploader/UploaderPreviewItem.js +1 -2
- package/lib/uploader/index.d.ts +5 -5
- package/lib/uploader/utils.d.ts +1 -1
- package/lib/utils/basic.d.ts +2 -2
- package/lib/utils/create.d.ts +1 -1
- package/lib/utils/dom.d.ts +1 -1
- package/lib/utils/mount-component.d.ts +1 -1
- package/lib/vant.cjs.js +85 -108
- package/lib/vant.es.js +86 -109
- package/lib/vant.js +86 -109
- package/lib/vant.min.js +3 -3
- package/lib/watermark/Watermark.d.ts +4 -4
- package/lib/watermark/Watermark.js +8 -9
- package/lib/watermark/index.d.ts +4 -4
- package/lib/web-types.json +1 -1
- package/package.json +14 -14
package/lib/vant.js
CHANGED
@@ -1668,7 +1668,8 @@
|
|
1668
1668
|
className: unknownProp,
|
1669
1669
|
lockScroll: truthProp,
|
1670
1670
|
lazyRender: truthProp,
|
1671
|
-
customStyle: Object
|
1671
|
+
customStyle: Object,
|
1672
|
+
teleport: [String, Object]
|
1672
1673
|
};
|
1673
1674
|
var stdin_default$1L = vue.defineComponent({
|
1674
1675
|
name: name$1C,
|
@@ -1698,12 +1699,22 @@
|
|
1698
1699
|
useEventListener("touchmove", onTouchMove, {
|
1699
1700
|
target: root
|
1700
1701
|
});
|
1701
|
-
return () =>
|
1702
|
-
|
1703
|
-
|
1704
|
-
|
1705
|
-
|
1706
|
-
|
1702
|
+
return () => {
|
1703
|
+
const Content = vue.createVNode(vue.Transition, {
|
1704
|
+
"name": "van-fade",
|
1705
|
+
"appear": true
|
1706
|
+
}, {
|
1707
|
+
default: renderOverlay
|
1708
|
+
});
|
1709
|
+
if (props2.teleport) {
|
1710
|
+
return vue.createVNode(vue.Teleport, {
|
1711
|
+
"to": props2.teleport
|
1712
|
+
}, {
|
1713
|
+
default: () => [Content]
|
1714
|
+
});
|
1715
|
+
}
|
1716
|
+
return Content;
|
1717
|
+
};
|
1707
1718
|
}
|
1708
1719
|
});
|
1709
1720
|
const Overlay = withInstall(stdin_default$1L);
|
@@ -1804,8 +1815,7 @@
|
|
1804
1815
|
};
|
1805
1816
|
let timer2;
|
1806
1817
|
const onOpened = () => {
|
1807
|
-
if (timer2)
|
1808
|
-
clearTimeout(timer2);
|
1818
|
+
if (timer2) clearTimeout(timer2);
|
1809
1819
|
timer2 = setTimeout(() => {
|
1810
1820
|
emit("opened");
|
1811
1821
|
});
|
@@ -2054,12 +2064,10 @@
|
|
2054
2064
|
function findIndexOfEnabledOption(options, index) {
|
2055
2065
|
index = clamp(index, 0, options.length);
|
2056
2066
|
for (let i = index; i < options.length; i++) {
|
2057
|
-
if (!options[i].disabled)
|
2058
|
-
return i;
|
2067
|
+
if (!options[i].disabled) return i;
|
2059
2068
|
}
|
2060
2069
|
for (let i = index - 1; i >= 0; i--) {
|
2061
|
-
if (!options[i].disabled)
|
2062
|
-
return i;
|
2070
|
+
if (!options[i].disabled) return i;
|
2063
2071
|
}
|
2064
2072
|
return 0;
|
2065
2073
|
}
|
@@ -2272,8 +2280,7 @@
|
|
2272
2280
|
const index = moving ? Math.floor(-currentOffset.value / props2.optionHeight) : props2.options.findIndex((option) => option[props2.fields.value] === props2.value);
|
2273
2281
|
const enabledIndex = findIndexOfEnabledOption(props2.options, index);
|
2274
2282
|
const offset2 = -enabledIndex * props2.optionHeight;
|
2275
|
-
if (moving && enabledIndex < index)
|
2276
|
-
stopMomentum();
|
2283
|
+
if (moving && enabledIndex < index) stopMomentum();
|
2277
2284
|
currentOffset.value = offset2;
|
2278
2285
|
});
|
2279
2286
|
useEventListener("touchmove", onTouchMove, {
|
@@ -2369,7 +2376,7 @@
|
|
2369
2376
|
return propRef;
|
2370
2377
|
};
|
2371
2378
|
/**
|
2372
|
-
* @vue/shared v3.
|
2379
|
+
* @vue/shared v3.5.5
|
2373
2380
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
2374
2381
|
* @license MIT
|
2375
2382
|
**/
|
@@ -2877,8 +2884,7 @@
|
|
2877
2884
|
let touchStartTime;
|
2878
2885
|
const onTouchStart = (event) => {
|
2879
2886
|
if (!props2.touchable || // avoid resetting position on multi-finger touch
|
2880
|
-
event.touches.length > 1)
|
2881
|
-
return;
|
2887
|
+
event.touches.length > 1) return;
|
2882
2888
|
touch.start(event);
|
2883
2889
|
dragging = false;
|
2884
2890
|
touchStartTime = Date.now();
|
@@ -3182,8 +3188,7 @@
|
|
3182
3188
|
}
|
3183
3189
|
const title = titles[state.currentIndex].$el;
|
3184
3190
|
const to = title.offsetLeft - (nav.offsetWidth - title.offsetWidth) / 2;
|
3185
|
-
if (cancelScrollLeftToRaf)
|
3186
|
-
cancelScrollLeftToRaf();
|
3191
|
+
if (cancelScrollLeftToRaf) cancelScrollLeftToRaf();
|
3187
3192
|
cancelScrollLeftToRaf = scrollLeftTo(nav, to, immediate ? 0 : +props2.duration);
|
3188
3193
|
};
|
3189
3194
|
const setLine = () => {
|
@@ -3260,8 +3265,7 @@
|
|
3260
3265
|
if (target && scroller.value) {
|
3261
3266
|
const to = getElementTop(target, scroller.value) - scrollOffset.value;
|
3262
3267
|
lockScroll = true;
|
3263
|
-
if (cancelScrollTopToRaf)
|
3264
|
-
cancelScrollTopToRaf();
|
3268
|
+
if (cancelScrollTopToRaf) cancelScrollTopToRaf();
|
3265
3269
|
cancelScrollTopToRaf = scrollTopTo(scroller.value, to, immediate ? 0 : +props2.duration, () => {
|
3266
3270
|
lockScroll = false;
|
3267
3271
|
});
|
@@ -4532,6 +4536,8 @@
|
|
4532
4536
|
autofocus: Boolean,
|
4533
4537
|
clearable: Boolean,
|
4534
4538
|
maxlength: numericProp,
|
4539
|
+
max: Number,
|
4540
|
+
min: Number,
|
4535
4541
|
formatter: Function,
|
4536
4542
|
clearIcon: makeStringProp("clear"),
|
4537
4543
|
modelValue: makeNumericProp(""),
|
@@ -4729,12 +4735,17 @@
|
|
4729
4735
|
return value;
|
4730
4736
|
};
|
4731
4737
|
const updateValue = (value, trigger = "onChange") => {
|
4738
|
+
var _a, _b;
|
4732
4739
|
const originalValue = value;
|
4733
4740
|
value = limitValueLength(value);
|
4734
4741
|
const limitDiffLen = getStringLength(originalValue) - getStringLength(value);
|
4735
4742
|
if (props2.type === "number" || props2.type === "digit") {
|
4736
4743
|
const isNumber = props2.type === "number";
|
4737
4744
|
value = formatNumber(value, isNumber, isNumber);
|
4745
|
+
if (trigger === "onBlur" && value !== "") {
|
4746
|
+
const adjustedValue = clamp(+value, (_a = props2.min) != null ? _a : -Infinity, (_b = props2.max) != null ? _b : Infinity);
|
4747
|
+
value = adjustedValue.toString();
|
4748
|
+
}
|
4738
4749
|
}
|
4739
4750
|
let formatterDiffLen = 0;
|
4740
4751
|
if (props2.formatter && trigger === props2.formatTrigger) {
|
@@ -6166,12 +6177,10 @@
|
|
6166
6177
|
} else {
|
6167
6178
|
emit("update:modelValue", newValue);
|
6168
6179
|
}
|
6169
|
-
if (props2.indeterminate !== null)
|
6170
|
-
emit("change", newValue);
|
6180
|
+
if (props2.indeterminate !== null) emit("change", newValue);
|
6171
6181
|
};
|
6172
6182
|
vue.watch(() => props2.modelValue, (value) => {
|
6173
|
-
if (props2.indeterminate === null)
|
6174
|
-
emit("change", value);
|
6183
|
+
if (props2.indeterminate === null) emit("change", value);
|
6175
6184
|
});
|
6176
6185
|
useExpose({
|
6177
6186
|
toggle,
|
@@ -6387,15 +6396,12 @@
|
|
6387
6396
|
observer: "observer"
|
6388
6397
|
};
|
6389
6398
|
function remove(arr, item) {
|
6390
|
-
if (!arr.length)
|
6391
|
-
return;
|
6399
|
+
if (!arr.length) return;
|
6392
6400
|
const index = arr.indexOf(item);
|
6393
|
-
if (index > -1)
|
6394
|
-
return arr.splice(index, 1);
|
6401
|
+
if (index > -1) return arr.splice(index, 1);
|
6395
6402
|
}
|
6396
6403
|
function getBestSelectionFromSrcset(el, scale) {
|
6397
|
-
if (el.tagName !== "IMG" || !el.getAttribute("data-srcset"))
|
6398
|
-
return;
|
6404
|
+
if (el.tagName !== "IMG" || !el.getAttribute("data-srcset")) return;
|
6399
6405
|
let options = el.getAttribute("data-srcset");
|
6400
6406
|
const container = el.parentNode;
|
6401
6407
|
const containerWidth = container.offsetWidth * scale;
|
@@ -6453,8 +6459,7 @@
|
|
6453
6459
|
}
|
6454
6460
|
const getDPR = (scale = 1) => inBrowser ? window.devicePixelRatio || scale : scale;
|
6455
6461
|
function supportWebp() {
|
6456
|
-
if (!inBrowser)
|
6457
|
-
return false;
|
6462
|
+
if (!inBrowser) return false;
|
6458
6463
|
let support = true;
|
6459
6464
|
try {
|
6460
6465
|
const elem = document.createElement("canvas");
|
@@ -6522,8 +6527,7 @@
|
|
6522
6527
|
return this.caches.indexOf(key) > -1;
|
6523
6528
|
}
|
6524
6529
|
add(key) {
|
6525
|
-
if (this.has(key))
|
6526
|
-
return;
|
6530
|
+
if (this.has(key)) return;
|
6527
6531
|
this.caches.push(key);
|
6528
6532
|
if (this.caches.length > this.options.max) {
|
6529
6533
|
this.free();
|
@@ -7385,6 +7389,9 @@
|
|
7385
7389
|
if (!Array.isArray(defaultDate)) {
|
7386
7390
|
defaultDate = [];
|
7387
7391
|
}
|
7392
|
+
if (defaultDate.length === 1 && compareDay(defaultDate[0], now) === 1) {
|
7393
|
+
defaultDate = [];
|
7394
|
+
}
|
7388
7395
|
const min = minDate.value;
|
7389
7396
|
const max = maxDate.value;
|
7390
7397
|
const start2 = limitDateRange(defaultDate[0] || now, min, max ? allowSameDay ? max : getPrevDay(max) : void 0);
|
@@ -7700,9 +7707,8 @@
|
|
7700
7707
|
};
|
7701
7708
|
vue.watch(() => props2.show, init);
|
7702
7709
|
vue.watch(() => [props2.type, props2.minDate, props2.maxDate, props2.switchMode], () => reset(getInitialDate(currentDate.value)));
|
7703
|
-
vue.watch(() => props2.defaultDate, (value
|
7704
|
-
|
7705
|
-
scrollToCurrentDate();
|
7710
|
+
vue.watch(() => props2.defaultDate, (value) => {
|
7711
|
+
reset(value);
|
7706
7712
|
});
|
7707
7713
|
useExpose({
|
7708
7714
|
reset,
|
@@ -8227,8 +8233,7 @@
|
|
8227
8233
|
updateTabs();
|
8228
8234
|
vue.watch(activeTab, (value) => {
|
8229
8235
|
const el = selectedElementRefs.value[value];
|
8230
|
-
if (el)
|
8231
|
-
scrollIntoView(el);
|
8236
|
+
if (el) scrollIntoView(el);
|
8232
8237
|
});
|
8233
8238
|
vue.watch(() => props2.options, updateTabs, {
|
8234
8239
|
deep: true
|
@@ -8512,8 +8517,7 @@
|
|
8512
8517
|
return spaces2;
|
8513
8518
|
}
|
8514
8519
|
groups.value.forEach((group, index) => {
|
8515
|
-
if (index === groups.value.length - 1)
|
8516
|
-
return;
|
8520
|
+
if (index === groups.value.length - 1) return;
|
8517
8521
|
group.forEach(() => {
|
8518
8522
|
spaces2.push({
|
8519
8523
|
bottom: bottom2
|
@@ -10578,8 +10582,7 @@
|
|
10578
10582
|
return style;
|
10579
10583
|
});
|
10580
10584
|
const updateState = () => {
|
10581
|
-
if (!show.value)
|
10582
|
-
return;
|
10585
|
+
if (!show.value) return;
|
10583
10586
|
const {
|
10584
10587
|
width: width2,
|
10585
10588
|
height: height2
|
@@ -10606,23 +10609,18 @@
|
|
10606
10609
|
const onTouchMove = (e) => {
|
10607
10610
|
e.preventDefault();
|
10608
10611
|
touch.move(e);
|
10609
|
-
if (props2.axis === "lock")
|
10610
|
-
return;
|
10612
|
+
if (props2.axis === "lock") return;
|
10611
10613
|
if (!touch.isTap.value) {
|
10612
10614
|
if (props2.axis === "x" || props2.axis === "xy") {
|
10613
10615
|
let nextX = prevX + touch.deltaX.value;
|
10614
|
-
if (nextX < boundary.value.left)
|
10615
|
-
|
10616
|
-
if (nextX > boundary.value.right)
|
10617
|
-
nextX = boundary.value.right;
|
10616
|
+
if (nextX < boundary.value.left) nextX = boundary.value.left;
|
10617
|
+
if (nextX > boundary.value.right) nextX = boundary.value.right;
|
10618
10618
|
state.value.x = nextX;
|
10619
10619
|
}
|
10620
10620
|
if (props2.axis === "y" || props2.axis === "xy") {
|
10621
10621
|
let nextY = prevY + touch.deltaY.value;
|
10622
|
-
if (nextY < boundary.value.top)
|
10623
|
-
|
10624
|
-
if (nextY > boundary.value.bottom)
|
10625
|
-
nextY = boundary.value.bottom;
|
10622
|
+
if (nextY < boundary.value.top) nextY = boundary.value.top;
|
10623
|
+
if (nextY > boundary.value.bottom) nextY = boundary.value.bottom;
|
10626
10624
|
state.value.y = nextY;
|
10627
10625
|
}
|
10628
10626
|
const offset2 = pick(state.value, ["x", "y"]);
|
@@ -10653,10 +10651,8 @@
|
|
10653
10651
|
});
|
10654
10652
|
};
|
10655
10653
|
const onClick = (e) => {
|
10656
|
-
if (touch.isTap.value)
|
10657
|
-
|
10658
|
-
else
|
10659
|
-
e.stopPropagation();
|
10654
|
+
if (touch.isTap.value) emit("click", e);
|
10655
|
+
else e.stopPropagation();
|
10660
10656
|
};
|
10661
10657
|
vue.onMounted(() => {
|
10662
10658
|
updateState();
|
@@ -10765,8 +10761,7 @@
|
|
10765
10761
|
scrollTop
|
10766
10762
|
} = contentRef.value;
|
10767
10763
|
maxScroll = Math.max(maxScroll, scrollTop);
|
10768
|
-
if (!props2.contentDraggable)
|
10769
|
-
return;
|
10764
|
+
if (!props2.contentDraggable) return;
|
10770
10765
|
if (-startY < boundary.value.max) {
|
10771
10766
|
preventDefault(e, true);
|
10772
10767
|
} else if (!(scrollTop <= 0 && touch.deltaY.value > 0) || maxScroll > 0) {
|
@@ -11302,15 +11297,12 @@
|
|
11302
11297
|
const checkClose = (event) => {
|
11303
11298
|
var _a;
|
11304
11299
|
const swipeItemEl = (_a = swipeItem.value) == null ? void 0 : _a.$el;
|
11305
|
-
if (!swipeItemEl)
|
11306
|
-
return;
|
11300
|
+
if (!swipeItemEl) return;
|
11307
11301
|
const imageEl = swipeItemEl.firstElementChild;
|
11308
11302
|
const isClickOverlay = event.target === swipeItemEl;
|
11309
11303
|
const isClickImage = imageEl == null ? void 0 : imageEl.contains(event.target);
|
11310
|
-
if (!props2.closeOnClickImage && isClickImage)
|
11311
|
-
|
11312
|
-
if (!props2.closeOnClickOverlay && isClickOverlay)
|
11313
|
-
return;
|
11304
|
+
if (!props2.closeOnClickImage && isClickImage) return;
|
11305
|
+
if (!props2.closeOnClickOverlay && isClickOverlay) return;
|
11314
11306
|
emit("close");
|
11315
11307
|
};
|
11316
11308
|
const checkTap = (event) => {
|
@@ -12627,7 +12619,12 @@
|
|
12627
12619
|
extraKey
|
12628
12620
|
} = props2;
|
12629
12621
|
const extraKeys = Array.isArray(extraKey) ? extraKey : [extraKey];
|
12630
|
-
if (extraKeys.length ===
|
12622
|
+
if (extraKeys.length === 0) {
|
12623
|
+
keys2.push({
|
12624
|
+
text: 0,
|
12625
|
+
wider: true
|
12626
|
+
});
|
12627
|
+
} else if (extraKeys.length === 1) {
|
12631
12628
|
keys2.push({
|
12632
12629
|
text: 0,
|
12633
12630
|
wider: true
|
@@ -14365,8 +14362,7 @@
|
|
14365
14362
|
return props2.allowHalf ? 0.5 : 1;
|
14366
14363
|
};
|
14367
14364
|
const select = (value) => {
|
14368
|
-
if (unselectable.value || value === props2.modelValue)
|
14369
|
-
return;
|
14365
|
+
if (unselectable.value || value === props2.modelValue) return;
|
14370
14366
|
emit("update:modelValue", value);
|
14371
14367
|
emit("change", value);
|
14372
14368
|
};
|
@@ -14534,8 +14530,7 @@
|
|
14534
14530
|
setup(props2) {
|
14535
14531
|
const isCustomType = vue.computed(() => Array.isArray(props2.textList) && props2.textList.length);
|
14536
14532
|
const itemLength = vue.computed(() => {
|
14537
|
-
if (isCustomType.value)
|
14538
|
-
return props2.textList[0].length;
|
14533
|
+
if (isCustomType.value) return props2.textList[0].length;
|
14539
14534
|
return `${Math.max(props2.startNum, props2.targetNum)}`.length;
|
14540
14535
|
});
|
14541
14536
|
const getTextArrByIdx = (idx) => {
|
@@ -14546,8 +14541,7 @@
|
|
14546
14541
|
return result;
|
14547
14542
|
};
|
14548
14543
|
const targetNumArr = vue.computed(() => {
|
14549
|
-
if (isCustomType.value)
|
14550
|
-
return new Array(itemLength.value).fill("");
|
14544
|
+
if (isCustomType.value) return new Array(itemLength.value).fill("");
|
14551
14545
|
return padZero(props2.targetNum, itemLength.value).split("");
|
14552
14546
|
});
|
14553
14547
|
const startNumArr = vue.computed(() => padZero(props2.startNum, itemLength.value).split(""));
|
@@ -14569,8 +14563,7 @@
|
|
14569
14563
|
return result;
|
14570
14564
|
};
|
14571
14565
|
const getDelay = (i, len) => {
|
14572
|
-
if (props2.stopOrder === "ltr")
|
14573
|
-
return 0.2 * i;
|
14566
|
+
if (props2.stopOrder === "ltr") return 0.2 * i;
|
14574
14567
|
return 0.2 * (len - 1 - i);
|
14575
14568
|
};
|
14576
14569
|
const rolling = vue.ref(props2.autoStart);
|
@@ -14954,8 +14947,7 @@
|
|
14954
14947
|
const canvasRef = vue.ref();
|
14955
14948
|
const wrapRef = vue.ref();
|
14956
14949
|
const ctx = vue.computed(() => {
|
14957
|
-
if (!canvasRef.value)
|
14958
|
-
return null;
|
14950
|
+
if (!canvasRef.value) return null;
|
14959
14951
|
return canvasRef.value.getContext("2d");
|
14960
14952
|
});
|
14961
14953
|
const isRenderCanvas = inBrowser$1 ? hasCanvasSupport() : true;
|
@@ -16198,8 +16190,7 @@
|
|
16198
16190
|
}
|
16199
16191
|
};
|
16200
16192
|
const onClick = (position = "outside", event) => {
|
16201
|
-
if (isInBeforeClosing)
|
16202
|
-
return;
|
16193
|
+
if (isInBeforeClosing) return;
|
16203
16194
|
emit("click", position);
|
16204
16195
|
if (opened && !lockClick2) {
|
16205
16196
|
isInBeforeClosing = true;
|
@@ -16476,14 +16467,12 @@
|
|
16476
16467
|
let needRecalculate = false;
|
16477
16468
|
const actionText = vue.computed(() => expanded.value ? props2.collapseText : props2.expandText);
|
16478
16469
|
const pxToNum = (value) => {
|
16479
|
-
if (!value)
|
16480
|
-
return 0;
|
16470
|
+
if (!value) return 0;
|
16481
16471
|
const match = value.match(/^\d*(\.\d*)?/);
|
16482
16472
|
return match ? Number(match[0]) : 0;
|
16483
16473
|
};
|
16484
16474
|
const cloneContainer = () => {
|
16485
|
-
if (!root.value || !root.value.isConnected)
|
16486
|
-
return;
|
16475
|
+
if (!root.value || !root.value.isConnected) return;
|
16487
16476
|
const originStyle = window.getComputedStyle(root.value);
|
16488
16477
|
const container = document.createElement("div");
|
16489
16478
|
const styleNames = Array.prototype.slice.apply(originStyle);
|
@@ -17528,8 +17517,7 @@
|
|
17528
17517
|
onFinish();
|
17529
17518
|
return;
|
17530
17519
|
}
|
17531
|
-
if (this.state.rendered && this.state.loaded)
|
17532
|
-
return;
|
17520
|
+
if (this.state.rendered && this.state.loaded) return;
|
17533
17521
|
if (this.imageCache.has(this.src)) {
|
17534
17522
|
this.state.loaded = true;
|
17535
17523
|
this.render("loaded", true);
|
@@ -17586,8 +17574,7 @@
|
|
17586
17574
|
state = "loaded";
|
17587
17575
|
time = (this.performanceData.loadEnd - this.performanceData.loadStart) / 1e3;
|
17588
17576
|
}
|
17589
|
-
if (this.state.error)
|
17590
|
-
state = "error";
|
17577
|
+
if (this.state.error) state = "error";
|
17591
17578
|
return {
|
17592
17579
|
src: this.src,
|
17593
17580
|
state,
|
@@ -17778,8 +17765,7 @@
|
|
17778
17765
|
* @return
|
17779
17766
|
*/
|
17780
17767
|
remove(el) {
|
17781
|
-
if (!el)
|
17782
|
-
return;
|
17768
|
+
if (!el) return;
|
17783
17769
|
this.observer && this.observer.unobserve(el);
|
17784
17770
|
const existItem = this.listeners.find((item) => item.el === el);
|
17785
17771
|
if (existItem) {
|
@@ -17795,8 +17781,7 @@
|
|
17795
17781
|
* @return
|
17796
17782
|
*/
|
17797
17783
|
removeComponent(vm) {
|
17798
|
-
if (!vm)
|
17799
|
-
return;
|
17784
|
+
if (!vm) return;
|
17800
17785
|
remove(this.listeners, vm);
|
17801
17786
|
this.observer && this.observer.unobserve(vm.el);
|
17802
17787
|
if (vm.$parent && vm.$el.parentNode) {
|
@@ -17835,8 +17820,7 @@
|
|
17835
17820
|
* @return
|
17836
17821
|
*/
|
17837
17822
|
addListenerTarget(el) {
|
17838
|
-
if (!el)
|
17839
|
-
return;
|
17823
|
+
if (!el) return;
|
17840
17824
|
let target = this.targets.find((target2) => target2.el === el);
|
17841
17825
|
if (!target) {
|
17842
17826
|
target = {
|
@@ -17889,8 +17873,7 @@
|
|
17889
17873
|
}
|
17890
17874
|
};
|
17891
17875
|
this.$on = (event, func) => {
|
17892
|
-
if (!this.Event.listeners[event])
|
17893
|
-
this.Event.listeners[event] = [];
|
17876
|
+
if (!this.Event.listeners[event]) this.Event.listeners[event] = [];
|
17894
17877
|
this.Event.listeners[event].push(func);
|
17895
17878
|
};
|
17896
17879
|
this.$once = (event, func) => {
|
@@ -17902,16 +17885,14 @@
|
|
17902
17885
|
};
|
17903
17886
|
this.$off = (event, func) => {
|
17904
17887
|
if (!func) {
|
17905
|
-
if (!this.Event.listeners[event])
|
17906
|
-
return;
|
17888
|
+
if (!this.Event.listeners[event]) return;
|
17907
17889
|
this.Event.listeners[event].length = 0;
|
17908
17890
|
return;
|
17909
17891
|
}
|
17910
17892
|
remove(this.Event.listeners[event], func);
|
17911
17893
|
};
|
17912
17894
|
this.$emit = (event, context, inCache) => {
|
17913
|
-
if (!this.Event.listeners[event])
|
17914
|
-
return;
|
17895
|
+
if (!this.Event.listeners[event]) return;
|
17915
17896
|
this.Event.listeners[event].forEach((func) => func(context, inCache));
|
17916
17897
|
};
|
17917
17898
|
}
|
@@ -17926,8 +17907,7 @@
|
|
17926
17907
|
freeList.push(listener);
|
17927
17908
|
}
|
17928
17909
|
const catIn = listener.checkInView();
|
17929
|
-
if (!catIn)
|
17930
|
-
return;
|
17910
|
+
if (!catIn) return;
|
17931
17911
|
listener.load();
|
17932
17912
|
});
|
17933
17913
|
freeList.forEach((item) => {
|
@@ -17979,8 +17959,7 @@
|
|
17979
17959
|
* @return
|
17980
17960
|
*/
|
17981
17961
|
elRenderer(listener, state, cache) {
|
17982
|
-
if (!listener.el)
|
17983
|
-
return;
|
17962
|
+
if (!listener.el) return;
|
17984
17963
|
const { el, bindType } = listener;
|
17985
17964
|
let src;
|
17986
17965
|
switch (state) {
|
@@ -18134,14 +18113,12 @@
|
|
18134
18113
|
}
|
18135
18114
|
update(el, binding, vnode) {
|
18136
18115
|
const container = this.queue.find((item) => item.el === el);
|
18137
|
-
if (!container)
|
18138
|
-
return;
|
18116
|
+
if (!container) return;
|
18139
18117
|
container.update({ el, binding, vnode });
|
18140
18118
|
}
|
18141
18119
|
unbind(el) {
|
18142
18120
|
const container = this.queue.find((item) => item.el === el);
|
18143
|
-
if (!container)
|
18144
|
-
return;
|
18121
|
+
if (!container) return;
|
18145
18122
|
container.clear();
|
18146
18123
|
remove(this.queue, container);
|
18147
18124
|
}
|
@@ -18262,7 +18239,7 @@
|
|
18262
18239
|
});
|
18263
18240
|
}
|
18264
18241
|
};
|
18265
|
-
const version = "4.9.
|
18242
|
+
const version = "4.9.6";
|
18266
18243
|
function install(app) {
|
18267
18244
|
const components = [
|
18268
18245
|
ActionBar,
|