vant 3.2.0 → 3.2.4
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/changelog.generated.md +128 -61
- package/es/action-bar/ActionBar.d.ts +1 -1
- package/es/action-bar/index.d.ts +2 -3
- package/es/action-bar/index.js +2 -3
- package/es/action-bar-button/ActionBarButton.d.ts +1 -1
- package/es/action-bar-button/index.d.ts +2 -3
- package/es/action-bar-button/index.js +2 -3
- package/es/action-bar-icon/ActionBarIcon.d.ts +1 -1
- package/es/action-bar-icon/index.d.ts +2 -3
- package/es/action-bar-icon/index.js +2 -3
- package/es/action-sheet/ActionSheet.d.ts +1 -1
- package/es/action-sheet/index.d.ts +2 -3
- package/es/action-sheet/index.js +2 -3
- package/es/address-edit/AddressEdit.js +3 -3
- package/es/address-edit/AddressEditDetail.js +3 -19
- package/es/address-edit/index.css +1 -1
- package/es/address-edit/index.d.ts +3 -2
- package/es/address-edit/index.js +2 -3
- package/es/address-edit/index.less +0 -7
- package/es/address-edit/var.less +0 -2
- package/es/address-list/index.d.ts +1 -2
- package/es/address-list/index.js +2 -3
- package/es/area/Area.d.ts +1 -1
- package/es/area/Area.js +5 -2
- package/es/area/index.d.ts +4 -3
- package/es/area/index.js +2 -3
- package/es/badge/Badge.d.ts +2 -2
- package/es/badge/index.d.ts +3 -4
- package/es/badge/index.js +2 -3
- package/es/button/Button.d.ts +2 -2
- package/es/button/index.css +1 -1
- package/es/button/index.d.ts +3 -4
- package/es/button/index.js +2 -3
- package/es/button/index.less +7 -7
- package/es/calendar/Calendar.d.ts +3 -4
- package/es/calendar/Calendar.js +62 -56
- package/es/calendar/CalendarMonth.d.ts +29 -3
- package/es/calendar/CalendarMonth.js +34 -28
- package/es/calendar/index.d.ts +5 -5
- package/es/calendar/index.js +2 -3
- package/es/calendar/types.d.ts +10 -1
- package/es/card/index.d.ts +1 -2
- package/es/card/index.js +2 -3
- package/es/cascader/Cascader.d.ts +1 -1
- package/es/cascader/index.d.ts +2 -3
- package/es/cascader/index.js +2 -3
- package/es/cell/Cell.d.ts +2 -2
- package/es/cell/index.d.ts +3 -4
- package/es/cell/index.js +2 -3
- package/es/cell-group/CellGroup.d.ts +1 -1
- package/es/cell-group/index.d.ts +2 -3
- package/es/cell-group/index.js +2 -3
- package/es/checkbox/Checkbox.d.ts +2 -2
- package/es/checkbox/Checker.d.ts +4 -4
- package/es/checkbox/Checker.js +1 -1
- package/es/checkbox/index.d.ts +5 -4
- package/es/checkbox/index.js +2 -3
- package/es/checkbox-group/index.d.ts +3 -2
- package/es/checkbox-group/index.js +2 -3
- package/es/circle/Circle.d.ts +8 -0
- package/es/circle/Circle.js +21 -1
- package/es/circle/index.d.ts +9 -2
- package/es/circle/index.js +2 -3
- package/es/col/Col.d.ts +1 -1
- package/es/col/index.d.ts +2 -3
- package/es/col/index.js +2 -3
- package/es/collapse/index.d.ts +1 -2
- package/es/collapse/index.js +2 -3
- package/es/collapse-item/CollapseItem.d.ts +4 -4
- package/es/collapse-item/CollapseItem.js +4 -2
- package/es/collapse-item/index.d.ts +7 -6
- package/es/collapse-item/index.js +2 -3
- package/es/composables/use-height.js +3 -5
- package/es/composables/use-lock-scroll.js +2 -10
- package/es/config-provider/ConfigProvider.d.ts +2 -2
- package/es/config-provider/index.d.ts +3 -4
- package/es/config-provider/index.js +2 -3
- package/es/contact-card/index.d.ts +1 -2
- package/es/contact-card/index.js +2 -3
- package/es/contact-edit/ContactEdit.js +6 -8
- package/es/contact-edit/index.d.ts +1 -2
- package/es/contact-edit/index.js +2 -3
- package/es/contact-list/index.d.ts +1 -2
- package/es/contact-list/index.js +2 -3
- package/es/count-down/CountDown.d.ts +2 -10
- package/es/count-down/index.d.ts +4 -3
- package/es/count-down/index.js +2 -3
- package/es/count-down/types.d.ts +11 -0
- package/es/count-down/types.js +1 -0
- package/es/coupon/Coupon.d.ts +1 -1
- package/es/coupon/index.d.ts +2 -3
- package/es/coupon/index.js +2 -3
- package/es/coupon-cell/CouponCell.d.ts +1 -1
- package/es/coupon-cell/CouponCell.js +1 -1
- package/es/coupon-cell/index.d.ts +2 -3
- package/es/coupon-cell/index.js +2 -3
- package/es/coupon-list/CouponList.js +5 -12
- package/es/coupon-list/index.css +1 -1
- package/es/coupon-list/index.d.ts +1 -2
- package/es/coupon-list/index.js +2 -3
- package/es/coupon-list/index.less +6 -1
- package/es/datetime-picker/DatePicker.d.ts +1 -1
- package/es/datetime-picker/DatePicker.js +4 -3
- package/es/datetime-picker/DatetimePicker.d.ts +3 -2
- package/es/datetime-picker/DatetimePicker.js +1 -1
- package/es/datetime-picker/TimePicker.d.ts +1 -1
- package/es/datetime-picker/TimePicker.js +3 -1
- package/es/datetime-picker/index.d.ts +6 -4
- package/es/datetime-picker/index.js +2 -3
- package/es/dialog/Dialog.d.ts +3 -6
- package/es/dialog/Dialog.js +2 -1
- package/es/dialog/function-call.d.ts +15 -40
- package/es/dialog/function-call.js +3 -2
- package/es/dialog/index.d.ts +2 -3
- package/es/dialog/types.d.ts +36 -0
- package/es/dialog/types.js +1 -0
- package/es/divider/Divider.d.ts +1 -1
- package/es/divider/index.d.ts +2 -3
- package/es/divider/index.js +2 -3
- package/es/dropdown-item/DropdownItem.d.ts +1 -1
- package/es/dropdown-item/index.d.ts +4 -3
- package/es/dropdown-item/index.js +2 -3
- package/es/dropdown-menu/DropdownMenu.d.ts +1 -1
- package/es/dropdown-menu/index.d.ts +4 -3
- package/es/dropdown-menu/index.js +2 -3
- package/es/empty/Empty.d.ts +1 -1
- package/es/empty/index.d.ts +2 -3
- package/es/empty/index.js +2 -3
- package/es/field/Field.d.ts +19 -12
- package/es/field/Field.js +8 -3
- package/es/field/index.css +1 -1
- package/es/field/index.d.ts +17 -13
- package/es/field/index.js +2 -3
- package/es/field/index.less +5 -3
- package/es/field/var.less +1 -1
- package/es/form/index.d.ts +3 -2
- package/es/form/index.js +2 -3
- package/es/grid/Grid.d.ts +3 -3
- package/es/grid/index.d.ts +4 -5
- package/es/grid/index.js +2 -3
- package/es/grid-item/GridItem.d.ts +1 -1
- package/es/grid-item/index.d.ts +2 -3
- package/es/grid-item/index.js +2 -3
- package/es/icon/Icon.d.ts +1 -1
- package/es/icon/index.css +1 -1
- package/es/icon/index.d.ts +2 -3
- package/es/icon/index.js +2 -3
- package/es/icon/index.less +1 -1
- package/es/image/Image.d.ts +5 -5
- package/es/image/Image.js +1 -2
- package/es/image/index.d.ts +6 -7
- package/es/image/index.js +2 -3
- package/es/image-preview/ImagePreview.d.ts +4 -4
- package/es/image-preview/ImagePreviewItem.d.ts +1 -1
- package/es/image-preview/function-call.d.ts +5 -5
- package/es/image-preview/function-call.js +5 -5
- package/es/image-preview/index.d.ts +2 -0
- package/es/index-anchor/IndexAnchor.d.ts +1 -1
- package/es/index-anchor/index.d.ts +2 -3
- package/es/index-anchor/index.js +2 -3
- package/es/index-bar/index.d.ts +3 -2
- package/es/index-bar/index.js +2 -3
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/list/index.d.ts +3 -2
- package/es/list/index.js +2 -3
- package/es/loading/Loading.d.ts +1 -1
- package/es/loading/index.d.ts +2 -3
- package/es/loading/index.js +2 -3
- package/es/locale/index.d.ts +1 -2
- package/es/locale/index.js +2 -3
- package/es/locale/lang/de-DE-formal.d.ts +1 -8
- package/es/locale/lang/de-DE-formal.js +2 -9
- package/es/locale/lang/de-DE.d.ts +1 -8
- package/es/locale/lang/de-DE.js +2 -9
- package/es/locale/lang/en-US.d.ts +1 -8
- package/es/locale/lang/en-US.js +2 -9
- package/es/locale/lang/es-ES.d.ts +1 -8
- package/es/locale/lang/es-ES.js +2 -9
- package/es/locale/lang/fr-FR.d.ts +1 -8
- package/es/locale/lang/fr-FR.js +2 -9
- package/es/locale/lang/ja-JP.d.ts +1 -8
- package/es/locale/lang/ja-JP.js +4 -11
- package/es/locale/lang/nb-NO.d.ts +1 -8
- package/es/locale/lang/nb-NO.js +2 -9
- package/es/locale/lang/ro-RO.d.ts +1 -8
- package/es/locale/lang/ro-RO.js +2 -9
- package/es/locale/lang/ru-RU.d.ts +1 -8
- package/es/locale/lang/ru-RU.js +2 -9
- package/es/locale/lang/th-TH.d.ts +1 -8
- package/es/locale/lang/th-TH.js +2 -9
- package/es/locale/lang/tr-TR.d.ts +1 -8
- package/es/locale/lang/tr-TR.js +2 -9
- package/es/locale/lang/zh-CN.d.ts +1 -8
- package/es/locale/lang/zh-CN.js +6 -13
- package/es/locale/lang/zh-HK.d.ts +1 -8
- package/es/locale/lang/zh-HK.js +5 -12
- package/es/locale/lang/zh-TW.d.ts +1 -8
- package/es/locale/lang/zh-TW.js +5 -12
- package/es/nav-bar/index.d.ts +1 -2
- package/es/nav-bar/index.js +2 -3
- package/es/notice-bar/index.d.ts +3 -2
- package/es/notice-bar/index.js +2 -3
- package/es/notify/Notify.d.ts +2 -2
- package/es/notify/Notify.js +12 -15
- package/es/notify/function-call.d.ts +6 -19
- package/es/notify/function-call.js +3 -2
- package/es/notify/index.d.ts +2 -3
- package/es/notify/types.d.ts +20 -0
- package/es/notify/types.js +1 -0
- package/es/number-keyboard/index.css +1 -1
- package/es/number-keyboard/index.d.ts +1 -2
- package/es/number-keyboard/index.js +2 -3
- package/es/number-keyboard/index.less +2 -1
- package/es/number-keyboard/var.less +1 -0
- package/es/overlay/Overlay.d.ts +1 -1
- package/es/overlay/index.d.ts +2 -3
- package/es/overlay/index.js +2 -3
- package/es/pagination/index.d.ts +1 -2
- package/es/pagination/index.js +2 -3
- package/es/password-input/index.css +1 -1
- package/es/password-input/index.d.ts +1 -2
- package/es/password-input/index.js +2 -3
- package/es/password-input/index.less +2 -0
- package/es/password-input/var.less +1 -0
- package/es/picker/Picker.d.ts +3 -3
- package/es/picker/PickerColumn.d.ts +2 -2
- package/es/picker/index.css +1 -1
- package/es/picker/index.d.ts +6 -5
- package/es/picker/index.js +2 -3
- package/es/picker/types.d.ts +3 -3
- package/es/popover/Popover.d.ts +8 -0
- package/es/popover/Popover.js +25 -15
- package/es/popover/index.d.ts +8 -2
- package/es/popover/index.js +2 -3
- package/es/popup/Popup.js +9 -8
- package/es/popup/index.d.ts +1 -2
- package/es/popup/index.js +2 -3
- package/es/progress/Progress.d.ts +5 -2
- package/es/progress/Progress.js +7 -32
- package/es/progress/index.css +1 -1
- package/es/progress/index.d.ts +7 -4
- package/es/progress/index.js +2 -3
- package/es/progress/index.less +6 -1
- package/es/pull-refresh/index.d.ts +1 -2
- package/es/pull-refresh/index.js +2 -3
- package/es/radio/Radio.d.ts +2 -2
- package/es/radio/index.d.ts +3 -4
- package/es/radio/index.js +2 -3
- package/es/radio-group/index.d.ts +1 -2
- package/es/radio-group/index.js +2 -3
- package/es/rate/Rate.d.ts +2 -2
- package/es/rate/Rate.js +1 -1
- package/es/rate/index.d.ts +3 -4
- package/es/rate/index.js +2 -3
- package/es/row/Row.d.ts +2 -2
- package/es/row/index.d.ts +3 -4
- package/es/row/index.js +2 -3
- package/es/search/Search.d.ts +18 -6
- package/es/search/Search.js +4 -3
- package/es/search/index.d.ts +18 -8
- package/es/search/index.js +2 -3
- package/es/share-sheet/ShareSheet.d.ts +1 -1
- package/es/share-sheet/index.d.ts +2 -3
- package/es/share-sheet/index.js +2 -3
- package/es/sidebar/index.d.ts +1 -2
- package/es/sidebar/index.js +2 -3
- package/es/sidebar-item/index.d.ts +1 -2
- package/es/sidebar-item/index.js +2 -3
- package/es/skeleton/Skeleton.d.ts +1 -1
- package/es/skeleton/index.d.ts +2 -3
- package/es/skeleton/index.js +2 -3
- package/es/slider/Slider.d.ts +6 -1
- package/es/slider/Slider.js +53 -17
- package/es/slider/index.css +1 -1
- package/es/slider/index.d.ts +5 -2
- package/es/slider/index.js +2 -3
- package/es/slider/index.less +19 -23
- package/es/step/Step.d.ts +1 -1
- package/es/step/index.css +1 -1
- package/es/step/index.d.ts +1 -2
- package/es/step/index.js +2 -3
- package/es/step/index.less +1 -1
- package/es/stepper/index.d.ts +1 -2
- package/es/stepper/index.js +2 -3
- package/es/steps/index.d.ts +1 -2
- package/es/steps/index.js +2 -3
- package/es/sticky/index.d.ts +1 -2
- package/es/sticky/index.js +2 -3
- package/es/style/animation.css +1 -1
- package/es/style/animation.less +20 -20
- package/es/style/base.css +1 -1
- package/es/submit-bar/index.css +1 -1
- package/es/submit-bar/index.d.ts +1 -2
- package/es/submit-bar/index.js +2 -3
- package/es/submit-bar/index.less +3 -4
- package/es/swipe/Swipe.d.ts +5 -5
- package/es/swipe/Swipe.js +2 -1
- package/es/swipe/index.d.ts +8 -7
- package/es/swipe/index.js +2 -3
- package/es/swipe-cell/index.css +1 -1
- package/es/swipe-cell/index.d.ts +3 -2
- package/es/swipe-cell/index.js +2 -3
- package/es/swipe-item/SwipeItem.d.ts +1 -1
- package/es/swipe-item/index.d.ts +1 -2
- package/es/swipe-item/index.js +2 -3
- package/es/switch/index.css +1 -1
- package/es/switch/index.d.ts +1 -2
- package/es/switch/index.js +2 -3
- package/es/tab/Tab.d.ts +8 -1
- package/es/tab/Tab.js +3 -2
- package/es/tab/index.d.ts +9 -3
- package/es/tab/index.js +2 -3
- package/es/tabbar/index.d.ts +1 -2
- package/es/tabbar/index.js +2 -3
- package/es/tabbar-item/index.d.ts +1 -2
- package/es/tabbar-item/index.js +2 -3
- package/es/tabs/Tabs.js +4 -8
- package/es/tabs/TabsTitle.d.ts +8 -1
- package/es/tabs/TabsTitle.js +5 -3
- package/es/tabs/index.d.ts +3 -2
- package/es/tabs/index.js +2 -3
- package/es/tabs/utils.js +2 -4
- package/es/tag/index.d.ts +1 -2
- package/es/tag/index.js +2 -3
- package/es/toast/Toast.d.ts +1 -2
- package/es/toast/Toast.js +3 -4
- package/es/toast/function-call.d.ts +2 -25
- package/es/toast/function-call.js +3 -1
- package/es/toast/index.d.ts +2 -3
- package/es/toast/types.d.ts +32 -0
- package/es/toast/types.js +1 -0
- package/es/tree-select/index.css +1 -1
- package/es/tree-select/index.d.ts +1 -2
- package/es/tree-select/index.js +2 -3
- package/es/tree-select/index.less +1 -1
- package/es/uploader/Uploader.d.ts +3 -3
- package/es/uploader/index.css +1 -1
- package/es/uploader/index.d.ts +6 -5
- package/es/uploader/index.js +2 -3
- package/es/uploader/index.less +4 -5
- package/es/utils/validate.d.ts +0 -1
- package/es/utils/validate.js +0 -3
- package/es/utils/with-install.d.ts +1 -1
- package/es/utils/with-install.js +0 -1
- package/lib/action-bar/ActionBar.d.ts +1 -1
- package/lib/action-bar/index.d.ts +2 -3
- package/lib/action-bar/index.js +1 -1
- package/lib/action-bar-button/ActionBarButton.d.ts +1 -1
- package/lib/action-bar-button/index.d.ts +2 -3
- package/lib/action-bar-button/index.js +1 -1
- package/lib/action-bar-icon/ActionBarIcon.d.ts +1 -1
- package/lib/action-bar-icon/index.d.ts +2 -3
- package/lib/action-bar-icon/index.js +1 -1
- package/lib/action-sheet/ActionSheet.d.ts +1 -1
- package/lib/action-sheet/index.d.ts +2 -3
- package/lib/action-sheet/index.js +1 -1
- package/lib/address-edit/AddressEdit.js +3 -3
- package/lib/address-edit/AddressEditDetail.js +2 -18
- package/lib/address-edit/index.css +1 -1
- package/lib/address-edit/index.d.ts +3 -2
- package/lib/address-edit/index.js +1 -1
- package/lib/address-edit/index.less +0 -7
- package/lib/address-edit/var.less +0 -2
- package/lib/address-list/index.d.ts +1 -2
- package/lib/address-list/index.js +1 -1
- package/lib/area/Area.d.ts +1 -1
- package/lib/area/Area.js +5 -2
- package/lib/area/index.d.ts +4 -3
- package/lib/area/index.js +1 -1
- package/lib/badge/Badge.d.ts +2 -2
- package/lib/badge/index.d.ts +3 -4
- package/lib/badge/index.js +1 -1
- package/lib/button/Button.d.ts +2 -2
- package/lib/button/index.css +1 -1
- package/lib/button/index.d.ts +3 -4
- package/lib/button/index.js +1 -1
- package/lib/button/index.less +7 -7
- package/lib/calendar/Calendar.d.ts +3 -4
- package/lib/calendar/Calendar.js +60 -54
- package/lib/calendar/CalendarMonth.d.ts +29 -3
- package/lib/calendar/CalendarMonth.js +34 -28
- package/lib/calendar/index.d.ts +5 -5
- package/lib/calendar/index.js +1 -1
- package/lib/calendar/types.d.ts +10 -1
- package/lib/card/index.d.ts +1 -2
- package/lib/card/index.js +1 -1
- package/lib/cascader/Cascader.d.ts +1 -1
- package/lib/cascader/index.d.ts +2 -3
- package/lib/cascader/index.js +1 -1
- package/lib/cell/Cell.d.ts +2 -2
- package/lib/cell/index.d.ts +3 -4
- package/lib/cell/index.js +1 -1
- package/lib/cell-group/CellGroup.d.ts +1 -1
- package/lib/cell-group/index.d.ts +2 -3
- package/lib/cell-group/index.js +1 -1
- package/lib/checkbox/Checkbox.d.ts +2 -2
- package/lib/checkbox/Checker.d.ts +4 -4
- package/lib/checkbox/Checker.js +1 -1
- package/lib/checkbox/index.d.ts +5 -4
- package/lib/checkbox/index.js +1 -1
- package/lib/checkbox-group/index.d.ts +3 -2
- package/lib/checkbox-group/index.js +1 -1
- package/lib/circle/Circle.d.ts +8 -0
- package/lib/circle/Circle.js +21 -1
- package/lib/circle/index.d.ts +9 -2
- package/lib/circle/index.js +1 -1
- package/lib/col/Col.d.ts +1 -1
- package/lib/col/index.d.ts +2 -3
- package/lib/col/index.js +1 -1
- package/lib/collapse/index.d.ts +1 -2
- package/lib/collapse/index.js +1 -1
- package/lib/collapse-item/CollapseItem.d.ts +4 -4
- package/lib/collapse-item/CollapseItem.js +4 -2
- package/lib/collapse-item/index.d.ts +7 -6
- package/lib/collapse-item/index.js +1 -1
- package/lib/composables/use-height.js +3 -5
- package/lib/composables/use-lock-scroll.js +2 -10
- package/lib/config-provider/ConfigProvider.d.ts +2 -2
- package/lib/config-provider/index.d.ts +3 -4
- package/lib/config-provider/index.js +1 -1
- package/lib/contact-card/index.d.ts +1 -2
- package/lib/contact-card/index.js +1 -1
- package/lib/contact-edit/ContactEdit.js +6 -8
- package/lib/contact-edit/index.d.ts +1 -2
- package/lib/contact-edit/index.js +1 -1
- package/lib/contact-list/index.d.ts +1 -2
- package/lib/contact-list/index.js +1 -1
- package/lib/count-down/CountDown.d.ts +2 -10
- package/lib/count-down/index.d.ts +4 -3
- package/lib/count-down/index.js +1 -1
- package/lib/count-down/types.d.ts +11 -0
- package/lib/count-down/types.js +3 -0
- package/lib/coupon/Coupon.d.ts +1 -1
- package/lib/coupon/index.d.ts +2 -3
- package/lib/coupon/index.js +1 -1
- package/lib/coupon-cell/CouponCell.d.ts +1 -1
- package/lib/coupon-cell/CouponCell.js +1 -1
- package/lib/coupon-cell/index.d.ts +2 -3
- package/lib/coupon-cell/index.js +1 -1
- package/lib/coupon-list/CouponList.js +5 -13
- package/lib/coupon-list/index.css +1 -1
- package/lib/coupon-list/index.d.ts +1 -2
- package/lib/coupon-list/index.js +1 -1
- package/lib/coupon-list/index.less +6 -1
- package/lib/datetime-picker/DatePicker.d.ts +1 -1
- package/lib/datetime-picker/DatePicker.js +4 -3
- package/lib/datetime-picker/DatetimePicker.d.ts +3 -2
- package/lib/datetime-picker/TimePicker.d.ts +1 -1
- package/lib/datetime-picker/TimePicker.js +3 -1
- package/lib/datetime-picker/index.d.ts +6 -4
- package/lib/datetime-picker/index.js +1 -1
- package/lib/dialog/Dialog.d.ts +3 -6
- package/lib/dialog/function-call.d.ts +15 -40
- package/lib/dialog/function-call.js +4 -4
- package/lib/dialog/index.d.ts +2 -3
- package/lib/dialog/types.d.ts +36 -0
- package/lib/dialog/types.js +3 -0
- package/lib/divider/Divider.d.ts +1 -1
- package/lib/divider/index.d.ts +2 -3
- package/lib/divider/index.js +1 -1
- package/lib/dropdown-item/DropdownItem.d.ts +1 -1
- package/lib/dropdown-item/index.d.ts +4 -3
- package/lib/dropdown-item/index.js +1 -1
- package/lib/dropdown-menu/DropdownMenu.d.ts +1 -1
- package/lib/dropdown-menu/index.d.ts +4 -3
- package/lib/dropdown-menu/index.js +1 -1
- package/lib/empty/Empty.d.ts +1 -1
- package/lib/empty/index.d.ts +2 -3
- package/lib/empty/index.js +1 -1
- package/lib/field/Field.d.ts +19 -12
- package/lib/field/Field.js +8 -3
- package/lib/field/index.css +1 -1
- package/lib/field/index.d.ts +17 -13
- package/lib/field/index.js +1 -1
- package/lib/field/index.less +5 -3
- package/lib/field/var.less +1 -1
- package/lib/form/index.d.ts +3 -2
- package/lib/form/index.js +1 -1
- package/lib/grid/Grid.d.ts +3 -3
- package/lib/grid/index.d.ts +4 -5
- package/lib/grid/index.js +1 -1
- package/lib/grid-item/GridItem.d.ts +1 -1
- package/lib/grid-item/index.d.ts +2 -3
- package/lib/grid-item/index.js +1 -1
- package/lib/icon/Icon.d.ts +1 -1
- package/lib/icon/index.css +1 -1
- package/lib/icon/index.d.ts +2 -3
- package/lib/icon/index.js +1 -1
- package/lib/icon/index.less +1 -1
- package/lib/image/Image.d.ts +5 -5
- package/lib/image/Image.js +1 -2
- package/lib/image/index.d.ts +6 -7
- package/lib/image/index.js +1 -1
- package/lib/image-preview/ImagePreview.d.ts +4 -4
- package/lib/image-preview/ImagePreviewItem.d.ts +1 -1
- package/lib/image-preview/function-call.d.ts +5 -5
- package/lib/image-preview/function-call.js +5 -5
- package/lib/image-preview/index.d.ts +2 -0
- package/lib/index-anchor/IndexAnchor.d.ts +1 -1
- package/lib/index-anchor/index.d.ts +2 -3
- package/lib/index-anchor/index.js +1 -1
- package/lib/index-bar/index.d.ts +3 -2
- package/lib/index-bar/index.js +1 -1
- package/lib/index.css +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/list/index.d.ts +3 -2
- package/lib/list/index.js +1 -1
- package/lib/loading/Loading.d.ts +1 -1
- package/lib/loading/index.d.ts +2 -3
- package/lib/loading/index.js +1 -1
- package/lib/locale/index.d.ts +1 -2
- package/lib/locale/index.js +1 -1
- package/lib/locale/lang/de-DE-formal.d.ts +1 -8
- package/lib/locale/lang/de-DE-formal.js +2 -9
- package/lib/locale/lang/de-DE.d.ts +1 -8
- package/lib/locale/lang/de-DE.js +2 -9
- package/lib/locale/lang/en-US.d.ts +1 -8
- package/lib/locale/lang/en-US.js +2 -9
- package/lib/locale/lang/es-ES.d.ts +1 -8
- package/lib/locale/lang/es-ES.js +2 -9
- package/lib/locale/lang/fr-FR.d.ts +1 -8
- package/lib/locale/lang/fr-FR.js +2 -9
- package/lib/locale/lang/ja-JP.d.ts +1 -8
- package/lib/locale/lang/ja-JP.js +4 -11
- package/lib/locale/lang/nb-NO.d.ts +1 -8
- package/lib/locale/lang/nb-NO.js +2 -9
- package/lib/locale/lang/ro-RO.d.ts +1 -8
- package/lib/locale/lang/ro-RO.js +2 -9
- package/lib/locale/lang/ru-RU.d.ts +1 -8
- package/lib/locale/lang/ru-RU.js +2 -9
- package/lib/locale/lang/th-TH.d.ts +1 -8
- package/lib/locale/lang/th-TH.js +2 -9
- package/lib/locale/lang/tr-TR.d.ts +1 -8
- package/lib/locale/lang/tr-TR.js +2 -9
- package/lib/locale/lang/zh-CN.d.ts +1 -8
- package/lib/locale/lang/zh-CN.js +6 -13
- package/lib/locale/lang/zh-HK.d.ts +1 -8
- package/lib/locale/lang/zh-HK.js +5 -12
- package/lib/locale/lang/zh-TW.d.ts +1 -8
- package/lib/locale/lang/zh-TW.js +5 -12
- package/lib/nav-bar/index.d.ts +1 -2
- package/lib/nav-bar/index.js +1 -1
- package/lib/notice-bar/index.d.ts +3 -2
- package/lib/notice-bar/index.js +1 -1
- package/lib/notify/Notify.d.ts +2 -2
- package/lib/notify/Notify.js +12 -15
- package/lib/notify/function-call.d.ts +6 -19
- package/lib/notify/function-call.js +4 -4
- package/lib/notify/index.d.ts +2 -3
- package/lib/notify/types.d.ts +20 -0
- package/lib/notify/types.js +3 -0
- package/lib/number-keyboard/index.css +1 -1
- package/lib/number-keyboard/index.d.ts +1 -2
- package/lib/number-keyboard/index.js +1 -1
- package/lib/number-keyboard/index.less +2 -1
- package/lib/number-keyboard/var.less +1 -0
- package/lib/overlay/Overlay.d.ts +1 -1
- package/lib/overlay/index.d.ts +2 -3
- package/lib/overlay/index.js +1 -1
- package/lib/pagination/index.d.ts +1 -2
- package/lib/pagination/index.js +1 -1
- package/lib/password-input/index.css +1 -1
- package/lib/password-input/index.d.ts +1 -2
- package/lib/password-input/index.js +1 -1
- package/lib/password-input/index.less +2 -0
- package/lib/password-input/var.less +1 -0
- package/lib/picker/Picker.d.ts +3 -3
- package/lib/picker/PickerColumn.d.ts +2 -2
- package/lib/picker/index.css +1 -1
- package/lib/picker/index.d.ts +6 -5
- package/lib/picker/index.js +1 -1
- package/lib/picker/types.d.ts +3 -3
- package/lib/popover/Popover.d.ts +8 -0
- package/lib/popover/Popover.js +25 -15
- package/lib/popover/index.d.ts +8 -2
- package/lib/popover/index.js +1 -1
- package/lib/popup/Popup.js +9 -8
- package/lib/popup/index.d.ts +1 -2
- package/lib/popup/index.js +1 -1
- package/lib/progress/Progress.d.ts +5 -2
- package/lib/progress/Progress.js +6 -32
- package/lib/progress/index.css +1 -1
- package/lib/progress/index.d.ts +7 -4
- package/lib/progress/index.js +1 -1
- package/lib/progress/index.less +6 -1
- package/lib/pull-refresh/index.d.ts +1 -2
- package/lib/pull-refresh/index.js +1 -1
- package/lib/radio/Radio.d.ts +2 -2
- package/lib/radio/index.d.ts +3 -4
- package/lib/radio/index.js +1 -1
- package/lib/radio-group/index.d.ts +1 -2
- package/lib/radio-group/index.js +1 -1
- package/lib/rate/Rate.d.ts +2 -2
- package/lib/rate/Rate.js +1 -1
- package/lib/rate/index.d.ts +3 -4
- package/lib/rate/index.js +1 -1
- package/lib/row/Row.d.ts +2 -2
- package/lib/row/index.d.ts +3 -4
- package/lib/row/index.js +1 -1
- package/lib/search/Search.d.ts +18 -6
- package/lib/search/Search.js +3 -2
- package/lib/search/index.d.ts +18 -8
- package/lib/search/index.js +1 -1
- package/lib/share-sheet/ShareSheet.d.ts +1 -1
- package/lib/share-sheet/index.d.ts +2 -3
- package/lib/share-sheet/index.js +1 -1
- package/lib/sidebar/index.d.ts +1 -2
- package/lib/sidebar/index.js +1 -1
- package/lib/sidebar-item/index.d.ts +1 -2
- package/lib/sidebar-item/index.js +1 -1
- package/lib/skeleton/Skeleton.d.ts +1 -1
- package/lib/skeleton/index.d.ts +2 -3
- package/lib/skeleton/index.js +1 -1
- package/lib/slider/Slider.d.ts +6 -1
- package/lib/slider/Slider.js +53 -17
- package/lib/slider/index.css +1 -1
- package/lib/slider/index.d.ts +5 -2
- package/lib/slider/index.js +1 -1
- package/lib/slider/index.less +19 -23
- package/lib/step/Step.d.ts +1 -1
- package/lib/step/index.css +1 -1
- package/lib/step/index.d.ts +1 -2
- package/lib/step/index.js +1 -1
- package/lib/step/index.less +1 -1
- package/lib/stepper/index.d.ts +1 -2
- package/lib/stepper/index.js +1 -1
- package/lib/steps/index.d.ts +1 -2
- package/lib/steps/index.js +1 -1
- package/lib/sticky/index.d.ts +1 -2
- package/lib/sticky/index.js +1 -1
- package/lib/style/animation.css +1 -1
- package/lib/style/animation.less +20 -20
- package/lib/style/base.css +1 -1
- package/lib/submit-bar/index.css +1 -1
- package/lib/submit-bar/index.d.ts +1 -2
- package/lib/submit-bar/index.js +1 -1
- package/lib/submit-bar/index.less +3 -4
- package/lib/swipe/Swipe.d.ts +5 -5
- package/lib/swipe/Swipe.js +2 -1
- package/lib/swipe/index.d.ts +8 -7
- package/lib/swipe/index.js +1 -1
- package/lib/swipe-cell/index.css +1 -1
- package/lib/swipe-cell/index.d.ts +3 -2
- package/lib/swipe-cell/index.js +1 -1
- package/lib/swipe-item/SwipeItem.d.ts +1 -1
- package/lib/swipe-item/index.d.ts +1 -2
- package/lib/swipe-item/index.js +1 -1
- package/lib/switch/index.css +1 -1
- package/lib/switch/index.d.ts +1 -2
- package/lib/switch/index.js +1 -1
- package/lib/tab/Tab.d.ts +8 -1
- package/lib/tab/Tab.js +2 -1
- package/lib/tab/index.d.ts +9 -3
- package/lib/tab/index.js +1 -1
- package/lib/tabbar/index.d.ts +1 -2
- package/lib/tabbar/index.js +1 -1
- package/lib/tabbar-item/index.d.ts +1 -2
- package/lib/tabbar-item/index.js +1 -1
- package/lib/tabs/Tabs.js +2 -6
- package/lib/tabs/TabsTitle.d.ts +8 -1
- package/lib/tabs/TabsTitle.js +4 -2
- package/lib/tabs/index.d.ts +3 -2
- package/lib/tabs/index.js +1 -1
- package/lib/tabs/utils.js +1 -4
- package/lib/tag/index.d.ts +1 -2
- package/lib/tag/index.js +1 -1
- package/lib/toast/Toast.d.ts +1 -2
- package/lib/toast/Toast.js +1 -3
- package/lib/toast/function-call.d.ts +2 -25
- package/lib/toast/function-call.js +3 -1
- package/lib/toast/index.d.ts +2 -3
- package/lib/toast/types.d.ts +32 -0
- package/lib/toast/types.js +3 -0
- package/lib/tree-select/index.css +1 -1
- package/lib/tree-select/index.d.ts +1 -2
- package/lib/tree-select/index.js +1 -1
- package/lib/tree-select/index.less +1 -1
- package/lib/uploader/Uploader.d.ts +3 -3
- package/lib/uploader/index.css +1 -1
- package/lib/uploader/index.d.ts +6 -5
- package/lib/uploader/index.js +1 -1
- package/lib/uploader/index.less +4 -5
- package/lib/utils/validate.d.ts +0 -1
- package/lib/utils/validate.js +0 -5
- package/lib/utils/with-install.d.ts +1 -1
- package/lib/utils/with-install.js +0 -1
- package/lib/vant.es.js +15826 -0
- package/lib/vant.es.min.js +1 -0
- package/lib/vant.js +15157 -19779
- package/lib/vant.min.js +1 -1
- package/package.json +12 -18
- package/vetur/attributes.json +714 -684
- package/vetur/tags.json +243 -234
- package/vetur/web-types.json +2207 -2121
- package/LICENSE +0 -7
- package/README.md +0 -106
- package/README.zh-CN.md +0 -116
@@ -17,9 +17,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
17
17
|
} & {
|
18
18
|
tag: keyof HTMLElementTagNameMap;
|
19
19
|
} & {
|
20
|
-
themeVars?: Record<string, string | number> | undefined;
|
21
20
|
iconPrefix?: string | undefined;
|
22
|
-
|
21
|
+
themeVars?: Record<string, string | number> | undefined;
|
22
|
+
}>, {
|
23
23
|
tag: keyof HTMLElementTagNameMap;
|
24
24
|
}>;
|
25
25
|
export default _default;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
declare const ConfigProvider: import("../utils").WithInstall<import("vue").DefineComponent<{
|
1
|
+
export declare const ConfigProvider: import("../utils").WithInstall<import("vue").DefineComponent<{
|
2
2
|
themeVars: import("vue").PropType<Record<string, string | number>>;
|
3
3
|
iconPrefix: StringConstructor;
|
4
4
|
tag: {
|
@@ -12,10 +12,9 @@ declare const ConfigProvider: import("../utils").WithInstall<import("vue").Defin
|
|
12
12
|
} & {
|
13
13
|
tag: keyof HTMLElementTagNameMap;
|
14
14
|
} & {
|
15
|
-
themeVars?: Record<string, string | number> | undefined;
|
16
15
|
iconPrefix?: string | undefined;
|
17
|
-
|
16
|
+
themeVars?: Record<string, string | number> | undefined;
|
17
|
+
}>, {
|
18
18
|
tag: keyof HTMLElementTagNameMap;
|
19
19
|
}>>;
|
20
20
|
export default ConfigProvider;
|
21
|
-
export { ConfigProvider };
|
@@ -1,5 +1,4 @@
|
|
1
1
|
import { withInstall } from '../utils';
|
2
2
|
import _ConfigProvider from './ConfigProvider';
|
3
|
-
var ConfigProvider = withInstall(_ConfigProvider);
|
4
|
-
export default ConfigProvider;
|
5
|
-
export { ConfigProvider };
|
3
|
+
export var ConfigProvider = withInstall(_ConfigProvider);
|
4
|
+
export default ConfigProvider;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
declare const ContactCard: import("../utils").WithInstall<import("vue").DefineComponent<{
|
1
|
+
export declare const ContactCard: import("../utils").WithInstall<import("vue").DefineComponent<{
|
2
2
|
tel: StringConstructor;
|
3
3
|
name: StringConstructor;
|
4
4
|
addText: StringConstructor;
|
@@ -30,5 +30,4 @@ declare const ContactCard: import("../utils").WithInstall<import("vue").DefineCo
|
|
30
30
|
editable: boolean;
|
31
31
|
}>>;
|
32
32
|
export default ContactCard;
|
33
|
-
export { ContactCard };
|
34
33
|
export type { ContactCardType } from './ContactCard';
|
package/es/contact-card/index.js
CHANGED
@@ -1,5 +1,4 @@
|
|
1
1
|
import { withInstall } from '../utils';
|
2
2
|
import _ContactCard from './ContactCard';
|
3
|
-
var ContactCard = withInstall(_ContactCard);
|
4
|
-
export default ContactCard;
|
5
|
-
export { ContactCard };
|
3
|
+
export var ContactCard = withInstall(_ContactCard);
|
4
|
+
export default ContactCard;
|
@@ -44,11 +44,9 @@ export default defineComponent({
|
|
44
44
|
}
|
45
45
|
};
|
46
46
|
|
47
|
-
var onDelete = () => {
|
48
|
-
|
49
|
-
|
50
|
-
}).then(() => emit('delete', contact));
|
51
|
-
};
|
47
|
+
var onDelete = () => Dialog.confirm({
|
48
|
+
title: t('confirmDelete')
|
49
|
+
}).then(() => emit('delete', contact));
|
52
50
|
|
53
51
|
var renderButtons = () => _createVNode("div", {
|
54
52
|
"class": bem('buttons')
|
@@ -102,10 +100,10 @@ export default defineComponent({
|
|
102
100
|
"label": t('name'),
|
103
101
|
"rules": [{
|
104
102
|
required: true,
|
105
|
-
message: t('
|
103
|
+
message: t('nameEmpty')
|
106
104
|
}],
|
107
105
|
"maxlength": "30",
|
108
|
-
"placeholder": t('
|
106
|
+
"placeholder": t('name')
|
109
107
|
}, null), _createVNode(Field, {
|
110
108
|
"modelValue": contact.tel,
|
111
109
|
"onUpdate:modelValue": $event => contact.tel = $event,
|
@@ -116,7 +114,7 @@ export default defineComponent({
|
|
116
114
|
validator: props.telValidator,
|
117
115
|
message: t('telInvalid')
|
118
116
|
}],
|
119
|
-
"placeholder": t('
|
117
|
+
"placeholder": t('tel')
|
120
118
|
}, null)]), renderSetDefault(), renderButtons()]
|
121
119
|
});
|
122
120
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
declare const ContactEdit: import("../utils").WithInstall<import("vue").DefineComponent<{
|
1
|
+
export declare const ContactEdit: import("../utils").WithInstall<import("vue").DefineComponent<{
|
2
2
|
isEdit: BooleanConstructor;
|
3
3
|
isSaving: BooleanConstructor;
|
4
4
|
isDeleting: BooleanConstructor;
|
@@ -42,5 +42,4 @@ declare const ContactEdit: import("../utils").WithInstall<import("vue").DefineCo
|
|
42
42
|
contactInfo: import("./ContactEdit").ContactEditInfo;
|
43
43
|
}>>;
|
44
44
|
export default ContactEdit;
|
45
|
-
export { ContactEdit };
|
46
45
|
export type { ContactEditInfo } from './ContactEdit';
|
package/es/contact-edit/index.js
CHANGED
@@ -1,5 +1,4 @@
|
|
1
1
|
import { withInstall } from '../utils';
|
2
2
|
import _ContactEdit from './ContactEdit';
|
3
|
-
var ContactEdit = withInstall(_ContactEdit);
|
4
|
-
export default ContactEdit;
|
5
|
-
export { ContactEdit };
|
3
|
+
export var ContactEdit = withInstall(_ContactEdit);
|
4
|
+
export default ContactEdit;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
declare const ContactList: import("../utils").WithInstall<import("vue").DefineComponent<{
|
1
|
+
export declare const ContactList: import("../utils").WithInstall<import("vue").DefineComponent<{
|
2
2
|
list: import("vue").PropType<import("./ContactList").ContactListItem[]>;
|
3
3
|
addText: StringConstructor;
|
4
4
|
modelValue: import("vue").PropType<unknown>;
|
@@ -20,5 +20,4 @@ declare const ContactList: import("../utils").WithInstall<import("vue").DefineCo
|
|
20
20
|
onAdd?: ((...args: any[]) => any) | undefined;
|
21
21
|
}, {}>>;
|
22
22
|
export default ContactList;
|
23
|
-
export { ContactList };
|
24
23
|
export type { ContactListItem } from './ContactList';
|
package/es/contact-list/index.js
CHANGED
@@ -1,5 +1,4 @@
|
|
1
1
|
import { withInstall } from '../utils';
|
2
2
|
import _ContactList from './ContactList';
|
3
|
-
var ContactList = withInstall(_ContactList);
|
4
|
-
export default ContactList;
|
5
|
-
export { ContactList };
|
3
|
+
export var ContactList = withInstall(_ContactList);
|
4
|
+
export default ContactList;
|
@@ -1,5 +1,4 @@
|
|
1
|
-
import { ExtractPropTypes
|
2
|
-
import { CurrentTime } from '@vant/use';
|
1
|
+
import { ExtractPropTypes } from 'vue';
|
3
2
|
declare const props: {
|
4
3
|
autoStart: {
|
5
4
|
type: BooleanConstructor;
|
@@ -15,14 +14,7 @@ declare const props: {
|
|
15
14
|
default: string;
|
16
15
|
};
|
17
16
|
};
|
18
|
-
declare type CountDownProps = ExtractPropTypes<typeof props>;
|
19
|
-
declare type CountDownExpose = {
|
20
|
-
start: () => void;
|
21
|
-
pause: () => void;
|
22
|
-
reset: () => void;
|
23
|
-
};
|
24
|
-
export declare type CountDownInstance = ComponentPublicInstance<CountDownProps, CountDownExpose>;
|
25
|
-
export declare type CountDownCurrentTime = CurrentTime;
|
17
|
+
export declare type CountDownProps = ExtractPropTypes<typeof props>;
|
26
18
|
declare const _default: import("vue").DefineComponent<{
|
27
19
|
autoStart: {
|
28
20
|
type: BooleanConstructor;
|
package/es/count-down/index.d.ts
CHANGED
@@ -1,4 +1,5 @@
|
|
1
|
-
|
1
|
+
import { CountDownProps } from './CountDown';
|
2
|
+
export declare const CountDown: import("../utils").WithInstall<import("vue").DefineComponent<{
|
2
3
|
autoStart: {
|
3
4
|
type: BooleanConstructor;
|
4
5
|
default: true;
|
@@ -32,5 +33,5 @@ declare const CountDown: import("../utils").WithInstall<import("vue").DefineComp
|
|
32
33
|
format: string;
|
33
34
|
}>>;
|
34
35
|
export default CountDown;
|
35
|
-
export {
|
36
|
-
export type { CountDownInstance, CountDownCurrentTime } from './
|
36
|
+
export type { CountDownProps };
|
37
|
+
export type { CountDownInstance, CountDownCurrentTime } from './types';
|
package/es/count-down/index.js
CHANGED
@@ -0,0 +1,11 @@
|
|
1
|
+
import type { ComponentPublicInstance } from 'vue';
|
2
|
+
import type { CurrentTime } from '@vant/use';
|
3
|
+
import type { CountDownProps } from './CountDown';
|
4
|
+
declare type CountDownExpose = {
|
5
|
+
start: () => void;
|
6
|
+
pause: () => void;
|
7
|
+
reset: () => void;
|
8
|
+
};
|
9
|
+
export declare type CountDownInstance = ComponentPublicInstance<CountDownProps, CountDownExpose>;
|
10
|
+
export declare type CountDownCurrentTime = CurrentTime;
|
11
|
+
export {};
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
package/es/coupon/Coupon.d.ts
CHANGED
package/es/coupon/index.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
declare const Coupon: import("../utils").WithInstall<import("vue").DefineComponent<{
|
1
|
+
export declare const Coupon: import("../utils").WithInstall<import("vue").DefineComponent<{
|
2
2
|
chosen: BooleanConstructor;
|
3
3
|
disabled: BooleanConstructor;
|
4
4
|
coupon: {
|
@@ -19,11 +19,10 @@ declare const Coupon: import("../utils").WithInstall<import("vue").DefineCompone
|
|
19
19
|
currency: string;
|
20
20
|
coupon: import("./Coupon").CouponInfo;
|
21
21
|
chosen: boolean;
|
22
|
-
} & {}
|
22
|
+
} & {}>, {
|
23
23
|
disabled: boolean;
|
24
24
|
currency: string;
|
25
25
|
chosen: boolean;
|
26
26
|
}>>;
|
27
27
|
export default Coupon;
|
28
|
-
export { Coupon };
|
29
28
|
export type { CouponInfo } from './Coupon';
|
package/es/coupon/index.js
CHANGED
@@ -24,7 +24,7 @@ function formatValue(coupons, chosenCoupon, currency) {
|
|
24
24
|
return "-" + currency + " " + (value / 100).toFixed(2);
|
25
25
|
}
|
26
26
|
|
27
|
-
return coupons.length === 0 ? t('
|
27
|
+
return coupons.length === 0 ? t('noCoupon') : t('count', coupons.length);
|
28
28
|
}
|
29
29
|
|
30
30
|
export default defineComponent({
|
@@ -1,4 +1,4 @@
|
|
1
|
-
declare const CouponCell: import("../utils").WithInstall<import("vue").DefineComponent<{
|
1
|
+
export declare const CouponCell: import("../utils").WithInstall<import("vue").DefineComponent<{
|
2
2
|
title: StringConstructor;
|
3
3
|
border: {
|
4
4
|
type: BooleanConstructor;
|
@@ -35,7 +35,7 @@ declare const CouponCell: import("../utils").WithInstall<import("vue").DefineCom
|
|
35
35
|
chosenCoupon: string | number;
|
36
36
|
} & {
|
37
37
|
title?: string | undefined;
|
38
|
-
}
|
38
|
+
}>, {
|
39
39
|
border: boolean;
|
40
40
|
currency: string;
|
41
41
|
editable: boolean;
|
@@ -43,4 +43,3 @@ declare const CouponCell: import("../utils").WithInstall<import("vue").DefineCom
|
|
43
43
|
chosenCoupon: string | number;
|
44
44
|
}>>;
|
45
45
|
export default CouponCell;
|
46
|
-
export { CouponCell };
|
package/es/coupon-cell/index.js
CHANGED
@@ -3,7 +3,6 @@ import { watch, computed, nextTick, reactive, onMounted, defineComponent } from
|
|
3
3
|
|
4
4
|
import { truthProp, createNamespace } from '../utils'; // Composables
|
5
5
|
|
6
|
-
import { useWindowSize } from '@vant/use';
|
7
6
|
import { useRefs } from '../composables/use-refs'; // Components
|
8
7
|
|
9
8
|
import { Tab } from '../tab';
|
@@ -70,13 +69,7 @@ export default defineComponent({
|
|
70
69
|
tab: 0,
|
71
70
|
code: props.code
|
72
71
|
});
|
73
|
-
var {
|
74
|
-
height: windowHeight
|
75
|
-
} = useWindowSize();
|
76
72
|
var buttonDisabled = computed(() => !props.exchangeButtonLoading && (props.exchangeButtonDisabled || !state.code || state.code.length < props.exchangeMinLength));
|
77
|
-
var listStyle = computed(() => ({
|
78
|
-
height: windowHeight.value - (props.showExchangeBar ? 140 : 94) + 'px'
|
79
|
-
}));
|
80
73
|
|
81
74
|
var onExchange = () => {
|
82
75
|
emit('exchange', state.code); // auto clear currentCode when not use v-model
|
@@ -98,7 +91,7 @@ export default defineComponent({
|
|
98
91
|
"class": bem('empty')
|
99
92
|
}, [_createVNode("img", {
|
100
93
|
"src": props.emptyImage
|
101
|
-
}, null), _createVNode("p", null, [t('
|
94
|
+
}, null), _createVNode("p", null, [t('noCoupon')])]);
|
102
95
|
|
103
96
|
var renderExchangeBar = () => {
|
104
97
|
if (props.showExchangeBar) {
|
@@ -137,9 +130,9 @@ export default defineComponent({
|
|
137
130
|
}, {
|
138
131
|
default: () => [_createVNode("div", {
|
139
132
|
"class": bem('list', {
|
133
|
+
'with-bar': props.showExchangeBar,
|
140
134
|
'with-bottom': props.showCloseButton
|
141
|
-
})
|
142
|
-
"style": listStyle.value
|
135
|
+
})
|
143
136
|
}, [coupons.map((coupon, index) => _createVNode(Coupon, {
|
144
137
|
"key": coupon.id,
|
145
138
|
"ref": setCouponRefs(index),
|
@@ -164,9 +157,9 @@ export default defineComponent({
|
|
164
157
|
}, {
|
165
158
|
default: () => [_createVNode("div", {
|
166
159
|
"class": bem('list', {
|
160
|
+
'with-bar': props.showExchangeBar,
|
167
161
|
'with-bottom': props.showCloseButton
|
168
|
-
})
|
169
|
-
"style": listStyle.value
|
162
|
+
})
|
170
163
|
}, [disabledCoupons.map(coupon => _createVNode(Coupon, {
|
171
164
|
"disabled": true,
|
172
165
|
"key": coupon.id,
|
package/es/coupon-list/index.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
:root{--van-coupon-list-background-color:var(--van-background-color);--van-coupon-list-field-padding:5px 0 5px var(--van-padding-md);--van-coupon-list-exchange-button-height:32px;--van-coupon-list-close-button-height:40px;--van-coupon-list-empty-image-size:200px;--van-coupon-list-empty-tip-color:var(--van-gray-6);--van-coupon-list-empty-tip-font-size:var(--van-font-size-md);--van-coupon-list-empty-tip-line-height:var(--van-line-height-md)}.van-coupon-list{position:relative;height:100%;background-color:var(--van-coupon-list-background-color)}.van-coupon-list__field{padding:var(--van-coupon-list-field-padding)}.van-coupon-list__field .van-field__body{height:34px;padding-left:var(--van-padding-sm);line-height:34px;background:var(--van-gray-1);border-radius:17px}.van-coupon-list__field .van-field__body::-webkit-input-placeholder{color:var(--van-gray-5)}.van-coupon-list__field .van-field__body::placeholder{color:var(--van-gray-5)}.van-coupon-list__field .van-field__clear{margin-right:0}.van-coupon-list__exchange-bar{display:flex;align-items:center;background-color:var(--van-white)}.van-coupon-list__exchange{flex:none;height:var(--van-coupon-list-exchange-button-height);font-size:var(--van-font-size-lg);line-height:calc(var(--van-coupon-list-exchange-button-height) - 2px);border:0}.van-coupon-list .van-tabs__wrap{box-shadow:0 6px 12px -12px var(--van-gray-6)}.van-coupon-list__list{box-sizing:border-box;padding:var(--van-padding-md) 0 var(--van-padding-lg);overflow-y:auto;-webkit-overflow-scrolling:touch}.van-coupon-list__list--with-
|
1
|
+
:root{--van-coupon-list-background-color:var(--van-background-color);--van-coupon-list-field-padding:5px 0 5px var(--van-padding-md);--van-coupon-list-exchange-button-height:32px;--van-coupon-list-close-button-height:40px;--van-coupon-list-empty-image-size:200px;--van-coupon-list-empty-tip-color:var(--van-gray-6);--van-coupon-list-empty-tip-font-size:var(--van-font-size-md);--van-coupon-list-empty-tip-line-height:var(--van-line-height-md)}.van-coupon-list{position:relative;height:100%;background-color:var(--van-coupon-list-background-color)}.van-coupon-list__field{padding:var(--van-coupon-list-field-padding)}.van-coupon-list__field .van-field__body{height:34px;padding-left:var(--van-padding-sm);line-height:34px;background:var(--van-gray-1);border-radius:17px}.van-coupon-list__field .van-field__body::-webkit-input-placeholder{color:var(--van-gray-5)}.van-coupon-list__field .van-field__body::placeholder{color:var(--van-gray-5)}.van-coupon-list__field .van-field__clear{margin-right:0}.van-coupon-list__exchange-bar{display:flex;align-items:center;background-color:var(--van-white)}.van-coupon-list__exchange{flex:none;height:var(--van-coupon-list-exchange-button-height);font-size:var(--van-font-size-lg);line-height:calc(var(--van-coupon-list-exchange-button-height) - 2px);border:0}.van-coupon-list .van-tabs__wrap{box-shadow:0 6px 12px -12px var(--van-gray-6)}.van-coupon-list__list{box-sizing:border-box;height:calc(100vh - 108px);padding:var(--van-padding-md) 0 var(--van-padding-lg);overflow-y:auto;-webkit-overflow-scrolling:touch}.van-coupon-list__list--with-bar{height:calc(100vh - 152px)}.van-coupon-list__list--with-bottom{padding-bottom:50px}.van-coupon-list__bottom{position:absolute;bottom:0;left:0;z-index:999;box-sizing:border-box;width:100%;padding:5px var(--van-padding-md);font-weight:var(--van-font-weight-bold);background-color:var(--van-white)}.van-coupon-list__close{height:var(--van-coupon-list-close-button-height)}.van-coupon-list__empty{padding-top:60px;text-align:center}.van-coupon-list__empty p{margin:var(--van-padding-md) 0;color:var(--van-coupon-list-empty-tip-color);font-size:var(--van-coupon-list-empty-tip-font-size);line-height:var(--van-coupon-list-empty-tip-line-height)}.van-coupon-list__empty img{width:var(--van-coupon-list-empty-image-size);height:var(--van-coupon-list-empty-image-size)}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
declare const CouponList: import("../utils").WithInstall<import("vue").DefineComponent<{
|
1
|
+
export declare const CouponList: import("../utils").WithInstall<import("vue").DefineComponent<{
|
2
2
|
showCount: {
|
3
3
|
type: BooleanConstructor;
|
4
4
|
default: true;
|
@@ -109,4 +109,3 @@ declare const CouponList: import("../utils").WithInstall<import("vue").DefineCom
|
|
109
109
|
emptyImage: string;
|
110
110
|
}>>;
|
111
111
|
export default CouponList;
|
112
|
-
export { CouponList };
|
package/es/coupon-list/index.js
CHANGED
@@ -56,12 +56,17 @@
|
|
56
56
|
|
57
57
|
&__list {
|
58
58
|
box-sizing: border-box;
|
59
|
+
height: calc(100vh - 108px);
|
59
60
|
padding: var(--van-padding-md) 0 var(--van-padding-lg);
|
60
61
|
overflow-y: auto;
|
61
62
|
-webkit-overflow-scrolling: touch;
|
62
63
|
|
64
|
+
&--with-bar {
|
65
|
+
height: calc(100vh - 152px);
|
66
|
+
}
|
67
|
+
|
63
68
|
&--with-bottom {
|
64
|
-
padding-bottom:
|
69
|
+
padding-bottom: 50px;
|
65
70
|
}
|
66
71
|
}
|
67
72
|
|
@@ -47,7 +47,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
47
47
|
default: () => Date;
|
48
48
|
validator: typeof isDate;
|
49
49
|
};
|
50
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "
|
50
|
+
}, () => 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/runtime-core").ComponentCustomProps, Readonly<{
|
51
51
|
title?: unknown;
|
52
52
|
loading?: unknown;
|
53
53
|
readonly?: unknown;
|
@@ -186,12 +186,13 @@ export default defineComponent({
|
|
186
186
|
return formatter('minute', padZero(value.getMinutes()));
|
187
187
|
|
188
188
|
default:
|
189
|
-
|
190
|
-
return null;
|
189
|
+
return '';
|
191
190
|
}
|
192
191
|
});
|
193
192
|
nextTick(() => {
|
194
|
-
|
193
|
+
var _picker$value;
|
194
|
+
|
195
|
+
(_picker$value = picker.value) == null ? void 0 : _picker$value.setValues(values);
|
195
196
|
});
|
196
197
|
};
|
197
198
|
|
@@ -3,13 +3,14 @@ declare const props: any;
|
|
3
3
|
export declare type DatetimePickerProps = ExtractPropTypes<typeof props>;
|
4
4
|
declare const _default: import("vue").DefineComponent<any, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
|
5
5
|
[x: string]: any;
|
6
|
-
} |
|
6
|
+
}> | Readonly<{
|
7
7
|
[x: string]: unknown;
|
8
8
|
} & {
|
9
9
|
[x: string]: any;
|
10
10
|
} & {
|
11
11
|
[x: number]: any;
|
12
|
-
|
12
|
+
[x: symbol]: any;
|
13
|
+
}>, {} | {
|
13
14
|
[x: string]: any;
|
14
15
|
}>;
|
15
16
|
export default _default;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { createVNode as _createVNode, mergeProps as _mergeProps, resolveDirective as _resolveDirective } from "vue";
|
2
2
|
import { ref, defineComponent } from 'vue';
|
3
|
-
import { pick,
|
3
|
+
import { pick, extend, createNamespace } from '../utils';
|
4
4
|
import { useExpose } from '../composables/use-expose';
|
5
5
|
import TimePicker from './TimePicker';
|
6
6
|
import DatePicker from './DatePicker';
|
@@ -46,7 +46,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
46
46
|
type: (NumberConstructor | StringConstructor)[];
|
47
47
|
default: number;
|
48
48
|
};
|
49
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "
|
49
|
+
}, () => 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/runtime-core").ComponentCustomProps, Readonly<{
|
50
50
|
title?: unknown;
|
51
51
|
loading?: unknown;
|
52
52
|
readonly?: unknown;
|
@@ -85,7 +85,9 @@ export default defineComponent({
|
|
85
85
|
var pair = currentDate.value.split(':');
|
86
86
|
var values = [props.formatter('hour', pair[0]), props.formatter('minute', pair[1])];
|
87
87
|
nextTick(() => {
|
88
|
-
|
88
|
+
var _picker$value;
|
89
|
+
|
90
|
+
(_picker$value = picker.value) == null ? void 0 : _picker$value.setValues(values);
|
89
91
|
});
|
90
92
|
};
|
91
93
|
|
@@ -1,14 +1,16 @@
|
|
1
|
-
|
1
|
+
import { DatetimePickerProps } from './DatetimePicker';
|
2
|
+
export declare const DatetimePicker: import("../utils").WithInstall<import("vue").DefineComponent<any, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
|
2
3
|
[x: string]: any;
|
3
|
-
} |
|
4
|
+
}> | Readonly<{
|
4
5
|
[x: string]: unknown;
|
5
6
|
} & {
|
6
7
|
[x: string]: any;
|
7
8
|
} & {
|
8
9
|
[x: number]: any;
|
9
|
-
|
10
|
+
[x: symbol]: any;
|
11
|
+
}>, {} | {
|
10
12
|
[x: string]: any;
|
11
13
|
}>>;
|
12
14
|
export default DatetimePicker;
|
13
|
-
export {
|
15
|
+
export type { DatetimePickerProps };
|
14
16
|
export type { DatetimePickerType, DatetimePickerInstance } from './types';
|
@@ -1,5 +1,4 @@
|
|
1
1
|
import { withInstall } from '../utils';
|
2
2
|
import _DatetimePicker from './DatetimePicker';
|
3
|
-
var DatetimePicker = withInstall(_DatetimePicker);
|
4
|
-
export default DatetimePicker;
|
5
|
-
export { DatetimePicker };
|
3
|
+
export var DatetimePicker = withInstall(_DatetimePicker);
|
4
|
+
export default DatetimePicker;
|
package/es/dialog/Dialog.d.ts
CHANGED
@@ -1,8 +1,5 @@
|
|
1
1
|
import { PropType } from 'vue';
|
2
|
-
|
3
|
-
export declare type DialogAction = 'confirm' | 'cancel';
|
4
|
-
export declare type DialogMessage = string | (() => JSX.Element);
|
5
|
-
export declare type DialogMessageAlign = 'left' | 'center' | 'right';
|
2
|
+
import type { DialogTheme, DialogAction, DialogMessage, DialogMessageAlign } from './types';
|
6
3
|
declare const _default: import("vue").DefineComponent<{
|
7
4
|
show: BooleanConstructor;
|
8
5
|
zIndex: (NumberConstructor | StringConstructor)[];
|
@@ -55,7 +52,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
55
52
|
type: StringConstructor;
|
56
53
|
default: string;
|
57
54
|
};
|
58
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
55
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:show" | "cancel" | "confirm")[], "update:show" | "cancel" | "confirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
|
59
56
|
show?: unknown;
|
60
57
|
zIndex?: unknown;
|
61
58
|
overlay?: unknown;
|
@@ -99,6 +96,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
99
96
|
} & {
|
100
97
|
message?: DialogMessage | undefined;
|
101
98
|
title?: string | undefined;
|
99
|
+
width?: string | number | undefined;
|
102
100
|
zIndex?: string | number | undefined;
|
103
101
|
duration?: string | number | undefined;
|
104
102
|
teleport?: string | import("vue").RendererElement | null | undefined;
|
@@ -110,7 +108,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
110
108
|
cancelButtonText?: string | undefined;
|
111
109
|
confirmButtonText?: string | undefined;
|
112
110
|
theme?: DialogTheme | undefined;
|
113
|
-
width?: string | number | undefined;
|
114
111
|
messageAlign?: DialogMessageAlign | undefined;
|
115
112
|
cancelButtonColor?: string | undefined;
|
116
113
|
confirmButtonColor?: string | undefined;
|
package/es/dialog/Dialog.js
CHANGED
@@ -7,7 +7,8 @@ import { popupSharedProps, popupSharedPropKeys } from '../popup/shared'; // Comp
|
|
7
7
|
import { Popup } from '../popup';
|
8
8
|
import { Button } from '../button';
|
9
9
|
import { ActionBar } from '../action-bar';
|
10
|
-
import { ActionBarButton } from '../action-bar-button';
|
10
|
+
import { ActionBarButton } from '../action-bar-button'; // Types
|
11
|
+
|
11
12
|
var [name, bem, t] = createNamespace('dialog');
|
12
13
|
var popupKeys = [...popupSharedPropKeys, 'transition', 'closeOnPopstate'];
|
13
14
|
export default defineComponent({
|