vant 3.4.4 → 3.4.7
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/changelog.generated.md +81 -0
- package/es/address-list/AddressListItem.d.ts +3 -2
- package/es/address-list/AddressListItem.js +1 -1
- package/es/badge/Badge.d.ts +4 -3
- package/es/badge/index.d.ts +2 -2
- package/es/calendar/Calendar.d.ts +4 -0
- package/es/calendar/Calendar.js +3 -1
- package/es/calendar/index.d.ts +3 -0
- package/es/calendar/types.d.ts +2 -1
- package/es/cascader/types.d.ts +2 -1
- package/es/checkbox/Checker.d.ts +2 -1
- package/es/collapse/Collapse.d.ts +7 -6
- package/es/collapse/index.d.ts +3 -3
- package/es/collapse-item/CollapseItem.d.ts +13 -0
- package/es/collapse-item/CollapseItem.js +3 -2
- package/es/collapse-item/index.d.ts +9 -0
- package/es/composables/use-touch.js +1 -1
- package/es/config-provider/ConfigProvider.d.ts +4 -3
- package/es/config-provider/index.d.ts +2 -2
- package/es/contact-list/ContactList.d.ts +3 -2
- package/es/coupon/Coupon.d.ts +2 -1
- package/es/coupon-list/CouponList.d.ts +3 -13
- package/es/coupon-list/CouponList.js +9 -7
- package/es/coupon-list/index.css +1 -1
- package/es/coupon-list/index.d.ts +2 -9
- package/es/coupon-list/index.less +4 -16
- package/es/coupon-list/style/index.js +1 -0
- package/es/coupon-list/style/less.js +1 -0
- package/es/coupon-list/var.less +0 -1
- package/es/datetime-picker/DatePicker.js +1 -2
- package/es/dialog/Dialog.d.ts +2 -1
- package/es/dialog/Dialog.js +19 -3
- package/es/dialog/function-call.d.ts +2 -1
- package/es/dialog/types.d.ts +2 -2
- package/es/dropdown-item/types.d.ts +2 -1
- package/es/index-bar/IndexBar.d.ts +5 -4
- package/es/index-bar/IndexBar.js +25 -4
- package/es/index-bar/index.d.ts +3 -3
- package/es/index-bar/types.d.ts +2 -1
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- 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.js +1 -1
- package/es/locale/lang/de-DE.js +1 -1
- package/es/locale/lang/en-US.js +1 -1
- package/es/locale/lang/es-ES.js +1 -1
- package/es/locale/lang/fr-FR.js +1 -1
- package/es/locale/lang/hi-IN.js +1 -1
- package/es/locale/lang/id-ID.d.ts +64 -0
- package/es/locale/lang/id-ID.js +66 -0
- package/es/locale/lang/is-IS.d.ts +64 -0
- package/es/locale/lang/is-IS.js +74 -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.js +1 -1
- package/es/locale/lang/ko-KR.js +1 -1
- package/es/locale/lang/la-LA.d.ts +64 -0
- package/es/locale/lang/la-LA.js +66 -0
- package/es/locale/lang/nb-NO.js +1 -1
- package/es/locale/lang/pt-BR.js +1 -1
- package/es/locale/lang/ro-RO.js +1 -1
- package/es/locale/lang/ru-RU.js +1 -1
- package/es/locale/lang/sv-SE.d.ts +64 -0
- package/es/locale/lang/sv-SE.js +66 -0
- package/es/locale/lang/th-TH.js +1 -1
- 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.js +1 -1
- package/es/locale/lang/zh-HK.js +1 -1
- package/es/locale/lang/zh-TW.js +1 -1
- package/es/nav-bar/NavBar.d.ts +1 -1
- package/es/nav-bar/NavBar.js +3 -3
- package/es/nav-bar/index.d.ts +1 -1
- package/es/notify/types.d.ts +2 -1
- package/es/number-keyboard/NumberKeyboard.js +10 -1
- package/es/picker/types.d.ts +3 -2
- package/es/popup/Popup.d.ts +6 -1
- package/es/popup/Popup.js +14 -3
- package/es/popup/index.d.ts +5 -1
- package/es/popup/types.d.ts +5 -2
- package/es/progress/Progress.d.ts +4 -3
- package/es/progress/index.d.ts +2 -2
- package/es/skeleton/Skeleton.d.ts +5 -4
- package/es/skeleton/Skeleton.js +6 -4
- package/es/skeleton/index.d.ts +3 -3
- package/es/style/base.css +1 -1
- package/es/style/base.less +5 -0
- package/es/submit-bar/index.css +1 -1
- package/es/submit-bar/index.less +1 -0
- package/es/swipe-cell/SwipeCell.js +1 -1
- package/es/tabbar/Tabbar.d.ts +2 -2
- package/es/tabs/Tabs.d.ts +1 -1
- package/es/tabs/Tabs.js +1 -0
- package/es/tabs/types.d.ts +5 -4
- package/es/toast/Toast.d.ts +3 -0
- package/es/toast/Toast.js +3 -1
- package/es/toast/types.d.ts +3 -2
- package/es/tree-select/TreeSelect.d.ts +7 -6
- package/es/tree-select/index.d.ts +3 -3
- package/es/uploader/Uploader.d.ts +4 -4
- package/es/uploader/Uploader.js +2 -2
- package/es/uploader/UploaderPreviewItem.d.ts +3 -3
- package/es/uploader/UploaderPreviewItem.js +9 -6
- package/es/uploader/index.d.ts +2 -2
- package/es/uploader/types.d.ts +6 -8
- package/es/utils/basic.d.ts +1 -0
- package/es/utils/format.d.ts +7 -6
- package/es/utils/format.js +6 -0
- package/es/utils/interceptor.d.ts +1 -1
- package/es/utils/validate.d.ts +2 -1
- package/lib/action-bar/ActionBar.js +14 -13
- package/lib/action-bar/index.js +14 -8
- package/lib/action-bar-button/ActionBarButton.js +18 -17
- package/lib/action-bar-button/index.js +14 -8
- package/lib/action-bar-icon/ActionBarIcon.js +18 -17
- package/lib/action-bar-icon/index.js +14 -8
- package/lib/action-sheet/ActionSheet.js +17 -16
- package/lib/action-sheet/index.js +14 -8
- package/lib/address-edit/AddressEdit.js +25 -19
- package/lib/address-edit/AddressEditDetail.js +15 -14
- package/lib/address-edit/index.js +14 -8
- package/lib/address-edit/types.js +18 -1
- package/lib/address-list/AddressList.js +18 -12
- package/lib/address-list/AddressListItem.d.ts +3 -2
- package/lib/address-list/AddressListItem.js +17 -16
- package/lib/address-list/index.js +14 -8
- package/lib/area/Area.js +17 -16
- package/lib/area/index.js +14 -8
- package/lib/area/types.js +18 -1
- package/lib/badge/Badge.d.ts +4 -3
- package/lib/badge/Badge.js +13 -12
- package/lib/badge/index.d.ts +2 -2
- package/lib/badge/index.js +14 -8
- package/lib/button/Button.js +16 -15
- package/lib/button/index.js +14 -8
- package/lib/button/types.js +18 -1
- package/lib/calendar/Calendar.d.ts +4 -0
- package/lib/calendar/Calendar.js +27 -19
- package/lib/calendar/CalendarDay.js +14 -13
- package/lib/calendar/CalendarHeader.js +14 -13
- package/lib/calendar/CalendarMonth.js +21 -15
- package/lib/calendar/index.d.ts +3 -0
- package/lib/calendar/index.js +14 -8
- package/lib/calendar/types.d.ts +2 -1
- package/lib/calendar/types.js +18 -1
- package/lib/calendar/utils.js +11 -10
- package/lib/card/Card.js +15 -14
- package/lib/card/index.js +14 -8
- package/lib/cascader/Cascader.js +16 -15
- package/lib/cascader/index.js +14 -8
- package/lib/cascader/types.d.ts +2 -1
- package/lib/cascader/types.js +18 -1
- package/lib/cell/Cell.js +15 -14
- package/lib/cell/index.js +14 -8
- package/lib/cell-group/CellGroup.js +13 -12
- package/lib/cell-group/index.js +14 -8
- package/lib/checkbox/Checkbox.js +19 -13
- package/lib/checkbox/Checker.d.ts +2 -1
- package/lib/checkbox/Checker.js +14 -13
- package/lib/checkbox/index.js +14 -8
- package/lib/checkbox/types.js +18 -1
- package/lib/checkbox-group/CheckboxGroup.js +15 -14
- package/lib/checkbox-group/index.js +14 -8
- package/lib/checkbox-group/types.js +18 -1
- package/lib/circle/Circle.js +14 -13
- package/lib/circle/index.js +14 -8
- package/lib/col/Col.js +15 -14
- package/lib/col/index.js +14 -8
- package/lib/collapse/Collapse.d.ts +7 -6
- package/lib/collapse/Collapse.js +14 -13
- package/lib/collapse/index.d.ts +3 -3
- package/lib/collapse/index.js +14 -8
- package/lib/collapse-item/CollapseItem.d.ts +13 -0
- package/lib/collapse-item/CollapseItem.js +22 -20
- package/lib/collapse-item/index.d.ts +9 -0
- 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 +12 -11
- 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 +12 -11
- package/lib/composables/use-visibility-change.js +13 -12
- package/lib/config-provider/ConfigProvider.d.ts +4 -3
- package/lib/config-provider/ConfigProvider.js +13 -12
- package/lib/config-provider/index.d.ts +2 -2
- package/lib/config-provider/index.js +14 -8
- package/lib/contact-card/ContactCard.js +14 -13
- package/lib/contact-card/index.js +14 -8
- package/lib/contact-edit/ContactEdit.js +18 -17
- package/lib/contact-edit/index.js +14 -8
- package/lib/contact-list/ContactList.d.ts +3 -2
- package/lib/contact-list/ContactList.js +19 -18
- package/lib/contact-list/index.js +14 -8
- package/lib/count-down/CountDown.js +16 -15
- 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 +2 -1
- package/lib/coupon/Coupon.js +15 -14
- package/lib/coupon/index.js +14 -8
- package/lib/coupon/utils.js +11 -10
- package/lib/coupon-cell/CouponCell.js +14 -13
- package/lib/coupon-cell/index.js +14 -8
- package/lib/coupon-list/CouponList.d.ts +3 -13
- package/lib/coupon-list/CouponList.js +29 -26
- package/lib/coupon-list/index.css +1 -1
- package/lib/coupon-list/index.d.ts +2 -9
- package/lib/coupon-list/index.js +14 -8
- package/lib/coupon-list/index.less +4 -16
- package/lib/coupon-list/style/index.js +1 -0
- package/lib/coupon-list/style/less.js +1 -0
- package/lib/coupon-list/var.less +0 -1
- package/lib/datetime-picker/DatePicker.js +17 -17
- package/lib/datetime-picker/DatetimePicker.js +18 -12
- 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 +2 -1
- package/lib/dialog/Dialog.js +35 -18
- package/lib/dialog/function-call.d.ts +2 -1
- package/lib/dialog/function-call.js +16 -10
- package/lib/dialog/index.js +11 -10
- package/lib/dialog/types.d.ts +2 -2
- package/lib/dialog/types.js +18 -1
- package/lib/divider/Divider.js +13 -12
- package/lib/divider/index.js +14 -8
- package/lib/dropdown-item/DropdownItem.js +19 -18
- package/lib/dropdown-item/index.js +14 -8
- package/lib/dropdown-item/types.d.ts +2 -1
- package/lib/dropdown-item/types.js +18 -1
- package/lib/dropdown-menu/DropdownMenu.js +15 -14
- package/lib/dropdown-menu/index.js +14 -8
- package/lib/dropdown-menu/types.js +18 -1
- package/lib/empty/Empty.js +14 -13
- package/lib/empty/Network.js +11 -10
- package/lib/empty/index.js +14 -8
- package/lib/field/Field.js +20 -19
- package/lib/field/index.js +14 -8
- package/lib/field/types.js +18 -1
- package/lib/field/utils.js +11 -10
- package/lib/form/Form.js +15 -14
- package/lib/form/index.js +14 -8
- package/lib/form/types.js +18 -1
- package/lib/grid/Grid.js +15 -14
- package/lib/grid/index.js +14 -8
- package/lib/grid-item/GridItem.js +18 -17
- package/lib/grid-item/index.js +14 -8
- package/lib/icon/Icon.js +15 -14
- package/lib/icon/index.js +14 -8
- package/lib/image/Image.js +14 -13
- package/lib/image/index.js +14 -8
- package/lib/image-preview/ImagePreview.js +21 -15
- package/lib/image-preview/ImagePreviewItem.js +17 -16
- package/lib/image-preview/function-call.js +16 -10
- package/lib/image-preview/index.js +11 -10
- package/lib/image-preview/types.js +18 -1
- package/lib/index-anchor/IndexAnchor.js +17 -16
- package/lib/index-anchor/index.js +14 -8
- package/lib/index-bar/IndexBar.d.ts +5 -4
- package/lib/index-bar/IndexBar.js +41 -19
- package/lib/index-bar/index.d.ts +3 -3
- package/lib/index-bar/index.js +14 -8
- package/lib/index-bar/types.d.ts +2 -1
- 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/index.less +2 -2
- 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.js +17 -16
- package/lib/list/index.js +14 -8
- package/lib/list/types.js +18 -1
- package/lib/loading/Loading.js +13 -12
- 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.js +20 -3
- package/lib/locale/lang/de-DE.js +20 -3
- package/lib/locale/lang/en-US.js +20 -3
- package/lib/locale/lang/es-ES.js +20 -3
- package/lib/locale/lang/fr-FR.js +20 -3
- package/lib/locale/lang/hi-IN.js +20 -3
- package/lib/locale/lang/id-ID.d.ts +64 -0
- package/lib/locale/lang/id-ID.js +90 -0
- package/lib/locale/lang/is-IS.d.ts +64 -0
- package/lib/locale/lang/is-IS.js +98 -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.js +20 -3
- package/lib/locale/lang/ko-KR.js +20 -3
- package/lib/locale/lang/la-LA.d.ts +64 -0
- package/lib/locale/lang/la-LA.js +90 -0
- package/lib/locale/lang/nb-NO.js +20 -3
- package/lib/locale/lang/pt-BR.js +20 -3
- package/lib/locale/lang/ro-RO.js +20 -3
- package/lib/locale/lang/ru-RU.js +20 -3
- package/lib/locale/lang/sv-SE.d.ts +64 -0
- package/lib/locale/lang/sv-SE.js +90 -0
- package/lib/locale/lang/th-TH.js +20 -3
- package/lib/locale/lang/tr-TR.js +19 -2
- 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.js +20 -3
- package/lib/locale/lang/zh-HK.js +20 -3
- package/lib/locale/lang/zh-TW.js +20 -3
- package/lib/nav-bar/NavBar.d.ts +1 -1
- package/lib/nav-bar/NavBar.js +18 -17
- package/lib/nav-bar/index.d.ts +1 -1
- package/lib/nav-bar/index.js +14 -8
- package/lib/notice-bar/NoticeBar.js +17 -16
- package/lib/notice-bar/index.js +14 -8
- package/lib/notice-bar/types.js +18 -1
- package/lib/notify/Notify.js +15 -14
- package/lib/notify/function-call.js +16 -10
- package/lib/notify/index.js +11 -10
- package/lib/notify/types.d.ts +2 -1
- package/lib/notify/types.js +18 -1
- package/lib/number-keyboard/NumberKeyboard.js +27 -12
- package/lib/number-keyboard/NumberKeyboardKey.js +15 -14
- package/lib/number-keyboard/index.js +14 -8
- package/lib/overlay/Overlay.js +14 -13
- package/lib/overlay/index.js +14 -8
- package/lib/pagination/Pagination.js +13 -12
- package/lib/pagination/index.js +14 -8
- package/lib/password-input/PasswordInput.js +13 -12
- package/lib/password-input/index.js +14 -8
- package/lib/picker/Picker.js +19 -13
- package/lib/picker/PickerColumn.js +17 -16
- package/lib/picker/index.js +14 -8
- package/lib/picker/types.d.ts +3 -2
- package/lib/picker/types.js +18 -1
- package/lib/popover/Popover.js +17 -16
- package/lib/popover/index.js +14 -8
- package/lib/popover/types.js +18 -1
- package/lib/popup/Popup.d.ts +6 -1
- package/lib/popup/Popup.js +34 -22
- package/lib/popup/index.d.ts +5 -1
- package/lib/popup/index.js +14 -8
- 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 +4 -3
- package/lib/progress/Progress.js +13 -12
- package/lib/progress/index.d.ts +2 -2
- package/lib/progress/index.js +14 -8
- package/lib/progress/types.js +18 -1
- package/lib/pull-refresh/PullRefresh.js +16 -15
- package/lib/pull-refresh/index.js +14 -8
- package/lib/radio/Radio.js +18 -12
- package/lib/radio/index.js +14 -8
- package/lib/radio-group/RadioGroup.js +14 -13
- package/lib/radio-group/index.js +14 -8
- package/lib/rate/Rate.js +17 -16
- package/lib/rate/index.js +14 -8
- package/lib/row/Row.js +14 -13
- package/lib/row/index.js +14 -8
- package/lib/search/Search.js +17 -16
- package/lib/search/index.js +14 -8
- package/lib/search/types.js +18 -1
- package/lib/share-sheet/ShareSheet.js +15 -14
- package/lib/share-sheet/index.js +14 -8
- package/lib/sidebar/Sidebar.js +14 -13
- package/lib/sidebar/index.js +14 -8
- package/lib/sidebar-item/SidebarItem.js +17 -16
- package/lib/sidebar-item/index.js +14 -8
- package/lib/skeleton/Skeleton.d.ts +5 -4
- package/lib/skeleton/Skeleton.js +18 -15
- package/lib/skeleton/index.d.ts +3 -3
- package/lib/skeleton/index.js +14 -8
- package/lib/slider/Slider.js +15 -14
- package/lib/slider/index.js +14 -8
- package/lib/step/Step.js +16 -15
- package/lib/step/index.js +14 -8
- package/lib/stepper/Stepper.js +14 -13
- package/lib/stepper/index.js +14 -8
- package/lib/steps/Steps.js +14 -13
- package/lib/steps/index.js +14 -8
- package/lib/sticky/Sticky.js +15 -14
- package/lib/sticky/index.js +14 -8
- package/lib/style/base.css +1 -1
- package/lib/style/base.less +5 -0
- package/lib/submit-bar/SubmitBar.js +15 -14
- package/lib/submit-bar/index.css +1 -1
- package/lib/submit-bar/index.js +14 -8
- package/lib/submit-bar/index.less +1 -0
- package/lib/swipe/Swipe.js +17 -16
- package/lib/swipe/index.js +14 -8
- package/lib/swipe/types.js +18 -1
- package/lib/swipe-cell/SwipeCell.js +17 -16
- package/lib/swipe-cell/index.js +14 -8
- package/lib/swipe-cell/types.js +18 -1
- package/lib/swipe-item/SwipeItem.js +16 -15
- package/lib/swipe-item/index.js +14 -8
- package/lib/switch/Switch.js +15 -14
- package/lib/switch/index.js +14 -8
- package/lib/tab/Tab.js +20 -19
- package/lib/tab/index.js +14 -8
- package/lib/tabbar/Tabbar.d.ts +2 -2
- package/lib/tabbar/Tabbar.js +15 -14
- package/lib/tabbar/index.js +14 -8
- package/lib/tabbar-item/TabbarItem.js +18 -17
- package/lib/tabbar-item/index.js +14 -8
- package/lib/tabs/Tabs.d.ts +1 -1
- package/lib/tabs/Tabs.js +26 -19
- package/lib/tabs/TabsContent.js +14 -13
- package/lib/tabs/TabsTitle.js +14 -13
- package/lib/tabs/index.js +14 -8
- package/lib/tabs/types.d.ts +5 -4
- package/lib/tabs/types.js +18 -1
- package/lib/tabs/utils.js +12 -11
- package/lib/tag/Tag.js +14 -13
- package/lib/tag/index.js +14 -8
- package/lib/toast/Toast.d.ts +3 -0
- package/lib/toast/Toast.js +20 -17
- package/lib/toast/function-call.js +17 -11
- package/lib/toast/index.js +11 -10
- package/lib/toast/lock-click.js +19 -2
- package/lib/toast/types.d.ts +3 -2
- package/lib/toast/types.js +18 -1
- package/lib/tree-select/TreeSelect.d.ts +7 -6
- package/lib/tree-select/TreeSelect.js +16 -15
- package/lib/tree-select/index.d.ts +3 -3
- package/lib/tree-select/index.js +14 -8
- package/lib/uploader/Uploader.d.ts +4 -4
- package/lib/uploader/Uploader.js +22 -16
- package/lib/uploader/UploaderPreviewItem.d.ts +3 -3
- package/lib/uploader/UploaderPreviewItem.js +26 -22
- package/lib/uploader/index.d.ts +2 -2
- package/lib/uploader/index.js +14 -8
- package/lib/uploader/types.d.ts +6 -8
- package/lib/uploader/types.js +18 -1
- package/lib/uploader/utils.js +11 -10
- package/lib/utils/basic.d.ts +1 -0
- 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.d.ts +7 -6
- package/lib/utils/format.js +19 -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.d.ts +2 -1
- package/lib/utils/validate.js +11 -10
- package/lib/utils/with-install.js +11 -10
- package/lib/vant.cjs.js +317 -243
- package/lib/vant.cjs.min.js +1 -1
- package/lib/vant.es.js +318 -244
- package/lib/vant.es.min.js +318 -244
- package/lib/vant.js +320 -246
- package/lib/vant.min.js +1 -1
- package/package.json +2 -2
- package/vetur/attributes.json +631 -616
- package/vetur/tags.json +220 -217
- package/vetur/web-types.json +2358 -2326
@@ -0,0 +1,64 @@
|
|
1
|
+
declare const _default: {
|
2
|
+
name: string;
|
3
|
+
tel: string;
|
4
|
+
save: string;
|
5
|
+
confirm: string;
|
6
|
+
cancel: string;
|
7
|
+
delete: string;
|
8
|
+
loading: string;
|
9
|
+
noCoupon: string;
|
10
|
+
nameEmpty: string;
|
11
|
+
addContact: string;
|
12
|
+
telInvalid: string;
|
13
|
+
vanCalendar: {
|
14
|
+
end: string;
|
15
|
+
start: string;
|
16
|
+
title: string;
|
17
|
+
weekdays: string[];
|
18
|
+
monthTitle: (year: number, month: number) => string;
|
19
|
+
rangePrompt: (maxRange: number) => string;
|
20
|
+
};
|
21
|
+
vanCascader: {
|
22
|
+
select: string;
|
23
|
+
};
|
24
|
+
vanPagination: {
|
25
|
+
prev: string;
|
26
|
+
next: string;
|
27
|
+
};
|
28
|
+
vanPullRefresh: {
|
29
|
+
pulling: string;
|
30
|
+
loosing: string;
|
31
|
+
};
|
32
|
+
vanSubmitBar: {
|
33
|
+
label: string;
|
34
|
+
};
|
35
|
+
vanCoupon: {
|
36
|
+
unlimited: string;
|
37
|
+
discount: (discount: number) => string;
|
38
|
+
condition: (condition: number) => string;
|
39
|
+
};
|
40
|
+
vanCouponCell: {
|
41
|
+
title: string;
|
42
|
+
count: (count: number) => string;
|
43
|
+
};
|
44
|
+
vanCouponList: {
|
45
|
+
exchange: string;
|
46
|
+
close: string;
|
47
|
+
enable: string;
|
48
|
+
disabled: string;
|
49
|
+
placeholder: string;
|
50
|
+
};
|
51
|
+
vanAddressEdit: {
|
52
|
+
area: string;
|
53
|
+
postal: string;
|
54
|
+
areaEmpty: string;
|
55
|
+
addressEmpty: string;
|
56
|
+
postalEmpty: string;
|
57
|
+
addressDetail: string;
|
58
|
+
defaultAddress: string;
|
59
|
+
};
|
60
|
+
vanAddressList: {
|
61
|
+
add: string;
|
62
|
+
};
|
63
|
+
};
|
64
|
+
export default _default;
|
@@ -0,0 +1,74 @@
|
|
1
|
+
var stdin_default = {
|
2
|
+
name: "\u0406\u043C'\u044F",
|
3
|
+
tel: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D",
|
4
|
+
save: "\u0417\u0431\u0435\u0440\u0435\u0433\u0442\u0438",
|
5
|
+
confirm: "\u043F\u0456\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u0438",
|
6
|
+
cancel: "\u0421\u043A\u0430\u0441\u0443\u0432\u0430\u0442\u0438",
|
7
|
+
delete: "\u0412\u0438\u0434\u0430\u043B\u0438\u0442\u0438",
|
8
|
+
loading: "\u0417\u0430\u0432\u0430\u043D\u0442\u0430\u0436\u0435\u043D\u043D\u044F...",
|
9
|
+
noCoupon: "\u0411\u0435\u0437 \u043A\u0443\u043F\u043E\u043D\u0456\u0432",
|
10
|
+
nameEmpty: "\u0411\u0443\u0434\u044C \u043B\u0430\u0441\u043A\u0430, \u0432\u0432\u0435\u0434\u0456\u0442\u044C \u0456\u043C'\u044F",
|
11
|
+
addContact: "\u0414\u043E\u0434\u0430\u0442\u0438 \u043A\u043E\u043D\u0442\u0430\u043A\u0442",
|
12
|
+
telInvalid: "\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u043D\u043E\u043C\u0435\u0440 \u0442\u0435\u043B\u0435\u0444\u043E\u043D\u0443",
|
13
|
+
vanCalendar: {
|
14
|
+
end: "\u041A\u0456\u043D\u0435\u0446\u044C",
|
15
|
+
start: "\u041F\u043E\u0447\u0430\u0442\u0438",
|
16
|
+
title: "\u041A\u0430\u043B\u0435\u043D\u0434\u0430\u0440",
|
17
|
+
weekdays: [
|
18
|
+
"\u043D\u0435\u0434\u0456\u043B\u044F",
|
19
|
+
"\u043F\u043E\u043D\u0435\u0434\u0456\u043B\u043E\u043A",
|
20
|
+
"\u0432\u0456\u0432\u0442\u043E\u0440\u043E\u043A",
|
21
|
+
"\u0441\u0435\u0440\u0435\u0434\u0430",
|
22
|
+
"\u0447\u0435\u0442\u0432\u0435\u0440",
|
23
|
+
"\u043F'\u044F\u0442\u043D\u0438\u0446\u044F",
|
24
|
+
"\u0441\u0443\u0431\u043E\u0442\u0430"
|
25
|
+
],
|
26
|
+
monthTitle: (year, month) => `${year}/${month}`,
|
27
|
+
rangePrompt: (maxRange) => `\u0412\u0438\u0431\u0435\u0440\u0456\u0442\u044C \u043D\u0435 \u0431\u0456\u043B\u044C\u0448\u0435 \u043D\u0456\u0436 ${maxRange} \u0434\u043D\u0456\u0432`
|
28
|
+
},
|
29
|
+
vanCascader: {
|
30
|
+
select: "\u0412\u0438\u0431\u0440\u0430\u0442\u0438"
|
31
|
+
},
|
32
|
+
vanPagination: {
|
33
|
+
prev: "\u041F\u043E\u043F\u0435\u0440\u0435\u0434\u043D\u0456\u0439",
|
34
|
+
next: "\u0414\u0430\u043B\u0456"
|
35
|
+
},
|
36
|
+
vanPullRefresh: {
|
37
|
+
pulling: "\u041F\u043E\u0442\u044F\u0433\u043D\u0456\u0442\u044C, \u0449\u043E\u0431 \u043E\u043D\u043E\u0432\u0438\u0442\u0438...",
|
38
|
+
loosing: "\u041F\u043E\u0433\u0430\u043D\u043E \u043E\u043D\u043E\u0432\u0438\u0442\u0438..."
|
39
|
+
},
|
40
|
+
vanSubmitBar: {
|
41
|
+
label: "\u0423\u0441\u044C\u043E\u0433\u043E:"
|
42
|
+
},
|
43
|
+
vanCoupon: {
|
44
|
+
unlimited: "\u041D\u0435\u043E\u0431\u043C\u0435\u0436\u0435\u043D\u043E",
|
45
|
+
discount: (discount) => `${discount * 10}% off`,
|
46
|
+
condition: (condition) => `\u041F\u0440\u0438\u043D\u0430\u0439\u043C\u043D\u0456 ${condition}`
|
47
|
+
},
|
48
|
+
vanCouponCell: {
|
49
|
+
title: "\u041A\u0443\u043F\u043E\u043D",
|
50
|
+
count: (count) => `\u0423 \u0432\u0430\u0441 \u0454 ${count} \u043A\u0443\u043F\u043E\u043D\u0456\u0432`
|
51
|
+
},
|
52
|
+
vanCouponList: {
|
53
|
+
exchange: "\u041E\u0431\u043C\u0456\u043D",
|
54
|
+
close: "\u0417\u0430\u043A\u0440\u0438\u0442\u0438",
|
55
|
+
enable: "\u0414\u043E\u0441\u0442\u0443\u043F\u043D\u043E",
|
56
|
+
disabled: "\u041D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u043E",
|
57
|
+
placeholder: "\u041A\u043E\u0434 \u043A\u0443\u043F\u043E\u043D\u0430"
|
58
|
+
},
|
59
|
+
vanAddressEdit: {
|
60
|
+
area: "\u041E\u0431\u043B\u0430\u0441\u0442\u044C",
|
61
|
+
postal: "\u041F\u043E\u0448\u0442\u043E\u0432\u0438\u0439",
|
62
|
+
areaEmpty: "\u0411\u0443\u0434\u044C \u043B\u0430\u0441\u043A\u0430, \u0432\u0438\u0431\u0435\u0440\u0456\u0442\u044C \u0437\u043E\u043D\u0443 \u043F\u0440\u0438\u0439\u043E\u043C\u0443",
|
63
|
+
addressEmpty: "\u0410\u0434\u0440\u0435\u0441\u0430 \u043D\u0435 \u043C\u043E\u0436\u0435 \u0431\u0443\u0442\u0438 \u043F\u043E\u0440\u043E\u0436\u043D\u044C\u043E\u044E",
|
64
|
+
postalEmpty: "\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u043F\u043E\u0448\u0442\u043E\u0432\u0438\u0439 \u0456\u043D\u0434\u0435\u043A\u0441",
|
65
|
+
addressDetail: "\u0410\u0434\u0440\u0435\u0441\u0430",
|
66
|
+
defaultAddress: "\u0412\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u0438 \u044F\u043A \u0430\u0434\u0440\u0435\u0441\u0443 \u0437\u0430 \u0437\u0430\u043C\u043E\u0432\u0447\u0443\u0432\u0430\u043D\u043D\u044F\u043C"
|
67
|
+
},
|
68
|
+
vanAddressList: {
|
69
|
+
add: "\u0414\u043E\u0434\u0430\u0442\u0438 \u043D\u043E\u0432\u0443 \u0430\u0434\u0440\u0435\u0441\u0443"
|
70
|
+
}
|
71
|
+
};
|
72
|
+
export {
|
73
|
+
stdin_default as default
|
74
|
+
};
|
@@ -0,0 +1,64 @@
|
|
1
|
+
declare const _default: {
|
2
|
+
name: string;
|
3
|
+
tel: string;
|
4
|
+
save: string;
|
5
|
+
confirm: string;
|
6
|
+
cancel: string;
|
7
|
+
delete: string;
|
8
|
+
loading: string;
|
9
|
+
noCoupon: string;
|
10
|
+
nameEmpty: string;
|
11
|
+
addContact: string;
|
12
|
+
telInvalid: string;
|
13
|
+
vanCalendar: {
|
14
|
+
end: string;
|
15
|
+
start: string;
|
16
|
+
title: string;
|
17
|
+
weekdays: string[];
|
18
|
+
monthTitle: (year: number, month: number) => string;
|
19
|
+
rangePrompt: (maxRange: number) => string;
|
20
|
+
};
|
21
|
+
vanCascader: {
|
22
|
+
select: string;
|
23
|
+
};
|
24
|
+
vanPagination: {
|
25
|
+
prev: string;
|
26
|
+
next: string;
|
27
|
+
};
|
28
|
+
vanPullRefresh: {
|
29
|
+
pulling: string;
|
30
|
+
loosing: string;
|
31
|
+
};
|
32
|
+
vanSubmitBar: {
|
33
|
+
label: string;
|
34
|
+
};
|
35
|
+
vanCoupon: {
|
36
|
+
unlimited: string;
|
37
|
+
discount: (discount: number) => string;
|
38
|
+
condition: (condition: number) => string;
|
39
|
+
};
|
40
|
+
vanCouponCell: {
|
41
|
+
title: string;
|
42
|
+
count: (count: number) => string;
|
43
|
+
};
|
44
|
+
vanCouponList: {
|
45
|
+
exchange: string;
|
46
|
+
close: string;
|
47
|
+
enable: string;
|
48
|
+
disabled: string;
|
49
|
+
placeholder: string;
|
50
|
+
};
|
51
|
+
vanAddressEdit: {
|
52
|
+
area: string;
|
53
|
+
postal: string;
|
54
|
+
areaEmpty: string;
|
55
|
+
addressEmpty: string;
|
56
|
+
postalEmpty: string;
|
57
|
+
addressDetail: string;
|
58
|
+
defaultAddress: string;
|
59
|
+
};
|
60
|
+
vanAddressList: {
|
61
|
+
add: string;
|
62
|
+
};
|
63
|
+
};
|
64
|
+
export default _default;
|
@@ -0,0 +1,74 @@
|
|
1
|
+
var stdin_default = {
|
2
|
+
name: "t\xEAn",
|
3
|
+
tel: "\u0110i\u1EC7n tho\u1EA1i",
|
4
|
+
save: "C\u1EE9u",
|
5
|
+
confirm: "X\xE1c nh\u1EADn",
|
6
|
+
cancel: "H\u1EE7y b\u1ECF",
|
7
|
+
delete: "X\xF3a",
|
8
|
+
loading: "\u0110ang t\u1EA3i ...",
|
9
|
+
noCoupon: "Kh\xF4ng c\xF3 phi\u1EBFu gi\u1EA3m gi\xE1",
|
10
|
+
nameEmpty: "Vui l\xF2ng \u0111i\u1EC1n v\xE0o t\xEAn",
|
11
|
+
addContact: "Th\xEAm li\xEAn h\u1EC7",
|
12
|
+
telInvalid: "S\u1ED1 \u0111i\u1EC7n tho\u1EA1i kh\xF4ng \u0111\xFAng \u0111\u1ECBnh d\u1EA1ng",
|
13
|
+
vanCalendar: {
|
14
|
+
end: "K\u1EBFt th\xFAc",
|
15
|
+
start: "B\u1EAFt \u200B\u200B\u0111\u1EA7u",
|
16
|
+
title: "L\u1ECBch",
|
17
|
+
weekdays: [
|
18
|
+
"ch\u1EE7 nh\u1EADt",
|
19
|
+
"th\u1EE9 hai",
|
20
|
+
"th\u1EE9 ba",
|
21
|
+
"Th\u1EE9 T\u01B0",
|
22
|
+
"Th\u1EE9 n\u0103m",
|
23
|
+
"Th\u1EE9 s\xE1u",
|
24
|
+
"th\u1EE9 b\u1EA3y"
|
25
|
+
],
|
26
|
+
monthTitle: (year, month) => `${year}/${month}`,
|
27
|
+
rangePrompt: (maxRange) => `Ch\u1ECDn kh\xF4ng qu\xE1 ${maxRange} ng\xE0y`
|
28
|
+
},
|
29
|
+
vanCascader: {
|
30
|
+
select: "Ch\u1ECDn"
|
31
|
+
},
|
32
|
+
vanPagination: {
|
33
|
+
prev: "Tr\u01B0\u1EDBc \u0111\xF3",
|
34
|
+
next: "Ti\u1EBFp theo"
|
35
|
+
},
|
36
|
+
vanPullRefresh: {
|
37
|
+
pulling: "K\xE9o \u0111\u1EC3 l\xE0m m\u1EDBi ...",
|
38
|
+
loosing: "Loose \u0111\u1EC3 l\xE0m m\u1EDBi ..."
|
39
|
+
},
|
40
|
+
vanSubmitBar: {
|
41
|
+
label: "T\u1ED5ng:"
|
42
|
+
},
|
43
|
+
vanCoupon: {
|
44
|
+
unlimited: "Kh\xF4ng gi\u1EDBi h\u1EA1n",
|
45
|
+
discount: (discount) => `Chi\u1EBFt kh\u1EA5u ${discount * 10}%`,
|
46
|
+
condition: (condition) => `\xCDt nh\u1EA5t ${condition}`
|
47
|
+
},
|
48
|
+
vanCouponCell: {
|
49
|
+
title: "Phi\u1EBFu gi\u1EA3m gi\xE1",
|
50
|
+
count: (count) => `B\u1EA1n c\xF3 ${count} phi\u1EBFu gi\u1EA3m gi\xE1`
|
51
|
+
},
|
52
|
+
vanCouponList: {
|
53
|
+
exchange: "Trao \u0111\u1ED5i",
|
54
|
+
close: "\u0110\xF3ng",
|
55
|
+
enable: "C\xF3 s\u1EB5n",
|
56
|
+
disabled: "Kh\xF4ng kh\u1EA3 d\u1EE5ng",
|
57
|
+
placeholder: "M\xE3 phi\u1EBFu th\u01B0\u1EDFng"
|
58
|
+
},
|
59
|
+
vanAddressEdit: {
|
60
|
+
area: "Khu v\u1EF1c",
|
61
|
+
postal: "B\u01B0u \u0111i\u1EC7n",
|
62
|
+
areaEmpty: "Vui l\xF2ng ch\u1ECDn khu v\u1EF1c nh\u1EADn h\xE0ng",
|
63
|
+
addressEmpty: "\u0110\u1ECBa ch\u1EC9 kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng",
|
64
|
+
postalEmpty: "M\xE3 b\u01B0u ch\xEDnh sai",
|
65
|
+
addressDetail: "\u0110\u1ECBa ch\u1EC9",
|
66
|
+
defaultAddress: "\u0110\u1EB7t l\xE0m \u0111\u1ECBa ch\u1EC9 m\u1EB7c \u0111\u1ECBnh"
|
67
|
+
},
|
68
|
+
vanAddressList: {
|
69
|
+
add: "Th\xEAm \u0111\u1ECBa ch\u1EC9 m\u1EDBi"
|
70
|
+
}
|
71
|
+
};
|
72
|
+
export {
|
73
|
+
stdin_default as default
|
74
|
+
};
|
package/es/locale/lang/zh-CN.js
CHANGED
package/es/locale/lang/zh-HK.js
CHANGED
package/es/locale/lang/zh-TW.js
CHANGED
package/es/nav-bar/NavBar.d.ts
CHANGED
package/es/nav-bar/NavBar.js
CHANGED
@@ -60,10 +60,10 @@ var stdin_default = defineComponent({
|
|
60
60
|
"ref": navBarRef,
|
61
61
|
"style": style,
|
62
62
|
"class": [bem({
|
63
|
-
fixed
|
64
|
-
"safe-area-inset-top": props.safeAreaInsetTop
|
63
|
+
fixed
|
65
64
|
}), {
|
66
|
-
[BORDER_BOTTOM]: border
|
65
|
+
[BORDER_BOTTOM]: border,
|
66
|
+
"van-safe-area-top": props.safeAreaInsetTop
|
67
67
|
}]
|
68
68
|
}, [_createVNode("div", {
|
69
69
|
"class": bem("content")
|
package/es/nav-bar/index.d.ts
CHANGED
@@ -31,8 +31,8 @@ export declare const NavBar: import("../utils").WithInstall<import("vue").Define
|
|
31
31
|
fixed: boolean;
|
32
32
|
border: boolean;
|
33
33
|
placeholder: boolean;
|
34
|
-
leftArrow: boolean;
|
35
34
|
safeAreaInsetTop: boolean;
|
35
|
+
leftArrow: boolean;
|
36
36
|
}>>;
|
37
37
|
export default NavBar;
|
38
38
|
export type { NavBarProps } from './NavBar';
|
package/es/notify/types.d.ts
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
import { Notify } from './function-call';
|
2
|
-
|
2
|
+
import type { Numeric } from '../utils';
|
3
|
+
export declare type NotifyMessage = Numeric;
|
3
4
|
export declare type NotifyType = 'primary' | 'success' | 'danger' | 'warning';
|
4
5
|
export declare type NotifyPosition = 'top' | 'bottom';
|
5
6
|
export declare type NotifyOptions = {
|
@@ -26,6 +26,15 @@ const numberKeyboardProps = {
|
|
26
26
|
default: ""
|
27
27
|
}
|
28
28
|
};
|
29
|
+
function shuffle(array) {
|
30
|
+
for (let i = array.length - 1; i > 0; i--) {
|
31
|
+
const j = Math.floor(Math.random() * (i + 1));
|
32
|
+
const temp = array[i];
|
33
|
+
array[i] = array[j];
|
34
|
+
array[j] = temp;
|
35
|
+
}
|
36
|
+
return array;
|
37
|
+
}
|
29
38
|
var stdin_default = defineComponent({
|
30
39
|
name,
|
31
40
|
props: numberKeyboardProps,
|
@@ -40,7 +49,7 @@ var stdin_default = defineComponent({
|
|
40
49
|
text: i + 1
|
41
50
|
}));
|
42
51
|
if (props.randomKeyOrder) {
|
43
|
-
keys2
|
52
|
+
shuffle(keys2);
|
44
53
|
}
|
45
54
|
return keys2;
|
46
55
|
};
|
package/es/picker/types.d.ts
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
import type { ComponentPublicInstance } from 'vue';
|
2
|
+
import type { Numeric } from '../utils';
|
2
3
|
import type { PickerProps } from './Picker';
|
3
4
|
export declare type PickerToolbarPosition = 'top' | 'bottom';
|
4
5
|
export declare type PickerFieldNames = {
|
@@ -7,11 +8,11 @@ export declare type PickerFieldNames = {
|
|
7
8
|
children?: string;
|
8
9
|
};
|
9
10
|
export declare type PickerObjectOption = {
|
10
|
-
text?:
|
11
|
+
text?: Numeric;
|
11
12
|
disabled?: boolean;
|
12
13
|
[key: PropertyKey]: any;
|
13
14
|
};
|
14
|
-
export declare type PickerOption =
|
15
|
+
export declare type PickerOption = Numeric | PickerObjectOption;
|
15
16
|
export declare type PickerObjectColumn = {
|
16
17
|
values?: PickerOption[];
|
17
18
|
children?: PickerColumn;
|
package/es/popup/Popup.d.ts
CHANGED
@@ -43,6 +43,7 @@ declare const popupProps: {
|
|
43
43
|
type: import("vue").PropType<PopupCloseIconPosition>;
|
44
44
|
default: PopupCloseIconPosition;
|
45
45
|
};
|
46
|
+
safeAreaInsetTop: BooleanConstructor;
|
46
47
|
safeAreaInsetBottom: BooleanConstructor;
|
47
48
|
};
|
48
49
|
export declare type PopupProps = ExtractPropTypes<typeof popupProps>;
|
@@ -89,8 +90,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
89
90
|
type: import("vue").PropType<PopupCloseIconPosition>;
|
90
91
|
default: PopupCloseIconPosition;
|
91
92
|
};
|
93
|
+
safeAreaInsetTop: BooleanConstructor;
|
92
94
|
safeAreaInsetBottom: BooleanConstructor;
|
93
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("open" | "close" | "opened" | "closed" | "update:show" | "click-overlay" | "click-close-icon")[], "open" | "close" | "opened" | "closed" | "update:show" | "click-overlay" | "click-close-icon", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
95
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("open" | "close" | "keydown" | "opened" | "closed" | "update:show" | "click-overlay" | "click-close-icon")[], "open" | "close" | "keydown" | "opened" | "closed" | "update:show" | "click-overlay" | "click-close-icon", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
94
96
|
show: BooleanConstructor;
|
95
97
|
zIndex: (NumberConstructor | StringConstructor)[];
|
96
98
|
overlay: {
|
@@ -133,8 +135,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
133
135
|
type: import("vue").PropType<PopupCloseIconPosition>;
|
134
136
|
default: PopupCloseIconPosition;
|
135
137
|
};
|
138
|
+
safeAreaInsetTop: BooleanConstructor;
|
136
139
|
safeAreaInsetBottom: BooleanConstructor;
|
137
140
|
}>> & {
|
141
|
+
onKeydown?: ((...args: any[]) => any) | undefined;
|
138
142
|
onOpen?: ((...args: any[]) => any) | undefined;
|
139
143
|
onClose?: ((...args: any[]) => any) | undefined;
|
140
144
|
onOpened?: ((...args: any[]) => any) | undefined;
|
@@ -156,5 +160,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
156
160
|
closeable: boolean;
|
157
161
|
closeOnPopstate: boolean;
|
158
162
|
closeIconPosition: PopupCloseIconPosition;
|
163
|
+
safeAreaInsetTop: boolean;
|
159
164
|
}>;
|
160
165
|
export default _default;
|
package/es/popup/Popup.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { Fragment as _Fragment, withDirectives as _withDirectives, mergeProps as _mergeProps, vShow as _vShow, createVNode as _createVNode } from "vue";
|
2
|
-
import { ref, watch, provide, Teleport, computed, onMounted, Transition, onActivated, onDeactivated, defineComponent } from "vue";
|
2
|
+
import { ref, watch, provide, Teleport, nextTick, computed, onMounted, Transition, onActivated, onDeactivated, defineComponent } from "vue";
|
3
3
|
import { popupSharedProps } from "./shared";
|
4
4
|
import { isDef, extend, makeStringProp, callInterceptor, createNamespace, HAPTICS_FEEDBACK } from "../utils";
|
5
5
|
import { useEventListener } from "@vant/use";
|
@@ -18,6 +18,7 @@ const popupProps = extend({}, popupSharedProps, {
|
|
18
18
|
iconPrefix: String,
|
19
19
|
closeOnPopstate: Boolean,
|
20
20
|
closeIconPosition: makeStringProp("top-right"),
|
21
|
+
safeAreaInsetTop: Boolean,
|
21
22
|
safeAreaInsetBottom: Boolean
|
22
23
|
});
|
23
24
|
const [name, bem] = createNamespace("popup");
|
@@ -26,7 +27,7 @@ var stdin_default = defineComponent({
|
|
26
27
|
name,
|
27
28
|
inheritAttrs: false,
|
28
29
|
props: popupProps,
|
29
|
-
emits: ["open", "close", "opened", "closed", "update:show", "click-overlay", "click-close-icon"],
|
30
|
+
emits: ["open", "close", "opened", "closed", "keydown", "update:show", "click-overlay", "click-close-icon"],
|
30
31
|
setup(props, {
|
31
32
|
emit,
|
32
33
|
attrs,
|
@@ -106,11 +107,13 @@ var stdin_default = defineComponent({
|
|
106
107
|
};
|
107
108
|
const onOpened = () => emit("opened");
|
108
109
|
const onClosed = () => emit("closed");
|
110
|
+
const onKeydown = (event) => emit("keydown", event);
|
109
111
|
const renderPopup = lazyRender(() => {
|
110
112
|
var _a;
|
111
113
|
const {
|
112
114
|
round,
|
113
115
|
position,
|
116
|
+
safeAreaInsetTop,
|
114
117
|
safeAreaInsetBottom
|
115
118
|
} = props;
|
116
119
|
return _withDirectives(_createVNode("div", _mergeProps({
|
@@ -120,8 +123,10 @@ var stdin_default = defineComponent({
|
|
120
123
|
round,
|
121
124
|
[position]: position
|
122
125
|
}), {
|
126
|
+
"van-safe-area-top": safeAreaInsetTop,
|
123
127
|
"van-safe-area-bottom": safeAreaInsetBottom
|
124
|
-
}]
|
128
|
+
}],
|
129
|
+
"onKeydown": onKeydown
|
125
130
|
}, attrs), [(_a = slots.default) == null ? void 0 : _a.call(slots), renderCloseIcon()]), [[_vShow, props.show]]);
|
126
131
|
});
|
127
132
|
const renderTransition = () => {
|
@@ -143,6 +148,12 @@ var stdin_default = defineComponent({
|
|
143
148
|
watch(() => props.show, (show) => {
|
144
149
|
if (show && !opened) {
|
145
150
|
open();
|
151
|
+
if (attrs.tabindex === 0) {
|
152
|
+
nextTick(() => {
|
153
|
+
var _a;
|
154
|
+
(_a = popupRef.value) == null ? void 0 : _a.focus();
|
155
|
+
});
|
156
|
+
}
|
146
157
|
}
|
147
158
|
if (!show && opened) {
|
148
159
|
opened = false;
|
package/es/popup/index.d.ts
CHANGED
@@ -41,8 +41,9 @@ export declare const Popup: import("../utils").WithInstall<import("vue").DefineC
|
|
41
41
|
type: import("vue").PropType<import("./types").PopupCloseIconPosition>;
|
42
42
|
default: import("./types").PopupCloseIconPosition;
|
43
43
|
};
|
44
|
+
safeAreaInsetTop: BooleanConstructor;
|
44
45
|
safeAreaInsetBottom: BooleanConstructor;
|
45
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("open" | "close" | "opened" | "closed" | "update:show" | "click-overlay" | "click-close-icon")[], "open" | "close" | "opened" | "closed" | "update:show" | "click-overlay" | "click-close-icon", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
46
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("open" | "close" | "keydown" | "opened" | "closed" | "update:show" | "click-overlay" | "click-close-icon")[], "open" | "close" | "keydown" | "opened" | "closed" | "update:show" | "click-overlay" | "click-close-icon", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
46
47
|
show: BooleanConstructor;
|
47
48
|
zIndex: (NumberConstructor | StringConstructor)[];
|
48
49
|
overlay: {
|
@@ -85,8 +86,10 @@ export declare const Popup: import("../utils").WithInstall<import("vue").DefineC
|
|
85
86
|
type: import("vue").PropType<import("./types").PopupCloseIconPosition>;
|
86
87
|
default: import("./types").PopupCloseIconPosition;
|
87
88
|
};
|
89
|
+
safeAreaInsetTop: BooleanConstructor;
|
88
90
|
safeAreaInsetBottom: BooleanConstructor;
|
89
91
|
}>> & {
|
92
|
+
onKeydown?: ((...args: any[]) => any) | undefined;
|
90
93
|
onOpen?: ((...args: any[]) => any) | undefined;
|
91
94
|
onClose?: ((...args: any[]) => any) | undefined;
|
92
95
|
onOpened?: ((...args: any[]) => any) | undefined;
|
@@ -108,6 +111,7 @@ export declare const Popup: import("../utils").WithInstall<import("vue").DefineC
|
|
108
111
|
closeable: boolean;
|
109
112
|
closeOnPopstate: boolean;
|
110
113
|
closeIconPosition: import("./types").PopupCloseIconPosition;
|
114
|
+
safeAreaInsetTop: boolean;
|
111
115
|
}>>;
|
112
116
|
export default Popup;
|
113
117
|
export type { PopupProps } from './Popup';
|
package/es/popup/types.d.ts
CHANGED
@@ -1,5 +1,8 @@
|
|
1
|
-
import type { ComponentPublicInstance } from 'vue';
|
1
|
+
import type { Ref, ComponentPublicInstance } from 'vue';
|
2
2
|
import type { PopupProps } from './Popup';
|
3
3
|
export declare type PopupPosition = 'top' | 'left' | 'bottom' | 'right' | 'center' | '';
|
4
4
|
export declare type PopupCloseIconPosition = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
5
|
-
export declare type
|
5
|
+
export declare type PopupExpose = {
|
6
|
+
popupRef: Ref<HTMLElement>;
|
7
|
+
};
|
8
|
+
export declare type PopupInstance = ComponentPublicInstance<PopupProps, PopupExpose>;
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { type ExtractPropTypes } from 'vue';
|
2
|
+
import { type Numeric } from '../utils';
|
2
3
|
declare const progressProps: {
|
3
4
|
color: StringConstructor;
|
4
5
|
inactive: BooleanConstructor;
|
@@ -14,7 +15,7 @@ declare const progressProps: {
|
|
14
15
|
percentage: {
|
15
16
|
type: (NumberConstructor | StringConstructor)[];
|
16
17
|
default: number;
|
17
|
-
validator: (value:
|
18
|
+
validator: (value: Numeric) => boolean;
|
18
19
|
};
|
19
20
|
};
|
20
21
|
export declare type ProgressProps = ExtractPropTypes<typeof progressProps>;
|
@@ -33,7 +34,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
33
34
|
percentage: {
|
34
35
|
type: (NumberConstructor | StringConstructor)[];
|
35
36
|
default: number;
|
36
|
-
validator: (value:
|
37
|
+
validator: (value: Numeric) => boolean;
|
37
38
|
};
|
38
39
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
39
40
|
color: StringConstructor;
|
@@ -50,7 +51,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
50
51
|
percentage: {
|
51
52
|
type: (NumberConstructor | StringConstructor)[];
|
52
53
|
default: number;
|
53
|
-
validator: (value:
|
54
|
+
validator: (value: Numeric) => boolean;
|
54
55
|
};
|
55
56
|
}>>, {
|
56
57
|
inactive: boolean;
|
package/es/progress/index.d.ts
CHANGED
@@ -14,7 +14,7 @@ export declare const Progress: import("../utils").WithInstall<import("vue").Defi
|
|
14
14
|
percentage: {
|
15
15
|
type: (NumberConstructor | StringConstructor)[];
|
16
16
|
default: number;
|
17
|
-
validator: (value:
|
17
|
+
validator: (value: import("../utils").Numeric) => boolean;
|
18
18
|
};
|
19
19
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
20
20
|
color: StringConstructor;
|
@@ -31,7 +31,7 @@ export declare const Progress: import("../utils").WithInstall<import("vue").Defi
|
|
31
31
|
percentage: {
|
32
32
|
type: (NumberConstructor | StringConstructor)[];
|
33
33
|
default: number;
|
34
|
-
validator: (value:
|
34
|
+
validator: (value: import("../utils").Numeric) => boolean;
|
35
35
|
};
|
36
36
|
}>>, {
|
37
37
|
inactive: boolean;
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { type PropType, type ExtractPropTypes } from 'vue';
|
2
|
+
import { type Numeric } from '../utils';
|
2
3
|
export declare type SkeletonAvatarShape = 'square' | 'round';
|
3
4
|
declare const skeletonProps: {
|
4
5
|
row: {
|
@@ -23,7 +24,7 @@ declare const skeletonProps: {
|
|
23
24
|
default: SkeletonAvatarShape;
|
24
25
|
};
|
25
26
|
rowWidth: {
|
26
|
-
type: PropType<
|
27
|
+
type: PropType<Numeric | Numeric[]>;
|
27
28
|
default: string;
|
28
29
|
};
|
29
30
|
};
|
@@ -51,7 +52,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
51
52
|
default: SkeletonAvatarShape;
|
52
53
|
};
|
53
54
|
rowWidth: {
|
54
|
-
type: PropType<
|
55
|
+
type: PropType<Numeric | Numeric[]>;
|
55
56
|
default: string;
|
56
57
|
};
|
57
58
|
}, () => JSX.Element | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
@@ -79,7 +80,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
79
80
|
default: SkeletonAvatarShape;
|
80
81
|
};
|
81
82
|
rowWidth: {
|
82
|
-
type: PropType<
|
83
|
+
type: PropType<Numeric | Numeric[]>;
|
83
84
|
default: string;
|
84
85
|
};
|
85
86
|
}>>, {
|
@@ -90,6 +91,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
90
91
|
row: string | number;
|
91
92
|
avatar: boolean;
|
92
93
|
avatarShape: SkeletonAvatarShape;
|
93
|
-
rowWidth:
|
94
|
+
rowWidth: Numeric | Numeric[];
|
94
95
|
}>;
|
95
96
|
export default _default;
|
package/es/skeleton/Skeleton.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { createVNode as _createVNode } from "vue";
|
1
|
+
import { mergeProps as _mergeProps, createVNode as _createVNode } from "vue";
|
2
2
|
import { defineComponent } from "vue";
|
3
3
|
import { addUnit, truthProp, numericProp, getSizeStyle, makeStringProp, makeNumericProp, createNamespace } from "../utils";
|
4
4
|
const [name, bem] = createNamespace("skeleton");
|
@@ -21,9 +21,11 @@ const skeletonProps = {
|
|
21
21
|
};
|
22
22
|
var stdin_default = defineComponent({
|
23
23
|
name,
|
24
|
+
inheritAttrs: false,
|
24
25
|
props: skeletonProps,
|
25
26
|
setup(props, {
|
26
|
-
slots
|
27
|
+
slots,
|
28
|
+
attrs
|
27
29
|
}) {
|
28
30
|
const renderAvatar = () => {
|
29
31
|
if (props.avatar) {
|
@@ -66,12 +68,12 @@ var stdin_default = defineComponent({
|
|
66
68
|
if (!props.loading) {
|
67
69
|
return (_a = slots.default) == null ? void 0 : _a.call(slots);
|
68
70
|
}
|
69
|
-
return _createVNode("div", {
|
71
|
+
return _createVNode("div", _mergeProps({
|
70
72
|
"class": bem({
|
71
73
|
animate: props.animate,
|
72
74
|
round: props.round
|
73
75
|
})
|
74
|
-
}, [renderAvatar(), _createVNode("div", {
|
76
|
+
}, attrs), [renderAvatar(), _createVNode("div", {
|
75
77
|
"class": bem("content")
|
76
78
|
}, [renderTitle(), renderRows()])]);
|
77
79
|
};
|