vant 4.4.0 → 4.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/action-bar/ActionBar.d.ts +1 -1
- package/es/action-bar/index.d.ts +1 -1
- package/es/action-bar-button/ActionBarButton.d.ts +1 -1
- package/es/action-bar-button/index.d.ts +1 -1
- package/es/action-bar-icon/ActionBarIcon.d.ts +1 -1
- package/es/action-bar-icon/index.d.ts +1 -1
- package/es/action-sheet/ActionSheet.d.ts +1 -1
- package/es/action-sheet/index.d.ts +1 -1
- package/es/address-edit/AddressEdit.d.ts +1 -1
- package/es/address-edit/AddressEditDetail.d.ts +1 -1
- package/es/address-edit/index.d.ts +1 -1
- package/es/address-list/AddressList.d.ts +1 -1
- package/es/address-list/AddressListItem.d.ts +1 -1
- package/es/address-list/index.d.ts +1 -1
- package/es/area/Area.d.ts +1 -1
- package/es/area/index.d.ts +1 -1
- package/es/back-top/BackTop.d.ts +1 -1
- package/es/back-top/index.d.ts +1 -1
- package/es/badge/Badge.d.ts +1 -1
- package/es/badge/index.d.ts +1 -1
- package/es/barrage/Barrage.d.ts +1 -1
- package/es/barrage/index.d.ts +1 -1
- package/es/button/Button.d.ts +1 -1
- package/es/button/index.d.ts +1 -1
- package/es/calendar/Calendar.d.ts +1 -1
- package/es/calendar/CalendarDay.d.ts +1 -1
- package/es/calendar/CalendarHeader.d.ts +1 -1
- package/es/calendar/CalendarMonth.d.ts +1 -1
- package/es/calendar/index.d.ts +1 -1
- package/es/card/Card.d.ts +1 -1
- package/es/card/index.d.ts +1 -1
- package/es/cascader/Cascader.d.ts +1 -1
- package/es/cascader/index.d.ts +1 -1
- package/es/cell/Cell.d.ts +1 -1
- package/es/cell/index.d.ts +1 -1
- package/es/cell-group/CellGroup.d.ts +1 -1
- package/es/cell-group/index.d.ts +1 -1
- package/es/checkbox/Checkbox.d.ts +1 -1
- package/es/checkbox/Checker.d.ts +1 -1
- package/es/checkbox/index.d.ts +1 -1
- package/es/checkbox-group/CheckboxGroup.d.ts +1 -1
- package/es/checkbox-group/index.d.ts +1 -1
- package/es/circle/Circle.d.ts +1 -1
- package/es/circle/index.d.ts +1 -1
- package/es/col/Col.d.ts +1 -1
- package/es/col/index.d.ts +1 -1
- package/es/collapse/Collapse.d.ts +1 -1
- package/es/collapse/index.d.ts +1 -1
- package/es/collapse-item/CollapseItem.d.ts +1 -1
- package/es/collapse-item/index.d.ts +1 -1
- package/es/config-provider/ConfigProvider.d.ts +1 -1
- package/es/config-provider/index.d.ts +1 -1
- package/es/contact-card/ContactCard.d.ts +1 -1
- package/es/contact-card/index.d.ts +1 -1
- package/es/contact-edit/ContactEdit.d.ts +1 -1
- package/es/contact-edit/index.d.ts +1 -1
- package/es/contact-list/ContactList.d.ts +1 -1
- package/es/contact-list/index.d.ts +1 -1
- package/es/count-down/CountDown.d.ts +1 -1
- package/es/count-down/index.d.ts +1 -1
- package/es/coupon/Coupon.d.ts +1 -1
- package/es/coupon/index.d.ts +1 -1
- package/es/coupon-cell/CouponCell.d.ts +1 -1
- package/es/coupon-cell/index.d.ts +1 -1
- package/es/coupon-list/CouponList.d.ts +1 -1
- package/es/coupon-list/index.d.ts +1 -1
- package/es/date-picker/DatePicker.d.ts +1 -1
- package/es/date-picker/index.d.ts +1 -1
- package/es/dialog/Dialog.d.ts +1 -1
- package/es/dialog/index.d.ts +1 -1
- package/es/divider/Divider.d.ts +1 -1
- package/es/divider/index.d.ts +1 -1
- package/es/dropdown-item/DropdownItem.d.ts +1 -1
- package/es/dropdown-item/index.d.ts +1 -1
- package/es/dropdown-menu/DropdownMenu.d.ts +1 -1
- package/es/dropdown-menu/index.d.ts +1 -1
- package/es/empty/Empty.d.ts +1 -1
- package/es/empty/index.d.ts +1 -1
- package/es/field/Field.d.ts +1 -1
- package/es/field/index.d.ts +1 -1
- package/es/form/Form.d.ts +1 -1
- package/es/form/index.d.ts +1 -1
- package/es/grid/Grid.d.ts +1 -1
- package/es/grid/index.d.ts +1 -1
- package/es/grid-item/GridItem.d.ts +1 -1
- package/es/grid-item/index.d.ts +1 -1
- package/es/icon/Icon.d.ts +1 -1
- package/es/icon/index.d.ts +1 -1
- package/es/image/Image.d.ts +1 -1
- package/es/image/index.d.ts +1 -1
- package/es/image-preview/ImagePreview.d.ts +1 -1
- package/es/image-preview/ImagePreviewItem.d.ts +1 -1
- package/es/image-preview/ImagePreviewItem.mjs +9 -3
- package/es/image-preview/index.d.ts +1 -1
- package/es/index-anchor/IndexAnchor.d.ts +1 -1
- package/es/index-anchor/index.d.ts +1 -1
- package/es/index-bar/IndexBar.d.ts +1 -1
- package/es/index-bar/index.d.ts +1 -1
- package/es/index.d.ts +1 -1
- package/es/index.mjs +1 -1
- package/es/list/List.d.ts +1 -1
- package/es/list/index.d.ts +1 -1
- package/es/loading/Loading.d.ts +1 -1
- package/es/loading/index.d.ts +1 -1
- package/es/nav-bar/NavBar.d.ts +1 -1
- package/es/nav-bar/index.d.ts +1 -1
- package/es/notice-bar/NoticeBar.d.ts +1 -1
- package/es/notice-bar/index.d.ts +1 -1
- package/es/notify/Notify.d.ts +1 -1
- package/es/notify/index.d.ts +1 -1
- package/es/number-keyboard/NumberKeyboard.d.ts +1 -1
- package/es/number-keyboard/NumberKeyboardKey.d.ts +1 -1
- package/es/number-keyboard/index.d.ts +1 -1
- package/es/overlay/Overlay.d.ts +1 -1
- package/es/overlay/index.d.ts +1 -1
- package/es/pagination/Pagination.d.ts +1 -1
- package/es/pagination/index.d.ts +1 -1
- package/es/password-input/PasswordInput.d.ts +1 -1
- package/es/password-input/index.d.ts +1 -1
- package/es/picker/Picker.d.ts +1 -1
- package/es/picker/PickerColumn.d.ts +1 -1
- package/es/picker/PickerToolbar.d.ts +1 -1
- package/es/picker/index.d.ts +1 -1
- package/es/picker-group/PickerGroup.d.ts +1 -1
- package/es/picker-group/index.d.ts +1 -1
- package/es/popover/Popover.d.ts +15 -2
- package/es/popover/Popover.mjs +9 -4
- package/es/popover/index.css +1 -1
- package/es/popover/index.d.ts +10 -1
- package/es/popover/types.d.ts +1 -0
- package/es/popup/Popup.d.ts +1 -1
- package/es/popup/Popup.mjs +8 -1
- package/es/popup/index.d.ts +1 -1
- package/es/progress/Progress.d.ts +1 -1
- package/es/progress/index.d.ts +1 -1
- package/es/pull-refresh/PullRefresh.d.ts +1 -1
- package/es/pull-refresh/index.d.ts +1 -1
- package/es/radio/Radio.d.ts +1 -1
- package/es/radio/index.d.ts +1 -1
- package/es/radio-group/RadioGroup.d.ts +1 -1
- package/es/radio-group/index.d.ts +1 -1
- package/es/rate/Rate.d.ts +1 -1
- package/es/rate/index.d.ts +1 -1
- package/es/row/Row.d.ts +1 -1
- package/es/row/index.d.ts +1 -1
- package/es/search/Search.d.ts +1 -1
- package/es/search/index.d.ts +1 -1
- package/es/share-sheet/ShareSheet.d.ts +1 -1
- package/es/share-sheet/index.d.ts +1 -1
- package/es/sidebar/Sidebar.d.ts +1 -1
- package/es/sidebar/index.d.ts +1 -1
- package/es/sidebar-item/SidebarItem.d.ts +1 -1
- package/es/sidebar-item/index.d.ts +1 -1
- package/es/signature/Signature.d.ts +1 -1
- package/es/signature/index.d.ts +1 -1
- package/es/skeleton/Skeleton.d.ts +1 -1
- package/es/skeleton/index.d.ts +1 -1
- package/es/skeleton-avatar/SkeletonAvatar.d.ts +1 -1
- package/es/skeleton-avatar/index.d.ts +1 -1
- package/es/skeleton-image/SkeletonImage.d.ts +1 -1
- package/es/skeleton-image/index.d.ts +1 -1
- package/es/skeleton-paragraph/SkeletonParagraph.d.ts +1 -1
- package/es/skeleton-paragraph/index.d.ts +1 -1
- package/es/skeleton-title/SkeletonTitle.d.ts +1 -1
- package/es/skeleton-title/index.d.ts +1 -1
- package/es/slider/Slider.d.ts +1 -1
- package/es/slider/Slider.mjs +10 -5
- package/es/slider/index.d.ts +1 -1
- package/es/space/Space.d.ts +1 -1
- package/es/space/index.d.ts +1 -1
- package/es/step/Step.d.ts +1 -1
- package/es/step/index.d.ts +1 -1
- package/es/stepper/Stepper.d.ts +1 -1
- package/es/stepper/index.d.ts +1 -1
- package/es/steps/Steps.d.ts +1 -1
- package/es/steps/index.d.ts +1 -1
- package/es/sticky/Sticky.d.ts +1 -1
- package/es/sticky/index.d.ts +1 -1
- package/es/submit-bar/SubmitBar.d.ts +1 -1
- package/es/submit-bar/index.d.ts +1 -1
- package/es/swipe/Swipe.d.ts +1 -1
- package/es/swipe/index.d.ts +1 -1
- package/es/swipe-cell/SwipeCell.d.ts +1 -1
- package/es/swipe-cell/index.d.ts +1 -1
- package/es/swipe-item/SwipeItem.d.ts +1 -1
- package/es/swipe-item/index.d.ts +1 -1
- package/es/switch/Switch.d.ts +1 -1
- package/es/switch/index.d.ts +1 -1
- package/es/tab/Tab.d.ts +1 -1
- package/es/tab/Tab.mjs +14 -3
- package/es/tab/TabTitle.d.ts +1 -1
- package/es/tab/index.d.ts +1 -1
- package/es/tabbar/Tabbar.d.ts +1 -1
- package/es/tabbar/index.d.ts +1 -1
- package/es/tabbar-item/TabbarItem.d.ts +1 -1
- package/es/tabbar-item/index.d.ts +1 -1
- package/es/tabs/Tabs.d.ts +1 -1
- package/es/tabs/TabsContent.d.ts +1 -1
- package/es/tabs/index.d.ts +1 -1
- package/es/tag/Tag.d.ts +1 -1
- package/es/tag/index.d.ts +1 -1
- package/es/text-ellipsis/TextEllipsis.d.ts +1 -1
- package/es/text-ellipsis/index.d.ts +1 -1
- package/es/time-picker/TimePicker.d.ts +1 -1
- package/es/time-picker/index.d.ts +1 -1
- package/es/toast/Toast.d.ts +1 -1
- package/es/toast/index.d.ts +1 -1
- package/es/tree-select/TreeSelect.d.ts +1 -1
- package/es/tree-select/index.d.ts +1 -1
- package/es/uploader/Uploader.d.ts +1 -1
- package/es/uploader/UploaderPreviewItem.d.ts +1 -1
- package/es/uploader/index.d.ts +1 -1
- package/es/utils/constant.d.ts +1 -0
- package/es/utils/constant.mjs +2 -0
- package/es/utils/mount-component.d.ts +1 -1
- package/es/watermark/Watermark.d.ts +1 -1
- package/es/watermark/index.d.ts +1 -1
- package/lib/action-bar/ActionBar.d.ts +1 -1
- package/lib/action-bar/index.d.ts +1 -1
- package/lib/action-bar-button/ActionBarButton.d.ts +1 -1
- package/lib/action-bar-button/index.d.ts +1 -1
- package/lib/action-bar-icon/ActionBarIcon.d.ts +1 -1
- package/lib/action-bar-icon/index.d.ts +1 -1
- package/lib/action-sheet/ActionSheet.d.ts +1 -1
- package/lib/action-sheet/index.d.ts +1 -1
- package/lib/address-edit/AddressEdit.d.ts +1 -1
- package/lib/address-edit/AddressEditDetail.d.ts +1 -1
- package/lib/address-edit/index.d.ts +1 -1
- package/lib/address-list/AddressList.d.ts +1 -1
- package/lib/address-list/AddressListItem.d.ts +1 -1
- package/lib/address-list/index.d.ts +1 -1
- package/lib/area/Area.d.ts +1 -1
- package/lib/area/index.d.ts +1 -1
- package/lib/back-top/BackTop.d.ts +1 -1
- package/lib/back-top/index.d.ts +1 -1
- package/lib/badge/Badge.d.ts +1 -1
- package/lib/badge/index.d.ts +1 -1
- package/lib/barrage/Barrage.d.ts +1 -1
- package/lib/barrage/index.d.ts +1 -1
- package/lib/button/Button.d.ts +1 -1
- package/lib/button/index.d.ts +1 -1
- package/lib/calendar/Calendar.d.ts +1 -1
- package/lib/calendar/CalendarDay.d.ts +1 -1
- package/lib/calendar/CalendarHeader.d.ts +1 -1
- package/lib/calendar/CalendarMonth.d.ts +1 -1
- package/lib/calendar/index.d.ts +1 -1
- package/lib/card/Card.d.ts +1 -1
- package/lib/card/index.d.ts +1 -1
- package/lib/cascader/Cascader.d.ts +1 -1
- package/lib/cascader/index.d.ts +1 -1
- package/lib/cell/Cell.d.ts +1 -1
- package/lib/cell/index.d.ts +1 -1
- package/lib/cell-group/CellGroup.d.ts +1 -1
- package/lib/cell-group/index.d.ts +1 -1
- package/lib/checkbox/Checkbox.d.ts +1 -1
- package/lib/checkbox/Checker.d.ts +1 -1
- package/lib/checkbox/index.d.ts +1 -1
- package/lib/checkbox-group/CheckboxGroup.d.ts +1 -1
- package/lib/checkbox-group/index.d.ts +1 -1
- package/lib/circle/Circle.d.ts +1 -1
- package/lib/circle/index.d.ts +1 -1
- package/lib/col/Col.d.ts +1 -1
- package/lib/col/index.d.ts +1 -1
- package/lib/collapse/Collapse.d.ts +1 -1
- package/lib/collapse/index.d.ts +1 -1
- package/lib/collapse-item/CollapseItem.d.ts +1 -1
- package/lib/collapse-item/index.d.ts +1 -1
- package/lib/config-provider/ConfigProvider.d.ts +1 -1
- package/lib/config-provider/index.d.ts +1 -1
- package/lib/contact-card/ContactCard.d.ts +1 -1
- package/lib/contact-card/index.d.ts +1 -1
- package/lib/contact-edit/ContactEdit.d.ts +1 -1
- package/lib/contact-edit/index.d.ts +1 -1
- package/lib/contact-list/ContactList.d.ts +1 -1
- package/lib/contact-list/index.d.ts +1 -1
- package/lib/count-down/CountDown.d.ts +1 -1
- package/lib/count-down/index.d.ts +1 -1
- package/lib/coupon/Coupon.d.ts +1 -1
- package/lib/coupon/index.d.ts +1 -1
- package/lib/coupon-cell/CouponCell.d.ts +1 -1
- package/lib/coupon-cell/index.d.ts +1 -1
- package/lib/coupon-list/CouponList.d.ts +1 -1
- package/lib/coupon-list/index.d.ts +1 -1
- package/lib/date-picker/DatePicker.d.ts +1 -1
- package/lib/date-picker/index.d.ts +1 -1
- package/lib/dialog/Dialog.d.ts +1 -1
- package/lib/dialog/index.d.ts +1 -1
- package/lib/divider/Divider.d.ts +1 -1
- package/lib/divider/index.d.ts +1 -1
- package/lib/dropdown-item/DropdownItem.d.ts +1 -1
- package/lib/dropdown-item/index.d.ts +1 -1
- package/lib/dropdown-menu/DropdownMenu.d.ts +1 -1
- package/lib/dropdown-menu/index.d.ts +1 -1
- package/lib/empty/Empty.d.ts +1 -1
- package/lib/empty/index.d.ts +1 -1
- package/lib/field/Field.d.ts +1 -1
- package/lib/field/index.d.ts +1 -1
- package/lib/form/Form.d.ts +1 -1
- package/lib/form/index.d.ts +1 -1
- package/lib/grid/Grid.d.ts +1 -1
- package/lib/grid/index.d.ts +1 -1
- package/lib/grid-item/GridItem.d.ts +1 -1
- package/lib/grid-item/index.d.ts +1 -1
- package/lib/icon/Icon.d.ts +1 -1
- package/lib/icon/index.d.ts +1 -1
- package/lib/image/Image.d.ts +1 -1
- package/lib/image/index.d.ts +1 -1
- package/lib/image-preview/ImagePreview.d.ts +1 -1
- package/lib/image-preview/ImagePreviewItem.d.ts +1 -1
- package/lib/image-preview/ImagePreviewItem.js +8 -2
- package/lib/image-preview/index.d.ts +1 -1
- package/lib/index-anchor/IndexAnchor.d.ts +1 -1
- package/lib/index-anchor/index.d.ts +1 -1
- package/lib/index-bar/IndexBar.d.ts +1 -1
- package/lib/index-bar/index.d.ts +1 -1
- package/lib/index.css +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/list/List.d.ts +1 -1
- package/lib/list/index.d.ts +1 -1
- package/lib/loading/Loading.d.ts +1 -1
- package/lib/loading/index.d.ts +1 -1
- package/lib/nav-bar/NavBar.d.ts +1 -1
- package/lib/nav-bar/index.d.ts +1 -1
- package/lib/notice-bar/NoticeBar.d.ts +1 -1
- package/lib/notice-bar/index.d.ts +1 -1
- package/lib/notify/Notify.d.ts +1 -1
- package/lib/notify/index.d.ts +1 -1
- package/lib/number-keyboard/NumberKeyboard.d.ts +1 -1
- package/lib/number-keyboard/NumberKeyboardKey.d.ts +1 -1
- package/lib/number-keyboard/index.d.ts +1 -1
- package/lib/overlay/Overlay.d.ts +1 -1
- package/lib/overlay/index.d.ts +1 -1
- package/lib/pagination/Pagination.d.ts +1 -1
- package/lib/pagination/index.d.ts +1 -1
- package/lib/password-input/PasswordInput.d.ts +1 -1
- package/lib/password-input/index.d.ts +1 -1
- package/lib/picker/Picker.d.ts +1 -1
- package/lib/picker/PickerColumn.d.ts +1 -1
- package/lib/picker/PickerToolbar.d.ts +1 -1
- package/lib/picker/index.d.ts +1 -1
- package/lib/picker-group/PickerGroup.d.ts +1 -1
- package/lib/picker-group/index.d.ts +1 -1
- package/lib/popover/Popover.d.ts +15 -2
- package/lib/popover/Popover.js +8 -3
- package/lib/popover/index.css +1 -1
- package/lib/popover/index.d.ts +10 -1
- package/lib/popover/types.d.ts +1 -0
- package/lib/popup/Popup.d.ts +1 -1
- package/lib/popup/Popup.js +8 -1
- package/lib/popup/index.d.ts +1 -1
- package/lib/progress/Progress.d.ts +1 -1
- package/lib/progress/index.d.ts +1 -1
- package/lib/pull-refresh/PullRefresh.d.ts +1 -1
- package/lib/pull-refresh/index.d.ts +1 -1
- package/lib/radio/Radio.d.ts +1 -1
- package/lib/radio/index.d.ts +1 -1
- package/lib/radio-group/RadioGroup.d.ts +1 -1
- package/lib/radio-group/index.d.ts +1 -1
- package/lib/rate/Rate.d.ts +1 -1
- package/lib/rate/index.d.ts +1 -1
- package/lib/row/Row.d.ts +1 -1
- package/lib/row/index.d.ts +1 -1
- package/lib/search/Search.d.ts +1 -1
- package/lib/search/index.d.ts +1 -1
- package/lib/share-sheet/ShareSheet.d.ts +1 -1
- package/lib/share-sheet/index.d.ts +1 -1
- package/lib/sidebar/Sidebar.d.ts +1 -1
- package/lib/sidebar/index.d.ts +1 -1
- package/lib/sidebar-item/SidebarItem.d.ts +1 -1
- package/lib/sidebar-item/index.d.ts +1 -1
- package/lib/signature/Signature.d.ts +1 -1
- package/lib/signature/index.d.ts +1 -1
- package/lib/skeleton/Skeleton.d.ts +1 -1
- package/lib/skeleton/index.d.ts +1 -1
- package/lib/skeleton-avatar/SkeletonAvatar.d.ts +1 -1
- package/lib/skeleton-avatar/index.d.ts +1 -1
- package/lib/skeleton-image/SkeletonImage.d.ts +1 -1
- package/lib/skeleton-image/index.d.ts +1 -1
- package/lib/skeleton-paragraph/SkeletonParagraph.d.ts +1 -1
- package/lib/skeleton-paragraph/index.d.ts +1 -1
- package/lib/skeleton-title/SkeletonTitle.d.ts +1 -1
- package/lib/skeleton-title/index.d.ts +1 -1
- package/lib/slider/Slider.d.ts +1 -1
- package/lib/slider/Slider.js +10 -5
- package/lib/slider/index.d.ts +1 -1
- package/lib/space/Space.d.ts +1 -1
- package/lib/space/index.d.ts +1 -1
- package/lib/step/Step.d.ts +1 -1
- package/lib/step/index.d.ts +1 -1
- package/lib/stepper/Stepper.d.ts +1 -1
- package/lib/stepper/index.d.ts +1 -1
- package/lib/steps/Steps.d.ts +1 -1
- package/lib/steps/index.d.ts +1 -1
- package/lib/sticky/Sticky.d.ts +1 -1
- package/lib/sticky/index.d.ts +1 -1
- package/lib/submit-bar/SubmitBar.d.ts +1 -1
- package/lib/submit-bar/index.d.ts +1 -1
- package/lib/swipe/Swipe.d.ts +1 -1
- package/lib/swipe/index.d.ts +1 -1
- package/lib/swipe-cell/SwipeCell.d.ts +1 -1
- package/lib/swipe-cell/index.d.ts +1 -1
- package/lib/swipe-item/SwipeItem.d.ts +1 -1
- package/lib/swipe-item/index.d.ts +1 -1
- package/lib/switch/Switch.d.ts +1 -1
- package/lib/switch/index.d.ts +1 -1
- package/lib/tab/Tab.d.ts +1 -1
- package/lib/tab/Tab.js +13 -2
- package/lib/tab/TabTitle.d.ts +1 -1
- package/lib/tab/index.d.ts +1 -1
- package/lib/tabbar/Tabbar.d.ts +1 -1
- package/lib/tabbar/index.d.ts +1 -1
- package/lib/tabbar-item/TabbarItem.d.ts +1 -1
- package/lib/tabbar-item/index.d.ts +1 -1
- package/lib/tabs/Tabs.d.ts +1 -1
- package/lib/tabs/TabsContent.d.ts +1 -1
- package/lib/tabs/index.d.ts +1 -1
- package/lib/tag/Tag.d.ts +1 -1
- package/lib/tag/index.d.ts +1 -1
- package/lib/text-ellipsis/TextEllipsis.d.ts +1 -1
- package/lib/text-ellipsis/index.d.ts +1 -1
- package/lib/time-picker/TimePicker.d.ts +1 -1
- package/lib/time-picker/index.d.ts +1 -1
- package/lib/toast/Toast.d.ts +1 -1
- package/lib/toast/index.d.ts +1 -1
- package/lib/tree-select/TreeSelect.d.ts +1 -1
- package/lib/tree-select/index.d.ts +1 -1
- package/lib/uploader/Uploader.d.ts +1 -1
- package/lib/uploader/UploaderPreviewItem.d.ts +1 -1
- package/lib/uploader/index.d.ts +1 -1
- package/lib/utils/constant.d.ts +1 -0
- package/lib/utils/constant.js +2 -0
- package/lib/utils/mount-component.d.ts +1 -1
- package/lib/vant.cjs.js +49 -14
- package/lib/vant.es.js +50 -15
- package/lib/vant.js +74 -14
- package/lib/vant.min.js +1 -1
- package/lib/watermark/Watermark.d.ts +1 -1
- package/lib/watermark/index.d.ts +1 -1
- package/lib/web-types.json +1 -1
- package/package.json +5 -4
package/lib/vant.cjs.js
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
3
3
|
const vue = require("vue");
|
4
4
|
const use = require("@vant/use");
|
5
|
+
const shared = require("@vue/shared");
|
5
6
|
const popperjs = require("@vant/popperjs");
|
6
7
|
const isDef = (val) => val !== void 0 && val !== null;
|
7
8
|
const isFunction = (val) => typeof val === "function";
|
@@ -364,6 +365,7 @@ function createNamespace(name2) {
|
|
364
365
|
const BORDER = "van-hairline";
|
365
366
|
const BORDER_TOP = `${BORDER}--top`;
|
366
367
|
const BORDER_LEFT = `${BORDER}--left`;
|
368
|
+
const BORDER_RIGHT = `${BORDER}--right`;
|
367
369
|
const BORDER_BOTTOM = `${BORDER}--bottom`;
|
368
370
|
const BORDER_SURROUND = `${BORDER}--surround`;
|
369
371
|
const BORDER_TOP_BOTTOM = `${BORDER}--top-bottom`;
|
@@ -1339,7 +1341,14 @@ var stdin_default$1F = vue.defineComponent({
|
|
1339
1341
|
}, null);
|
1340
1342
|
}
|
1341
1343
|
};
|
1342
|
-
|
1344
|
+
let timer2;
|
1345
|
+
const onOpened = () => {
|
1346
|
+
if (timer2)
|
1347
|
+
clearTimeout(timer2);
|
1348
|
+
timer2 = setTimeout(() => {
|
1349
|
+
emit("opened");
|
1350
|
+
});
|
1351
|
+
};
|
1343
1352
|
const onClosed = () => emit("closed");
|
1344
1353
|
const onKeydown = (event) => emit("keydown", event);
|
1345
1354
|
const renderPopup = lazyRender(() => {
|
@@ -3073,12 +3082,22 @@ var stdin_default$1w = vue.defineComponent({
|
|
3073
3082
|
}
|
3074
3083
|
return isActive;
|
3075
3084
|
});
|
3085
|
+
const parsedClass = vue.ref("");
|
3086
|
+
const parsedStyle = vue.ref("");
|
3087
|
+
vue.watchEffect(() => {
|
3088
|
+
const {
|
3089
|
+
titleClass,
|
3090
|
+
titleStyle
|
3091
|
+
} = props;
|
3092
|
+
parsedClass.value = titleClass ? vue.normalizeClass(titleClass) : "";
|
3093
|
+
parsedStyle.value = titleStyle && typeof titleStyle !== "string" ? shared.stringifyStyle(vue.normalizeStyle(titleStyle)) : titleStyle;
|
3094
|
+
});
|
3076
3095
|
const renderTitle = (onClickTab) => vue.createVNode(TabTitle, vue.mergeProps({
|
3077
3096
|
"key": id,
|
3078
3097
|
"id": `${parent.id}-${index.value}`,
|
3079
3098
|
"ref": parent.setTitleRefs(index.value),
|
3080
|
-
"style":
|
3081
|
-
"class":
|
3099
|
+
"style": parsedStyle.value,
|
3100
|
+
"class": parsedClass.value,
|
3082
3101
|
"isActive": active.value,
|
3083
3102
|
"controls": id,
|
3084
3103
|
"scrollable": parent.scrollable.value,
|
@@ -9830,6 +9849,7 @@ var stdin_default$L = vue.defineComponent({
|
|
9830
9849
|
moveY: 0,
|
9831
9850
|
moving: false,
|
9832
9851
|
zooming: false,
|
9852
|
+
initializing: false,
|
9833
9853
|
imageRatio: 0
|
9834
9854
|
});
|
9835
9855
|
const touch = useTouch();
|
@@ -9844,10 +9864,11 @@ var stdin_default$L = vue.defineComponent({
|
|
9844
9864
|
moveX,
|
9845
9865
|
moveY,
|
9846
9866
|
moving,
|
9847
|
-
zooming
|
9867
|
+
zooming,
|
9868
|
+
initializing
|
9848
9869
|
} = state;
|
9849
9870
|
const style = {
|
9850
|
-
transitionDuration: zooming || moving ? "0s" : ".3s"
|
9871
|
+
transitionDuration: zooming || moving || initializing ? "0s" : ".3s"
|
9851
9872
|
};
|
9852
9873
|
if (scale !== 1 || isLongImage.value) {
|
9853
9874
|
style.transform = `matrix(${scale}, 0, 0, ${scale}, ${moveX}, ${moveY})`;
|
@@ -10047,6 +10068,10 @@ var stdin_default$L = vue.defineComponent({
|
|
10047
10068
|
if (isLongImage.value) {
|
10048
10069
|
initialMoveY = (imageRatio * rootWidth - rootHeight) / 2;
|
10049
10070
|
state.moveY = initialMoveY;
|
10071
|
+
state.initializing = true;
|
10072
|
+
use.raf(() => {
|
10073
|
+
state.initializing = false;
|
10074
|
+
});
|
10050
10075
|
}
|
10051
10076
|
resetScale();
|
10052
10077
|
};
|
@@ -11627,6 +11652,7 @@ const popoverProps = {
|
|
11627
11652
|
theme: makeStringProp("light"),
|
11628
11653
|
overlay: Boolean,
|
11629
11654
|
actions: makeArrayProp(),
|
11655
|
+
actionsDirection: makeStringProp("vertical"),
|
11630
11656
|
trigger: makeStringProp("click"),
|
11631
11657
|
duration: numericProp,
|
11632
11658
|
showArrow: truthProp,
|
@@ -11730,7 +11756,9 @@ var stdin_default$z = vue.defineComponent({
|
|
11730
11756
|
"classPrefix": props.iconPrefix,
|
11731
11757
|
"class": bem$q("action-icon")
|
11732
11758
|
}, null), vue.createVNode("div", {
|
11733
|
-
"class": [bem$q("action-text"),
|
11759
|
+
"class": [bem$q("action-text"), {
|
11760
|
+
[BORDER_BOTTOM]: props.actionsDirection === "vertical"
|
11761
|
+
}]
|
11734
11762
|
}, [action.text])];
|
11735
11763
|
};
|
11736
11764
|
const renderAction = (action, index) => {
|
@@ -11745,7 +11773,9 @@ var stdin_default$z = vue.defineComponent({
|
|
11745
11773
|
"class": [bem$q("action", {
|
11746
11774
|
disabled,
|
11747
11775
|
"with-icon": icon
|
11748
|
-
}),
|
11776
|
+
}), {
|
11777
|
+
[BORDER_RIGHT]: props.actionsDirection === "horizontal"
|
11778
|
+
}, className],
|
11749
11779
|
"style": {
|
11750
11780
|
color
|
11751
11781
|
},
|
@@ -11794,7 +11824,7 @@ var stdin_default$z = vue.defineComponent({
|
|
11794
11824
|
"class": bem$q("arrow")
|
11795
11825
|
}, null), vue.createVNode("div", {
|
11796
11826
|
"role": "menu",
|
11797
|
-
"class": bem$q("content")
|
11827
|
+
"class": bem$q("content", props.actionsDirection)
|
11798
11828
|
}, [slots.default ? slots.default() : props.actions.map(renderAction)])]
|
11799
11829
|
})]);
|
11800
11830
|
};
|
@@ -12981,6 +13011,14 @@ var stdin_default$i = vue.defineComponent({
|
|
12981
13011
|
const diff = Math.round((value - min) / step) * step;
|
12982
13012
|
return addNumber(min, diff);
|
12983
13013
|
};
|
13014
|
+
const updateStartValue = () => {
|
13015
|
+
const current22 = props.modelValue;
|
13016
|
+
if (isRange(current22)) {
|
13017
|
+
startValue = current22.map(format2);
|
13018
|
+
} else {
|
13019
|
+
startValue = format2(current22);
|
13020
|
+
}
|
13021
|
+
};
|
12984
13022
|
const handleRangeValue = (value) => {
|
12985
13023
|
var _a, _b;
|
12986
13024
|
const left = (_a = value[0]) != null ? _a : Number(props.min);
|
@@ -13005,6 +13043,7 @@ var stdin_default$i = vue.defineComponent({
|
|
13005
13043
|
if (props.disabled || props.readonly) {
|
13006
13044
|
return;
|
13007
13045
|
}
|
13046
|
+
updateStartValue();
|
13008
13047
|
const {
|
13009
13048
|
min,
|
13010
13049
|
reverse,
|
@@ -13044,11 +13083,7 @@ var stdin_default$i = vue.defineComponent({
|
|
13044
13083
|
}
|
13045
13084
|
touch.start(event);
|
13046
13085
|
current2 = props.modelValue;
|
13047
|
-
|
13048
|
-
startValue = current2.map(format2);
|
13049
|
-
} else {
|
13050
|
-
startValue = format2(current2);
|
13051
|
-
}
|
13086
|
+
updateStartValue();
|
13052
13087
|
dragStatus.value = "start";
|
13053
13088
|
};
|
13054
13089
|
const onTouchMove = (event) => {
|
@@ -15775,7 +15810,7 @@ const Lazyload = {
|
|
15775
15810
|
});
|
15776
15811
|
}
|
15777
15812
|
};
|
15778
|
-
const version = "4.4.
|
15813
|
+
const version = "4.4.1";
|
15779
15814
|
function install(app) {
|
15780
15815
|
const components = [
|
15781
15816
|
ActionBar,
|
package/lib/vant.es.js
CHANGED
@@ -1,5 +1,6 @@
|
|
1
|
-
import { unref, ref, reactive, inject, watch, onMounted, nextTick, createVNode, defineComponent, getCurrentInstance, computed, onActivated, onDeactivated, onBeforeUnmount, provide, watchEffect, mergeProps, Transition, withDirectives, vShow, Teleport, Fragment, onBeforeUpdate, createTextVNode, onUnmounted, createApp, resolveDirective, withKeys, onUpdated, Comment, Text, h } from "vue";
|
1
|
+
import { unref, ref, reactive, inject, watch, onMounted, nextTick, createVNode, defineComponent, getCurrentInstance, computed, onActivated, onDeactivated, onBeforeUnmount, provide, watchEffect, mergeProps, Transition, withDirectives, vShow, Teleport, Fragment, onBeforeUpdate, normalizeClass, normalizeStyle, createTextVNode, onUnmounted, createApp, resolveDirective, withKeys, onUpdated, Comment, 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
|
+
import { stringifyStyle } from "@vue/shared";
|
3
4
|
import { offsetModifier, createPopper } from "@vant/popperjs";
|
4
5
|
const isDef = (val) => val !== void 0 && val !== null;
|
5
6
|
const isFunction = (val) => typeof val === "function";
|
@@ -362,6 +363,7 @@ function createNamespace(name2) {
|
|
362
363
|
const BORDER = "van-hairline";
|
363
364
|
const BORDER_TOP = `${BORDER}--top`;
|
364
365
|
const BORDER_LEFT = `${BORDER}--left`;
|
366
|
+
const BORDER_RIGHT = `${BORDER}--right`;
|
365
367
|
const BORDER_BOTTOM = `${BORDER}--bottom`;
|
366
368
|
const BORDER_SURROUND = `${BORDER}--surround`;
|
367
369
|
const BORDER_TOP_BOTTOM = `${BORDER}--top-bottom`;
|
@@ -1337,7 +1339,14 @@ var stdin_default$1F = defineComponent({
|
|
1337
1339
|
}, null);
|
1338
1340
|
}
|
1339
1341
|
};
|
1340
|
-
|
1342
|
+
let timer2;
|
1343
|
+
const onOpened = () => {
|
1344
|
+
if (timer2)
|
1345
|
+
clearTimeout(timer2);
|
1346
|
+
timer2 = setTimeout(() => {
|
1347
|
+
emit("opened");
|
1348
|
+
});
|
1349
|
+
};
|
1341
1350
|
const onClosed = () => emit("closed");
|
1342
1351
|
const onKeydown = (event) => emit("keydown", event);
|
1343
1352
|
const renderPopup = lazyRender(() => {
|
@@ -3071,12 +3080,22 @@ var stdin_default$1w = defineComponent({
|
|
3071
3080
|
}
|
3072
3081
|
return isActive;
|
3073
3082
|
});
|
3083
|
+
const parsedClass = ref("");
|
3084
|
+
const parsedStyle = ref("");
|
3085
|
+
watchEffect(() => {
|
3086
|
+
const {
|
3087
|
+
titleClass,
|
3088
|
+
titleStyle
|
3089
|
+
} = props;
|
3090
|
+
parsedClass.value = titleClass ? normalizeClass(titleClass) : "";
|
3091
|
+
parsedStyle.value = titleStyle && typeof titleStyle !== "string" ? stringifyStyle(normalizeStyle(titleStyle)) : titleStyle;
|
3092
|
+
});
|
3074
3093
|
const renderTitle = (onClickTab) => createVNode(TabTitle, mergeProps({
|
3075
3094
|
"key": id,
|
3076
3095
|
"id": `${parent.id}-${index.value}`,
|
3077
3096
|
"ref": parent.setTitleRefs(index.value),
|
3078
|
-
"style":
|
3079
|
-
"class":
|
3097
|
+
"style": parsedStyle.value,
|
3098
|
+
"class": parsedClass.value,
|
3080
3099
|
"isActive": active.value,
|
3081
3100
|
"controls": id,
|
3082
3101
|
"scrollable": parent.scrollable.value,
|
@@ -9828,6 +9847,7 @@ var stdin_default$L = defineComponent({
|
|
9828
9847
|
moveY: 0,
|
9829
9848
|
moving: false,
|
9830
9849
|
zooming: false,
|
9850
|
+
initializing: false,
|
9831
9851
|
imageRatio: 0
|
9832
9852
|
});
|
9833
9853
|
const touch = useTouch();
|
@@ -9842,10 +9862,11 @@ var stdin_default$L = defineComponent({
|
|
9842
9862
|
moveX,
|
9843
9863
|
moveY,
|
9844
9864
|
moving,
|
9845
|
-
zooming
|
9865
|
+
zooming,
|
9866
|
+
initializing
|
9846
9867
|
} = state;
|
9847
9868
|
const style = {
|
9848
|
-
transitionDuration: zooming || moving ? "0s" : ".3s"
|
9869
|
+
transitionDuration: zooming || moving || initializing ? "0s" : ".3s"
|
9849
9870
|
};
|
9850
9871
|
if (scale !== 1 || isLongImage.value) {
|
9851
9872
|
style.transform = `matrix(${scale}, 0, 0, ${scale}, ${moveX}, ${moveY})`;
|
@@ -10045,6 +10066,10 @@ var stdin_default$L = defineComponent({
|
|
10045
10066
|
if (isLongImage.value) {
|
10046
10067
|
initialMoveY = (imageRatio * rootWidth - rootHeight) / 2;
|
10047
10068
|
state.moveY = initialMoveY;
|
10069
|
+
state.initializing = true;
|
10070
|
+
raf(() => {
|
10071
|
+
state.initializing = false;
|
10072
|
+
});
|
10048
10073
|
}
|
10049
10074
|
resetScale();
|
10050
10075
|
};
|
@@ -11625,6 +11650,7 @@ const popoverProps = {
|
|
11625
11650
|
theme: makeStringProp("light"),
|
11626
11651
|
overlay: Boolean,
|
11627
11652
|
actions: makeArrayProp(),
|
11653
|
+
actionsDirection: makeStringProp("vertical"),
|
11628
11654
|
trigger: makeStringProp("click"),
|
11629
11655
|
duration: numericProp,
|
11630
11656
|
showArrow: truthProp,
|
@@ -11728,7 +11754,9 @@ var stdin_default$z = defineComponent({
|
|
11728
11754
|
"classPrefix": props.iconPrefix,
|
11729
11755
|
"class": bem$q("action-icon")
|
11730
11756
|
}, null), createVNode("div", {
|
11731
|
-
"class": [bem$q("action-text"),
|
11757
|
+
"class": [bem$q("action-text"), {
|
11758
|
+
[BORDER_BOTTOM]: props.actionsDirection === "vertical"
|
11759
|
+
}]
|
11732
11760
|
}, [action.text])];
|
11733
11761
|
};
|
11734
11762
|
const renderAction = (action, index) => {
|
@@ -11743,7 +11771,9 @@ var stdin_default$z = defineComponent({
|
|
11743
11771
|
"class": [bem$q("action", {
|
11744
11772
|
disabled,
|
11745
11773
|
"with-icon": icon
|
11746
|
-
}),
|
11774
|
+
}), {
|
11775
|
+
[BORDER_RIGHT]: props.actionsDirection === "horizontal"
|
11776
|
+
}, className],
|
11747
11777
|
"style": {
|
11748
11778
|
color
|
11749
11779
|
},
|
@@ -11792,7 +11822,7 @@ var stdin_default$z = defineComponent({
|
|
11792
11822
|
"class": bem$q("arrow")
|
11793
11823
|
}, null), createVNode("div", {
|
11794
11824
|
"role": "menu",
|
11795
|
-
"class": bem$q("content")
|
11825
|
+
"class": bem$q("content", props.actionsDirection)
|
11796
11826
|
}, [slots.default ? slots.default() : props.actions.map(renderAction)])]
|
11797
11827
|
})]);
|
11798
11828
|
};
|
@@ -12979,6 +13009,14 @@ var stdin_default$i = defineComponent({
|
|
12979
13009
|
const diff = Math.round((value - min) / step) * step;
|
12980
13010
|
return addNumber(min, diff);
|
12981
13011
|
};
|
13012
|
+
const updateStartValue = () => {
|
13013
|
+
const current22 = props.modelValue;
|
13014
|
+
if (isRange(current22)) {
|
13015
|
+
startValue = current22.map(format2);
|
13016
|
+
} else {
|
13017
|
+
startValue = format2(current22);
|
13018
|
+
}
|
13019
|
+
};
|
12982
13020
|
const handleRangeValue = (value) => {
|
12983
13021
|
var _a, _b;
|
12984
13022
|
const left = (_a = value[0]) != null ? _a : Number(props.min);
|
@@ -13003,6 +13041,7 @@ var stdin_default$i = defineComponent({
|
|
13003
13041
|
if (props.disabled || props.readonly) {
|
13004
13042
|
return;
|
13005
13043
|
}
|
13044
|
+
updateStartValue();
|
13006
13045
|
const {
|
13007
13046
|
min,
|
13008
13047
|
reverse,
|
@@ -13042,11 +13081,7 @@ var stdin_default$i = defineComponent({
|
|
13042
13081
|
}
|
13043
13082
|
touch.start(event);
|
13044
13083
|
current2 = props.modelValue;
|
13045
|
-
|
13046
|
-
startValue = current2.map(format2);
|
13047
|
-
} else {
|
13048
|
-
startValue = format2(current2);
|
13049
|
-
}
|
13084
|
+
updateStartValue();
|
13050
13085
|
dragStatus.value = "start";
|
13051
13086
|
};
|
13052
13087
|
const onTouchMove = (event) => {
|
@@ -15773,7 +15808,7 @@ const Lazyload = {
|
|
15773
15808
|
});
|
15774
15809
|
}
|
15775
15810
|
};
|
15776
|
-
const version = "4.4.
|
15811
|
+
const version = "4.4.1";
|
15777
15812
|
function install(app) {
|
15778
15813
|
const components = [
|
15779
15814
|
ActionBar,
|
package/lib/vant.js
CHANGED
@@ -753,6 +753,7 @@
|
|
753
753
|
const BORDER = "van-hairline";
|
754
754
|
const BORDER_TOP = `${BORDER}--top`;
|
755
755
|
const BORDER_LEFT = `${BORDER}--left`;
|
756
|
+
const BORDER_RIGHT = `${BORDER}--right`;
|
756
757
|
const BORDER_BOTTOM = `${BORDER}--bottom`;
|
757
758
|
const BORDER_SURROUND = `${BORDER}--surround`;
|
758
759
|
const BORDER_TOP_BOTTOM = `${BORDER}--top-bottom`;
|
@@ -1728,7 +1729,14 @@
|
|
1728
1729
|
}, null);
|
1729
1730
|
}
|
1730
1731
|
};
|
1731
|
-
|
1732
|
+
let timer2;
|
1733
|
+
const onOpened = () => {
|
1734
|
+
if (timer2)
|
1735
|
+
clearTimeout(timer2);
|
1736
|
+
timer2 = setTimeout(() => {
|
1737
|
+
emit("opened");
|
1738
|
+
});
|
1739
|
+
};
|
1732
1740
|
const onClosed = () => emit("closed");
|
1733
1741
|
const onKeydown = (event) => emit("keydown", event);
|
1734
1742
|
const renderPopup = lazyRender(() => {
|
@@ -2266,6 +2274,32 @@
|
|
2266
2274
|
});
|
2267
2275
|
return propRef;
|
2268
2276
|
};
|
2277
|
+
const isString = (val) => typeof val === "string";
|
2278
|
+
const cacheStringFunction = (fn) => {
|
2279
|
+
const cache = /* @__PURE__ */ Object.create(null);
|
2280
|
+
return (str) => {
|
2281
|
+
const hit = cache[str];
|
2282
|
+
return hit || (cache[str] = fn(str));
|
2283
|
+
};
|
2284
|
+
};
|
2285
|
+
const hyphenateRE = /\B([A-Z])/g;
|
2286
|
+
const hyphenate = cacheStringFunction(
|
2287
|
+
(str) => str.replace(hyphenateRE, "-$1").toLowerCase()
|
2288
|
+
);
|
2289
|
+
function stringifyStyle(styles) {
|
2290
|
+
let ret = "";
|
2291
|
+
if (!styles || isString(styles)) {
|
2292
|
+
return ret;
|
2293
|
+
}
|
2294
|
+
for (const key in styles) {
|
2295
|
+
const value = styles[key];
|
2296
|
+
const normalizedKey = key.startsWith(`--`) ? key : hyphenate(key);
|
2297
|
+
if (isString(value) || typeof value === "number") {
|
2298
|
+
ret += `${normalizedKey}:${value};`;
|
2299
|
+
}
|
2300
|
+
}
|
2301
|
+
return ret;
|
2302
|
+
}
|
2269
2303
|
function scrollLeftTo(scroller, to, duration) {
|
2270
2304
|
let rafId;
|
2271
2305
|
let count = 0;
|
@@ -3453,12 +3487,22 @@
|
|
3453
3487
|
}
|
3454
3488
|
return isActive;
|
3455
3489
|
});
|
3490
|
+
const parsedClass = vue.ref("");
|
3491
|
+
const parsedStyle = vue.ref("");
|
3492
|
+
vue.watchEffect(() => {
|
3493
|
+
const {
|
3494
|
+
titleClass,
|
3495
|
+
titleStyle
|
3496
|
+
} = props;
|
3497
|
+
parsedClass.value = titleClass ? vue.normalizeClass(titleClass) : "";
|
3498
|
+
parsedStyle.value = titleStyle && typeof titleStyle !== "string" ? stringifyStyle(vue.normalizeStyle(titleStyle)) : titleStyle;
|
3499
|
+
});
|
3456
3500
|
const renderTitle = (onClickTab) => vue.createVNode(TabTitle, vue.mergeProps({
|
3457
3501
|
"key": id,
|
3458
3502
|
"id": `${parent.id}-${index.value}`,
|
3459
3503
|
"ref": parent.setTitleRefs(index.value),
|
3460
|
-
"style":
|
3461
|
-
"class":
|
3504
|
+
"style": parsedStyle.value,
|
3505
|
+
"class": parsedClass.value,
|
3462
3506
|
"isActive": active.value,
|
3463
3507
|
"controls": id,
|
3464
3508
|
"scrollable": parent.scrollable.value,
|
@@ -10181,6 +10225,7 @@
|
|
10181
10225
|
moveY: 0,
|
10182
10226
|
moving: false,
|
10183
10227
|
zooming: false,
|
10228
|
+
initializing: false,
|
10184
10229
|
imageRatio: 0
|
10185
10230
|
});
|
10186
10231
|
const touch = useTouch();
|
@@ -10195,10 +10240,11 @@
|
|
10195
10240
|
moveX,
|
10196
10241
|
moveY,
|
10197
10242
|
moving,
|
10198
|
-
zooming
|
10243
|
+
zooming,
|
10244
|
+
initializing
|
10199
10245
|
} = state;
|
10200
10246
|
const style = {
|
10201
|
-
transitionDuration: zooming || moving ? "0s" : ".3s"
|
10247
|
+
transitionDuration: zooming || moving || initializing ? "0s" : ".3s"
|
10202
10248
|
};
|
10203
10249
|
if (scale !== 1 || isLongImage.value) {
|
10204
10250
|
style.transform = `matrix(${scale}, 0, 0, ${scale}, ${moveX}, ${moveY})`;
|
@@ -10398,6 +10444,10 @@
|
|
10398
10444
|
if (isLongImage.value) {
|
10399
10445
|
initialMoveY = (imageRatio * rootWidth - rootHeight) / 2;
|
10400
10446
|
state.moveY = initialMoveY;
|
10447
|
+
state.initializing = true;
|
10448
|
+
raf(() => {
|
10449
|
+
state.initializing = false;
|
10450
|
+
});
|
10401
10451
|
}
|
10402
10452
|
resetScale();
|
10403
10453
|
};
|
@@ -12914,6 +12964,7 @@
|
|
12914
12964
|
theme: makeStringProp("light"),
|
12915
12965
|
overlay: Boolean,
|
12916
12966
|
actions: makeArrayProp(),
|
12967
|
+
actionsDirection: makeStringProp("vertical"),
|
12917
12968
|
trigger: makeStringProp("click"),
|
12918
12969
|
duration: numericProp,
|
12919
12970
|
showArrow: truthProp,
|
@@ -13017,7 +13068,9 @@
|
|
13017
13068
|
"classPrefix": props.iconPrefix,
|
13018
13069
|
"class": bem$q("action-icon")
|
13019
13070
|
}, null), vue.createVNode("div", {
|
13020
|
-
"class": [bem$q("action-text"),
|
13071
|
+
"class": [bem$q("action-text"), {
|
13072
|
+
[BORDER_BOTTOM]: props.actionsDirection === "vertical"
|
13073
|
+
}]
|
13021
13074
|
}, [action.text])];
|
13022
13075
|
};
|
13023
13076
|
const renderAction = (action, index) => {
|
@@ -13032,7 +13085,9 @@
|
|
13032
13085
|
"class": [bem$q("action", {
|
13033
13086
|
disabled,
|
13034
13087
|
"with-icon": icon
|
13035
|
-
}),
|
13088
|
+
}), {
|
13089
|
+
[BORDER_RIGHT]: props.actionsDirection === "horizontal"
|
13090
|
+
}, className],
|
13036
13091
|
"style": {
|
13037
13092
|
color
|
13038
13093
|
},
|
@@ -13081,7 +13136,7 @@
|
|
13081
13136
|
"class": bem$q("arrow")
|
13082
13137
|
}, null), vue.createVNode("div", {
|
13083
13138
|
"role": "menu",
|
13084
|
-
"class": bem$q("content")
|
13139
|
+
"class": bem$q("content", props.actionsDirection)
|
13085
13140
|
}, [slots.default ? slots.default() : props.actions.map(renderAction)])]
|
13086
13141
|
})]);
|
13087
13142
|
};
|
@@ -14265,6 +14320,14 @@
|
|
14265
14320
|
const diff = Math.round((value - min) / step) * step;
|
14266
14321
|
return addNumber(min, diff);
|
14267
14322
|
};
|
14323
|
+
const updateStartValue = () => {
|
14324
|
+
const current22 = props.modelValue;
|
14325
|
+
if (isRange(current22)) {
|
14326
|
+
startValue = current22.map(format2);
|
14327
|
+
} else {
|
14328
|
+
startValue = format2(current22);
|
14329
|
+
}
|
14330
|
+
};
|
14268
14331
|
const handleRangeValue = (value) => {
|
14269
14332
|
var _a, _b;
|
14270
14333
|
const left2 = (_a = value[0]) != null ? _a : Number(props.min);
|
@@ -14289,6 +14352,7 @@
|
|
14289
14352
|
if (props.disabled || props.readonly) {
|
14290
14353
|
return;
|
14291
14354
|
}
|
14355
|
+
updateStartValue();
|
14292
14356
|
const {
|
14293
14357
|
min,
|
14294
14358
|
reverse,
|
@@ -14328,11 +14392,7 @@
|
|
14328
14392
|
}
|
14329
14393
|
touch.start(event);
|
14330
14394
|
current2 = props.modelValue;
|
14331
|
-
|
14332
|
-
startValue = current2.map(format2);
|
14333
|
-
} else {
|
14334
|
-
startValue = format2(current2);
|
14335
|
-
}
|
14395
|
+
updateStartValue();
|
14336
14396
|
dragStatus.value = "start";
|
14337
14397
|
};
|
14338
14398
|
const onTouchMove = (event) => {
|
@@ -17033,7 +17093,7 @@
|
|
17033
17093
|
});
|
17034
17094
|
}
|
17035
17095
|
};
|
17036
|
-
const version = "4.4.
|
17096
|
+
const version = "4.4.1";
|
17037
17097
|
function install(app) {
|
17038
17098
|
const components = [
|
17039
17099
|
ActionBar,
|