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
@@ -0,0 +1,82 @@
|
|
1
|
+
var __create = Object.create;
|
2
|
+
var __defProp = Object.defineProperty;
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
7
|
+
var __export = (target, all) => {
|
8
|
+
for (var name2 in all)
|
9
|
+
__defProp(target, name2, { get: all[name2], enumerable: true });
|
10
|
+
};
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
13
|
+
for (let key of __getOwnPropNames(from))
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
16
|
+
}
|
17
|
+
return to;
|
18
|
+
};
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
20
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
21
|
+
mod
|
22
|
+
));
|
23
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
24
|
+
var stdin_exports = {};
|
25
|
+
__export(stdin_exports, {
|
26
|
+
PICKER_GROUP_KEY: () => PICKER_GROUP_KEY,
|
27
|
+
default: () => stdin_default,
|
28
|
+
pickerGroupProps: () => pickerGroupProps
|
29
|
+
});
|
30
|
+
module.exports = __toCommonJS(stdin_exports);
|
31
|
+
var import_vue = require("vue");
|
32
|
+
var import_vue2 = require("vue");
|
33
|
+
var import_utils = require("../utils");
|
34
|
+
var import_use = require("@vant/use");
|
35
|
+
var import_tab = require("../tab");
|
36
|
+
var import_tabs = require("../tabs");
|
37
|
+
var import_PickerToolbar = __toESM(require("../picker/PickerToolbar"));
|
38
|
+
const [name, bem] = (0, import_utils.createNamespace)("picker-group");
|
39
|
+
const PICKER_GROUP_KEY = Symbol(name);
|
40
|
+
const pickerGroupProps = (0, import_utils.extend)({
|
41
|
+
tabs: (0, import_utils.makeArrayProp)()
|
42
|
+
}, import_PickerToolbar.pickerToolbarProps);
|
43
|
+
var stdin_default = (0, import_vue2.defineComponent)({
|
44
|
+
name,
|
45
|
+
props: pickerGroupProps,
|
46
|
+
emits: ["confirm", "cancel"],
|
47
|
+
setup(props, {
|
48
|
+
emit,
|
49
|
+
slots
|
50
|
+
}) {
|
51
|
+
const {
|
52
|
+
children,
|
53
|
+
linkChildren
|
54
|
+
} = (0, import_use.useChildren)(PICKER_GROUP_KEY);
|
55
|
+
linkChildren();
|
56
|
+
const onConfirm = () => {
|
57
|
+
emit("confirm", children.map((item) => item.confirm()));
|
58
|
+
};
|
59
|
+
const onCancel = () => emit("cancel");
|
60
|
+
return () => {
|
61
|
+
var _a;
|
62
|
+
const childNodes = (_a = slots.default) == null ? void 0 : _a.call(slots);
|
63
|
+
return (0, import_vue.createVNode)("div", {
|
64
|
+
"class": bem()
|
65
|
+
}, [(0, import_vue.createVNode)(import_PickerToolbar.default, (0, import_vue.mergeProps)(props, {
|
66
|
+
"onConfirm": onConfirm,
|
67
|
+
"onCancel": onCancel
|
68
|
+
}), null), (0, import_vue.createVNode)(import_tabs.Tabs, {
|
69
|
+
"shrink": true,
|
70
|
+
"class": bem("tabs"),
|
71
|
+
"animated": true
|
72
|
+
}, {
|
73
|
+
default: () => [props.tabs.map((title, index) => (0, import_vue.createVNode)(import_tab.Tab, {
|
74
|
+
"title": title,
|
75
|
+
"titleClass": bem("tab-title")
|
76
|
+
}, {
|
77
|
+
default: () => [childNodes == null ? void 0 : childNodes[index]]
|
78
|
+
}))]
|
79
|
+
})]);
|
80
|
+
};
|
81
|
+
}
|
82
|
+
});
|
@@ -0,0 +1 @@
|
|
1
|
+
body{--van-picker-group-background: var(--van-background-2)}.van-picker-group{background:var(--van-picker-group-background)}.van-picker-group__tabs{margin-top:var(--van-padding-base)}.van-picker-group__tab-title{margin-right:16px}
|
@@ -0,0 +1,33 @@
|
|
1
|
+
import { PickerGroupProps } from './PickerGroup';
|
2
|
+
export declare const PickerGroup: import("../utils").WithInstall<import("vue").DefineComponent<{
|
3
|
+
tabs: {
|
4
|
+
type: import("vue").PropType<string[]>;
|
5
|
+
default: () => never[];
|
6
|
+
};
|
7
|
+
} & {
|
8
|
+
title: StringConstructor;
|
9
|
+
cancelButtonText: StringConstructor;
|
10
|
+
confirmButtonText: StringConstructor;
|
11
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("cancel" | "confirm")[], "cancel" | "confirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
12
|
+
tabs: {
|
13
|
+
type: import("vue").PropType<string[]>;
|
14
|
+
default: () => never[];
|
15
|
+
};
|
16
|
+
} & {
|
17
|
+
title: StringConstructor;
|
18
|
+
cancelButtonText: StringConstructor;
|
19
|
+
confirmButtonText: StringConstructor;
|
20
|
+
}>> & {
|
21
|
+
onCancel?: ((...args: any[]) => any) | undefined;
|
22
|
+
onConfirm?: ((...args: any[]) => any) | undefined;
|
23
|
+
}, {
|
24
|
+
tabs: string[];
|
25
|
+
}>>;
|
26
|
+
export default PickerGroup;
|
27
|
+
export { pickerGroupProps } from './PickerGroup';
|
28
|
+
export type { PickerGroupProps };
|
29
|
+
declare module 'vue' {
|
30
|
+
interface GlobalComponents {
|
31
|
+
VanPickerGroup: typeof PickerGroup;
|
32
|
+
}
|
33
|
+
}
|
@@ -0,0 +1,35 @@
|
|
1
|
+
var __create = Object.create;
|
2
|
+
var __defProp = Object.defineProperty;
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
7
|
+
var __export = (target, all) => {
|
8
|
+
for (var name in all)
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
10
|
+
};
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
13
|
+
for (let key of __getOwnPropNames(from))
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
16
|
+
}
|
17
|
+
return to;
|
18
|
+
};
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
20
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
21
|
+
mod
|
22
|
+
));
|
23
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
24
|
+
var stdin_exports = {};
|
25
|
+
__export(stdin_exports, {
|
26
|
+
PickerGroup: () => PickerGroup,
|
27
|
+
default: () => stdin_default,
|
28
|
+
pickerGroupProps: () => import_PickerGroup2.pickerGroupProps
|
29
|
+
});
|
30
|
+
module.exports = __toCommonJS(stdin_exports);
|
31
|
+
var import_utils = require("../utils");
|
32
|
+
var import_PickerGroup = __toESM(require("./PickerGroup"));
|
33
|
+
var import_PickerGroup2 = require("./PickerGroup");
|
34
|
+
const PickerGroup = (0, import_utils.withInstall)(import_PickerGroup.default);
|
35
|
+
var stdin_default = PickerGroup;
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1,9 @@
|
|
1
|
+
require("../../style/base.css");
|
2
|
+
require("../../badge/index.css");
|
3
|
+
require("../../sticky/index.css");
|
4
|
+
require("../../swipe/index.css");
|
5
|
+
require("../../swipe-item/index.css");
|
6
|
+
require("../../tabs/index.css");
|
7
|
+
require("../../tab/index.css");
|
8
|
+
require("../../picker/index.css");
|
9
|
+
require("../index.css");
|
package/lib/popover/Popover.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { type PropType, type CSSProperties, type ExtractPropTypes } from 'vue';
|
2
2
|
import { PopoverTheme, PopoverAction, PopoverTrigger, PopoverPlacement } from './types';
|
3
|
-
declare const popoverProps: {
|
3
|
+
export declare const popoverProps: {
|
4
4
|
show: BooleanConstructor;
|
5
5
|
theme: {
|
6
6
|
type: PropType<PopoverTheme>;
|
package/lib/popover/Popover.js
CHANGED
@@ -17,7 +17,8 @@ var __copyProps = (to, from, except, desc) => {
|
|
17
17
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
18
18
|
var stdin_exports = {};
|
19
19
|
__export(stdin_exports, {
|
20
|
-
default: () => stdin_default
|
20
|
+
default: () => stdin_default,
|
21
|
+
popoverProps: () => popoverProps
|
21
22
|
});
|
22
23
|
module.exports = __toCommonJS(stdin_exports);
|
23
24
|
var import_vue = require("vue");
|
@@ -63,24 +64,26 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
63
64
|
attrs
|
64
65
|
}) {
|
65
66
|
let popper;
|
67
|
+
const popupRef = (0, import_vue2.ref)();
|
66
68
|
const wrapperRef = (0, import_vue2.ref)();
|
67
69
|
const popoverRef = (0, import_vue2.ref)();
|
70
|
+
const getPopoverOptions = () => ({
|
71
|
+
placement: props.placement,
|
72
|
+
modifiers: [{
|
73
|
+
name: "computeStyles",
|
74
|
+
options: {
|
75
|
+
adaptive: false,
|
76
|
+
gpuAcceleration: false
|
77
|
+
}
|
78
|
+
}, (0, import_utils.extend)({}, import_popperjs.offsetModifier, {
|
79
|
+
options: {
|
80
|
+
offset: props.offset
|
81
|
+
}
|
82
|
+
})]
|
83
|
+
});
|
68
84
|
const createPopperInstance = () => {
|
69
85
|
if (wrapperRef.value && popoverRef.value) {
|
70
|
-
return (0, import_popperjs.createPopper)(wrapperRef.value, popoverRef.value.popupRef.value,
|
71
|
-
placement: props.placement,
|
72
|
-
modifiers: [{
|
73
|
-
name: "computeStyles",
|
74
|
-
options: {
|
75
|
-
adaptive: false,
|
76
|
-
gpuAcceleration: false
|
77
|
-
}
|
78
|
-
}, (0, import_utils.extend)({}, import_popperjs.offsetModifier, {
|
79
|
-
options: {
|
80
|
-
offset: props.offset
|
81
|
-
}
|
82
|
-
})]
|
83
|
-
});
|
86
|
+
return (0, import_popperjs.createPopper)(wrapperRef.value, popoverRef.value.popupRef.value, getPopoverOptions());
|
84
87
|
}
|
85
88
|
return null;
|
86
89
|
};
|
@@ -92,9 +95,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
92
95
|
if (!popper) {
|
93
96
|
popper = createPopperInstance();
|
94
97
|
} else {
|
95
|
-
popper.setOptions(
|
96
|
-
placement: props.placement
|
97
|
-
});
|
98
|
+
popper.setOptions(getPopoverOptions());
|
98
99
|
}
|
99
100
|
});
|
100
101
|
};
|
@@ -104,10 +105,6 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
104
105
|
updateShow(!props.show);
|
105
106
|
}
|
106
107
|
};
|
107
|
-
const onTouchstart = (event) => {
|
108
|
-
event.stopPropagation();
|
109
|
-
emit("touchstart", event);
|
110
|
-
};
|
111
108
|
const onClickAction = (action, index) => {
|
112
109
|
if (action.disabled) {
|
113
110
|
return;
|
@@ -118,7 +115,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
118
115
|
}
|
119
116
|
};
|
120
117
|
const onClickAway = () => {
|
121
|
-
if (props.closeOnClickOutside && (!props.overlay || props.closeOnClickOverlay)) {
|
118
|
+
if (props.show && props.closeOnClickOutside && (!props.overlay || props.closeOnClickOverlay)) {
|
122
119
|
updateShow(false);
|
123
120
|
}
|
124
121
|
};
|
@@ -158,15 +155,21 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
158
155
|
"onClick": () => onClickAction(action, index)
|
159
156
|
}, [renderActionContent(action, index)]);
|
160
157
|
};
|
161
|
-
(0, import_vue2.onMounted)(
|
158
|
+
(0, import_vue2.onMounted)(() => {
|
159
|
+
updateLocation();
|
160
|
+
(0, import_vue2.watchEffect)(() => {
|
161
|
+
var _a;
|
162
|
+
popupRef.value = (_a = popoverRef.value) == null ? void 0 : _a.popupRef.value;
|
163
|
+
});
|
164
|
+
});
|
162
165
|
(0, import_vue2.onBeforeUnmount)(() => {
|
163
166
|
if (popper) {
|
164
167
|
popper.destroy();
|
165
168
|
popper = null;
|
166
169
|
}
|
167
170
|
});
|
168
|
-
(0, import_vue2.watch)(() => [props.show, props.placement], updateLocation);
|
169
|
-
(0, import_use.useClickAway)(wrapperRef, onClickAway, {
|
171
|
+
(0, import_vue2.watch)(() => [props.show, props.offset, props.placement], updateLocation);
|
172
|
+
(0, import_use.useClickAway)([wrapperRef, popupRef], onClickAway, {
|
170
173
|
eventName: "touchstart"
|
171
174
|
});
|
172
175
|
return () => {
|
@@ -181,7 +184,6 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
181
184
|
"position": "",
|
182
185
|
"transition": "van-popover-zoom",
|
183
186
|
"lockScroll": false,
|
184
|
-
"onTouchstart": onTouchstart,
|
185
187
|
"onUpdate:show": updateShow
|
186
188
|
}, attrs, (0, import_utils.pick)(props, popupProps)), {
|
187
189
|
default: () => [props.showArrow && (0, import_vue.createVNode)("div", {
|
package/lib/popover/index.d.ts
CHANGED
@@ -111,6 +111,7 @@ export declare const Popover: import("../utils").WithInstall<import("vue").Defin
|
|
111
111
|
placement: import("./types").PopoverPlacement;
|
112
112
|
}>>;
|
113
113
|
export default Popover;
|
114
|
+
export { popoverProps } from './Popover';
|
114
115
|
export type { PopoverProps } from './Popover';
|
115
116
|
export type { PopoverTheme, PopoverAction, PopoverTrigger, PopoverPlacement, } from './types';
|
116
117
|
declare module 'vue' {
|
package/lib/popover/index.js
CHANGED
@@ -16,15 +16,20 @@ var __copyProps = (to, from, except, desc) => {
|
|
16
16
|
}
|
17
17
|
return to;
|
18
18
|
};
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
20
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
21
|
+
mod
|
22
|
+
));
|
20
23
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
21
24
|
var stdin_exports = {};
|
22
25
|
__export(stdin_exports, {
|
23
26
|
Popover: () => Popover,
|
24
|
-
default: () => stdin_default
|
27
|
+
default: () => stdin_default,
|
28
|
+
popoverProps: () => import_Popover2.popoverProps
|
25
29
|
});
|
26
30
|
module.exports = __toCommonJS(stdin_exports);
|
27
31
|
var import_utils = require("../utils");
|
28
32
|
var import_Popover = __toESM(require("./Popover"));
|
33
|
+
var import_Popover2 = require("./Popover");
|
29
34
|
const Popover = (0, import_utils.withInstall)(import_Popover.default);
|
30
35
|
var stdin_default = Popover;
|
package/lib/popup/Popup.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { type CSSProperties, type ExtractPropTypes } from 'vue';
|
2
2
|
import type { PopupPosition, PopupCloseIconPosition } from './types';
|
3
|
-
declare const popupProps: {
|
3
|
+
export declare const popupProps: {
|
4
4
|
show: BooleanConstructor;
|
5
5
|
zIndex: (NumberConstructor | StringConstructor)[];
|
6
6
|
overlay: {
|
@@ -92,7 +92,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
92
92
|
};
|
93
93
|
safeAreaInsetTop: BooleanConstructor;
|
94
94
|
safeAreaInsetBottom: BooleanConstructor;
|
95
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
95
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "keydown" | "open" | "opened" | "closed" | "update:show" | "clickOverlay" | "clickCloseIcon")[], "open" | "close" | "keydown" | "opened" | "closed" | "update:show" | "clickOverlay" | "clickCloseIcon", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
96
96
|
show: BooleanConstructor;
|
97
97
|
zIndex: (NumberConstructor | StringConstructor)[];
|
98
98
|
overlay: {
|
@@ -139,8 +139,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
139
139
|
safeAreaInsetBottom: BooleanConstructor;
|
140
140
|
}>> & {
|
141
141
|
onKeydown?: ((...args: any[]) => any) | undefined;
|
142
|
-
onOpen?: ((...args: any[]) => any) | undefined;
|
143
142
|
onClose?: ((...args: any[]) => any) | undefined;
|
143
|
+
onOpen?: ((...args: any[]) => any) | undefined;
|
144
144
|
onOpened?: ((...args: any[]) => any) | undefined;
|
145
145
|
onClosed?: ((...args: any[]) => any) | undefined;
|
146
146
|
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
package/lib/popup/Popup.js
CHANGED
@@ -17,7 +17,8 @@ var __copyProps = (to, from, except, desc) => {
|
|
17
17
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
18
18
|
var stdin_exports = {};
|
19
19
|
__export(stdin_exports, {
|
20
|
-
default: () => stdin_default
|
20
|
+
default: () => stdin_default,
|
21
|
+
popupProps: () => popupProps
|
21
22
|
});
|
22
23
|
module.exports = __toCommonJS(stdin_exports);
|
23
24
|
var import_vue = require("vue");
|
@@ -29,6 +30,7 @@ var import_use_expose = require("../composables/use-expose");
|
|
29
30
|
var import_use_lock_scroll = require("../composables/use-lock-scroll");
|
30
31
|
var import_use_lazy_render = require("../composables/use-lazy-render");
|
31
32
|
var import_on_popup_reopen = require("../composables/on-popup-reopen");
|
33
|
+
var import_use_global_z_index = require("../composables/use-global-z-index");
|
32
34
|
var import_icon = require("../icon");
|
33
35
|
var import_overlay = require("../overlay");
|
34
36
|
const popupProps = (0, import_utils.extend)({}, import_shared.popupSharedProps, {
|
@@ -44,7 +46,6 @@ const popupProps = (0, import_utils.extend)({}, import_shared.popupSharedProps,
|
|
44
46
|
safeAreaInsetBottom: Boolean
|
45
47
|
});
|
46
48
|
const [name, bem] = (0, import_utils.createNamespace)("popup");
|
47
|
-
let globalZIndex = 2e3;
|
48
49
|
var stdin_default = (0, import_vue2.defineComponent)({
|
49
50
|
name,
|
50
51
|
inheritAttrs: false,
|
@@ -72,11 +73,8 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
72
73
|
});
|
73
74
|
const open = () => {
|
74
75
|
if (!opened) {
|
75
|
-
if (props.zIndex !== void 0) {
|
76
|
-
globalZIndex = +props.zIndex;
|
77
|
-
}
|
78
76
|
opened = true;
|
79
|
-
zIndex.value =
|
77
|
+
zIndex.value = props.zIndex !== void 0 ? +props.zIndex : (0, import_use_global_z_index.useGlobalZIndex)();
|
80
78
|
emit("open");
|
81
79
|
}
|
82
80
|
};
|
@@ -105,6 +103,8 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
105
103
|
"zIndex": zIndex.value,
|
106
104
|
"duration": props.duration,
|
107
105
|
"customStyle": props.overlayStyle,
|
106
|
+
"role": props.closeOnClickOverlay ? "button" : void 0,
|
107
|
+
"tabindex": props.closeOnClickOverlay ? 0 : void 0,
|
108
108
|
"onClick": onClickOverlay
|
109
109
|
}, {
|
110
110
|
default: slots["overlay-content"]
|
@@ -141,6 +141,8 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
141
141
|
return (0, import_vue.withDirectives)((0, import_vue.createVNode)("div", (0, import_vue.mergeProps)({
|
142
142
|
"ref": popupRef,
|
143
143
|
"style": style.value,
|
144
|
+
"role": "dialog",
|
145
|
+
"tabindex": 0,
|
144
146
|
"class": [bem({
|
145
147
|
round,
|
146
148
|
[position]: position
|
package/lib/popup/index.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
body{--van-popup-background: var(--van-background-2);--van-popup-transition: transform var(--van-duration-base);--van-popup-round-radius: 16px;--van-popup-close-icon-size: 22px;--van-popup-close-icon-color: var(--van-gray-5);--van-popup-close-icon-margin: 16px;--van-popup-close-icon-z-index: 1}.van-overflow-hidden{overflow:hidden!important}.van-popup{position:fixed;max-height:100%;overflow-y:auto;background:var(--van-popup-background);transition:var(--van-popup-transition);-webkit-overflow-scrolling:touch}.van-popup--center{top:50%;left:
|
1
|
+
body{--van-popup-background: var(--van-background-2);--van-popup-transition: transform var(--van-duration-base);--van-popup-round-radius: 16px;--van-popup-close-icon-size: 22px;--van-popup-close-icon-color: var(--van-gray-5);--van-popup-close-icon-margin: 16px;--van-popup-close-icon-z-index: 1}.van-overflow-hidden{overflow:hidden!important}.van-popup{position:fixed;max-height:100%;overflow-y:auto;box-sizing:border-box;background:var(--van-popup-background);transition:var(--van-popup-transition);-webkit-overflow-scrolling:touch}.van-popup--center{top:50%;left:0;right:0;width:-webkit-fit-content;width:fit-content;max-width:calc(100vw - var(--van-padding-md) * 2);margin:0 auto;transform:translateY(-50%)}.van-popup--center.van-popup--round{border-radius:var(--van-popup-round-radius)}.van-popup--top{top:0;left:0;width:100%}.van-popup--top.van-popup--round{border-radius:0 0 var(--van-popup-round-radius) var(--van-popup-round-radius)}.van-popup--right{top:50%;right:0;transform:translate3d(0,-50%,0)}.van-popup--right.van-popup--round{border-radius:var(--van-popup-round-radius) 0 0 var(--van-popup-round-radius)}.van-popup--bottom{bottom:0;left:0;width:100%}.van-popup--bottom.van-popup--round{border-radius:var(--van-popup-round-radius) var(--van-popup-round-radius) 0 0}.van-popup--left{top:50%;left:0;transform:translate3d(0,-50%,0)}.van-popup--left.van-popup--round{border-radius:0 var(--van-popup-round-radius) var(--van-popup-round-radius) 0}.van-popup-slide-top-enter-active,.van-popup-slide-left-enter-active,.van-popup-slide-right-enter-active,.van-popup-slide-bottom-enter-active{transition-timing-function:var(--van-ease-out)}.van-popup-slide-top-leave-active,.van-popup-slide-left-leave-active,.van-popup-slide-right-leave-active,.van-popup-slide-bottom-leave-active{transition-timing-function:var(--van-ease-in)}.van-popup-slide-top-enter-from,.van-popup-slide-top-leave-active{transform:translate3d(0,-100%,0)}.van-popup-slide-right-enter-from,.van-popup-slide-right-leave-active{transform:translate3d(100%,-50%,0)}.van-popup-slide-bottom-enter-from,.van-popup-slide-bottom-leave-active{transform:translate3d(0,100%,0)}.van-popup-slide-left-enter-from,.van-popup-slide-left-leave-active{transform:translate3d(-100%,-50%,0)}.van-popup__close-icon{position:absolute;z-index:var(--van-popup-close-icon-z-index);color:var(--van-popup-close-icon-color);font-size:var(--van-popup-close-icon-size)}.van-popup__close-icon--top-left{top:var(--van-popup-close-icon-margin);left:var(--van-popup-close-icon-margin)}.van-popup__close-icon--top-right{top:var(--van-popup-close-icon-margin);right:var(--van-popup-close-icon-margin)}.van-popup__close-icon--bottom-left{bottom:var(--van-popup-close-icon-margin);left:var(--van-popup-close-icon-margin)}.van-popup__close-icon--bottom-right{right:var(--van-popup-close-icon-margin);bottom:var(--van-popup-close-icon-margin)}
|
package/lib/popup/index.d.ts
CHANGED
@@ -43,7 +43,7 @@ export declare const Popup: import("../utils").WithInstall<import("vue").DefineC
|
|
43
43
|
};
|
44
44
|
safeAreaInsetTop: BooleanConstructor;
|
45
45
|
safeAreaInsetBottom: BooleanConstructor;
|
46
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
46
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "keydown" | "open" | "opened" | "closed" | "update:show" | "clickOverlay" | "clickCloseIcon")[], "open" | "close" | "keydown" | "opened" | "closed" | "update:show" | "clickOverlay" | "clickCloseIcon", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
47
47
|
show: BooleanConstructor;
|
48
48
|
zIndex: (NumberConstructor | StringConstructor)[];
|
49
49
|
overlay: {
|
@@ -90,8 +90,8 @@ export declare const Popup: import("../utils").WithInstall<import("vue").DefineC
|
|
90
90
|
safeAreaInsetBottom: BooleanConstructor;
|
91
91
|
}>> & {
|
92
92
|
onKeydown?: ((...args: any[]) => any) | undefined;
|
93
|
-
onOpen?: ((...args: any[]) => any) | undefined;
|
94
93
|
onClose?: ((...args: any[]) => any) | undefined;
|
94
|
+
onOpen?: ((...args: any[]) => any) | undefined;
|
95
95
|
onOpened?: ((...args: any[]) => any) | undefined;
|
96
96
|
onClosed?: ((...args: any[]) => any) | undefined;
|
97
97
|
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
@@ -114,6 +114,7 @@ export declare const Popup: import("../utils").WithInstall<import("vue").DefineC
|
|
114
114
|
safeAreaInsetTop: boolean;
|
115
115
|
}>>;
|
116
116
|
export default Popup;
|
117
|
+
export { popupProps } from './Popup';
|
117
118
|
export type { PopupProps } from './Popup';
|
118
119
|
export type { PopupPosition, PopupInstance, PopupCloseIconPosition, } from './types';
|
119
120
|
declare module 'vue' {
|
package/lib/popup/index.js
CHANGED
@@ -16,15 +16,20 @@ var __copyProps = (to, from, except, desc) => {
|
|
16
16
|
}
|
17
17
|
return to;
|
18
18
|
};
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
20
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
21
|
+
mod
|
22
|
+
));
|
20
23
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
21
24
|
var stdin_exports = {};
|
22
25
|
__export(stdin_exports, {
|
23
26
|
Popup: () => Popup,
|
24
|
-
default: () => stdin_default
|
27
|
+
default: () => stdin_default,
|
28
|
+
popupProps: () => import_Popup2.popupProps
|
25
29
|
});
|
26
30
|
module.exports = __toCommonJS(stdin_exports);
|
27
31
|
var import_utils = require("../utils");
|
28
32
|
var import_Popup = __toESM(require("./Popup"));
|
33
|
+
var import_Popup2 = require("./Popup");
|
29
34
|
const Popup = (0, import_utils.withInstall)(import_Popup.default);
|
30
35
|
var stdin_default = Popup;
|
package/lib/popup/shared.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { type ExtractPropTypes } from 'vue';
|
2
2
|
import { type Numeric } from '../utils';
|
3
|
-
declare const progressProps: {
|
3
|
+
export declare const progressProps: {
|
4
4
|
color: StringConstructor;
|
5
5
|
inactive: BooleanConstructor;
|
6
6
|
pivotText: StringConstructor;
|
@@ -36,7 +36,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
36
36
|
default: number;
|
37
37
|
validator: (value: Numeric) => boolean;
|
38
38
|
};
|
39
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
39
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
40
40
|
color: StringConstructor;
|
41
41
|
inactive: BooleanConstructor;
|
42
42
|
pivotText: StringConstructor;
|
package/lib/progress/Progress.js
CHANGED
@@ -17,7 +17,8 @@ var __copyProps = (to, from, except, desc) => {
|
|
17
17
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
18
18
|
var stdin_exports = {};
|
19
19
|
__export(stdin_exports, {
|
20
|
-
default: () => stdin_default
|
20
|
+
default: () => stdin_default,
|
21
|
+
progressProps: () => progressProps
|
21
22
|
});
|
22
23
|
module.exports = __toCommonJS(stdin_exports);
|
23
24
|
var import_vue = require("vue");
|
package/lib/progress/index.d.ts
CHANGED
@@ -16,7 +16,7 @@ export declare const Progress: import("../utils").WithInstall<import("vue").Defi
|
|
16
16
|
default: number;
|
17
17
|
validator: (value: import("../utils").Numeric) => boolean;
|
18
18
|
};
|
19
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
19
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
20
20
|
color: StringConstructor;
|
21
21
|
inactive: BooleanConstructor;
|
22
22
|
pivotText: StringConstructor;
|
@@ -39,6 +39,7 @@ export declare const Progress: import("../utils").WithInstall<import("vue").Defi
|
|
39
39
|
percentage: string | number;
|
40
40
|
}>>;
|
41
41
|
export default Progress;
|
42
|
+
export { progressProps } from './Progress';
|
42
43
|
export type { ProgressProps };
|
43
44
|
export type { ProgressInstance } from './types';
|
44
45
|
declare module 'vue' {
|
package/lib/progress/index.js
CHANGED
@@ -16,15 +16,20 @@ var __copyProps = (to, from, except, desc) => {
|
|
16
16
|
}
|
17
17
|
return to;
|
18
18
|
};
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
20
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
21
|
+
mod
|
22
|
+
));
|
20
23
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
21
24
|
var stdin_exports = {};
|
22
25
|
__export(stdin_exports, {
|
23
26
|
Progress: () => Progress,
|
24
|
-
default: () => stdin_default
|
27
|
+
default: () => stdin_default,
|
28
|
+
progressProps: () => import_Progress2.progressProps
|
25
29
|
});
|
26
30
|
module.exports = __toCommonJS(stdin_exports);
|
27
31
|
var import_utils = require("../utils");
|
28
32
|
var import_Progress = __toESM(require("./Progress"));
|
33
|
+
var import_Progress2 = require("./Progress");
|
29
34
|
const Progress = (0, import_utils.withInstall)(import_Progress.default);
|
30
35
|
var stdin_default = Progress;
|
@@ -17,7 +17,8 @@ var __copyProps = (to, from, except, desc) => {
|
|
17
17
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
18
18
|
var stdin_exports = {};
|
19
19
|
__export(stdin_exports, {
|
20
|
-
default: () => stdin_default
|
20
|
+
default: () => stdin_default,
|
21
|
+
pullRefreshProps: () => pullRefreshProps
|
21
22
|
});
|
22
23
|
module.exports = __toCommonJS(stdin_exports);
|
23
24
|
var import_vue = require("vue");
|
@@ -51,6 +52,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
51
52
|
}) {
|
52
53
|
let reachTop;
|
53
54
|
const root = (0, import_vue2.ref)();
|
55
|
+
const track = (0, import_vue2.ref)();
|
54
56
|
const scrollParent = (0, import_use.useScrollParent)(root);
|
55
57
|
const state = (0, import_vue2.reactive)({
|
56
58
|
status: "normal",
|
@@ -183,6 +185,9 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
183
185
|
setStatus(0, false);
|
184
186
|
}
|
185
187
|
});
|
188
|
+
(0, import_use.useEventListener)("touchmove", onTouchMove, {
|
189
|
+
target: track
|
190
|
+
});
|
186
191
|
return () => {
|
187
192
|
var _a;
|
188
193
|
const trackStyle = {
|
@@ -193,10 +198,10 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
193
198
|
"ref": root,
|
194
199
|
"class": bem()
|
195
200
|
}, [(0, import_vue.createVNode)("div", {
|
201
|
+
"ref": track,
|
196
202
|
"class": bem("track"),
|
197
203
|
"style": trackStyle,
|
198
|
-
"
|
199
|
-
"onTouchmove": onTouchMove,
|
204
|
+
"onTouchstartPassive": onTouchStart,
|
200
205
|
"onTouchend": onTouchEnd,
|
201
206
|
"onTouchcancel": onTouchEnd
|
202
207
|
}, [(0, import_vue.createVNode)("div", {
|
@@ -50,6 +50,7 @@ export declare const PullRefresh: import("../utils").WithInstall<import("vue").D
|
|
50
50
|
successDuration: string | number;
|
51
51
|
}>>;
|
52
52
|
export default PullRefresh;
|
53
|
+
export { pullRefreshProps } from './PullRefresh';
|
53
54
|
export type { PullRefreshProps } from './PullRefresh';
|
54
55
|
declare module 'vue' {
|
55
56
|
interface GlobalComponents {
|
@@ -16,15 +16,20 @@ var __copyProps = (to, from, except, desc) => {
|
|
16
16
|
}
|
17
17
|
return to;
|
18
18
|
};
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
20
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
21
|
+
mod
|
22
|
+
));
|
20
23
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
21
24
|
var stdin_exports = {};
|
22
25
|
__export(stdin_exports, {
|
23
26
|
PullRefresh: () => PullRefresh,
|
24
|
-
default: () => stdin_default
|
27
|
+
default: () => stdin_default,
|
28
|
+
pullRefreshProps: () => import_PullRefresh2.pullRefreshProps
|
25
29
|
});
|
26
30
|
module.exports = __toCommonJS(stdin_exports);
|
27
31
|
var import_utils = require("../utils");
|
28
32
|
var import_PullRefresh = __toESM(require("./PullRefresh"));
|
33
|
+
var import_PullRefresh2 = require("./PullRefresh");
|
29
34
|
const PullRefresh = (0, import_utils.withInstall)(import_PullRefresh.default);
|
30
35
|
var stdin_default = PullRefresh;
|