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/swipe-cell/types.d.ts
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
import type { ComponentPublicInstance } from 'vue';
|
2
2
|
import type { SwipeCellProps } from './SwipeCell';
|
3
|
-
export
|
4
|
-
export
|
5
|
-
export
|
3
|
+
export type SwipeCellSide = 'left' | 'right';
|
4
|
+
export type SwipeCellPosition = SwipeCellSide | 'cell' | 'outside';
|
5
|
+
export type SwipeCellExpose = {
|
6
6
|
open: (side: SwipeCellSide) => void;
|
7
7
|
close: (position: SwipeCellPosition) => void;
|
8
8
|
};
|
9
|
-
export
|
9
|
+
export type SwipeCellInstance = ComponentPublicInstance<SwipeCellProps, SwipeCellExpose>;
|
package/es/switch/Switch.d.ts
CHANGED
@@ -15,7 +15,7 @@ export declare const switchProps: {
|
|
15
15
|
default: unknown;
|
16
16
|
};
|
17
17
|
};
|
18
|
-
export
|
18
|
+
export type SwitchProps = ExtractPropTypes<typeof switchProps>;
|
19
19
|
declare const _default: import("vue").DefineComponent<{
|
20
20
|
size: (NumberConstructor | StringConstructor)[];
|
21
21
|
loading: BooleanConstructor;
|
package/es/switch/types.d.ts
CHANGED
package/es/tab/Tab.d.ts
CHANGED
@@ -16,7 +16,7 @@ export declare const tabProps: {
|
|
16
16
|
default: true;
|
17
17
|
};
|
18
18
|
};
|
19
|
-
export
|
19
|
+
export type TabProps = ExtractPropTypes<typeof tabProps>;
|
20
20
|
declare const _default: import("vue").DefineComponent<{
|
21
21
|
to: PropType<import("vue-router").RouteLocationRaw>;
|
22
22
|
url: StringConstructor;
|
package/es/tabbar/Tabbar.d.ts
CHANGED
@@ -24,8 +24,8 @@ export declare const tabbarProps: {
|
|
24
24
|
default: null;
|
25
25
|
};
|
26
26
|
};
|
27
|
-
export
|
28
|
-
export
|
27
|
+
export type TabbarProps = ExtractPropTypes<typeof tabbarProps>;
|
28
|
+
export type TabbarProvide = {
|
29
29
|
props: TabbarProps;
|
30
30
|
setActive: (active: Numeric, afterChange: () => void) => void;
|
31
31
|
};
|
package/es/tabbar/types.d.ts
CHANGED
@@ -12,7 +12,7 @@ export declare const tabbarItemProps: {
|
|
12
12
|
badgeProps: PropType<Partial<BadgeProps>>;
|
13
13
|
iconPrefix: StringConstructor;
|
14
14
|
};
|
15
|
-
export
|
15
|
+
export type TabbarItemProps = ExtractPropTypes<typeof tabbarItemProps>;
|
16
16
|
declare const _default: import("vue").DefineComponent<{
|
17
17
|
to: PropType<import("vue-router").RouteLocationRaw>;
|
18
18
|
url: StringConstructor;
|
package/es/tabs/Tabs.d.ts
CHANGED
@@ -44,7 +44,7 @@ export declare const tabsProps: {
|
|
44
44
|
titleActiveColor: StringConstructor;
|
45
45
|
titleInactiveColor: StringConstructor;
|
46
46
|
};
|
47
|
-
export
|
47
|
+
export type TabsProps = ExtractPropTypes<typeof tabsProps>;
|
48
48
|
export declare const TABS_KEY: InjectionKey<TabsProvide>;
|
49
49
|
declare const _default: import("vue").DefineComponent<{
|
50
50
|
type: {
|
package/es/tabs/types.d.ts
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
import type { ComponentPublicInstance, ComputedRef } from 'vue';
|
2
2
|
import type { Numeric } from '../utils';
|
3
3
|
import type { TabsProps } from './Tabs';
|
4
|
-
export
|
5
|
-
export
|
4
|
+
export type TabsType = 'line' | 'card';
|
5
|
+
export type TabsClickTabEventParams = {
|
6
6
|
name: Numeric;
|
7
7
|
title: string;
|
8
8
|
event: MouseEvent;
|
9
9
|
disabled: boolean;
|
10
10
|
};
|
11
|
-
export
|
11
|
+
export type TabsProvide = {
|
12
12
|
id: string;
|
13
13
|
props: TabsProps;
|
14
14
|
setLine: () => void;
|
@@ -16,12 +16,12 @@ export declare type TabsProvide = {
|
|
16
16
|
scrollIntoView: (immediate?: boolean) => void;
|
17
17
|
currentName: ComputedRef<Numeric | undefined>;
|
18
18
|
};
|
19
|
-
export
|
19
|
+
export type TabsExpose = {
|
20
20
|
resize: () => void;
|
21
21
|
scrollTo: (name: Numeric) => void;
|
22
22
|
};
|
23
|
-
export
|
24
|
-
export
|
23
|
+
export type TabsInstance = ComponentPublicInstance<TabsProps, TabsExpose>;
|
24
|
+
export type TabsThemeVars = {
|
25
25
|
tabTextColor?: string;
|
26
26
|
tabActiveTextColor?: string;
|
27
27
|
tabDisabledTextColor?: string;
|
package/es/tag/Tag.d.ts
CHANGED
@@ -17,7 +17,7 @@ export declare const tagProps: {
|
|
17
17
|
textColor: StringConstructor;
|
18
18
|
closeable: BooleanConstructor;
|
19
19
|
};
|
20
|
-
export
|
20
|
+
export type TagProps = ExtractPropTypes<typeof tagProps>;
|
21
21
|
declare const _default: import("vue").DefineComponent<{
|
22
22
|
size: PropType<TagSize>;
|
23
23
|
mark: BooleanConstructor;
|
package/es/tag/types.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
export
|
2
|
-
export
|
3
|
-
export
|
1
|
+
export type TagSize = 'large' | 'medium';
|
2
|
+
export type TagType = 'default' | 'primary' | 'success' | 'warning' | 'danger';
|
3
|
+
export type TagThemeVars = {
|
4
4
|
tagPadding?: string;
|
5
5
|
tagTextColor?: string;
|
6
6
|
tagFontSize?: string;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { type PropType, type ExtractPropTypes } from 'vue';
|
2
|
-
export
|
2
|
+
export type TimePickerColumnType = 'hour' | 'minute' | 'second';
|
3
3
|
export declare const timePickerProps: {
|
4
4
|
loading: BooleanConstructor;
|
5
5
|
readonly: BooleanConstructor;
|
@@ -64,7 +64,7 @@ export declare const timePickerProps: {
|
|
64
64
|
default: () => string[];
|
65
65
|
};
|
66
66
|
};
|
67
|
-
export
|
67
|
+
export type TimePickerProps = ExtractPropTypes<typeof timePickerProps>;
|
68
68
|
declare const _default: import("vue").DefineComponent<{
|
69
69
|
loading: BooleanConstructor;
|
70
70
|
readonly: BooleanConstructor;
|
@@ -128,7 +128,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
128
128
|
type: PropType<TimePickerColumnType[]>;
|
129
129
|
default: () => string[];
|
130
130
|
};
|
131
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "
|
131
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "cancel" | "change" | "confirm")[], "update:modelValue" | "cancel" | "change" | "confirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
132
132
|
loading: BooleanConstructor;
|
133
133
|
readonly: BooleanConstructor;
|
134
134
|
allowHtml: BooleanConstructor;
|
@@ -38,7 +38,10 @@ var stdin_default = defineComponent({
|
|
38
38
|
case "second":
|
39
39
|
return genOptions(+props.minSecond, +props.maxSecond, type, formatter, filter);
|
40
40
|
default:
|
41
|
-
|
41
|
+
if (process.env.NODE_ENV !== "production") {
|
42
|
+
throw new Error(`[Vant] DatePicker: unsupported columns type: ${type}`);
|
43
|
+
}
|
44
|
+
return [];
|
42
45
|
}
|
43
46
|
}));
|
44
47
|
watch(currentValues, (newValues) => {
|
@@ -62,7 +62,7 @@ export declare const TimePicker: import("../utils").WithInstall<import("vue").De
|
|
62
62
|
type: import("vue").PropType<import("./TimePicker").TimePickerColumnType[]>;
|
63
63
|
default: () => string[];
|
64
64
|
};
|
65
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "
|
65
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "cancel" | "change" | "confirm")[], "update:modelValue" | "cancel" | "change" | "confirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
66
66
|
loading: BooleanConstructor;
|
67
67
|
readonly: BooleanConstructor;
|
68
68
|
allowHtml: BooleanConstructor;
|
package/es/toast/Toast.d.ts
CHANGED
@@ -34,7 +34,7 @@ export declare const toastProps: {
|
|
34
34
|
closeOnClick: BooleanConstructor;
|
35
35
|
closeOnClickOverlay: BooleanConstructor;
|
36
36
|
};
|
37
|
-
export
|
37
|
+
export type ToastProps = ExtractPropTypes<typeof toastProps>;
|
38
38
|
declare const _default: import("vue").DefineComponent<{
|
39
39
|
icon: StringConstructor;
|
40
40
|
show: BooleanConstructor;
|
package/es/toast/types.d.ts
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
import type { ComponentPublicInstance, TeleportProps } from 'vue';
|
2
2
|
import type { LoadingType } from '../loading';
|
3
3
|
import type { Numeric } from '../utils';
|
4
|
-
export
|
5
|
-
export
|
6
|
-
export
|
7
|
-
export
|
4
|
+
export type ToastType = 'text' | 'loading' | 'success' | 'fail' | 'html';
|
5
|
+
export type ToastPosition = 'top' | 'middle' | 'bottom';
|
6
|
+
export type ToastWordBreak = 'break-all' | 'break-word' | 'normal';
|
7
|
+
export type ToastOptions = {
|
8
8
|
icon?: string;
|
9
9
|
type?: ToastType;
|
10
10
|
mask?: boolean;
|
@@ -27,7 +27,7 @@ export declare type ToastOptions = {
|
|
27
27
|
overlayStyle?: Record<string, any>;
|
28
28
|
closeOnClickOverlay?: boolean;
|
29
29
|
};
|
30
|
-
export
|
30
|
+
export type ToastWrapperInstance = ComponentPublicInstance<{
|
31
31
|
message: Numeric;
|
32
32
|
}, {
|
33
33
|
close: () => void;
|
@@ -36,7 +36,7 @@ export declare type ToastWrapperInstance = ComponentPublicInstance<{
|
|
36
36
|
*/
|
37
37
|
open: (props: Record<string, any>) => void;
|
38
38
|
}>;
|
39
|
-
export
|
39
|
+
export type ToastThemeVars = {
|
40
40
|
toastMaxWidth?: string;
|
41
41
|
toastFontSize?: string;
|
42
42
|
toastTextColor?: string;
|
@@ -1,11 +1,11 @@
|
|
1
1
|
import { type PropType, type ExtractPropTypes } from 'vue';
|
2
2
|
import { type Numeric } from '../utils';
|
3
|
-
export
|
3
|
+
export type TreeSelectChild = {
|
4
4
|
id: Numeric;
|
5
5
|
text: string;
|
6
6
|
disabled?: boolean;
|
7
7
|
};
|
8
|
-
export
|
8
|
+
export type TreeSelectItem = {
|
9
9
|
dot?: boolean;
|
10
10
|
text: string;
|
11
11
|
badge?: Numeric;
|
@@ -39,7 +39,7 @@ export declare const treeSelectProps: {
|
|
39
39
|
default: number;
|
40
40
|
};
|
41
41
|
};
|
42
|
-
export
|
42
|
+
export type TreeSelectProps = ExtractPropTypes<typeof treeSelectProps>;
|
43
43
|
declare const _default: import("vue").DefineComponent<{
|
44
44
|
max: {
|
45
45
|
type: (NumberConstructor | StringConstructor)[];
|
@@ -64,7 +64,7 @@ export declare const uploaderProps: {
|
|
64
64
|
default: number;
|
65
65
|
};
|
66
66
|
};
|
67
|
-
export
|
67
|
+
export type UploaderProps = ExtractPropTypes<typeof uploaderProps>;
|
68
68
|
declare const _default: import("vue").DefineComponent<{
|
69
69
|
name: {
|
70
70
|
type: (NumberConstructor | StringConstructor)[];
|
package/es/uploader/Uploader.mjs
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { createVNode as _createVNode, mergeProps as _mergeProps } from "vue";
|
1
|
+
import { withDirectives as _withDirectives, vShow as _vShow, createVNode as _createVNode, mergeProps as _mergeProps } from "vue";
|
2
2
|
import { ref, reactive, defineComponent, onBeforeUnmount } from "vue";
|
3
3
|
import { pick, extend, toArray, isPromise, truthProp, getSizeStyle, makeArrayProp, makeStringProp, makeNumericProp } from "../utils/index.mjs";
|
4
4
|
import { bem, name, isOversize, filterFiles, isImageFile, readFileContent } from "./utils.mjs";
|
@@ -189,7 +189,7 @@ var stdin_default = defineComponent({
|
|
189
189
|
};
|
190
190
|
const onClickUpload = (event) => emit("clickUpload", event);
|
191
191
|
const renderUpload = () => {
|
192
|
-
if (props.modelValue.length >= props.maxCount
|
192
|
+
if (props.modelValue.length >= props.maxCount) {
|
193
193
|
return;
|
194
194
|
}
|
195
195
|
const Input = props.readonly ? null : _createVNode("input", {
|
@@ -208,7 +208,7 @@ var stdin_default = defineComponent({
|
|
208
208
|
"onClick": onClickUpload
|
209
209
|
}, [slots.default(), Input]);
|
210
210
|
}
|
211
|
-
return _createVNode("div", {
|
211
|
+
return _withDirectives(_createVNode("div", {
|
212
212
|
"class": bem("upload", {
|
213
213
|
readonly: props.readonly
|
214
214
|
}),
|
@@ -219,7 +219,7 @@ var stdin_default = defineComponent({
|
|
219
219
|
"class": bem("upload-icon")
|
220
220
|
}, null), props.uploadText && _createVNode("span", {
|
221
221
|
"class": bem("upload-text")
|
222
|
-
}, [props.uploadText]), Input]);
|
222
|
+
}, [props.uploadText]), Input]), [[_vShow, props.showUpload]]);
|
223
223
|
};
|
224
224
|
const chooseFile = () => {
|
225
225
|
if (inputRef.value && !props.disabled) {
|
package/es/uploader/types.d.ts
CHANGED
@@ -2,8 +2,8 @@ import type { ComponentPublicInstance } from 'vue';
|
|
2
2
|
import type { ImageFit } from '../image';
|
3
3
|
import type { Numeric, Interceptor } from '../utils';
|
4
4
|
import type { UploaderProps } from './Uploader';
|
5
|
-
export
|
6
|
-
export
|
5
|
+
export type UploaderResultType = 'dataUrl' | 'text' | 'file';
|
6
|
+
export type UploaderFileListItem = {
|
7
7
|
url?: string;
|
8
8
|
file?: File;
|
9
9
|
content?: string;
|
@@ -15,21 +15,21 @@ export declare type UploaderFileListItem = {
|
|
15
15
|
previewSize?: Numeric;
|
16
16
|
beforeDelete?: Interceptor;
|
17
17
|
};
|
18
|
-
export
|
19
|
-
export
|
18
|
+
export type UploaderMaxSize = Numeric | ((file: File) => boolean);
|
19
|
+
export type UploaderBeforeRead = (file: File | File[], detail: {
|
20
20
|
name: Numeric;
|
21
21
|
index: number;
|
22
22
|
}) => boolean | undefined | Promise<File | File[] | undefined>;
|
23
|
-
export
|
23
|
+
export type UploaderAfterRead = (items: UploaderFileListItem | UploaderFileListItem[], detail: {
|
24
24
|
name: Numeric;
|
25
25
|
index: number;
|
26
26
|
}) => void;
|
27
|
-
export
|
27
|
+
export type UploaderExpose = {
|
28
28
|
chooseFile: () => void;
|
29
29
|
closeImagePreview: () => void;
|
30
30
|
};
|
31
|
-
export
|
32
|
-
export
|
31
|
+
export type UploaderInstance = ComponentPublicInstance<UploaderProps, UploaderExpose>;
|
32
|
+
export type UploaderThemeVars = {
|
33
33
|
uploaderSize?: string;
|
34
34
|
uploaderIconSize?: string;
|
35
35
|
uploaderIconColor?: string;
|
package/es/utils/basic.d.ts
CHANGED
@@ -7,10 +7,10 @@ export declare const extend: {
|
|
7
7
|
(target: object, ...sources: any[]): any;
|
8
8
|
};
|
9
9
|
export declare const inBrowser: boolean;
|
10
|
-
export
|
11
|
-
export
|
10
|
+
export type Numeric = number | string;
|
11
|
+
export type ComponentInstance = ComponentPublicInstance<{}, any>;
|
12
12
|
export declare function get(object: any, path: string): any;
|
13
|
-
export
|
13
|
+
export type Writeable<T> = {
|
14
14
|
-readonly [P in keyof T]: T[P];
|
15
15
|
};
|
16
16
|
export declare function pick<T, U extends keyof T>(obj: T, keys: ReadonlyArray<U>, ignoreUndefined?: boolean): Writeable<Pick<T, U>>;
|
package/es/utils/constant.d.ts
CHANGED
@@ -9,3 +9,4 @@ export declare const BORDER_TOP_BOTTOM: string;
|
|
9
9
|
export declare const BORDER_UNSET_TOP_BOTTOM: string;
|
10
10
|
export declare const HAPTICS_FEEDBACK = "van-haptics-feedback";
|
11
11
|
export declare const FORM_KEY: InjectionKey<FormProvide>;
|
12
|
+
export declare const LONG_PRESS_START_TIME = 500;
|
package/es/utils/constant.mjs
CHANGED
@@ -7,6 +7,7 @@ const BORDER_TOP_BOTTOM = `${BORDER}--top-bottom`;
|
|
7
7
|
const BORDER_UNSET_TOP_BOTTOM = `${BORDER}-unset--top-bottom`;
|
8
8
|
const HAPTICS_FEEDBACK = "van-haptics-feedback";
|
9
9
|
const FORM_KEY = Symbol("van-form");
|
10
|
+
const LONG_PRESS_START_TIME = 500;
|
10
11
|
export {
|
11
12
|
BORDER,
|
12
13
|
BORDER_BOTTOM,
|
@@ -16,5 +17,6 @@ export {
|
|
16
17
|
BORDER_TOP_BOTTOM,
|
17
18
|
BORDER_UNSET_TOP_BOTTOM,
|
18
19
|
FORM_KEY,
|
19
|
-
HAPTICS_FEEDBACK
|
20
|
+
HAPTICS_FEEDBACK,
|
21
|
+
LONG_PRESS_START_TIME
|
20
22
|
};
|
package/es/utils/create.d.ts
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
export declare function createTranslate(name: string): (path: string, ...args: unknown[]) => any;
|
2
|
-
export
|
3
|
-
export
|
2
|
+
export type Translate = ReturnType<typeof createTranslate>;
|
3
|
+
export type Mod = string | {
|
4
4
|
[key: string]: any;
|
5
5
|
};
|
6
|
-
export
|
6
|
+
export type Mods = Mod | Mod[];
|
7
7
|
/**
|
8
8
|
* bem helper
|
9
9
|
* b() // 'button'
|
@@ -13,5 +13,5 @@ export declare type Mods = Mod | Mod[];
|
|
13
13
|
* b(['disabled', 'primary']) // 'button button--disabled button--primary'
|
14
14
|
*/
|
15
15
|
export declare function createBEM(name: string): (el?: Mods, mods?: Mods) => Mods;
|
16
|
-
export
|
16
|
+
export type BEM = ReturnType<typeof createBEM>;
|
17
17
|
export declare function createNamespace(name: string): readonly [string, (el?: Mods | undefined, mods?: Mods | undefined) => Mods, (path: string, ...args: unknown[]) => any];
|
package/es/utils/dom.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { Ref } from 'vue';
|
2
|
-
export
|
2
|
+
export type ScrollElement = Element | Window;
|
3
3
|
export declare function getScrollTop(el: ScrollElement): number;
|
4
4
|
export declare function setScrollTop(el: ScrollElement, value: number): void;
|
5
5
|
export declare function getRootScrollTop(): number;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export
|
1
|
+
export type Interceptor = (...args: any[]) => Promise<boolean> | boolean | undefined | void;
|
2
2
|
export declare function callInterceptor(interceptor: Interceptor | undefined, { args, done, canceled, }: {
|
3
3
|
args?: unknown[];
|
4
4
|
done: () => void;
|
@@ -9,6 +9,6 @@ export declare function usePopupState(): {
|
|
9
9
|
toggle: (show: boolean) => void;
|
10
10
|
};
|
11
11
|
export declare function mountComponent(RootComponent: Component): {
|
12
|
-
instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}
|
12
|
+
instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
|
13
13
|
unmount(): void;
|
14
14
|
};
|
@@ -1,12 +1,12 @@
|
|
1
1
|
import type { App, Component } from 'vue';
|
2
|
-
|
2
|
+
type EventShim = {
|
3
3
|
new (...args: any[]): {
|
4
4
|
$props: {
|
5
5
|
onClick?: (...args: any[]) => void;
|
6
6
|
};
|
7
7
|
};
|
8
8
|
};
|
9
|
-
export
|
9
|
+
export type WithInstall<T> = T & {
|
10
10
|
install(app: App): void;
|
11
11
|
} & EventShim;
|
12
12
|
export declare function withInstall<T extends Component>(options: T): WithInstall<T>;
|
@@ -7,7 +7,7 @@ export declare const actionBarProps: {
|
|
7
7
|
default: true;
|
8
8
|
};
|
9
9
|
};
|
10
|
-
export
|
10
|
+
export type ActionBarProps = ExtractPropTypes<typeof actionBarProps>;
|
11
11
|
declare const _default: import("vue").DefineComponent<{
|
12
12
|
placeholder: BooleanConstructor;
|
13
13
|
safeAreaInsetBottom: {
|
@@ -12,7 +12,7 @@ export declare const actionBarButtonProps: {
|
|
12
12
|
loading: BooleanConstructor;
|
13
13
|
disabled: BooleanConstructor;
|
14
14
|
};
|
15
|
-
export
|
15
|
+
export type ActionBarButtonProps = ExtractPropTypes<typeof actionBarButtonProps>;
|
16
16
|
declare const _default: import("vue").DefineComponent<{
|
17
17
|
to: PropType<import("vue-router").RouteLocationRaw>;
|
18
18
|
url: StringConstructor;
|
@@ -14,7 +14,7 @@ export declare const actionBarIconProps: {
|
|
14
14
|
badgeProps: PropType<Partial<BadgeProps>>;
|
15
15
|
iconPrefix: StringConstructor;
|
16
16
|
};
|
17
|
-
export
|
17
|
+
export type ActionBarIconProps = ExtractPropTypes<typeof actionBarIconProps>;
|
18
18
|
declare const _default: import("vue").DefineComponent<{
|
19
19
|
to: PropType<import("vue-router").RouteLocationRaw>;
|
20
20
|
url: StringConstructor;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { type ExtractPropTypes } from 'vue';
|
2
|
-
export
|
2
|
+
export type ActionSheetAction = {
|
3
3
|
name?: string;
|
4
4
|
color?: string;
|
5
5
|
subname?: string;
|
@@ -63,7 +63,7 @@ export declare const actionSheetProps: {
|
|
63
63
|
default: true;
|
64
64
|
};
|
65
65
|
};
|
66
|
-
export
|
66
|
+
export type ActionSheetProps = ExtractPropTypes<typeof actionSheetProps>;
|
67
67
|
declare const _default: import("vue").DefineComponent<{
|
68
68
|
show: BooleanConstructor;
|
69
69
|
zIndex: (NumberConstructor | StringConstructor)[];
|
@@ -118,7 +118,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
118
118
|
type: BooleanConstructor;
|
119
119
|
default: true;
|
120
120
|
};
|
121
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "
|
121
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "cancel" | "update:show")[], "select" | "cancel" | "update:show", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
122
122
|
show: BooleanConstructor;
|
123
123
|
zIndex: (NumberConstructor | StringConstructor)[];
|
124
124
|
overlay: {
|
@@ -1 +1 @@
|
|
1
|
-
:root{--van-action-sheet-max-height: 80%;--van-action-sheet-header-height: 48px;--van-action-sheet-header-font-size: var(--van-font-size-lg);--van-action-sheet-description-color: var(--van-text-color-2);--van-action-sheet-description-font-size: var(--van-font-size-md);--van-action-sheet-description-line-height: var(--van-line-height-md);--van-action-sheet-item-background: var(--van-background-2);--van-action-sheet-item-font-size: var(--van-font-size-lg);--van-action-sheet-item-line-height: var(--van-line-height-lg);--van-action-sheet-item-text-color: var(--van-text-color);--van-action-sheet-item-disabled-text-color: var(--van-text-color-3);--van-action-sheet-subname-color: var(--van-text-color-2);--van-action-sheet-subname-font-size: var(--van-font-size-sm);--van-action-sheet-subname-line-height: var(--van-line-height-sm);--van-action-sheet-close-icon-size: 22px;--van-action-sheet-close-icon-color: var(--van-gray-5);--van-action-sheet-close-icon-padding: 0 var(--van-padding-md);--van-action-sheet-cancel-text-color: var(--van-gray-7);--van-action-sheet-cancel-padding-top: var(--van-padding-xs);--van-action-sheet-cancel-padding-color: var(--van-background);--van-action-sheet-loading-icon-size: 22px}.van-action-sheet{display:flex;flex-direction:column;max-height:var(--van-action-sheet-max-height);overflow:hidden;color:var(--van-action-sheet-item-text-color)}.van-action-sheet__content{flex:1 auto;overflow-y:auto;-webkit-overflow-scrolling:touch}.van-action-sheet__item,.van-action-sheet__cancel{display:block;width:100%;padding:14px var(--van-padding-md);font-size:var(--van-action-sheet-item-font-size);background:var(--van-action-sheet-item-background);border:none;cursor:pointer}.van-action-sheet__item:active,.van-action-sheet__cancel:active{background-color:var(--van-active-color)}.van-action-sheet__item{line-height:var(--van-action-sheet-item-line-height)}.van-action-sheet__item--loading,.van-action-sheet__item--disabled{color:var(--van-action-sheet-item-disabled-text-color)}.van-action-sheet__item--loading:active,.van-action-sheet__item--disabled:active{background-color:var(--van-action-sheet-item-background)}.van-action-sheet__item--disabled{cursor:not-allowed}.van-action-sheet__item--loading{cursor:default}.van-action-sheet__cancel{flex-shrink:0;box-sizing:border-box;color:var(--van-action-sheet-cancel-text-color)}.van-action-sheet__subname{margin-top:var(--van-padding-xs);color:var(--van-action-sheet-subname-color);font-size:var(--van-action-sheet-subname-font-size);line-height:var(--van-action-sheet-subname-line-height)}.van-action-sheet__gap{display:block;height:var(--van-action-sheet-cancel-padding-top);background:var(--van-action-sheet-cancel-padding-color)}.van-action-sheet__header{flex-shrink:0;font-weight:var(--van-font-bold);font-size:var(--van-action-sheet-header-font-size);line-height:var(--van-action-sheet-header-height);text-align:center}.van-action-sheet__description{position:relative;flex-shrink:0;padding:20px var(--van-padding-md);color:var(--van-action-sheet-description-color);font-size:var(--van-action-sheet-description-font-size);line-height:var(--van-action-sheet-description-line-height);text-align:center}.van-action-sheet__description:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;right:var(--van-padding-md);bottom:0;left:var(--van-padding-md);border-bottom:1px solid var(--van-border-color);transform:scaleY(.5)}.van-action-sheet__loading-icon .van-loading__spinner{width:var(--van-action-sheet-loading-icon-size);height:var(--van-action-sheet-loading-icon-size)}.van-action-sheet__close{position:absolute;top:0;right:0;padding:var(--van-action-sheet-close-icon-padding);color:var(--van-action-sheet-close-icon-color);font-size:var(--van-action-sheet-close-icon-size);line-height:inherit}
|
1
|
+
:root{--van-action-sheet-max-height: 80%;--van-action-sheet-header-height: 48px;--van-action-sheet-header-font-size: var(--van-font-size-lg);--van-action-sheet-description-color: var(--van-text-color-2);--van-action-sheet-description-font-size: var(--van-font-size-md);--van-action-sheet-description-line-height: var(--van-line-height-md);--van-action-sheet-item-background: var(--van-background-2);--van-action-sheet-item-font-size: var(--van-font-size-lg);--van-action-sheet-item-line-height: var(--van-line-height-lg);--van-action-sheet-item-text-color: var(--van-text-color);--van-action-sheet-item-disabled-text-color: var(--van-text-color-3);--van-action-sheet-subname-color: var(--van-text-color-2);--van-action-sheet-subname-font-size: var(--van-font-size-sm);--van-action-sheet-subname-line-height: var(--van-line-height-sm);--van-action-sheet-close-icon-size: 22px;--van-action-sheet-close-icon-color: var(--van-gray-5);--van-action-sheet-close-icon-padding: 0 var(--van-padding-md);--van-action-sheet-cancel-text-color: var(--van-gray-7);--van-action-sheet-cancel-padding-top: var(--van-padding-xs);--van-action-sheet-cancel-padding-color: var(--van-background);--van-action-sheet-loading-icon-size: 22px}.van-action-sheet{display:flex;flex-direction:column;max-height:var(--van-action-sheet-max-height);overflow:hidden;color:var(--van-action-sheet-item-text-color)}.van-action-sheet__content{flex:1 auto;overflow-y:auto;-webkit-overflow-scrolling:touch}.van-action-sheet__item,.van-action-sheet__cancel{display:block;width:100%;padding:14px var(--van-padding-md);font-size:var(--van-action-sheet-item-font-size);background:var(--van-action-sheet-item-background);border:none;cursor:pointer}.van-action-sheet__item:active,.van-action-sheet__cancel:active{background-color:var(--van-active-color)}.van-action-sheet__item{line-height:var(--van-action-sheet-item-line-height)}.van-action-sheet__item--loading,.van-action-sheet__item--disabled{color:var(--van-action-sheet-item-disabled-text-color)}.van-action-sheet__item--loading:active,.van-action-sheet__item--disabled:active{background-color:var(--van-action-sheet-item-background)}.van-action-sheet__item--disabled{cursor:not-allowed}.van-action-sheet__item--loading{cursor:default}.van-action-sheet__cancel{flex-shrink:0;box-sizing:border-box;color:var(--van-action-sheet-cancel-text-color)}.van-action-sheet__subname{margin-top:var(--van-padding-xs);color:var(--van-action-sheet-subname-color);font-size:var(--van-action-sheet-subname-font-size);line-height:var(--van-action-sheet-subname-line-height)}.van-action-sheet__gap{display:block;height:var(--van-action-sheet-cancel-padding-top);background:var(--van-action-sheet-cancel-padding-color)}.van-action-sheet__header{flex-shrink:0;font-weight:var(--van-font-bold);font-size:var(--van-action-sheet-header-font-size);line-height:var(--van-action-sheet-header-height);text-align:center}.van-action-sheet__description{position:relative;flex-shrink:0;padding:20px var(--van-padding-md);color:var(--van-action-sheet-description-color);font-size:var(--van-action-sheet-description-font-size);line-height:var(--van-action-sheet-description-line-height);text-align:center}.van-action-sheet__description:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;right:var(--van-padding-md);bottom:0;left:var(--van-padding-md);border-bottom:1px solid var(--van-border-color);transform:scaleY(.5)}.van-action-sheet__loading-icon .van-loading__spinner{width:var(--van-action-sheet-loading-icon-size);height:var(--van-action-sheet-loading-icon-size)}.van-action-sheet__close{position:absolute;top:0;right:0;z-index:1;padding:var(--van-action-sheet-close-icon-padding);color:var(--van-action-sheet-close-icon-color);font-size:var(--van-action-sheet-close-icon-size);line-height:inherit}
|
@@ -52,7 +52,7 @@ export declare const ActionSheet: import("../utils").WithInstall<import("vue").D
|
|
52
52
|
type: BooleanConstructor;
|
53
53
|
default: true;
|
54
54
|
};
|
55
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "
|
55
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "cancel" | "update:show")[], "select" | "cancel" | "update:show", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
56
56
|
show: BooleanConstructor;
|
57
57
|
zIndex: (NumberConstructor | StringConstructor)[];
|
58
58
|
overlay: {
|
@@ -45,7 +45,7 @@ export declare const addressEditProps: {
|
|
45
45
|
default: typeof isMobile;
|
46
46
|
};
|
47
47
|
};
|
48
|
-
export
|
48
|
+
export type AddressEditProps = ExtractPropTypes<typeof addressEditProps>;
|
49
49
|
declare const _default: import("vue").DefineComponent<{
|
50
50
|
areaList: PropType<AreaList>;
|
51
51
|
isSaving: BooleanConstructor;
|
@@ -1,10 +1,10 @@
|
|
1
1
|
import type { ComponentPublicInstance } from 'vue';
|
2
2
|
import type { AddressEditProps } from './AddressEdit';
|
3
|
-
export
|
3
|
+
export type AddressEditSearchItem = {
|
4
4
|
name?: string;
|
5
5
|
address?: string;
|
6
6
|
};
|
7
|
-
export
|
7
|
+
export type AddressEditInfo = {
|
8
8
|
tel: string;
|
9
9
|
name: string;
|
10
10
|
city: string;
|
@@ -15,12 +15,12 @@ export declare type AddressEditInfo = {
|
|
15
15
|
isDefault?: boolean;
|
16
16
|
addressDetail: string;
|
17
17
|
};
|
18
|
-
export
|
18
|
+
export type AddressEditExpose = {
|
19
19
|
setAreaCode: (code?: string | undefined) => void;
|
20
20
|
setAddressDetail: (value: string) => void;
|
21
21
|
};
|
22
|
-
export
|
23
|
-
export
|
22
|
+
export type AddressEditInstance = ComponentPublicInstance<AddressEditProps, AddressEditExpose>;
|
23
|
+
export type AddressEditThemeVars = {
|
24
24
|
addressEditPadding?: string;
|
25
25
|
addressEditButtonsPadding?: string;
|
26
26
|
addressEditButtonMarginBottom?: string;
|
@@ -18,7 +18,7 @@ export declare const addressListProps: {
|
|
18
18
|
addButtonText: StringConstructor;
|
19
19
|
defaultTagText: StringConstructor;
|
20
20
|
};
|
21
|
-
export
|
21
|
+
export type AddressListProps = ExtractPropTypes<typeof addressListProps>;
|
22
22
|
declare const _default: import("vue").DefineComponent<{
|
23
23
|
list: {
|
24
24
|
type: import("vue").PropType<AddressListAddress[]>;
|