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
package/es/skeleton/index.d.ts
CHANGED
@@ -21,7 +21,7 @@ export declare const Skeleton: import("../utils").WithInstall<import("vue").Defi
|
|
21
21
|
default: import("./Skeleton").SkeletonAvatarShape;
|
22
22
|
};
|
23
23
|
rowWidth: {
|
24
|
-
type: import("vue").PropType<
|
24
|
+
type: import("vue").PropType<import("../utils").Numeric | import("../utils").Numeric[]>;
|
25
25
|
default: string;
|
26
26
|
};
|
27
27
|
}, () => JSX.Element | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
@@ -49,7 +49,7 @@ export declare const Skeleton: import("../utils").WithInstall<import("vue").Defi
|
|
49
49
|
default: import("./Skeleton").SkeletonAvatarShape;
|
50
50
|
};
|
51
51
|
rowWidth: {
|
52
|
-
type: import("vue").PropType<
|
52
|
+
type: import("vue").PropType<import("../utils").Numeric | import("../utils").Numeric[]>;
|
53
53
|
default: string;
|
54
54
|
};
|
55
55
|
}>>, {
|
@@ -60,7 +60,7 @@ export declare const Skeleton: import("../utils").WithInstall<import("vue").Defi
|
|
60
60
|
row: string | number;
|
61
61
|
avatar: boolean;
|
62
62
|
avatarShape: import("./Skeleton").SkeletonAvatarShape;
|
63
|
-
rowWidth:
|
63
|
+
rowWidth: import("../utils").Numeric | import("../utils").Numeric[];
|
64
64
|
}>>;
|
65
65
|
export default Skeleton;
|
66
66
|
export type { SkeletonProps, SkeletonAvatarShape } from './Skeleton';
|
package/es/style/base.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
:root{--van-black: #000;--van-white: #fff;--van-gray-1: #f7f8fa;--van-gray-2: #f2f3f5;--van-gray-3: #ebedf0;--van-gray-4: #dcdee0;--van-gray-5: #c8c9cc;--van-gray-6: #969799;--van-gray-7: #646566;--van-gray-8: #323233;--van-red: #ee0a24;--van-blue: #1989fa;--van-orange: #ff976a;--van-orange-dark: #ed6a0c;--van-orange-light: #fffbe8;--van-green: #07c160;--van-gradient-red: linear-gradient(to right, #ff6034, #ee0a24);--van-gradient-orange: linear-gradient(to right, #ffd01e, #ff8917);--van-primary-color: var(--van-blue);--van-success-color: var(--van-green);--van-danger-color: var(--van-red);--van-warning-color: var(--van-orange);--van-text-color: var(--van-gray-8);--van-text-color-2: var(--van-gray-6);--van-text-color-3: var(--van-gray-5);--van-text-link-color: #576b95;--van-active-color: var(--van-gray-2);--van-active-opacity: .6;--van-disabled-opacity: .5;--van-background-color: var(--van-gray-1);--van-background-color-light: var(--van-white);--van-padding-base: 4px;--van-padding-xs: 8px;--van-padding-sm: 12px;--van-padding-md: 16px;--van-padding-lg: 24px;--van-padding-xl: 32px;--van-font-size-xs: 10px;--van-font-size-sm: 12px;--van-font-size-md: 14px;--van-font-size-lg: 16px;--van-font-weight-bold: 500;--van-line-height-xs: 14px;--van-line-height-sm: 18px;--van-line-height-md: 20px;--van-line-height-lg: 22px;--van-base-font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Segoe UI, Arial, Roboto, "PingFang SC", "miui", "Hiragino Sans GB", "Microsoft Yahei", sans-serif;--van-price-integer-font-family: Avenir-Heavy, PingFang SC, Helvetica Neue, Arial, sans-serif;--van-animation-duration-base: .3s;--van-animation-duration-fast: .2s;--van-animation-timing-function-enter: ease-out;--van-animation-timing-function-leave: ease-in;--van-border-color: var(--van-gray-3);--van-border-width-base: 1px;--van-border-radius-sm: 2px;--van-border-radius-md: 4px;--van-border-radius-lg: 8px;--van-border-radius-max: 999px}html{-webkit-tap-highlight-color:transparent}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,Helvetica Neue,Helvetica,Segoe UI,Arial,Roboto,PingFang SC,miui,Hiragino Sans GB,Microsoft Yahei,sans-serif}a{text-decoration:none}input,button,textarea{color:inherit;font:inherit}a:focus,input:focus,button:focus,textarea:focus,[class*=van-]:focus{outline:none}ol,ul{margin:0;padding:0;list-style:none}@keyframes van-slide-up-enter{0%{transform:translateY(100%)}}@keyframes van-slide-up-leave{to{transform:translateY(100%)}}@keyframes van-slide-down-enter{0%{transform:translateY(-100%)}}@keyframes van-slide-down-leave{to{transform:translateY(-100%)}}@keyframes van-slide-left-enter{0%{transform:translate(-100%)}}@keyframes van-slide-left-leave{to{transform:translate(-100%)}}@keyframes van-slide-right-enter{0%{transform:translate(100%)}}@keyframes van-slide-right-leave{to{transform:translate(100%)}}@keyframes van-fade-in{0%{opacity:0}to{opacity:1}}@keyframes van-fade-out{0%{opacity:1}to{opacity:0}}@keyframes van-rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.van-fade-enter-active{animation:var(--van-animation-duration-base) van-fade-in both var(--van-animation-timing-function-enter)}.van-fade-leave-active{animation:var(--van-animation-duration-base) van-fade-out both var(--van-animation-timing-function-leave)}.van-slide-up-enter-active{animation:van-slide-up-enter var(--van-animation-duration-base) both var(--van-animation-timing-function-enter)}.van-slide-up-leave-active{animation:van-slide-up-leave var(--van-animation-duration-base) both var(--van-animation-timing-function-leave)}.van-slide-down-enter-active{animation:van-slide-down-enter var(--van-animation-duration-base) both var(--van-animation-timing-function-enter)}.van-slide-down-leave-active{animation:van-slide-down-leave var(--van-animation-duration-base) both var(--van-animation-timing-function-leave)}.van-slide-left-enter-active{animation:van-slide-left-enter var(--van-animation-duration-base) both var(--van-animation-timing-function-enter)}.van-slide-left-leave-active{animation:van-slide-left-leave var(--van-animation-duration-base) both var(--van-animation-timing-function-leave)}.van-slide-right-enter-active{animation:van-slide-right-enter var(--van-animation-duration-base) both var(--van-animation-timing-function-enter)}.van-slide-right-leave-active{animation:van-slide-right-leave var(--van-animation-duration-base) both var(--van-animation-timing-function-leave)}.van-clearfix:after{display:table;clear:both;content:""}.van-ellipsis{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.van-multi-ellipsis--l2{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:2;-webkit-box-orient:vertical}.van-multi-ellipsis--l3{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:3;-webkit-box-orient:vertical}.van-safe-area-bottom{padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom)}.van-haptics-feedback{cursor:pointer}.van-haptics-feedback:active{opacity:var(--van-active-opacity)}[class*=van-hairline]:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;top:-50%;right:-50%;bottom:-50%;left:-50%;border:0 solid var(--van-border-color);transform:scale(.5)}.van-hairline,.van-hairline--top,.van-hairline--left,.van-hairline--right,.van-hairline--bottom,.van-hairline--surround,.van-hairline--top-bottom{position:relative}.van-hairline--top:after{border-top-width:1px}.van-hairline--left:after{border-left-width:1px}.van-hairline--right:after{border-right-width:1px}.van-hairline--bottom:after{border-bottom-width:1px}.van-hairline--top-bottom:after,.van-hairline-unset--top-bottom:after{border-width:1px 0}.van-hairline--surround:after{border-width:1px}
|
1
|
+
:root{--van-black: #000;--van-white: #fff;--van-gray-1: #f7f8fa;--van-gray-2: #f2f3f5;--van-gray-3: #ebedf0;--van-gray-4: #dcdee0;--van-gray-5: #c8c9cc;--van-gray-6: #969799;--van-gray-7: #646566;--van-gray-8: #323233;--van-red: #ee0a24;--van-blue: #1989fa;--van-orange: #ff976a;--van-orange-dark: #ed6a0c;--van-orange-light: #fffbe8;--van-green: #07c160;--van-gradient-red: linear-gradient(to right, #ff6034, #ee0a24);--van-gradient-orange: linear-gradient(to right, #ffd01e, #ff8917);--van-primary-color: var(--van-blue);--van-success-color: var(--van-green);--van-danger-color: var(--van-red);--van-warning-color: var(--van-orange);--van-text-color: var(--van-gray-8);--van-text-color-2: var(--van-gray-6);--van-text-color-3: var(--van-gray-5);--van-text-link-color: #576b95;--van-active-color: var(--van-gray-2);--van-active-opacity: .6;--van-disabled-opacity: .5;--van-background-color: var(--van-gray-1);--van-background-color-light: var(--van-white);--van-padding-base: 4px;--van-padding-xs: 8px;--van-padding-sm: 12px;--van-padding-md: 16px;--van-padding-lg: 24px;--van-padding-xl: 32px;--van-font-size-xs: 10px;--van-font-size-sm: 12px;--van-font-size-md: 14px;--van-font-size-lg: 16px;--van-font-weight-bold: 500;--van-line-height-xs: 14px;--van-line-height-sm: 18px;--van-line-height-md: 20px;--van-line-height-lg: 22px;--van-base-font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Segoe UI, Arial, Roboto, "PingFang SC", "miui", "Hiragino Sans GB", "Microsoft Yahei", sans-serif;--van-price-integer-font-family: Avenir-Heavy, PingFang SC, Helvetica Neue, Arial, sans-serif;--van-animation-duration-base: .3s;--van-animation-duration-fast: .2s;--van-animation-timing-function-enter: ease-out;--van-animation-timing-function-leave: ease-in;--van-border-color: var(--van-gray-3);--van-border-width-base: 1px;--van-border-radius-sm: 2px;--van-border-radius-md: 4px;--van-border-radius-lg: 8px;--van-border-radius-max: 999px}html{-webkit-tap-highlight-color:transparent}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,Helvetica Neue,Helvetica,Segoe UI,Arial,Roboto,PingFang SC,miui,Hiragino Sans GB,Microsoft Yahei,sans-serif}a{text-decoration:none}input,button,textarea{color:inherit;font:inherit}a:focus,input:focus,button:focus,textarea:focus,[class*=van-]:focus{outline:none}ol,ul{margin:0;padding:0;list-style:none}@keyframes van-slide-up-enter{0%{transform:translateY(100%)}}@keyframes van-slide-up-leave{to{transform:translateY(100%)}}@keyframes van-slide-down-enter{0%{transform:translateY(-100%)}}@keyframes van-slide-down-leave{to{transform:translateY(-100%)}}@keyframes van-slide-left-enter{0%{transform:translate(-100%)}}@keyframes van-slide-left-leave{to{transform:translate(-100%)}}@keyframes van-slide-right-enter{0%{transform:translate(100%)}}@keyframes van-slide-right-leave{to{transform:translate(100%)}}@keyframes van-fade-in{0%{opacity:0}to{opacity:1}}@keyframes van-fade-out{0%{opacity:1}to{opacity:0}}@keyframes van-rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.van-fade-enter-active{animation:var(--van-animation-duration-base) van-fade-in both var(--van-animation-timing-function-enter)}.van-fade-leave-active{animation:var(--van-animation-duration-base) van-fade-out both var(--van-animation-timing-function-leave)}.van-slide-up-enter-active{animation:van-slide-up-enter var(--van-animation-duration-base) both var(--van-animation-timing-function-enter)}.van-slide-up-leave-active{animation:van-slide-up-leave var(--van-animation-duration-base) both var(--van-animation-timing-function-leave)}.van-slide-down-enter-active{animation:van-slide-down-enter var(--van-animation-duration-base) both var(--van-animation-timing-function-enter)}.van-slide-down-leave-active{animation:van-slide-down-leave var(--van-animation-duration-base) both var(--van-animation-timing-function-leave)}.van-slide-left-enter-active{animation:van-slide-left-enter var(--van-animation-duration-base) both var(--van-animation-timing-function-enter)}.van-slide-left-leave-active{animation:van-slide-left-leave var(--van-animation-duration-base) both var(--van-animation-timing-function-leave)}.van-slide-right-enter-active{animation:van-slide-right-enter var(--van-animation-duration-base) both var(--van-animation-timing-function-enter)}.van-slide-right-leave-active{animation:van-slide-right-leave var(--van-animation-duration-base) both var(--van-animation-timing-function-leave)}.van-clearfix:after{display:table;clear:both;content:""}.van-ellipsis{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.van-multi-ellipsis--l2{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:2;-webkit-box-orient:vertical}.van-multi-ellipsis--l3{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:3;-webkit-box-orient:vertical}.van-safe-area-top{padding-top:constant(safe-area-inset-top);padding-top:env(safe-area-inset-top)}.van-safe-area-bottom{padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom)}.van-haptics-feedback{cursor:pointer}.van-haptics-feedback:active{opacity:var(--van-active-opacity)}[class*=van-hairline]:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;top:-50%;right:-50%;bottom:-50%;left:-50%;border:0 solid var(--van-border-color);transform:scale(.5)}.van-hairline,.van-hairline--top,.van-hairline--left,.van-hairline--right,.van-hairline--bottom,.van-hairline--surround,.van-hairline--top-bottom{position:relative}.van-hairline--top:after{border-top-width:1px}.van-hairline--left:after{border-left-width:1px}.van-hairline--right:after{border-right-width:1px}.van-hairline--bottom:after{border-bottom-width:1px}.van-hairline--top-bottom:after,.van-hairline-unset--top-bottom:after{border-width:1px 0}.van-hairline--surround:after{border-width:1px}
|
package/es/style/base.less
CHANGED
@@ -26,6 +26,11 @@
|
|
26
26
|
.multi-ellipsis(3);
|
27
27
|
}
|
28
28
|
|
29
|
+
.van-safe-area-top {
|
30
|
+
padding-top: constant(safe-area-inset-top);
|
31
|
+
padding-top: env(safe-area-inset-top);
|
32
|
+
}
|
33
|
+
|
29
34
|
.van-safe-area-bottom {
|
30
35
|
padding-bottom: constant(safe-area-inset-bottom);
|
31
36
|
padding-bottom: env(safe-area-inset-bottom);
|
package/es/submit-bar/index.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
:root{--van-submit-bar-height: 50px;--van-submit-bar-z-index: 100;--van-submit-bar-background-color: var(--van-background-color-light);--van-submit-bar-button-width: 110px;--van-submit-bar-price-color: var(--van-danger-color);--van-submit-bar-price-font-size: var(--van-font-size-sm);--van-submit-bar-price-integer-font-size: 20px;--van-submit-bar-price-font-family: var(--van-price-integer-font-family);--van-submit-bar-currency-font-size: var(--van-font-size-md);--van-submit-bar-text-color: var(--van-text-color);--van-submit-bar-text-font-size: var(--van-font-size-md);--van-submit-bar-tip-padding: var(--van-padding-xs) var(--van-padding-sm);--van-submit-bar-tip-font-size: var(--van-font-size-sm);--van-submit-bar-tip-line-height: 1.5;--van-submit-bar-tip-color: var(--van-orange-dark);--van-submit-bar-tip-background-color: var(--van-orange-light);--van-submit-bar-tip-icon-size: 12px;--van-submit-bar-button-height: 40px;--van-submit-bar-padding: 0 var(--van-padding-md)}.van-submit-bar{position:fixed;bottom:0;left:0;z-index:var(--van-submit-bar-z-index);width:100%;background:var(--van-submit-bar-background-color);-webkit-user-select:none;user-select:none}.van-submit-bar__tip{padding:var(--van-submit-bar-tip-padding);color:var(--van-submit-bar-tip-color);font-size:var(--van-submit-bar-tip-font-size);line-height:var(--van-submit-bar-tip-line-height);background:var(--van-submit-bar-tip-background-color)}.van-submit-bar__tip-icon{margin-right:var(--van-padding-base);font-size:var(--van-submit-bar-tip-icon-size);vertical-align:middle}.van-submit-bar__tip-text{vertical-align:middle}.van-submit-bar__bar{display:flex;align-items:center;justify-content:flex-end;height:var(--van-submit-bar-height);padding:var(--van-submit-bar-padding);font-size:var(--van-submit-bar-text-font-size)}.van-submit-bar__text{flex:1;padding-right:var(--van-padding-sm);color:var(--van-submit-bar-text-color);text-align:right}.van-submit-bar__text span{display:inline-block}.van-submit-bar__suffix-label{margin-left:var(--van-padding-base);font-weight:var(--van-font-weight-bold)}.van-submit-bar__price{color:var(--van-submit-bar-price-color);font-weight:var(--van-font-weight-bold);font-size:var(--van-submit-bar-price-font-size)}.van-submit-bar__price-integer{font-size:var(--van-submit-bar-price-integer-font-size);font-family:var(--van-submit-bar-price-font-family)}.van-submit-bar__button{width:var(--van-submit-bar-button-width);height:var(--van-submit-bar-button-height);font-weight:var(--van-font-weight-bold);border:none}.van-submit-bar__button--danger{background:var(--van-gradient-red)}
|
1
|
+
:root{--van-submit-bar-height: 50px;--van-submit-bar-z-index: 100;--van-submit-bar-background-color: var(--van-background-color-light);--van-submit-bar-button-width: 110px;--van-submit-bar-price-color: var(--van-danger-color);--van-submit-bar-price-font-size: var(--van-font-size-sm);--van-submit-bar-price-integer-font-size: 20px;--van-submit-bar-price-font-family: var(--van-price-integer-font-family);--van-submit-bar-currency-font-size: var(--van-font-size-md);--van-submit-bar-text-color: var(--van-text-color);--van-submit-bar-text-font-size: var(--van-font-size-md);--van-submit-bar-tip-padding: var(--van-padding-xs) var(--van-padding-sm);--van-submit-bar-tip-font-size: var(--van-font-size-sm);--van-submit-bar-tip-line-height: 1.5;--van-submit-bar-tip-color: var(--van-orange-dark);--van-submit-bar-tip-background-color: var(--van-orange-light);--van-submit-bar-tip-icon-size: 12px;--van-submit-bar-button-height: 40px;--van-submit-bar-padding: 0 var(--van-padding-md)}.van-submit-bar{position:fixed;bottom:0;left:0;z-index:var(--van-submit-bar-z-index);width:100%;background:var(--van-submit-bar-background-color);-webkit-user-select:none;user-select:none}.van-submit-bar__tip{padding:var(--van-submit-bar-tip-padding);color:var(--van-submit-bar-tip-color);font-size:var(--van-submit-bar-tip-font-size);line-height:var(--van-submit-bar-tip-line-height);background:var(--van-submit-bar-tip-background-color)}.van-submit-bar__tip-icon{margin-right:var(--van-padding-base);font-size:var(--van-submit-bar-tip-icon-size);vertical-align:middle}.van-submit-bar__tip-text{vertical-align:middle}.van-submit-bar__bar{display:flex;align-items:center;justify-content:flex-end;height:var(--van-submit-bar-height);padding:var(--van-submit-bar-padding);font-size:var(--van-submit-bar-text-font-size)}.van-submit-bar__text{flex:1;padding-right:var(--van-padding-sm);color:var(--van-submit-bar-text-color);text-align:right}.van-submit-bar__text span{display:inline-block}.van-submit-bar__suffix-label{margin-left:var(--van-padding-base);font-weight:var(--van-font-weight-bold)}.van-submit-bar__price{color:var(--van-submit-bar-price-color);font-weight:var(--van-font-weight-bold);font-size:var(--van-submit-bar-price-font-size);margin-left:var(--van-padding-base)}.van-submit-bar__price-integer{font-size:var(--van-submit-bar-price-integer-font-size);font-family:var(--van-submit-bar-price-font-family)}.van-submit-bar__button{width:var(--van-submit-bar-button-width);height:var(--van-submit-bar-button-height);font-weight:var(--van-font-weight-bold);border:none}.van-submit-bar__button--danger{background:var(--van-gradient-red)}
|
package/es/submit-bar/index.less
CHANGED
@@ -78,6 +78,7 @@
|
|
78
78
|
color: var(--van-submit-bar-price-color);
|
79
79
|
font-weight: var(--van-font-weight-bold);
|
80
80
|
font-size: var(--van-submit-bar-price-font-size);
|
81
|
+
margin-left: var(--van-padding-base);
|
81
82
|
|
82
83
|
&-integer {
|
83
84
|
font-size: var(--van-submit-bar-price-integer-font-size);
|
@@ -143,7 +143,7 @@ var stdin_default = defineComponent({
|
|
143
143
|
return _createVNode("div", {
|
144
144
|
"ref": root,
|
145
145
|
"class": bem(),
|
146
|
-
"onClick": getClickHandler("cell"),
|
146
|
+
"onClick": getClickHandler("cell", lockClick),
|
147
147
|
"onTouchstart": onTouchStart,
|
148
148
|
"onTouchmove": onTouchMove,
|
149
149
|
"onTouchend": onTouchEnd,
|
package/es/tabbar/Tabbar.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { type PropType, type InjectionKey, type ExtractPropTypes } from 'vue';
|
2
|
-
import { Interceptor } from '../utils';
|
2
|
+
import { type Numeric, type Interceptor } from '../utils';
|
3
3
|
declare const tabbarProps: {
|
4
4
|
route: BooleanConstructor;
|
5
5
|
fixed: {
|
@@ -27,7 +27,7 @@ declare const tabbarProps: {
|
|
27
27
|
export declare type TabbarProps = ExtractPropTypes<typeof tabbarProps>;
|
28
28
|
export declare type TabbarProvide = {
|
29
29
|
props: TabbarProps;
|
30
|
-
setActive: (active:
|
30
|
+
setActive: (active: Numeric, afterChange: () => void) => void;
|
31
31
|
};
|
32
32
|
export declare const TABBAR_KEY: InjectionKey<TabbarProvide>;
|
33
33
|
declare const _default: import("vue").DefineComponent<{
|
package/es/tabs/Tabs.d.ts
CHANGED
package/es/tabs/Tabs.js
CHANGED
package/es/tabs/types.d.ts
CHANGED
@@ -1,8 +1,9 @@
|
|
1
1
|
import type { ComponentPublicInstance, ComputedRef } from 'vue';
|
2
|
+
import type { Numeric } from '../utils';
|
2
3
|
import type { TabsProps } from './Tabs';
|
3
4
|
export declare type TabsType = 'line' | 'card';
|
4
5
|
export declare type TabsClickTabEventParams = {
|
5
|
-
name:
|
6
|
+
name: Numeric;
|
6
7
|
title: string;
|
7
8
|
event: MouseEvent;
|
8
9
|
disabled: boolean;
|
@@ -11,12 +12,12 @@ export declare type TabsProvide = {
|
|
11
12
|
id: string;
|
12
13
|
props: TabsProps;
|
13
14
|
setLine: () => void;
|
14
|
-
onRendered: (name:
|
15
|
+
onRendered: (name: Numeric, title?: string) => void;
|
15
16
|
scrollIntoView: (immediate?: boolean) => void;
|
16
|
-
currentName: ComputedRef<
|
17
|
+
currentName: ComputedRef<Numeric | undefined>;
|
17
18
|
};
|
18
19
|
export declare type TabsExpose = {
|
19
20
|
resize: () => void;
|
20
|
-
scrollTo: (name:
|
21
|
+
scrollTo: (name: Numeric) => void;
|
21
22
|
};
|
22
23
|
export declare type TabsInstance = ComponentPublicInstance<TabsProps, TabsExpose>;
|
package/es/toast/Toast.d.ts
CHANGED
@@ -19,6 +19,7 @@ declare const toastProps: {
|
|
19
19
|
type: PropType<ToastPosition>;
|
20
20
|
default: ToastPosition;
|
21
21
|
};
|
22
|
+
teleport: PropType<string | import("vue").RendererElement | null | undefined>;
|
22
23
|
className: PropType<unknown>;
|
23
24
|
iconPrefix: StringConstructor;
|
24
25
|
transition: {
|
@@ -51,6 +52,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
51
52
|
type: PropType<ToastPosition>;
|
52
53
|
default: ToastPosition;
|
53
54
|
};
|
55
|
+
teleport: PropType<string | import("vue").RendererElement | null | undefined>;
|
54
56
|
className: PropType<unknown>;
|
55
57
|
iconPrefix: StringConstructor;
|
56
58
|
transition: {
|
@@ -81,6 +83,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
81
83
|
type: PropType<ToastPosition>;
|
82
84
|
default: ToastPosition;
|
83
85
|
};
|
86
|
+
teleport: PropType<string | import("vue").RendererElement | null | undefined>;
|
84
87
|
className: PropType<unknown>;
|
85
88
|
iconPrefix: StringConstructor;
|
86
89
|
transition: {
|
package/es/toast/Toast.js
CHANGED
@@ -6,7 +6,7 @@ import { Icon } from "../icon";
|
|
6
6
|
import { Popup } from "../popup";
|
7
7
|
import { Loading } from "../loading";
|
8
8
|
const [name, bem] = createNamespace("toast");
|
9
|
-
const popupInheritProps = ["show", "overlay", "transition", "overlayClass", "overlayStyle", "closeOnClickOverlay"];
|
9
|
+
const popupInheritProps = ["show", "overlay", "teleport", "transition", "overlayClass", "overlayStyle", "closeOnClickOverlay"];
|
10
10
|
const toastProps = {
|
11
11
|
icon: String,
|
12
12
|
show: Boolean,
|
@@ -16,6 +16,7 @@ const toastProps = {
|
|
16
16
|
iconSize: numericProp,
|
17
17
|
duration: makeNumberProp(2e3),
|
18
18
|
position: makeStringProp("middle"),
|
19
|
+
teleport: [String, Object],
|
19
20
|
className: unknownProp,
|
20
21
|
iconPrefix: String,
|
21
22
|
transition: makeStringProp("van-fade"),
|
@@ -81,6 +82,7 @@ var stdin_default = defineComponent({
|
|
81
82
|
} = props;
|
82
83
|
if (isDef(message) && message !== "") {
|
83
84
|
return type === "html" ? _createVNode("div", {
|
85
|
+
"key": 0,
|
84
86
|
"class": bem("text"),
|
85
87
|
"innerHTML": String(message)
|
86
88
|
}, null) : _createVNode("div", {
|
package/es/toast/types.d.ts
CHANGED
@@ -1,19 +1,20 @@
|
|
1
1
|
import { Toast } from './function-call';
|
2
2
|
import type { TeleportProps } from 'vue';
|
3
3
|
import type { LoadingType } from '../loading';
|
4
|
+
import type { Numeric } from '../utils';
|
4
5
|
export declare type ToastType = 'text' | 'loading' | 'success' | 'fail' | 'html';
|
5
6
|
export declare type ToastPosition = 'top' | 'middle' | 'bottom';
|
6
7
|
export declare type ToastOptions = {
|
7
8
|
icon?: string;
|
8
9
|
type?: ToastType;
|
9
10
|
mask?: boolean;
|
10
|
-
message?:
|
11
|
+
message?: Numeric;
|
11
12
|
onClose?: () => void;
|
12
13
|
onOpened?: () => void;
|
13
14
|
overlay?: boolean;
|
14
15
|
duration?: number;
|
15
16
|
teleport?: TeleportProps['to'];
|
16
|
-
iconSize?:
|
17
|
+
iconSize?: Numeric;
|
17
18
|
position?: ToastPosition;
|
18
19
|
className?: unknown;
|
19
20
|
transition?: string;
|
@@ -1,13 +1,14 @@
|
|
1
1
|
import { type PropType, type ExtractPropTypes } from 'vue';
|
2
|
+
import { type Numeric } from '../utils';
|
2
3
|
export declare type TreeSelectChild = {
|
3
|
-
id:
|
4
|
+
id: Numeric;
|
4
5
|
text: string;
|
5
6
|
disabled?: boolean;
|
6
7
|
};
|
7
8
|
export declare type TreeSelectItem = {
|
8
9
|
dot?: boolean;
|
9
10
|
text: string;
|
10
|
-
badge?:
|
11
|
+
badge?: Numeric;
|
11
12
|
children?: TreeSelectChild[];
|
12
13
|
disabled?: boolean;
|
13
14
|
className?: unknown;
|
@@ -34,7 +35,7 @@ declare const treeSelectProps: {
|
|
34
35
|
default: number;
|
35
36
|
};
|
36
37
|
activeId: {
|
37
|
-
type: PropType<
|
38
|
+
type: PropType<Numeric | Numeric[]>;
|
38
39
|
default: number;
|
39
40
|
};
|
40
41
|
};
|
@@ -61,7 +62,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
61
62
|
default: number;
|
62
63
|
};
|
63
64
|
activeId: {
|
64
|
-
type: PropType<
|
65
|
+
type: PropType<Numeric | Numeric[]>;
|
65
66
|
default: number;
|
66
67
|
};
|
67
68
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click-item" | "click-nav" | "update:activeId" | "update:mainActiveIndex")[], "click-item" | "click-nav" | "update:activeId" | "update:mainActiveIndex", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
@@ -86,7 +87,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
86
87
|
default: number;
|
87
88
|
};
|
88
89
|
activeId: {
|
89
|
-
type: PropType<
|
90
|
+
type: PropType<Numeric | Numeric[]>;
|
90
91
|
default: number;
|
91
92
|
};
|
92
93
|
}>> & {
|
@@ -100,6 +101,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
100
101
|
items: TreeSelectItem[];
|
101
102
|
selectedIcon: string;
|
102
103
|
mainActiveIndex: string | number;
|
103
|
-
activeId:
|
104
|
+
activeId: Numeric | Numeric[];
|
104
105
|
}>;
|
105
106
|
export default _default;
|
@@ -20,7 +20,7 @@ export declare const TreeSelect: import("../utils").WithInstall<import("vue").De
|
|
20
20
|
default: number;
|
21
21
|
};
|
22
22
|
activeId: {
|
23
|
-
type: import("vue").PropType<
|
23
|
+
type: import("vue").PropType<import("../utils").Numeric | import("../utils").Numeric[]>;
|
24
24
|
default: number;
|
25
25
|
};
|
26
26
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click-item" | "click-nav" | "update:activeId" | "update:mainActiveIndex")[], "click-item" | "click-nav" | "update:activeId" | "update:mainActiveIndex", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
@@ -45,7 +45,7 @@ export declare const TreeSelect: import("../utils").WithInstall<import("vue").De
|
|
45
45
|
default: number;
|
46
46
|
};
|
47
47
|
activeId: {
|
48
|
-
type: import("vue").PropType<
|
48
|
+
type: import("vue").PropType<import("../utils").Numeric | import("../utils").Numeric[]>;
|
49
49
|
default: number;
|
50
50
|
};
|
51
51
|
}>> & {
|
@@ -59,7 +59,7 @@ export declare const TreeSelect: import("../utils").WithInstall<import("vue").De
|
|
59
59
|
items: import("./TreeSelect").TreeSelectItem[];
|
60
60
|
selectedIcon: string;
|
61
61
|
mainActiveIndex: string | number;
|
62
|
-
activeId:
|
62
|
+
activeId: import("../utils").Numeric | import("../utils").Numeric[];
|
63
63
|
}>>;
|
64
64
|
export default TreeSelect;
|
65
65
|
export type { TreeSelectItem, TreeSelectChild, TreeSelectProps, } from './TreeSelect';
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { type PropType, type ExtractPropTypes } from 'vue';
|
2
|
-
import { Interceptor } from '../utils';
|
2
|
+
import { Interceptor, type Numeric } from '../utils';
|
3
3
|
import { type ImagePreviewOptions } from '../image-preview';
|
4
4
|
import type { ImageFit } from '../image';
|
5
5
|
import type { UploaderMaxSize, UploaderAfterRead, UploaderBeforeRead, UploaderResultType, UploaderFileListItem } from './types';
|
@@ -49,7 +49,7 @@ declare const uploaderProps: {
|
|
49
49
|
};
|
50
50
|
beforeRead: PropType<UploaderBeforeRead>;
|
51
51
|
beforeDelete: PropType<Interceptor>;
|
52
|
-
previewSize:
|
52
|
+
previewSize: PropType<Numeric | [Numeric, Numeric]>;
|
53
53
|
previewImage: {
|
54
54
|
type: BooleanConstructor;
|
55
55
|
default: true;
|
@@ -111,7 +111,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
111
111
|
};
|
112
112
|
beforeRead: PropType<UploaderBeforeRead>;
|
113
113
|
beforeDelete: PropType<Interceptor>;
|
114
|
-
previewSize:
|
114
|
+
previewSize: PropType<Numeric | [Numeric, Numeric]>;
|
115
115
|
previewImage: {
|
116
116
|
type: BooleanConstructor;
|
117
117
|
default: true;
|
@@ -171,7 +171,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
171
171
|
};
|
172
172
|
beforeRead: PropType<UploaderBeforeRead>;
|
173
173
|
beforeDelete: PropType<Interceptor>;
|
174
|
-
previewSize:
|
174
|
+
previewSize: PropType<Numeric | [Numeric, Numeric]>;
|
175
175
|
previewImage: {
|
176
176
|
type: BooleanConstructor;
|
177
177
|
default: true;
|
package/es/uploader/Uploader.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { createVNode as _createVNode, mergeProps as _mergeProps } from "vue";
|
2
2
|
import { ref, reactive, defineComponent, onBeforeUnmount } from "vue";
|
3
|
-
import { pick, extend, isPromise, truthProp,
|
3
|
+
import { pick, extend, isPromise, truthProp, getSizeStyle, makeArrayProp, makeStringProp, makeNumericProp } from "../utils";
|
4
4
|
import { bem, name, toArray, isOversize, filterFiles, isImageFile, readFileContent } from "./utils";
|
5
5
|
import { useCustomFieldValue } from "@vant/use";
|
6
6
|
import { useExpose } from "../composables/use-expose";
|
@@ -26,7 +26,7 @@ const uploaderProps = {
|
|
26
26
|
modelValue: makeArrayProp(),
|
27
27
|
beforeRead: Function,
|
28
28
|
beforeDelete: Function,
|
29
|
-
previewSize:
|
29
|
+
previewSize: [Number, String, Array],
|
30
30
|
previewImage: truthProp,
|
31
31
|
previewOptions: Object,
|
32
32
|
previewFullImage: truthProp,
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { type PropType } from 'vue';
|
2
|
-
import { Interceptor } from '../utils';
|
2
|
+
import { type Numeric, type Interceptor } from '../utils';
|
3
3
|
import { ImageFit } from '../image';
|
4
4
|
import type { UploaderFileListItem } from './types';
|
5
5
|
declare const _default: import("vue").DefineComponent<{
|
@@ -12,7 +12,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
12
12
|
imageFit: PropType<ImageFit>;
|
13
13
|
lazyLoad: BooleanConstructor;
|
14
14
|
deletable: BooleanConstructor;
|
15
|
-
previewSize:
|
15
|
+
previewSize: PropType<Numeric | [Numeric, Numeric]>;
|
16
16
|
beforeDelete: PropType<Interceptor>;
|
17
17
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("delete" | "preview")[], "delete" | "preview", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
18
18
|
name: (NumberConstructor | StringConstructor)[];
|
@@ -24,7 +24,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
24
24
|
imageFit: PropType<ImageFit>;
|
25
25
|
lazyLoad: BooleanConstructor;
|
26
26
|
deletable: BooleanConstructor;
|
27
|
-
previewSize:
|
27
|
+
previewSize: PropType<Numeric | [Numeric, Numeric]>;
|
28
28
|
beforeDelete: PropType<Interceptor>;
|
29
29
|
}>> & {
|
30
30
|
onDelete?: ((...args: any[]) => any) | undefined;
|
@@ -13,7 +13,7 @@ var stdin_default = defineComponent({
|
|
13
13
|
imageFit: String,
|
14
14
|
lazyLoad: Boolean,
|
15
15
|
deletable: Boolean,
|
16
|
-
previewSize:
|
16
|
+
previewSize: [Number, String, Array],
|
17
17
|
beforeDelete: Function
|
18
18
|
},
|
19
19
|
emits: ["delete", "preview"],
|
@@ -87,16 +87,19 @@ var stdin_default = defineComponent({
|
|
87
87
|
};
|
88
88
|
const renderPreview = () => {
|
89
89
|
const {
|
90
|
-
item
|
90
|
+
item,
|
91
|
+
lazyLoad,
|
92
|
+
imageFit,
|
93
|
+
previewSize
|
91
94
|
} = props;
|
92
95
|
if (isImageFile(item)) {
|
93
96
|
return _createVNode(Image, {
|
94
|
-
"fit":
|
97
|
+
"fit": imageFit,
|
95
98
|
"src": item.content || item.url,
|
96
99
|
"class": bem("preview-image"),
|
97
|
-
"width":
|
98
|
-
"height":
|
99
|
-
"lazyLoad":
|
100
|
+
"width": Array.isArray(previewSize) ? previewSize[0] : previewSize,
|
101
|
+
"height": Array.isArray(previewSize) ? previewSize[1] : previewSize,
|
102
|
+
"lazyLoad": lazyLoad,
|
100
103
|
"onClick": onPreview
|
101
104
|
}, {
|
102
105
|
default: renderCover
|
package/es/uploader/index.d.ts
CHANGED
@@ -45,7 +45,7 @@ export declare const Uploader: import("../utils").WithInstall<import("vue").Defi
|
|
45
45
|
};
|
46
46
|
beforeRead: import("vue").PropType<import("./types").UploaderBeforeRead>;
|
47
47
|
beforeDelete: import("vue").PropType<import("../utils").Interceptor>;
|
48
|
-
previewSize: (
|
48
|
+
previewSize: import("vue").PropType<import("../utils").Numeric | [import("../utils").Numeric, import("../utils").Numeric]>;
|
49
49
|
previewImage: {
|
50
50
|
type: BooleanConstructor;
|
51
51
|
default: true;
|
@@ -105,7 +105,7 @@ export declare const Uploader: import("../utils").WithInstall<import("vue").Defi
|
|
105
105
|
};
|
106
106
|
beforeRead: import("vue").PropType<import("./types").UploaderBeforeRead>;
|
107
107
|
beforeDelete: import("vue").PropType<import("../utils").Interceptor>;
|
108
|
-
previewSize: (
|
108
|
+
previewSize: import("vue").PropType<import("../utils").Numeric | [import("../utils").Numeric, import("../utils").Numeric]>;
|
109
109
|
previewImage: {
|
110
110
|
type: BooleanConstructor;
|
111
111
|
default: true;
|
package/es/uploader/types.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import type { ComponentPublicInstance } from 'vue';
|
2
2
|
import type { ImageFit } from '../image';
|
3
|
-
import type { Interceptor } from '../utils';
|
3
|
+
import type { Numeric, Interceptor } from '../utils';
|
4
4
|
import type { UploaderProps } from './Uploader';
|
5
5
|
export declare type UploaderResultType = 'dataUrl' | 'text' | 'file';
|
6
6
|
export declare type UploaderFileListItem = {
|
@@ -12,17 +12,16 @@ export declare type UploaderFileListItem = {
|
|
12
12
|
message?: string;
|
13
13
|
imageFit?: ImageFit;
|
14
14
|
deletable?: boolean;
|
15
|
-
previewSize?:
|
15
|
+
previewSize?: Numeric;
|
16
16
|
beforeDelete?: Interceptor;
|
17
17
|
};
|
18
|
-
export declare type UploaderMaxSize =
|
19
|
-
declare type PromiseOrNot<T> = T | Promise<T>;
|
18
|
+
export declare type UploaderMaxSize = Numeric | ((file: File) => boolean);
|
20
19
|
export declare type UploaderBeforeRead = (file: File | File[], detail: {
|
21
|
-
name:
|
20
|
+
name: Numeric;
|
22
21
|
index: number;
|
23
|
-
}) =>
|
22
|
+
}) => boolean | undefined | Promise<File | File[] | undefined>;
|
24
23
|
export declare type UploaderAfterRead = (items: UploaderFileListItem | UploaderFileListItem[], detail: {
|
25
|
-
name:
|
24
|
+
name: Numeric;
|
26
25
|
index: number;
|
27
26
|
}) => void;
|
28
27
|
export declare type UploaderExpose = {
|
@@ -30,4 +29,3 @@ export declare type UploaderExpose = {
|
|
30
29
|
closeImagePreview: () => void;
|
31
30
|
};
|
32
31
|
export declare type UploaderInstance = ComponentPublicInstance<UploaderProps, UploaderExpose>;
|
33
|
-
export {};
|
package/es/utils/basic.d.ts
CHANGED
@@ -7,6 +7,7 @@ export declare const extend: {
|
|
7
7
|
(target: object, ...sources: any[]): any;
|
8
8
|
};
|
9
9
|
export declare const inBrowser: boolean;
|
10
|
+
export declare type Numeric = number | string;
|
10
11
|
export declare type ComponentInstance = ComponentPublicInstance<{}, any>;
|
11
12
|
export declare function get(object: any, path: string): any;
|
12
13
|
export declare type Writeable<T> = {
|
package/es/utils/format.d.ts
CHANGED
@@ -1,11 +1,12 @@
|
|
1
|
-
import { CSSProperties } from 'vue';
|
2
|
-
|
3
|
-
export declare function
|
4
|
-
export declare function
|
5
|
-
export declare function
|
1
|
+
import type { CSSProperties } from 'vue';
|
2
|
+
import { type Numeric } from './basic';
|
3
|
+
export declare function addUnit(value?: Numeric): string | undefined;
|
4
|
+
export declare function getSizeStyle(originSize?: Numeric | Numeric[]): CSSProperties | undefined;
|
5
|
+
export declare function getZIndexStyle(zIndex?: Numeric): CSSProperties;
|
6
|
+
export declare function unitToPx(value: Numeric): number;
|
6
7
|
export declare const camelize: (str: string) => string;
|
7
8
|
export declare const kebabCase: (str: string) => string;
|
8
|
-
export declare function padZero(num:
|
9
|
+
export declare function padZero(num: Numeric, targetLength?: number): string;
|
9
10
|
/** clamps number within the inclusive lower and upper bounds */
|
10
11
|
export declare const clamp: (num: number, min: number, max: number) => number;
|
11
12
|
export declare function formatNumber(value: string, allowDot?: boolean, allowMinus?: boolean): string;
|
package/es/utils/format.js
CHANGED
@@ -9,6 +9,12 @@ function addUnit(value) {
|
|
9
9
|
}
|
10
10
|
function getSizeStyle(originSize) {
|
11
11
|
if (isDef(originSize)) {
|
12
|
+
if (Array.isArray(originSize)) {
|
13
|
+
return {
|
14
|
+
width: addUnit(originSize[0]),
|
15
|
+
height: addUnit(originSize[1])
|
16
|
+
};
|
17
|
+
}
|
12
18
|
const size = addUnit(originSize);
|
13
19
|
return {
|
14
20
|
width: size,
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export declare type Interceptor = (...args: any[]) => Promise<boolean> | boolean | undefined;
|
1
|
+
export declare type Interceptor = (...args: any[]) => Promise<boolean> | boolean | undefined | void;
|
2
2
|
export declare function callInterceptor(interceptor: Interceptor | undefined, { args, done, canceled, }: {
|
3
3
|
args?: unknown[];
|
4
4
|
done: () => void;
|
package/es/utils/validate.d.ts
CHANGED
@@ -1,8 +1,9 @@
|
|
1
|
+
import { type Numeric } from './basic';
|
1
2
|
export declare const isDef: <T>(val: T) => val is NonNullable<T>;
|
2
3
|
export declare const isFunction: (val: unknown) => val is Function;
|
3
4
|
export declare const isObject: (val: unknown) => val is Record<any, any>;
|
4
5
|
export declare const isPromise: <T = any>(val: unknown) => val is Promise<T>;
|
5
6
|
export declare const isDate: (val: unknown) => val is Date;
|
6
7
|
export declare function isMobile(value: string): boolean;
|
7
|
-
export declare const isNumeric: (val:
|
8
|
+
export declare const isNumeric: (val: Numeric) => val is string;
|
8
9
|
export declare const isIOS: () => boolean;
|
@@ -1,34 +1,34 @@
|
|
1
|
-
var __create = Object.create;
|
2
1
|
var __defProp = Object.defineProperty;
|
3
2
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
4
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
6
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
7
5
|
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
8
6
|
var __export = (target, all) => {
|
9
|
-
__markAsModule(target);
|
10
7
|
for (var name2 in all)
|
11
8
|
__defProp(target, name2, { get: all[name2], enumerable: true });
|
12
9
|
};
|
13
|
-
var __reExport = (target, module2, desc) => {
|
10
|
+
var __reExport = (target, module2, copyDefault, desc) => {
|
14
11
|
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
15
12
|
for (let key of __getOwnPropNames(module2))
|
16
|
-
if (!__hasOwnProp.call(target, key) && key !== "default")
|
13
|
+
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
17
14
|
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
18
15
|
}
|
19
16
|
return target;
|
20
17
|
};
|
21
|
-
var
|
22
|
-
return
|
23
|
-
};
|
24
|
-
|
18
|
+
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
19
|
+
return (module2, temp) => {
|
20
|
+
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
21
|
+
};
|
22
|
+
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
23
|
+
var stdin_exports = {};
|
24
|
+
__export(stdin_exports, {
|
25
25
|
ACTION_BAR_KEY: () => ACTION_BAR_KEY,
|
26
26
|
default: () => stdin_default
|
27
27
|
});
|
28
|
-
var import_vue =
|
29
|
-
var import_vue2 =
|
30
|
-
var import_utils =
|
31
|
-
var import_use =
|
28
|
+
var import_vue = require("vue");
|
29
|
+
var import_vue2 = require("vue");
|
30
|
+
var import_utils = require("../utils");
|
31
|
+
var import_use = require("@vant/use");
|
32
32
|
const [name, bem] = (0, import_utils.createNamespace)("action-bar");
|
33
33
|
const ACTION_BAR_KEY = Symbol(name);
|
34
34
|
const actionBarProps = {
|
@@ -54,3 +54,4 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
54
54
|
};
|
55
55
|
}
|
56
56
|
});
|
57
|
+
module.exports = __toCommonJS(stdin_exports);
|