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/utils/dom.d.ts
CHANGED
@@ -9,5 +9,5 @@ export declare function resetScroll(): void;
|
|
9
9
|
export declare const stopPropagation: (event: Event) => void;
|
10
10
|
export declare function preventDefault(event: Event, isStopPropagation?: boolean): void;
|
11
11
|
export declare function isHidden(elementRef: HTMLElement | Ref<HTMLElement | undefined>): boolean;
|
12
|
-
export declare const windowWidth: Ref<number>, windowHeight: Ref<number>;
|
12
|
+
export declare const windowWidth: Ref<number, number>, windowHeight: Ref<number, number>;
|
13
13
|
export declare function getContainingBlock(el: Element): HTMLElement | null;
|
@@ -9,6 +9,6 @@ export declare function usePopupState(): {
|
|
9
9
|
toggle: (show: boolean) => void;
|
10
10
|
};
|
11
11
|
export declare function mountComponent(RootComponent: Component): {
|
12
|
-
instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>;
|
12
|
+
instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import("vue").ComponentProvideOptions>, {}, {}, "", {}, any>;
|
13
13
|
unmount(): void;
|
14
14
|
};
|
package/lib/vant.cjs.js
CHANGED
@@ -1280,7 +1280,8 @@ const overlayProps = {
|
|
1280
1280
|
className: unknownProp,
|
1281
1281
|
lockScroll: truthProp,
|
1282
1282
|
lazyRender: truthProp,
|
1283
|
-
customStyle: Object
|
1283
|
+
customStyle: Object,
|
1284
|
+
teleport: [String, Object]
|
1284
1285
|
};
|
1285
1286
|
var stdin_default$1L = vue.defineComponent({
|
1286
1287
|
name: name$1C,
|
@@ -1310,12 +1311,22 @@ var stdin_default$1L = vue.defineComponent({
|
|
1310
1311
|
use.useEventListener("touchmove", onTouchMove, {
|
1311
1312
|
target: root
|
1312
1313
|
});
|
1313
|
-
return () =>
|
1314
|
-
|
1315
|
-
|
1316
|
-
|
1317
|
-
|
1318
|
-
|
1314
|
+
return () => {
|
1315
|
+
const Content = vue.createVNode(vue.Transition, {
|
1316
|
+
"name": "van-fade",
|
1317
|
+
"appear": true
|
1318
|
+
}, {
|
1319
|
+
default: renderOverlay
|
1320
|
+
});
|
1321
|
+
if (props2.teleport) {
|
1322
|
+
return vue.createVNode(vue.Teleport, {
|
1323
|
+
"to": props2.teleport
|
1324
|
+
}, {
|
1325
|
+
default: () => [Content]
|
1326
|
+
});
|
1327
|
+
}
|
1328
|
+
return Content;
|
1329
|
+
};
|
1319
1330
|
}
|
1320
1331
|
});
|
1321
1332
|
const Overlay = withInstall(stdin_default$1L);
|
@@ -1416,8 +1427,7 @@ var stdin_default$1K = vue.defineComponent({
|
|
1416
1427
|
};
|
1417
1428
|
let timer2;
|
1418
1429
|
const onOpened = () => {
|
1419
|
-
if (timer2)
|
1420
|
-
clearTimeout(timer2);
|
1430
|
+
if (timer2) clearTimeout(timer2);
|
1421
1431
|
timer2 = setTimeout(() => {
|
1422
1432
|
emit("opened");
|
1423
1433
|
});
|
@@ -1666,12 +1676,10 @@ function getColumnsType(columns, fields) {
|
|
1666
1676
|
function findIndexOfEnabledOption(options, index) {
|
1667
1677
|
index = clamp(index, 0, options.length);
|
1668
1678
|
for (let i = index; i < options.length; i++) {
|
1669
|
-
if (!options[i].disabled)
|
1670
|
-
return i;
|
1679
|
+
if (!options[i].disabled) return i;
|
1671
1680
|
}
|
1672
1681
|
for (let i = index - 1; i >= 0; i--) {
|
1673
|
-
if (!options[i].disabled)
|
1674
|
-
return i;
|
1682
|
+
if (!options[i].disabled) return i;
|
1675
1683
|
}
|
1676
1684
|
return 0;
|
1677
1685
|
}
|
@@ -1884,8 +1892,7 @@ var stdin_default$1I = vue.defineComponent({
|
|
1884
1892
|
const index = moving ? Math.floor(-currentOffset.value / props2.optionHeight) : props2.options.findIndex((option) => option[props2.fields.value] === props2.value);
|
1885
1893
|
const enabledIndex = findIndexOfEnabledOption(props2.options, index);
|
1886
1894
|
const offset = -enabledIndex * props2.optionHeight;
|
1887
|
-
if (moving && enabledIndex < index)
|
1888
|
-
stopMomentum();
|
1895
|
+
if (moving && enabledIndex < index) stopMomentum();
|
1889
1896
|
currentOffset.value = offset;
|
1890
1897
|
});
|
1891
1898
|
use.useEventListener("touchmove", onTouchMove, {
|
@@ -2409,8 +2416,7 @@ var stdin_default$1F = vue.defineComponent({
|
|
2409
2416
|
let touchStartTime;
|
2410
2417
|
const onTouchStart = (event) => {
|
2411
2418
|
if (!props2.touchable || // avoid resetting position on multi-finger touch
|
2412
|
-
event.touches.length > 1)
|
2413
|
-
return;
|
2419
|
+
event.touches.length > 1) return;
|
2414
2420
|
touch.start(event);
|
2415
2421
|
dragging = false;
|
2416
2422
|
touchStartTime = Date.now();
|
@@ -2714,8 +2720,7 @@ var stdin_default$1D = vue.defineComponent({
|
|
2714
2720
|
}
|
2715
2721
|
const title = titles[state.currentIndex].$el;
|
2716
2722
|
const to = title.offsetLeft - (nav.offsetWidth - title.offsetWidth) / 2;
|
2717
|
-
if (cancelScrollLeftToRaf)
|
2718
|
-
cancelScrollLeftToRaf();
|
2723
|
+
if (cancelScrollLeftToRaf) cancelScrollLeftToRaf();
|
2719
2724
|
cancelScrollLeftToRaf = scrollLeftTo(nav, to, immediate ? 0 : +props2.duration);
|
2720
2725
|
};
|
2721
2726
|
const setLine = () => {
|
@@ -2792,8 +2797,7 @@ var stdin_default$1D = vue.defineComponent({
|
|
2792
2797
|
if (target && scroller.value) {
|
2793
2798
|
const to = getElementTop(target, scroller.value) - scrollOffset.value;
|
2794
2799
|
lockScroll = true;
|
2795
|
-
if (cancelScrollTopToRaf)
|
2796
|
-
cancelScrollTopToRaf();
|
2800
|
+
if (cancelScrollTopToRaf) cancelScrollTopToRaf();
|
2797
2801
|
cancelScrollTopToRaf = scrollTopTo(scroller.value, to, immediate ? 0 : +props2.duration, () => {
|
2798
2802
|
lockScroll = false;
|
2799
2803
|
});
|
@@ -4070,6 +4074,8 @@ const fieldSharedProps = {
|
|
4070
4074
|
autofocus: Boolean,
|
4071
4075
|
clearable: Boolean,
|
4072
4076
|
maxlength: numericProp,
|
4077
|
+
max: Number,
|
4078
|
+
min: Number,
|
4073
4079
|
formatter: Function,
|
4074
4080
|
clearIcon: makeStringProp("clear"),
|
4075
4081
|
modelValue: makeNumericProp(""),
|
@@ -4267,12 +4273,17 @@ var stdin_default$1v = vue.defineComponent({
|
|
4267
4273
|
return value;
|
4268
4274
|
};
|
4269
4275
|
const updateValue = (value, trigger = "onChange") => {
|
4276
|
+
var _a, _b;
|
4270
4277
|
const originalValue = value;
|
4271
4278
|
value = limitValueLength(value);
|
4272
4279
|
const limitDiffLen = getStringLength(originalValue) - getStringLength(value);
|
4273
4280
|
if (props2.type === "number" || props2.type === "digit") {
|
4274
4281
|
const isNumber = props2.type === "number";
|
4275
4282
|
value = formatNumber(value, isNumber, isNumber);
|
4283
|
+
if (trigger === "onBlur" && value !== "") {
|
4284
|
+
const adjustedValue = clamp(+value, (_a = props2.min) != null ? _a : -Infinity, (_b = props2.max) != null ? _b : Infinity);
|
4285
|
+
value = adjustedValue.toString();
|
4286
|
+
}
|
4276
4287
|
}
|
4277
4288
|
let formatterDiffLen = 0;
|
4278
4289
|
if (props2.formatter && trigger === props2.formatTrigger) {
|
@@ -5704,12 +5715,10 @@ var stdin_default$1l = vue.defineComponent({
|
|
5704
5715
|
} else {
|
5705
5716
|
emit("update:modelValue", newValue);
|
5706
5717
|
}
|
5707
|
-
if (props2.indeterminate !== null)
|
5708
|
-
emit("change", newValue);
|
5718
|
+
if (props2.indeterminate !== null) emit("change", newValue);
|
5709
5719
|
};
|
5710
5720
|
vue.watch(() => props2.modelValue, (value) => {
|
5711
|
-
if (props2.indeterminate === null)
|
5712
|
-
emit("change", value);
|
5721
|
+
if (props2.indeterminate === null) emit("change", value);
|
5713
5722
|
});
|
5714
5723
|
useExpose({
|
5715
5724
|
toggle,
|
@@ -5925,15 +5934,12 @@ const modeType = {
|
|
5925
5934
|
observer: "observer"
|
5926
5935
|
};
|
5927
5936
|
function remove(arr, item) {
|
5928
|
-
if (!arr.length)
|
5929
|
-
return;
|
5937
|
+
if (!arr.length) return;
|
5930
5938
|
const index = arr.indexOf(item);
|
5931
|
-
if (index > -1)
|
5932
|
-
return arr.splice(index, 1);
|
5939
|
+
if (index > -1) return arr.splice(index, 1);
|
5933
5940
|
}
|
5934
5941
|
function getBestSelectionFromSrcset(el, scale) {
|
5935
|
-
if (el.tagName !== "IMG" || !el.getAttribute("data-srcset"))
|
5936
|
-
return;
|
5942
|
+
if (el.tagName !== "IMG" || !el.getAttribute("data-srcset")) return;
|
5937
5943
|
let options = el.getAttribute("data-srcset");
|
5938
5944
|
const container = el.parentNode;
|
5939
5945
|
const containerWidth = container.offsetWidth * scale;
|
@@ -5991,8 +5997,7 @@ function getBestSelectionFromSrcset(el, scale) {
|
|
5991
5997
|
}
|
5992
5998
|
const getDPR = (scale = 1) => use.inBrowser ? window.devicePixelRatio || scale : scale;
|
5993
5999
|
function supportWebp() {
|
5994
|
-
if (!use.inBrowser)
|
5995
|
-
return false;
|
6000
|
+
if (!use.inBrowser) return false;
|
5996
6001
|
let support = true;
|
5997
6002
|
try {
|
5998
6003
|
const elem = document.createElement("canvas");
|
@@ -6060,8 +6065,7 @@ class ImageCache {
|
|
6060
6065
|
return this.caches.indexOf(key) > -1;
|
6061
6066
|
}
|
6062
6067
|
add(key) {
|
6063
|
-
if (this.has(key))
|
6064
|
-
return;
|
6068
|
+
if (this.has(key)) return;
|
6065
6069
|
this.caches.push(key);
|
6066
6070
|
if (this.caches.length > this.options.max) {
|
6067
6071
|
this.free();
|
@@ -6926,6 +6930,9 @@ var stdin_default$1d = vue.defineComponent({
|
|
6926
6930
|
if (!Array.isArray(defaultDate)) {
|
6927
6931
|
defaultDate = [];
|
6928
6932
|
}
|
6933
|
+
if (defaultDate.length === 1 && compareDay(defaultDate[0], now) === 1) {
|
6934
|
+
defaultDate = [];
|
6935
|
+
}
|
6929
6936
|
const min = minDate.value;
|
6930
6937
|
const max = maxDate.value;
|
6931
6938
|
const start = limitDateRange(defaultDate[0] || now, min, max ? allowSameDay ? max : getPrevDay(max) : void 0);
|
@@ -7241,9 +7248,8 @@ var stdin_default$1d = vue.defineComponent({
|
|
7241
7248
|
};
|
7242
7249
|
vue.watch(() => props2.show, init);
|
7243
7250
|
vue.watch(() => [props2.type, props2.minDate, props2.maxDate, props2.switchMode], () => reset(getInitialDate(currentDate.value)));
|
7244
|
-
vue.watch(() => props2.defaultDate, (value
|
7245
|
-
|
7246
|
-
scrollToCurrentDate();
|
7251
|
+
vue.watch(() => props2.defaultDate, (value) => {
|
7252
|
+
reset(value);
|
7247
7253
|
});
|
7248
7254
|
useExpose({
|
7249
7255
|
reset,
|
@@ -7768,8 +7774,7 @@ var stdin_default$1a = vue.defineComponent({
|
|
7768
7774
|
updateTabs();
|
7769
7775
|
vue.watch(activeTab, (value) => {
|
7770
7776
|
const el = selectedElementRefs.value[value];
|
7771
|
-
if (el)
|
7772
|
-
scrollIntoView(el);
|
7777
|
+
if (el) scrollIntoView(el);
|
7773
7778
|
});
|
7774
7779
|
vue.watch(() => props2.options, updateTabs, {
|
7775
7780
|
deep: true
|
@@ -8053,8 +8058,7 @@ var stdin_default$17 = vue.defineComponent({
|
|
8053
8058
|
return spaces2;
|
8054
8059
|
}
|
8055
8060
|
groups.value.forEach((group, index) => {
|
8056
|
-
if (index === groups.value.length - 1)
|
8057
|
-
return;
|
8061
|
+
if (index === groups.value.length - 1) return;
|
8058
8062
|
group.forEach(() => {
|
8059
8063
|
spaces2.push({
|
8060
8064
|
bottom
|
@@ -10142,8 +10146,7 @@ var stdin_default$S = vue.defineComponent({
|
|
10142
10146
|
return style;
|
10143
10147
|
});
|
10144
10148
|
const updateState = () => {
|
10145
|
-
if (!show.value)
|
10146
|
-
return;
|
10149
|
+
if (!show.value) return;
|
10147
10150
|
const {
|
10148
10151
|
width,
|
10149
10152
|
height
|
@@ -10170,23 +10173,18 @@ var stdin_default$S = vue.defineComponent({
|
|
10170
10173
|
const onTouchMove = (e) => {
|
10171
10174
|
e.preventDefault();
|
10172
10175
|
touch.move(e);
|
10173
|
-
if (props2.axis === "lock")
|
10174
|
-
return;
|
10176
|
+
if (props2.axis === "lock") return;
|
10175
10177
|
if (!touch.isTap.value) {
|
10176
10178
|
if (props2.axis === "x" || props2.axis === "xy") {
|
10177
10179
|
let nextX = prevX + touch.deltaX.value;
|
10178
|
-
if (nextX < boundary.value.left)
|
10179
|
-
|
10180
|
-
if (nextX > boundary.value.right)
|
10181
|
-
nextX = boundary.value.right;
|
10180
|
+
if (nextX < boundary.value.left) nextX = boundary.value.left;
|
10181
|
+
if (nextX > boundary.value.right) nextX = boundary.value.right;
|
10182
10182
|
state.value.x = nextX;
|
10183
10183
|
}
|
10184
10184
|
if (props2.axis === "y" || props2.axis === "xy") {
|
10185
10185
|
let nextY = prevY + touch.deltaY.value;
|
10186
|
-
if (nextY < boundary.value.top)
|
10187
|
-
|
10188
|
-
if (nextY > boundary.value.bottom)
|
10189
|
-
nextY = boundary.value.bottom;
|
10186
|
+
if (nextY < boundary.value.top) nextY = boundary.value.top;
|
10187
|
+
if (nextY > boundary.value.bottom) nextY = boundary.value.bottom;
|
10190
10188
|
state.value.y = nextY;
|
10191
10189
|
}
|
10192
10190
|
const offset = pick(state.value, ["x", "y"]);
|
@@ -10217,10 +10215,8 @@ var stdin_default$S = vue.defineComponent({
|
|
10217
10215
|
});
|
10218
10216
|
};
|
10219
10217
|
const onClick = (e) => {
|
10220
|
-
if (touch.isTap.value)
|
10221
|
-
|
10222
|
-
else
|
10223
|
-
e.stopPropagation();
|
10218
|
+
if (touch.isTap.value) emit("click", e);
|
10219
|
+
else e.stopPropagation();
|
10224
10220
|
};
|
10225
10221
|
vue.onMounted(() => {
|
10226
10222
|
updateState();
|
@@ -10329,8 +10325,7 @@ var stdin_default$R = vue.defineComponent({
|
|
10329
10325
|
scrollTop
|
10330
10326
|
} = contentRef.value;
|
10331
10327
|
maxScroll = Math.max(maxScroll, scrollTop);
|
10332
|
-
if (!props2.contentDraggable)
|
10333
|
-
return;
|
10328
|
+
if (!props2.contentDraggable) return;
|
10334
10329
|
if (-startY < boundary.value.max) {
|
10335
10330
|
preventDefault(e, true);
|
10336
10331
|
} else if (!(scrollTop <= 0 && touch.deltaY.value > 0) || maxScroll > 0) {
|
@@ -10869,15 +10864,12 @@ var stdin_default$N = vue.defineComponent({
|
|
10869
10864
|
const checkClose = (event) => {
|
10870
10865
|
var _a;
|
10871
10866
|
const swipeItemEl = (_a = swipeItem.value) == null ? void 0 : _a.$el;
|
10872
|
-
if (!swipeItemEl)
|
10873
|
-
return;
|
10867
|
+
if (!swipeItemEl) return;
|
10874
10868
|
const imageEl = swipeItemEl.firstElementChild;
|
10875
10869
|
const isClickOverlay = event.target === swipeItemEl;
|
10876
10870
|
const isClickImage = imageEl == null ? void 0 : imageEl.contains(event.target);
|
10877
|
-
if (!props2.closeOnClickImage && isClickImage)
|
10878
|
-
|
10879
|
-
if (!props2.closeOnClickOverlay && isClickOverlay)
|
10880
|
-
return;
|
10871
|
+
if (!props2.closeOnClickImage && isClickImage) return;
|
10872
|
+
if (!props2.closeOnClickOverlay && isClickOverlay) return;
|
10881
10873
|
emit("close");
|
10882
10874
|
};
|
10883
10875
|
const checkTap = (event) => {
|
@@ -12197,7 +12189,12 @@ var stdin_default$E = vue.defineComponent({
|
|
12197
12189
|
extraKey
|
12198
12190
|
} = props2;
|
12199
12191
|
const extraKeys = Array.isArray(extraKey) ? extraKey : [extraKey];
|
12200
|
-
if (extraKeys.length ===
|
12192
|
+
if (extraKeys.length === 0) {
|
12193
|
+
keys2.push({
|
12194
|
+
text: 0,
|
12195
|
+
wider: true
|
12196
|
+
});
|
12197
|
+
} else if (extraKeys.length === 1) {
|
12201
12198
|
keys2.push({
|
12202
12199
|
text: 0,
|
12203
12200
|
wider: true
|
@@ -13123,8 +13120,7 @@ var stdin_default$y = vue.defineComponent({
|
|
13123
13120
|
return props2.allowHalf ? 0.5 : 1;
|
13124
13121
|
};
|
13125
13122
|
const select = (value) => {
|
13126
|
-
if (unselectable.value || value === props2.modelValue)
|
13127
|
-
return;
|
13123
|
+
if (unselectable.value || value === props2.modelValue) return;
|
13128
13124
|
emit("update:modelValue", value);
|
13129
13125
|
emit("change", value);
|
13130
13126
|
};
|
@@ -13292,8 +13288,7 @@ var stdin_default$w = vue.defineComponent({
|
|
13292
13288
|
setup(props2) {
|
13293
13289
|
const isCustomType = vue.computed(() => Array.isArray(props2.textList) && props2.textList.length);
|
13294
13290
|
const itemLength = vue.computed(() => {
|
13295
|
-
if (isCustomType.value)
|
13296
|
-
return props2.textList[0].length;
|
13291
|
+
if (isCustomType.value) return props2.textList[0].length;
|
13297
13292
|
return `${Math.max(props2.startNum, props2.targetNum)}`.length;
|
13298
13293
|
});
|
13299
13294
|
const getTextArrByIdx = (idx) => {
|
@@ -13304,8 +13299,7 @@ var stdin_default$w = vue.defineComponent({
|
|
13304
13299
|
return result;
|
13305
13300
|
};
|
13306
13301
|
const targetNumArr = vue.computed(() => {
|
13307
|
-
if (isCustomType.value)
|
13308
|
-
return new Array(itemLength.value).fill("");
|
13302
|
+
if (isCustomType.value) return new Array(itemLength.value).fill("");
|
13309
13303
|
return padZero(props2.targetNum, itemLength.value).split("");
|
13310
13304
|
});
|
13311
13305
|
const startNumArr = vue.computed(() => padZero(props2.startNum, itemLength.value).split(""));
|
@@ -13327,8 +13321,7 @@ var stdin_default$w = vue.defineComponent({
|
|
13327
13321
|
return result;
|
13328
13322
|
};
|
13329
13323
|
const getDelay = (i, len) => {
|
13330
|
-
if (props2.stopOrder === "ltr")
|
13331
|
-
return 0.2 * i;
|
13324
|
+
if (props2.stopOrder === "ltr") return 0.2 * i;
|
13332
13325
|
return 0.2 * (len - 1 - i);
|
13333
13326
|
};
|
13334
13327
|
const rolling = vue.ref(props2.autoStart);
|
@@ -13715,8 +13708,7 @@ var stdin_default$r = vue.defineComponent({
|
|
13715
13708
|
const canvasRef = vue.ref();
|
13716
13709
|
const wrapRef = vue.ref();
|
13717
13710
|
const ctx = vue.computed(() => {
|
13718
|
-
if (!canvasRef.value)
|
13719
|
-
return null;
|
13711
|
+
if (!canvasRef.value) return null;
|
13720
13712
|
return canvasRef.value.getContext("2d");
|
13721
13713
|
});
|
13722
13714
|
const isRenderCanvas = inBrowser ? hasCanvasSupport() : true;
|
@@ -14962,8 +14954,7 @@ var stdin_default$c = vue.defineComponent({
|
|
14962
14954
|
}
|
14963
14955
|
};
|
14964
14956
|
const onClick = (position = "outside", event) => {
|
14965
|
-
if (isInBeforeClosing)
|
14966
|
-
return;
|
14957
|
+
if (isInBeforeClosing) return;
|
14967
14958
|
emit("click", position);
|
14968
14959
|
if (opened && !lockClick2) {
|
14969
14960
|
isInBeforeClosing = true;
|
@@ -15243,14 +15234,12 @@ var stdin_default$9 = vue.defineComponent({
|
|
15243
15234
|
let needRecalculate = false;
|
15244
15235
|
const actionText = vue.computed(() => expanded.value ? props2.collapseText : props2.expandText);
|
15245
15236
|
const pxToNum = (value) => {
|
15246
|
-
if (!value)
|
15247
|
-
return 0;
|
15237
|
+
if (!value) return 0;
|
15248
15238
|
const match = value.match(/^\d*(\.\d*)?/);
|
15249
15239
|
return match ? Number(match[0]) : 0;
|
15250
15240
|
};
|
15251
15241
|
const cloneContainer = () => {
|
15252
|
-
if (!root.value || !root.value.isConnected)
|
15253
|
-
return;
|
15242
|
+
if (!root.value || !root.value.isConnected) return;
|
15254
15243
|
const originStyle = window.getComputedStyle(root.value);
|
15255
15244
|
const container = document.createElement("div");
|
15256
15245
|
const styleNames = Array.prototype.slice.apply(originStyle);
|
@@ -16307,8 +16296,7 @@ class ReactiveListener {
|
|
16307
16296
|
onFinish();
|
16308
16297
|
return;
|
16309
16298
|
}
|
16310
|
-
if (this.state.rendered && this.state.loaded)
|
16311
|
-
return;
|
16299
|
+
if (this.state.rendered && this.state.loaded) return;
|
16312
16300
|
if (this.imageCache.has(this.src)) {
|
16313
16301
|
this.state.loaded = true;
|
16314
16302
|
this.render("loaded", true);
|
@@ -16365,8 +16353,7 @@ class ReactiveListener {
|
|
16365
16353
|
state = "loaded";
|
16366
16354
|
time = (this.performanceData.loadEnd - this.performanceData.loadStart) / 1e3;
|
16367
16355
|
}
|
16368
|
-
if (this.state.error)
|
16369
|
-
state = "error";
|
16356
|
+
if (this.state.error) state = "error";
|
16370
16357
|
return {
|
16371
16358
|
src: this.src,
|
16372
16359
|
state,
|
@@ -16557,8 +16544,7 @@ function stdin_default$3() {
|
|
16557
16544
|
* @return
|
16558
16545
|
*/
|
16559
16546
|
remove(el) {
|
16560
|
-
if (!el)
|
16561
|
-
return;
|
16547
|
+
if (!el) return;
|
16562
16548
|
this.observer && this.observer.unobserve(el);
|
16563
16549
|
const existItem = this.listeners.find((item) => item.el === el);
|
16564
16550
|
if (existItem) {
|
@@ -16574,8 +16560,7 @@ function stdin_default$3() {
|
|
16574
16560
|
* @return
|
16575
16561
|
*/
|
16576
16562
|
removeComponent(vm) {
|
16577
|
-
if (!vm)
|
16578
|
-
return;
|
16563
|
+
if (!vm) return;
|
16579
16564
|
remove(this.listeners, vm);
|
16580
16565
|
this.observer && this.observer.unobserve(vm.el);
|
16581
16566
|
if (vm.$parent && vm.$el.parentNode) {
|
@@ -16614,8 +16599,7 @@ function stdin_default$3() {
|
|
16614
16599
|
* @return
|
16615
16600
|
*/
|
16616
16601
|
addListenerTarget(el) {
|
16617
|
-
if (!el)
|
16618
|
-
return;
|
16602
|
+
if (!el) return;
|
16619
16603
|
let target = this.targets.find((target2) => target2.el === el);
|
16620
16604
|
if (!target) {
|
16621
16605
|
target = {
|
@@ -16668,8 +16652,7 @@ function stdin_default$3() {
|
|
16668
16652
|
}
|
16669
16653
|
};
|
16670
16654
|
this.$on = (event, func) => {
|
16671
|
-
if (!this.Event.listeners[event])
|
16672
|
-
this.Event.listeners[event] = [];
|
16655
|
+
if (!this.Event.listeners[event]) this.Event.listeners[event] = [];
|
16673
16656
|
this.Event.listeners[event].push(func);
|
16674
16657
|
};
|
16675
16658
|
this.$once = (event, func) => {
|
@@ -16681,16 +16664,14 @@ function stdin_default$3() {
|
|
16681
16664
|
};
|
16682
16665
|
this.$off = (event, func) => {
|
16683
16666
|
if (!func) {
|
16684
|
-
if (!this.Event.listeners[event])
|
16685
|
-
return;
|
16667
|
+
if (!this.Event.listeners[event]) return;
|
16686
16668
|
this.Event.listeners[event].length = 0;
|
16687
16669
|
return;
|
16688
16670
|
}
|
16689
16671
|
remove(this.Event.listeners[event], func);
|
16690
16672
|
};
|
16691
16673
|
this.$emit = (event, context, inCache) => {
|
16692
|
-
if (!this.Event.listeners[event])
|
16693
|
-
return;
|
16674
|
+
if (!this.Event.listeners[event]) return;
|
16694
16675
|
this.Event.listeners[event].forEach((func) => func(context, inCache));
|
16695
16676
|
};
|
16696
16677
|
}
|
@@ -16705,8 +16686,7 @@ function stdin_default$3() {
|
|
16705
16686
|
freeList.push(listener);
|
16706
16687
|
}
|
16707
16688
|
const catIn = listener.checkInView();
|
16708
|
-
if (!catIn)
|
16709
|
-
return;
|
16689
|
+
if (!catIn) return;
|
16710
16690
|
listener.load();
|
16711
16691
|
});
|
16712
16692
|
freeList.forEach((item) => {
|
@@ -16758,8 +16738,7 @@ function stdin_default$3() {
|
|
16758
16738
|
* @return
|
16759
16739
|
*/
|
16760
16740
|
elRenderer(listener, state, cache) {
|
16761
|
-
if (!listener.el)
|
16762
|
-
return;
|
16741
|
+
if (!listener.el) return;
|
16763
16742
|
const { el, bindType } = listener;
|
16764
16743
|
let src;
|
16765
16744
|
switch (state) {
|
@@ -16916,14 +16895,12 @@ class LazyContainerManager {
|
|
16916
16895
|
}
|
16917
16896
|
update(el, binding, vnode) {
|
16918
16897
|
const container = this.queue.find((item) => item.el === el);
|
16919
|
-
if (!container)
|
16920
|
-
return;
|
16898
|
+
if (!container) return;
|
16921
16899
|
container.update({ el, binding, vnode });
|
16922
16900
|
}
|
16923
16901
|
unbind(el) {
|
16924
16902
|
const container = this.queue.find((item) => item.el === el);
|
16925
|
-
if (!container)
|
16926
|
-
return;
|
16903
|
+
if (!container) return;
|
16927
16904
|
container.clear();
|
16928
16905
|
remove(this.queue, container);
|
16929
16906
|
}
|
@@ -17049,7 +17026,7 @@ const Lazyload = {
|
|
17049
17026
|
});
|
17050
17027
|
}
|
17051
17028
|
};
|
17052
|
-
const version = "4.9.
|
17029
|
+
const version = "4.9.6";
|
17053
17030
|
function install(app) {
|
17054
17031
|
const components = [
|
17055
17032
|
ActionBar,
|