vant 4.0.0-alpha.1 → 4.0.0-alpha.2
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/README.md +141 -0
- package/changelog.generated.md +39 -42
- package/es/address-edit/AddressEdit.d.ts +0 -17
- package/es/address-edit/AddressEdit.js +3 -24
- package/es/address-edit/index.d.ts +0 -12
- package/es/address-edit/types.d.ts +0 -1
- package/es/address-list/AddressListItem.d.ts +3 -2
- package/es/address-list/AddressListItem.js +1 -1
- package/es/badge/Badge.d.ts +4 -3
- package/es/badge/index.d.ts +2 -2
- package/es/calendar/Calendar.js +1 -1
- package/es/calendar/CalendarDay.js +4 -0
- package/es/calendar/index.css +1 -1
- package/es/calendar/index.less +2 -0
- package/es/calendar/types.d.ts +2 -1
- package/es/cascader/types.d.ts +2 -1
- package/es/checkbox/Checker.d.ts +2 -1
- package/es/collapse/Collapse.d.ts +7 -6
- package/es/collapse/index.d.ts +3 -3
- package/es/composables/use-touch.js +1 -1
- package/es/config-provider/ConfigProvider.d.ts +4 -3
- package/es/config-provider/index.d.ts +2 -2
- package/es/contact-list/ContactList.d.ts +3 -2
- package/es/coupon/Coupon.d.ts +2 -1
- package/es/coupon-list/CouponList.d.ts +3 -13
- package/es/coupon-list/CouponList.js +9 -7
- package/es/coupon-list/index.css +1 -1
- package/es/coupon-list/index.d.ts +2 -9
- package/es/coupon-list/index.less +4 -16
- package/es/coupon-list/style/index.js +1 -0
- package/es/coupon-list/style/less.js +1 -0
- package/es/dialog/index.css +1 -1
- package/es/dialog/types.d.ts +2 -2
- package/es/dropdown-item/types.d.ts +2 -1
- package/es/empty/Empty.d.ts +8 -7
- package/es/empty/Empty.js +2 -2
- package/es/empty/index.d.ts +2 -2
- package/es/field/Field.d.ts +4 -0
- package/es/field/Field.js +2 -0
- package/es/field/index.d.ts +2 -0
- package/es/form/Form.js +1 -0
- package/es/form/types.d.ts +1 -0
- package/es/icon/index.css +1 -1
- package/es/index-bar/IndexBar.d.ts +5 -4
- package/es/index-bar/index.d.ts +3 -3
- package/es/index-bar/types.d.ts +2 -1
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/locale/lang/bn-BD.d.ts +0 -2
- package/es/locale/lang/bn-BD.js +0 -2
- package/es/locale/lang/da-DK.d.ts +64 -0
- package/es/locale/lang/da-DK.js +66 -0
- package/es/locale/lang/de-DE-formal.d.ts +0 -2
- package/es/locale/lang/de-DE-formal.js +0 -2
- package/es/locale/lang/de-DE.d.ts +0 -2
- package/es/locale/lang/de-DE.js +0 -2
- package/es/locale/lang/en-US.d.ts +0 -2
- package/es/locale/lang/en-US.js +0 -2
- package/es/locale/lang/es-ES.d.ts +0 -2
- package/es/locale/lang/es-ES.js +0 -2
- package/es/locale/lang/fr-FR.d.ts +0 -2
- package/es/locale/lang/fr-FR.js +0 -2
- package/es/locale/lang/hi-IN.d.ts +0 -2
- package/es/locale/lang/hi-IN.js +0 -2
- package/es/locale/lang/id-ID.d.ts +0 -2
- package/es/locale/lang/id-ID.js +0 -2
- package/es/locale/lang/is-IS.d.ts +62 -0
- package/es/locale/lang/is-IS.js +72 -0
- package/es/locale/lang/it-IT.d.ts +0 -2
- package/es/locale/lang/it-IT.js +0 -2
- package/es/locale/lang/ja-JP.d.ts +0 -2
- package/es/locale/lang/ja-JP.js +0 -2
- package/es/locale/lang/ko-KR.d.ts +0 -2
- package/es/locale/lang/ko-KR.js +0 -2
- package/es/locale/lang/la-LA.d.ts +0 -2
- package/es/locale/lang/la-LA.js +0 -2
- package/es/locale/lang/nb-NO.d.ts +0 -2
- package/es/locale/lang/nb-NO.js +0 -2
- package/es/locale/lang/pt-BR.d.ts +0 -2
- package/es/locale/lang/pt-BR.js +0 -2
- package/es/locale/lang/ro-RO.d.ts +0 -2
- package/es/locale/lang/ro-RO.js +0 -2
- package/es/locale/lang/ru-RU.d.ts +0 -2
- package/es/locale/lang/ru-RU.js +0 -2
- package/es/locale/lang/sv-SE.d.ts +62 -0
- package/es/locale/lang/sv-SE.js +64 -0
- package/es/locale/lang/th-TH.d.ts +0 -2
- package/es/locale/lang/th-TH.js +0 -2
- package/es/locale/lang/tr-TR.d.ts +0 -2
- package/es/locale/lang/tr-TR.js +0 -2
- package/es/locale/lang/uk-UA.d.ts +0 -2
- package/es/locale/lang/uk-UA.js +0 -2
- package/es/locale/lang/vi-VN.d.ts +0 -2
- package/es/locale/lang/vi-VN.js +0 -2
- package/es/locale/lang/zh-CN.d.ts +0 -2
- package/es/locale/lang/zh-CN.js +0 -2
- package/es/locale/lang/zh-HK.d.ts +0 -2
- package/es/locale/lang/zh-HK.js +0 -2
- package/es/locale/lang/zh-TW.d.ts +0 -2
- package/es/locale/lang/zh-TW.js +0 -2
- package/es/notify/types.d.ts +2 -1
- package/es/number-keyboard/NumberKeyboard.js +10 -1
- package/es/picker/Picker.d.ts +5 -4
- package/es/picker/index.d.ts +3 -3
- package/es/picker/types.d.ts +4 -3
- package/es/picker/utils.d.ts +4 -3
- package/es/popup/index.css +1 -1
- package/es/progress/Progress.d.ts +4 -3
- package/es/progress/index.d.ts +2 -2
- package/es/rate/Rate.js +32 -10
- package/es/search/Search.d.ts +3 -0
- package/es/search/index.d.ts +2 -0
- package/es/share-sheet/ShareSheet.js +25 -11
- package/es/share-sheet/index.css +1 -1
- package/es/share-sheet/index.less +45 -1
- package/es/skeleton/Skeleton.d.ts +5 -4
- package/es/skeleton/index.d.ts +3 -3
- package/es/slider/index.css +1 -1
- package/es/style/animation.css +1 -1
- package/es/style/base.css +1 -1
- package/es/swipe-cell/index.css +1 -1
- package/es/tabbar/Tabbar.d.ts +2 -2
- package/es/tabs/Tabs.d.ts +1 -1
- package/es/tabs/Tabs.js +1 -0
- package/es/tabs/types.d.ts +5 -4
- package/es/toast/types.d.ts +3 -2
- package/es/tree-select/TreeSelect.d.ts +7 -6
- package/es/tree-select/index.d.ts +3 -3
- package/es/uploader/Uploader.d.ts +4 -4
- package/es/uploader/Uploader.js +2 -2
- package/es/uploader/UploaderPreviewItem.d.ts +3 -3
- package/es/uploader/UploaderPreviewItem.js +9 -6
- package/es/uploader/index.d.ts +2 -2
- package/es/uploader/types.d.ts +5 -5
- package/es/utils/basic.d.ts +1 -0
- package/es/utils/format.d.ts +7 -6
- package/es/utils/format.js +6 -0
- package/es/utils/validate.d.ts +2 -1
- package/lib/action-bar/ActionBar.js +8 -13
- package/lib/action-bar/index.js +9 -16
- package/lib/action-bar-button/ActionBarButton.js +8 -13
- package/lib/action-bar-button/index.js +9 -16
- package/lib/action-bar-icon/ActionBarIcon.js +8 -13
- package/lib/action-bar-icon/index.js +9 -16
- package/lib/action-sheet/ActionSheet.js +8 -13
- package/lib/action-sheet/index.js +9 -16
- package/lib/address-edit/AddressEdit.d.ts +0 -17
- package/lib/address-edit/AddressEdit.js +12 -40
- package/lib/address-edit/AddressEditDetail.js +8 -13
- package/lib/address-edit/index.d.ts +0 -12
- package/lib/address-edit/index.js +9 -16
- package/lib/address-edit/types.d.ts +0 -1
- package/lib/address-edit/types.js +7 -12
- package/lib/address-list/AddressList.js +9 -16
- package/lib/address-list/AddressListItem.d.ts +3 -2
- package/lib/address-list/AddressListItem.js +8 -13
- package/lib/address-list/index.js +9 -16
- package/lib/area/Area.js +8 -13
- package/lib/area/index.js +9 -16
- package/lib/area/types.js +7 -12
- package/lib/area/utils.js +8 -13
- package/lib/badge/Badge.d.ts +4 -3
- package/lib/badge/Badge.js +8 -13
- package/lib/badge/index.d.ts +2 -2
- package/lib/badge/index.js +9 -16
- package/lib/button/Button.js +8 -13
- package/lib/button/index.js +9 -16
- package/lib/button/types.js +7 -12
- package/lib/calendar/Calendar.js +10 -17
- package/lib/calendar/CalendarDay.js +12 -13
- package/lib/calendar/CalendarHeader.js +8 -13
- package/lib/calendar/CalendarMonth.js +9 -16
- package/lib/calendar/index.css +1 -1
- package/lib/calendar/index.js +9 -16
- package/lib/calendar/index.less +2 -0
- package/lib/calendar/types.d.ts +2 -1
- package/lib/calendar/types.js +7 -12
- package/lib/calendar/utils.js +8 -13
- package/lib/card/Card.js +8 -13
- package/lib/card/index.js +9 -16
- package/lib/cascader/Cascader.js +8 -13
- package/lib/cascader/index.js +9 -16
- package/lib/cascader/types.d.ts +2 -1
- package/lib/cascader/types.js +7 -12
- package/lib/cell/Cell.js +8 -13
- package/lib/cell/index.js +9 -16
- package/lib/cell-group/CellGroup.js +8 -13
- package/lib/cell-group/index.js +9 -16
- package/lib/checkbox/Checkbox.js +9 -16
- package/lib/checkbox/Checker.d.ts +2 -1
- package/lib/checkbox/Checker.js +8 -13
- package/lib/checkbox/index.js +9 -16
- package/lib/checkbox/types.js +7 -12
- package/lib/checkbox-group/CheckboxGroup.js +8 -13
- package/lib/checkbox-group/index.js +9 -16
- package/lib/checkbox-group/types.js +7 -12
- package/lib/circle/Circle.js +8 -13
- package/lib/circle/index.js +9 -16
- package/lib/col/Col.js +8 -13
- package/lib/col/index.js +9 -16
- package/lib/collapse/Collapse.d.ts +7 -6
- package/lib/collapse/Collapse.js +8 -13
- package/lib/collapse/index.d.ts +3 -3
- package/lib/collapse/index.js +9 -16
- package/lib/collapse-item/CollapseItem.js +8 -13
- package/lib/collapse-item/index.js +9 -16
- package/lib/collapse-item/types.js +7 -12
- package/lib/composables/on-popup-reopen.js +8 -13
- package/lib/composables/use-expose.js +8 -13
- package/lib/composables/use-height.js +8 -13
- package/lib/composables/use-id.js +8 -13
- package/lib/composables/use-lazy-render.js +8 -13
- package/lib/composables/use-lock-scroll.js +8 -13
- package/lib/composables/use-placeholder.js +8 -13
- package/lib/composables/use-refs.js +8 -13
- package/lib/composables/use-route.js +8 -13
- package/lib/composables/use-tab-status.js +8 -13
- package/lib/composables/use-touch.js +9 -14
- package/lib/composables/use-visibility-change.js +8 -13
- package/lib/config-provider/ConfigProvider.d.ts +4 -3
- package/lib/config-provider/ConfigProvider.js +8 -13
- package/lib/config-provider/index.d.ts +2 -2
- package/lib/config-provider/index.js +9 -16
- package/lib/contact-card/ContactCard.js +8 -13
- package/lib/contact-card/index.js +9 -16
- package/lib/contact-edit/ContactEdit.js +8 -13
- package/lib/contact-edit/index.js +9 -16
- package/lib/contact-list/ContactList.d.ts +3 -2
- package/lib/contact-list/ContactList.js +8 -13
- package/lib/contact-list/index.js +9 -16
- package/lib/count-down/CountDown.js +8 -13
- package/lib/count-down/index.js +9 -16
- package/lib/count-down/types.js +7 -12
- package/lib/count-down/utils.js +8 -13
- package/lib/coupon/Coupon.d.ts +2 -1
- package/lib/coupon/Coupon.js +8 -13
- package/lib/coupon/index.js +9 -16
- package/lib/coupon/utils.js +8 -13
- package/lib/coupon-cell/CouponCell.js +8 -13
- package/lib/coupon-cell/index.js +9 -16
- package/lib/coupon-list/CouponList.d.ts +3 -13
- package/lib/coupon-list/CouponList.js +17 -20
- package/lib/coupon-list/index.css +1 -1
- package/lib/coupon-list/index.d.ts +2 -9
- package/lib/coupon-list/index.js +9 -16
- package/lib/coupon-list/index.less +4 -16
- package/lib/coupon-list/style/index.js +1 -0
- package/lib/coupon-list/style/less.js +1 -0
- package/lib/date-picker/DatePicker.js +8 -13
- package/lib/date-picker/index.js +9 -16
- package/lib/date-picker/utils.js +8 -13
- package/lib/dialog/Dialog.js +8 -13
- package/lib/dialog/function-call.js +9 -16
- package/lib/dialog/index.css +1 -1
- package/lib/dialog/index.js +8 -13
- package/lib/dialog/types.d.ts +2 -2
- package/lib/dialog/types.js +7 -12
- package/lib/divider/Divider.js +8 -13
- package/lib/divider/index.js +9 -16
- package/lib/dropdown-item/DropdownItem.js +8 -13
- package/lib/dropdown-item/index.js +9 -16
- package/lib/dropdown-item/types.d.ts +2 -1
- package/lib/dropdown-item/types.js +7 -12
- package/lib/dropdown-menu/DropdownMenu.js +8 -13
- package/lib/dropdown-menu/index.js +9 -16
- package/lib/dropdown-menu/types.js +7 -12
- package/lib/empty/Empty.d.ts +8 -7
- package/lib/empty/Empty.js +9 -14
- package/lib/empty/Network.js +8 -13
- package/lib/empty/index.d.ts +2 -2
- package/lib/empty/index.js +9 -16
- package/lib/field/Field.d.ts +4 -0
- package/lib/field/Field.js +10 -13
- package/lib/field/index.d.ts +2 -0
- package/lib/field/index.js +9 -16
- package/lib/field/types.js +7 -12
- package/lib/field/utils.js +8 -13
- package/lib/form/Form.js +9 -13
- package/lib/form/index.js +9 -16
- package/lib/form/types.d.ts +1 -0
- package/lib/form/types.js +7 -12
- package/lib/grid/Grid.js +8 -13
- package/lib/grid/index.js +9 -16
- package/lib/grid-item/GridItem.js +8 -13
- package/lib/grid-item/index.js +9 -16
- package/lib/icon/Icon.js +8 -13
- package/lib/icon/index.css +1 -1
- package/lib/icon/index.js +9 -16
- package/lib/image/Image.js +8 -13
- package/lib/image/index.js +9 -16
- package/lib/image-preview/ImagePreview.js +9 -16
- package/lib/image-preview/ImagePreviewItem.js +8 -13
- package/lib/image-preview/function-call.js +9 -16
- package/lib/image-preview/index.js +8 -13
- package/lib/image-preview/types.js +7 -12
- package/lib/index-anchor/IndexAnchor.js +8 -13
- package/lib/index-anchor/index.js +9 -16
- package/lib/index-bar/IndexBar.d.ts +5 -4
- package/lib/index-bar/IndexBar.js +8 -13
- package/lib/index-bar/index.d.ts +3 -3
- package/lib/index-bar/index.js +9 -16
- package/lib/index-bar/types.d.ts +2 -1
- package/lib/index-bar/types.js +7 -12
- package/lib/index.css +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +97 -101
- package/lib/index.less +2 -2
- package/lib/lazyload/index.js +8 -13
- package/lib/lazyload/vue-lazyload/index.js +9 -16
- package/lib/lazyload/vue-lazyload/lazy-component.js +8 -13
- package/lib/lazyload/vue-lazyload/lazy-container.js +8 -13
- package/lib/lazyload/vue-lazyload/lazy-image.js +8 -13
- package/lib/lazyload/vue-lazyload/lazy.js +9 -16
- package/lib/lazyload/vue-lazyload/listener.js +8 -13
- package/lib/lazyload/vue-lazyload/util.js +8 -13
- package/lib/list/List.js +8 -13
- package/lib/list/index.js +9 -16
- package/lib/list/types.js +7 -12
- package/lib/loading/Loading.js +8 -13
- package/lib/loading/index.js +9 -16
- package/lib/locale/index.js +9 -16
- package/lib/locale/lang/bn-BD.d.ts +0 -2
- package/lib/locale/lang/bn-BD.js +8 -15
- package/lib/locale/lang/da-DK.d.ts +64 -0
- package/lib/locale/lang/da-DK.js +85 -0
- package/lib/locale/lang/de-DE-formal.d.ts +0 -2
- package/lib/locale/lang/de-DE-formal.js +8 -15
- package/lib/locale/lang/de-DE.d.ts +0 -2
- package/lib/locale/lang/de-DE.js +8 -15
- package/lib/locale/lang/en-US.d.ts +0 -2
- package/lib/locale/lang/en-US.js +8 -15
- package/lib/locale/lang/es-ES.d.ts +0 -2
- package/lib/locale/lang/es-ES.js +8 -15
- package/lib/locale/lang/fr-FR.d.ts +0 -2
- package/lib/locale/lang/fr-FR.js +8 -15
- package/lib/locale/lang/hi-IN.d.ts +0 -2
- package/lib/locale/lang/hi-IN.js +8 -15
- package/lib/locale/lang/id-ID.d.ts +0 -2
- package/lib/locale/lang/id-ID.js +8 -15
- package/lib/locale/lang/is-IS.d.ts +62 -0
- package/lib/locale/lang/is-IS.js +91 -0
- package/lib/locale/lang/it-IT.d.ts +0 -2
- package/lib/locale/lang/it-IT.js +8 -15
- package/lib/locale/lang/ja-JP.d.ts +0 -2
- package/lib/locale/lang/ja-JP.js +8 -15
- package/lib/locale/lang/ko-KR.d.ts +0 -2
- package/lib/locale/lang/ko-KR.js +8 -15
- package/lib/locale/lang/la-LA.d.ts +0 -2
- package/lib/locale/lang/la-LA.js +8 -15
- package/lib/locale/lang/nb-NO.d.ts +0 -2
- package/lib/locale/lang/nb-NO.js +8 -15
- package/lib/locale/lang/pt-BR.d.ts +0 -2
- package/lib/locale/lang/pt-BR.js +8 -15
- package/lib/locale/lang/ro-RO.d.ts +0 -2
- package/lib/locale/lang/ro-RO.js +8 -15
- package/lib/locale/lang/ru-RU.d.ts +0 -2
- package/lib/locale/lang/ru-RU.js +8 -15
- package/lib/locale/lang/sv-SE.d.ts +62 -0
- package/lib/locale/lang/sv-SE.js +83 -0
- package/lib/locale/lang/th-TH.d.ts +0 -2
- package/lib/locale/lang/th-TH.js +8 -15
- package/lib/locale/lang/tr-TR.d.ts +0 -2
- package/lib/locale/lang/tr-TR.js +8 -15
- package/lib/locale/lang/uk-UA.d.ts +0 -2
- package/lib/locale/lang/uk-UA.js +8 -15
- package/lib/locale/lang/vi-VN.d.ts +0 -2
- package/lib/locale/lang/vi-VN.js +8 -15
- package/lib/locale/lang/zh-CN.d.ts +0 -2
- package/lib/locale/lang/zh-CN.js +8 -15
- package/lib/locale/lang/zh-HK.d.ts +0 -2
- package/lib/locale/lang/zh-HK.js +8 -15
- package/lib/locale/lang/zh-TW.d.ts +0 -2
- package/lib/locale/lang/zh-TW.js +8 -15
- package/lib/nav-bar/NavBar.js +8 -13
- package/lib/nav-bar/index.js +9 -16
- package/lib/notice-bar/NoticeBar.js +8 -13
- package/lib/notice-bar/index.js +9 -16
- package/lib/notice-bar/types.js +7 -12
- package/lib/notify/Notify.js +8 -13
- package/lib/notify/function-call.js +9 -16
- package/lib/notify/index.js +8 -13
- package/lib/notify/types.d.ts +2 -1
- package/lib/notify/types.js +7 -12
- package/lib/number-keyboard/NumberKeyboard.js +19 -17
- package/lib/number-keyboard/NumberKeyboardKey.js +8 -13
- package/lib/number-keyboard/index.js +9 -16
- package/lib/overlay/Overlay.js +8 -13
- package/lib/overlay/index.js +9 -16
- package/lib/pagination/Pagination.js +8 -13
- package/lib/pagination/index.js +9 -16
- package/lib/password-input/PasswordInput.js +8 -13
- package/lib/password-input/index.js +9 -16
- package/lib/picker/Picker.d.ts +5 -4
- package/lib/picker/Picker.js +9 -16
- package/lib/picker/PickerColumn.js +8 -13
- package/lib/picker/index.d.ts +3 -3
- package/lib/picker/index.js +9 -16
- package/lib/picker/types.d.ts +4 -3
- package/lib/picker/types.js +7 -12
- package/lib/picker/utils.d.ts +4 -3
- package/lib/picker/utils.js +8 -13
- package/lib/popover/Popover.js +8 -13
- package/lib/popover/index.js +9 -16
- package/lib/popover/types.js +7 -12
- package/lib/popup/Popup.js +8 -13
- package/lib/popup/index.css +1 -1
- package/lib/popup/index.js +9 -16
- package/lib/popup/shared.js +8 -13
- package/lib/popup/types.js +7 -12
- package/lib/progress/Progress.d.ts +4 -3
- package/lib/progress/Progress.js +8 -13
- package/lib/progress/index.d.ts +2 -2
- package/lib/progress/index.js +9 -16
- package/lib/progress/types.js +7 -12
- package/lib/pull-refresh/PullRefresh.js +8 -13
- package/lib/pull-refresh/index.js +9 -16
- package/lib/radio/Radio.js +9 -16
- package/lib/radio/index.js +9 -16
- package/lib/radio-group/RadioGroup.js +8 -13
- package/lib/radio-group/index.js +9 -16
- package/lib/rate/Rate.js +39 -22
- package/lib/rate/index.js +9 -16
- package/lib/row/Row.js +8 -13
- package/lib/row/index.js +9 -16
- package/lib/search/Search.d.ts +3 -0
- package/lib/search/Search.js +8 -13
- package/lib/search/index.d.ts +2 -0
- package/lib/search/index.js +9 -16
- package/lib/search/types.js +7 -12
- package/lib/share-sheet/ShareSheet.js +33 -24
- package/lib/share-sheet/index.css +1 -1
- package/lib/share-sheet/index.js +9 -16
- package/lib/share-sheet/index.less +45 -1
- package/lib/sidebar/Sidebar.js +8 -13
- package/lib/sidebar/index.js +9 -16
- package/lib/sidebar-item/SidebarItem.js +8 -13
- package/lib/sidebar-item/index.js +9 -16
- package/lib/skeleton/Skeleton.d.ts +5 -4
- package/lib/skeleton/Skeleton.js +8 -13
- package/lib/skeleton/index.d.ts +3 -3
- package/lib/skeleton/index.js +9 -16
- package/lib/slider/Slider.js +8 -13
- package/lib/slider/index.css +1 -1
- package/lib/slider/index.js +9 -16
- package/lib/step/Step.js +8 -13
- package/lib/step/index.js +9 -16
- package/lib/stepper/Stepper.js +8 -13
- package/lib/stepper/index.js +9 -16
- package/lib/steps/Steps.js +8 -13
- package/lib/steps/index.js +9 -16
- package/lib/sticky/Sticky.js +8 -13
- package/lib/sticky/index.js +9 -16
- package/lib/style/animation.css +1 -1
- package/lib/style/base.css +1 -1
- package/lib/submit-bar/SubmitBar.js +8 -13
- package/lib/submit-bar/index.js +9 -16
- package/lib/swipe/Swipe.js +8 -13
- package/lib/swipe/index.js +9 -16
- package/lib/swipe/types.js +7 -12
- package/lib/swipe-cell/SwipeCell.js +8 -13
- package/lib/swipe-cell/index.css +1 -1
- package/lib/swipe-cell/index.js +9 -16
- package/lib/swipe-cell/types.js +7 -12
- package/lib/swipe-item/SwipeItem.js +8 -13
- package/lib/swipe-item/index.js +9 -16
- package/lib/switch/Switch.js +8 -13
- package/lib/switch/index.js +9 -16
- package/lib/tab/Tab.js +8 -13
- package/lib/tab/index.js +9 -16
- package/lib/tabbar/Tabbar.d.ts +2 -2
- package/lib/tabbar/Tabbar.js +8 -13
- package/lib/tabbar/index.js +9 -16
- package/lib/tabbar-item/TabbarItem.js +8 -13
- package/lib/tabbar-item/index.js +9 -16
- package/lib/tabs/Tabs.d.ts +1 -1
- package/lib/tabs/Tabs.js +10 -16
- package/lib/tabs/TabsContent.js +8 -13
- package/lib/tabs/TabsTitle.js +8 -13
- package/lib/tabs/index.js +9 -16
- package/lib/tabs/types.d.ts +5 -4
- package/lib/tabs/types.js +7 -12
- package/lib/tabs/utils.js +8 -13
- package/lib/tag/Tag.js +8 -13
- package/lib/tag/index.js +9 -16
- package/lib/time-picker/TimePicker.js +8 -13
- package/lib/time-picker/index.js +9 -16
- package/lib/toast/Toast.js +8 -13
- package/lib/toast/function-call.js +9 -16
- package/lib/toast/index.js +8 -13
- package/lib/toast/lock-click.js +8 -13
- package/lib/toast/types.d.ts +3 -2
- package/lib/toast/types.js +7 -12
- package/lib/tree-select/TreeSelect.d.ts +7 -6
- package/lib/tree-select/TreeSelect.js +8 -13
- package/lib/tree-select/index.d.ts +3 -3
- package/lib/tree-select/index.js +9 -16
- package/lib/uploader/Uploader.d.ts +4 -4
- package/lib/uploader/Uploader.js +10 -17
- package/lib/uploader/UploaderPreviewItem.d.ts +3 -3
- package/lib/uploader/UploaderPreviewItem.js +17 -19
- package/lib/uploader/index.d.ts +2 -2
- package/lib/uploader/index.js +9 -16
- package/lib/uploader/types.d.ts +5 -5
- package/lib/uploader/types.js +7 -12
- package/lib/uploader/utils.js +8 -13
- package/lib/utils/basic.d.ts +1 -0
- package/lib/utils/basic.js +8 -13
- package/lib/utils/constant.js +8 -13
- package/lib/utils/create.js +9 -16
- package/lib/utils/deep-assign.js +8 -13
- package/lib/utils/deep-clone.js +8 -13
- package/lib/utils/dom.js +8 -13
- package/lib/utils/format.d.ts +7 -6
- package/lib/utils/format.js +14 -13
- package/lib/utils/index.js +17 -21
- package/lib/utils/interceptor.js +8 -13
- package/lib/utils/mount-component.js +8 -13
- package/lib/utils/props.js +8 -13
- package/lib/utils/validate.d.ts +2 -1
- package/lib/utils/validate.js +8 -13
- package/lib/utils/with-install.js +8 -13
- package/lib/vant.cjs.js +297 -258
- package/lib/vant.cjs.min.js +1 -1
- package/lib/vant.es.js +297 -258
- package/lib/vant.es.min.js +297 -258
- package/lib/vant.js +297 -258
- package/lib/vant.min.js +1 -1
- package/package.json +3 -3
- package/vetur/attributes.json +564 -636
- package/vetur/tags.json +178 -178
- package/vetur/web-types.json +2595 -1760
package/vetur/attributes.json
CHANGED
@@ -16,11 +16,8 @@
|
|
16
16
|
"description": "Icon color, Default: `#323233`"
|
17
17
|
},
|
18
18
|
"van-action-bar-icon/icon-class": {
|
19
|
-
"type": "string | Array
|
20
|
-
"description": "Icon class name, Default:
|
21
|
-
"options": [
|
22
|
-
"''"
|
23
|
-
]
|
19
|
+
"type": "string | Array | object",
|
20
|
+
"description": "Icon class name, Default: `''`"
|
24
21
|
},
|
25
22
|
"van-action-bar-icon/icon-prefix": {
|
26
23
|
"type": "string",
|
@@ -36,7 +33,7 @@
|
|
36
33
|
},
|
37
34
|
"van-action-bar-icon/badge-props": {
|
38
35
|
"type": "BadgeProps",
|
39
|
-
"description": "Props of Badge
|
36
|
+
"description": "Props of Badge, see [Badge - props](#/en-US/badge#props), Default: -"
|
40
37
|
},
|
41
38
|
"van-action-bar-icon/url": {
|
42
39
|
"type": "string",
|
@@ -86,93 +83,85 @@
|
|
86
83
|
"type": "boolean",
|
87
84
|
"description": "If true, the navigation will not leave a history record, Default: `false`"
|
88
85
|
},
|
89
|
-
"van-
|
90
|
-
"type": "
|
91
|
-
"description": "
|
86
|
+
"van-action-sheet/v-model:show": {
|
87
|
+
"type": "boolean",
|
88
|
+
"description": "Whether to show ActionSheet, Default: `false`"
|
92
89
|
},
|
93
|
-
"van-
|
94
|
-
"type": "
|
95
|
-
"description": "
|
90
|
+
"van-action-sheet/actions": {
|
91
|
+
"type": "ActionSheetAction[]",
|
92
|
+
"description": "Options, Default: `[]`"
|
96
93
|
},
|
97
|
-
"van-
|
94
|
+
"van-action-sheet/title": {
|
98
95
|
"type": "string",
|
99
|
-
"description": "
|
100
|
-
},
|
101
|
-
"van-address-edit/address-info": {
|
102
|
-
"type": "AddressEditInfo",
|
103
|
-
"description": "Address Info, Default: `{}`"
|
104
|
-
},
|
105
|
-
"van-address-edit/search-result": {
|
106
|
-
"type": "AddressEditSearchItem[]",
|
107
|
-
"description": "Address search result, Default: `[]`"
|
96
|
+
"description": "Title, Default: -"
|
108
97
|
},
|
109
|
-
"van-
|
110
|
-
"type": "
|
111
|
-
"description": "
|
98
|
+
"van-action-sheet/cancel-text": {
|
99
|
+
"type": "string",
|
100
|
+
"description": "Text of cancel button, Default: -"
|
112
101
|
},
|
113
|
-
"van-
|
114
|
-
"type": "
|
115
|
-
"description": "
|
102
|
+
"van-action-sheet/description": {
|
103
|
+
"type": "string",
|
104
|
+
"description": "Description above the options, Default: -"
|
116
105
|
},
|
117
|
-
"van-
|
106
|
+
"van-action-sheet/closeable": {
|
118
107
|
"type": "boolean",
|
119
|
-
"description": "Whether to show
|
108
|
+
"description": "Whether to show close icon, Default: `true`"
|
120
109
|
},
|
121
|
-
"van-
|
122
|
-
"type": "
|
123
|
-
"description": "
|
110
|
+
"van-action-sheet/close-icon": {
|
111
|
+
"type": "string",
|
112
|
+
"description": "Close icon name, Default: `cross`"
|
124
113
|
},
|
125
|
-
"van-
|
126
|
-
"type": "
|
127
|
-
"description": "
|
114
|
+
"van-action-sheet/duration": {
|
115
|
+
"type": "number | string",
|
116
|
+
"description": "Transition duration, unit second, Default: `0.3`"
|
128
117
|
},
|
129
|
-
"van-
|
118
|
+
"van-action-sheet/round": {
|
130
119
|
"type": "boolean",
|
131
|
-
"description": "Whether to show
|
120
|
+
"description": "Whether to show round corner, Default: `true`"
|
132
121
|
},
|
133
|
-
"van-
|
122
|
+
"van-action-sheet/overlay": {
|
134
123
|
"type": "boolean",
|
135
|
-
"description": "Whether to
|
124
|
+
"description": "Whether to show overlay, Default: `true`"
|
136
125
|
},
|
137
|
-
"van-
|
138
|
-
"type": "string",
|
139
|
-
"description": "
|
126
|
+
"van-action-sheet/overlay-class": {
|
127
|
+
"type": "string | Array | object",
|
128
|
+
"description": "Custom overlay class, Default: -"
|
140
129
|
},
|
141
|
-
"van-
|
142
|
-
"type": "
|
143
|
-
"description": "
|
130
|
+
"van-action-sheet/overlay-style": {
|
131
|
+
"type": "object",
|
132
|
+
"description": "Custom overlay style, Default: -"
|
144
133
|
},
|
145
|
-
"van-
|
146
|
-
"type": "
|
147
|
-
"description": "
|
134
|
+
"van-action-sheet/lock-scroll": {
|
135
|
+
"type": "boolean",
|
136
|
+
"description": "Whether to lock background scroll, Default: `true`"
|
148
137
|
},
|
149
|
-
"van-
|
150
|
-
"type": "
|
151
|
-
"description": "
|
138
|
+
"van-action-sheet/lazy-render": {
|
139
|
+
"type": "boolean",
|
140
|
+
"description": "Whether to lazy render util appeared, Default: `true`"
|
152
141
|
},
|
153
|
-
"van-
|
142
|
+
"van-action-sheet/close-on-popstate": {
|
154
143
|
"type": "boolean",
|
155
|
-
"description": "Whether to
|
144
|
+
"description": "Whether to close when popstate, Default: `true`"
|
156
145
|
},
|
157
|
-
"van-
|
146
|
+
"van-action-sheet/close-on-click-action": {
|
158
147
|
"type": "boolean",
|
159
|
-
"description": "Whether to
|
148
|
+
"description": "Whether to close when an action is clicked, Default: `false`"
|
160
149
|
},
|
161
|
-
"van-
|
162
|
-
"type": "
|
163
|
-
"description": "
|
150
|
+
"van-action-sheet/close-on-click-overlay": {
|
151
|
+
"type": "boolean",
|
152
|
+
"description": "Whether to close when overlay is clicked, Default: `true`"
|
164
153
|
},
|
165
|
-
"van-
|
166
|
-
"type": "
|
167
|
-
"description": "
|
154
|
+
"van-action-sheet/safe-area-inset-bottom": {
|
155
|
+
"type": "boolean",
|
156
|
+
"description": "Whether to enable bottom safe area adaptation, Default: `true`"
|
168
157
|
},
|
169
|
-
"van-
|
170
|
-
"type": "
|
171
|
-
"description": "
|
158
|
+
"van-action-sheet/teleport": {
|
159
|
+
"type": "string | Element",
|
160
|
+
"description": "Specifies a target element where ActionSheet will be mounted, Default: -"
|
172
161
|
},
|
173
|
-
"van-
|
174
|
-
"type": "(
|
175
|
-
"description": "
|
162
|
+
"van-action-sheet/before-close": {
|
163
|
+
"type": "(action: string) => boolean | Promise\\<boolean\\>",
|
164
|
+
"description": "Callback function before close, Default: -"
|
176
165
|
},
|
177
166
|
"van-address-list/v-model": {
|
178
167
|
"type": "string",
|
@@ -248,90 +237,87 @@
|
|
248
237
|
},
|
249
238
|
"van-area/swipe-duration": {
|
250
239
|
"type": "number | string",
|
251
|
-
"description": "Duration of the momentum animation
|
240
|
+
"description": "Duration of the momentum animation, unit `ms`, Default: `1000`"
|
252
241
|
},
|
253
|
-
"van-
|
254
|
-
"type": "
|
255
|
-
"description": "
|
242
|
+
"van-address-edit/area-list": {
|
243
|
+
"type": "object",
|
244
|
+
"description": "Area List, Default: -"
|
256
245
|
},
|
257
|
-
"van-
|
258
|
-
"type": "
|
259
|
-
"description": "
|
246
|
+
"van-address-edit/area-columns-placeholder": {
|
247
|
+
"type": "string[]",
|
248
|
+
"description": "placeholder of area columns, Default: `[]`"
|
260
249
|
},
|
261
|
-
"van-
|
250
|
+
"van-address-edit/area-placeholder": {
|
262
251
|
"type": "string",
|
263
|
-
"description": "
|
252
|
+
"description": "placeholder of area input field, Default: `Area`"
|
264
253
|
},
|
265
|
-
"van-
|
266
|
-
"type": "
|
267
|
-
"description": "
|
254
|
+
"van-address-edit/address-info": {
|
255
|
+
"type": "AddressEditInfo",
|
256
|
+
"description": "Address Info, Default: `{}`"
|
268
257
|
},
|
269
|
-
"van-
|
270
|
-
"type": "
|
271
|
-
"description": "
|
258
|
+
"van-address-edit/search-result": {
|
259
|
+
"type": "AddressEditSearchItem[]",
|
260
|
+
"description": "Address search result, Default: `[]`"
|
272
261
|
},
|
273
|
-
"van-
|
262
|
+
"van-address-edit/show-delete": {
|
274
263
|
"type": "boolean",
|
275
|
-
"description": "Whether to show
|
264
|
+
"description": "Whether to show delete button, Default: `false`"
|
276
265
|
},
|
277
|
-
"van-
|
278
|
-
"type": "
|
279
|
-
"description": "
|
266
|
+
"van-address-edit/show-set-default": {
|
267
|
+
"type": "boolean",
|
268
|
+
"description": "Whether to show default address switch, Default: `false`"
|
280
269
|
},
|
281
|
-
"van-
|
282
|
-
"type": "
|
283
|
-
"description": "
|
270
|
+
"van-address-edit/show-search-result": {
|
271
|
+
"type": "boolean",
|
272
|
+
"description": "Whether to show address search result, Default: `false`"
|
284
273
|
},
|
285
|
-
"van-
|
274
|
+
"van-address-edit/show-area": {
|
286
275
|
"type": "boolean",
|
287
|
-
"description": "Whether to show
|
276
|
+
"description": "Whether to show area cell, Default: `true`"
|
288
277
|
},
|
289
|
-
"van-
|
278
|
+
"van-address-edit/show-detail": {
|
290
279
|
"type": "boolean",
|
291
|
-
"description": "Whether to show
|
280
|
+
"description": "Whether to show detail field, Default: `true`"
|
292
281
|
},
|
293
|
-
"van-
|
294
|
-
"type": "
|
295
|
-
"description": "
|
296
|
-
"options": [
|
297
|
-
"-"
|
298
|
-
]
|
282
|
+
"van-address-edit/disable-area": {
|
283
|
+
"type": "boolean",
|
284
|
+
"description": "Whether to disable area select, Default: `false`"
|
299
285
|
},
|
300
|
-
"van-
|
301
|
-
"type": "
|
302
|
-
"description": "
|
286
|
+
"van-address-edit/save-button-text": {
|
287
|
+
"type": "string",
|
288
|
+
"description": "Save button text, Default: `Save`"
|
303
289
|
},
|
304
|
-
"van-
|
305
|
-
"type": "
|
306
|
-
"description": "
|
290
|
+
"van-address-edit/delete-button-text": {
|
291
|
+
"type": "string",
|
292
|
+
"description": "Delete button text, Default: `Delete`"
|
307
293
|
},
|
308
|
-
"van-
|
309
|
-
"type": "
|
310
|
-
"description": "
|
294
|
+
"van-address-edit/detail-rows": {
|
295
|
+
"type": "number | string",
|
296
|
+
"description": "Detail input rows, Default: `1`"
|
311
297
|
},
|
312
|
-
"van-
|
313
|
-
"type": "
|
314
|
-
"description": "
|
298
|
+
"van-address-edit/detail-maxlength": {
|
299
|
+
"type": "number | string",
|
300
|
+
"description": "Detail maxlength, Default: `200`"
|
315
301
|
},
|
316
|
-
"van-
|
302
|
+
"van-address-edit/is-saving": {
|
317
303
|
"type": "boolean",
|
318
|
-
"description": "Whether to
|
304
|
+
"description": "Whether to show save button loading status, Default: `false`"
|
319
305
|
},
|
320
|
-
"van-
|
306
|
+
"van-address-edit/is-deleting": {
|
321
307
|
"type": "boolean",
|
322
|
-
"description": "Whether to
|
308
|
+
"description": "Whether to show delete button loading status, Default: `false`"
|
323
309
|
},
|
324
|
-
"van-
|
325
|
-
"type": "boolean",
|
326
|
-
"description": "
|
310
|
+
"van-address-edit/tel-validator": {
|
311
|
+
"type": "(tel: string) => boolean",
|
312
|
+
"description": "The method to validate tel, Default: -"
|
327
313
|
},
|
328
|
-
"van-
|
329
|
-
"type": "
|
330
|
-
"description": "
|
314
|
+
"van-address-edit/tel-maxlength": {
|
315
|
+
"type": "number | string",
|
316
|
+
"description": "Tel maxlength, Default: -"
|
331
317
|
},
|
332
|
-
"van-
|
333
|
-
"type": "(
|
334
|
-
"description": "
|
318
|
+
"van-address-edit/validator": {
|
319
|
+
"type": "(key, val) => string",
|
320
|
+
"description": "Custom validator, Default: -"
|
335
321
|
},
|
336
322
|
"van-badge/content": {
|
337
323
|
"type": "number | string",
|
@@ -347,14 +333,11 @@
|
|
347
333
|
},
|
348
334
|
"van-badge/max": {
|
349
335
|
"type": "number | string",
|
350
|
-
"description": "Max value
|
336
|
+
"description": "Max value, show `{max}+` when exceed, only works when content is number, Default: -"
|
351
337
|
},
|
352
338
|
"van-badge/offset": {
|
353
|
-
"type": "[number | string, number
|
354
|
-
"description": "Offset of badge dot, Default:
|
355
|
-
"options": [
|
356
|
-
"-"
|
357
|
-
]
|
339
|
+
"type": "[number | string, number | string]",
|
340
|
+
"description": "Offset of badge dot, Default: -"
|
358
341
|
},
|
359
342
|
"van-badge/show-zero": {
|
360
343
|
"type": "boolean",
|
@@ -450,7 +433,7 @@
|
|
450
433
|
},
|
451
434
|
"van-calendar/type": {
|
452
435
|
"type": "string",
|
453
|
-
"description": "Type
|
436
|
+
"description": "Type, can be set to `range` `multiple`, Default: `single`"
|
454
437
|
},
|
455
438
|
"van-calendar/title": {
|
456
439
|
"type": "string",
|
@@ -469,11 +452,8 @@
|
|
469
452
|
"description": "Max date, Default: Six months after the today"
|
470
453
|
},
|
471
454
|
"van-calendar/default-date": {
|
472
|
-
"type": "Date | Date[]
|
473
|
-
"description": "Default selected date, Default:
|
474
|
-
"options": [
|
475
|
-
"Today"
|
476
|
-
]
|
455
|
+
"type": "Date | Date[] | null",
|
456
|
+
"description": "Default selected date, Default: Today"
|
477
457
|
},
|
478
458
|
"van-calendar/row-height": {
|
479
459
|
"type": "number | string",
|
@@ -613,7 +593,7 @@
|
|
613
593
|
},
|
614
594
|
"van-card/lazy-load": {
|
615
595
|
"type": "boolean",
|
616
|
-
"description": "Whether to enable thumb lazy load
|
596
|
+
"description": "Whether to enable thumb lazy load, should register [Lazyload](#/en-US/lazyload) component, Default: `false`"
|
617
597
|
},
|
618
598
|
"van-cascader/title": {
|
619
599
|
"type": "string",
|
@@ -681,7 +661,7 @@
|
|
681
661
|
},
|
682
662
|
"van-cell/size": {
|
683
663
|
"type": "string",
|
684
|
-
"description": "Size
|
664
|
+
"description": "Size, can be set to `large`, Default: -"
|
685
665
|
},
|
686
666
|
"van-cell/icon": {
|
687
667
|
"type": "string",
|
@@ -728,32 +708,20 @@
|
|
728
708
|
"description": "Can be set to `left` `up` `down`, Default: `right`"
|
729
709
|
},
|
730
710
|
"van-cell/title-style": {
|
731
|
-
"type": "string | Array
|
732
|
-
"description": "Title style, Default:
|
733
|
-
"options": [
|
734
|
-
"-"
|
735
|
-
]
|
711
|
+
"type": "string | Array | object",
|
712
|
+
"description": "Title style, Default: -"
|
736
713
|
},
|
737
714
|
"van-cell/title-class": {
|
738
|
-
"type": "string | Array
|
739
|
-
"description": "Title className, Default:
|
740
|
-
"options": [
|
741
|
-
"-"
|
742
|
-
]
|
715
|
+
"type": "string | Array | object",
|
716
|
+
"description": "Title className, Default: -"
|
743
717
|
},
|
744
718
|
"van-cell/value-class": {
|
745
|
-
"type": "string | Array
|
746
|
-
"description": "Value className, Default:
|
747
|
-
"options": [
|
748
|
-
"-"
|
749
|
-
]
|
719
|
+
"type": "string | Array | object",
|
720
|
+
"description": "Value className, Default: -"
|
750
721
|
},
|
751
722
|
"van-cell/label-class": {
|
752
|
-
"type": "string | Array
|
753
|
-
"description": "Label className, Default:
|
754
|
-
"options": [
|
755
|
-
"-"
|
756
|
-
]
|
723
|
+
"type": "string | Array | object",
|
724
|
+
"description": "Label className, Default: -"
|
757
725
|
},
|
758
726
|
"van-checkbox/v-model": {
|
759
727
|
"type": "boolean",
|
@@ -853,7 +821,7 @@
|
|
853
821
|
},
|
854
822
|
"van-circle/stroke-linecap": {
|
855
823
|
"type": "string",
|
856
|
-
"description": "Stroke linecap
|
824
|
+
"description": "Stroke linecap, can be set to `square` `butt`, Default: `round`"
|
857
825
|
},
|
858
826
|
"van-circle/clockwise": {
|
859
827
|
"type": "boolean",
|
@@ -861,7 +829,7 @@
|
|
861
829
|
},
|
862
830
|
"van-circle/start-position": {
|
863
831
|
"type": "CircleStartPosition",
|
864
|
-
"description": "Progress start position
|
832
|
+
"description": "Progress start position, can be set to `left`、`right`、`bottom`, Default: `top`"
|
865
833
|
},
|
866
834
|
"van-row/gutter": {
|
867
835
|
"type": "number | string",
|
@@ -873,7 +841,7 @@
|
|
873
841
|
},
|
874
842
|
"van-row/justify": {
|
875
843
|
"type": "string",
|
876
|
-
"description": "Flex main axis
|
844
|
+
"description": "Flex main axis, can be set to end/center/space-around/space-between, Default: `start`"
|
877
845
|
},
|
878
846
|
"van-row/align": {
|
879
847
|
"type": "string",
|
@@ -896,11 +864,8 @@
|
|
896
864
|
"description": "Custom element tag, Default: `div`"
|
897
865
|
},
|
898
866
|
"van-collapse/v-model": {
|
899
|
-
"type": "accordion mode
|
900
|
-
"description": "Names of current active panels, Default:
|
901
|
-
"options": [
|
902
|
-
"-"
|
903
|
-
]
|
867
|
+
"type": "accordion mode: _number | string_<br>non-accordion mode: _(number | string)[]",
|
868
|
+
"description": "Names of current active panels, Default: -"
|
904
869
|
},
|
905
870
|
"van-collapse/accordion": {
|
906
871
|
"type": "boolean",
|
@@ -920,7 +885,7 @@
|
|
920
885
|
},
|
921
886
|
"van-collapse-item/size": {
|
922
887
|
"type": "string",
|
923
|
-
"description": "Title size
|
888
|
+
"description": "Title size, can be set to `large`, Default: -"
|
924
889
|
},
|
925
890
|
"van-collapse-item/title": {
|
926
891
|
"type": "number | string",
|
@@ -966,6 +931,26 @@
|
|
966
931
|
"type": "string",
|
967
932
|
"description": "Label className, Default: -"
|
968
933
|
},
|
934
|
+
"van-contact-card/type": {
|
935
|
+
"type": "string",
|
936
|
+
"description": "Can be set to `edit`, Default: `add`"
|
937
|
+
},
|
938
|
+
"van-contact-card/name": {
|
939
|
+
"type": "string",
|
940
|
+
"description": "Name, Default: -"
|
941
|
+
},
|
942
|
+
"van-contact-card/tel": {
|
943
|
+
"type": "string",
|
944
|
+
"description": "Phone, Default: -"
|
945
|
+
},
|
946
|
+
"van-contact-card/add-text": {
|
947
|
+
"type": "string",
|
948
|
+
"description": "Add card text, Default: `Add contact info`"
|
949
|
+
},
|
950
|
+
"van-contact-card/editable": {
|
951
|
+
"type": "boolean",
|
952
|
+
"description": "Whether to allow editing of contacts, Default: `true`"
|
953
|
+
},
|
969
954
|
"van-contact-edit/contact-info": {
|
970
955
|
"type": "Contact",
|
971
956
|
"description": "Contact Info, Default: `[]`"
|
@@ -994,22 +979,6 @@
|
|
994
979
|
"type": "string",
|
995
980
|
"description": "default contact switch label, Default: -"
|
996
981
|
},
|
997
|
-
"van-contact-card/type": {
|
998
|
-
"type": "string",
|
999
|
-
"description": "Can be set to `edit`, Default: `add`"
|
1000
|
-
},
|
1001
|
-
"van-contact-card/name": {
|
1002
|
-
"type": "string",
|
1003
|
-
"description": "Name, Default: -"
|
1004
|
-
},
|
1005
|
-
"van-contact-card/tel": {
|
1006
|
-
"type": "string",
|
1007
|
-
"description": "Phone, Default: -"
|
1008
|
-
},
|
1009
|
-
"van-contact-card/add-text": {
|
1010
|
-
"type": "string",
|
1011
|
-
"description": "Add card text, Default: `Add contact info`"
|
1012
|
-
},
|
1013
982
|
"van-config-provider/theme": {
|
1014
983
|
"type": "ConfigProviderTheme",
|
1015
984
|
"description": "Theme mode, can be set to `dark`, Default: `light`"
|
@@ -1140,7 +1109,7 @@
|
|
1140
1109
|
},
|
1141
1110
|
"van-coupon-list/empty-image": {
|
1142
1111
|
"type": "string",
|
1143
|
-
"description": "Placeholder image when list is empty, Default:
|
1112
|
+
"description": "Placeholder image when list is empty, Default: -"
|
1144
1113
|
},
|
1145
1114
|
"van-coupon-list/show-count": {
|
1146
1115
|
"type": "boolean",
|
@@ -1204,7 +1173,7 @@
|
|
1204
1173
|
},
|
1205
1174
|
"van-date-picker/swipe-duration": {
|
1206
1175
|
"type": "number | string",
|
1207
|
-
"description": "Duration of the momentum animation
|
1176
|
+
"description": "Duration of the momentum animation, unit `ms`, Default: `1000`"
|
1208
1177
|
},
|
1209
1178
|
"van-dialog/v-model:show": {
|
1210
1179
|
"type": "boolean",
|
@@ -1224,11 +1193,11 @@
|
|
1224
1193
|
},
|
1225
1194
|
"van-dialog/message-align": {
|
1226
1195
|
"type": "string",
|
1227
|
-
"description": "Message align
|
1196
|
+
"description": "Message align, can be set to `left` `right`, Default: `center`"
|
1228
1197
|
},
|
1229
1198
|
"van-dialog/theme": {
|
1230
1199
|
"type": "string",
|
1231
|
-
"description": "Theme style
|
1200
|
+
"description": "Theme style, can be set to `round-button`, Default: `default`"
|
1232
1201
|
},
|
1233
1202
|
"van-dialog/show-confirm-button": {
|
1234
1203
|
"type": "boolean",
|
@@ -1308,7 +1277,7 @@
|
|
1308
1277
|
},
|
1309
1278
|
"van-divider/content-position": {
|
1310
1279
|
"type": "string",
|
1311
|
-
"description": "Content position
|
1280
|
+
"description": "Content position, can be set to `left` `right`, Default: `center`"
|
1312
1281
|
},
|
1313
1282
|
"van-dropdown-menu/active-color": {
|
1314
1283
|
"type": "string",
|
@@ -1359,28 +1328,13 @@
|
|
1359
1328
|
"description": "Whether to lazy render util opened, Default: `true`"
|
1360
1329
|
},
|
1361
1330
|
"van-dropdown-item/title-class": {
|
1362
|
-
"type": "string | Array
|
1363
|
-
"description": "Title class, Default:
|
1364
|
-
"options": [
|
1365
|
-
"-"
|
1366
|
-
]
|
1331
|
+
"type": "string | Array | object",
|
1332
|
+
"description": "Title class, Default: -"
|
1367
1333
|
},
|
1368
1334
|
"van-dropdown-item/teleport": {
|
1369
1335
|
"type": "string | Element",
|
1370
1336
|
"description": "Specifies a target element where DropdownItem will be mounted, Default: -"
|
1371
1337
|
},
|
1372
|
-
"van-empty/image": {
|
1373
|
-
"type": "string",
|
1374
|
-
"description": "Image type,can be set to `error` `network` `search` or image URL, Default: `default`"
|
1375
|
-
},
|
1376
|
-
"van-empty/image-size": {
|
1377
|
-
"type": "number | string",
|
1378
|
-
"description": "Image size, Default: -"
|
1379
|
-
},
|
1380
|
-
"van-empty/description": {
|
1381
|
-
"type": "string",
|
1382
|
-
"description": "Description, Default: -"
|
1383
|
-
},
|
1384
1338
|
"van-field/v-model": {
|
1385
1339
|
"type": "number | string",
|
1386
1340
|
"description": "Input value, Default: -"
|
@@ -1403,7 +1357,7 @@
|
|
1403
1357
|
},
|
1404
1358
|
"van-field/size": {
|
1405
1359
|
"type": "string",
|
1406
|
-
"description": "Size
|
1360
|
+
"description": "Size, can be set to `large`, Default: -"
|
1407
1361
|
},
|
1408
1362
|
"van-field/maxlength": {
|
1409
1363
|
"type": "number | string",
|
@@ -1483,18 +1437,15 @@
|
|
1483
1437
|
},
|
1484
1438
|
"van-field/format-trigger": {
|
1485
1439
|
"type": "FieldFormatTrigger",
|
1486
|
-
"description": "When to format value
|
1440
|
+
"description": "When to format value, can be set to `onBlur`, Default: `onChange`"
|
1487
1441
|
},
|
1488
1442
|
"van-field/arrow-direction": {
|
1489
1443
|
"type": "string",
|
1490
1444
|
"description": "Can be set to `left` `up` `down`, Default: `right`"
|
1491
1445
|
},
|
1492
1446
|
"van-field/label-class": {
|
1493
|
-
"type": "string | Array
|
1494
|
-
"description": "Label className, Default:
|
1495
|
-
"options": [
|
1496
|
-
"-"
|
1497
|
-
]
|
1447
|
+
"type": "string | Array | object",
|
1448
|
+
"description": "Label className, Default: -"
|
1498
1449
|
},
|
1499
1450
|
"van-field/label-width": {
|
1500
1451
|
"type": "number | string",
|
@@ -1510,7 +1461,7 @@
|
|
1510
1461
|
},
|
1511
1462
|
"van-field/autosize": {
|
1512
1463
|
"type": "boolean | FieldAutosizeConfig",
|
1513
|
-
"description": "Textarea auto resize
|
1464
|
+
"description": "Textarea auto resize, can accept an object,<br>e.g. { maxHeight: 100, minHeight: 50 }, Default: `false`"
|
1514
1465
|
},
|
1515
1466
|
"van-field/left-icon": {
|
1516
1467
|
"type": "string",
|
@@ -1530,59 +1481,11 @@
|
|
1530
1481
|
},
|
1531
1482
|
"van-field/autocomplete": {
|
1532
1483
|
"type": "string",
|
1533
|
-
"description": "[autocomplete](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete)
|
1534
|
-
},
|
1535
|
-
"van-form/label-width": {
|
1536
|
-
"type": "number | string",
|
1537
|
-
"description": "Field label width, Default: `6.2em`"
|
1538
|
-
},
|
1539
|
-
"van-form/label-align": {
|
1540
|
-
"type": "string",
|
1541
|
-
"description": "Field label align, can be set to `center` `right`, Default: `left`"
|
1542
|
-
},
|
1543
|
-
"van-form/input-align": {
|
1544
|
-
"type": "string",
|
1545
|
-
"description": "Field input align, can be set to `center` `right`, Default: `left`"
|
1546
|
-
},
|
1547
|
-
"van-form/error-message-align": {
|
1548
|
-
"type": "string",
|
1549
|
-
"description": "Error message align, can be set to `center` `right`, Default: `left`"
|
1484
|
+
"description": "HTML native attribute, see [MDN - autocomplete](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete), Default: -"
|
1550
1485
|
},
|
1551
|
-
"van-
|
1486
|
+
"van-field/enterkeyhint": {
|
1552
1487
|
"type": "string",
|
1553
|
-
"description": "
|
1554
|
-
},
|
1555
|
-
"van-form/colon": {
|
1556
|
-
"type": "boolean",
|
1557
|
-
"description": "Whether to display colon after label, Default: `false`"
|
1558
|
-
},
|
1559
|
-
"van-form/disabled": {
|
1560
|
-
"type": "boolean",
|
1561
|
-
"description": "Whether to disable form, Default: `false`"
|
1562
|
-
},
|
1563
|
-
"van-form/readonly": {
|
1564
|
-
"type": "boolean",
|
1565
|
-
"description": "Whether to be readonly, Default: `false`"
|
1566
|
-
},
|
1567
|
-
"van-form/validate-first": {
|
1568
|
-
"type": "boolean",
|
1569
|
-
"description": "Whether to stop the validation when a rule fails, Default: `false`"
|
1570
|
-
},
|
1571
|
-
"van-form/scroll-to-error": {
|
1572
|
-
"type": "boolean",
|
1573
|
-
"description": "Whether to scroll to the error field when validation failed, Default: `false`"
|
1574
|
-
},
|
1575
|
-
"van-form/show-error": {
|
1576
|
-
"type": "boolean",
|
1577
|
-
"description": "Whether to highlight input when validation failed, Default: `false`"
|
1578
|
-
},
|
1579
|
-
"van-form/show-error-message": {
|
1580
|
-
"type": "boolean",
|
1581
|
-
"description": "Whether to show error message when validation failed, Default: `true`"
|
1582
|
-
},
|
1583
|
-
"van-form/submit-on-enter": {
|
1584
|
-
"type": "boolean",
|
1585
|
-
"description": "Whether to submit form on enter, Default: `true`"
|
1488
|
+
"description": "HTML native attribute, see [MDN - enterkeyhint](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/enterkeyhint)<br>, Default: -"
|
1586
1489
|
},
|
1587
1490
|
"van-grid/column-num": {
|
1588
1491
|
"type": "number | string",
|
@@ -1616,6 +1519,10 @@
|
|
1616
1519
|
"type": "string",
|
1617
1520
|
"description": "Content arrangement direction, can be set to `horizontal`, Default: `vertical`"
|
1618
1521
|
},
|
1522
|
+
"van-grid/reverse": {
|
1523
|
+
"type": "boolean",
|
1524
|
+
"description": "Whether to reverse the position of icon and text, Default: `false`"
|
1525
|
+
},
|
1619
1526
|
"van-grid-item/text": {
|
1620
1527
|
"type": "string",
|
1621
1528
|
"description": "Text, Default: -"
|
@@ -1632,10 +1539,6 @@
|
|
1632
1539
|
"type": "string",
|
1633
1540
|
"description": "Icon color, Default: -"
|
1634
1541
|
},
|
1635
|
-
"van-grid-item/reverse": {
|
1636
|
-
"type": "boolean",
|
1637
|
-
"description": "Whether to reverse the position of icon and text, Default: `false`"
|
1638
|
-
},
|
1639
1542
|
"van-grid-item/dot": {
|
1640
1543
|
"type": "boolean",
|
1641
1544
|
"description": "Whether to show red dot, Default: `false`"
|
@@ -1646,7 +1549,7 @@
|
|
1646
1549
|
},
|
1647
1550
|
"van-grid-item/badge-props": {
|
1648
1551
|
"type": "BadgeProps",
|
1649
|
-
"description": "Props of Badge
|
1552
|
+
"description": "Props of Badge, see [Badge - props](#/en-US/badge#props), Default: -"
|
1650
1553
|
},
|
1651
1554
|
"van-grid-item/url": {
|
1652
1555
|
"type": "string",
|
@@ -1660,6 +1563,70 @@
|
|
1660
1563
|
"type": "boolean",
|
1661
1564
|
"description": "If true, the navigation will not leave a history record, Default: `false`"
|
1662
1565
|
},
|
1566
|
+
"van-form/label-width": {
|
1567
|
+
"type": "number | string",
|
1568
|
+
"description": "Field label width, Default: `6.2em`"
|
1569
|
+
},
|
1570
|
+
"van-form/label-align": {
|
1571
|
+
"type": "string",
|
1572
|
+
"description": "Field label align, can be set to `center` `right`, Default: `left`"
|
1573
|
+
},
|
1574
|
+
"van-form/input-align": {
|
1575
|
+
"type": "string",
|
1576
|
+
"description": "Field input align, can be set to `center` `right`, Default: `left`"
|
1577
|
+
},
|
1578
|
+
"van-form/error-message-align": {
|
1579
|
+
"type": "string",
|
1580
|
+
"description": "Error message align, can be set to `center` `right`, Default: `left`"
|
1581
|
+
},
|
1582
|
+
"van-form/validate-trigger": {
|
1583
|
+
"type": "string",
|
1584
|
+
"description": "When to validate the form, can be set to `onChange`、`onSubmit`, Default: `onBlur`"
|
1585
|
+
},
|
1586
|
+
"van-form/colon": {
|
1587
|
+
"type": "boolean",
|
1588
|
+
"description": "Whether to display colon after label, Default: `false`"
|
1589
|
+
},
|
1590
|
+
"van-form/disabled": {
|
1591
|
+
"type": "boolean",
|
1592
|
+
"description": "Whether to disable form, Default: `false`"
|
1593
|
+
},
|
1594
|
+
"van-form/readonly": {
|
1595
|
+
"type": "boolean",
|
1596
|
+
"description": "Whether to be readonly, Default: `false`"
|
1597
|
+
},
|
1598
|
+
"van-form/validate-first": {
|
1599
|
+
"type": "boolean",
|
1600
|
+
"description": "Whether to stop the validation when a rule fails, Default: `false`"
|
1601
|
+
},
|
1602
|
+
"van-form/scroll-to-error": {
|
1603
|
+
"type": "boolean",
|
1604
|
+
"description": "Whether to scroll to the error field when validation failed, Default: `false`"
|
1605
|
+
},
|
1606
|
+
"van-form/show-error": {
|
1607
|
+
"type": "boolean",
|
1608
|
+
"description": "Whether to highlight input when validation failed, Default: `false`"
|
1609
|
+
},
|
1610
|
+
"van-form/show-error-message": {
|
1611
|
+
"type": "boolean",
|
1612
|
+
"description": "Whether to show error message when validation failed, Default: `true`"
|
1613
|
+
},
|
1614
|
+
"van-form/submit-on-enter": {
|
1615
|
+
"type": "boolean",
|
1616
|
+
"description": "Whether to submit form on enter, Default: `true`"
|
1617
|
+
},
|
1618
|
+
"van-empty/image": {
|
1619
|
+
"type": "string",
|
1620
|
+
"description": "Image type, can be set to `error` `network` `search` or image URL, Default: `default`"
|
1621
|
+
},
|
1622
|
+
"van-empty/image-size": {
|
1623
|
+
"type": "number | string | Array",
|
1624
|
+
"description": "Image size, Default: -"
|
1625
|
+
},
|
1626
|
+
"van-empty/description": {
|
1627
|
+
"type": "string",
|
1628
|
+
"description": "Description, Default: -"
|
1629
|
+
},
|
1663
1630
|
"van-icon/name": {
|
1664
1631
|
"type": "string",
|
1665
1632
|
"description": "Icon name or URL, Default: `''`"
|
@@ -1674,7 +1641,7 @@
|
|
1674
1641
|
},
|
1675
1642
|
"van-icon/badge-props": {
|
1676
1643
|
"type": "BadgeProps",
|
1677
|
-
"description": "Props of Badge
|
1644
|
+
"description": "Props of Badge, see [Badge - props](#/en-US/badge#props), Default: -"
|
1678
1645
|
},
|
1679
1646
|
"van-icon/color": {
|
1680
1647
|
"type": "string",
|
@@ -1726,7 +1693,7 @@
|
|
1726
1693
|
},
|
1727
1694
|
"van-image/lazy-load": {
|
1728
1695
|
"type": "boolean",
|
1729
|
-
"description": "Whether to enable lazy load
|
1696
|
+
"description": "Whether to enable lazy load, should register [Lazyload](#/en-US/lazyload) component, Default: `false`"
|
1730
1697
|
},
|
1731
1698
|
"van-image/show-error": {
|
1732
1699
|
"type": "boolean",
|
@@ -1789,11 +1756,8 @@
|
|
1789
1756
|
"description": "Whether to close when popstate, Default: `true`"
|
1790
1757
|
},
|
1791
1758
|
"van-image-preview/class-name": {
|
1792
|
-
"type": "string | Array
|
1793
|
-
"description": "Custom className, Default:
|
1794
|
-
"options": [
|
1795
|
-
"-"
|
1796
|
-
]
|
1759
|
+
"type": "string | Array | object",
|
1760
|
+
"description": "Custom className, Default: -"
|
1797
1761
|
},
|
1798
1762
|
"van-image-preview/max-zoom": {
|
1799
1763
|
"type": "number | string",
|
@@ -1813,18 +1777,15 @@
|
|
1813
1777
|
},
|
1814
1778
|
"van-image-preview/close-icon-position": {
|
1815
1779
|
"type": "string",
|
1816
|
-
"description": "Close icon position
|
1780
|
+
"description": "Close icon position, can be set to `top-left` `bottom-left` `bottom-right`, Default: `top-right`"
|
1817
1781
|
},
|
1818
1782
|
"van-image-preview/transition": {
|
1819
1783
|
"type": "string",
|
1820
1784
|
"description": "Transition, equivalent to `name` prop of [transition](https://v3.vuejs.org/api/built-in-components.html#transition), Default: `van-fade`"
|
1821
1785
|
},
|
1822
1786
|
"van-image-preview/overlay-class": {
|
1823
|
-
"type": "string | Array
|
1824
|
-
"description": "Custom overlay class, Default:
|
1825
|
-
"options": [
|
1826
|
-
"-"
|
1827
|
-
]
|
1787
|
+
"type": "string | Array | object",
|
1788
|
+
"description": "Custom overlay class, Default: -"
|
1828
1789
|
},
|
1829
1790
|
"van-image-preview/overlay-style": {
|
1830
1791
|
"type": "object",
|
@@ -1864,15 +1825,15 @@
|
|
1864
1825
|
},
|
1865
1826
|
"van-list/v-model:loading": {
|
1866
1827
|
"type": "boolean",
|
1867
|
-
"description": "Whether to show loading info
|
1828
|
+
"description": "Whether to show loading info, the `load` event will not be Emitted when loading, Default: `false`"
|
1868
1829
|
},
|
1869
1830
|
"van-list/v-model:error": {
|
1870
1831
|
"type": "boolean",
|
1871
|
-
"description": "Whether loading is error
|
1832
|
+
"description": "Whether loading is error, the `load` event will be Emitted only when error text clicked, Default: `false`"
|
1872
1833
|
},
|
1873
1834
|
"van-list/finished": {
|
1874
1835
|
"type": "boolean",
|
1875
|
-
"description": "Whether loading is finished
|
1836
|
+
"description": "Whether loading is finished, the `load` event will not be Emitted when finished, Default: `false`"
|
1876
1837
|
},
|
1877
1838
|
"van-list/offset": {
|
1878
1839
|
"type": "number | string",
|
@@ -1896,7 +1857,7 @@
|
|
1896
1857
|
},
|
1897
1858
|
"van-list/direction": {
|
1898
1859
|
"type": "string",
|
1899
|
-
"description": "Scroll direction
|
1860
|
+
"description": "Scroll direction, can be set to `up`, Default: `down`"
|
1900
1861
|
},
|
1901
1862
|
"van-loading/color": {
|
1902
1863
|
"type": "string",
|
@@ -2008,7 +1969,7 @@
|
|
2008
1969
|
},
|
2009
1970
|
"van-number-keyboard/theme": {
|
2010
1971
|
"type": "string",
|
2011
|
-
"description": "Keyboard theme
|
1972
|
+
"description": "Keyboard theme, can be set to `custom`, Default: `default`"
|
2012
1973
|
},
|
2013
1974
|
"van-number-keyboard/maxlength": {
|
2014
1975
|
"type": "number | string",
|
@@ -2062,34 +2023,6 @@
|
|
2062
2023
|
"type": "boolean",
|
2063
2024
|
"description": "Whether to shuffle the order of keys, Default: `false`"
|
2064
2025
|
},
|
2065
|
-
"van-overlay/show": {
|
2066
|
-
"type": "boolean",
|
2067
|
-
"description": "Whether to show overlay, Default: `false`"
|
2068
|
-
},
|
2069
|
-
"van-overlay/z-index": {
|
2070
|
-
"type": "number | string",
|
2071
|
-
"description": "z-index, Default: `1`"
|
2072
|
-
},
|
2073
|
-
"van-overlay/duration": {
|
2074
|
-
"type": "number | string",
|
2075
|
-
"description": "Animation duration, Default: `0.3`"
|
2076
|
-
},
|
2077
|
-
"van-overlay/class-name": {
|
2078
|
-
"type": "string",
|
2079
|
-
"description": "ClassName, Default: -"
|
2080
|
-
},
|
2081
|
-
"van-overlay/custom-class": {
|
2082
|
-
"type": "object",
|
2083
|
-
"description": "Custom style, Default: -"
|
2084
|
-
},
|
2085
|
-
"van-overlay/lock-scroll": {
|
2086
|
-
"type": "boolean",
|
2087
|
-
"description": "Whether to lock background scroll, Default: `true`"
|
2088
|
-
},
|
2089
|
-
"van-overlay/lazy-render": {
|
2090
|
-
"type": "boolean",
|
2091
|
-
"description": "Whether to lazy render util appeared, Default: `true`"
|
2092
|
-
},
|
2093
2026
|
"van-pagination/v-model": {
|
2094
2027
|
"type": "number",
|
2095
2028
|
"description": "Current page number, Default: -"
|
@@ -2126,34 +2059,6 @@
|
|
2126
2059
|
"type": "boolean",
|
2127
2060
|
"description": "Whether to show ellipses, Default: `false`"
|
2128
2061
|
},
|
2129
|
-
"van-password-input/value": {
|
2130
|
-
"type": "string",
|
2131
|
-
"description": "Password value, Default: `''`"
|
2132
|
-
},
|
2133
|
-
"van-password-input/info": {
|
2134
|
-
"type": "string",
|
2135
|
-
"description": "Bottom info, Default: -"
|
2136
|
-
},
|
2137
|
-
"van-password-input/error-info": {
|
2138
|
-
"type": "string",
|
2139
|
-
"description": "Bottom error info, Default: -"
|
2140
|
-
},
|
2141
|
-
"van-password-input/length": {
|
2142
|
-
"type": "number | string",
|
2143
|
-
"description": "Maxlength of password, Default: `6`"
|
2144
|
-
},
|
2145
|
-
"van-password-input/gutter": {
|
2146
|
-
"type": "number | string",
|
2147
|
-
"description": "Gutter of input, Default: `0`"
|
2148
|
-
},
|
2149
|
-
"van-password-input/mask": {
|
2150
|
-
"type": "boolean",
|
2151
|
-
"description": "Whether to mask value, Default: `true`"
|
2152
|
-
},
|
2153
|
-
"van-password-input/focused": {
|
2154
|
-
"type": "boolean",
|
2155
|
-
"description": "Whether to show focused cursor, Default: `false`"
|
2156
|
-
},
|
2157
2062
|
"van-picker/columns": {
|
2158
2063
|
"type": "PickerOption[] | PickerOption[][]",
|
2159
2064
|
"description": "Columns data, Default: `[]`"
|
@@ -2200,7 +2105,7 @@
|
|
2200
2105
|
},
|
2201
2106
|
"van-picker/swipe-duration": {
|
2202
2107
|
"type": "number | string",
|
2203
|
-
"description": "Duration of the momentum animation
|
2108
|
+
"description": "Duration of the momentum animation, unit `ms`, Default: `1000`"
|
2204
2109
|
},
|
2205
2110
|
"van-popover/v-model:show": {
|
2206
2111
|
"type": "boolean",
|
@@ -2216,11 +2121,11 @@
|
|
2216
2121
|
},
|
2217
2122
|
"van-popover/theme": {
|
2218
2123
|
"type": "PopoverTheme",
|
2219
|
-
"description": "Theme
|
2124
|
+
"description": "Theme, can be set to `dark`, Default: `light`"
|
2220
2125
|
},
|
2221
2126
|
"van-popover/trigger": {
|
2222
2127
|
"type": "PopoverTrigger",
|
2223
|
-
"description": "Trigger mode
|
2128
|
+
"description": "Trigger mode, can be set to `manual`, Default: `click`"
|
2224
2129
|
},
|
2225
2130
|
"van-popover/duration": {
|
2226
2131
|
"type": "number | string",
|
@@ -2235,11 +2140,8 @@
|
|
2235
2140
|
"description": "Whether to show overlay, Default: `false`"
|
2236
2141
|
},
|
2237
2142
|
"van-popover/overlay-class": {
|
2238
|
-
"type": "string | Array
|
2239
|
-
"description": "Custom overlay class, Default:
|
2240
|
-
"options": [
|
2241
|
-
"-"
|
2242
|
-
]
|
2143
|
+
"type": "string | Array | object",
|
2144
|
+
"description": "Custom overlay class, Default: -"
|
2243
2145
|
},
|
2244
2146
|
"van-popover/overlay-style": {
|
2245
2147
|
"type": "object",
|
@@ -2282,11 +2184,8 @@
|
|
2282
2184
|
"description": "Can be set to `top` `bottom` `right` `left`, Default: `center`"
|
2283
2185
|
},
|
2284
2186
|
"van-popup/overlay-class": {
|
2285
|
-
"type": "string | Array
|
2286
|
-
"description": "Custom overlay class, Default:
|
2287
|
-
"options": [
|
2288
|
-
"-"
|
2289
|
-
]
|
2187
|
+
"type": "string | Array | object",
|
2188
|
+
"description": "Custom overlay class, Default: -"
|
2290
2189
|
},
|
2291
2190
|
"van-popup/overlay-style": {
|
2292
2191
|
"type": "object",
|
@@ -2326,7 +2225,7 @@
|
|
2326
2225
|
},
|
2327
2226
|
"van-popup/close-icon-position": {
|
2328
2227
|
"type": "string",
|
2329
|
-
"description": "Close Icon Position
|
2228
|
+
"description": "Close Icon Position, can be set to `top-left` `bottom-left` `bottom-right`, Default: `top-right`"
|
2330
2229
|
},
|
2331
2230
|
"van-popup/before-close": {
|
2332
2231
|
"type": "(action: string) => boolean | Promise\\<boolean\\>",
|
@@ -2356,6 +2255,34 @@
|
|
2356
2255
|
"type": "boolean",
|
2357
2256
|
"description": "Whether to enable bottom safe area adaptation, Default: `false`"
|
2358
2257
|
},
|
2258
|
+
"van-password-input/value": {
|
2259
|
+
"type": "string",
|
2260
|
+
"description": "Password value, Default: `''`"
|
2261
|
+
},
|
2262
|
+
"van-password-input/info": {
|
2263
|
+
"type": "string",
|
2264
|
+
"description": "Bottom info, Default: -"
|
2265
|
+
},
|
2266
|
+
"van-password-input/error-info": {
|
2267
|
+
"type": "string",
|
2268
|
+
"description": "Bottom error info, Default: -"
|
2269
|
+
},
|
2270
|
+
"van-password-input/length": {
|
2271
|
+
"type": "number | string",
|
2272
|
+
"description": "Maxlength of password, Default: `6`"
|
2273
|
+
},
|
2274
|
+
"van-password-input/gutter": {
|
2275
|
+
"type": "number | string",
|
2276
|
+
"description": "Gutter of input, Default: `0`"
|
2277
|
+
},
|
2278
|
+
"van-password-input/mask": {
|
2279
|
+
"type": "boolean",
|
2280
|
+
"description": "Whether to mask value, Default: `true`"
|
2281
|
+
},
|
2282
|
+
"van-password-input/focused": {
|
2283
|
+
"type": "boolean",
|
2284
|
+
"description": "Whether to show focused cursor, Default: `false`"
|
2285
|
+
},
|
2359
2286
|
"van-progress/percentage": {
|
2360
2287
|
"type": "number | string",
|
2361
2288
|
"description": "Percentage, Default: `0`"
|
@@ -2392,45 +2319,33 @@
|
|
2392
2319
|
"type": "boolean",
|
2393
2320
|
"description": "Whether to show text, Default: `true`"
|
2394
2321
|
},
|
2395
|
-
"van-
|
2322
|
+
"van-overlay/show": {
|
2396
2323
|
"type": "boolean",
|
2397
|
-
"description": "
|
2398
|
-
},
|
2399
|
-
"van-pull-refresh/pulling-text": {
|
2400
|
-
"type": "string",
|
2401
|
-
"description": "Text to show when pulling, Default: `Pull to refresh...`"
|
2402
|
-
},
|
2403
|
-
"van-pull-refresh/loosing-text": {
|
2404
|
-
"type": "string",
|
2405
|
-
"description": "Text to show when loosing, Default: `Loose to refresh...`"
|
2406
|
-
},
|
2407
|
-
"van-pull-refresh/loading-text": {
|
2408
|
-
"type": "string",
|
2409
|
-
"description": "Text to show when loading, Default: `Loading...`"
|
2410
|
-
},
|
2411
|
-
"van-pull-refresh/success-text": {
|
2412
|
-
"type": "string",
|
2413
|
-
"description": "Text to show when loading success, Default: -"
|
2324
|
+
"description": "Whether to show overlay, Default: `false`"
|
2414
2325
|
},
|
2415
|
-
"van-
|
2326
|
+
"van-overlay/z-index": {
|
2416
2327
|
"type": "number | string",
|
2417
|
-
"description": "
|
2328
|
+
"description": "z-index, Default: `1`"
|
2418
2329
|
},
|
2419
|
-
"van-
|
2330
|
+
"van-overlay/duration": {
|
2420
2331
|
"type": "number | string",
|
2421
|
-
"description": "Animation duration, Default: `
|
2332
|
+
"description": "Animation duration, Default: `0.3`"
|
2422
2333
|
},
|
2423
|
-
"van-
|
2424
|
-
"type": "
|
2425
|
-
"description": "
|
2334
|
+
"van-overlay/class-name": {
|
2335
|
+
"type": "string",
|
2336
|
+
"description": "ClassName, Default: -"
|
2426
2337
|
},
|
2427
|
-
"van-
|
2428
|
-
"type": "
|
2429
|
-
"description": "
|
2338
|
+
"van-overlay/custom-class": {
|
2339
|
+
"type": "object",
|
2340
|
+
"description": "Custom style, Default: -"
|
2430
2341
|
},
|
2431
|
-
"van-
|
2342
|
+
"van-overlay/lock-scroll": {
|
2432
2343
|
"type": "boolean",
|
2433
|
-
"description": "Whether to
|
2344
|
+
"description": "Whether to lock background scroll, Default: `true`"
|
2345
|
+
},
|
2346
|
+
"van-overlay/lazy-render": {
|
2347
|
+
"type": "boolean",
|
2348
|
+
"description": "Whether to lazy render util appeared, Default: `true`"
|
2434
2349
|
},
|
2435
2350
|
"van-radio/name": {
|
2436
2351
|
"type": "any",
|
@@ -2480,6 +2395,46 @@
|
|
2480
2395
|
"type": "string",
|
2481
2396
|
"description": "Checked color of all radios, Default: `#1989fa`"
|
2482
2397
|
},
|
2398
|
+
"van-pull-refresh/v-model": {
|
2399
|
+
"type": "boolean",
|
2400
|
+
"description": "Loading status, Default: -"
|
2401
|
+
},
|
2402
|
+
"van-pull-refresh/pulling-text": {
|
2403
|
+
"type": "string",
|
2404
|
+
"description": "Text to show when pulling, Default: `Pull to refresh...`"
|
2405
|
+
},
|
2406
|
+
"van-pull-refresh/loosing-text": {
|
2407
|
+
"type": "string",
|
2408
|
+
"description": "Text to show when loosing, Default: `Loose to refresh...`"
|
2409
|
+
},
|
2410
|
+
"van-pull-refresh/loading-text": {
|
2411
|
+
"type": "string",
|
2412
|
+
"description": "Text to show when loading, Default: `Loading...`"
|
2413
|
+
},
|
2414
|
+
"van-pull-refresh/success-text": {
|
2415
|
+
"type": "string",
|
2416
|
+
"description": "Text to show when loading success, Default: -"
|
2417
|
+
},
|
2418
|
+
"van-pull-refresh/success-duration": {
|
2419
|
+
"type": "number | string",
|
2420
|
+
"description": "Success text display duration(ms), Default: `500`"
|
2421
|
+
},
|
2422
|
+
"van-pull-refresh/animation-duration": {
|
2423
|
+
"type": "number | string",
|
2424
|
+
"description": "Animation duration, Default: `300`"
|
2425
|
+
},
|
2426
|
+
"van-pull-refresh/head-height": {
|
2427
|
+
"type": "number | string",
|
2428
|
+
"description": "Height of head, Default: `50`"
|
2429
|
+
},
|
2430
|
+
"van-pull-refresh/pull-distance": {
|
2431
|
+
"type": "number | string",
|
2432
|
+
"description": "The distance to trigger the pull refresh, Default: same as `head-height`"
|
2433
|
+
},
|
2434
|
+
"van-pull-refresh/disabled": {
|
2435
|
+
"type": "boolean",
|
2436
|
+
"description": "Whether to disable pull refresh, Default: `false`"
|
2437
|
+
},
|
2483
2438
|
"van-rate/v-model": {
|
2484
2439
|
"type": "number",
|
2485
2440
|
"description": "Current rate, Default: -"
|
@@ -2614,7 +2569,7 @@
|
|
2614
2569
|
},
|
2615
2570
|
"van-search/format-trigger": {
|
2616
2571
|
"type": "string",
|
2617
|
-
"description": "When to format value
|
2572
|
+
"description": "When to format value, can be set to `onBlur`, Default: `onChange`"
|
2618
2573
|
},
|
2619
2574
|
"van-search/input-align": {
|
2620
2575
|
"type": "string",
|
@@ -2632,77 +2587,6 @@
|
|
2632
2587
|
"type": "string",
|
2633
2588
|
"description": "[autocomplete](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete) attribute of native input element, Default: -"
|
2634
2589
|
},
|
2635
|
-
"van-share-sheet/v-model:show": {
|
2636
|
-
"type": "boolean",
|
2637
|
-
"description": "Whether to show ShareSheet, Default: `false`"
|
2638
|
-
},
|
2639
|
-
"van-share-sheet/options": {
|
2640
|
-
"type": "Option[]",
|
2641
|
-
"description": "Share options, Default: `[]`"
|
2642
|
-
},
|
2643
|
-
"van-share-sheet/title": {
|
2644
|
-
"type": "string",
|
2645
|
-
"description": "Title, Default: -"
|
2646
|
-
},
|
2647
|
-
"van-share-sheet/cancel-text": {
|
2648
|
-
"type": "string",
|
2649
|
-
"description": "Cancel button text, Default: `'Cancel'`"
|
2650
|
-
},
|
2651
|
-
"van-share-sheet/description": {
|
2652
|
-
"type": "string",
|
2653
|
-
"description": "Description, Default: -"
|
2654
|
-
},
|
2655
|
-
"van-share-sheet/duration": {
|
2656
|
-
"type": "number | string",
|
2657
|
-
"description": "Transition duration, unit second, Default: `0.3`"
|
2658
|
-
},
|
2659
|
-
"van-share-sheet/round": {
|
2660
|
-
"type": "boolean",
|
2661
|
-
"description": "Whether to show round corner, Default: `true`"
|
2662
|
-
},
|
2663
|
-
"van-share-sheet/overlay": {
|
2664
|
-
"type": "boolean",
|
2665
|
-
"description": "Whether to show overlay, Default: `true`"
|
2666
|
-
},
|
2667
|
-
"van-share-sheet/overlay-class": {
|
2668
|
-
"type": "string | Array \\",
|
2669
|
-
"description": "Custom overlay class, Default: object_",
|
2670
|
-
"options": [
|
2671
|
-
"-"
|
2672
|
-
]
|
2673
|
-
},
|
2674
|
-
"van-share-sheet/overlay-style": {
|
2675
|
-
"type": "object",
|
2676
|
-
"description": "Custom overlay style, Default: -"
|
2677
|
-
},
|
2678
|
-
"van-share-sheet/lock-scroll": {
|
2679
|
-
"type": "boolean",
|
2680
|
-
"description": "Whether to lock background scroll, Default: `true`"
|
2681
|
-
},
|
2682
|
-
"van-share-sheet/lazy-render": {
|
2683
|
-
"type": "boolean",
|
2684
|
-
"description": "Whether to lazy render util appeared, Default: `true`"
|
2685
|
-
},
|
2686
|
-
"van-share-sheet/close-on-popstate": {
|
2687
|
-
"type": "boolean",
|
2688
|
-
"description": "Whether to close when popstate, Default: `true`"
|
2689
|
-
},
|
2690
|
-
"van-share-sheet/close-on-click-overlay": {
|
2691
|
-
"type": "boolean",
|
2692
|
-
"description": "Whether to close when overlay is clicked, Default: `true`"
|
2693
|
-
},
|
2694
|
-
"van-share-sheet/safe-area-inset-bottom": {
|
2695
|
-
"type": "boolean",
|
2696
|
-
"description": "Whether to enable bottom safe area adaptation, Default: `true`"
|
2697
|
-
},
|
2698
|
-
"van-share-sheet/teleport": {
|
2699
|
-
"type": "string | Element",
|
2700
|
-
"description": "Specifies a target element where ShareSheet will be mounted, Default: -"
|
2701
|
-
},
|
2702
|
-
"van-share-sheet/before-close": {
|
2703
|
-
"type": "(action: string) => boolean | Promise\\<boolean\\>",
|
2704
|
-
"description": "Callback function before close, Default: -"
|
2705
|
-
},
|
2706
2590
|
"van-sidebar/v-model": {
|
2707
2591
|
"type": "number | string",
|
2708
2592
|
"description": "Index of chosen item, Default: `0`"
|
@@ -2721,7 +2605,7 @@
|
|
2721
2605
|
},
|
2722
2606
|
"van-sidebar-item/badge-props": {
|
2723
2607
|
"type": "BadgeProps",
|
2724
|
-
"description": "Props of Badge
|
2608
|
+
"description": "Props of Badge, see [Badge - props](#/en-US/badge#props), Default: -"
|
2725
2609
|
},
|
2726
2610
|
"van-sidebar-item/disabled": {
|
2727
2611
|
"type": "boolean",
|
@@ -2744,11 +2628,8 @@
|
|
2744
2628
|
"description": "Row count, Default: `0`"
|
2745
2629
|
},
|
2746
2630
|
"van-skeleton/row-width": {
|
2747
|
-
"type": "number | string
|
2748
|
-
"description": "Row width, can be array, Default:
|
2749
|
-
"options": [
|
2750
|
-
"string)[]_"
|
2751
|
-
]
|
2631
|
+
"type": "number | string |<br>(number | string)[]",
|
2632
|
+
"description": "Row width, can be array, Default: `100%`"
|
2752
2633
|
},
|
2753
2634
|
"van-skeleton/title": {
|
2754
2635
|
"type": "boolean",
|
@@ -2760,7 +2641,7 @@
|
|
2760
2641
|
},
|
2761
2642
|
"van-skeleton/loading": {
|
2762
2643
|
"type": "boolean",
|
2763
|
-
"description": "Whether to show skeleton
|
2644
|
+
"description": "Whether to show skeleton, pass `false` to show child component, Default: `true`"
|
2764
2645
|
},
|
2765
2646
|
"van-skeleton/animate": {
|
2766
2647
|
"type": "boolean",
|
@@ -2780,7 +2661,75 @@
|
|
2780
2661
|
},
|
2781
2662
|
"van-skeleton/avatar-shape": {
|
2782
2663
|
"type": "string",
|
2783
|
-
"description": "Shape of avatar placeholder
|
2664
|
+
"description": "Shape of avatar placeholder, can be set to `square`, Default: `round`"
|
2665
|
+
},
|
2666
|
+
"van-share-sheet/v-model:show": {
|
2667
|
+
"type": "boolean",
|
2668
|
+
"description": "Whether to show ShareSheet, Default: `false`"
|
2669
|
+
},
|
2670
|
+
"van-share-sheet/options": {
|
2671
|
+
"type": "Option[]",
|
2672
|
+
"description": "Share options, Default: `[]`"
|
2673
|
+
},
|
2674
|
+
"van-share-sheet/title": {
|
2675
|
+
"type": "string",
|
2676
|
+
"description": "Title, Default: -"
|
2677
|
+
},
|
2678
|
+
"van-share-sheet/cancel-text": {
|
2679
|
+
"type": "string",
|
2680
|
+
"description": "Cancel button text, Default: `'Cancel'`"
|
2681
|
+
},
|
2682
|
+
"van-share-sheet/description": {
|
2683
|
+
"type": "string",
|
2684
|
+
"description": "Description, Default: -"
|
2685
|
+
},
|
2686
|
+
"van-share-sheet/duration": {
|
2687
|
+
"type": "number | string",
|
2688
|
+
"description": "Transition duration, unit second, Default: `0.3`"
|
2689
|
+
},
|
2690
|
+
"van-share-sheet/round": {
|
2691
|
+
"type": "boolean",
|
2692
|
+
"description": "Whether to show round corner, Default: `true`"
|
2693
|
+
},
|
2694
|
+
"van-share-sheet/overlay": {
|
2695
|
+
"type": "boolean",
|
2696
|
+
"description": "Whether to show overlay, Default: `true`"
|
2697
|
+
},
|
2698
|
+
"van-share-sheet/overlay-class": {
|
2699
|
+
"type": "string | Array | object",
|
2700
|
+
"description": "Custom overlay class, Default: -"
|
2701
|
+
},
|
2702
|
+
"van-share-sheet/overlay-style": {
|
2703
|
+
"type": "object",
|
2704
|
+
"description": "Custom overlay style, Default: -"
|
2705
|
+
},
|
2706
|
+
"van-share-sheet/lock-scroll": {
|
2707
|
+
"type": "boolean",
|
2708
|
+
"description": "Whether to lock background scroll, Default: `true`"
|
2709
|
+
},
|
2710
|
+
"van-share-sheet/lazy-render": {
|
2711
|
+
"type": "boolean",
|
2712
|
+
"description": "Whether to lazy render util appeared, Default: `true`"
|
2713
|
+
},
|
2714
|
+
"van-share-sheet/close-on-popstate": {
|
2715
|
+
"type": "boolean",
|
2716
|
+
"description": "Whether to close when popstate, Default: `true`"
|
2717
|
+
},
|
2718
|
+
"van-share-sheet/close-on-click-overlay": {
|
2719
|
+
"type": "boolean",
|
2720
|
+
"description": "Whether to close when overlay is clicked, Default: `true`"
|
2721
|
+
},
|
2722
|
+
"van-share-sheet/safe-area-inset-bottom": {
|
2723
|
+
"type": "boolean",
|
2724
|
+
"description": "Whether to enable bottom safe area adaptation, Default: `true`"
|
2725
|
+
},
|
2726
|
+
"van-share-sheet/teleport": {
|
2727
|
+
"type": "string | Element",
|
2728
|
+
"description": "Specifies a target element where ShareSheet will be mounted, Default: -"
|
2729
|
+
},
|
2730
|
+
"van-share-sheet/before-close": {
|
2731
|
+
"type": "(action: string) => boolean | Promise\\<boolean\\>",
|
2732
|
+
"description": "Callback function before close, Default: -"
|
2784
2733
|
},
|
2785
2734
|
"van-slider/v-model": {
|
2786
2735
|
"type": "number | [number, number]",
|
@@ -2899,11 +2848,8 @@
|
|
2899
2848
|
"description": "Whether to disable input, Default: `false`"
|
2900
2849
|
},
|
2901
2850
|
"van-stepper/before-change": {
|
2902
|
-
"type": "(value: number | string) => boolean
|
2903
|
-
"description": "Callback function before changing
|
2904
|
-
"options": [
|
2905
|
-
"false"
|
2906
|
-
]
|
2851
|
+
"type": "(value: number | string) => boolean | Promise\\<boolean\\>",
|
2852
|
+
"description": "Callback function before changing, return `false` to prevent change, support return Promise, Default: `false`"
|
2907
2853
|
},
|
2908
2854
|
"van-stepper/show-plus": {
|
2909
2855
|
"type": "boolean",
|
@@ -2925,6 +2871,62 @@
|
|
2925
2871
|
"type": "boolean",
|
2926
2872
|
"description": "Whether to allow the input to be empty, Default: `false`"
|
2927
2873
|
},
|
2874
|
+
"van-submit-bar/price": {
|
2875
|
+
"type": "number",
|
2876
|
+
"description": "Price, Default: -"
|
2877
|
+
},
|
2878
|
+
"van-submit-bar/decimal-length": {
|
2879
|
+
"type": "number | string",
|
2880
|
+
"description": "Price decimal length, Default: `2`"
|
2881
|
+
},
|
2882
|
+
"van-submit-bar/label": {
|
2883
|
+
"type": "string",
|
2884
|
+
"description": "Price left label, Default: `Total: `"
|
2885
|
+
},
|
2886
|
+
"van-submit-bar/suffix-label": {
|
2887
|
+
"type": "string",
|
2888
|
+
"description": "Price right label, Default: -"
|
2889
|
+
},
|
2890
|
+
"van-submit-bar/text-align": {
|
2891
|
+
"type": "string",
|
2892
|
+
"description": "Price label text align can be set to `left`, Default: `right`"
|
2893
|
+
},
|
2894
|
+
"van-submit-bar/button-text": {
|
2895
|
+
"type": "string",
|
2896
|
+
"description": "Button text, Default: -"
|
2897
|
+
},
|
2898
|
+
"van-submit-bar/button-type": {
|
2899
|
+
"type": "string",
|
2900
|
+
"description": "Button type, Default: `danger`"
|
2901
|
+
},
|
2902
|
+
"van-submit-bar/button-color": {
|
2903
|
+
"type": "string",
|
2904
|
+
"description": "Button color, Default: -"
|
2905
|
+
},
|
2906
|
+
"van-submit-bar/tip": {
|
2907
|
+
"type": "string",
|
2908
|
+
"description": "Tip, Default: -"
|
2909
|
+
},
|
2910
|
+
"van-submit-bar/tip-icon": {
|
2911
|
+
"type": "string",
|
2912
|
+
"description": "Tip left icon, Default: -"
|
2913
|
+
},
|
2914
|
+
"van-submit-bar/currency": {
|
2915
|
+
"type": "string",
|
2916
|
+
"description": "Currency symbol, Default: `¥`"
|
2917
|
+
},
|
2918
|
+
"van-submit-bar/disabled": {
|
2919
|
+
"type": "boolean",
|
2920
|
+
"description": "Whether to disable button, Default: `false`"
|
2921
|
+
},
|
2922
|
+
"van-submit-bar/loading": {
|
2923
|
+
"type": "boolean",
|
2924
|
+
"description": "Whether to show loading icon, Default: `false`"
|
2925
|
+
},
|
2926
|
+
"van-submit-bar/safe-area-inset-bottom": {
|
2927
|
+
"type": "boolean",
|
2928
|
+
"description": "Whether to enable bottom safe area adaptation, Default: `true`"
|
2929
|
+
},
|
2928
2930
|
"van-steps/active": {
|
2929
2931
|
"type": "number | string",
|
2930
2932
|
"description": "Active step, Default: `0`"
|
@@ -2957,6 +2959,54 @@
|
|
2957
2959
|
"type": "string",
|
2958
2960
|
"description": "Icon className prefix, Default: `van-icon`"
|
2959
2961
|
},
|
2962
|
+
"van-swipe/autoplay": {
|
2963
|
+
"type": "number | string",
|
2964
|
+
"description": "Autoplay interval (ms), Default: -"
|
2965
|
+
},
|
2966
|
+
"van-swipe/duration": {
|
2967
|
+
"type": "number | string",
|
2968
|
+
"description": "Animation duration (ms), Default: `500`"
|
2969
|
+
},
|
2970
|
+
"van-swipe/initial-swipe": {
|
2971
|
+
"type": "number | string",
|
2972
|
+
"description": "Index of initial swipe, start from 0, Default: `0`"
|
2973
|
+
},
|
2974
|
+
"van-swipe/width": {
|
2975
|
+
"type": "number | string",
|
2976
|
+
"description": "Width of swipe item, Default: `0`"
|
2977
|
+
},
|
2978
|
+
"van-swipe/height": {
|
2979
|
+
"type": "number | string",
|
2980
|
+
"description": "Height of swipe item, Default: `0`"
|
2981
|
+
},
|
2982
|
+
"van-swipe/loop": {
|
2983
|
+
"type": "boolean",
|
2984
|
+
"description": "Whether to enable loop, Default: `true`"
|
2985
|
+
},
|
2986
|
+
"van-swipe/show-indicators": {
|
2987
|
+
"type": "boolean",
|
2988
|
+
"description": "Whether to show indicators, Default: `true`"
|
2989
|
+
},
|
2990
|
+
"van-swipe/vertical": {
|
2991
|
+
"type": "boolean",
|
2992
|
+
"description": "Whether to be vertical Scrolling, Default: `false`"
|
2993
|
+
},
|
2994
|
+
"van-swipe/touchable": {
|
2995
|
+
"type": "boolean",
|
2996
|
+
"description": "Whether to allow swipe by touch gesture, Default: `true`"
|
2997
|
+
},
|
2998
|
+
"van-swipe/stop-propagation": {
|
2999
|
+
"type": "boolean",
|
3000
|
+
"description": "Whether to stop touchmove event propagation, Default: `false`"
|
3001
|
+
},
|
3002
|
+
"van-swipe/lazy-render": {
|
3003
|
+
"type": "boolean",
|
3004
|
+
"description": "Whether to enable lazy render, Default: `false`"
|
3005
|
+
},
|
3006
|
+
"van-swipe/indicator-color": {
|
3007
|
+
"type": "string",
|
3008
|
+
"description": "Indicator color, Default: `#1989fa`"
|
3009
|
+
},
|
2960
3010
|
"van-sticky/position": {
|
2961
3011
|
"type": "string",
|
2962
3012
|
"description": "Offset position, can be set to `bottom`, Default: `top`"
|
@@ -2977,61 +3027,37 @@
|
|
2977
3027
|
"type": "Element",
|
2978
3028
|
"description": "Container DOM, Default: -"
|
2979
3029
|
},
|
2980
|
-
"van-
|
2981
|
-
"type": "
|
2982
|
-
"description": "
|
2983
|
-
},
|
2984
|
-
"van-submit-bar/decimal-length": {
|
2985
|
-
"type": "number | string",
|
2986
|
-
"description": "Price decimal length, Default: `2`"
|
2987
|
-
},
|
2988
|
-
"van-submit-bar/label": {
|
2989
|
-
"type": "string",
|
2990
|
-
"description": "Price left label, Default: `Total:`"
|
2991
|
-
},
|
2992
|
-
"van-submit-bar/suffix-label": {
|
2993
|
-
"type": "string",
|
2994
|
-
"description": "Price right label, Default: -"
|
2995
|
-
},
|
2996
|
-
"van-submit-bar/text-align": {
|
2997
|
-
"type": "string",
|
2998
|
-
"description": "Price label text align can be set to `left`, Default: `right`"
|
2999
|
-
},
|
3000
|
-
"van-submit-bar/button-text": {
|
3001
|
-
"type": "string",
|
3002
|
-
"description": "Button text, Default: -"
|
3030
|
+
"van-switch/v-model": {
|
3031
|
+
"type": "ActiveValue | InactiveValue",
|
3032
|
+
"description": "Check status of Switch, Default: `false`"
|
3003
3033
|
},
|
3004
|
-
"van-
|
3005
|
-
"type": "
|
3006
|
-
"description": "
|
3034
|
+
"van-switch/loading": {
|
3035
|
+
"type": "boolean",
|
3036
|
+
"description": "Whether to show loading icon, Default: `false`"
|
3007
3037
|
},
|
3008
|
-
"van-
|
3009
|
-
"type": "
|
3010
|
-
"description": "
|
3038
|
+
"van-switch/disabled": {
|
3039
|
+
"type": "boolean",
|
3040
|
+
"description": "Whether to disable switch, Default: `false`"
|
3011
3041
|
},
|
3012
|
-
"van-
|
3013
|
-
"type": "string",
|
3014
|
-
"description": "
|
3042
|
+
"van-switch/size": {
|
3043
|
+
"type": "number | string",
|
3044
|
+
"description": "Size of switch button, Default: `26px`"
|
3015
3045
|
},
|
3016
|
-
"van-
|
3046
|
+
"van-switch/active-color": {
|
3017
3047
|
"type": "string",
|
3018
|
-
"description": "
|
3048
|
+
"description": "Background color when active, Default: `#1989fa`"
|
3019
3049
|
},
|
3020
|
-
"van-
|
3050
|
+
"van-switch/inactive-color": {
|
3021
3051
|
"type": "string",
|
3022
|
-
"description": "
|
3023
|
-
},
|
3024
|
-
"van-submit-bar/disabled": {
|
3025
|
-
"type": "boolean",
|
3026
|
-
"description": "Whether to disable button, Default: `false`"
|
3052
|
+
"description": "Background color when inactive, Default: `rgba(120, 120, 128, 0.16)`"
|
3027
3053
|
},
|
3028
|
-
"van-
|
3029
|
-
"type": "
|
3030
|
-
"description": "
|
3054
|
+
"van-switch/active-value": {
|
3055
|
+
"type": "any",
|
3056
|
+
"description": "Value when active, Default: `true`"
|
3031
3057
|
},
|
3032
|
-
"van-
|
3033
|
-
"type": "
|
3034
|
-
"description": "
|
3058
|
+
"van-switch/inactive-value": {
|
3059
|
+
"type": "any",
|
3060
|
+
"description": "Value when inactive, Default: `false`"
|
3035
3061
|
},
|
3036
3062
|
"van-swipe-cell/name": {
|
3037
3063
|
"type": "number | string",
|
@@ -3134,11 +3160,8 @@
|
|
3134
3160
|
"description": "Title inactive color, Default: -"
|
3135
3161
|
},
|
3136
3162
|
"van-tabs/before-change": {
|
3137
|
-
"type": "(name: number | string) => boolean
|
3138
|
-
"description": "Callback function before changing tabs
|
3139
|
-
"options": [
|
3140
|
-
"-"
|
3141
|
-
]
|
3163
|
+
"type": "(name: number | string) => boolean | Promise\\<boolean\\>",
|
3164
|
+
"description": "Callback function before changing tabs, return `false` to prevent change, support return Promise, Default: -"
|
3142
3165
|
},
|
3143
3166
|
"van-tab/title": {
|
3144
3167
|
"type": "string",
|
@@ -3173,55 +3196,17 @@
|
|
3173
3196
|
"description": "If true, the navigation will not leave a history record, Default: `false`"
|
3174
3197
|
},
|
3175
3198
|
"van-tab/title-style": {
|
3176
|
-
"type": "string | Array
|
3177
|
-
"description": "Custom title style, Default:
|
3178
|
-
"options": [
|
3179
|
-
"-"
|
3180
|
-
]
|
3199
|
+
"type": "string | Array | object",
|
3200
|
+
"description": "Custom title style, Default: -"
|
3181
3201
|
},
|
3182
3202
|
"van-tab/title-class": {
|
3183
|
-
"type": "string | Array
|
3184
|
-
"description": "Custom title class name, Default:
|
3185
|
-
"options": [
|
3186
|
-
"-"
|
3187
|
-
]
|
3203
|
+
"type": "string | Array | object",
|
3204
|
+
"description": "Custom title class name, Default: -"
|
3188
3205
|
},
|
3189
3206
|
"van-tab/show-zero-badge": {
|
3190
3207
|
"type": "boolean",
|
3191
3208
|
"description": "Whether to show badge when the value is zero, Default: `true`"
|
3192
3209
|
},
|
3193
|
-
"van-switch/v-model": {
|
3194
|
-
"type": "ActiveValue | InactiveValue",
|
3195
|
-
"description": "Check status of Switch, Default: `false`"
|
3196
|
-
},
|
3197
|
-
"van-switch/loading": {
|
3198
|
-
"type": "boolean",
|
3199
|
-
"description": "Whether to show loading icon, Default: `false`"
|
3200
|
-
},
|
3201
|
-
"van-switch/disabled": {
|
3202
|
-
"type": "boolean",
|
3203
|
-
"description": "Whether to disable switch, Default: `false`"
|
3204
|
-
},
|
3205
|
-
"van-switch/size": {
|
3206
|
-
"type": "number | string",
|
3207
|
-
"description": "Size of switch button, Default: `26px`"
|
3208
|
-
},
|
3209
|
-
"van-switch/active-color": {
|
3210
|
-
"type": "string",
|
3211
|
-
"description": "Background color when active, Default: `#1989fa`"
|
3212
|
-
},
|
3213
|
-
"van-switch/inactive-color": {
|
3214
|
-
"type": "string",
|
3215
|
-
"description": "Background color when inactive, Default: `rgba(120, 120, 128, 0.16)`"
|
3216
|
-
},
|
3217
|
-
"van-switch/active-value": {
|
3218
|
-
"type": "any",
|
3219
|
-
"description": "Value when active, Default: `true`"
|
3220
|
-
},
|
3221
|
-
"van-switch/inactive-value": {
|
3222
|
-
"type": "any",
|
3223
|
-
"description": "Value when inactive, Default: `false`"
|
3224
|
-
},
|
3225
3210
|
"van-tabbar/v-model": {
|
3226
3211
|
"type": "number | string",
|
3227
3212
|
"description": "Identifier of current tab, Default: `0`"
|
@@ -3259,11 +3244,8 @@
|
|
3259
3244
|
"description": "Whether to enable bottom safe area adaptation, Default: `false`"
|
3260
3245
|
},
|
3261
3246
|
"van-tabbar/before-change": {
|
3262
|
-
"type": "(name: number | string) => boolean
|
3263
|
-
"description": "Callback function before changing tab
|
3264
|
-
"options": [
|
3265
|
-
"-"
|
3266
|
-
]
|
3247
|
+
"type": "(name: number | string) => boolean | Promise\\<boolean\\>",
|
3248
|
+
"description": "Callback function before changing tab, return `false` to prevent change, support return Promise, Default: -"
|
3267
3249
|
},
|
3268
3250
|
"van-tabbar-item/name": {
|
3269
3251
|
"type": "number | string",
|
@@ -3287,7 +3269,7 @@
|
|
3287
3269
|
},
|
3288
3270
|
"van-tabbar-item/badge-props": {
|
3289
3271
|
"type": "BadgeProps",
|
3290
|
-
"description": "Props of Badge
|
3272
|
+
"description": "Props of Badge, see [Badge - props](#/en-US/badge#props), Default: -"
|
3291
3273
|
},
|
3292
3274
|
"van-tabbar-item/url": {
|
3293
3275
|
"type": "string",
|
@@ -3301,54 +3283,6 @@
|
|
3301
3283
|
"type": "boolean",
|
3302
3284
|
"description": "If true, the navigation will not leave a history record, Default: `false`"
|
3303
3285
|
},
|
3304
|
-
"van-swipe/autoplay": {
|
3305
|
-
"type": "number | string",
|
3306
|
-
"description": "Autoplay interval (ms), Default: -"
|
3307
|
-
},
|
3308
|
-
"van-swipe/duration": {
|
3309
|
-
"type": "number | string",
|
3310
|
-
"description": "Animation duration (ms), Default: `500`"
|
3311
|
-
},
|
3312
|
-
"van-swipe/initial-swipe": {
|
3313
|
-
"type": "number | string",
|
3314
|
-
"description": "Index of initial swipe, start from 0, Default: `0`"
|
3315
|
-
},
|
3316
|
-
"van-swipe/width": {
|
3317
|
-
"type": "number | string",
|
3318
|
-
"description": "Width of swipe item, Default: `0`"
|
3319
|
-
},
|
3320
|
-
"van-swipe/height": {
|
3321
|
-
"type": "number | string",
|
3322
|
-
"description": "Height of swipe item, Default: `0`"
|
3323
|
-
},
|
3324
|
-
"van-swipe/loop": {
|
3325
|
-
"type": "boolean",
|
3326
|
-
"description": "Whether to enable loop, Default: `true`"
|
3327
|
-
},
|
3328
|
-
"van-swipe/show-indicators": {
|
3329
|
-
"type": "boolean",
|
3330
|
-
"description": "Whether to show indicators, Default: `true`"
|
3331
|
-
},
|
3332
|
-
"van-swipe/vertical": {
|
3333
|
-
"type": "boolean",
|
3334
|
-
"description": "Whether to be vertical Scrolling, Default: `false`"
|
3335
|
-
},
|
3336
|
-
"van-swipe/touchable": {
|
3337
|
-
"type": "boolean",
|
3338
|
-
"description": "Whether to allow swipe by touch gesture, Default: `true`"
|
3339
|
-
},
|
3340
|
-
"van-swipe/stop-propagation": {
|
3341
|
-
"type": "boolean",
|
3342
|
-
"description": "Whether to stop touchmove event propagation, Default: `false`"
|
3343
|
-
},
|
3344
|
-
"van-swipe/lazy-render": {
|
3345
|
-
"type": "boolean",
|
3346
|
-
"description": "Whether to enable lazy render, Default: `false`"
|
3347
|
-
},
|
3348
|
-
"van-swipe/indicator-color": {
|
3349
|
-
"type": "string",
|
3350
|
-
"description": "Indicator color, Default: `#1989fa`"
|
3351
|
-
},
|
3352
3286
|
"van-tag/type": {
|
3353
3287
|
"type": "string",
|
3354
3288
|
"description": "Type, can be set to `primary` `success` `danger` `warning`, Default: `default`"
|
@@ -3459,7 +3393,7 @@
|
|
3459
3393
|
},
|
3460
3394
|
"van-time-picker/swipe-duration": {
|
3461
3395
|
"type": "number | string",
|
3462
|
-
"description": "Duration of the momentum animation
|
3396
|
+
"description": "Duration of the momentum animation, unit `ms`, Default: `1000`"
|
3463
3397
|
},
|
3464
3398
|
"van-tree-select/items": {
|
3465
3399
|
"type": "TreeSelectItem[]",
|
@@ -3474,11 +3408,8 @@
|
|
3474
3408
|
"description": "The index of selected parent node, Default: `0`"
|
3475
3409
|
},
|
3476
3410
|
"van-tree-select/active-id": {
|
3477
|
-
"type": "number | string
|
3478
|
-
"description": "Id of selected item, Default:
|
3479
|
-
"options": [
|
3480
|
-
"string)[]_"
|
3481
|
-
]
|
3411
|
+
"type": "number | string |<br>(number | string)[]",
|
3412
|
+
"description": "Id of selected item, Default: `0`"
|
3482
3413
|
},
|
3483
3414
|
"van-tree-select/max": {
|
3484
3415
|
"type": "number | string",
|
@@ -3501,7 +3432,7 @@
|
|
3501
3432
|
"description": "Input name, Default: -"
|
3502
3433
|
},
|
3503
3434
|
"van-uploader/preview-size": {
|
3504
|
-
"type": "number | string",
|
3435
|
+
"type": "number | string | Array",
|
3505
3436
|
"description": "Size of preview image, Default: `80px`"
|
3506
3437
|
},
|
3507
3438
|
"van-uploader/preview-image": {
|
@@ -3514,7 +3445,7 @@
|
|
3514
3445
|
},
|
3515
3446
|
"van-uploader/preview-options": {
|
3516
3447
|
"type": "object",
|
3517
|
-
"description": "Options of full screen image preview
|
3448
|
+
"description": "Options of full screen image preview, see [ImagePreview](#/en-US/image-preview), Default: -"
|
3518
3449
|
},
|
3519
3450
|
"van-uploader/multiple": {
|
3520
3451
|
"type": "boolean",
|
@@ -3538,11 +3469,11 @@
|
|
3538
3469
|
},
|
3539
3470
|
"van-uploader/lazy-load": {
|
3540
3471
|
"type": "boolean",
|
3541
|
-
"description": "Whether to enable lazy load
|
3472
|
+
"description": "Whether to enable lazy load, should register [Lazyload](#/en-US/lazyload) component, Default: `false`"
|
3542
3473
|
},
|
3543
3474
|
"van-uploader/capture": {
|
3544
3475
|
"type": "string",
|
3545
|
-
"description": "Capture
|
3476
|
+
"description": "Capture, can be set to `camera`, Default: -"
|
3546
3477
|
},
|
3547
3478
|
"van-uploader/after-read": {
|
3548
3479
|
"type": "Function",
|
@@ -3557,11 +3488,8 @@
|
|
3557
3488
|
"description": "Hook before delete the file, return false to stop reading the file, can return Promise, Default: -"
|
3558
3489
|
},
|
3559
3490
|
"van-uploader/max-size": {
|
3560
|
-
"type": "number | string
|
3561
|
-
"description": "Max size of file, Default:
|
3562
|
-
"options": [
|
3563
|
-
"Infinity"
|
3564
|
-
]
|
3491
|
+
"type": "number | string | (file: File) => boolean",
|
3492
|
+
"description": "Max size of file, Default: `Infinity`"
|
3565
3493
|
},
|
3566
3494
|
"van-uploader/max-count": {
|
3567
3495
|
"type": "number | string",
|