vant 4.0.0-beta.0 → 4.0.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -9
- package/changelog.generated.md +207 -163
- package/es/action-bar/ActionBar.d.ts +2 -2
- package/es/action-bar/ActionBar.mjs +1 -0
- package/es/action-bar/index.d.ts +2 -1
- package/es/action-bar/index.mjs +2 -0
- package/es/action-bar-button/ActionBarButton.d.ts +2 -2
- package/es/action-bar-button/ActionBarButton.mjs +1 -0
- package/es/action-bar-button/index.d.ts +2 -1
- package/es/action-bar-button/index.mjs +2 -0
- package/es/action-bar-icon/ActionBarIcon.d.ts +2 -2
- package/es/action-bar-icon/ActionBarIcon.mjs +1 -0
- package/es/action-bar-icon/index.d.ts +2 -1
- package/es/action-bar-icon/index.mjs +2 -0
- package/es/action-sheet/ActionSheet.d.ts +1 -1
- package/es/action-sheet/ActionSheet.mjs +1 -0
- package/es/action-sheet/index.d.ts +1 -0
- package/es/action-sheet/index.mjs +2 -0
- package/es/address-edit/AddressEdit.d.ts +1 -1
- package/es/address-edit/AddressEdit.mjs +1 -0
- package/es/address-edit/index.d.ts +1 -0
- package/es/address-edit/index.mjs +2 -0
- package/es/address-edit/style/index.mjs +7 -1
- package/es/address-list/AddressList.d.ts +1 -1
- package/es/address-list/AddressList.mjs +1 -0
- package/es/address-list/index.d.ts +1 -0
- package/es/address-list/index.mjs +2 -0
- package/es/area/Area.d.ts +7 -4
- package/es/area/Area.mjs +1 -0
- package/es/area/index.d.ts +5 -2
- package/es/area/index.mjs +2 -0
- package/es/area/style/index.mjs +7 -0
- package/es/area/utils.mjs +9 -2
- package/es/badge/Badge.d.ts +2 -2
- package/es/badge/Badge.mjs +2 -1
- package/es/badge/index.d.ts +2 -1
- package/es/badge/index.mjs +2 -0
- package/es/button/Button.d.ts +1 -1
- package/es/button/Button.mjs +1 -0
- package/es/button/index.d.ts +1 -0
- package/es/button/index.mjs +2 -0
- package/es/calendar/Calendar.d.ts +1 -1
- package/es/calendar/Calendar.mjs +8 -7
- package/es/calendar/index.d.ts +1 -0
- package/es/calendar/index.mjs +2 -0
- package/es/calendar/style/index.mjs +7 -1
- package/es/card/Card.d.ts +1 -1
- package/es/card/Card.mjs +1 -0
- package/es/card/index.d.ts +1 -0
- package/es/card/index.mjs +2 -0
- package/es/cascader/Cascader.d.ts +1 -1
- package/es/cascader/Cascader.mjs +1 -0
- package/es/cascader/index.d.ts +1 -0
- package/es/cascader/index.mjs +2 -0
- package/es/cell/Cell.d.ts +2 -2
- package/es/cell/Cell.mjs +1 -0
- package/es/cell/index.d.ts +2 -1
- package/es/cell/index.mjs +2 -0
- package/es/cell-group/CellGroup.d.ts +2 -2
- package/es/cell-group/CellGroup.mjs +1 -0
- package/es/cell-group/index.d.ts +2 -1
- package/es/cell-group/index.mjs +2 -0
- package/es/checkbox/Checkbox.d.ts +1 -1
- package/es/checkbox/Checkbox.mjs +1 -0
- package/es/checkbox/index.d.ts +1 -0
- package/es/checkbox/index.mjs +2 -0
- package/es/checkbox-group/CheckboxGroup.d.ts +1 -1
- package/es/checkbox-group/CheckboxGroup.mjs +1 -0
- package/es/checkbox-group/index.d.ts +1 -0
- package/es/checkbox-group/index.mjs +2 -0
- package/es/circle/Circle.d.ts +1 -1
- package/es/circle/Circle.mjs +1 -0
- package/es/circle/index.d.ts +1 -0
- package/es/circle/index.mjs +2 -0
- package/es/col/Col.d.ts +2 -2
- package/es/col/Col.mjs +1 -0
- package/es/col/index.d.ts +2 -1
- package/es/col/index.mjs +2 -0
- package/es/collapse/Collapse.d.ts +9 -2
- package/es/collapse/Collapse.mjs +29 -1
- package/es/collapse/index.d.ts +2 -1
- package/es/collapse/index.mjs +2 -0
- package/es/collapse-item/CollapseItem.d.ts +2 -2
- package/es/collapse-item/CollapseItem.mjs +4 -1
- package/es/collapse-item/index.d.ts +2 -1
- package/es/collapse-item/index.mjs +2 -0
- package/es/composables/use-global-z-index.d.ts +4 -0
- package/es/composables/use-global-z-index.mjs +9 -0
- package/es/composables/use-height.d.ts +1 -1
- package/es/composables/use-height.mjs +8 -2
- package/es/composables/use-lazy-render.mjs +9 -5
- package/es/composables/use-lock-scroll.mjs +7 -2
- package/es/composables/use-placeholder.mjs +1 -1
- package/es/composables/use-visibility-change.mjs +6 -3
- package/es/config-provider/ConfigProvider.d.ts +15 -5
- package/es/config-provider/ConfigProvider.mjs +26 -9
- package/es/config-provider/index.d.ts +10 -3
- package/es/config-provider/index.mjs +2 -0
- package/es/contact-card/ContactCard.d.ts +1 -1
- package/es/contact-card/ContactCard.mjs +1 -0
- package/es/contact-card/index.d.ts +1 -0
- package/es/contact-card/index.mjs +2 -0
- package/es/contact-edit/ContactEdit.d.ts +1 -1
- package/es/contact-edit/ContactEdit.mjs +1 -0
- package/es/contact-edit/index.d.ts +1 -0
- package/es/contact-edit/index.mjs +2 -0
- package/es/contact-list/ContactList.d.ts +1 -1
- package/es/contact-list/ContactList.mjs +1 -0
- package/es/contact-list/index.d.ts +1 -0
- package/es/contact-list/index.mjs +2 -0
- package/es/count-down/CountDown.d.ts +1 -1
- package/es/count-down/CountDown.mjs +1 -0
- package/es/count-down/index.d.ts +1 -0
- package/es/count-down/index.mjs +2 -0
- package/es/coupon/Coupon.d.ts +1 -1
- package/es/coupon/index.d.ts +1 -1
- package/es/coupon/utils.mjs +3 -1
- package/es/coupon-cell/CouponCell.d.ts +2 -2
- package/es/coupon-cell/CouponCell.mjs +1 -0
- package/es/coupon-cell/index.d.ts +2 -1
- package/es/coupon-cell/index.mjs +2 -0
- package/es/coupon-list/CouponList.d.ts +1 -1
- package/es/coupon-list/CouponList.mjs +1 -0
- package/es/coupon-list/index.d.ts +1 -0
- package/es/coupon-list/index.mjs +2 -0
- package/es/coupon-list/style/index.mjs +3 -3
- package/es/date-picker/DatePicker.d.ts +7 -4
- package/es/date-picker/DatePicker.mjs +11 -10
- package/es/date-picker/index.d.ts +5 -2
- package/es/date-picker/index.mjs +2 -0
- package/es/date-picker/style/index.mjs +7 -0
- package/es/date-picker/utils.d.ts +2 -1
- package/es/dialog/Dialog.d.ts +1 -1
- package/es/dialog/Dialog.mjs +2 -1
- package/es/dialog/index.css +1 -1
- package/es/dialog/index.d.ts +1 -0
- package/es/dialog/index.mjs +2 -0
- package/es/dialog/types.d.ts +1 -1
- package/es/divider/Divider.d.ts +2 -2
- package/es/divider/Divider.mjs +2 -1
- package/es/divider/index.d.ts +2 -1
- package/es/divider/index.mjs +3 -1
- package/es/dropdown-item/DropdownItem.d.ts +3 -3
- package/es/dropdown-item/DropdownItem.mjs +2 -1
- package/es/dropdown-item/index.d.ts +3 -2
- package/es/dropdown-item/index.mjs +3 -1
- package/es/dropdown-menu/DropdownMenu.d.ts +2 -2
- package/es/dropdown-menu/DropdownMenu.mjs +4 -2
- package/es/dropdown-menu/index.d.ts +2 -1
- package/es/dropdown-menu/index.mjs +3 -1
- package/es/empty/Empty.d.ts +3 -3
- package/es/empty/Empty.mjs +283 -17
- package/es/empty/index.d.ts +2 -1
- package/es/empty/index.mjs +3 -1
- package/es/field/Field.d.ts +1 -1
- package/es/field/Field.mjs +15 -4
- package/es/field/index.d.ts +1 -0
- package/es/field/index.mjs +3 -1
- package/es/field/types.d.ts +1 -0
- package/es/field/utils.d.ts +1 -0
- package/es/field/utils.mjs +8 -2
- package/es/form/Form.d.ts +1 -1
- package/es/form/Form.mjs +2 -1
- package/es/form/index.d.ts +1 -0
- package/es/form/index.mjs +3 -1
- package/es/grid/Grid.d.ts +2 -2
- package/es/grid/Grid.mjs +2 -1
- package/es/grid/index.d.ts +2 -1
- package/es/grid/index.mjs +3 -1
- package/es/grid-item/GridItem.d.ts +2 -2
- package/es/grid-item/GridItem.mjs +2 -1
- package/es/grid-item/index.d.ts +2 -1
- package/es/grid-item/index.mjs +3 -1
- package/es/icon/Icon.d.ts +2 -2
- package/es/icon/Icon.mjs +2 -1
- package/es/icon/index.d.ts +2 -1
- package/es/icon/index.mjs +3 -1
- package/es/image/Image.d.ts +5 -1
- package/es/image/Image.mjs +5 -2
- package/es/image/index.css +1 -1
- package/es/image/index.d.ts +4 -0
- package/es/image/index.mjs +3 -1
- package/es/image-preview/ImagePreview.d.ts +1 -1
- package/es/image-preview/ImagePreview.mjs +2 -1
- package/es/image-preview/ImagePreviewItem.mjs +11 -3
- package/es/image-preview/index.css +1 -1
- package/es/image-preview/index.d.ts +1 -0
- package/es/image-preview/index.mjs +2 -0
- package/es/index-anchor/IndexAnchor.d.ts +2 -2
- package/es/index-anchor/IndexAnchor.mjs +2 -1
- package/es/index-anchor/index.d.ts +2 -1
- package/es/index-anchor/index.mjs +3 -1
- package/es/index-bar/IndexBar.d.ts +1 -1
- package/es/index-bar/IndexBar.mjs +11 -5
- package/es/index-bar/index.d.ts +1 -0
- package/es/index-bar/index.mjs +3 -1
- package/es/index.d.ts +3 -1
- package/es/index.mjs +7 -1
- package/es/lazyload/vue-lazyload/lazy-component.mjs +4 -1
- package/es/lazyload/vue-lazyload/lazy-container.mjs +11 -7
- package/es/lazyload/vue-lazyload/lazy-image.mjs +24 -14
- package/es/lazyload/vue-lazyload/lazy.mjs +11 -3
- package/es/lazyload/vue-lazyload/listener.mjs +45 -33
- package/es/lazyload/vue-lazyload/util.mjs +4 -1
- package/es/list/List.d.ts +1 -1
- package/es/list/List.mjs +4 -2
- package/es/list/index.d.ts +1 -0
- package/es/list/index.mjs +3 -1
- package/es/loading/Loading.d.ts +2 -2
- package/es/loading/Loading.mjs +2 -1
- package/es/loading/index.d.ts +2 -1
- package/es/loading/index.mjs +3 -1
- package/es/nav-bar/NavBar.d.ts +1 -1
- package/es/nav-bar/NavBar.mjs +2 -1
- package/es/nav-bar/index.d.ts +1 -0
- package/es/nav-bar/index.mjs +3 -1
- package/es/notice-bar/NoticeBar.d.ts +1 -1
- package/es/notice-bar/NoticeBar.mjs +2 -1
- package/es/notice-bar/index.d.ts +1 -0
- package/es/notice-bar/index.mjs +3 -1
- package/es/notify/Notify.d.ts +1 -1
- package/es/notify/Notify.mjs +2 -1
- package/es/notify/index.d.ts +1 -0
- package/es/notify/index.mjs +2 -0
- package/es/number-keyboard/NumberKeyboard.d.ts +2 -2
- package/es/number-keyboard/NumberKeyboard.mjs +3 -3
- package/es/number-keyboard/NumberKeyboardKey.mjs +2 -2
- package/es/number-keyboard/index.d.ts +2 -1
- package/es/number-keyboard/index.mjs +3 -1
- package/es/overlay/Overlay.d.ts +2 -2
- package/es/overlay/Overlay.mjs +15 -7
- package/es/overlay/index.d.ts +2 -1
- package/es/overlay/index.mjs +3 -1
- package/es/pagination/Pagination.d.ts +1 -1
- package/es/pagination/Pagination.mjs +2 -1
- package/es/pagination/index.d.ts +1 -0
- package/es/pagination/index.mjs +3 -1
- package/es/password-input/PasswordInput.d.ts +1 -1
- package/es/password-input/PasswordInput.mjs +3 -2
- package/es/password-input/index.d.ts +1 -0
- package/es/password-input/index.mjs +3 -1
- package/es/picker/Picker.d.ts +11 -6
- package/es/picker/Picker.mjs +51 -65
- package/es/picker/PickerColumn.d.ts +2 -1
- package/es/picker/PickerColumn.mjs +11 -6
- package/es/picker/PickerToolbar.d.ts +21 -0
- package/es/picker/PickerToolbar.mjs +59 -0
- package/es/picker/index.d.ts +7 -3
- package/es/picker/index.mjs +3 -1
- package/es/picker/style/index.mjs +7 -0
- package/es/picker/utils.d.ts +2 -0
- package/es/picker/utils.mjs +14 -7
- package/es/picker-group/PickerGroup.d.ts +39 -0
- package/es/picker-group/PickerGroup.mjs +57 -0
- package/es/picker-group/index.css +1 -0
- package/es/picker-group/index.d.ts +33 -0
- package/es/picker-group/index.mjs +10 -0
- package/es/picker-group/style/index.d.ts +1 -0
- package/es/picker-group/style/index.mjs +9 -0
- package/es/popover/Popover.d.ts +1 -1
- package/es/popover/Popover.mjs +30 -28
- package/es/popover/index.d.ts +1 -0
- package/es/popover/index.mjs +3 -1
- package/es/popup/Popup.d.ts +3 -3
- package/es/popup/Popup.mjs +8 -6
- package/es/popup/index.css +1 -1
- package/es/popup/index.d.ts +3 -2
- package/es/popup/index.mjs +3 -1
- package/es/popup/shared.mjs +3 -1
- package/es/progress/Progress.d.ts +2 -2
- package/es/progress/Progress.mjs +2 -1
- package/es/progress/index.d.ts +2 -1
- package/es/progress/index.mjs +3 -1
- package/es/pull-refresh/PullRefresh.d.ts +1 -1
- package/es/pull-refresh/PullRefresh.mjs +9 -4
- package/es/pull-refresh/index.d.ts +1 -0
- package/es/pull-refresh/index.mjs +3 -1
- package/es/radio/Radio.d.ts +15 -2
- package/es/radio/Radio.mjs +3 -1
- package/es/radio/index.d.ts +1 -0
- package/es/radio/index.mjs +3 -1
- package/es/radio-group/RadioGroup.d.ts +1 -1
- package/es/radio-group/RadioGroup.mjs +2 -1
- package/es/radio-group/index.d.ts +1 -0
- package/es/radio-group/index.mjs +3 -1
- package/es/rate/Rate.d.ts +1 -1
- package/es/rate/Rate.mjs +7 -4
- package/es/rate/index.d.ts +1 -0
- package/es/rate/index.mjs +3 -1
- package/es/row/Row.d.ts +2 -2
- package/es/row/Row.mjs +2 -1
- package/es/row/index.d.ts +2 -1
- package/es/row/index.mjs +3 -1
- package/es/search/Search.d.ts +1 -1
- package/es/search/Search.mjs +2 -1
- package/es/search/index.css +1 -1
- package/es/search/index.d.ts +1 -0
- package/es/search/index.mjs +3 -1
- package/es/share-sheet/ShareSheet.d.ts +1 -1
- package/es/share-sheet/ShareSheet.mjs +2 -1
- package/es/share-sheet/index.d.ts +1 -0
- package/es/share-sheet/index.mjs +3 -1
- package/es/sidebar/Sidebar.d.ts +1 -1
- package/es/sidebar/Sidebar.mjs +2 -1
- package/es/sidebar/index.d.ts +1 -0
- package/es/sidebar/index.mjs +3 -1
- package/es/sidebar-item/SidebarItem.d.ts +1 -1
- package/es/sidebar-item/SidebarItem.mjs +2 -1
- package/es/sidebar-item/index.d.ts +1 -0
- package/es/sidebar-item/index.mjs +3 -1
- package/es/skeleton/Skeleton.d.ts +2 -2
- package/es/skeleton/Skeleton.mjs +2 -1
- package/es/skeleton/index.d.ts +2 -1
- package/es/skeleton/index.mjs +3 -1
- package/es/slider/Slider.d.ts +1 -1
- package/es/slider/Slider.mjs +9 -4
- package/es/slider/index.d.ts +1 -0
- package/es/slider/index.mjs +3 -1
- package/es/space/Space.d.ts +48 -0
- package/es/space/Space.mjs +88 -0
- package/es/space/index.css +1 -0
- package/es/space/index.d.ts +38 -0
- package/es/space/index.mjs +10 -0
- package/es/space/style/index.d.ts +1 -0
- package/es/space/style/index.mjs +2 -0
- package/es/step/Step.d.ts +1 -1
- package/es/step/index.d.ts +1 -1
- package/es/stepper/Stepper.d.ts +1 -1
- package/es/stepper/Stepper.mjs +3 -2
- package/es/stepper/index.d.ts +1 -0
- package/es/stepper/index.mjs +3 -1
- package/es/steps/Steps.d.ts +1 -1
- package/es/steps/Steps.mjs +2 -1
- package/es/steps/index.d.ts +1 -0
- package/es/steps/index.mjs +3 -1
- package/es/sticky/Sticky.d.ts +1 -1
- package/es/sticky/Sticky.mjs +4 -2
- package/es/sticky/index.d.ts +1 -0
- package/es/sticky/index.mjs +3 -1
- package/es/submit-bar/SubmitBar.d.ts +1 -1
- package/es/submit-bar/SubmitBar.mjs +2 -1
- package/es/submit-bar/index.d.ts +1 -0
- package/es/submit-bar/index.mjs +3 -1
- package/es/swipe/Swipe.d.ts +1 -1
- package/es/swipe/Swipe.mjs +16 -8
- package/es/swipe/index.d.ts +1 -0
- package/es/swipe/index.mjs +3 -1
- package/es/swipe-cell/SwipeCell.d.ts +3 -3
- package/es/swipe-cell/SwipeCell.mjs +7 -4
- package/es/swipe-cell/index.d.ts +3 -2
- package/es/swipe-cell/index.mjs +3 -1
- package/es/swipe-item/SwipeItem.d.ts +1 -1
- package/es/swipe-item/index.d.ts +1 -1
- package/es/switch/Switch.d.ts +1 -1
- package/es/switch/Switch.mjs +2 -1
- package/es/switch/index.d.ts +1 -0
- package/es/switch/index.mjs +3 -1
- package/es/tab/Tab.d.ts +2 -2
- package/es/tab/Tab.mjs +2 -1
- package/es/tab/index.d.ts +2 -1
- package/es/tab/index.mjs +3 -1
- package/es/tabbar/Tabbar.d.ts +1 -1
- package/es/tabbar/Tabbar.mjs +2 -1
- package/es/tabbar/index.d.ts +1 -0
- package/es/tabbar/index.mjs +3 -1
- package/es/tabbar-item/TabbarItem.d.ts +1 -1
- package/es/tabbar-item/TabbarItem.mjs +2 -1
- package/es/tabbar-item/index.d.ts +1 -0
- package/es/tabbar-item/index.mjs +3 -1
- package/es/tabs/Tabs.d.ts +1 -1
- package/es/tabs/Tabs.mjs +14 -3
- package/es/tabs/TabsContent.mjs +4 -0
- package/es/tabs/TabsTitle.d.ts +1 -1
- package/es/tabs/index.d.ts +1 -0
- package/es/tabs/index.mjs +3 -1
- package/es/tag/Tag.d.ts +1 -1
- package/es/tag/Tag.mjs +2 -1
- package/es/tag/index.d.ts +1 -0
- package/es/tag/index.mjs +3 -1
- package/es/time-picker/TimePicker.d.ts +7 -4
- package/es/time-picker/TimePicker.mjs +2 -1
- package/es/time-picker/index.d.ts +5 -2
- package/es/time-picker/index.mjs +3 -1
- package/es/time-picker/style/index.mjs +7 -0
- package/es/toast/Toast.d.ts +1 -1
- package/es/toast/Toast.mjs +9 -2
- package/es/toast/index.d.ts +1 -0
- package/es/toast/index.mjs +3 -1
- package/es/tree-select/TreeSelect.d.ts +1 -1
- package/es/tree-select/TreeSelect.mjs +2 -1
- package/es/tree-select/index.d.ts +1 -0
- package/es/tree-select/index.mjs +3 -1
- package/es/uploader/Uploader.d.ts +1 -1
- package/es/uploader/Uploader.mjs +2 -1
- package/es/uploader/index.d.ts +1 -0
- package/es/uploader/index.mjs +3 -1
- package/es/utils/basic.mjs +2 -1
- package/es/utils/create.mjs +8 -2
- package/es/utils/with-install.d.ts +2 -2
- package/es/utils/with-install.mjs +4 -2
- package/es/vue-tsx-shim.d.ts +7 -0
- package/lib/action-bar/ActionBar.d.ts +2 -2
- package/lib/action-bar/ActionBar.js +1 -0
- package/lib/action-bar/index.d.ts +2 -1
- package/lib/action-bar/index.js +6 -1
- package/lib/action-bar-button/ActionBarButton.d.ts +2 -2
- package/lib/action-bar-button/ActionBarButton.js +1 -0
- package/lib/action-bar-button/index.d.ts +2 -1
- package/lib/action-bar-button/index.js +6 -1
- package/lib/action-bar-icon/ActionBarIcon.d.ts +2 -2
- package/lib/action-bar-icon/ActionBarIcon.js +1 -0
- package/lib/action-bar-icon/index.d.ts +2 -1
- package/lib/action-bar-icon/index.js +6 -1
- package/lib/action-sheet/ActionSheet.d.ts +1 -1
- package/lib/action-sheet/ActionSheet.js +1 -0
- package/lib/action-sheet/index.d.ts +1 -0
- package/lib/action-sheet/index.js +6 -1
- package/lib/address-edit/AddressEdit.d.ts +1 -1
- package/lib/address-edit/AddressEdit.js +5 -1
- package/lib/address-edit/index.d.ts +1 -0
- package/lib/address-edit/index.js +6 -1
- package/lib/address-edit/style/index.js +7 -1
- package/lib/address-list/AddressList.d.ts +1 -1
- package/lib/address-list/AddressList.js +5 -1
- package/lib/address-list/index.d.ts +1 -0
- package/lib/address-list/index.js +6 -1
- package/lib/area/Area.d.ts +7 -4
- package/lib/area/Area.js +1 -0
- package/lib/area/index.d.ts +5 -2
- package/lib/area/index.js +6 -1
- package/lib/area/style/index.js +7 -0
- package/lib/area/utils.js +9 -2
- package/lib/badge/Badge.d.ts +2 -2
- package/lib/badge/Badge.js +2 -1
- package/lib/badge/index.d.ts +2 -1
- package/lib/badge/index.js +6 -1
- package/lib/button/Button.d.ts +1 -1
- package/lib/button/Button.js +1 -0
- package/lib/button/index.d.ts +1 -0
- package/lib/button/index.js +6 -1
- package/lib/calendar/Calendar.d.ts +1 -1
- package/lib/calendar/Calendar.js +12 -8
- package/lib/calendar/CalendarMonth.js +4 -1
- package/lib/calendar/index.d.ts +1 -0
- package/lib/calendar/index.js +6 -1
- package/lib/calendar/style/index.js +7 -1
- package/lib/card/Card.d.ts +1 -1
- package/lib/card/Card.js +1 -0
- package/lib/card/index.d.ts +1 -0
- package/lib/card/index.js +6 -1
- package/lib/cascader/Cascader.d.ts +1 -1
- package/lib/cascader/Cascader.js +1 -0
- package/lib/cascader/index.d.ts +1 -0
- package/lib/cascader/index.js +6 -1
- package/lib/cell/Cell.d.ts +2 -2
- package/lib/cell/Cell.js +1 -0
- package/lib/cell/index.d.ts +2 -1
- package/lib/cell/index.js +6 -1
- package/lib/cell-group/CellGroup.d.ts +2 -2
- package/lib/cell-group/CellGroup.js +1 -0
- package/lib/cell-group/index.d.ts +2 -1
- package/lib/cell-group/index.js +6 -1
- package/lib/checkbox/Checkbox.d.ts +1 -1
- package/lib/checkbox/Checkbox.js +5 -1
- package/lib/checkbox/index.d.ts +1 -0
- package/lib/checkbox/index.js +6 -1
- package/lib/checkbox-group/CheckboxGroup.d.ts +1 -1
- package/lib/checkbox-group/CheckboxGroup.js +1 -0
- package/lib/checkbox-group/index.d.ts +1 -0
- package/lib/checkbox-group/index.js +6 -1
- package/lib/circle/Circle.d.ts +1 -1
- package/lib/circle/Circle.js +1 -0
- package/lib/circle/index.d.ts +1 -0
- package/lib/circle/index.js +6 -1
- package/lib/col/Col.d.ts +2 -2
- package/lib/col/Col.js +1 -0
- package/lib/col/index.d.ts +2 -1
- package/lib/col/index.js +6 -1
- package/lib/collapse/Collapse.d.ts +9 -2
- package/lib/collapse/Collapse.js +29 -1
- package/lib/collapse/index.d.ts +2 -1
- package/lib/collapse/index.js +6 -1
- package/lib/collapse-item/CollapseItem.d.ts +2 -2
- package/lib/collapse-item/CollapseItem.js +4 -1
- package/lib/collapse-item/index.d.ts +2 -1
- package/lib/collapse-item/index.js +6 -1
- package/lib/composables/use-global-z-index.d.ts +4 -0
- package/lib/composables/use-global-z-index.js +28 -0
- package/lib/composables/use-height.d.ts +1 -1
- package/lib/composables/use-height.js +8 -2
- package/lib/composables/use-lazy-render.js +9 -5
- package/lib/composables/use-lock-scroll.js +7 -2
- package/lib/composables/use-placeholder.js +1 -1
- package/lib/composables/use-visibility-change.js +6 -3
- package/lib/config-provider/ConfigProvider.d.ts +15 -5
- package/lib/config-provider/ConfigProvider.js +24 -7
- package/lib/config-provider/index.d.ts +10 -3
- package/lib/config-provider/index.js +6 -1
- package/lib/contact-card/ContactCard.d.ts +1 -1
- package/lib/contact-card/ContactCard.js +1 -0
- package/lib/contact-card/index.d.ts +1 -0
- package/lib/contact-card/index.js +6 -1
- package/lib/contact-edit/ContactEdit.d.ts +1 -1
- package/lib/contact-edit/ContactEdit.js +1 -0
- package/lib/contact-edit/index.d.ts +1 -0
- package/lib/contact-edit/index.js +6 -1
- package/lib/contact-list/ContactList.d.ts +1 -1
- package/lib/contact-list/ContactList.js +1 -0
- package/lib/contact-list/index.d.ts +1 -0
- package/lib/contact-list/index.js +6 -1
- package/lib/count-down/CountDown.d.ts +1 -1
- package/lib/count-down/CountDown.js +1 -0
- package/lib/count-down/index.d.ts +1 -0
- package/lib/count-down/index.js +6 -1
- package/lib/coupon/Coupon.d.ts +1 -1
- package/lib/coupon/index.d.ts +1 -1
- package/lib/coupon/index.js +4 -1
- package/lib/coupon/utils.js +3 -1
- package/lib/coupon-cell/CouponCell.d.ts +2 -2
- package/lib/coupon-cell/CouponCell.js +1 -0
- package/lib/coupon-cell/index.d.ts +2 -1
- package/lib/coupon-cell/index.js +6 -1
- package/lib/coupon-list/CouponList.d.ts +1 -1
- package/lib/coupon-list/CouponList.js +1 -0
- package/lib/coupon-list/index.d.ts +1 -0
- package/lib/coupon-list/index.js +6 -1
- package/lib/coupon-list/style/index.js +3 -3
- package/lib/date-picker/DatePicker.d.ts +7 -4
- package/lib/date-picker/DatePicker.js +11 -10
- package/lib/date-picker/index.d.ts +5 -2
- package/lib/date-picker/index.js +6 -1
- package/lib/date-picker/style/index.js +7 -0
- package/lib/date-picker/utils.d.ts +2 -1
- package/lib/dialog/Dialog.d.ts +1 -1
- package/lib/dialog/Dialog.js +2 -1
- package/lib/dialog/function-call.js +4 -1
- package/lib/dialog/index.css +1 -1
- package/lib/dialog/index.d.ts +1 -0
- package/lib/dialog/index.js +6 -1
- package/lib/dialog/types.d.ts +1 -1
- package/lib/divider/Divider.d.ts +2 -2
- package/lib/divider/Divider.js +2 -1
- package/lib/divider/index.d.ts +2 -1
- package/lib/divider/index.js +7 -2
- package/lib/dropdown-item/DropdownItem.d.ts +3 -3
- package/lib/dropdown-item/DropdownItem.js +2 -1
- package/lib/dropdown-item/index.d.ts +3 -2
- package/lib/dropdown-item/index.js +7 -2
- package/lib/dropdown-menu/DropdownMenu.d.ts +2 -2
- package/lib/dropdown-menu/DropdownMenu.js +4 -2
- package/lib/dropdown-menu/index.d.ts +2 -1
- package/lib/dropdown-menu/index.js +7 -2
- package/lib/empty/Empty.d.ts +3 -3
- package/lib/empty/Empty.js +283 -17
- package/lib/empty/index.d.ts +2 -1
- package/lib/empty/index.js +7 -2
- package/lib/field/Field.d.ts +1 -1
- package/lib/field/Field.js +13 -2
- package/lib/field/index.d.ts +1 -0
- package/lib/field/index.js +7 -2
- package/lib/field/types.d.ts +1 -0
- package/lib/field/utils.d.ts +1 -0
- package/lib/field/utils.js +8 -2
- package/lib/form/Form.d.ts +1 -1
- package/lib/form/Form.js +2 -1
- package/lib/form/index.d.ts +1 -0
- package/lib/form/index.js +7 -2
- package/lib/grid/Grid.d.ts +2 -2
- package/lib/grid/Grid.js +2 -1
- package/lib/grid/index.d.ts +2 -1
- package/lib/grid/index.js +7 -2
- package/lib/grid-item/GridItem.d.ts +2 -2
- package/lib/grid-item/GridItem.js +2 -1
- package/lib/grid-item/index.d.ts +2 -1
- package/lib/grid-item/index.js +7 -2
- package/lib/icon/Icon.d.ts +2 -2
- package/lib/icon/Icon.js +2 -1
- package/lib/icon/index.d.ts +2 -1
- package/lib/icon/index.js +7 -2
- package/lib/image/Image.d.ts +5 -1
- package/lib/image/Image.js +5 -2
- package/lib/image/index.css +1 -1
- package/lib/image/index.d.ts +4 -0
- package/lib/image/index.js +7 -2
- package/lib/image-preview/ImagePreview.d.ts +1 -1
- package/lib/image-preview/ImagePreview.js +6 -2
- package/lib/image-preview/ImagePreviewItem.js +10 -2
- package/lib/image-preview/function-call.js +4 -1
- package/lib/image-preview/index.css +1 -1
- package/lib/image-preview/index.d.ts +1 -0
- package/lib/image-preview/index.js +6 -1
- package/lib/index-anchor/IndexAnchor.d.ts +2 -2
- package/lib/index-anchor/IndexAnchor.js +2 -1
- package/lib/index-anchor/index.d.ts +2 -1
- package/lib/index-anchor/index.js +7 -2
- package/lib/index-bar/IndexBar.d.ts +1 -1
- package/lib/index-bar/IndexBar.js +11 -5
- package/lib/index-bar/index.d.ts +1 -0
- package/lib/index-bar/index.js +7 -2
- package/lib/index.css +1 -1
- package/lib/index.d.ts +3 -1
- package/lib/index.js +7 -1
- package/lib/lazyload/vue-lazyload/index.js +4 -1
- package/lib/lazyload/vue-lazyload/lazy-component.js +4 -1
- package/lib/lazyload/vue-lazyload/lazy-container.js +11 -7
- package/lib/lazyload/vue-lazyload/lazy-image.js +24 -14
- package/lib/lazyload/vue-lazyload/lazy.js +15 -4
- package/lib/lazyload/vue-lazyload/listener.js +45 -33
- package/lib/lazyload/vue-lazyload/util.js +4 -1
- package/lib/list/List.d.ts +1 -1
- package/lib/list/List.js +4 -2
- package/lib/list/index.d.ts +1 -0
- package/lib/list/index.js +7 -2
- package/lib/loading/Loading.d.ts +2 -2
- package/lib/loading/Loading.js +2 -1
- package/lib/loading/index.d.ts +2 -1
- package/lib/loading/index.js +7 -2
- package/lib/locale/index.js +4 -1
- package/lib/nav-bar/NavBar.d.ts +1 -1
- package/lib/nav-bar/NavBar.js +2 -1
- package/lib/nav-bar/index.d.ts +1 -0
- package/lib/nav-bar/index.js +7 -2
- package/lib/notice-bar/NoticeBar.d.ts +1 -1
- package/lib/notice-bar/NoticeBar.js +2 -1
- package/lib/notice-bar/index.d.ts +1 -0
- package/lib/notice-bar/index.js +7 -2
- package/lib/notify/Notify.d.ts +1 -1
- package/lib/notify/Notify.js +2 -1
- package/lib/notify/function-call.js +4 -1
- package/lib/notify/index.d.ts +1 -0
- package/lib/notify/index.js +6 -1
- package/lib/number-keyboard/NumberKeyboard.d.ts +2 -2
- package/lib/number-keyboard/NumberKeyboard.js +7 -4
- package/lib/number-keyboard/NumberKeyboardKey.js +2 -2
- package/lib/number-keyboard/index.d.ts +2 -1
- package/lib/number-keyboard/index.js +7 -2
- package/lib/overlay/Overlay.d.ts +2 -2
- package/lib/overlay/Overlay.js +13 -5
- package/lib/overlay/index.d.ts +2 -1
- package/lib/overlay/index.js +7 -2
- package/lib/pagination/Pagination.d.ts +1 -1
- package/lib/pagination/Pagination.js +2 -1
- package/lib/pagination/index.d.ts +1 -0
- package/lib/pagination/index.js +7 -2
- package/lib/password-input/PasswordInput.d.ts +1 -1
- package/lib/password-input/PasswordInput.js +3 -2
- package/lib/password-input/index.d.ts +1 -0
- package/lib/password-input/index.js +7 -2
- package/lib/picker/Picker.d.ts +11 -6
- package/lib/picker/Picker.js +57 -68
- package/lib/picker/PickerColumn.d.ts +2 -1
- package/lib/picker/PickerColumn.js +10 -5
- package/lib/picker/PickerToolbar.d.ts +21 -0
- package/lib/picker/PickerToolbar.js +78 -0
- package/lib/picker/index.d.ts +7 -3
- package/lib/picker/index.js +7 -2
- package/lib/picker/style/index.js +7 -0
- package/lib/picker/utils.d.ts +2 -0
- package/lib/picker/utils.js +15 -8
- package/lib/picker-group/PickerGroup.d.ts +39 -0
- package/lib/picker-group/PickerGroup.js +82 -0
- package/lib/picker-group/index.css +1 -0
- package/lib/picker-group/index.d.ts +33 -0
- package/lib/picker-group/index.js +35 -0
- package/lib/picker-group/style/index.d.ts +1 -0
- package/lib/picker-group/style/index.js +9 -0
- package/lib/popover/Popover.d.ts +1 -1
- package/lib/popover/Popover.js +29 -27
- package/lib/popover/index.d.ts +1 -0
- package/lib/popover/index.js +7 -2
- package/lib/popup/Popup.d.ts +3 -3
- package/lib/popup/Popup.js +8 -6
- package/lib/popup/index.css +1 -1
- package/lib/popup/index.d.ts +3 -2
- package/lib/popup/index.js +7 -2
- package/lib/popup/shared.js +3 -1
- package/lib/progress/Progress.d.ts +2 -2
- package/lib/progress/Progress.js +2 -1
- package/lib/progress/index.d.ts +2 -1
- package/lib/progress/index.js +7 -2
- package/lib/pull-refresh/PullRefresh.d.ts +1 -1
- package/lib/pull-refresh/PullRefresh.js +8 -3
- package/lib/pull-refresh/index.d.ts +1 -0
- package/lib/pull-refresh/index.js +7 -2
- package/lib/radio/Radio.d.ts +15 -2
- package/lib/radio/Radio.js +7 -2
- package/lib/radio/index.d.ts +1 -0
- package/lib/radio/index.js +7 -2
- package/lib/radio-group/RadioGroup.d.ts +1 -1
- package/lib/radio-group/RadioGroup.js +2 -1
- package/lib/radio-group/index.d.ts +1 -0
- package/lib/radio-group/index.js +7 -2
- package/lib/rate/Rate.d.ts +1 -1
- package/lib/rate/Rate.js +6 -3
- package/lib/rate/index.d.ts +1 -0
- package/lib/rate/index.js +7 -2
- package/lib/row/Row.d.ts +2 -2
- package/lib/row/Row.js +2 -1
- package/lib/row/index.d.ts +2 -1
- package/lib/row/index.js +7 -2
- package/lib/search/Search.d.ts +1 -1
- package/lib/search/Search.js +2 -1
- package/lib/search/index.css +1 -1
- package/lib/search/index.d.ts +1 -0
- package/lib/search/index.js +7 -2
- package/lib/share-sheet/ShareSheet.d.ts +1 -1
- package/lib/share-sheet/ShareSheet.js +2 -1
- package/lib/share-sheet/index.d.ts +1 -0
- package/lib/share-sheet/index.js +7 -2
- package/lib/sidebar/Sidebar.d.ts +1 -1
- package/lib/sidebar/Sidebar.js +2 -1
- package/lib/sidebar/index.d.ts +1 -0
- package/lib/sidebar/index.js +7 -2
- package/lib/sidebar-item/SidebarItem.d.ts +1 -1
- package/lib/sidebar-item/SidebarItem.js +2 -1
- package/lib/sidebar-item/index.d.ts +1 -0
- package/lib/sidebar-item/index.js +7 -2
- package/lib/skeleton/Skeleton.d.ts +2 -2
- package/lib/skeleton/Skeleton.js +2 -1
- package/lib/skeleton/index.d.ts +2 -1
- package/lib/skeleton/index.js +7 -2
- package/lib/slider/Slider.d.ts +1 -1
- package/lib/slider/Slider.js +8 -3
- package/lib/slider/index.d.ts +1 -0
- package/lib/slider/index.js +7 -2
- package/lib/space/Space.d.ts +48 -0
- package/lib/space/Space.js +107 -0
- package/lib/space/index.css +1 -0
- package/lib/space/index.d.ts +38 -0
- package/lib/space/index.js +35 -0
- package/lib/space/style/index.d.ts +1 -0
- package/lib/space/style/index.js +2 -0
- package/lib/step/Step.d.ts +1 -1
- package/lib/step/index.d.ts +1 -1
- package/lib/step/index.js +4 -1
- package/lib/stepper/Stepper.d.ts +1 -1
- package/lib/stepper/Stepper.js +3 -2
- package/lib/stepper/index.d.ts +1 -0
- package/lib/stepper/index.js +7 -2
- package/lib/steps/Steps.d.ts +1 -1
- package/lib/steps/Steps.js +2 -1
- package/lib/steps/index.d.ts +1 -0
- package/lib/steps/index.js +7 -2
- package/lib/sticky/Sticky.d.ts +1 -1
- package/lib/sticky/Sticky.js +4 -2
- package/lib/sticky/index.d.ts +1 -0
- package/lib/sticky/index.js +7 -2
- package/lib/submit-bar/SubmitBar.d.ts +1 -1
- package/lib/submit-bar/SubmitBar.js +2 -1
- package/lib/submit-bar/index.d.ts +1 -0
- package/lib/submit-bar/index.js +7 -2
- package/lib/swipe/Swipe.d.ts +1 -1
- package/lib/swipe/Swipe.js +15 -7
- package/lib/swipe/index.d.ts +1 -0
- package/lib/swipe/index.js +7 -2
- package/lib/swipe-cell/SwipeCell.d.ts +3 -3
- package/lib/swipe-cell/SwipeCell.js +6 -3
- package/lib/swipe-cell/index.d.ts +3 -2
- package/lib/swipe-cell/index.js +7 -2
- package/lib/swipe-item/SwipeItem.d.ts +1 -1
- package/lib/swipe-item/index.d.ts +1 -1
- package/lib/swipe-item/index.js +4 -1
- package/lib/switch/Switch.d.ts +1 -1
- package/lib/switch/Switch.js +2 -1
- package/lib/switch/index.d.ts +1 -0
- package/lib/switch/index.js +7 -2
- package/lib/tab/Tab.d.ts +2 -2
- package/lib/tab/Tab.js +2 -1
- package/lib/tab/index.d.ts +2 -1
- package/lib/tab/index.js +7 -2
- package/lib/tabbar/Tabbar.d.ts +1 -1
- package/lib/tabbar/Tabbar.js +2 -1
- package/lib/tabbar/index.d.ts +1 -0
- package/lib/tabbar/index.js +7 -2
- package/lib/tabbar-item/TabbarItem.d.ts +1 -1
- package/lib/tabbar-item/TabbarItem.js +2 -1
- package/lib/tabbar-item/index.d.ts +1 -0
- package/lib/tabbar-item/index.js +7 -2
- package/lib/tabs/Tabs.d.ts +1 -1
- package/lib/tabs/Tabs.js +18 -4
- package/lib/tabs/TabsContent.js +4 -0
- package/lib/tabs/TabsTitle.d.ts +1 -1
- package/lib/tabs/index.d.ts +1 -0
- package/lib/tabs/index.js +7 -2
- package/lib/tag/Tag.d.ts +1 -1
- package/lib/tag/Tag.js +2 -1
- package/lib/tag/index.d.ts +1 -0
- package/lib/tag/index.js +7 -2
- package/lib/time-picker/TimePicker.d.ts +7 -4
- package/lib/time-picker/TimePicker.js +2 -1
- package/lib/time-picker/index.d.ts +5 -2
- package/lib/time-picker/index.js +7 -2
- package/lib/time-picker/style/index.js +7 -0
- package/lib/toast/Toast.d.ts +1 -1
- package/lib/toast/Toast.js +9 -2
- package/lib/toast/function-call.js +4 -1
- package/lib/toast/index.d.ts +1 -0
- package/lib/toast/index.js +7 -2
- package/lib/tree-select/TreeSelect.d.ts +1 -1
- package/lib/tree-select/TreeSelect.js +2 -1
- package/lib/tree-select/index.d.ts +1 -0
- package/lib/tree-select/index.js +7 -2
- package/lib/uploader/Uploader.d.ts +1 -1
- package/lib/uploader/Uploader.js +6 -2
- package/lib/uploader/index.d.ts +1 -0
- package/lib/uploader/index.js +7 -2
- package/lib/utils/basic.js +2 -1
- package/lib/utils/create.js +12 -3
- package/lib/utils/with-install.d.ts +2 -2
- package/lib/utils/with-install.js +4 -2
- package/lib/vant.cjs.js +5416 -4902
- package/lib/vant.es.js +5547 -4924
- package/lib/vant.js +5431 -4948
- package/lib/vant.min.js +1 -1
- package/lib/vue-tsx-shim.d.ts +7 -0
- package/{vetur → lib}/web-types.json +1237 -1061
- package/package.json +14 -19
- package/es/empty/Images.d.ts +0 -4
- package/es/empty/Images.mjs +0 -271
- package/lib/empty/Images.d.ts +0 -4
- package/lib/empty/Images.js +0 -290
- package/vetur/attributes.json +0 -3530
- package/vetur/tags.json +0 -1212
@@ -31,6 +31,7 @@ var stdin_default = defineComponent({
|
|
31
31
|
slots
|
32
32
|
}) {
|
33
33
|
const root = ref();
|
34
|
+
const sidebar = ref();
|
34
35
|
const activeAnchor = ref("");
|
35
36
|
const touch = useTouch();
|
36
37
|
const scrollParent = useScrollParent(root);
|
@@ -121,7 +122,8 @@ var stdin_default = defineComponent({
|
|
121
122
|
nextTick(onScroll);
|
122
123
|
};
|
123
124
|
useEventListener("scroll", onScroll, {
|
124
|
-
target: scrollParent
|
125
|
+
target: scrollParent,
|
126
|
+
passive: true
|
125
127
|
});
|
126
128
|
onMounted(init);
|
127
129
|
watch(() => props.indexList, init);
|
@@ -149,11 +151,11 @@ var stdin_default = defineComponent({
|
|
149
151
|
const {
|
150
152
|
offsetHeight
|
151
153
|
} = document.documentElement;
|
154
|
+
match.$el.scrollIntoView();
|
152
155
|
if (scrollTop === offsetHeight - scrollParentRect.height) {
|
153
156
|
onScroll();
|
154
157
|
return;
|
155
158
|
}
|
156
|
-
match.$el.scrollIntoView();
|
157
159
|
if (props.sticky && props.stickyOffsetTop) {
|
158
160
|
setRootScrollTop(getRootScrollTop() - props.stickyOffsetTop);
|
159
161
|
}
|
@@ -193,15 +195,18 @@ var stdin_default = defineComponent({
|
|
193
195
|
}
|
194
196
|
};
|
195
197
|
const renderSidebar = () => _createVNode("div", {
|
198
|
+
"ref": sidebar,
|
196
199
|
"class": bem("sidebar"),
|
197
200
|
"style": sidebarStyle.value,
|
198
201
|
"onClick": onClickSidebar,
|
199
|
-
"
|
200
|
-
"onTouchmove": onTouchMove
|
202
|
+
"onTouchstartPassive": touch.start
|
201
203
|
}, [renderIndexes()]);
|
202
204
|
useExpose({
|
203
205
|
scrollTo
|
204
206
|
});
|
207
|
+
useEventListener("touchmove", onTouchMove, {
|
208
|
+
target: sidebar
|
209
|
+
});
|
205
210
|
return () => {
|
206
211
|
var _a;
|
207
212
|
return _createVNode("div", {
|
@@ -217,5 +222,6 @@ var stdin_default = defineComponent({
|
|
217
222
|
});
|
218
223
|
export {
|
219
224
|
INDEX_BAR_KEY,
|
220
|
-
stdin_default as default
|
225
|
+
stdin_default as default,
|
226
|
+
indexBarProps
|
221
227
|
};
|
package/es/index-bar/index.d.ts
CHANGED
@@ -40,6 +40,7 @@ export declare const IndexBar: import("../utils").WithInstall<import("vue").Defi
|
|
40
40
|
indexList: import("../utils").Numeric[];
|
41
41
|
}>>;
|
42
42
|
export default IndexBar;
|
43
|
+
export { indexBarProps } from './IndexBar';
|
43
44
|
export type { IndexBarProps };
|
44
45
|
export type { IndexBarInstance } from './types';
|
45
46
|
declare module 'vue' {
|
package/es/index-bar/index.mjs
CHANGED
@@ -2,7 +2,9 @@ import { withInstall } from "../utils/index.mjs";
|
|
2
2
|
import _IndexBar from "./IndexBar.mjs";
|
3
3
|
const IndexBar = withInstall(_IndexBar);
|
4
4
|
var stdin_default = IndexBar;
|
5
|
+
import { indexBarProps } from "./IndexBar.mjs";
|
5
6
|
export {
|
6
7
|
IndexBar,
|
7
|
-
stdin_default as default
|
8
|
+
stdin_default as default,
|
9
|
+
indexBarProps
|
8
10
|
};
|
package/es/index.d.ts
CHANGED
@@ -53,6 +53,7 @@ export * from "./overlay";
|
|
53
53
|
export * from "./pagination";
|
54
54
|
export * from "./password-input";
|
55
55
|
export * from "./picker";
|
56
|
+
export * from "./picker-group";
|
56
57
|
export * from "./popover";
|
57
58
|
export * from "./popup";
|
58
59
|
export * from "./progress";
|
@@ -67,6 +68,7 @@ export * from "./sidebar";
|
|
67
68
|
export * from "./sidebar-item";
|
68
69
|
export * from "./skeleton";
|
69
70
|
export * from "./slider";
|
71
|
+
export * from "./space";
|
70
72
|
export * from "./step";
|
71
73
|
export * from "./stepper";
|
72
74
|
export * from "./steps";
|
@@ -91,4 +93,4 @@ declare namespace _default {
|
|
91
93
|
}
|
92
94
|
export default _default;
|
93
95
|
export function install(app: any): void;
|
94
|
-
export const version: "4.0.0-
|
96
|
+
export const version: "4.0.0-rc.1";
|
package/es/index.mjs
CHANGED
@@ -52,6 +52,7 @@ import { Overlay } from "./overlay/index.mjs";
|
|
52
52
|
import { Pagination } from "./pagination/index.mjs";
|
53
53
|
import { PasswordInput } from "./password-input/index.mjs";
|
54
54
|
import { Picker } from "./picker/index.mjs";
|
55
|
+
import { PickerGroup } from "./picker-group/index.mjs";
|
55
56
|
import { Popover } from "./popover/index.mjs";
|
56
57
|
import { Popup } from "./popup/index.mjs";
|
57
58
|
import { Progress } from "./progress/index.mjs";
|
@@ -66,6 +67,7 @@ import { Sidebar } from "./sidebar/index.mjs";
|
|
66
67
|
import { SidebarItem } from "./sidebar-item/index.mjs";
|
67
68
|
import { Skeleton } from "./skeleton/index.mjs";
|
68
69
|
import { Slider } from "./slider/index.mjs";
|
70
|
+
import { Space } from "./space/index.mjs";
|
69
71
|
import { Step } from "./step/index.mjs";
|
70
72
|
import { Stepper } from "./stepper/index.mjs";
|
71
73
|
import { Steps } from "./steps/index.mjs";
|
@@ -84,7 +86,7 @@ import { TimePicker } from "./time-picker/index.mjs";
|
|
84
86
|
import { Toast } from "./toast/index.mjs";
|
85
87
|
import { TreeSelect } from "./tree-select/index.mjs";
|
86
88
|
import { Uploader } from "./uploader/index.mjs";
|
87
|
-
const version = "4.0.0-
|
89
|
+
const version = "4.0.0-rc.1";
|
88
90
|
function install(app) {
|
89
91
|
const components = [
|
90
92
|
ActionBar,
|
@@ -141,6 +143,7 @@ function install(app) {
|
|
141
143
|
Pagination,
|
142
144
|
PasswordInput,
|
143
145
|
Picker,
|
146
|
+
PickerGroup,
|
144
147
|
Popover,
|
145
148
|
Popup,
|
146
149
|
Progress,
|
@@ -155,6 +158,7 @@ function install(app) {
|
|
155
158
|
SidebarItem,
|
156
159
|
Skeleton,
|
157
160
|
Slider,
|
161
|
+
Space,
|
158
162
|
Step,
|
159
163
|
Stepper,
|
160
164
|
Steps,
|
@@ -237,6 +241,7 @@ export * from "./overlay/index.mjs";
|
|
237
241
|
export * from "./pagination/index.mjs";
|
238
242
|
export * from "./password-input/index.mjs";
|
239
243
|
export * from "./picker/index.mjs";
|
244
|
+
export * from "./picker-group/index.mjs";
|
240
245
|
export * from "./popover/index.mjs";
|
241
246
|
export * from "./popup/index.mjs";
|
242
247
|
export * from "./progress/index.mjs";
|
@@ -251,6 +256,7 @@ export * from "./sidebar/index.mjs";
|
|
251
256
|
export * from "./sidebar-item/index.mjs";
|
252
257
|
export * from "./skeleton/index.mjs";
|
253
258
|
export * from "./slider/index.mjs";
|
259
|
+
export * from "./space/index.mjs";
|
254
260
|
export * from "./step/index.mjs";
|
255
261
|
export * from "./stepper/index.mjs";
|
256
262
|
export * from "./steps/index.mjs";
|
@@ -9,7 +9,10 @@ var stdin_default = (lazy) => ({
|
|
9
9
|
},
|
10
10
|
emits: ["show"],
|
11
11
|
render() {
|
12
|
-
return h(
|
12
|
+
return h(
|
13
|
+
this.tag,
|
14
|
+
this.show && this.$slots.default ? this.$slots.default() : null
|
15
|
+
);
|
13
16
|
},
|
14
17
|
data() {
|
15
18
|
return {
|
@@ -17,13 +17,17 @@ class LazyContainer {
|
|
17
17
|
this.options = Object.assign({}, defaultOptions, binding.value);
|
18
18
|
const imgs = this.getImgs();
|
19
19
|
imgs.forEach((el2) => {
|
20
|
-
this.lazy.add(
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
20
|
+
this.lazy.add(
|
21
|
+
el2,
|
22
|
+
Object.assign({}, this.binding, {
|
23
|
+
value: {
|
24
|
+
src: "dataset" in el2 ? el2.dataset.src : el2.getAttribute("data-src"),
|
25
|
+
error: ("dataset" in el2 ? el2.dataset.error : el2.getAttribute("data-error")) || this.options.error,
|
26
|
+
loading: ("dataset" in el2 ? el2.dataset.loading : el2.getAttribute("data-loading")) || this.options.loading
|
27
|
+
}
|
28
|
+
}),
|
29
|
+
this.vnode
|
30
|
+
);
|
27
31
|
});
|
28
32
|
}
|
29
33
|
getImgs() {
|
@@ -10,11 +10,15 @@ var stdin_default = (lazyManager) => ({
|
|
10
10
|
}
|
11
11
|
},
|
12
12
|
render(h) {
|
13
|
-
return h(
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
13
|
+
return h(
|
14
|
+
this.tag,
|
15
|
+
{
|
16
|
+
attrs: {
|
17
|
+
src: this.renderSrc
|
18
|
+
}
|
19
|
+
},
|
20
|
+
this.$slots.default
|
21
|
+
);
|
18
22
|
},
|
19
23
|
data() {
|
20
24
|
return {
|
@@ -68,20 +72,26 @@ var stdin_default = (lazyManager) => ({
|
|
68
72
|
load(onFinish = noop) {
|
69
73
|
if (this.state.attempt > this.options.attempt - 1 && this.state.error) {
|
70
74
|
if (process.env.NODE_ENV !== "production" && !lazyManager.options.silent) {
|
71
|
-
console.log(
|
75
|
+
console.log(
|
76
|
+
`[@vant/lazyload] ${this.options.src} tried too more than ${this.options.attempt} times`
|
77
|
+
);
|
72
78
|
}
|
73
79
|
onFinish();
|
74
80
|
return;
|
75
81
|
}
|
76
82
|
const { src } = this.options;
|
77
|
-
loadImageAsync(
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
83
|
+
loadImageAsync(
|
84
|
+
{ src },
|
85
|
+
({ src: src2 }) => {
|
86
|
+
this.renderSrc = src2;
|
87
|
+
this.state.loaded = true;
|
88
|
+
},
|
89
|
+
() => {
|
90
|
+
this.state.attempt++;
|
91
|
+
this.renderSrc = this.options.error;
|
92
|
+
this.state.error = true;
|
93
|
+
}
|
94
|
+
);
|
85
95
|
}
|
86
96
|
}
|
87
97
|
});
|
@@ -69,7 +69,10 @@ function stdin_default() {
|
|
69
69
|
};
|
70
70
|
this.initEvent();
|
71
71
|
this.imageCache = new ImageCache({ max: 200 });
|
72
|
-
this.lazyLoadHandler = throttle(
|
72
|
+
this.lazyLoadHandler = throttle(
|
73
|
+
this.lazyLoadHandler.bind(this),
|
74
|
+
this.options.throttleWait
|
75
|
+
);
|
73
76
|
this.setMode(this.options.observer ? modeType.observer : modeType.event);
|
74
77
|
}
|
75
78
|
config(options = {}) {
|
@@ -224,7 +227,9 @@ function stdin_default() {
|
|
224
227
|
});
|
225
228
|
}
|
226
229
|
initListen(el, start) {
|
227
|
-
this.options.ListenEvents.forEach(
|
230
|
+
this.options.ListenEvents.forEach(
|
231
|
+
(evt) => (start ? on : off)(el, evt, this.lazyLoadHandler)
|
232
|
+
);
|
228
233
|
}
|
229
234
|
initEvent() {
|
230
235
|
this.Event = {
|
@@ -281,7 +286,10 @@ function stdin_default() {
|
|
281
286
|
if (!hasIntersectionObserver) {
|
282
287
|
return;
|
283
288
|
}
|
284
|
-
this.observer = new IntersectionObserver(
|
289
|
+
this.observer = new IntersectionObserver(
|
290
|
+
this.observerHandler.bind(this),
|
291
|
+
this.options.observerOptions
|
292
|
+
);
|
285
293
|
if (this.listeners.length) {
|
286
294
|
this.listeners.forEach((listener) => {
|
287
295
|
this.observer.observe(listener.el);
|
@@ -73,24 +73,32 @@ class ReactiveListener {
|
|
73
73
|
}
|
74
74
|
renderLoading(cb) {
|
75
75
|
this.state.loading = true;
|
76
|
-
loadImageAsync(
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
76
|
+
loadImageAsync(
|
77
|
+
{
|
78
|
+
src: this.loading,
|
79
|
+
cors: this.cors
|
80
|
+
},
|
81
|
+
() => {
|
82
|
+
this.render("loading", false);
|
83
|
+
this.state.loading = false;
|
84
|
+
cb();
|
85
|
+
},
|
86
|
+
() => {
|
87
|
+
cb();
|
88
|
+
this.state.loading = false;
|
89
|
+
if (process.env.NODE_ENV !== "production" && !this.options.silent)
|
90
|
+
console.warn(
|
91
|
+
`[@vant/lazyload] load failed with loading image(${this.loading})`
|
92
|
+
);
|
93
|
+
}
|
94
|
+
);
|
89
95
|
}
|
90
96
|
load(onFinish = noop) {
|
91
97
|
if (this.attempt > this.options.attempt - 1 && this.state.error) {
|
92
98
|
if (process.env.NODE_ENV !== "production" && !this.options.silent) {
|
93
|
-
console.log(
|
99
|
+
console.log(
|
100
|
+
`[@vant/lazyload] ${this.src} tried too more than ${this.options.attempt} times`
|
101
|
+
);
|
94
102
|
}
|
95
103
|
onFinish();
|
96
104
|
return;
|
@@ -108,25 +116,29 @@ class ReactiveListener {
|
|
108
116
|
this.attempt++;
|
109
117
|
(_b = (_a = this.options.adapter).beforeLoad) == null ? void 0 : _b.call(_a, this, this.options);
|
110
118
|
this.record("loadStart");
|
111
|
-
loadImageAsync(
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
119
|
+
loadImageAsync(
|
120
|
+
{
|
121
|
+
src: this.src,
|
122
|
+
cors: this.cors
|
123
|
+
},
|
124
|
+
(data) => {
|
125
|
+
this.naturalHeight = data.naturalHeight;
|
126
|
+
this.naturalWidth = data.naturalWidth;
|
127
|
+
this.state.loaded = true;
|
128
|
+
this.state.error = false;
|
129
|
+
this.record("loadEnd");
|
130
|
+
this.render("loaded", false);
|
131
|
+
this.state.rendered = true;
|
132
|
+
this.imageCache.add(this.src);
|
133
|
+
onFinish();
|
134
|
+
},
|
135
|
+
(err) => {
|
136
|
+
!this.options.silent && console.error(err);
|
137
|
+
this.state.error = true;
|
138
|
+
this.state.loaded = false;
|
139
|
+
this.render("error", false);
|
140
|
+
}
|
141
|
+
);
|
130
142
|
});
|
131
143
|
}
|
132
144
|
render(state, cache) {
|
@@ -29,7 +29,10 @@ function getBestSelectionFromSrcset(el, scale) {
|
|
29
29
|
tmpWidth = 999998;
|
30
30
|
} else {
|
31
31
|
tmpSrc = item.substr(0, spaceIndex);
|
32
|
-
tmpWidth = parseInt(
|
32
|
+
tmpWidth = parseInt(
|
33
|
+
item.substr(spaceIndex + 1, item.length - spaceIndex - 2),
|
34
|
+
10
|
35
|
+
);
|
33
36
|
}
|
34
37
|
return [tmpWidth, tmpSrc];
|
35
38
|
});
|
package/es/list/List.d.ts
CHANGED
package/es/list/List.mjs
CHANGED
@@ -115,7 +115,8 @@ var stdin_default = defineComponent({
|
|
115
115
|
check
|
116
116
|
});
|
117
117
|
useEventListener("scroll", check, {
|
118
|
-
target: scrollParent
|
118
|
+
target: scrollParent,
|
119
|
+
passive: true
|
119
120
|
});
|
120
121
|
return () => {
|
121
122
|
var _a;
|
@@ -134,5 +135,6 @@ var stdin_default = defineComponent({
|
|
134
135
|
}
|
135
136
|
});
|
136
137
|
export {
|
137
|
-
stdin_default as default
|
138
|
+
stdin_default as default,
|
139
|
+
listProps
|
138
140
|
};
|
package/es/list/index.d.ts
CHANGED
@@ -50,6 +50,7 @@ export declare const List: import("../utils").WithInstall<import("vue").DefineCo
|
|
50
50
|
immediateCheck: boolean;
|
51
51
|
}>>;
|
52
52
|
export default List;
|
53
|
+
export { listProps } from './List';
|
53
54
|
export type { ListProps };
|
54
55
|
export type { ListInstance, ListDirection } from './types';
|
55
56
|
declare module 'vue' {
|
package/es/list/index.mjs
CHANGED
@@ -2,7 +2,9 @@ import { withInstall } from "../utils/index.mjs";
|
|
2
2
|
import _List from "./List.mjs";
|
3
3
|
const List = withInstall(_List);
|
4
4
|
var stdin_default = List;
|
5
|
+
import { listProps } from "./List.mjs";
|
5
6
|
export {
|
6
7
|
List,
|
7
|
-
stdin_default as default
|
8
|
+
stdin_default as default,
|
9
|
+
listProps
|
8
10
|
};
|
package/es/loading/Loading.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { type ExtractPropTypes } from 'vue';
|
2
2
|
export declare type LoadingType = 'circular' | 'spinner';
|
3
|
-
declare const loadingProps: {
|
3
|
+
export declare const loadingProps: {
|
4
4
|
size: (NumberConstructor | StringConstructor)[];
|
5
5
|
type: {
|
6
6
|
type: import("vue").PropType<LoadingType>;
|
@@ -22,7 +22,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
22
22
|
vertical: BooleanConstructor;
|
23
23
|
textSize: (NumberConstructor | StringConstructor)[];
|
24
24
|
textColor: StringConstructor;
|
25
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
25
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
26
26
|
size: (NumberConstructor | StringConstructor)[];
|
27
27
|
type: {
|
28
28
|
type: import("vue").PropType<LoadingType>;
|
package/es/loading/Loading.mjs
CHANGED
package/es/loading/index.d.ts
CHANGED
@@ -8,7 +8,7 @@ export declare const Loading: import("../utils").WithInstall<import("vue").Defin
|
|
8
8
|
vertical: BooleanConstructor;
|
9
9
|
textSize: (NumberConstructor | StringConstructor)[];
|
10
10
|
textColor: StringConstructor;
|
11
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
11
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
12
12
|
size: (NumberConstructor | StringConstructor)[];
|
13
13
|
type: {
|
14
14
|
type: import("vue").PropType<import("./Loading").LoadingType>;
|
@@ -23,6 +23,7 @@ export declare const Loading: import("../utils").WithInstall<import("vue").Defin
|
|
23
23
|
vertical: boolean;
|
24
24
|
}>>;
|
25
25
|
export default Loading;
|
26
|
+
export { loadingProps } from './Loading';
|
26
27
|
export type { LoadingType, LoadingProps } from './Loading';
|
27
28
|
declare module 'vue' {
|
28
29
|
interface GlobalComponents {
|
package/es/loading/index.mjs
CHANGED
@@ -2,7 +2,9 @@ import { withInstall } from "../utils/index.mjs";
|
|
2
2
|
import _Loading from "./Loading.mjs";
|
3
3
|
const Loading = withInstall(_Loading);
|
4
4
|
var stdin_default = Loading;
|
5
|
+
import { loadingProps } from "./Loading.mjs";
|
5
6
|
export {
|
6
7
|
Loading,
|
7
|
-
stdin_default as default
|
8
|
+
stdin_default as default,
|
9
|
+
loadingProps
|
8
10
|
};
|
package/es/nav-bar/NavBar.d.ts
CHANGED
package/es/nav-bar/NavBar.mjs
CHANGED
package/es/nav-bar/index.d.ts
CHANGED
@@ -35,6 +35,7 @@ export declare const NavBar: import("../utils").WithInstall<import("vue").Define
|
|
35
35
|
leftArrow: boolean;
|
36
36
|
}>>;
|
37
37
|
export default NavBar;
|
38
|
+
export { navBarProps } from './NavBar';
|
38
39
|
export type { NavBarProps } from './NavBar';
|
39
40
|
declare module 'vue' {
|
40
41
|
interface GlobalComponents {
|
package/es/nav-bar/index.mjs
CHANGED
@@ -2,7 +2,9 @@ import { withInstall } from "../utils/index.mjs";
|
|
2
2
|
import _NavBar from "./NavBar.mjs";
|
3
3
|
const NavBar = withInstall(_NavBar);
|
4
4
|
var stdin_default = NavBar;
|
5
|
+
import { navBarProps } from "./NavBar.mjs";
|
5
6
|
export {
|
6
7
|
NavBar,
|
7
|
-
stdin_default as default
|
8
|
+
stdin_default as default,
|
9
|
+
navBarProps
|
8
10
|
};
|
package/es/notice-bar/index.d.ts
CHANGED
@@ -47,6 +47,7 @@ export declare const NoticeBar: import("../utils").WithInstall<import("vue").Def
|
|
47
47
|
wrapable: boolean;
|
48
48
|
}>>;
|
49
49
|
export default NoticeBar;
|
50
|
+
export { noticeBarProps } from './NoticeBar';
|
50
51
|
export type { NoticeBarProps };
|
51
52
|
export type { NoticeBarMode, NoticeBarInstance } from './types';
|
52
53
|
declare module 'vue' {
|
package/es/notice-bar/index.mjs
CHANGED
@@ -2,7 +2,9 @@ import { withInstall } from "../utils/index.mjs";
|
|
2
2
|
import _NoticeBar from "./NoticeBar.mjs";
|
3
3
|
const NoticeBar = withInstall(_NoticeBar);
|
4
4
|
var stdin_default = NoticeBar;
|
5
|
+
import { noticeBarProps } from "./NoticeBar.mjs";
|
5
6
|
export {
|
6
7
|
NoticeBar,
|
7
|
-
stdin_default as default
|
8
|
+
stdin_default as default,
|
9
|
+
noticeBarProps
|
8
10
|
};
|
package/es/notify/Notify.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { type ExtractPropTypes } from 'vue';
|
2
2
|
import type { NotifyType, NotifyPosition } from './types';
|
3
|
-
declare const notifyProps: {
|
3
|
+
export declare const notifyProps: {
|
4
4
|
show: BooleanConstructor;
|
5
5
|
zIndex: (NumberConstructor | StringConstructor)[];
|
6
6
|
overlay: {
|
package/es/notify/Notify.mjs
CHANGED
package/es/notify/index.d.ts
CHANGED
@@ -89,6 +89,7 @@ export declare const Notify: import("../utils").WithInstall<import("vue").Define
|
|
89
89
|
closeOnClickOverlay: boolean;
|
90
90
|
}>>;
|
91
91
|
export default Notify;
|
92
|
+
export { notifyProps } from './Notify';
|
92
93
|
export { showNotify, closeNotify, setNotifyDefaultOptions, resetNotifyDefaultOptions, } from './function-call';
|
93
94
|
export type { NotifyProps } from './Notify';
|
94
95
|
export type { NotifyType, NotifyOptions } from './types';
|
package/es/notify/index.mjs
CHANGED
@@ -2,6 +2,7 @@ import { withInstall } from "../utils/index.mjs";
|
|
2
2
|
import _Notify from "./Notify.mjs";
|
3
3
|
const Notify = withInstall(_Notify);
|
4
4
|
var stdin_default = Notify;
|
5
|
+
import { notifyProps } from "./Notify.mjs";
|
5
6
|
import {
|
6
7
|
showNotify,
|
7
8
|
closeNotify,
|
@@ -12,6 +13,7 @@ export {
|
|
12
13
|
Notify,
|
13
14
|
closeNotify,
|
14
15
|
stdin_default as default,
|
16
|
+
notifyProps,
|
15
17
|
resetNotifyDefaultOptions,
|
16
18
|
setNotifyDefaultOptions,
|
17
19
|
showNotify
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { type PropType, type ExtractPropTypes } from 'vue';
|
2
2
|
export declare type NumberKeyboardTheme = 'default' | 'custom';
|
3
|
-
declare const numberKeyboardProps: {
|
3
|
+
export declare const numberKeyboardProps: {
|
4
4
|
show: BooleanConstructor;
|
5
5
|
title: StringConstructor;
|
6
6
|
theme: {
|
@@ -92,7 +92,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
92
92
|
type: PropType<string | string[]>;
|
93
93
|
default: string;
|
94
94
|
};
|
95
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("input" | "blur" | "update:modelValue" | "
|
95
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("input" | "blur" | "update:modelValue" | "close" | "hide" | "show" | "delete")[], "input" | "blur" | "update:modelValue" | "close" | "hide" | "show" | "delete", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
96
96
|
show: BooleanConstructor;
|
97
97
|
title: StringConstructor;
|
98
98
|
theme: {
|