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
package/lib/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/lib/notify/index.js
CHANGED
@@ -1,6 +1,8 @@
|
|
1
|
+
var __create = Object.create;
|
1
2
|
var __defProp = Object.defineProperty;
|
2
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
3
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
4
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
5
7
|
var __export = (target, all) => {
|
6
8
|
for (var name in all)
|
@@ -14,12 +16,23 @@ var __copyProps = (to, from, except, desc) => {
|
|
14
16
|
}
|
15
17
|
return to;
|
16
18
|
};
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
20
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
21
|
+
mod
|
22
|
+
));
|
17
23
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
18
24
|
var stdin_exports = {};
|
19
25
|
__export(stdin_exports, {
|
20
|
-
Notify: () =>
|
21
|
-
|
26
|
+
Notify: () => Notify,
|
27
|
+
closeNotify: () => import_function_call.closeNotify,
|
28
|
+
default: () => stdin_default,
|
29
|
+
resetNotifyDefaultOptions: () => import_function_call.resetNotifyDefaultOptions,
|
30
|
+
setNotifyDefaultOptions: () => import_function_call.setNotifyDefaultOptions,
|
31
|
+
showNotify: () => import_function_call.showNotify
|
22
32
|
});
|
23
33
|
module.exports = __toCommonJS(stdin_exports);
|
34
|
+
var import_utils = require("../utils");
|
35
|
+
var import_Notify = __toESM(require("./Notify"));
|
24
36
|
var import_function_call = require("./function-call");
|
25
|
-
|
37
|
+
const Notify = (0, import_utils.withInstall)(import_Notify.default);
|
38
|
+
var stdin_default = Notify;
|
package/lib/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: {
|
@@ -16,7 +16,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
16
16
|
}
|
17
17
|
return to;
|
18
18
|
};
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
20
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
21
|
+
mod
|
22
|
+
));
|
20
23
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
21
24
|
var stdin_exports = {};
|
22
25
|
__export(stdin_exports, {
|
@@ -229,9 +232,8 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
229
232
|
unfit: !props.safeAreaInsetBottom,
|
230
233
|
"with-title": !!Title
|
231
234
|
}),
|
232
|
-
"onTouchstart": import_utils.stopPropagation,
|
233
235
|
"onAnimationend": onAnimationEnd,
|
234
|
-
"
|
236
|
+
"onTouchstartPassive": import_utils.stopPropagation
|
235
237
|
}, [Title, (0, import_vue.createVNode)("div", {
|
236
238
|
"class": bem("body")
|
237
239
|
}, [(0, import_vue.createVNode)("div", {
|
@@ -96,8 +96,8 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
96
96
|
"class": bem("wrapper", {
|
97
97
|
wider: props.wider
|
98
98
|
}),
|
99
|
-
"
|
100
|
-
"
|
99
|
+
"onTouchstartPassive": onTouchStart,
|
100
|
+
"onTouchmovePassive": onTouchMove,
|
101
101
|
"onTouchend": onTouchEnd,
|
102
102
|
"onTouchcancel": onTouchEnd
|
103
103
|
}, [(0, import_vue.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: {
|
@@ -16,7 +16,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
16
16
|
}
|
17
17
|
return to;
|
18
18
|
};
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
20
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
21
|
+
mod
|
22
|
+
));
|
20
23
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
21
24
|
var stdin_exports = {};
|
22
25
|
__export(stdin_exports, {
|
package/lib/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/lib/overlay/Overlay.js
CHANGED
@@ -23,6 +23,7 @@ module.exports = __toCommonJS(stdin_exports);
|
|
23
23
|
var import_vue = require("vue");
|
24
24
|
var import_vue2 = require("vue");
|
25
25
|
var import_utils = require("../utils");
|
26
|
+
var import_use = require("@vant/use");
|
26
27
|
var import_use_lazy_render = require("../composables/use-lazy-render");
|
27
28
|
const [name, bem] = (0, import_utils.createNamespace)("overlay");
|
28
29
|
const overlayProps = {
|
@@ -40,9 +41,12 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
40
41
|
setup(props, {
|
41
42
|
slots
|
42
43
|
}) {
|
44
|
+
const root = (0, import_vue2.ref)();
|
43
45
|
const lazyRender = (0, import_use_lazy_render.useLazyRender)(() => props.show || !props.lazyRender);
|
44
|
-
const
|
45
|
-
(
|
46
|
+
const onTouchMove = (event) => {
|
47
|
+
if (props.lockScroll) {
|
48
|
+
(0, import_utils.preventDefault)(event, true);
|
49
|
+
}
|
46
50
|
};
|
47
51
|
const renderOverlay = lazyRender(() => {
|
48
52
|
var _a;
|
@@ -51,11 +55,14 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
51
55
|
style.animationDuration = `${props.duration}s`;
|
52
56
|
}
|
53
57
|
return (0, import_vue.withDirectives)((0, import_vue.createVNode)("div", {
|
58
|
+
"ref": root,
|
54
59
|
"style": style,
|
55
|
-
"class": [bem(), props.className]
|
56
|
-
"onTouchmove": props.lockScroll ? preventTouchMove : import_utils.noop
|
60
|
+
"class": [bem(), props.className]
|
57
61
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]), [[import_vue.vShow, props.show]]);
|
58
62
|
});
|
63
|
+
(0, import_use.useEventListener)("touchmove", onTouchMove, {
|
64
|
+
target: root
|
65
|
+
});
|
59
66
|
return () => (0, import_vue.createVNode)(import_vue2.Transition, {
|
60
67
|
"name": "van-fade",
|
61
68
|
"appear": true
|
package/lib/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)[];
|
package/lib/overlay/index.js
CHANGED
@@ -16,7 +16,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
16
16
|
}
|
17
17
|
return to;
|
18
18
|
};
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
20
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
21
|
+
mod
|
22
|
+
));
|
20
23
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
21
24
|
var stdin_exports = {};
|
22
25
|
__export(stdin_exports, {
|
package/lib/pagination/index.js
CHANGED
@@ -16,7 +16,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
16
16
|
}
|
17
17
|
return to;
|
18
18
|
};
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
20
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
21
|
+
mod
|
22
|
+
));
|
20
23
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
21
24
|
var stdin_exports = {};
|
22
25
|
__export(stdin_exports, {
|
@@ -88,7 +88,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
88
88
|
"class": [bem("security"), {
|
89
89
|
[import_utils.BORDER_SURROUND]: !props.gutter
|
90
90
|
}],
|
91
|
-
"
|
91
|
+
"onTouchstartPassive": onTouchStart
|
92
92
|
}, [renderPoints()]), info && (0, import_vue.createVNode)("div", {
|
93
93
|
"class": bem(props.errorInfo ? "error-info" : "info")
|
94
94
|
}, [info])]);
|
@@ -16,7 +16,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
16
16
|
}
|
17
17
|
return to;
|
18
18
|
};
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
20
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
21
|
+
mod
|
22
|
+
));
|
20
23
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
21
24
|
var stdin_exports = {};
|
22
25
|
__export(stdin_exports, {
|
package/lib/picker/Picker.d.ts
CHANGED
@@ -2,7 +2,6 @@ import { type PropType, type ExtractPropTypes } from 'vue';
|
|
2
2
|
import { type Numeric } from '../utils';
|
3
3
|
import type { PickerColumn, PickerOption, PickerFieldNames, PickerToolbarPosition } from './types';
|
4
4
|
export declare const pickerSharedProps: {
|
5
|
-
title: StringConstructor;
|
6
5
|
loading: BooleanConstructor;
|
7
6
|
readonly: BooleanConstructor;
|
8
7
|
allowHtml: BooleanConstructor;
|
@@ -22,11 +21,12 @@ export declare const pickerSharedProps: {
|
|
22
21
|
type: (NumberConstructor | StringConstructor)[];
|
23
22
|
default: number;
|
24
23
|
};
|
24
|
+
} & {
|
25
|
+
title: StringConstructor;
|
25
26
|
cancelButtonText: StringConstructor;
|
26
27
|
confirmButtonText: StringConstructor;
|
27
28
|
};
|
28
29
|
declare const pickerProps: {
|
29
|
-
title: StringConstructor;
|
30
30
|
loading: BooleanConstructor;
|
31
31
|
readonly: BooleanConstructor;
|
32
32
|
allowHtml: BooleanConstructor;
|
@@ -46,6 +46,8 @@ declare const pickerProps: {
|
|
46
46
|
type: (NumberConstructor | StringConstructor)[];
|
47
47
|
default: number;
|
48
48
|
};
|
49
|
+
} & {
|
50
|
+
title: StringConstructor;
|
49
51
|
cancelButtonText: StringConstructor;
|
50
52
|
confirmButtonText: StringConstructor;
|
51
53
|
} & {
|
@@ -65,7 +67,6 @@ declare const pickerProps: {
|
|
65
67
|
};
|
66
68
|
export declare type PickerProps = ExtractPropTypes<typeof pickerProps>;
|
67
69
|
declare const _default: import("vue").DefineComponent<{
|
68
|
-
title: StringConstructor;
|
69
70
|
loading: BooleanConstructor;
|
70
71
|
readonly: BooleanConstructor;
|
71
72
|
allowHtml: BooleanConstructor;
|
@@ -85,6 +86,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
85
86
|
type: (NumberConstructor | StringConstructor)[];
|
86
87
|
default: number;
|
87
88
|
};
|
89
|
+
} & {
|
90
|
+
title: StringConstructor;
|
88
91
|
cancelButtonText: StringConstructor;
|
89
92
|
confirmButtonText: StringConstructor;
|
90
93
|
} & {
|
@@ -101,8 +104,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
101
104
|
default: PickerToolbarPosition;
|
102
105
|
};
|
103
106
|
columnsFieldNames: PropType<PickerFieldNames>;
|
104
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change" | "cancel" | "confirm")[], "update:modelValue" | "change" | "cancel" | "confirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
105
|
-
title: StringConstructor;
|
107
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change" | "cancel" | "clickOption" | "confirm")[], "update:modelValue" | "change" | "cancel" | "clickOption" | "confirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
106
108
|
loading: BooleanConstructor;
|
107
109
|
readonly: BooleanConstructor;
|
108
110
|
allowHtml: BooleanConstructor;
|
@@ -122,6 +124,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
122
124
|
type: (NumberConstructor | StringConstructor)[];
|
123
125
|
default: number;
|
124
126
|
};
|
127
|
+
} & {
|
128
|
+
title: StringConstructor;
|
125
129
|
cancelButtonText: StringConstructor;
|
126
130
|
confirmButtonText: StringConstructor;
|
127
131
|
} & {
|
@@ -142,6 +146,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
142
146
|
onChange?: ((...args: any[]) => any) | undefined;
|
143
147
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
144
148
|
onCancel?: ((...args: any[]) => any) | undefined;
|
149
|
+
onClickOption?: ((...args: any[]) => any) | undefined;
|
145
150
|
onConfirm?: ((...args: any[]) => any) | undefined;
|
146
151
|
}, {
|
147
152
|
modelValue: Numeric[];
|
package/lib/picker/Picker.js
CHANGED
@@ -16,7 +16,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
16
16
|
}
|
17
17
|
return to;
|
18
18
|
};
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
20
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
21
|
+
mod
|
22
|
+
));
|
20
23
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
21
24
|
var stdin_exports = {};
|
22
25
|
__export(stdin_exports, {
|
@@ -32,19 +35,17 @@ var import_use = require("@vant/use");
|
|
32
35
|
var import_use_expose = require("../composables/use-expose");
|
33
36
|
var import_loading = require("../loading");
|
34
37
|
var import_PickerColumn = __toESM(require("./PickerColumn"));
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
+
var import_PickerToolbar = __toESM(require("./PickerToolbar"));
|
39
|
+
var import_PickerGroup = require("../picker-group/PickerGroup");
|
40
|
+
const pickerSharedProps = (0, import_utils.extend)({
|
38
41
|
loading: Boolean,
|
39
42
|
readonly: Boolean,
|
40
43
|
allowHtml: Boolean,
|
41
44
|
optionHeight: (0, import_utils.makeNumericProp)(44),
|
42
45
|
showToolbar: import_utils.truthProp,
|
43
46
|
swipeDuration: (0, import_utils.makeNumericProp)(1e3),
|
44
|
-
visibleOptionNum: (0, import_utils.makeNumericProp)(6)
|
45
|
-
|
46
|
-
confirmButtonText: String
|
47
|
-
};
|
47
|
+
visibleOptionNum: (0, import_utils.makeNumericProp)(6)
|
48
|
+
}, import_PickerToolbar.pickerToolbarProps);
|
48
49
|
const pickerProps = (0, import_utils.extend)({}, pickerSharedProps, {
|
49
50
|
columns: (0, import_utils.makeArrayProp)(),
|
50
51
|
modelValue: (0, import_utils.makeArrayProp)(),
|
@@ -52,14 +53,18 @@ const pickerProps = (0, import_utils.extend)({}, pickerSharedProps, {
|
|
52
53
|
columnsFieldNames: Object
|
53
54
|
});
|
54
55
|
var stdin_default = (0, import_vue2.defineComponent)({
|
55
|
-
name,
|
56
|
+
name: import_utils2.name,
|
56
57
|
props: pickerProps,
|
57
|
-
emits: ["confirm", "cancel", "change", "update:modelValue"],
|
58
|
+
emits: ["confirm", "cancel", "change", "clickOption", "update:modelValue"],
|
58
59
|
setup(props, {
|
59
60
|
emit,
|
60
61
|
slots
|
61
62
|
}) {
|
62
|
-
const
|
63
|
+
const columnsRef = (0, import_vue2.ref)();
|
64
|
+
const selectedValues = (0, import_vue2.ref)(props.modelValue.slice(0));
|
65
|
+
const {
|
66
|
+
parent
|
67
|
+
} = (0, import_use.useParent)(import_PickerGroup.PICKER_GROUP_KEY);
|
63
68
|
const {
|
64
69
|
children,
|
65
70
|
linkChildren
|
@@ -90,6 +95,10 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
90
95
|
selectedValues.value = newValues;
|
91
96
|
}
|
92
97
|
};
|
98
|
+
const getEventParams = () => ({
|
99
|
+
selectedValues: selectedValues.value.slice(0),
|
100
|
+
selectedOptions: selectedOptions.value
|
101
|
+
});
|
93
102
|
const onChange = (value, columnIndex) => {
|
94
103
|
setValue(columnIndex, value);
|
95
104
|
if (columnsType.value === "cascade") {
|
@@ -100,56 +109,21 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
100
109
|
}
|
101
110
|
});
|
102
111
|
}
|
103
|
-
emit("change", {
|
104
|
-
columnIndex
|
105
|
-
|
106
|
-
selectedOptions: selectedOptions.value
|
107
|
-
});
|
112
|
+
emit("change", (0, import_utils.extend)({
|
113
|
+
columnIndex
|
114
|
+
}, getEventParams()));
|
108
115
|
};
|
116
|
+
const onClickOption = (currentOption, columnIndex) => emit("clickOption", (0, import_utils.extend)({
|
117
|
+
columnIndex,
|
118
|
+
currentOption
|
119
|
+
}, getEventParams()));
|
109
120
|
const confirm = () => {
|
110
121
|
children.forEach((child) => child.stopMomentum());
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
});
|
115
|
-
};
|
116
|
-
const cancel = () => emit("cancel", {
|
117
|
-
selectedValues: selectedValues.value,
|
118
|
-
selectedOptions: selectedOptions.value
|
119
|
-
});
|
120
|
-
const renderTitle = () => {
|
121
|
-
if (slots.title) {
|
122
|
-
return slots.title();
|
123
|
-
}
|
124
|
-
if (props.title) {
|
125
|
-
return (0, import_vue.createVNode)("div", {
|
126
|
-
"class": [bem("title"), "van-ellipsis"]
|
127
|
-
}, [props.title]);
|
128
|
-
}
|
129
|
-
};
|
130
|
-
const renderCancel = () => {
|
131
|
-
const text = props.cancelButtonText || t("cancel");
|
132
|
-
return (0, import_vue.createVNode)("button", {
|
133
|
-
"type": "button",
|
134
|
-
"class": [bem("cancel"), import_utils.HAPTICS_FEEDBACK],
|
135
|
-
"onClick": cancel
|
136
|
-
}, [slots.cancel ? slots.cancel() : text]);
|
137
|
-
};
|
138
|
-
const renderConfirm = () => {
|
139
|
-
const text = props.confirmButtonText || t("confirm");
|
140
|
-
return (0, import_vue.createVNode)("button", {
|
141
|
-
"type": "button",
|
142
|
-
"class": [bem("confirm"), import_utils.HAPTICS_FEEDBACK],
|
143
|
-
"onClick": confirm
|
144
|
-
}, [slots.confirm ? slots.confirm() : text]);
|
145
|
-
};
|
146
|
-
const renderToolbar = () => {
|
147
|
-
if (props.showToolbar) {
|
148
|
-
return (0, import_vue.createVNode)("div", {
|
149
|
-
"class": bem("toolbar")
|
150
|
-
}, [slots.toolbar ? slots.toolbar() : [renderCancel(), renderTitle(), renderConfirm()]]);
|
151
|
-
}
|
122
|
+
const params = getEventParams();
|
123
|
+
emit("confirm", params);
|
124
|
+
return params;
|
152
125
|
};
|
126
|
+
const cancel = () => emit("cancel", getEventParams());
|
153
127
|
const renderColumnItems = () => currentColumns.value.map((options, columnIndex) => (0, import_vue.createVNode)(import_PickerColumn.default, {
|
154
128
|
"value": selectedValues.value[columnIndex],
|
155
129
|
"fields": fields.value,
|
@@ -159,7 +133,8 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
159
133
|
"optionHeight": optionHeight.value,
|
160
134
|
"swipeDuration": props.swipeDuration,
|
161
135
|
"visibleOptionNum": props.visibleOptionNum,
|
162
|
-
"onChange": (value) => onChange(value, columnIndex)
|
136
|
+
"onChange": (value) => onChange(value, columnIndex),
|
137
|
+
"onClickOption": (option) => onClickOption(option, columnIndex)
|
163
138
|
}, {
|
164
139
|
option: slots.option
|
165
140
|
}));
|
@@ -172,10 +147,10 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
172
147
|
backgroundSize: `100% ${(wrapHeight - optionHeight.value) / 2}px`
|
173
148
|
};
|
174
149
|
return [(0, import_vue.createVNode)("div", {
|
175
|
-
"class": bem("mask"),
|
150
|
+
"class": (0, import_utils2.bem)("mask"),
|
176
151
|
"style": maskStyle
|
177
152
|
}, null), (0, import_vue.createVNode)("div", {
|
178
|
-
"class": [import_utils.BORDER_UNSET_TOP_BOTTOM, bem("frame")],
|
153
|
+
"class": [import_utils.BORDER_UNSET_TOP_BOTTOM, (0, import_utils2.bem)("frame")],
|
179
154
|
"style": frameStyle
|
180
155
|
}, null)];
|
181
156
|
}
|
@@ -186,11 +161,19 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
186
161
|
height: `${wrapHeight}px`
|
187
162
|
};
|
188
163
|
return (0, import_vue.createVNode)("div", {
|
189
|
-
"
|
190
|
-
"
|
191
|
-
"
|
164
|
+
"ref": columnsRef,
|
165
|
+
"class": (0, import_utils2.bem)("columns"),
|
166
|
+
"style": columnsStyle
|
192
167
|
}, [renderColumnItems(), renderMask(wrapHeight)]);
|
193
168
|
};
|
169
|
+
const renderToolbar = () => {
|
170
|
+
if (props.showToolbar && !parent) {
|
171
|
+
return (0, import_vue.createVNode)(import_PickerToolbar.default, (0, import_vue.mergeProps)((0, import_utils.pick)(props, import_PickerToolbar.pickerToolbarPropKeys), {
|
172
|
+
"onConfirm": confirm,
|
173
|
+
"onCancel": cancel
|
174
|
+
}), (0, import_utils.pick)(slots, import_PickerToolbar.pickerToolbarSlots));
|
175
|
+
}
|
176
|
+
};
|
194
177
|
(0, import_vue2.watch)(currentColumns, (columns) => {
|
195
178
|
columns.forEach((options, index) => {
|
196
179
|
if (options.length && !(0, import_utils2.isOptionExist)(options, selectedValues.value[index], fields.value)) {
|
@@ -202,18 +185,21 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
202
185
|
});
|
203
186
|
(0, import_vue2.watch)(() => props.modelValue, (newValues) => {
|
204
187
|
if (!(0, import_utils.isSameValue)(newValues, selectedValues.value)) {
|
205
|
-
selectedValues.value = newValues;
|
188
|
+
selectedValues.value = newValues.slice(0);
|
206
189
|
}
|
207
190
|
}, {
|
208
191
|
deep: true
|
209
192
|
});
|
210
193
|
(0, import_vue2.watch)(selectedValues, (newValues) => {
|
211
194
|
if (!(0, import_utils.isSameValue)(newValues, props.modelValue)) {
|
212
|
-
emit("update:modelValue", newValues);
|
195
|
+
emit("update:modelValue", newValues.slice(0));
|
213
196
|
}
|
214
197
|
}, {
|
215
198
|
immediate: true
|
216
199
|
});
|
200
|
+
(0, import_use.useEventListener)("touchmove", import_utils.preventDefault, {
|
201
|
+
target: columnsRef
|
202
|
+
});
|
217
203
|
const getSelectedOptions = () => selectedOptions.value;
|
218
204
|
(0, import_use_expose.useExpose)({
|
219
205
|
confirm,
|
@@ -222,9 +208,9 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
222
208
|
return () => {
|
223
209
|
var _a, _b;
|
224
210
|
return (0, import_vue.createVNode)("div", {
|
225
|
-
"class": bem()
|
211
|
+
"class": (0, import_utils2.bem)()
|
226
212
|
}, [props.toolbarPosition === "top" ? renderToolbar() : null, props.loading ? (0, import_vue.createVNode)(import_loading.Loading, {
|
227
|
-
"class": bem("loading")
|
213
|
+
"class": (0, import_utils2.bem)("loading")
|
228
214
|
}, null) : null, (_a = slots["columns-top"]) == null ? void 0 : _a.call(slots), renderColumns(), (_b = slots["columns-bottom"]) == null ? void 0 : _b.call(slots), props.toolbarPosition === "bottom" ? renderToolbar() : null]);
|
229
215
|
};
|
230
216
|
}
|
@@ -25,7 +25,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
25
25
|
type: (NumberConstructor | StringConstructor)[];
|
26
26
|
required: true;
|
27
27
|
};
|
28
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
28
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "clickOption")[], "change" | "clickOption", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
29
29
|
value: (NumberConstructor | StringConstructor)[];
|
30
30
|
fields: {
|
31
31
|
type: PropType<Required<PickerFieldNames>>;
|
@@ -51,6 +51,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
51
51
|
};
|
52
52
|
}>> & {
|
53
53
|
onChange?: ((...args: any[]) => any) | undefined;
|
54
|
+
onClickOption?: ((...args: any[]) => any) | undefined;
|
54
55
|
}, {
|
55
56
|
readonly: boolean;
|
56
57
|
allowHtml: boolean;
|