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.js
CHANGED
@@ -956,6 +956,7 @@
|
|
956
956
|
size: numericProp,
|
957
957
|
badge: numericProp,
|
958
958
|
color: String,
|
959
|
+
badgeProps: Object,
|
959
960
|
classPrefix: String
|
960
961
|
};
|
961
962
|
var _Icon = vue.defineComponent({
|
@@ -977,16 +978,16 @@
|
|
977
978
|
color
|
978
979
|
} = props;
|
979
980
|
var isImageIcon = isImage(name2);
|
980
|
-
return vue.createVNode(Badge, {
|
981
|
+
return vue.createVNode(Badge, vue.mergeProps({
|
981
982
|
"dot": dot,
|
982
983
|
"tag": tag,
|
983
|
-
"content": badge,
|
984
984
|
"class": [classPrefix.value, isImageIcon ? "" : classPrefix.value + "-" + name2],
|
985
985
|
"style": {
|
986
986
|
color,
|
987
987
|
fontSize: addUnit(size)
|
988
|
-
}
|
989
|
-
|
988
|
+
},
|
989
|
+
"content": badge
|
990
|
+
}, props.badgeProps), {
|
990
991
|
default: () => [slots.default == null ? void 0 : slots.default(), isImageIcon && vue.createVNode("img", {
|
991
992
|
"class": bem$1n("image"),
|
992
993
|
"src": name2
|
@@ -1269,6 +1270,7 @@
|
|
1269
1270
|
color: String,
|
1270
1271
|
badge: numericProp,
|
1271
1272
|
iconClass: unknownProp,
|
1273
|
+
badgeProps: Object,
|
1272
1274
|
iconPrefix: String
|
1273
1275
|
});
|
1274
1276
|
var _ActionBarIcon = vue.defineComponent({
|
@@ -1287,14 +1289,15 @@
|
|
1287
1289
|
icon,
|
1288
1290
|
color,
|
1289
1291
|
iconClass,
|
1292
|
+
badgeProps: badgeProps2,
|
1290
1293
|
iconPrefix
|
1291
1294
|
} = props;
|
1292
1295
|
if (slots.icon) {
|
1293
|
-
return vue.createVNode(Badge, {
|
1296
|
+
return vue.createVNode(Badge, vue.mergeProps({
|
1294
1297
|
"dot": dot,
|
1295
|
-
"
|
1296
|
-
"
|
1297
|
-
}, {
|
1298
|
+
"class": bem$1j("icon"),
|
1299
|
+
"content": badge
|
1300
|
+
}, badgeProps2), {
|
1298
1301
|
default: slots.icon
|
1299
1302
|
});
|
1300
1303
|
}
|
@@ -1305,6 +1308,7 @@
|
|
1305
1308
|
"badge": badge,
|
1306
1309
|
"color": color,
|
1307
1310
|
"class": [bem$1j("icon"), iconClass],
|
1311
|
+
"badgeProps": badgeProps2,
|
1308
1312
|
"classPrefix": iconPrefix
|
1309
1313
|
}, null);
|
1310
1314
|
};
|
@@ -1332,12 +1336,11 @@
|
|
1332
1336
|
closeOnClickOverlay: truthProp
|
1333
1337
|
};
|
1334
1338
|
var popupSharedPropKeys = Object.keys(popupSharedProps);
|
1335
|
-
var MIN_DISTANCE = 10;
|
1336
1339
|
function getDirection(x, y) {
|
1337
|
-
if (x > y
|
1340
|
+
if (x > y) {
|
1338
1341
|
return "horizontal";
|
1339
1342
|
}
|
1340
|
-
if (y > x
|
1343
|
+
if (y > x) {
|
1341
1344
|
return "vertical";
|
1342
1345
|
}
|
1343
1346
|
return "";
|
@@ -1370,7 +1373,8 @@
|
|
1370
1373
|
deltaY.value = touch.clientY - startY.value;
|
1371
1374
|
offsetX.value = Math.abs(deltaX.value);
|
1372
1375
|
offsetY.value = Math.abs(deltaY.value);
|
1373
|
-
|
1376
|
+
var LOCK_DIRECTION_DISTANCE = 10;
|
1377
|
+
if (!direction.value || offsetX.value < LOCK_DIRECTION_DISTANCE && offsetY.value < LOCK_DIRECTION_DISTANCE) {
|
1374
1378
|
direction.value = getDirection(offsetX.value, offsetY.value);
|
1375
1379
|
}
|
1376
1380
|
};
|
@@ -1634,10 +1638,11 @@
|
|
1634
1638
|
default: renderPopup
|
1635
1639
|
});
|
1636
1640
|
};
|
1637
|
-
vue.watch(() => props.show, (
|
1638
|
-
if (
|
1641
|
+
vue.watch(() => props.show, (show) => {
|
1642
|
+
if (show && !opened) {
|
1639
1643
|
open();
|
1640
|
-
}
|
1644
|
+
}
|
1645
|
+
if (!show && opened) {
|
1641
1646
|
opened = false;
|
1642
1647
|
emit("close");
|
1643
1648
|
}
|
@@ -1733,34 +1738,43 @@
|
|
1733
1738
|
}, [slots.cancel ? slots.cancel() : props.cancelText])];
|
1734
1739
|
}
|
1735
1740
|
};
|
1736
|
-
var
|
1741
|
+
var renderActionContent = (action, index2) => {
|
1742
|
+
if (action.loading) {
|
1743
|
+
return vue.createVNode(Loading, {
|
1744
|
+
"class": bem$1g("loading-icon")
|
1745
|
+
}, null);
|
1746
|
+
}
|
1747
|
+
if (slots.action) {
|
1748
|
+
return slots.action({
|
1749
|
+
action,
|
1750
|
+
index: index2
|
1751
|
+
});
|
1752
|
+
}
|
1753
|
+
return [vue.createVNode("span", {
|
1754
|
+
"class": bem$1g("name")
|
1755
|
+
}, [action.name]), action.subname && vue.createVNode("div", {
|
1756
|
+
"class": bem$1g("subname")
|
1757
|
+
}, [action.subname])];
|
1758
|
+
};
|
1759
|
+
var renderAction = (action, index2) => {
|
1737
1760
|
var {
|
1738
|
-
name: name2,
|
1739
1761
|
color,
|
1740
|
-
subname,
|
1741
1762
|
loading,
|
1742
1763
|
callback,
|
1743
1764
|
disabled,
|
1744
1765
|
className
|
1745
|
-
} =
|
1746
|
-
var Content = loading ? vue.createVNode(Loading, {
|
1747
|
-
"class": bem$1g("loading-icon")
|
1748
|
-
}, null) : [vue.createVNode("span", {
|
1749
|
-
"class": bem$1g("name")
|
1750
|
-
}, [name2]), subname && vue.createVNode("div", {
|
1751
|
-
"class": bem$1g("subname")
|
1752
|
-
}, [subname])];
|
1766
|
+
} = action;
|
1753
1767
|
var onClick = () => {
|
1754
1768
|
if (disabled || loading) {
|
1755
1769
|
return;
|
1756
1770
|
}
|
1757
1771
|
if (callback) {
|
1758
|
-
callback(
|
1772
|
+
callback(action);
|
1759
1773
|
}
|
1760
1774
|
if (props.closeOnClickAction) {
|
1761
1775
|
updateShow(false);
|
1762
1776
|
}
|
1763
|
-
vue.nextTick(() => emit("select",
|
1777
|
+
vue.nextTick(() => emit("select", action, index2));
|
1764
1778
|
};
|
1765
1779
|
return vue.createVNode("button", {
|
1766
1780
|
"type": "button",
|
@@ -1772,7 +1786,7 @@
|
|
1772
1786
|
disabled
|
1773
1787
|
}), className],
|
1774
1788
|
"onClick": onClick
|
1775
|
-
}, [
|
1789
|
+
}, [renderActionContent(action, index2)]);
|
1776
1790
|
};
|
1777
1791
|
var renderDescription = () => {
|
1778
1792
|
if (props.description || slots.description) {
|
@@ -1789,7 +1803,7 @@
|
|
1789
1803
|
}, pick(props, popupInheritKeys$2)), {
|
1790
1804
|
default: () => [renderHeader(), renderDescription(), vue.createVNode("div", {
|
1791
1805
|
"class": bem$1g("content")
|
1792
|
-
}, [props.actions.map(
|
1806
|
+
}, [props.actions.map(renderAction), slots.default == null ? void 0 : slots.default()]), renderCancel()]
|
1793
1807
|
});
|
1794
1808
|
}
|
1795
1809
|
});
|
@@ -2277,28 +2291,34 @@
|
|
2277
2291
|
option: slots.option
|
2278
2292
|
});
|
2279
2293
|
});
|
2294
|
+
var renderMask = (wrapHeight) => {
|
2295
|
+
var hasOptions = formattedColumns.value.some((item) => item[valuesKey] && item[valuesKey].length !== 0);
|
2296
|
+
if (hasOptions) {
|
2297
|
+
var frameStyle = {
|
2298
|
+
height: itemHeight.value + "px"
|
2299
|
+
};
|
2300
|
+
var maskStyle = {
|
2301
|
+
backgroundSize: "100% " + (wrapHeight - itemHeight.value) / 2 + "px"
|
2302
|
+
};
|
2303
|
+
return [vue.createVNode("div", {
|
2304
|
+
"class": bem$1e("mask"),
|
2305
|
+
"style": maskStyle
|
2306
|
+
}, null), vue.createVNode("div", {
|
2307
|
+
"class": [BORDER_UNSET_TOP_BOTTOM, bem$1e("frame")],
|
2308
|
+
"style": frameStyle
|
2309
|
+
}, null)];
|
2310
|
+
}
|
2311
|
+
};
|
2280
2312
|
var renderColumns = () => {
|
2281
2313
|
var wrapHeight = itemHeight.value * +props.visibleItemCount;
|
2282
|
-
var frameStyle = {
|
2283
|
-
height: itemHeight.value + "px"
|
2284
|
-
};
|
2285
2314
|
var columnsStyle = {
|
2286
2315
|
height: wrapHeight + "px"
|
2287
2316
|
};
|
2288
|
-
var maskStyle = {
|
2289
|
-
backgroundSize: "100% " + (wrapHeight - itemHeight.value) / 2 + "px"
|
2290
|
-
};
|
2291
2317
|
return vue.createVNode("div", {
|
2292
2318
|
"class": bem$1e("columns"),
|
2293
2319
|
"style": columnsStyle,
|
2294
2320
|
"onTouchmove": preventDefault
|
2295
|
-
}, [renderColumnItems(),
|
2296
|
-
"class": bem$1e("mask"),
|
2297
|
-
"style": maskStyle
|
2298
|
-
}, null), vue.createVNode("div", {
|
2299
|
-
"class": [BORDER_UNSET_TOP_BOTTOM, bem$1e("frame")],
|
2300
|
-
"style": frameStyle
|
2301
|
-
}, null)]);
|
2321
|
+
}, [renderColumnItems(), renderMask(wrapHeight)]);
|
2302
2322
|
};
|
2303
2323
|
vue.watch(() => props.columns, format2, {
|
2304
2324
|
immediate: true
|
@@ -4543,11 +4563,17 @@
|
|
4543
4563
|
}
|
4544
4564
|
function useRefs() {
|
4545
4565
|
var refs = vue.ref([]);
|
4566
|
+
var cache = [];
|
4546
4567
|
vue.onBeforeUpdate(() => {
|
4547
4568
|
refs.value = [];
|
4548
4569
|
});
|
4549
|
-
var setRefs = (index2) =>
|
4550
|
-
|
4570
|
+
var setRefs = (index2) => {
|
4571
|
+
if (!cache[index2]) {
|
4572
|
+
cache[index2] = (el) => {
|
4573
|
+
refs.value[index2] = el;
|
4574
|
+
};
|
4575
|
+
}
|
4576
|
+
return cache[index2];
|
4551
4577
|
};
|
4552
4578
|
return [refs, setRefs];
|
4553
4579
|
}
|
@@ -5795,16 +5821,19 @@
|
|
5795
5821
|
color: String,
|
5796
5822
|
title: String,
|
5797
5823
|
badge: numericProp,
|
5824
|
+
shrink: Boolean,
|
5798
5825
|
isActive: Boolean,
|
5799
5826
|
disabled: Boolean,
|
5800
5827
|
controls: String,
|
5801
5828
|
scrollable: Boolean,
|
5802
5829
|
activeColor: String,
|
5803
|
-
renderTitle: Function,
|
5804
5830
|
inactiveColor: String,
|
5805
5831
|
showZeroBadge: truthProp
|
5806
5832
|
},
|
5807
|
-
setup(props) {
|
5833
|
+
setup(props, _ref) {
|
5834
|
+
var {
|
5835
|
+
slots
|
5836
|
+
} = _ref;
|
5808
5837
|
var style = vue.computed(() => {
|
5809
5838
|
var style2 = {};
|
5810
5839
|
var {
|
@@ -5837,7 +5866,7 @@
|
|
5837
5866
|
"class": bem$Y("text", {
|
5838
5867
|
ellipsis: !props.scrollable
|
5839
5868
|
})
|
5840
|
-
}, [
|
5869
|
+
}, [slots.title ? slots.title() : props.title]);
|
5841
5870
|
if (props.dot || isDef(props.badge) && props.badge !== "") {
|
5842
5871
|
return vue.createVNode(Badge, {
|
5843
5872
|
"dot": props.dot,
|
@@ -5852,10 +5881,12 @@
|
|
5852
5881
|
return () => vue.createVNode("div", {
|
5853
5882
|
"id": props.id,
|
5854
5883
|
"role": "tab",
|
5855
|
-
"class": [bem$Y({
|
5884
|
+
"class": [bem$Y([props.type, {
|
5885
|
+
grow: props.scrollable && !props.shrink,
|
5886
|
+
shrink: props.shrink,
|
5856
5887
|
active: props.isActive,
|
5857
5888
|
disabled: props.disabled
|
5858
|
-
})],
|
5889
|
+
}])],
|
5859
5890
|
"style": style.value,
|
5860
5891
|
"tabindex": props.disabled ? void 0 : props.isActive ? 0 : -1,
|
5861
5892
|
"aria-selected": props.isActive,
|
@@ -6041,26 +6072,33 @@
|
|
6041
6072
|
if (!root.value) {
|
6042
6073
|
return;
|
6043
6074
|
}
|
6044
|
-
|
6045
|
-
|
6046
|
-
|
6047
|
-
|
6048
|
-
|
6049
|
-
|
6050
|
-
|
6051
|
-
|
6052
|
-
|
6053
|
-
|
6054
|
-
|
6055
|
-
|
6075
|
+
var cb = () => {
|
6076
|
+
if (!isHidden(root)) {
|
6077
|
+
var _props$width, _props$height;
|
6078
|
+
var rect = {
|
6079
|
+
width: root.value.offsetWidth,
|
6080
|
+
height: root.value.offsetHeight
|
6081
|
+
};
|
6082
|
+
state.rect = rect;
|
6083
|
+
state.width = +((_props$width = props.width) != null ? _props$width : rect.width);
|
6084
|
+
state.height = +((_props$height = props.height) != null ? _props$height : rect.height);
|
6085
|
+
}
|
6086
|
+
if (count.value) {
|
6087
|
+
active = Math.min(count.value - 1, active);
|
6088
|
+
}
|
6089
|
+
state.active = active;
|
6090
|
+
state.swiping = true;
|
6091
|
+
state.offset = getTargetOffset(active);
|
6092
|
+
children.forEach((swipe) => {
|
6093
|
+
swipe.setOffset(0);
|
6094
|
+
});
|
6095
|
+
autoplay();
|
6096
|
+
};
|
6097
|
+
if (isHidden(root)) {
|
6098
|
+
vue.nextTick().then(cb);
|
6099
|
+
} else {
|
6100
|
+
cb();
|
6056
6101
|
}
|
6057
|
-
state.active = active;
|
6058
|
-
state.swiping = true;
|
6059
|
-
state.offset = getTargetOffset(active);
|
6060
|
-
children.forEach((swipe) => {
|
6061
|
-
swipe.setOffset(0);
|
6062
|
-
});
|
6063
|
-
autoplay();
|
6064
6102
|
};
|
6065
6103
|
var resize = () => initialize(state.active);
|
6066
6104
|
var touchStartTime;
|
@@ -6075,11 +6113,8 @@
|
|
6075
6113
|
var onTouchMove = (event) => {
|
6076
6114
|
if (props.touchable && state.swiping) {
|
6077
6115
|
touch.move(event);
|
6078
|
-
var shouldPrevent = isCorrectDirection.value || touch.offsetY.value > touch.offsetX.value === props.vertical;
|
6079
|
-
if (shouldPrevent) {
|
6080
|
-
preventDefault(event, props.stopPropagation);
|
6081
|
-
}
|
6082
6116
|
if (isCorrectDirection.value) {
|
6117
|
+
preventDefault(event, props.stopPropagation);
|
6083
6118
|
move({
|
6084
6119
|
offset: delta.value
|
6085
6120
|
});
|
@@ -6154,7 +6189,8 @@
|
|
6154
6189
|
var renderIndicator = () => {
|
6155
6190
|
if (slots.indicator) {
|
6156
6191
|
return slots.indicator({
|
6157
|
-
active: activeIndicator.value
|
6192
|
+
active: activeIndicator.value,
|
6193
|
+
total: count.value
|
6158
6194
|
});
|
6159
6195
|
}
|
6160
6196
|
if (props.showIndicators && count.value > 1) {
|
@@ -6273,6 +6309,7 @@
|
|
6273
6309
|
color: String,
|
6274
6310
|
border: Boolean,
|
6275
6311
|
sticky: Boolean,
|
6312
|
+
shrink: Boolean,
|
6276
6313
|
active: makeNumericProp(0),
|
6277
6314
|
duration: makeNumericProp(0.3),
|
6278
6315
|
animated: Boolean,
|
@@ -6318,7 +6355,7 @@
|
|
6318
6355
|
lineStyle: {},
|
6319
6356
|
currentIndex: -1
|
6320
6357
|
});
|
6321
|
-
var scrollable = vue.computed(() => children.length > props.swipeThreshold || !props.ellipsis);
|
6358
|
+
var scrollable = vue.computed(() => children.length > props.swipeThreshold || !props.ellipsis || props.shrink);
|
6322
6359
|
var navStyle = vue.computed(() => ({
|
6323
6360
|
borderColor: props.color,
|
6324
6361
|
background: props.background
|
@@ -6484,14 +6521,24 @@
|
|
6484
6521
|
"color": props.color,
|
6485
6522
|
"style": item.titleStyle,
|
6486
6523
|
"class": item.titleClass,
|
6524
|
+
"shrink": props.shrink,
|
6487
6525
|
"isActive": index2 === state.currentIndex,
|
6488
6526
|
"controls": item.id,
|
6489
6527
|
"scrollable": scrollable.value,
|
6490
|
-
"renderTitle": item.$slots.title,
|
6491
6528
|
"activeColor": props.titleActiveColor,
|
6492
6529
|
"inactiveColor": props.titleInactiveColor,
|
6493
6530
|
"onClick": (event) => onClickTab(item, index2, event)
|
6494
|
-
}, pick(item, ["dot", "badge", "title", "disabled", "showZeroBadge"])),
|
6531
|
+
}, pick(item, ["dot", "badge", "title", "disabled", "showZeroBadge"])), {
|
6532
|
+
title: item.$slots.title
|
6533
|
+
}));
|
6534
|
+
var renderLine = () => {
|
6535
|
+
if (props.type === "line" && children.length) {
|
6536
|
+
return vue.createVNode("div", {
|
6537
|
+
"class": bem$V("line"),
|
6538
|
+
"style": state.lineStyle
|
6539
|
+
}, null);
|
6540
|
+
}
|
6541
|
+
};
|
6495
6542
|
var renderHeader = () => {
|
6496
6543
|
var _slots$navLeft, _slots$navRight;
|
6497
6544
|
var {
|
@@ -6500,23 +6547,19 @@
|
|
6500
6547
|
} = props;
|
6501
6548
|
return vue.createVNode("div", {
|
6502
6549
|
"ref": wrapRef,
|
6503
|
-
"class": [bem$V("wrap", {
|
6504
|
-
scrollable: scrollable.value
|
6505
|
-
}), {
|
6550
|
+
"class": [bem$V("wrap"), {
|
6506
6551
|
[BORDER_TOP_BOTTOM]: type === "line" && border
|
6507
6552
|
}]
|
6508
6553
|
}, [vue.createVNode("div", {
|
6509
6554
|
"ref": navRef,
|
6510
6555
|
"role": "tablist",
|
6511
6556
|
"class": bem$V("nav", [type, {
|
6557
|
+
shrink: props.shrink,
|
6512
6558
|
complete: scrollable.value
|
6513
6559
|
}]),
|
6514
6560
|
"style": navStyle.value,
|
6515
6561
|
"aria-orientation": "horizontal"
|
6516
|
-
}, [(_slots$navLeft = slots["nav-left"]) == null ? void 0 : _slots$navLeft.call(slots), renderNav(),
|
6517
|
-
"class": bem$V("line"),
|
6518
|
-
"style": state.lineStyle
|
6519
|
-
}, null), (_slots$navRight = slots["nav-right"]) == null ? void 0 : _slots$navRight.call(slots)])]);
|
6562
|
+
}, [(_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)])]);
|
6520
6563
|
};
|
6521
6564
|
vue.watch([() => props.color, windowWidth], setLine);
|
6522
6565
|
vue.watch(() => props.active, (value) => {
|
@@ -6951,10 +6994,10 @@
|
|
6951
6994
|
var renderTabs = () => vue.createVNode(Tabs, {
|
6952
6995
|
"active": activeTab.value,
|
6953
6996
|
"onUpdate:active": ($event) => activeTab.value = $event,
|
6997
|
+
"shrink": true,
|
6954
6998
|
"animated": true,
|
6955
6999
|
"class": bem$S("tabs"),
|
6956
7000
|
"color": props.activeColor,
|
6957
|
-
"swipeThreshold": 0,
|
6958
7001
|
"swipeable": props.swipeable,
|
6959
7002
|
"onClick-tab": onClickTab
|
6960
7003
|
}, {
|
@@ -9382,7 +9425,8 @@
|
|
9382
9425
|
icon: String,
|
9383
9426
|
badge: numericProp,
|
9384
9427
|
iconColor: String,
|
9385
|
-
iconPrefix: String
|
9428
|
+
iconPrefix: String,
|
9429
|
+
badgeProps: Object
|
9386
9430
|
});
|
9387
9431
|
var _GridItem = vue.defineComponent({
|
9388
9432
|
name: name$u,
|
@@ -9436,10 +9480,10 @@
|
|
9436
9480
|
});
|
9437
9481
|
var renderIcon = () => {
|
9438
9482
|
if (slots.icon) {
|
9439
|
-
return vue.createVNode(Badge, {
|
9483
|
+
return vue.createVNode(Badge, vue.mergeProps({
|
9440
9484
|
"dot": props.dot,
|
9441
9485
|
"content": props.badge
|
9442
|
-
}, {
|
9486
|
+
}, props.badgeProps), {
|
9443
9487
|
default: slots.icon
|
9444
9488
|
});
|
9445
9489
|
}
|
@@ -9450,8 +9494,9 @@
|
|
9450
9494
|
"size": parent.props.iconSize,
|
9451
9495
|
"badge": props.badge,
|
9452
9496
|
"class": bem$v("icon"),
|
9453
|
-
"
|
9454
|
-
"
|
9497
|
+
"color": props.iconColor,
|
9498
|
+
"badgeProps": props.badgeProps,
|
9499
|
+
"classPrefix": props.iconPrefix
|
9455
9500
|
}, null);
|
9456
9501
|
}
|
9457
9502
|
};
|
@@ -9752,6 +9797,7 @@
|
|
9752
9797
|
closeIcon: makeStringProp("clear"),
|
9753
9798
|
transition: String,
|
9754
9799
|
beforeClose: Function,
|
9800
|
+
overlayClass: unknownProp,
|
9755
9801
|
overlayStyle: Object,
|
9756
9802
|
swipeDuration: makeNumericProp(300),
|
9757
9803
|
startPosition: makeNumericProp(0),
|
@@ -9878,7 +9924,7 @@
|
|
9878
9924
|
});
|
9879
9925
|
return () => vue.createVNode(Popup, vue.mergeProps({
|
9880
9926
|
"class": [bem$t(), props.className],
|
9881
|
-
"overlayClass": bem$t("overlay"),
|
9927
|
+
"overlayClass": [bem$t("overlay"), props.overlayClass],
|
9882
9928
|
"onClosed": onClosed,
|
9883
9929
|
"onUpdate:show": updateShow
|
9884
9930
|
}, pick(props, popupProps$1)), {
|
@@ -9903,6 +9949,7 @@
|
|
9903
9949
|
transition: void 0,
|
9904
9950
|
beforeClose: void 0,
|
9905
9951
|
overlayStyle: void 0,
|
9952
|
+
overlayClass: void 0,
|
9906
9953
|
startPosition: 0,
|
9907
9954
|
swipeDuration: 300,
|
9908
9955
|
showIndicators: false,
|
@@ -11518,6 +11565,7 @@
|
|
11518
11565
|
type: makeStringProp("danger"),
|
11519
11566
|
color: String,
|
11520
11567
|
message: numericProp,
|
11568
|
+
position: makeStringProp("top"),
|
11521
11569
|
className: unknownProp,
|
11522
11570
|
background: String,
|
11523
11571
|
lockScroll: Boolean
|
@@ -11540,7 +11588,7 @@
|
|
11540
11588
|
background: props.background
|
11541
11589
|
},
|
11542
11590
|
"overlay": false,
|
11543
|
-
"position":
|
11591
|
+
"position": props.position,
|
11544
11592
|
"duration": 0.2,
|
11545
11593
|
"lockScroll": props.lockScroll,
|
11546
11594
|
"onUpdate:show": updateShow
|
@@ -11592,6 +11640,7 @@
|
|
11592
11640
|
onClick: void 0,
|
11593
11641
|
onOpened: void 0,
|
11594
11642
|
duration: 3e3,
|
11643
|
+
position: void 0,
|
11595
11644
|
className: "",
|
11596
11645
|
lockScroll: false,
|
11597
11646
|
background: void 0
|
@@ -13081,10 +13130,24 @@
|
|
13081
13130
|
updateShow(false);
|
13082
13131
|
}
|
13083
13132
|
};
|
13133
|
+
var renderActionContent = (action, index2) => {
|
13134
|
+
if (slots.action) {
|
13135
|
+
return slots.action({
|
13136
|
+
action,
|
13137
|
+
index: index2
|
13138
|
+
});
|
13139
|
+
}
|
13140
|
+
return [action.icon && vue.createVNode(Icon, {
|
13141
|
+
"name": action.icon,
|
13142
|
+
"classPrefix": props.iconPrefix,
|
13143
|
+
"class": bem$i("action-icon")
|
13144
|
+
}, null), vue.createVNode("div", {
|
13145
|
+
"class": [bem$i("action-text"), BORDER_BOTTOM]
|
13146
|
+
}, [action.text])];
|
13147
|
+
};
|
13084
13148
|
var renderAction = (action, index2) => {
|
13085
13149
|
var {
|
13086
13150
|
icon,
|
13087
|
-
text,
|
13088
13151
|
color,
|
13089
13152
|
disabled,
|
13090
13153
|
className
|
@@ -13101,13 +13164,7 @@
|
|
13101
13164
|
"tabindex": disabled ? void 0 : 0,
|
13102
13165
|
"aria-disabled": disabled || void 0,
|
13103
13166
|
"onClick": () => onClickAction(action, index2)
|
13104
|
-
}, [
|
13105
|
-
"name": icon,
|
13106
|
-
"classPrefix": props.iconPrefix,
|
13107
|
-
"class": bem$i("action-icon")
|
13108
|
-
}, null), vue.createVNode("div", {
|
13109
|
-
"class": [bem$i("action-text"), BORDER_BOTTOM]
|
13110
|
-
}, [text])]);
|
13167
|
+
}, [renderActionContent(action, index2)]);
|
13111
13168
|
};
|
13112
13169
|
vue.onMounted(updateLocation);
|
13113
13170
|
vue.onBeforeUnmount(() => {
|
@@ -13592,7 +13649,7 @@
|
|
13592
13649
|
var _Search = vue.defineComponent({
|
13593
13650
|
name: name$e,
|
13594
13651
|
props: searchProps,
|
13595
|
-
emits: ["search", "cancel", "update:modelValue"],
|
13652
|
+
emits: ["blur", "focus", "clear", "search", "cancel", "click-input", "click-left-icon", "click-right-icon", "update:modelValue"],
|
13596
13653
|
setup(props, _ref) {
|
13597
13654
|
var {
|
13598
13655
|
emit,
|
@@ -13642,6 +13699,12 @@
|
|
13642
13699
|
var _filedRef$value2;
|
13643
13700
|
return (_filedRef$value2 = filedRef.value) == null ? void 0 : _filedRef$value2.focus();
|
13644
13701
|
};
|
13702
|
+
var onBlur = (event) => emit("blur", event);
|
13703
|
+
var onFocus = (event) => emit("focus", event);
|
13704
|
+
var onClear = (event) => emit("clear", event);
|
13705
|
+
var onClickInput = (event) => emit("click-input", event);
|
13706
|
+
var onClickLeftIcon = (event) => emit("click-left-icon", event);
|
13707
|
+
var onClickRightIcon = (event) => emit("click-right-icon", event);
|
13645
13708
|
var fieldPropNames = Object.keys(fieldSharedProps);
|
13646
13709
|
var renderField = () => {
|
13647
13710
|
var fieldAttrs = extend({}, attrs, pick(props, fieldPropNames), {
|
@@ -13653,7 +13716,13 @@
|
|
13653
13716
|
"type": "search",
|
13654
13717
|
"class": bem$e("field"),
|
13655
13718
|
"border": false,
|
13719
|
+
"onBlur": onBlur,
|
13720
|
+
"onFocus": onFocus,
|
13721
|
+
"onClear": onClear,
|
13656
13722
|
"onKeypress": onKeypress,
|
13723
|
+
"onClick-input": onClickInput,
|
13724
|
+
"onClick-left-icon": onClickLeftIcon,
|
13725
|
+
"onClick-right-icon": onClickRightIcon,
|
13657
13726
|
"onUpdate:modelValue": onInput
|
13658
13727
|
}, fieldAttrs), pick(slots, ["left-icon", "right-icon"]));
|
13659
13728
|
};
|
@@ -13816,7 +13885,8 @@
|
|
13816
13885
|
dot: Boolean,
|
13817
13886
|
title: String,
|
13818
13887
|
badge: numericProp,
|
13819
|
-
disabled: Boolean
|
13888
|
+
disabled: Boolean,
|
13889
|
+
badgeProps: Object
|
13820
13890
|
});
|
13821
13891
|
var _SidebarItem = vue.defineComponent({
|
13822
13892
|
name: name$b,
|
@@ -13860,11 +13930,11 @@
|
|
13860
13930
|
"tabindex": disabled ? void 0 : 0,
|
13861
13931
|
"aria-selected": selected,
|
13862
13932
|
"onClick": onClick
|
13863
|
-
}, [vue.createVNode(Badge, {
|
13933
|
+
}, [vue.createVNode(Badge, vue.mergeProps({
|
13864
13934
|
"dot": dot,
|
13865
|
-
"
|
13866
|
-
"
|
13867
|
-
}, {
|
13935
|
+
"class": bem$b("text"),
|
13936
|
+
"content": badge
|
13937
|
+
}, props.badgeProps), {
|
13868
13938
|
default: () => [slots.title ? slots.title() : title]
|
13869
13939
|
})]);
|
13870
13940
|
};
|
@@ -14278,7 +14348,7 @@
|
|
14278
14348
|
color: parentProps.activeColor
|
14279
14349
|
};
|
14280
14350
|
}
|
14281
|
-
if (
|
14351
|
+
if (getStatus() === "waiting") {
|
14282
14352
|
return {
|
14283
14353
|
color: parentProps.inactiveColor
|
14284
14354
|
};
|
@@ -14723,12 +14793,14 @@
|
|
14723
14793
|
var leftWidth = vue.computed(() => isDef(props.leftWidth) ? +props.leftWidth : getWidthByRef(leftRef));
|
14724
14794
|
var rightWidth = vue.computed(() => isDef(props.rightWidth) ? +props.rightWidth : getWidthByRef(rightRef));
|
14725
14795
|
var open = (side) => {
|
14726
|
-
opened = true;
|
14727
14796
|
state.offset = side === "left" ? leftWidth.value : -rightWidth.value;
|
14728
|
-
|
14729
|
-
|
14730
|
-
|
14731
|
-
|
14797
|
+
if (!opened) {
|
14798
|
+
opened = true;
|
14799
|
+
emit("open", {
|
14800
|
+
name: props.name,
|
14801
|
+
position: side
|
14802
|
+
});
|
14803
|
+
}
|
14732
14804
|
};
|
14733
14805
|
var close = (position) => {
|
14734
14806
|
state.offset = 0;
|
@@ -14925,6 +14997,7 @@
|
|
14925
14997
|
icon: String,
|
14926
14998
|
name: numericProp,
|
14927
14999
|
badge: numericProp,
|
15000
|
+
badgeProps: Object,
|
14928
15001
|
iconPrefix: String
|
14929
15002
|
});
|
14930
15003
|
var _TabbarItem = vue.defineComponent({
|
@@ -15010,11 +15083,11 @@
|
|
15010
15083
|
"tabindex": 0,
|
15011
15084
|
"aria-selected": active.value,
|
15012
15085
|
"onClick": onClick
|
15013
|
-
}, [vue.createVNode(Badge, {
|
15086
|
+
}, [vue.createVNode(Badge, vue.mergeProps({
|
15014
15087
|
"dot": dot,
|
15015
|
-
"
|
15016
|
-
"
|
15017
|
-
}, {
|
15088
|
+
"class": bem$2("icon"),
|
15089
|
+
"content": badge
|
15090
|
+
}, props.badgeProps), {
|
15018
15091
|
default: renderIcon
|
15019
15092
|
}), vue.createVNode("div", {
|
15020
15093
|
"class": bem$2("text")
|
@@ -15539,7 +15612,7 @@
|
|
15539
15612
|
}
|
15540
15613
|
});
|
15541
15614
|
var Uploader = withInstall(_Uploader);
|
15542
|
-
var version = "3.
|
15615
|
+
var version = "3.4.0";
|
15543
15616
|
function install(app) {
|
15544
15617
|
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];
|
15545
15618
|
components.forEach((item) => {
|