vant 3.4.1 → 3.4.5
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/AddressEditDetail.js +4 -3
- 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/Area.js +3 -1
- 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/CalendarMonth.js +1 -1
- 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 +44 -41
- package/es/collapse-item/CollapseItem.js +3 -2
- package/es/collapse-item/index.css +1 -1
- package/es/collapse-item/index.d.ts +40 -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/ContactCard.js +1 -1
- 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/ContactList.js +1 -1
- 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 +53 -59
- package/es/dialog/Dialog.js +19 -3
- package/es/dialog/function-call.d.ts +53 -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/dropdown-menu/index.less +0 -1
- 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/field/utils.js +2 -1
- 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/icon/index.less +1 -0
- 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/image-preview/index.less +0 -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 +20 -19
- package/es/index-bar/IndexBar.js +3 -1
- package/es/index-bar/index.css +1 -1
- package/es/index-bar/index.d.ts +19 -18
- 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/locale/lang/bn-BD.d.ts +64 -0
- package/es/locale/lang/bn-BD.js +74 -0
- package/es/locale/lang/de-DE-formal.d.ts +2 -11
- package/es/locale/lang/de-DE-formal.js +3 -12
- package/es/locale/lang/de-DE.d.ts +2 -11
- package/es/locale/lang/de-DE.js +3 -12
- package/es/locale/lang/en-US.d.ts +2 -11
- package/es/locale/lang/en-US.js +3 -12
- package/es/locale/lang/es-ES.d.ts +2 -11
- package/es/locale/lang/es-ES.js +3 -12
- package/es/locale/lang/fr-FR.d.ts +2 -11
- package/es/locale/lang/fr-FR.js +3 -12
- package/es/locale/lang/hi-IN.d.ts +64 -0
- package/es/locale/lang/hi-IN.js +74 -0
- package/es/locale/lang/id-ID.d.ts +64 -0
- package/es/locale/lang/id-ID.js +66 -0
- package/es/locale/lang/it-IT.d.ts +64 -0
- package/es/locale/lang/it-IT.js +74 -0
- package/es/locale/lang/ja-JP.d.ts +2 -12
- package/es/locale/lang/ja-JP.js +5 -15
- package/es/locale/lang/ko-KR.d.ts +64 -0
- package/es/locale/lang/ko-KR.js +74 -0
- package/es/locale/lang/nb-NO.d.ts +2 -11
- package/es/locale/lang/nb-NO.js +3 -12
- package/es/locale/lang/pt-BR.d.ts +2 -11
- package/es/locale/lang/pt-BR.js +3 -12
- package/es/locale/lang/ro-RO.d.ts +2 -11
- package/es/locale/lang/ro-RO.js +3 -12
- package/es/locale/lang/ru-RU.d.ts +2 -11
- package/es/locale/lang/ru-RU.js +3 -12
- package/es/locale/lang/th-TH.d.ts +2 -12
- package/es/locale/lang/th-TH.js +5 -15
- package/es/locale/lang/tr-TR.d.ts +2 -11
- package/es/locale/lang/tr-TR.js +2 -11
- package/es/locale/lang/uk-UA.d.ts +64 -0
- package/es/locale/lang/uk-UA.js +74 -0
- package/es/locale/lang/vi-VN.d.ts +64 -0
- package/es/locale/lang/vi-VN.js +74 -0
- package/es/locale/lang/zh-CN.d.ts +2 -12
- package/es/locale/lang/zh-CN.js +6 -16
- package/es/locale/lang/zh-HK.d.ts +2 -12
- package/es/locale/lang/zh-HK.js +6 -16
- package/es/locale/lang/zh-TW.d.ts +2 -12
- package/es/locale/lang/zh-TW.js +6 -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/nav-bar/index.less +0 -1
- 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/number-keyboard/index.less +0 -1
- 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/picker/index.less +0 -1
- 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 +45 -45
- package/es/popup/Popup.js +11 -3
- package/es/popup/index.css +1 -1
- package/es/popup/index.d.ts +45 -45
- package/es/popup/index.less +0 -1
- package/es/popup/types.d.ts +5 -2
- 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/share-sheet/index.less +0 -1
- 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/stepper/index.less +0 -1
- 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/base.less +6 -2
- 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/submit-bar/index.less +1 -0
- 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/Tag.js +2 -2
- package/es/tag/index.css +1 -1
- package/es/tag/index.d.ts +17 -22
- package/es/tag/index.less +0 -1
- package/es/toast/Toast.d.ts +34 -38
- package/es/toast/Toast.js +2 -1
- package/es/toast/index.css +1 -1
- package/es/tree-select/TreeSelect.d.ts +26 -15
- package/es/tree-select/TreeSelect.js +3 -2
- 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/es/uploader/types.d.ts +1 -3
- package/es/utils/interceptor.d.ts +1 -1
- package/lib/action-bar/ActionBar.d.ts +6 -5
- package/lib/action-bar/ActionBar.js +14 -13
- package/lib/action-bar/index.css +1 -1
- package/lib/action-bar/index.d.ts +6 -5
- package/lib/action-bar/index.js +14 -8
- package/lib/action-bar-button/ActionBarButton.d.ts +11 -21
- package/lib/action-bar-button/ActionBarButton.js +18 -17
- package/lib/action-bar-button/index.css +1 -1
- package/lib/action-bar-button/index.d.ts +11 -21
- package/lib/action-bar-button/index.js +14 -8
- package/lib/action-bar-icon/ActionBarIcon.d.ts +16 -84
- package/lib/action-bar-icon/ActionBarIcon.js +18 -17
- package/lib/action-bar-icon/index.css +1 -1
- package/lib/action-bar-icon/index.d.ts +14 -64
- package/lib/action-bar-icon/index.js +14 -8
- package/lib/action-sheet/ActionSheet.d.ts +54 -47
- package/lib/action-sheet/ActionSheet.js +17 -16
- package/lib/action-sheet/index.css +1 -1
- package/lib/action-sheet/index.d.ts +54 -47
- package/lib/action-sheet/index.js +14 -8
- package/lib/address-edit/AddressEdit.d.ts +48 -48
- package/lib/address-edit/AddressEdit.js +25 -19
- package/lib/address-edit/AddressEditDetail.d.ts +10 -20
- package/lib/address-edit/AddressEditDetail.js +19 -17
- package/lib/address-edit/index.css +1 -1
- package/lib/address-edit/index.d.ts +48 -48
- package/lib/address-edit/index.js +14 -8
- package/lib/address-edit/types.js +18 -1
- package/lib/address-list/AddressList.d.ts +18 -18
- package/lib/address-list/AddressList.js +18 -12
- package/lib/address-list/AddressListItem.d.ts +9 -12
- package/lib/address-list/AddressListItem.js +17 -16
- package/lib/address-list/index.css +1 -1
- package/lib/address-list/index.d.ts +18 -18
- package/lib/address-list/index.js +14 -8
- package/lib/address-list/index.less +1 -1
- package/lib/area/Area.d.ts +41 -33
- package/lib/area/Area.js +20 -17
- package/lib/area/index.d.ts +41 -33
- package/lib/area/index.js +14 -8
- package/lib/area/types.js +18 -1
- package/lib/badge/Badge.d.ts +19 -20
- package/lib/badge/Badge.js +13 -12
- package/lib/badge/index.css +1 -1
- package/lib/badge/index.d.ts +19 -20
- package/lib/badge/index.js +14 -8
- package/lib/button/Button.d.ts +39 -47
- package/lib/button/Button.js +16 -15
- package/lib/button/index.css +1 -1
- package/lib/button/index.d.ts +39 -47
- package/lib/button/index.js +14 -8
- package/lib/button/types.js +18 -1
- package/lib/calendar/Calendar.d.ts +85 -62
- package/lib/calendar/Calendar.js +30 -19
- package/lib/calendar/CalendarDay.d.ts +13 -14
- package/lib/calendar/CalendarDay.js +14 -13
- package/lib/calendar/CalendarHeader.d.ts +7 -14
- package/lib/calendar/CalendarHeader.js +14 -13
- package/lib/calendar/CalendarMonth.d.ts +25 -32
- package/lib/calendar/CalendarMonth.js +22 -16
- package/lib/calendar/index.css +1 -1
- package/lib/calendar/index.d.ts +85 -62
- package/lib/calendar/index.js +14 -8
- package/lib/calendar/types.js +18 -1
- package/lib/calendar/utils.js +11 -10
- package/lib/card/Card.d.ts +16 -26
- package/lib/card/Card.js +15 -14
- package/lib/card/index.css +1 -1
- package/lib/card/index.d.ts +16 -26
- package/lib/card/index.js +14 -8
- package/lib/cascader/Cascader.d.ts +36 -22
- package/lib/cascader/Cascader.js +19 -17
- package/lib/cascader/index.css +1 -1
- package/lib/cascader/index.d.ts +32 -22
- package/lib/cascader/index.js +14 -8
- package/lib/cascader/types.js +18 -1
- package/lib/cell/Cell.d.ts +27 -41
- package/lib/cell/Cell.js +15 -14
- package/lib/cell/index.css +1 -1
- package/lib/cell/index.d.ts +27 -41
- package/lib/cell/index.js +14 -8
- package/lib/cell-group/CellGroup.d.ts +8 -10
- package/lib/cell-group/CellGroup.js +13 -12
- package/lib/cell-group/index.css +1 -1
- package/lib/cell-group/index.d.ts +8 -10
- package/lib/cell-group/index.js +14 -8
- package/lib/checkbox/Checkbox.d.ts +17 -21
- package/lib/checkbox/Checkbox.js +19 -13
- package/lib/checkbox/Checker.d.ts +24 -29
- package/lib/checkbox/Checker.js +14 -13
- package/lib/checkbox/index.css +1 -1
- package/lib/checkbox/index.d.ts +17 -21
- package/lib/checkbox/index.js +14 -8
- package/lib/checkbox/types.js +18 -1
- package/lib/checkbox-group/CheckboxGroup.d.ts +11 -16
- package/lib/checkbox-group/CheckboxGroup.js +15 -14
- package/lib/checkbox-group/index.css +1 -1
- package/lib/checkbox-group/index.d.ts +11 -16
- package/lib/checkbox-group/index.js +14 -8
- package/lib/checkbox-group/types.js +18 -1
- package/lib/circle/Circle.d.ts +35 -28
- package/lib/circle/Circle.js +14 -13
- package/lib/circle/index.css +1 -1
- package/lib/circle/index.d.ts +35 -28
- package/lib/circle/index.js +14 -8
- package/lib/col/Col.d.ts +11 -10
- package/lib/col/Col.js +15 -14
- package/lib/col/index.css +1 -1
- package/lib/col/index.d.ts +11 -10
- package/lib/col/index.js +14 -8
- package/lib/collapse/Collapse.d.ts +11 -9
- package/lib/collapse/Collapse.js +14 -13
- package/lib/collapse/index.d.ts +11 -9
- package/lib/collapse/index.js +14 -8
- package/lib/collapse-item/CollapseItem.d.ts +44 -41
- package/lib/collapse-item/CollapseItem.js +22 -20
- package/lib/collapse-item/index.css +1 -1
- package/lib/collapse-item/index.d.ts +40 -41
- package/lib/collapse-item/index.js +14 -8
- package/lib/collapse-item/types.js +18 -1
- package/lib/composables/on-popup-reopen.js +11 -10
- package/lib/composables/use-expose.js +12 -11
- package/lib/composables/use-height.js +18 -13
- package/lib/composables/use-id.js +11 -10
- package/lib/composables/use-lazy-render.js +11 -10
- package/lib/composables/use-lock-scroll.js +14 -13
- package/lib/composables/use-placeholder.js +12 -11
- package/lib/composables/use-refs.js +11 -10
- package/lib/composables/use-route.js +11 -10
- package/lib/composables/use-tab-status.js +11 -10
- package/lib/composables/use-touch.js +11 -10
- package/lib/composables/use-visibility-change.js +13 -12
- package/lib/config-provider/ConfigProvider.d.ts +8 -10
- package/lib/config-provider/ConfigProvider.js +13 -12
- package/lib/config-provider/index.d.ts +8 -10
- package/lib/config-provider/index.js +14 -8
- package/lib/contact-card/ContactCard.d.ts +13 -14
- package/lib/contact-card/ContactCard.js +15 -14
- package/lib/contact-card/index.css +1 -1
- package/lib/contact-card/index.d.ts +13 -14
- package/lib/contact-card/index.js +14 -8
- package/lib/contact-edit/ContactEdit.d.ts +15 -18
- package/lib/contact-edit/ContactEdit.js +18 -17
- package/lib/contact-edit/index.css +1 -1
- package/lib/contact-edit/index.d.ts +15 -18
- package/lib/contact-edit/index.js +14 -8
- package/lib/contact-list/ContactList.d.ts +6 -11
- package/lib/contact-list/ContactList.js +20 -19
- package/lib/contact-list/index.css +1 -1
- package/lib/contact-list/index.d.ts +6 -11
- package/lib/contact-list/index.js +14 -8
- package/lib/count-down/CountDown.d.ts +15 -11
- package/lib/count-down/CountDown.js +16 -15
- package/lib/count-down/index.css +1 -1
- package/lib/count-down/index.d.ts +15 -11
- package/lib/count-down/index.js +14 -8
- package/lib/count-down/types.js +18 -1
- package/lib/count-down/utils.js +11 -10
- package/lib/coupon/Coupon.d.ts +12 -11
- package/lib/coupon/Coupon.js +15 -14
- package/lib/coupon/index.css +1 -1
- package/lib/coupon/index.d.ts +12 -11
- package/lib/coupon/index.js +14 -8
- package/lib/coupon/utils.js +11 -10
- package/lib/coupon-cell/CouponCell.d.ts +23 -16
- package/lib/coupon-cell/CouponCell.js +14 -13
- package/lib/coupon-cell/index.css +1 -1
- package/lib/coupon-cell/index.d.ts +23 -16
- package/lib/coupon-cell/index.js +14 -8
- package/lib/coupon-list/CouponList.d.ts +53 -40
- package/lib/coupon-list/CouponList.js +20 -19
- package/lib/coupon-list/index.css +1 -1
- package/lib/coupon-list/index.d.ts +53 -40
- package/lib/coupon-list/index.js +14 -8
- package/lib/datetime-picker/DatePicker.d.ts +45 -36
- package/lib/datetime-picker/DatePicker.js +16 -15
- package/lib/datetime-picker/DatetimePicker.js +18 -12
- package/lib/datetime-picker/TimePicker.d.ts +47 -38
- package/lib/datetime-picker/TimePicker.js +16 -15
- package/lib/datetime-picker/index.js +14 -8
- package/lib/datetime-picker/types.js +18 -1
- package/lib/datetime-picker/utils.js +12 -11
- package/lib/dialog/Dialog.d.ts +53 -59
- package/lib/dialog/Dialog.js +35 -18
- package/lib/dialog/function-call.d.ts +53 -59
- package/lib/dialog/function-call.js +16 -10
- package/lib/dialog/index.css +1 -1
- package/lib/dialog/index.js +11 -10
- package/lib/dialog/types.js +18 -1
- package/lib/divider/Divider.d.ts +11 -9
- package/lib/divider/Divider.js +13 -12
- package/lib/divider/index.css +1 -1
- package/lib/divider/index.d.ts +11 -9
- package/lib/divider/index.js +14 -8
- package/lib/dropdown-item/DropdownItem.d.ts +15 -18
- package/lib/dropdown-item/DropdownItem.js +19 -18
- package/lib/dropdown-item/index.css +1 -1
- package/lib/dropdown-item/index.d.ts +15 -18
- package/lib/dropdown-item/index.js +14 -8
- package/lib/dropdown-item/types.js +18 -1
- package/lib/dropdown-menu/DropdownMenu.d.ts +24 -18
- package/lib/dropdown-menu/DropdownMenu.js +15 -14
- package/lib/dropdown-menu/index.css +1 -1
- package/lib/dropdown-menu/index.d.ts +24 -18
- package/lib/dropdown-menu/index.js +14 -8
- package/lib/dropdown-menu/index.less +0 -1
- package/lib/dropdown-menu/types.js +18 -1
- package/lib/empty/Empty.d.ts +8 -10
- package/lib/empty/Empty.js +14 -13
- package/lib/empty/Network.js +11 -10
- package/lib/empty/index.css +1 -1
- package/lib/empty/index.d.ts +8 -10
- package/lib/empty/index.js +14 -8
- package/lib/field/Field.d.ts +80 -90
- package/lib/field/Field.js +20 -19
- package/lib/field/index.css +1 -1
- package/lib/field/index.d.ts +80 -90
- package/lib/field/index.js +14 -8
- package/lib/field/types.js +18 -1
- package/lib/field/utils.js +13 -11
- package/lib/form/Form.d.ts +24 -30
- package/lib/form/Form.js +15 -14
- package/lib/form/index.d.ts +24 -30
- package/lib/form/index.js +14 -8
- package/lib/form/types.js +18 -1
- package/lib/grid/Grid.d.ts +20 -22
- package/lib/grid/Grid.js +15 -14
- package/lib/grid/index.css +1 -1
- package/lib/grid/index.d.ts +20 -22
- package/lib/grid/index.js +14 -8
- package/lib/grid-item/GridItem.d.ts +15 -82
- package/lib/grid-item/GridItem.js +18 -17
- package/lib/grid-item/index.css +1 -1
- package/lib/grid-item/index.d.ts +13 -62
- package/lib/grid-item/index.js +14 -8
- package/lib/icon/Icon.d.ts +16 -79
- package/lib/icon/Icon.js +15 -14
- package/lib/icon/index.css +1 -1
- package/lib/icon/index.d.ts +14 -59
- package/lib/icon/index.js +14 -8
- package/lib/icon/index.less +1 -0
- package/lib/image/Image.d.ts +32 -32
- package/lib/image/Image.js +26 -16
- package/lib/image/index.css +1 -1
- package/lib/image/index.d.ts +30 -32
- package/lib/image/index.js +14 -8
- package/lib/image-preview/ImagePreview.d.ts +54 -42
- package/lib/image-preview/ImagePreview.js +21 -15
- package/lib/image-preview/ImagePreviewItem.d.ts +21 -18
- package/lib/image-preview/ImagePreviewItem.js +29 -20
- package/lib/image-preview/function-call.d.ts +54 -42
- package/lib/image-preview/function-call.js +16 -10
- package/lib/image-preview/index.css +1 -1
- package/lib/image-preview/index.js +11 -10
- package/lib/image-preview/index.less +0 -1
- package/lib/image-preview/types.js +18 -1
- package/lib/index-anchor/IndexAnchor.d.ts +3 -5
- package/lib/index-anchor/IndexAnchor.js +17 -16
- package/lib/index-anchor/index.css +1 -1
- package/lib/index-anchor/index.d.ts +3 -5
- package/lib/index-anchor/index.js +14 -8
- package/lib/index-bar/IndexBar.d.ts +20 -19
- package/lib/index-bar/IndexBar.js +19 -16
- package/lib/index-bar/index.css +1 -1
- package/lib/index-bar/index.d.ts +19 -18
- package/lib/index-bar/index.js +14 -8
- package/lib/index-bar/types.js +18 -1
- package/lib/index.css +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +182 -181
- package/lib/lazyload/index.js +11 -10
- package/lib/lazyload/vue-lazyload/index.js +16 -10
- package/lib/lazyload/vue-lazyload/lazy-component.js +12 -11
- package/lib/lazyload/vue-lazyload/lazy-container.js +11 -10
- package/lib/lazyload/vue-lazyload/lazy-image.js +13 -12
- package/lib/lazyload/vue-lazyload/lazy.js +17 -11
- package/lib/lazyload/vue-lazyload/listener.js +13 -12
- package/lib/lazyload/vue-lazyload/util.js +11 -10
- package/lib/list/List.d.ts +20 -22
- package/lib/list/List.js +17 -16
- package/lib/list/index.css +1 -1
- package/lib/list/index.d.ts +20 -22
- package/lib/list/index.js +14 -8
- package/lib/list/types.js +18 -1
- package/lib/loading/Loading.d.ts +11 -16
- package/lib/loading/Loading.js +13 -12
- package/lib/loading/index.css +1 -1
- package/lib/loading/index.d.ts +11 -16
- package/lib/loading/index.js +14 -8
- package/lib/locale/index.js +15 -9
- package/lib/locale/lang/bn-BD.d.ts +64 -0
- package/lib/locale/lang/bn-BD.js +98 -0
- package/lib/locale/lang/de-DE-formal.d.ts +2 -11
- package/lib/locale/lang/de-DE-formal.js +22 -14
- package/lib/locale/lang/de-DE.d.ts +2 -11
- package/lib/locale/lang/de-DE.js +22 -14
- package/lib/locale/lang/en-US.d.ts +2 -11
- package/lib/locale/lang/en-US.js +22 -14
- package/lib/locale/lang/es-ES.d.ts +2 -11
- package/lib/locale/lang/es-ES.js +22 -14
- package/lib/locale/lang/fr-FR.d.ts +2 -11
- package/lib/locale/lang/fr-FR.js +22 -14
- package/lib/locale/lang/hi-IN.d.ts +64 -0
- package/lib/locale/lang/hi-IN.js +98 -0
- package/lib/locale/lang/id-ID.d.ts +64 -0
- package/lib/locale/lang/id-ID.js +90 -0
- package/lib/locale/lang/it-IT.d.ts +64 -0
- package/lib/locale/lang/it-IT.js +98 -0
- package/lib/locale/lang/ja-JP.d.ts +2 -12
- package/lib/locale/lang/ja-JP.js +24 -17
- package/lib/locale/lang/ko-KR.d.ts +64 -0
- package/lib/locale/lang/ko-KR.js +98 -0
- package/lib/locale/lang/nb-NO.d.ts +2 -11
- package/lib/locale/lang/nb-NO.js +22 -14
- package/lib/locale/lang/pt-BR.d.ts +2 -11
- package/lib/locale/lang/pt-BR.js +22 -14
- package/lib/locale/lang/ro-RO.d.ts +2 -11
- package/lib/locale/lang/ro-RO.js +22 -14
- package/lib/locale/lang/ru-RU.d.ts +2 -11
- package/lib/locale/lang/ru-RU.js +22 -14
- package/lib/locale/lang/th-TH.d.ts +2 -12
- package/lib/locale/lang/th-TH.js +24 -17
- package/lib/locale/lang/tr-TR.d.ts +2 -11
- package/lib/locale/lang/tr-TR.js +21 -13
- package/lib/locale/lang/uk-UA.d.ts +64 -0
- package/lib/locale/lang/uk-UA.js +98 -0
- package/lib/locale/lang/vi-VN.d.ts +64 -0
- package/lib/locale/lang/vi-VN.js +98 -0
- package/lib/locale/lang/zh-CN.d.ts +2 -12
- package/lib/locale/lang/zh-CN.js +25 -18
- package/lib/locale/lang/zh-HK.d.ts +2 -12
- package/lib/locale/lang/zh-HK.js +25 -18
- package/lib/locale/lang/zh-TW.d.ts +2 -12
- package/lib/locale/lang/zh-TW.js +25 -18
- package/lib/nav-bar/NavBar.d.ts +14 -22
- package/lib/nav-bar/NavBar.js +15 -14
- package/lib/nav-bar/index.css +1 -1
- package/lib/nav-bar/index.d.ts +14 -22
- package/lib/nav-bar/index.js +14 -8
- package/lib/nav-bar/index.less +0 -1
- package/lib/notice-bar/NoticeBar.d.ts +20 -22
- package/lib/notice-bar/NoticeBar.js +17 -16
- package/lib/notice-bar/index.css +1 -1
- package/lib/notice-bar/index.d.ts +20 -22
- package/lib/notice-bar/index.js +14 -8
- package/lib/notice-bar/types.js +18 -1
- package/lib/notify/Notify.d.ts +39 -39
- package/lib/notify/Notify.js +15 -14
- package/lib/notify/function-call.d.ts +39 -39
- package/lib/notify/function-call.js +16 -10
- package/lib/notify/index.css +1 -1
- package/lib/notify/index.js +11 -10
- package/lib/notify/types.js +18 -1
- package/lib/number-keyboard/NumberKeyboard.d.ts +46 -38
- package/lib/number-keyboard/NumberKeyboard.js +17 -11
- package/lib/number-keyboard/NumberKeyboardKey.d.ts +8 -16
- package/lib/number-keyboard/NumberKeyboardKey.js +15 -14
- package/lib/number-keyboard/index.css +1 -1
- package/lib/number-keyboard/index.d.ts +46 -38
- package/lib/number-keyboard/index.js +14 -8
- package/lib/number-keyboard/index.less +0 -1
- package/lib/overlay/Overlay.d.ts +24 -16
- package/lib/overlay/Overlay.js +16 -14
- package/lib/overlay/index.css +1 -1
- package/lib/overlay/index.d.ts +20 -16
- package/lib/overlay/index.js +14 -8
- package/lib/pagination/Pagination.d.ts +29 -22
- package/lib/pagination/Pagination.js +13 -12
- package/lib/pagination/index.css +1 -1
- package/lib/pagination/index.d.ts +29 -22
- package/lib/pagination/index.js +14 -8
- package/lib/password-input/PasswordInput.d.ts +18 -18
- package/lib/password-input/PasswordInput.js +13 -12
- package/lib/password-input/index.css +1 -1
- package/lib/password-input/index.d.ts +18 -18
- package/lib/password-input/index.js +14 -8
- package/lib/picker/Picker.d.ts +38 -33
- package/lib/picker/Picker.js +19 -13
- package/lib/picker/PickerColumn.d.ts +29 -22
- package/lib/picker/PickerColumn.js +17 -16
- package/lib/picker/index.css +1 -1
- package/lib/picker/index.d.ts +38 -33
- package/lib/picker/index.js +14 -8
- package/lib/picker/index.less +0 -1
- package/lib/picker/types.js +18 -1
- package/lib/popover/Popover.d.ts +48 -36
- package/lib/popover/Popover.js +17 -16
- package/lib/popover/index.css +1 -1
- package/lib/popover/index.d.ts +48 -36
- package/lib/popover/index.js +14 -8
- package/lib/popover/types.js +18 -1
- package/lib/popup/Popup.d.ts +45 -45
- package/lib/popup/Popup.js +31 -22
- package/lib/popup/index.css +1 -1
- package/lib/popup/index.d.ts +45 -45
- package/lib/popup/index.js +14 -8
- package/lib/popup/index.less +0 -1
- package/lib/popup/shared.js +11 -10
- package/lib/popup/types.d.ts +5 -2
- package/lib/popup/types.js +18 -1
- package/lib/progress/Progress.d.ts +18 -22
- package/lib/progress/Progress.js +13 -12
- package/lib/progress/index.css +1 -1
- package/lib/progress/index.d.ts +18 -22
- package/lib/progress/index.js +14 -8
- package/lib/progress/types.js +18 -1
- package/lib/pull-refresh/PullRefresh.d.ts +21 -24
- package/lib/pull-refresh/PullRefresh.js +16 -15
- package/lib/pull-refresh/index.css +1 -1
- package/lib/pull-refresh/index.d.ts +21 -24
- package/lib/pull-refresh/index.js +14 -8
- package/lib/radio/Radio.d.ts +13 -20
- package/lib/radio/Radio.js +18 -12
- package/lib/radio/index.css +1 -1
- package/lib/radio/index.d.ts +13 -20
- package/lib/radio/index.js +14 -8
- package/lib/radio-group/RadioGroup.d.ts +7 -14
- package/lib/radio-group/RadioGroup.js +14 -13
- package/lib/radio-group/index.css +1 -1
- package/lib/radio-group/index.d.ts +7 -14
- package/lib/radio-group/index.js +14 -8
- package/lib/rate/Rate.d.ts +31 -32
- package/lib/rate/Rate.js +17 -16
- package/lib/rate/index.css +1 -1
- package/lib/rate/index.d.ts +31 -32
- package/lib/rate/index.js +14 -8
- package/lib/row/Row.d.ts +16 -14
- package/lib/row/Row.js +14 -13
- package/lib/row/index.css +1 -1
- package/lib/row/index.d.ts +16 -14
- package/lib/row/index.js +14 -8
- package/lib/search/Search.d.ts +58 -51
- package/lib/search/Search.js +17 -16
- package/lib/search/index.css +1 -1
- package/lib/search/index.d.ts +58 -51
- package/lib/search/index.js +14 -8
- package/lib/search/types.js +18 -1
- package/lib/share-sheet/ShareSheet.d.ts +45 -41
- package/lib/share-sheet/ShareSheet.js +15 -14
- package/lib/share-sheet/index.css +1 -1
- package/lib/share-sheet/index.d.ts +45 -41
- package/lib/share-sheet/index.js +14 -8
- package/lib/share-sheet/index.less +0 -1
- package/lib/sidebar/Sidebar.d.ts +6 -5
- package/lib/sidebar/Sidebar.js +14 -13
- package/lib/sidebar/index.css +1 -1
- package/lib/sidebar/index.d.ts +6 -5
- package/lib/sidebar/index.js +14 -8
- package/lib/sidebar-item/SidebarItem.d.ts +13 -78
- package/lib/sidebar-item/SidebarItem.js +17 -16
- package/lib/sidebar-item/index.css +1 -1
- package/lib/sidebar-item/index.d.ts +11 -58
- package/lib/sidebar-item/index.js +14 -8
- package/lib/skeleton/Skeleton.d.ts +27 -24
- package/lib/skeleton/Skeleton.js +14 -13
- package/lib/skeleton/index.css +1 -1
- package/lib/skeleton/index.d.ts +27 -24
- package/lib/skeleton/index.js +14 -8
- package/lib/slider/Slider.d.ts +27 -30
- package/lib/slider/Slider.js +15 -14
- package/lib/slider/index.css +1 -1
- package/lib/slider/index.d.ts +27 -30
- package/lib/slider/index.js +14 -8
- package/lib/step/Step.d.ts +1 -1
- package/lib/step/Step.js +16 -15
- package/lib/step/index.css +1 -1
- package/lib/step/index.d.ts +1 -1
- package/lib/step/index.js +14 -8
- package/lib/stepper/Stepper.d.ts +51 -48
- package/lib/stepper/Stepper.js +14 -13
- package/lib/stepper/index.css +1 -1
- package/lib/stepper/index.d.ts +51 -48
- package/lib/stepper/index.js +14 -8
- package/lib/stepper/index.less +0 -1
- package/lib/steps/Steps.d.ts +19 -20
- package/lib/steps/Steps.js +14 -13
- package/lib/steps/index.css +1 -1
- package/lib/steps/index.d.ts +19 -20
- package/lib/steps/index.js +14 -8
- package/lib/sticky/Sticky.d.ts +16 -14
- package/lib/sticky/Sticky.js +15 -14
- package/lib/sticky/index.css +1 -1
- package/lib/sticky/index.d.ts +16 -14
- package/lib/sticky/index.js +14 -8
- package/lib/style/animation.css +1 -1
- package/lib/style/base.css +1 -1
- package/lib/style/base.less +6 -2
- 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/SubmitBar.js +15 -14
- package/lib/submit-bar/index.css +1 -1
- package/lib/submit-bar/index.d.ts +28 -32
- package/lib/submit-bar/index.js +14 -8
- package/lib/submit-bar/index.less +1 -0
- package/lib/swipe/Swipe.d.ts +35 -28
- package/lib/swipe/Swipe.js +17 -16
- package/lib/swipe/index.css +1 -1
- package/lib/swipe/index.d.ts +35 -28
- package/lib/swipe/index.js +14 -8
- package/lib/swipe/types.js +18 -1
- package/lib/swipe-cell/SwipeCell.d.ts +11 -16
- package/lib/swipe-cell/SwipeCell.js +16 -15
- package/lib/swipe-cell/index.css +1 -1
- package/lib/swipe-cell/index.d.ts +11 -16
- package/lib/swipe-cell/index.js +14 -8
- package/lib/swipe-cell/types.js +18 -1
- package/lib/swipe-item/SwipeItem.d.ts +1 -1
- package/lib/swipe-item/SwipeItem.js +16 -15
- package/lib/swipe-item/index.css +1 -1
- package/lib/swipe-item/index.d.ts +1 -1
- package/lib/swipe-item/index.js +14 -8
- package/lib/switch/Switch.d.ts +16 -20
- package/lib/switch/Switch.js +15 -14
- package/lib/switch/index.css +1 -1
- package/lib/switch/index.d.ts +16 -20
- package/lib/switch/index.js +14 -8
- package/lib/tab/Tab.d.ts +16 -25
- package/lib/tab/Tab.js +20 -19
- package/lib/tab/index.css +1 -1
- package/lib/tab/index.d.ts +16 -25
- package/lib/tab/index.js +14 -8
- package/lib/tabbar/Tabbar.d.ts +24 -24
- package/lib/tabbar/Tabbar.js +15 -14
- package/lib/tabbar/index.css +1 -1
- package/lib/tabbar/index.d.ts +24 -24
- package/lib/tabbar/index.js +14 -8
- package/lib/tabbar-item/TabbarItem.d.ts +14 -80
- package/lib/tabbar-item/TabbarItem.js +18 -17
- package/lib/tabbar-item/index.css +1 -1
- package/lib/tabbar-item/index.d.ts +12 -60
- package/lib/tabbar-item/index.js +14 -8
- package/lib/tabs/Tabs.d.ts +43 -44
- package/lib/tabs/Tabs.js +25 -19
- package/lib/tabs/TabsContent.d.ts +18 -17
- package/lib/tabs/TabsContent.js +14 -13
- package/lib/tabs/TabsTitle.d.ts +19 -32
- package/lib/tabs/TabsTitle.js +14 -13
- package/lib/tabs/index.css +1 -1
- package/lib/tabs/index.d.ts +43 -44
- package/lib/tabs/index.js +14 -8
- package/lib/tabs/types.js +18 -1
- package/lib/tabs/utils.js +12 -11
- package/lib/tag/Tag.d.ts +17 -22
- package/lib/tag/Tag.js +15 -14
- package/lib/tag/index.css +1 -1
- package/lib/tag/index.d.ts +17 -22
- package/lib/tag/index.js +14 -8
- package/lib/tag/index.less +0 -1
- package/lib/toast/Toast.d.ts +34 -38
- package/lib/toast/Toast.js +19 -17
- package/lib/toast/function-call.js +17 -11
- package/lib/toast/index.css +1 -1
- package/lib/toast/index.js +11 -10
- package/lib/toast/lock-click.js +19 -2
- package/lib/toast/types.js +18 -1
- package/lib/tree-select/TreeSelect.d.ts +26 -15
- package/lib/tree-select/TreeSelect.js +19 -17
- package/lib/tree-select/index.css +1 -1
- package/lib/tree-select/index.d.ts +26 -15
- package/lib/tree-select/index.js +14 -8
- package/lib/uploader/Uploader.d.ts +61 -50
- package/lib/uploader/Uploader.js +21 -15
- package/lib/uploader/UploaderPreviewItem.d.ts +13 -20
- package/lib/uploader/UploaderPreviewItem.js +17 -16
- package/lib/uploader/index.css +1 -1
- package/lib/uploader/index.d.ts +61 -50
- package/lib/uploader/index.js +14 -8
- package/lib/uploader/types.d.ts +1 -3
- package/lib/uploader/types.js +18 -1
- package/lib/uploader/utils.js +11 -10
- package/lib/utils/basic.js +19 -2
- package/lib/utils/constant.js +19 -2
- package/lib/utils/create.js +16 -10
- package/lib/utils/deep-assign.js +11 -10
- package/lib/utils/deep-clone.js +11 -10
- package/lib/utils/dom.js +13 -12
- package/lib/utils/format.js +13 -12
- package/lib/utils/index.js +18 -17
- package/lib/utils/interceptor.d.ts +1 -1
- package/lib/utils/interceptor.js +12 -11
- package/lib/utils/mount-component.js +13 -12
- package/lib/utils/props.js +19 -2
- package/lib/utils/validate.js +11 -10
- package/lib/utils/with-install.js +11 -10
- package/lib/vant.cjs.js +100 -49
- package/lib/vant.cjs.min.js +1 -1
- package/lib/vant.es.js +101 -50
- package/lib/vant.es.min.js +101 -50
- package/lib/vant.js +104 -52
- package/lib/vant.min.js +1 -1
- package/package.json +6 -9
- package/vetur/attributes.json +1031 -1027
- package/vetur/tags.json +77 -76
- package/vetur/web-types.json +1952 -1942
package/lib/vant.es.min.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { useWindowSize, useRect, useChildren, useParent, onMountedOrActivated, getScrollParent, useEventListener, CUSTOM_FIELD_INJECTION_KEY, useCustomFieldValue, useToggle, raf, useScrollParent, usePageVisibility, doubleRaf, cancelRaf, useCountDown, useClickAway, inBrowser as inBrowser$1 } from "@vant/use";
|
2
|
-
import { unref, ref, reactive, defineComponent, createVNode, getCurrentInstance, computed, provide, inject, mergeProps, onDeactivated, onBeforeUnmount, watch, Transition, withDirectives, vShow, onMounted, onActivated, Teleport, Fragment,
|
2
|
+
import { unref, ref, reactive, defineComponent, createVNode, getCurrentInstance, computed, provide, inject, mergeProps, onDeactivated, onBeforeUnmount, watch, Transition, withDirectives, vShow, nextTick, onMounted, onActivated, Teleport, Fragment, createTextVNode, createApp, onUnmounted, onBeforeUpdate, resolveDirective, withKeys, onUpdated, watchEffect, h } from "vue";
|
3
3
|
import { createPopper, offsetModifier } from "@vant/popperjs";
|
4
4
|
function noop() {
|
5
5
|
}
|
@@ -237,13 +237,12 @@ var stdin_default$1D = {
|
|
237
237
|
loading: "\u52A0\u8F7D\u4E2D...",
|
238
238
|
noCoupon: "\u6682\u65E0\u4F18\u60E0\u5238",
|
239
239
|
nameEmpty: "\u8BF7\u586B\u5199\u59D3\u540D",
|
240
|
+
addContact: "\u6DFB\u52A0\u8054\u7CFB\u4EBA",
|
240
241
|
telInvalid: "\u8BF7\u586B\u5199\u6B63\u786E\u7684\u7535\u8BDD",
|
241
242
|
vanCalendar: {
|
242
243
|
end: "\u7ED3\u675F",
|
243
244
|
start: "\u5F00\u59CB",
|
244
245
|
title: "\u65E5\u671F\u9009\u62E9",
|
245
|
-
confirm: "\u786E\u5B9A",
|
246
|
-
startEnd: "\u5F00\u59CB/\u7ED3\u675F",
|
247
246
|
weekdays: ["\u65E5", "\u4E00", "\u4E8C", "\u4E09", "\u56DB", "\u4E94", "\u516D"],
|
248
247
|
monthTitle: (year, month) => `${year}\u5E74${month}\u6708`,
|
249
248
|
rangePrompt: (maxRange) => `\u6700\u591A\u9009\u62E9 ${maxRange} \u5929`
|
@@ -251,12 +250,6 @@ var stdin_default$1D = {
|
|
251
250
|
vanCascader: {
|
252
251
|
select: "\u8BF7\u9009\u62E9"
|
253
252
|
},
|
254
|
-
vanContactCard: {
|
255
|
-
addText: "\u6DFB\u52A0\u8054\u7CFB\u4EBA"
|
256
|
-
},
|
257
|
-
vanContactList: {
|
258
|
-
addText: "\u65B0\u5EFA\u8054\u7CFB\u4EBA"
|
259
|
-
},
|
260
253
|
vanPagination: {
|
261
254
|
prev: "\u4E0A\u4E00\u9875",
|
262
255
|
next: "\u4E0B\u4E00\u9875"
|
@@ -266,10 +259,10 @@ var stdin_default$1D = {
|
|
266
259
|
loosing: "\u91CA\u653E\u5373\u53EF\u5237\u65B0..."
|
267
260
|
},
|
268
261
|
vanSubmitBar: {
|
269
|
-
label: "\u5408\u8BA1
|
262
|
+
label: "\u5408\u8BA1:"
|
270
263
|
},
|
271
264
|
vanCoupon: {
|
272
|
-
unlimited: "\u65E0\
|
265
|
+
unlimited: "\u65E0\u95E8\u69DB",
|
273
266
|
discount: (discount) => `${discount}\u6298`,
|
274
267
|
condition: (condition) => `\u6EE1${condition}\u5143\u53EF\u7528`
|
275
268
|
},
|
@@ -279,10 +272,10 @@ var stdin_default$1D = {
|
|
279
272
|
},
|
280
273
|
vanCouponList: {
|
281
274
|
exchange: "\u5151\u6362",
|
282
|
-
close: "\u4E0D\u4F7F\u7528
|
275
|
+
close: "\u4E0D\u4F7F\u7528",
|
283
276
|
enable: "\u53EF\u7528",
|
284
277
|
disabled: "\u4E0D\u53EF\u7528",
|
285
|
-
placeholder: "\
|
278
|
+
placeholder: "\u8F93\u5165\u4F18\u60E0\u7801"
|
286
279
|
},
|
287
280
|
vanAddressEdit: {
|
288
281
|
area: "\u5730\u533A",
|
@@ -290,12 +283,9 @@ var stdin_default$1D = {
|
|
290
283
|
areaEmpty: "\u8BF7\u9009\u62E9\u5730\u533A",
|
291
284
|
addressEmpty: "\u8BF7\u586B\u5199\u8BE6\u7EC6\u5730\u5740",
|
292
285
|
postalEmpty: "\u90AE\u653F\u7F16\u7801\u4E0D\u6B63\u786E",
|
286
|
+
addressDetail: "\u8BE6\u7EC6\u5730\u5740",
|
293
287
|
defaultAddress: "\u8BBE\u4E3A\u9ED8\u8BA4\u6536\u8D27\u5730\u5740"
|
294
288
|
},
|
295
|
-
vanAddressEditDetail: {
|
296
|
-
label: "\u8BE6\u7EC6\u5730\u5740",
|
297
|
-
placeholder: "\u8857\u9053\u95E8\u724C\u4FE1\u606F"
|
298
|
-
},
|
299
289
|
vanAddressList: {
|
300
290
|
add: "\u65B0\u589E\u5730\u5740"
|
301
291
|
}
|
@@ -1093,6 +1083,7 @@ const overlayProps = {
|
|
1093
1083
|
duration: numericProp,
|
1094
1084
|
className: unknownProp,
|
1095
1085
|
lockScroll: truthProp,
|
1086
|
+
lazyRender: truthProp,
|
1096
1087
|
customStyle: Object
|
1097
1088
|
};
|
1098
1089
|
var stdin_default$1t = defineComponent({
|
@@ -1101,7 +1092,7 @@ var stdin_default$1t = defineComponent({
|
|
1101
1092
|
setup(props, {
|
1102
1093
|
slots
|
1103
1094
|
}) {
|
1104
|
-
const lazyRender = useLazyRender(() => props.show);
|
1095
|
+
const lazyRender = useLazyRender(() => props.show || !props.lazyRender);
|
1105
1096
|
const preventTouchMove = (event) => {
|
1106
1097
|
preventDefault(event, true);
|
1107
1098
|
};
|
@@ -1143,7 +1134,7 @@ var stdin_default$1s = defineComponent({
|
|
1143
1134
|
name: name$1l,
|
1144
1135
|
inheritAttrs: false,
|
1145
1136
|
props: popupProps$2,
|
1146
|
-
emits: ["open", "close", "opened", "closed", "update:show", "click-overlay", "click-close-icon"],
|
1137
|
+
emits: ["open", "close", "opened", "closed", "keydown", "update:show", "click-overlay", "click-close-icon"],
|
1147
1138
|
setup(props, {
|
1148
1139
|
emit,
|
1149
1140
|
attrs,
|
@@ -1223,6 +1214,7 @@ var stdin_default$1s = defineComponent({
|
|
1223
1214
|
};
|
1224
1215
|
const onOpened = () => emit("opened");
|
1225
1216
|
const onClosed = () => emit("closed");
|
1217
|
+
const onKeydown = (event) => emit("keydown", event);
|
1226
1218
|
const renderPopup = lazyRender(() => {
|
1227
1219
|
var _a;
|
1228
1220
|
const {
|
@@ -1238,7 +1230,8 @@ var stdin_default$1s = defineComponent({
|
|
1238
1230
|
[position]: position
|
1239
1231
|
}), {
|
1240
1232
|
"van-safe-area-bottom": safeAreaInsetBottom
|
1241
|
-
}]
|
1233
|
+
}],
|
1234
|
+
"onKeydown": onKeydown
|
1242
1235
|
}, attrs), [(_a = slots.default) == null ? void 0 : _a.call(slots), renderCloseIcon()]), [[vShow, props.show]]);
|
1243
1236
|
});
|
1244
1237
|
const renderTransition = () => {
|
@@ -1260,6 +1253,12 @@ var stdin_default$1s = defineComponent({
|
|
1260
1253
|
watch(() => props.show, (show) => {
|
1261
1254
|
if (show && !opened) {
|
1262
1255
|
open();
|
1256
|
+
if (attrs.tabindex === 0) {
|
1257
|
+
nextTick(() => {
|
1258
|
+
var _a;
|
1259
|
+
(_a = popupRef.value) == null ? void 0 : _a.focus();
|
1260
|
+
});
|
1261
|
+
}
|
1263
1262
|
}
|
1264
1263
|
if (!show && opened) {
|
1265
1264
|
opened = false;
|
@@ -2175,7 +2174,9 @@ var stdin_default$1o = defineComponent({
|
|
2175
2174
|
watch(() => props.areaList, setValues, {
|
2176
2175
|
deep: true
|
2177
2176
|
});
|
2178
|
-
watch(() => props.columnsNum, () =>
|
2177
|
+
watch(() => props.columnsNum, () => {
|
2178
|
+
nextTick(setValues);
|
2179
|
+
});
|
2179
2180
|
useExpose({
|
2180
2181
|
reset,
|
2181
2182
|
getArea,
|
@@ -2473,7 +2474,8 @@ function runRuleValidator(value, rule) {
|
|
2473
2474
|
return new Promise((resolve) => {
|
2474
2475
|
const returnVal = rule.validator(value, rule);
|
2475
2476
|
if (isPromise(returnVal)) {
|
2476
|
-
|
2477
|
+
returnVal.then(resolve);
|
2478
|
+
return;
|
2477
2479
|
}
|
2478
2480
|
resolve(returnVal);
|
2479
2481
|
});
|
@@ -3011,7 +3013,7 @@ function lockClick(lock) {
|
|
3011
3013
|
}
|
3012
3014
|
}
|
3013
3015
|
const [name$1d, bem$19] = createNamespace("toast");
|
3014
|
-
const popupInheritProps = ["show", "overlay", "transition", "overlayClass", "overlayStyle", "closeOnClickOverlay"];
|
3016
|
+
const popupInheritProps = ["show", "overlay", "teleport", "transition", "overlayClass", "overlayStyle", "closeOnClickOverlay"];
|
3015
3017
|
const toastProps = {
|
3016
3018
|
icon: String,
|
3017
3019
|
show: Boolean,
|
@@ -3021,6 +3023,7 @@ const toastProps = {
|
|
3021
3023
|
iconSize: numericProp,
|
3022
3024
|
duration: makeNumberProp(2e3),
|
3023
3025
|
position: makeStringProp("middle"),
|
3026
|
+
teleport: [String, Object],
|
3024
3027
|
className: unknownProp,
|
3025
3028
|
iconPrefix: String,
|
3026
3029
|
transition: makeStringProp("van-fade"),
|
@@ -3322,7 +3325,8 @@ var stdin_default$1j = defineComponent({
|
|
3322
3325
|
}
|
3323
3326
|
});
|
3324
3327
|
const Switch = withInstall(stdin_default$1j);
|
3325
|
-
const [name$1b, bem$17
|
3328
|
+
const [name$1b, bem$17] = createNamespace("address-edit-detail");
|
3329
|
+
const t$i = createNamespace("address-edit")[2];
|
3326
3330
|
var stdin_default$1i = defineComponent({
|
3327
3331
|
name: name$1b,
|
3328
3332
|
props: {
|
@@ -3385,11 +3389,11 @@ var stdin_default$1i = defineComponent({
|
|
3385
3389
|
"rows": props.rows,
|
3386
3390
|
"type": "textarea",
|
3387
3391
|
"rules": props.rules,
|
3388
|
-
"label": t$i("
|
3392
|
+
"label": t$i("addressDetail"),
|
3389
3393
|
"border": !showSearchResult(),
|
3390
3394
|
"maxlength": props.maxlength,
|
3391
3395
|
"modelValue": props.value,
|
3392
|
-
"placeholder": t$i("
|
3396
|
+
"placeholder": t$i("addressDetail"),
|
3393
3397
|
"onBlur": onBlur,
|
3394
3398
|
"onFocus": onFocus,
|
3395
3399
|
"onUpdate:modelValue": onInput
|
@@ -3789,7 +3793,7 @@ var stdin_default$1f = defineComponent({
|
|
3789
3793
|
}
|
3790
3794
|
const CloseIcon = closeable && createVNode(Icon, {
|
3791
3795
|
"name": "cross",
|
3792
|
-
"class": bem$14("close"),
|
3796
|
+
"class": [bem$14("close"), HAPTICS_FEEDBACK],
|
3793
3797
|
"onClick": onClose
|
3794
3798
|
}, null);
|
3795
3799
|
return createVNode("span", {
|
@@ -4208,9 +4212,13 @@ const proxyPickerMethods = (picker, callback) => {
|
|
4208
4212
|
};
|
4209
4213
|
const useHeight = (element) => {
|
4210
4214
|
const height = ref();
|
4211
|
-
|
4215
|
+
const setHeight = () => {
|
4212
4216
|
height.value = useRect(element).height;
|
4213
|
-
}
|
4217
|
+
};
|
4218
|
+
onMounted(() => {
|
4219
|
+
nextTick(setHeight);
|
4220
|
+
setTimeout(setHeight, 100);
|
4221
|
+
});
|
4214
4222
|
return height;
|
4215
4223
|
};
|
4216
4224
|
const [name$13] = createNamespace("calendar-day");
|
@@ -4447,7 +4455,7 @@ var stdin_default$19 = defineComponent({
|
|
4447
4455
|
return t$f(dayType);
|
4448
4456
|
}
|
4449
4457
|
if (dayType === "start-end") {
|
4450
|
-
return t$f("
|
4458
|
+
return `${t$f("start")}/${t$f("end")}`;
|
4451
4459
|
}
|
4452
4460
|
}
|
4453
4461
|
};
|
@@ -4839,7 +4847,12 @@ var stdin_default$17 = defineComponent({
|
|
4839
4847
|
if (compareToStart === 1) {
|
4840
4848
|
const disabledDay = getDisabledDate(disabledDays.value, startDay, date);
|
4841
4849
|
if (disabledDay) {
|
4842
|
-
|
4850
|
+
const endDay2 = getPrevDay(disabledDay);
|
4851
|
+
if (compareDay(startDay, endDay2) === -1) {
|
4852
|
+
select([startDay, endDay2]);
|
4853
|
+
} else {
|
4854
|
+
select([date]);
|
4855
|
+
}
|
4843
4856
|
} else {
|
4844
4857
|
select([startDay, date], true);
|
4845
4858
|
}
|
@@ -4963,6 +4976,7 @@ const imageProps = {
|
|
4963
4976
|
src: String,
|
4964
4977
|
alt: String,
|
4965
4978
|
fit: String,
|
4979
|
+
position: String,
|
4966
4980
|
round: Boolean,
|
4967
4981
|
width: numericProp,
|
4968
4982
|
height: numericProp,
|
@@ -5044,7 +5058,8 @@ var stdin_default$16 = defineComponent({
|
|
5044
5058
|
alt: props.alt,
|
5045
5059
|
class: bem$$("img"),
|
5046
5060
|
style: {
|
5047
|
-
objectFit: props.fit
|
5061
|
+
objectFit: props.fit,
|
5062
|
+
objectPosition: props.position
|
5048
5063
|
}
|
5049
5064
|
};
|
5050
5065
|
if (props.lazyLoad) {
|
@@ -5061,8 +5076,15 @@ var stdin_default$16 = defineComponent({
|
|
5061
5076
|
const onLazyLoaded = ({
|
5062
5077
|
el
|
5063
5078
|
}) => {
|
5064
|
-
|
5065
|
-
|
5079
|
+
const check = () => {
|
5080
|
+
if (el === imageRef.value && loading.value) {
|
5081
|
+
onLoad();
|
5082
|
+
}
|
5083
|
+
};
|
5084
|
+
if (imageRef.value) {
|
5085
|
+
check();
|
5086
|
+
} else {
|
5087
|
+
nextTick(check);
|
5066
5088
|
}
|
5067
5089
|
};
|
5068
5090
|
const onLazyLoadError = ({
|
@@ -6374,6 +6396,7 @@ const cascaderProps = {
|
|
6374
6396
|
closeable: truthProp,
|
6375
6397
|
swipeable: truthProp,
|
6376
6398
|
closeIcon: makeStringProp("cross"),
|
6399
|
+
showHeader: truthProp,
|
6377
6400
|
modelValue: numericProp,
|
6378
6401
|
fieldNames: Object,
|
6379
6402
|
placeholder: String,
|
@@ -6487,7 +6510,7 @@ var stdin_default$Z = defineComponent({
|
|
6487
6510
|
name: name2,
|
6488
6511
|
title
|
6489
6512
|
}) => emit("click-tab", name2, title);
|
6490
|
-
const renderHeader = () => createVNode("div", {
|
6513
|
+
const renderHeader = () => props.showHeader ? createVNode("div", {
|
6491
6514
|
"class": bem$S("header")
|
6492
6515
|
}, [createVNode("h2", {
|
6493
6516
|
"class": bem$S("title")
|
@@ -6495,7 +6518,7 @@ var stdin_default$Z = defineComponent({
|
|
6495
6518
|
"name": props.closeIcon,
|
6496
6519
|
"class": [bem$S("close-icon"), HAPTICS_FEEDBACK],
|
6497
6520
|
"onClick": onClose
|
6498
|
-
}, null) : null]);
|
6521
|
+
}, null) : null]) : null;
|
6499
6522
|
const renderOption = (option, selectedOption, tabIndex) => {
|
6500
6523
|
const {
|
6501
6524
|
disabled
|
@@ -7109,7 +7132,8 @@ const collapseItemProps = extend({}, cellSharedProps, {
|
|
7109
7132
|
name: numericProp,
|
7110
7133
|
isLink: truthProp,
|
7111
7134
|
disabled: Boolean,
|
7112
|
-
readonly: Boolean
|
7135
|
+
readonly: Boolean,
|
7136
|
+
lazyRender: truthProp
|
7113
7137
|
});
|
7114
7138
|
var stdin_default$R = defineComponent({
|
7115
7139
|
name: name$L,
|
@@ -7132,7 +7156,7 @@ var stdin_default$R = defineComponent({
|
|
7132
7156
|
});
|
7133
7157
|
const expanded = computed(() => parent.isExpanded(name2.value));
|
7134
7158
|
const show = ref(expanded.value);
|
7135
|
-
const lazyRender = useLazyRender(show);
|
7159
|
+
const lazyRender = useLazyRender(() => show.value || !props.lazyRender);
|
7136
7160
|
const onTransitionEnd = () => {
|
7137
7161
|
if (!expanded.value) {
|
7138
7162
|
show.value = false;
|
@@ -7245,7 +7269,7 @@ var stdin_default$Q = defineComponent({
|
|
7245
7269
|
};
|
7246
7270
|
const renderContent = () => {
|
7247
7271
|
if (props.type === "add") {
|
7248
|
-
return props.addText || t$d("
|
7272
|
+
return props.addText || t$d("addContact");
|
7249
7273
|
}
|
7250
7274
|
return [createVNode("div", null, [`${t$d("name")}\uFF1A${props.name}`]), createVNode("div", null, [`${t$d("tel")}\uFF1A${props.tel}`])];
|
7251
7275
|
};
|
@@ -7438,7 +7462,7 @@ var stdin_default$O = defineComponent({
|
|
7438
7462
|
"block": true,
|
7439
7463
|
"type": "danger",
|
7440
7464
|
"class": bem$H("add"),
|
7441
|
-
"text": props.addText || t$b("
|
7465
|
+
"text": props.addText || t$b("addContact"),
|
7442
7466
|
"onClick": () => emit("add")
|
7443
7467
|
}, null)])]);
|
7444
7468
|
}
|
@@ -8231,11 +8255,12 @@ const popupInheritKeys$1 = [...popupSharedPropKeys, "transition", "closeOnPopsta
|
|
8231
8255
|
var stdin_default$G = defineComponent({
|
8232
8256
|
name: name$A,
|
8233
8257
|
props: dialogProps,
|
8234
|
-
emits: ["confirm", "cancel", "update:show"],
|
8258
|
+
emits: ["confirm", "cancel", "keydown", "update:show"],
|
8235
8259
|
setup(props, {
|
8236
8260
|
emit,
|
8237
8261
|
slots
|
8238
8262
|
}) {
|
8263
|
+
const root = ref();
|
8239
8264
|
const loading = reactive({
|
8240
8265
|
confirm: false,
|
8241
8266
|
cancel: false
|
@@ -8269,6 +8294,18 @@ var stdin_default$G = defineComponent({
|
|
8269
8294
|
};
|
8270
8295
|
const onCancel = getActionHandler("cancel");
|
8271
8296
|
const onConfirm = getActionHandler("confirm");
|
8297
|
+
const onKeydown = withKeys((event) => {
|
8298
|
+
var _a, _b;
|
8299
|
+
if (event.target !== ((_b = (_a = root.value) == null ? void 0 : _a.popupRef) == null ? void 0 : _b.value)) {
|
8300
|
+
return;
|
8301
|
+
}
|
8302
|
+
const onEventType = {
|
8303
|
+
Enter: props.showConfirmButton ? onConfirm : noop,
|
8304
|
+
Escape: props.showCancelButton ? onCancel : noop
|
8305
|
+
};
|
8306
|
+
onEventType[event.key]();
|
8307
|
+
emit("keydown", event);
|
8308
|
+
}, ["enter", "esc"]);
|
8272
8309
|
const renderTitle = () => {
|
8273
8310
|
const title = slots.title ? slots.title() : props.title;
|
8274
8311
|
if (title) {
|
@@ -8378,12 +8415,15 @@ var stdin_default$G = defineComponent({
|
|
8378
8415
|
className
|
8379
8416
|
} = props;
|
8380
8417
|
return createVNode(Popup, mergeProps({
|
8418
|
+
"ref": root,
|
8381
8419
|
"role": "dialog",
|
8382
8420
|
"class": [bem$B([theme]), className],
|
8383
8421
|
"style": {
|
8384
8422
|
width: addUnit(width)
|
8385
8423
|
},
|
8424
|
+
"tabindex": 0,
|
8386
8425
|
"aria-labelledby": title || message,
|
8426
|
+
"onKeydown": onKeydown,
|
8387
8427
|
"onUpdate:show": updateShow
|
8388
8428
|
}, pick(props, popupInheritKeys$1)), {
|
8389
8429
|
default: () => [renderTitle(), renderContent(), renderFooter()]
|
@@ -9174,7 +9214,7 @@ var stdin_default$z = defineComponent({
|
|
9174
9214
|
return 0;
|
9175
9215
|
});
|
9176
9216
|
const setScale = (scale) => {
|
9177
|
-
scale = clamp(scale, +props.minZoom, +props.maxZoom);
|
9217
|
+
scale = clamp(scale, +props.minZoom, +props.maxZoom + 1);
|
9178
9218
|
if (scale !== state.scale) {
|
9179
9219
|
state.scale = scale;
|
9180
9220
|
emit("scale", {
|
@@ -9194,6 +9234,7 @@ var stdin_default$z = defineComponent({
|
|
9194
9234
|
state.moveX = 0;
|
9195
9235
|
state.moveY = 0;
|
9196
9236
|
};
|
9237
|
+
let fingerNum;
|
9197
9238
|
let startMoveX;
|
9198
9239
|
let startMoveY;
|
9199
9240
|
let startScale;
|
@@ -9208,11 +9249,12 @@ var stdin_default$z = defineComponent({
|
|
9208
9249
|
offsetX
|
9209
9250
|
} = touch;
|
9210
9251
|
touch.start(event);
|
9252
|
+
fingerNum = touches.length;
|
9211
9253
|
startMoveX = state.moveX;
|
9212
9254
|
startMoveY = state.moveY;
|
9213
9255
|
touchStartTime = Date.now();
|
9214
|
-
state.moving =
|
9215
|
-
state.zooming =
|
9256
|
+
state.moving = fingerNum === 1 && state.scale !== 1;
|
9257
|
+
state.zooming = fingerNum === 2 && !offsetX.value;
|
9216
9258
|
if (state.zooming) {
|
9217
9259
|
startScale = state.scale;
|
9218
9260
|
startDistance = getDistance(event.touches);
|
@@ -9243,13 +9285,16 @@ var stdin_default$z = defineComponent({
|
|
9243
9285
|
}
|
9244
9286
|
};
|
9245
9287
|
const checkTap = () => {
|
9288
|
+
if (fingerNum > 1) {
|
9289
|
+
return;
|
9290
|
+
}
|
9246
9291
|
const {
|
9247
9292
|
offsetX,
|
9248
9293
|
offsetY
|
9249
9294
|
} = touch;
|
9250
9295
|
const deltaTime = Date.now() - touchStartTime;
|
9251
9296
|
const TAP_TIME = 250;
|
9252
|
-
const TAP_OFFSET =
|
9297
|
+
const TAP_OFFSET = 5;
|
9253
9298
|
if (offsetX.value < TAP_OFFSET && offsetY.value < TAP_OFFSET && deltaTime < TAP_TIME) {
|
9254
9299
|
if (doubleTapTimer) {
|
9255
9300
|
clearTimeout(doubleTapTimer);
|
@@ -9283,6 +9328,9 @@ var stdin_default$z = defineComponent({
|
|
9283
9328
|
if (state.scale < 1) {
|
9284
9329
|
resetScale();
|
9285
9330
|
}
|
9331
|
+
if (state.scale > props.maxZoom) {
|
9332
|
+
state.scale = +props.maxZoom;
|
9333
|
+
}
|
9286
9334
|
}
|
9287
9335
|
}
|
9288
9336
|
preventDefault(event, stopPropagation2);
|
@@ -9639,7 +9687,9 @@ var stdin_default$x = defineComponent({
|
|
9639
9687
|
});
|
9640
9688
|
}
|
9641
9689
|
};
|
9642
|
-
const init = () =>
|
9690
|
+
const init = () => {
|
9691
|
+
nextTick(onScroll);
|
9692
|
+
};
|
9643
9693
|
useEventListener("scroll", onScroll, {
|
9644
9694
|
target: scrollParent
|
9645
9695
|
});
|
@@ -11755,7 +11805,7 @@ var stdin_default$f = defineComponent({
|
|
11755
11805
|
}
|
11756
11806
|
return rowWidth;
|
11757
11807
|
};
|
11758
|
-
const renderRows = () => Array(props.row).fill("").map((_, i) => createVNode("div", {
|
11808
|
+
const renderRows = () => Array(+props.row).fill("").map((_, i) => createVNode("div", {
|
11759
11809
|
"class": bem$a("row"),
|
11760
11810
|
"style": {
|
11761
11811
|
width: addUnit(getRowWidth(i))
|
@@ -12913,15 +12963,16 @@ var stdin_default$6 = defineComponent({
|
|
12913
12963
|
};
|
12914
12964
|
const onSidebarChange = (index) => {
|
12915
12965
|
emit("update:mainActiveIndex", index);
|
12916
|
-
emit("click-nav", index);
|
12917
12966
|
};
|
12967
|
+
const onClickSidebarItem = (index) => emit("click-nav", index);
|
12918
12968
|
const renderSidebar = () => {
|
12919
12969
|
const Items = props.items.map((item) => createVNode(SidebarItem, {
|
12920
12970
|
"dot": item.dot,
|
12921
12971
|
"title": item.text,
|
12922
12972
|
"badge": item.badge,
|
12923
12973
|
"class": [bem$1("nav-item"), item.className],
|
12924
|
-
"disabled": item.disabled
|
12974
|
+
"disabled": item.disabled,
|
12975
|
+
"onClick": onClickSidebarItem
|
12925
12976
|
}, null));
|
12926
12977
|
return createVNode(Sidebar, {
|
12927
12978
|
"class": bem$1("nav"),
|
@@ -14208,7 +14259,7 @@ const Lazyload = {
|
|
14208
14259
|
});
|
14209
14260
|
}
|
14210
14261
|
};
|
14211
|
-
const version = "3.4.
|
14262
|
+
const version = "3.4.5";
|
14212
14263
|
function install(app) {
|
14213
14264
|
const components = [
|
14214
14265
|
ActionBar,
|