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
package/lib/style/base.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
:root{--van-black:#000;--van-white:#fff;--van-gray-1:#f7f8fa;--van-gray-2:#f2f3f5;--van-gray-3:#ebedf0;--van-gray-4:#dcdee0;--van-gray-5:#c8c9cc;--van-gray-6:#969799;--van-gray-7:#646566;--van-gray-8:#323233;--van-red:#ee0a24;--van-blue:#1989fa;--van-orange:#ff976a;--van-orange-dark:#ed6a0c;--van-orange-light:#fffbe8;--van-green:#07c160;--van-gradient-red:linear-gradient(to right, #ff6034, #ee0a24);--van-gradient-orange:linear-gradient(to right, #ffd01e, #ff8917);--van-primary-color:var(--van-blue);--van-success-color:var(--van-green);--van-danger-color:var(--van-red);--van-warning-color:var(--van-orange);--van-text-color:var(--van-gray-8);--van-active-color:var(--van-gray-2);--van-active-opacity:0.7;--van-disabled-opacity:0.5;--van-background-color:var(--van-gray-1);--van-background-color-light:#fafafa;--van-text-link-color:#576b95;--van-padding-base:4px;--van-padding-xs:8px;--van-padding-sm:12px;--van-padding-md:16px;--van-padding-lg:24px;--van-padding-xl:32px;--van-font-size-xs:10px;--van-font-size-sm:12px;--van-font-size-md:14px;--van-font-size-lg:16px;--van-font-weight-bold:500;--van-line-height-xs:14px;--van-line-height-sm:18px;--van-line-height-md:20px;--van-line-height-lg:22px;--van-base-font-family:-apple-system,BlinkMacSystemFont,'Helvetica Neue',Helvetica,Segoe UI,Arial,Roboto,'PingFang SC','miui','Hiragino Sans GB','Microsoft Yahei',sans-serif;--van-price-integer-font-family:Avenir-Heavy,PingFang SC,Helvetica Neue,Arial,sans-serif;--van-animation-duration-base:0.3s;--van-animation-duration-fast:0.2s;--van-animation-timing-function-enter:ease-out;--van-animation-timing-function-leave:ease-in;--van-border-color:var(--van-gray-3);--van-border-width-base:1px;--van-border-radius-sm:2px;--van-border-radius-md:4px;--van-border-radius-lg:8px;--van-border-radius-max:999px}html{-webkit-tap-highlight-color:transparent}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,'Helvetica Neue',Helvetica,Segoe UI,Arial,Roboto,'PingFang SC',miui,'Hiragino Sans GB','Microsoft Yahei',sans-serif}a{text-decoration:none}button,input,textarea{color:inherit;font:inherit}[class*=van-]:focus,a:focus,button:focus,input:focus,textarea:focus{outline:0}ol,ul{margin:0;padding:0;list-style:none}@keyframes van-slide-up-enter{from{transform:translate3d(0,100%,0)}}@keyframes van-slide-up-leave{to{transform:translate3d(0,100%,0)}}@keyframes van-slide-down-enter{from{transform:translate3d(0,-100%,0)}}@keyframes van-slide-down-leave{to{transform:translate3d(0,-100%,0)}}@keyframes van-slide-left-enter{from{transform:translate3d(-100%,0,0)}}@keyframes van-slide-left-leave{to{transform:translate3d(-100%,0,0)}}@keyframes van-slide-right-enter{from{transform:translate3d(100%,0,0)}}@keyframes van-slide-right-leave{to{transform:translate3d(100%,0,0)}}@keyframes van-fade-in{from{opacity:0}to{opacity:1}}@keyframes van-fade-out{from{opacity:1}to{opacity:0}}@keyframes van-rotate{from{transform:rotate(0)}to{transform:rotate(360deg)}}.van-fade-enter-active{animation
|
1
|
+
:root{--van-black:#000;--van-white:#fff;--van-gray-1:#f7f8fa;--van-gray-2:#f2f3f5;--van-gray-3:#ebedf0;--van-gray-4:#dcdee0;--van-gray-5:#c8c9cc;--van-gray-6:#969799;--van-gray-7:#646566;--van-gray-8:#323233;--van-red:#ee0a24;--van-blue:#1989fa;--van-orange:#ff976a;--van-orange-dark:#ed6a0c;--van-orange-light:#fffbe8;--van-green:#07c160;--van-gradient-red:linear-gradient(to right, #ff6034, #ee0a24);--van-gradient-orange:linear-gradient(to right, #ffd01e, #ff8917);--van-primary-color:var(--van-blue);--van-success-color:var(--van-green);--van-danger-color:var(--van-red);--van-warning-color:var(--van-orange);--van-text-color:var(--van-gray-8);--van-active-color:var(--van-gray-2);--van-active-opacity:0.7;--van-disabled-opacity:0.5;--van-background-color:var(--van-gray-1);--van-background-color-light:#fafafa;--van-text-link-color:#576b95;--van-padding-base:4px;--van-padding-xs:8px;--van-padding-sm:12px;--van-padding-md:16px;--van-padding-lg:24px;--van-padding-xl:32px;--van-font-size-xs:10px;--van-font-size-sm:12px;--van-font-size-md:14px;--van-font-size-lg:16px;--van-font-weight-bold:500;--van-line-height-xs:14px;--van-line-height-sm:18px;--van-line-height-md:20px;--van-line-height-lg:22px;--van-base-font-family:-apple-system,BlinkMacSystemFont,'Helvetica Neue',Helvetica,Segoe UI,Arial,Roboto,'PingFang SC','miui','Hiragino Sans GB','Microsoft Yahei',sans-serif;--van-price-integer-font-family:Avenir-Heavy,PingFang SC,Helvetica Neue,Arial,sans-serif;--van-animation-duration-base:0.3s;--van-animation-duration-fast:0.2s;--van-animation-timing-function-enter:ease-out;--van-animation-timing-function-leave:ease-in;--van-border-color:var(--van-gray-3);--van-border-width-base:1px;--van-border-radius-sm:2px;--van-border-radius-md:4px;--van-border-radius-lg:8px;--van-border-radius-max:999px}html{-webkit-tap-highlight-color:transparent}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,'Helvetica Neue',Helvetica,Segoe UI,Arial,Roboto,'PingFang SC',miui,'Hiragino Sans GB','Microsoft Yahei',sans-serif}a{text-decoration:none}button,input,textarea{color:inherit;font:inherit}[class*=van-]:focus,a:focus,button:focus,input:focus,textarea:focus{outline:0}ol,ul{margin:0;padding:0;list-style:none}@keyframes van-slide-up-enter{from{transform:translate3d(0,100%,0)}}@keyframes van-slide-up-leave{to{transform:translate3d(0,100%,0)}}@keyframes van-slide-down-enter{from{transform:translate3d(0,-100%,0)}}@keyframes van-slide-down-leave{to{transform:translate3d(0,-100%,0)}}@keyframes van-slide-left-enter{from{transform:translate3d(-100%,0,0)}}@keyframes van-slide-left-leave{to{transform:translate3d(-100%,0,0)}}@keyframes van-slide-right-enter{from{transform:translate3d(100%,0,0)}}@keyframes van-slide-right-leave{to{transform:translate3d(100%,0,0)}}@keyframes van-fade-in{from{opacity:0}to{opacity:1}}@keyframes van-fade-out{from{opacity:1}to{opacity:0}}@keyframes van-rotate{from{transform:rotate(0)}to{transform:rotate(360deg)}}.van-fade-enter-active{animation:var(--van-animation-duration-base) van-fade-in both var(--van-animation-timing-function-enter)}.van-fade-leave-active{animation:var(--van-animation-duration-base) van-fade-out both var(--van-animation-timing-function-leave)}.van-slide-up-enter-active{animation:van-slide-up-enter var(--van-animation-duration-base) both var(--van-animation-timing-function-enter)}.van-slide-up-leave-active{animation:van-slide-up-leave var(--van-animation-duration-base) both var(--van-animation-timing-function-leave)}.van-slide-down-enter-active{animation:van-slide-down-enter var(--van-animation-duration-base) both var(--van-animation-timing-function-enter)}.van-slide-down-leave-active{animation:van-slide-down-leave var(--van-animation-duration-base) both var(--van-animation-timing-function-leave)}.van-slide-left-enter-active{animation:van-slide-left-enter var(--van-animation-duration-base) both var(--van-animation-timing-function-enter)}.van-slide-left-leave-active{animation:van-slide-left-leave var(--van-animation-duration-base) both var(--van-animation-timing-function-leave)}.van-slide-right-enter-active{animation:van-slide-right-enter var(--van-animation-duration-base) both var(--van-animation-timing-function-enter)}.van-slide-right-leave-active{animation:van-slide-right-leave var(--van-animation-duration-base) both var(--van-animation-timing-function-leave)}.van-clearfix::after{display:table;clear:both;content:''}.van-ellipsis{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.van-multi-ellipsis--l2{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:2;-webkit-box-orient:vertical}.van-multi-ellipsis--l3{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:3;-webkit-box-orient:vertical}.van-safe-area-bottom{padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom)}[class*=van-hairline]::after{position:absolute;box-sizing:border-box;content:' ';pointer-events:none;top:-50%;right:-50%;bottom:-50%;left:-50%;border:0 solid var(--van-gray-3);transform:scale(.5)}.van-hairline,.van-hairline--bottom,.van-hairline--left,.van-hairline--right,.van-hairline--surround,.van-hairline--top,.van-hairline--top-bottom{position:relative}.van-hairline--top::after{border-top-width:1px}.van-hairline--left::after{border-left-width:1px}.van-hairline--right::after{border-right-width:1px}.van-hairline--bottom::after{border-bottom-width:1px}.van-hairline--top-bottom::after,.van-hairline-unset--top-bottom::after{border-width:1px 0}.van-hairline--surround::after{border-width:1px}
|
package/lib/submit-bar/index.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
:root{--van-submit-bar-height:50px;--van-submit-bar-z-index:100;--van-submit-bar-background-color:var(--van-white);--van-submit-bar-button-width:110px;--van-submit-bar-price-color:var(--van-danger-color);--van-submit-bar-currency-font-size:var(--van-font-size-md);--van-submit-bar-text-color:var(--van-text-color);--van-submit-bar-text-font-size:var(--van-font-size-md);--van-submit-bar-tip-padding:var(--van-padding-xs) var(--van-padding-sm);--van-submit-bar-tip-font-size:var(--van-font-size-sm);--van-submit-bar-tip-line-height:1.5;--van-submit-bar-tip-color:#f56723;--van-submit-bar-tip-background-color:#fff7cc;--van-submit-bar-tip-icon-size:12px;--van-submit-bar-button-height:40px;--van-submit-bar-padding:0 var(--van-padding-md)
|
1
|
+
:root{--van-submit-bar-height:50px;--van-submit-bar-z-index:100;--van-submit-bar-background-color:var(--van-white);--van-submit-bar-button-width:110px;--van-submit-bar-price-color:var(--van-danger-color);--van-submit-bar-price-font-size:var(--van-font-size-sm);--van-submit-bar-price-integer-font-size:20px;--van-submit-bar-price-font-family:var(--van-price-integer-font-family);--van-submit-bar-currency-font-size:var(--van-font-size-md);--van-submit-bar-text-color:var(--van-text-color);--van-submit-bar-text-font-size:var(--van-font-size-md);--van-submit-bar-tip-padding:var(--van-padding-xs) var(--van-padding-sm);--van-submit-bar-tip-font-size:var(--van-font-size-sm);--van-submit-bar-tip-line-height:1.5;--van-submit-bar-tip-color:#f56723;--van-submit-bar-tip-background-color:#fff7cc;--van-submit-bar-tip-icon-size:12px;--van-submit-bar-button-height:40px;--van-submit-bar-padding:0 var(--van-padding-md)}.van-submit-bar{position:fixed;bottom:0;left:0;z-index:var(--van-submit-bar-z-index);width:100%;background-color:var(--van-submit-bar-background-color);-webkit-user-select:none;user-select:none}.van-submit-bar__tip{padding:var(--van-submit-bar-tip-padding);color:var(--van-submit-bar-tip-color);font-size:var(--van-submit-bar-tip-font-size);line-height:var(--van-submit-bar-tip-line-height);background-color:var(--van-submit-bar-tip-background-color)}.van-submit-bar__tip-icon{margin-right:var(--van-padding-base);font-size:var(--van-submit-bar-tip-icon-size);vertical-align:middle}.van-submit-bar__tip-text{vertical-align:middle}.van-submit-bar__bar{display:flex;align-items:center;justify-content:flex-end;height:var(--van-submit-bar-height);padding:var(--van-submit-bar-padding);font-size:var(--van-submit-bar-text-font-size)}.van-submit-bar__text{flex:1;padding-right:var(--van-padding-sm);color:var(--van-submit-bar-text-color);text-align:right}.van-submit-bar__text span{display:inline-block}.van-submit-bar__suffix-label{margin-left:var(--van-padding-base);font-weight:var(--van-font-weight-bold)}.van-submit-bar__price{color:var(--van-submit-bar-price-color);font-weight:var(--van-font-weight-bold);font-size:var(--van-submit-bar-price-font-size)}.van-submit-bar__price-integer{font-size:var(--van-submit-bar-price-integer-font-size);font-family:var(--van-submit-bar-price-font-family)}.van-submit-bar__button{width:var(--van-submit-bar-button-width);height:var(--van-submit-bar-button-height);font-weight:var(--van-font-weight-bold);border:none}.van-submit-bar__button--danger{background:var(--van-gradient-red)}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
declare const SubmitBar: import("../utils").WithInstall<import("vue").DefineComponent<{
|
1
|
+
export declare const SubmitBar: import("../utils").WithInstall<import("vue").DefineComponent<{
|
2
2
|
tip: StringConstructor;
|
3
3
|
label: StringConstructor;
|
4
4
|
price: NumberConstructor;
|
@@ -67,4 +67,3 @@ declare const SubmitBar: import("../utils").WithInstall<import("vue").DefineComp
|
|
67
67
|
buttonType: import("..").ButtonType;
|
68
68
|
}>>;
|
69
69
|
export default SubmitBar;
|
70
|
-
export { SubmitBar };
|
package/lib/submit-bar/index.js
CHANGED
@@ -7,6 +7,8 @@
|
|
7
7
|
--van-submit-bar-button-width: @submit-bar-button-width;
|
8
8
|
--van-submit-bar-price-color: @submit-bar-price-color;
|
9
9
|
--van-submit-bar-price-font-size: @submit-bar-price-font-size;
|
10
|
+
--van-submit-bar-price-integer-font-size: @submit-bar-price-integer-font-size;
|
11
|
+
--van-submit-bar-price-font-family: @submit-bar-price-font-family;
|
10
12
|
--van-submit-bar-currency-font-size: @submit-bar-currency-font-size;
|
11
13
|
--van-submit-bar-text-color: @submit-bar-text-color;
|
12
14
|
--van-submit-bar-text-font-size: @submit-bar-text-font-size;
|
@@ -18,9 +20,6 @@
|
|
18
20
|
--van-submit-bar-tip-icon-size: @submit-bar-tip-icon-size;
|
19
21
|
--van-submit-bar-button-height: @submit-bar-button-height;
|
20
22
|
--van-submit-bar-padding: @submit-bar-padding;
|
21
|
-
--van-submit-bar-price-font-size: @submit-bar-price-font-size;
|
22
|
-
--van-submit-bar-price-integer-font-size: @submit-bar-price-integer-font-size;
|
23
|
-
--van-submit-bar-price-font-family: @submit-bar-price-font-family;
|
24
23
|
}
|
25
24
|
|
26
25
|
.van-submit-bar {
|
@@ -41,7 +40,7 @@
|
|
41
40
|
}
|
42
41
|
|
43
42
|
&__tip-icon {
|
44
|
-
|
43
|
+
margin-right: var(--van-padding-base);
|
45
44
|
font-size: var(--van-submit-bar-tip-icon-size);
|
46
45
|
vertical-align: middle;
|
47
46
|
}
|
package/lib/swipe/Swipe.d.ts
CHANGED
@@ -85,30 +85,30 @@ declare const _default: import("vue").DefineComponent<{
|
|
85
85
|
duration?: unknown;
|
86
86
|
initialSwipe?: unknown;
|
87
87
|
} & {
|
88
|
+
autoplay: string | number;
|
89
|
+
loop: boolean;
|
88
90
|
vertical: boolean;
|
89
91
|
duration: string | number;
|
90
92
|
lazyRender: boolean;
|
91
|
-
loop: boolean;
|
92
93
|
touchable: boolean;
|
93
94
|
showIndicators: boolean;
|
94
95
|
stopPropagation: boolean;
|
95
|
-
autoplay: string | number;
|
96
96
|
initialSwipe: string | number;
|
97
97
|
} & {
|
98
|
-
width?: string | number | undefined;
|
99
98
|
height?: string | number | undefined;
|
99
|
+
width?: string | number | undefined;
|
100
100
|
indicatorColor?: string | undefined;
|
101
101
|
}> & {
|
102
102
|
onChange?: ((...args: any[]) => any) | undefined;
|
103
103
|
}, {
|
104
|
+
autoplay: string | number;
|
105
|
+
loop: boolean;
|
104
106
|
vertical: boolean;
|
105
107
|
duration: string | number;
|
106
108
|
lazyRender: boolean;
|
107
|
-
loop: boolean;
|
108
109
|
touchable: boolean;
|
109
110
|
showIndicators: boolean;
|
110
111
|
stopPropagation: boolean;
|
111
|
-
autoplay: string | number;
|
112
112
|
initialSwipe: string | number;
|
113
113
|
}>;
|
114
114
|
export default _default;
|
package/lib/swipe/Swipe.js
CHANGED
@@ -252,6 +252,7 @@ var _default = (0, _vue.defineComponent)({
|
|
252
252
|
children.forEach(swipe => {
|
253
253
|
swipe.setOffset(0);
|
254
254
|
});
|
255
|
+
autoplay();
|
255
256
|
};
|
256
257
|
|
257
258
|
var resize = () => initialize(state.active);
|
@@ -383,7 +384,7 @@ var _default = (0, _vue.defineComponent)({
|
|
383
384
|
});
|
384
385
|
(0, _vue.watch)(() => props.initialSwipe, value => initialize(+value));
|
385
386
|
(0, _vue.watch)(count, () => initialize(state.active));
|
386
|
-
(0, _vue.watch)(
|
387
|
+
(0, _vue.watch)(() => props.autoplay, autoplay);
|
387
388
|
(0, _vue.watch)([windowSize.width, windowSize.height], resize);
|
388
389
|
(0, _vue.watch)((0, _use.usePageVisibility)(), visible => {
|
389
390
|
if (visible === 'visible') {
|
package/lib/swipe/index.d.ts
CHANGED
@@ -1,4 +1,5 @@
|
|
1
|
-
|
1
|
+
import { SwipeProps } from './Swipe';
|
2
|
+
export declare const Swipe: import("../utils").WithInstall<import("vue").DefineComponent<{
|
2
3
|
loop: {
|
3
4
|
type: BooleanConstructor;
|
4
5
|
default: true;
|
@@ -46,32 +47,32 @@ declare const Swipe: import("../utils").WithInstall<import("vue").DefineComponen
|
|
46
47
|
duration?: unknown;
|
47
48
|
initialSwipe?: unknown;
|
48
49
|
} & {
|
50
|
+
autoplay: string | number;
|
51
|
+
loop: boolean;
|
49
52
|
vertical: boolean;
|
50
53
|
duration: string | number;
|
51
54
|
lazyRender: boolean;
|
52
|
-
loop: boolean;
|
53
55
|
touchable: boolean;
|
54
56
|
showIndicators: boolean;
|
55
57
|
stopPropagation: boolean;
|
56
|
-
autoplay: string | number;
|
57
58
|
initialSwipe: string | number;
|
58
59
|
} & {
|
59
|
-
width?: string | number | undefined;
|
60
60
|
height?: string | number | undefined;
|
61
|
+
width?: string | number | undefined;
|
61
62
|
indicatorColor?: string | undefined;
|
62
63
|
}> & {
|
63
64
|
onChange?: ((...args: any[]) => any) | undefined;
|
64
65
|
}, {
|
66
|
+
autoplay: string | number;
|
67
|
+
loop: boolean;
|
65
68
|
vertical: boolean;
|
66
69
|
duration: string | number;
|
67
70
|
lazyRender: boolean;
|
68
|
-
loop: boolean;
|
69
71
|
touchable: boolean;
|
70
72
|
showIndicators: boolean;
|
71
73
|
stopPropagation: boolean;
|
72
|
-
autoplay: string | number;
|
73
74
|
initialSwipe: string | number;
|
74
75
|
}>>;
|
75
76
|
export default Swipe;
|
76
|
-
export {
|
77
|
+
export type { SwipeProps };
|
77
78
|
export type { SwipeInstance, SwipeToOptions } from './types';
|
package/lib/swipe/index.js
CHANGED
package/lib/swipe-cell/index.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
.van-swipe-cell{position:relative;overflow:hidden;cursor:-webkit-grab;cursor:grab}.van-swipe-cell__wrapper{transition-timing-function:cubic-bezier(.18
|
1
|
+
.van-swipe-cell{position:relative;overflow:hidden;cursor:-webkit-grab;cursor:grab}.van-swipe-cell__wrapper{transition-timing-function:cubic-bezier(0.18,0.89,0.32,1);transition-property:transform}.van-swipe-cell__left,.van-swipe-cell__right{position:absolute;top:0;height:100%}.van-swipe-cell__left{left:0;transform:translate3d(-100%,0,0)}.van-swipe-cell__right{right:0;transform:translate3d(100%,0,0)}
|
@@ -1,4 +1,5 @@
|
|
1
|
-
|
1
|
+
import { SwipeCellProps } from './SwipeCell';
|
2
|
+
export declare const SwipeCell: import("../utils").WithInstall<import("vue").DefineComponent<{
|
2
3
|
disabled: BooleanConstructor;
|
3
4
|
leftWidth: (NumberConstructor | StringConstructor)[];
|
4
5
|
rightWidth: (NumberConstructor | StringConstructor)[];
|
@@ -33,5 +34,5 @@ declare const SwipeCell: import("../utils").WithInstall<import("vue").DefineComp
|
|
33
34
|
stopPropagation: boolean;
|
34
35
|
}>>;
|
35
36
|
export default SwipeCell;
|
36
|
-
export {
|
37
|
+
export type { SwipeCellProps };
|
37
38
|
export type { SwipeCellSide, SwipeCellPosition, SwipeCellInstance, } from './types';
|
package/lib/swipe-cell/index.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, (() => JSX.Element) | undefined, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{} & {} & {}
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, (() => JSX.Element) | undefined, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{} & {} & {}>, {}>;
|
2
2
|
export default _default;
|
@@ -1,3 +1,2 @@
|
|
1
|
-
declare const SwipeItem: import("../utils").WithInstall<import("vue").DefineComponent<{}, (() => JSX.Element) | undefined, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{} & {} & {}
|
1
|
+
export declare const SwipeItem: import("../utils").WithInstall<import("vue").DefineComponent<{}, (() => JSX.Element) | undefined, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{} & {} & {}>, {}>>;
|
2
2
|
export default SwipeItem;
|
3
|
-
export { SwipeItem };
|
package/lib/swipe-item/index.js
CHANGED
package/lib/switch/index.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
:root{--van-switch-size:30px;--van-switch-width:2em;--van-switch-height:1em;--van-switch-node-size:1em;--van-switch-node-background-color:var(--van-white);--van-switch-node-box-shadow:0 3px 1px 0 rgba(0, 0, 0, 0.05),0 2px 2px 0 rgba(0, 0, 0, 0.1),0 3px 3px 0 rgba(0, 0, 0, 0.05);--van-switch-background-color:var(--van-white);--van-switch-on-background-color:var(--van-primary-color);--van-switch-transition-duration:var(--van-animation-duration-base);--van-switch-disabled-opacity:var(--van-disabled-opacity);--van-switch-border:var(--van-border-width-base) solid rgba(0, 0, 0, 0.1)}.van-switch{position:relative;display:inline-block;box-sizing:content-box;width:var(--van-switch-width);height:var(--van-switch-height);font-size:var(--van-switch-size);background-color:var(--van-switch-background-color);border:var(--van-switch-border);border-radius:var(--van-switch-node-size);cursor:pointer;transition:background-color var(--van-switch-transition-duration)}.van-switch__node{position:absolute;top:0;left:0;width:var(--van-switch-node-size);height:var(--van-switch-node-size);background-color:var(--van-switch-node-background-color);border-radius:100%;box-shadow:var(--van-switch-node-box-shadow);transition:transform var(--van-switch-transition-duration) cubic-bezier(.3,1.05
|
1
|
+
:root{--van-switch-size:30px;--van-switch-width:2em;--van-switch-height:1em;--van-switch-node-size:1em;--van-switch-node-background-color:var(--van-white);--van-switch-node-box-shadow:0 3px 1px 0 rgba(0, 0, 0, 0.05),0 2px 2px 0 rgba(0, 0, 0, 0.1),0 3px 3px 0 rgba(0, 0, 0, 0.05);--van-switch-background-color:var(--van-white);--van-switch-on-background-color:var(--van-primary-color);--van-switch-transition-duration:var(--van-animation-duration-base);--van-switch-disabled-opacity:var(--van-disabled-opacity);--van-switch-border:var(--van-border-width-base) solid rgba(0, 0, 0, 0.1)}.van-switch{position:relative;display:inline-block;box-sizing:content-box;width:var(--van-switch-width);height:var(--van-switch-height);font-size:var(--van-switch-size);background-color:var(--van-switch-background-color);border:var(--van-switch-border);border-radius:var(--van-switch-node-size);cursor:pointer;transition:background-color var(--van-switch-transition-duration)}.van-switch__node{position:absolute;top:0;left:0;width:var(--van-switch-node-size);height:var(--van-switch-node-size);background-color:var(--van-switch-node-background-color);border-radius:100%;box-shadow:var(--van-switch-node-box-shadow);transition:transform var(--van-switch-transition-duration) cubic-bezier(.3, 1.05, .4, 1.05)}.van-switch__loading{top:25%;left:25%;width:50%;height:50%;line-height:1}.van-switch--on{background-color:var(--van-switch-on-background-color)}.van-switch--on .van-switch__node{transform:translateX(calc(var(--van-switch-width) - var(--van-switch-node-size)))}.van-switch--on .van-switch__loading{color:var(--van-switch-on-background-color)}.van-switch--disabled{cursor:not-allowed;opacity:var(--van-switch-disabled-opacity)}.van-switch--loading{cursor:default}
|
package/lib/switch/index.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
declare const Switch: import("../utils").WithInstall<import("vue").DefineComponent<{
|
1
|
+
export declare const Switch: import("../utils").WithInstall<import("vue").DefineComponent<{
|
2
2
|
size: (NumberConstructor | StringConstructor)[];
|
3
3
|
loading: BooleanConstructor;
|
4
4
|
disabled: BooleanConstructor;
|
@@ -42,4 +42,3 @@ declare const Switch: import("../utils").WithInstall<import("vue").DefineCompone
|
|
42
42
|
inactiveValue: unknown;
|
43
43
|
}>>;
|
44
44
|
export default Switch;
|
45
|
-
export { Switch };
|
package/lib/switch/index.js
CHANGED
package/lib/tab/Tab.d.ts
CHANGED
@@ -11,6 +11,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
11
11
|
disabled: BooleanConstructor;
|
12
12
|
titleClass: PropType<unknown>;
|
13
13
|
titleStyle: PropType<string | CSSProperties>;
|
14
|
+
showZeroBadge: {
|
15
|
+
type: BooleanConstructor;
|
16
|
+
default: true;
|
17
|
+
};
|
14
18
|
}, (() => JSX.Element | undefined) | undefined, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
|
15
19
|
to?: unknown;
|
16
20
|
url?: unknown;
|
@@ -22,10 +26,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
22
26
|
disabled?: unknown;
|
23
27
|
titleClass?: unknown;
|
24
28
|
titleStyle?: unknown;
|
29
|
+
showZeroBadge?: unknown;
|
25
30
|
} & {
|
26
31
|
replace: boolean;
|
27
32
|
dot: boolean;
|
28
33
|
disabled: boolean;
|
34
|
+
showZeroBadge: boolean;
|
29
35
|
} & {
|
30
36
|
url?: string | undefined;
|
31
37
|
to?: import("vue-router").RouteLocationRaw | undefined;
|
@@ -34,9 +40,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
34
40
|
title?: string | undefined;
|
35
41
|
titleClass?: unknown;
|
36
42
|
titleStyle?: string | CSSProperties | undefined;
|
37
|
-
}
|
43
|
+
}>, {
|
38
44
|
replace: boolean;
|
39
45
|
dot: boolean;
|
40
46
|
disabled: boolean;
|
47
|
+
showZeroBadge: boolean;
|
41
48
|
}>;
|
42
49
|
export default _default;
|
package/lib/tab/Tab.js
CHANGED
package/lib/tab/index.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
declare const Tab: import("../utils").WithInstall<import("vue").DefineComponent<{
|
1
|
+
export declare const Tab: import("../utils").WithInstall<import("vue").DefineComponent<{
|
2
2
|
to: import("vue").PropType<import("vue-router").RouteLocationRaw>;
|
3
3
|
url: StringConstructor;
|
4
4
|
replace: BooleanConstructor;
|
@@ -10,6 +10,10 @@ declare const Tab: import("../utils").WithInstall<import("vue").DefineComponent<
|
|
10
10
|
disabled: BooleanConstructor;
|
11
11
|
titleClass: import("vue").PropType<unknown>;
|
12
12
|
titleStyle: import("vue").PropType<string | import("vue").CSSProperties>;
|
13
|
+
showZeroBadge: {
|
14
|
+
type: BooleanConstructor;
|
15
|
+
default: true;
|
16
|
+
};
|
13
17
|
}, (() => JSX.Element | undefined) | undefined, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
|
14
18
|
to?: unknown;
|
15
19
|
url?: unknown;
|
@@ -21,10 +25,12 @@ declare const Tab: import("../utils").WithInstall<import("vue").DefineComponent<
|
|
21
25
|
disabled?: unknown;
|
22
26
|
titleClass?: unknown;
|
23
27
|
titleStyle?: unknown;
|
28
|
+
showZeroBadge?: unknown;
|
24
29
|
} & {
|
25
30
|
replace: boolean;
|
26
31
|
dot: boolean;
|
27
32
|
disabled: boolean;
|
33
|
+
showZeroBadge: boolean;
|
28
34
|
} & {
|
29
35
|
url?: string | undefined;
|
30
36
|
to?: import("vue-router").RouteLocationRaw | undefined;
|
@@ -33,10 +39,10 @@ declare const Tab: import("../utils").WithInstall<import("vue").DefineComponent<
|
|
33
39
|
title?: string | undefined;
|
34
40
|
titleClass?: unknown;
|
35
41
|
titleStyle?: string | import("vue").CSSProperties | undefined;
|
36
|
-
}
|
42
|
+
}>, {
|
37
43
|
replace: boolean;
|
38
44
|
dot: boolean;
|
39
45
|
disabled: boolean;
|
46
|
+
showZeroBadge: boolean;
|
40
47
|
}>>;
|
41
48
|
export default Tab;
|
42
|
-
export { Tab };
|
package/lib/tab/index.js
CHANGED
package/lib/tabbar/index.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
declare const Tabbar: import("../utils").WithInstall<import("vue").DefineComponent<{
|
1
|
+
export declare const Tabbar: import("../utils").WithInstall<import("vue").DefineComponent<{
|
2
2
|
route: BooleanConstructor;
|
3
3
|
fixed: {
|
4
4
|
type: BooleanConstructor;
|
@@ -56,4 +56,3 @@ declare const Tabbar: import("../utils").WithInstall<import("vue").DefineCompone
|
|
56
56
|
route: boolean;
|
57
57
|
}>>;
|
58
58
|
export default Tabbar;
|
59
|
-
export { Tabbar };
|
package/lib/tabbar/index.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
declare const TabbarItem: import("../utils").WithInstall<import("vue").DefineComponent<{
|
1
|
+
export declare const TabbarItem: import("../utils").WithInstall<import("vue").DefineComponent<{
|
2
2
|
to: import("vue").PropType<import("vue-router").RouteLocationRaw>;
|
3
3
|
url: StringConstructor;
|
4
4
|
replace: BooleanConstructor;
|
@@ -34,4 +34,3 @@ declare const TabbarItem: import("../utils").WithInstall<import("vue").DefineCom
|
|
34
34
|
dot: boolean;
|
35
35
|
}>>;
|
36
36
|
export default TabbarItem;
|
37
|
-
export { TabbarItem };
|
package/lib/tabbar-item/index.js
CHANGED
package/lib/tabs/Tabs.js
CHANGED
@@ -309,17 +309,13 @@ var _default = (0, _vue.defineComponent)({
|
|
309
309
|
}
|
310
310
|
};
|
311
311
|
|
312
|
-
var renderNav = () => children.map((item, index) => (0, _vue.createVNode)(_TabsTitle.default, {
|
312
|
+
var renderNav = () => children.map((item, index) => (0, _vue.createVNode)(_TabsTitle.default, (0, _vue.mergeProps)({
|
313
313
|
"ref": setTitleRefs(index),
|
314
|
-
"dot": item.dot,
|
315
314
|
"type": props.type,
|
316
|
-
"badge": item.badge,
|
317
|
-
"title": item.title,
|
318
315
|
"color": props.color,
|
319
316
|
"style": item.titleStyle,
|
320
317
|
"class": item.titleClass,
|
321
318
|
"isActive": index === state.currentIndex,
|
322
|
-
"disabled": item.disabled,
|
323
319
|
"scrollable": scrollable.value,
|
324
320
|
"renderTitle": item.$slots.title,
|
325
321
|
"activeColor": props.titleActiveColor,
|
@@ -327,7 +323,7 @@ var _default = (0, _vue.defineComponent)({
|
|
327
323
|
"onClick": event => {
|
328
324
|
onClickTab(item, index, event);
|
329
325
|
}
|
330
|
-
}, null));
|
326
|
+
}, (0, _utils.pick)(item, ['dot', 'badge', 'title', 'disabled', 'showZeroBadge'])), null));
|
331
327
|
|
332
328
|
var renderHeader = () => {
|
333
329
|
var _slots$navLeft, _slots$navRight;
|
package/lib/tabs/TabsTitle.d.ts
CHANGED
@@ -10,6 +10,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
10
10
|
activeColor: StringConstructor;
|
11
11
|
renderTitle: FunctionConstructor;
|
12
12
|
inactiveColor: StringConstructor;
|
13
|
+
showZeroBadge: {
|
14
|
+
type: BooleanConstructor;
|
15
|
+
default: true;
|
16
|
+
};
|
13
17
|
}, () => 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<{
|
14
18
|
dot?: unknown;
|
15
19
|
type?: unknown;
|
@@ -22,11 +26,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
22
26
|
activeColor?: unknown;
|
23
27
|
renderTitle?: unknown;
|
24
28
|
inactiveColor?: unknown;
|
29
|
+
showZeroBadge?: unknown;
|
25
30
|
} & {
|
26
31
|
dot: boolean;
|
27
32
|
disabled: boolean;
|
28
33
|
isActive: boolean;
|
29
34
|
scrollable: boolean;
|
35
|
+
showZeroBadge: boolean;
|
30
36
|
} & {
|
31
37
|
type?: string | undefined;
|
32
38
|
badge?: string | number | undefined;
|
@@ -35,10 +41,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
35
41
|
activeColor?: string | undefined;
|
36
42
|
inactiveColor?: string | undefined;
|
37
43
|
renderTitle?: Function | undefined;
|
38
|
-
}
|
44
|
+
}>, {
|
39
45
|
dot: boolean;
|
40
46
|
disabled: boolean;
|
41
47
|
isActive: boolean;
|
42
48
|
scrollable: boolean;
|
49
|
+
showZeroBadge: boolean;
|
43
50
|
}>;
|
44
51
|
export default _default;
|
package/lib/tabs/TabsTitle.js
CHANGED
@@ -24,7 +24,8 @@ var _default = (0, _vue.defineComponent)({
|
|
24
24
|
scrollable: Boolean,
|
25
25
|
activeColor: String,
|
26
26
|
renderTitle: Function,
|
27
|
-
inactiveColor: String
|
27
|
+
inactiveColor: String,
|
28
|
+
showZeroBadge: _utils.truthProp
|
28
29
|
},
|
29
30
|
|
30
31
|
setup(props) {
|
@@ -71,7 +72,8 @@ var _default = (0, _vue.defineComponent)({
|
|
71
72
|
if (props.dot || (0, _utils.isDef)(props.badge) && props.badge !== '') {
|
72
73
|
return (0, _vue.createVNode)(_badge.Badge, {
|
73
74
|
"dot": props.dot,
|
74
|
-
"content": props.badge
|
75
|
+
"content": props.badge,
|
76
|
+
"showZero": props.showZeroBadge
|
75
77
|
}, {
|
76
78
|
default: () => [Text]
|
77
79
|
});
|
package/lib/tabs/index.d.ts
CHANGED
@@ -1,4 +1,5 @@
|
|
1
|
-
|
1
|
+
import { TabsProps } from './Tabs';
|
2
|
+
export declare const Tabs: import("../utils").WithInstall<import("vue").DefineComponent<{
|
2
3
|
color: StringConstructor;
|
3
4
|
border: BooleanConstructor;
|
4
5
|
sticky: BooleanConstructor;
|
@@ -103,5 +104,5 @@ declare const Tabs: import("../utils").WithInstall<import("vue").DefineComponent
|
|
103
104
|
swipeThreshold: string | number;
|
104
105
|
}>>;
|
105
106
|
export default Tabs;
|
106
|
-
export {
|
107
|
+
export type { TabsProps };
|
107
108
|
export type { TabsType, TabsInstance } from './types';
|
package/lib/tabs/index.js
CHANGED
package/lib/tabs/utils.js
CHANGED
@@ -8,10 +8,7 @@ var _use = require("@vant/use");
|
|
8
8
|
|
9
9
|
var _utils = require("../utils");
|
10
10
|
|
11
|
-
var rafId;
|
12
|
-
|
13
11
|
function scrollLeftTo(scroller, to, duration) {
|
14
|
-
(0, _use.cancelRaf)(rafId);
|
15
12
|
var count = 0;
|
16
13
|
var from = scroller.scrollLeft;
|
17
14
|
var frames = duration === 0 ? 1 : Math.round(duration * 1000 / 16);
|
@@ -20,7 +17,7 @@ function scrollLeftTo(scroller, to, duration) {
|
|
20
17
|
scroller.scrollLeft += (to - from) / frames;
|
21
18
|
|
22
19
|
if (++count < frames) {
|
23
|
-
|
20
|
+
(0, _use.raf)(animate);
|
24
21
|
}
|
25
22
|
}
|
26
23
|
|
package/lib/tag/index.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
declare const Tag: import("../utils").WithInstall<import("vue").DefineComponent<{
|
1
|
+
export declare const Tag: import("../utils").WithInstall<import("vue").DefineComponent<{
|
2
2
|
size: StringConstructor;
|
3
3
|
mark: BooleanConstructor;
|
4
4
|
show: {
|
@@ -46,4 +46,3 @@ declare const Tag: import("../utils").WithInstall<import("vue").DefineComponent<
|
|
46
46
|
closeable: boolean;
|
47
47
|
}>>;
|
48
48
|
export default Tag;
|
49
|
-
export { Tag };
|
package/lib/tag/index.js
CHANGED
package/lib/toast/Toast.d.ts
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
import { PropType, CSSProperties } from 'vue';
|
2
2
|
import { LoadingType } from '../loading';
|
3
|
-
|
4
|
-
export declare type ToastPosition = 'top' | 'middle' | 'bottom';
|
3
|
+
import type { ToastType, ToastPosition } from './types';
|
5
4
|
declare const _default: import("vue").DefineComponent<{
|
6
5
|
icon: StringConstructor;
|
7
6
|
show: BooleanConstructor;
|
package/lib/toast/Toast.js
CHANGED
@@ -1,29 +1,6 @@
|
|
1
|
-
import { App
|
1
|
+
import { App } from 'vue';
|
2
2
|
import { ComponentInstance } from '../utils';
|
3
|
-
import { ToastType,
|
4
|
-
import type { LoadingType } from '../loading';
|
5
|
-
export declare type ToastOptions = {
|
6
|
-
icon?: string;
|
7
|
-
type?: ToastType;
|
8
|
-
mask?: boolean;
|
9
|
-
message?: string | number;
|
10
|
-
onClose?: () => void;
|
11
|
-
onOpened?: () => void;
|
12
|
-
overlay?: boolean;
|
13
|
-
duration?: number;
|
14
|
-
teleport?: TeleportProps['to'];
|
15
|
-
iconSize?: number | string;
|
16
|
-
position?: ToastPosition;
|
17
|
-
className?: unknown;
|
18
|
-
transition?: string;
|
19
|
-
iconPrefix?: string;
|
20
|
-
loadingType?: LoadingType;
|
21
|
-
forbidClick?: boolean;
|
22
|
-
closeOnClick?: boolean;
|
23
|
-
overlayClass?: unknown;
|
24
|
-
overlayStyle?: Record<string, any>;
|
25
|
-
closeOnClickOverlay?: boolean;
|
26
|
-
};
|
3
|
+
import type { ToastType, ToastOptions } from './types';
|
27
4
|
declare function Toast(options?: string | ToastOptions): ComponentInstance;
|
28
5
|
declare namespace Toast {
|
29
6
|
var loading: (options: string | ToastOptions) => ComponentInstance;
|