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/vetur/attributes.json
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
"description": "是否显示动作面板, 默认值: `false`"
|
5
5
|
},
|
6
6
|
"van-action-sheet/actions": {
|
7
|
-
"type": "
|
7
|
+
"type": "ActionSheetAction[]",
|
8
8
|
"description": "面板选项列表, 默认值: `[]`"
|
9
9
|
},
|
10
10
|
"van-action-sheet/title": {
|
@@ -82,6 +82,89 @@
|
|
82
82
|
"type": "(action: string) => boolean | Promise\\<boolean\\>",
|
83
83
|
"description": "关闭前的回调函数,返回 `false` 可阻止关闭,支持返回 Promise, 默认值: -"
|
84
84
|
},
|
85
|
+
"van-action-bar/safe-area-inset-bottom": {
|
86
|
+
"type": "boolean",
|
87
|
+
"description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei), 默认值: `true`"
|
88
|
+
},
|
89
|
+
"van-action-bar-icon/text": {
|
90
|
+
"type": "string",
|
91
|
+
"description": "按钮文字, 默认值: -"
|
92
|
+
},
|
93
|
+
"van-action-bar-icon/icon": {
|
94
|
+
"type": "string",
|
95
|
+
"description": "图标, 默认值: -"
|
96
|
+
},
|
97
|
+
"van-action-bar-icon/color": {
|
98
|
+
"type": "string",
|
99
|
+
"description": "图标颜色, 默认值: `#323233`"
|
100
|
+
},
|
101
|
+
"van-action-bar-icon/icon-class": {
|
102
|
+
"type": "string | Array \\",
|
103
|
+
"description": "图标额外类名, 默认值: object_",
|
104
|
+
"options": [
|
105
|
+
"-"
|
106
|
+
]
|
107
|
+
},
|
108
|
+
"van-action-bar-icon/icon-prefix": {
|
109
|
+
"type": "string",
|
110
|
+
"description": "图标类名前缀,等同于 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props), 默认值: `van-icon`"
|
111
|
+
},
|
112
|
+
"van-action-bar-icon/dot": {
|
113
|
+
"type": "boolean",
|
114
|
+
"description": "是否显示图标右上角小红点, 默认值: `false`"
|
115
|
+
},
|
116
|
+
"van-action-bar-icon/badge": {
|
117
|
+
"type": "number | string",
|
118
|
+
"description": "图标右上角徽标的内容, 默认值: -"
|
119
|
+
},
|
120
|
+
"van-action-bar-icon/url": {
|
121
|
+
"type": "string",
|
122
|
+
"description": "点击后跳转的链接地址, 默认值: -"
|
123
|
+
},
|
124
|
+
"van-action-bar-icon/to": {
|
125
|
+
"type": "string | object",
|
126
|
+
"description": "点击后跳转的目标路由对象,等同于 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to), 默认值: -"
|
127
|
+
},
|
128
|
+
"van-action-bar-icon/replace": {
|
129
|
+
"type": "boolean",
|
130
|
+
"description": "是否在跳转时替换当前页面历史, 默认值: `false`"
|
131
|
+
},
|
132
|
+
"van-action-bar-button/text": {
|
133
|
+
"type": "string",
|
134
|
+
"description": "按钮文字, 默认值: -"
|
135
|
+
},
|
136
|
+
"van-action-bar-button/type": {
|
137
|
+
"type": "string",
|
138
|
+
"description": "按钮类型,可选值为 `primary` `info` `warning` `danger`, 默认值: `default`"
|
139
|
+
},
|
140
|
+
"van-action-bar-button/color": {
|
141
|
+
"type": "string",
|
142
|
+
"description": "按钮颜色,支持传入 `linear-gradient` 渐变色, 默认值: -"
|
143
|
+
},
|
144
|
+
"van-action-bar-button/icon": {
|
145
|
+
"type": "string",
|
146
|
+
"description": "左侧[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
|
147
|
+
},
|
148
|
+
"van-action-bar-button/disabled": {
|
149
|
+
"type": "boolean",
|
150
|
+
"description": "是否禁用按钮, 默认值: `false`"
|
151
|
+
},
|
152
|
+
"van-action-bar-button/loading": {
|
153
|
+
"type": "boolean",
|
154
|
+
"description": "是否显示为加载状态, 默认值: `false`"
|
155
|
+
},
|
156
|
+
"van-action-bar-button/url": {
|
157
|
+
"type": "string",
|
158
|
+
"description": "点击后跳转的链接地址, 默认值: -"
|
159
|
+
},
|
160
|
+
"van-action-bar-button/to": {
|
161
|
+
"type": "string | object",
|
162
|
+
"description": "点击后跳转的目标路由对象,等同于 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to), 默认值: -"
|
163
|
+
},
|
164
|
+
"van-action-bar-button/replace": {
|
165
|
+
"type": "boolean",
|
166
|
+
"description": "是否在跳转时替换当前页面历史, 默认值: `false`"
|
167
|
+
},
|
85
168
|
"van-address-edit/area-list": {
|
86
169
|
"type": "object",
|
87
170
|
"description": "地区列表, 默认值: -"
|
@@ -95,11 +178,11 @@
|
|
95
178
|
"description": "地区输入框占位提示文字, 默认值: `选择省 / 市 / 区`"
|
96
179
|
},
|
97
180
|
"van-address-edit/address-info": {
|
98
|
-
"type": "
|
99
|
-
"description": "
|
181
|
+
"type": "AddressEditInfo",
|
182
|
+
"description": "地址信息初始值, 默认值: `{}`"
|
100
183
|
},
|
101
184
|
"van-address-edit/search-result": {
|
102
|
-
"type": "
|
185
|
+
"type": "AddressEditSearchItem[]",
|
103
186
|
"description": "详细地址搜索结果, 默认值: `[]`"
|
104
187
|
},
|
105
188
|
"van-address-edit/show-postal": {
|
@@ -175,11 +258,11 @@
|
|
175
258
|
"description": "当前选中地址的 id, 默认值: -"
|
176
259
|
},
|
177
260
|
"van-address-list/list": {
|
178
|
-
"type": "
|
261
|
+
"type": "AddressListAddress[]",
|
179
262
|
"description": "地址列表, 默认值: `[]`"
|
180
263
|
},
|
181
264
|
"van-address-list/disabled-list": {
|
182
|
-
"type": "
|
265
|
+
"type": "AddressListAddress[]",
|
183
266
|
"description": "不可配送地址列表, 默认值: `[]`"
|
184
267
|
},
|
185
268
|
"van-address-list/disabled-text": {
|
@@ -198,95 +281,6 @@
|
|
198
281
|
"type": "string",
|
199
282
|
"description": "默认地址标签文字, 默认值: -"
|
200
283
|
},
|
201
|
-
"van-action-bar/safe-area-inset-bottom": {
|
202
|
-
"type": "boolean",
|
203
|
-
"description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei), 默认值: `true`"
|
204
|
-
},
|
205
|
-
"van-action-bar-icon/text": {
|
206
|
-
"type": "string",
|
207
|
-
"description": "按钮文字, 默认值: -"
|
208
|
-
},
|
209
|
-
"van-action-bar-icon/icon": {
|
210
|
-
"type": "string",
|
211
|
-
"description": "图标, 默认值: -"
|
212
|
-
},
|
213
|
-
"van-action-bar-icon/color": {
|
214
|
-
"type": "string",
|
215
|
-
"description": "图标颜色, 默认值: `#323233`"
|
216
|
-
},
|
217
|
-
"van-action-bar-icon/icon-class": {
|
218
|
-
"type": "string | Array \\",
|
219
|
-
"description": "图标额外类名, 默认值: object_",
|
220
|
-
"options": [
|
221
|
-
"-"
|
222
|
-
]
|
223
|
-
},
|
224
|
-
"van-action-bar-icon/icon-prefix": {
|
225
|
-
"type": "string",
|
226
|
-
"description": "图标类名前缀,等同于 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props), 默认值: `van-icon`"
|
227
|
-
},
|
228
|
-
"van-action-bar-icon/dot": {
|
229
|
-
"type": "boolean",
|
230
|
-
"description": "是否显示图标右上角小红点, 默认值: `false`"
|
231
|
-
},
|
232
|
-
"van-action-bar-icon/badge": {
|
233
|
-
"type": "number | string",
|
234
|
-
"description": "图标右上角徽标的内容, 默认值: -"
|
235
|
-
},
|
236
|
-
"van-action-bar-icon/url": {
|
237
|
-
"type": "string",
|
238
|
-
"description": "点击后跳转的链接地址, 默认值: -"
|
239
|
-
},
|
240
|
-
"van-action-bar-icon/to": {
|
241
|
-
"type": "string | object",
|
242
|
-
"description": "点击后跳转的目标路由对象,等同于 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to), 默认值: -"
|
243
|
-
},
|
244
|
-
"van-action-bar-icon/replace": {
|
245
|
-
"type": "boolean",
|
246
|
-
"description": "是否在跳转时替换当前页面历史, 默认值: `false`"
|
247
|
-
},
|
248
|
-
"van-action-bar-button/text": {
|
249
|
-
"type": "string",
|
250
|
-
"description": "按钮文字, 默认值: -"
|
251
|
-
},
|
252
|
-
"van-action-bar-button/type": {
|
253
|
-
"type": "string",
|
254
|
-
"description": "按钮类型,可选值为 `primary` `info` `warning` `danger`, 默认值: `default`"
|
255
|
-
},
|
256
|
-
"van-action-bar-button/color": {
|
257
|
-
"type": "string",
|
258
|
-
"description": "按钮颜色,支持传入 `linear-gradient` 渐变色, 默认值: -"
|
259
|
-
},
|
260
|
-
"van-action-bar-button/icon": {
|
261
|
-
"type": "string",
|
262
|
-
"description": "左侧[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
|
263
|
-
},
|
264
|
-
"van-action-bar-button/disabled": {
|
265
|
-
"type": "boolean",
|
266
|
-
"description": "是否禁用按钮, 默认值: `false`",
|
267
|
-
"options": [
|
268
|
-
"-"
|
269
|
-
]
|
270
|
-
},
|
271
|
-
"van-action-bar-button/loading": {
|
272
|
-
"type": "boolean",
|
273
|
-
"description": "是否显示为加载状态, 默认值: `false`",
|
274
|
-
"options": [
|
275
|
-
"-"
|
276
|
-
]
|
277
|
-
},
|
278
|
-
"van-action-bar-button/url": {
|
279
|
-
"type": "string",
|
280
|
-
"description": "点击后跳转的链接地址, 默认值: -"
|
281
|
-
},
|
282
|
-
"van-action-bar-button/to": {
|
283
|
-
"type": "string | object",
|
284
|
-
"description": "点击后跳转的目标路由对象,等同于 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to), 默认值: -"
|
285
|
-
},
|
286
|
-
"van-action-bar-button/replace": {
|
287
|
-
"type": "boolean",
|
288
|
-
"description": "是否在跳转时替换当前页面历史, 默认值: `false`"
|
289
|
-
},
|
290
284
|
"van-area/value": {
|
291
285
|
"type": "string",
|
292
286
|
"description": "当前选中项对应的地区码, 默认值: -"
|
@@ -448,7 +442,7 @@
|
|
448
442
|
},
|
449
443
|
"van-calendar/range-prompt": {
|
450
444
|
"type": "string",
|
451
|
-
"description": "选择超过最多可选天数时的提示文案, 默认值:
|
445
|
+
"description": "选择超过最多可选天数时的提示文案, 默认值: `最多选择 xx 天`"
|
452
446
|
},
|
453
447
|
"van-calendar/show-range-prompt": {
|
454
448
|
"type": "boolean",
|
@@ -458,33 +452,6 @@
|
|
458
452
|
"type": "boolean",
|
459
453
|
"description": "是否允许日期范围的起止时间为同一天, 默认值: `false`"
|
460
454
|
},
|
461
|
-
"van-badge/content": {
|
462
|
-
"type": "number | string",
|
463
|
-
"description": "徽标内容, 默认值: -"
|
464
|
-
},
|
465
|
-
"van-badge/color": {
|
466
|
-
"type": "string",
|
467
|
-
"description": "徽标背景颜色, 默认值: `#ee0a24`"
|
468
|
-
},
|
469
|
-
"van-badge/dot": {
|
470
|
-
"type": "boolean",
|
471
|
-
"description": "是否展示为小红点, 默认值: `false`"
|
472
|
-
},
|
473
|
-
"van-badge/max": {
|
474
|
-
"type": "number | string",
|
475
|
-
"description": "最大值,超过最大值会显示 `{max}+`,仅当 content 为数字时有效, 默认值: -"
|
476
|
-
},
|
477
|
-
"van-badge/offset": {
|
478
|
-
"type": "[number | string, number \\",
|
479
|
-
"description": "设置徽标的偏移量,数组的两项分别对应水平和垂直方向的偏移量,默认单位为 `px`, 默认值: string]_",
|
480
|
-
"options": [
|
481
|
-
"-"
|
482
|
-
]
|
483
|
-
},
|
484
|
-
"van-badge/show-zero": {
|
485
|
-
"type": "boolean",
|
486
|
-
"description": "当 content 为数字 0 时,是否展示徽标, 默认值: `true`"
|
487
|
-
},
|
488
455
|
"van-button/type": {
|
489
456
|
"type": "string",
|
490
457
|
"description": "类型,可选值为 `primary` `success` `warning` `danger`, 默认值: `default`"
|
@@ -573,6 +540,33 @@
|
|
573
540
|
"type": "boolean",
|
574
541
|
"description": "是否在跳转时替换当前页面历史, 默认值: `false`"
|
575
542
|
},
|
543
|
+
"van-badge/content": {
|
544
|
+
"type": "number | string",
|
545
|
+
"description": "徽标内容, 默认值: -"
|
546
|
+
},
|
547
|
+
"van-badge/color": {
|
548
|
+
"type": "string",
|
549
|
+
"description": "徽标背景颜色, 默认值: `#ee0a24`"
|
550
|
+
},
|
551
|
+
"van-badge/dot": {
|
552
|
+
"type": "boolean",
|
553
|
+
"description": "是否展示为小红点, 默认值: `false`"
|
554
|
+
},
|
555
|
+
"van-badge/max": {
|
556
|
+
"type": "number | string",
|
557
|
+
"description": "最大值,超过最大值会显示 `{max}+`,仅当 content 为数字时有效, 默认值: -"
|
558
|
+
},
|
559
|
+
"van-badge/offset": {
|
560
|
+
"type": "[number | string, number \\",
|
561
|
+
"description": "设置徽标的偏移量,数组的两项分别对应水平和垂直方向的偏移量,默认单位为 `px`, 默认值: string]_",
|
562
|
+
"options": [
|
563
|
+
"-"
|
564
|
+
]
|
565
|
+
},
|
566
|
+
"van-badge/show-zero": {
|
567
|
+
"type": "boolean",
|
568
|
+
"description": "当 content 为数字 0 时,是否展示徽标, 默认值: `true`"
|
569
|
+
},
|
576
570
|
"van-card/thumb": {
|
577
571
|
"type": "string",
|
578
572
|
"description": "左侧图片 URL, 默认值: -"
|
@@ -813,6 +807,38 @@
|
|
813
807
|
"type": "string",
|
814
808
|
"description": "所有复选框的选中状态颜色, 默认值: `#1989fa`"
|
815
809
|
},
|
810
|
+
"van-row/gutter": {
|
811
|
+
"type": "number | string",
|
812
|
+
"description": "列元素之间的间距(单位为 px), 默认值: -"
|
813
|
+
},
|
814
|
+
"van-row/tag": {
|
815
|
+
"type": "string",
|
816
|
+
"description": "自定义元素标签, 默认值: `div`"
|
817
|
+
},
|
818
|
+
"van-row/justify": {
|
819
|
+
"type": "string",
|
820
|
+
"description": "主轴对齐方式,可选值为 `end` `center` <br> `space-around` `space-between`, 默认值: `start`"
|
821
|
+
},
|
822
|
+
"van-row/align": {
|
823
|
+
"type": "string",
|
824
|
+
"description": "交叉轴对齐方式,可选值为 `center` `bottom`, 默认值: `top`"
|
825
|
+
},
|
826
|
+
"van-row/wrap": {
|
827
|
+
"type": "boolean",
|
828
|
+
"description": "是否自动换行, 默认值: `true`"
|
829
|
+
},
|
830
|
+
"van-col/span": {
|
831
|
+
"type": "number | string",
|
832
|
+
"description": "列元素宽度, 默认值: -"
|
833
|
+
},
|
834
|
+
"van-col/offset": {
|
835
|
+
"type": "number | string",
|
836
|
+
"description": "列元素偏移距离, 默认值: -"
|
837
|
+
},
|
838
|
+
"van-col/tag": {
|
839
|
+
"type": "string",
|
840
|
+
"description": "自定义元素标签, 默认值: `div`"
|
841
|
+
},
|
816
842
|
"van-circle/v-model:current-rate": {
|
817
843
|
"type": "number",
|
818
844
|
"description": "当前进度, 默认值: -"
|
@@ -857,37 +883,9 @@
|
|
857
883
|
"type": "boolean",
|
858
884
|
"description": "是否顺时针增加, 默认值: `true`"
|
859
885
|
},
|
860
|
-
"van-
|
861
|
-
"type": "
|
862
|
-
"description": "
|
863
|
-
},
|
864
|
-
"van-row/tag": {
|
865
|
-
"type": "string",
|
866
|
-
"description": "自定义元素标签, 默认值: `div`"
|
867
|
-
},
|
868
|
-
"van-row/justify": {
|
869
|
-
"type": "string",
|
870
|
-
"description": "主轴对齐方式,可选值为 `end` `center` <br> `space-around` `space-between`, 默认值: `start`"
|
871
|
-
},
|
872
|
-
"van-row/align": {
|
873
|
-
"type": "string",
|
874
|
-
"description": "交叉轴对齐方式,可选值为 `center` `bottom`, 默认值: `top`"
|
875
|
-
},
|
876
|
-
"van-row/wrap": {
|
877
|
-
"type": "boolean",
|
878
|
-
"description": "是否自动换行, 默认值: `true`"
|
879
|
-
},
|
880
|
-
"van-col/span": {
|
881
|
-
"type": "number | string",
|
882
|
-
"description": "列元素宽度, 默认值: -"
|
883
|
-
},
|
884
|
-
"van-col/offset": {
|
885
|
-
"type": "number | string",
|
886
|
-
"description": "列元素偏移距离, 默认值: -"
|
887
|
-
},
|
888
|
-
"van-col/tag": {
|
889
|
-
"type": "string",
|
890
|
-
"description": "自定义元素标签, 默认值: `div`"
|
886
|
+
"van-circle/start-position": {
|
887
|
+
"type": "CircleStartPosition",
|
888
|
+
"description": "进度起始位置,可选值为 `left`、`right`、`bottom`, 默认值: `top`"
|
891
889
|
},
|
892
890
|
"van-collapse/v-model": {
|
893
891
|
"type": "手风琴模式:_number | string_<br>非手风琴模式:_(number \\",
|
@@ -1044,6 +1042,82 @@
|
|
1044
1042
|
"type": "boolean",
|
1045
1043
|
"description": "是否开启毫秒级渲染, 默认值: `false`"
|
1046
1044
|
},
|
1045
|
+
"van-datetime-picker/type": {
|
1046
|
+
"type": "string",
|
1047
|
+
"description": "时间类型,可选值为 `date` `time` <br> `year-month` `month-day` `datehour`, 默认值: `datetime`"
|
1048
|
+
},
|
1049
|
+
"van-datetime-picker/title": {
|
1050
|
+
"type": "string",
|
1051
|
+
"description": "顶部栏标题, 默认值: `''`"
|
1052
|
+
},
|
1053
|
+
"van-datetime-picker/confirm-button-text": {
|
1054
|
+
"type": "string",
|
1055
|
+
"description": "确认按钮文字, 默认值: `确认`"
|
1056
|
+
},
|
1057
|
+
"van-datetime-picker/cancel-button-text": {
|
1058
|
+
"type": "string",
|
1059
|
+
"description": "取消按钮文字, 默认值: `取消`"
|
1060
|
+
},
|
1061
|
+
"van-datetime-picker/show-toolbar": {
|
1062
|
+
"type": "boolean",
|
1063
|
+
"description": "是否显示顶部栏, 默认值: `true`"
|
1064
|
+
},
|
1065
|
+
"van-datetime-picker/loading": {
|
1066
|
+
"type": "boolean",
|
1067
|
+
"description": "是否显示加载状态, 默认值: `false`"
|
1068
|
+
},
|
1069
|
+
"van-datetime-picker/readonly": {
|
1070
|
+
"type": "boolean",
|
1071
|
+
"description": "是否为只读状态,只读状态下无法切换选项, 默认值: `false`"
|
1072
|
+
},
|
1073
|
+
"van-datetime-picker/filter": {
|
1074
|
+
"type": "(type: string, values: string[]) => string[]",
|
1075
|
+
"description": "选项过滤函数, 默认值: -"
|
1076
|
+
},
|
1077
|
+
"van-datetime-picker/formatter": {
|
1078
|
+
"type": "(type: string, value: string) => string",
|
1079
|
+
"description": "选项格式化函数, 默认值: -"
|
1080
|
+
},
|
1081
|
+
"van-datetime-picker/columns-order": {
|
1082
|
+
"type": "string[]",
|
1083
|
+
"description": "自定义列排序数组, 子项可选值为<br> `year`、`month`、`day`、`hour`、`minute`, 默认值: -"
|
1084
|
+
},
|
1085
|
+
"van-datetime-picker/item-height": {
|
1086
|
+
"type": "number | string",
|
1087
|
+
"description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`, 默认值: `44`"
|
1088
|
+
},
|
1089
|
+
"van-datetime-picker/visible-item-count": {
|
1090
|
+
"type": "number | string",
|
1091
|
+
"description": "可见的选项个数, 默认值: `6`"
|
1092
|
+
},
|
1093
|
+
"van-datetime-picker/swipe-duration": {
|
1094
|
+
"type": "number | string",
|
1095
|
+
"description": "快速滑动时惯性滚动的时长,单位`ms`, 默认值: `1000`"
|
1096
|
+
},
|
1097
|
+
"van-date-picker/min-date": {
|
1098
|
+
"type": "Date",
|
1099
|
+
"description": "可选的最小时间,精确到分钟, 默认值: 十年前"
|
1100
|
+
},
|
1101
|
+
"van-date-picker/max-date": {
|
1102
|
+
"type": "Date",
|
1103
|
+
"description": "可选的最大时间,精确到分钟, 默认值: 十年后"
|
1104
|
+
},
|
1105
|
+
"van-time-picker/min-hour": {
|
1106
|
+
"type": "number | string",
|
1107
|
+
"description": "可选的最小小时, 默认值: `0`"
|
1108
|
+
},
|
1109
|
+
"van-time-picker/max-hour": {
|
1110
|
+
"type": "number | string",
|
1111
|
+
"description": "可选的最大小时, 默认值: `23`"
|
1112
|
+
},
|
1113
|
+
"van-time-picker/min-minute": {
|
1114
|
+
"type": "number | string",
|
1115
|
+
"description": "可选的最小分钟, 默认值: `0`"
|
1116
|
+
},
|
1117
|
+
"van-time-picker/max-minute": {
|
1118
|
+
"type": "number | string",
|
1119
|
+
"description": "可选的最大分钟, 默认值: `59`"
|
1120
|
+
},
|
1047
1121
|
"van-coupon-cell/title": {
|
1048
1122
|
"type": "string",
|
1049
1123
|
"description": "单元格标题, 默认值: `优惠券`"
|
@@ -1140,82 +1214,6 @@
|
|
1140
1214
|
"type": "boolean",
|
1141
1215
|
"description": "是否展示可用 / 不可用数量, 默认值: `true`"
|
1142
1216
|
},
|
1143
|
-
"van-datetime-picker/type": {
|
1144
|
-
"type": "string",
|
1145
|
-
"description": "时间类型,可选值为 `date` `time` <br> `year-month` `month-day` `datehour`, 默认值: `datetime`"
|
1146
|
-
},
|
1147
|
-
"van-datetime-picker/title": {
|
1148
|
-
"type": "string",
|
1149
|
-
"description": "顶部栏标题, 默认值: `''`"
|
1150
|
-
},
|
1151
|
-
"van-datetime-picker/confirm-button-text": {
|
1152
|
-
"type": "string",
|
1153
|
-
"description": "确认按钮文字, 默认值: `确认`"
|
1154
|
-
},
|
1155
|
-
"van-datetime-picker/cancel-button-text": {
|
1156
|
-
"type": "string",
|
1157
|
-
"description": "取消按钮文字, 默认值: `取消`"
|
1158
|
-
},
|
1159
|
-
"van-datetime-picker/show-toolbar": {
|
1160
|
-
"type": "boolean",
|
1161
|
-
"description": "是否显示顶部栏, 默认值: `true`"
|
1162
|
-
},
|
1163
|
-
"van-datetime-picker/loading": {
|
1164
|
-
"type": "boolean",
|
1165
|
-
"description": "是否显示加载状态, 默认值: `false`"
|
1166
|
-
},
|
1167
|
-
"van-datetime-picker/readonly": {
|
1168
|
-
"type": "boolean",
|
1169
|
-
"description": "是否为只读状态,只读状态下无法切换选项, 默认值: `false`"
|
1170
|
-
},
|
1171
|
-
"van-datetime-picker/filter": {
|
1172
|
-
"type": "(type: string, values: string[]) => string[]",
|
1173
|
-
"description": "选项过滤函数, 默认值: -"
|
1174
|
-
},
|
1175
|
-
"van-datetime-picker/formatter": {
|
1176
|
-
"type": "(type: string, value: string) => string",
|
1177
|
-
"description": "选项格式化函数, 默认值: -"
|
1178
|
-
},
|
1179
|
-
"van-datetime-picker/columns-order": {
|
1180
|
-
"type": "string[]",
|
1181
|
-
"description": "自定义列排序数组, 子项可选值为<br> `year`、`month`、`day`、`hour`、`minute`, 默认值: -"
|
1182
|
-
},
|
1183
|
-
"van-datetime-picker/item-height": {
|
1184
|
-
"type": "number | string",
|
1185
|
-
"description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`, 默认值: `44`"
|
1186
|
-
},
|
1187
|
-
"van-datetime-picker/visible-item-count": {
|
1188
|
-
"type": "number | string",
|
1189
|
-
"description": "可见的选项个数, 默认值: `6`"
|
1190
|
-
},
|
1191
|
-
"van-datetime-picker/swipe-duration": {
|
1192
|
-
"type": "number | string",
|
1193
|
-
"description": "快速滑动时惯性滚动的时长,单位`ms`, 默认值: `1000`"
|
1194
|
-
},
|
1195
|
-
"van-date-picker/min-date": {
|
1196
|
-
"type": "Date",
|
1197
|
-
"description": "可选的最小时间,精确到分钟, 默认值: 十年前"
|
1198
|
-
},
|
1199
|
-
"van-date-picker/max-date": {
|
1200
|
-
"type": "Date",
|
1201
|
-
"description": "可选的最大时间,精确到分钟, 默认值: 十年后"
|
1202
|
-
},
|
1203
|
-
"van-time-picker/min-hour": {
|
1204
|
-
"type": "number | string",
|
1205
|
-
"description": "可选的最小小时, 默认值: `0`"
|
1206
|
-
},
|
1207
|
-
"van-time-picker/max-hour": {
|
1208
|
-
"type": "number | string",
|
1209
|
-
"description": "可选的最大小时, 默认值: `23`"
|
1210
|
-
},
|
1211
|
-
"van-time-picker/min-minute": {
|
1212
|
-
"type": "number | string",
|
1213
|
-
"description": "可选的最小分钟, 默认值: `0`"
|
1214
|
-
},
|
1215
|
-
"van-time-picker/max-minute": {
|
1216
|
-
"type": "number | string",
|
1217
|
-
"description": "可选的最大分钟, 默认值: `59`"
|
1218
|
-
},
|
1219
1217
|
"van-dialog/v-model:show": {
|
1220
1218
|
"type": "boolean",
|
1221
1219
|
"description": "是否显示弹窗, 默认值: -"
|
@@ -1401,7 +1399,11 @@
|
|
1401
1399
|
},
|
1402
1400
|
"van-field/name": {
|
1403
1401
|
"type": "string",
|
1404
|
-
"description": "
|
1402
|
+
"description": "名称,作为提交表单时的标识符, 默认值: -"
|
1403
|
+
},
|
1404
|
+
"van-field/id": {
|
1405
|
+
"type": "string",
|
1406
|
+
"description": "输入框 id,同时会设置 label 的 for 属性, 默认值: -"
|
1405
1407
|
},
|
1406
1408
|
"van-field/type": {
|
1407
1409
|
"type": "string",
|
@@ -1538,6 +1540,34 @@
|
|
1538
1540
|
"type": "string",
|
1539
1541
|
"description": "input 标签原生的[自动完成属性](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete), 默认值: -"
|
1540
1542
|
},
|
1543
|
+
"van-icon/name": {
|
1544
|
+
"type": "string",
|
1545
|
+
"description": "图标名称或图片链接, 默认值: -"
|
1546
|
+
},
|
1547
|
+
"van-icon/dot": {
|
1548
|
+
"type": "boolean",
|
1549
|
+
"description": "是否显示图标右上角小红点, 默认值: `false`"
|
1550
|
+
},
|
1551
|
+
"van-icon/badge": {
|
1552
|
+
"type": "number | string",
|
1553
|
+
"description": "图标右上角徽标的内容, 默认值: -"
|
1554
|
+
},
|
1555
|
+
"van-icon/color": {
|
1556
|
+
"type": "string",
|
1557
|
+
"description": "图标颜色, 默认值: `inherit`"
|
1558
|
+
},
|
1559
|
+
"van-icon/size": {
|
1560
|
+
"type": "number | string",
|
1561
|
+
"description": "图标大小,如 `20px` `2em`,默认单位为 `px`, 默认值: `inherit`"
|
1562
|
+
},
|
1563
|
+
"van-icon/class-prefix": {
|
1564
|
+
"type": "string",
|
1565
|
+
"description": "类名前缀,用于使用自定义图标, 默认值: `van-icon`"
|
1566
|
+
},
|
1567
|
+
"van-icon/tag": {
|
1568
|
+
"type": "string",
|
1569
|
+
"description": "根节点对应的 HTML 标签名, 默认值: `i`"
|
1570
|
+
},
|
1541
1571
|
"van-form/label-width": {
|
1542
1572
|
"type": "number | string",
|
1543
1573
|
"description": "表单项 label 宽度,默认单位为`px`, 默认值: `6.2em`"
|
@@ -1590,147 +1620,47 @@
|
|
1590
1620
|
"type": "boolean",
|
1591
1621
|
"description": "是否在按下回车键时提交表单, 默认值: `true`"
|
1592
1622
|
},
|
1593
|
-
"van-
|
1623
|
+
"van-image/src": {
|
1624
|
+
"type": "string",
|
1625
|
+
"description": "图片链接, 默认值: -"
|
1626
|
+
},
|
1627
|
+
"van-image/fit": {
|
1628
|
+
"type": "string",
|
1629
|
+
"description": "图片填充模式, 默认值: `fill`"
|
1630
|
+
},
|
1631
|
+
"van-image/alt": {
|
1632
|
+
"type": "string",
|
1633
|
+
"description": "替代文本, 默认值: -"
|
1634
|
+
},
|
1635
|
+
"van-image/width": {
|
1594
1636
|
"type": "number | string",
|
1595
|
-
"description": "
|
1637
|
+
"description": "宽度,默认单位为 `px`, 默认值: -"
|
1596
1638
|
},
|
1597
|
-
"van-
|
1639
|
+
"van-image/height": {
|
1598
1640
|
"type": "number | string",
|
1599
|
-
"description": "
|
1641
|
+
"description": "高度,默认单位为 `px`, 默认值: -"
|
1600
1642
|
},
|
1601
|
-
"van-
|
1643
|
+
"van-image/radius": {
|
1602
1644
|
"type": "number | string",
|
1603
|
-
"description": "
|
1645
|
+
"description": "圆角大小,默认单位为 `px`, 默认值: `0`"
|
1604
1646
|
},
|
1605
|
-
"van-
|
1647
|
+
"van-image/round": {
|
1606
1648
|
"type": "boolean",
|
1607
|
-
"description": "
|
1649
|
+
"description": "是否显示为圆形, 默认值: `false`"
|
1608
1650
|
},
|
1609
|
-
"van-
|
1651
|
+
"van-image/lazy-load": {
|
1610
1652
|
"type": "boolean",
|
1611
|
-
"description": "
|
1653
|
+
"description": "是否开启图片懒加载,须配合 [Lazyload](#/zh-CN/lazyload) 组件使用, 默认值: `false`"
|
1612
1654
|
},
|
1613
|
-
"van-
|
1655
|
+
"van-image/show-error": {
|
1614
1656
|
"type": "boolean",
|
1615
|
-
"description": "
|
1657
|
+
"description": "是否展示图片加载失败提示, 默认值: `true`"
|
1616
1658
|
},
|
1617
|
-
"van-
|
1659
|
+
"van-image/show-loading": {
|
1618
1660
|
"type": "boolean",
|
1619
|
-
"description": "
|
1661
|
+
"description": "是否展示图片加载中提示, 默认值: `true`"
|
1620
1662
|
},
|
1621
|
-
"van-
|
1622
|
-
"type": "string",
|
1623
|
-
"description": "格子内容排列的方向,可选值为 `horizontal`, 默认值: `vertical`"
|
1624
|
-
},
|
1625
|
-
"van-grid-item/text": {
|
1626
|
-
"type": "string",
|
1627
|
-
"description": "文字, 默认值: -"
|
1628
|
-
},
|
1629
|
-
"van-grid-item/icon": {
|
1630
|
-
"type": "string",
|
1631
|
-
"description": "[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
|
1632
|
-
},
|
1633
|
-
"van-grid-item/icon-prefix": {
|
1634
|
-
"type": "string",
|
1635
|
-
"description": "图标类名前缀,等同于 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props), 默认值: `van-icon`"
|
1636
|
-
},
|
1637
|
-
"van-grid-item/icon-color": {
|
1638
|
-
"type": "string",
|
1639
|
-
"description": "图标颜色,等同于 Icon 组件的 [color 属性](#/zh-CN/icon#props), 默认值: -"
|
1640
|
-
},
|
1641
|
-
"van-grid-item/reverse": {
|
1642
|
-
"type": "boolean",
|
1643
|
-
"description": "是否调换图标和文本的位置, 默认值: `false`"
|
1644
|
-
},
|
1645
|
-
"van-grid-item/dot": {
|
1646
|
-
"type": "boolean",
|
1647
|
-
"description": "是否显示图标右上角小红点, 默认值: `false`"
|
1648
|
-
},
|
1649
|
-
"van-grid-item/badge": {
|
1650
|
-
"type": "number | string",
|
1651
|
-
"description": "图标右上角徽标的内容, 默认值: -"
|
1652
|
-
},
|
1653
|
-
"van-grid-item/url": {
|
1654
|
-
"type": "string",
|
1655
|
-
"description": "点击后跳转的链接地址, 默认值: -"
|
1656
|
-
},
|
1657
|
-
"van-grid-item/to": {
|
1658
|
-
"type": "string | object",
|
1659
|
-
"description": "点击后跳转的目标路由对象,等同于 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to), 默认值: -"
|
1660
|
-
},
|
1661
|
-
"van-grid-item/replace": {
|
1662
|
-
"type": "boolean",
|
1663
|
-
"description": "是否在跳转时替换当前页面历史, 默认值: `false`"
|
1664
|
-
},
|
1665
|
-
"van-icon/name": {
|
1666
|
-
"type": "string",
|
1667
|
-
"description": "图标名称或图片链接, 默认值: -"
|
1668
|
-
},
|
1669
|
-
"van-icon/dot": {
|
1670
|
-
"type": "boolean",
|
1671
|
-
"description": "是否显示图标右上角小红点, 默认值: `false`"
|
1672
|
-
},
|
1673
|
-
"van-icon/badge": {
|
1674
|
-
"type": "number | string",
|
1675
|
-
"description": "图标右上角徽标的内容, 默认值: -"
|
1676
|
-
},
|
1677
|
-
"van-icon/color": {
|
1678
|
-
"type": "string",
|
1679
|
-
"description": "图标颜色, 默认值: `inherit`"
|
1680
|
-
},
|
1681
|
-
"van-icon/size": {
|
1682
|
-
"type": "number | string",
|
1683
|
-
"description": "图标大小,如 `20px` `2em`,默认单位为 `px`, 默认值: `inherit`"
|
1684
|
-
},
|
1685
|
-
"van-icon/class-prefix": {
|
1686
|
-
"type": "string",
|
1687
|
-
"description": "类名前缀,用于使用自定义图标, 默认值: `van-icon`"
|
1688
|
-
},
|
1689
|
-
"van-icon/tag": {
|
1690
|
-
"type": "string",
|
1691
|
-
"description": "根节点对应的 HTML 标签名, 默认值: `i`"
|
1692
|
-
},
|
1693
|
-
"van-image/src": {
|
1694
|
-
"type": "string",
|
1695
|
-
"description": "图片链接, 默认值: -"
|
1696
|
-
},
|
1697
|
-
"van-image/fit": {
|
1698
|
-
"type": "string",
|
1699
|
-
"description": "图片填充模式, 默认值: `fill`"
|
1700
|
-
},
|
1701
|
-
"van-image/alt": {
|
1702
|
-
"type": "string",
|
1703
|
-
"description": "替代文本, 默认值: -"
|
1704
|
-
},
|
1705
|
-
"van-image/width": {
|
1706
|
-
"type": "number | string",
|
1707
|
-
"description": "宽度,默认单位为 `px`, 默认值: -"
|
1708
|
-
},
|
1709
|
-
"van-image/height": {
|
1710
|
-
"type": "number | string",
|
1711
|
-
"description": "高度,默认单位为 `px`, 默认值: -"
|
1712
|
-
},
|
1713
|
-
"van-image/radius": {
|
1714
|
-
"type": "number | string",
|
1715
|
-
"description": "圆角大小,默认单位为 `px`, 默认值: `0`"
|
1716
|
-
},
|
1717
|
-
"van-image/round": {
|
1718
|
-
"type": "boolean",
|
1719
|
-
"description": "是否显示为圆形, 默认值: `false`"
|
1720
|
-
},
|
1721
|
-
"van-image/lazy-load": {
|
1722
|
-
"type": "boolean",
|
1723
|
-
"description": "是否开启图片懒加载,须配合 [Lazyload](#/zh-CN/lazyload) 组件使用, 默认值: `false`"
|
1724
|
-
},
|
1725
|
-
"van-image/show-error": {
|
1726
|
-
"type": "boolean",
|
1727
|
-
"description": "是否展示图片加载失败提示, 默认值: `true`"
|
1728
|
-
},
|
1729
|
-
"van-image/show-loading": {
|
1730
|
-
"type": "boolean",
|
1731
|
-
"description": "是否展示图片加载中提示, 默认值: `true`"
|
1732
|
-
},
|
1733
|
-
"van-image/error-icon": {
|
1663
|
+
"van-image/error-icon": {
|
1734
1664
|
"type": "string",
|
1735
1665
|
"description": "失败时提示的[图标名称](#/zh-CN/icon)或图片链接, 默认值: `photo-fail`"
|
1736
1666
|
},
|
@@ -1821,6 +1751,78 @@
|
|
1821
1751
|
"type": "string | Element",
|
1822
1752
|
"description": "指定挂载的节点,等同于 Teleport 组件的 [to 属性](https://v3.cn.vuejs.org/api/built-in-components.html#teleport), 默认值: -"
|
1823
1753
|
},
|
1754
|
+
"van-grid/column-num": {
|
1755
|
+
"type": "number | string",
|
1756
|
+
"description": "列数, 默认值: `4`"
|
1757
|
+
},
|
1758
|
+
"van-grid/icon-size": {
|
1759
|
+
"type": "number | string",
|
1760
|
+
"description": "图标大小,默认单位为`px`, 默认值: `28px`"
|
1761
|
+
},
|
1762
|
+
"van-grid/gutter": {
|
1763
|
+
"type": "number | string",
|
1764
|
+
"description": "格子之间的间距,默认单位为`px`, 默认值: `0`"
|
1765
|
+
},
|
1766
|
+
"van-grid/border": {
|
1767
|
+
"type": "boolean",
|
1768
|
+
"description": "是否显示边框, 默认值: `true`"
|
1769
|
+
},
|
1770
|
+
"van-grid/center": {
|
1771
|
+
"type": "boolean",
|
1772
|
+
"description": "是否将格子内容居中显示, 默认值: `true`"
|
1773
|
+
},
|
1774
|
+
"van-grid/square": {
|
1775
|
+
"type": "boolean",
|
1776
|
+
"description": "是否将格子固定为正方形, 默认值: `false`"
|
1777
|
+
},
|
1778
|
+
"van-grid/clickable": {
|
1779
|
+
"type": "boolean",
|
1780
|
+
"description": "是否开启格子点击反馈, 默认值: `false`"
|
1781
|
+
},
|
1782
|
+
"van-grid/direction": {
|
1783
|
+
"type": "string",
|
1784
|
+
"description": "格子内容排列的方向,可选值为 `horizontal`, 默认值: `vertical`"
|
1785
|
+
},
|
1786
|
+
"van-grid-item/text": {
|
1787
|
+
"type": "string",
|
1788
|
+
"description": "文字, 默认值: -"
|
1789
|
+
},
|
1790
|
+
"van-grid-item/icon": {
|
1791
|
+
"type": "string",
|
1792
|
+
"description": "[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
|
1793
|
+
},
|
1794
|
+
"van-grid-item/icon-prefix": {
|
1795
|
+
"type": "string",
|
1796
|
+
"description": "图标类名前缀,等同于 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props), 默认值: `van-icon`"
|
1797
|
+
},
|
1798
|
+
"van-grid-item/icon-color": {
|
1799
|
+
"type": "string",
|
1800
|
+
"description": "图标颜色,等同于 Icon 组件的 [color 属性](#/zh-CN/icon#props), 默认值: -"
|
1801
|
+
},
|
1802
|
+
"van-grid-item/reverse": {
|
1803
|
+
"type": "boolean",
|
1804
|
+
"description": "是否调换图标和文本的位置, 默认值: `false`"
|
1805
|
+
},
|
1806
|
+
"van-grid-item/dot": {
|
1807
|
+
"type": "boolean",
|
1808
|
+
"description": "是否显示图标右上角小红点, 默认值: `false`"
|
1809
|
+
},
|
1810
|
+
"van-grid-item/badge": {
|
1811
|
+
"type": "number | string",
|
1812
|
+
"description": "图标右上角徽标的内容, 默认值: -"
|
1813
|
+
},
|
1814
|
+
"van-grid-item/url": {
|
1815
|
+
"type": "string",
|
1816
|
+
"description": "点击后跳转的链接地址, 默认值: -"
|
1817
|
+
},
|
1818
|
+
"van-grid-item/to": {
|
1819
|
+
"type": "string | object",
|
1820
|
+
"description": "点击后跳转的目标路由对象,等同于 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to), 默认值: -"
|
1821
|
+
},
|
1822
|
+
"van-grid-item/replace": {
|
1823
|
+
"type": "boolean",
|
1824
|
+
"description": "是否在跳转时替换当前页面历史, 默认值: `false`"
|
1825
|
+
},
|
1824
1826
|
"van-index-bar/index-list": {
|
1825
1827
|
"type": "string[] | number[]",
|
1826
1828
|
"description": "索引字符列表, 默认值: `A-Z`"
|
@@ -1885,6 +1887,42 @@
|
|
1885
1887
|
"type": "string",
|
1886
1888
|
"description": "滚动触发加载的方向,可选值为 `up`, 默认值: `down`"
|
1887
1889
|
},
|
1890
|
+
"van-notice-bar/mode": {
|
1891
|
+
"type": "string",
|
1892
|
+
"description": "通知栏模式,可选值为 `closeable` `link`, 默认值: `''`"
|
1893
|
+
},
|
1894
|
+
"van-notice-bar/text": {
|
1895
|
+
"type": "string",
|
1896
|
+
"description": "通知文本内容, 默认值: `''`"
|
1897
|
+
},
|
1898
|
+
"van-notice-bar/color": {
|
1899
|
+
"type": "string",
|
1900
|
+
"description": "通知文本颜色, 默认值: `#f60`"
|
1901
|
+
},
|
1902
|
+
"van-notice-bar/background": {
|
1903
|
+
"type": "string",
|
1904
|
+
"description": "滚动条背景, 默认值: `#fff7cc`"
|
1905
|
+
},
|
1906
|
+
"van-notice-bar/left-icon": {
|
1907
|
+
"type": "string",
|
1908
|
+
"description": "左侧[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
|
1909
|
+
},
|
1910
|
+
"van-notice-bar/delay": {
|
1911
|
+
"type": "number | string",
|
1912
|
+
"description": "动画延迟时间 (s), 默认值: `1`"
|
1913
|
+
},
|
1914
|
+
"van-notice-bar/speed": {
|
1915
|
+
"type": "number | string",
|
1916
|
+
"description": "滚动速率 (px/s), 默认值: `60`"
|
1917
|
+
},
|
1918
|
+
"van-notice-bar/scrollable": {
|
1919
|
+
"type": "boolean",
|
1920
|
+
"description": "是否开启滚动播放,内容长度溢出时默认开启, 默认值: -"
|
1921
|
+
},
|
1922
|
+
"van-notice-bar/wrapable": {
|
1923
|
+
"type": "boolean",
|
1924
|
+
"description": "是否开启文本换行,只在禁用滚动时生效, 默认值: `false`"
|
1925
|
+
},
|
1888
1926
|
"van-loading/color": {
|
1889
1927
|
"type": "string",
|
1890
1928
|
"description": "颜色, 默认值: `#c9c9c9`"
|
@@ -1945,42 +1983,6 @@
|
|
1945
1983
|
"type": "boolean",
|
1946
1984
|
"description": "是否开启[顶部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei), 默认值: `false`"
|
1947
1985
|
},
|
1948
|
-
"van-notice-bar/mode": {
|
1949
|
-
"type": "string",
|
1950
|
-
"description": "通知栏模式,可选值为 `closeable` `link`, 默认值: `''`"
|
1951
|
-
},
|
1952
|
-
"van-notice-bar/text": {
|
1953
|
-
"type": "string",
|
1954
|
-
"description": "通知文本内容, 默认值: `''`"
|
1955
|
-
},
|
1956
|
-
"van-notice-bar/color": {
|
1957
|
-
"type": "string",
|
1958
|
-
"description": "通知文本颜色, 默认值: `#f60`"
|
1959
|
-
},
|
1960
|
-
"van-notice-bar/background": {
|
1961
|
-
"type": "string",
|
1962
|
-
"description": "滚动条背景, 默认值: `#fff7cc`"
|
1963
|
-
},
|
1964
|
-
"van-notice-bar/left-icon": {
|
1965
|
-
"type": "string",
|
1966
|
-
"description": "左侧[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
|
1967
|
-
},
|
1968
|
-
"van-notice-bar/delay": {
|
1969
|
-
"type": "number | string",
|
1970
|
-
"description": "动画延迟时间 (s), 默认值: `1`"
|
1971
|
-
},
|
1972
|
-
"van-notice-bar/speed": {
|
1973
|
-
"type": "number | string",
|
1974
|
-
"description": "滚动速率 (px/s), 默认值: `60`"
|
1975
|
-
},
|
1976
|
-
"van-notice-bar/scrollable": {
|
1977
|
-
"type": "boolean",
|
1978
|
-
"description": "是否开启滚动播放,内容长度溢出时默认开启, 默认值: -"
|
1979
|
-
},
|
1980
|
-
"van-notice-bar/wrapable": {
|
1981
|
-
"type": "boolean",
|
1982
|
-
"description": "是否开启文本换行,只在禁用滚动时生效, 默认值: `false`"
|
1983
|
-
},
|
1984
1986
|
"van-number-keyboard/v-model": {
|
1985
1987
|
"type": "string",
|
1986
1988
|
"description": "当前输入值, 默认值: -"
|
@@ -2059,83 +2061,19 @@
|
|
2059
2061
|
},
|
2060
2062
|
"van-overlay/duration": {
|
2061
2063
|
"type": "number | string",
|
2062
|
-
"description": "动画时长,单位秒,设置为 0 可以禁用动画, 默认值: `0.3`"
|
2063
|
-
},
|
2064
|
-
"van-overlay/class-name": {
|
2065
|
-
"type": "string",
|
2066
|
-
"description": "自定义类名, 默认值: -"
|
2067
|
-
},
|
2068
|
-
"van-overlay/custom-style": {
|
2069
|
-
"type": "object",
|
2070
|
-
"description": "自定义样式, 默认值: -"
|
2071
|
-
},
|
2072
|
-
"van-overlay/lock-scroll": {
|
2073
|
-
"type": "boolean",
|
2074
|
-
"description": "是否锁定背景滚动,锁定时蒙层里的内容也将无法滚动, 默认值: `true`"
|
2075
|
-
},
|
2076
|
-
"van-pagination/v-model": {
|
2077
|
-
"type": "number",
|
2078
|
-
"description": "当前页码, 默认值: -"
|
2079
|
-
},
|
2080
|
-
"van-pagination/mode": {
|
2081
|
-
"type": "string",
|
2082
|
-
"description": "显示模式,可选值为 `simple`, 默认值: `multi`"
|
2083
|
-
},
|
2084
|
-
"van-pagination/prev-text": {
|
2085
|
-
"type": "string",
|
2086
|
-
"description": "上一页按钮文字, 默认值: `上一页`"
|
2087
|
-
},
|
2088
|
-
"van-pagination/next-text": {
|
2089
|
-
"type": "string",
|
2090
|
-
"description": "下一页按钮文字, 默认值: `下一页`"
|
2091
|
-
},
|
2092
|
-
"van-pagination/page-count": {
|
2093
|
-
"type": "number | string",
|
2094
|
-
"description": "总页数, 默认值: 根据页数计算"
|
2095
|
-
},
|
2096
|
-
"van-pagination/total-items": {
|
2097
|
-
"type": "number | string",
|
2098
|
-
"description": "总记录数, 默认值: `0`"
|
2099
|
-
},
|
2100
|
-
"van-pagination/items-per-page": {
|
2101
|
-
"type": "number | string",
|
2102
|
-
"description": "每页记录数, 默认值: `10`"
|
2103
|
-
},
|
2104
|
-
"van-pagination/show-page-size": {
|
2105
|
-
"type": "number | string",
|
2106
|
-
"description": "显示的页码个数, 默认值: `5`"
|
2107
|
-
},
|
2108
|
-
"van-pagination/force-ellipses": {
|
2109
|
-
"type": "boolean",
|
2110
|
-
"description": "是否显示省略号, 默认值: `false`"
|
2111
|
-
},
|
2112
|
-
"van-password-input/value": {
|
2113
|
-
"type": "string",
|
2114
|
-
"description": "密码值, 默认值: `''`"
|
2115
|
-
},
|
2116
|
-
"van-password-input/info": {
|
2117
|
-
"type": "string",
|
2118
|
-
"description": "输入框下方文字提示, 默认值: -"
|
2119
|
-
},
|
2120
|
-
"van-password-input/error-info": {
|
2121
|
-
"type": "string",
|
2122
|
-
"description": "输入框下方错误提示, 默认值: -"
|
2123
|
-
},
|
2124
|
-
"van-password-input/length": {
|
2125
|
-
"type": "number | string",
|
2126
|
-
"description": "密码最大长度, 默认值: `6`"
|
2127
|
-
},
|
2128
|
-
"van-password-input/gutter": {
|
2129
|
-
"type": "number | string",
|
2130
|
-
"description": "输入框格子之间的间距,如 `20px` `2em`,默认单位为`px`, 默认值: `0`"
|
2064
|
+
"description": "动画时长,单位秒,设置为 0 可以禁用动画, 默认值: `0.3`"
|
2131
2065
|
},
|
2132
|
-
"van-
|
2133
|
-
"type": "
|
2134
|
-
"description": "
|
2066
|
+
"van-overlay/class-name": {
|
2067
|
+
"type": "string",
|
2068
|
+
"description": "自定义类名, 默认值: -"
|
2135
2069
|
},
|
2136
|
-
"van-
|
2070
|
+
"van-overlay/custom-style": {
|
2071
|
+
"type": "object",
|
2072
|
+
"description": "自定义样式, 默认值: -"
|
2073
|
+
},
|
2074
|
+
"van-overlay/lock-scroll": {
|
2137
2075
|
"type": "boolean",
|
2138
|
-
"description": "
|
2076
|
+
"description": "是否锁定背景滚动,锁定时蒙层里的内容也将无法滚动, 默认值: `true`"
|
2139
2077
|
},
|
2140
2078
|
"van-picker/columns": {
|
2141
2079
|
"type": "Column[]",
|
@@ -2189,25 +2127,89 @@
|
|
2189
2127
|
"type": "number | string",
|
2190
2128
|
"description": "快速滑动时惯性滚动的时长,单位 `ms`, 默认值: `1000`"
|
2191
2129
|
},
|
2130
|
+
"van-password-input/value": {
|
2131
|
+
"type": "string",
|
2132
|
+
"description": "密码值, 默认值: `''`"
|
2133
|
+
},
|
2134
|
+
"van-password-input/info": {
|
2135
|
+
"type": "string",
|
2136
|
+
"description": "输入框下方文字提示, 默认值: -"
|
2137
|
+
},
|
2138
|
+
"van-password-input/error-info": {
|
2139
|
+
"type": "string",
|
2140
|
+
"description": "输入框下方错误提示, 默认值: -"
|
2141
|
+
},
|
2142
|
+
"van-password-input/length": {
|
2143
|
+
"type": "number | string",
|
2144
|
+
"description": "密码最大长度, 默认值: `6`"
|
2145
|
+
},
|
2146
|
+
"van-password-input/gutter": {
|
2147
|
+
"type": "number | string",
|
2148
|
+
"description": "输入框格子之间的间距,如 `20px` `2em`,默认单位为`px`, 默认值: `0`"
|
2149
|
+
},
|
2150
|
+
"van-password-input/mask": {
|
2151
|
+
"type": "boolean",
|
2152
|
+
"description": "是否隐藏密码内容, 默认值: `true`"
|
2153
|
+
},
|
2154
|
+
"van-password-input/focused": {
|
2155
|
+
"type": "boolean",
|
2156
|
+
"description": "是否已聚焦,聚焦时会显示光标, 默认值: `false`"
|
2157
|
+
},
|
2158
|
+
"van-pagination/v-model": {
|
2159
|
+
"type": "number",
|
2160
|
+
"description": "当前页码, 默认值: -"
|
2161
|
+
},
|
2162
|
+
"van-pagination/mode": {
|
2163
|
+
"type": "string",
|
2164
|
+
"description": "显示模式,可选值为 `simple`, 默认值: `multi`"
|
2165
|
+
},
|
2166
|
+
"van-pagination/prev-text": {
|
2167
|
+
"type": "string",
|
2168
|
+
"description": "上一页按钮文字, 默认值: `上一页`"
|
2169
|
+
},
|
2170
|
+
"van-pagination/next-text": {
|
2171
|
+
"type": "string",
|
2172
|
+
"description": "下一页按钮文字, 默认值: `下一页`"
|
2173
|
+
},
|
2174
|
+
"van-pagination/page-count": {
|
2175
|
+
"type": "number | string",
|
2176
|
+
"description": "总页数, 默认值: 根据页数计算"
|
2177
|
+
},
|
2178
|
+
"van-pagination/total-items": {
|
2179
|
+
"type": "number | string",
|
2180
|
+
"description": "总记录数, 默认值: `0`"
|
2181
|
+
},
|
2182
|
+
"van-pagination/items-per-page": {
|
2183
|
+
"type": "number | string",
|
2184
|
+
"description": "每页记录数, 默认值: `10`"
|
2185
|
+
},
|
2186
|
+
"van-pagination/show-page-size": {
|
2187
|
+
"type": "number | string",
|
2188
|
+
"description": "显示的页码个数, 默认值: `5`"
|
2189
|
+
},
|
2190
|
+
"van-pagination/force-ellipses": {
|
2191
|
+
"type": "boolean",
|
2192
|
+
"description": "是否显示省略号, 默认值: `false`"
|
2193
|
+
},
|
2192
2194
|
"van-popover/v-model:show": {
|
2193
2195
|
"type": "boolean",
|
2194
2196
|
"description": "是否展示气泡弹出层, 默认值: `false`"
|
2195
2197
|
},
|
2196
2198
|
"van-popover/actions": {
|
2197
|
-
"type": "
|
2199
|
+
"type": "PopoverAction[]",
|
2198
2200
|
"description": "选项列表, 默认值: `[]`"
|
2199
2201
|
},
|
2200
2202
|
"van-popover/placement": {
|
2201
|
-
"type": "
|
2203
|
+
"type": "PopoverPlacement",
|
2202
2204
|
"description": "弹出位置, 默认值: `bottom`"
|
2203
2205
|
},
|
2204
2206
|
"van-popover/theme": {
|
2205
|
-
"type": "
|
2207
|
+
"type": "PopoverTheme",
|
2206
2208
|
"description": "主题风格,可选值为 `dark`, 默认值: `light`"
|
2207
2209
|
},
|
2208
2210
|
"van-popover/trigger": {
|
2209
|
-
"type": "
|
2210
|
-
"description": "触发方式,可选值为 `manual`, 默认值:
|
2211
|
+
"type": "PopoverTrigger",
|
2212
|
+
"description": "触发方式,可选值为 `manual`, 默认值: `click`"
|
2211
2213
|
},
|
2212
2214
|
"van-popover/duration": {
|
2213
2215
|
"type": "number | string",
|
@@ -2232,6 +2234,10 @@
|
|
2232
2234
|
"type": "object",
|
2233
2235
|
"description": "自定义遮罩层样式, 默认值: -"
|
2234
2236
|
},
|
2237
|
+
"van-popover/show-arrow": {
|
2238
|
+
"type": "boolean",
|
2239
|
+
"description": "是否展示小箭头, 默认值: `true`"
|
2240
|
+
},
|
2235
2241
|
"van-popover/close-on-click-action": {
|
2236
2242
|
"type": "boolean",
|
2237
2243
|
"description": "是否在点击选项后关闭, 默认值: `true`"
|
@@ -2411,6 +2417,102 @@
|
|
2411
2417
|
"type": "boolean",
|
2412
2418
|
"description": "是否禁用下拉刷新, 默认值: `false`"
|
2413
2419
|
},
|
2420
|
+
"van-search/v-model": {
|
2421
|
+
"type": "number | string",
|
2422
|
+
"description": "当前输入的值, 默认值: -"
|
2423
|
+
},
|
2424
|
+
"van-search/label": {
|
2425
|
+
"type": "string",
|
2426
|
+
"description": "搜索框左侧文本, 默认值: -"
|
2427
|
+
},
|
2428
|
+
"van-search/name": {
|
2429
|
+
"type": "string",
|
2430
|
+
"description": "名称,作为提交表单时的标识符, 默认值: -"
|
2431
|
+
},
|
2432
|
+
"van-search/shape": {
|
2433
|
+
"type": "string",
|
2434
|
+
"description": "搜索框形状,可选值为 `round`, 默认值: `square`"
|
2435
|
+
},
|
2436
|
+
"van-search/id": {
|
2437
|
+
"type": "string",
|
2438
|
+
"description": "搜索框 id,同时会设置 label 的 for 属性, 默认值: -"
|
2439
|
+
},
|
2440
|
+
"van-search/background": {
|
2441
|
+
"type": "string",
|
2442
|
+
"description": "搜索框外部背景色, 默认值: `#f2f2f2`"
|
2443
|
+
},
|
2444
|
+
"van-search/maxlength": {
|
2445
|
+
"type": "number | string",
|
2446
|
+
"description": "输入的最大字符数, 默认值: -"
|
2447
|
+
},
|
2448
|
+
"van-search/placeholder": {
|
2449
|
+
"type": "string",
|
2450
|
+
"description": "占位提示文字, 默认值: -"
|
2451
|
+
},
|
2452
|
+
"van-search/clearable": {
|
2453
|
+
"type": "boolean",
|
2454
|
+
"description": "是否启用清除图标,点击清除图标后会清空输入框, 默认值: `true`"
|
2455
|
+
},
|
2456
|
+
"van-search/clear-icon": {
|
2457
|
+
"type": "string",
|
2458
|
+
"description": "清除[图标名称](#/zh-CN/icon)或图片链接, 默认值: `clear`"
|
2459
|
+
},
|
2460
|
+
"van-search/clear-trigger": {
|
2461
|
+
"type": "string",
|
2462
|
+
"description": "显示清除图标的时机,`always` 表示输入框不为空时展示,<br>`focus` 表示输入框聚焦且不为空时展示, 默认值: `focus`"
|
2463
|
+
},
|
2464
|
+
"van-search/autofocus": {
|
2465
|
+
"type": "boolean",
|
2466
|
+
"description": "是否自动聚焦,iOS 系统不支持该属性, 默认值: `false`"
|
2467
|
+
},
|
2468
|
+
"van-search/show-action": {
|
2469
|
+
"type": "boolean",
|
2470
|
+
"description": "是否在搜索框右侧显示取消按钮, 默认值: `false`"
|
2471
|
+
},
|
2472
|
+
"van-search/action-text": {
|
2473
|
+
"type": "boolean",
|
2474
|
+
"description": "取消按钮文字, 默认值: `取消`"
|
2475
|
+
},
|
2476
|
+
"van-search/disabled": {
|
2477
|
+
"type": "boolean",
|
2478
|
+
"description": "是否禁用输入框, 默认值: `false`"
|
2479
|
+
},
|
2480
|
+
"van-search/readonly": {
|
2481
|
+
"type": "boolean",
|
2482
|
+
"description": "是否将输入框设为只读状态,只读状态下无法输入内容, 默认值: `false`"
|
2483
|
+
},
|
2484
|
+
"van-search/error": {
|
2485
|
+
"type": "boolean",
|
2486
|
+
"description": "是否将输入内容标红, 默认值: `false`"
|
2487
|
+
},
|
2488
|
+
"van-search/error-message": {
|
2489
|
+
"type": "string",
|
2490
|
+
"description": "底部错误提示文案,为空时不展示, 默认值: -"
|
2491
|
+
},
|
2492
|
+
"van-search/formatter": {
|
2493
|
+
"type": "(val: string) => string",
|
2494
|
+
"description": "输入内容格式化函数, 默认值: -"
|
2495
|
+
},
|
2496
|
+
"van-search/format-trigger": {
|
2497
|
+
"type": "string",
|
2498
|
+
"description": "格式化函数触发的时机,可选值为 `onBlur`, 默认值: `onChange`"
|
2499
|
+
},
|
2500
|
+
"van-search/input-align": {
|
2501
|
+
"type": "string",
|
2502
|
+
"description": "输入框内容对齐方式,可选值为 `center` `right`, 默认值: `left`"
|
2503
|
+
},
|
2504
|
+
"van-search/left-icon": {
|
2505
|
+
"type": "string",
|
2506
|
+
"description": "输入框左侧[图标名称](#/zh-CN/icon)或图片链接, 默认值: `search`"
|
2507
|
+
},
|
2508
|
+
"van-search/right-icon": {
|
2509
|
+
"type": "string",
|
2510
|
+
"description": "输入框右侧[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
|
2511
|
+
},
|
2512
|
+
"van-search/autocomplete": {
|
2513
|
+
"type": "string",
|
2514
|
+
"description": "input 标签原生的[自动完成属性](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete), 默认值: -"
|
2515
|
+
},
|
2414
2516
|
"van-radio/name": {
|
2415
2517
|
"type": "any",
|
2416
2518
|
"description": "标识符, 默认值: -"
|
@@ -2499,101 +2601,21 @@
|
|
2499
2601
|
"type": "string",
|
2500
2602
|
"description": "图标类名前缀,等同于 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props), 默认值: `van-icon`"
|
2501
2603
|
},
|
2502
|
-
"van-rate/allow-half": {
|
2503
|
-
"type": "boolean",
|
2504
|
-
"description": "是否允许半选, 默认值: `false`"
|
2505
|
-
},
|
2506
|
-
"van-rate/readonly": {
|
2507
|
-
"type": "boolean",
|
2508
|
-
"description": "是否为只读状态,只读状态下无法修改评分, 默认值: `false`"
|
2509
|
-
},
|
2510
|
-
"van-rate/disabled": {
|
2511
|
-
"type": "boolean",
|
2512
|
-
"description": "是否禁用评分, 默认值: `false`"
|
2513
|
-
},
|
2514
|
-
"van-rate/touchable": {
|
2515
|
-
"type": "boolean",
|
2516
|
-
"description": "是否可以通过滑动手势选择评分, 默认值: `true`"
|
2517
|
-
},
|
2518
|
-
"van-search/label": {
|
2519
|
-
"type": "string",
|
2520
|
-
"description": "搜索框左侧文本, 默认值: -"
|
2521
|
-
},
|
2522
|
-
"van-search/shape": {
|
2523
|
-
"type": "string",
|
2524
|
-
"description": "搜索框形状,可选值为 `round`, 默认值: `square`"
|
2525
|
-
},
|
2526
|
-
"van-search/background": {
|
2527
|
-
"type": "string",
|
2528
|
-
"description": "搜索框外部背景色, 默认值: `#f2f2f2`"
|
2529
|
-
},
|
2530
|
-
"van-search/maxlength": {
|
2531
|
-
"type": "number | string",
|
2532
|
-
"description": "输入的最大字符数, 默认值: -"
|
2533
|
-
},
|
2534
|
-
"van-search/placeholder": {
|
2535
|
-
"type": "string",
|
2536
|
-
"description": "占位提示文字, 默认值: -"
|
2537
|
-
},
|
2538
|
-
"van-search/clearable": {
|
2539
|
-
"type": "boolean",
|
2540
|
-
"description": "是否启用清除图标,点击清除图标后会清空输入框, 默认值: `true`"
|
2541
|
-
},
|
2542
|
-
"van-search/clear-icon": {
|
2543
|
-
"type": "string",
|
2544
|
-
"description": "清除[图标名称](#/zh-CN/icon)或图片链接, 默认值: `clear`"
|
2545
|
-
},
|
2546
|
-
"van-search/clear-trigger": {
|
2547
|
-
"type": "string",
|
2548
|
-
"description": "显示清除图标的时机,`always` 表示输入框不为空时展示,<br>`focus` 表示输入框聚焦且不为空时展示, 默认值: `focus`"
|
2549
|
-
},
|
2550
|
-
"van-search/autofocus": {
|
2551
|
-
"type": "boolean",
|
2552
|
-
"description": "是否自动聚焦,iOS 系统不支持该属性, 默认值: `false`"
|
2553
|
-
},
|
2554
|
-
"van-search/show-action": {
|
2555
|
-
"type": "boolean",
|
2556
|
-
"description": "是否在搜索框右侧显示取消按钮, 默认值: `false`"
|
2557
|
-
},
|
2558
|
-
"van-search/action-text": {
|
2559
|
-
"type": "boolean",
|
2560
|
-
"description": "取消按钮文字, 默认值: `取消`"
|
2561
|
-
},
|
2562
|
-
"van-search/disabled": {
|
2563
|
-
"type": "boolean",
|
2564
|
-
"description": "是否禁用输入框, 默认值: `false`"
|
2565
|
-
},
|
2566
|
-
"van-search/readonly": {
|
2567
|
-
"type": "boolean",
|
2568
|
-
"description": "是否将输入框设为只读状态,只读状态下无法输入内容, 默认值: `false`"
|
2569
|
-
},
|
2570
|
-
"van-search/error": {
|
2571
|
-
"type": "boolean",
|
2572
|
-
"description": "是否将输入内容标红, 默认值: `false`"
|
2573
|
-
},
|
2574
|
-
"van-search/error-message": {
|
2575
|
-
"type": "string",
|
2576
|
-
"description": "底部错误提示文案,为空时不展示, 默认值: -"
|
2577
|
-
},
|
2578
|
-
"van-search/formatter": {
|
2579
|
-
"type": "(val: string) => string",
|
2580
|
-
"description": "输入内容格式化函数, 默认值: -"
|
2581
|
-
},
|
2582
|
-
"van-search/format-trigger": {
|
2583
|
-
"type": "string",
|
2584
|
-
"description": "格式化函数触发的时机,可选值为 `onBlur`, 默认值: `onChange`"
|
2604
|
+
"van-rate/allow-half": {
|
2605
|
+
"type": "boolean",
|
2606
|
+
"description": "是否允许半选, 默认值: `false`"
|
2585
2607
|
},
|
2586
|
-
"van-
|
2587
|
-
"type": "
|
2588
|
-
"description": "
|
2608
|
+
"van-rate/readonly": {
|
2609
|
+
"type": "boolean",
|
2610
|
+
"description": "是否为只读状态,只读状态下无法修改评分, 默认值: `false`"
|
2589
2611
|
},
|
2590
|
-
"van-
|
2591
|
-
"type": "
|
2592
|
-
"description": "
|
2612
|
+
"van-rate/disabled": {
|
2613
|
+
"type": "boolean",
|
2614
|
+
"description": "是否禁用评分, 默认值: `false`"
|
2593
2615
|
},
|
2594
|
-
"van-
|
2595
|
-
"type": "
|
2596
|
-
"description": "
|
2616
|
+
"van-rate/touchable": {
|
2617
|
+
"type": "boolean",
|
2618
|
+
"description": "是否可以通过滑动手势选择评分, 默认值: `true`"
|
2597
2619
|
},
|
2598
2620
|
"van-share-sheet/v-model:show": {
|
2599
2621
|
"type": "boolean",
|
@@ -2694,49 +2716,6 @@
|
|
2694
2716
|
"type": "boolean",
|
2695
2717
|
"description": "是否在跳转时替换当前页面历史, 默认值: `false`"
|
2696
2718
|
},
|
2697
|
-
"van-skeleton/row": {
|
2698
|
-
"type": "number | string",
|
2699
|
-
"description": "段落占位图行数, 默认值: `0`"
|
2700
|
-
},
|
2701
|
-
"van-skeleton/row-width": {
|
2702
|
-
"type": "number | string \\",
|
2703
|
-
"description": "段落占位图宽度,可传数组来设置每一行的宽度, 默认值: <br>(number \\",
|
2704
|
-
"options": [
|
2705
|
-
"string)[]_"
|
2706
|
-
]
|
2707
|
-
},
|
2708
|
-
"van-skeleton/title": {
|
2709
|
-
"type": "boolean",
|
2710
|
-
"description": "是否显示标题占位图, 默认值: `false`"
|
2711
|
-
},
|
2712
|
-
"van-skeleton/avatar": {
|
2713
|
-
"type": "boolean",
|
2714
|
-
"description": "是否显示头像占位图, 默认值: `false`"
|
2715
|
-
},
|
2716
|
-
"van-skeleton/loading": {
|
2717
|
-
"type": "boolean",
|
2718
|
-
"description": "是否显示骨架屏,传 `false` 时会展示子组件内容, 默认值: `true`"
|
2719
|
-
},
|
2720
|
-
"van-skeleton/animate": {
|
2721
|
-
"type": "boolean",
|
2722
|
-
"description": "是否开启动画, 默认值: `true`"
|
2723
|
-
},
|
2724
|
-
"van-skeleton/round": {
|
2725
|
-
"type": "boolean",
|
2726
|
-
"description": "是否将标题和段落显示为圆角风格, 默认值: `false`"
|
2727
|
-
},
|
2728
|
-
"van-skeleton/title-width": {
|
2729
|
-
"type": "number | string",
|
2730
|
-
"description": "标题占位图宽度, 默认值: `40%`"
|
2731
|
-
},
|
2732
|
-
"van-skeleton/avatar-size": {
|
2733
|
-
"type": "number | string",
|
2734
|
-
"description": "头像占位图大小, 默认值: `32px`"
|
2735
|
-
},
|
2736
|
-
"van-skeleton/avatar-shape": {
|
2737
|
-
"type": "string",
|
2738
|
-
"description": "头像占位图形状,可选值为 `square`, 默认值: `round`"
|
2739
|
-
},
|
2740
2719
|
"van-slider/v-model": {
|
2741
2720
|
"type": "number | [number, number]",
|
2742
2721
|
"description": "当前进度百分比,在双滑块模式下为数组格式, 默认值: `0`"
|
@@ -2773,6 +2752,10 @@
|
|
2773
2752
|
"type": "boolean",
|
2774
2753
|
"description": "是否开启双滑块模式, 默认值: `false`"
|
2775
2754
|
},
|
2755
|
+
"van-slider/reverse": {
|
2756
|
+
"type": "`false`",
|
2757
|
+
"description": "是否将进度条反转, 默认值: undefined"
|
2758
|
+
},
|
2776
2759
|
"van-slider/disabled": {
|
2777
2760
|
"type": "boolean",
|
2778
2761
|
"description": "是否禁用滑块, 默认值: `false`"
|
@@ -2785,6 +2768,49 @@
|
|
2785
2768
|
"type": "boolean",
|
2786
2769
|
"description": "是否垂直展示, 默认值: `false`"
|
2787
2770
|
},
|
2771
|
+
"van-skeleton/row": {
|
2772
|
+
"type": "number | string",
|
2773
|
+
"description": "段落占位图行数, 默认值: `0`"
|
2774
|
+
},
|
2775
|
+
"van-skeleton/row-width": {
|
2776
|
+
"type": "number | string \\",
|
2777
|
+
"description": "段落占位图宽度,可传数组来设置每一行的宽度, 默认值: <br>(number \\",
|
2778
|
+
"options": [
|
2779
|
+
"string)[]_"
|
2780
|
+
]
|
2781
|
+
},
|
2782
|
+
"van-skeleton/title": {
|
2783
|
+
"type": "boolean",
|
2784
|
+
"description": "是否显示标题占位图, 默认值: `false`"
|
2785
|
+
},
|
2786
|
+
"van-skeleton/avatar": {
|
2787
|
+
"type": "boolean",
|
2788
|
+
"description": "是否显示头像占位图, 默认值: `false`"
|
2789
|
+
},
|
2790
|
+
"van-skeleton/loading": {
|
2791
|
+
"type": "boolean",
|
2792
|
+
"description": "是否显示骨架屏,传 `false` 时会展示子组件内容, 默认值: `true`"
|
2793
|
+
},
|
2794
|
+
"van-skeleton/animate": {
|
2795
|
+
"type": "boolean",
|
2796
|
+
"description": "是否开启动画, 默认值: `true`"
|
2797
|
+
},
|
2798
|
+
"van-skeleton/round": {
|
2799
|
+
"type": "boolean",
|
2800
|
+
"description": "是否将标题和段落显示为圆角风格, 默认值: `false`"
|
2801
|
+
},
|
2802
|
+
"van-skeleton/title-width": {
|
2803
|
+
"type": "number | string",
|
2804
|
+
"description": "标题占位图宽度, 默认值: `40%`"
|
2805
|
+
},
|
2806
|
+
"van-skeleton/avatar-size": {
|
2807
|
+
"type": "number | string",
|
2808
|
+
"description": "头像占位图大小, 默认值: `32px`"
|
2809
|
+
},
|
2810
|
+
"van-skeleton/avatar-shape": {
|
2811
|
+
"type": "string",
|
2812
|
+
"description": "头像占位图形状,可选值为 `square`, 默认值: `round`"
|
2813
|
+
},
|
2788
2814
|
"van-stepper/v-model": {
|
2789
2815
|
"type": "number | string",
|
2790
2816
|
"description": "当前输入的值, 默认值: -"
|
@@ -2876,37 +2902,61 @@
|
|
2876
2902
|
"type": "boolean",
|
2877
2903
|
"description": "是否允许输入的值为空, 默认值: `false`"
|
2878
2904
|
},
|
2879
|
-
"van-
|
2905
|
+
"van-submit-bar/price": {
|
2906
|
+
"type": "number",
|
2907
|
+
"description": "金额(单位分), 默认值: -"
|
2908
|
+
},
|
2909
|
+
"van-submit-bar/decimal-length": {
|
2880
2910
|
"type": "number | string",
|
2881
|
-
"description": "
|
2911
|
+
"description": "金额小数点位数, 默认值: `2`"
|
2882
2912
|
},
|
2883
|
-
"van-
|
2913
|
+
"van-submit-bar/label": {
|
2884
2914
|
"type": "string",
|
2885
|
-
"description": "
|
2915
|
+
"description": "金额左侧文案, 默认值: `合计:`"
|
2886
2916
|
},
|
2887
|
-
"van-
|
2917
|
+
"van-submit-bar/suffix-label": {
|
2888
2918
|
"type": "string",
|
2889
|
-
"description": "
|
2919
|
+
"description": "金额右侧文案, 默认值: -"
|
2890
2920
|
},
|
2891
|
-
"van-
|
2921
|
+
"van-submit-bar/text-align": {
|
2892
2922
|
"type": "string",
|
2893
|
-
"description": "
|
2923
|
+
"description": "金额文案对齐方向,可选值为 `left`, 默认值: `right`"
|
2894
2924
|
},
|
2895
|
-
"van-
|
2925
|
+
"van-submit-bar/button-text": {
|
2896
2926
|
"type": "string",
|
2897
|
-
"description": "
|
2927
|
+
"description": "按钮文字, 默认值: -"
|
2898
2928
|
},
|
2899
|
-
"van-
|
2929
|
+
"van-submit-bar/button-type": {
|
2900
2930
|
"type": "string",
|
2901
|
-
"description": "
|
2931
|
+
"description": "按钮类型, 默认值: `danger`"
|
2902
2932
|
},
|
2903
|
-
"van-
|
2933
|
+
"van-submit-bar/button-color": {
|
2904
2934
|
"type": "string",
|
2905
|
-
"description": "
|
2935
|
+
"description": "自定义按钮颜色, 默认值: -"
|
2906
2936
|
},
|
2907
|
-
"van-
|
2937
|
+
"van-submit-bar/tip": {
|
2908
2938
|
"type": "string",
|
2909
|
-
"description": "
|
2939
|
+
"description": "在订单栏上方的提示文案, 默认值: -"
|
2940
|
+
},
|
2941
|
+
"van-submit-bar/tip-icon": {
|
2942
|
+
"type": "string",
|
2943
|
+
"description": "提示文案左侧的[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
|
2944
|
+
},
|
2945
|
+
"van-submit-bar/currency": {
|
2946
|
+
"type": "string",
|
2947
|
+
"description": "货币符号, 默认值: `¥`"
|
2948
|
+
},
|
2949
|
+
"van-submit-bar/disabled": {
|
2950
|
+
"type": "boolean",
|
2951
|
+
"description": "是否禁用按钮, 默认值: `false`"
|
2952
|
+
},
|
2953
|
+
"van-submit-bar/loading": {
|
2954
|
+
"type": "boolean",
|
2955
|
+
"description": "是否显示将按钮显示为加载中状态, 默认值: `false`"
|
2956
|
+
},
|
2957
|
+
"van-submit-bar/safe-area-inset-bottom": {
|
2958
|
+
"type": "boolean",
|
2959
|
+
"description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei), 默认值: `true`"
|
2910
2960
|
},
|
2911
2961
|
"van-sticky/position": {
|
2912
2962
|
"type": "string",
|
@@ -2928,61 +2978,61 @@
|
|
2928
2978
|
"type": "Element",
|
2929
2979
|
"description": "容器对应的 HTML 节点, 默认值: -"
|
2930
2980
|
},
|
2931
|
-
"van-
|
2932
|
-
"type": "number",
|
2933
|
-
"description": "金额(单位分), 默认值: -"
|
2934
|
-
},
|
2935
|
-
"van-submit-bar/decimal-length": {
|
2981
|
+
"van-steps/active": {
|
2936
2982
|
"type": "number | string",
|
2937
|
-
"description": "
|
2983
|
+
"description": "当前步骤对应的索引值, 默认值: `0`"
|
2938
2984
|
},
|
2939
|
-
"van-
|
2985
|
+
"van-steps/direction": {
|
2940
2986
|
"type": "string",
|
2941
|
-
"description": "
|
2987
|
+
"description": "步骤条方向,可选值为 `vertical`, 默认值: `horizontal`"
|
2942
2988
|
},
|
2943
|
-
"van-
|
2989
|
+
"van-steps/active-icon": {
|
2944
2990
|
"type": "string",
|
2945
|
-
"description": "
|
2991
|
+
"description": "当前步骤对应的底部图标,可选值见 [Icon 组件](#/zh-CN/icon), 默认值: `checked`"
|
2946
2992
|
},
|
2947
|
-
"van-
|
2993
|
+
"van-steps/inactive-icon": {
|
2948
2994
|
"type": "string",
|
2949
|
-
"description": "
|
2995
|
+
"description": "非当前步骤对应的底部图标,可选值见 [Icon 组件](#/zh-CN/icon), 默认值: -"
|
2950
2996
|
},
|
2951
|
-
"van-
|
2997
|
+
"van-steps/finish-icon": {
|
2952
2998
|
"type": "string",
|
2953
|
-
"description": "
|
2999
|
+
"description": "已完成步骤对应的底部图标,优先级高于 `inactive-icon`,可选值见 [Icon 组件](#/zh-CN/icon), 默认值: -"
|
2954
3000
|
},
|
2955
|
-
"van-
|
3001
|
+
"van-steps/active-color": {
|
2956
3002
|
"type": "string",
|
2957
|
-
"description": "
|
3003
|
+
"description": "当前步骤和已完成步骤的颜色, 默认值: `#07c160`"
|
2958
3004
|
},
|
2959
|
-
"van-
|
3005
|
+
"van-steps/inactive-color": {
|
2960
3006
|
"type": "string",
|
2961
|
-
"description": "
|
3007
|
+
"description": "未激活步骤的颜色, 默认值: `#969799`"
|
2962
3008
|
},
|
2963
|
-
"van-
|
3009
|
+
"van-steps/icon-prefix": {
|
2964
3010
|
"type": "string",
|
2965
|
-
"description": "
|
3011
|
+
"description": "图标类名前缀,等同于 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props), 默认值: `van-icon`"
|
2966
3012
|
},
|
2967
|
-
"van-
|
2968
|
-
"type": "string",
|
2969
|
-
"description": "
|
3013
|
+
"van-swipe-cell/name": {
|
3014
|
+
"type": "number | string",
|
3015
|
+
"description": "标识符,可以在事件参数中获取到, 默认值: `''`"
|
2970
3016
|
},
|
2971
|
-
"van-
|
2972
|
-
"type": "string",
|
2973
|
-
"description": "
|
3017
|
+
"van-swipe-cell/left-width": {
|
3018
|
+
"type": "number | string",
|
3019
|
+
"description": "指定左侧滑动区域宽度,单位为 `px`, 默认值: `auto`"
|
2974
3020
|
},
|
2975
|
-
"van-
|
2976
|
-
"type": "
|
2977
|
-
"description": "
|
3021
|
+
"van-swipe-cell/right-width": {
|
3022
|
+
"type": "number | string",
|
3023
|
+
"description": "指定右侧滑动区域宽度,单位为 `px`, 默认值: `auto`"
|
2978
3024
|
},
|
2979
|
-
"van-
|
3025
|
+
"van-swipe-cell/before-close": {
|
3026
|
+
"type": "(args) => boolean | Promise\\<boolean\\>",
|
3027
|
+
"description": "关闭前的回调函数,返回 `false` 可阻止关闭,支持返回 Promise, 默认值: -"
|
3028
|
+
},
|
3029
|
+
"van-swipe-cell/disabled": {
|
2980
3030
|
"type": "boolean",
|
2981
|
-
"description": "
|
3031
|
+
"description": "是否禁用滑动, 默认值: `false`"
|
2982
3032
|
},
|
2983
|
-
"van-
|
3033
|
+
"van-swipe-cell/stop-propagation": {
|
2984
3034
|
"type": "boolean",
|
2985
|
-
"description": "
|
3035
|
+
"description": "是否阻止滑动事件冒泡, 默认值: `false`"
|
2986
3036
|
},
|
2987
3037
|
"van-swipe/autoplay": {
|
2988
3038
|
"type": "number | string",
|
@@ -3032,30 +3082,6 @@
|
|
3032
3082
|
"type": "string",
|
3033
3083
|
"description": "指示器颜色, 默认值: `#1989fa`"
|
3034
3084
|
},
|
3035
|
-
"van-swipe-cell/name": {
|
3036
|
-
"type": "number | string",
|
3037
|
-
"description": "标识符,可以在事件参数中获取到, 默认值: `''`"
|
3038
|
-
},
|
3039
|
-
"van-swipe-cell/left-width": {
|
3040
|
-
"type": "number | string",
|
3041
|
-
"description": "指定左侧滑动区域宽度,单位为 `px`, 默认值: `auto`"
|
3042
|
-
},
|
3043
|
-
"van-swipe-cell/right-width": {
|
3044
|
-
"type": "number | string",
|
3045
|
-
"description": "指定右侧滑动区域宽度,单位为 `px`, 默认值: `auto`"
|
3046
|
-
},
|
3047
|
-
"van-swipe-cell/before-close": {
|
3048
|
-
"type": "(args) => boolean | Promise\\<boolean\\>",
|
3049
|
-
"description": "关闭前的回调函数,返回 `false` 可阻止关闭,支持返回 Promise, 默认值: -"
|
3050
|
-
},
|
3051
|
-
"van-swipe-cell/disabled": {
|
3052
|
-
"type": "boolean",
|
3053
|
-
"description": "是否禁用滑动, 默认值: `false`"
|
3054
|
-
},
|
3055
|
-
"van-swipe-cell/stop-propagation": {
|
3056
|
-
"type": "boolean",
|
3057
|
-
"description": "是否阻止滑动事件冒泡, 默认值: `false`"
|
3058
|
-
},
|
3059
3085
|
"van-switch/v-model": {
|
3060
3086
|
"type": "any",
|
3061
3087
|
"description": "开关选中状态, 默认值: `false`"
|
@@ -3130,7 +3156,7 @@
|
|
3130
3156
|
},
|
3131
3157
|
"van-tabs/sticky": {
|
3132
3158
|
"type": "boolean",
|
3133
|
-
"description": "
|
3159
|
+
"description": "是否使用粘性布局, 默认值: `false`"
|
3134
3160
|
},
|
3135
3161
|
"van-tabs/swipeable": {
|
3136
3162
|
"type": "boolean",
|
@@ -3146,7 +3172,7 @@
|
|
3146
3172
|
},
|
3147
3173
|
"van-tabs/offset-top": {
|
3148
3174
|
"type": "number | string",
|
3149
|
-
"description": "
|
3175
|
+
"description": "粘性布局下吸顶时与顶部的距离,支持 `px` `vw` `vh` `rem` 单位,默认 `px`, 默认值: `0`"
|
3150
3176
|
},
|
3151
3177
|
"van-tabs/swipe-threshold": {
|
3152
3178
|
"type": "number | string",
|
@@ -3213,6 +3239,10 @@
|
|
3213
3239
|
"-"
|
3214
3240
|
]
|
3215
3241
|
},
|
3242
|
+
"van-tab/show-zero-badge": {
|
3243
|
+
"type": "boolean",
|
3244
|
+
"description": "当 badge 为数字 0 时,是否展示徽标, 默认值: `true`"
|
3245
|
+
},
|
3216
3246
|
"van-tabbar/v-model": {
|
3217
3247
|
"type": "number | string",
|
3218
3248
|
"description": "当前选中标签的名称或索引值, 默认值: `0`"
|
@@ -3325,7 +3355,7 @@
|
|
3325
3355
|
"description": "是否为可关闭标签, 默认值: `false`"
|
3326
3356
|
},
|
3327
3357
|
"van-tree-select/items": {
|
3328
|
-
"type": "
|
3358
|
+
"type": "TreeSelectItem[]",
|
3329
3359
|
"description": "分类显示所需的数据, 默认值: `[]`"
|
3330
3360
|
},
|
3331
3361
|
"van-tree-select/height": {
|