vant 4.0.0-rc.6 → 4.0.0-rc.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/action-bar/ActionBar.d.ts +1 -1
- package/es/action-bar/types.d.ts +1 -1
- package/es/action-bar-button/ActionBarButton.d.ts +1 -1
- package/es/action-bar-button/types.d.ts +1 -1
- package/es/action-bar-icon/ActionBarIcon.d.ts +1 -1
- package/es/action-bar-icon/types.d.ts +1 -1
- package/es/action-sheet/ActionSheet.d.ts +3 -3
- package/es/action-sheet/index.css +1 -1
- package/es/action-sheet/index.d.ts +1 -1
- package/es/action-sheet/types.d.ts +1 -1
- package/es/address-edit/AddressEdit.d.ts +1 -1
- package/es/address-edit/types.d.ts +5 -5
- package/es/address-list/AddressList.d.ts +1 -1
- package/es/address-list/AddressListItem.d.ts +1 -1
- package/es/address-list/types.d.ts +1 -1
- package/es/area/Area.d.ts +2 -2
- package/es/area/index.d.ts +1 -1
- package/es/area/types.d.ts +2 -2
- package/es/back-top/BackTop.d.ts +66 -0
- package/es/back-top/BackTop.mjs +99 -0
- package/es/back-top/index.css +1 -0
- package/es/back-top/index.d.ts +53 -0
- package/es/back-top/index.mjs +10 -0
- package/es/back-top/style/index.d.ts +1 -0
- package/es/back-top/style/index.mjs +4 -0
- package/es/back-top/types.d.ts +6 -0
- package/es/back-top/types.mjs +0 -0
- package/es/badge/Badge.d.ts +2 -2
- package/es/badge/types.d.ts +1 -1
- package/es/button/Button.d.ts +1 -1
- package/es/button/types.d.ts +5 -5
- package/es/calendar/Calendar.d.ts +1 -1
- package/es/calendar/CalendarMonth.d.ts +1 -1
- package/es/calendar/types.d.ts +7 -7
- package/es/card/Card.d.ts +1 -1
- package/es/card/types.d.ts +1 -1
- package/es/cascader/Cascader.d.ts +1 -1
- package/es/cascader/types.d.ts +4 -4
- package/es/cell/Cell.d.ts +4 -4
- package/es/cell/index.d.ts +1 -1
- package/es/cell/types.d.ts +1 -1
- package/es/cell-group/CellGroup.d.ts +1 -1
- package/es/cell-group/types.d.ts +1 -1
- package/es/checkbox/Checkbox.d.ts +1 -1
- package/es/checkbox/Checker.d.ts +4 -4
- package/es/checkbox/types.d.ts +5 -5
- package/es/checkbox-group/CheckboxGroup.d.ts +1 -1
- package/es/checkbox-group/types.d.ts +5 -5
- package/es/circle/Circle.d.ts +2 -2
- package/es/circle/types.d.ts +1 -1
- package/es/col/Col.d.ts +1 -1
- package/es/collapse/Collapse.d.ts +4 -4
- package/es/collapse-item/CollapseItem.d.ts +2 -2
- package/es/collapse-item/index.d.ts +1 -1
- package/es/collapse-item/types.d.ts +3 -3
- package/es/composables/use-route.d.ts +1 -1
- package/es/composables/use-sync-prop-ref.d.ts +2 -0
- package/es/composables/use-sync-prop-ref.mjs +18 -0
- package/es/composables/use-touch.d.ts +1 -1
- package/es/config-provider/ConfigProvider.d.ts +4 -4
- package/es/config-provider/types.d.ts +1 -1
- package/es/contact-card/ContactCard.d.ts +2 -2
- package/es/contact-card/types.d.ts +1 -1
- package/es/contact-edit/ContactEdit.d.ts +2 -2
- package/es/contact-edit/types.d.ts +1 -1
- package/es/contact-list/ContactList.d.ts +2 -2
- package/es/contact-list/types.d.ts +1 -1
- package/es/count-down/CountDown.d.ts +1 -1
- package/es/count-down/types.d.ts +4 -4
- package/es/coupon/Coupon.d.ts +1 -1
- package/es/coupon/types.d.ts +1 -1
- package/es/coupon-cell/CouponCell.d.ts +1 -1
- package/es/coupon-cell/types.d.ts +1 -1
- package/es/coupon-list/CouponList.d.ts +1 -1
- package/es/coupon-list/types.d.ts +1 -1
- package/es/date-picker/DatePicker.d.ts +3 -3
- package/es/date-picker/DatePicker.mjs +4 -1
- package/es/date-picker/index.d.ts +1 -1
- package/es/date-picker/utils.d.ts +2 -2
- package/es/dialog/Dialog.d.ts +2 -2
- package/es/dialog/index.d.ts +1 -1
- package/es/dialog/types.d.ts +6 -6
- package/es/divider/Divider.d.ts +2 -2
- package/es/divider/types.d.ts +1 -1
- package/es/dropdown-item/DropdownItem.d.ts +3 -3
- package/es/dropdown-item/DropdownItem.mjs +6 -4
- package/es/dropdown-item/index.d.ts +2 -2
- package/es/dropdown-item/types.d.ts +4 -4
- package/es/dropdown-menu/DropdownMenu.d.ts +1 -1
- package/es/dropdown-menu/types.d.ts +3 -3
- package/es/empty/Empty.d.ts +1 -1
- package/es/empty/types.d.ts +1 -1
- package/es/field/Field.d.ts +2 -2
- package/es/field/index.d.ts +1 -1
- package/es/field/types.d.ts +16 -16
- package/es/form/Form.d.ts +1 -1
- package/es/form/types.d.ts +3 -3
- package/es/grid/Grid.d.ts +3 -3
- package/es/grid-item/GridItem.d.ts +1 -1
- package/es/grid-item/types.d.ts +1 -1
- package/es/icon/Icon.d.ts +1 -1
- package/es/image/Image.d.ts +3 -3
- package/es/image/types.d.ts +1 -1
- package/es/image-preview/ImagePreview.d.ts +3 -2
- package/es/image-preview/ImagePreview.mjs +6 -3
- package/es/image-preview/ImagePreviewItem.d.ts +2 -1
- package/es/image-preview/ImagePreviewItem.mjs +15 -11
- package/es/image-preview/index.d.ts +2 -1
- package/es/image-preview/types.d.ts +5 -5
- package/es/index-anchor/IndexAnchor.d.ts +1 -1
- package/es/index-anchor/types.d.ts +1 -1
- package/es/index-bar/IndexBar.d.ts +1 -1
- package/es/index-bar/types.d.ts +4 -4
- package/es/index.d.ts +2 -1
- package/es/index.mjs +4 -1
- package/es/lazyload/vue-lazyload/lazy-image.mjs +5 -5
- package/es/lazyload/vue-lazyload/util.d.ts +25 -0
- package/es/list/List.d.ts +1 -1
- package/es/list/List.mjs +1 -1
- package/es/list/types.d.ts +4 -4
- package/es/loading/Loading.d.ts +2 -2
- package/es/loading/types.d.ts +1 -1
- package/es/locale/index.d.ts +1 -1
- package/es/nav-bar/NavBar.d.ts +1 -1
- package/es/nav-bar/types.d.ts +1 -1
- package/es/notice-bar/NoticeBar.d.ts +1 -1
- package/es/notice-bar/types.d.ts +4 -4
- package/es/notify/Notify.d.ts +1 -1
- package/es/notify/types.d.ts +5 -5
- package/es/number-keyboard/NumberKeyboard.d.ts +2 -2
- package/es/number-keyboard/NumberKeyboard.mjs +6 -4
- package/es/number-keyboard/NumberKeyboardKey.d.ts +1 -1
- package/es/number-keyboard/types.d.ts +1 -1
- package/es/overlay/Overlay.d.ts +1 -1
- package/es/overlay/types.d.ts +1 -1
- package/es/pagination/Pagination.d.ts +2 -2
- package/es/pagination/types.d.ts +1 -1
- package/es/password-input/PasswordInput.d.ts +1 -1
- package/es/password-input/types.d.ts +1 -1
- package/es/picker/Picker.d.ts +2 -2
- package/es/picker/Picker.mjs +4 -2
- package/es/picker/PickerColumn.mjs +5 -4
- package/es/picker/PickerToolbar.d.ts +1 -1
- package/es/picker/index.d.ts +1 -1
- package/es/picker/types.d.ts +11 -11
- package/es/picker-group/PickerGroup.d.ts +2 -2
- package/es/picker-group/types.d.ts +1 -1
- package/es/popover/Popover.d.ts +1 -1
- package/es/popover/Popover.mjs +13 -8
- package/es/popover/types.d.ts +5 -5
- package/es/popup/Popup.d.ts +3 -3
- package/es/popup/index.d.ts +2 -2
- package/es/popup/shared.d.ts +1 -1
- package/es/popup/types.d.ts +5 -5
- package/es/progress/Progress.d.ts +1 -1
- package/es/progress/types.d.ts +3 -3
- package/es/pull-refresh/PullRefresh.d.ts +1 -1
- package/es/pull-refresh/types.d.ts +1 -1
- package/es/radio/Radio.d.ts +3 -3
- package/es/radio/types.d.ts +1 -1
- package/es/radio-group/RadioGroup.d.ts +3 -3
- package/es/rate/Rate.d.ts +1 -1
- package/es/rate/types.d.ts +1 -1
- package/es/row/Row.d.ts +5 -5
- package/es/search/Search.d.ts +1 -1
- package/es/search/types.d.ts +4 -4
- package/es/share-sheet/ShareSheet.d.ts +4 -4
- package/es/share-sheet/index.d.ts +1 -1
- package/es/share-sheet/types.d.ts +1 -1
- package/es/sidebar/Sidebar.d.ts +2 -2
- package/es/sidebar/types.d.ts +1 -1
- package/es/sidebar-item/SidebarItem.d.ts +1 -1
- package/es/sidebar-item/types.d.ts +1 -1
- package/es/skeleton/Skeleton.d.ts +24 -24
- package/es/skeleton/Skeleton.mjs +28 -23
- package/es/skeleton/SkeletonAvatar.d.ts +26 -0
- package/es/skeleton/SkeletonAvatar.mjs +22 -0
- package/es/skeleton/SkeletonImage.d.ts +26 -0
- package/es/skeleton/SkeletonImage.mjs +26 -0
- package/es/skeleton/SkeletonParagraph.d.ts +27 -0
- package/es/skeleton/SkeletonParagraph.mjs +31 -0
- package/es/skeleton/SkeletonTitle.d.ts +16 -0
- package/es/skeleton/SkeletonTitle.mjs +26 -0
- package/es/skeleton/index.css +1 -1
- package/es/skeleton/index.d.ts +85 -18
- package/es/skeleton/index.mjs +22 -2
- package/es/skeleton/style/index.mjs +2 -0
- package/es/skeleton/types.d.ts +8 -4
- package/es/slider/Slider.d.ts +3 -3
- package/es/slider/types.d.ts +1 -1
- package/es/space/Space.d.ts +3 -3
- package/es/step/types.d.ts +1 -1
- package/es/stepper/Stepper.d.ts +3 -3
- package/es/stepper/Stepper.mjs +1 -2
- package/es/stepper/index.d.ts +1 -1
- package/es/stepper/types.d.ts +1 -1
- package/es/steps/Steps.d.ts +3 -3
- package/es/steps/types.d.ts +1 -1
- package/es/sticky/Sticky.d.ts +2 -2
- package/es/sticky/types.d.ts +1 -1
- package/es/submit-bar/SubmitBar.d.ts +2 -2
- package/es/submit-bar/types.d.ts +1 -1
- package/es/swipe/Swipe.d.ts +1 -1
- package/es/swipe/types.d.ts +6 -6
- package/es/swipe-cell/SwipeCell.d.ts +3 -3
- package/es/swipe-cell/index.d.ts +2 -2
- package/es/swipe-cell/types.d.ts +4 -4
- package/es/switch/Switch.d.ts +1 -1
- package/es/switch/types.d.ts +1 -1
- package/es/tab/Tab.d.ts +1 -1
- package/es/tabbar/Tabbar.d.ts +2 -2
- package/es/tabbar/types.d.ts +1 -1
- package/es/tabbar-item/TabbarItem.d.ts +1 -1
- package/es/tabbar-item/types.d.ts +1 -1
- package/es/tabs/Tabs.d.ts +1 -1
- package/es/tabs/types.d.ts +6 -6
- package/es/tag/Tag.d.ts +1 -1
- package/es/tag/types.d.ts +3 -3
- package/es/time-picker/TimePicker.d.ts +3 -3
- package/es/time-picker/TimePicker.mjs +4 -1
- package/es/time-picker/index.d.ts +1 -1
- package/es/toast/Toast.d.ts +1 -1
- package/es/toast/types.d.ts +6 -6
- package/es/tree-select/TreeSelect.d.ts +3 -3
- package/es/tree-select/types.d.ts +1 -1
- package/es/uploader/Uploader.d.ts +1 -1
- package/es/uploader/Uploader.mjs +4 -4
- package/es/uploader/types.d.ts +8 -8
- package/es/utils/basic.d.ts +3 -3
- package/es/utils/constant.d.ts +1 -0
- package/es/utils/constant.mjs +3 -1
- package/es/utils/create.d.ts +4 -4
- package/es/utils/deep-assign.d.ts +1 -1
- package/es/utils/dom.d.ts +1 -1
- package/es/utils/interceptor.d.ts +1 -1
- package/es/utils/mount-component.d.ts +1 -1
- package/es/utils/with-install.d.ts +2 -2
- package/lib/action-bar/ActionBar.d.ts +1 -1
- package/lib/action-bar/types.d.ts +1 -1
- package/lib/action-bar-button/ActionBarButton.d.ts +1 -1
- package/lib/action-bar-button/types.d.ts +1 -1
- package/lib/action-bar-icon/ActionBarIcon.d.ts +1 -1
- package/lib/action-bar-icon/types.d.ts +1 -1
- package/lib/action-sheet/ActionSheet.d.ts +3 -3
- package/lib/action-sheet/index.css +1 -1
- package/lib/action-sheet/index.d.ts +1 -1
- package/lib/action-sheet/types.d.ts +1 -1
- package/lib/address-edit/AddressEdit.d.ts +1 -1
- package/lib/address-edit/types.d.ts +5 -5
- package/lib/address-list/AddressList.d.ts +1 -1
- package/lib/address-list/AddressListItem.d.ts +1 -1
- package/lib/address-list/types.d.ts +1 -1
- package/lib/area/Area.d.ts +2 -2
- package/lib/area/index.d.ts +1 -1
- package/lib/area/types.d.ts +2 -2
- package/lib/back-top/BackTop.d.ts +66 -0
- package/lib/back-top/BackTop.js +118 -0
- package/lib/back-top/index.css +1 -0
- package/lib/back-top/index.d.ts +53 -0
- package/lib/back-top/index.js +35 -0
- package/lib/back-top/style/index.d.ts +1 -0
- package/lib/back-top/style/index.js +4 -0
- package/lib/back-top/types.d.ts +6 -0
- package/lib/back-top/types.js +15 -0
- package/lib/badge/Badge.d.ts +2 -2
- package/lib/badge/types.d.ts +1 -1
- package/lib/button/Button.d.ts +1 -1
- package/lib/button/types.d.ts +5 -5
- package/lib/calendar/Calendar.d.ts +1 -1
- package/lib/calendar/CalendarMonth.d.ts +1 -1
- package/lib/calendar/types.d.ts +7 -7
- package/lib/card/Card.d.ts +1 -1
- package/lib/card/types.d.ts +1 -1
- package/lib/cascader/Cascader.d.ts +1 -1
- package/lib/cascader/types.d.ts +4 -4
- package/lib/cell/Cell.d.ts +4 -4
- package/lib/cell/index.d.ts +1 -1
- package/lib/cell/types.d.ts +1 -1
- package/lib/cell-group/CellGroup.d.ts +1 -1
- package/lib/cell-group/types.d.ts +1 -1
- package/lib/checkbox/Checkbox.d.ts +1 -1
- package/lib/checkbox/Checker.d.ts +4 -4
- package/lib/checkbox/types.d.ts +5 -5
- package/lib/checkbox-group/CheckboxGroup.d.ts +1 -1
- package/lib/checkbox-group/types.d.ts +5 -5
- package/lib/circle/Circle.d.ts +2 -2
- package/lib/circle/types.d.ts +1 -1
- package/lib/col/Col.d.ts +1 -1
- package/lib/collapse/Collapse.d.ts +4 -4
- package/lib/collapse-item/CollapseItem.d.ts +2 -2
- package/lib/collapse-item/index.d.ts +1 -1
- package/lib/collapse-item/types.d.ts +3 -3
- package/lib/composables/use-route.d.ts +1 -1
- package/lib/composables/use-sync-prop-ref.d.ts +2 -0
- package/lib/composables/use-sync-prop-ref.js +37 -0
- package/lib/composables/use-touch.d.ts +1 -1
- package/lib/config-provider/ConfigProvider.d.ts +4 -4
- package/lib/config-provider/types.d.ts +1 -1
- package/lib/contact-card/ContactCard.d.ts +2 -2
- package/lib/contact-card/types.d.ts +1 -1
- package/lib/contact-edit/ContactEdit.d.ts +2 -2
- package/lib/contact-edit/types.d.ts +1 -1
- package/lib/contact-list/ContactList.d.ts +2 -2
- package/lib/contact-list/types.d.ts +1 -1
- package/lib/count-down/CountDown.d.ts +1 -1
- package/lib/count-down/types.d.ts +4 -4
- package/lib/coupon/Coupon.d.ts +1 -1
- package/lib/coupon/types.d.ts +1 -1
- package/lib/coupon-cell/CouponCell.d.ts +1 -1
- package/lib/coupon-cell/types.d.ts +1 -1
- package/lib/coupon-list/CouponList.d.ts +1 -1
- package/lib/coupon-list/types.d.ts +1 -1
- package/lib/date-picker/DatePicker.d.ts +3 -3
- package/lib/date-picker/DatePicker.js +4 -1
- package/lib/date-picker/index.d.ts +1 -1
- package/lib/date-picker/utils.d.ts +2 -2
- package/lib/dialog/Dialog.d.ts +2 -2
- package/lib/dialog/index.d.ts +1 -1
- package/lib/dialog/types.d.ts +6 -6
- package/lib/divider/Divider.d.ts +2 -2
- package/lib/divider/types.d.ts +1 -1
- package/lib/dropdown-item/DropdownItem.d.ts +3 -3
- package/lib/dropdown-item/DropdownItem.js +5 -3
- package/lib/dropdown-item/index.d.ts +2 -2
- package/lib/dropdown-item/types.d.ts +4 -4
- package/lib/dropdown-menu/DropdownMenu.d.ts +1 -1
- package/lib/dropdown-menu/types.d.ts +3 -3
- package/lib/empty/Empty.d.ts +1 -1
- package/lib/empty/types.d.ts +1 -1
- package/lib/field/Field.d.ts +2 -2
- package/lib/field/index.d.ts +1 -1
- package/lib/field/types.d.ts +16 -16
- package/lib/form/Form.d.ts +1 -1
- package/lib/form/types.d.ts +3 -3
- package/lib/grid/Grid.d.ts +3 -3
- package/lib/grid-item/GridItem.d.ts +1 -1
- package/lib/grid-item/types.d.ts +1 -1
- package/lib/icon/Icon.d.ts +1 -1
- package/lib/image/Image.d.ts +3 -3
- package/lib/image/types.d.ts +1 -1
- package/lib/image-preview/ImagePreview.d.ts +3 -2
- package/lib/image-preview/ImagePreview.js +6 -3
- package/lib/image-preview/ImagePreviewItem.d.ts +2 -1
- package/lib/image-preview/ImagePreviewItem.js +14 -10
- package/lib/image-preview/index.d.ts +2 -1
- package/lib/image-preview/types.d.ts +5 -5
- package/lib/index-anchor/IndexAnchor.d.ts +1 -1
- package/lib/index-anchor/types.d.ts +1 -1
- package/lib/index-bar/IndexBar.d.ts +1 -1
- package/lib/index-bar/types.d.ts +4 -4
- package/lib/index.css +1 -1
- package/lib/index.d.ts +2 -1
- package/lib/index.js +4 -1
- package/lib/lazyload/vue-lazyload/lazy-image.js +6 -6
- package/lib/lazyload/vue-lazyload/util.d.ts +25 -0
- package/lib/list/List.d.ts +1 -1
- package/lib/list/List.js +1 -1
- package/lib/list/types.d.ts +4 -4
- package/lib/loading/Loading.d.ts +2 -2
- package/lib/loading/types.d.ts +1 -1
- package/lib/locale/index.d.ts +1 -1
- package/lib/nav-bar/NavBar.d.ts +1 -1
- package/lib/nav-bar/types.d.ts +1 -1
- package/lib/notice-bar/NoticeBar.d.ts +1 -1
- package/lib/notice-bar/types.d.ts +4 -4
- package/lib/notify/Notify.d.ts +1 -1
- package/lib/notify/types.d.ts +5 -5
- package/lib/number-keyboard/NumberKeyboard.d.ts +2 -2
- package/lib/number-keyboard/NumberKeyboard.js +5 -3
- package/lib/number-keyboard/NumberKeyboardKey.d.ts +1 -1
- package/lib/number-keyboard/types.d.ts +1 -1
- package/lib/overlay/Overlay.d.ts +1 -1
- package/lib/overlay/types.d.ts +1 -1
- package/lib/pagination/Pagination.d.ts +2 -2
- package/lib/pagination/types.d.ts +1 -1
- package/lib/password-input/PasswordInput.d.ts +1 -1
- package/lib/password-input/types.d.ts +1 -1
- package/lib/picker/Picker.d.ts +2 -2
- package/lib/picker/Picker.js +3 -1
- package/lib/picker/PickerColumn.js +5 -4
- package/lib/picker/PickerToolbar.d.ts +1 -1
- package/lib/picker/index.d.ts +1 -1
- package/lib/picker/types.d.ts +11 -11
- package/lib/picker-group/PickerGroup.d.ts +2 -2
- package/lib/picker-group/types.d.ts +1 -1
- package/lib/popover/Popover.d.ts +1 -1
- package/lib/popover/Popover.js +13 -8
- package/lib/popover/types.d.ts +5 -5
- package/lib/popup/Popup.d.ts +3 -3
- package/lib/popup/index.d.ts +2 -2
- package/lib/popup/shared.d.ts +1 -1
- package/lib/popup/types.d.ts +5 -5
- package/lib/progress/Progress.d.ts +1 -1
- package/lib/progress/types.d.ts +3 -3
- package/lib/pull-refresh/PullRefresh.d.ts +1 -1
- package/lib/pull-refresh/types.d.ts +1 -1
- package/lib/radio/Radio.d.ts +3 -3
- package/lib/radio/types.d.ts +1 -1
- package/lib/radio-group/RadioGroup.d.ts +3 -3
- package/lib/rate/Rate.d.ts +1 -1
- package/lib/rate/types.d.ts +1 -1
- package/lib/row/Row.d.ts +5 -5
- package/lib/search/Search.d.ts +1 -1
- package/lib/search/types.d.ts +4 -4
- package/lib/share-sheet/ShareSheet.d.ts +4 -4
- package/lib/share-sheet/index.d.ts +1 -1
- package/lib/share-sheet/types.d.ts +1 -1
- package/lib/sidebar/Sidebar.d.ts +2 -2
- package/lib/sidebar/types.d.ts +1 -1
- package/lib/sidebar-item/SidebarItem.d.ts +1 -1
- package/lib/sidebar-item/types.d.ts +1 -1
- package/lib/skeleton/Skeleton.d.ts +24 -24
- package/lib/skeleton/Skeleton.js +34 -23
- package/lib/skeleton/SkeletonAvatar.d.ts +26 -0
- package/lib/skeleton/SkeletonAvatar.js +41 -0
- package/lib/skeleton/SkeletonImage.d.ts +26 -0
- package/lib/skeleton/SkeletonImage.js +45 -0
- package/lib/skeleton/SkeletonParagraph.d.ts +27 -0
- package/lib/skeleton/SkeletonParagraph.js +50 -0
- package/lib/skeleton/SkeletonTitle.d.ts +16 -0
- package/lib/skeleton/SkeletonTitle.js +45 -0
- package/lib/skeleton/index.css +1 -1
- package/lib/skeleton/index.d.ts +85 -18
- package/lib/skeleton/index.js +22 -2
- package/lib/skeleton/style/index.js +2 -0
- package/lib/skeleton/types.d.ts +8 -4
- package/lib/slider/Slider.d.ts +3 -3
- package/lib/slider/types.d.ts +1 -1
- package/lib/space/Space.d.ts +3 -3
- package/lib/step/types.d.ts +1 -1
- package/lib/stepper/Stepper.d.ts +3 -3
- package/lib/stepper/Stepper.js +1 -2
- package/lib/stepper/index.d.ts +1 -1
- package/lib/stepper/types.d.ts +1 -1
- package/lib/steps/Steps.d.ts +3 -3
- package/lib/steps/types.d.ts +1 -1
- package/lib/sticky/Sticky.d.ts +2 -2
- package/lib/sticky/types.d.ts +1 -1
- package/lib/submit-bar/SubmitBar.d.ts +2 -2
- package/lib/submit-bar/types.d.ts +1 -1
- package/lib/swipe/Swipe.d.ts +1 -1
- package/lib/swipe/types.d.ts +6 -6
- package/lib/swipe-cell/SwipeCell.d.ts +3 -3
- package/lib/swipe-cell/index.d.ts +2 -2
- package/lib/swipe-cell/types.d.ts +4 -4
- package/lib/switch/Switch.d.ts +1 -1
- package/lib/switch/types.d.ts +1 -1
- package/lib/tab/Tab.d.ts +1 -1
- package/lib/tabbar/Tabbar.d.ts +2 -2
- package/lib/tabbar/types.d.ts +1 -1
- package/lib/tabbar-item/TabbarItem.d.ts +1 -1
- package/lib/tabbar-item/types.d.ts +1 -1
- package/lib/tabs/Tabs.d.ts +1 -1
- package/lib/tabs/types.d.ts +6 -6
- package/lib/tag/Tag.d.ts +1 -1
- package/lib/tag/types.d.ts +3 -3
- package/lib/time-picker/TimePicker.d.ts +3 -3
- package/lib/time-picker/TimePicker.js +4 -1
- package/lib/time-picker/index.d.ts +1 -1
- package/lib/toast/Toast.d.ts +1 -1
- package/lib/toast/types.d.ts +6 -6
- package/lib/tree-select/TreeSelect.d.ts +3 -3
- package/lib/tree-select/types.d.ts +1 -1
- package/lib/uploader/Uploader.d.ts +1 -1
- package/lib/uploader/Uploader.js +3 -3
- package/lib/uploader/types.d.ts +8 -8
- package/lib/utils/basic.d.ts +3 -3
- package/lib/utils/constant.d.ts +1 -0
- package/lib/utils/constant.js +3 -1
- package/lib/utils/create.d.ts +4 -4
- package/lib/utils/deep-assign.d.ts +1 -1
- package/lib/utils/dom.d.ts +1 -1
- package/lib/utils/interceptor.d.ts +1 -1
- package/lib/utils/mount-component.d.ts +1 -1
- package/lib/utils/with-install.d.ts +2 -2
- package/lib/vant.cjs.js +1182 -963
- package/lib/vant.es.js +1183 -964
- package/lib/vant.js +1176 -963
- package/lib/vant.min.js +1 -1
- package/lib/web-types.json +1 -12164
- package/package.json +2 -2
package/es/dialog/types.d.ts
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
import type { CSSProperties, TeleportProps } from 'vue';
|
2
2
|
import type { Interceptor, Numeric } from '../utils';
|
3
|
-
export
|
4
|
-
export
|
5
|
-
export
|
6
|
-
export
|
7
|
-
export
|
3
|
+
export type DialogTheme = 'default' | 'round-button';
|
4
|
+
export type DialogAction = 'confirm' | 'cancel';
|
5
|
+
export type DialogMessage = string | (() => JSX.Element);
|
6
|
+
export type DialogMessageAlign = 'left' | 'center' | 'right' | 'justify';
|
7
|
+
export type DialogOptions = {
|
8
8
|
title?: string;
|
9
9
|
width?: Numeric;
|
10
10
|
theme?: DialogTheme;
|
@@ -30,7 +30,7 @@ export declare type DialogOptions = {
|
|
30
30
|
confirmButtonDisabled?: boolean;
|
31
31
|
closeOnClickOverlay?: boolean;
|
32
32
|
};
|
33
|
-
export
|
33
|
+
export type DialogThemeVars = {
|
34
34
|
dialogWidth?: string;
|
35
35
|
dialogSmallScreenWidth?: string;
|
36
36
|
dialogFontSize?: string;
|
package/es/divider/Divider.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { type ExtractPropTypes } from 'vue';
|
2
|
-
export
|
2
|
+
export type DividerContentPosition = 'left' | 'center' | 'right';
|
3
3
|
export declare const dividerProps: {
|
4
4
|
dashed: BooleanConstructor;
|
5
5
|
hairline: {
|
@@ -11,7 +11,7 @@ export declare const dividerProps: {
|
|
11
11
|
default: DividerContentPosition;
|
12
12
|
};
|
13
13
|
};
|
14
|
-
export
|
14
|
+
export type DividerProps = ExtractPropTypes<typeof dividerProps>;
|
15
15
|
declare const _default: import("vue").DefineComponent<{
|
16
16
|
dashed: BooleanConstructor;
|
17
17
|
hairline: {
|
package/es/divider/types.d.ts
CHANGED
@@ -15,7 +15,7 @@ export declare const dropdownItemProps: {
|
|
15
15
|
modelValue: PropType<unknown>;
|
16
16
|
titleClass: PropType<unknown>;
|
17
17
|
};
|
18
|
-
export
|
18
|
+
export type DropdownItemProps = ExtractPropTypes<typeof dropdownItemProps>;
|
19
19
|
declare const _default: import("vue").DefineComponent<{
|
20
20
|
title: StringConstructor;
|
21
21
|
options: {
|
@@ -30,7 +30,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
30
30
|
};
|
31
31
|
modelValue: PropType<unknown>;
|
32
32
|
titleClass: PropType<unknown>;
|
33
|
-
}, (() => JSX.Element) | undefined, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change" | "close" | "
|
33
|
+
}, (() => JSX.Element) | undefined, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("open" | "update:modelValue" | "change" | "close" | "opened" | "closed")[], "open" | "update:modelValue" | "change" | "close" | "opened" | "closed", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
34
34
|
title: StringConstructor;
|
35
35
|
options: {
|
36
36
|
type: PropType<DropdownItemOption[]>;
|
@@ -47,8 +47,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
47
47
|
}>> & {
|
48
48
|
onChange?: ((...args: any[]) => any) | undefined;
|
49
49
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
50
|
-
onClose?: ((...args: any[]) => any) | undefined;
|
51
50
|
onOpen?: ((...args: any[]) => any) | undefined;
|
51
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
52
52
|
onOpened?: ((...args: any[]) => any) | undefined;
|
53
53
|
onClosed?: ((...args: any[]) => any) | undefined;
|
54
54
|
}, {
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { withDirectives as _withDirectives, vShow as _vShow, createVNode as _createVNode } from "vue";
|
1
|
+
import { withDirectives as _withDirectives, mergeProps as _mergeProps, vShow as _vShow, createVNode as _createVNode } from "vue";
|
2
2
|
import { reactive, Teleport, defineComponent } from "vue";
|
3
3
|
import { truthProp, unknownProp, getZIndexStyle, createNamespace, makeArrayProp } from "../utils/index.mjs";
|
4
4
|
import { DROPDOWN_KEY } from "../dropdown-menu/DropdownMenu.mjs";
|
@@ -19,11 +19,13 @@ const dropdownItemProps = {
|
|
19
19
|
};
|
20
20
|
var stdin_default = defineComponent({
|
21
21
|
name,
|
22
|
+
inheritAttrs: false,
|
22
23
|
props: dropdownItemProps,
|
23
24
|
emits: ["open", "opened", "close", "closed", "change", "update:modelValue"],
|
24
25
|
setup(props, {
|
25
26
|
emit,
|
26
|
-
slots
|
27
|
+
slots,
|
28
|
+
attrs
|
27
29
|
}) {
|
28
30
|
const state = reactive({
|
29
31
|
showPopup: false,
|
@@ -129,11 +131,11 @@ var stdin_default = defineComponent({
|
|
129
131
|
} else {
|
130
132
|
style.bottom = `${offset.value}px`;
|
131
133
|
}
|
132
|
-
return _withDirectives(_createVNode("div", {
|
134
|
+
return _withDirectives(_createVNode("div", _mergeProps({
|
133
135
|
"style": style,
|
134
136
|
"class": bem([direction]),
|
135
137
|
"onClick": onClickWrapper
|
136
|
-
}, [_createVNode(Popup, {
|
138
|
+
}, attrs), [_createVNode(Popup, {
|
137
139
|
"show": state.showPopup,
|
138
140
|
"onUpdate:show": ($event) => state.showPopup = $event,
|
139
141
|
"role": "menu",
|
@@ -13,7 +13,7 @@ export declare const DropdownItem: import("../utils").WithInstall<import("vue").
|
|
13
13
|
};
|
14
14
|
modelValue: import("vue").PropType<unknown>;
|
15
15
|
titleClass: import("vue").PropType<unknown>;
|
16
|
-
}, (() => JSX.Element) | undefined, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change" | "close" | "
|
16
|
+
}, (() => JSX.Element) | undefined, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("open" | "update:modelValue" | "change" | "close" | "opened" | "closed")[], "open" | "update:modelValue" | "change" | "close" | "opened" | "closed", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
17
17
|
title: StringConstructor;
|
18
18
|
options: {
|
19
19
|
type: import("vue").PropType<import("./types").DropdownItemOption[]>;
|
@@ -30,8 +30,8 @@ export declare const DropdownItem: import("../utils").WithInstall<import("vue").
|
|
30
30
|
}>> & {
|
31
31
|
onChange?: ((...args: any[]) => any) | undefined;
|
32
32
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
33
|
-
onClose?: ((...args: any[]) => any) | undefined;
|
34
33
|
onOpen?: ((...args: any[]) => any) | undefined;
|
34
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
35
35
|
onOpened?: ((...args: any[]) => any) | undefined;
|
36
36
|
onClosed?: ((...args: any[]) => any) | undefined;
|
37
37
|
}, {
|
@@ -1,12 +1,12 @@
|
|
1
1
|
import type { DropdownItemProps } from './DropdownItem';
|
2
2
|
import type { VNode, ComponentPublicInstance } from 'vue';
|
3
3
|
import type { Numeric } from '../utils';
|
4
|
-
export
|
4
|
+
export type DropdownItemOption = {
|
5
5
|
text: string;
|
6
6
|
icon?: string;
|
7
7
|
value: Numeric;
|
8
8
|
};
|
9
|
-
export
|
9
|
+
export type DropdownItemExpose = {
|
10
10
|
toggle: (show?: boolean, options?: {
|
11
11
|
immediate?: boolean;
|
12
12
|
}) => void;
|
@@ -19,7 +19,7 @@ export declare type DropdownItemExpose = {
|
|
19
19
|
/** @private */
|
20
20
|
renderTitle: () => string | VNode[];
|
21
21
|
};
|
22
|
-
export
|
23
|
-
export
|
22
|
+
export type DropdownItemInstance = ComponentPublicInstance<DropdownItemProps, DropdownItemExpose>;
|
23
|
+
export type DropdownItemThemeVars = {
|
24
24
|
dropdownItemZIndex?: number | string;
|
25
25
|
};
|
@@ -24,7 +24,7 @@ export declare const dropdownMenuProps: {
|
|
24
24
|
default: true;
|
25
25
|
};
|
26
26
|
};
|
27
|
-
export
|
27
|
+
export type DropdownMenuProps = ExtractPropTypes<typeof dropdownMenuProps>;
|
28
28
|
export declare const DROPDOWN_KEY: InjectionKey<DropdownMenuProvide>;
|
29
29
|
declare const _default: import("vue").DefineComponent<{
|
30
30
|
overlay: {
|
@@ -1,12 +1,12 @@
|
|
1
1
|
import type { Ref } from 'vue';
|
2
2
|
import type { DropdownMenuProps } from './DropdownMenu';
|
3
|
-
export
|
4
|
-
export
|
3
|
+
export type DropdownMenuDirection = 'up' | 'down';
|
4
|
+
export type DropdownMenuProvide = {
|
5
5
|
id: string;
|
6
6
|
props: DropdownMenuProps;
|
7
7
|
offset: Ref<number>;
|
8
8
|
};
|
9
|
-
export
|
9
|
+
export type DropdownMenuThemeVars = {
|
10
10
|
dropdownMenuHeight?: string;
|
11
11
|
dropdownMenuBackground?: string;
|
12
12
|
dropdownMenuShadow?: string;
|
package/es/empty/Empty.d.ts
CHANGED
@@ -8,7 +8,7 @@ export declare const emptyProps: {
|
|
8
8
|
imageSize: PropType<Numeric | [Numeric, Numeric]>;
|
9
9
|
description: StringConstructor;
|
10
10
|
};
|
11
|
-
export
|
11
|
+
export type EmptyProps = ExtractPropTypes<typeof emptyProps>;
|
12
12
|
declare const _default: import("vue").DefineComponent<{
|
13
13
|
image: {
|
14
14
|
type: PropType<string>;
|
package/es/empty/types.d.ts
CHANGED
package/es/field/Field.d.ts
CHANGED
@@ -130,7 +130,7 @@ export declare const fieldProps: {
|
|
130
130
|
default: null;
|
131
131
|
};
|
132
132
|
};
|
133
|
-
export
|
133
|
+
export type FieldProps = ExtractPropTypes<typeof fieldProps>;
|
134
134
|
declare const _default: import("vue").DefineComponent<{
|
135
135
|
tag: {
|
136
136
|
type: PropType<keyof HTMLElementTagNameMap>;
|
@@ -316,13 +316,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
316
316
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
317
317
|
}, {
|
318
318
|
type: FieldType;
|
319
|
-
required: boolean;
|
320
319
|
tag: keyof HTMLElementTagNameMap;
|
321
320
|
center: boolean;
|
322
321
|
autofocus: boolean;
|
323
322
|
disabled: boolean;
|
324
323
|
isLink: boolean;
|
325
324
|
border: boolean;
|
325
|
+
required: boolean;
|
326
326
|
clickable: boolean | null;
|
327
327
|
clearable: boolean;
|
328
328
|
clearIcon: string;
|
package/es/field/index.d.ts
CHANGED
@@ -184,13 +184,13 @@ export declare const Field: import("../utils").WithInstall<import("vue").DefineC
|
|
184
184
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
185
185
|
}, {
|
186
186
|
type: import("./types").FieldType;
|
187
|
-
required: boolean;
|
188
187
|
tag: keyof HTMLElementTagNameMap;
|
189
188
|
center: boolean;
|
190
189
|
autofocus: boolean;
|
191
190
|
disabled: boolean;
|
192
191
|
isLink: boolean;
|
193
192
|
border: boolean;
|
193
|
+
required: boolean;
|
194
194
|
clickable: boolean | null;
|
195
195
|
clearable: boolean;
|
196
196
|
clearIcon: string;
|
package/es/field/types.d.ts
CHANGED
@@ -1,22 +1,22 @@
|
|
1
1
|
import type { ComputedRef, ComponentPublicInstance } from 'vue';
|
2
2
|
import type { FieldProps } from './Field';
|
3
|
-
export
|
4
|
-
export
|
5
|
-
export
|
6
|
-
export
|
7
|
-
export
|
8
|
-
export
|
3
|
+
export type FieldType = 'tel' | 'url' | 'date' | 'file' | 'text' | 'time' | 'week' | 'color' | 'digit' | 'email' | 'image' | 'month' | 'radio' | 'range' | 'reset' | 'button' | 'hidden' | 'number' | 'search' | 'submit' | 'checkbox' | 'password' | 'textarea' | 'datetime-local';
|
4
|
+
export type FieldTextAlign = 'left' | 'center' | 'right' | 'top';
|
5
|
+
export type FieldClearTrigger = 'always' | 'focus';
|
6
|
+
export type FieldFormatTrigger = 'onBlur' | 'onChange';
|
7
|
+
export type FieldValidateTrigger = 'onBlur' | 'onChange' | 'onSubmit';
|
8
|
+
export type FieldAutosizeConfig = {
|
9
9
|
maxHeight?: number;
|
10
10
|
minHeight?: number;
|
11
11
|
};
|
12
|
-
export
|
12
|
+
export type FieldValidateError = {
|
13
13
|
name?: string;
|
14
14
|
message: string;
|
15
15
|
};
|
16
|
-
export
|
17
|
-
export
|
18
|
-
export
|
19
|
-
export
|
16
|
+
export type FieldRuleMessage = string | ((value: any, rule: FieldRule) => string);
|
17
|
+
export type FieldRuleValidator = (value: any, rule: FieldRule) => boolean | string | Promise<boolean | string>;
|
18
|
+
export type FiledRuleFormatter = (value: any, rule: FieldRule) => string;
|
19
|
+
export type FieldRule = {
|
20
20
|
pattern?: RegExp;
|
21
21
|
trigger?: FieldValidateTrigger | FieldValidateTrigger[];
|
22
22
|
message?: FieldRuleMessage;
|
@@ -25,9 +25,9 @@ export declare type FieldRule = {
|
|
25
25
|
formatter?: FiledRuleFormatter;
|
26
26
|
validateEmpty?: boolean;
|
27
27
|
};
|
28
|
-
export
|
29
|
-
export
|
30
|
-
export
|
28
|
+
export type FieldValidationStatus = 'passed' | 'failed' | 'unvalidated';
|
29
|
+
export type FieldFormSharedProps = 'colon' | 'disabled' | 'readonly' | 'labelWidth' | 'labelAlign' | 'inputAlign' | 'errorMessageAlign';
|
30
|
+
export type FieldExpose = {
|
31
31
|
blur: () => void | undefined;
|
32
32
|
focus: () => void | undefined;
|
33
33
|
validate: (rules?: FieldRule[] | undefined) => Promise<void | FieldValidateError>;
|
@@ -36,13 +36,13 @@ export declare type FieldExpose = {
|
|
36
36
|
/** @private */
|
37
37
|
formValue: ComputedRef<unknown>;
|
38
38
|
};
|
39
|
-
export
|
39
|
+
export type FieldInstance = ComponentPublicInstance<FieldProps, FieldExpose>;
|
40
40
|
declare global {
|
41
41
|
interface EventTarget {
|
42
42
|
composing?: boolean;
|
43
43
|
}
|
44
44
|
}
|
45
|
-
export
|
45
|
+
export type FieldThemeVars = {
|
46
46
|
fieldLabelWidth?: string;
|
47
47
|
fieldLabelColor?: string;
|
48
48
|
fieldLabelMarginRight?: string;
|
package/es/form/Form.d.ts
CHANGED
@@ -24,7 +24,7 @@ export declare const formProps: {
|
|
24
24
|
default: string;
|
25
25
|
};
|
26
26
|
};
|
27
|
-
export
|
27
|
+
export type FormProps = ExtractPropTypes<typeof formProps>;
|
28
28
|
declare const _default: import("vue").DefineComponent<{
|
29
29
|
colon: BooleanConstructor;
|
30
30
|
disabled: BooleanConstructor;
|
package/es/form/types.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import type { ComponentPublicInstance } from 'vue';
|
2
2
|
import type { FormProps } from './Form';
|
3
3
|
import type { FieldValidationStatus } from '../field';
|
4
|
-
export
|
4
|
+
export type FormExpose = {
|
5
5
|
submit: () => void;
|
6
6
|
validate: (name?: string | string[] | undefined) => Promise<void>;
|
7
7
|
getValues: () => Record<string, unknown>;
|
@@ -9,7 +9,7 @@ export declare type FormExpose = {
|
|
9
9
|
resetValidation: (name?: string | string[] | undefined) => void;
|
10
10
|
getValidationStatus: () => Record<string, FieldValidationStatus>;
|
11
11
|
};
|
12
|
-
export
|
12
|
+
export type FormProvide = {
|
13
13
|
props: FormProps;
|
14
14
|
};
|
15
|
-
export
|
15
|
+
export type FormInstance = ComponentPublicInstance<FormProps, FormExpose>;
|
package/es/grid/Grid.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { type PropType, type InjectionKey, type ExtractPropTypes } from 'vue';
|
2
|
-
export
|
2
|
+
export type GridDirection = 'horizontal' | 'vertical';
|
3
3
|
export declare const gridProps: {
|
4
4
|
square: BooleanConstructor;
|
5
5
|
center: {
|
@@ -20,8 +20,8 @@ export declare const gridProps: {
|
|
20
20
|
default: number;
|
21
21
|
};
|
22
22
|
};
|
23
|
-
export
|
24
|
-
export
|
23
|
+
export type GridProps = ExtractPropTypes<typeof gridProps>;
|
24
|
+
export type GridProvide = {
|
25
25
|
props: GridProps;
|
26
26
|
};
|
27
27
|
export declare const GRID_KEY: InjectionKey<GridProvide>;
|
@@ -13,7 +13,7 @@ export declare const gridItemProps: {
|
|
13
13
|
iconPrefix: StringConstructor;
|
14
14
|
badgeProps: PropType<Partial<BadgeProps>>;
|
15
15
|
};
|
16
|
-
export
|
16
|
+
export type GridItemProps = ExtractPropTypes<typeof gridItemProps>;
|
17
17
|
declare const _default: import("vue").DefineComponent<{
|
18
18
|
to: PropType<import("vue-router").RouteLocationRaw>;
|
19
19
|
url: StringConstructor;
|
package/es/grid-item/types.d.ts
CHANGED
package/es/icon/Icon.d.ts
CHANGED
@@ -13,7 +13,7 @@ export declare const iconProps: {
|
|
13
13
|
badgeProps: PropType<Partial<BadgeProps>>;
|
14
14
|
classPrefix: StringConstructor;
|
15
15
|
};
|
16
|
-
export
|
16
|
+
export type IconProps = ExtractPropTypes<typeof iconProps>;
|
17
17
|
declare const _default: import("vue").DefineComponent<{
|
18
18
|
dot: BooleanConstructor;
|
19
19
|
tag: {
|
package/es/image/Image.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { type PropType, type ExtractPropTypes } from 'vue';
|
2
|
-
export
|
3
|
-
export
|
2
|
+
export type ImageFit = 'contain' | 'cover' | 'fill' | 'none' | 'scale-down';
|
3
|
+
export type ImagePosition = 'center' | 'top' | 'right' | 'bottom' | 'left' | string;
|
4
4
|
export declare const imageProps: {
|
5
5
|
src: StringConstructor;
|
6
6
|
alt: StringConstructor;
|
@@ -31,7 +31,7 @@ export declare const imageProps: {
|
|
31
31
|
default: string;
|
32
32
|
};
|
33
33
|
};
|
34
|
-
export
|
34
|
+
export type ImageProps = ExtractPropTypes<typeof imageProps>;
|
35
35
|
declare const _default: import("vue").DefineComponent<{
|
36
36
|
src: StringConstructor;
|
37
37
|
alt: StringConstructor;
|
package/es/image/types.d.ts
CHANGED
@@ -55,7 +55,7 @@ export declare const imagePreviewProps: {
|
|
55
55
|
default: PopupCloseIconPosition;
|
56
56
|
};
|
57
57
|
};
|
58
|
-
export
|
58
|
+
export type ImagePreviewProps = ExtractPropTypes<typeof imagePreviewProps>;
|
59
59
|
declare const _default: import("vue").DefineComponent<{
|
60
60
|
show: BooleanConstructor;
|
61
61
|
loop: {
|
@@ -109,7 +109,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
109
109
|
type: PropType<PopupCloseIconPosition>;
|
110
110
|
default: PopupCloseIconPosition;
|
111
111
|
};
|
112
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "close" | "closed" | "update:show" | "scale")[], "change" | "close" | "closed" | "update:show" | "scale", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
112
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "close" | "closed" | "update:show" | "scale" | "longPress")[], "change" | "close" | "closed" | "update:show" | "scale" | "longPress", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
113
113
|
show: BooleanConstructor;
|
114
114
|
loop: {
|
115
115
|
type: BooleanConstructor;
|
@@ -168,6 +168,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
168
168
|
onClosed?: ((...args: any[]) => any) | undefined;
|
169
169
|
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
170
170
|
onScale?: ((...args: any[]) => any) | undefined;
|
171
|
+
onLongPress?: ((...args: any[]) => any) | undefined;
|
171
172
|
}, {
|
172
173
|
loop: boolean;
|
173
174
|
overlay: boolean;
|
@@ -33,7 +33,7 @@ const imagePreviewProps = {
|
|
33
33
|
var stdin_default = defineComponent({
|
34
34
|
name,
|
35
35
|
props: imagePreviewProps,
|
36
|
-
emits: ["scale", "close", "closed", "change", "update:show"],
|
36
|
+
emits: ["scale", "close", "closed", "change", "longPress", "update:show"],
|
37
37
|
setup(props, {
|
38
38
|
emit,
|
39
39
|
slots
|
@@ -93,7 +93,7 @@ var stdin_default = defineComponent({
|
|
93
93
|
"indicatorColor": "white",
|
94
94
|
"onChange": setActive
|
95
95
|
}, {
|
96
|
-
default: () => [props.images.map((image) => _createVNode(ImagePreviewItem, {
|
96
|
+
default: () => [props.images.map((image, index) => _createVNode(ImagePreviewItem, {
|
97
97
|
"src": image,
|
98
98
|
"show": props.show,
|
99
99
|
"active": state.active,
|
@@ -102,7 +102,10 @@ var stdin_default = defineComponent({
|
|
102
102
|
"rootWidth": state.rootWidth,
|
103
103
|
"rootHeight": state.rootHeight,
|
104
104
|
"onScale": emitScale,
|
105
|
-
"onClose": emitClose
|
105
|
+
"onClose": emitClose,
|
106
|
+
"onLongPress": () => emit("longPress", {
|
107
|
+
index
|
108
|
+
})
|
106
109
|
}, {
|
107
110
|
image: slots.image
|
108
111
|
}))]
|
@@ -18,7 +18,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
18
18
|
type: NumberConstructor;
|
19
19
|
required: true;
|
20
20
|
};
|
21
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "scale")[], "close" | "scale", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
21
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "scale" | "longPress")[], "close" | "scale" | "longPress", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
22
22
|
src: StringConstructor;
|
23
23
|
show: BooleanConstructor;
|
24
24
|
active: NumberConstructor;
|
@@ -41,6 +41,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
41
41
|
}>> & {
|
42
42
|
onClose?: ((...args: any[]) => any) | undefined;
|
43
43
|
onScale?: ((...args: any[]) => any) | undefined;
|
44
|
+
onLongPress?: ((...args: any[]) => any) | undefined;
|
44
45
|
}, {
|
45
46
|
show: boolean;
|
46
47
|
}>;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { createVNode as _createVNode } from "vue";
|
2
2
|
import { ref, watch, computed, reactive, defineComponent } from "vue";
|
3
|
-
import { clamp, numericProp, preventDefault, createNamespace, makeRequiredProp } from "../utils/index.mjs";
|
3
|
+
import { clamp, numericProp, preventDefault, createNamespace, makeRequiredProp, LONG_PRESS_START_TIME } from "../utils/index.mjs";
|
4
4
|
import { useTouch } from "../composables/use-touch.mjs";
|
5
5
|
import { useEventListener } from "@vant/use";
|
6
6
|
import { Image } from "../image/index.mjs";
|
@@ -18,7 +18,7 @@ var stdin_default = defineComponent({
|
|
18
18
|
rootWidth: makeRequiredProp(Number),
|
19
19
|
rootHeight: makeRequiredProp(Number)
|
20
20
|
},
|
21
|
-
emits: ["scale", "close"],
|
21
|
+
emits: ["scale", "close", "longPress"],
|
22
22
|
setup(props, {
|
23
23
|
emit,
|
24
24
|
slots
|
@@ -165,16 +165,20 @@ var stdin_default = defineComponent({
|
|
165
165
|
const deltaTime = Date.now() - touchStartTime;
|
166
166
|
const TAP_TIME = 250;
|
167
167
|
const TAP_OFFSET = 5;
|
168
|
-
if (offsetX.value < TAP_OFFSET && offsetY.value < TAP_OFFSET
|
169
|
-
if (
|
170
|
-
|
171
|
-
|
172
|
-
toggleScale();
|
173
|
-
} else {
|
174
|
-
doubleTapTimer = setTimeout(() => {
|
175
|
-
emit("close");
|
168
|
+
if (offsetX.value < TAP_OFFSET && offsetY.value < TAP_OFFSET) {
|
169
|
+
if (deltaTime < TAP_TIME) {
|
170
|
+
if (doubleTapTimer) {
|
171
|
+
clearTimeout(doubleTapTimer);
|
176
172
|
doubleTapTimer = null;
|
177
|
-
|
173
|
+
toggleScale();
|
174
|
+
} else {
|
175
|
+
doubleTapTimer = setTimeout(() => {
|
176
|
+
emit("close");
|
177
|
+
doubleTapTimer = null;
|
178
|
+
}, TAP_TIME);
|
179
|
+
}
|
180
|
+
} else if (deltaTime > LONG_PRESS_START_TIME) {
|
181
|
+
emit("longPress");
|
178
182
|
}
|
179
183
|
}
|
180
184
|
};
|
@@ -52,7 +52,7 @@ export declare const ImagePreview: import("../utils").WithInstall<import("vue").
|
|
52
52
|
type: import("vue").PropType<import("..").PopupCloseIconPosition>;
|
53
53
|
default: import("..").PopupCloseIconPosition;
|
54
54
|
};
|
55
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "close" | "closed" | "update:show" | "scale")[], "change" | "close" | "closed" | "update:show" | "scale", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
55
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "close" | "closed" | "update:show" | "scale" | "longPress")[], "change" | "close" | "closed" | "update:show" | "scale" | "longPress", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
56
56
|
show: BooleanConstructor;
|
57
57
|
loop: {
|
58
58
|
type: BooleanConstructor;
|
@@ -111,6 +111,7 @@ export declare const ImagePreview: import("../utils").WithInstall<import("vue").
|
|
111
111
|
onClosed?: ((...args: any[]) => any) | undefined;
|
112
112
|
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
113
113
|
onScale?: ((...args: any[]) => any) | undefined;
|
114
|
+
onLongPress?: ((...args: any[]) => any) | undefined;
|
114
115
|
}, {
|
115
116
|
loop: boolean;
|
116
117
|
overlay: boolean;
|
@@ -3,7 +3,7 @@ import type { Interceptor } from '../utils';
|
|
3
3
|
import type { SwipeToOptions } from '../swipe';
|
4
4
|
import type { PopupCloseIconPosition } from '../popup';
|
5
5
|
import type { ImagePreviewProps } from './ImagePreview';
|
6
|
-
export
|
6
|
+
export type ImagePreviewOptions = {
|
7
7
|
loop?: boolean;
|
8
8
|
images: string[];
|
9
9
|
maxZoom?: number;
|
@@ -29,15 +29,15 @@ export declare type ImagePreviewOptions = {
|
|
29
29
|
}): void;
|
30
30
|
onChange?(index: number): void;
|
31
31
|
};
|
32
|
-
export
|
32
|
+
export type ImagePreviewScaleEventParams = {
|
33
33
|
scale: number;
|
34
34
|
index: number;
|
35
35
|
};
|
36
|
-
export
|
36
|
+
export type ImagePreviewExpose = {
|
37
37
|
swipeTo: (index: number, options?: SwipeToOptions) => void;
|
38
38
|
};
|
39
|
-
export
|
40
|
-
export
|
39
|
+
export type ImagePreviewInstance = ComponentPublicInstance<ImagePreviewProps, ImagePreviewExpose>;
|
40
|
+
export type ImagePreviewThemeVars = {
|
41
41
|
imagePreviewIndexTextColor?: string;
|
42
42
|
imagePreviewIndexFontSize?: string;
|
43
43
|
imagePreviewIndexLineHeight?: number | string;
|
@@ -2,7 +2,7 @@ import { type ExtractPropTypes } from 'vue';
|
|
2
2
|
export declare const indexAnchorProps: {
|
3
3
|
index: (NumberConstructor | StringConstructor)[];
|
4
4
|
};
|
5
|
-
export
|
5
|
+
export type IndexAnchorProps = ExtractPropTypes<typeof indexAnchorProps>;
|
6
6
|
declare const _default: import("vue").DefineComponent<{
|
7
7
|
index: (NumberConstructor | StringConstructor)[];
|
8
8
|
}, (() => JSX.Element) | undefined, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
@@ -19,7 +19,7 @@ export declare const indexBarProps: {
|
|
19
19
|
default: typeof genAlphabet;
|
20
20
|
};
|
21
21
|
};
|
22
|
-
export
|
22
|
+
export type IndexBarProps = ExtractPropTypes<typeof indexBarProps>;
|
23
23
|
export declare const INDEX_BAR_KEY: InjectionKey<IndexBarProvide>;
|
24
24
|
declare const _default: import("vue").DefineComponent<{
|
25
25
|
sticky: {
|
package/es/index-bar/types.d.ts
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
import type { ComponentPublicInstance } from 'vue';
|
2
2
|
import type { Numeric } from '../utils';
|
3
3
|
import type { IndexBarProps } from './IndexBar';
|
4
|
-
export
|
4
|
+
export type IndexBarProvide = {
|
5
5
|
props: IndexBarProps;
|
6
6
|
};
|
7
|
-
export
|
7
|
+
export type IndexBarExpose = {
|
8
8
|
scrollTo: (index: Numeric) => void;
|
9
9
|
};
|
10
|
-
export
|
11
|
-
export
|
10
|
+
export type IndexBarInstance = ComponentPublicInstance<IndexBarProps, IndexBarExpose>;
|
11
|
+
export type IndexBarThemeVars = {
|
12
12
|
indexBarSidebarZIndex?: number | string;
|
13
13
|
indexBarIndexFontSize?: string;
|
14
14
|
indexBarIndexLineHeight?: number | string;
|