vant 3.3.7 → 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 +3 -3
- package/es/badge/index.d.ts +7 -2
- package/es/button/Button.d.ts +4 -4
- package/es/button/index.d.ts +8 -3
- package/es/calendar/Calendar.d.ts +3 -3
- 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 +7 -2
- 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/DatetimePicker.d.ts +2 -2
- package/es/datetime-picker/TimePicker.d.ts +1 -1
- package/es/datetime-picker/index.d.ts +6 -1
- package/es/datetime-picker/utils.d.ts +1 -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/index.d.ts +6 -1
- package/es/field/types.d.ts +1 -1
- 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/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 +3 -4
- 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 +2 -2
- 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 +3 -3
- package/lib/badge/index.d.ts +7 -2
- package/lib/button/Button.d.ts +4 -4
- package/lib/button/index.d.ts +8 -3
- package/lib/calendar/Calendar.d.ts +3 -3
- 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 +7 -2
- 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/DatetimePicker.d.ts +2 -2
- package/lib/datetime-picker/TimePicker.d.ts +1 -1
- package/lib/datetime-picker/index.d.ts +6 -1
- package/lib/datetime-picker/utils.d.ts +1 -1
- 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/index.d.ts +6 -1
- package/lib/field/types.d.ts +1 -1
- 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/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 +3 -4
- 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/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 +2 -2
- 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 +190 -117
- package/lib/vant.cjs.min.js +1 -1
- package/lib/vant.es.js +191 -118
- package/lib/vant.es.min.js +191 -118
- package/lib/vant.js +190 -117
- package/lib/vant.min.js +1 -1
- package/package.json +1 -1
- package/vetur/attributes.json +178 -147
- package/vetur/tags.json +48 -41
- package/vetur/web-types.json +491 -403
package/es/loading/index.d.ts
CHANGED
@@ -8,7 +8,7 @@ export declare const Loading: import("../utils").WithInstall<import("vue").Defin
|
|
8
8
|
vertical: BooleanConstructor;
|
9
9
|
textSize: (NumberConstructor | StringConstructor)[];
|
10
10
|
textColor: StringConstructor;
|
11
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, 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
|
size?: unknown;
|
13
13
|
type?: unknown;
|
14
14
|
color?: unknown;
|
@@ -29,3 +29,8 @@ export declare const Loading: import("../utils").WithInstall<import("vue").Defin
|
|
29
29
|
}>>;
|
30
30
|
export default Loading;
|
31
31
|
export type { LoadingType, LoadingProps } from './Loading';
|
32
|
+
declare module 'vue' {
|
33
|
+
interface GlobalComponents {
|
34
|
+
VanLoading: typeof Loading;
|
35
|
+
}
|
36
|
+
}
|
package/es/nav-bar/NavBar.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { ExtractPropTypes } from 'vue';
|
1
|
+
import { type ExtractPropTypes } from 'vue';
|
2
2
|
declare const navBarProps: {
|
3
3
|
title: StringConstructor;
|
4
4
|
fixed: BooleanConstructor;
|
@@ -27,7 +27,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
27
27
|
leftArrow: BooleanConstructor;
|
28
28
|
placeholder: BooleanConstructor;
|
29
29
|
safeAreaInsetTop: BooleanConstructor;
|
30
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click-left" | "click-right")[], "click-left" | "click-right", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("
|
30
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click-left" | "click-right")[], "click-left" | "click-right", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
31
31
|
title?: unknown;
|
32
32
|
fixed?: unknown;
|
33
33
|
zIndex?: unknown;
|
package/es/nav-bar/index.d.ts
CHANGED
@@ -11,7 +11,7 @@ export declare const NavBar: import("../utils").WithInstall<import("vue").Define
|
|
11
11
|
leftArrow: BooleanConstructor;
|
12
12
|
placeholder: BooleanConstructor;
|
13
13
|
safeAreaInsetTop: BooleanConstructor;
|
14
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click-left" | "click-right")[], "click-left" | "click-right", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("
|
14
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click-left" | "click-right")[], "click-left" | "click-right", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
15
15
|
title?: unknown;
|
16
16
|
fixed?: unknown;
|
17
17
|
zIndex?: unknown;
|
@@ -44,3 +44,8 @@ export declare const NavBar: import("../utils").WithInstall<import("vue").Define
|
|
44
44
|
}>>;
|
45
45
|
export default NavBar;
|
46
46
|
export type { NavBarProps } from './NavBar';
|
47
|
+
declare module 'vue' {
|
48
|
+
interface GlobalComponents {
|
49
|
+
VanNavBar: typeof NavBar;
|
50
|
+
}
|
51
|
+
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { PropType, ExtractPropTypes } from 'vue';
|
1
|
+
import { type PropType, type ExtractPropTypes } from 'vue';
|
2
2
|
import { NoticeBarMode } from './types';
|
3
3
|
declare const noticeBarProps: {
|
4
4
|
text: StringConstructor;
|
@@ -40,7 +40,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
40
40
|
type: PropType<boolean | null>;
|
41
41
|
default: null;
|
42
42
|
};
|
43
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "replay")[], "close" | "replay", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("
|
43
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "replay")[], "close" | "replay", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
44
44
|
text?: unknown;
|
45
45
|
mode?: unknown;
|
46
46
|
color?: unknown;
|
package/es/notice-bar/index.d.ts
CHANGED
@@ -18,7 +18,7 @@ export declare const NoticeBar: import("../utils").WithInstall<import("vue").Def
|
|
18
18
|
type: import("vue").PropType<boolean | null>;
|
19
19
|
default: null;
|
20
20
|
};
|
21
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "replay")[], "close" | "replay", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("
|
21
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "replay")[], "close" | "replay", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
22
22
|
text?: unknown;
|
23
23
|
mode?: unknown;
|
24
24
|
color?: unknown;
|
@@ -51,3 +51,8 @@ export declare const NoticeBar: import("../utils").WithInstall<import("vue").Def
|
|
51
51
|
export default NoticeBar;
|
52
52
|
export type { NoticeBarProps };
|
53
53
|
export type { NoticeBarMode, NoticeBarInstance } from './types';
|
54
|
+
declare module 'vue' {
|
55
|
+
interface GlobalComponents {
|
56
|
+
VanNoticeBar: typeof NoticeBar;
|
57
|
+
}
|
58
|
+
}
|
package/es/notify/Notify.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import { ExtractPropTypes } from 'vue';
|
2
|
-
import type { NotifyType } from './types';
|
1
|
+
import { type ExtractPropTypes } from 'vue';
|
2
|
+
import type { NotifyType, NotifyPosition } from './types';
|
3
3
|
declare const notifyProps: {
|
4
4
|
show: BooleanConstructor;
|
5
5
|
zIndex: (NumberConstructor | StringConstructor)[];
|
@@ -32,6 +32,10 @@ declare const notifyProps: {
|
|
32
32
|
};
|
33
33
|
color: StringConstructor;
|
34
34
|
message: (NumberConstructor | StringConstructor)[];
|
35
|
+
position: {
|
36
|
+
type: import("vue").PropType<NotifyPosition>;
|
37
|
+
default: NotifyPosition;
|
38
|
+
};
|
35
39
|
className: import("vue").PropType<unknown>;
|
36
40
|
background: StringConstructor;
|
37
41
|
lockScroll: BooleanConstructor;
|
@@ -69,10 +73,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
69
73
|
};
|
70
74
|
color: StringConstructor;
|
71
75
|
message: (NumberConstructor | StringConstructor)[];
|
76
|
+
position: {
|
77
|
+
type: import("vue").PropType<NotifyPosition>;
|
78
|
+
default: NotifyPosition;
|
79
|
+
};
|
72
80
|
className: import("vue").PropType<unknown>;
|
73
81
|
background: StringConstructor;
|
74
82
|
lockScroll: BooleanConstructor;
|
75
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:show"[], "update:show", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("
|
83
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:show"[], "update:show", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
76
84
|
show?: unknown;
|
77
85
|
zIndex?: unknown;
|
78
86
|
overlay?: unknown;
|
@@ -88,10 +96,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
88
96
|
type?: unknown;
|
89
97
|
color?: unknown;
|
90
98
|
message?: unknown;
|
99
|
+
position?: unknown;
|
91
100
|
className?: unknown;
|
92
101
|
background?: unknown;
|
93
102
|
} & {
|
94
103
|
type: NotifyType;
|
104
|
+
position: NotifyPosition;
|
95
105
|
overlay: boolean;
|
96
106
|
show: boolean;
|
97
107
|
lockScroll: boolean;
|
@@ -113,6 +123,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
113
123
|
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
114
124
|
}, {
|
115
125
|
type: NotifyType;
|
126
|
+
position: NotifyPosition;
|
116
127
|
overlay: boolean;
|
117
128
|
show: boolean;
|
118
129
|
lockScroll: boolean;
|
package/es/notify/Notify.js
CHANGED
@@ -8,6 +8,7 @@ var notifyProps = extend({}, popupSharedProps, {
|
|
8
8
|
type: makeStringProp('danger'),
|
9
9
|
color: String,
|
10
10
|
message: numericProp,
|
11
|
+
position: makeStringProp('top'),
|
11
12
|
className: unknownProp,
|
12
13
|
background: String,
|
13
14
|
lockScroll: Boolean
|
@@ -33,7 +34,7 @@ export default defineComponent({
|
|
33
34
|
background: props.background
|
34
35
|
},
|
35
36
|
"overlay": false,
|
36
|
-
"position":
|
37
|
+
"position": props.position,
|
37
38
|
"duration": 0.2,
|
38
39
|
"lockScroll": props.lockScroll,
|
39
40
|
"onUpdate:show": updateShow
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { App } from 'vue';
|
2
|
-
import { ComponentInstance } from '../utils';
|
2
|
+
import { type ComponentInstance } from '../utils';
|
3
3
|
import type { NotifyMessage, NotifyOptions } from './types';
|
4
4
|
declare function Notify(options: NotifyMessage | NotifyOptions): ComponentInstance | undefined;
|
5
5
|
declare namespace Notify {
|
@@ -39,10 +39,14 @@ declare namespace Notify {
|
|
39
39
|
};
|
40
40
|
color: StringConstructor;
|
41
41
|
message: (NumberConstructor | StringConstructor)[];
|
42
|
+
position: {
|
43
|
+
type: import("vue").PropType<import("./types").NotifyPosition>;
|
44
|
+
default: import("./types").NotifyPosition;
|
45
|
+
};
|
42
46
|
className: import("vue").PropType<unknown>;
|
43
47
|
background: StringConstructor;
|
44
48
|
lockScroll: BooleanConstructor;
|
45
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:show"[], "update:show", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("
|
49
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:show"[], "update:show", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
46
50
|
show?: unknown;
|
47
51
|
zIndex?: unknown;
|
48
52
|
overlay?: unknown;
|
@@ -58,10 +62,12 @@ declare namespace Notify {
|
|
58
62
|
type?: unknown;
|
59
63
|
color?: unknown;
|
60
64
|
message?: unknown;
|
65
|
+
position?: unknown;
|
61
66
|
className?: unknown;
|
62
67
|
background?: unknown;
|
63
68
|
} & {
|
64
69
|
type: import("./types").NotifyType;
|
70
|
+
position: import("./types").NotifyPosition;
|
65
71
|
overlay: boolean;
|
66
72
|
show: boolean;
|
67
73
|
lockScroll: boolean;
|
@@ -83,6 +89,7 @@ declare namespace Notify {
|
|
83
89
|
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
84
90
|
}, {
|
85
91
|
type: import("./types").NotifyType;
|
92
|
+
position: import("./types").NotifyPosition;
|
86
93
|
overlay: boolean;
|
87
94
|
show: boolean;
|
88
95
|
lockScroll: boolean;
|
package/es/notify/index.d.ts
CHANGED
package/es/notify/types.d.ts
CHANGED
@@ -1,11 +1,13 @@
|
|
1
1
|
import { Notify } from './function-call';
|
2
2
|
export declare type NotifyMessage = string | number;
|
3
3
|
export declare type NotifyType = 'primary' | 'success' | 'danger' | 'warning';
|
4
|
+
export declare type NotifyPosition = 'top' | 'bottom';
|
4
5
|
export declare type NotifyOptions = {
|
5
6
|
type?: NotifyType;
|
6
7
|
color?: string;
|
7
8
|
message?: NotifyMessage;
|
8
9
|
duration?: number;
|
10
|
+
position?: NotifyPosition;
|
9
11
|
className?: unknown;
|
10
12
|
background?: string;
|
11
13
|
lockScroll?: boolean;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { PropType, ExtractPropTypes } from 'vue';
|
1
|
+
import { type PropType, type ExtractPropTypes } from 'vue';
|
2
2
|
export declare type NumberKeyboardTheme = 'default' | 'custom';
|
3
3
|
declare const numberKeyboardProps: {
|
4
4
|
show: BooleanConstructor;
|
@@ -92,7 +92,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
92
92
|
type: PropType<string | string[]>;
|
93
93
|
default: string;
|
94
94
|
};
|
95
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("input" | "blur" | "update:modelValue" | "hide" | "show" | "close" | "delete")[], "input" | "blur" | "update:modelValue" | "hide" | "show" | "close" | "delete", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("
|
95
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("input" | "blur" | "update:modelValue" | "hide" | "show" | "close" | "delete")[], "input" | "blur" | "update:modelValue" | "hide" | "show" | "close" | "delete", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
96
96
|
show?: unknown;
|
97
97
|
title?: unknown;
|
98
98
|
theme?: unknown;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { PropType } from 'vue';
|
1
|
+
import { type PropType } from 'vue';
|
2
2
|
export declare type KeyType = '' | 'delete' | 'extra' | 'close';
|
3
3
|
declare const _default: import("vue").DefineComponent<{
|
4
4
|
type: PropType<KeyType>;
|
@@ -7,7 +7,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
7
7
|
wider: BooleanConstructor;
|
8
8
|
large: BooleanConstructor;
|
9
9
|
loading: BooleanConstructor;
|
10
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "press"[], "press", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("
|
10
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "press"[], "press", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
11
11
|
type?: unknown;
|
12
12
|
text?: unknown;
|
13
13
|
color?: unknown;
|
@@ -20,8 +20,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
20
20
|
wider: boolean;
|
21
21
|
} & {
|
22
22
|
text?: string | number | undefined;
|
23
|
-
type?: KeyType | undefined;
|
24
23
|
color?: string | undefined;
|
24
|
+
type?: KeyType | undefined;
|
25
25
|
}> & {
|
26
26
|
onPress?: ((...args: any[]) => any) | undefined;
|
27
27
|
}, {
|
@@ -43,7 +43,7 @@ export declare const NumberKeyboard: import("../utils").WithInstall<import("vue"
|
|
43
43
|
type: import("vue").PropType<string | string[]>;
|
44
44
|
default: string;
|
45
45
|
};
|
46
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("input" | "blur" | "update:modelValue" | "hide" | "show" | "close" | "delete")[], "input" | "blur" | "update:modelValue" | "hide" | "show" | "close" | "delete", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("
|
46
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("input" | "blur" | "update:modelValue" | "hide" | "show" | "close" | "delete")[], "input" | "blur" | "update:modelValue" | "hide" | "show" | "close" | "delete", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
47
47
|
show?: unknown;
|
48
48
|
title?: unknown;
|
49
49
|
theme?: unknown;
|
@@ -104,3 +104,8 @@ export declare const NumberKeyboard: import("../utils").WithInstall<import("vue"
|
|
104
104
|
}>>;
|
105
105
|
export default NumberKeyboard;
|
106
106
|
export type { NumberKeyboardProps, NumberKeyboardTheme, } from './NumberKeyboard';
|
107
|
+
declare module 'vue' {
|
108
|
+
interface GlobalComponents {
|
109
|
+
VanNumberKeyboard: typeof NumberKeyboard;
|
110
|
+
}
|
111
|
+
}
|
package/es/overlay/Overlay.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { PropType, CSSProperties, ExtractPropTypes } from 'vue';
|
1
|
+
import { type PropType, type CSSProperties, type ExtractPropTypes } from 'vue';
|
2
2
|
declare const overlayProps: {
|
3
3
|
show: BooleanConstructor;
|
4
4
|
zIndex: (NumberConstructor | StringConstructor)[];
|
@@ -21,7 +21,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
21
21
|
default: true;
|
22
22
|
};
|
23
23
|
customStyle: PropType<CSSProperties>;
|
24
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("
|
24
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
25
25
|
show?: unknown;
|
26
26
|
zIndex?: unknown;
|
27
27
|
duration?: unknown;
|
package/es/overlay/index.d.ts
CHANGED
@@ -8,7 +8,7 @@ export declare const Overlay: import("../utils").WithInstall<import("vue").Defin
|
|
8
8
|
default: true;
|
9
9
|
};
|
10
10
|
customStyle: import("vue").PropType<import("vue").CSSProperties>;
|
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
|
show?: unknown;
|
13
13
|
zIndex?: unknown;
|
14
14
|
duration?: unknown;
|
@@ -29,3 +29,8 @@ export declare const Overlay: import("../utils").WithInstall<import("vue").Defin
|
|
29
29
|
}>>;
|
30
30
|
export default Overlay;
|
31
31
|
export type { OverlayProps } from './Overlay';
|
32
|
+
declare module 'vue' {
|
33
|
+
interface GlobalComponents {
|
34
|
+
VanOverlay: typeof Overlay;
|
35
|
+
}
|
36
|
+
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { ExtractPropTypes } from 'vue';
|
1
|
+
import { type ExtractPropTypes } from 'vue';
|
2
2
|
export declare type PaginationMode = 'simple' | 'multi';
|
3
3
|
declare const paginationProps: {
|
4
4
|
mode: {
|
@@ -58,7 +58,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
58
58
|
default: number;
|
59
59
|
};
|
60
60
|
forceEllipses: BooleanConstructor;
|
61
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("
|
61
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
62
62
|
mode?: unknown;
|
63
63
|
prevText?: unknown;
|
64
64
|
nextText?: unknown;
|
package/es/pagination/index.d.ts
CHANGED
@@ -26,7 +26,7 @@ export declare const Pagination: import("../utils").WithInstall<import("vue").De
|
|
26
26
|
default: number;
|
27
27
|
};
|
28
28
|
forceEllipses: BooleanConstructor;
|
29
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("
|
29
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
30
30
|
mode?: unknown;
|
31
31
|
prevText?: unknown;
|
32
32
|
nextText?: unknown;
|
@@ -61,3 +61,8 @@ export declare const Pagination: import("../utils").WithInstall<import("vue").De
|
|
61
61
|
}>>;
|
62
62
|
export default Pagination;
|
63
63
|
export type { PaginationMode, PaginationProps } from './Pagination';
|
64
|
+
declare module 'vue' {
|
65
|
+
interface GlobalComponents {
|
66
|
+
VanPagination: typeof Pagination;
|
67
|
+
}
|
68
|
+
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { ExtractPropTypes } from 'vue';
|
1
|
+
import { type ExtractPropTypes } from 'vue';
|
2
2
|
declare const passwordInputProps: {
|
3
3
|
info: StringConstructor;
|
4
4
|
mask: {
|
@@ -35,7 +35,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
35
35
|
};
|
36
36
|
focused: BooleanConstructor;
|
37
37
|
errorInfo: StringConstructor;
|
38
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "focus"[], "focus", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("
|
38
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "focus"[], "focus", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
39
39
|
info?: unknown;
|
40
40
|
mask?: unknown;
|
41
41
|
value?: unknown;
|
@@ -15,7 +15,7 @@ export declare const PasswordInput: import("../utils").WithInstall<import("vue")
|
|
15
15
|
};
|
16
16
|
focused: BooleanConstructor;
|
17
17
|
errorInfo: StringConstructor;
|
18
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "focus"[], "focus", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("
|
18
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "focus"[], "focus", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
19
19
|
info?: unknown;
|
20
20
|
mask?: unknown;
|
21
21
|
value?: unknown;
|
@@ -42,3 +42,8 @@ export declare const PasswordInput: import("../utils").WithInstall<import("vue")
|
|
42
42
|
}>>;
|
43
43
|
export default PasswordInput;
|
44
44
|
export type { PasswordInputProps } from './PasswordInput';
|
45
|
+
declare module 'vue' {
|
46
|
+
interface GlobalComponents {
|
47
|
+
VanPasswordInput: typeof PasswordInput;
|
48
|
+
}
|
49
|
+
}
|
package/es/picker/Picker.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 { PickerColumn, PickerOption, PickerFieldNames, PickerToolbarPosition } from './types';
|
3
3
|
export declare const pickerSharedProps: {
|
4
4
|
title: StringConstructor;
|
@@ -102,7 +102,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
102
102
|
default: PickerToolbarPosition;
|
103
103
|
};
|
104
104
|
columnsFieldNames: PropType<PickerFieldNames>;
|
105
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "cancel" | "confirm")[], "change" | "cancel" | "confirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("
|
105
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "cancel" | "confirm")[], "change" | "cancel" | "confirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
106
106
|
title?: unknown;
|
107
107
|
loading?: unknown;
|
108
108
|
readonly?: unknown;
|
package/es/picker/Picker.js
CHANGED
@@ -322,28 +322,36 @@ export default defineComponent({
|
|
322
322
|
});
|
323
323
|
});
|
324
324
|
|
325
|
+
var renderMask = wrapHeight => {
|
326
|
+
var hasOptions = formattedColumns.value.some(item => item[valuesKey] && item[valuesKey].length !== 0);
|
327
|
+
|
328
|
+
if (hasOptions) {
|
329
|
+
var frameStyle = {
|
330
|
+
height: itemHeight.value + "px"
|
331
|
+
};
|
332
|
+
var maskStyle = {
|
333
|
+
backgroundSize: "100% " + (wrapHeight - itemHeight.value) / 2 + "px"
|
334
|
+
};
|
335
|
+
return [_createVNode("div", {
|
336
|
+
"class": bem('mask'),
|
337
|
+
"style": maskStyle
|
338
|
+
}, null), _createVNode("div", {
|
339
|
+
"class": [BORDER_UNSET_TOP_BOTTOM, bem('frame')],
|
340
|
+
"style": frameStyle
|
341
|
+
}, null)];
|
342
|
+
}
|
343
|
+
};
|
344
|
+
|
325
345
|
var renderColumns = () => {
|
326
346
|
var wrapHeight = itemHeight.value * +props.visibleItemCount;
|
327
|
-
var frameStyle = {
|
328
|
-
height: itemHeight.value + "px"
|
329
|
-
};
|
330
347
|
var columnsStyle = {
|
331
348
|
height: wrapHeight + "px"
|
332
349
|
};
|
333
|
-
var maskStyle = {
|
334
|
-
backgroundSize: "100% " + (wrapHeight - itemHeight.value) / 2 + "px"
|
335
|
-
};
|
336
350
|
return _createVNode("div", {
|
337
351
|
"class": bem('columns'),
|
338
352
|
"style": columnsStyle,
|
339
353
|
"onTouchmove": preventDefault
|
340
|
-
}, [renderColumnItems(),
|
341
|
-
"class": bem('mask'),
|
342
|
-
"style": maskStyle
|
343
|
-
}, null), _createVNode("div", {
|
344
|
-
"class": [BORDER_UNSET_TOP_BOTTOM, bem('frame')],
|
345
|
-
"style": frameStyle
|
346
|
-
}, null)]);
|
354
|
+
}, [renderColumnItems(), renderMask(wrapHeight)]);
|
347
355
|
};
|
348
356
|
|
349
357
|
watch(() => props.columns, format, {
|
@@ -28,7 +28,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
28
28
|
type: (NumberConstructor | StringConstructor)[];
|
29
29
|
required: true;
|
30
30
|
};
|
31
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("
|
31
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
32
32
|
textKey?: unknown;
|
33
33
|
readonly?: unknown;
|
34
34
|
allowHtml?: unknown;
|
package/es/picker/index.d.ts
CHANGED
@@ -37,7 +37,7 @@ export declare const Picker: import("../utils").WithInstall<import("vue").Define
|
|
37
37
|
default: import("./types").PickerToolbarPosition;
|
38
38
|
};
|
39
39
|
columnsFieldNames: import("vue").PropType<import("./types").PickerFieldNames>;
|
40
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "cancel" | "confirm")[], "change" | "cancel" | "confirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("
|
40
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "cancel" | "confirm")[], "change" | "cancel" | "confirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
41
41
|
title?: unknown;
|
42
42
|
loading?: unknown;
|
43
43
|
readonly?: unknown;
|
@@ -89,3 +89,8 @@ export declare const Picker: import("../utils").WithInstall<import("vue").Define
|
|
89
89
|
export default Picker;
|
90
90
|
export type { PickerProps };
|
91
91
|
export type { PickerColumn, PickerOption, PickerInstance, PickerFieldNames, PickerObjectColumn, PickerObjectOption, PickerToolbarPosition, } from './types';
|
92
|
+
declare module 'vue' {
|
93
|
+
interface GlobalComponents {
|
94
|
+
VanPicker: typeof Picker;
|
95
|
+
}
|
96
|
+
}
|
package/es/popover/Popover.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { PropType, CSSProperties, ExtractPropTypes } from 'vue';
|
1
|
+
import { type PropType, type CSSProperties, type ExtractPropTypes } from 'vue';
|
2
2
|
import { PopoverTheme, PopoverAction, PopoverTrigger, PopoverPlacement } from './types';
|
3
3
|
declare const popoverProps: {
|
4
4
|
show: BooleanConstructor;
|
@@ -96,7 +96,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
96
96
|
type: PropType<string | import("vue").RendererElement | null | undefined>;
|
97
97
|
default: string;
|
98
98
|
};
|
99
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "touchstart" | "update:show")[], "select" | "touchstart" | "update:show", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("
|
99
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "touchstart" | "update:show")[], "select" | "touchstart" | "update:show", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
100
100
|
show?: unknown;
|
101
101
|
theme?: unknown;
|
102
102
|
overlay?: unknown;
|
package/es/popover/Popover.js
CHANGED
@@ -2,7 +2,7 @@ import { mergeProps as _mergeProps, Fragment as _Fragment, createVNode as _creat
|
|
2
2
|
import { ref, watch, nextTick, onMounted, onBeforeUnmount, defineComponent } from 'vue';
|
3
3
|
import { createPopper, offsetModifier } from '@vant/popperjs'; // Utils
|
4
4
|
|
5
|
-
import { pick, extend, truthProp, numericProp, unknownProp, BORDER_BOTTOM, makeStringProp, createNamespace
|
5
|
+
import { pick, extend, truthProp, numericProp, unknownProp, BORDER_BOTTOM, makeArrayProp, makeStringProp, createNamespace } from '../utils'; // Composables
|
6
6
|
|
7
7
|
import { useClickAway } from '@vant/use'; // Components
|
8
8
|
|
@@ -118,10 +118,26 @@ export default defineComponent({
|
|
118
118
|
}
|
119
119
|
};
|
120
120
|
|
121
|
+
var renderActionContent = (action, index) => {
|
122
|
+
if (slots.action) {
|
123
|
+
return slots.action({
|
124
|
+
action,
|
125
|
+
index
|
126
|
+
});
|
127
|
+
}
|
128
|
+
|
129
|
+
return [action.icon && _createVNode(Icon, {
|
130
|
+
"name": action.icon,
|
131
|
+
"classPrefix": props.iconPrefix,
|
132
|
+
"class": bem('action-icon')
|
133
|
+
}, null), _createVNode("div", {
|
134
|
+
"class": [bem('action-text'), BORDER_BOTTOM]
|
135
|
+
}, [action.text])];
|
136
|
+
};
|
137
|
+
|
121
138
|
var renderAction = (action, index) => {
|
122
139
|
var {
|
123
140
|
icon,
|
124
|
-
text,
|
125
141
|
color,
|
126
142
|
disabled,
|
127
143
|
className
|
@@ -138,13 +154,7 @@ export default defineComponent({
|
|
138
154
|
"tabindex": disabled ? undefined : 0,
|
139
155
|
"aria-disabled": disabled || undefined,
|
140
156
|
"onClick": () => onClickAction(action, index)
|
141
|
-
}, [
|
142
|
-
"name": icon,
|
143
|
-
"classPrefix": props.iconPrefix,
|
144
|
-
"class": bem('action-icon')
|
145
|
-
}, null), _createVNode("div", {
|
146
|
-
"class": [bem('action-text'), BORDER_BOTTOM]
|
147
|
-
}, [text])]);
|
157
|
+
}, [renderActionContent(action, index)]);
|
148
158
|
};
|
149
159
|
|
150
160
|
onMounted(updateLocation);
|
package/es/popover/index.d.ts
CHANGED
@@ -45,7 +45,7 @@ export declare const Popover: import("../utils").WithInstall<import("vue").Defin
|
|
45
45
|
type: import("vue").PropType<string | import("vue").RendererElement | null | undefined>;
|
46
46
|
default: string;
|
47
47
|
};
|
48
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "touchstart" | "update:show")[], "select" | "touchstart" | "update:show", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("
|
48
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "touchstart" | "update:show")[], "select" | "touchstart" | "update:show", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
49
49
|
show?: unknown;
|
50
50
|
theme?: unknown;
|
51
51
|
overlay?: unknown;
|
@@ -101,3 +101,8 @@ export declare const Popover: import("../utils").WithInstall<import("vue").Defin
|
|
101
101
|
export default Popover;
|
102
102
|
export type { PopoverProps } from './Popover';
|
103
103
|
export type { PopoverTheme, PopoverAction, PopoverTrigger, PopoverPlacement, } from './types';
|
104
|
+
declare module 'vue' {
|
105
|
+
interface GlobalComponents {
|
106
|
+
VanPopover: typeof Popover;
|
107
|
+
}
|
108
|
+
}
|
package/es/popup/Popup.d.ts
CHANGED
@@ -1,6 +1,5 @@
|
|
1
|
-
import { CSSProperties, ExtractPropTypes } from 'vue';
|
2
|
-
|
3
|
-
export declare type PopupCloseIconPosition = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
1
|
+
import { type CSSProperties, type ExtractPropTypes } from 'vue';
|
2
|
+
import type { PopupPosition, PopupCloseIconPosition } from './types';
|
4
3
|
declare const popupProps: {
|
5
4
|
show: BooleanConstructor;
|
6
5
|
zIndex: (NumberConstructor | StringConstructor)[];
|
@@ -91,7 +90,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
91
90
|
default: PopupCloseIconPosition;
|
92
91
|
};
|
93
92
|
safeAreaInsetBottom: BooleanConstructor;
|
94
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("open" | "close" | "opened" | "closed" | "update:show" | "click-overlay" | "click-close-icon")[], "open" | "close" | "opened" | "closed" | "update:show" | "click-overlay" | "click-close-icon", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("
|
93
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("open" | "close" | "opened" | "closed" | "update:show" | "click-overlay" | "click-close-icon")[], "open" | "close" | "opened" | "closed" | "update:show" | "click-overlay" | "click-close-icon", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
95
94
|
show?: unknown;
|
96
95
|
zIndex?: unknown;
|
97
96
|
overlay?: unknown;
|