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
package/lib/popover/Popover.js
CHANGED
@@ -128,10 +128,26 @@ var _default = (0, _vue.defineComponent)({
|
|
128
128
|
}
|
129
129
|
};
|
130
130
|
|
131
|
+
var renderActionContent = (action, index) => {
|
132
|
+
if (slots.action) {
|
133
|
+
return slots.action({
|
134
|
+
action,
|
135
|
+
index
|
136
|
+
});
|
137
|
+
}
|
138
|
+
|
139
|
+
return [action.icon && (0, _vue.createVNode)(_icon.Icon, {
|
140
|
+
"name": action.icon,
|
141
|
+
"classPrefix": props.iconPrefix,
|
142
|
+
"class": bem('action-icon')
|
143
|
+
}, null), (0, _vue.createVNode)("div", {
|
144
|
+
"class": [bem('action-text'), _utils.BORDER_BOTTOM]
|
145
|
+
}, [action.text])];
|
146
|
+
};
|
147
|
+
|
131
148
|
var renderAction = (action, index) => {
|
132
149
|
var {
|
133
150
|
icon,
|
134
|
-
text,
|
135
151
|
color,
|
136
152
|
disabled,
|
137
153
|
className
|
@@ -148,13 +164,7 @@ var _default = (0, _vue.defineComponent)({
|
|
148
164
|
"tabindex": disabled ? undefined : 0,
|
149
165
|
"aria-disabled": disabled || undefined,
|
150
166
|
"onClick": () => onClickAction(action, index)
|
151
|
-
}, [
|
152
|
-
"name": icon,
|
153
|
-
"classPrefix": props.iconPrefix,
|
154
|
-
"class": bem('action-icon')
|
155
|
-
}, null), (0, _vue.createVNode)("div", {
|
156
|
-
"class": [bem('action-text'), _utils.BORDER_BOTTOM]
|
157
|
-
}, [text])]);
|
167
|
+
}, [renderActionContent(action, index)]);
|
158
168
|
};
|
159
169
|
|
160
170
|
(0, _vue.onMounted)(updateLocation);
|
package/lib/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/lib/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;
|
@@ -114,6 +113,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
114
113
|
closeIconPosition?: unknown;
|
115
114
|
safeAreaInsetBottom?: unknown;
|
116
115
|
} & {
|
116
|
+
position: PopupPosition;
|
117
117
|
round: boolean;
|
118
118
|
safeAreaInsetBottom: boolean;
|
119
119
|
overlay: boolean;
|
@@ -122,7 +122,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
122
122
|
lazyRender: boolean;
|
123
123
|
transitionAppear: boolean;
|
124
124
|
closeOnClickOverlay: boolean;
|
125
|
-
position: PopupPosition;
|
126
125
|
closeIcon: string;
|
127
126
|
closeable: boolean;
|
128
127
|
closeOnPopstate: boolean;
|
@@ -145,6 +144,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
145
144
|
"onClick-overlay"?: ((...args: any[]) => any) | undefined;
|
146
145
|
"onClick-close-icon"?: ((...args: any[]) => any) | undefined;
|
147
146
|
}, {
|
147
|
+
position: PopupPosition;
|
148
148
|
round: boolean;
|
149
149
|
safeAreaInsetBottom: boolean;
|
150
150
|
overlay: boolean;
|
@@ -153,7 +153,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
153
153
|
lazyRender: boolean;
|
154
154
|
transitionAppear: boolean;
|
155
155
|
closeOnClickOverlay: boolean;
|
156
|
-
position: PopupPosition;
|
157
156
|
closeIcon: string;
|
158
157
|
closeable: boolean;
|
159
158
|
closeOnPopstate: boolean;
|
package/lib/popup/Popup.js
CHANGED
@@ -175,10 +175,12 @@ var _default = (0, _vue.defineComponent)({
|
|
175
175
|
});
|
176
176
|
};
|
177
177
|
|
178
|
-
(0, _vue.watch)(() => props.show,
|
179
|
-
if (
|
178
|
+
(0, _vue.watch)(() => props.show, show => {
|
179
|
+
if (show && !opened) {
|
180
180
|
open();
|
181
|
-
}
|
181
|
+
}
|
182
|
+
|
183
|
+
if (!show && opened) {
|
182
184
|
opened = false;
|
183
185
|
emit('close');
|
184
186
|
}
|
package/lib/popup/index.d.ts
CHANGED
@@ -26,8 +26,8 @@ export declare const Popup: import("../utils").WithInstall<import("vue").DefineC
|
|
26
26
|
} & {
|
27
27
|
round: BooleanConstructor;
|
28
28
|
position: {
|
29
|
-
type: import("vue").PropType<import("./
|
30
|
-
default: import("./
|
29
|
+
type: import("vue").PropType<import("./types").PopupPosition>;
|
30
|
+
default: import("./types").PopupPosition;
|
31
31
|
};
|
32
32
|
closeIcon: {
|
33
33
|
type: import("vue").PropType<string>;
|
@@ -38,11 +38,11 @@ export declare const Popup: import("../utils").WithInstall<import("vue").DefineC
|
|
38
38
|
iconPrefix: StringConstructor;
|
39
39
|
closeOnPopstate: BooleanConstructor;
|
40
40
|
closeIconPosition: {
|
41
|
-
type: import("vue").PropType<import("./
|
42
|
-
default: import("./
|
41
|
+
type: import("vue").PropType<import("./types").PopupCloseIconPosition>;
|
42
|
+
default: import("./types").PopupCloseIconPosition;
|
43
43
|
};
|
44
44
|
safeAreaInsetBottom: BooleanConstructor;
|
45
|
-
}, () => 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("
|
45
|
+
}, () => 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<{
|
46
46
|
show?: unknown;
|
47
47
|
zIndex?: unknown;
|
48
48
|
overlay?: unknown;
|
@@ -65,6 +65,7 @@ export declare const Popup: import("../utils").WithInstall<import("vue").DefineC
|
|
65
65
|
closeIconPosition?: unknown;
|
66
66
|
safeAreaInsetBottom?: unknown;
|
67
67
|
} & {
|
68
|
+
position: import("./types").PopupPosition;
|
68
69
|
round: boolean;
|
69
70
|
safeAreaInsetBottom: boolean;
|
70
71
|
overlay: boolean;
|
@@ -73,11 +74,10 @@ export declare const Popup: import("../utils").WithInstall<import("vue").DefineC
|
|
73
74
|
lazyRender: boolean;
|
74
75
|
transitionAppear: boolean;
|
75
76
|
closeOnClickOverlay: boolean;
|
76
|
-
position: import("./Popup").PopupPosition;
|
77
77
|
closeIcon: string;
|
78
78
|
closeable: boolean;
|
79
79
|
closeOnPopstate: boolean;
|
80
|
-
closeIconPosition: import("./
|
80
|
+
closeIconPosition: import("./types").PopupCloseIconPosition;
|
81
81
|
} & {
|
82
82
|
iconPrefix?: string | undefined;
|
83
83
|
zIndex?: string | number | undefined;
|
@@ -96,6 +96,7 @@ export declare const Popup: import("../utils").WithInstall<import("vue").DefineC
|
|
96
96
|
"onClick-overlay"?: ((...args: any[]) => any) | undefined;
|
97
97
|
"onClick-close-icon"?: ((...args: any[]) => any) | undefined;
|
98
98
|
}, {
|
99
|
+
position: import("./types").PopupPosition;
|
99
100
|
round: boolean;
|
100
101
|
safeAreaInsetBottom: boolean;
|
101
102
|
overlay: boolean;
|
@@ -104,11 +105,16 @@ export declare const Popup: import("../utils").WithInstall<import("vue").DefineC
|
|
104
105
|
lazyRender: boolean;
|
105
106
|
transitionAppear: boolean;
|
106
107
|
closeOnClickOverlay: boolean;
|
107
|
-
position: import("./Popup").PopupPosition;
|
108
108
|
closeIcon: string;
|
109
109
|
closeable: boolean;
|
110
110
|
closeOnPopstate: boolean;
|
111
|
-
closeIconPosition: import("./
|
111
|
+
closeIconPosition: import("./types").PopupCloseIconPosition;
|
112
112
|
}>>;
|
113
113
|
export default Popup;
|
114
|
-
export type { PopupProps
|
114
|
+
export type { PopupProps } from './Popup';
|
115
|
+
export type { PopupPosition, PopupInstance, PopupCloseIconPosition, } from './types';
|
116
|
+
declare module 'vue' {
|
117
|
+
interface GlobalComponents {
|
118
|
+
VanPopup: typeof Popup;
|
119
|
+
}
|
120
|
+
}
|
package/lib/popup/shared.d.ts
CHANGED
@@ -0,0 +1,5 @@
|
|
1
|
+
import type { ComponentPublicInstance } from 'vue';
|
2
|
+
import type { PopupProps } from './Popup';
|
3
|
+
export declare type PopupPosition = 'top' | 'left' | 'bottom' | 'right' | 'center' | '';
|
4
|
+
export declare type PopupCloseIconPosition = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
5
|
+
export declare type PopupInstance = ComponentPublicInstance<PopupProps>;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { ExtractPropTypes } from 'vue';
|
1
|
+
import { type ExtractPropTypes } from 'vue';
|
2
2
|
declare const progressProps: {
|
3
3
|
color: StringConstructor;
|
4
4
|
inactive: BooleanConstructor;
|
@@ -35,7 +35,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
35
35
|
default: number;
|
36
36
|
validator: (value: string | number) => boolean;
|
37
37
|
};
|
38
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("
|
38
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
39
39
|
color?: unknown;
|
40
40
|
inactive?: unknown;
|
41
41
|
pivotText?: unknown;
|
package/lib/progress/index.d.ts
CHANGED
@@ -16,7 +16,7 @@ export declare const Progress: import("../utils").WithInstall<import("vue").Defi
|
|
16
16
|
default: number;
|
17
17
|
validator: (value: string | number) => boolean;
|
18
18
|
};
|
19
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("
|
19
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
20
20
|
color?: unknown;
|
21
21
|
inactive?: unknown;
|
22
22
|
pivotText?: unknown;
|
@@ -45,3 +45,8 @@ export declare const Progress: import("../utils").WithInstall<import("vue").Defi
|
|
45
45
|
export default Progress;
|
46
46
|
export type { ProgressProps };
|
47
47
|
export type { ProgressInstance } from './types';
|
48
|
+
declare module 'vue' {
|
49
|
+
interface GlobalComponents {
|
50
|
+
VanProgress: typeof Progress;
|
51
|
+
}
|
52
|
+
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { ExtractPropTypes } from 'vue';
|
1
|
+
import { type ExtractPropTypes } from 'vue';
|
2
2
|
declare const pullRefreshProps: {
|
3
3
|
disabled: BooleanConstructor;
|
4
4
|
modelValue: BooleanConstructor;
|
@@ -41,7 +41,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
41
41
|
type: (NumberConstructor | StringConstructor)[];
|
42
42
|
default: number;
|
43
43
|
};
|
44
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "refresh")[], "update:modelValue" | "refresh", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("
|
44
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "refresh")[], "update:modelValue" | "refresh", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
45
45
|
disabled?: unknown;
|
46
46
|
modelValue?: unknown;
|
47
47
|
headHeight?: unknown;
|
@@ -1 +1 @@
|
|
1
|
-
:root{--van-pull-refresh-head-height:50px;--van-pull-refresh-head-font-size:var(--van-font-size-md);--van-pull-refresh-head-text-color:var(--van-text-color-2);--van-pull-refresh-loading-icon-size:16px}.van-pull-refresh{overflow:hidden
|
1
|
+
:root{--van-pull-refresh-head-height:50px;--van-pull-refresh-head-font-size:var(--van-font-size-md);--van-pull-refresh-head-text-color:var(--van-text-color-2);--van-pull-refresh-loading-icon-size:16px}.van-pull-refresh{overflow:hidden}.van-pull-refresh__track{position:relative;height:100%;transition-property:transform}.van-pull-refresh__head{position:absolute;left:0;width:100%;height:var(--van-pull-refresh-head-height);overflow:hidden;color:var(--van-pull-refresh-head-text-color);font-size:var(--van-pull-refresh-head-font-size);line-height:var(--van-pull-refresh-head-height);text-align:center;transform:translateY(-100%)}.van-pull-refresh__loading .van-loading__spinner{width:var(--van-pull-refresh-loading-icon-size);height:var(--van-pull-refresh-loading-icon-size)}
|
@@ -18,7 +18,7 @@ export declare const PullRefresh: import("../utils").WithInstall<import("vue").D
|
|
18
18
|
type: (NumberConstructor | StringConstructor)[];
|
19
19
|
default: number;
|
20
20
|
};
|
21
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "refresh")[], "update:modelValue" | "refresh", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("
|
21
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "refresh")[], "update:modelValue" | "refresh", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
22
22
|
disabled?: unknown;
|
23
23
|
modelValue?: unknown;
|
24
24
|
headHeight?: unknown;
|
@@ -53,3 +53,8 @@ export declare const PullRefresh: import("../utils").WithInstall<import("vue").D
|
|
53
53
|
}>>;
|
54
54
|
export default PullRefresh;
|
55
55
|
export type { PullRefreshProps } from './PullRefresh';
|
56
|
+
declare module 'vue' {
|
57
|
+
interface GlobalComponents {
|
58
|
+
VanPullRefresh: typeof PullRefresh;
|
59
|
+
}
|
60
|
+
}
|
package/lib/radio/Radio.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { ExtractPropTypes } from 'vue';
|
1
|
+
import { type ExtractPropTypes } from 'vue';
|
2
2
|
import { checkerProps, CheckerShape, CheckerLabelPosition } from '../checkbox/Checker';
|
3
3
|
export declare type RadioShape = CheckerShape;
|
4
4
|
export declare type RadioLabelPosition = CheckerLabelPosition;
|
@@ -15,7 +15,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
15
15
|
checkedColor: StringConstructor;
|
16
16
|
labelPosition: import("vue").PropType<CheckerLabelPosition>;
|
17
17
|
labelDisabled: BooleanConstructor;
|
18
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("
|
18
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
19
19
|
name?: unknown;
|
20
20
|
shape?: unknown;
|
21
21
|
disabled?: unknown;
|
package/lib/radio/index.d.ts
CHANGED
@@ -10,7 +10,7 @@ export declare const Radio: import("../utils").WithInstall<import("vue").DefineC
|
|
10
10
|
checkedColor: StringConstructor;
|
11
11
|
labelPosition: import("vue").PropType<import("../checkbox/Checker").CheckerLabelPosition>;
|
12
12
|
labelDisabled: BooleanConstructor;
|
13
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("
|
13
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
14
14
|
name?: unknown;
|
15
15
|
shape?: unknown;
|
16
16
|
disabled?: unknown;
|
@@ -38,3 +38,8 @@ export declare const Radio: import("../utils").WithInstall<import("vue").DefineC
|
|
38
38
|
}>>;
|
39
39
|
export default Radio;
|
40
40
|
export type { RadioProps, RadioShape, RadioLabelPosition } from './Radio';
|
41
|
+
declare module 'vue' {
|
42
|
+
interface GlobalComponents {
|
43
|
+
VanRadio: typeof Radio;
|
44
|
+
}
|
45
|
+
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { PropType, InjectionKey, ExtractPropTypes } from 'vue';
|
1
|
+
import { type PropType, type InjectionKey, type ExtractPropTypes } from 'vue';
|
2
2
|
import type { CheckerDirection } from '../checkbox/Checker';
|
3
3
|
export declare type RadioGroupDirection = CheckerDirection;
|
4
4
|
declare const radioGroupProps: {
|
@@ -20,7 +20,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
20
20
|
direction: PropType<CheckerDirection>;
|
21
21
|
modelValue: PropType<unknown>;
|
22
22
|
checkedColor: StringConstructor;
|
23
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("
|
23
|
+
}, () => 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<{
|
24
24
|
disabled?: unknown;
|
25
25
|
iconSize?: unknown;
|
26
26
|
direction?: unknown;
|
@@ -4,7 +4,7 @@ export declare const RadioGroup: import("../utils").WithInstall<import("vue").De
|
|
4
4
|
direction: import("vue").PropType<import("../checkbox/Checker").CheckerDirection>;
|
5
5
|
modelValue: import("vue").PropType<unknown>;
|
6
6
|
checkedColor: StringConstructor;
|
7
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("
|
7
|
+
}, () => 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<{
|
8
8
|
disabled?: unknown;
|
9
9
|
iconSize?: unknown;
|
10
10
|
direction?: unknown;
|
@@ -25,3 +25,8 @@ export declare const RadioGroup: import("../utils").WithInstall<import("vue").De
|
|
25
25
|
}>>;
|
26
26
|
export default RadioGroup;
|
27
27
|
export type { RadioGroupProps, RadioGroupDirection } from './RadioGroup';
|
28
|
+
declare module 'vue' {
|
29
|
+
interface GlobalComponents {
|
30
|
+
VanRadioGroup: typeof RadioGroup;
|
31
|
+
}
|
32
|
+
}
|
package/lib/rate/Rate.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { ExtractPropTypes } from 'vue';
|
1
|
+
import { type ExtractPropTypes } from 'vue';
|
2
2
|
declare const rateProps: {
|
3
3
|
size: (NumberConstructor | StringConstructor)[];
|
4
4
|
icon: {
|
@@ -61,7 +61,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
61
61
|
default: number;
|
62
62
|
};
|
63
63
|
disabledColor: StringConstructor;
|
64
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("
|
64
|
+
}, () => 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<{
|
65
65
|
size?: unknown;
|
66
66
|
icon?: unknown;
|
67
67
|
color?: unknown;
|
package/lib/rate/index.d.ts
CHANGED
@@ -28,7 +28,7 @@ export declare const Rate: import("../utils").WithInstall<import("vue").DefineCo
|
|
28
28
|
default: number;
|
29
29
|
};
|
30
30
|
disabledColor: StringConstructor;
|
31
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("
|
31
|
+
}, () => 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<{
|
32
32
|
size?: unknown;
|
33
33
|
icon?: unknown;
|
34
34
|
color?: unknown;
|
@@ -74,3 +74,8 @@ export declare const Rate: import("../utils").WithInstall<import("vue").DefineCo
|
|
74
74
|
}>>;
|
75
75
|
export default Rate;
|
76
76
|
export type { RateProps } from './Rate';
|
77
|
+
declare module 'vue' {
|
78
|
+
interface GlobalComponents {
|
79
|
+
VanRate: typeof Rate;
|
80
|
+
}
|
81
|
+
}
|
package/lib/row/Row.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { PropType, ComputedRef, InjectionKey, ExtractPropTypes } from 'vue';
|
1
|
+
import { type PropType, type ComputedRef, type InjectionKey, type ExtractPropTypes } from 'vue';
|
2
2
|
export declare type RowSpaces = {
|
3
3
|
left?: number;
|
4
4
|
right: number;
|
@@ -41,7 +41,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
41
41
|
default: number;
|
42
42
|
};
|
43
43
|
justify: PropType<RowJustify>;
|
44
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("
|
44
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
45
45
|
tag?: unknown;
|
46
46
|
wrap?: unknown;
|
47
47
|
align?: unknown;
|
package/lib/row/index.d.ts
CHANGED
@@ -13,7 +13,7 @@ export declare const Row: import("../utils").WithInstall<import("vue").DefineCom
|
|
13
13
|
default: number;
|
14
14
|
};
|
15
15
|
justify: import("vue").PropType<import("./Row").RowJustify>;
|
16
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("
|
16
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
17
17
|
tag?: unknown;
|
18
18
|
wrap?: unknown;
|
19
19
|
align?: unknown;
|
@@ -33,3 +33,8 @@ export declare const Row: import("../utils").WithInstall<import("vue").DefineCom
|
|
33
33
|
}>>;
|
34
34
|
export default Row;
|
35
35
|
export type { RowProps, RowAlign, RowJustify } from './Row';
|
36
|
+
declare module 'vue' {
|
37
|
+
interface GlobalComponents {
|
38
|
+
VanRow: typeof Row;
|
39
|
+
}
|
40
|
+
}
|
package/lib/search/Search.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { ExtractPropTypes } from 'vue';
|
1
|
+
import { type ExtractPropTypes } from 'vue';
|
2
2
|
import type { SearchShape } from './types';
|
3
3
|
declare const searchProps: {
|
4
4
|
id: StringConstructor;
|
@@ -118,7 +118,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
118
118
|
actionText: StringConstructor;
|
119
119
|
background: StringConstructor;
|
120
120
|
showAction: BooleanConstructor;
|
121
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("search" | "update:modelValue" | "cancel")[], "search" | "update:modelValue" | "cancel", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("
|
121
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("search" | "clear" | "focus" | "blur" | "click-input" | "click-left-icon" | "click-right-icon" | "update:modelValue" | "cancel")[], "search" | "clear" | "focus" | "blur" | "click-input" | "click-left-icon" | "click-right-icon" | "update:modelValue" | "cancel", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
122
122
|
id?: unknown;
|
123
123
|
name?: unknown;
|
124
124
|
leftIcon?: unknown;
|
@@ -170,6 +170,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
170
170
|
background?: string | undefined;
|
171
171
|
actionText?: string | undefined;
|
172
172
|
}> & {
|
173
|
+
onFocus?: ((...args: any[]) => any) | undefined;
|
174
|
+
onBlur?: ((...args: any[]) => any) | undefined;
|
175
|
+
onClear?: ((...args: any[]) => any) | undefined;
|
176
|
+
"onClick-input"?: ((...args: any[]) => any) | undefined;
|
177
|
+
"onClick-left-icon"?: ((...args: any[]) => any) | undefined;
|
178
|
+
"onClick-right-icon"?: ((...args: any[]) => any) | undefined;
|
173
179
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
174
180
|
onCancel?: ((...args: any[]) => any) | undefined;
|
175
181
|
onSearch?: ((...args: any[]) => any) | undefined;
|
package/lib/search/Search.js
CHANGED
@@ -32,7 +32,7 @@ var searchProps = (0, _utils.extend)({}, _Field.fieldSharedProps, {
|
|
32
32
|
var _default = (0, _vue.defineComponent)({
|
33
33
|
name,
|
34
34
|
props: searchProps,
|
35
|
-
emits: ['search', 'cancel', 'update:modelValue'],
|
35
|
+
emits: ['blur', 'focus', 'clear', 'search', 'cancel', 'click-input', 'click-left-icon', 'click-right-icon', 'update:modelValue'],
|
36
36
|
|
37
37
|
setup(props, _ref) {
|
38
38
|
var {
|
@@ -94,6 +94,18 @@ var _default = (0, _vue.defineComponent)({
|
|
94
94
|
return (_filedRef$value2 = filedRef.value) == null ? void 0 : _filedRef$value2.focus();
|
95
95
|
};
|
96
96
|
|
97
|
+
var onBlur = event => emit('blur', event);
|
98
|
+
|
99
|
+
var onFocus = event => emit('focus', event);
|
100
|
+
|
101
|
+
var onClear = event => emit('clear', event);
|
102
|
+
|
103
|
+
var onClickInput = event => emit('click-input', event);
|
104
|
+
|
105
|
+
var onClickLeftIcon = event => emit('click-left-icon', event);
|
106
|
+
|
107
|
+
var onClickRightIcon = event => emit('click-right-icon', event);
|
108
|
+
|
97
109
|
var fieldPropNames = Object.keys(_Field.fieldSharedProps);
|
98
110
|
|
99
111
|
var renderField = () => {
|
@@ -108,7 +120,13 @@ var _default = (0, _vue.defineComponent)({
|
|
108
120
|
"type": "search",
|
109
121
|
"class": bem('field'),
|
110
122
|
"border": false,
|
123
|
+
"onBlur": onBlur,
|
124
|
+
"onFocus": onFocus,
|
125
|
+
"onClear": onClear,
|
111
126
|
"onKeypress": onKeypress,
|
127
|
+
"onClick-input": onClickInput,
|
128
|
+
"onClick-left-icon": onClickLeftIcon,
|
129
|
+
"onClick-right-icon": onClickRightIcon,
|
112
130
|
"onUpdate:modelValue": onInput
|
113
131
|
}, fieldAttrs), (0, _utils.pick)(slots, ['left-icon', 'right-icon']));
|
114
132
|
};
|
package/lib/search/index.d.ts
CHANGED
@@ -57,7 +57,7 @@ export declare const Search: import("../utils").WithInstall<import("vue").Define
|
|
57
57
|
actionText: StringConstructor;
|
58
58
|
background: StringConstructor;
|
59
59
|
showAction: BooleanConstructor;
|
60
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("search" | "update:modelValue" | "cancel")[], "search" | "update:modelValue" | "cancel", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("
|
60
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("search" | "clear" | "focus" | "blur" | "click-input" | "click-left-icon" | "click-right-icon" | "update:modelValue" | "cancel")[], "search" | "clear" | "focus" | "blur" | "click-input" | "click-left-icon" | "click-right-icon" | "update:modelValue" | "cancel", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
61
61
|
id?: unknown;
|
62
62
|
name?: unknown;
|
63
63
|
leftIcon?: unknown;
|
@@ -109,6 +109,12 @@ export declare const Search: import("../utils").WithInstall<import("vue").Define
|
|
109
109
|
background?: string | undefined;
|
110
110
|
actionText?: string | undefined;
|
111
111
|
}> & {
|
112
|
+
onFocus?: ((...args: any[]) => any) | undefined;
|
113
|
+
onBlur?: ((...args: any[]) => any) | undefined;
|
114
|
+
onClear?: ((...args: any[]) => any) | undefined;
|
115
|
+
"onClick-input"?: ((...args: any[]) => any) | undefined;
|
116
|
+
"onClick-left-icon"?: ((...args: any[]) => any) | undefined;
|
117
|
+
"onClick-right-icon"?: ((...args: any[]) => any) | undefined;
|
112
118
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
113
119
|
onCancel?: ((...args: any[]) => any) | undefined;
|
114
120
|
onSearch?: ((...args: any[]) => any) | undefined;
|
@@ -129,3 +135,8 @@ export declare const Search: import("../utils").WithInstall<import("vue").Define
|
|
129
135
|
export default Search;
|
130
136
|
export type { SearchProps };
|
131
137
|
export type { SearchShape, SearchInstance } from './types';
|
138
|
+
declare module 'vue' {
|
139
|
+
interface GlobalComponents {
|
140
|
+
VanSearch: typeof Search;
|
141
|
+
}
|
142
|
+
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { ExtractPropTypes } from 'vue';
|
1
|
+
import { type ExtractPropTypes } from 'vue';
|
2
2
|
export declare type ShareSheetOption = {
|
3
3
|
name: string;
|
4
4
|
icon: string;
|
@@ -98,7 +98,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
98
98
|
type: BooleanConstructor;
|
99
99
|
default: true;
|
100
100
|
};
|
101
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "update:show" | "cancel")[], "select" | "update:show" | "cancel", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("
|
101
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "update:show" | "cancel")[], "select" | "update:show" | "cancel", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
102
102
|
show?: unknown;
|
103
103
|
zIndex?: unknown;
|
104
104
|
overlay?: unknown;
|
@@ -43,7 +43,7 @@ export declare const ShareSheet: import("../utils").WithInstall<import("vue").De
|
|
43
43
|
type: BooleanConstructor;
|
44
44
|
default: true;
|
45
45
|
};
|
46
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "update:show" | "cancel")[], "select" | "update:show" | "cancel", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("
|
46
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "update:show" | "cancel")[], "select" | "update:show" | "cancel", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
47
47
|
show?: unknown;
|
48
48
|
zIndex?: unknown;
|
49
49
|
overlay?: unknown;
|
@@ -102,3 +102,8 @@ export declare const ShareSheet: import("../utils").WithInstall<import("vue").De
|
|
102
102
|
}>>;
|
103
103
|
export default ShareSheet;
|
104
104
|
export type { ShareSheetProps, ShareSheetOption, ShareSheetOptions, } from './ShareSheet';
|
105
|
+
declare module 'vue' {
|
106
|
+
interface GlobalComponents {
|
107
|
+
VanShareSheet: typeof ShareSheet;
|
108
|
+
}
|
109
|
+
}
|
package/lib/sidebar/Sidebar.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { InjectionKey, ExtractPropTypes } from 'vue';
|
1
|
+
import { type InjectionKey, type ExtractPropTypes } from 'vue';
|
2
2
|
export declare type SidebarProvide = {
|
3
3
|
getActive: () => number;
|
4
4
|
setActive: (value: number) => void;
|
@@ -16,7 +16,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
16
16
|
type: (NumberConstructor | StringConstructor)[];
|
17
17
|
default: number;
|
18
18
|
};
|
19
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("
|
19
|
+
}, () => 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<{
|
20
20
|
modelValue?: unknown;
|
21
21
|
} & {
|
22
22
|
modelValue: string | number;
|
package/lib/sidebar/index.d.ts
CHANGED
@@ -3,7 +3,7 @@ export declare const Sidebar: import("../utils").WithInstall<import("vue").Defin
|
|
3
3
|
type: (NumberConstructor | StringConstructor)[];
|
4
4
|
default: number;
|
5
5
|
};
|
6
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("
|
6
|
+
}, () => 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<{
|
7
7
|
modelValue?: unknown;
|
8
8
|
} & {
|
9
9
|
modelValue: string | number;
|
@@ -15,3 +15,8 @@ export declare const Sidebar: import("../utils").WithInstall<import("vue").Defin
|
|
15
15
|
}>>;
|
16
16
|
export default Sidebar;
|
17
17
|
export type { SidebarProps } from './Sidebar';
|
18
|
+
declare module 'vue' {
|
19
|
+
interface GlobalComponents {
|
20
|
+
VanSidebar: typeof Sidebar;
|
21
|
+
}
|
22
|
+
}
|