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/es/picker/index.d.ts
CHANGED
@@ -1,4 +1,5 @@
|
|
1
|
-
|
1
|
+
import { PickerProps } from './Picker';
|
2
|
+
export declare const Picker: import("../utils").WithInstall<import("vue").DefineComponent<{
|
2
3
|
title: StringConstructor;
|
3
4
|
loading: BooleanConstructor;
|
4
5
|
readonly: BooleanConstructor;
|
@@ -36,7 +37,7 @@ declare const Picker: import("../utils").WithInstall<import("vue").DefineCompone
|
|
36
37
|
type: import("vue").PropType<import("./types").PickerToolbarPosition>;
|
37
38
|
default: string;
|
38
39
|
};
|
39
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
40
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "cancel" | "confirm")[], "change" | "cancel" | "confirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
|
40
41
|
title?: unknown;
|
41
42
|
loading?: unknown;
|
42
43
|
readonly?: unknown;
|
@@ -55,12 +56,12 @@ declare const Picker: import("../utils").WithInstall<import("vue").DefineCompone
|
|
55
56
|
} & {
|
56
57
|
readonly: boolean;
|
57
58
|
loading: boolean;
|
59
|
+
defaultIndex: string | number;
|
58
60
|
allowHtml: boolean;
|
59
61
|
showToolbar: boolean;
|
60
62
|
itemHeight: string | number;
|
61
63
|
visibleItemCount: string | number;
|
62
64
|
swipeDuration: string | number;
|
63
|
-
defaultIndex: string | number;
|
64
65
|
columns: import("./types").PickerOption[] | import("./types").PickerColumn[];
|
65
66
|
toolbarPosition: import("./types").PickerToolbarPosition;
|
66
67
|
} & {
|
@@ -76,15 +77,15 @@ declare const Picker: import("../utils").WithInstall<import("vue").DefineCompone
|
|
76
77
|
}, {
|
77
78
|
readonly: boolean;
|
78
79
|
loading: boolean;
|
80
|
+
defaultIndex: string | number;
|
79
81
|
allowHtml: boolean;
|
80
82
|
showToolbar: boolean;
|
81
83
|
itemHeight: string | number;
|
82
84
|
visibleItemCount: string | number;
|
83
85
|
swipeDuration: string | number;
|
84
|
-
defaultIndex: string | number;
|
85
86
|
columns: import("./types").PickerOption[] | import("./types").PickerColumn[];
|
86
87
|
toolbarPosition: import("./types").PickerToolbarPosition;
|
87
88
|
}>>;
|
88
89
|
export default Picker;
|
89
|
-
export {
|
90
|
+
export type { PickerProps };
|
90
91
|
export type { PickerColumn, PickerOption, PickerInstance, PickerFieldNames, PickerObjectColumn, PickerObjectOption, PickerToolbarPosition, } from './types';
|
package/es/picker/index.js
CHANGED
package/es/picker/types.d.ts
CHANGED
@@ -22,15 +22,15 @@ export declare type PickerObjectColumn = {
|
|
22
22
|
export declare type PickerColumn = PickerOption[] | PickerObjectColumn;
|
23
23
|
export declare type PickerExpose = {
|
24
24
|
confirm: () => void;
|
25
|
-
getValues: () =>
|
25
|
+
getValues: <T = PickerOption>() => T[];
|
26
26
|
setValues: (values: string[]) => void;
|
27
27
|
getIndexes: () => number[];
|
28
28
|
setIndexes: (indexes: number[]) => void;
|
29
29
|
getColumnIndex: (index: number) => number;
|
30
30
|
setColumnIndex: (columnIndex: number, optionIndex: number) => void;
|
31
|
-
getColumnValue: (index: number) =>
|
31
|
+
getColumnValue: <T = PickerOption>(index: number) => T;
|
32
32
|
setColumnValue: (index: number, value: string) => void;
|
33
|
-
getColumnValues: (index: number) =>
|
33
|
+
getColumnValues: <T = PickerOption>(index: number) => T[];
|
34
34
|
setColumnValues: (index: number, options: PickerOption[]) => void;
|
35
35
|
};
|
36
36
|
export declare type PickerInstance = ComponentPublicInstance<PickerProps, PickerExpose>;
|
package/es/popover/Popover.d.ts
CHANGED
@@ -8,6 +8,7 @@ export declare type PopoverAction = {
|
|
8
8
|
color?: string;
|
9
9
|
disabled?: boolean;
|
10
10
|
className?: string;
|
11
|
+
[key: PropertyKey]: any;
|
11
12
|
};
|
12
13
|
declare const _default: import("vue").DefineComponent<{
|
13
14
|
show: BooleanConstructor;
|
@@ -52,6 +53,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
52
53
|
type: PropType<string | import("vue").RendererElement | null | undefined>;
|
53
54
|
default: string;
|
54
55
|
};
|
56
|
+
showArrow: {
|
57
|
+
type: BooleanConstructor;
|
58
|
+
default: boolean;
|
59
|
+
};
|
55
60
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "touchstart" | "update:show")[], "select" | "touchstart" | "update:show", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
|
56
61
|
show?: unknown;
|
57
62
|
overlay?: unknown;
|
@@ -68,6 +73,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
68
73
|
actions?: unknown;
|
69
74
|
placement?: unknown;
|
70
75
|
teleport?: unknown;
|
76
|
+
showArrow?: unknown;
|
71
77
|
} & {
|
72
78
|
offset: [number, number];
|
73
79
|
overlay: boolean;
|
@@ -80,6 +86,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
80
86
|
closeOnClickOutside: boolean;
|
81
87
|
trigger: PopoverTrigger;
|
82
88
|
placement: PopoverPlacement;
|
89
|
+
showArrow: boolean;
|
83
90
|
} & {
|
84
91
|
iconPrefix?: string | undefined;
|
85
92
|
duration?: string | number | undefined;
|
@@ -101,5 +108,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
101
108
|
closeOnClickOutside: boolean;
|
102
109
|
trigger: PopoverTrigger;
|
103
110
|
placement: PopoverPlacement;
|
111
|
+
showArrow: boolean;
|
104
112
|
}>;
|
105
113
|
export default _default;
|
package/es/popover/Popover.js
CHANGED
@@ -45,6 +45,10 @@ export default defineComponent({
|
|
45
45
|
teleport: {
|
46
46
|
type: [String, Object],
|
47
47
|
default: 'body'
|
48
|
+
},
|
49
|
+
showArrow: {
|
50
|
+
type: Boolean,
|
51
|
+
default: true
|
48
52
|
}
|
49
53
|
},
|
50
54
|
emits: ['select', 'touchstart', 'update:show'],
|
@@ -58,20 +62,26 @@ export default defineComponent({
|
|
58
62
|
var wrapperRef = ref();
|
59
63
|
var popoverRef = ref();
|
60
64
|
|
61
|
-
var createPopperInstance = () =>
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
65
|
+
var createPopperInstance = () => {
|
66
|
+
if (wrapperRef.value && popoverRef.value) {
|
67
|
+
return createPopper(wrapperRef.value, popoverRef.value.popupRef.value, {
|
68
|
+
placement: props.placement,
|
69
|
+
modifiers: [{
|
70
|
+
name: 'computeStyles',
|
71
|
+
options: {
|
72
|
+
adaptive: false,
|
73
|
+
gpuAcceleration: false
|
74
|
+
}
|
75
|
+
}, extend({}, offsetModifier, {
|
76
|
+
options: {
|
77
|
+
offset: props.offset
|
78
|
+
}
|
79
|
+
})]
|
80
|
+
});
|
81
|
+
}
|
82
|
+
|
83
|
+
return null;
|
84
|
+
};
|
75
85
|
|
76
86
|
var updateLocation = () => {
|
77
87
|
nextTick(() => {
|
@@ -172,7 +182,7 @@ export default defineComponent({
|
|
172
182
|
}, attrs, pick(props, popupProps), {
|
173
183
|
'onUpdate:show': updateShow
|
174
184
|
}), {
|
175
|
-
default: () => [_createVNode("div", {
|
185
|
+
default: () => [props.showArrow && _createVNode("div", {
|
176
186
|
"class": bem('arrow')
|
177
187
|
}, null), _createVNode("div", {
|
178
188
|
"role": "menu",
|
package/es/popover/index.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
declare const Popover: import("../utils").WithInstall<import("vue").DefineComponent<{
|
1
|
+
export declare const Popover: import("../utils").WithInstall<import("vue").DefineComponent<{
|
2
2
|
show: BooleanConstructor;
|
3
3
|
overlay: BooleanConstructor;
|
4
4
|
duration: (NumberConstructor | StringConstructor)[];
|
@@ -41,6 +41,10 @@ declare const Popover: import("../utils").WithInstall<import("vue").DefineCompon
|
|
41
41
|
type: import("vue").PropType<string | import("vue").RendererElement | null | undefined>;
|
42
42
|
default: string;
|
43
43
|
};
|
44
|
+
showArrow: {
|
45
|
+
type: BooleanConstructor;
|
46
|
+
default: boolean;
|
47
|
+
};
|
44
48
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "touchstart" | "update:show")[], "select" | "touchstart" | "update:show", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
|
45
49
|
show?: unknown;
|
46
50
|
overlay?: unknown;
|
@@ -57,6 +61,7 @@ declare const Popover: import("../utils").WithInstall<import("vue").DefineCompon
|
|
57
61
|
actions?: unknown;
|
58
62
|
placement?: unknown;
|
59
63
|
teleport?: unknown;
|
64
|
+
showArrow?: unknown;
|
60
65
|
} & {
|
61
66
|
offset: [number, number];
|
62
67
|
overlay: boolean;
|
@@ -69,6 +74,7 @@ declare const Popover: import("../utils").WithInstall<import("vue").DefineCompon
|
|
69
74
|
closeOnClickOutside: boolean;
|
70
75
|
trigger: import("./Popover").PopoverTrigger;
|
71
76
|
placement: import("./Popover").PopoverPlacement;
|
77
|
+
showArrow: boolean;
|
72
78
|
} & {
|
73
79
|
iconPrefix?: string | undefined;
|
74
80
|
duration?: string | number | undefined;
|
@@ -90,7 +96,7 @@ declare const Popover: import("../utils").WithInstall<import("vue").DefineCompon
|
|
90
96
|
closeOnClickOutside: boolean;
|
91
97
|
trigger: import("./Popover").PopoverTrigger;
|
92
98
|
placement: import("./Popover").PopoverPlacement;
|
99
|
+
showArrow: boolean;
|
93
100
|
}>>;
|
94
101
|
export default Popover;
|
95
|
-
export { Popover };
|
96
102
|
export type { PopoverTheme, PopoverAction, PopoverTrigger, PopoverPlacement, } from './Popover';
|
package/es/popover/index.js
CHANGED
package/es/popup/Popup.js
CHANGED
@@ -74,17 +74,17 @@ export default defineComponent({
|
|
74
74
|
}
|
75
75
|
};
|
76
76
|
|
77
|
-
var triggerClose = () => {
|
78
|
-
opened = false;
|
79
|
-
emit('close');
|
80
|
-
emit('update:show', false);
|
81
|
-
};
|
82
|
-
|
83
77
|
var close = () => {
|
84
78
|
if (opened) {
|
85
79
|
callInterceptor({
|
86
80
|
interceptor: props.beforeClose,
|
87
|
-
|
81
|
+
|
82
|
+
done() {
|
83
|
+
opened = false;
|
84
|
+
emit('close');
|
85
|
+
emit('update:show', false);
|
86
|
+
}
|
87
|
+
|
88
88
|
});
|
89
89
|
}
|
90
90
|
};
|
@@ -176,7 +176,8 @@ export default defineComponent({
|
|
176
176
|
if (value) {
|
177
177
|
open();
|
178
178
|
} else {
|
179
|
-
|
179
|
+
opened = false;
|
180
|
+
emit('close');
|
180
181
|
}
|
181
182
|
});
|
182
183
|
useExpose({
|
package/es/popup/index.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
declare const Popup: import("../utils").WithInstall<import("vue").DefineComponent<{
|
1
|
+
export declare const Popup: import("../utils").WithInstall<import("vue").DefineComponent<{
|
2
2
|
show: BooleanConstructor;
|
3
3
|
zIndex: (NumberConstructor | StringConstructor)[];
|
4
4
|
overlay: {
|
@@ -112,5 +112,4 @@ declare const Popup: import("../utils").WithInstall<import("vue").DefineComponen
|
|
112
112
|
closeIconPosition: import("./Popup").PopupCloseIconPosition;
|
113
113
|
}>>;
|
114
114
|
export default Popup;
|
115
|
-
export { Popup };
|
116
115
|
export type { PopupPosition, PopupCloseIconPosition } from './Popup';
|
package/es/popup/index.js
CHANGED
@@ -13,6 +13,7 @@ declare const props: {
|
|
13
13
|
strokeWidth: (NumberConstructor | StringConstructor)[];
|
14
14
|
percentage: {
|
15
15
|
type: (NumberConstructor | StringConstructor)[];
|
16
|
+
default: number;
|
16
17
|
validator: (value: number | string) => boolean;
|
17
18
|
};
|
18
19
|
};
|
@@ -31,6 +32,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
31
32
|
strokeWidth: (NumberConstructor | StringConstructor)[];
|
32
33
|
percentage: {
|
33
34
|
type: (NumberConstructor | StringConstructor)[];
|
35
|
+
default: number;
|
34
36
|
validator: (value: string | number) => boolean;
|
35
37
|
};
|
36
38
|
}, () => 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<{
|
@@ -46,6 +48,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
46
48
|
} & {
|
47
49
|
inactive: boolean;
|
48
50
|
showPivot: boolean;
|
51
|
+
percentage: string | number;
|
49
52
|
} & {
|
50
53
|
color?: string | undefined;
|
51
54
|
textColor?: string | undefined;
|
@@ -53,9 +56,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
53
56
|
pivotText?: string | undefined;
|
54
57
|
pivotColor?: string | undefined;
|
55
58
|
trackColor?: string | undefined;
|
56
|
-
|
57
|
-
}> & {}, {
|
59
|
+
}>, {
|
58
60
|
inactive: boolean;
|
59
61
|
showPivot: boolean;
|
62
|
+
percentage: string | number;
|
60
63
|
}>;
|
61
64
|
export default _default;
|
package/es/progress/Progress.js
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
import { createVNode as _createVNode } from "vue";
|
2
|
-
import {
|
2
|
+
import { computed, defineComponent } from 'vue';
|
3
3
|
import { truthProp, createNamespace, addUnit } from '../utils';
|
4
|
-
import { useExpose } from '../composables/use-expose';
|
5
4
|
var [name, bem] = createNamespace('progress');
|
6
5
|
var props = {
|
7
6
|
color: String,
|
@@ -14,6 +13,7 @@ var props = {
|
|
14
13
|
strokeWidth: [Number, String],
|
15
14
|
percentage: {
|
16
15
|
type: [Number, String],
|
16
|
+
default: 0,
|
17
17
|
validator: value => value >= 0 && value <= 100
|
18
18
|
}
|
19
19
|
};
|
@@ -22,26 +22,9 @@ export default defineComponent({
|
|
22
22
|
props,
|
23
23
|
|
24
24
|
setup(props) {
|
25
|
-
var root = ref();
|
26
|
-
var pivotRef = ref();
|
27
|
-
var state = reactive({
|
28
|
-
rootWidth: 0,
|
29
|
-
pivotWidth: 0
|
30
|
-
});
|
31
25
|
var background = computed(() => props.inactive ? '#cacaca' : props.color);
|
32
26
|
|
33
|
-
var resize = () => {
|
34
|
-
nextTick(() => {
|
35
|
-
state.rootWidth = root.value ? root.value.offsetWidth : 0;
|
36
|
-
state.pivotWidth = pivotRef.value ? pivotRef.value.offsetWidth : 0;
|
37
|
-
});
|
38
|
-
};
|
39
|
-
|
40
27
|
var renderPivot = () => {
|
41
|
-
var {
|
42
|
-
rootWidth,
|
43
|
-
pivotWidth
|
44
|
-
} = state;
|
45
28
|
var {
|
46
29
|
textColor,
|
47
30
|
pivotText,
|
@@ -49,28 +32,21 @@ export default defineComponent({
|
|
49
32
|
percentage
|
50
33
|
} = props;
|
51
34
|
var text = pivotText != null ? pivotText : percentage + "%";
|
52
|
-
var show = props.showPivot && text;
|
53
35
|
|
54
|
-
if (
|
55
|
-
var left = (rootWidth - pivotWidth) * +percentage / 100;
|
36
|
+
if (props.showPivot && text) {
|
56
37
|
var style = {
|
57
38
|
color: textColor,
|
58
|
-
left:
|
39
|
+
left: +percentage + "%",
|
40
|
+
transform: "translate(-" + +percentage + "%,-50%)",
|
59
41
|
background: pivotColor || background.value
|
60
42
|
};
|
61
43
|
return _createVNode("span", {
|
62
|
-
"ref": pivotRef,
|
63
44
|
"style": style,
|
64
45
|
"class": bem('pivot')
|
65
46
|
}, [text]);
|
66
47
|
}
|
67
48
|
};
|
68
49
|
|
69
|
-
watch(() => [props.showPivot, props.pivotText], resize);
|
70
|
-
onMounted(resize);
|
71
|
-
useExpose({
|
72
|
-
resize
|
73
|
-
});
|
74
50
|
return () => {
|
75
51
|
var {
|
76
52
|
trackColor,
|
@@ -83,16 +59,15 @@ export default defineComponent({
|
|
83
59
|
};
|
84
60
|
var portionStyle = {
|
85
61
|
background: background.value,
|
86
|
-
|
62
|
+
transform: "scaleX(" + +percentage / 100 + ")"
|
87
63
|
};
|
88
64
|
return _createVNode("div", {
|
89
|
-
"ref": root,
|
90
65
|
"class": bem(),
|
91
66
|
"style": rootStyle
|
92
67
|
}, [_createVNode("span", {
|
93
68
|
"class": bem('portion'),
|
94
69
|
"style": portionStyle
|
95
|
-
},
|
70
|
+
}, null), renderPivot()]);
|
96
71
|
};
|
97
72
|
}
|
98
73
|
|
package/es/progress/index.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
:root{--van-progress-height:4px;--van-progress-color:var(--van-primary-color);--van-progress-background-color:var(--van-gray-3);--van-progress-pivot-padding:0 5px;--van-progress-pivot-text-color:var(--van-white);--van-progress-pivot-font-size:var(--van-font-size-xs);--van-progress-pivot-line-height:1.6;--van-progress-pivot-background-color:var(--van-primary-color)}.van-progress{position:relative;height:var(--van-progress-height);background:var(--van-progress-background-color);border-radius:var(--van-progress-height)}.van-progress__portion{position:absolute;left:0;height:100%;background:var(--van-progress-color);border-radius:inherit}.van-progress__pivot{position:absolute;top:50%;box-sizing:border-box;min-width:3.6em;padding:var(--van-progress-pivot-padding);color:var(--van-progress-pivot-text-color);font-size:var(--van-progress-pivot-font-size);line-height:var(--van-progress-pivot-line-height);text-align:center;word-break:keep-all;background-color:var(--van-progress-pivot-background-color);border-radius:1em;
|
1
|
+
:root{--van-progress-height:4px;--van-progress-color:var(--van-primary-color);--van-progress-background-color:var(--van-gray-3);--van-progress-pivot-padding:0 5px;--van-progress-pivot-text-color:var(--van-white);--van-progress-pivot-font-size:var(--van-font-size-xs);--van-progress-pivot-line-height:1.6;--van-progress-pivot-background-color:var(--van-primary-color)}.van-progress{position:relative;height:var(--van-progress-height);background:var(--van-progress-background-color);border-radius:var(--van-progress-height)}.van-progress__portion{position:absolute;left:0;width:100%;height:100%;background:var(--van-progress-color);border-radius:inherit;transform-origin:0;transition:all var(--van-animation-duration-base) var(--van-animation-timing-function-enter)}.van-progress__pivot{position:absolute;top:50%;box-sizing:border-box;min-width:3.6em;padding:var(--van-progress-pivot-padding);color:var(--van-progress-pivot-text-color);font-size:var(--van-progress-pivot-font-size);line-height:var(--van-progress-pivot-line-height);text-align:center;word-break:keep-all;background-color:var(--van-progress-pivot-background-color);border-radius:1em;transition:all var(--van-animation-duration-base) var(--van-animation-timing-function-enter)}
|
package/es/progress/index.d.ts
CHANGED
@@ -1,4 +1,5 @@
|
|
1
|
-
|
1
|
+
import { ProgressProps } from './Progress';
|
2
|
+
export declare const Progress: import("../utils").WithInstall<import("vue").DefineComponent<{
|
2
3
|
color: StringConstructor;
|
3
4
|
inactive: BooleanConstructor;
|
4
5
|
pivotText: StringConstructor;
|
@@ -12,6 +13,7 @@ declare const Progress: import("../utils").WithInstall<import("vue").DefineCompo
|
|
12
13
|
strokeWidth: (NumberConstructor | StringConstructor)[];
|
13
14
|
percentage: {
|
14
15
|
type: (NumberConstructor | StringConstructor)[];
|
16
|
+
default: number;
|
15
17
|
validator: (value: string | number) => boolean;
|
16
18
|
};
|
17
19
|
}, () => 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<{
|
@@ -27,6 +29,7 @@ declare const Progress: import("../utils").WithInstall<import("vue").DefineCompo
|
|
27
29
|
} & {
|
28
30
|
inactive: boolean;
|
29
31
|
showPivot: boolean;
|
32
|
+
percentage: string | number;
|
30
33
|
} & {
|
31
34
|
color?: string | undefined;
|
32
35
|
textColor?: string | undefined;
|
@@ -34,11 +37,11 @@ declare const Progress: import("../utils").WithInstall<import("vue").DefineCompo
|
|
34
37
|
pivotText?: string | undefined;
|
35
38
|
pivotColor?: string | undefined;
|
36
39
|
trackColor?: string | undefined;
|
37
|
-
|
38
|
-
}> & {}, {
|
40
|
+
}>, {
|
39
41
|
inactive: boolean;
|
40
42
|
showPivot: boolean;
|
43
|
+
percentage: string | number;
|
41
44
|
}>>;
|
42
45
|
export default Progress;
|
43
|
-
export {
|
46
|
+
export type { ProgressProps };
|
44
47
|
export type { ProgressInstance } from './types';
|
package/es/progress/index.js
CHANGED
package/es/progress/index.less
CHANGED
@@ -20,9 +20,13 @@
|
|
20
20
|
&__portion {
|
21
21
|
position: absolute;
|
22
22
|
left: 0;
|
23
|
+
width: 100%;
|
23
24
|
height: 100%;
|
24
25
|
background: var(--van-progress-color);
|
25
26
|
border-radius: inherit;
|
27
|
+
transform-origin: 0;
|
28
|
+
transition: all var(--van-animation-duration-base)
|
29
|
+
var(--van-animation-timing-function-enter);
|
26
30
|
}
|
27
31
|
|
28
32
|
&__pivot {
|
@@ -38,6 +42,7 @@
|
|
38
42
|
word-break: keep-all;
|
39
43
|
background-color: var(--van-progress-pivot-background-color);
|
40
44
|
border-radius: 1em;
|
41
|
-
|
45
|
+
transition: all var(--van-animation-duration-base)
|
46
|
+
var(--van-animation-timing-function-enter);
|
42
47
|
}
|
43
48
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
declare const PullRefresh: import("../utils").WithInstall<import("vue").DefineComponent<{
|
1
|
+
export declare const PullRefresh: import("../utils").WithInstall<import("vue").DefineComponent<{
|
2
2
|
disabled: BooleanConstructor;
|
3
3
|
successText: StringConstructor;
|
4
4
|
pullingText: StringConstructor;
|
@@ -55,4 +55,3 @@ declare const PullRefresh: import("../utils").WithInstall<import("vue").DefineCo
|
|
55
55
|
headHeight: string | number;
|
56
56
|
}>>;
|
57
57
|
export default PullRefresh;
|
58
|
-
export { PullRefresh };
|
package/es/pull-refresh/index.js
CHANGED
@@ -1,5 +1,4 @@
|
|
1
1
|
import { withInstall } from '../utils';
|
2
2
|
import _PullRefresh from './PullRefresh';
|
3
|
-
var PullRefresh = withInstall(_PullRefresh);
|
4
|
-
export default PullRefresh;
|
5
|
-
export { PullRefresh };
|
3
|
+
export var PullRefresh = withInstall(_PullRefresh);
|
4
|
+
export default PullRefresh;
|
package/es/radio/Radio.d.ts
CHANGED
@@ -21,8 +21,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
21
21
|
shape?: unknown;
|
22
22
|
} & {
|
23
23
|
disabled: boolean;
|
24
|
-
labelDisabled: boolean;
|
25
24
|
shape: import("../checkbox/Checker").CheckerShape;
|
25
|
+
labelDisabled: boolean;
|
26
26
|
} & {
|
27
27
|
name?: unknown;
|
28
28
|
modelValue?: unknown;
|
@@ -33,7 +33,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
33
33
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
34
34
|
}, {
|
35
35
|
disabled: boolean;
|
36
|
-
labelDisabled: boolean;
|
37
36
|
shape: import("../checkbox/Checker").CheckerShape;
|
37
|
+
labelDisabled: boolean;
|
38
38
|
}>;
|
39
39
|
export default _default;
|
package/es/radio/index.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
declare const Radio: import("../utils").WithInstall<import("vue").DefineComponent<{
|
1
|
+
export declare const Radio: import("../utils").WithInstall<import("vue").DefineComponent<{
|
2
2
|
name: import("vue").PropType<unknown>;
|
3
3
|
disabled: BooleanConstructor;
|
4
4
|
iconSize: (NumberConstructor | StringConstructor)[];
|
@@ -21,8 +21,8 @@ declare const Radio: import("../utils").WithInstall<import("vue").DefineComponen
|
|
21
21
|
shape?: unknown;
|
22
22
|
} & {
|
23
23
|
disabled: boolean;
|
24
|
-
labelDisabled: boolean;
|
25
24
|
shape: import("../checkbox/Checker").CheckerShape;
|
25
|
+
labelDisabled: boolean;
|
26
26
|
} & {
|
27
27
|
name?: unknown;
|
28
28
|
modelValue?: unknown;
|
@@ -33,8 +33,7 @@ declare const Radio: import("../utils").WithInstall<import("vue").DefineComponen
|
|
33
33
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
34
34
|
}, {
|
35
35
|
disabled: boolean;
|
36
|
-
labelDisabled: boolean;
|
37
36
|
shape: import("../checkbox/Checker").CheckerShape;
|
37
|
+
labelDisabled: boolean;
|
38
38
|
}>>;
|
39
39
|
export default Radio;
|
40
|
-
export { Radio };
|
package/es/radio/index.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
declare const RadioGroup: import("../utils").WithInstall<import("vue").DefineComponent<{
|
1
|
+
export declare const RadioGroup: import("../utils").WithInstall<import("vue").DefineComponent<{
|
2
2
|
disabled: BooleanConstructor;
|
3
3
|
iconSize: (NumberConstructor | StringConstructor)[];
|
4
4
|
direction: import("vue").PropType<import("../checkbox/Checker").CheckerDirection>;
|
@@ -24,4 +24,3 @@ declare const RadioGroup: import("../utils").WithInstall<import("vue").DefineCom
|
|
24
24
|
disabled: boolean;
|
25
25
|
}>>;
|
26
26
|
export default RadioGroup;
|
27
|
-
export { RadioGroup };
|
package/es/radio-group/index.js
CHANGED
package/es/rate/Rate.d.ts
CHANGED
@@ -44,8 +44,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
44
44
|
voidIcon?: unknown;
|
45
45
|
count?: unknown;
|
46
46
|
} & {
|
47
|
-
icon: string;
|
48
47
|
disabled: boolean;
|
48
|
+
icon: string;
|
49
49
|
readonly: boolean;
|
50
50
|
modelValue: number;
|
51
51
|
touchable: boolean;
|
@@ -63,8 +63,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
63
63
|
onChange?: ((...args: any[]) => any) | undefined;
|
64
64
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
65
65
|
}, {
|
66
|
-
icon: string;
|
67
66
|
disabled: boolean;
|
67
|
+
icon: string;
|
68
68
|
readonly: boolean;
|
69
69
|
modelValue: number;
|
70
70
|
touchable: boolean;
|
package/es/rate/Rate.js
CHANGED
@@ -79,7 +79,7 @@ export default defineComponent({
|
|
79
79
|
|
80
80
|
var untouchable = () => props.readonly || props.disabled || !props.touchable;
|
81
81
|
|
82
|
-
var list = computed(() => Array(props.count).fill('').map((_, i) => getRateStatus(props.modelValue, i + 1, props.allowHalf, props.readonly)));
|
82
|
+
var list = computed(() => Array(+props.count).fill('').map((_, i) => getRateStatus(props.modelValue, i + 1, props.allowHalf, props.readonly)));
|
83
83
|
var ranges;
|
84
84
|
|
85
85
|
var updateRanges = () => {
|
package/es/rate/index.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
declare const Rate: import("../utils").WithInstall<import("vue").DefineComponent<{
|
1
|
+
export declare const Rate: import("../utils").WithInstall<import("vue").DefineComponent<{
|
2
2
|
size: (NumberConstructor | StringConstructor)[];
|
3
3
|
color: StringConstructor;
|
4
4
|
gutter: (NumberConstructor | StringConstructor)[];
|
@@ -44,8 +44,8 @@ declare const Rate: import("../utils").WithInstall<import("vue").DefineComponent
|
|
44
44
|
voidIcon?: unknown;
|
45
45
|
count?: unknown;
|
46
46
|
} & {
|
47
|
-
icon: string;
|
48
47
|
disabled: boolean;
|
48
|
+
icon: string;
|
49
49
|
readonly: boolean;
|
50
50
|
modelValue: number;
|
51
51
|
touchable: boolean;
|
@@ -63,8 +63,8 @@ declare const Rate: import("../utils").WithInstall<import("vue").DefineComponent
|
|
63
63
|
onChange?: ((...args: any[]) => any) | undefined;
|
64
64
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
65
65
|
}, {
|
66
|
-
icon: string;
|
67
66
|
disabled: boolean;
|
67
|
+
icon: string;
|
68
68
|
readonly: boolean;
|
69
69
|
modelValue: number;
|
70
70
|
touchable: boolean;
|
@@ -73,4 +73,3 @@ declare const Rate: import("../utils").WithInstall<import("vue").DefineComponent
|
|
73
73
|
voidIcon: string;
|
74
74
|
}>>;
|
75
75
|
export default Rate;
|
76
|
-
export { Rate };
|
package/es/rate/index.js
CHANGED