vant 3.4.1 → 3.4.2
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 +6 -5
- package/es/action-bar/index.css +1 -1
- package/es/action-bar/index.d.ts +6 -5
- package/es/action-bar-button/ActionBarButton.d.ts +11 -21
- package/es/action-bar-button/index.css +1 -1
- package/es/action-bar-button/index.d.ts +11 -21
- package/es/action-bar-icon/ActionBarIcon.d.ts +16 -84
- package/es/action-bar-icon/index.css +1 -1
- package/es/action-bar-icon/index.d.ts +14 -64
- package/es/action-sheet/ActionSheet.d.ts +54 -47
- package/es/action-sheet/index.css +1 -1
- package/es/action-sheet/index.d.ts +54 -47
- package/es/address-edit/AddressEdit.d.ts +48 -48
- package/es/address-edit/AddressEditDetail.d.ts +10 -20
- package/es/address-edit/index.css +1 -1
- package/es/address-edit/index.d.ts +48 -48
- package/es/address-list/AddressList.d.ts +18 -18
- package/es/address-list/AddressListItem.d.ts +9 -12
- package/es/address-list/index.css +1 -1
- package/es/address-list/index.d.ts +18 -18
- package/es/address-list/index.less +1 -1
- package/es/area/Area.d.ts +41 -33
- package/es/area/index.d.ts +41 -33
- package/es/badge/Badge.d.ts +19 -20
- package/es/badge/index.css +1 -1
- package/es/badge/index.d.ts +19 -20
- package/es/button/Button.d.ts +39 -47
- package/es/button/index.css +1 -1
- package/es/button/index.d.ts +39 -47
- package/es/calendar/Calendar.d.ts +85 -62
- package/es/calendar/Calendar.js +6 -1
- package/es/calendar/CalendarDay.d.ts +13 -14
- package/es/calendar/CalendarHeader.d.ts +7 -14
- package/es/calendar/CalendarMonth.d.ts +25 -32
- package/es/calendar/index.css +1 -1
- package/es/calendar/index.d.ts +85 -62
- package/es/card/Card.d.ts +16 -26
- package/es/card/index.css +1 -1
- package/es/card/index.d.ts +16 -26
- package/es/cascader/Cascader.d.ts +36 -22
- package/es/cascader/Cascader.js +3 -2
- package/es/cascader/index.css +1 -1
- package/es/cascader/index.d.ts +32 -22
- package/es/cell/Cell.d.ts +27 -41
- package/es/cell/index.css +1 -1
- package/es/cell/index.d.ts +27 -41
- package/es/cell-group/CellGroup.d.ts +8 -10
- package/es/cell-group/index.css +1 -1
- package/es/cell-group/index.d.ts +8 -10
- package/es/checkbox/Checkbox.d.ts +17 -21
- package/es/checkbox/Checker.d.ts +24 -29
- package/es/checkbox/index.css +1 -1
- package/es/checkbox/index.d.ts +17 -21
- package/es/checkbox-group/CheckboxGroup.d.ts +11 -16
- package/es/checkbox-group/index.css +1 -1
- package/es/checkbox-group/index.d.ts +11 -16
- package/es/circle/Circle.d.ts +35 -28
- package/es/circle/index.css +1 -1
- package/es/circle/index.d.ts +35 -28
- package/es/col/Col.d.ts +11 -10
- package/es/col/index.css +1 -1
- package/es/col/index.d.ts +11 -10
- package/es/collapse/Collapse.d.ts +11 -9
- package/es/collapse/index.d.ts +11 -9
- package/es/collapse-item/CollapseItem.d.ts +31 -41
- package/es/collapse-item/index.css +1 -1
- package/es/collapse-item/index.d.ts +31 -41
- package/es/composables/use-height.js +6 -2
- package/es/config-provider/ConfigProvider.d.ts +8 -10
- package/es/config-provider/index.d.ts +8 -10
- package/es/contact-card/ContactCard.d.ts +13 -14
- package/es/contact-card/index.css +1 -1
- package/es/contact-card/index.d.ts +13 -14
- package/es/contact-edit/ContactEdit.d.ts +15 -18
- package/es/contact-edit/index.css +1 -1
- package/es/contact-edit/index.d.ts +15 -18
- package/es/contact-list/ContactList.d.ts +6 -11
- package/es/contact-list/index.css +1 -1
- package/es/contact-list/index.d.ts +6 -11
- package/es/count-down/CountDown.d.ts +15 -11
- package/es/count-down/index.css +1 -1
- package/es/count-down/index.d.ts +15 -11
- package/es/coupon/Coupon.d.ts +12 -11
- package/es/coupon/index.css +1 -1
- package/es/coupon/index.d.ts +12 -11
- package/es/coupon-cell/CouponCell.d.ts +23 -16
- package/es/coupon-cell/index.css +1 -1
- package/es/coupon-cell/index.d.ts +23 -16
- package/es/coupon-list/CouponList.d.ts +53 -40
- package/es/coupon-list/index.css +1 -1
- package/es/coupon-list/index.d.ts +53 -40
- package/es/datetime-picker/DatePicker.d.ts +45 -36
- package/es/datetime-picker/TimePicker.d.ts +47 -38
- package/es/dialog/Dialog.d.ts +52 -59
- package/es/dialog/function-call.d.ts +52 -59
- package/es/dialog/index.css +1 -1
- package/es/divider/Divider.d.ts +11 -9
- package/es/divider/index.css +1 -1
- package/es/divider/index.d.ts +11 -9
- package/es/dropdown-item/DropdownItem.d.ts +15 -18
- package/es/dropdown-item/index.css +1 -1
- package/es/dropdown-item/index.d.ts +15 -18
- package/es/dropdown-menu/DropdownMenu.d.ts +24 -18
- package/es/dropdown-menu/index.css +1 -1
- package/es/dropdown-menu/index.d.ts +24 -18
- package/es/empty/Empty.d.ts +8 -10
- package/es/empty/index.css +1 -1
- package/es/empty/index.d.ts +8 -10
- package/es/field/Field.d.ts +80 -90
- package/es/field/index.css +1 -1
- package/es/field/index.d.ts +80 -90
- package/es/form/Form.d.ts +24 -30
- package/es/form/index.d.ts +24 -30
- package/es/grid/Grid.d.ts +20 -22
- package/es/grid/index.css +1 -1
- package/es/grid/index.d.ts +20 -22
- package/es/grid-item/GridItem.d.ts +15 -82
- package/es/grid-item/index.css +1 -1
- package/es/grid-item/index.d.ts +13 -62
- package/es/icon/Icon.d.ts +16 -79
- package/es/icon/index.css +1 -1
- package/es/icon/index.d.ts +14 -59
- package/es/image/Image.d.ts +32 -32
- package/es/image/Image.js +13 -4
- package/es/image/index.css +1 -1
- package/es/image/index.d.ts +30 -32
- package/es/image-preview/ImagePreview.d.ts +54 -42
- package/es/image-preview/ImagePreviewItem.d.ts +21 -18
- package/es/image-preview/ImagePreviewItem.js +12 -4
- package/es/image-preview/function-call.d.ts +54 -42
- package/es/image-preview/index.css +1 -1
- package/es/index-anchor/IndexAnchor.d.ts +3 -5
- package/es/index-anchor/index.css +1 -1
- package/es/index-anchor/index.d.ts +3 -5
- package/es/index-bar/IndexBar.d.ts +17 -16
- package/es/index-bar/index.css +1 -1
- package/es/index-bar/index.d.ts +17 -16
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/list/List.d.ts +20 -22
- package/es/list/index.css +1 -1
- package/es/list/index.d.ts +20 -22
- package/es/loading/Loading.d.ts +11 -16
- package/es/loading/index.css +1 -1
- package/es/loading/index.d.ts +11 -16
- package/es/nav-bar/NavBar.d.ts +14 -22
- package/es/nav-bar/index.css +1 -1
- package/es/nav-bar/index.d.ts +14 -22
- package/es/notice-bar/NoticeBar.d.ts +20 -22
- package/es/notice-bar/index.css +1 -1
- package/es/notice-bar/index.d.ts +20 -22
- package/es/notify/Notify.d.ts +39 -39
- package/es/notify/function-call.d.ts +39 -39
- package/es/notify/index.css +1 -1
- package/es/number-keyboard/NumberKeyboard.d.ts +46 -38
- package/es/number-keyboard/NumberKeyboardKey.d.ts +8 -16
- package/es/number-keyboard/index.css +1 -1
- package/es/number-keyboard/index.d.ts +46 -38
- package/es/overlay/Overlay.d.ts +24 -16
- package/es/overlay/Overlay.js +2 -1
- package/es/overlay/index.css +1 -1
- package/es/overlay/index.d.ts +20 -16
- package/es/pagination/Pagination.d.ts +29 -22
- package/es/pagination/index.css +1 -1
- package/es/pagination/index.d.ts +29 -22
- package/es/password-input/PasswordInput.d.ts +18 -18
- package/es/password-input/index.css +1 -1
- package/es/password-input/index.d.ts +18 -18
- package/es/picker/Picker.d.ts +38 -33
- package/es/picker/PickerColumn.d.ts +29 -22
- package/es/picker/index.css +1 -1
- package/es/picker/index.d.ts +38 -33
- package/es/popover/Popover.d.ts +48 -36
- package/es/popover/index.css +1 -1
- package/es/popover/index.d.ts +48 -36
- package/es/popup/Popup.d.ts +44 -45
- package/es/popup/index.css +1 -1
- package/es/popup/index.d.ts +44 -45
- package/es/progress/Progress.d.ts +18 -22
- package/es/progress/index.css +1 -1
- package/es/progress/index.d.ts +18 -22
- package/es/pull-refresh/PullRefresh.d.ts +21 -24
- package/es/pull-refresh/index.css +1 -1
- package/es/pull-refresh/index.d.ts +21 -24
- package/es/radio/Radio.d.ts +13 -20
- package/es/radio/index.css +1 -1
- package/es/radio/index.d.ts +13 -20
- package/es/radio-group/RadioGroup.d.ts +7 -14
- package/es/radio-group/index.css +1 -1
- package/es/radio-group/index.d.ts +7 -14
- package/es/rate/Rate.d.ts +31 -32
- package/es/rate/index.css +1 -1
- package/es/rate/index.d.ts +31 -32
- package/es/row/Row.d.ts +16 -14
- package/es/row/index.css +1 -1
- package/es/row/index.d.ts +16 -14
- package/es/search/Search.d.ts +58 -51
- package/es/search/index.css +1 -1
- package/es/search/index.d.ts +58 -51
- package/es/share-sheet/ShareSheet.d.ts +45 -41
- package/es/share-sheet/index.css +1 -1
- package/es/share-sheet/index.d.ts +45 -41
- package/es/sidebar/Sidebar.d.ts +6 -5
- package/es/sidebar/index.css +1 -1
- package/es/sidebar/index.d.ts +6 -5
- package/es/sidebar-item/SidebarItem.d.ts +13 -78
- package/es/sidebar-item/index.css +1 -1
- package/es/sidebar-item/index.d.ts +11 -58
- package/es/skeleton/Skeleton.d.ts +27 -24
- package/es/skeleton/Skeleton.js +1 -1
- package/es/skeleton/index.css +1 -1
- package/es/skeleton/index.d.ts +27 -24
- package/es/slider/Slider.d.ts +27 -30
- package/es/slider/index.css +1 -1
- package/es/slider/index.d.ts +27 -30
- package/es/step/Step.d.ts +1 -1
- package/es/step/index.css +1 -1
- package/es/step/index.d.ts +1 -1
- package/es/stepper/Stepper.d.ts +51 -48
- package/es/stepper/index.css +1 -1
- package/es/stepper/index.d.ts +51 -48
- package/es/steps/Steps.d.ts +19 -20
- package/es/steps/index.css +1 -1
- package/es/steps/index.d.ts +19 -20
- package/es/sticky/Sticky.d.ts +16 -14
- package/es/sticky/index.css +1 -1
- package/es/sticky/index.d.ts +16 -14
- package/es/style/animation.css +1 -1
- package/es/style/base.css +1 -1
- package/es/style/css-variables.css +1 -1
- package/es/style/normalize.css +1 -1
- package/es/submit-bar/SubmitBar.d.ts +28 -32
- package/es/submit-bar/index.css +1 -1
- package/es/submit-bar/index.d.ts +28 -32
- package/es/swipe/Swipe.d.ts +35 -28
- package/es/swipe/index.css +1 -1
- package/es/swipe/index.d.ts +35 -28
- package/es/swipe-cell/SwipeCell.d.ts +11 -16
- package/es/swipe-cell/index.css +1 -1
- package/es/swipe-cell/index.d.ts +11 -16
- package/es/swipe-item/SwipeItem.d.ts +1 -1
- package/es/swipe-item/index.css +1 -1
- package/es/swipe-item/index.d.ts +1 -1
- package/es/switch/Switch.d.ts +16 -20
- package/es/switch/index.css +1 -1
- package/es/switch/index.d.ts +16 -20
- package/es/tab/Tab.d.ts +16 -25
- package/es/tab/index.css +1 -1
- package/es/tab/index.d.ts +16 -25
- package/es/tabbar/Tabbar.d.ts +24 -24
- package/es/tabbar/index.css +1 -1
- package/es/tabbar/index.d.ts +24 -24
- package/es/tabbar-item/TabbarItem.d.ts +14 -80
- package/es/tabbar-item/index.css +1 -1
- package/es/tabbar-item/index.d.ts +12 -60
- package/es/tabs/Tabs.d.ts +43 -44
- package/es/tabs/TabsContent.d.ts +18 -17
- package/es/tabs/TabsTitle.d.ts +19 -32
- package/es/tabs/index.css +1 -1
- package/es/tabs/index.d.ts +43 -44
- package/es/tag/Tag.d.ts +17 -22
- package/es/tag/index.css +1 -1
- package/es/tag/index.d.ts +17 -22
- package/es/toast/Toast.d.ts +31 -38
- package/es/toast/index.css +1 -1
- package/es/tree-select/TreeSelect.d.ts +26 -15
- package/es/tree-select/index.css +1 -1
- package/es/tree-select/index.d.ts +26 -15
- package/es/uploader/Uploader.d.ts +61 -50
- package/es/uploader/UploaderPreviewItem.d.ts +13 -20
- package/es/uploader/index.css +1 -1
- package/es/uploader/index.d.ts +61 -50
- package/lib/action-bar/ActionBar.d.ts +6 -5
- package/lib/action-bar/index.css +1 -1
- package/lib/action-bar/index.d.ts +6 -5
- package/lib/action-bar-button/ActionBarButton.d.ts +11 -21
- package/lib/action-bar-button/index.css +1 -1
- package/lib/action-bar-button/index.d.ts +11 -21
- package/lib/action-bar-icon/ActionBarIcon.d.ts +16 -84
- package/lib/action-bar-icon/index.css +1 -1
- package/lib/action-bar-icon/index.d.ts +14 -64
- package/lib/action-sheet/ActionSheet.d.ts +54 -47
- package/lib/action-sheet/index.css +1 -1
- package/lib/action-sheet/index.d.ts +54 -47
- package/lib/address-edit/AddressEdit.d.ts +48 -48
- package/lib/address-edit/AddressEditDetail.d.ts +10 -20
- package/lib/address-edit/index.css +1 -1
- package/lib/address-edit/index.d.ts +48 -48
- package/lib/address-list/AddressList.d.ts +18 -18
- package/lib/address-list/AddressListItem.d.ts +9 -12
- package/lib/address-list/index.css +1 -1
- package/lib/address-list/index.d.ts +18 -18
- package/lib/address-list/index.less +1 -1
- package/lib/area/Area.d.ts +41 -33
- package/lib/area/index.d.ts +41 -33
- package/lib/badge/Badge.d.ts +19 -20
- package/lib/badge/index.css +1 -1
- package/lib/badge/index.d.ts +19 -20
- package/lib/button/Button.d.ts +39 -47
- package/lib/button/index.css +1 -1
- package/lib/button/index.d.ts +39 -47
- package/lib/calendar/Calendar.d.ts +85 -62
- package/lib/calendar/Calendar.js +6 -1
- package/lib/calendar/CalendarDay.d.ts +13 -14
- package/lib/calendar/CalendarHeader.d.ts +7 -14
- package/lib/calendar/CalendarMonth.d.ts +25 -32
- package/lib/calendar/index.css +1 -1
- package/lib/calendar/index.d.ts +85 -62
- package/lib/card/Card.d.ts +16 -26
- package/lib/card/index.css +1 -1
- package/lib/card/index.d.ts +16 -26
- package/lib/cascader/Cascader.d.ts +36 -22
- package/lib/cascader/Cascader.js +3 -2
- package/lib/cascader/index.css +1 -1
- package/lib/cascader/index.d.ts +32 -22
- package/lib/cell/Cell.d.ts +27 -41
- package/lib/cell/index.css +1 -1
- package/lib/cell/index.d.ts +27 -41
- package/lib/cell-group/CellGroup.d.ts +8 -10
- package/lib/cell-group/index.css +1 -1
- package/lib/cell-group/index.d.ts +8 -10
- package/lib/checkbox/Checkbox.d.ts +17 -21
- package/lib/checkbox/Checker.d.ts +24 -29
- package/lib/checkbox/index.css +1 -1
- package/lib/checkbox/index.d.ts +17 -21
- package/lib/checkbox-group/CheckboxGroup.d.ts +11 -16
- package/lib/checkbox-group/index.css +1 -1
- package/lib/checkbox-group/index.d.ts +11 -16
- package/lib/circle/Circle.d.ts +35 -28
- package/lib/circle/index.css +1 -1
- package/lib/circle/index.d.ts +35 -28
- package/lib/col/Col.d.ts +11 -10
- package/lib/col/index.css +1 -1
- package/lib/col/index.d.ts +11 -10
- package/lib/collapse/Collapse.d.ts +11 -9
- package/lib/collapse/index.d.ts +11 -9
- package/lib/collapse-item/CollapseItem.d.ts +31 -41
- package/lib/collapse-item/index.css +1 -1
- package/lib/collapse-item/index.d.ts +31 -41
- package/lib/composables/use-height.js +6 -2
- package/lib/config-provider/ConfigProvider.d.ts +8 -10
- package/lib/config-provider/index.d.ts +8 -10
- package/lib/contact-card/ContactCard.d.ts +13 -14
- package/lib/contact-card/index.css +1 -1
- package/lib/contact-card/index.d.ts +13 -14
- package/lib/contact-edit/ContactEdit.d.ts +15 -18
- package/lib/contact-edit/index.css +1 -1
- package/lib/contact-edit/index.d.ts +15 -18
- package/lib/contact-list/ContactList.d.ts +6 -11
- package/lib/contact-list/index.css +1 -1
- package/lib/contact-list/index.d.ts +6 -11
- package/lib/count-down/CountDown.d.ts +15 -11
- package/lib/count-down/index.css +1 -1
- package/lib/count-down/index.d.ts +15 -11
- package/lib/coupon/Coupon.d.ts +12 -11
- package/lib/coupon/index.css +1 -1
- package/lib/coupon/index.d.ts +12 -11
- package/lib/coupon-cell/CouponCell.d.ts +23 -16
- package/lib/coupon-cell/index.css +1 -1
- package/lib/coupon-cell/index.d.ts +23 -16
- package/lib/coupon-list/CouponList.d.ts +53 -40
- package/lib/coupon-list/index.css +1 -1
- package/lib/coupon-list/index.d.ts +53 -40
- package/lib/datetime-picker/DatePicker.d.ts +45 -36
- package/lib/datetime-picker/TimePicker.d.ts +47 -38
- package/lib/dialog/Dialog.d.ts +52 -59
- package/lib/dialog/function-call.d.ts +52 -59
- package/lib/dialog/index.css +1 -1
- package/lib/divider/Divider.d.ts +11 -9
- package/lib/divider/index.css +1 -1
- package/lib/divider/index.d.ts +11 -9
- package/lib/dropdown-item/DropdownItem.d.ts +15 -18
- package/lib/dropdown-item/index.css +1 -1
- package/lib/dropdown-item/index.d.ts +15 -18
- package/lib/dropdown-menu/DropdownMenu.d.ts +24 -18
- package/lib/dropdown-menu/index.css +1 -1
- package/lib/dropdown-menu/index.d.ts +24 -18
- package/lib/empty/Empty.d.ts +8 -10
- package/lib/empty/index.css +1 -1
- package/lib/empty/index.d.ts +8 -10
- package/lib/field/Field.d.ts +80 -90
- package/lib/field/index.css +1 -1
- package/lib/field/index.d.ts +80 -90
- package/lib/form/Form.d.ts +24 -30
- package/lib/form/index.d.ts +24 -30
- package/lib/grid/Grid.d.ts +20 -22
- package/lib/grid/index.css +1 -1
- package/lib/grid/index.d.ts +20 -22
- package/lib/grid-item/GridItem.d.ts +15 -82
- package/lib/grid-item/index.css +1 -1
- package/lib/grid-item/index.d.ts +13 -62
- package/lib/icon/Icon.d.ts +16 -79
- package/lib/icon/index.css +1 -1
- package/lib/icon/index.d.ts +14 -59
- package/lib/image/Image.d.ts +32 -32
- package/lib/image/Image.js +12 -3
- package/lib/image/index.css +1 -1
- package/lib/image/index.d.ts +30 -32
- package/lib/image-preview/ImagePreview.d.ts +54 -42
- package/lib/image-preview/ImagePreviewItem.d.ts +21 -18
- package/lib/image-preview/ImagePreviewItem.js +12 -4
- package/lib/image-preview/function-call.d.ts +54 -42
- package/lib/image-preview/index.css +1 -1
- package/lib/index-anchor/IndexAnchor.d.ts +3 -5
- package/lib/index-anchor/index.css +1 -1
- package/lib/index-anchor/index.d.ts +3 -5
- package/lib/index-bar/IndexBar.d.ts +17 -16
- package/lib/index-bar/index.css +1 -1
- package/lib/index-bar/index.d.ts +17 -16
- 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 +20 -22
- package/lib/list/index.css +1 -1
- package/lib/list/index.d.ts +20 -22
- package/lib/loading/Loading.d.ts +11 -16
- package/lib/loading/index.css +1 -1
- package/lib/loading/index.d.ts +11 -16
- package/lib/nav-bar/NavBar.d.ts +14 -22
- package/lib/nav-bar/index.css +1 -1
- package/lib/nav-bar/index.d.ts +14 -22
- package/lib/notice-bar/NoticeBar.d.ts +20 -22
- package/lib/notice-bar/index.css +1 -1
- package/lib/notice-bar/index.d.ts +20 -22
- package/lib/notify/Notify.d.ts +39 -39
- package/lib/notify/function-call.d.ts +39 -39
- package/lib/notify/index.css +1 -1
- package/lib/number-keyboard/NumberKeyboard.d.ts +46 -38
- package/lib/number-keyboard/NumberKeyboardKey.d.ts +8 -16
- package/lib/number-keyboard/index.css +1 -1
- package/lib/number-keyboard/index.d.ts +46 -38
- package/lib/overlay/Overlay.d.ts +24 -16
- package/lib/overlay/Overlay.js +2 -1
- package/lib/overlay/index.css +1 -1
- package/lib/overlay/index.d.ts +20 -16
- package/lib/pagination/Pagination.d.ts +29 -22
- package/lib/pagination/index.css +1 -1
- package/lib/pagination/index.d.ts +29 -22
- package/lib/password-input/PasswordInput.d.ts +18 -18
- package/lib/password-input/index.css +1 -1
- package/lib/password-input/index.d.ts +18 -18
- package/lib/picker/Picker.d.ts +38 -33
- package/lib/picker/PickerColumn.d.ts +29 -22
- package/lib/picker/index.css +1 -1
- package/lib/picker/index.d.ts +38 -33
- package/lib/popover/Popover.d.ts +48 -36
- package/lib/popover/index.css +1 -1
- package/lib/popover/index.d.ts +48 -36
- package/lib/popup/Popup.d.ts +44 -45
- package/lib/popup/index.css +1 -1
- package/lib/popup/index.d.ts +44 -45
- package/lib/progress/Progress.d.ts +18 -22
- package/lib/progress/index.css +1 -1
- package/lib/progress/index.d.ts +18 -22
- package/lib/pull-refresh/PullRefresh.d.ts +21 -24
- package/lib/pull-refresh/index.css +1 -1
- package/lib/pull-refresh/index.d.ts +21 -24
- package/lib/radio/Radio.d.ts +13 -20
- package/lib/radio/index.css +1 -1
- package/lib/radio/index.d.ts +13 -20
- package/lib/radio-group/RadioGroup.d.ts +7 -14
- package/lib/radio-group/index.css +1 -1
- package/lib/radio-group/index.d.ts +7 -14
- package/lib/rate/Rate.d.ts +31 -32
- package/lib/rate/index.css +1 -1
- package/lib/rate/index.d.ts +31 -32
- package/lib/row/Row.d.ts +16 -14
- package/lib/row/index.css +1 -1
- package/lib/row/index.d.ts +16 -14
- package/lib/search/Search.d.ts +58 -51
- package/lib/search/index.css +1 -1
- package/lib/search/index.d.ts +58 -51
- package/lib/share-sheet/ShareSheet.d.ts +45 -41
- package/lib/share-sheet/index.css +1 -1
- package/lib/share-sheet/index.d.ts +45 -41
- package/lib/sidebar/Sidebar.d.ts +6 -5
- package/lib/sidebar/index.css +1 -1
- package/lib/sidebar/index.d.ts +6 -5
- package/lib/sidebar-item/SidebarItem.d.ts +13 -78
- package/lib/sidebar-item/index.css +1 -1
- package/lib/sidebar-item/index.d.ts +11 -58
- package/lib/skeleton/Skeleton.d.ts +27 -24
- package/lib/skeleton/Skeleton.js +1 -1
- package/lib/skeleton/index.css +1 -1
- package/lib/skeleton/index.d.ts +27 -24
- package/lib/slider/Slider.d.ts +27 -30
- package/lib/slider/index.css +1 -1
- package/lib/slider/index.d.ts +27 -30
- package/lib/step/Step.d.ts +1 -1
- package/lib/step/index.css +1 -1
- package/lib/step/index.d.ts +1 -1
- package/lib/stepper/Stepper.d.ts +51 -48
- package/lib/stepper/index.css +1 -1
- package/lib/stepper/index.d.ts +51 -48
- package/lib/steps/Steps.d.ts +19 -20
- package/lib/steps/index.css +1 -1
- package/lib/steps/index.d.ts +19 -20
- package/lib/sticky/Sticky.d.ts +16 -14
- package/lib/sticky/index.css +1 -1
- package/lib/sticky/index.d.ts +16 -14
- package/lib/style/animation.css +1 -1
- package/lib/style/base.css +1 -1
- package/lib/style/css-variables.css +1 -1
- package/lib/style/normalize.css +1 -1
- package/lib/submit-bar/SubmitBar.d.ts +28 -32
- package/lib/submit-bar/index.css +1 -1
- package/lib/submit-bar/index.d.ts +28 -32
- package/lib/swipe/Swipe.d.ts +35 -28
- package/lib/swipe/index.css +1 -1
- package/lib/swipe/index.d.ts +35 -28
- package/lib/swipe-cell/SwipeCell.d.ts +11 -16
- package/lib/swipe-cell/index.css +1 -1
- package/lib/swipe-cell/index.d.ts +11 -16
- package/lib/swipe-item/SwipeItem.d.ts +1 -1
- package/lib/swipe-item/index.css +1 -1
- package/lib/swipe-item/index.d.ts +1 -1
- package/lib/switch/Switch.d.ts +16 -20
- package/lib/switch/index.css +1 -1
- package/lib/switch/index.d.ts +16 -20
- package/lib/tab/Tab.d.ts +16 -25
- package/lib/tab/index.css +1 -1
- package/lib/tab/index.d.ts +16 -25
- package/lib/tabbar/Tabbar.d.ts +24 -24
- package/lib/tabbar/index.css +1 -1
- package/lib/tabbar/index.d.ts +24 -24
- package/lib/tabbar-item/TabbarItem.d.ts +14 -80
- package/lib/tabbar-item/index.css +1 -1
- package/lib/tabbar-item/index.d.ts +12 -60
- package/lib/tabs/Tabs.d.ts +43 -44
- package/lib/tabs/TabsContent.d.ts +18 -17
- package/lib/tabs/TabsTitle.d.ts +19 -32
- package/lib/tabs/index.css +1 -1
- package/lib/tabs/index.d.ts +43 -44
- package/lib/tag/Tag.d.ts +17 -22
- package/lib/tag/index.css +1 -1
- package/lib/tag/index.d.ts +17 -22
- package/lib/toast/Toast.d.ts +31 -38
- package/lib/toast/index.css +1 -1
- package/lib/tree-select/TreeSelect.d.ts +26 -15
- package/lib/tree-select/index.css +1 -1
- package/lib/tree-select/index.d.ts +26 -15
- package/lib/uploader/Uploader.d.ts +61 -50
- package/lib/uploader/UploaderPreviewItem.d.ts +13 -20
- package/lib/uploader/index.css +1 -1
- package/lib/uploader/index.d.ts +61 -50
- package/lib/vant.cjs.js +43 -15
- package/lib/vant.cjs.min.js +1 -1
- package/lib/vant.es.js +43 -15
- package/lib/vant.es.min.js +43 -15
- package/lib/vant.js +43 -15
- package/lib/vant.min.js +1 -1
- package/package.json +3 -3
- package/vetur/attributes.json +939 -939
- package/vetur/tags.json +31 -31
- package/vetur/web-types.json +1511 -1511
package/lib/vant.es.js
CHANGED
@@ -1093,6 +1093,7 @@ const overlayProps = {
|
|
1093
1093
|
duration: numericProp,
|
1094
1094
|
className: unknownProp,
|
1095
1095
|
lockScroll: truthProp,
|
1096
|
+
lazyRender: truthProp,
|
1096
1097
|
customStyle: Object
|
1097
1098
|
};
|
1098
1099
|
var stdin_default$1t = defineComponent({
|
@@ -1101,7 +1102,7 @@ var stdin_default$1t = defineComponent({
|
|
1101
1102
|
setup(props, {
|
1102
1103
|
slots
|
1103
1104
|
}) {
|
1104
|
-
const lazyRender = useLazyRender(() => props.show);
|
1105
|
+
const lazyRender = useLazyRender(() => props.show || !props.lazyRender);
|
1105
1106
|
const preventTouchMove = (event) => {
|
1106
1107
|
preventDefault(event, true);
|
1107
1108
|
};
|
@@ -4208,9 +4209,13 @@ const proxyPickerMethods = (picker, callback) => {
|
|
4208
4209
|
};
|
4209
4210
|
const useHeight = (element) => {
|
4210
4211
|
const height = ref();
|
4211
|
-
|
4212
|
+
const setHeight = () => {
|
4212
4213
|
height.value = useRect(element).height;
|
4213
|
-
}
|
4214
|
+
};
|
4215
|
+
onMounted(() => {
|
4216
|
+
nextTick(setHeight);
|
4217
|
+
setTimeout(setHeight, 100);
|
4218
|
+
});
|
4214
4219
|
return height;
|
4215
4220
|
};
|
4216
4221
|
const [name$13] = createNamespace("calendar-day");
|
@@ -4839,7 +4844,12 @@ var stdin_default$17 = defineComponent({
|
|
4839
4844
|
if (compareToStart === 1) {
|
4840
4845
|
const disabledDay = getDisabledDate(disabledDays.value, startDay, date);
|
4841
4846
|
if (disabledDay) {
|
4842
|
-
|
4847
|
+
const endDay2 = getPrevDay(disabledDay);
|
4848
|
+
if (compareDay(startDay, endDay2) === -1) {
|
4849
|
+
select([startDay, endDay2]);
|
4850
|
+
} else {
|
4851
|
+
select([date]);
|
4852
|
+
}
|
4843
4853
|
} else {
|
4844
4854
|
select([startDay, date], true);
|
4845
4855
|
}
|
@@ -4963,6 +4973,7 @@ const imageProps = {
|
|
4963
4973
|
src: String,
|
4964
4974
|
alt: String,
|
4965
4975
|
fit: String,
|
4976
|
+
position: String,
|
4966
4977
|
round: Boolean,
|
4967
4978
|
width: numericProp,
|
4968
4979
|
height: numericProp,
|
@@ -5044,7 +5055,8 @@ var stdin_default$16 = defineComponent({
|
|
5044
5055
|
alt: props.alt,
|
5045
5056
|
class: bem$$("img"),
|
5046
5057
|
style: {
|
5047
|
-
objectFit: props.fit
|
5058
|
+
objectFit: props.fit,
|
5059
|
+
objectPosition: props.position
|
5048
5060
|
}
|
5049
5061
|
};
|
5050
5062
|
if (props.lazyLoad) {
|
@@ -5061,8 +5073,15 @@ var stdin_default$16 = defineComponent({
|
|
5061
5073
|
const onLazyLoaded = ({
|
5062
5074
|
el
|
5063
5075
|
}) => {
|
5064
|
-
|
5065
|
-
|
5076
|
+
const check = () => {
|
5077
|
+
if (el === imageRef.value && loading.value) {
|
5078
|
+
onLoad();
|
5079
|
+
}
|
5080
|
+
};
|
5081
|
+
if (imageRef.value) {
|
5082
|
+
check();
|
5083
|
+
} else {
|
5084
|
+
nextTick(check);
|
5066
5085
|
}
|
5067
5086
|
};
|
5068
5087
|
const onLazyLoadError = ({
|
@@ -6374,6 +6393,7 @@ const cascaderProps = {
|
|
6374
6393
|
closeable: truthProp,
|
6375
6394
|
swipeable: truthProp,
|
6376
6395
|
closeIcon: makeStringProp("cross"),
|
6396
|
+
showHeader: truthProp,
|
6377
6397
|
modelValue: numericProp,
|
6378
6398
|
fieldNames: Object,
|
6379
6399
|
placeholder: String,
|
@@ -6487,7 +6507,7 @@ var stdin_default$Z = defineComponent({
|
|
6487
6507
|
name: name2,
|
6488
6508
|
title
|
6489
6509
|
}) => emit("click-tab", name2, title);
|
6490
|
-
const renderHeader = () => createVNode("div", {
|
6510
|
+
const renderHeader = () => props.showHeader ? createVNode("div", {
|
6491
6511
|
"class": bem$S("header")
|
6492
6512
|
}, [createVNode("h2", {
|
6493
6513
|
"class": bem$S("title")
|
@@ -6495,7 +6515,7 @@ var stdin_default$Z = defineComponent({
|
|
6495
6515
|
"name": props.closeIcon,
|
6496
6516
|
"class": [bem$S("close-icon"), HAPTICS_FEEDBACK],
|
6497
6517
|
"onClick": onClose
|
6498
|
-
}, null) : null]);
|
6518
|
+
}, null) : null]) : null;
|
6499
6519
|
const renderOption = (option, selectedOption, tabIndex) => {
|
6500
6520
|
const {
|
6501
6521
|
disabled
|
@@ -9174,7 +9194,7 @@ var stdin_default$z = defineComponent({
|
|
9174
9194
|
return 0;
|
9175
9195
|
});
|
9176
9196
|
const setScale = (scale) => {
|
9177
|
-
scale = clamp(scale, +props.minZoom, +props.maxZoom);
|
9197
|
+
scale = clamp(scale, +props.minZoom, +props.maxZoom + 1);
|
9178
9198
|
if (scale !== state.scale) {
|
9179
9199
|
state.scale = scale;
|
9180
9200
|
emit("scale", {
|
@@ -9194,6 +9214,7 @@ var stdin_default$z = defineComponent({
|
|
9194
9214
|
state.moveX = 0;
|
9195
9215
|
state.moveY = 0;
|
9196
9216
|
};
|
9217
|
+
let fingerNum;
|
9197
9218
|
let startMoveX;
|
9198
9219
|
let startMoveY;
|
9199
9220
|
let startScale;
|
@@ -9208,11 +9229,12 @@ var stdin_default$z = defineComponent({
|
|
9208
9229
|
offsetX
|
9209
9230
|
} = touch;
|
9210
9231
|
touch.start(event);
|
9232
|
+
fingerNum = touches.length;
|
9211
9233
|
startMoveX = state.moveX;
|
9212
9234
|
startMoveY = state.moveY;
|
9213
9235
|
touchStartTime = Date.now();
|
9214
|
-
state.moving =
|
9215
|
-
state.zooming =
|
9236
|
+
state.moving = fingerNum === 1 && state.scale !== 1;
|
9237
|
+
state.zooming = fingerNum === 2 && !offsetX.value;
|
9216
9238
|
if (state.zooming) {
|
9217
9239
|
startScale = state.scale;
|
9218
9240
|
startDistance = getDistance(event.touches);
|
@@ -9243,13 +9265,16 @@ var stdin_default$z = defineComponent({
|
|
9243
9265
|
}
|
9244
9266
|
};
|
9245
9267
|
const checkTap = () => {
|
9268
|
+
if (fingerNum > 1) {
|
9269
|
+
return;
|
9270
|
+
}
|
9246
9271
|
const {
|
9247
9272
|
offsetX,
|
9248
9273
|
offsetY
|
9249
9274
|
} = touch;
|
9250
9275
|
const deltaTime = Date.now() - touchStartTime;
|
9251
9276
|
const TAP_TIME = 250;
|
9252
|
-
const TAP_OFFSET =
|
9277
|
+
const TAP_OFFSET = 5;
|
9253
9278
|
if (offsetX.value < TAP_OFFSET && offsetY.value < TAP_OFFSET && deltaTime < TAP_TIME) {
|
9254
9279
|
if (doubleTapTimer) {
|
9255
9280
|
clearTimeout(doubleTapTimer);
|
@@ -9283,6 +9308,9 @@ var stdin_default$z = defineComponent({
|
|
9283
9308
|
if (state.scale < 1) {
|
9284
9309
|
resetScale();
|
9285
9310
|
}
|
9311
|
+
if (state.scale > props.maxZoom) {
|
9312
|
+
state.scale = +props.maxZoom;
|
9313
|
+
}
|
9286
9314
|
}
|
9287
9315
|
}
|
9288
9316
|
preventDefault(event, stopPropagation2);
|
@@ -11755,7 +11783,7 @@ var stdin_default$f = defineComponent({
|
|
11755
11783
|
}
|
11756
11784
|
return rowWidth;
|
11757
11785
|
};
|
11758
|
-
const renderRows = () => Array(props.row).fill("").map((_, i) => createVNode("div", {
|
11786
|
+
const renderRows = () => Array(+props.row).fill("").map((_, i) => createVNode("div", {
|
11759
11787
|
"class": bem$a("row"),
|
11760
11788
|
"style": {
|
11761
11789
|
width: addUnit(getRowWidth(i))
|
@@ -14208,7 +14236,7 @@ const Lazyload = {
|
|
14208
14236
|
});
|
14209
14237
|
}
|
14210
14238
|
};
|
14211
|
-
const version = "3.4.
|
14239
|
+
const version = "3.4.2";
|
14212
14240
|
function install(app) {
|
14213
14241
|
const components = [
|
14214
14242
|
ActionBar,
|
package/lib/vant.es.min.js
CHANGED
@@ -1093,6 +1093,7 @@ const overlayProps = {
|
|
1093
1093
|
duration: numericProp,
|
1094
1094
|
className: unknownProp,
|
1095
1095
|
lockScroll: truthProp,
|
1096
|
+
lazyRender: truthProp,
|
1096
1097
|
customStyle: Object
|
1097
1098
|
};
|
1098
1099
|
var stdin_default$1t = defineComponent({
|
@@ -1101,7 +1102,7 @@ var stdin_default$1t = defineComponent({
|
|
1101
1102
|
setup(props, {
|
1102
1103
|
slots
|
1103
1104
|
}) {
|
1104
|
-
const lazyRender = useLazyRender(() => props.show);
|
1105
|
+
const lazyRender = useLazyRender(() => props.show || !props.lazyRender);
|
1105
1106
|
const preventTouchMove = (event) => {
|
1106
1107
|
preventDefault(event, true);
|
1107
1108
|
};
|
@@ -4208,9 +4209,13 @@ const proxyPickerMethods = (picker, callback) => {
|
|
4208
4209
|
};
|
4209
4210
|
const useHeight = (element) => {
|
4210
4211
|
const height = ref();
|
4211
|
-
|
4212
|
+
const setHeight = () => {
|
4212
4213
|
height.value = useRect(element).height;
|
4213
|
-
}
|
4214
|
+
};
|
4215
|
+
onMounted(() => {
|
4216
|
+
nextTick(setHeight);
|
4217
|
+
setTimeout(setHeight, 100);
|
4218
|
+
});
|
4214
4219
|
return height;
|
4215
4220
|
};
|
4216
4221
|
const [name$13] = createNamespace("calendar-day");
|
@@ -4839,7 +4844,12 @@ var stdin_default$17 = defineComponent({
|
|
4839
4844
|
if (compareToStart === 1) {
|
4840
4845
|
const disabledDay = getDisabledDate(disabledDays.value, startDay, date);
|
4841
4846
|
if (disabledDay) {
|
4842
|
-
|
4847
|
+
const endDay2 = getPrevDay(disabledDay);
|
4848
|
+
if (compareDay(startDay, endDay2) === -1) {
|
4849
|
+
select([startDay, endDay2]);
|
4850
|
+
} else {
|
4851
|
+
select([date]);
|
4852
|
+
}
|
4843
4853
|
} else {
|
4844
4854
|
select([startDay, date], true);
|
4845
4855
|
}
|
@@ -4963,6 +4973,7 @@ const imageProps = {
|
|
4963
4973
|
src: String,
|
4964
4974
|
alt: String,
|
4965
4975
|
fit: String,
|
4976
|
+
position: String,
|
4966
4977
|
round: Boolean,
|
4967
4978
|
width: numericProp,
|
4968
4979
|
height: numericProp,
|
@@ -5044,7 +5055,8 @@ var stdin_default$16 = defineComponent({
|
|
5044
5055
|
alt: props.alt,
|
5045
5056
|
class: bem$$("img"),
|
5046
5057
|
style: {
|
5047
|
-
objectFit: props.fit
|
5058
|
+
objectFit: props.fit,
|
5059
|
+
objectPosition: props.position
|
5048
5060
|
}
|
5049
5061
|
};
|
5050
5062
|
if (props.lazyLoad) {
|
@@ -5061,8 +5073,15 @@ var stdin_default$16 = defineComponent({
|
|
5061
5073
|
const onLazyLoaded = ({
|
5062
5074
|
el
|
5063
5075
|
}) => {
|
5064
|
-
|
5065
|
-
|
5076
|
+
const check = () => {
|
5077
|
+
if (el === imageRef.value && loading.value) {
|
5078
|
+
onLoad();
|
5079
|
+
}
|
5080
|
+
};
|
5081
|
+
if (imageRef.value) {
|
5082
|
+
check();
|
5083
|
+
} else {
|
5084
|
+
nextTick(check);
|
5066
5085
|
}
|
5067
5086
|
};
|
5068
5087
|
const onLazyLoadError = ({
|
@@ -6374,6 +6393,7 @@ const cascaderProps = {
|
|
6374
6393
|
closeable: truthProp,
|
6375
6394
|
swipeable: truthProp,
|
6376
6395
|
closeIcon: makeStringProp("cross"),
|
6396
|
+
showHeader: truthProp,
|
6377
6397
|
modelValue: numericProp,
|
6378
6398
|
fieldNames: Object,
|
6379
6399
|
placeholder: String,
|
@@ -6487,7 +6507,7 @@ var stdin_default$Z = defineComponent({
|
|
6487
6507
|
name: name2,
|
6488
6508
|
title
|
6489
6509
|
}) => emit("click-tab", name2, title);
|
6490
|
-
const renderHeader = () => createVNode("div", {
|
6510
|
+
const renderHeader = () => props.showHeader ? createVNode("div", {
|
6491
6511
|
"class": bem$S("header")
|
6492
6512
|
}, [createVNode("h2", {
|
6493
6513
|
"class": bem$S("title")
|
@@ -6495,7 +6515,7 @@ var stdin_default$Z = defineComponent({
|
|
6495
6515
|
"name": props.closeIcon,
|
6496
6516
|
"class": [bem$S("close-icon"), HAPTICS_FEEDBACK],
|
6497
6517
|
"onClick": onClose
|
6498
|
-
}, null) : null]);
|
6518
|
+
}, null) : null]) : null;
|
6499
6519
|
const renderOption = (option, selectedOption, tabIndex) => {
|
6500
6520
|
const {
|
6501
6521
|
disabled
|
@@ -9174,7 +9194,7 @@ var stdin_default$z = defineComponent({
|
|
9174
9194
|
return 0;
|
9175
9195
|
});
|
9176
9196
|
const setScale = (scale) => {
|
9177
|
-
scale = clamp(scale, +props.minZoom, +props.maxZoom);
|
9197
|
+
scale = clamp(scale, +props.minZoom, +props.maxZoom + 1);
|
9178
9198
|
if (scale !== state.scale) {
|
9179
9199
|
state.scale = scale;
|
9180
9200
|
emit("scale", {
|
@@ -9194,6 +9214,7 @@ var stdin_default$z = defineComponent({
|
|
9194
9214
|
state.moveX = 0;
|
9195
9215
|
state.moveY = 0;
|
9196
9216
|
};
|
9217
|
+
let fingerNum;
|
9197
9218
|
let startMoveX;
|
9198
9219
|
let startMoveY;
|
9199
9220
|
let startScale;
|
@@ -9208,11 +9229,12 @@ var stdin_default$z = defineComponent({
|
|
9208
9229
|
offsetX
|
9209
9230
|
} = touch;
|
9210
9231
|
touch.start(event);
|
9232
|
+
fingerNum = touches.length;
|
9211
9233
|
startMoveX = state.moveX;
|
9212
9234
|
startMoveY = state.moveY;
|
9213
9235
|
touchStartTime = Date.now();
|
9214
|
-
state.moving =
|
9215
|
-
state.zooming =
|
9236
|
+
state.moving = fingerNum === 1 && state.scale !== 1;
|
9237
|
+
state.zooming = fingerNum === 2 && !offsetX.value;
|
9216
9238
|
if (state.zooming) {
|
9217
9239
|
startScale = state.scale;
|
9218
9240
|
startDistance = getDistance(event.touches);
|
@@ -9243,13 +9265,16 @@ var stdin_default$z = defineComponent({
|
|
9243
9265
|
}
|
9244
9266
|
};
|
9245
9267
|
const checkTap = () => {
|
9268
|
+
if (fingerNum > 1) {
|
9269
|
+
return;
|
9270
|
+
}
|
9246
9271
|
const {
|
9247
9272
|
offsetX,
|
9248
9273
|
offsetY
|
9249
9274
|
} = touch;
|
9250
9275
|
const deltaTime = Date.now() - touchStartTime;
|
9251
9276
|
const TAP_TIME = 250;
|
9252
|
-
const TAP_OFFSET =
|
9277
|
+
const TAP_OFFSET = 5;
|
9253
9278
|
if (offsetX.value < TAP_OFFSET && offsetY.value < TAP_OFFSET && deltaTime < TAP_TIME) {
|
9254
9279
|
if (doubleTapTimer) {
|
9255
9280
|
clearTimeout(doubleTapTimer);
|
@@ -9283,6 +9308,9 @@ var stdin_default$z = defineComponent({
|
|
9283
9308
|
if (state.scale < 1) {
|
9284
9309
|
resetScale();
|
9285
9310
|
}
|
9311
|
+
if (state.scale > props.maxZoom) {
|
9312
|
+
state.scale = +props.maxZoom;
|
9313
|
+
}
|
9286
9314
|
}
|
9287
9315
|
}
|
9288
9316
|
preventDefault(event, stopPropagation2);
|
@@ -11755,7 +11783,7 @@ var stdin_default$f = defineComponent({
|
|
11755
11783
|
}
|
11756
11784
|
return rowWidth;
|
11757
11785
|
};
|
11758
|
-
const renderRows = () => Array(props.row).fill("").map((_, i) => createVNode("div", {
|
11786
|
+
const renderRows = () => Array(+props.row).fill("").map((_, i) => createVNode("div", {
|
11759
11787
|
"class": bem$a("row"),
|
11760
11788
|
"style": {
|
11761
11789
|
width: addUnit(getRowWidth(i))
|
@@ -14208,7 +14236,7 @@ const Lazyload = {
|
|
14208
14236
|
});
|
14209
14237
|
}
|
14210
14238
|
};
|
14211
|
-
const version = "3.4.
|
14239
|
+
const version = "3.4.2";
|
14212
14240
|
function install(app) {
|
14213
14241
|
const components = [
|
14214
14242
|
ActionBar,
|
package/lib/vant.js
CHANGED
@@ -1446,6 +1446,7 @@
|
|
1446
1446
|
duration: numericProp,
|
1447
1447
|
className: unknownProp,
|
1448
1448
|
lockScroll: truthProp,
|
1449
|
+
lazyRender: truthProp,
|
1449
1450
|
customStyle: Object
|
1450
1451
|
};
|
1451
1452
|
var stdin_default$1t = vue.defineComponent({
|
@@ -1454,7 +1455,7 @@
|
|
1454
1455
|
setup(props, {
|
1455
1456
|
slots
|
1456
1457
|
}) {
|
1457
|
-
const lazyRender = useLazyRender(() => props.show);
|
1458
|
+
const lazyRender = useLazyRender(() => props.show || !props.lazyRender);
|
1458
1459
|
const preventTouchMove = (event) => {
|
1459
1460
|
preventDefault(event, true);
|
1460
1461
|
};
|
@@ -4561,9 +4562,13 @@
|
|
4561
4562
|
};
|
4562
4563
|
const useHeight = (element) => {
|
4563
4564
|
const height2 = vue.ref();
|
4564
|
-
|
4565
|
+
const setHeight = () => {
|
4565
4566
|
height2.value = useRect(element).height;
|
4566
|
-
}
|
4567
|
+
};
|
4568
|
+
vue.onMounted(() => {
|
4569
|
+
vue.nextTick(setHeight);
|
4570
|
+
setTimeout(setHeight, 100);
|
4571
|
+
});
|
4567
4572
|
return height2;
|
4568
4573
|
};
|
4569
4574
|
const [name$13] = createNamespace("calendar-day");
|
@@ -5192,7 +5197,12 @@
|
|
5192
5197
|
if (compareToStart === 1) {
|
5193
5198
|
const disabledDay = getDisabledDate(disabledDays.value, startDay, date);
|
5194
5199
|
if (disabledDay) {
|
5195
|
-
|
5200
|
+
const endDay2 = getPrevDay(disabledDay);
|
5201
|
+
if (compareDay(startDay, endDay2) === -1) {
|
5202
|
+
select([startDay, endDay2]);
|
5203
|
+
} else {
|
5204
|
+
select([date]);
|
5205
|
+
}
|
5196
5206
|
} else {
|
5197
5207
|
select([startDay, date], true);
|
5198
5208
|
}
|
@@ -5316,6 +5326,7 @@
|
|
5316
5326
|
src: String,
|
5317
5327
|
alt: String,
|
5318
5328
|
fit: String,
|
5329
|
+
position: String,
|
5319
5330
|
round: Boolean,
|
5320
5331
|
width: numericProp,
|
5321
5332
|
height: numericProp,
|
@@ -5397,7 +5408,8 @@
|
|
5397
5408
|
alt: props.alt,
|
5398
5409
|
class: bem$$("img"),
|
5399
5410
|
style: {
|
5400
|
-
objectFit: props.fit
|
5411
|
+
objectFit: props.fit,
|
5412
|
+
objectPosition: props.position
|
5401
5413
|
}
|
5402
5414
|
};
|
5403
5415
|
if (props.lazyLoad) {
|
@@ -5414,8 +5426,15 @@
|
|
5414
5426
|
const onLazyLoaded = ({
|
5415
5427
|
el
|
5416
5428
|
}) => {
|
5417
|
-
|
5418
|
-
|
5429
|
+
const check = () => {
|
5430
|
+
if (el === imageRef.value && loading.value) {
|
5431
|
+
onLoad();
|
5432
|
+
}
|
5433
|
+
};
|
5434
|
+
if (imageRef.value) {
|
5435
|
+
check();
|
5436
|
+
} else {
|
5437
|
+
vue.nextTick(check);
|
5419
5438
|
}
|
5420
5439
|
};
|
5421
5440
|
const onLazyLoadError = ({
|
@@ -6727,6 +6746,7 @@
|
|
6727
6746
|
closeable: truthProp,
|
6728
6747
|
swipeable: truthProp,
|
6729
6748
|
closeIcon: makeStringProp("cross"),
|
6749
|
+
showHeader: truthProp,
|
6730
6750
|
modelValue: numericProp,
|
6731
6751
|
fieldNames: Object,
|
6732
6752
|
placeholder: String,
|
@@ -6840,7 +6860,7 @@
|
|
6840
6860
|
name: name2,
|
6841
6861
|
title
|
6842
6862
|
}) => emit("click-tab", name2, title);
|
6843
|
-
const renderHeader = () => vue.createVNode("div", {
|
6863
|
+
const renderHeader = () => props.showHeader ? vue.createVNode("div", {
|
6844
6864
|
"class": bem$S("header")
|
6845
6865
|
}, [vue.createVNode("h2", {
|
6846
6866
|
"class": bem$S("title")
|
@@ -6848,7 +6868,7 @@
|
|
6848
6868
|
"name": props.closeIcon,
|
6849
6869
|
"class": [bem$S("close-icon"), HAPTICS_FEEDBACK],
|
6850
6870
|
"onClick": onClose
|
6851
|
-
}, null) : null]);
|
6871
|
+
}, null) : null]) : null;
|
6852
6872
|
const renderOption = (option, selectedOption, tabIndex) => {
|
6853
6873
|
const {
|
6854
6874
|
disabled
|
@@ -9527,7 +9547,7 @@
|
|
9527
9547
|
return 0;
|
9528
9548
|
});
|
9529
9549
|
const setScale = (scale) => {
|
9530
|
-
scale = clamp(scale, +props.minZoom, +props.maxZoom);
|
9550
|
+
scale = clamp(scale, +props.minZoom, +props.maxZoom + 1);
|
9531
9551
|
if (scale !== state.scale) {
|
9532
9552
|
state.scale = scale;
|
9533
9553
|
emit("scale", {
|
@@ -9547,6 +9567,7 @@
|
|
9547
9567
|
state.moveX = 0;
|
9548
9568
|
state.moveY = 0;
|
9549
9569
|
};
|
9570
|
+
let fingerNum;
|
9550
9571
|
let startMoveX;
|
9551
9572
|
let startMoveY;
|
9552
9573
|
let startScale;
|
@@ -9561,11 +9582,12 @@
|
|
9561
9582
|
offsetX
|
9562
9583
|
} = touch;
|
9563
9584
|
touch.start(event);
|
9585
|
+
fingerNum = touches.length;
|
9564
9586
|
startMoveX = state.moveX;
|
9565
9587
|
startMoveY = state.moveY;
|
9566
9588
|
touchStartTime = Date.now();
|
9567
|
-
state.moving =
|
9568
|
-
state.zooming =
|
9589
|
+
state.moving = fingerNum === 1 && state.scale !== 1;
|
9590
|
+
state.zooming = fingerNum === 2 && !offsetX.value;
|
9569
9591
|
if (state.zooming) {
|
9570
9592
|
startScale = state.scale;
|
9571
9593
|
startDistance = getDistance(event.touches);
|
@@ -9596,13 +9618,16 @@
|
|
9596
9618
|
}
|
9597
9619
|
};
|
9598
9620
|
const checkTap = () => {
|
9621
|
+
if (fingerNum > 1) {
|
9622
|
+
return;
|
9623
|
+
}
|
9599
9624
|
const {
|
9600
9625
|
offsetX,
|
9601
9626
|
offsetY
|
9602
9627
|
} = touch;
|
9603
9628
|
const deltaTime = Date.now() - touchStartTime;
|
9604
9629
|
const TAP_TIME = 250;
|
9605
|
-
const TAP_OFFSET =
|
9630
|
+
const TAP_OFFSET = 5;
|
9606
9631
|
if (offsetX.value < TAP_OFFSET && offsetY.value < TAP_OFFSET && deltaTime < TAP_TIME) {
|
9607
9632
|
if (doubleTapTimer) {
|
9608
9633
|
clearTimeout(doubleTapTimer);
|
@@ -9636,6 +9661,9 @@
|
|
9636
9661
|
if (state.scale < 1) {
|
9637
9662
|
resetScale();
|
9638
9663
|
}
|
9664
|
+
if (state.scale > props.maxZoom) {
|
9665
|
+
state.scale = +props.maxZoom;
|
9666
|
+
}
|
9639
9667
|
}
|
9640
9668
|
}
|
9641
9669
|
preventDefault(event, stopPropagation2);
|
@@ -12965,7 +12993,7 @@
|
|
12965
12993
|
}
|
12966
12994
|
return rowWidth;
|
12967
12995
|
};
|
12968
|
-
const renderRows = () => Array(props.row).fill("").map((_, i) => vue.createVNode("div", {
|
12996
|
+
const renderRows = () => Array(+props.row).fill("").map((_, i) => vue.createVNode("div", {
|
12969
12997
|
"class": bem$a("row"),
|
12970
12998
|
"style": {
|
12971
12999
|
width: addUnit(getRowWidth(i))
|
@@ -15418,7 +15446,7 @@
|
|
15418
15446
|
});
|
15419
15447
|
}
|
15420
15448
|
};
|
15421
|
-
const version = "3.4.
|
15449
|
+
const version = "3.4.2";
|
15422
15450
|
function install(app) {
|
15423
15451
|
const components = [
|
15424
15452
|
ActionBar,
|