vant 4.0.0-alpha.4 → 4.0.0-rc.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/LICENSE +10 -0
- package/README.md +17 -13
- package/changelog.generated.md +295 -0
- package/es/action-bar/ActionBar.d.ts +5 -1
- package/es/action-bar/ActionBar.mjs +13 -2
- package/es/action-bar/index.d.ts +4 -1
- package/es/action-bar-button/ActionBarButton.d.ts +1 -1
- package/es/action-bar-button/index.d.ts +1 -1
- package/es/action-bar-icon/ActionBarIcon.d.ts +1 -1
- package/es/action-bar-icon/index.d.ts +1 -1
- package/es/address-edit/AddressEdit.mjs +2 -2
- package/es/address-edit/style/index.mjs +7 -1
- package/es/area/Area.d.ts +6 -3
- package/es/area/index.d.ts +4 -2
- package/es/area/style/index.mjs +7 -0
- package/es/area/utils.mjs +9 -2
- package/es/badge/Badge.d.ts +1 -1
- package/es/badge/Badge.mjs +1 -1
- package/es/badge/index.d.ts +1 -1
- package/es/calendar/Calendar.mjs +13 -8
- package/es/calendar/style/index.mjs +7 -1
- package/es/calendar/types.d.ts +1 -0
- package/es/cell/Cell.d.ts +2 -2
- package/es/cell/index.d.ts +2 -2
- package/es/cell-group/CellGroup.d.ts +1 -1
- package/es/cell-group/index.d.ts +1 -1
- package/es/col/Col.d.ts +1 -1
- package/es/col/index.d.ts +1 -1
- package/es/collapse/Collapse.d.ts +8 -1
- package/es/collapse/Collapse.mjs +28 -1
- package/es/collapse/index.d.ts +1 -1
- package/es/collapse-item/CollapseItem.d.ts +2 -2
- package/es/collapse-item/CollapseItem.mjs +3 -1
- package/es/collapse-item/index.d.ts +2 -2
- package/es/composables/use-global-z-index.d.ts +4 -0
- package/es/composables/use-global-z-index.mjs +9 -0
- package/es/composables/use-height.d.ts +1 -1
- package/es/composables/use-height.mjs +8 -2
- package/es/composables/use-lazy-render.mjs +9 -5
- package/es/composables/use-lock-scroll.mjs +7 -2
- package/es/composables/use-placeholder.mjs +1 -1
- package/es/composables/use-visibility-change.mjs +6 -3
- package/es/config-provider/ConfigProvider.d.ts +14 -4
- package/es/config-provider/ConfigProvider.mjs +25 -9
- package/es/config-provider/index.d.ts +9 -3
- package/es/coupon/Coupon.d.ts +1 -1
- package/es/coupon/index.d.ts +1 -1
- package/es/coupon/utils.mjs +3 -1
- package/es/coupon-cell/CouponCell.d.ts +1 -1
- package/es/coupon-cell/index.d.ts +1 -1
- package/es/coupon-list/style/index.mjs +3 -3
- package/es/date-picker/DatePicker.d.ts +6 -3
- package/es/date-picker/DatePicker.mjs +10 -10
- package/es/date-picker/index.d.ts +4 -2
- package/es/date-picker/style/index.mjs +7 -0
- package/es/date-picker/utils.d.ts +3 -2
- package/es/dialog/Dialog.d.ts +9 -1
- package/es/dialog/Dialog.mjs +6 -0
- package/es/dialog/function-call.d.ts +6 -184
- package/es/dialog/function-call.mjs +45 -45
- package/es/dialog/index.css +1 -1
- package/es/dialog/index.d.ts +130 -3
- package/es/dialog/index.mjs +16 -2
- package/es/dialog/types.d.ts +3 -7
- package/es/divider/Divider.d.ts +1 -1
- package/es/divider/index.d.ts +1 -1
- package/es/dropdown-item/DropdownItem.d.ts +2 -2
- package/es/dropdown-item/index.d.ts +2 -2
- package/es/dropdown-menu/DropdownMenu.d.ts +1 -1
- package/es/dropdown-menu/DropdownMenu.mjs +2 -1
- package/es/dropdown-menu/index.d.ts +1 -1
- package/es/empty/Empty.d.ts +2 -2
- package/es/empty/Empty.mjs +281 -16
- package/es/empty/index.d.ts +1 -1
- package/es/field/Field.d.ts +4 -2
- package/es/field/Field.mjs +21 -5
- package/es/field/index.d.ts +4 -2
- package/es/field/types.d.ts +1 -0
- package/es/field/utils.d.ts +1 -0
- package/es/field/utils.mjs +8 -2
- package/es/grid/Grid.d.ts +1 -1
- package/es/grid/index.d.ts +1 -1
- package/es/grid-item/GridItem.d.ts +1 -1
- package/es/grid-item/index.d.ts +1 -1
- package/es/icon/Icon.d.ts +1 -1
- package/es/icon/index.d.ts +1 -1
- package/es/image-preview/ImagePreviewItem.mjs +11 -3
- package/es/image-preview/function-call.d.ts +1 -134
- package/es/image-preview/function-call.mjs +3 -7
- package/es/image-preview/index.css +1 -1
- package/es/image-preview/index.d.ts +129 -2
- package/es/image-preview/index.mjs +6 -2
- package/es/index-anchor/IndexAnchor.d.ts +1 -1
- package/es/index-anchor/index.d.ts +1 -1
- package/es/index-bar/IndexBar.mjs +9 -4
- package/es/index.d.ts +3 -1
- package/es/index.mjs +7 -1
- package/es/lazyload/vue-lazyload/lazy-component.mjs +4 -1
- package/es/lazyload/vue-lazyload/lazy-container.mjs +11 -7
- package/es/lazyload/vue-lazyload/lazy-image.mjs +24 -14
- package/es/lazyload/vue-lazyload/lazy.mjs +11 -3
- package/es/lazyload/vue-lazyload/listener.mjs +45 -33
- package/es/lazyload/vue-lazyload/util.mjs +4 -1
- package/es/list/List.mjs +2 -1
- package/es/loading/Loading.d.ts +1 -1
- package/es/loading/index.d.ts +1 -1
- package/es/locale/index.d.ts +1 -1
- package/es/notify/function-call.d.ts +4 -100
- package/es/notify/function-call.mjs +25 -29
- package/es/notify/index.d.ts +91 -2
- package/es/notify/index.mjs +14 -2
- package/es/notify/types.d.ts +0 -6
- package/es/number-keyboard/NumberKeyboard.d.ts +1 -1
- package/es/number-keyboard/NumberKeyboard.mjs +1 -2
- package/es/number-keyboard/NumberKeyboardKey.mjs +2 -2
- package/es/number-keyboard/index.d.ts +1 -1
- package/es/overlay/Overlay.d.ts +1 -1
- package/es/overlay/Overlay.mjs +13 -6
- package/es/overlay/index.d.ts +1 -1
- package/es/password-input/PasswordInput.mjs +1 -1
- package/es/picker/Picker.d.ts +10 -5
- package/es/picker/Picker.mjs +47 -64
- package/es/picker/PickerColumn.d.ts +2 -1
- package/es/picker/PickerColumn.mjs +11 -6
- package/es/picker/PickerToolbar.d.ts +21 -0
- package/es/picker/PickerToolbar.mjs +59 -0
- package/es/picker/index.d.ts +6 -3
- package/es/picker/style/index.mjs +7 -0
- package/es/picker/utils.d.ts +2 -0
- package/es/picker/utils.mjs +14 -7
- package/es/picker-group/PickerGroup.d.ts +39 -0
- package/es/picker-group/PickerGroup.mjs +57 -0
- package/es/picker-group/index.css +1 -0
- package/es/picker-group/index.d.ts +32 -0
- package/es/picker-group/index.mjs +8 -0
- package/es/{action-bar-button/style/less.d.ts → picker-group/style/index.d.ts} +0 -0
- package/es/picker-group/style/index.mjs +9 -0
- package/es/popover/Popover.mjs +28 -27
- package/es/popup/Popup.d.ts +2 -2
- package/es/popup/Popup.mjs +7 -6
- package/es/popup/index.css +1 -1
- package/es/popup/index.d.ts +2 -2
- package/es/popup/shared.mjs +3 -1
- package/es/progress/Progress.d.ts +1 -1
- package/es/progress/index.d.ts +1 -1
- package/es/pull-refresh/PullRefresh.d.ts +2 -1
- package/es/pull-refresh/PullRefresh.mjs +12 -4
- package/es/pull-refresh/index.d.ts +2 -1
- package/es/rate/Rate.mjs +5 -3
- package/es/row/Row.d.ts +1 -1
- package/es/row/index.d.ts +1 -1
- package/es/search/index.css +1 -1
- package/es/skeleton/Skeleton.d.ts +1 -1
- package/es/skeleton/index.d.ts +1 -1
- package/es/slider/Slider.mjs +7 -3
- package/es/space/Space.d.ts +48 -0
- package/es/space/Space.mjs +87 -0
- package/es/space/index.css +1 -0
- package/es/space/index.d.ts +37 -0
- package/es/space/index.mjs +8 -0
- package/es/{action-bar-icon/style/less.d.ts → space/style/index.d.ts} +0 -0
- package/es/space/style/index.mjs +2 -0
- package/es/step/Step.d.ts +1 -1
- package/es/step/index.d.ts +1 -1
- package/es/stepper/Stepper.mjs +1 -1
- package/es/sticky/Sticky.mjs +2 -1
- package/es/submit-bar/SubmitBar.d.ts +4 -0
- package/es/submit-bar/SubmitBar.mjs +13 -2
- package/es/submit-bar/index.d.ts +3 -0
- package/es/swipe/Swipe.mjs +14 -7
- package/es/swipe-cell/SwipeCell.d.ts +2 -2
- package/es/swipe-cell/SwipeCell.mjs +5 -3
- package/es/swipe-cell/index.d.ts +2 -2
- package/es/swipe-item/SwipeItem.d.ts +1 -1
- package/es/swipe-item/index.d.ts +1 -1
- package/es/switch/Switch.mjs +2 -1
- package/es/tab/Tab.d.ts +1 -1
- package/es/tab/index.d.ts +1 -1
- package/es/tabs/Tabs.mjs +12 -2
- package/es/tabs/TabsContent.mjs +4 -0
- package/es/tabs/TabsTitle.d.ts +1 -1
- package/es/time-picker/TimePicker.d.ts +6 -3
- package/es/time-picker/index.d.ts +4 -2
- package/es/time-picker/style/index.mjs +7 -0
- package/es/toast/function-call.d.ts +10 -18
- package/es/toast/function-call.mjs +22 -20
- package/es/toast/index.d.ts +76 -2
- package/es/toast/index.mjs +22 -2
- package/es/toast/types.d.ts +10 -7
- package/es/uploader/Uploader.d.ts +3 -3
- package/es/uploader/Uploader.mjs +3 -3
- package/es/uploader/index.d.ts +2 -2
- package/es/utils/basic.d.ts +3 -3
- package/es/utils/create.d.ts +1 -1
- package/es/utils/create.mjs +8 -2
- package/es/utils/with-install.d.ts +2 -2
- package/es/utils/with-install.mjs +4 -2
- package/es/vue-tsx-shim.d.ts +7 -0
- package/lib/action-bar/ActionBar.d.ts +5 -1
- package/lib/action-bar/ActionBar.js +12 -1
- package/lib/action-bar/index.d.ts +4 -1
- package/lib/action-bar/index.js +4 -1
- package/lib/action-bar-button/ActionBarButton.d.ts +1 -1
- package/lib/action-bar-button/index.d.ts +1 -1
- package/lib/action-bar-button/index.js +4 -1
- package/lib/action-bar-icon/ActionBarIcon.d.ts +1 -1
- package/lib/action-bar-icon/index.d.ts +1 -1
- package/lib/action-bar-icon/index.js +4 -1
- package/lib/action-sheet/index.js +4 -1
- package/lib/address-edit/AddressEdit.js +5 -2
- package/lib/address-edit/index.js +4 -1
- package/lib/address-edit/style/index.js +7 -1
- package/lib/address-list/AddressList.js +4 -1
- package/lib/address-list/index.js +4 -1
- package/lib/area/Area.d.ts +6 -3
- package/lib/area/index.d.ts +4 -2
- package/lib/area/index.js +4 -1
- package/lib/area/style/index.js +7 -0
- package/lib/area/utils.js +9 -2
- package/lib/badge/Badge.d.ts +1 -1
- package/lib/badge/Badge.js +1 -1
- package/lib/badge/index.d.ts +1 -1
- package/lib/badge/index.js +4 -1
- package/lib/button/index.js +4 -1
- package/lib/calendar/Calendar.js +16 -8
- package/lib/calendar/CalendarMonth.js +4 -1
- package/lib/calendar/index.js +4 -1
- package/lib/calendar/style/index.js +7 -1
- package/lib/calendar/types.d.ts +1 -0
- package/lib/card/index.js +4 -1
- package/lib/cascader/index.js +4 -1
- package/lib/cell/Cell.d.ts +2 -2
- package/lib/cell/index.d.ts +2 -2
- package/lib/cell/index.js +4 -1
- package/lib/cell-group/CellGroup.d.ts +1 -1
- package/lib/cell-group/index.d.ts +1 -1
- package/lib/cell-group/index.js +4 -1
- package/lib/checkbox/Checkbox.js +4 -1
- package/lib/checkbox/index.js +4 -1
- package/lib/checkbox-group/index.js +4 -1
- package/lib/circle/index.js +4 -1
- package/lib/col/Col.d.ts +1 -1
- package/lib/col/index.d.ts +1 -1
- package/lib/col/index.js +4 -1
- package/lib/collapse/Collapse.d.ts +8 -1
- package/lib/collapse/Collapse.js +28 -1
- package/lib/collapse/index.d.ts +1 -1
- package/lib/collapse/index.js +4 -1
- package/lib/collapse-item/CollapseItem.d.ts +2 -2
- package/lib/collapse-item/CollapseItem.js +3 -1
- package/lib/collapse-item/index.d.ts +2 -2
- package/lib/collapse-item/index.js +4 -1
- package/lib/composables/use-global-z-index.d.ts +4 -0
- package/lib/composables/use-global-z-index.js +28 -0
- package/lib/composables/use-height.d.ts +1 -1
- package/lib/composables/use-height.js +8 -2
- package/lib/composables/use-lazy-render.js +9 -5
- package/lib/composables/use-lock-scroll.js +7 -2
- package/lib/composables/use-placeholder.js +1 -1
- package/lib/composables/use-visibility-change.js +6 -3
- package/lib/config-provider/ConfigProvider.d.ts +14 -4
- package/lib/config-provider/ConfigProvider.js +23 -7
- package/lib/config-provider/index.d.ts +9 -3
- package/lib/config-provider/index.js +4 -1
- package/lib/contact-card/index.js +4 -1
- package/lib/contact-edit/index.js +4 -1
- package/lib/contact-list/index.js +4 -1
- package/lib/count-down/index.js +4 -1
- package/lib/coupon/Coupon.d.ts +1 -1
- package/lib/coupon/index.d.ts +1 -1
- package/lib/coupon/index.js +4 -1
- package/lib/coupon/utils.js +3 -1
- package/lib/coupon-cell/CouponCell.d.ts +1 -1
- package/lib/coupon-cell/index.d.ts +1 -1
- package/lib/coupon-cell/index.js +4 -1
- package/lib/coupon-list/index.js +4 -1
- package/lib/coupon-list/style/index.js +3 -3
- package/lib/date-picker/DatePicker.d.ts +6 -3
- package/lib/date-picker/DatePicker.js +10 -10
- package/lib/date-picker/index.d.ts +4 -2
- package/lib/date-picker/index.js +4 -1
- package/lib/date-picker/style/index.js +7 -0
- package/lib/date-picker/utils.d.ts +3 -2
- package/lib/dialog/Dialog.d.ts +9 -1
- package/lib/dialog/Dialog.js +6 -0
- package/lib/dialog/function-call.d.ts +6 -184
- package/lib/dialog/function-call.js +46 -43
- package/lib/dialog/index.css +1 -1
- package/lib/dialog/index.d.ts +130 -3
- package/lib/dialog/index.js +17 -3
- package/lib/dialog/types.d.ts +3 -7
- package/lib/divider/Divider.d.ts +1 -1
- package/lib/divider/index.d.ts +1 -1
- package/lib/divider/index.js +4 -1
- package/lib/dropdown-item/DropdownItem.d.ts +2 -2
- package/lib/dropdown-item/index.d.ts +2 -2
- package/lib/dropdown-item/index.js +4 -1
- package/lib/dropdown-menu/DropdownMenu.d.ts +1 -1
- package/lib/dropdown-menu/DropdownMenu.js +2 -1
- package/lib/dropdown-menu/index.d.ts +1 -1
- package/lib/dropdown-menu/index.js +4 -1
- package/lib/empty/Empty.d.ts +2 -2
- package/lib/empty/Empty.js +281 -16
- package/lib/empty/index.d.ts +1 -1
- package/lib/empty/index.js +4 -1
- package/lib/field/Field.d.ts +4 -2
- package/lib/field/Field.js +19 -3
- package/lib/field/index.d.ts +4 -2
- package/lib/field/index.js +4 -1
- package/lib/field/types.d.ts +1 -0
- package/lib/field/utils.d.ts +1 -0
- package/lib/field/utils.js +8 -2
- package/lib/form/index.js +4 -1
- package/lib/grid/Grid.d.ts +1 -1
- package/lib/grid/index.d.ts +1 -1
- package/lib/grid/index.js +4 -1
- package/lib/grid-item/GridItem.d.ts +1 -1
- package/lib/grid-item/index.d.ts +1 -1
- package/lib/grid-item/index.js +4 -1
- package/lib/icon/Icon.d.ts +1 -1
- package/lib/icon/index.d.ts +1 -1
- package/lib/icon/index.js +4 -1
- package/lib/image/index.js +4 -1
- package/lib/image-preview/ImagePreview.js +4 -1
- package/lib/image-preview/ImagePreviewItem.js +10 -2
- package/lib/image-preview/function-call.d.ts +1 -134
- package/lib/image-preview/function-call.js +6 -7
- package/lib/image-preview/index.css +1 -1
- package/lib/image-preview/index.d.ts +129 -2
- package/lib/image-preview/index.js +13 -3
- package/lib/index-anchor/IndexAnchor.d.ts +1 -1
- package/lib/index-anchor/index.d.ts +1 -1
- package/lib/index-anchor/index.js +4 -1
- package/lib/index-bar/IndexBar.js +9 -4
- package/lib/index-bar/index.js +4 -1
- package/lib/index.css +1 -1
- package/lib/index.d.ts +3 -1
- package/lib/index.js +7 -1
- package/lib/lazyload/vue-lazyload/index.js +4 -1
- package/lib/lazyload/vue-lazyload/lazy-component.js +4 -1
- package/lib/lazyload/vue-lazyload/lazy-container.js +11 -7
- package/lib/lazyload/vue-lazyload/lazy-image.js +24 -14
- package/lib/lazyload/vue-lazyload/lazy.js +15 -4
- package/lib/lazyload/vue-lazyload/listener.js +45 -33
- package/lib/lazyload/vue-lazyload/util.js +4 -1
- package/lib/list/List.js +2 -1
- package/lib/list/index.js +4 -1
- package/lib/loading/Loading.d.ts +1 -1
- package/lib/loading/index.d.ts +1 -1
- package/lib/loading/index.js +4 -1
- package/lib/locale/index.d.ts +1 -1
- package/lib/locale/index.js +4 -1
- package/lib/nav-bar/index.js +4 -1
- package/lib/notice-bar/index.js +4 -1
- package/lib/notify/function-call.d.ts +4 -100
- package/lib/notify/function-call.js +28 -29
- package/lib/notify/index.d.ts +91 -2
- package/lib/notify/index.js +16 -3
- package/lib/notify/types.d.ts +0 -6
- package/lib/number-keyboard/NumberKeyboard.d.ts +1 -1
- package/lib/number-keyboard/NumberKeyboard.js +5 -3
- package/lib/number-keyboard/NumberKeyboardKey.js +2 -2
- package/lib/number-keyboard/index.d.ts +1 -1
- package/lib/number-keyboard/index.js +4 -1
- package/lib/overlay/Overlay.d.ts +1 -1
- package/lib/overlay/Overlay.js +11 -4
- package/lib/overlay/index.d.ts +1 -1
- package/lib/overlay/index.js +4 -1
- package/lib/pagination/index.js +4 -1
- package/lib/password-input/PasswordInput.js +1 -1
- package/lib/password-input/index.js +4 -1
- package/lib/picker/Picker.d.ts +10 -5
- package/lib/picker/Picker.js +53 -67
- package/lib/picker/PickerColumn.d.ts +2 -1
- package/lib/picker/PickerColumn.js +10 -5
- package/lib/picker/PickerToolbar.d.ts +21 -0
- package/lib/picker/PickerToolbar.js +78 -0
- package/lib/picker/index.d.ts +6 -3
- package/lib/picker/index.js +4 -1
- package/lib/picker/style/index.js +7 -0
- package/lib/picker/utils.d.ts +2 -0
- package/lib/picker/utils.js +15 -8
- package/lib/picker-group/PickerGroup.d.ts +39 -0
- package/lib/picker-group/PickerGroup.js +82 -0
- package/lib/picker-group/index.css +1 -0
- package/lib/picker-group/index.d.ts +32 -0
- package/lib/picker-group/index.js +33 -0
- package/{es/action-bar/style/less.d.ts → lib/picker-group/style/index.d.ts} +0 -0
- package/lib/picker-group/style/index.js +9 -0
- package/lib/popover/Popover.js +27 -26
- package/lib/popover/index.js +4 -1
- package/lib/popup/Popup.d.ts +2 -2
- package/lib/popup/Popup.js +7 -6
- package/lib/popup/index.css +1 -1
- package/lib/popup/index.d.ts +2 -2
- package/lib/popup/index.js +4 -1
- package/lib/popup/shared.js +3 -1
- package/lib/progress/Progress.d.ts +1 -1
- package/lib/progress/index.d.ts +1 -1
- package/lib/progress/index.js +4 -1
- package/lib/pull-refresh/PullRefresh.d.ts +2 -1
- package/lib/pull-refresh/PullRefresh.js +11 -3
- package/lib/pull-refresh/index.d.ts +2 -1
- package/lib/pull-refresh/index.js +4 -1
- package/lib/radio/Radio.js +4 -1
- package/lib/radio/index.js +4 -1
- package/lib/radio-group/index.js +4 -1
- package/lib/rate/Rate.js +4 -2
- package/lib/rate/index.js +4 -1
- package/lib/row/Row.d.ts +1 -1
- package/lib/row/index.d.ts +1 -1
- package/lib/row/index.js +4 -1
- package/lib/search/index.css +1 -1
- package/lib/search/index.js +4 -1
- package/lib/share-sheet/index.js +4 -1
- package/lib/sidebar/index.js +4 -1
- package/lib/sidebar-item/index.js +4 -1
- package/lib/skeleton/Skeleton.d.ts +1 -1
- package/lib/skeleton/index.d.ts +1 -1
- package/lib/skeleton/index.js +4 -1
- package/lib/slider/Slider.js +6 -2
- package/lib/slider/index.js +4 -1
- package/lib/space/Space.d.ts +48 -0
- package/lib/space/Space.js +106 -0
- package/lib/space/index.css +1 -0
- package/lib/space/index.d.ts +37 -0
- package/lib/space/index.js +33 -0
- package/{es/action-sheet/style/less.d.ts → lib/space/style/index.d.ts} +0 -0
- package/lib/space/style/index.js +2 -0
- package/lib/step/Step.d.ts +1 -1
- package/lib/step/index.d.ts +1 -1
- package/lib/step/index.js +4 -1
- package/lib/stepper/Stepper.js +1 -1
- package/lib/stepper/index.js +4 -1
- package/lib/steps/index.js +4 -1
- package/lib/sticky/Sticky.js +2 -1
- package/lib/sticky/index.js +4 -1
- package/lib/submit-bar/SubmitBar.d.ts +4 -0
- package/lib/submit-bar/SubmitBar.js +12 -1
- package/lib/submit-bar/index.d.ts +3 -0
- package/lib/submit-bar/index.js +4 -1
- package/lib/swipe/Swipe.js +13 -6
- package/lib/swipe/index.js +4 -1
- package/lib/swipe-cell/SwipeCell.d.ts +2 -2
- package/lib/swipe-cell/SwipeCell.js +4 -2
- package/lib/swipe-cell/index.d.ts +2 -2
- package/lib/swipe-cell/index.js +4 -1
- package/lib/swipe-item/SwipeItem.d.ts +1 -1
- package/lib/swipe-item/index.d.ts +1 -1
- package/lib/swipe-item/index.js +4 -1
- package/lib/switch/Switch.js +2 -1
- package/lib/switch/index.js +4 -1
- package/lib/tab/Tab.d.ts +1 -1
- package/lib/tab/index.d.ts +1 -1
- package/lib/tab/index.js +4 -1
- package/lib/tabbar/index.js +4 -1
- package/lib/tabbar-item/index.js +4 -1
- package/lib/tabs/Tabs.js +16 -3
- package/lib/tabs/TabsContent.js +4 -0
- package/lib/tabs/TabsTitle.d.ts +1 -1
- package/lib/tabs/index.js +4 -1
- package/lib/tag/index.js +4 -1
- package/lib/time-picker/TimePicker.d.ts +6 -3
- package/lib/time-picker/index.d.ts +4 -2
- package/lib/time-picker/index.js +4 -1
- package/lib/time-picker/style/index.js +7 -0
- package/lib/toast/function-call.d.ts +10 -18
- package/lib/toast/function-call.js +25 -20
- package/lib/toast/index.d.ts +76 -2
- package/lib/toast/index.js +20 -3
- package/lib/toast/types.d.ts +10 -7
- package/lib/tree-select/index.js +4 -1
- package/lib/uploader/Uploader.d.ts +3 -3
- package/lib/uploader/Uploader.js +6 -3
- package/lib/uploader/index.d.ts +2 -2
- package/lib/uploader/index.js +4 -1
- package/lib/utils/basic.d.ts +3 -3
- package/lib/utils/create.d.ts +1 -1
- package/lib/utils/create.js +12 -3
- package/lib/utils/with-install.d.ts +2 -2
- package/lib/utils/with-install.js +4 -2
- package/lib/vant.cjs.js +5478 -5015
- package/lib/vant.es.js +5548 -4994
- package/lib/vant.js +5453 -5021
- package/lib/vant.min.js +1 -1
- package/lib/vue-tsx-shim.d.ts +7 -0
- package/{vetur → lib}/web-types.json +567 -345
- package/package.json +13 -18
- package/es/action-bar/index.less +0 -16
- package/es/action-bar/style/less.mjs +0 -2
- package/es/action-bar-button/index.less +0 -38
- package/es/action-bar-button/style/less.mjs +0 -7
- package/es/action-bar-icon/index.less +0 -34
- package/es/action-bar-icon/style/less.mjs +0 -5
- package/es/action-sheet/index.less +0 -131
- package/es/action-sheet/style/less.mjs +0 -7
- package/es/address-edit/index.less +0 -39
- package/es/address-edit/style/less.d.ts +0 -1
- package/es/address-edit/style/less.mjs +0 -13
- package/es/address-list/index.less +0 -110
- package/es/address-list/style/less.d.ts +0 -1
- package/es/address-list/style/less.mjs +0 -11
- package/es/area/style/less.d.ts +0 -1
- package/es/area/style/less.mjs +0 -3
- package/es/badge/index.less +0 -72
- package/es/badge/style/less.d.ts +0 -1
- package/es/badge/style/less.mjs +0 -2
- package/es/button/index.less +0 -241
- package/es/button/style/less.d.ts +0 -1
- package/es/button/style/less.mjs +0 -5
- package/es/calendar/index.less +0 -217
- package/es/calendar/style/less.d.ts +0 -1
- package/es/calendar/style/less.mjs +0 -10
- package/es/card/index.less +0 -126
- package/es/card/style/less.d.ts +0 -1
- package/es/card/style/less.mjs +0 -6
- package/es/cascader/index.less +0 -92
- package/es/cascader/style/less.d.ts +0 -1
- package/es/cascader/style/less.mjs +0 -9
- package/es/cell/index.less +0 -119
- package/es/cell/style/less.d.ts +0 -1
- package/es/cell/style/less.mjs +0 -4
- package/es/cell-group/index.less +0 -32
- package/es/cell-group/style/less.d.ts +0 -1
- package/es/cell-group/style/less.mjs +0 -2
- package/es/checkbox/index.less +0 -96
- package/es/checkbox/style/less.d.ts +0 -1
- package/es/checkbox/style/less.mjs +0 -5
- package/es/checkbox-group/index.less +0 -6
- package/es/checkbox-group/style/less.d.ts +0 -1
- package/es/checkbox-group/style/less.mjs +0 -2
- package/es/circle/index.less +0 -49
- package/es/circle/style/less.d.ts +0 -1
- package/es/circle/style/less.mjs +0 -2
- package/es/col/index.less +0 -19
- package/es/col/style/less.d.ts +0 -1
- package/es/col/style/less.mjs +0 -3
- package/es/collapse/style/less.d.ts +0 -1
- package/es/collapse/style/less.mjs +0 -1
- package/es/collapse-item/index.less +0 -75
- package/es/collapse-item/style/less.d.ts +0 -1
- package/es/collapse-item/style/less.mjs +0 -5
- package/es/config-provider/style/less.d.ts +0 -1
- package/es/config-provider/style/less.mjs +0 -1
- package/es/contact-card/index.less +0 -47
- package/es/contact-card/style/less.d.ts +0 -1
- package/es/contact-card/style/less.mjs +0 -5
- package/es/contact-edit/index.less +0 -37
- package/es/contact-edit/style/less.d.ts +0 -1
- package/es/contact-edit/style/less.mjs +0 -9
- package/es/contact-list/index.less +0 -65
- package/es/contact-list/style/less.d.ts +0 -1
- package/es/contact-list/style/less.mjs +0 -11
- package/es/count-down/index.less +0 -11
- package/es/count-down/style/less.d.ts +0 -1
- package/es/count-down/style/less.mjs +0 -2
- package/es/coupon/index.less +0 -127
- package/es/coupon/style/less.d.ts +0 -1
- package/es/coupon/style/less.mjs +0 -6
- package/es/coupon-cell/index.less +0 -9
- package/es/coupon-cell/style/less.d.ts +0 -1
- package/es/coupon-cell/style/less.mjs +0 -5
- package/es/coupon-list/index.less +0 -86
- package/es/coupon-list/style/less.d.ts +0 -1
- package/es/coupon-list/style/less.mjs +0 -17
- package/es/date-picker/style/less.d.ts +0 -1
- package/es/date-picker/style/less.mjs +0 -3
- package/es/dialog/index.less +0 -140
- package/es/dialog/style/less.d.ts +0 -1
- package/es/dialog/style/less.mjs +0 -10
- package/es/divider/index.less +0 -73
- package/es/divider/style/less.d.ts +0 -1
- package/es/divider/style/less.mjs +0 -2
- package/es/dropdown-item/index.less +0 -41
- package/es/dropdown-item/style/less.d.ts +0 -1
- package/es/dropdown-item/style/less.mjs +0 -8
- package/es/dropdown-menu/index.less +0 -80
- package/es/dropdown-menu/style/less.d.ts +0 -1
- package/es/dropdown-menu/style/less.mjs +0 -2
- package/es/empty/Images.d.ts +0 -4
- package/es/empty/Images.mjs +0 -271
- package/es/empty/index.less +0 -41
- package/es/empty/style/less.d.ts +0 -1
- package/es/empty/style/less.mjs +0 -2
- package/es/field/index.less +0 -196
- package/es/field/style/less.d.ts +0 -1
- package/es/field/style/less.mjs +0 -5
- package/es/form/style/less.d.ts +0 -1
- package/es/form/style/less.mjs +0 -1
- package/es/grid/index.less +0 -4
- package/es/grid/style/less.d.ts +0 -1
- package/es/grid/style/less.mjs +0 -2
- package/es/grid-item/index.less +0 -97
- package/es/grid-item/style/less.d.ts +0 -1
- package/es/grid-item/style/less.mjs +0 -5
- package/es/icon/index.less +0 -10
- package/es/icon/style/less.d.ts +0 -1
- package/es/icon/style/less.mjs +0 -3
- package/es/image/index.less +0 -55
- package/es/image/style/less.d.ts +0 -1
- package/es/image/style/less.mjs +0 -4
- package/es/image-preview/index.less +0 -110
- package/es/image-preview/style/less.d.ts +0 -1
- package/es/image-preview/style/less.mjs +0 -10
- package/es/index-anchor/index.less +0 -31
- package/es/index-anchor/style/less.d.ts +0 -1
- package/es/index-anchor/style/less.mjs +0 -3
- package/es/index-bar/index.less +0 -33
- package/es/index-bar/style/less.d.ts +0 -1
- package/es/index-bar/style/less.mjs +0 -2
- package/es/lazyload/style/less.d.ts +0 -1
- package/es/lazyload/style/less.mjs +0 -1
- package/es/list/index.less +0 -29
- package/es/list/style/less.d.ts +0 -1
- package/es/list/style/less.mjs +0 -3
- package/es/loading/index.less +0 -109
- package/es/loading/style/less.d.ts +0 -1
- package/es/loading/style/less.mjs +0 -2
- package/es/locale/style/less.d.ts +0 -1
- package/es/locale/style/less.mjs +0 -1
- package/es/nav-bar/index.less +0 -78
- package/es/nav-bar/style/less.d.ts +0 -1
- package/es/nav-bar/style/less.mjs +0 -4
- package/es/notice-bar/index.less +0 -70
- package/es/notice-bar/style/less.d.ts +0 -1
- package/es/notice-bar/style/less.mjs +0 -4
- package/es/notify/index.less +0 -42
- package/es/notify/style/less.d.ts +0 -1
- package/es/notify/style/less.mjs +0 -6
- package/es/number-keyboard/index.less +0 -159
- package/es/number-keyboard/style/less.d.ts +0 -1
- package/es/number-keyboard/style/less.mjs +0 -3
- package/es/overlay/index.less +0 -14
- package/es/overlay/style/less.d.ts +0 -1
- package/es/overlay/style/less.mjs +0 -2
- package/es/pagination/index.less +0 -89
- package/es/pagination/style/less.d.ts +0 -1
- package/es/pagination/style/less.mjs +0 -2
- package/es/password-input/index.less +0 -100
- package/es/password-input/style/less.d.ts +0 -1
- package/es/password-input/style/less.mjs +0 -2
- package/es/picker/index.less +0 -138
- package/es/picker/style/less.d.ts +0 -1
- package/es/picker/style/less.mjs +0 -3
- package/es/popover/index.less +0 -288
- package/es/popover/style/less.d.ts +0 -1
- package/es/popover/style/less.mjs +0 -6
- package/es/popup/index.less +0 -139
- package/es/popup/style/less.d.ts +0 -1
- package/es/popup/style/less.mjs +0 -5
- package/es/progress/index.less +0 -53
- package/es/progress/style/less.d.ts +0 -1
- package/es/progress/style/less.mjs +0 -2
- package/es/pull-refresh/index.less +0 -36
- package/es/pull-refresh/style/less.d.ts +0 -1
- package/es/pull-refresh/style/less.mjs +0 -3
- package/es/radio/index.less +0 -96
- package/es/radio/style/less.d.ts +0 -1
- package/es/radio/style/less.mjs +0 -6
- package/es/radio-group/index.less +0 -6
- package/es/radio-group/style/less.d.ts +0 -1
- package/es/radio-group/style/less.mjs +0 -2
- package/es/rate/index.less +0 -52
- package/es/rate/style/less.d.ts +0 -1
- package/es/rate/style/less.mjs +0 -4
- package/es/row/index.less +0 -32
- package/es/row/style/less.d.ts +0 -1
- package/es/row/style/less.mjs +0 -2
- package/es/search/index.less +0 -76
- package/es/search/style/less.d.ts +0 -1
- package/es/search/style/less.mjs +0 -6
- package/es/share-sheet/index.less +0 -152
- package/es/share-sheet/style/less.d.ts +0 -1
- package/es/share-sheet/style/less.mjs +0 -6
- package/es/sidebar/index.less +0 -9
- package/es/sidebar/style/less.d.ts +0 -1
- package/es/sidebar/style/less.mjs +0 -2
- package/es/sidebar-item/index.less +0 -72
- package/es/sidebar-item/style/less.d.ts +0 -1
- package/es/sidebar-item/style/less.mjs +0 -4
- package/es/skeleton/index.less +0 -73
- package/es/skeleton/style/less.d.ts +0 -1
- package/es/skeleton/style/less.mjs +0 -2
- package/es/slider/index.less +0 -104
- package/es/slider/style/less.d.ts +0 -1
- package/es/slider/style/less.mjs +0 -2
- package/es/step/index.less +0 -147
- package/es/step/style/less.d.ts +0 -1
- package/es/step/style/less.mjs +0 -5
- package/es/stepper/index.less +0 -129
- package/es/stepper/style/less.d.ts +0 -1
- package/es/stepper/style/less.mjs +0 -2
- package/es/steps/index.less +0 -23
- package/es/steps/style/less.d.ts +0 -1
- package/es/steps/style/less.mjs +0 -2
- package/es/sticky/index.less +0 -10
- package/es/sticky/style/less.d.ts +0 -1
- package/es/sticky/style/less.mjs +0 -2
- package/es/style/animation.less +0 -135
- package/es/style/base.less +0 -89
- package/es/style/css-variables.less +0 -90
- package/es/style/mixins/clearfix.less +0 -7
- package/es/style/mixins/ellipsis.less +0 -15
- package/es/style/mixins/hairline.less +0 -37
- package/es/style/normalize.less +0 -36
- package/es/submit-bar/index.less +0 -97
- package/es/submit-bar/style/less.d.ts +0 -1
- package/es/submit-bar/style/less.mjs +0 -6
- package/es/swipe/index.less +0 -65
- package/es/swipe/style/less.d.ts +0 -1
- package/es/swipe/style/less.mjs +0 -2
- package/es/swipe-cell/index.less +0 -27
- package/es/swipe-cell/style/less.d.ts +0 -1
- package/es/swipe-cell/style/less.mjs +0 -2
- package/es/swipe-item/index.less +0 -6
- package/es/swipe-item/style/less.d.ts +0 -1
- package/es/swipe-item/style/less.mjs +0 -3
- package/es/switch/index.less +0 -75
- package/es/switch/style/less.d.ts +0 -1
- package/es/switch/style/less.mjs +0 -3
- package/es/tab/index.less +0 -15
- package/es/tab/style/less.d.ts +0 -1
- package/es/tab/style/less.mjs +0 -7
- package/es/tabbar/index.less +0 -20
- package/es/tabbar/style/less.d.ts +0 -1
- package/es/tabbar/style/less.mjs +0 -2
- package/es/tabbar-item/index.less +0 -44
- package/es/tabbar-item/style/less.d.ts +0 -1
- package/es/tabbar-item/style/less.mjs +0 -5
- package/es/tabs/index.less +0 -170
- package/es/tabs/style/less.d.ts +0 -1
- package/es/tabs/style/less.mjs +0 -5
- package/es/tag/index.less +0 -115
- package/es/tag/style/less.d.ts +0 -1
- package/es/tag/style/less.mjs +0 -4
- package/es/time-picker/style/less.d.ts +0 -1
- package/es/time-picker/style/less.mjs +0 -3
- package/es/toast/index.less +0 -89
- package/es/toast/style/less.d.ts +0 -1
- package/es/toast/style/less.mjs +0 -7
- package/es/tree-select/index.less +0 -68
- package/es/tree-select/style/less.d.ts +0 -1
- package/es/tree-select/style/less.mjs +0 -6
- package/es/uploader/index.less +0 -191
- package/es/uploader/style/less.d.ts +0 -1
- package/es/uploader/style/less.mjs +0 -11
- package/lib/action-bar/index.less +0 -16
- package/lib/action-bar/style/less.d.ts +0 -1
- package/lib/action-bar/style/less.js +0 -2
- package/lib/action-bar-button/index.less +0 -38
- package/lib/action-bar-button/style/less.d.ts +0 -1
- package/lib/action-bar-button/style/less.js +0 -7
- package/lib/action-bar-icon/index.less +0 -34
- package/lib/action-bar-icon/style/less.d.ts +0 -1
- package/lib/action-bar-icon/style/less.js +0 -5
- package/lib/action-sheet/index.less +0 -131
- package/lib/action-sheet/style/less.d.ts +0 -1
- package/lib/action-sheet/style/less.js +0 -7
- package/lib/address-edit/index.less +0 -39
- package/lib/address-edit/style/less.d.ts +0 -1
- package/lib/address-edit/style/less.js +0 -13
- package/lib/address-list/index.less +0 -110
- package/lib/address-list/style/less.d.ts +0 -1
- package/lib/address-list/style/less.js +0 -11
- package/lib/area/style/less.d.ts +0 -1
- package/lib/area/style/less.js +0 -3
- package/lib/badge/index.less +0 -72
- package/lib/badge/style/less.d.ts +0 -1
- package/lib/badge/style/less.js +0 -2
- package/lib/button/index.less +0 -241
- package/lib/button/style/less.d.ts +0 -1
- package/lib/button/style/less.js +0 -5
- package/lib/calendar/index.less +0 -217
- package/lib/calendar/style/less.d.ts +0 -1
- package/lib/calendar/style/less.js +0 -10
- package/lib/card/index.less +0 -126
- package/lib/card/style/less.d.ts +0 -1
- package/lib/card/style/less.js +0 -6
- package/lib/cascader/index.less +0 -92
- package/lib/cascader/style/less.d.ts +0 -1
- package/lib/cascader/style/less.js +0 -9
- package/lib/cell/index.less +0 -119
- package/lib/cell/style/less.d.ts +0 -1
- package/lib/cell/style/less.js +0 -4
- package/lib/cell-group/index.less +0 -32
- package/lib/cell-group/style/less.d.ts +0 -1
- package/lib/cell-group/style/less.js +0 -2
- package/lib/checkbox/index.less +0 -96
- package/lib/checkbox/style/less.d.ts +0 -1
- package/lib/checkbox/style/less.js +0 -5
- package/lib/checkbox-group/index.less +0 -6
- package/lib/checkbox-group/style/less.d.ts +0 -1
- package/lib/checkbox-group/style/less.js +0 -2
- package/lib/circle/index.less +0 -49
- package/lib/circle/style/less.d.ts +0 -1
- package/lib/circle/style/less.js +0 -2
- package/lib/col/index.less +0 -19
- package/lib/col/style/less.d.ts +0 -1
- package/lib/col/style/less.js +0 -3
- package/lib/collapse/style/less.d.ts +0 -1
- package/lib/collapse/style/less.js +0 -1
- package/lib/collapse-item/index.less +0 -75
- package/lib/collapse-item/style/less.d.ts +0 -1
- package/lib/collapse-item/style/less.js +0 -5
- package/lib/config-provider/style/less.d.ts +0 -1
- package/lib/config-provider/style/less.js +0 -1
- package/lib/contact-card/index.less +0 -47
- package/lib/contact-card/style/less.d.ts +0 -1
- package/lib/contact-card/style/less.js +0 -5
- package/lib/contact-edit/index.less +0 -37
- package/lib/contact-edit/style/less.d.ts +0 -1
- package/lib/contact-edit/style/less.js +0 -9
- package/lib/contact-list/index.less +0 -65
- package/lib/contact-list/style/less.d.ts +0 -1
- package/lib/contact-list/style/less.js +0 -11
- package/lib/count-down/index.less +0 -11
- package/lib/count-down/style/less.d.ts +0 -1
- package/lib/count-down/style/less.js +0 -2
- package/lib/coupon/index.less +0 -127
- package/lib/coupon/style/less.d.ts +0 -1
- package/lib/coupon/style/less.js +0 -6
- package/lib/coupon-cell/index.less +0 -9
- package/lib/coupon-cell/style/less.d.ts +0 -1
- package/lib/coupon-cell/style/less.js +0 -5
- package/lib/coupon-list/index.less +0 -86
- package/lib/coupon-list/style/less.d.ts +0 -1
- package/lib/coupon-list/style/less.js +0 -17
- package/lib/date-picker/style/less.d.ts +0 -1
- package/lib/date-picker/style/less.js +0 -3
- package/lib/dialog/index.less +0 -140
- package/lib/dialog/style/less.d.ts +0 -1
- package/lib/dialog/style/less.js +0 -10
- package/lib/divider/index.less +0 -73
- package/lib/divider/style/less.d.ts +0 -1
- package/lib/divider/style/less.js +0 -2
- package/lib/dropdown-item/index.less +0 -41
- package/lib/dropdown-item/style/less.d.ts +0 -1
- package/lib/dropdown-item/style/less.js +0 -8
- package/lib/dropdown-menu/index.less +0 -80
- package/lib/dropdown-menu/style/less.d.ts +0 -1
- package/lib/dropdown-menu/style/less.js +0 -2
- package/lib/empty/Images.d.ts +0 -4
- package/lib/empty/Images.js +0 -290
- package/lib/empty/index.less +0 -41
- package/lib/empty/style/less.d.ts +0 -1
- package/lib/empty/style/less.js +0 -2
- package/lib/field/index.less +0 -196
- package/lib/field/style/less.d.ts +0 -1
- package/lib/field/style/less.js +0 -5
- package/lib/form/style/less.d.ts +0 -1
- package/lib/form/style/less.js +0 -1
- package/lib/grid/index.less +0 -4
- package/lib/grid/style/less.d.ts +0 -1
- package/lib/grid/style/less.js +0 -2
- package/lib/grid-item/index.less +0 -97
- package/lib/grid-item/style/less.d.ts +0 -1
- package/lib/grid-item/style/less.js +0 -5
- package/lib/icon/index.less +0 -10
- package/lib/icon/style/less.d.ts +0 -1
- package/lib/icon/style/less.js +0 -3
- package/lib/image/index.less +0 -55
- package/lib/image/style/less.d.ts +0 -1
- package/lib/image/style/less.js +0 -4
- package/lib/image-preview/index.less +0 -110
- package/lib/image-preview/style/less.d.ts +0 -1
- package/lib/image-preview/style/less.js +0 -10
- package/lib/index-anchor/index.less +0 -31
- package/lib/index-anchor/style/less.d.ts +0 -1
- package/lib/index-anchor/style/less.js +0 -3
- package/lib/index-bar/index.less +0 -33
- package/lib/index-bar/style/less.d.ts +0 -1
- package/lib/index-bar/style/less.js +0 -2
- package/lib/index.less +0 -80
- package/lib/lazyload/style/less.d.ts +0 -1
- package/lib/lazyload/style/less.js +0 -1
- package/lib/list/index.less +0 -29
- package/lib/list/style/less.d.ts +0 -1
- package/lib/list/style/less.js +0 -3
- package/lib/loading/index.less +0 -109
- package/lib/loading/style/less.d.ts +0 -1
- package/lib/loading/style/less.js +0 -2
- package/lib/locale/style/less.d.ts +0 -1
- package/lib/locale/style/less.js +0 -1
- package/lib/nav-bar/index.less +0 -78
- package/lib/nav-bar/style/less.d.ts +0 -1
- package/lib/nav-bar/style/less.js +0 -4
- package/lib/notice-bar/index.less +0 -70
- package/lib/notice-bar/style/less.d.ts +0 -1
- package/lib/notice-bar/style/less.js +0 -4
- package/lib/notify/index.less +0 -42
- package/lib/notify/style/less.d.ts +0 -1
- package/lib/notify/style/less.js +0 -6
- package/lib/number-keyboard/index.less +0 -159
- package/lib/number-keyboard/style/less.d.ts +0 -1
- package/lib/number-keyboard/style/less.js +0 -3
- package/lib/overlay/index.less +0 -14
- package/lib/overlay/style/less.d.ts +0 -1
- package/lib/overlay/style/less.js +0 -2
- package/lib/pagination/index.less +0 -89
- package/lib/pagination/style/less.d.ts +0 -1
- package/lib/pagination/style/less.js +0 -2
- package/lib/password-input/index.less +0 -100
- package/lib/password-input/style/less.d.ts +0 -1
- package/lib/password-input/style/less.js +0 -2
- package/lib/picker/index.less +0 -138
- package/lib/picker/style/less.d.ts +0 -1
- package/lib/picker/style/less.js +0 -3
- package/lib/popover/index.less +0 -288
- package/lib/popover/style/less.d.ts +0 -1
- package/lib/popover/style/less.js +0 -6
- package/lib/popup/index.less +0 -139
- package/lib/popup/style/less.d.ts +0 -1
- package/lib/popup/style/less.js +0 -5
- package/lib/progress/index.less +0 -53
- package/lib/progress/style/less.d.ts +0 -1
- package/lib/progress/style/less.js +0 -2
- package/lib/pull-refresh/index.less +0 -36
- package/lib/pull-refresh/style/less.d.ts +0 -1
- package/lib/pull-refresh/style/less.js +0 -3
- package/lib/radio/index.less +0 -96
- package/lib/radio/style/less.d.ts +0 -1
- package/lib/radio/style/less.js +0 -6
- package/lib/radio-group/index.less +0 -6
- package/lib/radio-group/style/less.d.ts +0 -1
- package/lib/radio-group/style/less.js +0 -2
- package/lib/rate/index.less +0 -52
- package/lib/rate/style/less.d.ts +0 -1
- package/lib/rate/style/less.js +0 -4
- package/lib/row/index.less +0 -32
- package/lib/row/style/less.d.ts +0 -1
- package/lib/row/style/less.js +0 -2
- package/lib/search/index.less +0 -76
- package/lib/search/style/less.d.ts +0 -1
- package/lib/search/style/less.js +0 -6
- package/lib/share-sheet/index.less +0 -152
- package/lib/share-sheet/style/less.d.ts +0 -1
- package/lib/share-sheet/style/less.js +0 -6
- package/lib/sidebar/index.less +0 -9
- package/lib/sidebar/style/less.d.ts +0 -1
- package/lib/sidebar/style/less.js +0 -2
- package/lib/sidebar-item/index.less +0 -72
- package/lib/sidebar-item/style/less.d.ts +0 -1
- package/lib/sidebar-item/style/less.js +0 -4
- package/lib/skeleton/index.less +0 -73
- package/lib/skeleton/style/less.d.ts +0 -1
- package/lib/skeleton/style/less.js +0 -2
- package/lib/slider/index.less +0 -104
- package/lib/slider/style/less.d.ts +0 -1
- package/lib/slider/style/less.js +0 -2
- package/lib/ssr.js +0 -7
- package/lib/ssr.mjs +0 -1
- package/lib/step/index.less +0 -147
- package/lib/step/style/less.d.ts +0 -1
- package/lib/step/style/less.js +0 -5
- package/lib/stepper/index.less +0 -129
- package/lib/stepper/style/less.d.ts +0 -1
- package/lib/stepper/style/less.js +0 -2
- package/lib/steps/index.less +0 -23
- package/lib/steps/style/less.d.ts +0 -1
- package/lib/steps/style/less.js +0 -2
- package/lib/sticky/index.less +0 -10
- package/lib/sticky/style/less.d.ts +0 -1
- package/lib/sticky/style/less.js +0 -2
- package/lib/style/animation.less +0 -135
- package/lib/style/base.less +0 -89
- package/lib/style/css-variables.less +0 -90
- package/lib/style/mixins/clearfix.less +0 -7
- package/lib/style/mixins/ellipsis.less +0 -15
- package/lib/style/mixins/hairline.less +0 -37
- package/lib/style/normalize.less +0 -36
- package/lib/submit-bar/index.less +0 -97
- package/lib/submit-bar/style/less.d.ts +0 -1
- package/lib/submit-bar/style/less.js +0 -6
- package/lib/swipe/index.less +0 -65
- package/lib/swipe/style/less.d.ts +0 -1
- package/lib/swipe/style/less.js +0 -2
- package/lib/swipe-cell/index.less +0 -27
- package/lib/swipe-cell/style/less.d.ts +0 -1
- package/lib/swipe-cell/style/less.js +0 -2
- package/lib/swipe-item/index.less +0 -6
- package/lib/swipe-item/style/less.d.ts +0 -1
- package/lib/swipe-item/style/less.js +0 -3
- package/lib/switch/index.less +0 -75
- package/lib/switch/style/less.d.ts +0 -1
- package/lib/switch/style/less.js +0 -3
- package/lib/tab/index.less +0 -15
- package/lib/tab/style/less.d.ts +0 -1
- package/lib/tab/style/less.js +0 -7
- package/lib/tabbar/index.less +0 -20
- package/lib/tabbar/style/less.d.ts +0 -1
- package/lib/tabbar/style/less.js +0 -2
- package/lib/tabbar-item/index.less +0 -44
- package/lib/tabbar-item/style/less.d.ts +0 -1
- package/lib/tabbar-item/style/less.js +0 -5
- package/lib/tabs/index.less +0 -170
- package/lib/tabs/style/less.d.ts +0 -1
- package/lib/tabs/style/less.js +0 -5
- package/lib/tag/index.less +0 -115
- package/lib/tag/style/less.d.ts +0 -1
- package/lib/tag/style/less.js +0 -4
- package/lib/time-picker/style/less.d.ts +0 -1
- package/lib/time-picker/style/less.js +0 -3
- package/lib/toast/index.less +0 -89
- package/lib/toast/style/less.d.ts +0 -1
- package/lib/toast/style/less.js +0 -7
- package/lib/tree-select/index.less +0 -68
- package/lib/tree-select/style/less.d.ts +0 -1
- package/lib/tree-select/style/less.js +0 -6
- package/lib/uploader/index.less +0 -191
- package/lib/uploader/style/less.d.ts +0 -1
- package/lib/uploader/style/less.js +0 -11
- package/lib/vant.cjs.min.js +0 -1
- package/lib/vant.es.min.js +0 -14191
- package/vetur/attributes.json +0 -3514
- package/vetur/tags.json +0 -1208
@@ -73,24 +73,32 @@ class ReactiveListener {
|
|
73
73
|
}
|
74
74
|
renderLoading(cb) {
|
75
75
|
this.state.loading = true;
|
76
|
-
loadImageAsync(
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
76
|
+
loadImageAsync(
|
77
|
+
{
|
78
|
+
src: this.loading,
|
79
|
+
cors: this.cors
|
80
|
+
},
|
81
|
+
() => {
|
82
|
+
this.render("loading", false);
|
83
|
+
this.state.loading = false;
|
84
|
+
cb();
|
85
|
+
},
|
86
|
+
() => {
|
87
|
+
cb();
|
88
|
+
this.state.loading = false;
|
89
|
+
if (process.env.NODE_ENV !== "production" && !this.options.silent)
|
90
|
+
console.warn(
|
91
|
+
`[@vant/lazyload] load failed with loading image(${this.loading})`
|
92
|
+
);
|
93
|
+
}
|
94
|
+
);
|
89
95
|
}
|
90
96
|
load(onFinish = noop) {
|
91
97
|
if (this.attempt > this.options.attempt - 1 && this.state.error) {
|
92
98
|
if (process.env.NODE_ENV !== "production" && !this.options.silent) {
|
93
|
-
console.log(
|
99
|
+
console.log(
|
100
|
+
`[@vant/lazyload] ${this.src} tried too more than ${this.options.attempt} times`
|
101
|
+
);
|
94
102
|
}
|
95
103
|
onFinish();
|
96
104
|
return;
|
@@ -108,25 +116,29 @@ class ReactiveListener {
|
|
108
116
|
this.attempt++;
|
109
117
|
(_b = (_a = this.options.adapter).beforeLoad) == null ? void 0 : _b.call(_a, this, this.options);
|
110
118
|
this.record("loadStart");
|
111
|
-
loadImageAsync(
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
119
|
+
loadImageAsync(
|
120
|
+
{
|
121
|
+
src: this.src,
|
122
|
+
cors: this.cors
|
123
|
+
},
|
124
|
+
(data) => {
|
125
|
+
this.naturalHeight = data.naturalHeight;
|
126
|
+
this.naturalWidth = data.naturalWidth;
|
127
|
+
this.state.loaded = true;
|
128
|
+
this.state.error = false;
|
129
|
+
this.record("loadEnd");
|
130
|
+
this.render("loaded", false);
|
131
|
+
this.state.rendered = true;
|
132
|
+
this.imageCache.add(this.src);
|
133
|
+
onFinish();
|
134
|
+
},
|
135
|
+
(err) => {
|
136
|
+
!this.options.silent && console.error(err);
|
137
|
+
this.state.error = true;
|
138
|
+
this.state.loaded = false;
|
139
|
+
this.render("error", false);
|
140
|
+
}
|
141
|
+
);
|
130
142
|
});
|
131
143
|
}
|
132
144
|
render(state, cache) {
|
@@ -29,7 +29,10 @@ function getBestSelectionFromSrcset(el, scale) {
|
|
29
29
|
tmpWidth = 999998;
|
30
30
|
} else {
|
31
31
|
tmpSrc = item.substr(0, spaceIndex);
|
32
|
-
tmpWidth = parseInt(
|
32
|
+
tmpWidth = parseInt(
|
33
|
+
item.substr(spaceIndex + 1, item.length - spaceIndex - 2),
|
34
|
+
10
|
35
|
+
);
|
33
36
|
}
|
34
37
|
return [tmpWidth, tmpSrc];
|
35
38
|
});
|
package/es/list/List.mjs
CHANGED
package/es/loading/Loading.d.ts
CHANGED
@@ -22,7 +22,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
22
22
|
vertical: BooleanConstructor;
|
23
23
|
textSize: (NumberConstructor | StringConstructor)[];
|
24
24
|
textColor: StringConstructor;
|
25
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
25
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
26
26
|
size: (NumberConstructor | StringConstructor)[];
|
27
27
|
type: {
|
28
28
|
type: import("vue").PropType<LoadingType>;
|
package/es/loading/index.d.ts
CHANGED
@@ -8,7 +8,7 @@ export declare const Loading: import("../utils").WithInstall<import("vue").Defin
|
|
8
8
|
vertical: BooleanConstructor;
|
9
9
|
textSize: (NumberConstructor | StringConstructor)[];
|
10
10
|
textColor: StringConstructor;
|
11
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
11
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
12
12
|
size: (NumberConstructor | StringConstructor)[];
|
13
13
|
type: {
|
14
14
|
type: import("vue").PropType<import("./Loading").LoadingType>;
|
package/es/locale/index.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
declare type Message = Record<string, any>;
|
2
2
|
export declare const Locale: {
|
3
3
|
messages(): Message;
|
4
|
-
use(newLang: string, newMessages?: Message
|
4
|
+
use(newLang: string, newMessages?: Message): void;
|
5
5
|
add(newMessages?: Message): void;
|
6
6
|
};
|
7
7
|
export default Locale;
|
@@ -1,102 +1,6 @@
|
|
1
|
-
import { App } from 'vue';
|
2
1
|
import { type ComponentInstance } from '../utils';
|
3
2
|
import type { NotifyMessage, NotifyOptions } from './types';
|
4
|
-
declare
|
5
|
-
declare
|
6
|
-
|
7
|
-
|
8
|
-
var setDefaultOptions: (options: NotifyOptions) => void;
|
9
|
-
var resetDefaultOptions: () => void;
|
10
|
-
var Component: import("../utils").WithInstall<import("vue").DefineComponent<{
|
11
|
-
show: BooleanConstructor;
|
12
|
-
zIndex: (NumberConstructor | StringConstructor)[];
|
13
|
-
overlay: {
|
14
|
-
type: BooleanConstructor;
|
15
|
-
default: true;
|
16
|
-
};
|
17
|
-
duration: (NumberConstructor | StringConstructor)[];
|
18
|
-
teleport: import("vue").PropType<string | import("vue").RendererElement | null | undefined>;
|
19
|
-
lockScroll: {
|
20
|
-
type: BooleanConstructor;
|
21
|
-
default: true;
|
22
|
-
};
|
23
|
-
lazyRender: {
|
24
|
-
type: BooleanConstructor;
|
25
|
-
default: true;
|
26
|
-
};
|
27
|
-
beforeClose: import("vue").PropType<import("../utils").Interceptor>;
|
28
|
-
overlayStyle: import("vue").PropType<import("vue").CSSProperties>;
|
29
|
-
overlayClass: import("vue").PropType<unknown>;
|
30
|
-
transitionAppear: BooleanConstructor;
|
31
|
-
closeOnClickOverlay: {
|
32
|
-
type: BooleanConstructor;
|
33
|
-
default: true;
|
34
|
-
};
|
35
|
-
} & {
|
36
|
-
type: {
|
37
|
-
type: import("vue").PropType<import("./types").NotifyType>;
|
38
|
-
default: import("./types").NotifyType;
|
39
|
-
};
|
40
|
-
color: StringConstructor;
|
41
|
-
message: (NumberConstructor | StringConstructor)[];
|
42
|
-
position: {
|
43
|
-
type: import("vue").PropType<import("./types").NotifyPosition>;
|
44
|
-
default: import("./types").NotifyPosition;
|
45
|
-
};
|
46
|
-
className: import("vue").PropType<unknown>;
|
47
|
-
background: StringConstructor;
|
48
|
-
lockScroll: BooleanConstructor;
|
49
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:show"[], "update:show", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
50
|
-
show: BooleanConstructor;
|
51
|
-
zIndex: (NumberConstructor | StringConstructor)[];
|
52
|
-
overlay: {
|
53
|
-
type: BooleanConstructor;
|
54
|
-
default: true;
|
55
|
-
};
|
56
|
-
duration: (NumberConstructor | StringConstructor)[];
|
57
|
-
teleport: import("vue").PropType<string | import("vue").RendererElement | null | undefined>;
|
58
|
-
lockScroll: {
|
59
|
-
type: BooleanConstructor;
|
60
|
-
default: true;
|
61
|
-
};
|
62
|
-
lazyRender: {
|
63
|
-
type: BooleanConstructor;
|
64
|
-
default: true;
|
65
|
-
};
|
66
|
-
beforeClose: import("vue").PropType<import("../utils").Interceptor>;
|
67
|
-
overlayStyle: import("vue").PropType<import("vue").CSSProperties>;
|
68
|
-
overlayClass: import("vue").PropType<unknown>;
|
69
|
-
transitionAppear: BooleanConstructor;
|
70
|
-
closeOnClickOverlay: {
|
71
|
-
type: BooleanConstructor;
|
72
|
-
default: true;
|
73
|
-
};
|
74
|
-
} & {
|
75
|
-
type: {
|
76
|
-
type: import("vue").PropType<import("./types").NotifyType>;
|
77
|
-
default: import("./types").NotifyType;
|
78
|
-
};
|
79
|
-
color: StringConstructor;
|
80
|
-
message: (NumberConstructor | StringConstructor)[];
|
81
|
-
position: {
|
82
|
-
type: import("vue").PropType<import("./types").NotifyPosition>;
|
83
|
-
default: import("./types").NotifyPosition;
|
84
|
-
};
|
85
|
-
className: import("vue").PropType<unknown>;
|
86
|
-
background: StringConstructor;
|
87
|
-
lockScroll: BooleanConstructor;
|
88
|
-
}>> & {
|
89
|
-
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
90
|
-
}, {
|
91
|
-
type: import("./types").NotifyType;
|
92
|
-
position: import("./types").NotifyPosition;
|
93
|
-
overlay: boolean;
|
94
|
-
show: boolean;
|
95
|
-
lockScroll: boolean;
|
96
|
-
lazyRender: boolean;
|
97
|
-
transitionAppear: boolean;
|
98
|
-
closeOnClickOverlay: boolean;
|
99
|
-
}>>;
|
100
|
-
var install: (app: App<any>) => void;
|
101
|
-
}
|
102
|
-
export { Notify };
|
3
|
+
export declare const closeNotify: () => void;
|
4
|
+
export declare function showNotify(options: NotifyMessage | NotifyOptions): ComponentInstance | undefined;
|
5
|
+
export declare const setNotifyDefaultOptions: (options: NotifyOptions) => NotifyOptions;
|
6
|
+
export declare const resetNotifyDefaultOptions: () => void;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { createVNode as _createVNode, mergeProps as _mergeProps } from "vue";
|
2
|
-
import { extend, isObject, inBrowser
|
2
|
+
import { extend, isObject, inBrowser } from "../utils/index.mjs";
|
3
3
|
import { mountComponent, usePopupState } from "../utils/mount-component.mjs";
|
4
4
|
import VanNotify from "./Notify.mjs";
|
5
5
|
let timer;
|
@@ -22,21 +22,6 @@ function initInstance() {
|
|
22
22
|
}
|
23
23
|
}));
|
24
24
|
}
|
25
|
-
function Notify(options) {
|
26
|
-
if (!inBrowser) {
|
27
|
-
return;
|
28
|
-
}
|
29
|
-
if (!instance) {
|
30
|
-
initInstance();
|
31
|
-
}
|
32
|
-
options = extend({}, Notify.currentOptions, parseOptions(options));
|
33
|
-
instance.open(options);
|
34
|
-
clearTimeout(timer);
|
35
|
-
if (options.duration > 0) {
|
36
|
-
timer = window.setTimeout(Notify.clear, options.duration);
|
37
|
-
}
|
38
|
-
return instance;
|
39
|
-
}
|
40
25
|
const getDefaultOptions = () => ({
|
41
26
|
type: "danger",
|
42
27
|
color: void 0,
|
@@ -50,23 +35,34 @@ const getDefaultOptions = () => ({
|
|
50
35
|
lockScroll: false,
|
51
36
|
background: void 0
|
52
37
|
});
|
53
|
-
|
38
|
+
let currentOptions = getDefaultOptions();
|
39
|
+
const closeNotify = () => {
|
54
40
|
if (instance) {
|
55
41
|
instance.toggle(false);
|
56
42
|
}
|
57
43
|
};
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
}
|
62
|
-
|
63
|
-
|
64
|
-
}
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
44
|
+
function showNotify(options) {
|
45
|
+
if (!inBrowser) {
|
46
|
+
return;
|
47
|
+
}
|
48
|
+
if (!instance) {
|
49
|
+
initInstance();
|
50
|
+
}
|
51
|
+
options = extend({}, currentOptions, parseOptions(options));
|
52
|
+
instance.open(options);
|
53
|
+
clearTimeout(timer);
|
54
|
+
if (options.duration > 0) {
|
55
|
+
timer = window.setTimeout(closeNotify, options.duration);
|
56
|
+
}
|
57
|
+
return instance;
|
58
|
+
}
|
59
|
+
const setNotifyDefaultOptions = (options) => extend(currentOptions, options);
|
60
|
+
const resetNotifyDefaultOptions = () => {
|
61
|
+
currentOptions = getDefaultOptions();
|
69
62
|
};
|
70
63
|
export {
|
71
|
-
|
64
|
+
closeNotify,
|
65
|
+
resetNotifyDefaultOptions,
|
66
|
+
setNotifyDefaultOptions,
|
67
|
+
showNotify
|
72
68
|
};
|
package/es/notify/index.d.ts
CHANGED
@@ -1,6 +1,95 @@
|
|
1
|
-
|
1
|
+
export declare const Notify: import("../utils").WithInstall<import("vue").DefineComponent<{
|
2
|
+
show: BooleanConstructor;
|
3
|
+
zIndex: (NumberConstructor | StringConstructor)[];
|
4
|
+
overlay: {
|
5
|
+
type: BooleanConstructor;
|
6
|
+
default: true;
|
7
|
+
};
|
8
|
+
duration: (NumberConstructor | StringConstructor)[];
|
9
|
+
teleport: import("vue").PropType<string | import("vue").RendererElement | null | undefined>;
|
10
|
+
lockScroll: {
|
11
|
+
type: BooleanConstructor;
|
12
|
+
default: true;
|
13
|
+
};
|
14
|
+
lazyRender: {
|
15
|
+
type: BooleanConstructor;
|
16
|
+
default: true;
|
17
|
+
};
|
18
|
+
beforeClose: import("vue").PropType<import("../utils").Interceptor>;
|
19
|
+
overlayStyle: import("vue").PropType<import("vue").CSSProperties>;
|
20
|
+
overlayClass: import("vue").PropType<unknown>;
|
21
|
+
transitionAppear: BooleanConstructor;
|
22
|
+
closeOnClickOverlay: {
|
23
|
+
type: BooleanConstructor;
|
24
|
+
default: true;
|
25
|
+
};
|
26
|
+
} & {
|
27
|
+
type: {
|
28
|
+
type: import("vue").PropType<import("./types").NotifyType>;
|
29
|
+
default: import("./types").NotifyType;
|
30
|
+
};
|
31
|
+
color: StringConstructor;
|
32
|
+
message: (NumberConstructor | StringConstructor)[];
|
33
|
+
position: {
|
34
|
+
type: import("vue").PropType<import("./types").NotifyPosition>;
|
35
|
+
default: import("./types").NotifyPosition;
|
36
|
+
};
|
37
|
+
className: import("vue").PropType<unknown>;
|
38
|
+
background: StringConstructor;
|
39
|
+
lockScroll: BooleanConstructor;
|
40
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:show"[], "update:show", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
41
|
+
show: BooleanConstructor;
|
42
|
+
zIndex: (NumberConstructor | StringConstructor)[];
|
43
|
+
overlay: {
|
44
|
+
type: BooleanConstructor;
|
45
|
+
default: true;
|
46
|
+
};
|
47
|
+
duration: (NumberConstructor | StringConstructor)[];
|
48
|
+
teleport: import("vue").PropType<string | import("vue").RendererElement | null | undefined>;
|
49
|
+
lockScroll: {
|
50
|
+
type: BooleanConstructor;
|
51
|
+
default: true;
|
52
|
+
};
|
53
|
+
lazyRender: {
|
54
|
+
type: BooleanConstructor;
|
55
|
+
default: true;
|
56
|
+
};
|
57
|
+
beforeClose: import("vue").PropType<import("../utils").Interceptor>;
|
58
|
+
overlayStyle: import("vue").PropType<import("vue").CSSProperties>;
|
59
|
+
overlayClass: import("vue").PropType<unknown>;
|
60
|
+
transitionAppear: BooleanConstructor;
|
61
|
+
closeOnClickOverlay: {
|
62
|
+
type: BooleanConstructor;
|
63
|
+
default: true;
|
64
|
+
};
|
65
|
+
} & {
|
66
|
+
type: {
|
67
|
+
type: import("vue").PropType<import("./types").NotifyType>;
|
68
|
+
default: import("./types").NotifyType;
|
69
|
+
};
|
70
|
+
color: StringConstructor;
|
71
|
+
message: (NumberConstructor | StringConstructor)[];
|
72
|
+
position: {
|
73
|
+
type: import("vue").PropType<import("./types").NotifyPosition>;
|
74
|
+
default: import("./types").NotifyPosition;
|
75
|
+
};
|
76
|
+
className: import("vue").PropType<unknown>;
|
77
|
+
background: StringConstructor;
|
78
|
+
lockScroll: BooleanConstructor;
|
79
|
+
}>> & {
|
80
|
+
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
81
|
+
}, {
|
82
|
+
type: import("./types").NotifyType;
|
83
|
+
position: import("./types").NotifyPosition;
|
84
|
+
overlay: boolean;
|
85
|
+
show: boolean;
|
86
|
+
lockScroll: boolean;
|
87
|
+
lazyRender: boolean;
|
88
|
+
transitionAppear: boolean;
|
89
|
+
closeOnClickOverlay: boolean;
|
90
|
+
}>>;
|
2
91
|
export default Notify;
|
3
|
-
export {
|
92
|
+
export { showNotify, closeNotify, setNotifyDefaultOptions, resetNotifyDefaultOptions, } from './function-call';
|
4
93
|
export type { NotifyProps } from './Notify';
|
5
94
|
export type { NotifyType, NotifyOptions } from './types';
|
6
95
|
declare module 'vue' {
|
package/es/notify/index.mjs
CHANGED
@@ -1,6 +1,18 @@
|
|
1
|
-
import {
|
1
|
+
import { withInstall } from "../utils/index.mjs";
|
2
|
+
import _Notify from "./Notify.mjs";
|
3
|
+
const Notify = withInstall(_Notify);
|
2
4
|
var stdin_default = Notify;
|
5
|
+
import {
|
6
|
+
showNotify,
|
7
|
+
closeNotify,
|
8
|
+
setNotifyDefaultOptions,
|
9
|
+
resetNotifyDefaultOptions
|
10
|
+
} from "./function-call.mjs";
|
3
11
|
export {
|
4
12
|
Notify,
|
5
|
-
|
13
|
+
closeNotify,
|
14
|
+
stdin_default as default,
|
15
|
+
resetNotifyDefaultOptions,
|
16
|
+
setNotifyDefaultOptions,
|
17
|
+
showNotify
|
6
18
|
};
|
package/es/notify/types.d.ts
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
import { Notify } from './function-call';
|
2
1
|
import type { Numeric } from '../utils';
|
3
2
|
export declare type NotifyMessage = Numeric;
|
4
3
|
export declare type NotifyType = 'primary' | 'success' | 'danger' | 'warning';
|
@@ -16,8 +15,3 @@ export declare type NotifyOptions = {
|
|
16
15
|
onClose?: () => void;
|
17
16
|
onOpened?: () => void;
|
18
17
|
};
|
19
|
-
declare module '@vue/runtime-core' {
|
20
|
-
interface ComponentCustomProperties {
|
21
|
-
$notify: typeof Notify;
|
22
|
-
}
|
23
|
-
}
|
@@ -92,7 +92,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
92
92
|
type: PropType<string | string[]>;
|
93
93
|
default: string;
|
94
94
|
};
|
95
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("input" | "blur" | "update:modelValue" | "
|
95
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("input" | "blur" | "update:modelValue" | "close" | "hide" | "show" | "delete")[], "input" | "blur" | "update:modelValue" | "close" | "hide" | "show" | "delete", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
96
96
|
show: BooleanConstructor;
|
97
97
|
title: StringConstructor;
|
98
98
|
theme: {
|
@@ -204,9 +204,8 @@ var stdin_default = defineComponent({
|
|
204
204
|
unfit: !props.safeAreaInsetBottom,
|
205
205
|
"with-title": !!Title
|
206
206
|
}),
|
207
|
-
"onTouchstart": stopPropagation,
|
208
207
|
"onAnimationend": onAnimationEnd,
|
209
|
-
"
|
208
|
+
"onTouchstartPassive": stopPropagation
|
210
209
|
}, [Title, _createVNode("div", {
|
211
210
|
"class": bem("body")
|
212
211
|
}, [_createVNode("div", {
|
@@ -74,8 +74,8 @@ var stdin_default = defineComponent({
|
|
74
74
|
"class": bem("wrapper", {
|
75
75
|
wider: props.wider
|
76
76
|
}),
|
77
|
-
"
|
78
|
-
"
|
77
|
+
"onTouchstartPassive": onTouchStart,
|
78
|
+
"onTouchmovePassive": onTouchMove,
|
79
79
|
"onTouchend": onTouchEnd,
|
80
80
|
"onTouchcancel": onTouchEnd
|
81
81
|
}, [_createVNode("div", {
|
@@ -43,7 +43,7 @@ export declare const NumberKeyboard: import("../utils").WithInstall<import("vue"
|
|
43
43
|
type: import("vue").PropType<string | string[]>;
|
44
44
|
default: string;
|
45
45
|
};
|
46
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("input" | "blur" | "update:modelValue" | "
|
46
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("input" | "blur" | "update:modelValue" | "close" | "hide" | "show" | "delete")[], "input" | "blur" | "update:modelValue" | "close" | "hide" | "show" | "delete", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
47
47
|
show: BooleanConstructor;
|
48
48
|
title: StringConstructor;
|
49
49
|
theme: {
|
package/es/overlay/Overlay.d.ts
CHANGED
@@ -29,7 +29,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
29
29
|
default: true;
|
30
30
|
};
|
31
31
|
customStyle: PropType<CSSProperties>;
|
32
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
32
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
33
33
|
show: BooleanConstructor;
|
34
34
|
zIndex: (NumberConstructor | StringConstructor)[];
|
35
35
|
duration: (NumberConstructor | StringConstructor)[];
|
package/es/overlay/Overlay.mjs
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
import { withDirectives as _withDirectives, createVNode as _createVNode, vShow as _vShow } from "vue";
|
2
|
-
import { Transition, defineComponent } from "vue";
|
3
|
-
import {
|
2
|
+
import { ref, Transition, defineComponent } from "vue";
|
3
|
+
import { isDef, extend, truthProp, numericProp, unknownProp, preventDefault, createNamespace, getZIndexStyle } from "../utils/index.mjs";
|
4
|
+
import { useEventListener } from "@vant/use";
|
4
5
|
import { useLazyRender } from "../composables/use-lazy-render.mjs";
|
5
6
|
const [name, bem] = createNamespace("overlay");
|
6
7
|
const overlayProps = {
|
@@ -18,9 +19,12 @@ var stdin_default = defineComponent({
|
|
18
19
|
setup(props, {
|
19
20
|
slots
|
20
21
|
}) {
|
22
|
+
const root = ref();
|
21
23
|
const lazyRender = useLazyRender(() => props.show || !props.lazyRender);
|
22
|
-
const
|
23
|
-
|
24
|
+
const onTouchMove = (event) => {
|
25
|
+
if (props.lockScroll) {
|
26
|
+
preventDefault(event, true);
|
27
|
+
}
|
24
28
|
};
|
25
29
|
const renderOverlay = lazyRender(() => {
|
26
30
|
var _a;
|
@@ -29,11 +33,14 @@ var stdin_default = defineComponent({
|
|
29
33
|
style.animationDuration = `${props.duration}s`;
|
30
34
|
}
|
31
35
|
return _withDirectives(_createVNode("div", {
|
36
|
+
"ref": root,
|
32
37
|
"style": style,
|
33
|
-
"class": [bem(), props.className]
|
34
|
-
"onTouchmove": props.lockScroll ? preventTouchMove : noop
|
38
|
+
"class": [bem(), props.className]
|
35
39
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]), [[_vShow, props.show]]);
|
36
40
|
});
|
41
|
+
useEventListener("touchmove", onTouchMove, {
|
42
|
+
target: root
|
43
|
+
});
|
37
44
|
return () => _createVNode(Transition, {
|
38
45
|
"name": "van-fade",
|
39
46
|
"appear": true
|
package/es/overlay/index.d.ts
CHANGED
@@ -12,7 +12,7 @@ export declare const Overlay: import("../utils").WithInstall<import("vue").Defin
|
|
12
12
|
default: true;
|
13
13
|
};
|
14
14
|
customStyle: import("vue").PropType<import("vue").CSSProperties>;
|
15
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
15
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
16
16
|
show: BooleanConstructor;
|
17
17
|
zIndex: (NumberConstructor | StringConstructor)[];
|
18
18
|
duration: (NumberConstructor | StringConstructor)[];
|
@@ -66,7 +66,7 @@ var stdin_default = defineComponent({
|
|
66
66
|
"class": [bem("security"), {
|
67
67
|
[BORDER_SURROUND]: !props.gutter
|
68
68
|
}],
|
69
|
-
"
|
69
|
+
"onTouchstartPassive": onTouchStart
|
70
70
|
}, [renderPoints()]), info && _createVNode("div", {
|
71
71
|
"class": bem(props.errorInfo ? "error-info" : "info")
|
72
72
|
}, [info])]);
|