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/tags.json
CHANGED
@@ -32,30 +32,28 @@
|
|
32
32
|
"replace"
|
33
33
|
]
|
34
34
|
},
|
35
|
-
"van-
|
35
|
+
"van-action-sheet": {
|
36
36
|
"attributes": [
|
37
|
-
"
|
38
|
-
"
|
39
|
-
"
|
40
|
-
"
|
41
|
-
"
|
42
|
-
"
|
43
|
-
"
|
44
|
-
"
|
45
|
-
"
|
46
|
-
"
|
47
|
-
"
|
48
|
-
"
|
49
|
-
"
|
50
|
-
"
|
51
|
-
"
|
52
|
-
"
|
53
|
-
"
|
54
|
-
"
|
55
|
-
"
|
56
|
-
"
|
57
|
-
"postal-validator",
|
58
|
-
"validator"
|
37
|
+
"v-model:show",
|
38
|
+
"actions",
|
39
|
+
"title",
|
40
|
+
"cancel-text",
|
41
|
+
"description",
|
42
|
+
"closeable",
|
43
|
+
"close-icon",
|
44
|
+
"duration",
|
45
|
+
"round",
|
46
|
+
"overlay",
|
47
|
+
"overlay-class",
|
48
|
+
"overlay-style",
|
49
|
+
"lock-scroll",
|
50
|
+
"lazy-render",
|
51
|
+
"close-on-popstate",
|
52
|
+
"close-on-click-action",
|
53
|
+
"close-on-click-overlay",
|
54
|
+
"safe-area-inset-bottom",
|
55
|
+
"teleport",
|
56
|
+
"before-close"
|
59
57
|
]
|
60
58
|
},
|
61
59
|
"van-address-list": {
|
@@ -85,28 +83,28 @@
|
|
85
83
|
"swipe-duration"
|
86
84
|
]
|
87
85
|
},
|
88
|
-
"van-
|
86
|
+
"van-address-edit": {
|
89
87
|
"attributes": [
|
90
|
-
"
|
91
|
-
"
|
92
|
-
"
|
93
|
-
"
|
94
|
-
"
|
95
|
-
"
|
96
|
-
"
|
97
|
-
"
|
98
|
-
"
|
99
|
-
"
|
100
|
-
"
|
101
|
-
"
|
102
|
-
"
|
103
|
-
"
|
104
|
-
"
|
105
|
-
"
|
106
|
-
"
|
107
|
-
"
|
108
|
-
"
|
109
|
-
"
|
88
|
+
"area-list",
|
89
|
+
"area-columns-placeholder",
|
90
|
+
"area-placeholder",
|
91
|
+
"address-info",
|
92
|
+
"search-result",
|
93
|
+
"show-delete",
|
94
|
+
"show-set-default",
|
95
|
+
"show-search-result",
|
96
|
+
"show-area",
|
97
|
+
"show-detail",
|
98
|
+
"disable-area",
|
99
|
+
"save-button-text",
|
100
|
+
"delete-button-text",
|
101
|
+
"detail-rows",
|
102
|
+
"detail-maxlength",
|
103
|
+
"is-saving",
|
104
|
+
"is-deleting",
|
105
|
+
"tel-validator",
|
106
|
+
"tel-maxlength",
|
107
|
+
"validator"
|
110
108
|
]
|
111
109
|
},
|
112
110
|
"van-badge": {
|
@@ -320,6 +318,15 @@
|
|
320
318
|
"label-class"
|
321
319
|
]
|
322
320
|
},
|
321
|
+
"van-contact-card": {
|
322
|
+
"attributes": [
|
323
|
+
"type",
|
324
|
+
"name",
|
325
|
+
"tel",
|
326
|
+
"add-text",
|
327
|
+
"editable"
|
328
|
+
]
|
329
|
+
},
|
323
330
|
"van-contact-edit": {
|
324
331
|
"attributes": [
|
325
332
|
"contact-info",
|
@@ -331,14 +338,6 @@
|
|
331
338
|
"set-default-label"
|
332
339
|
]
|
333
340
|
},
|
334
|
-
"van-contact-card": {
|
335
|
-
"attributes": [
|
336
|
-
"type",
|
337
|
-
"name",
|
338
|
-
"tel",
|
339
|
-
"add-text"
|
340
|
-
]
|
341
|
-
},
|
342
341
|
"van-config-provider": {
|
343
342
|
"attributes": [
|
344
343
|
"theme",
|
@@ -468,13 +467,6 @@
|
|
468
467
|
"teleport"
|
469
468
|
]
|
470
469
|
},
|
471
|
-
"van-empty": {
|
472
|
-
"attributes": [
|
473
|
-
"image",
|
474
|
-
"image-size",
|
475
|
-
"description"
|
476
|
-
]
|
477
|
-
},
|
478
470
|
"van-field": {
|
479
471
|
"attributes": [
|
480
472
|
"v-model",
|
@@ -513,24 +505,8 @@
|
|
513
505
|
"right-icon",
|
514
506
|
"icon-prefix",
|
515
507
|
"rules",
|
516
|
-
"autocomplete"
|
517
|
-
|
518
|
-
},
|
519
|
-
"van-form": {
|
520
|
-
"attributes": [
|
521
|
-
"label-width",
|
522
|
-
"label-align",
|
523
|
-
"input-align",
|
524
|
-
"error-message-align",
|
525
|
-
"validate-trigger",
|
526
|
-
"colon",
|
527
|
-
"disabled",
|
528
|
-
"readonly",
|
529
|
-
"validate-first",
|
530
|
-
"scroll-to-error",
|
531
|
-
"show-error",
|
532
|
-
"show-error-message",
|
533
|
-
"submit-on-enter"
|
508
|
+
"autocomplete",
|
509
|
+
"enterkeyhint"
|
534
510
|
]
|
535
511
|
},
|
536
512
|
"van-grid": {
|
@@ -542,7 +518,8 @@
|
|
542
518
|
"center",
|
543
519
|
"square",
|
544
520
|
"clickable",
|
545
|
-
"direction"
|
521
|
+
"direction",
|
522
|
+
"reverse"
|
546
523
|
]
|
547
524
|
},
|
548
525
|
"van-grid-item": {
|
@@ -551,7 +528,6 @@
|
|
551
528
|
"icon",
|
552
529
|
"icon-prefix",
|
553
530
|
"icon-color",
|
554
|
-
"reverse",
|
555
531
|
"dot",
|
556
532
|
"badge",
|
557
533
|
"badge-props",
|
@@ -560,6 +536,30 @@
|
|
560
536
|
"replace"
|
561
537
|
]
|
562
538
|
},
|
539
|
+
"van-form": {
|
540
|
+
"attributes": [
|
541
|
+
"label-width",
|
542
|
+
"label-align",
|
543
|
+
"input-align",
|
544
|
+
"error-message-align",
|
545
|
+
"validate-trigger",
|
546
|
+
"colon",
|
547
|
+
"disabled",
|
548
|
+
"readonly",
|
549
|
+
"validate-first",
|
550
|
+
"scroll-to-error",
|
551
|
+
"show-error",
|
552
|
+
"show-error-message",
|
553
|
+
"submit-on-enter"
|
554
|
+
]
|
555
|
+
},
|
556
|
+
"van-empty": {
|
557
|
+
"attributes": [
|
558
|
+
"image",
|
559
|
+
"image-size",
|
560
|
+
"description"
|
561
|
+
]
|
562
|
+
},
|
563
563
|
"van-icon": {
|
564
564
|
"attributes": [
|
565
565
|
"name",
|
@@ -699,17 +699,6 @@
|
|
699
699
|
"random-key-order"
|
700
700
|
]
|
701
701
|
},
|
702
|
-
"van-overlay": {
|
703
|
-
"attributes": [
|
704
|
-
"show",
|
705
|
-
"z-index",
|
706
|
-
"duration",
|
707
|
-
"class-name",
|
708
|
-
"custom-class",
|
709
|
-
"lock-scroll",
|
710
|
-
"lazy-render"
|
711
|
-
]
|
712
|
-
},
|
713
702
|
"van-pagination": {
|
714
703
|
"attributes": [
|
715
704
|
"v-model",
|
@@ -723,17 +712,6 @@
|
|
723
712
|
"force-ellipses"
|
724
713
|
]
|
725
714
|
},
|
726
|
-
"van-password-input": {
|
727
|
-
"attributes": [
|
728
|
-
"value",
|
729
|
-
"info",
|
730
|
-
"error-info",
|
731
|
-
"length",
|
732
|
-
"gutter",
|
733
|
-
"mask",
|
734
|
-
"focused"
|
735
|
-
]
|
736
|
-
},
|
737
715
|
"van-picker": {
|
738
716
|
"attributes": [
|
739
717
|
"columns",
|
@@ -795,6 +773,17 @@
|
|
795
773
|
"safe-area-inset-bottom"
|
796
774
|
]
|
797
775
|
},
|
776
|
+
"van-password-input": {
|
777
|
+
"attributes": [
|
778
|
+
"value",
|
779
|
+
"info",
|
780
|
+
"error-info",
|
781
|
+
"length",
|
782
|
+
"gutter",
|
783
|
+
"mask",
|
784
|
+
"focused"
|
785
|
+
]
|
786
|
+
},
|
798
787
|
"van-progress": {
|
799
788
|
"attributes": [
|
800
789
|
"percentage",
|
@@ -808,18 +797,15 @@
|
|
808
797
|
"show-pivot"
|
809
798
|
]
|
810
799
|
},
|
811
|
-
"van-
|
800
|
+
"van-overlay": {
|
812
801
|
"attributes": [
|
813
|
-
"
|
814
|
-
"
|
815
|
-
"
|
816
|
-
"
|
817
|
-
"
|
818
|
-
"
|
819
|
-
"
|
820
|
-
"head-height",
|
821
|
-
"pull-distance",
|
822
|
-
"disabled"
|
802
|
+
"show",
|
803
|
+
"z-index",
|
804
|
+
"duration",
|
805
|
+
"class-name",
|
806
|
+
"custom-class",
|
807
|
+
"lock-scroll",
|
808
|
+
"lazy-render"
|
823
809
|
]
|
824
810
|
},
|
825
811
|
"van-radio": {
|
@@ -842,6 +828,20 @@
|
|
842
828
|
"checked-color"
|
843
829
|
]
|
844
830
|
},
|
831
|
+
"van-pull-refresh": {
|
832
|
+
"attributes": [
|
833
|
+
"v-model",
|
834
|
+
"pulling-text",
|
835
|
+
"loosing-text",
|
836
|
+
"loading-text",
|
837
|
+
"success-text",
|
838
|
+
"success-duration",
|
839
|
+
"animation-duration",
|
840
|
+
"head-height",
|
841
|
+
"pull-distance",
|
842
|
+
"disabled"
|
843
|
+
]
|
844
|
+
},
|
845
845
|
"van-rate": {
|
846
846
|
"attributes": [
|
847
847
|
"v-model",
|
@@ -888,27 +888,6 @@
|
|
888
888
|
"autocomplete"
|
889
889
|
]
|
890
890
|
},
|
891
|
-
"van-share-sheet": {
|
892
|
-
"attributes": [
|
893
|
-
"v-model:show",
|
894
|
-
"options",
|
895
|
-
"title",
|
896
|
-
"cancel-text",
|
897
|
-
"description",
|
898
|
-
"duration",
|
899
|
-
"round",
|
900
|
-
"overlay",
|
901
|
-
"overlay-class",
|
902
|
-
"overlay-style",
|
903
|
-
"lock-scroll",
|
904
|
-
"lazy-render",
|
905
|
-
"close-on-popstate",
|
906
|
-
"close-on-click-overlay",
|
907
|
-
"safe-area-inset-bottom",
|
908
|
-
"teleport",
|
909
|
-
"before-close"
|
910
|
-
]
|
911
|
-
},
|
912
891
|
"van-sidebar": {
|
913
892
|
"attributes": [
|
914
893
|
"v-model"
|
@@ -940,6 +919,27 @@
|
|
940
919
|
"avatar-shape"
|
941
920
|
]
|
942
921
|
},
|
922
|
+
"van-share-sheet": {
|
923
|
+
"attributes": [
|
924
|
+
"v-model:show",
|
925
|
+
"options",
|
926
|
+
"title",
|
927
|
+
"cancel-text",
|
928
|
+
"description",
|
929
|
+
"duration",
|
930
|
+
"round",
|
931
|
+
"overlay",
|
932
|
+
"overlay-class",
|
933
|
+
"overlay-style",
|
934
|
+
"lock-scroll",
|
935
|
+
"lazy-render",
|
936
|
+
"close-on-popstate",
|
937
|
+
"close-on-click-overlay",
|
938
|
+
"safe-area-inset-bottom",
|
939
|
+
"teleport",
|
940
|
+
"before-close"
|
941
|
+
]
|
942
|
+
},
|
943
943
|
"van-slider": {
|
944
944
|
"attributes": [
|
945
945
|
"v-model",
|
@@ -983,6 +983,24 @@
|
|
983
983
|
"allow-empty"
|
984
984
|
]
|
985
985
|
},
|
986
|
+
"van-submit-bar": {
|
987
|
+
"attributes": [
|
988
|
+
"price",
|
989
|
+
"decimal-length",
|
990
|
+
"label",
|
991
|
+
"suffix-label",
|
992
|
+
"text-align",
|
993
|
+
"button-text",
|
994
|
+
"button-type",
|
995
|
+
"button-color",
|
996
|
+
"tip",
|
997
|
+
"tip-icon",
|
998
|
+
"currency",
|
999
|
+
"disabled",
|
1000
|
+
"loading",
|
1001
|
+
"safe-area-inset-bottom"
|
1002
|
+
]
|
1003
|
+
},
|
986
1004
|
"van-steps": {
|
987
1005
|
"attributes": [
|
988
1006
|
"active",
|
@@ -998,6 +1016,25 @@
|
|
998
1016
|
"van-step": {
|
999
1017
|
"attributes": []
|
1000
1018
|
},
|
1019
|
+
"van-swipe": {
|
1020
|
+
"attributes": [
|
1021
|
+
"autoplay",
|
1022
|
+
"duration",
|
1023
|
+
"initial-swipe",
|
1024
|
+
"width",
|
1025
|
+
"height",
|
1026
|
+
"loop",
|
1027
|
+
"show-indicators",
|
1028
|
+
"vertical",
|
1029
|
+
"touchable",
|
1030
|
+
"stop-propagation",
|
1031
|
+
"lazy-render",
|
1032
|
+
"indicator-color"
|
1033
|
+
]
|
1034
|
+
},
|
1035
|
+
"van-swipe-item": {
|
1036
|
+
"attributes": []
|
1037
|
+
},
|
1001
1038
|
"van-sticky": {
|
1002
1039
|
"attributes": [
|
1003
1040
|
"position",
|
@@ -1007,22 +1044,16 @@
|
|
1007
1044
|
"container"
|
1008
1045
|
]
|
1009
1046
|
},
|
1010
|
-
"van-
|
1047
|
+
"van-switch": {
|
1011
1048
|
"attributes": [
|
1012
|
-
"
|
1013
|
-
"decimal-length",
|
1014
|
-
"label",
|
1015
|
-
"suffix-label",
|
1016
|
-
"text-align",
|
1017
|
-
"button-text",
|
1018
|
-
"button-type",
|
1019
|
-
"button-color",
|
1020
|
-
"tip",
|
1021
|
-
"tip-icon",
|
1022
|
-
"currency",
|
1023
|
-
"disabled",
|
1049
|
+
"v-model",
|
1024
1050
|
"loading",
|
1025
|
-
"
|
1051
|
+
"disabled",
|
1052
|
+
"size",
|
1053
|
+
"active-color",
|
1054
|
+
"inactive-color",
|
1055
|
+
"active-value",
|
1056
|
+
"inactive-value"
|
1026
1057
|
]
|
1027
1058
|
},
|
1028
1059
|
"van-swipe-cell": {
|
@@ -1074,18 +1105,6 @@
|
|
1074
1105
|
"show-zero-badge"
|
1075
1106
|
]
|
1076
1107
|
},
|
1077
|
-
"van-switch": {
|
1078
|
-
"attributes": [
|
1079
|
-
"v-model",
|
1080
|
-
"loading",
|
1081
|
-
"disabled",
|
1082
|
-
"size",
|
1083
|
-
"active-color",
|
1084
|
-
"inactive-color",
|
1085
|
-
"active-value",
|
1086
|
-
"inactive-value"
|
1087
|
-
]
|
1088
|
-
},
|
1089
1108
|
"van-tabbar": {
|
1090
1109
|
"attributes": [
|
1091
1110
|
"v-model",
|
@@ -1113,25 +1132,6 @@
|
|
1113
1132
|
"replace"
|
1114
1133
|
]
|
1115
1134
|
},
|
1116
|
-
"van-swipe": {
|
1117
|
-
"attributes": [
|
1118
|
-
"autoplay",
|
1119
|
-
"duration",
|
1120
|
-
"initial-swipe",
|
1121
|
-
"width",
|
1122
|
-
"height",
|
1123
|
-
"loop",
|
1124
|
-
"show-indicators",
|
1125
|
-
"vertical",
|
1126
|
-
"touchable",
|
1127
|
-
"stop-propagation",
|
1128
|
-
"lazy-render",
|
1129
|
-
"indicator-color"
|
1130
|
-
]
|
1131
|
-
},
|
1132
|
-
"van-swipe-item": {
|
1133
|
-
"attributes": []
|
1134
|
-
},
|
1135
1135
|
"van-tag": {
|
1136
1136
|
"attributes": [
|
1137
1137
|
"type",
|