vant 3.3.4 → 3.4.0
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 +2 -2
- package/es/action-bar/index.d.ts +6 -1
- package/es/action-bar-button/ActionBarButton.d.ts +4 -4
- package/es/action-bar-button/index.d.ts +8 -3
- package/es/action-bar-icon/ActionBarIcon.d.ts +69 -8
- package/es/action-bar-icon/ActionBarIcon.js +8 -5
- package/es/action-bar-icon/index.d.ts +49 -3
- package/es/action-sheet/ActionSheet.d.ts +2 -2
- package/es/action-sheet/ActionSheet.js +27 -15
- package/es/action-sheet/index.d.ts +6 -1
- package/es/address-edit/AddressEdit.d.ts +2 -2
- package/es/address-edit/AddressEditDetail.d.ts +2 -2
- package/es/address-edit/index.d.ts +6 -1
- package/es/address-list/AddressList.d.ts +2 -2
- package/es/address-list/AddressListItem.d.ts +2 -2
- package/es/address-list/index.d.ts +6 -1
- package/es/area/Area.d.ts +2 -2
- package/es/area/index.d.ts +6 -1
- package/es/badge/Badge.d.ts +15 -3
- package/es/badge/Badge.js +4 -3
- package/es/badge/index.css +1 -1
- package/es/badge/index.d.ts +15 -3
- package/es/badge/index.less +22 -1
- package/es/button/Button.d.ts +4 -4
- package/es/button/index.d.ts +8 -3
- package/es/calendar/Calendar.d.ts +5 -5
- package/es/calendar/CalendarDay.d.ts +2 -2
- package/es/calendar/CalendarHeader.d.ts +1 -1
- package/es/calendar/CalendarMonth.d.ts +4 -4
- package/es/calendar/index.d.ts +9 -4
- package/es/card/Card.d.ts +2 -2
- package/es/card/index.d.ts +6 -1
- package/es/cascader/Cascader.d.ts +2 -2
- package/es/cascader/Cascader.js +1 -1
- package/es/cascader/index.css +1 -1
- package/es/cascader/index.d.ts +6 -1
- package/es/cascader/index.less +0 -10
- package/es/cell/Cell.d.ts +2 -2
- package/es/cell/index.d.ts +6 -1
- package/es/cell-group/CellGroup.d.ts +2 -2
- package/es/cell-group/index.d.ts +6 -1
- package/es/checkbox/Checkbox.d.ts +2 -2
- package/es/checkbox/Checker.d.ts +2 -2
- package/es/checkbox/index.d.ts +6 -1
- package/es/checkbox-group/CheckboxGroup.d.ts +2 -2
- package/es/checkbox-group/index.d.ts +6 -1
- package/es/circle/Circle.d.ts +2 -2
- package/es/circle/index.d.ts +6 -1
- package/es/col/Col.d.ts +2 -2
- package/es/col/index.d.ts +6 -1
- package/es/collapse/Collapse.d.ts +2 -2
- package/es/collapse/index.d.ts +6 -1
- package/es/collapse-item/CollapseItem.d.ts +2 -2
- package/es/collapse-item/index.d.ts +6 -1
- package/es/composables/use-refs.js +9 -2
- package/es/composables/use-route.d.ts +1 -1
- package/es/composables/use-touch.js +7 -6
- package/es/config-provider/ConfigProvider.d.ts +2 -2
- package/es/config-provider/index.d.ts +6 -1
- package/es/contact-card/ContactCard.d.ts +2 -2
- package/es/contact-card/index.d.ts +6 -1
- package/es/contact-edit/ContactEdit.d.ts +2 -2
- package/es/contact-edit/index.d.ts +6 -1
- package/es/contact-list/ContactList.d.ts +2 -2
- package/es/contact-list/index.d.ts +6 -1
- package/es/count-down/CountDown.d.ts +2 -2
- package/es/count-down/index.d.ts +6 -1
- package/es/coupon/Coupon.d.ts +2 -2
- package/es/coupon/index.d.ts +6 -1
- package/es/coupon-cell/CouponCell.d.ts +2 -2
- package/es/coupon-cell/index.d.ts +6 -1
- package/es/coupon-list/CouponList.d.ts +2 -2
- package/es/coupon-list/index.d.ts +6 -1
- package/es/datetime-picker/DatePicker.d.ts +1 -1
- package/es/datetime-picker/DatePicker.js +2 -2
- package/es/datetime-picker/DatetimePicker.d.ts +2 -2
- package/es/datetime-picker/TimePicker.d.ts +1 -1
- package/es/datetime-picker/TimePicker.js +2 -2
- package/es/datetime-picker/index.d.ts +6 -1
- package/es/datetime-picker/utils.d.ts +3 -1
- package/es/datetime-picker/utils.js +17 -1
- package/es/dialog/Dialog.d.ts +2 -2
- package/es/dialog/function-call.d.ts +1 -1
- package/es/dialog/index.d.ts +5 -0
- package/es/divider/Divider.d.ts +2 -2
- package/es/divider/index.d.ts +6 -1
- package/es/dropdown-item/DropdownItem.d.ts +2 -2
- package/es/dropdown-item/index.d.ts +6 -1
- package/es/dropdown-menu/DropdownMenu.d.ts +2 -2
- package/es/dropdown-menu/index.d.ts +6 -1
- package/es/empty/Empty.d.ts +2 -2
- package/es/empty/index.d.ts +6 -1
- package/es/field/Field.d.ts +2 -2
- package/es/field/Field.js +5 -5
- package/es/field/index.d.ts +6 -1
- package/es/field/types.d.ts +1 -1
- package/es/field/utils.d.ts +2 -0
- package/es/field/utils.js +9 -0
- package/es/form/Form.d.ts +2 -2
- package/es/form/index.d.ts +6 -1
- package/es/grid/Grid.d.ts +2 -2
- package/es/grid/index.d.ts +6 -1
- package/es/grid-item/GridItem.d.ts +66 -5
- package/es/grid-item/GridItem.js +8 -6
- package/es/grid-item/index.d.ts +48 -2
- package/es/icon/Icon.d.ts +66 -5
- package/es/icon/Icon.js +7 -6
- package/es/icon/index.css +1 -1
- package/es/icon/index.d.ts +48 -2
- package/es/image/Image.d.ts +2 -2
- package/es/image/index.d.ts +6 -1
- package/es/image-preview/ImagePreview.d.ts +6 -2
- package/es/image-preview/ImagePreview.js +2 -1
- package/es/image-preview/ImagePreviewItem.d.ts +1 -1
- package/es/image-preview/function-call.d.ts +4 -1
- package/es/image-preview/function-call.js +1 -0
- package/es/image-preview/index.d.ts +5 -0
- package/es/image-preview/types.d.ts +1 -0
- package/es/index-anchor/IndexAnchor.d.ts +2 -2
- package/es/index-anchor/index.d.ts +6 -1
- package/es/index-bar/IndexBar.d.ts +2 -2
- package/es/index-bar/index.d.ts +6 -1
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/list/List.d.ts +2 -2
- package/es/list/index.d.ts +6 -1
- package/es/loading/Loading.d.ts +2 -2
- package/es/loading/index.d.ts +6 -1
- package/es/nav-bar/NavBar.d.ts +2 -2
- package/es/nav-bar/index.d.ts +6 -1
- package/es/notice-bar/NoticeBar.d.ts +2 -2
- package/es/notice-bar/index.d.ts +6 -1
- package/es/notify/Notify.d.ts +14 -3
- package/es/notify/Notify.js +2 -1
- package/es/notify/function-call.d.ts +9 -2
- package/es/notify/function-call.js +1 -0
- package/es/notify/index.d.ts +5 -0
- package/es/notify/types.d.ts +2 -0
- package/es/number-keyboard/NumberKeyboard.d.ts +2 -2
- package/es/number-keyboard/NumberKeyboardKey.d.ts +3 -3
- package/es/number-keyboard/index.d.ts +6 -1
- package/es/overlay/Overlay.d.ts +2 -2
- package/es/overlay/index.d.ts +6 -1
- package/es/pagination/Pagination.d.ts +2 -2
- package/es/pagination/Pagination.js +3 -3
- package/es/pagination/index.d.ts +6 -1
- package/es/password-input/PasswordInput.d.ts +2 -2
- package/es/password-input/index.d.ts +6 -1
- package/es/picker/Picker.d.ts +2 -2
- package/es/picker/Picker.js +21 -13
- package/es/picker/PickerColumn.d.ts +1 -1
- package/es/picker/index.d.ts +6 -1
- package/es/popover/Popover.d.ts +2 -2
- package/es/popover/Popover.js +19 -9
- package/es/popover/index.d.ts +6 -1
- package/es/popup/Popup.d.ts +5 -6
- package/es/popup/Popup.js +7 -4
- package/es/popup/index.d.ts +16 -10
- package/es/popup/shared.d.ts +1 -1
- package/es/popup/types.d.ts +5 -0
- package/es/popup/types.js +1 -0
- package/es/progress/Progress.d.ts +2 -2
- package/es/progress/index.d.ts +6 -1
- package/es/pull-refresh/PullRefresh.d.ts +2 -2
- package/es/pull-refresh/index.css +1 -1
- package/es/pull-refresh/index.d.ts +6 -1
- package/es/pull-refresh/index.less +0 -1
- package/es/radio/Radio.d.ts +2 -2
- package/es/radio/index.d.ts +6 -1
- package/es/radio-group/RadioGroup.d.ts +2 -2
- package/es/radio-group/index.d.ts +6 -1
- package/es/rate/Rate.d.ts +2 -2
- package/es/rate/index.d.ts +6 -1
- package/es/row/Row.d.ts +2 -2
- package/es/row/index.d.ts +6 -1
- package/es/search/Search.d.ts +8 -2
- package/es/search/Search.js +19 -1
- package/es/search/index.d.ts +12 -1
- package/es/share-sheet/ShareSheet.d.ts +2 -2
- package/es/share-sheet/index.d.ts +6 -1
- package/es/sidebar/Sidebar.d.ts +2 -2
- package/es/sidebar/index.d.ts +6 -1
- package/es/sidebar-item/SidebarItem.d.ts +65 -4
- package/es/sidebar-item/SidebarItem.js +7 -6
- package/es/sidebar-item/index.d.ts +47 -1
- package/es/skeleton/Skeleton.d.ts +2 -2
- package/es/skeleton/index.d.ts +6 -1
- package/es/slider/Slider.d.ts +4 -4
- package/es/slider/index.d.ts +8 -3
- package/es/step/Step.d.ts +1 -1
- package/es/step/Step.js +1 -1
- package/es/step/index.d.ts +6 -1
- package/es/stepper/Stepper.d.ts +2 -2
- package/es/stepper/index.d.ts +6 -1
- package/es/steps/Steps.d.ts +2 -2
- package/es/steps/index.d.ts +6 -1
- package/es/sticky/Sticky.d.ts +2 -2
- package/es/sticky/index.d.ts +6 -1
- package/es/submit-bar/SubmitBar.d.ts +2 -2
- package/es/submit-bar/index.d.ts +6 -1
- package/es/swipe/Swipe.d.ts +2 -2
- package/es/swipe/Swipe.js +34 -30
- package/es/swipe/index.d.ts +6 -1
- package/es/swipe-cell/SwipeCell.d.ts +2 -2
- package/es/swipe-cell/SwipeCell.js +8 -5
- package/es/swipe-cell/index.d.ts +6 -1
- package/es/swipe-item/SwipeItem.d.ts +1 -1
- package/es/swipe-item/index.d.ts +6 -1
- package/es/switch/Switch.d.ts +2 -2
- package/es/switch/index.d.ts +6 -1
- package/es/tab/Tab.d.ts +2 -2
- package/es/tab/index.d.ts +6 -1
- package/es/tabbar/Tabbar.d.ts +2 -2
- package/es/tabbar/index.d.ts +6 -1
- package/es/tabbar-item/TabbarItem.d.ts +65 -4
- package/es/tabbar-item/TabbarItem.js +6 -5
- package/es/tabbar-item/index.d.ts +47 -1
- package/es/tabs/Tabs.d.ts +7 -2
- package/es/tabs/Tabs.js +19 -11
- package/es/tabs/TabsContent.d.ts +1 -1
- package/es/tabs/TabsTitle.d.ts +6 -5
- package/es/tabs/TabsTitle.js +10 -5
- package/es/tabs/index.css +1 -1
- package/es/tabs/index.d.ts +10 -1
- package/es/tabs/index.less +43 -35
- package/es/tag/Tag.d.ts +2 -2
- package/es/tag/index.d.ts +6 -1
- package/es/toast/Toast.d.ts +4 -4
- package/es/toast/function-call.d.ts +2 -2
- package/es/toast/function-call.js +1 -1
- package/es/tree-select/TreeSelect.d.ts +2 -2
- package/es/tree-select/index.css +1 -1
- package/es/tree-select/index.d.ts +6 -1
- package/es/tree-select/index.less +1 -1
- package/es/uploader/Uploader.d.ts +3 -3
- package/es/uploader/UploaderPreviewItem.d.ts +2 -2
- package/es/uploader/index.d.ts +6 -1
- package/lib/action-bar/ActionBar.d.ts +2 -2
- package/lib/action-bar/index.d.ts +6 -1
- package/lib/action-bar-button/ActionBarButton.d.ts +4 -4
- package/lib/action-bar-button/index.d.ts +8 -3
- package/lib/action-bar-icon/ActionBarIcon.d.ts +69 -8
- package/lib/action-bar-icon/ActionBarIcon.js +7 -4
- package/lib/action-bar-icon/index.d.ts +49 -3
- package/lib/action-sheet/ActionSheet.d.ts +2 -2
- package/lib/action-sheet/ActionSheet.js +27 -15
- package/lib/action-sheet/index.d.ts +6 -1
- package/lib/address-edit/AddressEdit.d.ts +2 -2
- package/lib/address-edit/AddressEditDetail.d.ts +2 -2
- package/lib/address-edit/index.d.ts +6 -1
- package/lib/address-list/AddressList.d.ts +2 -2
- package/lib/address-list/AddressListItem.d.ts +2 -2
- package/lib/address-list/index.d.ts +6 -1
- package/lib/area/Area.d.ts +2 -2
- package/lib/area/index.d.ts +6 -1
- package/lib/badge/Badge.d.ts +15 -3
- package/lib/badge/Badge.js +4 -3
- package/lib/badge/index.css +1 -1
- package/lib/badge/index.d.ts +15 -3
- package/lib/badge/index.less +22 -1
- package/lib/button/Button.d.ts +4 -4
- package/lib/button/index.d.ts +8 -3
- package/lib/calendar/Calendar.d.ts +5 -5
- package/lib/calendar/CalendarDay.d.ts +2 -2
- package/lib/calendar/CalendarHeader.d.ts +1 -1
- package/lib/calendar/CalendarMonth.d.ts +4 -4
- package/lib/calendar/index.d.ts +9 -4
- package/lib/card/Card.d.ts +2 -2
- package/lib/card/index.d.ts +6 -1
- package/lib/cascader/Cascader.d.ts +2 -2
- package/lib/cascader/Cascader.js +1 -1
- package/lib/cascader/index.css +1 -1
- package/lib/cascader/index.d.ts +6 -1
- package/lib/cascader/index.less +0 -10
- package/lib/cell/Cell.d.ts +2 -2
- package/lib/cell/index.d.ts +6 -1
- package/lib/cell-group/CellGroup.d.ts +2 -2
- package/lib/cell-group/index.d.ts +6 -1
- package/lib/checkbox/Checkbox.d.ts +2 -2
- package/lib/checkbox/Checker.d.ts +2 -2
- package/lib/checkbox/index.d.ts +6 -1
- package/lib/checkbox-group/CheckboxGroup.d.ts +2 -2
- package/lib/checkbox-group/index.d.ts +6 -1
- package/lib/circle/Circle.d.ts +2 -2
- package/lib/circle/index.d.ts +6 -1
- package/lib/col/Col.d.ts +2 -2
- package/lib/col/index.d.ts +6 -1
- package/lib/collapse/Collapse.d.ts +2 -2
- package/lib/collapse/index.d.ts +6 -1
- package/lib/collapse-item/CollapseItem.d.ts +2 -2
- package/lib/collapse-item/index.d.ts +6 -1
- package/lib/composables/use-refs.js +9 -2
- package/lib/composables/use-route.d.ts +1 -1
- package/lib/composables/use-touch.js +7 -7
- package/lib/config-provider/ConfigProvider.d.ts +2 -2
- package/lib/config-provider/index.d.ts +6 -1
- package/lib/contact-card/ContactCard.d.ts +2 -2
- package/lib/contact-card/index.d.ts +6 -1
- package/lib/contact-edit/ContactEdit.d.ts +2 -2
- package/lib/contact-edit/index.d.ts +6 -1
- package/lib/contact-list/ContactList.d.ts +2 -2
- package/lib/contact-list/index.d.ts +6 -1
- package/lib/count-down/CountDown.d.ts +2 -2
- package/lib/count-down/index.d.ts +6 -1
- package/lib/coupon/Coupon.d.ts +2 -2
- package/lib/coupon/index.d.ts +6 -1
- package/lib/coupon-cell/CouponCell.d.ts +2 -2
- package/lib/coupon-cell/index.d.ts +6 -1
- package/lib/coupon-list/CouponList.d.ts +2 -2
- package/lib/coupon-list/index.d.ts +6 -1
- package/lib/datetime-picker/DatePicker.d.ts +1 -1
- package/lib/datetime-picker/DatePicker.js +1 -1
- package/lib/datetime-picker/DatetimePicker.d.ts +2 -2
- package/lib/datetime-picker/TimePicker.d.ts +1 -1
- package/lib/datetime-picker/TimePicker.js +1 -1
- package/lib/datetime-picker/index.d.ts +6 -1
- package/lib/datetime-picker/utils.d.ts +3 -1
- package/lib/datetime-picker/utils.js +22 -3
- package/lib/dialog/Dialog.d.ts +2 -2
- package/lib/dialog/function-call.d.ts +1 -1
- package/lib/dialog/index.d.ts +5 -0
- package/lib/divider/Divider.d.ts +2 -2
- package/lib/divider/index.d.ts +6 -1
- package/lib/dropdown-item/DropdownItem.d.ts +2 -2
- package/lib/dropdown-item/index.d.ts +6 -1
- package/lib/dropdown-menu/DropdownMenu.d.ts +2 -2
- package/lib/dropdown-menu/index.d.ts +6 -1
- package/lib/empty/Empty.d.ts +2 -2
- package/lib/empty/index.d.ts +6 -1
- package/lib/field/Field.d.ts +2 -2
- package/lib/field/Field.js +4 -4
- package/lib/field/index.d.ts +6 -1
- package/lib/field/types.d.ts +1 -1
- package/lib/field/utils.d.ts +2 -0
- package/lib/field/utils.js +13 -0
- package/lib/form/Form.d.ts +2 -2
- package/lib/form/index.d.ts +6 -1
- package/lib/grid/Grid.d.ts +2 -2
- package/lib/grid/index.d.ts +6 -1
- package/lib/grid-item/GridItem.d.ts +66 -5
- package/lib/grid-item/GridItem.js +7 -5
- package/lib/grid-item/index.d.ts +48 -2
- package/lib/icon/Icon.d.ts +66 -5
- package/lib/icon/Icon.js +5 -4
- package/lib/icon/index.css +1 -1
- package/lib/icon/index.d.ts +48 -2
- package/lib/image/Image.d.ts +2 -2
- package/lib/image/index.d.ts +6 -1
- package/lib/image-preview/ImagePreview.d.ts +6 -2
- package/lib/image-preview/ImagePreview.js +2 -1
- package/lib/image-preview/ImagePreviewItem.d.ts +1 -1
- package/lib/image-preview/function-call.d.ts +4 -1
- package/lib/image-preview/function-call.js +1 -0
- package/lib/image-preview/index.d.ts +5 -0
- package/lib/image-preview/types.d.ts +1 -0
- package/lib/index-anchor/IndexAnchor.d.ts +2 -2
- package/lib/index-anchor/index.d.ts +6 -1
- package/lib/index-bar/IndexBar.d.ts +2 -2
- package/lib/index-bar/index.d.ts +6 -1
- package/lib/index.css +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/list/List.d.ts +2 -2
- package/lib/list/index.d.ts +6 -1
- package/lib/loading/Loading.d.ts +2 -2
- package/lib/loading/index.d.ts +6 -1
- package/lib/nav-bar/NavBar.d.ts +2 -2
- package/lib/nav-bar/index.d.ts +6 -1
- package/lib/notice-bar/NoticeBar.d.ts +2 -2
- package/lib/notice-bar/index.d.ts +6 -1
- package/lib/notify/Notify.d.ts +14 -3
- package/lib/notify/Notify.js +2 -1
- package/lib/notify/function-call.d.ts +9 -2
- package/lib/notify/function-call.js +1 -0
- package/lib/notify/index.d.ts +5 -0
- package/lib/notify/types.d.ts +2 -0
- package/lib/number-keyboard/NumberKeyboard.d.ts +2 -2
- package/lib/number-keyboard/NumberKeyboardKey.d.ts +3 -3
- package/lib/number-keyboard/index.d.ts +6 -1
- package/lib/overlay/Overlay.d.ts +2 -2
- package/lib/overlay/index.d.ts +6 -1
- package/lib/pagination/Pagination.d.ts +2 -2
- package/lib/pagination/Pagination.js +3 -3
- package/lib/pagination/index.d.ts +6 -1
- package/lib/password-input/PasswordInput.d.ts +2 -2
- package/lib/password-input/index.d.ts +6 -1
- package/lib/picker/Picker.d.ts +2 -2
- package/lib/picker/Picker.js +21 -13
- package/lib/picker/PickerColumn.d.ts +1 -1
- package/lib/picker/index.d.ts +6 -1
- package/lib/popover/Popover.d.ts +2 -2
- package/lib/popover/Popover.js +18 -8
- package/lib/popover/index.d.ts +6 -1
- package/lib/popup/Popup.d.ts +5 -6
- package/lib/popup/Popup.js +5 -3
- package/lib/popup/index.d.ts +16 -10
- package/lib/popup/shared.d.ts +1 -1
- package/lib/popup/types.d.ts +5 -0
- package/lib/popup/types.js +3 -0
- package/lib/progress/Progress.d.ts +2 -2
- package/lib/progress/index.d.ts +6 -1
- package/lib/pull-refresh/PullRefresh.d.ts +2 -2
- package/lib/pull-refresh/index.css +1 -1
- package/lib/pull-refresh/index.d.ts +6 -1
- package/lib/pull-refresh/index.less +0 -1
- package/lib/radio/Radio.d.ts +2 -2
- package/lib/radio/index.d.ts +6 -1
- package/lib/radio-group/RadioGroup.d.ts +2 -2
- package/lib/radio-group/index.d.ts +6 -1
- package/lib/rate/Rate.d.ts +2 -2
- package/lib/rate/index.d.ts +6 -1
- package/lib/row/Row.d.ts +2 -2
- package/lib/row/index.d.ts +6 -1
- package/lib/search/Search.d.ts +8 -2
- package/lib/search/Search.js +19 -1
- package/lib/search/index.d.ts +12 -1
- package/lib/share-sheet/ShareSheet.d.ts +2 -2
- package/lib/share-sheet/index.d.ts +6 -1
- package/lib/sidebar/Sidebar.d.ts +2 -2
- package/lib/sidebar/index.d.ts +6 -1
- package/lib/sidebar-item/SidebarItem.d.ts +65 -4
- package/lib/sidebar-item/SidebarItem.js +6 -5
- package/lib/sidebar-item/index.d.ts +47 -1
- package/lib/skeleton/Skeleton.d.ts +2 -2
- package/lib/skeleton/index.d.ts +6 -1
- package/lib/slider/Slider.d.ts +4 -4
- package/lib/slider/index.d.ts +8 -3
- package/lib/ssr.js +2 -2
- package/lib/step/Step.d.ts +1 -1
- package/lib/step/Step.js +1 -1
- package/lib/step/index.d.ts +6 -1
- package/lib/stepper/Stepper.d.ts +2 -2
- package/lib/stepper/index.d.ts +6 -1
- package/lib/steps/Steps.d.ts +2 -2
- package/lib/steps/index.d.ts +6 -1
- package/lib/sticky/Sticky.d.ts +2 -2
- package/lib/sticky/index.d.ts +6 -1
- package/lib/submit-bar/SubmitBar.d.ts +2 -2
- package/lib/submit-bar/index.d.ts +6 -1
- package/lib/swipe/Swipe.d.ts +2 -2
- package/lib/swipe/Swipe.js +34 -30
- package/lib/swipe/index.d.ts +6 -1
- package/lib/swipe-cell/SwipeCell.d.ts +2 -2
- package/lib/swipe-cell/SwipeCell.js +8 -5
- package/lib/swipe-cell/index.d.ts +6 -1
- package/lib/swipe-item/SwipeItem.d.ts +1 -1
- package/lib/swipe-item/index.d.ts +6 -1
- package/lib/switch/Switch.d.ts +2 -2
- package/lib/switch/index.d.ts +6 -1
- package/lib/tab/Tab.d.ts +2 -2
- package/lib/tab/index.d.ts +6 -1
- package/lib/tabbar/Tabbar.d.ts +2 -2
- package/lib/tabbar/index.d.ts +6 -1
- package/lib/tabbar-item/TabbarItem.d.ts +65 -4
- package/lib/tabbar-item/TabbarItem.js +5 -4
- package/lib/tabbar-item/index.d.ts +47 -1
- package/lib/tabs/Tabs.d.ts +7 -2
- package/lib/tabs/Tabs.js +18 -10
- package/lib/tabs/TabsContent.d.ts +1 -1
- package/lib/tabs/TabsTitle.d.ts +6 -5
- package/lib/tabs/TabsTitle.js +10 -5
- package/lib/tabs/index.css +1 -1
- package/lib/tabs/index.d.ts +10 -1
- package/lib/tabs/index.less +43 -35
- package/lib/tag/Tag.d.ts +2 -2
- package/lib/tag/index.d.ts +6 -1
- package/lib/toast/Toast.d.ts +4 -4
- package/lib/toast/function-call.d.ts +2 -2
- package/lib/tree-select/TreeSelect.d.ts +2 -2
- package/lib/tree-select/index.css +1 -1
- package/lib/tree-select/index.d.ts +6 -1
- package/lib/tree-select/index.less +1 -1
- package/lib/uploader/Uploader.d.ts +3 -3
- package/lib/uploader/UploaderPreviewItem.d.ts +2 -2
- package/lib/uploader/index.d.ts +6 -1
- package/lib/vant.cjs.js +223 -129
- package/lib/vant.cjs.min.js +1 -1
- package/lib/vant.es.js +224 -130
- package/lib/vant.es.min.js +224 -130
- package/lib/vant.js +391 -171
- package/lib/vant.min.js +1 -1
- package/package.json +17 -13
- package/vetur/attributes.json +365 -330
- package/vetur/tags.json +115 -107
- package/vetur/web-types.json +1265 -1167
@@ -1,4 +1,4 @@
|
|
1
|
-
import { ExtractPropTypes } from 'vue';
|
1
|
+
import { type ExtractPropTypes } from 'vue';
|
2
2
|
declare const collapseItemProps: {
|
3
3
|
icon: StringConstructor;
|
4
4
|
size: import("vue").PropType<import("../cell").CellSize>;
|
@@ -63,7 +63,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
63
63
|
};
|
64
64
|
disabled: BooleanConstructor;
|
65
65
|
readonly: BooleanConstructor;
|
66
|
-
}, (() => JSX.Element) | undefined, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("
|
66
|
+
}, (() => JSX.Element) | undefined, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
67
67
|
icon?: unknown;
|
68
68
|
size?: unknown;
|
69
69
|
title?: unknown;
|
@@ -29,7 +29,7 @@ export declare const CollapseItem: import("../utils").WithInstall<import("vue").
|
|
29
29
|
};
|
30
30
|
disabled: BooleanConstructor;
|
31
31
|
readonly: BooleanConstructor;
|
32
|
-
}, (() => JSX.Element) | undefined, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("
|
32
|
+
}, (() => JSX.Element) | undefined, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
33
33
|
icon?: unknown;
|
34
34
|
size?: unknown;
|
35
35
|
title?: unknown;
|
@@ -82,3 +82,8 @@ export declare const CollapseItem: import("../utils").WithInstall<import("vue").
|
|
82
82
|
export default CollapseItem;
|
83
83
|
export type { CollapseItemProps } from './CollapseItem';
|
84
84
|
export type { CollapseItemInstance } from './types';
|
85
|
+
declare module 'vue' {
|
86
|
+
interface GlobalComponents {
|
87
|
+
VanCollapseItem: typeof CollapseItem;
|
88
|
+
}
|
89
|
+
}
|
@@ -7,12 +7,19 @@ var _vue = require("vue");
|
|
7
7
|
|
8
8
|
function useRefs() {
|
9
9
|
var refs = (0, _vue.ref)([]);
|
10
|
+
var cache = [];
|
10
11
|
(0, _vue.onBeforeUpdate)(() => {
|
11
12
|
refs.value = [];
|
12
13
|
});
|
13
14
|
|
14
|
-
var setRefs = index =>
|
15
|
-
|
15
|
+
var setRefs = index => {
|
16
|
+
if (!cache[index]) {
|
17
|
+
cache[index] = el => {
|
18
|
+
refs.value[index] = el;
|
19
|
+
};
|
20
|
+
}
|
21
|
+
|
22
|
+
return cache[index];
|
16
23
|
};
|
17
24
|
|
18
25
|
return [refs, setRefs];
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/**
|
2
2
|
* Vue Router support
|
3
3
|
*/
|
4
|
-
import { PropType, ExtractPropTypes, ComponentPublicInstance } from 'vue';
|
4
|
+
import { type PropType, type ExtractPropTypes, type ComponentPublicInstance } from 'vue';
|
5
5
|
import type { RouteLocationRaw } from 'vue-router';
|
6
6
|
export declare const routeProps: {
|
7
7
|
to: PropType<RouteLocationRaw>;
|
@@ -5,14 +5,12 @@ exports.useTouch = useTouch;
|
|
5
5
|
|
6
6
|
var _vue = require("vue");
|
7
7
|
|
8
|
-
var MIN_DISTANCE = 10;
|
9
|
-
|
10
8
|
function getDirection(x, y) {
|
11
|
-
if (x > y
|
9
|
+
if (x > y) {
|
12
10
|
return 'horizontal';
|
13
11
|
}
|
14
12
|
|
15
|
-
if (y > x
|
13
|
+
if (y > x) {
|
16
14
|
return 'vertical';
|
17
15
|
}
|
18
16
|
|
@@ -47,14 +45,16 @@ function useTouch() {
|
|
47
45
|
};
|
48
46
|
|
49
47
|
var move = event => {
|
50
|
-
var touch = event.touches[0]; //
|
48
|
+
var touch = event.touches[0]; // safari back will set clientX to negative number
|
51
49
|
|
52
50
|
deltaX.value = touch.clientX < 0 ? 0 : touch.clientX - startX.value;
|
53
51
|
deltaY.value = touch.clientY - startY.value;
|
54
52
|
offsetX.value = Math.abs(deltaX.value);
|
55
|
-
offsetY.value = Math.abs(deltaY.value);
|
53
|
+
offsetY.value = Math.abs(deltaY.value); // lock direction when distance is greater than a certain value
|
54
|
+
|
55
|
+
var LOCK_DIRECTION_DISTANCE = 10;
|
56
56
|
|
57
|
-
if (!direction.value) {
|
57
|
+
if (!direction.value || offsetX.value < LOCK_DIRECTION_DISTANCE && offsetY.value < LOCK_DIRECTION_DISTANCE) {
|
58
58
|
direction.value = getDirection(offsetX.value, offsetY.value);
|
59
59
|
}
|
60
60
|
};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { PropType, InjectionKey, ExtractPropTypes } from 'vue';
|
1
|
+
import { type PropType, type InjectionKey, type ExtractPropTypes } from 'vue';
|
2
2
|
export declare type ConfigProviderProvide = {
|
3
3
|
iconPrefix?: string;
|
4
4
|
};
|
@@ -19,7 +19,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
19
19
|
};
|
20
20
|
themeVars: PropType<Record<string, string | number>>;
|
21
21
|
iconPrefix: StringConstructor;
|
22
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("
|
22
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
23
23
|
tag?: unknown;
|
24
24
|
themeVars?: unknown;
|
25
25
|
iconPrefix?: unknown;
|
@@ -5,7 +5,7 @@ export declare const ConfigProvider: import("../utils").WithInstall<import("vue"
|
|
5
5
|
};
|
6
6
|
themeVars: import("vue").PropType<Record<string, string | number>>;
|
7
7
|
iconPrefix: StringConstructor;
|
8
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("
|
8
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
9
9
|
tag?: unknown;
|
10
10
|
themeVars?: unknown;
|
11
11
|
iconPrefix?: unknown;
|
@@ -19,3 +19,8 @@ export declare const ConfigProvider: import("../utils").WithInstall<import("vue"
|
|
19
19
|
}>>;
|
20
20
|
export default ConfigProvider;
|
21
21
|
export type { ConfigProviderProps } from './ConfigProvider';
|
22
|
+
declare module 'vue' {
|
23
|
+
interface GlobalComponents {
|
24
|
+
VanConfigProvider: typeof ConfigProvider;
|
25
|
+
}
|
26
|
+
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { ExtractPropTypes } from 'vue';
|
1
|
+
import { type ExtractPropTypes } from 'vue';
|
2
2
|
export declare type ContactCardType = 'add' | 'edit';
|
3
3
|
declare const contactCardProps: {
|
4
4
|
tel: StringConstructor;
|
@@ -26,7 +26,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
26
26
|
type: BooleanConstructor;
|
27
27
|
default: true;
|
28
28
|
};
|
29
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("
|
29
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
30
30
|
tel?: unknown;
|
31
31
|
name?: unknown;
|
32
32
|
type?: unknown;
|
@@ -10,7 +10,7 @@ export declare const ContactCard: import("../utils").WithInstall<import("vue").D
|
|
10
10
|
type: BooleanConstructor;
|
11
11
|
default: true;
|
12
12
|
};
|
13
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("
|
13
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
14
14
|
tel?: unknown;
|
15
15
|
name?: unknown;
|
16
16
|
type?: unknown;
|
@@ -31,3 +31,8 @@ export declare const ContactCard: import("../utils").WithInstall<import("vue").D
|
|
31
31
|
}>>;
|
32
32
|
export default ContactCard;
|
33
33
|
export type { ContactCardType, ContactCardProps } from './ContactCard';
|
34
|
+
declare module 'vue' {
|
35
|
+
interface GlobalComponents {
|
36
|
+
VanContactCard: typeof ContactCard;
|
37
|
+
}
|
38
|
+
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { PropType, ExtractPropTypes } from 'vue';
|
1
|
+
import { type PropType, type ExtractPropTypes } from 'vue';
|
2
2
|
import { isMobile } from '../utils';
|
3
3
|
export declare type ContactEditInfo = {
|
4
4
|
tel: string;
|
@@ -35,7 +35,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
35
35
|
type: PropType<(val: string) => boolean>;
|
36
36
|
default: typeof isMobile;
|
37
37
|
};
|
38
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("save" | "delete" | "change-default")[], "save" | "delete" | "change-default", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("
|
38
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("save" | "delete" | "change-default")[], "save" | "delete" | "change-default", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
39
39
|
isEdit?: unknown;
|
40
40
|
isSaving?: unknown;
|
41
41
|
isDeleting?: unknown;
|
@@ -12,7 +12,7 @@ export declare const ContactEdit: import("../utils").WithInstall<import("vue").D
|
|
12
12
|
type: import("vue").PropType<(val: string) => boolean>;
|
13
13
|
default: typeof import("../utils").isMobile;
|
14
14
|
};
|
15
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("save" | "delete" | "change-default")[], "save" | "delete" | "change-default", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("
|
15
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("save" | "delete" | "change-default")[], "save" | "delete" | "change-default", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
16
16
|
isEdit?: unknown;
|
17
17
|
isSaving?: unknown;
|
18
18
|
isDeleting?: unknown;
|
@@ -43,3 +43,8 @@ export declare const ContactEdit: import("../utils").WithInstall<import("vue").D
|
|
43
43
|
}>>;
|
44
44
|
export default ContactEdit;
|
45
45
|
export type { ContactEditInfo, ContactEditProps } from './ContactEdit';
|
46
|
+
declare module 'vue' {
|
47
|
+
interface GlobalComponents {
|
48
|
+
VanContactEdit: typeof ContactEdit;
|
49
|
+
}
|
50
|
+
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { PropType, ExtractPropTypes } from 'vue';
|
1
|
+
import { type PropType, type ExtractPropTypes } from 'vue';
|
2
2
|
export declare type ContactListItem = {
|
3
3
|
id?: number | string;
|
4
4
|
tel: number | string;
|
@@ -17,7 +17,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
17
17
|
addText: StringConstructor;
|
18
18
|
modelValue: PropType<unknown>;
|
19
19
|
defaultTagText: StringConstructor;
|
20
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "update:modelValue" | "add" | "edit")[], "select" | "update:modelValue" | "add" | "edit", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("
|
20
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "update:modelValue" | "add" | "edit")[], "select" | "update:modelValue" | "add" | "edit", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
21
21
|
list?: unknown;
|
22
22
|
addText?: unknown;
|
23
23
|
modelValue?: unknown;
|
@@ -3,7 +3,7 @@ export declare const ContactList: import("../utils").WithInstall<import("vue").D
|
|
3
3
|
addText: StringConstructor;
|
4
4
|
modelValue: import("vue").PropType<unknown>;
|
5
5
|
defaultTagText: StringConstructor;
|
6
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "update:modelValue" | "add" | "edit")[], "select" | "update:modelValue" | "add" | "edit", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("
|
6
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "update:modelValue" | "add" | "edit")[], "select" | "update:modelValue" | "add" | "edit", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
7
7
|
list?: unknown;
|
8
8
|
addText?: unknown;
|
9
9
|
modelValue?: unknown;
|
@@ -21,3 +21,8 @@ export declare const ContactList: import("../utils").WithInstall<import("vue").D
|
|
21
21
|
}, {}>>;
|
22
22
|
export default ContactList;
|
23
23
|
export type { ContactListItem, ContactListProps } from './ContactList';
|
24
|
+
declare module 'vue' {
|
25
|
+
interface GlobalComponents {
|
26
|
+
VanContactList: typeof ContactList;
|
27
|
+
}
|
28
|
+
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { ExtractPropTypes } from 'vue';
|
1
|
+
import { type ExtractPropTypes } from 'vue';
|
2
2
|
declare const countDownProps: {
|
3
3
|
time: {
|
4
4
|
type: (NumberConstructor | StringConstructor)[];
|
@@ -29,7 +29,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
29
29
|
default: true;
|
30
30
|
};
|
31
31
|
millisecond: BooleanConstructor;
|
32
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "finish")[], "change" | "finish", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("
|
32
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "finish")[], "change" | "finish", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
33
33
|
time?: unknown;
|
34
34
|
format?: unknown;
|
35
35
|
autoStart?: unknown;
|
@@ -12,7 +12,7 @@ export declare const CountDown: import("../utils").WithInstall<import("vue").Def
|
|
12
12
|
default: true;
|
13
13
|
};
|
14
14
|
millisecond: BooleanConstructor;
|
15
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "finish")[], "change" | "finish", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("
|
15
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "finish")[], "change" | "finish", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
16
16
|
time?: unknown;
|
17
17
|
format?: unknown;
|
18
18
|
autoStart?: unknown;
|
@@ -34,3 +34,8 @@ export declare const CountDown: import("../utils").WithInstall<import("vue").Def
|
|
34
34
|
export default CountDown;
|
35
35
|
export type { CountDownProps } from './CountDown';
|
36
36
|
export type { CountDownInstance, CountDownCurrentTime } from './types';
|
37
|
+
declare module 'vue' {
|
38
|
+
interface GlobalComponents {
|
39
|
+
VanCountDown: typeof CountDown;
|
40
|
+
}
|
41
|
+
}
|
package/lib/coupon/Coupon.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { PropType } from 'vue';
|
1
|
+
import { type PropType } from 'vue';
|
2
2
|
export declare type CouponInfo = {
|
3
3
|
id: string | number;
|
4
4
|
name: string;
|
@@ -25,7 +25,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
25
25
|
type: PropType<string>;
|
26
26
|
default: string;
|
27
27
|
};
|
28
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("
|
28
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
29
29
|
chosen?: unknown;
|
30
30
|
coupon?: unknown;
|
31
31
|
disabled?: unknown;
|
package/lib/coupon/index.d.ts
CHANGED
@@ -9,7 +9,7 @@ export declare const Coupon: import("../utils").WithInstall<import("vue").Define
|
|
9
9
|
type: import("vue").PropType<string>;
|
10
10
|
default: string;
|
11
11
|
};
|
12
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("
|
12
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
13
13
|
chosen?: unknown;
|
14
14
|
coupon?: unknown;
|
15
15
|
disabled?: unknown;
|
@@ -26,3 +26,8 @@ export declare const Coupon: import("../utils").WithInstall<import("vue").Define
|
|
26
26
|
}>>;
|
27
27
|
export default Coupon;
|
28
28
|
export type { CouponInfo } from './Coupon';
|
29
|
+
declare module 'vue' {
|
30
|
+
interface GlobalComponents {
|
31
|
+
VanCoupon: typeof Coupon;
|
32
|
+
}
|
33
|
+
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { ExtractPropTypes } from 'vue';
|
1
|
+
import { type ExtractPropTypes } from 'vue';
|
2
2
|
import type { CouponInfo } from '../coupon';
|
3
3
|
declare const couponCellProps: {
|
4
4
|
title: StringConstructor;
|
@@ -46,7 +46,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
46
46
|
type: (NumberConstructor | StringConstructor)[];
|
47
47
|
default: number;
|
48
48
|
};
|
49
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("
|
49
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
50
50
|
title?: unknown;
|
51
51
|
border?: unknown;
|
52
52
|
editable?: unknown;
|
@@ -20,7 +20,7 @@ export declare const CouponCell: import("../utils").WithInstall<import("vue").De
|
|
20
20
|
type: (NumberConstructor | StringConstructor)[];
|
21
21
|
default: number;
|
22
22
|
};
|
23
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("
|
23
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
24
24
|
title?: unknown;
|
25
25
|
border?: unknown;
|
26
26
|
editable?: unknown;
|
@@ -44,3 +44,8 @@ export declare const CouponCell: import("../utils").WithInstall<import("vue").De
|
|
44
44
|
}>>;
|
45
45
|
export default CouponCell;
|
46
46
|
export type { CouponCellProps } from './CouponCell';
|
47
|
+
declare module 'vue' {
|
48
|
+
interface GlobalComponents {
|
49
|
+
VanCouponCell: typeof CouponCell;
|
50
|
+
}
|
51
|
+
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { ExtractPropTypes } from 'vue';
|
1
|
+
import { type ExtractPropTypes } from 'vue';
|
2
2
|
import { CouponInfo } from '../coupon';
|
3
3
|
declare const couponListProps: {
|
4
4
|
code: {
|
@@ -106,7 +106,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
106
106
|
};
|
107
107
|
exchangeButtonLoading: BooleanConstructor;
|
108
108
|
exchangeButtonDisabled: BooleanConstructor;
|
109
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "exchange" | "update:code")[], "change" | "exchange" | "update:code", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("
|
109
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "exchange" | "update:code")[], "change" | "exchange" | "update:code", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
110
110
|
code?: unknown;
|
111
111
|
coupons?: unknown;
|
112
112
|
currency?: unknown;
|
@@ -50,7 +50,7 @@ export declare const CouponList: import("../utils").WithInstall<import("vue").De
|
|
50
50
|
};
|
51
51
|
exchangeButtonLoading: BooleanConstructor;
|
52
52
|
exchangeButtonDisabled: BooleanConstructor;
|
53
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "exchange" | "update:code")[], "change" | "exchange" | "update:code", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("
|
53
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "exchange" | "update:code")[], "change" | "exchange" | "update:code", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
54
54
|
code?: unknown;
|
55
55
|
coupons?: unknown;
|
56
56
|
currency?: unknown;
|
@@ -110,3 +110,8 @@ export declare const CouponList: import("../utils").WithInstall<import("vue").De
|
|
110
110
|
}>>;
|
111
111
|
export default CouponList;
|
112
112
|
export type { CouponListProps } from './CouponList';
|
113
|
+
declare module 'vue' {
|
114
|
+
interface GlobalComponents {
|
115
|
+
VanCouponList: typeof CouponList;
|
116
|
+
}
|
117
|
+
}
|
@@ -45,7 +45,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
45
45
|
default: () => Date;
|
46
46
|
validator: (val: unknown) => val is Date;
|
47
47
|
};
|
48
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change" | "cancel" | "confirm")[], "update:modelValue" | "change" | "cancel" | "confirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("
|
48
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change" | "cancel" | "confirm")[], "update:modelValue" | "change" | "cancel" | "confirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
49
49
|
title?: unknown;
|
50
50
|
loading?: unknown;
|
51
51
|
readonly?: unknown;
|
@@ -290,7 +290,7 @@ var _default = (0, _vue.defineComponent)({
|
|
290
290
|
}
|
291
291
|
});
|
292
292
|
(0, _useExpose.useExpose)({
|
293
|
-
getPicker: () => picker.value
|
293
|
+
getPicker: () => picker.value && (0, _utils2.proxyPickerMethods)(picker.value, updateInnerValue)
|
294
294
|
});
|
295
295
|
return () => (0, _vue.createVNode)(_picker.Picker, (0, _vue.mergeProps)({
|
296
296
|
"ref": picker,
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import { ExtractPropTypes } from 'vue';
|
1
|
+
import { type ExtractPropTypes } from 'vue';
|
2
2
|
declare const datetimePickerProps: any;
|
3
3
|
export declare type DatetimePickerProps = ExtractPropTypes<typeof datetimePickerProps>;
|
4
|
-
declare const _default: import("vue").DefineComponent<any, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("
|
4
|
+
declare const _default: import("vue").DefineComponent<any, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<any>, {} | {
|
5
5
|
[x: string]: any;
|
6
6
|
}>;
|
7
7
|
export default _default;
|
@@ -46,7 +46,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
46
46
|
default: number;
|
47
47
|
};
|
48
48
|
modelValue: StringConstructor;
|
49
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change" | "cancel" | "confirm")[], "update:modelValue" | "change" | "cancel" | "confirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("
|
49
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change" | "cancel" | "confirm")[], "update:modelValue" | "change" | "cancel" | "confirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
50
50
|
title?: unknown;
|
51
51
|
loading?: unknown;
|
52
52
|
readonly?: unknown;
|
@@ -131,7 +131,7 @@ var _default = (0, _vue.defineComponent)({
|
|
131
131
|
}
|
132
132
|
});
|
133
133
|
(0, _useExpose.useExpose)({
|
134
|
-
getPicker: () => picker.value
|
134
|
+
getPicker: () => picker.value && (0, _utils2.proxyPickerMethods)(picker.value, updateInnerValue)
|
135
135
|
});
|
136
136
|
return () => (0, _vue.createVNode)(_picker.Picker, (0, _vue.mergeProps)({
|
137
137
|
"ref": picker,
|
@@ -1,7 +1,12 @@
|
|
1
1
|
import { DatetimePickerProps } from './DatetimePicker';
|
2
|
-
export declare const DatetimePicker: import("../utils").WithInstall<import("vue").DefineComponent<any, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("
|
2
|
+
export declare const DatetimePicker: import("../utils").WithInstall<import("vue").DefineComponent<any, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<any>, {} | {
|
3
3
|
[x: string]: any;
|
4
4
|
}>>;
|
5
5
|
export default DatetimePicker;
|
6
6
|
export type { DatetimePickerProps };
|
7
7
|
export type { DatetimePickerType, DatetimePickerInstance } from './types';
|
8
|
+
declare module 'vue' {
|
9
|
+
interface GlobalComponents {
|
10
|
+
VanDatetimePicker: typeof DatetimePicker;
|
11
|
+
}
|
12
|
+
}
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import { PropType } from 'vue';
|
1
|
+
import type { PropType } from 'vue';
|
2
|
+
import type { PickerInstance } from '../picker';
|
2
3
|
import type { DatetimePickerColumnType } from './types';
|
3
4
|
export declare const sharedProps: {
|
4
5
|
title: StringConstructor;
|
@@ -35,3 +36,4 @@ export declare const pickerInheritKeys: ("title" | "readonly" | "loading" | "all
|
|
35
36
|
export declare function times<T>(n: number, iteratee: (index: number) => T): T[];
|
36
37
|
export declare function getTrueValue(value: string | undefined): number;
|
37
38
|
export declare const getMonthEndDay: (year: number, month: number) => number;
|
39
|
+
export declare const proxyPickerMethods: (picker: PickerInstance, callback: () => void) => PickerInstance;
|
@@ -3,7 +3,7 @@
|
|
3
3
|
exports.__esModule = true;
|
4
4
|
exports.getMonthEndDay = void 0;
|
5
5
|
exports.getTrueValue = getTrueValue;
|
6
|
-
exports.sharedProps = exports.pickerInheritKeys = void 0;
|
6
|
+
exports.sharedProps = exports.proxyPickerMethods = exports.pickerInheritKeys = void 0;
|
7
7
|
exports.times = times;
|
8
8
|
|
9
9
|
var _utils = require("../utils");
|
@@ -49,6 +49,25 @@ function getTrueValue(value) {
|
|
49
49
|
return parseInt(value, 10);
|
50
50
|
}
|
51
51
|
|
52
|
-
var getMonthEndDay = (year, month) => 32 - new Date(year, month - 1, 32).getDate();
|
52
|
+
var getMonthEndDay = (year, month) => 32 - new Date(year, month - 1, 32).getDate(); // https://github.com/youzan/vant/issues/10013
|
53
53
|
|
54
|
-
|
54
|
+
|
55
|
+
exports.getMonthEndDay = getMonthEndDay;
|
56
|
+
|
57
|
+
var proxyPickerMethods = (picker, callback) => {
|
58
|
+
var methods = ['setValues', 'setIndexes', 'setColumnIndex', 'setColumnValue'];
|
59
|
+
return new Proxy(picker, {
|
60
|
+
get: (target, prop) => {
|
61
|
+
if (methods.includes(prop)) {
|
62
|
+
return function () {
|
63
|
+
target[prop](...arguments);
|
64
|
+
callback();
|
65
|
+
};
|
66
|
+
}
|
67
|
+
|
68
|
+
return target[prop];
|
69
|
+
}
|
70
|
+
});
|
71
|
+
};
|
72
|
+
|
73
|
+
exports.proxyPickerMethods = proxyPickerMethods;
|
package/lib/dialog/Dialog.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { PropType, ExtractPropTypes } from 'vue';
|
1
|
+
import { type PropType, type ExtractPropTypes } from 'vue';
|
2
2
|
import type { DialogTheme, DialogAction, DialogMessage, DialogMessageAlign } from './types';
|
3
3
|
declare const dialogProps: {
|
4
4
|
show: BooleanConstructor;
|
@@ -106,7 +106,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
106
106
|
default: true;
|
107
107
|
};
|
108
108
|
closeOnClickOverlay: BooleanConstructor;
|
109
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:show" | "cancel" | "confirm")[], "update:show" | "cancel" | "confirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("
|
109
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:show" | "cancel" | "confirm")[], "update:show" | "cancel" | "confirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
110
110
|
show?: unknown;
|
111
111
|
zIndex?: unknown;
|
112
112
|
overlay?: unknown;
|
@@ -109,7 +109,7 @@ declare namespace Dialog {
|
|
109
109
|
default: true;
|
110
110
|
};
|
111
111
|
closeOnClickOverlay: BooleanConstructor;
|
112
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:show" | "cancel" | "confirm")[], "update:show" | "cancel" | "confirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("
|
112
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:show" | "cancel" | "confirm")[], "update:show" | "cancel" | "confirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
113
113
|
show?: unknown;
|
114
114
|
zIndex?: unknown;
|
115
115
|
overlay?: unknown;
|
package/lib/dialog/index.d.ts
CHANGED
@@ -3,3 +3,8 @@ export default Dialog;
|
|
3
3
|
export { Dialog };
|
4
4
|
export type { DialogProps } from './Dialog';
|
5
5
|
export type { DialogTheme, DialogMessage, DialogOptions, DialogMessageAlign, } from './types';
|
6
|
+
declare module 'vue' {
|
7
|
+
interface GlobalComponents {
|
8
|
+
VanDialog: typeof Dialog.Component;
|
9
|
+
}
|
10
|
+
}
|
package/lib/divider/Divider.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { ExtractPropTypes } from 'vue';
|
1
|
+
import { type ExtractPropTypes } from 'vue';
|
2
2
|
export declare type DividerContentPosition = 'left' | 'center' | 'right';
|
3
3
|
declare const dividerProps: {
|
4
4
|
dashed: BooleanConstructor;
|
@@ -22,7 +22,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
22
22
|
type: import("vue").PropType<DividerContentPosition>;
|
23
23
|
default: DividerContentPosition;
|
24
24
|
};
|
25
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("
|
25
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
26
26
|
dashed?: unknown;
|
27
27
|
hairline?: unknown;
|
28
28
|
contentPosition?: unknown;
|
package/lib/divider/index.d.ts
CHANGED
@@ -8,7 +8,7 @@ export declare const Divider: import("../utils").WithInstall<import("vue").Defin
|
|
8
8
|
type: import("vue").PropType<import("./Divider").DividerContentPosition>;
|
9
9
|
default: import("./Divider").DividerContentPosition;
|
10
10
|
};
|
11
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("
|
11
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
12
12
|
dashed?: unknown;
|
13
13
|
hairline?: unknown;
|
14
14
|
contentPosition?: unknown;
|
@@ -23,3 +23,8 @@ export declare const Divider: import("../utils").WithInstall<import("vue").Defin
|
|
23
23
|
}>>;
|
24
24
|
export default Divider;
|
25
25
|
export type { DividerProps, DividerContentPosition } from './Divider';
|
26
|
+
declare module 'vue' {
|
27
|
+
interface GlobalComponents {
|
28
|
+
VanDivider: typeof Divider;
|
29
|
+
}
|
30
|
+
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { PropType, ExtractPropTypes } from 'vue';
|
1
|
+
import { type PropType, type ExtractPropTypes } from 'vue';
|
2
2
|
import type { DropdownItemOption } from './types';
|
3
3
|
declare const dropdownItemProps: {
|
4
4
|
title: StringConstructor;
|
@@ -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" | "open" | "change" | "close" | "opened" | "closed")[], "open" | "update:modelValue" | "change" | "close" | "opened" | "closed", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("
|
33
|
+
}, (() => JSX.Element) | undefined, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "open" | "change" | "close" | "opened" | "closed")[], "open" | "update:modelValue" | "change" | "close" | "opened" | "closed", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
34
34
|
title?: unknown;
|
35
35
|
options?: unknown;
|
36
36
|
disabled?: unknown;
|
@@ -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" | "open" | "change" | "close" | "opened" | "closed")[], "open" | "update:modelValue" | "change" | "close" | "opened" | "closed", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("
|
16
|
+
}, (() => JSX.Element) | undefined, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "open" | "change" | "close" | "opened" | "closed")[], "open" | "update:modelValue" | "change" | "close" | "opened" | "closed", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
17
17
|
title?: unknown;
|
18
18
|
options?: unknown;
|
19
19
|
disabled?: unknown;
|
@@ -45,3 +45,8 @@ export declare const DropdownItem: import("../utils").WithInstall<import("vue").
|
|
45
45
|
export default DropdownItem;
|
46
46
|
export type { DropdownItemProps };
|
47
47
|
export type { DropdownItemInstance, DropdownItemOption } from './types';
|
48
|
+
declare module 'vue' {
|
49
|
+
interface GlobalComponents {
|
50
|
+
VanDropdownItem: typeof DropdownItem;
|
51
|
+
}
|
52
|
+
}
|