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.es.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { unref, ref, reactive, inject, watch, onMounted, nextTick, createVNode, defineComponent, getCurrentInstance, computed, onActivated, onDeactivated, onBeforeUnmount, provide, watchEffect, mergeProps, Transition, withDirectives, vShow,
|
1
|
+
import { unref, ref, reactive, inject, watch, onMounted, nextTick, createVNode, defineComponent, getCurrentInstance, computed, onActivated, onDeactivated, onBeforeUnmount, provide, watchEffect, mergeProps, Transition, Teleport, withDirectives, vShow, Fragment, onBeforeUpdate, Comment, createTextVNode, onUnmounted, createApp, resolveDirective, withKeys, onUpdated, Text, h } from "vue";
|
2
2
|
import { useWindowSize, useRect, useChildren, useParent, onMountedOrActivated, getScrollParent, useEventListener, cancelRaf, raf, useScrollParent, usePageVisibility, doubleRaf, CUSTOM_FIELD_INJECTION_KEY, useCustomFieldValue, inBrowser as inBrowser$1, useToggle, useCountDown, useClickAway } from "@vant/use";
|
3
3
|
import { normalizeClass, stringifyStyle, normalizeStyle } from "@vue/shared";
|
4
4
|
import { offsetModifier, createPopper } from "@vant/popperjs";
|
@@ -1278,7 +1278,8 @@ const overlayProps = {
|
|
1278
1278
|
className: unknownProp,
|
1279
1279
|
lockScroll: truthProp,
|
1280
1280
|
lazyRender: truthProp,
|
1281
|
-
customStyle: Object
|
1281
|
+
customStyle: Object,
|
1282
|
+
teleport: [String, Object]
|
1282
1283
|
};
|
1283
1284
|
var stdin_default$1L = defineComponent({
|
1284
1285
|
name: name$1C,
|
@@ -1308,12 +1309,22 @@ var stdin_default$1L = defineComponent({
|
|
1308
1309
|
useEventListener("touchmove", onTouchMove, {
|
1309
1310
|
target: root
|
1310
1311
|
});
|
1311
|
-
return () =>
|
1312
|
-
|
1313
|
-
|
1314
|
-
|
1315
|
-
|
1316
|
-
|
1312
|
+
return () => {
|
1313
|
+
const Content = createVNode(Transition, {
|
1314
|
+
"name": "van-fade",
|
1315
|
+
"appear": true
|
1316
|
+
}, {
|
1317
|
+
default: renderOverlay
|
1318
|
+
});
|
1319
|
+
if (props2.teleport) {
|
1320
|
+
return createVNode(Teleport, {
|
1321
|
+
"to": props2.teleport
|
1322
|
+
}, {
|
1323
|
+
default: () => [Content]
|
1324
|
+
});
|
1325
|
+
}
|
1326
|
+
return Content;
|
1327
|
+
};
|
1317
1328
|
}
|
1318
1329
|
});
|
1319
1330
|
const Overlay = withInstall(stdin_default$1L);
|
@@ -1414,8 +1425,7 @@ var stdin_default$1K = defineComponent({
|
|
1414
1425
|
};
|
1415
1426
|
let timer2;
|
1416
1427
|
const onOpened = () => {
|
1417
|
-
if (timer2)
|
1418
|
-
clearTimeout(timer2);
|
1428
|
+
if (timer2) clearTimeout(timer2);
|
1419
1429
|
timer2 = setTimeout(() => {
|
1420
1430
|
emit("opened");
|
1421
1431
|
});
|
@@ -1664,12 +1674,10 @@ function getColumnsType(columns, fields) {
|
|
1664
1674
|
function findIndexOfEnabledOption(options, index) {
|
1665
1675
|
index = clamp(index, 0, options.length);
|
1666
1676
|
for (let i = index; i < options.length; i++) {
|
1667
|
-
if (!options[i].disabled)
|
1668
|
-
return i;
|
1677
|
+
if (!options[i].disabled) return i;
|
1669
1678
|
}
|
1670
1679
|
for (let i = index - 1; i >= 0; i--) {
|
1671
|
-
if (!options[i].disabled)
|
1672
|
-
return i;
|
1680
|
+
if (!options[i].disabled) return i;
|
1673
1681
|
}
|
1674
1682
|
return 0;
|
1675
1683
|
}
|
@@ -1882,8 +1890,7 @@ var stdin_default$1I = defineComponent({
|
|
1882
1890
|
const index = moving ? Math.floor(-currentOffset.value / props2.optionHeight) : props2.options.findIndex((option) => option[props2.fields.value] === props2.value);
|
1883
1891
|
const enabledIndex = findIndexOfEnabledOption(props2.options, index);
|
1884
1892
|
const offset = -enabledIndex * props2.optionHeight;
|
1885
|
-
if (moving && enabledIndex < index)
|
1886
|
-
stopMomentum();
|
1893
|
+
if (moving && enabledIndex < index) stopMomentum();
|
1887
1894
|
currentOffset.value = offset;
|
1888
1895
|
});
|
1889
1896
|
useEventListener("touchmove", onTouchMove, {
|
@@ -2407,8 +2414,7 @@ var stdin_default$1F = defineComponent({
|
|
2407
2414
|
let touchStartTime;
|
2408
2415
|
const onTouchStart = (event) => {
|
2409
2416
|
if (!props2.touchable || // avoid resetting position on multi-finger touch
|
2410
|
-
event.touches.length > 1)
|
2411
|
-
return;
|
2417
|
+
event.touches.length > 1) return;
|
2412
2418
|
touch.start(event);
|
2413
2419
|
dragging = false;
|
2414
2420
|
touchStartTime = Date.now();
|
@@ -2712,8 +2718,7 @@ var stdin_default$1D = defineComponent({
|
|
2712
2718
|
}
|
2713
2719
|
const title = titles[state.currentIndex].$el;
|
2714
2720
|
const to = title.offsetLeft - (nav.offsetWidth - title.offsetWidth) / 2;
|
2715
|
-
if (cancelScrollLeftToRaf)
|
2716
|
-
cancelScrollLeftToRaf();
|
2721
|
+
if (cancelScrollLeftToRaf) cancelScrollLeftToRaf();
|
2717
2722
|
cancelScrollLeftToRaf = scrollLeftTo(nav, to, immediate ? 0 : +props2.duration);
|
2718
2723
|
};
|
2719
2724
|
const setLine = () => {
|
@@ -2790,8 +2795,7 @@ var stdin_default$1D = defineComponent({
|
|
2790
2795
|
if (target && scroller.value) {
|
2791
2796
|
const to = getElementTop(target, scroller.value) - scrollOffset.value;
|
2792
2797
|
lockScroll = true;
|
2793
|
-
if (cancelScrollTopToRaf)
|
2794
|
-
cancelScrollTopToRaf();
|
2798
|
+
if (cancelScrollTopToRaf) cancelScrollTopToRaf();
|
2795
2799
|
cancelScrollTopToRaf = scrollTopTo(scroller.value, to, immediate ? 0 : +props2.duration, () => {
|
2796
2800
|
lockScroll = false;
|
2797
2801
|
});
|
@@ -4068,6 +4072,8 @@ const fieldSharedProps = {
|
|
4068
4072
|
autofocus: Boolean,
|
4069
4073
|
clearable: Boolean,
|
4070
4074
|
maxlength: numericProp,
|
4075
|
+
max: Number,
|
4076
|
+
min: Number,
|
4071
4077
|
formatter: Function,
|
4072
4078
|
clearIcon: makeStringProp("clear"),
|
4073
4079
|
modelValue: makeNumericProp(""),
|
@@ -4265,12 +4271,17 @@ var stdin_default$1v = defineComponent({
|
|
4265
4271
|
return value;
|
4266
4272
|
};
|
4267
4273
|
const updateValue = (value, trigger = "onChange") => {
|
4274
|
+
var _a, _b;
|
4268
4275
|
const originalValue = value;
|
4269
4276
|
value = limitValueLength(value);
|
4270
4277
|
const limitDiffLen = getStringLength(originalValue) - getStringLength(value);
|
4271
4278
|
if (props2.type === "number" || props2.type === "digit") {
|
4272
4279
|
const isNumber = props2.type === "number";
|
4273
4280
|
value = formatNumber(value, isNumber, isNumber);
|
4281
|
+
if (trigger === "onBlur" && value !== "") {
|
4282
|
+
const adjustedValue = clamp(+value, (_a = props2.min) != null ? _a : -Infinity, (_b = props2.max) != null ? _b : Infinity);
|
4283
|
+
value = adjustedValue.toString();
|
4284
|
+
}
|
4274
4285
|
}
|
4275
4286
|
let formatterDiffLen = 0;
|
4276
4287
|
if (props2.formatter && trigger === props2.formatTrigger) {
|
@@ -5702,12 +5713,10 @@ var stdin_default$1l = defineComponent({
|
|
5702
5713
|
} else {
|
5703
5714
|
emit("update:modelValue", newValue);
|
5704
5715
|
}
|
5705
|
-
if (props2.indeterminate !== null)
|
5706
|
-
emit("change", newValue);
|
5716
|
+
if (props2.indeterminate !== null) emit("change", newValue);
|
5707
5717
|
};
|
5708
5718
|
watch(() => props2.modelValue, (value) => {
|
5709
|
-
if (props2.indeterminate === null)
|
5710
|
-
emit("change", value);
|
5719
|
+
if (props2.indeterminate === null) emit("change", value);
|
5711
5720
|
});
|
5712
5721
|
useExpose({
|
5713
5722
|
toggle,
|
@@ -5923,15 +5932,12 @@ const modeType = {
|
|
5923
5932
|
observer: "observer"
|
5924
5933
|
};
|
5925
5934
|
function remove(arr, item) {
|
5926
|
-
if (!arr.length)
|
5927
|
-
return;
|
5935
|
+
if (!arr.length) return;
|
5928
5936
|
const index = arr.indexOf(item);
|
5929
|
-
if (index > -1)
|
5930
|
-
return arr.splice(index, 1);
|
5937
|
+
if (index > -1) return arr.splice(index, 1);
|
5931
5938
|
}
|
5932
5939
|
function getBestSelectionFromSrcset(el, scale) {
|
5933
|
-
if (el.tagName !== "IMG" || !el.getAttribute("data-srcset"))
|
5934
|
-
return;
|
5940
|
+
if (el.tagName !== "IMG" || !el.getAttribute("data-srcset")) return;
|
5935
5941
|
let options = el.getAttribute("data-srcset");
|
5936
5942
|
const container = el.parentNode;
|
5937
5943
|
const containerWidth = container.offsetWidth * scale;
|
@@ -5989,8 +5995,7 @@ function getBestSelectionFromSrcset(el, scale) {
|
|
5989
5995
|
}
|
5990
5996
|
const getDPR = (scale = 1) => inBrowser$1 ? window.devicePixelRatio || scale : scale;
|
5991
5997
|
function supportWebp() {
|
5992
|
-
if (!inBrowser$1)
|
5993
|
-
return false;
|
5998
|
+
if (!inBrowser$1) return false;
|
5994
5999
|
let support = true;
|
5995
6000
|
try {
|
5996
6001
|
const elem = document.createElement("canvas");
|
@@ -6058,8 +6063,7 @@ class ImageCache {
|
|
6058
6063
|
return this.caches.indexOf(key) > -1;
|
6059
6064
|
}
|
6060
6065
|
add(key) {
|
6061
|
-
if (this.has(key))
|
6062
|
-
return;
|
6066
|
+
if (this.has(key)) return;
|
6063
6067
|
this.caches.push(key);
|
6064
6068
|
if (this.caches.length > this.options.max) {
|
6065
6069
|
this.free();
|
@@ -6924,6 +6928,9 @@ var stdin_default$1d = defineComponent({
|
|
6924
6928
|
if (!Array.isArray(defaultDate)) {
|
6925
6929
|
defaultDate = [];
|
6926
6930
|
}
|
6931
|
+
if (defaultDate.length === 1 && compareDay(defaultDate[0], now) === 1) {
|
6932
|
+
defaultDate = [];
|
6933
|
+
}
|
6927
6934
|
const min = minDate.value;
|
6928
6935
|
const max = maxDate.value;
|
6929
6936
|
const start = limitDateRange(defaultDate[0] || now, min, max ? allowSameDay ? max : getPrevDay(max) : void 0);
|
@@ -7239,9 +7246,8 @@ var stdin_default$1d = defineComponent({
|
|
7239
7246
|
};
|
7240
7247
|
watch(() => props2.show, init);
|
7241
7248
|
watch(() => [props2.type, props2.minDate, props2.maxDate, props2.switchMode], () => reset(getInitialDate(currentDate.value)));
|
7242
|
-
watch(() => props2.defaultDate, (value
|
7243
|
-
|
7244
|
-
scrollToCurrentDate();
|
7249
|
+
watch(() => props2.defaultDate, (value) => {
|
7250
|
+
reset(value);
|
7245
7251
|
});
|
7246
7252
|
useExpose({
|
7247
7253
|
reset,
|
@@ -7766,8 +7772,7 @@ var stdin_default$1a = defineComponent({
|
|
7766
7772
|
updateTabs();
|
7767
7773
|
watch(activeTab, (value) => {
|
7768
7774
|
const el = selectedElementRefs.value[value];
|
7769
|
-
if (el)
|
7770
|
-
scrollIntoView(el);
|
7775
|
+
if (el) scrollIntoView(el);
|
7771
7776
|
});
|
7772
7777
|
watch(() => props2.options, updateTabs, {
|
7773
7778
|
deep: true
|
@@ -8051,8 +8056,7 @@ var stdin_default$17 = defineComponent({
|
|
8051
8056
|
return spaces2;
|
8052
8057
|
}
|
8053
8058
|
groups.value.forEach((group, index) => {
|
8054
|
-
if (index === groups.value.length - 1)
|
8055
|
-
return;
|
8059
|
+
if (index === groups.value.length - 1) return;
|
8056
8060
|
group.forEach(() => {
|
8057
8061
|
spaces2.push({
|
8058
8062
|
bottom
|
@@ -10140,8 +10144,7 @@ var stdin_default$S = defineComponent({
|
|
10140
10144
|
return style;
|
10141
10145
|
});
|
10142
10146
|
const updateState = () => {
|
10143
|
-
if (!show.value)
|
10144
|
-
return;
|
10147
|
+
if (!show.value) return;
|
10145
10148
|
const {
|
10146
10149
|
width,
|
10147
10150
|
height
|
@@ -10168,23 +10171,18 @@ var stdin_default$S = defineComponent({
|
|
10168
10171
|
const onTouchMove = (e) => {
|
10169
10172
|
e.preventDefault();
|
10170
10173
|
touch.move(e);
|
10171
|
-
if (props2.axis === "lock")
|
10172
|
-
return;
|
10174
|
+
if (props2.axis === "lock") return;
|
10173
10175
|
if (!touch.isTap.value) {
|
10174
10176
|
if (props2.axis === "x" || props2.axis === "xy") {
|
10175
10177
|
let nextX = prevX + touch.deltaX.value;
|
10176
|
-
if (nextX < boundary.value.left)
|
10177
|
-
|
10178
|
-
if (nextX > boundary.value.right)
|
10179
|
-
nextX = boundary.value.right;
|
10178
|
+
if (nextX < boundary.value.left) nextX = boundary.value.left;
|
10179
|
+
if (nextX > boundary.value.right) nextX = boundary.value.right;
|
10180
10180
|
state.value.x = nextX;
|
10181
10181
|
}
|
10182
10182
|
if (props2.axis === "y" || props2.axis === "xy") {
|
10183
10183
|
let nextY = prevY + touch.deltaY.value;
|
10184
|
-
if (nextY < boundary.value.top)
|
10185
|
-
|
10186
|
-
if (nextY > boundary.value.bottom)
|
10187
|
-
nextY = boundary.value.bottom;
|
10184
|
+
if (nextY < boundary.value.top) nextY = boundary.value.top;
|
10185
|
+
if (nextY > boundary.value.bottom) nextY = boundary.value.bottom;
|
10188
10186
|
state.value.y = nextY;
|
10189
10187
|
}
|
10190
10188
|
const offset = pick(state.value, ["x", "y"]);
|
@@ -10215,10 +10213,8 @@ var stdin_default$S = defineComponent({
|
|
10215
10213
|
});
|
10216
10214
|
};
|
10217
10215
|
const onClick = (e) => {
|
10218
|
-
if (touch.isTap.value)
|
10219
|
-
|
10220
|
-
else
|
10221
|
-
e.stopPropagation();
|
10216
|
+
if (touch.isTap.value) emit("click", e);
|
10217
|
+
else e.stopPropagation();
|
10222
10218
|
};
|
10223
10219
|
onMounted(() => {
|
10224
10220
|
updateState();
|
@@ -10327,8 +10323,7 @@ var stdin_default$R = defineComponent({
|
|
10327
10323
|
scrollTop
|
10328
10324
|
} = contentRef.value;
|
10329
10325
|
maxScroll = Math.max(maxScroll, scrollTop);
|
10330
|
-
if (!props2.contentDraggable)
|
10331
|
-
return;
|
10326
|
+
if (!props2.contentDraggable) return;
|
10332
10327
|
if (-startY < boundary.value.max) {
|
10333
10328
|
preventDefault(e, true);
|
10334
10329
|
} else if (!(scrollTop <= 0 && touch.deltaY.value > 0) || maxScroll > 0) {
|
@@ -10867,15 +10862,12 @@ var stdin_default$N = defineComponent({
|
|
10867
10862
|
const checkClose = (event) => {
|
10868
10863
|
var _a;
|
10869
10864
|
const swipeItemEl = (_a = swipeItem.value) == null ? void 0 : _a.$el;
|
10870
|
-
if (!swipeItemEl)
|
10871
|
-
return;
|
10865
|
+
if (!swipeItemEl) return;
|
10872
10866
|
const imageEl = swipeItemEl.firstElementChild;
|
10873
10867
|
const isClickOverlay = event.target === swipeItemEl;
|
10874
10868
|
const isClickImage = imageEl == null ? void 0 : imageEl.contains(event.target);
|
10875
|
-
if (!props2.closeOnClickImage && isClickImage)
|
10876
|
-
|
10877
|
-
if (!props2.closeOnClickOverlay && isClickOverlay)
|
10878
|
-
return;
|
10869
|
+
if (!props2.closeOnClickImage && isClickImage) return;
|
10870
|
+
if (!props2.closeOnClickOverlay && isClickOverlay) return;
|
10879
10871
|
emit("close");
|
10880
10872
|
};
|
10881
10873
|
const checkTap = (event) => {
|
@@ -12195,7 +12187,12 @@ var stdin_default$E = defineComponent({
|
|
12195
12187
|
extraKey
|
12196
12188
|
} = props2;
|
12197
12189
|
const extraKeys = Array.isArray(extraKey) ? extraKey : [extraKey];
|
12198
|
-
if (extraKeys.length ===
|
12190
|
+
if (extraKeys.length === 0) {
|
12191
|
+
keys2.push({
|
12192
|
+
text: 0,
|
12193
|
+
wider: true
|
12194
|
+
});
|
12195
|
+
} else if (extraKeys.length === 1) {
|
12199
12196
|
keys2.push({
|
12200
12197
|
text: 0,
|
12201
12198
|
wider: true
|
@@ -13121,8 +13118,7 @@ var stdin_default$y = defineComponent({
|
|
13121
13118
|
return props2.allowHalf ? 0.5 : 1;
|
13122
13119
|
};
|
13123
13120
|
const select = (value) => {
|
13124
|
-
if (unselectable.value || value === props2.modelValue)
|
13125
|
-
return;
|
13121
|
+
if (unselectable.value || value === props2.modelValue) return;
|
13126
13122
|
emit("update:modelValue", value);
|
13127
13123
|
emit("change", value);
|
13128
13124
|
};
|
@@ -13290,8 +13286,7 @@ var stdin_default$w = defineComponent({
|
|
13290
13286
|
setup(props2) {
|
13291
13287
|
const isCustomType = computed(() => Array.isArray(props2.textList) && props2.textList.length);
|
13292
13288
|
const itemLength = computed(() => {
|
13293
|
-
if (isCustomType.value)
|
13294
|
-
return props2.textList[0].length;
|
13289
|
+
if (isCustomType.value) return props2.textList[0].length;
|
13295
13290
|
return `${Math.max(props2.startNum, props2.targetNum)}`.length;
|
13296
13291
|
});
|
13297
13292
|
const getTextArrByIdx = (idx) => {
|
@@ -13302,8 +13297,7 @@ var stdin_default$w = defineComponent({
|
|
13302
13297
|
return result;
|
13303
13298
|
};
|
13304
13299
|
const targetNumArr = computed(() => {
|
13305
|
-
if (isCustomType.value)
|
13306
|
-
return new Array(itemLength.value).fill("");
|
13300
|
+
if (isCustomType.value) return new Array(itemLength.value).fill("");
|
13307
13301
|
return padZero(props2.targetNum, itemLength.value).split("");
|
13308
13302
|
});
|
13309
13303
|
const startNumArr = computed(() => padZero(props2.startNum, itemLength.value).split(""));
|
@@ -13325,8 +13319,7 @@ var stdin_default$w = defineComponent({
|
|
13325
13319
|
return result;
|
13326
13320
|
};
|
13327
13321
|
const getDelay = (i, len) => {
|
13328
|
-
if (props2.stopOrder === "ltr")
|
13329
|
-
return 0.2 * i;
|
13322
|
+
if (props2.stopOrder === "ltr") return 0.2 * i;
|
13330
13323
|
return 0.2 * (len - 1 - i);
|
13331
13324
|
};
|
13332
13325
|
const rolling = ref(props2.autoStart);
|
@@ -13713,8 +13706,7 @@ var stdin_default$r = defineComponent({
|
|
13713
13706
|
const canvasRef = ref();
|
13714
13707
|
const wrapRef = ref();
|
13715
13708
|
const ctx = computed(() => {
|
13716
|
-
if (!canvasRef.value)
|
13717
|
-
return null;
|
13709
|
+
if (!canvasRef.value) return null;
|
13718
13710
|
return canvasRef.value.getContext("2d");
|
13719
13711
|
});
|
13720
13712
|
const isRenderCanvas = inBrowser ? hasCanvasSupport() : true;
|
@@ -14960,8 +14952,7 @@ var stdin_default$c = defineComponent({
|
|
14960
14952
|
}
|
14961
14953
|
};
|
14962
14954
|
const onClick = (position = "outside", event) => {
|
14963
|
-
if (isInBeforeClosing)
|
14964
|
-
return;
|
14955
|
+
if (isInBeforeClosing) return;
|
14965
14956
|
emit("click", position);
|
14966
14957
|
if (opened && !lockClick2) {
|
14967
14958
|
isInBeforeClosing = true;
|
@@ -15241,14 +15232,12 @@ var stdin_default$9 = defineComponent({
|
|
15241
15232
|
let needRecalculate = false;
|
15242
15233
|
const actionText = computed(() => expanded.value ? props2.collapseText : props2.expandText);
|
15243
15234
|
const pxToNum = (value) => {
|
15244
|
-
if (!value)
|
15245
|
-
return 0;
|
15235
|
+
if (!value) return 0;
|
15246
15236
|
const match = value.match(/^\d*(\.\d*)?/);
|
15247
15237
|
return match ? Number(match[0]) : 0;
|
15248
15238
|
};
|
15249
15239
|
const cloneContainer = () => {
|
15250
|
-
if (!root.value || !root.value.isConnected)
|
15251
|
-
return;
|
15240
|
+
if (!root.value || !root.value.isConnected) return;
|
15252
15241
|
const originStyle = window.getComputedStyle(root.value);
|
15253
15242
|
const container = document.createElement("div");
|
15254
15243
|
const styleNames = Array.prototype.slice.apply(originStyle);
|
@@ -16305,8 +16294,7 @@ class ReactiveListener {
|
|
16305
16294
|
onFinish();
|
16306
16295
|
return;
|
16307
16296
|
}
|
16308
|
-
if (this.state.rendered && this.state.loaded)
|
16309
|
-
return;
|
16297
|
+
if (this.state.rendered && this.state.loaded) return;
|
16310
16298
|
if (this.imageCache.has(this.src)) {
|
16311
16299
|
this.state.loaded = true;
|
16312
16300
|
this.render("loaded", true);
|
@@ -16363,8 +16351,7 @@ class ReactiveListener {
|
|
16363
16351
|
state = "loaded";
|
16364
16352
|
time = (this.performanceData.loadEnd - this.performanceData.loadStart) / 1e3;
|
16365
16353
|
}
|
16366
|
-
if (this.state.error)
|
16367
|
-
state = "error";
|
16354
|
+
if (this.state.error) state = "error";
|
16368
16355
|
return {
|
16369
16356
|
src: this.src,
|
16370
16357
|
state,
|
@@ -16555,8 +16542,7 @@ function stdin_default$3() {
|
|
16555
16542
|
* @return
|
16556
16543
|
*/
|
16557
16544
|
remove(el) {
|
16558
|
-
if (!el)
|
16559
|
-
return;
|
16545
|
+
if (!el) return;
|
16560
16546
|
this.observer && this.observer.unobserve(el);
|
16561
16547
|
const existItem = this.listeners.find((item) => item.el === el);
|
16562
16548
|
if (existItem) {
|
@@ -16572,8 +16558,7 @@ function stdin_default$3() {
|
|
16572
16558
|
* @return
|
16573
16559
|
*/
|
16574
16560
|
removeComponent(vm) {
|
16575
|
-
if (!vm)
|
16576
|
-
return;
|
16561
|
+
if (!vm) return;
|
16577
16562
|
remove(this.listeners, vm);
|
16578
16563
|
this.observer && this.observer.unobserve(vm.el);
|
16579
16564
|
if (vm.$parent && vm.$el.parentNode) {
|
@@ -16612,8 +16597,7 @@ function stdin_default$3() {
|
|
16612
16597
|
* @return
|
16613
16598
|
*/
|
16614
16599
|
addListenerTarget(el) {
|
16615
|
-
if (!el)
|
16616
|
-
return;
|
16600
|
+
if (!el) return;
|
16617
16601
|
let target = this.targets.find((target2) => target2.el === el);
|
16618
16602
|
if (!target) {
|
16619
16603
|
target = {
|
@@ -16666,8 +16650,7 @@ function stdin_default$3() {
|
|
16666
16650
|
}
|
16667
16651
|
};
|
16668
16652
|
this.$on = (event, func) => {
|
16669
|
-
if (!this.Event.listeners[event])
|
16670
|
-
this.Event.listeners[event] = [];
|
16653
|
+
if (!this.Event.listeners[event]) this.Event.listeners[event] = [];
|
16671
16654
|
this.Event.listeners[event].push(func);
|
16672
16655
|
};
|
16673
16656
|
this.$once = (event, func) => {
|
@@ -16679,16 +16662,14 @@ function stdin_default$3() {
|
|
16679
16662
|
};
|
16680
16663
|
this.$off = (event, func) => {
|
16681
16664
|
if (!func) {
|
16682
|
-
if (!this.Event.listeners[event])
|
16683
|
-
return;
|
16665
|
+
if (!this.Event.listeners[event]) return;
|
16684
16666
|
this.Event.listeners[event].length = 0;
|
16685
16667
|
return;
|
16686
16668
|
}
|
16687
16669
|
remove(this.Event.listeners[event], func);
|
16688
16670
|
};
|
16689
16671
|
this.$emit = (event, context, inCache) => {
|
16690
|
-
if (!this.Event.listeners[event])
|
16691
|
-
return;
|
16672
|
+
if (!this.Event.listeners[event]) return;
|
16692
16673
|
this.Event.listeners[event].forEach((func) => func(context, inCache));
|
16693
16674
|
};
|
16694
16675
|
}
|
@@ -16703,8 +16684,7 @@ function stdin_default$3() {
|
|
16703
16684
|
freeList.push(listener);
|
16704
16685
|
}
|
16705
16686
|
const catIn = listener.checkInView();
|
16706
|
-
if (!catIn)
|
16707
|
-
return;
|
16687
|
+
if (!catIn) return;
|
16708
16688
|
listener.load();
|
16709
16689
|
});
|
16710
16690
|
freeList.forEach((item) => {
|
@@ -16756,8 +16736,7 @@ function stdin_default$3() {
|
|
16756
16736
|
* @return
|
16757
16737
|
*/
|
16758
16738
|
elRenderer(listener, state, cache) {
|
16759
|
-
if (!listener.el)
|
16760
|
-
return;
|
16739
|
+
if (!listener.el) return;
|
16761
16740
|
const { el, bindType } = listener;
|
16762
16741
|
let src;
|
16763
16742
|
switch (state) {
|
@@ -16914,14 +16893,12 @@ class LazyContainerManager {
|
|
16914
16893
|
}
|
16915
16894
|
update(el, binding, vnode) {
|
16916
16895
|
const container = this.queue.find((item) => item.el === el);
|
16917
|
-
if (!container)
|
16918
|
-
return;
|
16896
|
+
if (!container) return;
|
16919
16897
|
container.update({ el, binding, vnode });
|
16920
16898
|
}
|
16921
16899
|
unbind(el) {
|
16922
16900
|
const container = this.queue.find((item) => item.el === el);
|
16923
|
-
if (!container)
|
16924
|
-
return;
|
16901
|
+
if (!container) return;
|
16925
16902
|
container.clear();
|
16926
16903
|
remove(this.queue, container);
|
16927
16904
|
}
|
@@ -17047,7 +17024,7 @@ const Lazyload = {
|
|
17047
17024
|
});
|
17048
17025
|
}
|
17049
17026
|
};
|
17050
|
-
const version = "4.9.
|
17027
|
+
const version = "4.9.6";
|
17051
17028
|
function install(app) {
|
17052
17029
|
const components = [
|
17053
17030
|
ActionBar,
|