vant 4.0.0-alpha.3 → 4.0.0-beta.1
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/LICENSE +10 -0
- package/README.md +20 -16
- package/changelog.generated.md +224 -131
- package/es/action-bar/ActionBar.d.ts +4 -0
- package/es/action-bar/ActionBar.mjs +44 -0
- package/es/action-bar/index.d.ts +3 -0
- package/es/action-bar/index.mjs +8 -0
- package/es/action-bar/style/{index.js → index.mjs} +0 -0
- package/es/action-bar-button/ActionBarButton.mjs +73 -0
- package/es/action-bar-button/index.mjs +8 -0
- package/es/action-bar-button/style/{index.js → index.mjs} +0 -0
- package/es/action-bar-icon/ActionBarIcon.mjs +68 -0
- package/es/action-bar-icon/index.mjs +8 -0
- package/es/action-bar-icon/style/{index.js → index.mjs} +0 -0
- package/es/action-sheet/ActionSheet.mjs +131 -0
- package/es/action-sheet/index.mjs +8 -0
- package/es/action-sheet/style/{index.js → index.mjs} +0 -0
- package/es/address-edit/AddressEdit.mjs +288 -0
- package/es/address-edit/AddressEditDetail.mjs +76 -0
- package/es/address-edit/index.mjs +8 -0
- package/es/address-edit/style/{index.js → index.mjs} +0 -0
- package/es/address-edit/{types.js → types.mjs} +0 -0
- package/es/address-list/AddressList.mjs +82 -0
- package/es/address-list/AddressListItem.mjs +96 -0
- package/es/address-list/index.mjs +8 -0
- package/es/address-list/style/{index.js → index.mjs} +0 -0
- package/es/area/Area.mjs +76 -0
- package/es/area/index.mjs +8 -0
- package/es/area/style/{index.js → index.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.mjs +95 -0
- package/es/badge/index.mjs +8 -0
- package/es/badge/style/{index.js → index.mjs} +0 -0
- package/es/button/Button.mjs +148 -0
- package/es/button/index.mjs +8 -0
- package/es/button/style/{index.js → index.mjs} +0 -0
- package/es/button/{types.js → types.mjs} +0 -0
- package/es/calendar/Calendar.mjs +405 -0
- package/es/calendar/CalendarDay.mjs +129 -0
- package/es/calendar/CalendarHeader.mjs +58 -0
- package/es/calendar/CalendarMonth.mjs +208 -0
- package/es/calendar/index.mjs +8 -0
- package/es/calendar/style/{index.js → index.mjs} +0 -0
- package/es/calendar/types.d.ts +1 -0
- package/es/calendar/{types.js → types.mjs} +0 -0
- package/es/calendar/utils.mjs +56 -0
- package/es/card/Card.mjs +126 -0
- package/es/card/index.mjs +8 -0
- package/es/card/style/{index.js → index.mjs} +0 -0
- package/es/cascader/Cascader.mjs +227 -0
- package/es/cascader/index.mjs +8 -0
- package/es/cascader/style/{index.js → index.mjs} +0 -0
- package/es/cascader/{types.js → types.mjs} +0 -0
- package/es/cell/Cell.d.ts +1 -1
- package/es/cell/Cell.mjs +116 -0
- package/es/cell/index.d.ts +1 -1
- package/es/cell/index.mjs +8 -0
- package/es/cell/style/{index.js → index.mjs} +0 -0
- package/es/cell-group/CellGroup.mjs +43 -0
- package/es/cell-group/index.mjs +8 -0
- package/es/cell-group/style/{index.js → index.mjs} +0 -0
- package/es/checkbox/Checkbox.mjs +81 -0
- package/es/checkbox/Checker.mjs +107 -0
- package/es/checkbox/index.mjs +8 -0
- package/es/checkbox/style/{index.js → index.mjs} +0 -0
- package/es/checkbox/{types.js → types.mjs} +0 -0
- package/es/checkbox-group/CheckboxGroup.mjs +71 -0
- package/es/checkbox-group/index.mjs +8 -0
- package/es/checkbox-group/style/{index.js → index.mjs} +0 -0
- package/es/checkbox-group/{types.js → types.mjs} +0 -0
- package/es/circle/Circle.mjs +152 -0
- package/es/circle/index.mjs +8 -0
- package/es/circle/style/{index.js → index.mjs} +0 -0
- package/es/col/Col.mjs +63 -0
- package/es/col/index.mjs +8 -0
- package/es/col/style/{index.js → index.mjs} +0 -0
- package/es/collapse/Collapse.d.ts +8 -1
- package/es/collapse/Collapse.mjs +108 -0
- package/es/collapse/index.d.ts +1 -1
- package/es/collapse/index.mjs +8 -0
- package/es/collapse/style/{index.js → index.mjs} +0 -0
- package/es/collapse-item/CollapseItem.d.ts +1 -1
- package/es/collapse-item/CollapseItem.mjs +136 -0
- package/es/collapse-item/index.d.ts +1 -1
- package/es/collapse-item/index.mjs +8 -0
- package/es/collapse-item/style/{index.js → index.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.mjs +11 -0
- package/es/composables/use-global-z-index.d.ts +4 -0
- package/es/composables/use-global-z-index.mjs +9 -0
- package/es/composables/use-height.d.ts +1 -1
- package/es/composables/use-height.mjs +22 -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.mjs +55 -0
- package/es/composables/use-placeholder.mjs +14 -0
- 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.mjs +27 -0
- package/es/config-provider/ConfigProvider.d.ts +13 -3
- package/es/config-provider/ConfigProvider.mjs +69 -0
- package/es/config-provider/index.d.ts +8 -2
- package/es/config-provider/index.mjs +8 -0
- package/es/config-provider/style/{index.js → index.mjs} +0 -0
- package/es/contact-card/ContactCard.mjs +46 -0
- package/es/contact-card/index.mjs +8 -0
- package/es/contact-card/style/{index.js → index.mjs} +0 -0
- package/es/contact-edit/ContactEdit.mjs +112 -0
- package/es/contact-edit/index.mjs +8 -0
- package/es/contact-edit/style/{index.js → index.mjs} +0 -0
- package/es/contact-list/ContactList.mjs +89 -0
- package/es/contact-list/index.mjs +8 -0
- package/es/contact-list/style/{index.js → index.mjs} +0 -0
- package/es/count-down/CountDown.mjs +56 -0
- package/es/count-down/index.mjs +8 -0
- package/es/count-down/style/{index.js → index.mjs} +0 -0
- package/es/count-down/{types.js → types.mjs} +0 -0
- package/es/count-down/utils.mjs +39 -0
- package/es/coupon/Coupon.mjs +80 -0
- package/es/coupon/index.mjs +8 -0
- package/es/coupon/style/{index.js → index.mjs} +0 -0
- package/es/coupon/utils.mjs +12 -0
- package/es/coupon-cell/CouponCell.mjs +54 -0
- package/es/coupon-cell/index.mjs +8 -0
- package/es/coupon-cell/style/{index.js → index.mjs} +0 -0
- package/es/coupon-list/CouponList.mjs +186 -0
- package/es/coupon-list/index.mjs +8 -0
- package/es/coupon-list/style/{index.js → index.mjs} +0 -0
- package/es/date-picker/DatePicker.mjs +111 -0
- package/es/date-picker/index.mjs +8 -0
- package/es/date-picker/style/{index.js → index.mjs} +0 -0
- package/es/date-picker/utils.d.ts +1 -1
- package/es/date-picker/utils.mjs +40 -0
- package/es/dialog/Dialog.d.ts +9 -1
- package/es/dialog/Dialog.mjs +217 -0
- package/es/dialog/function-call.d.ts +6 -184
- package/es/dialog/function-call.mjs +85 -0
- package/es/dialog/index.css +1 -1
- package/es/dialog/index.d.ts +130 -3
- package/es/dialog/index.mjs +20 -0
- package/es/dialog/style/{index.js → index.mjs} +0 -0
- package/es/dialog/types.d.ts +3 -7
- package/es/dialog/{types.js → types.mjs} +0 -0
- package/es/divider/Divider.mjs +31 -0
- package/es/divider/index.mjs +8 -0
- package/es/divider/style/{index.js → index.mjs} +0 -0
- package/es/dropdown-item/DropdownItem.mjs +180 -0
- package/es/dropdown-item/index.mjs +8 -0
- package/es/dropdown-item/style/{index.js → index.mjs} +0 -0
- package/es/dropdown-item/{types.js → types.mjs} +0 -0
- package/es/dropdown-menu/DropdownMenu.mjs +136 -0
- package/es/dropdown-menu/index.mjs +8 -0
- package/es/dropdown-menu/style/{index.js → index.mjs} +0 -0
- package/es/dropdown-menu/{types.js → types.mjs} +0 -0
- package/es/empty/Empty.d.ts +1 -1
- package/es/empty/Empty.mjs +322 -0
- package/es/empty/index.mjs +8 -0
- package/es/empty/style/{index.js → index.mjs} +0 -0
- package/es/field/Field.d.ts +4 -2
- package/es/field/Field.mjs +452 -0
- package/es/field/index.d.ts +5 -3
- package/es/field/index.mjs +8 -0
- package/es/field/style/{index.js → index.mjs} +0 -0
- package/es/field/types.d.ts +3 -0
- package/es/field/{types.js → types.mjs} +0 -0
- package/es/field/utils.d.ts +1 -0
- package/es/field/utils.mjs +107 -0
- package/es/form/Form.mjs +158 -0
- package/es/form/index.mjs +8 -0
- package/es/form/style/{index.js → index.mjs} +0 -0
- package/es/form/types.d.ts +2 -0
- package/es/form/{types.js → types.mjs} +0 -0
- package/es/grid/Grid.mjs +47 -0
- package/es/grid/index.mjs +8 -0
- package/es/grid/style/{index.js → index.mjs} +0 -0
- package/es/grid-item/GridItem.mjs +145 -0
- package/es/grid-item/index.mjs +8 -0
- package/es/grid-item/style/{index.js → index.mjs} +0 -0
- package/es/icon/Icon.mjs +59 -0
- package/es/icon/index.mjs +8 -0
- package/es/icon/style/{index.js → index.mjs} +0 -0
- package/es/image/Image.mjs +149 -0
- package/es/image/index.mjs +8 -0
- package/es/image/style/{index.js → index.mjs} +0 -0
- package/es/image-preview/ImagePreview.mjs +161 -0
- package/es/image-preview/ImagePreviewItem.mjs +248 -0
- package/es/image-preview/function-call.d.ts +1 -134
- package/es/image-preview/function-call.mjs +64 -0
- package/es/image-preview/index.css +1 -1
- package/es/image-preview/index.d.ts +129 -2
- package/es/image-preview/index.mjs +10 -0
- package/es/image-preview/style/{index.js → index.mjs} +0 -0
- package/es/image-preview/{types.js → types.mjs} +0 -0
- package/es/index-anchor/IndexAnchor.mjs +87 -0
- package/es/index-anchor/index.mjs +8 -0
- package/es/index-anchor/style/{index.js → index.mjs} +0 -0
- package/es/index-bar/IndexBar.mjs +222 -0
- package/es/index-bar/index.mjs +8 -0
- package/es/index-bar/style/{index.js → index.mjs} +0 -0
- package/es/index-bar/{types.js → types.mjs} +0 -0
- package/es/index.d.ts +2 -1
- package/es/index.mjs +283 -0
- package/es/lazyload/index.mjs +6 -0
- package/es/lazyload/style/{index.js → index.mjs} +0 -0
- package/es/lazyload/vue-lazyload/index.mjs +31 -0
- package/es/lazyload/vue-lazyload/{lazy-component.js → lazy-component.mjs} +0 -0
- package/es/lazyload/vue-lazyload/lazy-container.mjs +70 -0
- package/es/lazyload/vue-lazyload/lazy-image.mjs +90 -0
- package/es/lazyload/vue-lazyload/lazy.mjs +356 -0
- package/es/lazyload/vue-lazyload/listener.mjs +161 -0
- package/es/lazyload/vue-lazyload/{util.js → util.mjs} +0 -0
- package/es/list/List.mjs +139 -0
- package/es/list/index.mjs +8 -0
- package/es/list/style/{index.js → index.mjs} +0 -0
- package/es/list/{types.js → types.mjs} +0 -0
- package/es/loading/Loading.mjs +66 -0
- package/es/loading/index.mjs +8 -0
- package/es/loading/style/{index.js → index.mjs} +0 -0
- package/es/locale/index.d.ts +1 -1
- package/es/locale/index.mjs +24 -0
- 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/nav-bar/NavBar.mjs +90 -0
- package/es/nav-bar/index.mjs +8 -0
- package/es/nav-bar/style/{index.js → index.mjs} +0 -0
- package/es/notice-bar/NoticeBar.mjs +165 -0
- package/es/notice-bar/index.mjs +8 -0
- package/es/notice-bar/style/{index.js → index.mjs} +0 -0
- package/es/notice-bar/{types.js → types.mjs} +0 -0
- package/es/notify/Notify.mjs +44 -0
- package/es/notify/function-call.d.ts +4 -100
- package/es/notify/function-call.mjs +68 -0
- package/es/notify/index.d.ts +91 -2
- package/es/notify/index.mjs +18 -0
- package/es/notify/style/{index.js → index.mjs} +0 -0
- package/es/notify/types.d.ts +0 -6
- package/es/notify/{types.js → types.mjs} +0 -0
- package/es/number-keyboard/NumberKeyboard.mjs +228 -0
- package/es/number-keyboard/NumberKeyboardKey.mjs +94 -0
- package/es/number-keyboard/index.mjs +8 -0
- package/es/number-keyboard/style/{index.js → index.mjs} +0 -0
- package/es/overlay/Overlay.mjs +47 -0
- package/es/overlay/index.mjs +8 -0
- package/es/overlay/style/{index.js → index.mjs} +0 -0
- package/es/pagination/Pagination.mjs +144 -0
- package/es/pagination/index.mjs +8 -0
- package/es/pagination/style/{index.js → index.mjs} +0 -0
- package/es/password-input/PasswordInput.mjs +78 -0
- package/es/password-input/index.mjs +8 -0
- package/es/password-input/style/{index.js → index.mjs} +0 -0
- package/es/picker/Picker.d.ts +2 -1
- package/es/picker/Picker.mjs +216 -0
- package/es/picker/PickerColumn.d.ts +2 -1
- package/es/picker/PickerColumn.mjs +189 -0
- package/es/picker/index.d.ts +2 -1
- package/es/picker/index.mjs +8 -0
- package/es/picker/style/{index.js → index.mjs} +0 -0
- package/es/picker/{types.js → types.mjs} +0 -0
- package/es/picker/utils.mjs +73 -0
- package/es/popover/Popover.mjs +178 -0
- package/es/popover/index.mjs +8 -0
- package/es/popover/style/{index.js → index.mjs} +0 -0
- package/es/popover/{types.js → types.mjs} +0 -0
- package/es/popup/Popup.mjs +206 -0
- package/es/popup/index.css +1 -1
- package/es/popup/index.mjs +8 -0
- package/es/popup/shared.mjs +20 -0
- package/es/popup/style/{index.js → index.mjs} +0 -0
- package/es/popup/{types.js → types.mjs} +0 -0
- package/es/progress/Progress.mjs +76 -0
- package/es/progress/index.mjs +8 -0
- package/es/progress/style/{index.js → index.mjs} +0 -0
- package/es/progress/{types.js → types.mjs} +0 -0
- package/es/pull-refresh/PullRefresh.d.ts +2 -1
- package/es/pull-refresh/PullRefresh.mjs +193 -0
- package/es/pull-refresh/index.d.ts +2 -1
- package/es/pull-refresh/index.mjs +8 -0
- package/es/pull-refresh/style/{index.js → index.mjs} +0 -0
- package/es/radio/Radio.mjs +41 -0
- package/es/radio/index.mjs +8 -0
- package/es/radio/style/{index.js → index.mjs} +0 -0
- package/es/radio-group/RadioGroup.mjs +44 -0
- package/es/radio-group/index.mjs +8 -0
- package/es/radio-group/style/{index.js → index.mjs} +0 -0
- package/es/rate/Rate.mjs +217 -0
- package/es/rate/index.mjs +8 -0
- package/es/rate/style/{index.js → index.mjs} +0 -0
- package/es/row/Row.mjs +91 -0
- package/es/row/index.mjs +8 -0
- package/es/row/style/{index.js → index.mjs} +0 -0
- package/es/search/Search.mjs +118 -0
- package/es/search/index.css +1 -1
- package/es/search/index.mjs +8 -0
- package/es/search/style/{index.js → index.mjs} +0 -0
- package/es/search/{types.js → types.mjs} +0 -0
- package/es/share-sheet/ShareSheet.mjs +122 -0
- package/es/share-sheet/index.mjs +8 -0
- package/es/share-sheet/style/{index.js → index.mjs} +0 -0
- package/es/sidebar/Sidebar.mjs +44 -0
- package/es/sidebar/index.mjs +8 -0
- package/es/sidebar/style/{index.js → index.mjs} +0 -0
- package/es/sidebar-item/SidebarItem.mjs +72 -0
- package/es/sidebar-item/index.mjs +8 -0
- package/es/sidebar-item/style/{index.js → index.mjs} +0 -0
- package/es/skeleton/Skeleton.mjs +84 -0
- package/es/skeleton/index.mjs +8 -0
- package/es/skeleton/style/{index.js → index.mjs} +0 -0
- package/es/slider/Slider.mjs +267 -0
- package/es/slider/index.mjs +8 -0
- package/es/slider/style/{index.js → index.mjs} +0 -0
- package/es/space/Space.d.ts +48 -0
- package/es/space/Space.mjs +87 -0
- package/es/space/index.css +1 -0
- package/es/space/index.d.ts +37 -0
- package/es/space/index.mjs +8 -0
- package/es/{action-bar-button/style/less.d.ts → space/style/index.d.ts} +0 -0
- package/es/{stepper/style/index.js → space/style/index.mjs} +0 -0
- package/es/step/Step.mjs +118 -0
- package/es/step/index.mjs +8 -0
- package/es/step/style/{index.js → index.mjs} +0 -0
- package/es/stepper/Stepper.mjs +247 -0
- package/es/stepper/index.mjs +8 -0
- package/es/{steps/style/index.js → stepper/style/index.mjs} +0 -0
- package/es/steps/Steps.mjs +46 -0
- package/es/steps/index.mjs +8 -0
- package/es/{sticky/style/index.js → steps/style/index.mjs} +0 -0
- package/es/sticky/Sticky.mjs +120 -0
- package/es/sticky/index.mjs +8 -0
- package/es/{swipe-cell/style/index.js → sticky/style/index.mjs} +0 -0
- package/es/submit-bar/SubmitBar.d.ts +4 -0
- package/es/submit-bar/SubmitBar.mjs +115 -0
- package/es/submit-bar/index.d.ts +3 -0
- package/es/submit-bar/index.mjs +8 -0
- package/es/submit-bar/style/{index.js → index.mjs} +0 -0
- package/es/swipe/Swipe.mjs +353 -0
- package/es/swipe/index.mjs +8 -0
- package/es/{tabbar/style/index.js → swipe/style/index.mjs} +0 -0
- package/es/swipe/{types.js → types.mjs} +0 -0
- package/es/swipe-cell/SwipeCell.mjs +160 -0
- package/es/swipe-cell/index.mjs +8 -0
- package/es/{swipe/style/index.js → swipe-cell/style/index.mjs} +0 -0
- package/es/swipe-cell/{types.js → types.mjs} +0 -0
- package/es/swipe-item/SwipeItem.mjs +82 -0
- package/es/swipe-item/index.mjs +8 -0
- package/es/swipe-item/style/{index.js → index.mjs} +0 -0
- package/es/switch/Switch.mjs +85 -0
- package/es/switch/index.mjs +8 -0
- package/es/switch/style/{index.js → index.mjs} +0 -0
- package/es/tab/Tab.mjs +113 -0
- package/es/tab/index.mjs +8 -0
- package/es/tab/style/{index.js → index.mjs} +0 -0
- package/es/tabbar/Tabbar.mjs +84 -0
- package/es/tabbar/index.mjs +8 -0
- package/es/tabbar/style/index.mjs +2 -0
- package/es/tabbar-item/TabbarItem.mjs +120 -0
- package/es/tabbar-item/index.mjs +8 -0
- package/es/tabbar-item/style/{index.js → index.mjs} +0 -0
- package/es/tabs/Tabs.mjs +362 -0
- package/es/tabs/TabsContent.mjs +68 -0
- package/es/tabs/TabsTitle.mjs +90 -0
- package/es/tabs/index.mjs +8 -0
- package/es/tabs/style/{index.js → index.mjs} +0 -0
- package/es/tabs/{types.js → types.mjs} +0 -0
- package/es/tabs/utils.mjs +37 -0
- package/es/tag/Tag.mjs +78 -0
- package/es/tag/index.mjs +8 -0
- package/es/tag/style/{index.js → index.mjs} +0 -0
- package/es/time-picker/TimePicker.mjs +71 -0
- package/es/time-picker/index.mjs +8 -0
- package/es/time-picker/style/{index.js → index.mjs} +0 -0
- package/es/toast/Toast.mjs +119 -0
- package/es/toast/function-call.d.ts +10 -18
- package/es/toast/function-call.mjs +142 -0
- package/es/toast/index.d.ts +76 -2
- package/es/toast/index.mjs +26 -0
- package/es/toast/{lock-click.js → lock-click.mjs} +0 -0
- package/es/toast/style/{index.js → index.mjs} +0 -0
- package/es/toast/types.d.ts +10 -7
- package/es/toast/{types.js → types.mjs} +0 -0
- package/es/tree-select/TreeSelect.mjs +102 -0
- package/es/tree-select/index.mjs +8 -0
- package/es/tree-select/style/{index.js → index.mjs} +0 -0
- package/es/uploader/Uploader.d.ts +3 -3
- package/es/uploader/Uploader.mjs +248 -0
- package/es/uploader/UploaderPreviewItem.mjs +128 -0
- package/es/uploader/index.css +1 -1
- package/es/uploader/index.d.ts +2 -2
- package/es/uploader/index.mjs +8 -0
- package/es/uploader/style/{index.js → index.mjs} +0 -0
- package/es/uploader/{types.js → types.mjs} +0 -0
- package/es/uploader/utils.mjs +69 -0
- package/es/utils/basic.d.ts +3 -3
- package/es/utils/{basic.js → basic.mjs} +0 -0
- package/es/utils/{constant.js → constant.mjs} +0 -0
- package/es/utils/create.d.ts +1 -1
- package/es/utils/create.mjs +47 -0
- package/es/utils/deep-assign.mjs +22 -0
- package/es/utils/deep-clone.mjs +20 -0
- package/es/utils/dom.mjs +67 -0
- package/es/utils/format.mjs +120 -0
- package/es/utils/index.mjs +9 -0
- package/es/utils/interceptor.mjs +29 -0
- package/es/utils/mount-component.mjs +39 -0
- package/es/utils/{props.js → props.mjs} +0 -0
- package/es/utils/validate.mjs +22 -0
- package/es/utils/with-install.mjs +12 -0
- package/es/vue-tsx-shim.d.ts +7 -0
- package/lib/action-bar/ActionBar.d.ts +4 -0
- package/lib/action-bar/ActionBar.js +12 -1
- package/lib/action-bar/index.d.ts +3 -0
- package/lib/address-edit/AddressEdit.js +1 -1
- package/lib/badge/Badge.js +1 -1
- package/lib/calendar/Calendar.js +8 -4
- package/lib/calendar/types.d.ts +1 -0
- package/lib/cell/Cell.d.ts +1 -1
- package/lib/cell/index.d.ts +1 -1
- package/lib/collapse/Collapse.d.ts +8 -1
- package/lib/collapse/Collapse.js +28 -1
- package/lib/collapse/index.d.ts +1 -1
- package/lib/collapse-item/CollapseItem.d.ts +1 -1
- package/lib/collapse-item/CollapseItem.js +3 -1
- package/lib/collapse-item/index.d.ts +1 -1
- package/lib/composables/use-global-z-index.d.ts +4 -0
- package/lib/composables/use-global-z-index.js +28 -0
- package/lib/composables/use-height.d.ts +1 -1
- package/lib/composables/use-height.js +8 -2
- package/lib/composables/use-lock-scroll.js +3 -1
- package/lib/composables/use-placeholder.js +1 -1
- package/lib/config-provider/ConfigProvider.d.ts +13 -3
- package/lib/config-provider/ConfigProvider.js +23 -7
- package/lib/config-provider/index.d.ts +8 -2
- package/lib/date-picker/utils.d.ts +1 -1
- package/lib/dialog/Dialog.d.ts +9 -1
- package/lib/dialog/Dialog.js +6 -0
- package/lib/dialog/function-call.d.ts +6 -184
- package/lib/dialog/function-call.js +42 -42
- package/lib/dialog/index.css +1 -1
- package/lib/dialog/index.d.ts +130 -3
- package/lib/dialog/index.js +14 -3
- package/lib/dialog/types.d.ts +3 -7
- package/lib/dropdown-menu/DropdownMenu.js +2 -1
- package/lib/empty/Empty.d.ts +1 -1
- package/lib/empty/Empty.js +281 -16
- package/lib/field/Field.d.ts +4 -2
- package/lib/field/Field.js +23 -14
- package/lib/field/index.d.ts +5 -3
- package/lib/field/types.d.ts +3 -0
- package/lib/field/utils.d.ts +1 -0
- package/lib/field/utils.js +8 -2
- package/lib/form/Form.js +6 -1
- package/lib/form/types.d.ts +2 -0
- package/lib/image-preview/ImagePreviewItem.js +1 -1
- package/lib/image-preview/function-call.d.ts +1 -134
- package/lib/image-preview/function-call.js +2 -6
- package/lib/image-preview/index.css +1 -1
- package/lib/image-preview/index.d.ts +129 -2
- package/lib/image-preview/index.js +10 -3
- package/lib/index-bar/IndexBar.js +3 -2
- package/lib/index.css +1 -1
- package/lib/index.d.ts +2 -1
- package/lib/index.js +4 -1
- package/lib/list/List.js +2 -1
- package/lib/locale/index.d.ts +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/notify/function-call.d.ts +4 -100
- package/lib/notify/function-call.js +24 -28
- package/lib/notify/index.d.ts +91 -2
- package/lib/notify/index.js +13 -3
- package/lib/notify/types.d.ts +0 -6
- package/lib/number-keyboard/NumberKeyboard.js +1 -2
- package/lib/number-keyboard/NumberKeyboardKey.js +2 -2
- package/lib/password-input/PasswordInput.js +1 -1
- package/lib/picker/Picker.d.ts +2 -1
- package/lib/picker/Picker.js +9 -2
- package/lib/picker/PickerColumn.d.ts +2 -1
- package/lib/picker/PickerColumn.js +5 -4
- package/lib/picker/index.d.ts +2 -1
- package/lib/popover/Popover.js +27 -26
- package/lib/popup/Popup.js +7 -6
- package/lib/popup/index.css +1 -1
- package/lib/pull-refresh/PullRefresh.d.ts +2 -1
- package/lib/pull-refresh/PullRefresh.js +11 -3
- package/lib/pull-refresh/index.d.ts +2 -1
- package/lib/rate/Rate.js +1 -1
- package/lib/search/index.css +1 -1
- package/lib/slider/Slider.js +1 -1
- package/lib/space/Space.d.ts +48 -0
- package/lib/space/Space.js +106 -0
- package/lib/space/index.css +1 -0
- package/lib/space/index.d.ts +37 -0
- package/lib/space/index.js +30 -0
- package/{es/action-bar-icon/style/less.d.ts → lib/space/style/index.d.ts} +0 -0
- package/lib/space/style/index.js +2 -0
- package/lib/stepper/Stepper.js +1 -1
- package/lib/sticky/Sticky.js +2 -1
- package/lib/submit-bar/SubmitBar.d.ts +4 -0
- package/lib/submit-bar/SubmitBar.js +12 -1
- package/lib/submit-bar/index.d.ts +3 -0
- package/lib/swipe/Swipe.js +1 -1
- package/lib/swipe-cell/SwipeCell.js +1 -1
- package/lib/switch/Switch.js +7 -2
- package/lib/tabs/Tabs.js +12 -2
- package/lib/tabs/TabsContent.js +4 -0
- package/lib/toast/function-call.d.ts +10 -18
- package/lib/toast/function-call.js +21 -19
- package/lib/toast/index.d.ts +76 -2
- package/lib/toast/index.js +17 -3
- package/lib/toast/types.d.ts +10 -7
- package/lib/uploader/Uploader.d.ts +3 -3
- package/lib/uploader/Uploader.js +3 -5
- package/lib/uploader/UploaderPreviewItem.js +5 -2
- package/lib/uploader/index.css +1 -1
- package/lib/uploader/index.d.ts +2 -2
- package/lib/utils/basic.d.ts +3 -3
- package/lib/utils/create.d.ts +1 -1
- package/lib/vant.cjs.js +1555 -1271
- package/lib/vant.es.js +1644 -1268
- package/lib/vant.js +1585 -1312
- package/lib/vant.min.js +1 -1
- package/lib/vue-tsx-shim.d.ts +7 -0
- package/lib/web-types.json +12011 -0
- package/package.json +13 -33
- package/es/action-bar/ActionBar.js +0 -33
- package/es/action-bar/index.js +0 -8
- package/es/action-bar/index.less +0 -16
- package/es/action-bar/style/less.d.ts +0 -1
- package/es/action-bar/style/less.js +0 -2
- package/es/action-bar-button/ActionBarButton.js +0 -73
- package/es/action-bar-button/index.js +0 -8
- package/es/action-bar-button/index.less +0 -38
- package/es/action-bar-button/style/less.js +0 -7
- package/es/action-bar-icon/ActionBarIcon.js +0 -68
- package/es/action-bar-icon/index.js +0 -8
- package/es/action-bar-icon/index.less +0 -34
- package/es/action-bar-icon/style/less.js +0 -5
- package/es/action-sheet/ActionSheet.js +0 -131
- package/es/action-sheet/index.js +0 -8
- package/es/action-sheet/index.less +0 -131
- package/es/action-sheet/style/less.d.ts +0 -1
- package/es/action-sheet/style/less.js +0 -7
- package/es/address-edit/AddressEdit.js +0 -288
- package/es/address-edit/AddressEditDetail.js +0 -76
- package/es/address-edit/index.js +0 -8
- package/es/address-edit/index.less +0 -39
- package/es/address-edit/style/less.d.ts +0 -1
- package/es/address-edit/style/less.js +0 -13
- package/es/address-list/AddressList.js +0 -82
- package/es/address-list/AddressListItem.js +0 -96
- package/es/address-list/index.js +0 -8
- package/es/address-list/index.less +0 -110
- package/es/address-list/style/less.d.ts +0 -1
- package/es/address-list/style/less.js +0 -11
- package/es/area/Area.js +0 -76
- package/es/area/index.js +0 -8
- package/es/area/style/less.d.ts +0 -1
- package/es/area/style/less.js +0 -3
- package/es/badge/Badge.js +0 -95
- package/es/badge/index.js +0 -8
- package/es/badge/index.less +0 -72
- package/es/badge/style/less.d.ts +0 -1
- package/es/badge/style/less.js +0 -2
- package/es/button/Button.js +0 -148
- package/es/button/index.js +0 -8
- package/es/button/index.less +0 -241
- package/es/button/style/less.d.ts +0 -1
- package/es/button/style/less.js +0 -5
- package/es/calendar/Calendar.js +0 -401
- package/es/calendar/CalendarDay.js +0 -129
- package/es/calendar/CalendarHeader.js +0 -58
- package/es/calendar/CalendarMonth.js +0 -208
- package/es/calendar/index.js +0 -8
- package/es/calendar/index.less +0 -217
- package/es/calendar/style/less.d.ts +0 -1
- package/es/calendar/style/less.js +0 -10
- package/es/calendar/utils.js +0 -56
- package/es/card/Card.js +0 -126
- package/es/card/index.js +0 -8
- package/es/card/index.less +0 -126
- package/es/card/style/less.d.ts +0 -1
- package/es/card/style/less.js +0 -6
- package/es/cascader/Cascader.js +0 -227
- package/es/cascader/index.js +0 -8
- package/es/cascader/index.less +0 -92
- package/es/cascader/style/less.d.ts +0 -1
- package/es/cascader/style/less.js +0 -9
- package/es/cell/Cell.js +0 -116
- package/es/cell/index.js +0 -8
- package/es/cell/index.less +0 -119
- package/es/cell/style/less.d.ts +0 -1
- package/es/cell/style/less.js +0 -4
- package/es/cell-group/CellGroup.js +0 -43
- package/es/cell-group/index.js +0 -8
- package/es/cell-group/index.less +0 -32
- package/es/cell-group/style/less.d.ts +0 -1
- package/es/cell-group/style/less.js +0 -2
- package/es/checkbox/Checkbox.js +0 -81
- package/es/checkbox/Checker.js +0 -107
- package/es/checkbox/index.js +0 -8
- package/es/checkbox/index.less +0 -96
- package/es/checkbox/style/less.d.ts +0 -1
- package/es/checkbox/style/less.js +0 -5
- package/es/checkbox-group/CheckboxGroup.js +0 -71
- package/es/checkbox-group/index.js +0 -8
- package/es/checkbox-group/index.less +0 -6
- package/es/checkbox-group/style/less.d.ts +0 -1
- package/es/checkbox-group/style/less.js +0 -2
- package/es/circle/Circle.js +0 -152
- package/es/circle/index.js +0 -8
- package/es/circle/index.less +0 -49
- package/es/circle/style/less.d.ts +0 -1
- package/es/circle/style/less.js +0 -2
- package/es/col/Col.js +0 -63
- package/es/col/index.js +0 -8
- package/es/col/index.less +0 -19
- package/es/col/style/less.d.ts +0 -1
- package/es/col/style/less.js +0 -3
- package/es/collapse/Collapse.js +0 -81
- package/es/collapse/index.js +0 -8
- package/es/collapse/style/less.d.ts +0 -1
- package/es/collapse/style/less.js +0 -1
- package/es/collapse-item/CollapseItem.js +0 -134
- package/es/collapse-item/index.js +0 -8
- package/es/collapse-item/index.less +0 -75
- package/es/collapse-item/style/less.d.ts +0 -1
- package/es/collapse-item/style/less.js +0 -5
- package/es/composables/use-expose.js +0 -11
- package/es/composables/use-height.js +0 -16
- package/es/composables/use-lock-scroll.js +0 -53
- package/es/composables/use-placeholder.js +0 -14
- package/es/composables/use-visibility-change.js +0 -27
- package/es/config-provider/ConfigProvider.js +0 -53
- package/es/config-provider/index.js +0 -8
- package/es/config-provider/style/less.d.ts +0 -1
- package/es/config-provider/style/less.js +0 -1
- package/es/contact-card/ContactCard.js +0 -46
- package/es/contact-card/index.js +0 -8
- package/es/contact-card/index.less +0 -47
- package/es/contact-card/style/less.d.ts +0 -1
- package/es/contact-card/style/less.js +0 -5
- package/es/contact-edit/ContactEdit.js +0 -112
- package/es/contact-edit/index.js +0 -8
- package/es/contact-edit/index.less +0 -37
- package/es/contact-edit/style/less.d.ts +0 -1
- package/es/contact-edit/style/less.js +0 -9
- package/es/contact-list/ContactList.js +0 -89
- package/es/contact-list/index.js +0 -8
- package/es/contact-list/index.less +0 -65
- package/es/contact-list/style/less.d.ts +0 -1
- package/es/contact-list/style/less.js +0 -11
- package/es/count-down/CountDown.js +0 -56
- package/es/count-down/index.js +0 -8
- package/es/count-down/index.less +0 -11
- package/es/count-down/style/less.d.ts +0 -1
- package/es/count-down/style/less.js +0 -2
- package/es/count-down/utils.js +0 -39
- package/es/coupon/Coupon.js +0 -80
- package/es/coupon/index.js +0 -8
- package/es/coupon/index.less +0 -127
- package/es/coupon/style/less.d.ts +0 -1
- package/es/coupon/style/less.js +0 -6
- package/es/coupon/utils.js +0 -12
- package/es/coupon-cell/CouponCell.js +0 -54
- package/es/coupon-cell/index.js +0 -8
- package/es/coupon-cell/index.less +0 -9
- package/es/coupon-cell/style/less.d.ts +0 -1
- package/es/coupon-cell/style/less.js +0 -5
- package/es/coupon-list/CouponList.js +0 -186
- package/es/coupon-list/index.js +0 -8
- package/es/coupon-list/index.less +0 -86
- package/es/coupon-list/style/less.d.ts +0 -1
- package/es/coupon-list/style/less.js +0 -17
- package/es/date-picker/DatePicker.js +0 -111
- package/es/date-picker/index.js +0 -8
- package/es/date-picker/style/less.d.ts +0 -1
- package/es/date-picker/style/less.js +0 -3
- package/es/date-picker/utils.js +0 -40
- package/es/dialog/Dialog.js +0 -211
- package/es/dialog/function-call.js +0 -85
- package/es/dialog/index.js +0 -6
- package/es/dialog/index.less +0 -140
- package/es/dialog/style/less.d.ts +0 -1
- package/es/dialog/style/less.js +0 -10
- package/es/divider/Divider.js +0 -31
- package/es/divider/index.js +0 -8
- package/es/divider/index.less +0 -73
- package/es/divider/style/less.d.ts +0 -1
- package/es/divider/style/less.js +0 -2
- package/es/dropdown-item/DropdownItem.js +0 -180
- package/es/dropdown-item/index.js +0 -8
- package/es/dropdown-item/index.less +0 -41
- package/es/dropdown-item/style/less.d.ts +0 -1
- package/es/dropdown-item/style/less.js +0 -8
- package/es/dropdown-menu/DropdownMenu.js +0 -135
- package/es/dropdown-menu/index.js +0 -8
- package/es/dropdown-menu/index.less +0 -80
- package/es/dropdown-menu/style/less.d.ts +0 -1
- package/es/dropdown-menu/style/less.js +0 -2
- package/es/empty/Empty.js +0 -57
- package/es/empty/Images.d.ts +0 -4
- package/es/empty/Images.js +0 -271
- package/es/empty/index.js +0 -8
- package/es/empty/index.less +0 -41
- package/es/empty/style/less.d.ts +0 -1
- package/es/empty/style/less.js +0 -2
- package/es/field/Field.js +0 -443
- package/es/field/index.js +0 -8
- package/es/field/index.less +0 -196
- package/es/field/style/less.d.ts +0 -1
- package/es/field/style/less.js +0 -5
- package/es/field/utils.js +0 -101
- package/es/form/Form.js +0 -153
- package/es/form/index.js +0 -8
- package/es/form/style/less.d.ts +0 -1
- package/es/form/style/less.js +0 -1
- package/es/grid/Grid.js +0 -47
- package/es/grid/index.js +0 -8
- package/es/grid/index.less +0 -4
- package/es/grid/style/less.d.ts +0 -1
- package/es/grid/style/less.js +0 -2
- package/es/grid-item/GridItem.js +0 -145
- package/es/grid-item/index.js +0 -8
- package/es/grid-item/index.less +0 -97
- package/es/grid-item/style/less.d.ts +0 -1
- package/es/grid-item/style/less.js +0 -5
- package/es/icon/Icon.js +0 -59
- package/es/icon/index.js +0 -8
- package/es/icon/index.less +0 -10
- package/es/icon/style/less.d.ts +0 -1
- package/es/icon/style/less.js +0 -3
- package/es/image/Image.js +0 -149
- package/es/image/index.js +0 -8
- package/es/image/index.less +0 -55
- package/es/image/style/less.d.ts +0 -1
- package/es/image/style/less.js +0 -4
- package/es/image-preview/ImagePreview.js +0 -161
- package/es/image-preview/ImagePreviewItem.js +0 -248
- package/es/image-preview/function-call.js +0 -68
- package/es/image-preview/index.js +0 -6
- package/es/image-preview/index.less +0 -110
- package/es/image-preview/style/less.d.ts +0 -1
- package/es/image-preview/style/less.js +0 -10
- package/es/index-anchor/IndexAnchor.js +0 -87
- package/es/index-anchor/index.js +0 -8
- package/es/index-anchor/index.less +0 -31
- package/es/index-anchor/style/less.d.ts +0 -1
- package/es/index-anchor/style/less.js +0 -3
- package/es/index-bar/IndexBar.js +0 -221
- package/es/index-bar/index.js +0 -8
- package/es/index-bar/index.less +0 -33
- package/es/index-bar/style/less.d.ts +0 -1
- package/es/index-bar/style/less.js +0 -2
- package/es/index.js +0 -280
- package/es/lazyload/index.js +0 -6
- package/es/lazyload/style/less.d.ts +0 -1
- package/es/lazyload/style/less.js +0 -1
- package/es/lazyload/vue-lazyload/index.js +0 -31
- package/es/lazyload/vue-lazyload/lazy-container.js +0 -70
- package/es/lazyload/vue-lazyload/lazy-image.js +0 -90
- package/es/lazyload/vue-lazyload/lazy.js +0 -356
- package/es/lazyload/vue-lazyload/listener.js +0 -161
- package/es/list/List.js +0 -138
- package/es/list/index.js +0 -8
- package/es/list/index.less +0 -29
- package/es/list/style/less.d.ts +0 -1
- package/es/list/style/less.js +0 -3
- package/es/loading/Loading.js +0 -66
- package/es/loading/index.js +0 -8
- package/es/loading/index.less +0 -109
- package/es/loading/style/less.d.ts +0 -1
- package/es/loading/style/less.js +0 -2
- package/es/locale/index.js +0 -24
- package/es/locale/style/less.d.ts +0 -1
- package/es/locale/style/less.js +0 -1
- package/es/nav-bar/NavBar.js +0 -90
- package/es/nav-bar/index.js +0 -8
- package/es/nav-bar/index.less +0 -78
- package/es/nav-bar/style/less.d.ts +0 -1
- package/es/nav-bar/style/less.js +0 -4
- package/es/notice-bar/NoticeBar.js +0 -165
- package/es/notice-bar/index.js +0 -8
- package/es/notice-bar/index.less +0 -70
- package/es/notice-bar/style/less.d.ts +0 -1
- package/es/notice-bar/style/less.js +0 -4
- package/es/notify/Notify.js +0 -44
- package/es/notify/function-call.js +0 -72
- package/es/notify/index.js +0 -6
- package/es/notify/index.less +0 -42
- package/es/notify/style/less.d.ts +0 -1
- package/es/notify/style/less.js +0 -6
- package/es/number-keyboard/NumberKeyboard.js +0 -229
- package/es/number-keyboard/NumberKeyboardKey.js +0 -94
- package/es/number-keyboard/index.js +0 -8
- package/es/number-keyboard/index.less +0 -159
- package/es/number-keyboard/style/less.d.ts +0 -1
- package/es/number-keyboard/style/less.js +0 -3
- package/es/overlay/Overlay.js +0 -47
- package/es/overlay/index.js +0 -8
- package/es/overlay/index.less +0 -14
- package/es/overlay/style/less.d.ts +0 -1
- package/es/overlay/style/less.js +0 -2
- package/es/pagination/Pagination.js +0 -144
- package/es/pagination/index.js +0 -8
- package/es/pagination/index.less +0 -89
- package/es/pagination/style/less.d.ts +0 -1
- package/es/pagination/style/less.js +0 -2
- package/es/password-input/PasswordInput.js +0 -78
- package/es/password-input/index.js +0 -8
- package/es/password-input/index.less +0 -100
- package/es/password-input/style/less.d.ts +0 -1
- package/es/password-input/style/less.js +0 -2
- package/es/picker/Picker.js +0 -209
- package/es/picker/PickerColumn.js +0 -188
- package/es/picker/index.js +0 -8
- package/es/picker/index.less +0 -138
- package/es/picker/style/less.d.ts +0 -1
- package/es/picker/style/less.js +0 -3
- package/es/picker/utils.js +0 -73
- package/es/popover/Popover.js +0 -177
- package/es/popover/index.js +0 -8
- package/es/popover/index.less +0 -288
- package/es/popover/style/less.d.ts +0 -1
- package/es/popover/style/less.js +0 -6
- package/es/popup/Popup.js +0 -205
- package/es/popup/index.js +0 -8
- package/es/popup/index.less +0 -139
- package/es/popup/shared.js +0 -20
- package/es/popup/style/less.d.ts +0 -1
- package/es/popup/style/less.js +0 -5
- package/es/progress/Progress.js +0 -76
- package/es/progress/index.js +0 -8
- package/es/progress/index.less +0 -53
- package/es/progress/style/less.d.ts +0 -1
- package/es/progress/style/less.js +0 -2
- package/es/pull-refresh/PullRefresh.js +0 -185
- package/es/pull-refresh/index.js +0 -8
- package/es/pull-refresh/index.less +0 -36
- package/es/pull-refresh/style/less.d.ts +0 -1
- package/es/pull-refresh/style/less.js +0 -3
- package/es/radio/Radio.js +0 -41
- package/es/radio/index.js +0 -8
- package/es/radio/index.less +0 -96
- package/es/radio/style/less.d.ts +0 -1
- package/es/radio/style/less.js +0 -6
- package/es/radio-group/RadioGroup.js +0 -44
- package/es/radio-group/index.js +0 -8
- package/es/radio-group/index.less +0 -6
- package/es/radio-group/style/less.d.ts +0 -1
- package/es/radio-group/style/less.js +0 -2
- package/es/rate/Rate.js +0 -217
- package/es/rate/index.js +0 -8
- package/es/rate/index.less +0 -52
- package/es/rate/style/less.d.ts +0 -1
- package/es/rate/style/less.js +0 -4
- package/es/row/Row.js +0 -91
- package/es/row/index.js +0 -8
- package/es/row/index.less +0 -32
- package/es/row/style/less.d.ts +0 -1
- package/es/row/style/less.js +0 -2
- package/es/search/Search.js +0 -118
- package/es/search/index.js +0 -8
- package/es/search/index.less +0 -76
- package/es/search/style/less.d.ts +0 -1
- package/es/search/style/less.js +0 -6
- package/es/share-sheet/ShareSheet.js +0 -122
- package/es/share-sheet/index.js +0 -8
- package/es/share-sheet/index.less +0 -152
- package/es/share-sheet/style/less.d.ts +0 -1
- package/es/share-sheet/style/less.js +0 -6
- package/es/sidebar/Sidebar.js +0 -44
- package/es/sidebar/index.js +0 -8
- package/es/sidebar/index.less +0 -9
- package/es/sidebar/style/less.d.ts +0 -1
- package/es/sidebar/style/less.js +0 -2
- package/es/sidebar-item/SidebarItem.js +0 -72
- package/es/sidebar-item/index.js +0 -8
- package/es/sidebar-item/index.less +0 -72
- package/es/sidebar-item/style/less.d.ts +0 -1
- package/es/sidebar-item/style/less.js +0 -4
- package/es/skeleton/Skeleton.js +0 -84
- package/es/skeleton/index.js +0 -8
- package/es/skeleton/index.less +0 -73
- package/es/skeleton/style/less.d.ts +0 -1
- package/es/skeleton/style/less.js +0 -2
- package/es/slider/Slider.js +0 -267
- package/es/slider/index.js +0 -8
- package/es/slider/index.less +0 -104
- package/es/slider/style/less.d.ts +0 -1
- package/es/slider/style/less.js +0 -2
- package/es/step/Step.js +0 -118
- package/es/step/index.js +0 -8
- package/es/step/index.less +0 -147
- package/es/step/style/less.d.ts +0 -1
- package/es/step/style/less.js +0 -5
- package/es/stepper/Stepper.js +0 -247
- package/es/stepper/index.js +0 -8
- package/es/stepper/index.less +0 -129
- package/es/stepper/style/less.d.ts +0 -1
- package/es/stepper/style/less.js +0 -2
- package/es/steps/Steps.js +0 -46
- package/es/steps/index.js +0 -8
- package/es/steps/index.less +0 -23
- package/es/steps/style/less.d.ts +0 -1
- package/es/steps/style/less.js +0 -2
- package/es/sticky/Sticky.js +0 -119
- package/es/sticky/index.js +0 -8
- package/es/sticky/index.less +0 -10
- package/es/sticky/style/less.d.ts +0 -1
- package/es/sticky/style/less.js +0 -2
- package/es/style/animation.less +0 -135
- package/es/style/base.less +0 -89
- package/es/style/css-variables.less +0 -90
- package/es/style/mixins/clearfix.less +0 -7
- package/es/style/mixins/ellipsis.less +0 -15
- package/es/style/mixins/hairline.less +0 -37
- package/es/style/normalize.less +0 -36
- package/es/submit-bar/SubmitBar.js +0 -104
- package/es/submit-bar/index.js +0 -8
- package/es/submit-bar/index.less +0 -97
- package/es/submit-bar/style/less.d.ts +0 -1
- package/es/submit-bar/style/less.js +0 -6
- package/es/swipe/Swipe.js +0 -353
- package/es/swipe/index.js +0 -8
- package/es/swipe/index.less +0 -65
- package/es/swipe/style/less.d.ts +0 -1
- package/es/swipe/style/less.js +0 -2
- package/es/swipe-cell/SwipeCell.js +0 -160
- package/es/swipe-cell/index.js +0 -8
- package/es/swipe-cell/index.less +0 -27
- package/es/swipe-cell/style/less.d.ts +0 -1
- package/es/swipe-cell/style/less.js +0 -2
- package/es/swipe-item/SwipeItem.js +0 -82
- package/es/swipe-item/index.js +0 -8
- package/es/swipe-item/index.less +0 -6
- package/es/swipe-item/style/less.d.ts +0 -1
- package/es/swipe-item/style/less.js +0 -3
- package/es/switch/Switch.js +0 -80
- package/es/switch/index.js +0 -8
- package/es/switch/index.less +0 -75
- package/es/switch/style/less.d.ts +0 -1
- package/es/switch/style/less.js +0 -3
- package/es/tab/Tab.js +0 -113
- package/es/tab/index.js +0 -8
- package/es/tab/index.less +0 -15
- package/es/tab/style/less.d.ts +0 -1
- package/es/tab/style/less.js +0 -7
- package/es/tabbar/Tabbar.js +0 -84
- package/es/tabbar/index.js +0 -8
- package/es/tabbar/index.less +0 -20
- package/es/tabbar/style/less.d.ts +0 -1
- package/es/tabbar/style/less.js +0 -2
- package/es/tabbar-item/TabbarItem.js +0 -120
- package/es/tabbar-item/index.js +0 -8
- package/es/tabbar-item/index.less +0 -44
- package/es/tabbar-item/style/less.d.ts +0 -1
- package/es/tabbar-item/style/less.js +0 -5
- package/es/tabs/Tabs.js +0 -352
- package/es/tabs/TabsContent.js +0 -64
- package/es/tabs/TabsTitle.js +0 -90
- package/es/tabs/index.js +0 -8
- package/es/tabs/index.less +0 -170
- package/es/tabs/style/less.d.ts +0 -1
- package/es/tabs/style/less.js +0 -5
- package/es/tabs/utils.js +0 -37
- package/es/tag/Tag.js +0 -78
- package/es/tag/index.js +0 -8
- package/es/tag/index.less +0 -115
- package/es/tag/style/less.d.ts +0 -1
- package/es/tag/style/less.js +0 -4
- package/es/time-picker/TimePicker.js +0 -71
- package/es/time-picker/index.js +0 -8
- package/es/time-picker/style/less.d.ts +0 -1
- package/es/time-picker/style/less.js +0 -3
- package/es/toast/Toast.js +0 -119
- package/es/toast/function-call.js +0 -140
- package/es/toast/index.js +0 -6
- package/es/toast/index.less +0 -89
- package/es/toast/style/less.d.ts +0 -1
- package/es/toast/style/less.js +0 -7
- package/es/tree-select/TreeSelect.js +0 -102
- package/es/tree-select/index.js +0 -8
- package/es/tree-select/index.less +0 -68
- package/es/tree-select/style/less.d.ts +0 -1
- package/es/tree-select/style/less.js +0 -6
- package/es/uploader/Uploader.js +0 -250
- package/es/uploader/UploaderPreviewItem.js +0 -125
- package/es/uploader/index.js +0 -8
- package/es/uploader/index.less +0 -188
- package/es/uploader/style/less.d.ts +0 -1
- package/es/uploader/style/less.js +0 -11
- package/es/uploader/utils.js +0 -69
- package/es/utils/create.js +0 -47
- package/es/utils/deep-assign.js +0 -22
- package/es/utils/deep-clone.js +0 -20
- package/es/utils/dom.js +0 -67
- package/es/utils/format.js +0 -120
- package/es/utils/index.js +0 -9
- package/es/utils/interceptor.js +0 -29
- package/es/utils/mount-component.js +0 -39
- package/es/utils/validate.js +0 -22
- package/es/utils/with-install.js +0 -12
- package/lib/action-bar/index.less +0 -16
- package/lib/action-bar/style/less.d.ts +0 -1
- package/lib/action-bar/style/less.js +0 -2
- package/lib/action-bar-button/index.less +0 -38
- package/lib/action-bar-button/style/less.d.ts +0 -1
- package/lib/action-bar-button/style/less.js +0 -7
- package/lib/action-bar-icon/index.less +0 -34
- package/lib/action-bar-icon/style/less.d.ts +0 -1
- package/lib/action-bar-icon/style/less.js +0 -5
- package/lib/action-sheet/index.less +0 -131
- package/lib/action-sheet/style/less.d.ts +0 -1
- package/lib/action-sheet/style/less.js +0 -7
- package/lib/address-edit/index.less +0 -39
- package/lib/address-edit/style/less.d.ts +0 -1
- package/lib/address-edit/style/less.js +0 -13
- package/lib/address-list/index.less +0 -110
- package/lib/address-list/style/less.d.ts +0 -1
- package/lib/address-list/style/less.js +0 -11
- package/lib/area/style/less.d.ts +0 -1
- package/lib/area/style/less.js +0 -3
- package/lib/badge/index.less +0 -72
- package/lib/badge/style/less.d.ts +0 -1
- package/lib/badge/style/less.js +0 -2
- package/lib/button/index.less +0 -241
- package/lib/button/style/less.d.ts +0 -1
- package/lib/button/style/less.js +0 -5
- package/lib/calendar/index.less +0 -217
- package/lib/calendar/style/less.d.ts +0 -1
- package/lib/calendar/style/less.js +0 -10
- package/lib/card/index.less +0 -126
- package/lib/card/style/less.d.ts +0 -1
- package/lib/card/style/less.js +0 -6
- package/lib/cascader/index.less +0 -92
- package/lib/cascader/style/less.d.ts +0 -1
- package/lib/cascader/style/less.js +0 -9
- package/lib/cell/index.less +0 -119
- package/lib/cell/style/less.d.ts +0 -1
- package/lib/cell/style/less.js +0 -4
- package/lib/cell-group/index.less +0 -32
- package/lib/cell-group/style/less.d.ts +0 -1
- package/lib/cell-group/style/less.js +0 -2
- package/lib/checkbox/index.less +0 -96
- package/lib/checkbox/style/less.d.ts +0 -1
- package/lib/checkbox/style/less.js +0 -5
- package/lib/checkbox-group/index.less +0 -6
- package/lib/checkbox-group/style/less.d.ts +0 -1
- package/lib/checkbox-group/style/less.js +0 -2
- package/lib/circle/index.less +0 -49
- package/lib/circle/style/less.d.ts +0 -1
- package/lib/circle/style/less.js +0 -2
- package/lib/col/index.less +0 -19
- package/lib/col/style/less.d.ts +0 -1
- package/lib/col/style/less.js +0 -3
- package/lib/collapse/style/less.d.ts +0 -1
- package/lib/collapse/style/less.js +0 -1
- package/lib/collapse-item/index.less +0 -75
- package/lib/collapse-item/style/less.d.ts +0 -1
- package/lib/collapse-item/style/less.js +0 -5
- package/lib/config-provider/style/less.d.ts +0 -1
- package/lib/config-provider/style/less.js +0 -1
- package/lib/contact-card/index.less +0 -47
- package/lib/contact-card/style/less.d.ts +0 -1
- package/lib/contact-card/style/less.js +0 -5
- package/lib/contact-edit/index.less +0 -37
- package/lib/contact-edit/style/less.d.ts +0 -1
- package/lib/contact-edit/style/less.js +0 -9
- package/lib/contact-list/index.less +0 -65
- package/lib/contact-list/style/less.d.ts +0 -1
- package/lib/contact-list/style/less.js +0 -11
- package/lib/count-down/index.less +0 -11
- package/lib/count-down/style/less.d.ts +0 -1
- package/lib/count-down/style/less.js +0 -2
- package/lib/coupon/index.less +0 -127
- package/lib/coupon/style/less.d.ts +0 -1
- package/lib/coupon/style/less.js +0 -6
- package/lib/coupon-cell/index.less +0 -9
- package/lib/coupon-cell/style/less.d.ts +0 -1
- package/lib/coupon-cell/style/less.js +0 -5
- package/lib/coupon-list/index.less +0 -86
- package/lib/coupon-list/style/less.d.ts +0 -1
- package/lib/coupon-list/style/less.js +0 -17
- package/lib/date-picker/style/less.d.ts +0 -1
- package/lib/date-picker/style/less.js +0 -3
- package/lib/dialog/index.less +0 -140
- package/lib/dialog/style/less.d.ts +0 -1
- package/lib/dialog/style/less.js +0 -10
- package/lib/divider/index.less +0 -73
- package/lib/divider/style/less.d.ts +0 -1
- package/lib/divider/style/less.js +0 -2
- package/lib/dropdown-item/index.less +0 -41
- package/lib/dropdown-item/style/less.d.ts +0 -1
- package/lib/dropdown-item/style/less.js +0 -8
- package/lib/dropdown-menu/index.less +0 -80
- package/lib/dropdown-menu/style/less.d.ts +0 -1
- package/lib/dropdown-menu/style/less.js +0 -2
- package/lib/empty/Images.d.ts +0 -4
- package/lib/empty/Images.js +0 -290
- package/lib/empty/index.less +0 -41
- package/lib/empty/style/less.d.ts +0 -1
- package/lib/empty/style/less.js +0 -2
- package/lib/field/index.less +0 -196
- package/lib/field/style/less.d.ts +0 -1
- package/lib/field/style/less.js +0 -5
- package/lib/form/style/less.d.ts +0 -1
- package/lib/form/style/less.js +0 -1
- package/lib/grid/index.less +0 -4
- package/lib/grid/style/less.d.ts +0 -1
- package/lib/grid/style/less.js +0 -2
- package/lib/grid-item/index.less +0 -97
- package/lib/grid-item/style/less.d.ts +0 -1
- package/lib/grid-item/style/less.js +0 -5
- package/lib/icon/index.less +0 -10
- package/lib/icon/style/less.d.ts +0 -1
- package/lib/icon/style/less.js +0 -3
- package/lib/image/index.less +0 -55
- package/lib/image/style/less.d.ts +0 -1
- package/lib/image/style/less.js +0 -4
- package/lib/image-preview/index.less +0 -110
- package/lib/image-preview/style/less.d.ts +0 -1
- package/lib/image-preview/style/less.js +0 -10
- package/lib/index-anchor/index.less +0 -31
- package/lib/index-anchor/style/less.d.ts +0 -1
- package/lib/index-anchor/style/less.js +0 -3
- package/lib/index-bar/index.less +0 -33
- package/lib/index-bar/style/less.d.ts +0 -1
- package/lib/index-bar/style/less.js +0 -2
- package/lib/index.less +0 -80
- package/lib/lazyload/style/less.d.ts +0 -1
- package/lib/lazyload/style/less.js +0 -1
- package/lib/list/index.less +0 -29
- package/lib/list/style/less.d.ts +0 -1
- package/lib/list/style/less.js +0 -3
- package/lib/loading/index.less +0 -109
- package/lib/loading/style/less.d.ts +0 -1
- package/lib/loading/style/less.js +0 -2
- package/lib/locale/style/less.d.ts +0 -1
- package/lib/locale/style/less.js +0 -1
- package/lib/nav-bar/index.less +0 -78
- package/lib/nav-bar/style/less.d.ts +0 -1
- package/lib/nav-bar/style/less.js +0 -4
- package/lib/notice-bar/index.less +0 -70
- package/lib/notice-bar/style/less.d.ts +0 -1
- package/lib/notice-bar/style/less.js +0 -4
- package/lib/notify/index.less +0 -42
- package/lib/notify/style/less.d.ts +0 -1
- package/lib/notify/style/less.js +0 -6
- package/lib/number-keyboard/index.less +0 -159
- package/lib/number-keyboard/style/less.d.ts +0 -1
- package/lib/number-keyboard/style/less.js +0 -3
- package/lib/overlay/index.less +0 -14
- package/lib/overlay/style/less.d.ts +0 -1
- package/lib/overlay/style/less.js +0 -2
- package/lib/pagination/index.less +0 -89
- package/lib/pagination/style/less.d.ts +0 -1
- package/lib/pagination/style/less.js +0 -2
- package/lib/password-input/index.less +0 -100
- package/lib/password-input/style/less.d.ts +0 -1
- package/lib/password-input/style/less.js +0 -2
- package/lib/picker/index.less +0 -138
- package/lib/picker/style/less.d.ts +0 -1
- package/lib/picker/style/less.js +0 -3
- package/lib/popover/index.less +0 -288
- package/lib/popover/style/less.d.ts +0 -1
- package/lib/popover/style/less.js +0 -6
- package/lib/popup/index.less +0 -139
- package/lib/popup/style/less.d.ts +0 -1
- package/lib/popup/style/less.js +0 -5
- package/lib/progress/index.less +0 -53
- package/lib/progress/style/less.d.ts +0 -1
- package/lib/progress/style/less.js +0 -2
- package/lib/pull-refresh/index.less +0 -36
- package/lib/pull-refresh/style/less.d.ts +0 -1
- package/lib/pull-refresh/style/less.js +0 -3
- package/lib/radio/index.less +0 -96
- package/lib/radio/style/less.d.ts +0 -1
- package/lib/radio/style/less.js +0 -6
- package/lib/radio-group/index.less +0 -6
- package/lib/radio-group/style/less.d.ts +0 -1
- package/lib/radio-group/style/less.js +0 -2
- package/lib/rate/index.less +0 -52
- package/lib/rate/style/less.d.ts +0 -1
- package/lib/rate/style/less.js +0 -4
- package/lib/row/index.less +0 -32
- package/lib/row/style/less.d.ts +0 -1
- package/lib/row/style/less.js +0 -2
- package/lib/search/index.less +0 -76
- package/lib/search/style/less.d.ts +0 -1
- package/lib/search/style/less.js +0 -6
- package/lib/share-sheet/index.less +0 -152
- package/lib/share-sheet/style/less.d.ts +0 -1
- package/lib/share-sheet/style/less.js +0 -6
- package/lib/sidebar/index.less +0 -9
- package/lib/sidebar/style/less.d.ts +0 -1
- package/lib/sidebar/style/less.js +0 -2
- package/lib/sidebar-item/index.less +0 -72
- package/lib/sidebar-item/style/less.d.ts +0 -1
- package/lib/sidebar-item/style/less.js +0 -4
- package/lib/skeleton/index.less +0 -73
- package/lib/skeleton/style/less.d.ts +0 -1
- package/lib/skeleton/style/less.js +0 -2
- package/lib/slider/index.less +0 -104
- package/lib/slider/style/less.d.ts +0 -1
- package/lib/slider/style/less.js +0 -2
- package/lib/ssr.js +0 -7
- package/lib/ssr.mjs +0 -1
- package/lib/step/index.less +0 -147
- package/lib/step/style/less.d.ts +0 -1
- package/lib/step/style/less.js +0 -5
- package/lib/stepper/index.less +0 -129
- package/lib/stepper/style/less.d.ts +0 -1
- package/lib/stepper/style/less.js +0 -2
- package/lib/steps/index.less +0 -23
- package/lib/steps/style/less.d.ts +0 -1
- package/lib/steps/style/less.js +0 -2
- package/lib/sticky/index.less +0 -10
- package/lib/sticky/style/less.d.ts +0 -1
- package/lib/sticky/style/less.js +0 -2
- package/lib/style/animation.less +0 -135
- package/lib/style/base.less +0 -89
- package/lib/style/css-variables.less +0 -90
- package/lib/style/mixins/clearfix.less +0 -7
- package/lib/style/mixins/ellipsis.less +0 -15
- package/lib/style/mixins/hairline.less +0 -37
- package/lib/style/normalize.less +0 -36
- package/lib/submit-bar/index.less +0 -97
- package/lib/submit-bar/style/less.d.ts +0 -1
- package/lib/submit-bar/style/less.js +0 -6
- package/lib/swipe/index.less +0 -65
- package/lib/swipe/style/less.d.ts +0 -1
- package/lib/swipe/style/less.js +0 -2
- package/lib/swipe-cell/index.less +0 -27
- package/lib/swipe-cell/style/less.d.ts +0 -1
- package/lib/swipe-cell/style/less.js +0 -2
- package/lib/swipe-item/index.less +0 -6
- package/lib/swipe-item/style/less.d.ts +0 -1
- package/lib/swipe-item/style/less.js +0 -3
- package/lib/switch/index.less +0 -75
- package/lib/switch/style/less.d.ts +0 -1
- package/lib/switch/style/less.js +0 -3
- package/lib/tab/index.less +0 -15
- package/lib/tab/style/less.d.ts +0 -1
- package/lib/tab/style/less.js +0 -7
- package/lib/tabbar/index.less +0 -20
- package/lib/tabbar/style/less.d.ts +0 -1
- package/lib/tabbar/style/less.js +0 -2
- package/lib/tabbar-item/index.less +0 -44
- package/lib/tabbar-item/style/less.d.ts +0 -1
- package/lib/tabbar-item/style/less.js +0 -5
- package/lib/tabs/index.less +0 -170
- package/lib/tabs/style/less.d.ts +0 -1
- package/lib/tabs/style/less.js +0 -5
- package/lib/tag/index.less +0 -115
- package/lib/tag/style/less.d.ts +0 -1
- package/lib/tag/style/less.js +0 -4
- package/lib/time-picker/style/less.d.ts +0 -1
- package/lib/time-picker/style/less.js +0 -3
- package/lib/toast/index.less +0 -89
- package/lib/toast/style/less.d.ts +0 -1
- package/lib/toast/style/less.js +0 -7
- package/lib/tree-select/index.less +0 -68
- package/lib/tree-select/style/less.d.ts +0 -1
- package/lib/tree-select/style/less.js +0 -6
- package/lib/uploader/index.less +0 -188
- package/lib/uploader/style/less.d.ts +0 -1
- package/lib/uploader/style/less.js +0 -11
- package/lib/vant.cjs.min.js +0 -1
- package/lib/vant.es.min.js +0 -14181
- package/vetur/attributes.json +0 -3514
- package/vetur/tags.json +0 -1208
- package/vetur/web-types.json +0 -11834
package/LICENSE
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) Youzan
|
4
|
+
Copyright (c) Chen Jiahan and other contributors
|
5
|
+
|
6
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
7
|
+
|
8
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
9
|
+
|
10
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/README.md
CHANGED
@@ -1,24 +1,23 @@
|
|
1
1
|
<p align="center">
|
2
|
-
<img alt="logo" src="https://
|
2
|
+
<img alt="logo" src="https://fastly.jsdelivr.net/npm/@vant/assets/logo.png" width="120" height="120" style="margin-bottom: 10px;">
|
3
3
|
</p>
|
4
4
|
|
5
5
|
<h1 align="center">Vant</h1>
|
6
6
|
|
7
|
-
<p align="center">Mobile UI Components built on Vue</p>
|
7
|
+
<p align="center">Lightweight Mobile UI Components built on Vue</p>
|
8
8
|
|
9
9
|
<p align="center">
|
10
10
|
<img src="https://img.shields.io/npm/v/vant?style=flat-square" alt="npm version" />
|
11
|
-
<img src="https://img.shields.io/github/workflow/status/
|
12
|
-
<img src="https://img.shields.io/codecov/c/github/
|
11
|
+
<img src="https://img.shields.io/github/workflow/status/vant-ui/vant/CI/dev?style=flat-square" alt="CI Status" />
|
12
|
+
<img src="https://img.shields.io/codecov/c/github/vant-ui/vant/dev.svg?style=flat-square&color=#4fc08d" alt="Coverage Status" />
|
13
13
|
<img src="https://img.shields.io/npm/dm/vant.svg?style=flat-square&color=#4fc08d" alt="downloads" />
|
14
|
-
<img src="https://img.shields.io/jsdelivr/npm/hm/vant?style=flat-square" alt="Jsdelivr Hits">
|
15
14
|
<img src="https://img.badgesize.io/https://unpkg.com/vant@3/lib/vant.min.js?compression=gzip&style=flat-square&label=gzip%20size&color=#4fc08d" alt="Gzip Size" />
|
16
15
|
</p>
|
17
16
|
|
18
17
|
<p align="center">
|
19
18
|
🔥 <a href="https://vant-contrib.gitee.io/vant">文档网站(国内)</a>
|
20
19
|
|
21
|
-
🌈 <a href="https://
|
20
|
+
🌈 <a href="https://vant-ui.github.io/vant">文档网站(GitHub)</a>
|
22
21
|
|
23
22
|
🇨🇳 <a href="./README.zh-CN.md">中文版介绍</a>
|
24
23
|
</p>
|
@@ -29,6 +28,7 @@
|
|
29
28
|
|
30
29
|
- 🚀 1KB Component average size (min+gzip)
|
31
30
|
- 🚀 70+ High quality components
|
31
|
+
- 🚀 Zero third-party dependencies
|
32
32
|
- 💪 90%+ Unit test coverage
|
33
33
|
- 💪 Written in TypeScript
|
34
34
|
- 📖 Extensive documentation and demos
|
@@ -67,14 +67,18 @@ pnpm add vant
|
|
67
67
|
|
68
68
|
```js
|
69
69
|
import { createApp } from 'vue';
|
70
|
+
// 1. Import the components you need
|
70
71
|
import { Button } from 'vant';
|
72
|
+
// 2. Import the components style
|
71
73
|
import 'vant/lib/index.css';
|
72
74
|
|
73
75
|
const app = createApp();
|
76
|
+
|
77
|
+
// 3. Register the components you need
|
74
78
|
app.use(Button);
|
75
79
|
```
|
76
80
|
|
77
|
-
See more in [Quickstart](https://
|
81
|
+
See more in [Quickstart](https://vant-ui.github.io/vant#/en-US/quickstart).
|
78
82
|
|
79
83
|
## Browser Support
|
80
84
|
|
@@ -86,11 +90,11 @@ Vant 3/4 supports modern browsers and Chrome >= 51、iOS >= 10.0 (same as Vue 3)
|
|
86
90
|
|
87
91
|
| Project | Description |
|
88
92
|
| --- | --- |
|
89
|
-
| [vant-weapp](https://github.com/
|
90
|
-
| [vant-demo](https://github.com/
|
91
|
-
| [vant-cli](https://github.com/
|
92
|
-
| [vant-icons](https://github.com/
|
93
|
-
| [vant-touch-emulator](https://github.com/
|
93
|
+
| [vant-weapp](https://github.com/vant-ui/vant-weapp) | WeChat MiniProgram UI |
|
94
|
+
| [vant-demo](https://github.com/vant-ui/vant-demo) | Collection of Vant demos |
|
95
|
+
| [vant-cli](https://github.com/vant-ui/vant/tree/dev/packages/vant-cli) | Scaffold for UI library |
|
96
|
+
| [vant-icons](https://github.com/vant-ui/vant/tree/dev/packages/vant-icons) | Vant icons |
|
97
|
+
| [vant-touch-emulator](https://github.com/vant-ui/vant/tree/dev/packages/vant-touch-emulator) | Using vant in desktop browsers |
|
94
98
|
|
95
99
|
## Community Ecosystem
|
96
100
|
|
@@ -106,15 +110,15 @@ Vant 3/4 supports modern browsers and Chrome >= 51、iOS >= 10.0 (same as Vue 3)
|
|
106
110
|
|
107
111
|
## Links
|
108
112
|
|
109
|
-
- [Documentation](https://
|
110
|
-
- [Changelog](https://
|
113
|
+
- [Documentation](https://vant-ui.github.io/vant)
|
114
|
+
- [Changelog](https://vant-ui.github.io/vant#/en-US/changelog)
|
111
115
|
- [Gitter](https://gitter.im/vant-contrib/discuss?utm_source=share-link&utm_medium=link&utm_campaign=share-link)
|
112
116
|
|
113
117
|
## Preview
|
114
118
|
|
115
119
|
You can scan the following QR code to access the demo:
|
116
120
|
|
117
|
-
<img src="https://
|
121
|
+
<img src="https://fastly.jsdelivr.net/npm/@vant/assets/preview-qrcode.png" width="220" height="220" >
|
118
122
|
|
119
123
|
## Core Team
|
120
124
|
|
@@ -128,7 +132,7 @@ Core contributors of Vant and Vant Weapp:
|
|
128
132
|
|
129
133
|
Thanks to the following friends for their contributions to Vant:
|
130
134
|
|
131
|
-
<a href="https://github.com/
|
135
|
+
<a href="https://github.com/vant-ui/vant/graphs/contributors">
|
132
136
|
<img src="https://opencollective.com/vant/contributors.svg?width=890&button=false" alt="contributors">
|
133
137
|
</a>
|
134
138
|
|
package/changelog.generated.md
CHANGED
@@ -1,198 +1,291 @@
|
|
1
|
-
### [v4.0.0-
|
1
|
+
### [v4.0.0-beta.1](https://github.com/vant-ui/vant/compare/v3.6.0...v4.0.0-beta.1)
|
2
|
+
|
3
|
+
`2022-08-24`
|
4
|
+
|
5
|
+
**Bug Fixes**
|
6
|
+
|
7
|
+
- ConfigProvider: should remove theme class on unmount [#10898](https://github.com/vant-ui/vant/issues/10898)
|
8
|
+
- reduce passive event warning of touchstart event [#10954](https://github.com/vant-ui/vant/issues/10954)
|
9
|
+
- Tabs: resize not work for swipeable tabs [#10964](https://github.com/vant-ui/vant/issues/10964)
|
10
|
+
|
11
|
+
**Document**
|
12
|
+
|
13
|
+
- add babel-plugin-import migration guide [#10867](https://github.com/vant-ui/vant/issues/10867)
|
14
|
+
- add faq of remove babel-plugin-import [#10942](https://github.com/vant-ui/vant/issues/10942)
|
15
|
+
- changelog: 4.0.0-beta.0 [#10825](https://github.com/vant-ui/vant/issues/10825)
|
16
|
+
- changelog: vant@3.6.0 [667034](https://github.com/vant-ui/vant/commit/667034322ed4e1c39fd014e83d8661a1ff891ee0)
|
17
|
+
- fix link address in migrate-from-v3.md [#10919](https://github.com/vant-ui/vant/issues/10919)
|
18
|
+
- Icon: separate usingUrl demo from basicUsage [#10828](https://github.com/vant-ui/vant/issues/10828)
|
19
|
+
- ImagePreview: fix cell style in demo [0881de](https://github.com/vant-ui/vant/commit/0881de82af347002c3f37bba5e2f89aacdeadc16)
|
20
|
+
- NoticeBar: disable swipe drag in demo [#10950](https://github.com/vant-ui/vant/issues/10950)
|
21
|
+
|
22
|
+
- Restore "fix(Popup&Toast): invalid adaptive width (#10961)" [#10961](https://github.com/vant-ui/vant/issues/10961)
|
23
|
+
|
24
|
+
**Feature**
|
25
|
+
|
26
|
+
- ConfigProvider: add theme-vars-dark and theme-vars-light props [#10939](https://github.com/vant-ui/vant/issues/10939)
|
27
|
+
- Picker: add clickOption event [#10865](https://github.com/vant-ui/vant/issues/10865)
|
28
|
+
- Popup: improve style when position is center [#10965](https://github.com/vant-ui/vant/issues/10965)
|
29
|
+
|
30
|
+
**perf**
|
31
|
+
|
32
|
+
- add correct passive flag to improve scroll performance [#10951](https://github.com/vant-ui/vant/issues/10951)
|
33
|
+
|
34
|
+
**Types**
|
35
|
+
|
36
|
+
- @vant/use: improve useEventListener typing [#10952](https://github.com/vant-ui/vant/issues/10952)
|
37
|
+
### [v4.0.0-beta.0](https://github.com/vant-ui/vant/compare/v3.5.2...v4.0.0-beta.0)
|
38
|
+
|
39
|
+
`2022-07-16`
|
40
|
+
|
41
|
+
**Document**
|
42
|
+
|
43
|
+
- changelog: 4.0.0-alpha.4 [635194](https://github.com/vant-ui/vant/commit/63519433f12d4b1a17191c83df1dd928f5909542)
|
44
|
+
|
45
|
+
**Feature**
|
46
|
+
|
47
|
+
- add @vant/compat package [#10806](https://github.com/vant-ui/vant/issues/10806)
|
48
|
+
|
49
|
+
**perf**
|
50
|
+
|
51
|
+
- remove less source file to remove bundle size [#10752](https://github.com/vant-ui/vant/issues/10752)
|
52
|
+
|
53
|
+
**refactor**
|
54
|
+
|
55
|
+
- Dialog: redesign function-call API [#10781](https://github.com/vant-ui/vant/issues/10781)
|
56
|
+
- ImagePreview: redesign function-call API [#10802](https://github.com/vant-ui/vant/issues/10802)
|
57
|
+
- Notify: redesign function-call API [#10782](https://github.com/vant-ui/vant/issues/10782)
|
58
|
+
- Toast: redesign function-call API [#10804](https://github.com/vant-ui/vant/issues/10804)
|
59
|
+
|
60
|
+
**release**
|
61
|
+
|
62
|
+
- 4.0.0-beta.0 [151427](https://github.com/vant-ui/vant/commit/15142770f226f4e2834c42bf076dfd683a53202d)
|
63
|
+
### [v4.0.0-alpha.4](https://github.com/vant-ui/vant/compare/v3.5.0-beta.0...v4.0.0-alpha.4)
|
64
|
+
|
65
|
+
`2022-05-31`
|
66
|
+
|
67
|
+
**Document**
|
68
|
+
|
69
|
+
- changelog: 4.0.0-alpha.3 [fe2115](https://github.com/vant-ui/vant/commit/fe2115ee5c1e86f006858bc930219313afb46747)
|
70
|
+
|
71
|
+
**Feature**
|
72
|
+
|
73
|
+
- using mjs extension for esmodule [#10625](https://github.com/vant-ui/vant/issues/10625)
|
74
|
+
|
75
|
+
**release**
|
76
|
+
|
77
|
+
- 4.0.0-alpha.4 [1f19fb](https://github.com/vant-ui/vant/commit/1f19fb0d9f91317e799f4ce8f017f56841dad6e6)
|
78
|
+
### [v4.0.0-alpha.3](https://github.com/vant-ui/vant/compare/v3.4.9...v4.0.0-alpha.3)
|
2
79
|
|
3
80
|
`2022-05-02`
|
4
81
|
|
5
82
|
**Bug Fixes**
|
6
83
|
|
7
|
-
- Search: style error in dark mode [#10527](https://github.com/
|
84
|
+
- Search: style error in dark mode [#10527](https://github.com/vant-ui/vant/issues/10527)
|
8
85
|
|
9
86
|
**Document**
|
10
87
|
|
11
|
-
- changelog:
|
12
|
-
|
13
|
-
|
88
|
+
- changelog: 4.0.0-alpha.2 [912a5f](https://github.com/vant-ui/vant/commit/912a5f17b1b429baa063de91c68a8bf6650b1189)
|
89
|
+
|
90
|
+
**release**
|
91
|
+
|
92
|
+
- 4.0.0-alpha.3 [bc60f5](https://github.com/vant-ui/vant/commit/bc60f5116bd832c599ec8ba43b58daece4abe280)
|
93
|
+
### [v4.0.0-alpha.2](https://github.com/vant-ui/vant/compare/v3.4.8...v4.0.0-alpha.2)
|
14
94
|
|
15
95
|
`2022-04-16`
|
16
96
|
|
17
97
|
**Document**
|
18
98
|
|
19
|
-
- changelog: 4.0.0-alpha.1 [5bff9e](https://github.com/
|
99
|
+
- changelog: 4.0.0-alpha.1 [5bff9e](https://github.com/vant-ui/vant/commit/5bff9e8c5ff4716740c7555ef185163569f7576c)
|
20
100
|
|
21
|
-
- breaking change(AddressEdit): remove postal [e08e98](https://github.com/
|
101
|
+
- breaking change(AddressEdit): remove postal [e08e98](https://github.com/vant-ui/vant/commit/e08e9845a29b8d5587f02eff84368e32157678f4)
|
22
102
|
|
23
103
|
**release**
|
24
104
|
|
25
|
-
- 4.0.0-alpha.2 [ea57c9](https://github.com/
|
26
|
-
### [v4.0.0-alpha.1](https://github.com/
|
105
|
+
- 4.0.0-alpha.2 [ea57c9](https://github.com/vant-ui/vant/commit/ea57c9e9ffc10847ac31e1c6b6dac8f81c4abb22)
|
106
|
+
### [v4.0.0-alpha.1](https://github.com/vant-ui/vant/compare/v3.4.6...v4.0.0-alpha.1)
|
27
107
|
|
28
108
|
`2022-03-19`
|
29
109
|
|
30
110
|
**Bug Fixes**
|
31
111
|
|
32
|
-
- Calendar, Picker: Fix calendar and picker's title color in dark mode [#10403](https://github.com/
|
33
|
-
- ConfigProvider: dark mode not work as default value [#10413](https://github.com/
|
34
|
-
- DatePicker: failed to update model value [#10415](https://github.com/
|
35
|
-
- Dialog: Fix dialog title and message color in dark mode [#10379](https://github.com/
|
112
|
+
- Calendar, Picker: Fix calendar and picker's title color in dark mode [#10403](https://github.com/vant-ui/vant/issues/10403)
|
113
|
+
- ConfigProvider: dark mode not work as default value [#10413](https://github.com/vant-ui/vant/issues/10413)
|
114
|
+
- DatePicker: failed to update model value [#10415](https://github.com/vant-ui/vant/issues/10415)
|
115
|
+
- Dialog: Fix dialog title and message color in dark mode [#10379](https://github.com/vant-ui/vant/issues/10379)
|
36
116
|
|
37
117
|
**build**
|
38
118
|
|
39
|
-
- deploy v4 site [06199f](https://github.com/
|
40
|
-
- fix workflow name [992eea](https://github.com/
|
119
|
+
- deploy v4 site [06199f](https://github.com/vant-ui/vant/commit/06199faf2c170bcd95e6aa49b51d981373ac42a6)
|
120
|
+
- fix workflow name [992eea](https://github.com/vant-ui/vant/commit/992eea3eeb8758942d40f9b893d0ff41c296c3ea)
|
41
121
|
|
42
122
|
**Document**
|
43
123
|
|
44
|
-
- DatePicker: fix formatter usage [#10416](https://github.com/
|
45
|
-
- fix publicPath [db2e6c](https://github.com/
|
46
|
-
- Picker: add v-model usage [#10417](https://github.com/
|
47
|
-
- update [3a1e79](https://github.com/
|
48
|
-
- update 4.0.0-alpha changelog [#10339](https://github.com/
|
124
|
+
- DatePicker: fix formatter usage [#10416](https://github.com/vant-ui/vant/issues/10416)
|
125
|
+
- fix publicPath [db2e6c](https://github.com/vant-ui/vant/commit/db2e6ca12f75ee0db3b25cd1f9766f9e74e285f6)
|
126
|
+
- Picker: add v-model usage [#10417](https://github.com/vant-ui/vant/issues/10417)
|
127
|
+
- update [3a1e79](https://github.com/vant-ui/vant/commit/3a1e792e3151861e0ed780baa67823729db6a8a6)
|
128
|
+
- update 4.0.0-alpha changelog [#10339](https://github.com/vant-ui/vant/issues/10339)
|
49
129
|
|
50
130
|
**release**
|
51
131
|
|
52
|
-
- 4.0.0-alpha.1 [475d10](https://github.com/
|
53
|
-
### [v4.0.0-alpha.0](https://github.com/
|
132
|
+
- 4.0.0-alpha.1 [475d10](https://github.com/vant-ui/vant/commit/475d108ccb0f09dc09269751bd1bc15d1ea2ed0a)
|
133
|
+
### [v4.0.0-alpha.0](https://github.com/vant-ui/vant/compare/v3.4.5...v4.0.0-alpha.0)
|
54
134
|
|
55
135
|
`2022-02-21`
|
56
136
|
|
57
137
|
**Bug Fixes**
|
58
138
|
|
59
|
-
- AddressEdit: selectedOption maybe undefined [3979dd](https://github.com/
|
60
|
-
- Area: allow to reset modelValue [8d49b8](https://github.com/
|
61
|
-
- DatePicker: allow modelValue to be empty [980f97](https://github.com/
|
62
|
-
- Picker: currentColumns calculation [113e1b](https://github.com/
|
63
|
-
- Picker: error when options is empty [018621](https://github.com/
|
64
|
-
- Picker: failed to update modelValue [ff69fd](https://github.com/
|
65
|
-
- Picker: fix some bugs [22654b](https://github.com/
|
66
|
-
- Picker: option.className not work [d16075](https://github.com/
|
67
|
-
- Picker: should update modelValue immediately [e61bd4](https://github.com/
|
68
|
-
- Picker: should update selectedValues correctly [2a8bb8](https://github.com/
|
69
|
-
- TimePicker: remove columns-order prop [7d22cc](https://github.com/
|
70
|
-
- TimePicker: should update modelValue immediately [7dae50](https://github.com/
|
71
|
-
- vant-cli: pnpm compatibility [#10214](https://github.com/
|
139
|
+
- AddressEdit: selectedOption maybe undefined [3979dd](https://github.com/vant-ui/vant/commit/3979ddc40af1325f5cc7889c6f0f277ccdb110c9)
|
140
|
+
- Area: allow to reset modelValue [8d49b8](https://github.com/vant-ui/vant/commit/8d49b88748c6bd36437628ab0242352dc0ba5159)
|
141
|
+
- DatePicker: allow modelValue to be empty [980f97](https://github.com/vant-ui/vant/commit/980f9760112958a2bd5c1e88a410e4c15636658a)
|
142
|
+
- Picker: currentColumns calculation [113e1b](https://github.com/vant-ui/vant/commit/113e1b7a6239c3097956e8692cb512e8ccecccb8)
|
143
|
+
- Picker: error when options is empty [018621](https://github.com/vant-ui/vant/commit/0186219586b75227bf69ce0e514c3ed94c52e1cc)
|
144
|
+
- Picker: failed to update modelValue [ff69fd](https://github.com/vant-ui/vant/commit/ff69fdacc7dd9bcf6bd17c4a493902d027644d92)
|
145
|
+
- Picker: fix some bugs [22654b](https://github.com/vant-ui/vant/commit/22654bf518cc21e45cf9ed5e597f5d5e1f411a17)
|
146
|
+
- Picker: option.className not work [d16075](https://github.com/vant-ui/vant/commit/d16075f39efbd7aeed4feab08cd4587bc73eb54c)
|
147
|
+
- Picker: should update modelValue immediately [e61bd4](https://github.com/vant-ui/vant/commit/e61bd487fa81533a6deb6c8aa52e92a549a000a4)
|
148
|
+
- Picker: should update selectedValues correctly [2a8bb8](https://github.com/vant-ui/vant/commit/2a8bb86fbb7d65f9ddc053de8bc3c9c1175d3dff)
|
149
|
+
- TimePicker: remove columns-order prop [7d22cc](https://github.com/vant-ui/vant/commit/7d22cc2155bef564ee910498d2f8f319ef601a41)
|
150
|
+
- TimePicker: should update modelValue immediately [7dae50](https://github.com/vant-ui/vant/commit/7dae50b0c9809e17448264752de831504f7f084d)
|
151
|
+
- vant-cli: pnpm compatibility [#10214](https://github.com/vant-ui/vant/issues/10214)
|
72
152
|
|
73
153
|
**Document**
|
74
154
|
|
75
|
-
- @vant/cli: changelog 4.0.0-rc.6 [fda3f1](https://github.com/
|
76
|
-
- Area: update documents [a9baa3](https://github.com/
|
77
|
-
- dark mode [d4584a](https://github.com/
|
78
|
-
- DatePicker: fix currentDate of year-month [c942ef](https://github.com/
|
79
|
-
- docsearch version v4 [15e746](https://github.com/
|
80
|
-
- Form: fix demo [7deba8](https://github.com/
|
81
|
-
- Form: fix Picker demo [9cfef0](https://github.com/
|
82
|
-
- Picker: new document [cc10eb](https://github.com/
|
83
|
-
- Picker: update demo [ceaab3](https://github.com/
|
84
|
-
- update migration guide [d68053](https://github.com/
|
85
|
-
- update migration guide [f436b5](https://github.com/
|
86
|
-
- update v4 migration guide [6c24fa](https://github.com/
|
87
|
-
- update Vant 4 [2ceb68](https://github.com/
|
88
|
-
|
89
|
-
- breaking change(AddressEdit): adjust change-area event params [b3cf1d](https://github.com/
|
90
|
-
- breaking change: event name become camelCase [8ca974](https://github.com/
|
91
|
-
- breaking change: shorter css var names [7d6916](https://github.com/
|
92
|
-
- breaking change: no longer support less vars [ada5db](https://github.com/
|
93
|
-
- breaking change(Tabs): remove click、disabled event [099141](https://github.com/
|
94
|
-
- breaking change(Picker): remove default slot、value-key prop [6a4033](https://github.com/
|
155
|
+
- @vant/cli: changelog 4.0.0-rc.6 [fda3f1](https://github.com/vant-ui/vant/commit/fda3f1be9403c68bcc734ae08c760af3d0df6fa1)
|
156
|
+
- Area: update documents [a9baa3](https://github.com/vant-ui/vant/commit/a9baa3b2d188a16637acc1051fb554142408315b)
|
157
|
+
- dark mode [d4584a](https://github.com/vant-ui/vant/commit/d4584aafda247ad4d520afc063cd6a74f8d7ee4c)
|
158
|
+
- DatePicker: fix currentDate of year-month [c942ef](https://github.com/vant-ui/vant/commit/c942efb76b53885a66de5291c86ca1160713cfb3)
|
159
|
+
- docsearch version v4 [15e746](https://github.com/vant-ui/vant/commit/15e7461a93a32c7a0e43e46955adc45d845bc064)
|
160
|
+
- Form: fix demo [7deba8](https://github.com/vant-ui/vant/commit/7deba88b918f74d68b7880621983f2ad2d8eb549)
|
161
|
+
- Form: fix Picker demo [9cfef0](https://github.com/vant-ui/vant/commit/9cfef027aa787ed85566a7ce23beb8c2e8bffba1)
|
162
|
+
- Picker: new document [cc10eb](https://github.com/vant-ui/vant/commit/cc10eb1f2adddc5a6d34336669b85a8a571c1803)
|
163
|
+
- Picker: update demo [ceaab3](https://github.com/vant-ui/vant/commit/ceaab349f177d0280d15f66686890dc092434b80)
|
164
|
+
- update migration guide [d68053](https://github.com/vant-ui/vant/commit/d68053ea7f469953a8e81819e4aeb47ab169124f)
|
165
|
+
- update migration guide [f436b5](https://github.com/vant-ui/vant/commit/f436b5ae09af3f3ff8a5d21105ad0ff85cd48ff7)
|
166
|
+
- update v4 migration guide [6c24fa](https://github.com/vant-ui/vant/commit/6c24fa728ee078419cbd7b8efcd35b3b70021208)
|
167
|
+
- update Vant 4 [2ceb68](https://github.com/vant-ui/vant/commit/2ceb68e691440b49394ea05a82912f1e972146dd)
|
168
|
+
|
169
|
+
- breaking change(AddressEdit): adjust change-area event params [b3cf1d](https://github.com/vant-ui/vant/commit/b3cf1dfb54f04af08011d2b9930fd725856d153a)
|
170
|
+
- breaking change: event name become camelCase [8ca974](https://github.com/vant-ui/vant/commit/8ca9741845cc7f5c73c23bb81c98ec2802971e27)
|
171
|
+
- breaking change: shorter css var names [7d6916](https://github.com/vant-ui/vant/commit/7d6916b946440fdd7fb3e0bd4c1117c989d74a93)
|
172
|
+
- breaking change: no longer support less vars [ada5db](https://github.com/vant-ui/vant/commit/ada5db011c676893a2917b9424be1aeafe54134b)
|
173
|
+
- breaking change(Tabs): remove click、disabled event [099141](https://github.com/vant-ui/vant/commit/099141f6c5b0e43c7e3ceeae98ee7e6e512212d6)
|
174
|
+
- breaking change(Picker): remove default slot、value-key prop [6a4033](https://github.com/vant-ui/vant/commit/6a4033b6bc72c38ff103c16e039ecd73ccacd4df)
|
95
175
|
|
96
176
|
**Feature**
|
97
177
|
|
98
|
-
- @vant/cli: desktop site support dark mode [35a990](https://github.com/
|
99
|
-
- @vant/cli: mobile site support dark mode [df24a3](https://github.com/
|
100
|
-
- ActionBar: update icon text color [650bdd](https://github.com/
|
101
|
-
- add dark mode basic variables [73322f](https://github.com/
|
102
|
-
- Area: add getSelectedOptions method [35a500](https://github.com/
|
103
|
-
- ConfigProvider: add theme prop [f95734](https://github.com/
|
104
|
-
- ConfigProvider: dark theme class [97b074](https://github.com/
|
105
|
-
- DatePicker: date columns calculation [e8ffc8](https://github.com/
|
106
|
-
- Picker: add getSelectedOptions method [83295e](https://github.com/
|
107
|
-
- TimePicker: support select second [2e053a](https://github.com/
|
178
|
+
- @vant/cli: desktop site support dark mode [35a990](https://github.com/vant-ui/vant/commit/35a990ed65500311cbcafae506780dc6d3fb49fa)
|
179
|
+
- @vant/cli: mobile site support dark mode [df24a3](https://github.com/vant-ui/vant/commit/df24a3b6834e4b9439580498f9c4a7448f7ca7c2)
|
180
|
+
- ActionBar: update icon text color [650bdd](https://github.com/vant-ui/vant/commit/650bdd22941d9119d8a78f1ffc37d8562c68f9a1)
|
181
|
+
- add dark mode basic variables [73322f](https://github.com/vant-ui/vant/commit/73322fd310849f53bf6f9e5bc508991c770af620)
|
182
|
+
- Area: add getSelectedOptions method [35a500](https://github.com/vant-ui/vant/commit/35a50012c76495119a44efa2cfc231f8b1921f40)
|
183
|
+
- ConfigProvider: add theme prop [f95734](https://github.com/vant-ui/vant/commit/f9573402a79d2de0abcfb43f6cbcf4c7e7e8c64f)
|
184
|
+
- ConfigProvider: dark theme class [97b074](https://github.com/vant-ui/vant/commit/97b074ad0c3d8f25b9281120444901128bfdc5a1)
|
185
|
+
- DatePicker: date columns calculation [e8ffc8](https://github.com/vant-ui/vant/commit/e8ffc80dc65a9a09e342a97d9314c498e8e78264)
|
186
|
+
- Picker: add getSelectedOptions method [83295e](https://github.com/vant-ui/vant/commit/83295e655da9ae2debbf2e7472753517d5b5241d)
|
187
|
+
- TimePicker: support select second [2e053a](https://github.com/vant-ui/vant/commit/2e053ad76bf254fbe14cee2b3c3d2dc7766c9462)
|
108
188
|
|
109
189
|
**refactor**
|
110
190
|
|
111
|
-
- Area component [cca428](https://github.com/
|
112
|
-
- attach css variables to body element [541458](https://github.com/
|
113
|
-
- DatePicker Component [5b4075](https://github.com/
|
114
|
-
- DatePicker: v-model now is string array [ef8e66](https://github.com/
|
115
|
-
- Picker: data driven [89b029](https://github.com/
|
116
|
-
- Picker: rename item-height to option-height [c06141](https://github.com/
|
117
|
-
- rename --van-background-light to --van-background-2 [98b999](https://github.com/
|
118
|
-
- TimePicker component [42d1dd](https://github.com/
|
119
|
-
- TimePicker: modelValue now is string array [fdcf99](https://github.com/
|
191
|
+
- Area component [cca428](https://github.com/vant-ui/vant/commit/cca428aac63da792e8de8f3f6f76d164cab46cb6)
|
192
|
+
- attach css variables to body element [541458](https://github.com/vant-ui/vant/commit/541458c41b69e3bc977aa39a0e91be2b2d91883a)
|
193
|
+
- DatePicker Component [5b4075](https://github.com/vant-ui/vant/commit/5b407566db61d2ff7e6512ca8f82f39111d8da0f)
|
194
|
+
- DatePicker: v-model now is string array [ef8e66](https://github.com/vant-ui/vant/commit/ef8e66a9244606899339c7153ec2d66406afbf81)
|
195
|
+
- Picker: data driven [89b029](https://github.com/vant-ui/vant/commit/89b029aa42400b2570b7676b881f6311abe42352)
|
196
|
+
- Picker: rename item-height to option-height [c06141](https://github.com/vant-ui/vant/commit/c061412138e41a07a87110692621517eac814428)
|
197
|
+
- rename --van-background-light to --van-background-2 [98b999](https://github.com/vant-ui/vant/commit/98b999d911c41ac1a73e6ef375b4966befe69b20)
|
198
|
+
- TimePicker component [42d1dd](https://github.com/vant-ui/vant/commit/42d1dd836c141f499343aa6a8278d1b3be4953ac)
|
199
|
+
- TimePicker: modelValue now is string array [fdcf99](https://github.com/vant-ui/vant/commit/fdcf9931bed3da6f1faedff99f3a6b8202d75691)
|
120
200
|
|
121
201
|
**release**
|
122
202
|
|
123
|
-
- @vant/cli 4.0.0-rc.6 [e93ae7](https://github.com/
|
124
|
-
- 4.0.0-alpha.0 [c20664](https://github.com/
|
203
|
+
- @vant/cli 4.0.0-rc.6 [e93ae7](https://github.com/vant-ui/vant/commit/e93ae7b430afac7f431af23e334eaf0bf17a9e9d)
|
204
|
+
- 4.0.0-alpha.0 [c20664](https://github.com/vant-ui/vant/commit/c206642d2d6771b681c369653228ec692fd28754)
|
125
205
|
|
126
206
|
**style**
|
127
207
|
|
128
|
-
- @vant/cli: adjust css vars [b6fcd3](https://github.com/
|
129
|
-
- @vant/cli: improve demo style in dark mode [0e8e32](https://github.com/
|
130
|
-
- @vant/cli: improve mobile style in dark mode [f5c32c](https://github.com/
|
131
|
-
- AddressEdit: submit button using primary type [c65d4f](https://github.com/
|
132
|
-
- AddressList: using primary color [fcd91c](https://github.com/
|
133
|
-
- Button: adjust font-smoothing [bda361](https://github.com/
|
134
|
-
- Button: increase default border radius from 2px to 4px [d86771](https://github.com/
|
135
|
-
- Button: update default button border color [bd2428](https://github.com/
|
136
|
-
- Calendar: using primary color by default [4e89e8](https://github.com/
|
137
|
-
- Card: blue tag [369201](https://github.com/
|
138
|
-
- Card: improve card mode style [cb2d99](https://github.com/
|
139
|
-
- Cascader: using primary color by default [84b90b](https://github.com/
|
140
|
-
- Cell: remove value aline style [0a7b53](https://github.com/
|
141
|
-
- ContactEdit: adjust submit button [43ae30](https://github.com/
|
142
|
-
- ContactList: using primary color [d39f6a](https://github.com/
|
143
|
-
- CouponList: change default color [85c5ad](https://github.com/
|
144
|
-
- CouponList: update field background color in dark mode [82e0e4](https://github.com/
|
145
|
-
- DropdownMenu: using primary color by default [37e7c6](https://github.com/
|
146
|
-
- Field: adjust label color [8e98e9](https://github.com/
|
147
|
-
- GridItem: adust text color [42f03f](https://github.com/
|
148
|
-
- increase font-weight bold [bef919](https://github.com/
|
149
|
-
- IndexBar: increase font weight of active index [d6e80e](https://github.com/
|
150
|
-
- IndexBar: using primary color by default [8b95db](https://github.com/
|
151
|
-
- Sidebar: using primary color by default [eeb233](https://github.com/
|
152
|
-
- Slider: improve dark mode color [fc2847](https://github.com/
|
153
|
-
- Stepper: using primary color by default [41b1cd](https://github.com/
|
154
|
-
- Steps: update default button border color [5a1566](https://github.com/
|
155
|
-
- Switch: adjust style [2acd47](https://github.com/
|
156
|
-
- Switch: adjust width [73788f](https://github.com/
|
157
|
-
- Tabbar: adjust text color [39b51d](https://github.com/
|
158
|
-
- Tabs: using primary color by default [3b10d6](https://github.com/
|
159
|
-
- TreeSelect: using primary color [cce3ce](https://github.com/
|
160
|
-
- update van doc background [5b3c4f](https://github.com/
|
208
|
+
- @vant/cli: adjust css vars [b6fcd3](https://github.com/vant-ui/vant/commit/b6fcd32dcf201703d32ee4ce70d6147b4c4605ef)
|
209
|
+
- @vant/cli: improve demo style in dark mode [0e8e32](https://github.com/vant-ui/vant/commit/0e8e3200a2f3fbdfd46f324d89ae05a38680f421)
|
210
|
+
- @vant/cli: improve mobile style in dark mode [f5c32c](https://github.com/vant-ui/vant/commit/f5c32c29f115ef072a20ff736732a1c66557f992)
|
211
|
+
- AddressEdit: submit button using primary type [c65d4f](https://github.com/vant-ui/vant/commit/c65d4f96727059d19ad7bb014b53d679754bd512)
|
212
|
+
- AddressList: using primary color [fcd91c](https://github.com/vant-ui/vant/commit/fcd91cb0b03ade0def49928bdd2ec2ea652f4408)
|
213
|
+
- Button: adjust font-smoothing [bda361](https://github.com/vant-ui/vant/commit/bda3617d14f3e93f04748915bb595467c1696945)
|
214
|
+
- Button: increase default border radius from 2px to 4px [d86771](https://github.com/vant-ui/vant/commit/d867710cc9ca273dbf6c1d4edc568f57e5806243)
|
215
|
+
- Button: update default button border color [bd2428](https://github.com/vant-ui/vant/commit/bd24288a12b38fecafc6302f1216587e7a6710fb)
|
216
|
+
- Calendar: using primary color by default [4e89e8](https://github.com/vant-ui/vant/commit/4e89e88845adba1af3a6a6db19d8df7cae6aa9fb)
|
217
|
+
- Card: blue tag [369201](https://github.com/vant-ui/vant/commit/3692014070beb9d3187106803e742b28ab0b3310)
|
218
|
+
- Card: improve card mode style [cb2d99](https://github.com/vant-ui/vant/commit/cb2d99c8cf7abde3e08df79085f13a21c47c9bc7)
|
219
|
+
- Cascader: using primary color by default [84b90b](https://github.com/vant-ui/vant/commit/84b90b1f4c9e52c9638426e79a269d53801cc0b1)
|
220
|
+
- Cell: remove value aline style [0a7b53](https://github.com/vant-ui/vant/commit/0a7b53553364691e11af6906b5d22dee8e570cce)
|
221
|
+
- ContactEdit: adjust submit button [43ae30](https://github.com/vant-ui/vant/commit/43ae30026adf98b076ec26c3214c24387cb63082)
|
222
|
+
- ContactList: using primary color [d39f6a](https://github.com/vant-ui/vant/commit/d39f6a898afa4c5bbd5ef33035e42f656b0ec6f7)
|
223
|
+
- CouponList: change default color [85c5ad](https://github.com/vant-ui/vant/commit/85c5ad671868b7156968b681a00b147a57504c84)
|
224
|
+
- CouponList: update field background color in dark mode [82e0e4](https://github.com/vant-ui/vant/commit/82e0e454d0de31d5a1a68a17a6e566d42ba86d74)
|
225
|
+
- DropdownMenu: using primary color by default [37e7c6](https://github.com/vant-ui/vant/commit/37e7c618b82527616d9f988f3249dda347eb7923)
|
226
|
+
- Field: adjust label color [8e98e9](https://github.com/vant-ui/vant/commit/8e98e9744939003f1679b465ccd5124539a99f36)
|
227
|
+
- GridItem: adust text color [42f03f](https://github.com/vant-ui/vant/commit/42f03fe1a241ff5311e9fe6696fb614b225faa72)
|
228
|
+
- increase font-weight bold [bef919](https://github.com/vant-ui/vant/commit/bef919c7f011bffdb31bad1ca085df5be24679f4)
|
229
|
+
- IndexBar: increase font weight of active index [d6e80e](https://github.com/vant-ui/vant/commit/d6e80e8954931927808c7fabf37473db35e8730b)
|
230
|
+
- IndexBar: using primary color by default [8b95db](https://github.com/vant-ui/vant/commit/8b95db15746bbf02a9091c8e604c9bb3884148b0)
|
231
|
+
- Sidebar: using primary color by default [eeb233](https://github.com/vant-ui/vant/commit/eeb233bf990a598282c21559520415a64a237179)
|
232
|
+
- Slider: improve dark mode color [fc2847](https://github.com/vant-ui/vant/commit/fc2847fdb442f3a5c5f1e26cc14858e136a86b3c)
|
233
|
+
- Stepper: using primary color by default [41b1cd](https://github.com/vant-ui/vant/commit/41b1cd71854514404c6a601ee22586a9ae243ee3)
|
234
|
+
- Steps: update default button border color [5a1566](https://github.com/vant-ui/vant/commit/5a15660c77082d814da2b68527136994ab9112f8)
|
235
|
+
- Switch: adjust style [2acd47](https://github.com/vant-ui/vant/commit/2acd47b5ee251d1af729c44b8516a4cc0fa06d44)
|
236
|
+
- Switch: adjust width [73788f](https://github.com/vant-ui/vant/commit/73788f9e88beba576d2599a939caa4b4970b396f)
|
237
|
+
- Tabbar: adjust text color [39b51d](https://github.com/vant-ui/vant/commit/39b51d5dae7e9c0ab1e5fb03a868a06cdbf6b269)
|
238
|
+
- Tabs: using primary color by default [3b10d6](https://github.com/vant-ui/vant/commit/3b10d66bb92869d03b7af8228bfd1b1e0361a033)
|
239
|
+
- TreeSelect: using primary color [cce3ce](https://github.com/vant-ui/vant/commit/cce3ceb5b68e445d0b9ea94f91d6b46246444b36)
|
240
|
+
- update van doc background [5b3c4f](https://github.com/vant-ui/vant/commit/5b3c4f15468428c29dcd7cc43ca5a82831b6f87a)
|
161
241
|
|
162
242
|
**Types**
|
163
243
|
|
164
|
-
- AddressEdit: SearchItem optional [27c46b](https://github.com/
|
165
|
-
- DatePicker: export DatePickerColumnType [829db0](https://github.com/
|
166
|
-
- Picker: fix columns prop typing [6c64bc](https://github.com/
|
167
|
-
- Picker: fix return type of getSelectedOptions [967cb5](https://github.com/
|
168
|
-
- TimePicker: export TimePickerColumnType [b608fb](https://github.com/
|
169
|
-
### [v3.
|
244
|
+
- AddressEdit: SearchItem optional [27c46b](https://github.com/vant-ui/vant/commit/27c46b01ae391f7c26430ea258181d1f534511a0)
|
245
|
+
- DatePicker: export DatePickerColumnType [829db0](https://github.com/vant-ui/vant/commit/829db06d5b2576e2024a280bd10ba1fa3f17f25c)
|
246
|
+
- Picker: fix columns prop typing [6c64bc](https://github.com/vant-ui/vant/commit/6c64bc33c1ba537b7951dcbc02d6deec3aaab093)
|
247
|
+
- Picker: fix return type of getSelectedOptions [967cb5](https://github.com/vant-ui/vant/commit/967cb56c181cc145189a868f49c4666a75f85b00)
|
248
|
+
- TimePicker: export TimePickerColumnType [b608fb](https://github.com/vant-ui/vant/commit/b608fb23f031cf09a474039cd9cd23f8bc7811d3)
|
249
|
+
### [v3.6.0](https://github.com/vant-ui/vant/compare/v3.5.3...v3.6.0)
|
170
250
|
|
171
|
-
`2022-
|
251
|
+
`2022-08-21`
|
172
252
|
|
173
253
|
**Bug Fixes**
|
174
254
|
|
175
|
-
- @vant/
|
176
|
-
-
|
255
|
+
- @vant/cli: should replace NODE_ENV in vite v3 [#10887](https://github.com/vant-ui/vant/issues/10887)
|
256
|
+
- Calendar: content disappeared when hiding [#10910](https://github.com/vant-ui/vant/issues/10910)
|
257
|
+
- Calendar: fix reading getFullYear error [#10908](https://github.com/vant-ui/vant/issues/10908)
|
258
|
+
- Calendar: reading getFullYear error in some cases [#10909](https://github.com/vant-ui/vant/issues/10909)
|
259
|
+
- Empty: generate unique id to avoid render issue [#10943](https://github.com/vant-ui/vant/issues/10943)
|
260
|
+
- incorrect tag name in WebStorm [#10946](https://github.com/vant-ui/vant/issues/10946)
|
261
|
+
- Popover: can not scroll inside popup [#10949](https://github.com/vant-ui/vant/issues/10949)
|
262
|
+
- PullRefresh: remove passive event warning [#10938](https://github.com/vant-ui/vant/issues/10938)
|
263
|
+
- Search: --van-search-input-height var not work [#10911](https://github.com/vant-ui/vant/issues/10911)
|
177
264
|
|
178
265
|
**Document**
|
179
266
|
|
180
|
-
-
|
181
|
-
-
|
182
|
-
-
|
183
|
-
-
|
184
|
-
-
|
185
|
-
-
|
267
|
+
- add import tips [#10941](https://github.com/vant-ui/vant/issues/10941)
|
268
|
+
- add tips in advanced-usage.zh-CN.md [#10927](https://github.com/vant-ui/vant/issues/10927)
|
269
|
+
- changelog: 3.5.4 [961f70](https://github.com/vant-ui/vant/commit/961f70d523b723c864d99dceb2be1a19ec506d03)
|
270
|
+
- changelog: vant@3.5.3 [#10869](https://github.com/vant-ui/vant/issues/10869)
|
271
|
+
- Form: fix the type of rule trigger option [#10912](https://github.com/vant-ui/vant/issues/10912)
|
272
|
+
- import quick start document [#10945](https://github.com/vant-ui/vant/issues/10945)
|
273
|
+
- Search: fix action-text type [#10936](https://github.com/vant-ui/vant/issues/10936)
|
274
|
+
- Search: fix action-text type [#10935](https://github.com/vant-ui/vant/issues/10935)
|
275
|
+
- Space: add version tip [#10886](https://github.com/vant-ui/vant/issues/10886)
|
186
276
|
|
187
277
|
**Feature**
|
188
278
|
|
189
|
-
-
|
190
|
-
-
|
191
|
-
-
|
192
|
-
-
|
193
|
-
-
|
279
|
+
- @vant/use: useClickAway support multiple targets [#10948](https://github.com/vant-ui/vant/issues/10948)
|
280
|
+
- Badge: fix the problem mentioned at README. [#10921](https://github.com/vant-ui/vant/issues/10921)
|
281
|
+
- ConfigProvider: add z-index prop [#10915](https://github.com/vant-ui/vant/issues/10915)
|
282
|
+
- Form: add validateEmpty option of rule [#10913](https://github.com/vant-ui/vant/issues/10913)
|
283
|
+
- Popup: add role and tabindex for a11y [#10894](https://github.com/vant-ui/vant/issues/10894)
|
284
|
+
- Space: add new component space [#10857](https://github.com/vant-ui/vant/issues/10857)
|
285
|
+
- touch-emulator: support .mjs extension [#10888](https://github.com/vant-ui/vant/issues/10888)
|
194
286
|
|
195
287
|
**release**
|
196
288
|
|
197
|
-
- @vant/
|
198
|
-
- 3.4
|
289
|
+
- @vant/use 1.4.2 [326880](https://github.com/vant-ui/vant/commit/326880a4e19f8ab8ffe6042a8cc968cc03b02616)
|
290
|
+
- 3.5.4 [cfdb5c](https://github.com/vant-ui/vant/commit/cfdb5c1fbe496f6a064ab8bebe7f1ae8734490c0)
|
291
|
+
- 3.6.0 [8d51f9](https://github.com/vant-ui/vant/commit/8d51f9e08ea5833b4b27077c61727924c9112f0b)
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import { type ExtractPropTypes } from 'vue';
|
2
2
|
export declare const ACTION_BAR_KEY: unique symbol;
|
3
3
|
declare const actionBarProps: {
|
4
|
+
placeholder: BooleanConstructor;
|
4
5
|
safeAreaInsetBottom: {
|
5
6
|
type: BooleanConstructor;
|
6
7
|
default: true;
|
@@ -8,16 +9,19 @@ declare const actionBarProps: {
|
|
8
9
|
};
|
9
10
|
export declare type ActionBarProps = ExtractPropTypes<typeof actionBarProps>;
|
10
11
|
declare const _default: import("vue").DefineComponent<{
|
12
|
+
placeholder: BooleanConstructor;
|
11
13
|
safeAreaInsetBottom: {
|
12
14
|
type: BooleanConstructor;
|
13
15
|
default: true;
|
14
16
|
};
|
15
17
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
18
|
+
placeholder: BooleanConstructor;
|
16
19
|
safeAreaInsetBottom: {
|
17
20
|
type: BooleanConstructor;
|
18
21
|
default: true;
|
19
22
|
};
|
20
23
|
}>>, {
|
24
|
+
placeholder: boolean;
|
21
25
|
safeAreaInsetBottom: boolean;
|
22
26
|
}>;
|
23
27
|
export default _default;
|