vant 4.0.0-alpha.3 → 4.0.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/es/action-bar/{ActionBar.js → ActionBar.mjs} +1 -1
- package/es/action-bar/{index.js → index.mjs} +2 -2
- package/es/action-bar/style/{index.js → index.mjs} +0 -0
- package/es/action-bar/style/{less.js → less.mjs} +0 -0
- package/es/action-bar-button/{ActionBarButton.js → ActionBarButton.mjs} +5 -5
- package/es/action-bar-button/{index.js → index.mjs} +2 -2
- package/es/action-bar-button/style/{index.js → index.mjs} +0 -0
- package/es/action-bar-button/style/{less.js → less.mjs} +0 -0
- package/es/action-bar-icon/{ActionBarIcon.js → ActionBarIcon.mjs} +5 -5
- package/es/action-bar-icon/{index.js → index.mjs} +2 -2
- package/es/action-bar-icon/style/{index.js → index.mjs} +0 -0
- package/es/action-bar-icon/style/{less.js → less.mjs} +0 -0
- package/es/action-sheet/{ActionSheet.js → ActionSheet.mjs} +5 -5
- package/es/action-sheet/{index.js → index.mjs} +2 -2
- package/es/action-sheet/style/{index.js → index.mjs} +0 -0
- package/es/action-sheet/style/{less.js → less.mjs} +0 -0
- package/es/address-edit/{AddressEdit.js → AddressEdit.mjs} +12 -12
- package/es/address-edit/{AddressEditDetail.js → AddressEditDetail.mjs} +3 -3
- package/es/address-edit/{index.js → index.mjs} +2 -2
- package/es/address-edit/style/{index.js → index.mjs} +0 -0
- package/es/address-edit/style/{less.js → less.mjs} +0 -0
- package/es/address-edit/{types.js → types.mjs} +0 -0
- package/es/address-list/{AddressList.js → AddressList.mjs} +4 -4
- package/es/address-list/{AddressListItem.js → AddressListItem.mjs} +5 -5
- package/es/address-list/{index.js → index.mjs} +2 -2
- package/es/address-list/style/{index.js → index.mjs} +0 -0
- package/es/address-list/style/{less.js → less.mjs} +0 -0
- package/es/area/{Area.js → Area.mjs} +5 -5
- package/es/area/{index.js → index.mjs} +2 -2
- package/es/area/style/{index.js → index.mjs} +0 -0
- package/es/area/style/{less.js → less.mjs} +0 -0
- package/es/area/{types.js → types.mjs} +0 -0
- package/es/area/{utils.js → utils.mjs} +0 -0
- package/es/badge/{Badge.js → Badge.mjs} +1 -1
- package/es/badge/{index.js → index.mjs} +2 -2
- package/es/badge/style/{index.js → index.mjs} +0 -0
- package/es/badge/style/{less.js → less.mjs} +0 -0
- package/es/button/{Button.js → Button.mjs} +4 -4
- package/es/button/{index.js → index.mjs} +2 -2
- package/es/button/style/{index.js → index.mjs} +0 -0
- package/es/button/style/{less.js → less.mjs} +0 -0
- package/es/button/{types.js → types.mjs} +0 -0
- package/es/calendar/{Calendar.js → Calendar.mjs} +9 -9
- package/es/calendar/{CalendarDay.js → CalendarDay.mjs} +2 -2
- package/es/calendar/{CalendarHeader.js → CalendarHeader.mjs} +2 -2
- package/es/calendar/{CalendarMonth.js → CalendarMonth.mjs} +6 -6
- package/es/calendar/{index.js → index.mjs} +2 -2
- package/es/calendar/style/{index.js → index.mjs} +0 -0
- package/es/calendar/style/{less.js → less.mjs} +0 -0
- package/es/calendar/{types.js → types.mjs} +0 -0
- package/es/calendar/{utils.js → utils.mjs} +1 -1
- package/es/card/{Card.js → Card.mjs} +3 -3
- package/es/card/{index.js → index.mjs} +2 -2
- package/es/card/style/{index.js → index.mjs} +0 -0
- package/es/card/style/{less.js → less.mjs} +0 -0
- package/es/cascader/{Cascader.js → Cascader.mjs} +4 -4
- package/es/cascader/{index.js → index.mjs} +2 -2
- package/es/cascader/style/{index.js → index.mjs} +0 -0
- package/es/cascader/style/{less.js → less.mjs} +0 -0
- package/es/cascader/{types.js → types.mjs} +0 -0
- package/es/cell/{Cell.js → Cell.mjs} +3 -3
- package/es/cell/{index.js → index.mjs} +2 -2
- package/es/cell/style/{index.js → index.mjs} +0 -0
- package/es/cell/style/{less.js → less.mjs} +0 -0
- package/es/cell-group/{CellGroup.js → CellGroup.mjs} +1 -1
- package/es/cell-group/{index.js → index.mjs} +2 -2
- package/es/cell-group/style/{index.js → index.mjs} +0 -0
- package/es/cell-group/style/{less.js → less.mjs} +0 -0
- package/es/checkbox/{Checkbox.js → Checkbox.mjs} +4 -4
- package/es/checkbox/{Checker.js → Checker.mjs} +2 -2
- package/es/checkbox/{index.js → index.mjs} +2 -2
- package/es/checkbox/style/{index.js → index.mjs} +0 -0
- package/es/checkbox/style/{less.js → less.mjs} +0 -0
- package/es/checkbox/{types.js → types.mjs} +0 -0
- package/es/checkbox-group/{CheckboxGroup.js → CheckboxGroup.mjs} +2 -2
- package/es/checkbox-group/{index.js → index.mjs} +2 -2
- package/es/checkbox-group/style/{index.js → index.mjs} +0 -0
- package/es/checkbox-group/style/{less.js → less.mjs} +0 -0
- package/es/checkbox-group/{types.js → types.mjs} +0 -0
- package/es/circle/{Circle.js → Circle.mjs} +1 -1
- package/es/circle/{index.js → index.mjs} +2 -2
- package/es/circle/style/{index.js → index.mjs} +0 -0
- package/es/circle/style/{less.js → less.mjs} +0 -0
- package/es/col/{Col.js → Col.mjs} +2 -2
- package/es/col/{index.js → index.mjs} +2 -2
- package/es/col/style/{index.js → index.mjs} +0 -0
- package/es/col/style/{less.js → less.mjs} +0 -0
- package/es/collapse/{Collapse.js → Collapse.mjs} +1 -1
- package/es/collapse/{index.js → index.mjs} +2 -2
- package/es/collapse/style/{index.js → index.mjs} +0 -0
- package/es/collapse/style/{less.js → less.mjs} +0 -0
- package/es/collapse-item/{CollapseItem.js → CollapseItem.mjs} +6 -6
- package/es/collapse-item/{index.js → index.mjs} +2 -2
- package/es/collapse-item/style/{index.js → index.mjs} +0 -0
- package/es/collapse-item/style/{less.js → less.mjs} +0 -0
- package/es/collapse-item/{types.js → types.mjs} +0 -0
- package/es/composables/{on-popup-reopen.js → on-popup-reopen.mjs} +0 -0
- package/es/composables/{use-expose.js → use-expose.mjs} +1 -1
- package/es/composables/{use-height.js → use-height.mjs} +0 -0
- package/es/composables/{use-id.js → use-id.mjs} +0 -0
- package/es/composables/{use-lazy-render.js → use-lazy-render.mjs} +0 -0
- package/es/composables/{use-lock-scroll.js → use-lock-scroll.mjs} +2 -2
- package/es/composables/{use-placeholder.js → use-placeholder.mjs} +1 -1
- package/es/composables/{use-refs.js → use-refs.mjs} +0 -0
- package/es/composables/{use-route.js → use-route.mjs} +0 -0
- package/es/composables/{use-tab-status.js → use-tab-status.mjs} +0 -0
- package/es/composables/{use-touch.js → use-touch.mjs} +0 -0
- package/es/composables/{use-visibility-change.js → use-visibility-change.mjs} +1 -1
- package/es/config-provider/{ConfigProvider.js → ConfigProvider.mjs} +1 -1
- package/es/config-provider/{index.js → index.mjs} +2 -2
- package/es/config-provider/style/{index.js → index.mjs} +0 -0
- package/es/config-provider/style/{less.js → less.mjs} +0 -0
- package/es/contact-card/{ContactCard.js → ContactCard.mjs} +2 -2
- package/es/contact-card/{index.js → index.mjs} +2 -2
- package/es/contact-card/style/{index.js → index.mjs} +0 -0
- package/es/contact-card/style/{less.js → less.mjs} +0 -0
- package/es/contact-edit/{ContactEdit.js → ContactEdit.mjs} +6 -6
- package/es/contact-edit/{index.js → index.mjs} +2 -2
- package/es/contact-edit/style/{index.js → index.mjs} +0 -0
- package/es/contact-edit/style/{less.js → less.mjs} +0 -0
- package/es/contact-list/{ContactList.js → ContactList.mjs} +7 -7
- package/es/contact-list/{index.js → index.mjs} +2 -2
- package/es/contact-list/style/{index.js → index.mjs} +0 -0
- package/es/contact-list/style/{less.js → less.mjs} +0 -0
- package/es/count-down/{CountDown.js → CountDown.mjs} +3 -3
- package/es/count-down/{index.js → index.mjs} +2 -2
- package/es/count-down/style/{index.js → index.mjs} +0 -0
- package/es/count-down/style/{less.js → less.mjs} +0 -0
- package/es/count-down/{types.js → types.mjs} +0 -0
- package/es/count-down/{utils.js → utils.mjs} +1 -1
- package/es/coupon/{Coupon.js → Coupon.mjs} +3 -3
- package/es/coupon/{index.js → index.mjs} +2 -2
- package/es/coupon/style/{index.js → index.mjs} +0 -0
- package/es/coupon/style/{less.js → less.mjs} +0 -0
- package/es/coupon/{utils.js → utils.mjs} +1 -1
- package/es/coupon-cell/{CouponCell.js → CouponCell.mjs} +2 -2
- package/es/coupon-cell/{index.js → index.mjs} +2 -2
- package/es/coupon-cell/style/{index.js → index.mjs} +0 -0
- package/es/coupon-cell/style/{less.js → less.mjs} +0 -0
- package/es/coupon-list/{CouponList.js → CouponList.mjs} +8 -8
- package/es/coupon-list/{index.js → index.mjs} +2 -2
- package/es/coupon-list/style/{index.js → index.mjs} +0 -0
- package/es/coupon-list/style/{less.js → less.mjs} +0 -0
- package/es/date-picker/{DatePicker.js → DatePicker.mjs} +3 -3
- package/es/date-picker/{index.js → index.mjs} +2 -2
- package/es/date-picker/style/{index.js → index.mjs} +0 -0
- package/es/date-picker/style/{less.js → less.mjs} +0 -0
- package/es/date-picker/{utils.js → utils.mjs} +2 -2
- package/es/dialog/{Dialog.js → Dialog.mjs} +6 -6
- package/es/dialog/{function-call.js → function-call.mjs} +3 -3
- package/es/dialog/{index.js → index.mjs} +1 -1
- package/es/dialog/style/{index.js → index.mjs} +0 -0
- package/es/dialog/style/{less.js → less.mjs} +0 -0
- package/es/dialog/{types.js → types.mjs} +0 -0
- package/es/divider/{Divider.js → Divider.mjs} +1 -1
- package/es/divider/{index.js → index.mjs} +2 -2
- package/es/divider/style/{index.js → index.mjs} +0 -0
- package/es/divider/style/{less.js → less.mjs} +0 -0
- package/es/dropdown-item/{DropdownItem.js → DropdownItem.mjs} +6 -6
- package/es/dropdown-item/{index.js → index.mjs} +2 -2
- package/es/dropdown-item/style/{index.js → index.mjs} +0 -0
- package/es/dropdown-item/style/{less.js → less.mjs} +0 -0
- package/es/dropdown-item/{types.js → types.mjs} +0 -0
- package/es/dropdown-menu/{DropdownMenu.js → DropdownMenu.mjs} +2 -2
- package/es/dropdown-menu/{index.js → index.mjs} +2 -2
- package/es/dropdown-menu/style/{index.js → index.mjs} +0 -0
- package/es/dropdown-menu/style/{less.js → less.mjs} +0 -0
- package/es/dropdown-menu/{types.js → types.mjs} +0 -0
- package/es/empty/{Empty.js → Empty.mjs} +2 -2
- package/es/empty/{Images.js → Images.mjs} +0 -0
- package/es/empty/{index.js → index.mjs} +2 -2
- package/es/empty/style/{index.js → index.mjs} +0 -0
- package/es/empty/style/{less.js → less.mjs} +0 -0
- package/es/field/{Field.js → Field.mjs} +20 -20
- package/es/field/index.d.ts +1 -1
- package/es/field/{index.js → index.mjs} +2 -2
- package/es/field/style/{index.js → index.mjs} +0 -0
- package/es/field/style/{less.js → less.mjs} +0 -0
- package/es/field/types.d.ts +2 -0
- package/es/field/{types.js → types.mjs} +0 -0
- package/es/field/{utils.js → utils.mjs} +1 -1
- package/es/form/{Form.js → Form.mjs} +8 -3
- package/es/form/{index.js → index.mjs} +2 -2
- package/es/form/style/{index.js → index.mjs} +0 -0
- package/es/form/style/{less.js → less.mjs} +0 -0
- package/es/form/types.d.ts +2 -0
- package/es/form/{types.js → types.mjs} +0 -0
- package/es/grid/{Grid.js → Grid.mjs} +2 -2
- package/es/grid/{index.js → index.mjs} +2 -2
- package/es/grid/style/{index.js → index.mjs} +0 -0
- package/es/grid/style/{less.js → less.mjs} +0 -0
- package/es/grid-item/{GridItem.js → GridItem.mjs} +5 -5
- package/es/grid-item/{index.js → index.mjs} +2 -2
- package/es/grid-item/style/{index.js → index.mjs} +0 -0
- package/es/grid-item/style/{less.js → less.mjs} +0 -0
- package/es/icon/{Icon.js → Icon.mjs} +3 -3
- package/es/icon/{index.js → index.mjs} +2 -2
- package/es/icon/style/{index.js → index.mjs} +0 -0
- package/es/icon/style/{less.js → less.mjs} +0 -0
- package/es/image/{Image.js → Image.mjs} +2 -2
- package/es/image/{index.js → index.mjs} +2 -2
- package/es/image/style/{index.js → index.mjs} +0 -0
- package/es/image/style/{less.js → less.mjs} +0 -0
- package/es/image-preview/{ImagePreview.js → ImagePreview.mjs} +6 -6
- package/es/image-preview/{ImagePreviewItem.js → ImagePreviewItem.mjs} +5 -5
- package/es/image-preview/{function-call.js → function-call.mjs} +3 -3
- package/es/image-preview/{index.js → index.mjs} +1 -1
- package/es/image-preview/style/{index.js → index.mjs} +0 -0
- package/es/image-preview/style/{less.js → less.mjs} +0 -0
- package/es/image-preview/{types.js → types.mjs} +0 -0
- package/es/index-anchor/{IndexAnchor.js → IndexAnchor.mjs} +4 -4
- package/es/index-anchor/{index.js → index.mjs} +2 -2
- package/es/index-anchor/style/{index.js → index.mjs} +0 -0
- package/es/index-anchor/style/{less.js → less.mjs} +0 -0
- package/es/index-bar/{IndexBar.js → IndexBar.mjs} +3 -3
- package/es/index-bar/{index.js → index.mjs} +2 -2
- package/es/index-bar/style/{index.js → index.mjs} +0 -0
- package/es/index-bar/style/{less.js → less.mjs} +0 -0
- package/es/index-bar/{types.js → types.mjs} +0 -0
- package/es/index.d.ts +1 -1
- package/es/index.mjs +280 -0
- package/es/lazyload/{index.js → index.mjs} +1 -1
- package/es/lazyload/style/{index.js → index.mjs} +0 -0
- package/es/lazyload/style/{less.js → less.mjs} +0 -0
- package/es/lazyload/vue-lazyload/{index.js → index.mjs} +4 -4
- package/es/lazyload/vue-lazyload/{lazy-component.js → lazy-component.mjs} +0 -0
- package/es/lazyload/vue-lazyload/{lazy-container.js → lazy-container.mjs} +1 -1
- package/es/lazyload/vue-lazyload/{lazy-image.js → lazy-image.mjs} +2 -2
- package/es/lazyload/vue-lazyload/{lazy.js → lazy.mjs} +3 -3
- package/es/lazyload/vue-lazyload/{listener.js → listener.mjs} +2 -2
- package/es/lazyload/vue-lazyload/{util.js → util.mjs} +0 -0
- package/es/list/{List.js → List.mjs} +4 -4
- package/es/list/{index.js → index.mjs} +2 -2
- package/es/list/style/{index.js → index.mjs} +0 -0
- package/es/list/style/{less.js → less.mjs} +0 -0
- package/es/list/{types.js → types.mjs} +0 -0
- package/es/loading/{Loading.js → Loading.mjs} +1 -1
- package/es/loading/{index.js → index.mjs} +2 -2
- package/es/loading/style/{index.js → index.mjs} +0 -0
- package/es/loading/style/{less.js → less.mjs} +0 -0
- package/es/locale/{index.js → index.mjs} +2 -2
- package/es/locale/lang/bg-BG.d.ts +64 -0
- package/es/locale/lang/bg-BG.mjs +74 -0
- package/es/locale/lang/{bn-BD.js → bn-BD.mjs} +0 -0
- package/es/locale/lang/{da-DK.js → da-DK.mjs} +0 -0
- package/es/locale/lang/{de-DE-formal.js → de-DE-formal.mjs} +0 -0
- package/es/locale/lang/{de-DE.js → de-DE.mjs} +0 -0
- package/es/locale/lang/el-GR.d.ts +64 -0
- package/es/locale/lang/el-GR.mjs +74 -0
- package/es/locale/lang/{en-US.js → en-US.mjs} +0 -0
- package/es/locale/lang/{es-ES.js → es-ES.mjs} +0 -0
- package/es/locale/lang/fa-IR.d.ts +64 -0
- package/es/locale/lang/fa-IR.mjs +74 -0
- package/es/locale/lang/{fr-FR.js → fr-FR.mjs} +0 -0
- package/es/locale/lang/he-IL.d.ts +64 -0
- package/es/locale/lang/he-IL.mjs +66 -0
- package/es/locale/lang/{hi-IN.js → hi-IN.mjs} +0 -0
- package/es/locale/lang/{id-ID.js → id-ID.mjs} +0 -0
- package/es/locale/lang/{is-IS.js → is-IS.mjs} +0 -0
- package/es/locale/lang/{it-IT.js → it-IT.mjs} +0 -0
- package/es/locale/lang/{ja-JP.js → ja-JP.mjs} +0 -0
- package/es/locale/lang/{ko-KR.js → ko-KR.mjs} +0 -0
- package/es/locale/lang/{la-LA.js → la-LA.mjs} +0 -0
- package/es/locale/lang/{nb-NO.js → nb-NO.mjs} +0 -0
- package/es/locale/lang/{pt-BR.js → pt-BR.mjs} +0 -0
- package/es/locale/lang/{ro-RO.js → ro-RO.mjs} +0 -0
- package/es/locale/lang/{ru-RU.js → ru-RU.mjs} +0 -0
- package/es/locale/lang/{sv-SE.js → sv-SE.mjs} +0 -0
- package/es/locale/lang/{th-TH.js → th-TH.mjs} +0 -0
- package/es/locale/lang/{tr-TR.js → tr-TR.mjs} +0 -0
- package/es/locale/lang/{uk-UA.js → uk-UA.mjs} +0 -0
- package/es/locale/lang/{vi-VN.js → vi-VN.mjs} +0 -0
- package/es/locale/lang/{zh-CN.js → zh-CN.mjs} +0 -0
- package/es/locale/lang/{zh-HK.js → zh-HK.mjs} +0 -0
- package/es/locale/lang/{zh-TW.js → zh-TW.mjs} +0 -0
- package/es/locale/style/{index.js → index.mjs} +0 -0
- package/es/locale/style/{less.js → less.mjs} +0 -0
- package/es/nav-bar/{NavBar.js → NavBar.mjs} +3 -3
- package/es/nav-bar/{index.js → index.mjs} +2 -2
- package/es/nav-bar/style/{index.js → index.mjs} +0 -0
- package/es/nav-bar/style/{less.js → less.mjs} +0 -0
- package/es/notice-bar/{NoticeBar.js → NoticeBar.mjs} +4 -4
- package/es/notice-bar/{index.js → index.mjs} +2 -2
- package/es/notice-bar/style/{index.js → index.mjs} +0 -0
- package/es/notice-bar/style/{less.js → less.mjs} +0 -0
- package/es/notice-bar/{types.js → types.mjs} +0 -0
- package/es/notify/{Notify.js → Notify.mjs} +3 -3
- package/es/notify/{function-call.js → function-call.mjs} +3 -3
- package/es/notify/{index.js → index.mjs} +1 -1
- package/es/notify/style/{index.js → index.mjs} +0 -0
- package/es/notify/style/{less.js → less.mjs} +0 -0
- package/es/notify/{types.js → types.mjs} +0 -0
- package/es/number-keyboard/{NumberKeyboard.js → NumberKeyboard.mjs} +2 -2
- package/es/number-keyboard/{NumberKeyboardKey.js → NumberKeyboardKey.mjs} +3 -3
- package/es/number-keyboard/{index.js → index.mjs} +2 -2
- package/es/number-keyboard/style/{index.js → index.mjs} +0 -0
- package/es/number-keyboard/style/{less.js → less.mjs} +0 -0
- package/es/overlay/{Overlay.js → Overlay.mjs} +2 -2
- package/es/overlay/{index.js → index.mjs} +2 -2
- package/es/overlay/style/{index.js → index.mjs} +0 -0
- package/es/overlay/style/{less.js → less.mjs} +0 -0
- package/es/pagination/{Pagination.js → Pagination.mjs} +1 -1
- package/es/pagination/{index.js → index.mjs} +2 -2
- package/es/pagination/style/{index.js → index.mjs} +0 -0
- package/es/pagination/style/{less.js → less.mjs} +0 -0
- package/es/password-input/{PasswordInput.js → PasswordInput.mjs} +1 -1
- package/es/password-input/{index.js → index.mjs} +2 -2
- package/es/password-input/style/{index.js → index.mjs} +0 -0
- package/es/password-input/style/{less.js → less.mjs} +0 -0
- package/es/picker/{Picker.js → Picker.mjs} +5 -5
- package/es/picker/{PickerColumn.js → PickerColumn.mjs} +4 -4
- package/es/picker/{index.js → index.mjs} +2 -2
- package/es/picker/style/{index.js → index.mjs} +0 -0
- package/es/picker/style/{less.js → less.mjs} +0 -0
- package/es/picker/{types.js → types.mjs} +0 -0
- package/es/picker/{utils.js → utils.mjs} +1 -1
- package/es/popover/{Popover.js → Popover.mjs} +3 -3
- package/es/popover/{index.js → index.mjs} +2 -2
- package/es/popover/style/{index.js → index.mjs} +0 -0
- package/es/popover/style/{less.js → less.mjs} +0 -0
- package/es/popover/{types.js → types.mjs} +0 -0
- package/es/popup/{Popup.js → Popup.mjs} +8 -8
- package/es/popup/{index.js → index.mjs} +2 -2
- package/es/popup/{shared.js → shared.mjs} +1 -1
- package/es/popup/style/{index.js → index.mjs} +0 -0
- package/es/popup/style/{less.js → less.mjs} +0 -0
- package/es/popup/{types.js → types.mjs} +0 -0
- package/es/progress/{Progress.js → Progress.mjs} +1 -1
- package/es/progress/{index.js → index.mjs} +2 -2
- package/es/progress/style/{index.js → index.mjs} +0 -0
- package/es/progress/style/{less.js → less.mjs} +0 -0
- package/es/progress/{types.js → types.mjs} +0 -0
- package/es/pull-refresh/{PullRefresh.js → PullRefresh.mjs} +3 -3
- package/es/pull-refresh/{index.js → index.mjs} +2 -2
- package/es/pull-refresh/style/{index.js → index.mjs} +0 -0
- package/es/pull-refresh/style/{less.js → less.mjs} +0 -0
- package/es/radio/{Radio.js → Radio.mjs} +3 -3
- package/es/radio/{index.js → index.mjs} +2 -2
- package/es/radio/style/{index.js → index.mjs} +0 -0
- package/es/radio/style/{less.js → less.mjs} +0 -0
- package/es/radio-group/{RadioGroup.js → RadioGroup.mjs} +1 -1
- package/es/radio-group/{index.js → index.mjs} +2 -2
- package/es/radio-group/style/{index.js → index.mjs} +0 -0
- package/es/radio-group/style/{less.js → less.mjs} +0 -0
- package/es/rate/{Rate.js → Rate.mjs} +4 -4
- package/es/rate/{index.js → index.mjs} +2 -2
- package/es/rate/style/{index.js → index.mjs} +0 -0
- package/es/rate/style/{less.js → less.mjs} +0 -0
- package/es/row/{Row.js → Row.mjs} +1 -1
- package/es/row/{index.js → index.mjs} +2 -2
- package/es/row/style/{index.js → index.mjs} +0 -0
- package/es/row/style/{less.js → less.mjs} +0 -0
- package/es/search/{Search.js → Search.mjs} +5 -5
- package/es/search/{index.js → index.mjs} +2 -2
- package/es/search/style/{index.js → index.mjs} +0 -0
- package/es/search/style/{less.js → less.mjs} +0 -0
- package/es/search/{types.js → types.mjs} +0 -0
- package/es/share-sheet/{ShareSheet.js → ShareSheet.mjs} +4 -4
- package/es/share-sheet/{index.js → index.mjs} +2 -2
- package/es/share-sheet/style/{index.js → index.mjs} +0 -0
- package/es/share-sheet/style/{less.js → less.mjs} +0 -0
- package/es/sidebar/{Sidebar.js → Sidebar.mjs} +1 -1
- package/es/sidebar/{index.js → index.mjs} +2 -2
- package/es/sidebar/style/{index.js → index.mjs} +0 -0
- package/es/sidebar/style/{less.js → less.mjs} +0 -0
- package/es/sidebar-item/{SidebarItem.js → SidebarItem.mjs} +4 -4
- package/es/sidebar-item/{index.js → index.mjs} +2 -2
- package/es/sidebar-item/style/{index.js → index.mjs} +0 -0
- package/es/sidebar-item/style/{less.js → less.mjs} +0 -0
- package/es/skeleton/{Skeleton.js → Skeleton.mjs} +1 -1
- package/es/skeleton/{index.js → index.mjs} +2 -2
- package/es/skeleton/style/{index.js → index.mjs} +0 -0
- package/es/skeleton/style/{less.js → less.mjs} +0 -0
- package/es/slider/{Slider.js → Slider.mjs} +2 -2
- package/es/slider/{index.js → index.mjs} +2 -2
- package/es/slider/style/{index.js → index.mjs} +0 -0
- package/es/slider/style/{less.js → less.mjs} +0 -0
- package/es/step/{Step.js → Step.mjs} +3 -3
- package/es/step/{index.js → index.mjs} +2 -2
- package/es/step/style/{index.js → index.mjs} +0 -0
- package/es/step/style/{less.js → less.mjs} +0 -0
- package/es/stepper/{Stepper.js → Stepper.mjs} +1 -1
- package/es/stepper/{index.js → index.mjs} +2 -2
- package/es/stepper/style/{index.js → index.mjs} +0 -0
- package/es/stepper/style/{less.js → less.mjs} +0 -0
- package/es/steps/{Steps.js → Steps.mjs} +1 -1
- package/es/steps/{index.js → index.mjs} +2 -2
- package/es/steps/style/{index.js → index.mjs} +0 -0
- package/es/steps/style/{less.js → less.mjs} +0 -0
- package/es/sticky/{Sticky.js → Sticky.mjs} +2 -2
- package/es/sticky/{index.js → index.mjs} +2 -2
- package/es/sticky/style/{index.js → index.mjs} +0 -0
- package/es/sticky/style/{less.js → less.mjs} +0 -0
- package/es/submit-bar/{SubmitBar.js → SubmitBar.mjs} +3 -3
- package/es/submit-bar/{index.js → index.mjs} +2 -2
- package/es/submit-bar/style/{index.js → index.mjs} +0 -0
- package/es/submit-bar/style/{less.js → less.mjs} +0 -0
- package/es/swipe/{Swipe.js → Swipe.mjs} +4 -4
- package/es/swipe/{index.js → index.mjs} +2 -2
- package/es/swipe/style/{index.js → index.mjs} +0 -0
- package/es/swipe/style/{less.js → less.mjs} +0 -0
- package/es/swipe/{types.js → types.mjs} +0 -0
- package/es/swipe-cell/{SwipeCell.js → SwipeCell.mjs} +3 -3
- package/es/swipe-cell/{index.js → index.mjs} +2 -2
- package/es/swipe-cell/style/{index.js → index.mjs} +0 -0
- package/es/swipe-cell/style/{less.js → less.mjs} +0 -0
- package/es/swipe-cell/{types.js → types.mjs} +0 -0
- package/es/swipe-item/{SwipeItem.js → SwipeItem.mjs} +3 -3
- package/es/swipe-item/{index.js → index.mjs} +2 -2
- package/es/swipe-item/style/{index.js → index.mjs} +0 -0
- package/es/swipe-item/style/{less.js → less.mjs} +0 -0
- package/es/switch/{Switch.js → Switch.mjs} +7 -3
- package/es/switch/{index.js → index.mjs} +2 -2
- package/es/switch/style/{index.js → index.mjs} +0 -0
- package/es/switch/style/{less.js → less.mjs} +0 -0
- package/es/tab/{Tab.js → Tab.mjs} +7 -7
- package/es/tab/{index.js → index.mjs} +2 -2
- package/es/tab/style/{index.js → index.mjs} +0 -0
- package/es/tab/style/{less.js → less.mjs} +0 -0
- package/es/tabbar/{Tabbar.js → Tabbar.mjs} +2 -2
- package/es/tabbar/{index.js → index.mjs} +2 -2
- package/es/tabbar/style/{index.js → index.mjs} +0 -0
- package/es/tabbar/style/{less.js → less.mjs} +0 -0
- package/es/tabbar-item/{TabbarItem.js → TabbarItem.mjs} +5 -5
- package/es/tabbar-item/{index.js → index.mjs} +2 -2
- package/es/tabbar-item/style/{index.js → index.mjs} +0 -0
- package/es/tabbar-item/style/{less.js → less.mjs} +0 -0
- package/es/tabs/{Tabs.js → Tabs.mjs} +10 -10
- package/es/tabs/{TabsContent.js → TabsContent.mjs} +2 -2
- package/es/tabs/{TabsTitle.js → TabsTitle.mjs} +2 -2
- package/es/tabs/{index.js → index.mjs} +2 -2
- package/es/tabs/style/{index.js → index.mjs} +0 -0
- package/es/tabs/style/{less.js → less.mjs} +0 -0
- package/es/tabs/{types.js → types.mjs} +0 -0
- package/es/tabs/{utils.js → utils.mjs} +1 -1
- package/es/tag/{Tag.js → Tag.mjs} +2 -2
- package/es/tag/{index.js → index.mjs} +2 -2
- package/es/tag/style/{index.js → index.mjs} +0 -0
- package/es/tag/style/{less.js → less.mjs} +0 -0
- package/es/time-picker/{TimePicker.js → TimePicker.mjs} +3 -3
- package/es/time-picker/{index.js → index.mjs} +2 -2
- package/es/time-picker/style/{index.js → index.mjs} +0 -0
- package/es/time-picker/style/{less.js → less.mjs} +0 -0
- package/es/toast/{Toast.js → Toast.mjs} +5 -5
- package/es/toast/{function-call.js → function-call.mjs} +3 -3
- package/es/toast/{index.js → index.mjs} +1 -1
- package/es/toast/{lock-click.js → lock-click.mjs} +0 -0
- package/es/toast/style/{index.js → index.mjs} +0 -0
- package/es/toast/style/{less.js → less.mjs} +0 -0
- package/es/toast/{types.js → types.mjs} +0 -0
- package/es/tree-select/{TreeSelect.js → TreeSelect.mjs} +4 -4
- package/es/tree-select/{index.js → index.mjs} +2 -2
- package/es/tree-select/style/{index.js → index.mjs} +0 -0
- package/es/tree-select/style/{less.js → less.mjs} +0 -0
- package/es/uploader/{Uploader.js → Uploader.mjs} +7 -9
- package/es/uploader/{UploaderPreviewItem.js → UploaderPreviewItem.mjs} +10 -7
- package/es/uploader/index.css +1 -1
- package/es/uploader/index.less +7 -4
- package/es/uploader/{index.js → index.mjs} +2 -2
- package/es/uploader/style/{index.js → index.mjs} +0 -0
- package/es/uploader/style/{less.js → less.mjs} +0 -0
- package/es/uploader/{types.js → types.mjs} +0 -0
- package/es/uploader/{utils.js → utils.mjs} +1 -1
- package/es/utils/{basic.js → basic.mjs} +0 -0
- package/es/utils/{constant.js → constant.mjs} +0 -0
- package/es/utils/{create.js → create.mjs} +4 -4
- package/es/utils/{deep-assign.js → deep-assign.mjs} +1 -1
- package/es/utils/{deep-clone.js → deep-clone.mjs} +1 -1
- package/es/utils/{dom.js → dom.mjs} +1 -1
- package/es/utils/{format.js → format.mjs} +3 -3
- package/es/utils/index.mjs +9 -0
- package/es/utils/{interceptor.js → interceptor.mjs} +2 -2
- package/es/utils/{mount-component.js → mount-component.mjs} +2 -2
- package/es/utils/{props.js → props.mjs} +0 -0
- package/es/utils/{validate.js → validate.mjs} +1 -1
- package/es/utils/{with-install.js → with-install.mjs} +1 -1
- package/lib/field/Field.js +13 -13
- package/lib/field/index.d.ts +1 -1
- package/lib/field/types.d.ts +2 -0
- package/lib/form/Form.js +6 -1
- package/lib/form/types.d.ts +2 -0
- package/lib/index.css +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/lang/bg-BG.d.ts +64 -0
- package/lib/locale/lang/bg-BG.js +93 -0
- package/lib/locale/lang/el-GR.d.ts +64 -0
- package/lib/locale/lang/el-GR.js +93 -0
- package/lib/locale/lang/fa-IR.d.ts +64 -0
- package/lib/locale/lang/fa-IR.js +93 -0
- package/lib/locale/lang/he-IL.d.ts +64 -0
- package/lib/locale/lang/he-IL.js +85 -0
- package/lib/switch/Switch.js +5 -1
- package/lib/uploader/Uploader.js +1 -3
- package/lib/uploader/UploaderPreviewItem.js +5 -2
- package/lib/uploader/index.css +1 -1
- package/lib/uploader/index.less +7 -4
- package/lib/vant.cjs.js +32 -23
- package/lib/vant.cjs.min.js +1 -1
- package/lib/vant.es.js +31 -21
- package/lib/vant.es.min.js +31 -21
- package/lib/vant.js +108 -62
- package/lib/vant.min.js +1 -1
- package/package.json +6 -21
- package/vetur/attributes.json +350 -350
- package/vetur/tags.json +115 -115
- package/vetur/web-types.json +1177 -1168
- package/changelog.generated.md +0 -198
- package/es/index.js +0 -280
- package/es/utils/index.js +0 -9
File without changes
|
File without changes
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { createVNode as _createVNode } from "vue";
|
2
2
|
import { defineComponent } from "vue";
|
3
|
-
import { getSizeStyle, makeStringProp, createNamespace } from "../utils";
|
4
|
-
import { renderError, renderSearch, renderNetwork, renderMaterial } from "./Images";
|
3
|
+
import { getSizeStyle, makeStringProp, createNamespace } from "../utils/index.mjs";
|
4
|
+
import { renderError, renderSearch, renderNetwork, renderMaterial } from "./Images.mjs";
|
5
5
|
const [name, bem] = createNamespace("empty");
|
6
6
|
const PRESET_IMAGES = {
|
7
7
|
error: renderError,
|
File without changes
|
File without changes
|
File without changes
|
@@ -1,13 +1,13 @@
|
|
1
1
|
import { createTextVNode as _createTextVNode, mergeProps as _mergeProps, createVNode as _createVNode } from "vue";
|
2
2
|
import { ref, watch, provide, computed, nextTick, reactive, onMounted, defineComponent } from "vue";
|
3
|
-
import { isDef, extend, addUnit, toArray, FORM_KEY, numericProp, unknownProp, resetScroll, formatNumber, preventDefault, makeStringProp, makeNumericProp, createNamespace } from "../utils";
|
4
|
-
import { cutString, runSyncRule, endComposing, mapInputType, startComposing, getRuleMessage, resizeTextarea, getStringLength, runRuleValidator } from "./utils";
|
5
|
-
import { cellSharedProps } from "../cell/Cell";
|
3
|
+
import { isDef, extend, addUnit, toArray, FORM_KEY, numericProp, unknownProp, resetScroll, formatNumber, preventDefault, makeStringProp, makeNumericProp, createNamespace } from "../utils/index.mjs";
|
4
|
+
import { cutString, runSyncRule, endComposing, mapInputType, startComposing, getRuleMessage, resizeTextarea, getStringLength, runRuleValidator } from "./utils.mjs";
|
5
|
+
import { cellSharedProps } from "../cell/Cell.mjs";
|
6
6
|
import { CUSTOM_FIELD_INJECTION_KEY, useParent } from "@vant/use";
|
7
|
-
import { useId } from "../composables/use-id";
|
8
|
-
import { useExpose } from "../composables/use-expose";
|
9
|
-
import { Icon } from "../icon";
|
10
|
-
import { Cell } from "../cell";
|
7
|
+
import { useId } from "../composables/use-id.mjs";
|
8
|
+
import { useExpose } from "../composables/use-expose.mjs";
|
9
|
+
import { Icon } from "../icon/index.mjs";
|
10
|
+
import { Cell } from "../cell/index.mjs";
|
11
11
|
const [name, bem] = createNamespace("field");
|
12
12
|
const fieldSharedProps = {
|
13
13
|
id: String,
|
@@ -65,8 +65,8 @@ var stdin_default = defineComponent({
|
|
65
65
|
}) {
|
66
66
|
const id = useId();
|
67
67
|
const state = reactive({
|
68
|
+
status: "unvalidated",
|
68
69
|
focused: false,
|
69
|
-
validateFailed: false,
|
70
70
|
validateMessage: ""
|
71
71
|
});
|
72
72
|
const inputRef = ref();
|
@@ -102,7 +102,7 @@ var stdin_default = defineComponent({
|
|
102
102
|
return props.modelValue;
|
103
103
|
});
|
104
104
|
const runRules = (rules) => rules.reduce((promise, rule) => promise.then(() => {
|
105
|
-
if (state.
|
105
|
+
if (state.status === "failed") {
|
106
106
|
return;
|
107
107
|
}
|
108
108
|
let {
|
@@ -112,38 +112,37 @@ var stdin_default = defineComponent({
|
|
112
112
|
value = rule.formatter(value, rule);
|
113
113
|
}
|
114
114
|
if (!runSyncRule(value, rule)) {
|
115
|
-
state.
|
115
|
+
state.status = "failed";
|
116
116
|
state.validateMessage = getRuleMessage(value, rule);
|
117
117
|
return;
|
118
118
|
}
|
119
119
|
if (rule.validator) {
|
120
120
|
return runRuleValidator(value, rule).then((result) => {
|
121
121
|
if (result && typeof result === "string") {
|
122
|
-
state.
|
122
|
+
state.status = "failed";
|
123
123
|
state.validateMessage = result;
|
124
124
|
} else if (result === false) {
|
125
|
-
state.
|
125
|
+
state.status = "failed";
|
126
126
|
state.validateMessage = getRuleMessage(value, rule);
|
127
127
|
}
|
128
128
|
});
|
129
129
|
}
|
130
130
|
}), Promise.resolve());
|
131
131
|
const resetValidation = () => {
|
132
|
-
|
133
|
-
|
134
|
-
state.validateMessage = "";
|
135
|
-
}
|
132
|
+
state.status = "unvalidated";
|
133
|
+
state.validateMessage = "";
|
136
134
|
};
|
137
135
|
const validate = (rules = props.rules) => new Promise((resolve) => {
|
138
136
|
resetValidation();
|
139
137
|
if (rules) {
|
140
138
|
runRules(rules).then(() => {
|
141
|
-
if (state.
|
139
|
+
if (state.status === "failed") {
|
142
140
|
resolve({
|
143
141
|
name: props.name,
|
144
142
|
message: state.validateMessage
|
145
143
|
});
|
146
144
|
} else {
|
145
|
+
state.status = "passed";
|
147
146
|
resolve();
|
148
147
|
}
|
149
148
|
});
|
@@ -247,7 +246,7 @@ var stdin_default = defineComponent({
|
|
247
246
|
if (typeof props.error === "boolean") {
|
248
247
|
return props.error;
|
249
248
|
}
|
250
|
-
if (form && form.props.showError && state.
|
249
|
+
if (form && form.props.showError && state.status === "failed") {
|
251
250
|
return true;
|
252
251
|
}
|
253
252
|
});
|
@@ -273,6 +272,7 @@ var stdin_default = defineComponent({
|
|
273
272
|
emit("keypress", event);
|
274
273
|
};
|
275
274
|
const getInputId = () => props.id || `${id}-input`;
|
275
|
+
const getValidationStatus = () => state.status;
|
276
276
|
const renderInput = () => {
|
277
277
|
const controlClass = bem("control", [getProp("inputAlign"), {
|
278
278
|
error: showError.value,
|
@@ -291,7 +291,6 @@ var stdin_default = defineComponent({
|
|
291
291
|
name: props.name,
|
292
292
|
rows: props.rows !== void 0 ? +props.rows : void 0,
|
293
293
|
class: controlClass,
|
294
|
-
value: props.modelValue,
|
295
294
|
disabled: getProp("disabled"),
|
296
295
|
readonly: getProp("readonly"),
|
297
296
|
autofocus: props.autofocus,
|
@@ -388,7 +387,8 @@ var stdin_default = defineComponent({
|
|
388
387
|
focus,
|
389
388
|
validate,
|
390
389
|
formValue,
|
391
|
-
resetValidation
|
390
|
+
resetValidation,
|
391
|
+
getValidationStatus
|
392
392
|
});
|
393
393
|
provide(CUSTOM_FIELD_INJECTION_KEY, {
|
394
394
|
customValue,
|
package/es/field/index.d.ts
CHANGED
@@ -193,7 +193,7 @@ export declare const Field: import("../utils").WithInstall<import("vue").DefineC
|
|
193
193
|
}>>;
|
194
194
|
export default Field;
|
195
195
|
export type { FieldProps };
|
196
|
-
export type { FieldType, FieldRule, FieldInstance, FieldTextAlign, FieldRuleMessage, FieldClearTrigger, FieldFormatTrigger, FieldRuleValidator, FiledRuleFormatter, FieldValidateError, FieldAutosizeConfig, FieldValidateTrigger, } from './types';
|
196
|
+
export type { FieldType, FieldRule, FieldInstance, FieldTextAlign, FieldRuleMessage, FieldClearTrigger, FieldFormatTrigger, FieldRuleValidator, FiledRuleFormatter, FieldValidateError, FieldAutosizeConfig, FieldValidateTrigger, FieldValidationStatus, } from './types';
|
197
197
|
declare module 'vue' {
|
198
198
|
interface GlobalComponents {
|
199
199
|
VanField: typeof Field;
|
File without changes
|
File without changes
|
package/es/field/types.d.ts
CHANGED
@@ -24,12 +24,14 @@ export declare type FieldRule = {
|
|
24
24
|
validator?: FieldRuleValidator;
|
25
25
|
formatter?: FiledRuleFormatter;
|
26
26
|
};
|
27
|
+
export declare type FieldValidationStatus = 'passed' | 'failed' | 'unvalidated';
|
27
28
|
export declare type FieldFormSharedProps = 'colon' | 'disabled' | 'readonly' | 'labelWidth' | 'labelAlign' | 'inputAlign' | 'errorMessageAlign';
|
28
29
|
export declare type FieldExpose = {
|
29
30
|
blur: () => void | undefined;
|
30
31
|
focus: () => void | undefined;
|
31
32
|
validate: (rules?: FieldRule[] | undefined) => Promise<void | FieldValidateError>;
|
32
33
|
resetValidation: () => void;
|
34
|
+
getValidationStatus: () => FieldValidationStatus;
|
33
35
|
/** @private */
|
34
36
|
formValue: ComputedRef<unknown>;
|
35
37
|
};
|
File without changes
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { createVNode as _createVNode } from "vue";
|
2
2
|
import { defineComponent } from "vue";
|
3
|
-
import { FORM_KEY, truthProp, numericProp, preventDefault, createNamespace } from "../utils";
|
3
|
+
import { FORM_KEY, truthProp, numericProp, preventDefault, createNamespace } from "../utils/index.mjs";
|
4
4
|
import { useChildren } from "@vant/use";
|
5
|
-
import { useExpose } from "../composables/use-expose";
|
5
|
+
import { useExpose } from "../composables/use-expose.mjs";
|
6
6
|
const [name, bem] = createNamespace("form");
|
7
7
|
const formProps = {
|
8
8
|
colon: Boolean,
|
@@ -100,6 +100,10 @@ var stdin_default = defineComponent({
|
|
100
100
|
item.resetValidation();
|
101
101
|
});
|
102
102
|
};
|
103
|
+
const getValidationStatus = () => children.reduce((form, field) => {
|
104
|
+
form[field.name] = field.getValidationStatus();
|
105
|
+
return form;
|
106
|
+
}, {});
|
103
107
|
const scrollToField = (name2, options) => {
|
104
108
|
children.some((item) => {
|
105
109
|
if (item.name === name2) {
|
@@ -137,7 +141,8 @@ var stdin_default = defineComponent({
|
|
137
141
|
validate,
|
138
142
|
getValues,
|
139
143
|
scrollToField,
|
140
|
-
resetValidation
|
144
|
+
resetValidation,
|
145
|
+
getValidationStatus
|
141
146
|
});
|
142
147
|
return () => {
|
143
148
|
var _a;
|
File without changes
|
File without changes
|
package/es/form/types.d.ts
CHANGED
@@ -1,11 +1,13 @@
|
|
1
1
|
import type { ComponentPublicInstance } from 'vue';
|
2
2
|
import type { FormProps } from './Form';
|
3
|
+
import type { FieldValidationStatus } from '../field';
|
3
4
|
export declare type FormExpose = {
|
4
5
|
submit: () => void;
|
5
6
|
validate: (name?: string | string[] | undefined) => Promise<void>;
|
6
7
|
getValues: () => Record<string, unknown>;
|
7
8
|
scrollToField: (name: string, options?: boolean | ScrollIntoViewOptions | undefined) => void;
|
8
9
|
resetValidation: (name?: string | string[] | undefined) => void;
|
10
|
+
getValidationStatus: () => Record<string, FieldValidationStatus>;
|
9
11
|
};
|
10
12
|
export declare type FormProvide = {
|
11
13
|
props: FormProps;
|
File without changes
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { createVNode as _createVNode } from "vue";
|
2
2
|
import { defineComponent } from "vue";
|
3
|
-
import { createNamespace, addUnit, truthProp, numericProp, makeNumericProp } from "../utils";
|
4
|
-
import { BORDER_TOP } from "../utils/constant";
|
3
|
+
import { createNamespace, addUnit, truthProp, numericProp, makeNumericProp } from "../utils/index.mjs";
|
4
|
+
import { BORDER_TOP } from "../utils/constant.mjs";
|
5
5
|
import { useChildren } from "@vant/use";
|
6
6
|
const [name, bem] = createNamespace("grid");
|
7
7
|
const gridProps = {
|
File without changes
|
File without changes
|
@@ -1,11 +1,11 @@
|
|
1
1
|
import { createVNode as _createVNode, mergeProps as _mergeProps } from "vue";
|
2
2
|
import { computed, defineComponent } from "vue";
|
3
|
-
import { BORDER, extend, addUnit, numericProp, createNamespace } from "../utils";
|
4
|
-
import { GRID_KEY } from "../grid/Grid";
|
3
|
+
import { BORDER, extend, addUnit, numericProp, createNamespace } from "../utils/index.mjs";
|
4
|
+
import { GRID_KEY } from "../grid/Grid.mjs";
|
5
5
|
import { useParent } from "@vant/use";
|
6
|
-
import { useRoute, routeProps } from "../composables/use-route";
|
7
|
-
import { Icon } from "../icon";
|
8
|
-
import { Badge } from "../badge";
|
6
|
+
import { useRoute, routeProps } from "../composables/use-route.mjs";
|
7
|
+
import { Icon } from "../icon/index.mjs";
|
8
|
+
import { Badge } from "../badge/index.mjs";
|
9
9
|
const [name, bem] = createNamespace("grid-item");
|
10
10
|
const gridItemProps = extend({}, routeProps, {
|
11
11
|
dot: Boolean,
|
File without changes
|
File without changes
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { mergeProps as _mergeProps, createVNode as _createVNode } from "vue";
|
2
2
|
import { inject, computed, defineComponent } from "vue";
|
3
|
-
import { addUnit, numericProp, makeStringProp, createNamespace } from "../utils";
|
4
|
-
import { Badge } from "../badge";
|
5
|
-
import { CONFIG_PROVIDER_KEY } from "../config-provider/ConfigProvider";
|
3
|
+
import { addUnit, numericProp, makeStringProp, createNamespace } from "../utils/index.mjs";
|
4
|
+
import { Badge } from "../badge/index.mjs";
|
5
|
+
import { CONFIG_PROVIDER_KEY } from "../config-provider/ConfigProvider.mjs";
|
6
6
|
const [name, bem] = createNamespace("icon");
|
7
7
|
const isImage = (name2) => name2 == null ? void 0 : name2.includes("/");
|
8
8
|
const iconProps = {
|
File without changes
|
File without changes
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { withDirectives as _withDirectives, mergeProps as _mergeProps, resolveDirective as _resolveDirective, createVNode as _createVNode } from "vue";
|
2
2
|
import { ref, watch, computed, nextTick, onBeforeUnmount, defineComponent, getCurrentInstance } from "vue";
|
3
|
-
import { isDef, addUnit, inBrowser, truthProp, numericProp, makeStringProp, createNamespace } from "../utils";
|
4
|
-
import { Icon } from "../icon";
|
3
|
+
import { isDef, addUnit, inBrowser, truthProp, numericProp, makeStringProp, createNamespace } from "../utils/index.mjs";
|
4
|
+
import { Icon } from "../icon/index.mjs";
|
5
5
|
const [name, bem] = createNamespace("image");
|
6
6
|
const imageProps = {
|
7
7
|
src: String,
|
File without changes
|
File without changes
|
@@ -1,12 +1,12 @@
|
|
1
1
|
import { mergeProps as _mergeProps, createVNode as _createVNode } from "vue";
|
2
2
|
import { ref, watch, nextTick, reactive, onMounted, defineComponent } from "vue";
|
3
|
-
import { pick, truthProp, unknownProp, windowWidth, windowHeight, makeArrayProp, makeStringProp, makeNumericProp, callInterceptor, createNamespace, HAPTICS_FEEDBACK } from "../utils";
|
3
|
+
import { pick, truthProp, unknownProp, windowWidth, windowHeight, makeArrayProp, makeStringProp, makeNumericProp, callInterceptor, createNamespace, HAPTICS_FEEDBACK } from "../utils/index.mjs";
|
4
4
|
import { useRect } from "@vant/use";
|
5
|
-
import { useExpose } from "../composables/use-expose";
|
6
|
-
import { Icon } from "../icon";
|
7
|
-
import { Swipe } from "../swipe";
|
8
|
-
import { Popup } from "../popup";
|
9
|
-
import ImagePreviewItem from "./ImagePreviewItem";
|
5
|
+
import { useExpose } from "../composables/use-expose.mjs";
|
6
|
+
import { Icon } from "../icon/index.mjs";
|
7
|
+
import { Swipe } from "../swipe/index.mjs";
|
8
|
+
import { Popup } from "../popup/index.mjs";
|
9
|
+
import ImagePreviewItem from "./ImagePreviewItem.mjs";
|
10
10
|
const [name, bem] = createNamespace("image-preview");
|
11
11
|
const popupProps = ["show", "transition", "overlayStyle", "closeOnPopstate"];
|
12
12
|
const imagePreviewProps = {
|
@@ -1,10 +1,10 @@
|
|
1
1
|
import { createVNode as _createVNode } from "vue";
|
2
2
|
import { watch, computed, reactive, defineComponent } from "vue";
|
3
|
-
import { clamp, numericProp, preventDefault, createNamespace, makeRequiredProp } from "../utils";
|
4
|
-
import { useTouch } from "../composables/use-touch";
|
5
|
-
import { Image } from "../image";
|
6
|
-
import { Loading } from "../loading";
|
7
|
-
import { SwipeItem } from "../swipe-item";
|
3
|
+
import { clamp, numericProp, preventDefault, createNamespace, makeRequiredProp } from "../utils/index.mjs";
|
4
|
+
import { useTouch } from "../composables/use-touch.mjs";
|
5
|
+
import { Image } from "../image/index.mjs";
|
6
|
+
import { Loading } from "../loading/index.mjs";
|
7
|
+
import { SwipeItem } from "../swipe-item/index.mjs";
|
8
8
|
const getDistance = (touches) => Math.sqrt((touches[0].clientX - touches[1].clientX) ** 2 + (touches[0].clientY - touches[1].clientY) ** 2);
|
9
9
|
const bem = createNamespace("image-preview")[1];
|
10
10
|
var stdin_default = defineComponent({
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { createVNode as _createVNode, mergeProps as _mergeProps } from "vue";
|
2
|
-
import { extend, inBrowser, withInstall } from "../utils";
|
3
|
-
import { mountComponent, usePopupState } from "../utils/mount-component";
|
4
|
-
import VanImagePreview from "./ImagePreview";
|
2
|
+
import { extend, inBrowser, withInstall } from "../utils/index.mjs";
|
3
|
+
import { mountComponent, usePopupState } from "../utils/mount-component.mjs";
|
4
|
+
import VanImagePreview from "./ImagePreview.mjs";
|
5
5
|
let instance;
|
6
6
|
const defaultConfig = {
|
7
7
|
loop: true,
|
File without changes
|
File without changes
|
File without changes
|
@@ -1,10 +1,10 @@
|
|
1
1
|
import { createVNode as _createVNode } from "vue";
|
2
2
|
import { ref, reactive, computed, defineComponent } from "vue";
|
3
|
-
import { extend, numericProp, BORDER_BOTTOM, getZIndexStyle, createNamespace } from "../utils";
|
4
|
-
import { INDEX_BAR_KEY } from "../index-bar/IndexBar";
|
5
|
-
import { getScrollTop, getRootScrollTop } from "../utils/dom";
|
3
|
+
import { extend, numericProp, BORDER_BOTTOM, getZIndexStyle, createNamespace } from "../utils/index.mjs";
|
4
|
+
import { INDEX_BAR_KEY } from "../index-bar/IndexBar.mjs";
|
5
|
+
import { getScrollTop, getRootScrollTop } from "../utils/dom.mjs";
|
6
6
|
import { useRect, useParent } from "@vant/use";
|
7
|
-
import { useExpose } from "../composables/use-expose";
|
7
|
+
import { useExpose } from "../composables/use-expose.mjs";
|
8
8
|
const [name, bem] = createNamespace("index-anchor");
|
9
9
|
const indexAnchorProps = {
|
10
10
|
index: numericProp
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { withInstall } from "../utils";
|
2
|
-
import _IndexAnchor from "./IndexAnchor";
|
1
|
+
import { withInstall } from "../utils/index.mjs";
|
2
|
+
import _IndexAnchor from "./IndexAnchor.mjs";
|
3
3
|
const IndexAnchor = withInstall(_IndexAnchor);
|
4
4
|
var stdin_default = IndexAnchor;
|
5
5
|
export {
|
File without changes
|
File without changes
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import { createVNode as _createVNode } from "vue";
|
2
2
|
import { ref, watch, computed, nextTick, Teleport, onMounted, defineComponent } from "vue";
|
3
|
-
import { isDef, isHidden, truthProp, numericProp, getScrollTop, preventDefault, makeNumberProp, createNamespace, getRootScrollTop, setRootScrollTop } from "../utils";
|
3
|
+
import { isDef, isHidden, truthProp, numericProp, getScrollTop, preventDefault, makeNumberProp, createNamespace, getRootScrollTop, setRootScrollTop } from "../utils/index.mjs";
|
4
4
|
import { useRect, useChildren, useScrollParent, useEventListener } from "@vant/use";
|
5
|
-
import { useTouch } from "../composables/use-touch";
|
6
|
-
import { useExpose } from "../composables/use-expose";
|
5
|
+
import { useTouch } from "../composables/use-touch.mjs";
|
6
|
+
import { useExpose } from "../composables/use-expose.mjs";
|
7
7
|
function genAlphabet() {
|
8
8
|
const charCodeOfA = "A".charCodeAt(0);
|
9
9
|
const indexList = Array(26).fill("").map((_, i) => String.fromCharCode(charCodeOfA + i));
|
File without changes
|
File without changes
|
File without changes
|
package/es/index.d.ts
CHANGED