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/lib/vant.es.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { useWindowSize, useRect, useChildren, useParent, onMountedOrActivated, getScrollParent, useEventListener, CUSTOM_FIELD_INJECTION_KEY, useCustomFieldValue, useToggle, raf, useScrollParent, usePageVisibility, doubleRaf, cancelRaf, useCountDown, useClickAway, inBrowser as inBrowser$1 } from "@vant/use";
|
2
|
-
import { unref, ref, reactive, defineComponent, createVNode, getCurrentInstance, computed, provide, inject, onDeactivated, onBeforeUnmount, watch, Transition, withDirectives, vShow, onMounted, onActivated, Teleport, Fragment,
|
2
|
+
import { unref, ref, reactive, defineComponent, createVNode, getCurrentInstance, computed, provide, inject, mergeProps, onDeactivated, onBeforeUnmount, watch, Transition, withDirectives, vShow, onMounted, onActivated, Teleport, Fragment, nextTick, createTextVNode, createApp, onUnmounted, onBeforeUpdate, resolveDirective, h, onUpdated, watchEffect } from "vue";
|
3
3
|
import { createPopper, offsetModifier } from "@vant/popperjs";
|
4
4
|
function noop() {
|
5
5
|
}
|
@@ -603,6 +603,7 @@ var iconProps = {
|
|
603
603
|
size: numericProp,
|
604
604
|
badge: numericProp,
|
605
605
|
color: String,
|
606
|
+
badgeProps: Object,
|
606
607
|
classPrefix: String
|
607
608
|
};
|
608
609
|
var _Icon = defineComponent({
|
@@ -624,16 +625,16 @@ var _Icon = defineComponent({
|
|
624
625
|
color
|
625
626
|
} = props;
|
626
627
|
var isImageIcon = isImage(name2);
|
627
|
-
return createVNode(Badge, {
|
628
|
+
return createVNode(Badge, mergeProps({
|
628
629
|
"dot": dot,
|
629
630
|
"tag": tag,
|
630
|
-
"content": badge,
|
631
631
|
"class": [classPrefix.value, isImageIcon ? "" : classPrefix.value + "-" + name2],
|
632
632
|
"style": {
|
633
633
|
color,
|
634
634
|
fontSize: addUnit(size)
|
635
|
-
}
|
636
|
-
|
635
|
+
},
|
636
|
+
"content": badge
|
637
|
+
}, props.badgeProps), {
|
637
638
|
default: () => [slots.default == null ? void 0 : slots.default(), isImageIcon && createVNode("img", {
|
638
639
|
"class": bem$1n("image"),
|
639
640
|
"src": name2
|
@@ -916,6 +917,7 @@ var actionBarIconProps = extend({}, routeProps, {
|
|
916
917
|
color: String,
|
917
918
|
badge: numericProp,
|
918
919
|
iconClass: unknownProp,
|
920
|
+
badgeProps: Object,
|
919
921
|
iconPrefix: String
|
920
922
|
});
|
921
923
|
var _ActionBarIcon = defineComponent({
|
@@ -934,14 +936,15 @@ var _ActionBarIcon = defineComponent({
|
|
934
936
|
icon,
|
935
937
|
color,
|
936
938
|
iconClass,
|
939
|
+
badgeProps: badgeProps2,
|
937
940
|
iconPrefix
|
938
941
|
} = props;
|
939
942
|
if (slots.icon) {
|
940
|
-
return createVNode(Badge, {
|
943
|
+
return createVNode(Badge, mergeProps({
|
941
944
|
"dot": dot,
|
942
|
-
"
|
943
|
-
"
|
944
|
-
}, {
|
945
|
+
"class": bem$1j("icon"),
|
946
|
+
"content": badge
|
947
|
+
}, badgeProps2), {
|
945
948
|
default: slots.icon
|
946
949
|
});
|
947
950
|
}
|
@@ -952,6 +955,7 @@ var _ActionBarIcon = defineComponent({
|
|
952
955
|
"badge": badge,
|
953
956
|
"color": color,
|
954
957
|
"class": [bem$1j("icon"), iconClass],
|
958
|
+
"badgeProps": badgeProps2,
|
955
959
|
"classPrefix": iconPrefix
|
956
960
|
}, null);
|
957
961
|
};
|
@@ -979,12 +983,11 @@ var popupSharedProps = {
|
|
979
983
|
closeOnClickOverlay: truthProp
|
980
984
|
};
|
981
985
|
var popupSharedPropKeys = Object.keys(popupSharedProps);
|
982
|
-
var MIN_DISTANCE = 10;
|
983
986
|
function getDirection(x, y) {
|
984
|
-
if (x > y
|
987
|
+
if (x > y) {
|
985
988
|
return "horizontal";
|
986
989
|
}
|
987
|
-
if (y > x
|
990
|
+
if (y > x) {
|
988
991
|
return "vertical";
|
989
992
|
}
|
990
993
|
return "";
|
@@ -1017,7 +1020,8 @@ function useTouch() {
|
|
1017
1020
|
deltaY.value = touch.clientY - startY.value;
|
1018
1021
|
offsetX.value = Math.abs(deltaX.value);
|
1019
1022
|
offsetY.value = Math.abs(deltaY.value);
|
1020
|
-
|
1023
|
+
var LOCK_DIRECTION_DISTANCE = 10;
|
1024
|
+
if (!direction.value || offsetX.value < LOCK_DIRECTION_DISTANCE && offsetY.value < LOCK_DIRECTION_DISTANCE) {
|
1021
1025
|
direction.value = getDirection(offsetX.value, offsetY.value);
|
1022
1026
|
}
|
1023
1027
|
};
|
@@ -1281,10 +1285,11 @@ var _Popup = defineComponent({
|
|
1281
1285
|
default: renderPopup
|
1282
1286
|
});
|
1283
1287
|
};
|
1284
|
-
watch(() => props.show, (
|
1285
|
-
if (
|
1288
|
+
watch(() => props.show, (show) => {
|
1289
|
+
if (show && !opened) {
|
1286
1290
|
open();
|
1287
|
-
}
|
1291
|
+
}
|
1292
|
+
if (!show && opened) {
|
1288
1293
|
opened = false;
|
1289
1294
|
emit("close");
|
1290
1295
|
}
|
@@ -1380,34 +1385,43 @@ var _ActionSheet = defineComponent({
|
|
1380
1385
|
}, [slots.cancel ? slots.cancel() : props.cancelText])];
|
1381
1386
|
}
|
1382
1387
|
};
|
1383
|
-
var
|
1388
|
+
var renderActionContent = (action, index2) => {
|
1389
|
+
if (action.loading) {
|
1390
|
+
return createVNode(Loading, {
|
1391
|
+
"class": bem$1g("loading-icon")
|
1392
|
+
}, null);
|
1393
|
+
}
|
1394
|
+
if (slots.action) {
|
1395
|
+
return slots.action({
|
1396
|
+
action,
|
1397
|
+
index: index2
|
1398
|
+
});
|
1399
|
+
}
|
1400
|
+
return [createVNode("span", {
|
1401
|
+
"class": bem$1g("name")
|
1402
|
+
}, [action.name]), action.subname && createVNode("div", {
|
1403
|
+
"class": bem$1g("subname")
|
1404
|
+
}, [action.subname])];
|
1405
|
+
};
|
1406
|
+
var renderAction = (action, index2) => {
|
1384
1407
|
var {
|
1385
|
-
name: name2,
|
1386
1408
|
color,
|
1387
|
-
subname,
|
1388
1409
|
loading,
|
1389
1410
|
callback,
|
1390
1411
|
disabled,
|
1391
1412
|
className
|
1392
|
-
} =
|
1393
|
-
var Content = loading ? createVNode(Loading, {
|
1394
|
-
"class": bem$1g("loading-icon")
|
1395
|
-
}, null) : [createVNode("span", {
|
1396
|
-
"class": bem$1g("name")
|
1397
|
-
}, [name2]), subname && createVNode("div", {
|
1398
|
-
"class": bem$1g("subname")
|
1399
|
-
}, [subname])];
|
1413
|
+
} = action;
|
1400
1414
|
var onClick = () => {
|
1401
1415
|
if (disabled || loading) {
|
1402
1416
|
return;
|
1403
1417
|
}
|
1404
1418
|
if (callback) {
|
1405
|
-
callback(
|
1419
|
+
callback(action);
|
1406
1420
|
}
|
1407
1421
|
if (props.closeOnClickAction) {
|
1408
1422
|
updateShow(false);
|
1409
1423
|
}
|
1410
|
-
nextTick(() => emit("select",
|
1424
|
+
nextTick(() => emit("select", action, index2));
|
1411
1425
|
};
|
1412
1426
|
return createVNode("button", {
|
1413
1427
|
"type": "button",
|
@@ -1419,7 +1433,7 @@ var _ActionSheet = defineComponent({
|
|
1419
1433
|
disabled
|
1420
1434
|
}), className],
|
1421
1435
|
"onClick": onClick
|
1422
|
-
}, [
|
1436
|
+
}, [renderActionContent(action, index2)]);
|
1423
1437
|
};
|
1424
1438
|
var renderDescription = () => {
|
1425
1439
|
if (props.description || slots.description) {
|
@@ -1436,7 +1450,7 @@ var _ActionSheet = defineComponent({
|
|
1436
1450
|
}, pick(props, popupInheritKeys$2)), {
|
1437
1451
|
default: () => [renderHeader(), renderDescription(), createVNode("div", {
|
1438
1452
|
"class": bem$1g("content")
|
1439
|
-
}, [props.actions.map(
|
1453
|
+
}, [props.actions.map(renderAction), slots.default == null ? void 0 : slots.default()]), renderCancel()]
|
1440
1454
|
});
|
1441
1455
|
}
|
1442
1456
|
});
|
@@ -1924,28 +1938,34 @@ var _Picker = defineComponent({
|
|
1924
1938
|
option: slots.option
|
1925
1939
|
});
|
1926
1940
|
});
|
1941
|
+
var renderMask = (wrapHeight) => {
|
1942
|
+
var hasOptions = formattedColumns.value.some((item) => item[valuesKey] && item[valuesKey].length !== 0);
|
1943
|
+
if (hasOptions) {
|
1944
|
+
var frameStyle = {
|
1945
|
+
height: itemHeight.value + "px"
|
1946
|
+
};
|
1947
|
+
var maskStyle = {
|
1948
|
+
backgroundSize: "100% " + (wrapHeight - itemHeight.value) / 2 + "px"
|
1949
|
+
};
|
1950
|
+
return [createVNode("div", {
|
1951
|
+
"class": bem$1e("mask"),
|
1952
|
+
"style": maskStyle
|
1953
|
+
}, null), createVNode("div", {
|
1954
|
+
"class": [BORDER_UNSET_TOP_BOTTOM, bem$1e("frame")],
|
1955
|
+
"style": frameStyle
|
1956
|
+
}, null)];
|
1957
|
+
}
|
1958
|
+
};
|
1927
1959
|
var renderColumns = () => {
|
1928
1960
|
var wrapHeight = itemHeight.value * +props.visibleItemCount;
|
1929
|
-
var frameStyle = {
|
1930
|
-
height: itemHeight.value + "px"
|
1931
|
-
};
|
1932
1961
|
var columnsStyle = {
|
1933
1962
|
height: wrapHeight + "px"
|
1934
1963
|
};
|
1935
|
-
var maskStyle = {
|
1936
|
-
backgroundSize: "100% " + (wrapHeight - itemHeight.value) / 2 + "px"
|
1937
|
-
};
|
1938
1964
|
return createVNode("div", {
|
1939
1965
|
"class": bem$1e("columns"),
|
1940
1966
|
"style": columnsStyle,
|
1941
1967
|
"onTouchmove": preventDefault
|
1942
|
-
}, [renderColumnItems(),
|
1943
|
-
"class": bem$1e("mask"),
|
1944
|
-
"style": maskStyle
|
1945
|
-
}, null), createVNode("div", {
|
1946
|
-
"class": [BORDER_UNSET_TOP_BOTTOM, bem$1e("frame")],
|
1947
|
-
"style": frameStyle
|
1948
|
-
}, null)]);
|
1968
|
+
}, [renderColumnItems(), renderMask(wrapHeight)]);
|
1949
1969
|
};
|
1950
1970
|
watch(() => props.columns, format2, {
|
1951
1971
|
immediate: true
|
@@ -4190,11 +4210,17 @@ function calcDateNum(date) {
|
|
4190
4210
|
}
|
4191
4211
|
function useRefs() {
|
4192
4212
|
var refs = ref([]);
|
4213
|
+
var cache = [];
|
4193
4214
|
onBeforeUpdate(() => {
|
4194
4215
|
refs.value = [];
|
4195
4216
|
});
|
4196
|
-
var setRefs = (index2) =>
|
4197
|
-
|
4217
|
+
var setRefs = (index2) => {
|
4218
|
+
if (!cache[index2]) {
|
4219
|
+
cache[index2] = (el) => {
|
4220
|
+
refs.value[index2] = el;
|
4221
|
+
};
|
4222
|
+
}
|
4223
|
+
return cache[index2];
|
4198
4224
|
};
|
4199
4225
|
return [refs, setRefs];
|
4200
4226
|
}
|
@@ -5442,16 +5468,19 @@ var TabsTitle = defineComponent({
|
|
5442
5468
|
color: String,
|
5443
5469
|
title: String,
|
5444
5470
|
badge: numericProp,
|
5471
|
+
shrink: Boolean,
|
5445
5472
|
isActive: Boolean,
|
5446
5473
|
disabled: Boolean,
|
5447
5474
|
controls: String,
|
5448
5475
|
scrollable: Boolean,
|
5449
5476
|
activeColor: String,
|
5450
|
-
renderTitle: Function,
|
5451
5477
|
inactiveColor: String,
|
5452
5478
|
showZeroBadge: truthProp
|
5453
5479
|
},
|
5454
|
-
setup(props) {
|
5480
|
+
setup(props, _ref) {
|
5481
|
+
var {
|
5482
|
+
slots
|
5483
|
+
} = _ref;
|
5455
5484
|
var style = computed(() => {
|
5456
5485
|
var style2 = {};
|
5457
5486
|
var {
|
@@ -5484,7 +5513,7 @@ var TabsTitle = defineComponent({
|
|
5484
5513
|
"class": bem$Y("text", {
|
5485
5514
|
ellipsis: !props.scrollable
|
5486
5515
|
})
|
5487
|
-
}, [
|
5516
|
+
}, [slots.title ? slots.title() : props.title]);
|
5488
5517
|
if (props.dot || isDef(props.badge) && props.badge !== "") {
|
5489
5518
|
return createVNode(Badge, {
|
5490
5519
|
"dot": props.dot,
|
@@ -5499,10 +5528,12 @@ var TabsTitle = defineComponent({
|
|
5499
5528
|
return () => createVNode("div", {
|
5500
5529
|
"id": props.id,
|
5501
5530
|
"role": "tab",
|
5502
|
-
"class": [bem$Y({
|
5531
|
+
"class": [bem$Y([props.type, {
|
5532
|
+
grow: props.scrollable && !props.shrink,
|
5533
|
+
shrink: props.shrink,
|
5503
5534
|
active: props.isActive,
|
5504
5535
|
disabled: props.disabled
|
5505
|
-
})],
|
5536
|
+
}])],
|
5506
5537
|
"style": style.value,
|
5507
5538
|
"tabindex": props.disabled ? void 0 : props.isActive ? 0 : -1,
|
5508
5539
|
"aria-selected": props.isActive,
|
@@ -5688,26 +5719,33 @@ var _Swipe = defineComponent({
|
|
5688
5719
|
if (!root.value) {
|
5689
5720
|
return;
|
5690
5721
|
}
|
5691
|
-
|
5692
|
-
|
5693
|
-
|
5694
|
-
|
5695
|
-
|
5696
|
-
|
5697
|
-
|
5698
|
-
|
5699
|
-
|
5700
|
-
|
5701
|
-
|
5702
|
-
|
5722
|
+
var cb = () => {
|
5723
|
+
if (!isHidden(root)) {
|
5724
|
+
var _props$width, _props$height;
|
5725
|
+
var rect = {
|
5726
|
+
width: root.value.offsetWidth,
|
5727
|
+
height: root.value.offsetHeight
|
5728
|
+
};
|
5729
|
+
state.rect = rect;
|
5730
|
+
state.width = +((_props$width = props.width) != null ? _props$width : rect.width);
|
5731
|
+
state.height = +((_props$height = props.height) != null ? _props$height : rect.height);
|
5732
|
+
}
|
5733
|
+
if (count.value) {
|
5734
|
+
active = Math.min(count.value - 1, active);
|
5735
|
+
}
|
5736
|
+
state.active = active;
|
5737
|
+
state.swiping = true;
|
5738
|
+
state.offset = getTargetOffset(active);
|
5739
|
+
children.forEach((swipe) => {
|
5740
|
+
swipe.setOffset(0);
|
5741
|
+
});
|
5742
|
+
autoplay();
|
5743
|
+
};
|
5744
|
+
if (isHidden(root)) {
|
5745
|
+
nextTick().then(cb);
|
5746
|
+
} else {
|
5747
|
+
cb();
|
5703
5748
|
}
|
5704
|
-
state.active = active;
|
5705
|
-
state.swiping = true;
|
5706
|
-
state.offset = getTargetOffset(active);
|
5707
|
-
children.forEach((swipe) => {
|
5708
|
-
swipe.setOffset(0);
|
5709
|
-
});
|
5710
|
-
autoplay();
|
5711
5749
|
};
|
5712
5750
|
var resize = () => initialize(state.active);
|
5713
5751
|
var touchStartTime;
|
@@ -5722,11 +5760,8 @@ var _Swipe = defineComponent({
|
|
5722
5760
|
var onTouchMove = (event) => {
|
5723
5761
|
if (props.touchable && state.swiping) {
|
5724
5762
|
touch.move(event);
|
5725
|
-
var shouldPrevent = isCorrectDirection.value || touch.offsetY.value > touch.offsetX.value === props.vertical;
|
5726
|
-
if (shouldPrevent) {
|
5727
|
-
preventDefault(event, props.stopPropagation);
|
5728
|
-
}
|
5729
5763
|
if (isCorrectDirection.value) {
|
5764
|
+
preventDefault(event, props.stopPropagation);
|
5730
5765
|
move({
|
5731
5766
|
offset: delta.value
|
5732
5767
|
});
|
@@ -5801,7 +5836,8 @@ var _Swipe = defineComponent({
|
|
5801
5836
|
var renderIndicator = () => {
|
5802
5837
|
if (slots.indicator) {
|
5803
5838
|
return slots.indicator({
|
5804
|
-
active: activeIndicator.value
|
5839
|
+
active: activeIndicator.value,
|
5840
|
+
total: count.value
|
5805
5841
|
});
|
5806
5842
|
}
|
5807
5843
|
if (props.showIndicators && count.value > 1) {
|
@@ -5920,6 +5956,7 @@ var tabsProps = {
|
|
5920
5956
|
color: String,
|
5921
5957
|
border: Boolean,
|
5922
5958
|
sticky: Boolean,
|
5959
|
+
shrink: Boolean,
|
5923
5960
|
active: makeNumericProp(0),
|
5924
5961
|
duration: makeNumericProp(0.3),
|
5925
5962
|
animated: Boolean,
|
@@ -5965,7 +6002,7 @@ var _Tabs = defineComponent({
|
|
5965
6002
|
lineStyle: {},
|
5966
6003
|
currentIndex: -1
|
5967
6004
|
});
|
5968
|
-
var scrollable = computed(() => children.length > props.swipeThreshold || !props.ellipsis);
|
6005
|
+
var scrollable = computed(() => children.length > props.swipeThreshold || !props.ellipsis || props.shrink);
|
5969
6006
|
var navStyle = computed(() => ({
|
5970
6007
|
borderColor: props.color,
|
5971
6008
|
background: props.background
|
@@ -6131,14 +6168,24 @@ var _Tabs = defineComponent({
|
|
6131
6168
|
"color": props.color,
|
6132
6169
|
"style": item.titleStyle,
|
6133
6170
|
"class": item.titleClass,
|
6171
|
+
"shrink": props.shrink,
|
6134
6172
|
"isActive": index2 === state.currentIndex,
|
6135
6173
|
"controls": item.id,
|
6136
6174
|
"scrollable": scrollable.value,
|
6137
|
-
"renderTitle": item.$slots.title,
|
6138
6175
|
"activeColor": props.titleActiveColor,
|
6139
6176
|
"inactiveColor": props.titleInactiveColor,
|
6140
6177
|
"onClick": (event) => onClickTab(item, index2, event)
|
6141
|
-
}, pick(item, ["dot", "badge", "title", "disabled", "showZeroBadge"])),
|
6178
|
+
}, pick(item, ["dot", "badge", "title", "disabled", "showZeroBadge"])), {
|
6179
|
+
title: item.$slots.title
|
6180
|
+
}));
|
6181
|
+
var renderLine = () => {
|
6182
|
+
if (props.type === "line" && children.length) {
|
6183
|
+
return createVNode("div", {
|
6184
|
+
"class": bem$V("line"),
|
6185
|
+
"style": state.lineStyle
|
6186
|
+
}, null);
|
6187
|
+
}
|
6188
|
+
};
|
6142
6189
|
var renderHeader = () => {
|
6143
6190
|
var _slots$navLeft, _slots$navRight;
|
6144
6191
|
var {
|
@@ -6147,23 +6194,19 @@ var _Tabs = defineComponent({
|
|
6147
6194
|
} = props;
|
6148
6195
|
return createVNode("div", {
|
6149
6196
|
"ref": wrapRef,
|
6150
|
-
"class": [bem$V("wrap", {
|
6151
|
-
scrollable: scrollable.value
|
6152
|
-
}), {
|
6197
|
+
"class": [bem$V("wrap"), {
|
6153
6198
|
[BORDER_TOP_BOTTOM]: type === "line" && border
|
6154
6199
|
}]
|
6155
6200
|
}, [createVNode("div", {
|
6156
6201
|
"ref": navRef,
|
6157
6202
|
"role": "tablist",
|
6158
6203
|
"class": bem$V("nav", [type, {
|
6204
|
+
shrink: props.shrink,
|
6159
6205
|
complete: scrollable.value
|
6160
6206
|
}]),
|
6161
6207
|
"style": navStyle.value,
|
6162
6208
|
"aria-orientation": "horizontal"
|
6163
|
-
}, [(_slots$navLeft = slots["nav-left"]) == null ? void 0 : _slots$navLeft.call(slots), renderNav(),
|
6164
|
-
"class": bem$V("line"),
|
6165
|
-
"style": state.lineStyle
|
6166
|
-
}, null), (_slots$navRight = slots["nav-right"]) == null ? void 0 : _slots$navRight.call(slots)])]);
|
6209
|
+
}, [(_slots$navLeft = slots["nav-left"]) == null ? void 0 : _slots$navLeft.call(slots), renderNav(), renderLine(), (_slots$navRight = slots["nav-right"]) == null ? void 0 : _slots$navRight.call(slots)])]);
|
6167
6210
|
};
|
6168
6211
|
watch([() => props.color, windowWidth], setLine);
|
6169
6212
|
watch(() => props.active, (value) => {
|
@@ -6598,10 +6641,10 @@ var _Cascader = defineComponent({
|
|
6598
6641
|
var renderTabs = () => createVNode(Tabs, {
|
6599
6642
|
"active": activeTab.value,
|
6600
6643
|
"onUpdate:active": ($event) => activeTab.value = $event,
|
6644
|
+
"shrink": true,
|
6601
6645
|
"animated": true,
|
6602
6646
|
"class": bem$S("tabs"),
|
6603
6647
|
"color": props.activeColor,
|
6604
|
-
"swipeThreshold": 0,
|
6605
6648
|
"swipeable": props.swipeable,
|
6606
6649
|
"onClick-tab": onClickTab
|
6607
6650
|
}, {
|
@@ -9029,7 +9072,8 @@ var gridItemProps = extend({}, routeProps, {
|
|
9029
9072
|
icon: String,
|
9030
9073
|
badge: numericProp,
|
9031
9074
|
iconColor: String,
|
9032
|
-
iconPrefix: String
|
9075
|
+
iconPrefix: String,
|
9076
|
+
badgeProps: Object
|
9033
9077
|
});
|
9034
9078
|
var _GridItem = defineComponent({
|
9035
9079
|
name: name$u,
|
@@ -9083,10 +9127,10 @@ var _GridItem = defineComponent({
|
|
9083
9127
|
});
|
9084
9128
|
var renderIcon = () => {
|
9085
9129
|
if (slots.icon) {
|
9086
|
-
return createVNode(Badge, {
|
9130
|
+
return createVNode(Badge, mergeProps({
|
9087
9131
|
"dot": props.dot,
|
9088
9132
|
"content": props.badge
|
9089
|
-
}, {
|
9133
|
+
}, props.badgeProps), {
|
9090
9134
|
default: slots.icon
|
9091
9135
|
});
|
9092
9136
|
}
|
@@ -9097,8 +9141,9 @@ var _GridItem = defineComponent({
|
|
9097
9141
|
"size": parent.props.iconSize,
|
9098
9142
|
"badge": props.badge,
|
9099
9143
|
"class": bem$v("icon"),
|
9100
|
-
"
|
9101
|
-
"
|
9144
|
+
"color": props.iconColor,
|
9145
|
+
"badgeProps": props.badgeProps,
|
9146
|
+
"classPrefix": props.iconPrefix
|
9102
9147
|
}, null);
|
9103
9148
|
}
|
9104
9149
|
};
|
@@ -9399,6 +9444,7 @@ var imagePreviewProps = {
|
|
9399
9444
|
closeIcon: makeStringProp("clear"),
|
9400
9445
|
transition: String,
|
9401
9446
|
beforeClose: Function,
|
9447
|
+
overlayClass: unknownProp,
|
9402
9448
|
overlayStyle: Object,
|
9403
9449
|
swipeDuration: makeNumericProp(300),
|
9404
9450
|
startPosition: makeNumericProp(0),
|
@@ -9525,7 +9571,7 @@ var VanImagePreview = defineComponent({
|
|
9525
9571
|
});
|
9526
9572
|
return () => createVNode(Popup, mergeProps({
|
9527
9573
|
"class": [bem$t(), props.className],
|
9528
|
-
"overlayClass": bem$t("overlay"),
|
9574
|
+
"overlayClass": [bem$t("overlay"), props.overlayClass],
|
9529
9575
|
"onClosed": onClosed,
|
9530
9576
|
"onUpdate:show": updateShow
|
9531
9577
|
}, pick(props, popupProps$1)), {
|
@@ -9550,6 +9596,7 @@ var defaultConfig = {
|
|
9550
9596
|
transition: void 0,
|
9551
9597
|
beforeClose: void 0,
|
9552
9598
|
overlayStyle: void 0,
|
9599
|
+
overlayClass: void 0,
|
9553
9600
|
startPosition: 0,
|
9554
9601
|
swipeDuration: 300,
|
9555
9602
|
showIndicators: false,
|
@@ -11165,6 +11212,7 @@ var notifyProps = extend({}, popupSharedProps, {
|
|
11165
11212
|
type: makeStringProp("danger"),
|
11166
11213
|
color: String,
|
11167
11214
|
message: numericProp,
|
11215
|
+
position: makeStringProp("top"),
|
11168
11216
|
className: unknownProp,
|
11169
11217
|
background: String,
|
11170
11218
|
lockScroll: Boolean
|
@@ -11187,7 +11235,7 @@ var VanNotify = defineComponent({
|
|
11187
11235
|
background: props.background
|
11188
11236
|
},
|
11189
11237
|
"overlay": false,
|
11190
|
-
"position":
|
11238
|
+
"position": props.position,
|
11191
11239
|
"duration": 0.2,
|
11192
11240
|
"lockScroll": props.lockScroll,
|
11193
11241
|
"onUpdate:show": updateShow
|
@@ -11239,6 +11287,7 @@ var getDefaultOptions = () => ({
|
|
11239
11287
|
onClick: void 0,
|
11240
11288
|
onOpened: void 0,
|
11241
11289
|
duration: 3e3,
|
11290
|
+
position: void 0,
|
11242
11291
|
className: "",
|
11243
11292
|
lockScroll: false,
|
11244
11293
|
background: void 0
|
@@ -11871,10 +11920,24 @@ var _Popover = defineComponent({
|
|
11871
11920
|
updateShow(false);
|
11872
11921
|
}
|
11873
11922
|
};
|
11923
|
+
var renderActionContent = (action, index2) => {
|
11924
|
+
if (slots.action) {
|
11925
|
+
return slots.action({
|
11926
|
+
action,
|
11927
|
+
index: index2
|
11928
|
+
});
|
11929
|
+
}
|
11930
|
+
return [action.icon && createVNode(Icon, {
|
11931
|
+
"name": action.icon,
|
11932
|
+
"classPrefix": props.iconPrefix,
|
11933
|
+
"class": bem$i("action-icon")
|
11934
|
+
}, null), createVNode("div", {
|
11935
|
+
"class": [bem$i("action-text"), BORDER_BOTTOM]
|
11936
|
+
}, [action.text])];
|
11937
|
+
};
|
11874
11938
|
var renderAction = (action, index2) => {
|
11875
11939
|
var {
|
11876
11940
|
icon,
|
11877
|
-
text,
|
11878
11941
|
color,
|
11879
11942
|
disabled,
|
11880
11943
|
className
|
@@ -11891,13 +11954,7 @@ var _Popover = defineComponent({
|
|
11891
11954
|
"tabindex": disabled ? void 0 : 0,
|
11892
11955
|
"aria-disabled": disabled || void 0,
|
11893
11956
|
"onClick": () => onClickAction(action, index2)
|
11894
|
-
}, [
|
11895
|
-
"name": icon,
|
11896
|
-
"classPrefix": props.iconPrefix,
|
11897
|
-
"class": bem$i("action-icon")
|
11898
|
-
}, null), createVNode("div", {
|
11899
|
-
"class": [bem$i("action-text"), BORDER_BOTTOM]
|
11900
|
-
}, [text])]);
|
11957
|
+
}, [renderActionContent(action, index2)]);
|
11901
11958
|
};
|
11902
11959
|
onMounted(updateLocation);
|
11903
11960
|
onBeforeUnmount(() => {
|
@@ -12382,7 +12439,7 @@ var searchProps = extend({}, fieldSharedProps, {
|
|
12382
12439
|
var _Search = defineComponent({
|
12383
12440
|
name: name$e,
|
12384
12441
|
props: searchProps,
|
12385
|
-
emits: ["search", "cancel", "update:modelValue"],
|
12442
|
+
emits: ["blur", "focus", "clear", "search", "cancel", "click-input", "click-left-icon", "click-right-icon", "update:modelValue"],
|
12386
12443
|
setup(props, _ref) {
|
12387
12444
|
var {
|
12388
12445
|
emit,
|
@@ -12432,6 +12489,12 @@ var _Search = defineComponent({
|
|
12432
12489
|
var _filedRef$value2;
|
12433
12490
|
return (_filedRef$value2 = filedRef.value) == null ? void 0 : _filedRef$value2.focus();
|
12434
12491
|
};
|
12492
|
+
var onBlur = (event) => emit("blur", event);
|
12493
|
+
var onFocus = (event) => emit("focus", event);
|
12494
|
+
var onClear = (event) => emit("clear", event);
|
12495
|
+
var onClickInput = (event) => emit("click-input", event);
|
12496
|
+
var onClickLeftIcon = (event) => emit("click-left-icon", event);
|
12497
|
+
var onClickRightIcon = (event) => emit("click-right-icon", event);
|
12435
12498
|
var fieldPropNames = Object.keys(fieldSharedProps);
|
12436
12499
|
var renderField = () => {
|
12437
12500
|
var fieldAttrs = extend({}, attrs, pick(props, fieldPropNames), {
|
@@ -12443,7 +12506,13 @@ var _Search = defineComponent({
|
|
12443
12506
|
"type": "search",
|
12444
12507
|
"class": bem$e("field"),
|
12445
12508
|
"border": false,
|
12509
|
+
"onBlur": onBlur,
|
12510
|
+
"onFocus": onFocus,
|
12511
|
+
"onClear": onClear,
|
12446
12512
|
"onKeypress": onKeypress,
|
12513
|
+
"onClick-input": onClickInput,
|
12514
|
+
"onClick-left-icon": onClickLeftIcon,
|
12515
|
+
"onClick-right-icon": onClickRightIcon,
|
12447
12516
|
"onUpdate:modelValue": onInput
|
12448
12517
|
}, fieldAttrs), pick(slots, ["left-icon", "right-icon"]));
|
12449
12518
|
};
|
@@ -12606,7 +12675,8 @@ var sidebarItemProps = extend({}, routeProps, {
|
|
12606
12675
|
dot: Boolean,
|
12607
12676
|
title: String,
|
12608
12677
|
badge: numericProp,
|
12609
|
-
disabled: Boolean
|
12678
|
+
disabled: Boolean,
|
12679
|
+
badgeProps: Object
|
12610
12680
|
});
|
12611
12681
|
var _SidebarItem = defineComponent({
|
12612
12682
|
name: name$b,
|
@@ -12650,11 +12720,11 @@ var _SidebarItem = defineComponent({
|
|
12650
12720
|
"tabindex": disabled ? void 0 : 0,
|
12651
12721
|
"aria-selected": selected,
|
12652
12722
|
"onClick": onClick
|
12653
|
-
}, [createVNode(Badge, {
|
12723
|
+
}, [createVNode(Badge, mergeProps({
|
12654
12724
|
"dot": dot,
|
12655
|
-
"
|
12656
|
-
"
|
12657
|
-
}, {
|
12725
|
+
"class": bem$b("text"),
|
12726
|
+
"content": badge
|
12727
|
+
}, props.badgeProps), {
|
12658
12728
|
default: () => [slots.title ? slots.title() : title]
|
12659
12729
|
})]);
|
12660
12730
|
};
|
@@ -13068,7 +13138,7 @@ var _Step = defineComponent({
|
|
13068
13138
|
color: parentProps.activeColor
|
13069
13139
|
};
|
13070
13140
|
}
|
13071
|
-
if (
|
13141
|
+
if (getStatus() === "waiting") {
|
13072
13142
|
return {
|
13073
13143
|
color: parentProps.inactiveColor
|
13074
13144
|
};
|
@@ -13513,12 +13583,14 @@ var _SwipeCell = defineComponent({
|
|
13513
13583
|
var leftWidth = computed(() => isDef(props.leftWidth) ? +props.leftWidth : getWidthByRef(leftRef));
|
13514
13584
|
var rightWidth = computed(() => isDef(props.rightWidth) ? +props.rightWidth : getWidthByRef(rightRef));
|
13515
13585
|
var open = (side) => {
|
13516
|
-
opened = true;
|
13517
13586
|
state.offset = side === "left" ? leftWidth.value : -rightWidth.value;
|
13518
|
-
|
13519
|
-
|
13520
|
-
|
13521
|
-
|
13587
|
+
if (!opened) {
|
13588
|
+
opened = true;
|
13589
|
+
emit("open", {
|
13590
|
+
name: props.name,
|
13591
|
+
position: side
|
13592
|
+
});
|
13593
|
+
}
|
13522
13594
|
};
|
13523
13595
|
var close = (position) => {
|
13524
13596
|
state.offset = 0;
|
@@ -13715,6 +13787,7 @@ var tabbarItemProps = extend({}, routeProps, {
|
|
13715
13787
|
icon: String,
|
13716
13788
|
name: numericProp,
|
13717
13789
|
badge: numericProp,
|
13790
|
+
badgeProps: Object,
|
13718
13791
|
iconPrefix: String
|
13719
13792
|
});
|
13720
13793
|
var _TabbarItem = defineComponent({
|
@@ -13800,11 +13873,11 @@ var _TabbarItem = defineComponent({
|
|
13800
13873
|
"tabindex": 0,
|
13801
13874
|
"aria-selected": active.value,
|
13802
13875
|
"onClick": onClick
|
13803
|
-
}, [createVNode(Badge, {
|
13876
|
+
}, [createVNode(Badge, mergeProps({
|
13804
13877
|
"dot": dot,
|
13805
|
-
"
|
13806
|
-
"
|
13807
|
-
}, {
|
13878
|
+
"class": bem$2("icon"),
|
13879
|
+
"content": badge
|
13880
|
+
}, props.badgeProps), {
|
13808
13881
|
default: renderIcon
|
13809
13882
|
}), createVNode("div", {
|
13810
13883
|
"class": bem$2("text")
|
@@ -14329,7 +14402,7 @@ var _Uploader = defineComponent({
|
|
14329
14402
|
}
|
14330
14403
|
});
|
14331
14404
|
var Uploader = withInstall(_Uploader);
|
14332
|
-
var version = "3.
|
14405
|
+
var version = "3.4.0";
|
14333
14406
|
function install(app) {
|
14334
14407
|
var components = [ActionBar, ActionBarButton, ActionBarIcon, ActionSheet, AddressEdit, AddressList, Area, Badge, Button, Calendar, Card, Cascader, Cell, CellGroup, Checkbox, CheckboxGroup, Circle, Col, Collapse, CollapseItem, ConfigProvider, ContactCard, ContactEdit, ContactList, CountDown, Coupon, CouponCell, CouponList, DatetimePicker, Dialog, Divider, DropdownItem, DropdownMenu, Empty, Field, Form, Grid, GridItem, Icon, Image$1, ImagePreview, IndexAnchor, IndexBar, List, Loading, Locale, NavBar, NoticeBar, Notify, NumberKeyboard, Overlay, Pagination, PasswordInput, Picker, Popover, Popup, Progress, PullRefresh, Radio, RadioGroup, Rate, Row, Search, ShareSheet, Sidebar, SidebarItem, Skeleton, Slider, Step, Stepper, Steps, Sticky, SubmitBar, Swipe, SwipeCell, SwipeItem, Switch, Tab, Tabbar, TabbarItem, Tabs, Tag, Toast, TreeSelect, Uploader];
|
14335
14408
|
components.forEach((item) => {
|