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.cjs.js
CHANGED
@@ -606,6 +606,7 @@ var iconProps = {
|
|
606
606
|
size: numericProp,
|
607
607
|
badge: numericProp,
|
608
608
|
color: String,
|
609
|
+
badgeProps: Object,
|
609
610
|
classPrefix: String
|
610
611
|
};
|
611
612
|
var _Icon = vue.defineComponent({
|
@@ -627,16 +628,16 @@ var _Icon = vue.defineComponent({
|
|
627
628
|
color
|
628
629
|
} = props;
|
629
630
|
var isImageIcon = isImage(name2);
|
630
|
-
return vue.createVNode(Badge, {
|
631
|
+
return vue.createVNode(Badge, vue.mergeProps({
|
631
632
|
"dot": dot,
|
632
633
|
"tag": tag,
|
633
|
-
"content": badge,
|
634
634
|
"class": [classPrefix.value, isImageIcon ? "" : classPrefix.value + "-" + name2],
|
635
635
|
"style": {
|
636
636
|
color,
|
637
637
|
fontSize: addUnit(size)
|
638
|
-
}
|
639
|
-
|
638
|
+
},
|
639
|
+
"content": badge
|
640
|
+
}, props.badgeProps), {
|
640
641
|
default: () => [slots.default == null ? void 0 : slots.default(), isImageIcon && vue.createVNode("img", {
|
641
642
|
"class": bem$1n("image"),
|
642
643
|
"src": name2
|
@@ -919,6 +920,7 @@ var actionBarIconProps = extend({}, routeProps, {
|
|
919
920
|
color: String,
|
920
921
|
badge: numericProp,
|
921
922
|
iconClass: unknownProp,
|
923
|
+
badgeProps: Object,
|
922
924
|
iconPrefix: String
|
923
925
|
});
|
924
926
|
var _ActionBarIcon = vue.defineComponent({
|
@@ -937,14 +939,15 @@ var _ActionBarIcon = vue.defineComponent({
|
|
937
939
|
icon,
|
938
940
|
color,
|
939
941
|
iconClass,
|
942
|
+
badgeProps: badgeProps2,
|
940
943
|
iconPrefix
|
941
944
|
} = props;
|
942
945
|
if (slots.icon) {
|
943
|
-
return vue.createVNode(Badge, {
|
946
|
+
return vue.createVNode(Badge, vue.mergeProps({
|
944
947
|
"dot": dot,
|
945
|
-
"
|
946
|
-
"
|
947
|
-
}, {
|
948
|
+
"class": bem$1j("icon"),
|
949
|
+
"content": badge
|
950
|
+
}, badgeProps2), {
|
948
951
|
default: slots.icon
|
949
952
|
});
|
950
953
|
}
|
@@ -955,6 +958,7 @@ var _ActionBarIcon = vue.defineComponent({
|
|
955
958
|
"badge": badge,
|
956
959
|
"color": color,
|
957
960
|
"class": [bem$1j("icon"), iconClass],
|
961
|
+
"badgeProps": badgeProps2,
|
958
962
|
"classPrefix": iconPrefix
|
959
963
|
}, null);
|
960
964
|
};
|
@@ -982,12 +986,11 @@ var popupSharedProps = {
|
|
982
986
|
closeOnClickOverlay: truthProp
|
983
987
|
};
|
984
988
|
var popupSharedPropKeys = Object.keys(popupSharedProps);
|
985
|
-
var MIN_DISTANCE = 10;
|
986
989
|
function getDirection(x, y) {
|
987
|
-
if (x > y
|
990
|
+
if (x > y) {
|
988
991
|
return "horizontal";
|
989
992
|
}
|
990
|
-
if (y > x
|
993
|
+
if (y > x) {
|
991
994
|
return "vertical";
|
992
995
|
}
|
993
996
|
return "";
|
@@ -1020,7 +1023,8 @@ function useTouch() {
|
|
1020
1023
|
deltaY.value = touch.clientY - startY.value;
|
1021
1024
|
offsetX.value = Math.abs(deltaX.value);
|
1022
1025
|
offsetY.value = Math.abs(deltaY.value);
|
1023
|
-
|
1026
|
+
var LOCK_DIRECTION_DISTANCE = 10;
|
1027
|
+
if (!direction.value || offsetX.value < LOCK_DIRECTION_DISTANCE && offsetY.value < LOCK_DIRECTION_DISTANCE) {
|
1024
1028
|
direction.value = getDirection(offsetX.value, offsetY.value);
|
1025
1029
|
}
|
1026
1030
|
};
|
@@ -1284,10 +1288,11 @@ var _Popup = vue.defineComponent({
|
|
1284
1288
|
default: renderPopup
|
1285
1289
|
});
|
1286
1290
|
};
|
1287
|
-
vue.watch(() => props.show, (
|
1288
|
-
if (
|
1291
|
+
vue.watch(() => props.show, (show) => {
|
1292
|
+
if (show && !opened) {
|
1289
1293
|
open();
|
1290
|
-
}
|
1294
|
+
}
|
1295
|
+
if (!show && opened) {
|
1291
1296
|
opened = false;
|
1292
1297
|
emit("close");
|
1293
1298
|
}
|
@@ -1383,34 +1388,43 @@ var _ActionSheet = vue.defineComponent({
|
|
1383
1388
|
}, [slots.cancel ? slots.cancel() : props.cancelText])];
|
1384
1389
|
}
|
1385
1390
|
};
|
1386
|
-
var
|
1391
|
+
var renderActionContent = (action, index2) => {
|
1392
|
+
if (action.loading) {
|
1393
|
+
return vue.createVNode(Loading, {
|
1394
|
+
"class": bem$1g("loading-icon")
|
1395
|
+
}, null);
|
1396
|
+
}
|
1397
|
+
if (slots.action) {
|
1398
|
+
return slots.action({
|
1399
|
+
action,
|
1400
|
+
index: index2
|
1401
|
+
});
|
1402
|
+
}
|
1403
|
+
return [vue.createVNode("span", {
|
1404
|
+
"class": bem$1g("name")
|
1405
|
+
}, [action.name]), action.subname && vue.createVNode("div", {
|
1406
|
+
"class": bem$1g("subname")
|
1407
|
+
}, [action.subname])];
|
1408
|
+
};
|
1409
|
+
var renderAction = (action, index2) => {
|
1387
1410
|
var {
|
1388
|
-
name: name2,
|
1389
1411
|
color,
|
1390
|
-
subname,
|
1391
1412
|
loading,
|
1392
1413
|
callback,
|
1393
1414
|
disabled,
|
1394
1415
|
className
|
1395
|
-
} =
|
1396
|
-
var Content = loading ? vue.createVNode(Loading, {
|
1397
|
-
"class": bem$1g("loading-icon")
|
1398
|
-
}, null) : [vue.createVNode("span", {
|
1399
|
-
"class": bem$1g("name")
|
1400
|
-
}, [name2]), subname && vue.createVNode("div", {
|
1401
|
-
"class": bem$1g("subname")
|
1402
|
-
}, [subname])];
|
1416
|
+
} = action;
|
1403
1417
|
var onClick = () => {
|
1404
1418
|
if (disabled || loading) {
|
1405
1419
|
return;
|
1406
1420
|
}
|
1407
1421
|
if (callback) {
|
1408
|
-
callback(
|
1422
|
+
callback(action);
|
1409
1423
|
}
|
1410
1424
|
if (props.closeOnClickAction) {
|
1411
1425
|
updateShow(false);
|
1412
1426
|
}
|
1413
|
-
vue.nextTick(() => emit("select",
|
1427
|
+
vue.nextTick(() => emit("select", action, index2));
|
1414
1428
|
};
|
1415
1429
|
return vue.createVNode("button", {
|
1416
1430
|
"type": "button",
|
@@ -1422,7 +1436,7 @@ var _ActionSheet = vue.defineComponent({
|
|
1422
1436
|
disabled
|
1423
1437
|
}), className],
|
1424
1438
|
"onClick": onClick
|
1425
|
-
}, [
|
1439
|
+
}, [renderActionContent(action, index2)]);
|
1426
1440
|
};
|
1427
1441
|
var renderDescription = () => {
|
1428
1442
|
if (props.description || slots.description) {
|
@@ -1439,7 +1453,7 @@ var _ActionSheet = vue.defineComponent({
|
|
1439
1453
|
}, pick(props, popupInheritKeys$2)), {
|
1440
1454
|
default: () => [renderHeader(), renderDescription(), vue.createVNode("div", {
|
1441
1455
|
"class": bem$1g("content")
|
1442
|
-
}, [props.actions.map(
|
1456
|
+
}, [props.actions.map(renderAction), slots.default == null ? void 0 : slots.default()]), renderCancel()]
|
1443
1457
|
});
|
1444
1458
|
}
|
1445
1459
|
});
|
@@ -1927,28 +1941,34 @@ var _Picker = vue.defineComponent({
|
|
1927
1941
|
option: slots.option
|
1928
1942
|
});
|
1929
1943
|
});
|
1944
|
+
var renderMask = (wrapHeight) => {
|
1945
|
+
var hasOptions = formattedColumns.value.some((item) => item[valuesKey] && item[valuesKey].length !== 0);
|
1946
|
+
if (hasOptions) {
|
1947
|
+
var frameStyle = {
|
1948
|
+
height: itemHeight.value + "px"
|
1949
|
+
};
|
1950
|
+
var maskStyle = {
|
1951
|
+
backgroundSize: "100% " + (wrapHeight - itemHeight.value) / 2 + "px"
|
1952
|
+
};
|
1953
|
+
return [vue.createVNode("div", {
|
1954
|
+
"class": bem$1e("mask"),
|
1955
|
+
"style": maskStyle
|
1956
|
+
}, null), vue.createVNode("div", {
|
1957
|
+
"class": [BORDER_UNSET_TOP_BOTTOM, bem$1e("frame")],
|
1958
|
+
"style": frameStyle
|
1959
|
+
}, null)];
|
1960
|
+
}
|
1961
|
+
};
|
1930
1962
|
var renderColumns = () => {
|
1931
1963
|
var wrapHeight = itemHeight.value * +props.visibleItemCount;
|
1932
|
-
var frameStyle = {
|
1933
|
-
height: itemHeight.value + "px"
|
1934
|
-
};
|
1935
1964
|
var columnsStyle = {
|
1936
1965
|
height: wrapHeight + "px"
|
1937
1966
|
};
|
1938
|
-
var maskStyle = {
|
1939
|
-
backgroundSize: "100% " + (wrapHeight - itemHeight.value) / 2 + "px"
|
1940
|
-
};
|
1941
1967
|
return vue.createVNode("div", {
|
1942
1968
|
"class": bem$1e("columns"),
|
1943
1969
|
"style": columnsStyle,
|
1944
1970
|
"onTouchmove": preventDefault
|
1945
|
-
}, [renderColumnItems(),
|
1946
|
-
"class": bem$1e("mask"),
|
1947
|
-
"style": maskStyle
|
1948
|
-
}, null), vue.createVNode("div", {
|
1949
|
-
"class": [BORDER_UNSET_TOP_BOTTOM, bem$1e("frame")],
|
1950
|
-
"style": frameStyle
|
1951
|
-
}, null)]);
|
1971
|
+
}, [renderColumnItems(), renderMask(wrapHeight)]);
|
1952
1972
|
};
|
1953
1973
|
vue.watch(() => props.columns, format2, {
|
1954
1974
|
immediate: true
|
@@ -4193,11 +4213,17 @@ function calcDateNum(date) {
|
|
4193
4213
|
}
|
4194
4214
|
function useRefs() {
|
4195
4215
|
var refs = vue.ref([]);
|
4216
|
+
var cache = [];
|
4196
4217
|
vue.onBeforeUpdate(() => {
|
4197
4218
|
refs.value = [];
|
4198
4219
|
});
|
4199
|
-
var setRefs = (index2) =>
|
4200
|
-
|
4220
|
+
var setRefs = (index2) => {
|
4221
|
+
if (!cache[index2]) {
|
4222
|
+
cache[index2] = (el) => {
|
4223
|
+
refs.value[index2] = el;
|
4224
|
+
};
|
4225
|
+
}
|
4226
|
+
return cache[index2];
|
4201
4227
|
};
|
4202
4228
|
return [refs, setRefs];
|
4203
4229
|
}
|
@@ -5445,16 +5471,19 @@ var TabsTitle = vue.defineComponent({
|
|
5445
5471
|
color: String,
|
5446
5472
|
title: String,
|
5447
5473
|
badge: numericProp,
|
5474
|
+
shrink: Boolean,
|
5448
5475
|
isActive: Boolean,
|
5449
5476
|
disabled: Boolean,
|
5450
5477
|
controls: String,
|
5451
5478
|
scrollable: Boolean,
|
5452
5479
|
activeColor: String,
|
5453
|
-
renderTitle: Function,
|
5454
5480
|
inactiveColor: String,
|
5455
5481
|
showZeroBadge: truthProp
|
5456
5482
|
},
|
5457
|
-
setup(props) {
|
5483
|
+
setup(props, _ref) {
|
5484
|
+
var {
|
5485
|
+
slots
|
5486
|
+
} = _ref;
|
5458
5487
|
var style = vue.computed(() => {
|
5459
5488
|
var style2 = {};
|
5460
5489
|
var {
|
@@ -5487,7 +5516,7 @@ var TabsTitle = vue.defineComponent({
|
|
5487
5516
|
"class": bem$Y("text", {
|
5488
5517
|
ellipsis: !props.scrollable
|
5489
5518
|
})
|
5490
|
-
}, [
|
5519
|
+
}, [slots.title ? slots.title() : props.title]);
|
5491
5520
|
if (props.dot || isDef(props.badge) && props.badge !== "") {
|
5492
5521
|
return vue.createVNode(Badge, {
|
5493
5522
|
"dot": props.dot,
|
@@ -5502,10 +5531,12 @@ var TabsTitle = vue.defineComponent({
|
|
5502
5531
|
return () => vue.createVNode("div", {
|
5503
5532
|
"id": props.id,
|
5504
5533
|
"role": "tab",
|
5505
|
-
"class": [bem$Y({
|
5534
|
+
"class": [bem$Y([props.type, {
|
5535
|
+
grow: props.scrollable && !props.shrink,
|
5536
|
+
shrink: props.shrink,
|
5506
5537
|
active: props.isActive,
|
5507
5538
|
disabled: props.disabled
|
5508
|
-
})],
|
5539
|
+
}])],
|
5509
5540
|
"style": style.value,
|
5510
5541
|
"tabindex": props.disabled ? void 0 : props.isActive ? 0 : -1,
|
5511
5542
|
"aria-selected": props.isActive,
|
@@ -5691,26 +5722,33 @@ var _Swipe = vue.defineComponent({
|
|
5691
5722
|
if (!root.value) {
|
5692
5723
|
return;
|
5693
5724
|
}
|
5694
|
-
|
5695
|
-
|
5696
|
-
|
5697
|
-
|
5698
|
-
|
5699
|
-
|
5700
|
-
|
5701
|
-
|
5702
|
-
|
5703
|
-
|
5704
|
-
|
5705
|
-
|
5725
|
+
var cb = () => {
|
5726
|
+
if (!isHidden(root)) {
|
5727
|
+
var _props$width, _props$height;
|
5728
|
+
var rect = {
|
5729
|
+
width: root.value.offsetWidth,
|
5730
|
+
height: root.value.offsetHeight
|
5731
|
+
};
|
5732
|
+
state.rect = rect;
|
5733
|
+
state.width = +((_props$width = props.width) != null ? _props$width : rect.width);
|
5734
|
+
state.height = +((_props$height = props.height) != null ? _props$height : rect.height);
|
5735
|
+
}
|
5736
|
+
if (count.value) {
|
5737
|
+
active = Math.min(count.value - 1, active);
|
5738
|
+
}
|
5739
|
+
state.active = active;
|
5740
|
+
state.swiping = true;
|
5741
|
+
state.offset = getTargetOffset(active);
|
5742
|
+
children.forEach((swipe) => {
|
5743
|
+
swipe.setOffset(0);
|
5744
|
+
});
|
5745
|
+
autoplay();
|
5746
|
+
};
|
5747
|
+
if (isHidden(root)) {
|
5748
|
+
vue.nextTick().then(cb);
|
5749
|
+
} else {
|
5750
|
+
cb();
|
5706
5751
|
}
|
5707
|
-
state.active = active;
|
5708
|
-
state.swiping = true;
|
5709
|
-
state.offset = getTargetOffset(active);
|
5710
|
-
children.forEach((swipe) => {
|
5711
|
-
swipe.setOffset(0);
|
5712
|
-
});
|
5713
|
-
autoplay();
|
5714
5752
|
};
|
5715
5753
|
var resize = () => initialize(state.active);
|
5716
5754
|
var touchStartTime;
|
@@ -5725,11 +5763,8 @@ var _Swipe = vue.defineComponent({
|
|
5725
5763
|
var onTouchMove = (event) => {
|
5726
5764
|
if (props.touchable && state.swiping) {
|
5727
5765
|
touch.move(event);
|
5728
|
-
var shouldPrevent = isCorrectDirection.value || touch.offsetY.value > touch.offsetX.value === props.vertical;
|
5729
|
-
if (shouldPrevent) {
|
5730
|
-
preventDefault(event, props.stopPropagation);
|
5731
|
-
}
|
5732
5766
|
if (isCorrectDirection.value) {
|
5767
|
+
preventDefault(event, props.stopPropagation);
|
5733
5768
|
move({
|
5734
5769
|
offset: delta.value
|
5735
5770
|
});
|
@@ -5804,7 +5839,8 @@ var _Swipe = vue.defineComponent({
|
|
5804
5839
|
var renderIndicator = () => {
|
5805
5840
|
if (slots.indicator) {
|
5806
5841
|
return slots.indicator({
|
5807
|
-
active: activeIndicator.value
|
5842
|
+
active: activeIndicator.value,
|
5843
|
+
total: count.value
|
5808
5844
|
});
|
5809
5845
|
}
|
5810
5846
|
if (props.showIndicators && count.value > 1) {
|
@@ -5923,6 +5959,7 @@ var tabsProps = {
|
|
5923
5959
|
color: String,
|
5924
5960
|
border: Boolean,
|
5925
5961
|
sticky: Boolean,
|
5962
|
+
shrink: Boolean,
|
5926
5963
|
active: makeNumericProp(0),
|
5927
5964
|
duration: makeNumericProp(0.3),
|
5928
5965
|
animated: Boolean,
|
@@ -5968,7 +6005,7 @@ var _Tabs = vue.defineComponent({
|
|
5968
6005
|
lineStyle: {},
|
5969
6006
|
currentIndex: -1
|
5970
6007
|
});
|
5971
|
-
var scrollable = vue.computed(() => children.length > props.swipeThreshold || !props.ellipsis);
|
6008
|
+
var scrollable = vue.computed(() => children.length > props.swipeThreshold || !props.ellipsis || props.shrink);
|
5972
6009
|
var navStyle = vue.computed(() => ({
|
5973
6010
|
borderColor: props.color,
|
5974
6011
|
background: props.background
|
@@ -6134,14 +6171,24 @@ var _Tabs = vue.defineComponent({
|
|
6134
6171
|
"color": props.color,
|
6135
6172
|
"style": item.titleStyle,
|
6136
6173
|
"class": item.titleClass,
|
6174
|
+
"shrink": props.shrink,
|
6137
6175
|
"isActive": index2 === state.currentIndex,
|
6138
6176
|
"controls": item.id,
|
6139
6177
|
"scrollable": scrollable.value,
|
6140
|
-
"renderTitle": item.$slots.title,
|
6141
6178
|
"activeColor": props.titleActiveColor,
|
6142
6179
|
"inactiveColor": props.titleInactiveColor,
|
6143
6180
|
"onClick": (event) => onClickTab(item, index2, event)
|
6144
|
-
}, pick(item, ["dot", "badge", "title", "disabled", "showZeroBadge"])),
|
6181
|
+
}, pick(item, ["dot", "badge", "title", "disabled", "showZeroBadge"])), {
|
6182
|
+
title: item.$slots.title
|
6183
|
+
}));
|
6184
|
+
var renderLine = () => {
|
6185
|
+
if (props.type === "line" && children.length) {
|
6186
|
+
return vue.createVNode("div", {
|
6187
|
+
"class": bem$V("line"),
|
6188
|
+
"style": state.lineStyle
|
6189
|
+
}, null);
|
6190
|
+
}
|
6191
|
+
};
|
6145
6192
|
var renderHeader = () => {
|
6146
6193
|
var _slots$navLeft, _slots$navRight;
|
6147
6194
|
var {
|
@@ -6150,23 +6197,19 @@ var _Tabs = vue.defineComponent({
|
|
6150
6197
|
} = props;
|
6151
6198
|
return vue.createVNode("div", {
|
6152
6199
|
"ref": wrapRef,
|
6153
|
-
"class": [bem$V("wrap", {
|
6154
|
-
scrollable: scrollable.value
|
6155
|
-
}), {
|
6200
|
+
"class": [bem$V("wrap"), {
|
6156
6201
|
[BORDER_TOP_BOTTOM]: type === "line" && border
|
6157
6202
|
}]
|
6158
6203
|
}, [vue.createVNode("div", {
|
6159
6204
|
"ref": navRef,
|
6160
6205
|
"role": "tablist",
|
6161
6206
|
"class": bem$V("nav", [type, {
|
6207
|
+
shrink: props.shrink,
|
6162
6208
|
complete: scrollable.value
|
6163
6209
|
}]),
|
6164
6210
|
"style": navStyle.value,
|
6165
6211
|
"aria-orientation": "horizontal"
|
6166
|
-
}, [(_slots$navLeft = slots["nav-left"]) == null ? void 0 : _slots$navLeft.call(slots), renderNav(),
|
6167
|
-
"class": bem$V("line"),
|
6168
|
-
"style": state.lineStyle
|
6169
|
-
}, null), (_slots$navRight = slots["nav-right"]) == null ? void 0 : _slots$navRight.call(slots)])]);
|
6212
|
+
}, [(_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)])]);
|
6170
6213
|
};
|
6171
6214
|
vue.watch([() => props.color, windowWidth], setLine);
|
6172
6215
|
vue.watch(() => props.active, (value) => {
|
@@ -6601,10 +6644,10 @@ var _Cascader = vue.defineComponent({
|
|
6601
6644
|
var renderTabs = () => vue.createVNode(Tabs, {
|
6602
6645
|
"active": activeTab.value,
|
6603
6646
|
"onUpdate:active": ($event) => activeTab.value = $event,
|
6647
|
+
"shrink": true,
|
6604
6648
|
"animated": true,
|
6605
6649
|
"class": bem$S("tabs"),
|
6606
6650
|
"color": props.activeColor,
|
6607
|
-
"swipeThreshold": 0,
|
6608
6651
|
"swipeable": props.swipeable,
|
6609
6652
|
"onClick-tab": onClickTab
|
6610
6653
|
}, {
|
@@ -9032,7 +9075,8 @@ var gridItemProps = extend({}, routeProps, {
|
|
9032
9075
|
icon: String,
|
9033
9076
|
badge: numericProp,
|
9034
9077
|
iconColor: String,
|
9035
|
-
iconPrefix: String
|
9078
|
+
iconPrefix: String,
|
9079
|
+
badgeProps: Object
|
9036
9080
|
});
|
9037
9081
|
var _GridItem = vue.defineComponent({
|
9038
9082
|
name: name$u,
|
@@ -9086,10 +9130,10 @@ var _GridItem = vue.defineComponent({
|
|
9086
9130
|
});
|
9087
9131
|
var renderIcon = () => {
|
9088
9132
|
if (slots.icon) {
|
9089
|
-
return vue.createVNode(Badge, {
|
9133
|
+
return vue.createVNode(Badge, vue.mergeProps({
|
9090
9134
|
"dot": props.dot,
|
9091
9135
|
"content": props.badge
|
9092
|
-
}, {
|
9136
|
+
}, props.badgeProps), {
|
9093
9137
|
default: slots.icon
|
9094
9138
|
});
|
9095
9139
|
}
|
@@ -9100,8 +9144,9 @@ var _GridItem = vue.defineComponent({
|
|
9100
9144
|
"size": parent.props.iconSize,
|
9101
9145
|
"badge": props.badge,
|
9102
9146
|
"class": bem$v("icon"),
|
9103
|
-
"
|
9104
|
-
"
|
9147
|
+
"color": props.iconColor,
|
9148
|
+
"badgeProps": props.badgeProps,
|
9149
|
+
"classPrefix": props.iconPrefix
|
9105
9150
|
}, null);
|
9106
9151
|
}
|
9107
9152
|
};
|
@@ -9402,6 +9447,7 @@ var imagePreviewProps = {
|
|
9402
9447
|
closeIcon: makeStringProp("clear"),
|
9403
9448
|
transition: String,
|
9404
9449
|
beforeClose: Function,
|
9450
|
+
overlayClass: unknownProp,
|
9405
9451
|
overlayStyle: Object,
|
9406
9452
|
swipeDuration: makeNumericProp(300),
|
9407
9453
|
startPosition: makeNumericProp(0),
|
@@ -9528,7 +9574,7 @@ var VanImagePreview = vue.defineComponent({
|
|
9528
9574
|
});
|
9529
9575
|
return () => vue.createVNode(Popup, vue.mergeProps({
|
9530
9576
|
"class": [bem$t(), props.className],
|
9531
|
-
"overlayClass": bem$t("overlay"),
|
9577
|
+
"overlayClass": [bem$t("overlay"), props.overlayClass],
|
9532
9578
|
"onClosed": onClosed,
|
9533
9579
|
"onUpdate:show": updateShow
|
9534
9580
|
}, pick(props, popupProps$1)), {
|
@@ -9553,6 +9599,7 @@ var defaultConfig = {
|
|
9553
9599
|
transition: void 0,
|
9554
9600
|
beforeClose: void 0,
|
9555
9601
|
overlayStyle: void 0,
|
9602
|
+
overlayClass: void 0,
|
9556
9603
|
startPosition: 0,
|
9557
9604
|
swipeDuration: 300,
|
9558
9605
|
showIndicators: false,
|
@@ -11168,6 +11215,7 @@ var notifyProps = extend({}, popupSharedProps, {
|
|
11168
11215
|
type: makeStringProp("danger"),
|
11169
11216
|
color: String,
|
11170
11217
|
message: numericProp,
|
11218
|
+
position: makeStringProp("top"),
|
11171
11219
|
className: unknownProp,
|
11172
11220
|
background: String,
|
11173
11221
|
lockScroll: Boolean
|
@@ -11190,7 +11238,7 @@ var VanNotify = vue.defineComponent({
|
|
11190
11238
|
background: props.background
|
11191
11239
|
},
|
11192
11240
|
"overlay": false,
|
11193
|
-
"position":
|
11241
|
+
"position": props.position,
|
11194
11242
|
"duration": 0.2,
|
11195
11243
|
"lockScroll": props.lockScroll,
|
11196
11244
|
"onUpdate:show": updateShow
|
@@ -11242,6 +11290,7 @@ var getDefaultOptions = () => ({
|
|
11242
11290
|
onClick: void 0,
|
11243
11291
|
onOpened: void 0,
|
11244
11292
|
duration: 3e3,
|
11293
|
+
position: void 0,
|
11245
11294
|
className: "",
|
11246
11295
|
lockScroll: false,
|
11247
11296
|
background: void 0
|
@@ -11874,10 +11923,24 @@ var _Popover = vue.defineComponent({
|
|
11874
11923
|
updateShow(false);
|
11875
11924
|
}
|
11876
11925
|
};
|
11926
|
+
var renderActionContent = (action, index2) => {
|
11927
|
+
if (slots.action) {
|
11928
|
+
return slots.action({
|
11929
|
+
action,
|
11930
|
+
index: index2
|
11931
|
+
});
|
11932
|
+
}
|
11933
|
+
return [action.icon && vue.createVNode(Icon, {
|
11934
|
+
"name": action.icon,
|
11935
|
+
"classPrefix": props.iconPrefix,
|
11936
|
+
"class": bem$i("action-icon")
|
11937
|
+
}, null), vue.createVNode("div", {
|
11938
|
+
"class": [bem$i("action-text"), BORDER_BOTTOM]
|
11939
|
+
}, [action.text])];
|
11940
|
+
};
|
11877
11941
|
var renderAction = (action, index2) => {
|
11878
11942
|
var {
|
11879
11943
|
icon,
|
11880
|
-
text,
|
11881
11944
|
color,
|
11882
11945
|
disabled,
|
11883
11946
|
className
|
@@ -11894,13 +11957,7 @@ var _Popover = vue.defineComponent({
|
|
11894
11957
|
"tabindex": disabled ? void 0 : 0,
|
11895
11958
|
"aria-disabled": disabled || void 0,
|
11896
11959
|
"onClick": () => onClickAction(action, index2)
|
11897
|
-
}, [
|
11898
|
-
"name": icon,
|
11899
|
-
"classPrefix": props.iconPrefix,
|
11900
|
-
"class": bem$i("action-icon")
|
11901
|
-
}, null), vue.createVNode("div", {
|
11902
|
-
"class": [bem$i("action-text"), BORDER_BOTTOM]
|
11903
|
-
}, [text])]);
|
11960
|
+
}, [renderActionContent(action, index2)]);
|
11904
11961
|
};
|
11905
11962
|
vue.onMounted(updateLocation);
|
11906
11963
|
vue.onBeforeUnmount(() => {
|
@@ -12385,7 +12442,7 @@ var searchProps = extend({}, fieldSharedProps, {
|
|
12385
12442
|
var _Search = vue.defineComponent({
|
12386
12443
|
name: name$e,
|
12387
12444
|
props: searchProps,
|
12388
|
-
emits: ["search", "cancel", "update:modelValue"],
|
12445
|
+
emits: ["blur", "focus", "clear", "search", "cancel", "click-input", "click-left-icon", "click-right-icon", "update:modelValue"],
|
12389
12446
|
setup(props, _ref) {
|
12390
12447
|
var {
|
12391
12448
|
emit,
|
@@ -12435,6 +12492,12 @@ var _Search = vue.defineComponent({
|
|
12435
12492
|
var _filedRef$value2;
|
12436
12493
|
return (_filedRef$value2 = filedRef.value) == null ? void 0 : _filedRef$value2.focus();
|
12437
12494
|
};
|
12495
|
+
var onBlur = (event) => emit("blur", event);
|
12496
|
+
var onFocus = (event) => emit("focus", event);
|
12497
|
+
var onClear = (event) => emit("clear", event);
|
12498
|
+
var onClickInput = (event) => emit("click-input", event);
|
12499
|
+
var onClickLeftIcon = (event) => emit("click-left-icon", event);
|
12500
|
+
var onClickRightIcon = (event) => emit("click-right-icon", event);
|
12438
12501
|
var fieldPropNames = Object.keys(fieldSharedProps);
|
12439
12502
|
var renderField = () => {
|
12440
12503
|
var fieldAttrs = extend({}, attrs, pick(props, fieldPropNames), {
|
@@ -12446,7 +12509,13 @@ var _Search = vue.defineComponent({
|
|
12446
12509
|
"type": "search",
|
12447
12510
|
"class": bem$e("field"),
|
12448
12511
|
"border": false,
|
12512
|
+
"onBlur": onBlur,
|
12513
|
+
"onFocus": onFocus,
|
12514
|
+
"onClear": onClear,
|
12449
12515
|
"onKeypress": onKeypress,
|
12516
|
+
"onClick-input": onClickInput,
|
12517
|
+
"onClick-left-icon": onClickLeftIcon,
|
12518
|
+
"onClick-right-icon": onClickRightIcon,
|
12450
12519
|
"onUpdate:modelValue": onInput
|
12451
12520
|
}, fieldAttrs), pick(slots, ["left-icon", "right-icon"]));
|
12452
12521
|
};
|
@@ -12609,7 +12678,8 @@ var sidebarItemProps = extend({}, routeProps, {
|
|
12609
12678
|
dot: Boolean,
|
12610
12679
|
title: String,
|
12611
12680
|
badge: numericProp,
|
12612
|
-
disabled: Boolean
|
12681
|
+
disabled: Boolean,
|
12682
|
+
badgeProps: Object
|
12613
12683
|
});
|
12614
12684
|
var _SidebarItem = vue.defineComponent({
|
12615
12685
|
name: name$b,
|
@@ -12653,11 +12723,11 @@ var _SidebarItem = vue.defineComponent({
|
|
12653
12723
|
"tabindex": disabled ? void 0 : 0,
|
12654
12724
|
"aria-selected": selected,
|
12655
12725
|
"onClick": onClick
|
12656
|
-
}, [vue.createVNode(Badge, {
|
12726
|
+
}, [vue.createVNode(Badge, vue.mergeProps({
|
12657
12727
|
"dot": dot,
|
12658
|
-
"
|
12659
|
-
"
|
12660
|
-
}, {
|
12728
|
+
"class": bem$b("text"),
|
12729
|
+
"content": badge
|
12730
|
+
}, props.badgeProps), {
|
12661
12731
|
default: () => [slots.title ? slots.title() : title]
|
12662
12732
|
})]);
|
12663
12733
|
};
|
@@ -13071,7 +13141,7 @@ var _Step = vue.defineComponent({
|
|
13071
13141
|
color: parentProps.activeColor
|
13072
13142
|
};
|
13073
13143
|
}
|
13074
|
-
if (
|
13144
|
+
if (getStatus() === "waiting") {
|
13075
13145
|
return {
|
13076
13146
|
color: parentProps.inactiveColor
|
13077
13147
|
};
|
@@ -13516,12 +13586,14 @@ var _SwipeCell = vue.defineComponent({
|
|
13516
13586
|
var leftWidth = vue.computed(() => isDef(props.leftWidth) ? +props.leftWidth : getWidthByRef(leftRef));
|
13517
13587
|
var rightWidth = vue.computed(() => isDef(props.rightWidth) ? +props.rightWidth : getWidthByRef(rightRef));
|
13518
13588
|
var open = (side) => {
|
13519
|
-
opened = true;
|
13520
13589
|
state.offset = side === "left" ? leftWidth.value : -rightWidth.value;
|
13521
|
-
|
13522
|
-
|
13523
|
-
|
13524
|
-
|
13590
|
+
if (!opened) {
|
13591
|
+
opened = true;
|
13592
|
+
emit("open", {
|
13593
|
+
name: props.name,
|
13594
|
+
position: side
|
13595
|
+
});
|
13596
|
+
}
|
13525
13597
|
};
|
13526
13598
|
var close = (position) => {
|
13527
13599
|
state.offset = 0;
|
@@ -13718,6 +13790,7 @@ var tabbarItemProps = extend({}, routeProps, {
|
|
13718
13790
|
icon: String,
|
13719
13791
|
name: numericProp,
|
13720
13792
|
badge: numericProp,
|
13793
|
+
badgeProps: Object,
|
13721
13794
|
iconPrefix: String
|
13722
13795
|
});
|
13723
13796
|
var _TabbarItem = vue.defineComponent({
|
@@ -13803,11 +13876,11 @@ var _TabbarItem = vue.defineComponent({
|
|
13803
13876
|
"tabindex": 0,
|
13804
13877
|
"aria-selected": active.value,
|
13805
13878
|
"onClick": onClick
|
13806
|
-
}, [vue.createVNode(Badge, {
|
13879
|
+
}, [vue.createVNode(Badge, vue.mergeProps({
|
13807
13880
|
"dot": dot,
|
13808
|
-
"
|
13809
|
-
"
|
13810
|
-
}, {
|
13881
|
+
"class": bem$2("icon"),
|
13882
|
+
"content": badge
|
13883
|
+
}, props.badgeProps), {
|
13811
13884
|
default: renderIcon
|
13812
13885
|
}), vue.createVNode("div", {
|
13813
13886
|
"class": bem$2("text")
|
@@ -14332,7 +14405,7 @@ var _Uploader = vue.defineComponent({
|
|
14332
14405
|
}
|
14333
14406
|
});
|
14334
14407
|
var Uploader = withInstall(_Uploader);
|
14335
|
-
var version = "3.
|
14408
|
+
var version = "3.4.0";
|
14336
14409
|
function install(app) {
|
14337
14410
|
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];
|
14338
14411
|
components.forEach((item) => {
|