vant 3.3.4 → 3.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/action-bar/ActionBar.d.ts +2 -2
- package/es/action-bar/index.d.ts +6 -1
- package/es/action-bar-button/ActionBarButton.d.ts +4 -4
- package/es/action-bar-button/index.d.ts +8 -3
- package/es/action-bar-icon/ActionBarIcon.d.ts +69 -8
- package/es/action-bar-icon/ActionBarIcon.js +8 -5
- package/es/action-bar-icon/index.d.ts +49 -3
- package/es/action-sheet/ActionSheet.d.ts +2 -2
- package/es/action-sheet/ActionSheet.js +27 -15
- package/es/action-sheet/index.d.ts +6 -1
- package/es/address-edit/AddressEdit.d.ts +2 -2
- package/es/address-edit/AddressEditDetail.d.ts +2 -2
- package/es/address-edit/index.d.ts +6 -1
- package/es/address-list/AddressList.d.ts +2 -2
- package/es/address-list/AddressListItem.d.ts +2 -2
- package/es/address-list/index.d.ts +6 -1
- package/es/area/Area.d.ts +2 -2
- package/es/area/index.d.ts +6 -1
- package/es/badge/Badge.d.ts +15 -3
- package/es/badge/Badge.js +4 -3
- package/es/badge/index.css +1 -1
- package/es/badge/index.d.ts +15 -3
- package/es/badge/index.less +22 -1
- package/es/button/Button.d.ts +4 -4
- package/es/button/index.d.ts +8 -3
- package/es/calendar/Calendar.d.ts +5 -5
- package/es/calendar/CalendarDay.d.ts +2 -2
- package/es/calendar/CalendarHeader.d.ts +1 -1
- package/es/calendar/CalendarMonth.d.ts +4 -4
- package/es/calendar/index.d.ts +9 -4
- package/es/card/Card.d.ts +2 -2
- package/es/card/index.d.ts +6 -1
- package/es/cascader/Cascader.d.ts +2 -2
- package/es/cascader/Cascader.js +1 -1
- package/es/cascader/index.css +1 -1
- package/es/cascader/index.d.ts +6 -1
- package/es/cascader/index.less +0 -10
- package/es/cell/Cell.d.ts +2 -2
- package/es/cell/index.d.ts +6 -1
- package/es/cell-group/CellGroup.d.ts +2 -2
- package/es/cell-group/index.d.ts +6 -1
- package/es/checkbox/Checkbox.d.ts +2 -2
- package/es/checkbox/Checker.d.ts +2 -2
- package/es/checkbox/index.d.ts +6 -1
- package/es/checkbox-group/CheckboxGroup.d.ts +2 -2
- package/es/checkbox-group/index.d.ts +6 -1
- package/es/circle/Circle.d.ts +2 -2
- package/es/circle/index.d.ts +6 -1
- package/es/col/Col.d.ts +2 -2
- package/es/col/index.d.ts +6 -1
- package/es/collapse/Collapse.d.ts +2 -2
- package/es/collapse/index.d.ts +6 -1
- package/es/collapse-item/CollapseItem.d.ts +2 -2
- package/es/collapse-item/index.d.ts +6 -1
- package/es/composables/use-refs.js +9 -2
- package/es/composables/use-route.d.ts +1 -1
- package/es/composables/use-touch.js +7 -6
- package/es/config-provider/ConfigProvider.d.ts +2 -2
- package/es/config-provider/index.d.ts +6 -1
- package/es/contact-card/ContactCard.d.ts +2 -2
- package/es/contact-card/index.d.ts +6 -1
- package/es/contact-edit/ContactEdit.d.ts +2 -2
- package/es/contact-edit/index.d.ts +6 -1
- package/es/contact-list/ContactList.d.ts +2 -2
- package/es/contact-list/index.d.ts +6 -1
- package/es/count-down/CountDown.d.ts +2 -2
- package/es/count-down/index.d.ts +6 -1
- package/es/coupon/Coupon.d.ts +2 -2
- package/es/coupon/index.d.ts +6 -1
- package/es/coupon-cell/CouponCell.d.ts +2 -2
- package/es/coupon-cell/index.d.ts +6 -1
- package/es/coupon-list/CouponList.d.ts +2 -2
- package/es/coupon-list/index.d.ts +6 -1
- package/es/datetime-picker/DatePicker.d.ts +1 -1
- package/es/datetime-picker/DatePicker.js +2 -2
- package/es/datetime-picker/DatetimePicker.d.ts +2 -2
- package/es/datetime-picker/TimePicker.d.ts +1 -1
- package/es/datetime-picker/TimePicker.js +2 -2
- package/es/datetime-picker/index.d.ts +6 -1
- package/es/datetime-picker/utils.d.ts +3 -1
- package/es/datetime-picker/utils.js +17 -1
- package/es/dialog/Dialog.d.ts +2 -2
- package/es/dialog/function-call.d.ts +1 -1
- package/es/dialog/index.d.ts +5 -0
- package/es/divider/Divider.d.ts +2 -2
- package/es/divider/index.d.ts +6 -1
- package/es/dropdown-item/DropdownItem.d.ts +2 -2
- package/es/dropdown-item/index.d.ts +6 -1
- package/es/dropdown-menu/DropdownMenu.d.ts +2 -2
- package/es/dropdown-menu/index.d.ts +6 -1
- package/es/empty/Empty.d.ts +2 -2
- package/es/empty/index.d.ts +6 -1
- package/es/field/Field.d.ts +2 -2
- package/es/field/Field.js +5 -5
- package/es/field/index.d.ts +6 -1
- package/es/field/types.d.ts +1 -1
- package/es/field/utils.d.ts +2 -0
- package/es/field/utils.js +9 -0
- package/es/form/Form.d.ts +2 -2
- package/es/form/index.d.ts +6 -1
- package/es/grid/Grid.d.ts +2 -2
- package/es/grid/index.d.ts +6 -1
- package/es/grid-item/GridItem.d.ts +66 -5
- package/es/grid-item/GridItem.js +8 -6
- package/es/grid-item/index.d.ts +48 -2
- package/es/icon/Icon.d.ts +66 -5
- package/es/icon/Icon.js +7 -6
- package/es/icon/index.css +1 -1
- package/es/icon/index.d.ts +48 -2
- package/es/image/Image.d.ts +2 -2
- package/es/image/index.d.ts +6 -1
- package/es/image-preview/ImagePreview.d.ts +6 -2
- package/es/image-preview/ImagePreview.js +2 -1
- package/es/image-preview/ImagePreviewItem.d.ts +1 -1
- package/es/image-preview/function-call.d.ts +4 -1
- package/es/image-preview/function-call.js +1 -0
- package/es/image-preview/index.d.ts +5 -0
- package/es/image-preview/types.d.ts +1 -0
- package/es/index-anchor/IndexAnchor.d.ts +2 -2
- package/es/index-anchor/index.d.ts +6 -1
- package/es/index-bar/IndexBar.d.ts +2 -2
- package/es/index-bar/index.d.ts +6 -1
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/list/List.d.ts +2 -2
- package/es/list/index.d.ts +6 -1
- package/es/loading/Loading.d.ts +2 -2
- package/es/loading/index.d.ts +6 -1
- package/es/nav-bar/NavBar.d.ts +2 -2
- package/es/nav-bar/index.d.ts +6 -1
- package/es/notice-bar/NoticeBar.d.ts +2 -2
- package/es/notice-bar/index.d.ts +6 -1
- package/es/notify/Notify.d.ts +14 -3
- package/es/notify/Notify.js +2 -1
- package/es/notify/function-call.d.ts +9 -2
- package/es/notify/function-call.js +1 -0
- package/es/notify/index.d.ts +5 -0
- package/es/notify/types.d.ts +2 -0
- package/es/number-keyboard/NumberKeyboard.d.ts +2 -2
- package/es/number-keyboard/NumberKeyboardKey.d.ts +3 -3
- package/es/number-keyboard/index.d.ts +6 -1
- package/es/overlay/Overlay.d.ts +2 -2
- package/es/overlay/index.d.ts +6 -1
- package/es/pagination/Pagination.d.ts +2 -2
- package/es/pagination/Pagination.js +3 -3
- package/es/pagination/index.d.ts +6 -1
- package/es/password-input/PasswordInput.d.ts +2 -2
- package/es/password-input/index.d.ts +6 -1
- package/es/picker/Picker.d.ts +2 -2
- package/es/picker/Picker.js +21 -13
- package/es/picker/PickerColumn.d.ts +1 -1
- package/es/picker/index.d.ts +6 -1
- package/es/popover/Popover.d.ts +2 -2
- package/es/popover/Popover.js +19 -9
- package/es/popover/index.d.ts +6 -1
- package/es/popup/Popup.d.ts +5 -6
- package/es/popup/Popup.js +7 -4
- package/es/popup/index.d.ts +16 -10
- package/es/popup/shared.d.ts +1 -1
- package/es/popup/types.d.ts +5 -0
- package/es/popup/types.js +1 -0
- package/es/progress/Progress.d.ts +2 -2
- package/es/progress/index.d.ts +6 -1
- package/es/pull-refresh/PullRefresh.d.ts +2 -2
- package/es/pull-refresh/index.css +1 -1
- package/es/pull-refresh/index.d.ts +6 -1
- package/es/pull-refresh/index.less +0 -1
- package/es/radio/Radio.d.ts +2 -2
- package/es/radio/index.d.ts +6 -1
- package/es/radio-group/RadioGroup.d.ts +2 -2
- package/es/radio-group/index.d.ts +6 -1
- package/es/rate/Rate.d.ts +2 -2
- package/es/rate/index.d.ts +6 -1
- package/es/row/Row.d.ts +2 -2
- package/es/row/index.d.ts +6 -1
- package/es/search/Search.d.ts +8 -2
- package/es/search/Search.js +19 -1
- package/es/search/index.d.ts +12 -1
- package/es/share-sheet/ShareSheet.d.ts +2 -2
- package/es/share-sheet/index.d.ts +6 -1
- package/es/sidebar/Sidebar.d.ts +2 -2
- package/es/sidebar/index.d.ts +6 -1
- package/es/sidebar-item/SidebarItem.d.ts +65 -4
- package/es/sidebar-item/SidebarItem.js +7 -6
- package/es/sidebar-item/index.d.ts +47 -1
- package/es/skeleton/Skeleton.d.ts +2 -2
- package/es/skeleton/index.d.ts +6 -1
- package/es/slider/Slider.d.ts +4 -4
- package/es/slider/index.d.ts +8 -3
- package/es/step/Step.d.ts +1 -1
- package/es/step/Step.js +1 -1
- package/es/step/index.d.ts +6 -1
- package/es/stepper/Stepper.d.ts +2 -2
- package/es/stepper/index.d.ts +6 -1
- package/es/steps/Steps.d.ts +2 -2
- package/es/steps/index.d.ts +6 -1
- package/es/sticky/Sticky.d.ts +2 -2
- package/es/sticky/index.d.ts +6 -1
- package/es/submit-bar/SubmitBar.d.ts +2 -2
- package/es/submit-bar/index.d.ts +6 -1
- package/es/swipe/Swipe.d.ts +2 -2
- package/es/swipe/Swipe.js +34 -30
- package/es/swipe/index.d.ts +6 -1
- package/es/swipe-cell/SwipeCell.d.ts +2 -2
- package/es/swipe-cell/SwipeCell.js +8 -5
- package/es/swipe-cell/index.d.ts +6 -1
- package/es/swipe-item/SwipeItem.d.ts +1 -1
- package/es/swipe-item/index.d.ts +6 -1
- package/es/switch/Switch.d.ts +2 -2
- package/es/switch/index.d.ts +6 -1
- package/es/tab/Tab.d.ts +2 -2
- package/es/tab/index.d.ts +6 -1
- package/es/tabbar/Tabbar.d.ts +2 -2
- package/es/tabbar/index.d.ts +6 -1
- package/es/tabbar-item/TabbarItem.d.ts +65 -4
- package/es/tabbar-item/TabbarItem.js +6 -5
- package/es/tabbar-item/index.d.ts +47 -1
- package/es/tabs/Tabs.d.ts +7 -2
- package/es/tabs/Tabs.js +19 -11
- package/es/tabs/TabsContent.d.ts +1 -1
- package/es/tabs/TabsTitle.d.ts +6 -5
- package/es/tabs/TabsTitle.js +10 -5
- package/es/tabs/index.css +1 -1
- package/es/tabs/index.d.ts +10 -1
- package/es/tabs/index.less +43 -35
- package/es/tag/Tag.d.ts +2 -2
- package/es/tag/index.d.ts +6 -1
- package/es/toast/Toast.d.ts +4 -4
- package/es/toast/function-call.d.ts +2 -2
- package/es/toast/function-call.js +1 -1
- package/es/tree-select/TreeSelect.d.ts +2 -2
- package/es/tree-select/index.css +1 -1
- package/es/tree-select/index.d.ts +6 -1
- package/es/tree-select/index.less +1 -1
- package/es/uploader/Uploader.d.ts +3 -3
- package/es/uploader/UploaderPreviewItem.d.ts +2 -2
- package/es/uploader/index.d.ts +6 -1
- package/lib/action-bar/ActionBar.d.ts +2 -2
- package/lib/action-bar/index.d.ts +6 -1
- package/lib/action-bar-button/ActionBarButton.d.ts +4 -4
- package/lib/action-bar-button/index.d.ts +8 -3
- package/lib/action-bar-icon/ActionBarIcon.d.ts +69 -8
- package/lib/action-bar-icon/ActionBarIcon.js +7 -4
- package/lib/action-bar-icon/index.d.ts +49 -3
- package/lib/action-sheet/ActionSheet.d.ts +2 -2
- package/lib/action-sheet/ActionSheet.js +27 -15
- package/lib/action-sheet/index.d.ts +6 -1
- package/lib/address-edit/AddressEdit.d.ts +2 -2
- package/lib/address-edit/AddressEditDetail.d.ts +2 -2
- package/lib/address-edit/index.d.ts +6 -1
- package/lib/address-list/AddressList.d.ts +2 -2
- package/lib/address-list/AddressListItem.d.ts +2 -2
- package/lib/address-list/index.d.ts +6 -1
- package/lib/area/Area.d.ts +2 -2
- package/lib/area/index.d.ts +6 -1
- package/lib/badge/Badge.d.ts +15 -3
- package/lib/badge/Badge.js +4 -3
- package/lib/badge/index.css +1 -1
- package/lib/badge/index.d.ts +15 -3
- package/lib/badge/index.less +22 -1
- package/lib/button/Button.d.ts +4 -4
- package/lib/button/index.d.ts +8 -3
- package/lib/calendar/Calendar.d.ts +5 -5
- package/lib/calendar/CalendarDay.d.ts +2 -2
- package/lib/calendar/CalendarHeader.d.ts +1 -1
- package/lib/calendar/CalendarMonth.d.ts +4 -4
- package/lib/calendar/index.d.ts +9 -4
- package/lib/card/Card.d.ts +2 -2
- package/lib/card/index.d.ts +6 -1
- package/lib/cascader/Cascader.d.ts +2 -2
- package/lib/cascader/Cascader.js +1 -1
- package/lib/cascader/index.css +1 -1
- package/lib/cascader/index.d.ts +6 -1
- package/lib/cascader/index.less +0 -10
- package/lib/cell/Cell.d.ts +2 -2
- package/lib/cell/index.d.ts +6 -1
- package/lib/cell-group/CellGroup.d.ts +2 -2
- package/lib/cell-group/index.d.ts +6 -1
- package/lib/checkbox/Checkbox.d.ts +2 -2
- package/lib/checkbox/Checker.d.ts +2 -2
- package/lib/checkbox/index.d.ts +6 -1
- package/lib/checkbox-group/CheckboxGroup.d.ts +2 -2
- package/lib/checkbox-group/index.d.ts +6 -1
- package/lib/circle/Circle.d.ts +2 -2
- package/lib/circle/index.d.ts +6 -1
- package/lib/col/Col.d.ts +2 -2
- package/lib/col/index.d.ts +6 -1
- package/lib/collapse/Collapse.d.ts +2 -2
- package/lib/collapse/index.d.ts +6 -1
- package/lib/collapse-item/CollapseItem.d.ts +2 -2
- package/lib/collapse-item/index.d.ts +6 -1
- package/lib/composables/use-refs.js +9 -2
- package/lib/composables/use-route.d.ts +1 -1
- package/lib/composables/use-touch.js +7 -7
- package/lib/config-provider/ConfigProvider.d.ts +2 -2
- package/lib/config-provider/index.d.ts +6 -1
- package/lib/contact-card/ContactCard.d.ts +2 -2
- package/lib/contact-card/index.d.ts +6 -1
- package/lib/contact-edit/ContactEdit.d.ts +2 -2
- package/lib/contact-edit/index.d.ts +6 -1
- package/lib/contact-list/ContactList.d.ts +2 -2
- package/lib/contact-list/index.d.ts +6 -1
- package/lib/count-down/CountDown.d.ts +2 -2
- package/lib/count-down/index.d.ts +6 -1
- package/lib/coupon/Coupon.d.ts +2 -2
- package/lib/coupon/index.d.ts +6 -1
- package/lib/coupon-cell/CouponCell.d.ts +2 -2
- package/lib/coupon-cell/index.d.ts +6 -1
- package/lib/coupon-list/CouponList.d.ts +2 -2
- package/lib/coupon-list/index.d.ts +6 -1
- package/lib/datetime-picker/DatePicker.d.ts +1 -1
- package/lib/datetime-picker/DatePicker.js +1 -1
- package/lib/datetime-picker/DatetimePicker.d.ts +2 -2
- package/lib/datetime-picker/TimePicker.d.ts +1 -1
- package/lib/datetime-picker/TimePicker.js +1 -1
- package/lib/datetime-picker/index.d.ts +6 -1
- package/lib/datetime-picker/utils.d.ts +3 -1
- package/lib/datetime-picker/utils.js +22 -3
- package/lib/dialog/Dialog.d.ts +2 -2
- package/lib/dialog/function-call.d.ts +1 -1
- package/lib/dialog/index.d.ts +5 -0
- package/lib/divider/Divider.d.ts +2 -2
- package/lib/divider/index.d.ts +6 -1
- package/lib/dropdown-item/DropdownItem.d.ts +2 -2
- package/lib/dropdown-item/index.d.ts +6 -1
- package/lib/dropdown-menu/DropdownMenu.d.ts +2 -2
- package/lib/dropdown-menu/index.d.ts +6 -1
- package/lib/empty/Empty.d.ts +2 -2
- package/lib/empty/index.d.ts +6 -1
- package/lib/field/Field.d.ts +2 -2
- package/lib/field/Field.js +4 -4
- package/lib/field/index.d.ts +6 -1
- package/lib/field/types.d.ts +1 -1
- package/lib/field/utils.d.ts +2 -0
- package/lib/field/utils.js +13 -0
- package/lib/form/Form.d.ts +2 -2
- package/lib/form/index.d.ts +6 -1
- package/lib/grid/Grid.d.ts +2 -2
- package/lib/grid/index.d.ts +6 -1
- package/lib/grid-item/GridItem.d.ts +66 -5
- package/lib/grid-item/GridItem.js +7 -5
- package/lib/grid-item/index.d.ts +48 -2
- package/lib/icon/Icon.d.ts +66 -5
- package/lib/icon/Icon.js +5 -4
- package/lib/icon/index.css +1 -1
- package/lib/icon/index.d.ts +48 -2
- package/lib/image/Image.d.ts +2 -2
- package/lib/image/index.d.ts +6 -1
- package/lib/image-preview/ImagePreview.d.ts +6 -2
- package/lib/image-preview/ImagePreview.js +2 -1
- package/lib/image-preview/ImagePreviewItem.d.ts +1 -1
- package/lib/image-preview/function-call.d.ts +4 -1
- package/lib/image-preview/function-call.js +1 -0
- package/lib/image-preview/index.d.ts +5 -0
- package/lib/image-preview/types.d.ts +1 -0
- package/lib/index-anchor/IndexAnchor.d.ts +2 -2
- package/lib/index-anchor/index.d.ts +6 -1
- package/lib/index-bar/IndexBar.d.ts +2 -2
- package/lib/index-bar/index.d.ts +6 -1
- package/lib/index.css +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/list/List.d.ts +2 -2
- package/lib/list/index.d.ts +6 -1
- package/lib/loading/Loading.d.ts +2 -2
- package/lib/loading/index.d.ts +6 -1
- package/lib/nav-bar/NavBar.d.ts +2 -2
- package/lib/nav-bar/index.d.ts +6 -1
- package/lib/notice-bar/NoticeBar.d.ts +2 -2
- package/lib/notice-bar/index.d.ts +6 -1
- package/lib/notify/Notify.d.ts +14 -3
- package/lib/notify/Notify.js +2 -1
- package/lib/notify/function-call.d.ts +9 -2
- package/lib/notify/function-call.js +1 -0
- package/lib/notify/index.d.ts +5 -0
- package/lib/notify/types.d.ts +2 -0
- package/lib/number-keyboard/NumberKeyboard.d.ts +2 -2
- package/lib/number-keyboard/NumberKeyboardKey.d.ts +3 -3
- package/lib/number-keyboard/index.d.ts +6 -1
- package/lib/overlay/Overlay.d.ts +2 -2
- package/lib/overlay/index.d.ts +6 -1
- package/lib/pagination/Pagination.d.ts +2 -2
- package/lib/pagination/Pagination.js +3 -3
- package/lib/pagination/index.d.ts +6 -1
- package/lib/password-input/PasswordInput.d.ts +2 -2
- package/lib/password-input/index.d.ts +6 -1
- package/lib/picker/Picker.d.ts +2 -2
- package/lib/picker/Picker.js +21 -13
- package/lib/picker/PickerColumn.d.ts +1 -1
- package/lib/picker/index.d.ts +6 -1
- package/lib/popover/Popover.d.ts +2 -2
- package/lib/popover/Popover.js +18 -8
- package/lib/popover/index.d.ts +6 -1
- package/lib/popup/Popup.d.ts +5 -6
- package/lib/popup/Popup.js +5 -3
- package/lib/popup/index.d.ts +16 -10
- package/lib/popup/shared.d.ts +1 -1
- package/lib/popup/types.d.ts +5 -0
- package/lib/popup/types.js +3 -0
- package/lib/progress/Progress.d.ts +2 -2
- package/lib/progress/index.d.ts +6 -1
- package/lib/pull-refresh/PullRefresh.d.ts +2 -2
- package/lib/pull-refresh/index.css +1 -1
- package/lib/pull-refresh/index.d.ts +6 -1
- package/lib/pull-refresh/index.less +0 -1
- package/lib/radio/Radio.d.ts +2 -2
- package/lib/radio/index.d.ts +6 -1
- package/lib/radio-group/RadioGroup.d.ts +2 -2
- package/lib/radio-group/index.d.ts +6 -1
- package/lib/rate/Rate.d.ts +2 -2
- package/lib/rate/index.d.ts +6 -1
- package/lib/row/Row.d.ts +2 -2
- package/lib/row/index.d.ts +6 -1
- package/lib/search/Search.d.ts +8 -2
- package/lib/search/Search.js +19 -1
- package/lib/search/index.d.ts +12 -1
- package/lib/share-sheet/ShareSheet.d.ts +2 -2
- package/lib/share-sheet/index.d.ts +6 -1
- package/lib/sidebar/Sidebar.d.ts +2 -2
- package/lib/sidebar/index.d.ts +6 -1
- package/lib/sidebar-item/SidebarItem.d.ts +65 -4
- package/lib/sidebar-item/SidebarItem.js +6 -5
- package/lib/sidebar-item/index.d.ts +47 -1
- package/lib/skeleton/Skeleton.d.ts +2 -2
- package/lib/skeleton/index.d.ts +6 -1
- package/lib/slider/Slider.d.ts +4 -4
- package/lib/slider/index.d.ts +8 -3
- package/lib/ssr.js +2 -2
- package/lib/step/Step.d.ts +1 -1
- package/lib/step/Step.js +1 -1
- package/lib/step/index.d.ts +6 -1
- package/lib/stepper/Stepper.d.ts +2 -2
- package/lib/stepper/index.d.ts +6 -1
- package/lib/steps/Steps.d.ts +2 -2
- package/lib/steps/index.d.ts +6 -1
- package/lib/sticky/Sticky.d.ts +2 -2
- package/lib/sticky/index.d.ts +6 -1
- package/lib/submit-bar/SubmitBar.d.ts +2 -2
- package/lib/submit-bar/index.d.ts +6 -1
- package/lib/swipe/Swipe.d.ts +2 -2
- package/lib/swipe/Swipe.js +34 -30
- package/lib/swipe/index.d.ts +6 -1
- package/lib/swipe-cell/SwipeCell.d.ts +2 -2
- package/lib/swipe-cell/SwipeCell.js +8 -5
- package/lib/swipe-cell/index.d.ts +6 -1
- package/lib/swipe-item/SwipeItem.d.ts +1 -1
- package/lib/swipe-item/index.d.ts +6 -1
- package/lib/switch/Switch.d.ts +2 -2
- package/lib/switch/index.d.ts +6 -1
- package/lib/tab/Tab.d.ts +2 -2
- package/lib/tab/index.d.ts +6 -1
- package/lib/tabbar/Tabbar.d.ts +2 -2
- package/lib/tabbar/index.d.ts +6 -1
- package/lib/tabbar-item/TabbarItem.d.ts +65 -4
- package/lib/tabbar-item/TabbarItem.js +5 -4
- package/lib/tabbar-item/index.d.ts +47 -1
- package/lib/tabs/Tabs.d.ts +7 -2
- package/lib/tabs/Tabs.js +18 -10
- package/lib/tabs/TabsContent.d.ts +1 -1
- package/lib/tabs/TabsTitle.d.ts +6 -5
- package/lib/tabs/TabsTitle.js +10 -5
- package/lib/tabs/index.css +1 -1
- package/lib/tabs/index.d.ts +10 -1
- package/lib/tabs/index.less +43 -35
- package/lib/tag/Tag.d.ts +2 -2
- package/lib/tag/index.d.ts +6 -1
- package/lib/toast/Toast.d.ts +4 -4
- package/lib/toast/function-call.d.ts +2 -2
- package/lib/tree-select/TreeSelect.d.ts +2 -2
- package/lib/tree-select/index.css +1 -1
- package/lib/tree-select/index.d.ts +6 -1
- package/lib/tree-select/index.less +1 -1
- package/lib/uploader/Uploader.d.ts +3 -3
- package/lib/uploader/UploaderPreviewItem.d.ts +2 -2
- package/lib/uploader/index.d.ts +6 -1
- package/lib/vant.cjs.js +223 -129
- package/lib/vant.cjs.min.js +1 -1
- package/lib/vant.es.js +224 -130
- package/lib/vant.es.min.js +224 -130
- package/lib/vant.js +391 -171
- package/lib/vant.min.js +1 -1
- package/package.json +17 -13
- package/vetur/attributes.json +365 -330
- package/vetur/tags.json +115 -107
- package/vetur/web-types.json +1265 -1167
package/lib/vant.js
CHANGED
@@ -49,7 +49,7 @@
|
|
49
49
|
type: String,
|
50
50
|
default: defaultVal
|
51
51
|
});
|
52
|
-
|
52
|
+
var inBrowser = typeof window !== "undefined";
|
53
53
|
function raf(fn) {
|
54
54
|
return inBrowser ? requestAnimationFrame(fn) : -1;
|
55
55
|
}
|
@@ -61,8 +61,8 @@
|
|
61
61
|
function doubleRaf(fn) {
|
62
62
|
raf(() => raf(fn));
|
63
63
|
}
|
64
|
-
|
65
|
-
|
64
|
+
var isWindow = (val) => val === window;
|
65
|
+
var makeDOMRect = (width2, height2) => ({
|
66
66
|
top: 0,
|
67
67
|
left: 0,
|
68
68
|
right: width2,
|
@@ -70,7 +70,7 @@
|
|
70
70
|
width: width2,
|
71
71
|
height: height2
|
72
72
|
});
|
73
|
-
|
73
|
+
var useRect = (elementOrRef) => {
|
74
74
|
const element = vue.unref(elementOrRef);
|
75
75
|
if (isWindow(element)) {
|
76
76
|
const width2 = element.innerWidth;
|
@@ -167,10 +167,10 @@
|
|
167
167
|
linkChildren
|
168
168
|
};
|
169
169
|
}
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
170
|
+
var SECOND = 1e3;
|
171
|
+
var MINUTE = 60 * SECOND;
|
172
|
+
var HOUR = 60 * MINUTE;
|
173
|
+
var DAY = 24 * HOUR;
|
174
174
|
function parseTime(time) {
|
175
175
|
const days = Math.floor(time / DAY);
|
176
176
|
const hours = Math.floor(time % DAY / HOUR);
|
@@ -332,8 +332,8 @@
|
|
332
332
|
};
|
333
333
|
useEventListener(eventName, onClick, { target: document });
|
334
334
|
}
|
335
|
-
|
336
|
-
|
335
|
+
var width;
|
336
|
+
var height;
|
337
337
|
function useWindowSize() {
|
338
338
|
if (!width) {
|
339
339
|
width = vue.ref(0);
|
@@ -350,8 +350,8 @@
|
|
350
350
|
}
|
351
351
|
return { width, height };
|
352
352
|
}
|
353
|
-
|
354
|
-
|
353
|
+
var overflowScrollReg = /scroll|auto/i;
|
354
|
+
var defaultRoot = inBrowser ? window : void 0;
|
355
355
|
function isElement$1(node) {
|
356
356
|
const ELEMENT_NODE_TYPE = 1;
|
357
357
|
return node.tagName !== "HTML" && node.tagName !== "BODY" && node.nodeType === ELEMENT_NODE_TYPE;
|
@@ -376,7 +376,7 @@
|
|
376
376
|
});
|
377
377
|
return scrollParent;
|
378
378
|
}
|
379
|
-
|
379
|
+
var visibility;
|
380
380
|
function usePageVisibility() {
|
381
381
|
if (!visibility) {
|
382
382
|
visibility = vue.ref("visible");
|
@@ -390,7 +390,7 @@
|
|
390
390
|
}
|
391
391
|
return visibility;
|
392
392
|
}
|
393
|
-
|
393
|
+
var CUSTOM_FIELD_INJECTION_KEY = Symbol("van-field");
|
394
394
|
function useCustomFieldValue(customValue) {
|
395
395
|
const field = vue.inject(CUSTOM_FIELD_INJECTION_KEY, null);
|
396
396
|
if (field && !field.customValue.value) {
|
@@ -829,7 +829,8 @@
|
|
829
829
|
color: String,
|
830
830
|
offset: Array,
|
831
831
|
content: numericProp,
|
832
|
-
showZero: truthProp
|
832
|
+
showZero: truthProp,
|
833
|
+
position: makeStringProp("top-right")
|
833
834
|
};
|
834
835
|
var _Badge = vue.defineComponent({
|
835
836
|
name: name$1t,
|
@@ -887,10 +888,10 @@
|
|
887
888
|
var renderBadge = () => {
|
888
889
|
if (hasContent() || props.dot) {
|
889
890
|
return vue.createVNode("div", {
|
890
|
-
"class": bem$1p({
|
891
|
+
"class": bem$1p([props.position, {
|
891
892
|
dot: props.dot,
|
892
893
|
fixed: !!slots.default
|
893
|
-
}),
|
894
|
+
}]),
|
894
895
|
"style": style.value
|
895
896
|
}, [renderContent()]);
|
896
897
|
}
|
@@ -955,6 +956,7 @@
|
|
955
956
|
size: numericProp,
|
956
957
|
badge: numericProp,
|
957
958
|
color: String,
|
959
|
+
badgeProps: Object,
|
958
960
|
classPrefix: String
|
959
961
|
};
|
960
962
|
var _Icon = vue.defineComponent({
|
@@ -976,16 +978,16 @@
|
|
976
978
|
color
|
977
979
|
} = props;
|
978
980
|
var isImageIcon = isImage(name2);
|
979
|
-
return vue.createVNode(Badge, {
|
981
|
+
return vue.createVNode(Badge, vue.mergeProps({
|
980
982
|
"dot": dot,
|
981
983
|
"tag": tag,
|
982
|
-
"content": badge,
|
983
984
|
"class": [classPrefix.value, isImageIcon ? "" : classPrefix.value + "-" + name2],
|
984
985
|
"style": {
|
985
986
|
color,
|
986
987
|
fontSize: addUnit(size)
|
987
|
-
}
|
988
|
-
|
988
|
+
},
|
989
|
+
"content": badge
|
990
|
+
}, props.badgeProps), {
|
989
991
|
default: () => [slots.default == null ? void 0 : slots.default(), isImageIcon && vue.createVNode("img", {
|
990
992
|
"class": bem$1n("image"),
|
991
993
|
"src": name2
|
@@ -1268,6 +1270,7 @@
|
|
1268
1270
|
color: String,
|
1269
1271
|
badge: numericProp,
|
1270
1272
|
iconClass: unknownProp,
|
1273
|
+
badgeProps: Object,
|
1271
1274
|
iconPrefix: String
|
1272
1275
|
});
|
1273
1276
|
var _ActionBarIcon = vue.defineComponent({
|
@@ -1286,14 +1289,15 @@
|
|
1286
1289
|
icon,
|
1287
1290
|
color,
|
1288
1291
|
iconClass,
|
1292
|
+
badgeProps: badgeProps2,
|
1289
1293
|
iconPrefix
|
1290
1294
|
} = props;
|
1291
1295
|
if (slots.icon) {
|
1292
|
-
return vue.createVNode(Badge, {
|
1296
|
+
return vue.createVNode(Badge, vue.mergeProps({
|
1293
1297
|
"dot": dot,
|
1294
|
-
"
|
1295
|
-
"
|
1296
|
-
}, {
|
1298
|
+
"class": bem$1j("icon"),
|
1299
|
+
"content": badge
|
1300
|
+
}, badgeProps2), {
|
1297
1301
|
default: slots.icon
|
1298
1302
|
});
|
1299
1303
|
}
|
@@ -1304,6 +1308,7 @@
|
|
1304
1308
|
"badge": badge,
|
1305
1309
|
"color": color,
|
1306
1310
|
"class": [bem$1j("icon"), iconClass],
|
1311
|
+
"badgeProps": badgeProps2,
|
1307
1312
|
"classPrefix": iconPrefix
|
1308
1313
|
}, null);
|
1309
1314
|
};
|
@@ -1331,12 +1336,11 @@
|
|
1331
1336
|
closeOnClickOverlay: truthProp
|
1332
1337
|
};
|
1333
1338
|
var popupSharedPropKeys = Object.keys(popupSharedProps);
|
1334
|
-
var MIN_DISTANCE = 10;
|
1335
1339
|
function getDirection(x, y) {
|
1336
|
-
if (x > y
|
1340
|
+
if (x > y) {
|
1337
1341
|
return "horizontal";
|
1338
1342
|
}
|
1339
|
-
if (y > x
|
1343
|
+
if (y > x) {
|
1340
1344
|
return "vertical";
|
1341
1345
|
}
|
1342
1346
|
return "";
|
@@ -1369,7 +1373,8 @@
|
|
1369
1373
|
deltaY.value = touch.clientY - startY.value;
|
1370
1374
|
offsetX.value = Math.abs(deltaX.value);
|
1371
1375
|
offsetY.value = Math.abs(deltaY.value);
|
1372
|
-
|
1376
|
+
var LOCK_DIRECTION_DISTANCE = 10;
|
1377
|
+
if (!direction.value || offsetX.value < LOCK_DIRECTION_DISTANCE && offsetY.value < LOCK_DIRECTION_DISTANCE) {
|
1373
1378
|
direction.value = getDirection(offsetX.value, offsetY.value);
|
1374
1379
|
}
|
1375
1380
|
};
|
@@ -1633,10 +1638,11 @@
|
|
1633
1638
|
default: renderPopup
|
1634
1639
|
});
|
1635
1640
|
};
|
1636
|
-
vue.watch(() => props.show, (
|
1637
|
-
if (
|
1641
|
+
vue.watch(() => props.show, (show) => {
|
1642
|
+
if (show && !opened) {
|
1638
1643
|
open();
|
1639
|
-
}
|
1644
|
+
}
|
1645
|
+
if (!show && opened) {
|
1640
1646
|
opened = false;
|
1641
1647
|
emit("close");
|
1642
1648
|
}
|
@@ -1732,34 +1738,43 @@
|
|
1732
1738
|
}, [slots.cancel ? slots.cancel() : props.cancelText])];
|
1733
1739
|
}
|
1734
1740
|
};
|
1735
|
-
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) => {
|
1736
1760
|
var {
|
1737
|
-
name: name2,
|
1738
1761
|
color,
|
1739
|
-
subname,
|
1740
1762
|
loading,
|
1741
1763
|
callback,
|
1742
1764
|
disabled,
|
1743
1765
|
className
|
1744
|
-
} =
|
1745
|
-
var Content = loading ? vue.createVNode(Loading, {
|
1746
|
-
"class": bem$1g("loading-icon")
|
1747
|
-
}, null) : [vue.createVNode("span", {
|
1748
|
-
"class": bem$1g("name")
|
1749
|
-
}, [name2]), subname && vue.createVNode("div", {
|
1750
|
-
"class": bem$1g("subname")
|
1751
|
-
}, [subname])];
|
1766
|
+
} = action;
|
1752
1767
|
var onClick = () => {
|
1753
1768
|
if (disabled || loading) {
|
1754
1769
|
return;
|
1755
1770
|
}
|
1756
1771
|
if (callback) {
|
1757
|
-
callback(
|
1772
|
+
callback(action);
|
1758
1773
|
}
|
1759
1774
|
if (props.closeOnClickAction) {
|
1760
1775
|
updateShow(false);
|
1761
1776
|
}
|
1762
|
-
vue.nextTick(() => emit("select",
|
1777
|
+
vue.nextTick(() => emit("select", action, index2));
|
1763
1778
|
};
|
1764
1779
|
return vue.createVNode("button", {
|
1765
1780
|
"type": "button",
|
@@ -1771,7 +1786,7 @@
|
|
1771
1786
|
disabled
|
1772
1787
|
}), className],
|
1773
1788
|
"onClick": onClick
|
1774
|
-
}, [
|
1789
|
+
}, [renderActionContent(action, index2)]);
|
1775
1790
|
};
|
1776
1791
|
var renderDescription = () => {
|
1777
1792
|
if (props.description || slots.description) {
|
@@ -1788,7 +1803,7 @@
|
|
1788
1803
|
}, pick(props, popupInheritKeys$2)), {
|
1789
1804
|
default: () => [renderHeader(), renderDescription(), vue.createVNode("div", {
|
1790
1805
|
"class": bem$1g("content")
|
1791
|
-
}, [props.actions.map(
|
1806
|
+
}, [props.actions.map(renderAction), slots.default == null ? void 0 : slots.default()]), renderCancel()]
|
1792
1807
|
});
|
1793
1808
|
}
|
1794
1809
|
});
|
@@ -2276,28 +2291,34 @@
|
|
2276
2291
|
option: slots.option
|
2277
2292
|
});
|
2278
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
|
+
};
|
2279
2312
|
var renderColumns = () => {
|
2280
2313
|
var wrapHeight = itemHeight.value * +props.visibleItemCount;
|
2281
|
-
var frameStyle = {
|
2282
|
-
height: itemHeight.value + "px"
|
2283
|
-
};
|
2284
2314
|
var columnsStyle = {
|
2285
2315
|
height: wrapHeight + "px"
|
2286
2316
|
};
|
2287
|
-
var maskStyle = {
|
2288
|
-
backgroundSize: "100% " + (wrapHeight - itemHeight.value) / 2 + "px"
|
2289
|
-
};
|
2290
2317
|
return vue.createVNode("div", {
|
2291
2318
|
"class": bem$1e("columns"),
|
2292
2319
|
"style": columnsStyle,
|
2293
2320
|
"onTouchmove": preventDefault
|
2294
|
-
}, [renderColumnItems(),
|
2295
|
-
"class": bem$1e("mask"),
|
2296
|
-
"style": maskStyle
|
2297
|
-
}, null), vue.createVNode("div", {
|
2298
|
-
"class": [BORDER_UNSET_TOP_BOTTOM, bem$1e("frame")],
|
2299
|
-
"style": frameStyle
|
2300
|
-
}, null)]);
|
2321
|
+
}, [renderColumnItems(), renderMask(wrapHeight)]);
|
2301
2322
|
};
|
2302
2323
|
vue.watch(() => props.columns, format2, {
|
2303
2324
|
immediate: true
|
@@ -2906,6 +2927,12 @@
|
|
2906
2927
|
type
|
2907
2928
|
};
|
2908
2929
|
}
|
2930
|
+
function getStringLength(str) {
|
2931
|
+
return [...str].length;
|
2932
|
+
}
|
2933
|
+
function cutString(str, maxlength) {
|
2934
|
+
return [...str].slice(0, maxlength).join("");
|
2935
|
+
}
|
2909
2936
|
var current = 0;
|
2910
2937
|
function useId() {
|
2911
2938
|
var vm = vue.getCurrentInstance();
|
@@ -3080,12 +3107,12 @@
|
|
3080
3107
|
var {
|
3081
3108
|
maxlength
|
3082
3109
|
} = props;
|
3083
|
-
if (isDef(maxlength) && value
|
3110
|
+
if (isDef(maxlength) && getStringLength(value) > maxlength) {
|
3084
3111
|
var modelValue = getModelValue();
|
3085
|
-
if (modelValue && modelValue
|
3112
|
+
if (modelValue && getStringLength(modelValue) === +maxlength) {
|
3086
3113
|
return modelValue;
|
3087
3114
|
}
|
3088
|
-
return value
|
3115
|
+
return cutString(value, +maxlength);
|
3089
3116
|
}
|
3090
3117
|
return value;
|
3091
3118
|
};
|
@@ -3249,7 +3276,7 @@
|
|
3249
3276
|
};
|
3250
3277
|
var renderWordLimit = () => {
|
3251
3278
|
if (props.showWordLimit && props.maxlength) {
|
3252
|
-
var count = getModelValue()
|
3279
|
+
var count = getStringLength(getModelValue());
|
3253
3280
|
return vue.createVNode("div", {
|
3254
3281
|
"class": bem$1a("word-limit")
|
3255
3282
|
}, [vue.createVNode("span", {
|
@@ -4536,11 +4563,17 @@
|
|
4536
4563
|
}
|
4537
4564
|
function useRefs() {
|
4538
4565
|
var refs = vue.ref([]);
|
4566
|
+
var cache = [];
|
4539
4567
|
vue.onBeforeUpdate(() => {
|
4540
4568
|
refs.value = [];
|
4541
4569
|
});
|
4542
|
-
var setRefs = (index2) =>
|
4543
|
-
|
4570
|
+
var setRefs = (index2) => {
|
4571
|
+
if (!cache[index2]) {
|
4572
|
+
cache[index2] = (el) => {
|
4573
|
+
refs.value[index2] = el;
|
4574
|
+
};
|
4575
|
+
}
|
4576
|
+
return cache[index2];
|
4544
4577
|
};
|
4545
4578
|
return [refs, setRefs];
|
4546
4579
|
}
|
@@ -4575,6 +4608,20 @@
|
|
4575
4608
|
return parseInt(value, 10);
|
4576
4609
|
}
|
4577
4610
|
var getMonthEndDay = (year, month) => 32 - new Date(year, month - 1, 32).getDate();
|
4611
|
+
var proxyPickerMethods = (picker, callback) => {
|
4612
|
+
var methods = ["setValues", "setIndexes", "setColumnIndex", "setColumnValue"];
|
4613
|
+
return new Proxy(picker, {
|
4614
|
+
get: (target, prop) => {
|
4615
|
+
if (methods.includes(prop)) {
|
4616
|
+
return function() {
|
4617
|
+
target[prop](...arguments);
|
4618
|
+
callback();
|
4619
|
+
};
|
4620
|
+
}
|
4621
|
+
return target[prop];
|
4622
|
+
}
|
4623
|
+
});
|
4624
|
+
};
|
4578
4625
|
var useHeight = (element) => {
|
4579
4626
|
var height2 = vue.ref();
|
4580
4627
|
vue.onMounted(() => vue.nextTick(() => {
|
@@ -5774,16 +5821,19 @@
|
|
5774
5821
|
color: String,
|
5775
5822
|
title: String,
|
5776
5823
|
badge: numericProp,
|
5824
|
+
shrink: Boolean,
|
5777
5825
|
isActive: Boolean,
|
5778
5826
|
disabled: Boolean,
|
5779
5827
|
controls: String,
|
5780
5828
|
scrollable: Boolean,
|
5781
5829
|
activeColor: String,
|
5782
|
-
renderTitle: Function,
|
5783
5830
|
inactiveColor: String,
|
5784
5831
|
showZeroBadge: truthProp
|
5785
5832
|
},
|
5786
|
-
setup(props) {
|
5833
|
+
setup(props, _ref) {
|
5834
|
+
var {
|
5835
|
+
slots
|
5836
|
+
} = _ref;
|
5787
5837
|
var style = vue.computed(() => {
|
5788
5838
|
var style2 = {};
|
5789
5839
|
var {
|
@@ -5816,7 +5866,7 @@
|
|
5816
5866
|
"class": bem$Y("text", {
|
5817
5867
|
ellipsis: !props.scrollable
|
5818
5868
|
})
|
5819
|
-
}, [
|
5869
|
+
}, [slots.title ? slots.title() : props.title]);
|
5820
5870
|
if (props.dot || isDef(props.badge) && props.badge !== "") {
|
5821
5871
|
return vue.createVNode(Badge, {
|
5822
5872
|
"dot": props.dot,
|
@@ -5831,10 +5881,12 @@
|
|
5831
5881
|
return () => vue.createVNode("div", {
|
5832
5882
|
"id": props.id,
|
5833
5883
|
"role": "tab",
|
5834
|
-
"class": [bem$Y({
|
5884
|
+
"class": [bem$Y([props.type, {
|
5885
|
+
grow: props.scrollable && !props.shrink,
|
5886
|
+
shrink: props.shrink,
|
5835
5887
|
active: props.isActive,
|
5836
5888
|
disabled: props.disabled
|
5837
|
-
})],
|
5889
|
+
}])],
|
5838
5890
|
"style": style.value,
|
5839
5891
|
"tabindex": props.disabled ? void 0 : props.isActive ? 0 : -1,
|
5840
5892
|
"aria-selected": props.isActive,
|
@@ -6020,26 +6072,33 @@
|
|
6020
6072
|
if (!root.value) {
|
6021
6073
|
return;
|
6022
6074
|
}
|
6023
|
-
|
6024
|
-
|
6025
|
-
|
6026
|
-
|
6027
|
-
|
6028
|
-
|
6029
|
-
|
6030
|
-
|
6031
|
-
|
6032
|
-
|
6033
|
-
|
6034
|
-
|
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();
|
6035
6101
|
}
|
6036
|
-
state.active = active;
|
6037
|
-
state.swiping = true;
|
6038
|
-
state.offset = getTargetOffset(active);
|
6039
|
-
children.forEach((swipe) => {
|
6040
|
-
swipe.setOffset(0);
|
6041
|
-
});
|
6042
|
-
autoplay();
|
6043
6102
|
};
|
6044
6103
|
var resize = () => initialize(state.active);
|
6045
6104
|
var touchStartTime;
|
@@ -6054,11 +6113,8 @@
|
|
6054
6113
|
var onTouchMove = (event) => {
|
6055
6114
|
if (props.touchable && state.swiping) {
|
6056
6115
|
touch.move(event);
|
6057
|
-
var shouldPrevent = isCorrectDirection.value || touch.offsetY.value > touch.offsetX.value === props.vertical;
|
6058
|
-
if (shouldPrevent) {
|
6059
|
-
preventDefault(event, props.stopPropagation);
|
6060
|
-
}
|
6061
6116
|
if (isCorrectDirection.value) {
|
6117
|
+
preventDefault(event, props.stopPropagation);
|
6062
6118
|
move({
|
6063
6119
|
offset: delta.value
|
6064
6120
|
});
|
@@ -6133,7 +6189,8 @@
|
|
6133
6189
|
var renderIndicator = () => {
|
6134
6190
|
if (slots.indicator) {
|
6135
6191
|
return slots.indicator({
|
6136
|
-
active: activeIndicator.value
|
6192
|
+
active: activeIndicator.value,
|
6193
|
+
total: count.value
|
6137
6194
|
});
|
6138
6195
|
}
|
6139
6196
|
if (props.showIndicators && count.value > 1) {
|
@@ -6252,6 +6309,7 @@
|
|
6252
6309
|
color: String,
|
6253
6310
|
border: Boolean,
|
6254
6311
|
sticky: Boolean,
|
6312
|
+
shrink: Boolean,
|
6255
6313
|
active: makeNumericProp(0),
|
6256
6314
|
duration: makeNumericProp(0.3),
|
6257
6315
|
animated: Boolean,
|
@@ -6297,7 +6355,7 @@
|
|
6297
6355
|
lineStyle: {},
|
6298
6356
|
currentIndex: -1
|
6299
6357
|
});
|
6300
|
-
var scrollable = vue.computed(() => children.length > props.swipeThreshold || !props.ellipsis);
|
6358
|
+
var scrollable = vue.computed(() => children.length > props.swipeThreshold || !props.ellipsis || props.shrink);
|
6301
6359
|
var navStyle = vue.computed(() => ({
|
6302
6360
|
borderColor: props.color,
|
6303
6361
|
background: props.background
|
@@ -6463,14 +6521,24 @@
|
|
6463
6521
|
"color": props.color,
|
6464
6522
|
"style": item.titleStyle,
|
6465
6523
|
"class": item.titleClass,
|
6524
|
+
"shrink": props.shrink,
|
6466
6525
|
"isActive": index2 === state.currentIndex,
|
6467
6526
|
"controls": item.id,
|
6468
6527
|
"scrollable": scrollable.value,
|
6469
|
-
"renderTitle": item.$slots.title,
|
6470
6528
|
"activeColor": props.titleActiveColor,
|
6471
6529
|
"inactiveColor": props.titleInactiveColor,
|
6472
6530
|
"onClick": (event) => onClickTab(item, index2, event)
|
6473
|
-
}, 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
|
+
};
|
6474
6542
|
var renderHeader = () => {
|
6475
6543
|
var _slots$navLeft, _slots$navRight;
|
6476
6544
|
var {
|
@@ -6479,23 +6547,19 @@
|
|
6479
6547
|
} = props;
|
6480
6548
|
return vue.createVNode("div", {
|
6481
6549
|
"ref": wrapRef,
|
6482
|
-
"class": [bem$V("wrap", {
|
6483
|
-
scrollable: scrollable.value
|
6484
|
-
}), {
|
6550
|
+
"class": [bem$V("wrap"), {
|
6485
6551
|
[BORDER_TOP_BOTTOM]: type === "line" && border
|
6486
6552
|
}]
|
6487
6553
|
}, [vue.createVNode("div", {
|
6488
6554
|
"ref": navRef,
|
6489
6555
|
"role": "tablist",
|
6490
6556
|
"class": bem$V("nav", [type, {
|
6557
|
+
shrink: props.shrink,
|
6491
6558
|
complete: scrollable.value
|
6492
6559
|
}]),
|
6493
6560
|
"style": navStyle.value,
|
6494
6561
|
"aria-orientation": "horizontal"
|
6495
|
-
}, [(_slots$navLeft = slots["nav-left"]) == null ? void 0 : _slots$navLeft.call(slots), renderNav(),
|
6496
|
-
"class": bem$V("line"),
|
6497
|
-
"style": state.lineStyle
|
6498
|
-
}, 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)])]);
|
6499
6563
|
};
|
6500
6564
|
vue.watch([() => props.color, windowWidth], setLine);
|
6501
6565
|
vue.watch(() => props.active, (value) => {
|
@@ -6930,10 +6994,10 @@
|
|
6930
6994
|
var renderTabs = () => vue.createVNode(Tabs, {
|
6931
6995
|
"active": activeTab.value,
|
6932
6996
|
"onUpdate:active": ($event) => activeTab.value = $event,
|
6997
|
+
"shrink": true,
|
6933
6998
|
"animated": true,
|
6934
6999
|
"class": bem$S("tabs"),
|
6935
7000
|
"color": props.activeColor,
|
6936
|
-
"swipeThreshold": 0,
|
6937
7001
|
"swipeable": props.swipeable,
|
6938
7002
|
"onClick-tab": onClickTab
|
6939
7003
|
}, {
|
@@ -7139,7 +7203,7 @@
|
|
7139
7203
|
var CheckboxGroup = withInstall(_CheckboxGroup);
|
7140
7204
|
var [name$P, bem$O] = createNamespace("circle");
|
7141
7205
|
var uid = 0;
|
7142
|
-
var format = (rate) => Math.min(Math.max(+rate, 0), 100);
|
7206
|
+
var format$1 = (rate) => Math.min(Math.max(+rate, 0), 100);
|
7143
7207
|
function getPath(clockwise, viewBoxSize) {
|
7144
7208
|
var sweepFlag = clockwise ? 1 : 0;
|
7145
7209
|
return "M " + viewBoxSize / 2 + " " + viewBoxSize / 2 + " m 0, -500 a 500, 500 0 1, " + sweepFlag + " 0, 1000 a 500, 500 0 1, " + sweepFlag + " 0, -1000";
|
@@ -7188,13 +7252,13 @@
|
|
7188
7252
|
var rafId;
|
7189
7253
|
var startTime = Date.now();
|
7190
7254
|
var startRate = props.currentRate;
|
7191
|
-
var endRate = format(rate);
|
7255
|
+
var endRate = format$1(rate);
|
7192
7256
|
var duration = Math.abs((startRate - endRate) * 1e3 / +props.speed);
|
7193
7257
|
var animate = () => {
|
7194
7258
|
var now = Date.now();
|
7195
7259
|
var progress = Math.min((now - startTime) / duration, 1);
|
7196
7260
|
var rate2 = progress * (endRate - startRate) + startRate;
|
7197
|
-
emit("update:currentRate", format(parseFloat(rate2.toFixed(1))));
|
7261
|
+
emit("update:currentRate", format$1(parseFloat(rate2.toFixed(1))));
|
7198
7262
|
if (endRate > startRate ? rate2 < endRate : rate2 > endRate) {
|
7199
7263
|
rafId = raf(animate);
|
7200
7264
|
}
|
@@ -8309,7 +8373,7 @@
|
|
8309
8373
|
}
|
8310
8374
|
});
|
8311
8375
|
useExpose({
|
8312
|
-
getPicker: () => picker.value
|
8376
|
+
getPicker: () => picker.value && proxyPickerMethods(picker.value, updateInnerValue)
|
8313
8377
|
});
|
8314
8378
|
return () => vue.createVNode(Picker, vue.mergeProps({
|
8315
8379
|
"ref": picker,
|
@@ -8552,7 +8616,7 @@
|
|
8552
8616
|
}
|
8553
8617
|
});
|
8554
8618
|
useExpose({
|
8555
|
-
getPicker: () => picker.value
|
8619
|
+
getPicker: () => picker.value && proxyPickerMethods(picker.value, updateInnerValue)
|
8556
8620
|
});
|
8557
8621
|
return () => vue.createVNode(Picker, vue.mergeProps({
|
8558
8622
|
"ref": picker,
|
@@ -9361,7 +9425,8 @@
|
|
9361
9425
|
icon: String,
|
9362
9426
|
badge: numericProp,
|
9363
9427
|
iconColor: String,
|
9364
|
-
iconPrefix: String
|
9428
|
+
iconPrefix: String,
|
9429
|
+
badgeProps: Object
|
9365
9430
|
});
|
9366
9431
|
var _GridItem = vue.defineComponent({
|
9367
9432
|
name: name$u,
|
@@ -9415,10 +9480,10 @@
|
|
9415
9480
|
});
|
9416
9481
|
var renderIcon = () => {
|
9417
9482
|
if (slots.icon) {
|
9418
|
-
return vue.createVNode(Badge, {
|
9483
|
+
return vue.createVNode(Badge, vue.mergeProps({
|
9419
9484
|
"dot": props.dot,
|
9420
9485
|
"content": props.badge
|
9421
|
-
}, {
|
9486
|
+
}, props.badgeProps), {
|
9422
9487
|
default: slots.icon
|
9423
9488
|
});
|
9424
9489
|
}
|
@@ -9429,8 +9494,9 @@
|
|
9429
9494
|
"size": parent.props.iconSize,
|
9430
9495
|
"badge": props.badge,
|
9431
9496
|
"class": bem$v("icon"),
|
9432
|
-
"
|
9433
|
-
"
|
9497
|
+
"color": props.iconColor,
|
9498
|
+
"badgeProps": props.badgeProps,
|
9499
|
+
"classPrefix": props.iconPrefix
|
9434
9500
|
}, null);
|
9435
9501
|
}
|
9436
9502
|
};
|
@@ -9731,6 +9797,7 @@
|
|
9731
9797
|
closeIcon: makeStringProp("clear"),
|
9732
9798
|
transition: String,
|
9733
9799
|
beforeClose: Function,
|
9800
|
+
overlayClass: unknownProp,
|
9734
9801
|
overlayStyle: Object,
|
9735
9802
|
swipeDuration: makeNumericProp(300),
|
9736
9803
|
startPosition: makeNumericProp(0),
|
@@ -9857,7 +9924,7 @@
|
|
9857
9924
|
});
|
9858
9925
|
return () => vue.createVNode(Popup, vue.mergeProps({
|
9859
9926
|
"class": [bem$t(), props.className],
|
9860
|
-
"overlayClass": bem$t("overlay"),
|
9927
|
+
"overlayClass": [bem$t("overlay"), props.overlayClass],
|
9861
9928
|
"onClosed": onClosed,
|
9862
9929
|
"onUpdate:show": updateShow
|
9863
9930
|
}, pick(props, popupProps$1)), {
|
@@ -9882,6 +9949,7 @@
|
|
9882
9949
|
transition: void 0,
|
9883
9950
|
beforeClose: void 0,
|
9884
9951
|
overlayStyle: void 0,
|
9952
|
+
overlayClass: void 0,
|
9885
9953
|
startPosition: 0,
|
9886
9954
|
swipeDuration: 300,
|
9887
9955
|
showIndicators: false,
|
@@ -11497,6 +11565,7 @@
|
|
11497
11565
|
type: makeStringProp("danger"),
|
11498
11566
|
color: String,
|
11499
11567
|
message: numericProp,
|
11568
|
+
position: makeStringProp("top"),
|
11500
11569
|
className: unknownProp,
|
11501
11570
|
background: String,
|
11502
11571
|
lockScroll: Boolean
|
@@ -11519,7 +11588,7 @@
|
|
11519
11588
|
background: props.background
|
11520
11589
|
},
|
11521
11590
|
"overlay": false,
|
11522
|
-
"position":
|
11591
|
+
"position": props.position,
|
11523
11592
|
"duration": 0.2,
|
11524
11593
|
"lockScroll": props.lockScroll,
|
11525
11594
|
"onUpdate:show": updateShow
|
@@ -11571,6 +11640,7 @@
|
|
11571
11640
|
onClick: void 0,
|
11572
11641
|
onOpened: void 0,
|
11573
11642
|
duration: 3e3,
|
11643
|
+
position: void 0,
|
11574
11644
|
className: "",
|
11575
11645
|
lockScroll: false,
|
11576
11646
|
background: void 0
|
@@ -11992,7 +12062,7 @@
|
|
11992
12062
|
}, [vue.createVNode("button", {
|
11993
12063
|
"type": "button",
|
11994
12064
|
"disabled": disabled,
|
11995
|
-
"onClick": () => updateModelValue(modelValue - 1)
|
12065
|
+
"onClick": () => updateModelValue(modelValue - 1, true)
|
11996
12066
|
}, [slot ? slot() : props.prevText || t$5("prev")])]);
|
11997
12067
|
};
|
11998
12068
|
var renderNextButton = () => {
|
@@ -12011,7 +12081,7 @@
|
|
12011
12081
|
}, [vue.createVNode("button", {
|
12012
12082
|
"type": "button",
|
12013
12083
|
"disabled": disabled,
|
12014
|
-
"onClick": () => updateModelValue(modelValue + 1)
|
12084
|
+
"onClick": () => updateModelValue(modelValue + 1, true)
|
12015
12085
|
}, [slot ? slot() : props.nextText || t$5("next")])]);
|
12016
12086
|
};
|
12017
12087
|
var renderPages = () => pages.value.map((page) => vue.createVNode("li", {
|
@@ -12022,7 +12092,7 @@
|
|
12022
12092
|
}, [vue.createVNode("button", {
|
12023
12093
|
"type": "button",
|
12024
12094
|
"aria-current": page.active || void 0,
|
12025
|
-
"onClick": () => updateModelValue(page.number)
|
12095
|
+
"onClick": () => updateModelValue(page.number, true)
|
12026
12096
|
}, [slots.page ? slots.page(page) : page.text])]));
|
12027
12097
|
return () => vue.createVNode("nav", {
|
12028
12098
|
"role": "navigation",
|
@@ -12366,20 +12436,100 @@
|
|
12366
12436
|
}));
|
12367
12437
|
}, []);
|
12368
12438
|
}
|
12369
|
-
function debounce(
|
12439
|
+
function debounce(fn2) {
|
12370
12440
|
var pending;
|
12371
12441
|
return function() {
|
12372
12442
|
if (!pending) {
|
12373
12443
|
pending = new Promise(function(resolve) {
|
12374
12444
|
Promise.resolve().then(function() {
|
12375
12445
|
pending = void 0;
|
12376
|
-
resolve(
|
12446
|
+
resolve(fn2());
|
12377
12447
|
});
|
12378
12448
|
});
|
12379
12449
|
}
|
12380
12450
|
return pending;
|
12381
12451
|
};
|
12382
12452
|
}
|
12453
|
+
function format(str) {
|
12454
|
+
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
12455
|
+
args[_key - 1] = arguments[_key];
|
12456
|
+
}
|
12457
|
+
return [].concat(args).reduce(function(p, c) {
|
12458
|
+
return p.replace(/%s/, c);
|
12459
|
+
}, str);
|
12460
|
+
}
|
12461
|
+
var INVALID_MODIFIER_ERROR = 'Popper: modifier "%s" provided an invalid %s property, expected %s but got %s';
|
12462
|
+
var MISSING_DEPENDENCY_ERROR = 'Popper: modifier "%s" requires "%s", but "%s" modifier is not available';
|
12463
|
+
var VALID_PROPERTIES = ["name", "enabled", "phase", "fn", "effect", "requires", "options"];
|
12464
|
+
function validateModifiers(modifiers) {
|
12465
|
+
modifiers.forEach(function(modifier) {
|
12466
|
+
[].concat(Object.keys(modifier), VALID_PROPERTIES).filter(function(value, index2, self2) {
|
12467
|
+
return self2.indexOf(value) === index2;
|
12468
|
+
}).forEach(function(key) {
|
12469
|
+
switch (key) {
|
12470
|
+
case "name":
|
12471
|
+
if (typeof modifier.name !== "string") {
|
12472
|
+
console.error(format(INVALID_MODIFIER_ERROR, String(modifier.name), '"name"', '"string"', '"' + String(modifier.name) + '"'));
|
12473
|
+
}
|
12474
|
+
break;
|
12475
|
+
case "enabled":
|
12476
|
+
if (typeof modifier.enabled !== "boolean") {
|
12477
|
+
console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"enabled"', '"boolean"', '"' + String(modifier.enabled) + '"'));
|
12478
|
+
}
|
12479
|
+
break;
|
12480
|
+
case "phase":
|
12481
|
+
if (modifierPhases.indexOf(modifier.phase) < 0) {
|
12482
|
+
console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"phase"', "either " + modifierPhases.join(", "), '"' + String(modifier.phase) + '"'));
|
12483
|
+
}
|
12484
|
+
break;
|
12485
|
+
case "fn":
|
12486
|
+
if (typeof modifier.fn !== "function") {
|
12487
|
+
console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"fn"', '"function"', '"' + String(modifier.fn) + '"'));
|
12488
|
+
}
|
12489
|
+
break;
|
12490
|
+
case "effect":
|
12491
|
+
if (modifier.effect != null && typeof modifier.effect !== "function") {
|
12492
|
+
console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"effect"', '"function"', '"' + String(modifier.fn) + '"'));
|
12493
|
+
}
|
12494
|
+
break;
|
12495
|
+
case "requires":
|
12496
|
+
if (modifier.requires != null && !Array.isArray(modifier.requires)) {
|
12497
|
+
console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"requires"', '"array"', '"' + String(modifier.requires) + '"'));
|
12498
|
+
}
|
12499
|
+
break;
|
12500
|
+
case "requiresIfExists":
|
12501
|
+
if (!Array.isArray(modifier.requiresIfExists)) {
|
12502
|
+
console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"requiresIfExists"', '"array"', '"' + String(modifier.requiresIfExists) + '"'));
|
12503
|
+
}
|
12504
|
+
break;
|
12505
|
+
case "options":
|
12506
|
+
case "data":
|
12507
|
+
break;
|
12508
|
+
default:
|
12509
|
+
console.error('PopperJS: an invalid property has been provided to the "' + modifier.name + '" modifier, valid properties are ' + VALID_PROPERTIES.map(function(s) {
|
12510
|
+
return '"' + s + '"';
|
12511
|
+
}).join(", ") + '; but "' + key + '" was provided.');
|
12512
|
+
}
|
12513
|
+
modifier.requires && modifier.requires.forEach(function(requirement) {
|
12514
|
+
if (modifiers.find(function(mod) {
|
12515
|
+
return mod.name === requirement;
|
12516
|
+
}) == null) {
|
12517
|
+
console.error(format(MISSING_DEPENDENCY_ERROR, String(modifier.name), requirement, requirement));
|
12518
|
+
}
|
12519
|
+
});
|
12520
|
+
});
|
12521
|
+
});
|
12522
|
+
}
|
12523
|
+
function uniqueBy(arr, fn2) {
|
12524
|
+
var identifiers = new Set();
|
12525
|
+
return arr.filter(function(item) {
|
12526
|
+
var identifier = fn2(item);
|
12527
|
+
if (!identifiers.has(identifier)) {
|
12528
|
+
identifiers.add(identifier);
|
12529
|
+
return true;
|
12530
|
+
}
|
12531
|
+
});
|
12532
|
+
}
|
12383
12533
|
function getBasePlacement(placement) {
|
12384
12534
|
return placement.split("-")[0];
|
12385
12535
|
}
|
@@ -12455,6 +12605,8 @@
|
|
12455
12605
|
}
|
12456
12606
|
return offsets;
|
12457
12607
|
}
|
12608
|
+
var INVALID_ELEMENT_ERROR = "Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.";
|
12609
|
+
var INFINITE_LOOP_ERROR = "Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.";
|
12458
12610
|
var DEFAULT_OPTIONS = {
|
12459
12611
|
placement: "bottom",
|
12460
12612
|
modifiers: [],
|
@@ -12505,6 +12657,28 @@
|
|
12505
12657
|
state.orderedModifiers = orderedModifiers.filter(function(m) {
|
12506
12658
|
return m.enabled;
|
12507
12659
|
});
|
12660
|
+
{
|
12661
|
+
var modifiers = uniqueBy([].concat(orderedModifiers, state.options.modifiers), function(_ref) {
|
12662
|
+
var name2 = _ref.name;
|
12663
|
+
return name2;
|
12664
|
+
});
|
12665
|
+
validateModifiers(modifiers);
|
12666
|
+
if (getBasePlacement(state.options.placement) === auto) {
|
12667
|
+
var flipModifier = state.orderedModifiers.find(function(_ref2) {
|
12668
|
+
var name2 = _ref2.name;
|
12669
|
+
return name2 === "flip";
|
12670
|
+
});
|
12671
|
+
if (!flipModifier) {
|
12672
|
+
console.error(['Popper: "auto" placements require the "flip" modifier be', "present and enabled to work."].join(" "));
|
12673
|
+
}
|
12674
|
+
}
|
12675
|
+
var _getComputedStyle = getComputedStyle(popper), marginTop = _getComputedStyle.marginTop, marginRight = _getComputedStyle.marginRight, marginBottom = _getComputedStyle.marginBottom, marginLeft = _getComputedStyle.marginLeft;
|
12676
|
+
if ([marginTop, marginRight, marginBottom, marginLeft].some(function(margin) {
|
12677
|
+
return parseFloat(margin);
|
12678
|
+
})) {
|
12679
|
+
console.warn(['Popper: CSS "margin" styles cannot be used to apply padding', "between the popper and its reference element or boundary.", "To replicate margin, use the `offset` modifier, as well as", "the `padding` option in the `preventOverflow` and `flip`", "modifiers."].join(" "));
|
12680
|
+
}
|
12681
|
+
}
|
12508
12682
|
runModifierEffects();
|
12509
12683
|
return instance2.update();
|
12510
12684
|
},
|
@@ -12514,6 +12688,9 @@
|
|
12514
12688
|
}
|
12515
12689
|
var _state$elements = state.elements, reference2 = _state$elements.reference, popper2 = _state$elements.popper;
|
12516
12690
|
if (!areValidElements(reference2, popper2)) {
|
12691
|
+
{
|
12692
|
+
console.error(INVALID_ELEMENT_ERROR);
|
12693
|
+
}
|
12517
12694
|
return;
|
12518
12695
|
}
|
12519
12696
|
state.rects = {
|
@@ -12525,15 +12702,23 @@
|
|
12525
12702
|
state.orderedModifiers.forEach(function(modifier) {
|
12526
12703
|
return state.modifiersData[modifier.name] = Object.assign({}, modifier.data);
|
12527
12704
|
});
|
12705
|
+
var __debug_loops__ = 0;
|
12528
12706
|
for (var index2 = 0; index2 < state.orderedModifiers.length; index2++) {
|
12707
|
+
{
|
12708
|
+
__debug_loops__ += 1;
|
12709
|
+
if (__debug_loops__ > 100) {
|
12710
|
+
console.error(INFINITE_LOOP_ERROR);
|
12711
|
+
break;
|
12712
|
+
}
|
12713
|
+
}
|
12529
12714
|
if (state.reset === true) {
|
12530
12715
|
state.reset = false;
|
12531
12716
|
index2 = -1;
|
12532
12717
|
continue;
|
12533
12718
|
}
|
12534
|
-
var _state$orderedModifie = state.orderedModifiers[index2],
|
12535
|
-
if (typeof
|
12536
|
-
state =
|
12719
|
+
var _state$orderedModifie = state.orderedModifiers[index2], fn2 = _state$orderedModifie.fn, _state$orderedModifie2 = _state$orderedModifie.options, _options = _state$orderedModifie2 === void 0 ? {} : _state$orderedModifie2, name2 = _state$orderedModifie.name;
|
12720
|
+
if (typeof fn2 === "function") {
|
12721
|
+
state = fn2({
|
12537
12722
|
state,
|
12538
12723
|
options: _options,
|
12539
12724
|
name: name2,
|
@@ -12554,6 +12739,9 @@
|
|
12554
12739
|
}
|
12555
12740
|
};
|
12556
12741
|
if (!areValidElements(reference, popper)) {
|
12742
|
+
{
|
12743
|
+
console.error(INVALID_ELEMENT_ERROR);
|
12744
|
+
}
|
12557
12745
|
return instance2;
|
12558
12746
|
}
|
12559
12747
|
instance2.setOptions(options).then(function(state2) {
|
@@ -12563,9 +12751,9 @@
|
|
12563
12751
|
});
|
12564
12752
|
function runModifierEffects() {
|
12565
12753
|
state.orderedModifiers.forEach(function(_ref3) {
|
12566
|
-
var name2 = _ref3.name, _ref3$options = _ref3.options, options2 = _ref3$options === void 0 ? {} : _ref3$options,
|
12567
|
-
if (typeof
|
12568
|
-
var cleanupFn =
|
12754
|
+
var name2 = _ref3.name, _ref3$options = _ref3.options, options2 = _ref3$options === void 0 ? {} : _ref3$options, effect3 = _ref3.effect;
|
12755
|
+
if (typeof effect3 === "function") {
|
12756
|
+
var cleanupFn = effect3({
|
12569
12757
|
state,
|
12570
12758
|
name: name2,
|
12571
12759
|
instance: instance2,
|
@@ -12578,8 +12766,8 @@
|
|
12578
12766
|
});
|
12579
12767
|
}
|
12580
12768
|
function cleanupModifierEffects() {
|
12581
|
-
effectCleanupFns.forEach(function(
|
12582
|
-
return
|
12769
|
+
effectCleanupFns.forEach(function(fn2) {
|
12770
|
+
return fn2();
|
12583
12771
|
});
|
12584
12772
|
effectCleanupFns = [];
|
12585
12773
|
}
|
@@ -12589,7 +12777,7 @@
|
|
12589
12777
|
var passive = {
|
12590
12778
|
passive: true
|
12591
12779
|
};
|
12592
|
-
function effect
|
12780
|
+
function effect(_ref) {
|
12593
12781
|
var state = _ref.state, instance2 = _ref.instance, options = _ref.options;
|
12594
12782
|
var _options$scroll = options.scroll, scroll = _options$scroll === void 0 ? true : _options$scroll, _options$resize = options.resize, resize = _options$resize === void 0 ? true : _options$resize;
|
12595
12783
|
var window2 = getWindow(state.elements.popper);
|
@@ -12613,13 +12801,13 @@
|
|
12613
12801
|
}
|
12614
12802
|
};
|
12615
12803
|
}
|
12616
|
-
var
|
12804
|
+
var eventListeners_default = {
|
12617
12805
|
name: "eventListeners",
|
12618
12806
|
enabled: true,
|
12619
12807
|
phase: "write",
|
12620
12808
|
fn: function fn() {
|
12621
12809
|
},
|
12622
|
-
effect
|
12810
|
+
effect,
|
12623
12811
|
data: {}
|
12624
12812
|
};
|
12625
12813
|
function popperOffsets(_ref) {
|
@@ -12631,7 +12819,7 @@
|
|
12631
12819
|
placement: state.placement
|
12632
12820
|
});
|
12633
12821
|
}
|
12634
|
-
var
|
12822
|
+
var popperOffsets_default = {
|
12635
12823
|
name: "popperOffsets",
|
12636
12824
|
enabled: true,
|
12637
12825
|
phase: "read",
|
@@ -12697,6 +12885,14 @@
|
|
12697
12885
|
function computeStyles(_ref4) {
|
12698
12886
|
var state = _ref4.state, options = _ref4.options;
|
12699
12887
|
var _options$gpuAccelerat = options.gpuAcceleration, gpuAcceleration = _options$gpuAccelerat === void 0 ? true : _options$gpuAccelerat, _options$adaptive = options.adaptive, adaptive = _options$adaptive === void 0 ? true : _options$adaptive, _options$roundOffsets = options.roundOffsets, roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;
|
12888
|
+
{
|
12889
|
+
var transitionProperty = getComputedStyle(state.elements.popper).transitionProperty || "";
|
12890
|
+
if (adaptive && ["transform", "top", "right", "bottom", "left"].some(function(property) {
|
12891
|
+
return transitionProperty.indexOf(property) >= 0;
|
12892
|
+
})) {
|
12893
|
+
console.warn(["Popper: Detected CSS transitions on at least one of the following", 'CSS properties: "transform", "top", "right", "bottom", "left".', "\n\n", 'Disable the "computeStyles" modifier\'s `adaptive` option to allow', "for smooth transitions, or remove these properties from the CSS", "transition declaration on the popper element if only transitioning", "opacity or background-color for example.", "\n\n", "We recommend using the popper element as a wrapper around an inner", "element that can have any CSS property transitioned for animations."].join(" "));
|
12894
|
+
}
|
12895
|
+
}
|
12700
12896
|
var commonStyles = {
|
12701
12897
|
placement: getBasePlacement(state.placement),
|
12702
12898
|
variation: getVariation(state.placement),
|
@@ -12724,7 +12920,7 @@
|
|
12724
12920
|
"data-popper-placement": state.placement
|
12725
12921
|
});
|
12726
12922
|
}
|
12727
|
-
var
|
12923
|
+
var computeStyles_default = {
|
12728
12924
|
name: "computeStyles",
|
12729
12925
|
enabled: true,
|
12730
12926
|
phase: "beforeWrite",
|
@@ -12741,17 +12937,17 @@
|
|
12741
12937
|
return;
|
12742
12938
|
}
|
12743
12939
|
Object.assign(element.style, style);
|
12744
|
-
Object.keys(attributes).forEach(function(
|
12745
|
-
var value = attributes[
|
12940
|
+
Object.keys(attributes).forEach(function(name22) {
|
12941
|
+
var value = attributes[name22];
|
12746
12942
|
if (value === false) {
|
12747
|
-
element.removeAttribute(
|
12943
|
+
element.removeAttribute(name22);
|
12748
12944
|
} else {
|
12749
|
-
element.setAttribute(
|
12945
|
+
element.setAttribute(name22, value === true ? "" : value);
|
12750
12946
|
}
|
12751
12947
|
});
|
12752
12948
|
});
|
12753
12949
|
}
|
12754
|
-
function
|
12950
|
+
function effect2(_ref2) {
|
12755
12951
|
var state = _ref2.state;
|
12756
12952
|
var initialStyles = {
|
12757
12953
|
popper: {
|
@@ -12789,15 +12985,15 @@
|
|
12789
12985
|
});
|
12790
12986
|
};
|
12791
12987
|
}
|
12792
|
-
var
|
12988
|
+
var applyStyles_default = {
|
12793
12989
|
name: "applyStyles",
|
12794
12990
|
enabled: true,
|
12795
12991
|
phase: "write",
|
12796
12992
|
fn: applyStyles,
|
12797
|
-
effect,
|
12993
|
+
effect: effect2,
|
12798
12994
|
requires: ["computeStyles"]
|
12799
12995
|
};
|
12800
|
-
var defaultModifiers = [
|
12996
|
+
var defaultModifiers = [eventListeners_default, popperOffsets_default, computeStyles_default, applyStyles_default];
|
12801
12997
|
var createPopper = /* @__PURE__ */ popperGenerator({
|
12802
12998
|
defaultModifiers
|
12803
12999
|
});
|
@@ -12831,7 +13027,7 @@
|
|
12831
13027
|
}
|
12832
13028
|
state.modifiersData[name2] = data;
|
12833
13029
|
}
|
12834
|
-
var
|
13030
|
+
var offset_default = {
|
12835
13031
|
name: "offset",
|
12836
13032
|
enabled: true,
|
12837
13033
|
phase: "main",
|
@@ -12887,7 +13083,7 @@
|
|
12887
13083
|
adaptive: false,
|
12888
13084
|
gpuAcceleration: false
|
12889
13085
|
}
|
12890
|
-
}, extend({},
|
13086
|
+
}, extend({}, offset_default, {
|
12891
13087
|
options: {
|
12892
13088
|
offset: props.offset
|
12893
13089
|
}
|
@@ -12934,10 +13130,24 @@
|
|
12934
13130
|
updateShow(false);
|
12935
13131
|
}
|
12936
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
|
+
};
|
12937
13148
|
var renderAction = (action, index2) => {
|
12938
13149
|
var {
|
12939
13150
|
icon,
|
12940
|
-
text,
|
12941
13151
|
color,
|
12942
13152
|
disabled,
|
12943
13153
|
className
|
@@ -12954,13 +13164,7 @@
|
|
12954
13164
|
"tabindex": disabled ? void 0 : 0,
|
12955
13165
|
"aria-disabled": disabled || void 0,
|
12956
13166
|
"onClick": () => onClickAction(action, index2)
|
12957
|
-
}, [
|
12958
|
-
"name": icon,
|
12959
|
-
"classPrefix": props.iconPrefix,
|
12960
|
-
"class": bem$i("action-icon")
|
12961
|
-
}, null), vue.createVNode("div", {
|
12962
|
-
"class": [bem$i("action-text"), BORDER_BOTTOM]
|
12963
|
-
}, [text])]);
|
13167
|
+
}, [renderActionContent(action, index2)]);
|
12964
13168
|
};
|
12965
13169
|
vue.onMounted(updateLocation);
|
12966
13170
|
vue.onBeforeUnmount(() => {
|
@@ -13445,7 +13649,7 @@
|
|
13445
13649
|
var _Search = vue.defineComponent({
|
13446
13650
|
name: name$e,
|
13447
13651
|
props: searchProps,
|
13448
|
-
emits: ["search", "cancel", "update:modelValue"],
|
13652
|
+
emits: ["blur", "focus", "clear", "search", "cancel", "click-input", "click-left-icon", "click-right-icon", "update:modelValue"],
|
13449
13653
|
setup(props, _ref) {
|
13450
13654
|
var {
|
13451
13655
|
emit,
|
@@ -13495,6 +13699,12 @@
|
|
13495
13699
|
var _filedRef$value2;
|
13496
13700
|
return (_filedRef$value2 = filedRef.value) == null ? void 0 : _filedRef$value2.focus();
|
13497
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);
|
13498
13708
|
var fieldPropNames = Object.keys(fieldSharedProps);
|
13499
13709
|
var renderField = () => {
|
13500
13710
|
var fieldAttrs = extend({}, attrs, pick(props, fieldPropNames), {
|
@@ -13506,7 +13716,13 @@
|
|
13506
13716
|
"type": "search",
|
13507
13717
|
"class": bem$e("field"),
|
13508
13718
|
"border": false,
|
13719
|
+
"onBlur": onBlur,
|
13720
|
+
"onFocus": onFocus,
|
13721
|
+
"onClear": onClear,
|
13509
13722
|
"onKeypress": onKeypress,
|
13723
|
+
"onClick-input": onClickInput,
|
13724
|
+
"onClick-left-icon": onClickLeftIcon,
|
13725
|
+
"onClick-right-icon": onClickRightIcon,
|
13510
13726
|
"onUpdate:modelValue": onInput
|
13511
13727
|
}, fieldAttrs), pick(slots, ["left-icon", "right-icon"]));
|
13512
13728
|
};
|
@@ -13669,7 +13885,8 @@
|
|
13669
13885
|
dot: Boolean,
|
13670
13886
|
title: String,
|
13671
13887
|
badge: numericProp,
|
13672
|
-
disabled: Boolean
|
13888
|
+
disabled: Boolean,
|
13889
|
+
badgeProps: Object
|
13673
13890
|
});
|
13674
13891
|
var _SidebarItem = vue.defineComponent({
|
13675
13892
|
name: name$b,
|
@@ -13713,11 +13930,11 @@
|
|
13713
13930
|
"tabindex": disabled ? void 0 : 0,
|
13714
13931
|
"aria-selected": selected,
|
13715
13932
|
"onClick": onClick
|
13716
|
-
}, [vue.createVNode(Badge, {
|
13933
|
+
}, [vue.createVNode(Badge, vue.mergeProps({
|
13717
13934
|
"dot": dot,
|
13718
|
-
"
|
13719
|
-
"
|
13720
|
-
}, {
|
13935
|
+
"class": bem$b("text"),
|
13936
|
+
"content": badge
|
13937
|
+
}, props.badgeProps), {
|
13721
13938
|
default: () => [slots.title ? slots.title() : title]
|
13722
13939
|
})]);
|
13723
13940
|
};
|
@@ -14131,7 +14348,7 @@
|
|
14131
14348
|
color: parentProps.activeColor
|
14132
14349
|
};
|
14133
14350
|
}
|
14134
|
-
if (
|
14351
|
+
if (getStatus() === "waiting") {
|
14135
14352
|
return {
|
14136
14353
|
color: parentProps.inactiveColor
|
14137
14354
|
};
|
@@ -14576,12 +14793,14 @@
|
|
14576
14793
|
var leftWidth = vue.computed(() => isDef(props.leftWidth) ? +props.leftWidth : getWidthByRef(leftRef));
|
14577
14794
|
var rightWidth = vue.computed(() => isDef(props.rightWidth) ? +props.rightWidth : getWidthByRef(rightRef));
|
14578
14795
|
var open = (side) => {
|
14579
|
-
opened = true;
|
14580
14796
|
state.offset = side === "left" ? leftWidth.value : -rightWidth.value;
|
14581
|
-
|
14582
|
-
|
14583
|
-
|
14584
|
-
|
14797
|
+
if (!opened) {
|
14798
|
+
opened = true;
|
14799
|
+
emit("open", {
|
14800
|
+
name: props.name,
|
14801
|
+
position: side
|
14802
|
+
});
|
14803
|
+
}
|
14585
14804
|
};
|
14586
14805
|
var close = (position) => {
|
14587
14806
|
state.offset = 0;
|
@@ -14778,6 +14997,7 @@
|
|
14778
14997
|
icon: String,
|
14779
14998
|
name: numericProp,
|
14780
14999
|
badge: numericProp,
|
15000
|
+
badgeProps: Object,
|
14781
15001
|
iconPrefix: String
|
14782
15002
|
});
|
14783
15003
|
var _TabbarItem = vue.defineComponent({
|
@@ -14863,11 +15083,11 @@
|
|
14863
15083
|
"tabindex": 0,
|
14864
15084
|
"aria-selected": active.value,
|
14865
15085
|
"onClick": onClick
|
14866
|
-
}, [vue.createVNode(Badge, {
|
15086
|
+
}, [vue.createVNode(Badge, vue.mergeProps({
|
14867
15087
|
"dot": dot,
|
14868
|
-
"
|
14869
|
-
"
|
14870
|
-
}, {
|
15088
|
+
"class": bem$2("icon"),
|
15089
|
+
"content": badge
|
15090
|
+
}, props.badgeProps), {
|
14871
15091
|
default: renderIcon
|
14872
15092
|
}), vue.createVNode("div", {
|
14873
15093
|
"class": bem$2("text")
|
@@ -15392,7 +15612,7 @@
|
|
15392
15612
|
}
|
15393
15613
|
});
|
15394
15614
|
var Uploader = withInstall(_Uploader);
|
15395
|
-
var version = "3.
|
15615
|
+
var version = "3.4.0";
|
15396
15616
|
function install(app) {
|
15397
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];
|
15398
15618
|
components.forEach((item) => {
|