vant 4.0.0-alpha.0 → 4.0.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +141 -0
- package/changelog.generated.md +198 -0
- package/es/address-edit/AddressEdit.d.ts +0 -17
- package/es/address-edit/AddressEdit.js +3 -24
- package/es/address-edit/index.d.ts +0 -12
- package/es/address-edit/types.d.ts +0 -1
- package/es/address-list/AddressListItem.d.ts +3 -2
- package/es/address-list/AddressListItem.js +1 -1
- package/es/badge/Badge.d.ts +4 -3
- package/es/badge/index.d.ts +2 -2
- package/es/calendar/Calendar.d.ts +4 -0
- package/es/calendar/Calendar.js +3 -1
- package/es/calendar/CalendarDay.js +4 -0
- package/es/calendar/index.css +1 -1
- package/es/calendar/index.d.ts +3 -0
- package/es/calendar/index.less +3 -0
- package/es/calendar/types.d.ts +2 -1
- package/es/cascader/types.d.ts +2 -1
- package/es/checkbox/Checker.d.ts +2 -1
- package/es/collapse/Collapse.d.ts +7 -6
- package/es/collapse/index.d.ts +3 -3
- package/es/composables/use-touch.js +1 -1
- package/es/config-provider/ConfigProvider.d.ts +4 -3
- package/es/config-provider/ConfigProvider.js +2 -0
- package/es/config-provider/index.d.ts +2 -2
- package/es/contact-list/ContactList.d.ts +3 -2
- package/es/coupon/Coupon.d.ts +2 -1
- package/es/coupon-list/CouponList.d.ts +3 -13
- package/es/coupon-list/CouponList.js +9 -7
- package/es/coupon-list/index.css +1 -1
- package/es/coupon-list/index.d.ts +2 -9
- package/es/coupon-list/index.less +4 -16
- package/es/coupon-list/style/index.js +1 -0
- package/es/coupon-list/style/less.js +1 -0
- package/es/date-picker/DatePicker.js +1 -1
- package/es/dialog/index.css +1 -1
- package/es/dialog/index.less +2 -0
- package/es/dialog/types.d.ts +2 -2
- package/es/dropdown-item/types.d.ts +2 -1
- package/es/empty/Empty.d.ts +8 -7
- package/es/empty/Empty.js +12 -15
- package/es/empty/Images.d.ts +4 -0
- package/es/empty/Images.js +271 -0
- package/es/empty/index.d.ts +2 -2
- package/es/field/Field.d.ts +4 -0
- package/es/field/Field.js +8 -3
- package/es/field/index.d.ts +2 -0
- package/es/field/types.d.ts +1 -1
- package/es/form/Form.d.ts +13 -13
- package/es/form/Form.js +7 -3
- package/es/form/index.d.ts +9 -9
- package/es/form/types.d.ts +1 -0
- package/es/icon/index.css +1 -1
- package/es/index-bar/IndexBar.d.ts +5 -4
- package/es/index-bar/IndexBar.js +25 -4
- package/es/index-bar/index.d.ts +3 -3
- package/es/index-bar/types.d.ts +2 -1
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/loading/Loading.js +3 -1
- package/es/locale/lang/bn-BD.d.ts +0 -2
- package/es/locale/lang/bn-BD.js +0 -2
- package/es/locale/lang/da-DK.d.ts +64 -0
- package/es/locale/lang/da-DK.js +66 -0
- package/es/locale/lang/de-DE-formal.d.ts +0 -2
- package/es/locale/lang/de-DE-formal.js +0 -2
- package/es/locale/lang/de-DE.d.ts +0 -2
- package/es/locale/lang/de-DE.js +0 -2
- package/es/locale/lang/en-US.d.ts +0 -2
- package/es/locale/lang/en-US.js +0 -2
- package/es/locale/lang/es-ES.d.ts +0 -2
- package/es/locale/lang/es-ES.js +0 -2
- package/es/locale/lang/fr-FR.d.ts +0 -2
- package/es/locale/lang/fr-FR.js +0 -2
- package/es/locale/lang/hi-IN.d.ts +0 -2
- package/es/locale/lang/hi-IN.js +0 -2
- package/es/locale/lang/id-ID.d.ts +0 -2
- package/es/locale/lang/id-ID.js +0 -2
- package/es/locale/lang/is-IS.d.ts +62 -0
- package/es/locale/lang/is-IS.js +72 -0
- package/es/locale/lang/it-IT.d.ts +0 -2
- package/es/locale/lang/it-IT.js +0 -2
- package/es/locale/lang/ja-JP.d.ts +0 -2
- package/es/locale/lang/ja-JP.js +0 -2
- package/es/locale/lang/ko-KR.d.ts +0 -2
- package/es/locale/lang/ko-KR.js +0 -2
- package/es/locale/lang/la-LA.d.ts +62 -0
- package/es/locale/lang/la-LA.js +64 -0
- package/es/locale/lang/nb-NO.d.ts +0 -2
- package/es/locale/lang/nb-NO.js +0 -2
- package/es/locale/lang/pt-BR.d.ts +0 -2
- package/es/locale/lang/pt-BR.js +0 -2
- package/es/locale/lang/ro-RO.d.ts +0 -2
- package/es/locale/lang/ro-RO.js +0 -2
- package/es/locale/lang/ru-RU.d.ts +0 -2
- package/es/locale/lang/ru-RU.js +0 -2
- package/es/locale/lang/sv-SE.d.ts +62 -0
- package/es/locale/lang/sv-SE.js +64 -0
- package/es/locale/lang/th-TH.d.ts +0 -2
- package/es/locale/lang/th-TH.js +0 -2
- package/es/locale/lang/tr-TR.d.ts +0 -2
- package/es/locale/lang/tr-TR.js +0 -2
- package/es/locale/lang/uk-UA.d.ts +0 -2
- package/es/locale/lang/uk-UA.js +0 -2
- package/es/locale/lang/vi-VN.d.ts +0 -2
- package/es/locale/lang/vi-VN.js +0 -2
- package/es/locale/lang/zh-CN.d.ts +0 -2
- package/es/locale/lang/zh-CN.js +0 -2
- package/es/locale/lang/zh-HK.d.ts +0 -2
- package/es/locale/lang/zh-HK.js +0 -2
- package/es/locale/lang/zh-TW.d.ts +0 -2
- package/es/locale/lang/zh-TW.js +0 -2
- package/es/nav-bar/NavBar.d.ts +1 -1
- package/es/nav-bar/NavBar.js +3 -3
- package/es/nav-bar/index.d.ts +1 -1
- package/es/notify/types.d.ts +2 -1
- package/es/number-keyboard/NumberKeyboard.js +10 -1
- package/es/picker/Picker.d.ts +5 -4
- package/es/picker/index.css +1 -1
- package/es/picker/index.d.ts +3 -3
- package/es/picker/index.less +1 -0
- package/es/picker/types.d.ts +4 -3
- package/es/picker/utils.d.ts +4 -3
- package/es/popup/Popup.d.ts +4 -0
- package/es/popup/Popup.js +3 -0
- package/es/popup/index.css +1 -1
- package/es/popup/index.d.ts +3 -0
- package/es/progress/Progress.d.ts +4 -3
- package/es/progress/index.d.ts +2 -2
- package/es/rate/Rate.js +32 -10
- package/es/search/Search.d.ts +3 -0
- package/es/search/index.css +1 -1
- package/es/search/index.d.ts +2 -0
- package/es/search/index.less +1 -1
- package/es/share-sheet/ShareSheet.js +25 -11
- package/es/share-sheet/index.css +1 -1
- package/es/share-sheet/index.less +45 -1
- package/es/skeleton/Skeleton.d.ts +5 -4
- package/es/skeleton/Skeleton.js +6 -4
- package/es/skeleton/index.d.ts +3 -3
- package/es/slider/index.css +1 -1
- package/es/style/animation.css +1 -1
- package/es/style/base.css +1 -1
- package/es/style/base.less +5 -0
- package/es/swipe-cell/SwipeCell.js +1 -1
- package/es/swipe-cell/index.css +1 -1
- package/es/tabbar/Tabbar.d.ts +2 -2
- package/es/tabs/Tabs.d.ts +1 -1
- package/es/tabs/Tabs.js +1 -0
- package/es/tabs/types.d.ts +5 -4
- package/es/toast/Toast.js +1 -0
- package/es/toast/types.d.ts +3 -2
- package/es/tree-select/TreeSelect.d.ts +7 -6
- package/es/tree-select/index.d.ts +3 -3
- package/es/uploader/Uploader.d.ts +4 -4
- package/es/uploader/Uploader.js +3 -3
- package/es/uploader/UploaderPreviewItem.d.ts +3 -3
- package/es/uploader/UploaderPreviewItem.js +9 -6
- package/es/uploader/index.d.ts +2 -2
- package/es/uploader/types.d.ts +5 -5
- package/es/uploader/utils.d.ts +0 -1
- package/es/uploader/utils.js +2 -4
- package/es/utils/basic.d.ts +2 -0
- package/es/utils/basic.js +3 -1
- package/es/utils/format.d.ts +7 -6
- package/es/utils/format.js +6 -0
- package/es/utils/validate.d.ts +2 -1
- package/lib/action-bar/ActionBar.js +8 -13
- package/lib/action-bar/index.js +9 -16
- package/lib/action-bar-button/ActionBarButton.js +8 -13
- package/lib/action-bar-button/index.js +9 -16
- package/lib/action-bar-icon/ActionBarIcon.js +8 -13
- package/lib/action-bar-icon/index.js +9 -16
- package/lib/action-sheet/ActionSheet.js +8 -13
- package/lib/action-sheet/index.js +9 -16
- package/lib/address-edit/AddressEdit.d.ts +0 -17
- package/lib/address-edit/AddressEdit.js +12 -40
- package/lib/address-edit/AddressEditDetail.js +8 -13
- package/lib/address-edit/index.d.ts +0 -12
- package/lib/address-edit/index.js +9 -16
- package/lib/address-edit/types.d.ts +0 -1
- package/lib/address-edit/types.js +7 -12
- package/lib/address-list/AddressList.js +9 -16
- package/lib/address-list/AddressListItem.d.ts +3 -2
- package/lib/address-list/AddressListItem.js +8 -13
- package/lib/address-list/index.js +9 -16
- package/lib/area/Area.js +8 -13
- package/lib/area/index.js +9 -16
- package/lib/area/types.js +7 -12
- package/lib/area/utils.js +8 -13
- package/lib/badge/Badge.d.ts +4 -3
- package/lib/badge/Badge.js +8 -13
- package/lib/badge/index.d.ts +2 -2
- package/lib/badge/index.js +9 -16
- package/lib/button/Button.js +8 -13
- package/lib/button/index.js +9 -16
- package/lib/button/types.js +7 -12
- package/lib/calendar/Calendar.d.ts +4 -0
- package/lib/calendar/Calendar.js +12 -17
- package/lib/calendar/CalendarDay.js +12 -13
- package/lib/calendar/CalendarHeader.js +8 -13
- package/lib/calendar/CalendarMonth.js +9 -16
- package/lib/calendar/index.css +1 -1
- package/lib/calendar/index.d.ts +3 -0
- package/lib/calendar/index.js +9 -16
- package/lib/calendar/index.less +3 -0
- package/lib/calendar/types.d.ts +2 -1
- package/lib/calendar/types.js +7 -12
- package/lib/calendar/utils.js +8 -13
- package/lib/card/Card.js +8 -13
- package/lib/card/index.js +9 -16
- package/lib/cascader/Cascader.js +8 -13
- package/lib/cascader/index.js +9 -16
- package/lib/cascader/types.d.ts +2 -1
- package/lib/cascader/types.js +7 -12
- package/lib/cell/Cell.js +8 -13
- package/lib/cell/index.js +9 -16
- package/lib/cell-group/CellGroup.js +8 -13
- package/lib/cell-group/index.js +9 -16
- package/lib/checkbox/Checkbox.js +9 -16
- package/lib/checkbox/Checker.d.ts +2 -1
- package/lib/checkbox/Checker.js +8 -13
- package/lib/checkbox/index.js +9 -16
- package/lib/checkbox/types.js +7 -12
- package/lib/checkbox-group/CheckboxGroup.js +8 -13
- package/lib/checkbox-group/index.js +9 -16
- package/lib/checkbox-group/types.js +7 -12
- package/lib/circle/Circle.js +8 -13
- package/lib/circle/index.js +9 -16
- package/lib/col/Col.js +8 -13
- package/lib/col/index.js +9 -16
- package/lib/collapse/Collapse.d.ts +7 -6
- package/lib/collapse/Collapse.js +8 -13
- package/lib/collapse/index.d.ts +3 -3
- package/lib/collapse/index.js +9 -16
- package/lib/collapse-item/CollapseItem.js +8 -13
- package/lib/collapse-item/index.js +9 -16
- package/lib/collapse-item/types.js +7 -12
- package/lib/composables/on-popup-reopen.js +8 -13
- package/lib/composables/use-expose.js +8 -13
- package/lib/composables/use-height.js +8 -13
- package/lib/composables/use-id.js +8 -13
- package/lib/composables/use-lazy-render.js +8 -13
- package/lib/composables/use-lock-scroll.js +8 -13
- package/lib/composables/use-placeholder.js +8 -13
- package/lib/composables/use-refs.js +8 -13
- package/lib/composables/use-route.js +8 -13
- package/lib/composables/use-tab-status.js +8 -13
- package/lib/composables/use-touch.js +9 -14
- package/lib/composables/use-visibility-change.js +8 -13
- package/lib/config-provider/ConfigProvider.d.ts +4 -3
- package/lib/config-provider/ConfigProvider.js +10 -13
- package/lib/config-provider/index.d.ts +2 -2
- package/lib/config-provider/index.js +9 -16
- package/lib/contact-card/ContactCard.js +8 -13
- package/lib/contact-card/index.js +9 -16
- package/lib/contact-edit/ContactEdit.js +8 -13
- package/lib/contact-edit/index.js +9 -16
- package/lib/contact-list/ContactList.d.ts +3 -2
- package/lib/contact-list/ContactList.js +8 -13
- package/lib/contact-list/index.js +9 -16
- package/lib/count-down/CountDown.js +8 -13
- package/lib/count-down/index.js +9 -16
- package/lib/count-down/types.js +7 -12
- package/lib/count-down/utils.js +8 -13
- package/lib/coupon/Coupon.d.ts +2 -1
- package/lib/coupon/Coupon.js +8 -13
- package/lib/coupon/index.js +9 -16
- package/lib/coupon/utils.js +8 -13
- package/lib/coupon-cell/CouponCell.js +8 -13
- package/lib/coupon-cell/index.js +9 -16
- package/lib/coupon-list/CouponList.d.ts +3 -13
- package/lib/coupon-list/CouponList.js +17 -20
- package/lib/coupon-list/index.css +1 -1
- package/lib/coupon-list/index.d.ts +2 -9
- package/lib/coupon-list/index.js +9 -16
- package/lib/coupon-list/index.less +4 -16
- package/lib/coupon-list/style/index.js +1 -0
- package/lib/coupon-list/style/less.js +1 -0
- package/lib/date-picker/DatePicker.js +9 -14
- package/lib/date-picker/index.js +9 -16
- package/lib/date-picker/utils.js +8 -13
- package/lib/dialog/Dialog.js +8 -13
- package/lib/dialog/function-call.js +9 -16
- package/lib/dialog/index.css +1 -1
- package/lib/dialog/index.js +8 -13
- package/lib/dialog/index.less +2 -0
- package/lib/dialog/types.d.ts +2 -2
- package/lib/dialog/types.js +7 -12
- package/lib/divider/Divider.js +8 -13
- package/lib/divider/index.js +9 -16
- package/lib/dropdown-item/DropdownItem.js +8 -13
- package/lib/dropdown-item/index.js +9 -16
- package/lib/dropdown-item/types.d.ts +2 -1
- package/lib/dropdown-item/types.js +7 -12
- package/lib/dropdown-menu/DropdownMenu.js +8 -13
- package/lib/dropdown-menu/index.js +9 -16
- package/lib/dropdown-menu/types.js +7 -12
- package/lib/empty/Empty.d.ts +8 -7
- package/lib/empty/Empty.js +19 -27
- package/lib/empty/Images.d.ts +4 -0
- package/lib/empty/Images.js +290 -0
- package/lib/empty/index.d.ts +2 -2
- package/lib/empty/index.js +9 -16
- package/lib/field/Field.d.ts +4 -0
- package/lib/field/Field.js +15 -15
- package/lib/field/index.d.ts +2 -0
- package/lib/field/index.js +9 -16
- package/lib/field/types.d.ts +1 -1
- package/lib/field/types.js +7 -12
- package/lib/field/utils.js +8 -13
- package/lib/form/Form.d.ts +13 -13
- package/lib/form/Form.js +14 -15
- package/lib/form/index.d.ts +9 -9
- package/lib/form/index.js +9 -16
- package/lib/form/types.d.ts +1 -0
- package/lib/form/types.js +7 -12
- package/lib/grid/Grid.js +8 -13
- package/lib/grid/index.js +9 -16
- package/lib/grid-item/GridItem.js +8 -13
- package/lib/grid-item/index.js +9 -16
- package/lib/icon/Icon.js +8 -13
- package/lib/icon/index.css +1 -1
- package/lib/icon/index.js +9 -16
- package/lib/image/Image.js +8 -13
- package/lib/image/index.js +9 -16
- package/lib/image-preview/ImagePreview.js +9 -16
- package/lib/image-preview/ImagePreviewItem.js +8 -13
- package/lib/image-preview/function-call.js +9 -16
- package/lib/image-preview/index.js +8 -13
- package/lib/image-preview/types.js +7 -12
- package/lib/index-anchor/IndexAnchor.js +8 -13
- package/lib/index-anchor/index.js +9 -16
- package/lib/index-bar/IndexBar.d.ts +5 -4
- package/lib/index-bar/IndexBar.js +33 -17
- package/lib/index-bar/index.d.ts +3 -3
- package/lib/index-bar/index.js +9 -16
- package/lib/index-bar/types.d.ts +2 -1
- package/lib/index-bar/types.js +7 -12
- package/lib/index.css +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +97 -101
- package/lib/index.less +2 -2
- package/lib/lazyload/index.js +8 -13
- package/lib/lazyload/vue-lazyload/index.js +9 -16
- package/lib/lazyload/vue-lazyload/lazy-component.js +8 -13
- package/lib/lazyload/vue-lazyload/lazy-container.js +8 -13
- package/lib/lazyload/vue-lazyload/lazy-image.js +8 -13
- package/lib/lazyload/vue-lazyload/lazy.js +9 -16
- package/lib/lazyload/vue-lazyload/listener.js +8 -13
- package/lib/lazyload/vue-lazyload/util.js +8 -13
- package/lib/list/List.js +8 -13
- package/lib/list/index.js +9 -16
- package/lib/list/types.js +7 -12
- package/lib/loading/Loading.js +11 -14
- package/lib/loading/index.js +9 -16
- package/lib/locale/index.js +9 -16
- package/lib/locale/lang/bn-BD.d.ts +0 -2
- package/lib/locale/lang/bn-BD.js +8 -15
- package/lib/locale/lang/da-DK.d.ts +64 -0
- package/lib/locale/lang/da-DK.js +85 -0
- package/lib/locale/lang/de-DE-formal.d.ts +0 -2
- package/lib/locale/lang/de-DE-formal.js +8 -15
- package/lib/locale/lang/de-DE.d.ts +0 -2
- package/lib/locale/lang/de-DE.js +8 -15
- package/lib/locale/lang/en-US.d.ts +0 -2
- package/lib/locale/lang/en-US.js +8 -15
- package/lib/locale/lang/es-ES.d.ts +0 -2
- package/lib/locale/lang/es-ES.js +8 -15
- package/lib/locale/lang/fr-FR.d.ts +0 -2
- package/lib/locale/lang/fr-FR.js +8 -15
- package/lib/locale/lang/hi-IN.d.ts +0 -2
- package/lib/locale/lang/hi-IN.js +8 -15
- package/lib/locale/lang/id-ID.d.ts +0 -2
- package/lib/locale/lang/id-ID.js +8 -15
- package/lib/locale/lang/is-IS.d.ts +62 -0
- package/lib/locale/lang/is-IS.js +91 -0
- package/lib/locale/lang/it-IT.d.ts +0 -2
- package/lib/locale/lang/it-IT.js +8 -15
- package/lib/locale/lang/ja-JP.d.ts +0 -2
- package/lib/locale/lang/ja-JP.js +8 -15
- package/lib/locale/lang/ko-KR.d.ts +0 -2
- package/lib/locale/lang/ko-KR.js +8 -15
- package/lib/locale/lang/la-LA.d.ts +62 -0
- package/lib/locale/lang/la-LA.js +83 -0
- package/lib/locale/lang/nb-NO.d.ts +0 -2
- package/lib/locale/lang/nb-NO.js +8 -15
- package/lib/locale/lang/pt-BR.d.ts +0 -2
- package/lib/locale/lang/pt-BR.js +8 -15
- package/lib/locale/lang/ro-RO.d.ts +0 -2
- package/lib/locale/lang/ro-RO.js +8 -15
- package/lib/locale/lang/ru-RU.d.ts +0 -2
- package/lib/locale/lang/ru-RU.js +8 -15
- package/lib/locale/lang/sv-SE.d.ts +62 -0
- package/lib/locale/lang/sv-SE.js +83 -0
- package/lib/locale/lang/th-TH.d.ts +0 -2
- package/lib/locale/lang/th-TH.js +8 -15
- package/lib/locale/lang/tr-TR.d.ts +0 -2
- package/lib/locale/lang/tr-TR.js +8 -15
- package/lib/locale/lang/uk-UA.d.ts +0 -2
- package/lib/locale/lang/uk-UA.js +8 -15
- package/lib/locale/lang/vi-VN.d.ts +0 -2
- package/lib/locale/lang/vi-VN.js +8 -15
- package/lib/locale/lang/zh-CN.d.ts +0 -2
- package/lib/locale/lang/zh-CN.js +8 -15
- package/lib/locale/lang/zh-HK.d.ts +0 -2
- package/lib/locale/lang/zh-HK.js +8 -15
- package/lib/locale/lang/zh-TW.d.ts +0 -2
- package/lib/locale/lang/zh-TW.js +8 -15
- package/lib/nav-bar/NavBar.d.ts +1 -1
- package/lib/nav-bar/NavBar.js +11 -16
- package/lib/nav-bar/index.d.ts +1 -1
- package/lib/nav-bar/index.js +9 -16
- package/lib/notice-bar/NoticeBar.js +8 -13
- package/lib/notice-bar/index.js +9 -16
- package/lib/notice-bar/types.js +7 -12
- package/lib/notify/Notify.js +8 -13
- package/lib/notify/function-call.js +9 -16
- package/lib/notify/index.js +8 -13
- package/lib/notify/types.d.ts +2 -1
- package/lib/notify/types.js +7 -12
- package/lib/number-keyboard/NumberKeyboard.js +19 -17
- package/lib/number-keyboard/NumberKeyboardKey.js +8 -13
- package/lib/number-keyboard/index.js +9 -16
- package/lib/overlay/Overlay.js +8 -13
- package/lib/overlay/index.js +9 -16
- package/lib/pagination/Pagination.js +8 -13
- package/lib/pagination/index.js +9 -16
- package/lib/password-input/PasswordInput.js +8 -13
- package/lib/password-input/index.js +9 -16
- package/lib/picker/Picker.d.ts +5 -4
- package/lib/picker/Picker.js +9 -16
- package/lib/picker/PickerColumn.js +8 -13
- package/lib/picker/index.css +1 -1
- package/lib/picker/index.d.ts +3 -3
- package/lib/picker/index.js +9 -16
- package/lib/picker/index.less +1 -0
- package/lib/picker/types.d.ts +4 -3
- package/lib/picker/types.js +7 -12
- package/lib/picker/utils.d.ts +4 -3
- package/lib/picker/utils.js +8 -13
- package/lib/popover/Popover.js +8 -13
- package/lib/popover/index.js +9 -16
- package/lib/popover/types.js +7 -12
- package/lib/popup/Popup.d.ts +4 -0
- package/lib/popup/Popup.js +11 -13
- package/lib/popup/index.css +1 -1
- package/lib/popup/index.d.ts +3 -0
- package/lib/popup/index.js +9 -16
- package/lib/popup/shared.js +8 -13
- package/lib/popup/types.js +7 -12
- package/lib/progress/Progress.d.ts +4 -3
- package/lib/progress/Progress.js +8 -13
- package/lib/progress/index.d.ts +2 -2
- package/lib/progress/index.js +9 -16
- package/lib/progress/types.js +7 -12
- package/lib/pull-refresh/PullRefresh.js +8 -13
- package/lib/pull-refresh/index.js +9 -16
- package/lib/radio/Radio.js +9 -16
- package/lib/radio/index.js +9 -16
- package/lib/radio-group/RadioGroup.js +8 -13
- package/lib/radio-group/index.js +9 -16
- package/lib/rate/Rate.js +39 -22
- package/lib/rate/index.js +9 -16
- package/lib/row/Row.js +8 -13
- package/lib/row/index.js +9 -16
- package/lib/search/Search.d.ts +3 -0
- package/lib/search/Search.js +8 -13
- package/lib/search/index.css +1 -1
- package/lib/search/index.d.ts +2 -0
- package/lib/search/index.js +9 -16
- package/lib/search/index.less +1 -1
- package/lib/search/types.js +7 -12
- package/lib/share-sheet/ShareSheet.js +33 -24
- package/lib/share-sheet/index.css +1 -1
- package/lib/share-sheet/index.js +9 -16
- package/lib/share-sheet/index.less +45 -1
- package/lib/sidebar/Sidebar.js +8 -13
- package/lib/sidebar/index.js +9 -16
- package/lib/sidebar-item/SidebarItem.js +8 -13
- package/lib/sidebar-item/index.js +9 -16
- package/lib/skeleton/Skeleton.d.ts +5 -4
- package/lib/skeleton/Skeleton.js +13 -16
- package/lib/skeleton/index.d.ts +3 -3
- package/lib/skeleton/index.js +9 -16
- package/lib/slider/Slider.js +8 -13
- package/lib/slider/index.css +1 -1
- package/lib/slider/index.js +9 -16
- package/lib/step/Step.js +8 -13
- package/lib/step/index.js +9 -16
- package/lib/stepper/Stepper.js +8 -13
- package/lib/stepper/index.js +9 -16
- package/lib/steps/Steps.js +8 -13
- package/lib/steps/index.js +9 -16
- package/lib/sticky/Sticky.js +8 -13
- package/lib/sticky/index.js +9 -16
- package/lib/style/animation.css +1 -1
- package/lib/style/base.css +1 -1
- package/lib/style/base.less +5 -0
- package/lib/submit-bar/SubmitBar.js +8 -13
- package/lib/submit-bar/index.js +9 -16
- package/lib/swipe/Swipe.js +8 -13
- package/lib/swipe/index.js +9 -16
- package/lib/swipe/types.js +7 -12
- package/lib/swipe-cell/SwipeCell.js +9 -14
- package/lib/swipe-cell/index.css +1 -1
- package/lib/swipe-cell/index.js +9 -16
- package/lib/swipe-cell/types.js +7 -12
- package/lib/swipe-item/SwipeItem.js +8 -13
- package/lib/swipe-item/index.js +9 -16
- package/lib/switch/Switch.js +8 -13
- package/lib/switch/index.js +9 -16
- package/lib/tab/Tab.js +8 -13
- package/lib/tab/index.js +9 -16
- package/lib/tabbar/Tabbar.d.ts +2 -2
- package/lib/tabbar/Tabbar.js +8 -13
- package/lib/tabbar/index.js +9 -16
- package/lib/tabbar-item/TabbarItem.js +8 -13
- package/lib/tabbar-item/index.js +9 -16
- package/lib/tabs/Tabs.d.ts +1 -1
- package/lib/tabs/Tabs.js +10 -16
- package/lib/tabs/TabsContent.js +8 -13
- package/lib/tabs/TabsTitle.js +8 -13
- package/lib/tabs/index.js +9 -16
- package/lib/tabs/types.d.ts +5 -4
- package/lib/tabs/types.js +7 -12
- package/lib/tabs/utils.js +8 -13
- package/lib/tag/Tag.js +8 -13
- package/lib/tag/index.js +9 -16
- package/lib/time-picker/TimePicker.js +8 -13
- package/lib/time-picker/index.js +9 -16
- package/lib/toast/Toast.js +9 -13
- package/lib/toast/function-call.js +9 -16
- package/lib/toast/index.js +8 -13
- package/lib/toast/lock-click.js +8 -13
- package/lib/toast/types.d.ts +3 -2
- package/lib/toast/types.js +7 -12
- package/lib/tree-select/TreeSelect.d.ts +7 -6
- package/lib/tree-select/TreeSelect.js +8 -13
- package/lib/tree-select/index.d.ts +3 -3
- package/lib/tree-select/index.js +9 -16
- package/lib/uploader/Uploader.d.ts +4 -4
- package/lib/uploader/Uploader.js +11 -18
- package/lib/uploader/UploaderPreviewItem.d.ts +3 -3
- package/lib/uploader/UploaderPreviewItem.js +17 -19
- package/lib/uploader/index.d.ts +2 -2
- package/lib/uploader/index.js +9 -16
- package/lib/uploader/types.d.ts +5 -5
- package/lib/uploader/types.js +7 -12
- package/lib/uploader/utils.d.ts +0 -1
- package/lib/uploader/utils.js +10 -17
- package/lib/utils/basic.d.ts +2 -0
- package/lib/utils/basic.js +11 -14
- package/lib/utils/constant.js +8 -13
- package/lib/utils/create.js +9 -16
- package/lib/utils/deep-assign.js +8 -13
- package/lib/utils/deep-clone.js +8 -13
- package/lib/utils/dom.js +8 -13
- package/lib/utils/format.d.ts +7 -6
- package/lib/utils/format.js +14 -13
- package/lib/utils/index.js +17 -21
- package/lib/utils/interceptor.js +8 -13
- package/lib/utils/mount-component.js +8 -13
- package/lib/utils/props.js +8 -13
- package/lib/utils/validate.d.ts +2 -1
- package/lib/utils/validate.js +8 -13
- package/lib/utils/with-install.js +8 -13
- package/lib/vant.cjs.js +538 -284
- package/lib/vant.cjs.min.js +1 -1
- package/lib/vant.es.js +538 -284
- package/lib/vant.es.min.js +538 -284
- package/lib/vant.js +538 -284
- package/lib/vant.min.js +1 -1
- package/package.json +4 -4
- package/vetur/attributes.json +388 -452
- package/vetur/tags.json +108 -106
- package/vetur/web-types.json +2027 -1172
- package/es/empty/Network.d.ts +0 -1
- package/es/empty/Network.js +0 -89
- package/lib/empty/Network.d.ts +0 -1
- package/lib/empty/Network.js +0 -113
package/README.md
ADDED
@@ -0,0 +1,141 @@
|
|
1
|
+
<p align="center">
|
2
|
+
<img alt="logo" src="https://cdn.jsdelivr.net/npm/@vant/assets/logo.png" width="120" height="120" style="margin-bottom: 10px;">
|
3
|
+
</p>
|
4
|
+
|
5
|
+
<h1 align="center">Vant</h1>
|
6
|
+
|
7
|
+
<p align="center">Mobile UI Components built on Vue</p>
|
8
|
+
|
9
|
+
<p align="center">
|
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/youzan/vant/CI/dev?style=flat-square" alt="CI Status" />
|
12
|
+
<img src="https://img.shields.io/codecov/c/github/youzan/vant/dev.svg?style=flat-square&color=#4fc08d" alt="Coverage Status" />
|
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
|
+
<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
|
+
</p>
|
17
|
+
|
18
|
+
<p align="center">
|
19
|
+
🔥 <a href="https://vant-contrib.gitee.io/vant">文档网站(国内)</a>
|
20
|
+
|
21
|
+
🌈 <a href="https://youzan.github.io/vant">文档网站(GitHub)</a>
|
22
|
+
|
23
|
+
🇨🇳 <a href="./README.zh-CN.md">中文版介绍</a>
|
24
|
+
</p>
|
25
|
+
|
26
|
+
---
|
27
|
+
|
28
|
+
## Features
|
29
|
+
|
30
|
+
- 🚀 1KB Component average size (min+gzip)
|
31
|
+
- 🚀 70+ High quality components
|
32
|
+
- 💪 90%+ Unit test coverage
|
33
|
+
- 💪 Written in TypeScript
|
34
|
+
- 📖 Extensive documentation and demos
|
35
|
+
- 📖 Provide Sketch and Axure design resources
|
36
|
+
- 🍭 Support Vue 2 & Vue 3
|
37
|
+
- 🍭 Support Tree Shaking
|
38
|
+
- 🍭 Support Custom Theme
|
39
|
+
- 🍭 Support Accessibility (still improving)
|
40
|
+
- 🍭 Support Dark Mode (Requires upgrade to [Vant 4](https://vant-contrib.gitee.io/vant/v4/#/en-US/config-provider))
|
41
|
+
- 🍭 Support SSR
|
42
|
+
- 🌍 Support i18n, built-in 20+ languages
|
43
|
+
|
44
|
+
## Install
|
45
|
+
|
46
|
+
Using `npm` to install:
|
47
|
+
|
48
|
+
```bash
|
49
|
+
# install latest Vant for Vue 3 project
|
50
|
+
npm i vant
|
51
|
+
|
52
|
+
# install Vant 2 for Vue 2 project
|
53
|
+
npm i vant@latest-v2
|
54
|
+
```
|
55
|
+
|
56
|
+
Using `yarn` or `pnpm`:
|
57
|
+
|
58
|
+
```bash
|
59
|
+
# with yarn
|
60
|
+
yarn add vant
|
61
|
+
|
62
|
+
# with pnpm
|
63
|
+
pnpm add vant
|
64
|
+
```
|
65
|
+
|
66
|
+
## Quickstart
|
67
|
+
|
68
|
+
```js
|
69
|
+
import { createApp } from 'vue';
|
70
|
+
import { Button } from 'vant';
|
71
|
+
import 'vant/lib/index.css';
|
72
|
+
|
73
|
+
const app = createApp();
|
74
|
+
app.use(Button);
|
75
|
+
```
|
76
|
+
|
77
|
+
See more in [Quickstart](https://youzan.github.io/vant#/en-US/quickstart).
|
78
|
+
|
79
|
+
## Browser Support
|
80
|
+
|
81
|
+
Vant 2 supports modern browsers and Android >= 4.0、iOS >= 8.0.
|
82
|
+
|
83
|
+
Vant 3/4 supports modern browsers and Chrome >= 51、iOS >= 10.0 (same as Vue 3).
|
84
|
+
|
85
|
+
## Official Ecosystem
|
86
|
+
|
87
|
+
| Project | Description |
|
88
|
+
| --- | --- |
|
89
|
+
| [vant-weapp](https://github.com/youzan/vant-weapp) | WeChat MiniProgram UI |
|
90
|
+
| [vant-demo](https://github.com/youzan/vant-demo) | Collection of Vant demos |
|
91
|
+
| [vant-cli](https://github.com/youzan/vant/tree/dev/packages/vant-cli) | Scaffold for UI library |
|
92
|
+
| [vant-icons](https://github.com/youzan/vant/tree/dev/packages/vant-icons) | Vant icons |
|
93
|
+
| [vant-touch-emulator](https://github.com/youzan/vant/tree/dev/packages/vant-touch-emulator) | Using vant in desktop browsers |
|
94
|
+
|
95
|
+
## Community Ecosystem
|
96
|
+
|
97
|
+
| Project | Description |
|
98
|
+
| --- | --- |
|
99
|
+
| [3lang3/react-vant](https://github.com/3lang3/react-vant) | React mobile UI Components based on Vant |
|
100
|
+
| [rc-ui-lib](https://github.com/rancui/rc-ui-lib) | React mobile UI Components based on Vant |
|
101
|
+
| [vant-aliapp](https://github.com/ant-move/Vant-Aliapp) | Alipay MiniProgram UI |
|
102
|
+
| [taroify](https://gitee.com/mallfoundry/taroify) | Vant Taro |
|
103
|
+
| [vant-theme](https://github.com/Aisen60/vant-theme) | Online theme preview built on Vant UI |
|
104
|
+
| [@antmjs/vantui](https://github.com/antmjs/vantui) | Mobile UI Components based on Vant, supporting Taro and React |
|
105
|
+
| [sfc-playground-vant](https://github.com/zhixiaoqiang/sfc-playground-vant) | Try Vant in the Playground. Currently only Vant 3+ is supported |
|
106
|
+
|
107
|
+
## Links
|
108
|
+
|
109
|
+
- [Documentation](https://youzan.github.io/vant)
|
110
|
+
- [Changelog](https://youzan.github.io/vant#/en-US/changelog)
|
111
|
+
- [Gitter](https://gitter.im/vant-contrib/discuss?utm_source=share-link&utm_medium=link&utm_campaign=share-link)
|
112
|
+
|
113
|
+
## Preview
|
114
|
+
|
115
|
+
You can scan the following QR code to access the demo:
|
116
|
+
|
117
|
+
<img src="https://cdn.jsdelivr.net/npm/@vant/assets/preview-qrcode.png" width="220" height="220" >
|
118
|
+
|
119
|
+
## Core Team
|
120
|
+
|
121
|
+
Core contributors of Vant and Vant Weapp:
|
122
|
+
|
123
|
+
| [](https://github.com/chenjiahan/) | [](https://github.com/cookfront/) | [](https://github.com/w91/) | [](https://github.com/pangxie1991/) | [](https://github.com/rex-zsd/) | [](https://github.com/nemo-shen/) | [](https://github.com/Lindysen/) | [](https://github.com/JakeLaoyu/) |
|
124
|
+
| :-: | :-: | :-: | :-: | :-: | :-: | :-: | :-: |
|
125
|
+
| [chenjiahan](https://github.com/chenjiahan/) | [cookfront](https://github.com/cookfront/) | [wangnaiyi](https://github.com/w91/) | [pangxie](https://github.com/pangxie1991/) | [rex-zsd](https://github.com/rex-zsd/) | [nemo-shen](https://github.com/nemo-shen/) | [Lindysen](https://github.com/Lindysen/) | [JakeLaoyu](https://github.com/JakeLaoyu/) |
|
126
|
+
|
127
|
+
## All Contributors
|
128
|
+
|
129
|
+
Thanks to the following friends for their contributions to Vant:
|
130
|
+
|
131
|
+
<a href="https://github.com/youzan/vant/graphs/contributors">
|
132
|
+
<img src="https://opencollective.com/vant/contributors.svg?width=890&button=false" alt="contributors">
|
133
|
+
</a>
|
134
|
+
|
135
|
+
## Contribution Guide
|
136
|
+
|
137
|
+
Please make sure to read the [Contributing Guide](./.github/CONTRIBUTING.md) before making a pull request.
|
138
|
+
|
139
|
+
## LICENSE
|
140
|
+
|
141
|
+
[MIT](https://en.wikipedia.org/wiki/MIT_License)
|
@@ -0,0 +1,198 @@
|
|
1
|
+
### [v4.0.0-alpha.3](https://github.com/youzan/vant/compare/v3.4.9...v4.0.0-alpha.3)
|
2
|
+
|
3
|
+
`2022-05-02`
|
4
|
+
|
5
|
+
**Bug Fixes**
|
6
|
+
|
7
|
+
- Search: style error in dark mode [#10527](https://github.com/youzan/vant/issues/10527)
|
8
|
+
|
9
|
+
**Document**
|
10
|
+
|
11
|
+
- changelog: 3.4.9 [851dab](https://github.com/youzan/vant/commit/851dab4dafc8ee77aa6b6a8b01db2202f5d4f7e3)
|
12
|
+
- changelog: 4.0.0-alpha.2 [912a5f](https://github.com/youzan/vant/commit/912a5f17b1b429baa063de91c68a8bf6650b1189)
|
13
|
+
### [v4.0.0-alpha.2](https://github.com/youzan/vant/compare/v3.4.8...v4.0.0-alpha.2)
|
14
|
+
|
15
|
+
`2022-04-16`
|
16
|
+
|
17
|
+
**Document**
|
18
|
+
|
19
|
+
- changelog: 4.0.0-alpha.1 [5bff9e](https://github.com/youzan/vant/commit/5bff9e8c5ff4716740c7555ef185163569f7576c)
|
20
|
+
|
21
|
+
- breaking change(AddressEdit): remove postal [e08e98](https://github.com/youzan/vant/commit/e08e9845a29b8d5587f02eff84368e32157678f4)
|
22
|
+
|
23
|
+
**release**
|
24
|
+
|
25
|
+
- 4.0.0-alpha.2 [ea57c9](https://github.com/youzan/vant/commit/ea57c9e9ffc10847ac31e1c6b6dac8f81c4abb22)
|
26
|
+
### [v4.0.0-alpha.1](https://github.com/youzan/vant/compare/v3.4.6...v4.0.0-alpha.1)
|
27
|
+
|
28
|
+
`2022-03-19`
|
29
|
+
|
30
|
+
**Bug Fixes**
|
31
|
+
|
32
|
+
- Calendar, Picker: Fix calendar and picker's title color in dark mode [#10403](https://github.com/youzan/vant/issues/10403)
|
33
|
+
- ConfigProvider: dark mode not work as default value [#10413](https://github.com/youzan/vant/issues/10413)
|
34
|
+
- DatePicker: failed to update model value [#10415](https://github.com/youzan/vant/issues/10415)
|
35
|
+
- Dialog: Fix dialog title and message color in dark mode [#10379](https://github.com/youzan/vant/issues/10379)
|
36
|
+
|
37
|
+
**build**
|
38
|
+
|
39
|
+
- deploy v4 site [06199f](https://github.com/youzan/vant/commit/06199faf2c170bcd95e6aa49b51d981373ac42a6)
|
40
|
+
- fix workflow name [992eea](https://github.com/youzan/vant/commit/992eea3eeb8758942d40f9b893d0ff41c296c3ea)
|
41
|
+
|
42
|
+
**Document**
|
43
|
+
|
44
|
+
- DatePicker: fix formatter usage [#10416](https://github.com/youzan/vant/issues/10416)
|
45
|
+
- fix publicPath [db2e6c](https://github.com/youzan/vant/commit/db2e6ca12f75ee0db3b25cd1f9766f9e74e285f6)
|
46
|
+
- Picker: add v-model usage [#10417](https://github.com/youzan/vant/issues/10417)
|
47
|
+
- update [3a1e79](https://github.com/youzan/vant/commit/3a1e792e3151861e0ed780baa67823729db6a8a6)
|
48
|
+
- update 4.0.0-alpha changelog [#10339](https://github.com/youzan/vant/issues/10339)
|
49
|
+
|
50
|
+
**release**
|
51
|
+
|
52
|
+
- 4.0.0-alpha.1 [475d10](https://github.com/youzan/vant/commit/475d108ccb0f09dc09269751bd1bc15d1ea2ed0a)
|
53
|
+
### [v4.0.0-alpha.0](https://github.com/youzan/vant/compare/v3.4.5...v4.0.0-alpha.0)
|
54
|
+
|
55
|
+
`2022-02-21`
|
56
|
+
|
57
|
+
**Bug Fixes**
|
58
|
+
|
59
|
+
- AddressEdit: selectedOption maybe undefined [3979dd](https://github.com/youzan/vant/commit/3979ddc40af1325f5cc7889c6f0f277ccdb110c9)
|
60
|
+
- Area: allow to reset modelValue [8d49b8](https://github.com/youzan/vant/commit/8d49b88748c6bd36437628ab0242352dc0ba5159)
|
61
|
+
- DatePicker: allow modelValue to be empty [980f97](https://github.com/youzan/vant/commit/980f9760112958a2bd5c1e88a410e4c15636658a)
|
62
|
+
- Picker: currentColumns calculation [113e1b](https://github.com/youzan/vant/commit/113e1b7a6239c3097956e8692cb512e8ccecccb8)
|
63
|
+
- Picker: error when options is empty [018621](https://github.com/youzan/vant/commit/0186219586b75227bf69ce0e514c3ed94c52e1cc)
|
64
|
+
- Picker: failed to update modelValue [ff69fd](https://github.com/youzan/vant/commit/ff69fdacc7dd9bcf6bd17c4a493902d027644d92)
|
65
|
+
- Picker: fix some bugs [22654b](https://github.com/youzan/vant/commit/22654bf518cc21e45cf9ed5e597f5d5e1f411a17)
|
66
|
+
- Picker: option.className not work [d16075](https://github.com/youzan/vant/commit/d16075f39efbd7aeed4feab08cd4587bc73eb54c)
|
67
|
+
- Picker: should update modelValue immediately [e61bd4](https://github.com/youzan/vant/commit/e61bd487fa81533a6deb6c8aa52e92a549a000a4)
|
68
|
+
- Picker: should update selectedValues correctly [2a8bb8](https://github.com/youzan/vant/commit/2a8bb86fbb7d65f9ddc053de8bc3c9c1175d3dff)
|
69
|
+
- TimePicker: remove columns-order prop [7d22cc](https://github.com/youzan/vant/commit/7d22cc2155bef564ee910498d2f8f319ef601a41)
|
70
|
+
- TimePicker: should update modelValue immediately [7dae50](https://github.com/youzan/vant/commit/7dae50b0c9809e17448264752de831504f7f084d)
|
71
|
+
- vant-cli: pnpm compatibility [#10214](https://github.com/youzan/vant/issues/10214)
|
72
|
+
|
73
|
+
**Document**
|
74
|
+
|
75
|
+
- @vant/cli: changelog 4.0.0-rc.6 [fda3f1](https://github.com/youzan/vant/commit/fda3f1be9403c68bcc734ae08c760af3d0df6fa1)
|
76
|
+
- Area: update documents [a9baa3](https://github.com/youzan/vant/commit/a9baa3b2d188a16637acc1051fb554142408315b)
|
77
|
+
- dark mode [d4584a](https://github.com/youzan/vant/commit/d4584aafda247ad4d520afc063cd6a74f8d7ee4c)
|
78
|
+
- DatePicker: fix currentDate of year-month [c942ef](https://github.com/youzan/vant/commit/c942efb76b53885a66de5291c86ca1160713cfb3)
|
79
|
+
- docsearch version v4 [15e746](https://github.com/youzan/vant/commit/15e7461a93a32c7a0e43e46955adc45d845bc064)
|
80
|
+
- Form: fix demo [7deba8](https://github.com/youzan/vant/commit/7deba88b918f74d68b7880621983f2ad2d8eb549)
|
81
|
+
- Form: fix Picker demo [9cfef0](https://github.com/youzan/vant/commit/9cfef027aa787ed85566a7ce23beb8c2e8bffba1)
|
82
|
+
- Picker: new document [cc10eb](https://github.com/youzan/vant/commit/cc10eb1f2adddc5a6d34336669b85a8a571c1803)
|
83
|
+
- Picker: update demo [ceaab3](https://github.com/youzan/vant/commit/ceaab349f177d0280d15f66686890dc092434b80)
|
84
|
+
- update migration guide [d68053](https://github.com/youzan/vant/commit/d68053ea7f469953a8e81819e4aeb47ab169124f)
|
85
|
+
- update migration guide [f436b5](https://github.com/youzan/vant/commit/f436b5ae09af3f3ff8a5d21105ad0ff85cd48ff7)
|
86
|
+
- update v4 migration guide [6c24fa](https://github.com/youzan/vant/commit/6c24fa728ee078419cbd7b8efcd35b3b70021208)
|
87
|
+
- update Vant 4 [2ceb68](https://github.com/youzan/vant/commit/2ceb68e691440b49394ea05a82912f1e972146dd)
|
88
|
+
|
89
|
+
- breaking change(AddressEdit): adjust change-area event params [b3cf1d](https://github.com/youzan/vant/commit/b3cf1dfb54f04af08011d2b9930fd725856d153a)
|
90
|
+
- breaking change: event name become camelCase [8ca974](https://github.com/youzan/vant/commit/8ca9741845cc7f5c73c23bb81c98ec2802971e27)
|
91
|
+
- breaking change: shorter css var names [7d6916](https://github.com/youzan/vant/commit/7d6916b946440fdd7fb3e0bd4c1117c989d74a93)
|
92
|
+
- breaking change: no longer support less vars [ada5db](https://github.com/youzan/vant/commit/ada5db011c676893a2917b9424be1aeafe54134b)
|
93
|
+
- breaking change(Tabs): remove click、disabled event [099141](https://github.com/youzan/vant/commit/099141f6c5b0e43c7e3ceeae98ee7e6e512212d6)
|
94
|
+
- breaking change(Picker): remove default slot、value-key prop [6a4033](https://github.com/youzan/vant/commit/6a4033b6bc72c38ff103c16e039ecd73ccacd4df)
|
95
|
+
|
96
|
+
**Feature**
|
97
|
+
|
98
|
+
- @vant/cli: desktop site support dark mode [35a990](https://github.com/youzan/vant/commit/35a990ed65500311cbcafae506780dc6d3fb49fa)
|
99
|
+
- @vant/cli: mobile site support dark mode [df24a3](https://github.com/youzan/vant/commit/df24a3b6834e4b9439580498f9c4a7448f7ca7c2)
|
100
|
+
- ActionBar: update icon text color [650bdd](https://github.com/youzan/vant/commit/650bdd22941d9119d8a78f1ffc37d8562c68f9a1)
|
101
|
+
- add dark mode basic variables [73322f](https://github.com/youzan/vant/commit/73322fd310849f53bf6f9e5bc508991c770af620)
|
102
|
+
- Area: add getSelectedOptions method [35a500](https://github.com/youzan/vant/commit/35a50012c76495119a44efa2cfc231f8b1921f40)
|
103
|
+
- ConfigProvider: add theme prop [f95734](https://github.com/youzan/vant/commit/f9573402a79d2de0abcfb43f6cbcf4c7e7e8c64f)
|
104
|
+
- ConfigProvider: dark theme class [97b074](https://github.com/youzan/vant/commit/97b074ad0c3d8f25b9281120444901128bfdc5a1)
|
105
|
+
- DatePicker: date columns calculation [e8ffc8](https://github.com/youzan/vant/commit/e8ffc80dc65a9a09e342a97d9314c498e8e78264)
|
106
|
+
- Picker: add getSelectedOptions method [83295e](https://github.com/youzan/vant/commit/83295e655da9ae2debbf2e7472753517d5b5241d)
|
107
|
+
- TimePicker: support select second [2e053a](https://github.com/youzan/vant/commit/2e053ad76bf254fbe14cee2b3c3d2dc7766c9462)
|
108
|
+
|
109
|
+
**refactor**
|
110
|
+
|
111
|
+
- Area component [cca428](https://github.com/youzan/vant/commit/cca428aac63da792e8de8f3f6f76d164cab46cb6)
|
112
|
+
- attach css variables to body element [541458](https://github.com/youzan/vant/commit/541458c41b69e3bc977aa39a0e91be2b2d91883a)
|
113
|
+
- DatePicker Component [5b4075](https://github.com/youzan/vant/commit/5b407566db61d2ff7e6512ca8f82f39111d8da0f)
|
114
|
+
- DatePicker: v-model now is string array [ef8e66](https://github.com/youzan/vant/commit/ef8e66a9244606899339c7153ec2d66406afbf81)
|
115
|
+
- Picker: data driven [89b029](https://github.com/youzan/vant/commit/89b029aa42400b2570b7676b881f6311abe42352)
|
116
|
+
- Picker: rename item-height to option-height [c06141](https://github.com/youzan/vant/commit/c061412138e41a07a87110692621517eac814428)
|
117
|
+
- rename --van-background-light to --van-background-2 [98b999](https://github.com/youzan/vant/commit/98b999d911c41ac1a73e6ef375b4966befe69b20)
|
118
|
+
- TimePicker component [42d1dd](https://github.com/youzan/vant/commit/42d1dd836c141f499343aa6a8278d1b3be4953ac)
|
119
|
+
- TimePicker: modelValue now is string array [fdcf99](https://github.com/youzan/vant/commit/fdcf9931bed3da6f1faedff99f3a6b8202d75691)
|
120
|
+
|
121
|
+
**release**
|
122
|
+
|
123
|
+
- @vant/cli 4.0.0-rc.6 [e93ae7](https://github.com/youzan/vant/commit/e93ae7b430afac7f431af23e334eaf0bf17a9e9d)
|
124
|
+
- 4.0.0-alpha.0 [c20664](https://github.com/youzan/vant/commit/c206642d2d6771b681c369653228ec692fd28754)
|
125
|
+
|
126
|
+
**style**
|
127
|
+
|
128
|
+
- @vant/cli: adjust css vars [b6fcd3](https://github.com/youzan/vant/commit/b6fcd32dcf201703d32ee4ce70d6147b4c4605ef)
|
129
|
+
- @vant/cli: improve demo style in dark mode [0e8e32](https://github.com/youzan/vant/commit/0e8e3200a2f3fbdfd46f324d89ae05a38680f421)
|
130
|
+
- @vant/cli: improve mobile style in dark mode [f5c32c](https://github.com/youzan/vant/commit/f5c32c29f115ef072a20ff736732a1c66557f992)
|
131
|
+
- AddressEdit: submit button using primary type [c65d4f](https://github.com/youzan/vant/commit/c65d4f96727059d19ad7bb014b53d679754bd512)
|
132
|
+
- AddressList: using primary color [fcd91c](https://github.com/youzan/vant/commit/fcd91cb0b03ade0def49928bdd2ec2ea652f4408)
|
133
|
+
- Button: adjust font-smoothing [bda361](https://github.com/youzan/vant/commit/bda3617d14f3e93f04748915bb595467c1696945)
|
134
|
+
- Button: increase default border radius from 2px to 4px [d86771](https://github.com/youzan/vant/commit/d867710cc9ca273dbf6c1d4edc568f57e5806243)
|
135
|
+
- Button: update default button border color [bd2428](https://github.com/youzan/vant/commit/bd24288a12b38fecafc6302f1216587e7a6710fb)
|
136
|
+
- Calendar: using primary color by default [4e89e8](https://github.com/youzan/vant/commit/4e89e88845adba1af3a6a6db19d8df7cae6aa9fb)
|
137
|
+
- Card: blue tag [369201](https://github.com/youzan/vant/commit/3692014070beb9d3187106803e742b28ab0b3310)
|
138
|
+
- Card: improve card mode style [cb2d99](https://github.com/youzan/vant/commit/cb2d99c8cf7abde3e08df79085f13a21c47c9bc7)
|
139
|
+
- Cascader: using primary color by default [84b90b](https://github.com/youzan/vant/commit/84b90b1f4c9e52c9638426e79a269d53801cc0b1)
|
140
|
+
- Cell: remove value aline style [0a7b53](https://github.com/youzan/vant/commit/0a7b53553364691e11af6906b5d22dee8e570cce)
|
141
|
+
- ContactEdit: adjust submit button [43ae30](https://github.com/youzan/vant/commit/43ae30026adf98b076ec26c3214c24387cb63082)
|
142
|
+
- ContactList: using primary color [d39f6a](https://github.com/youzan/vant/commit/d39f6a898afa4c5bbd5ef33035e42f656b0ec6f7)
|
143
|
+
- CouponList: change default color [85c5ad](https://github.com/youzan/vant/commit/85c5ad671868b7156968b681a00b147a57504c84)
|
144
|
+
- CouponList: update field background color in dark mode [82e0e4](https://github.com/youzan/vant/commit/82e0e454d0de31d5a1a68a17a6e566d42ba86d74)
|
145
|
+
- DropdownMenu: using primary color by default [37e7c6](https://github.com/youzan/vant/commit/37e7c618b82527616d9f988f3249dda347eb7923)
|
146
|
+
- Field: adjust label color [8e98e9](https://github.com/youzan/vant/commit/8e98e9744939003f1679b465ccd5124539a99f36)
|
147
|
+
- GridItem: adust text color [42f03f](https://github.com/youzan/vant/commit/42f03fe1a241ff5311e9fe6696fb614b225faa72)
|
148
|
+
- increase font-weight bold [bef919](https://github.com/youzan/vant/commit/bef919c7f011bffdb31bad1ca085df5be24679f4)
|
149
|
+
- IndexBar: increase font weight of active index [d6e80e](https://github.com/youzan/vant/commit/d6e80e8954931927808c7fabf37473db35e8730b)
|
150
|
+
- IndexBar: using primary color by default [8b95db](https://github.com/youzan/vant/commit/8b95db15746bbf02a9091c8e604c9bb3884148b0)
|
151
|
+
- Sidebar: using primary color by default [eeb233](https://github.com/youzan/vant/commit/eeb233bf990a598282c21559520415a64a237179)
|
152
|
+
- Slider: improve dark mode color [fc2847](https://github.com/youzan/vant/commit/fc2847fdb442f3a5c5f1e26cc14858e136a86b3c)
|
153
|
+
- Stepper: using primary color by default [41b1cd](https://github.com/youzan/vant/commit/41b1cd71854514404c6a601ee22586a9ae243ee3)
|
154
|
+
- Steps: update default button border color [5a1566](https://github.com/youzan/vant/commit/5a15660c77082d814da2b68527136994ab9112f8)
|
155
|
+
- Switch: adjust style [2acd47](https://github.com/youzan/vant/commit/2acd47b5ee251d1af729c44b8516a4cc0fa06d44)
|
156
|
+
- Switch: adjust width [73788f](https://github.com/youzan/vant/commit/73788f9e88beba576d2599a939caa4b4970b396f)
|
157
|
+
- Tabbar: adjust text color [39b51d](https://github.com/youzan/vant/commit/39b51d5dae7e9c0ab1e5fb03a868a06cdbf6b269)
|
158
|
+
- Tabs: using primary color by default [3b10d6](https://github.com/youzan/vant/commit/3b10d66bb92869d03b7af8228bfd1b1e0361a033)
|
159
|
+
- TreeSelect: using primary color [cce3ce](https://github.com/youzan/vant/commit/cce3ceb5b68e445d0b9ea94f91d6b46246444b36)
|
160
|
+
- update van doc background [5b3c4f](https://github.com/youzan/vant/commit/5b3c4f15468428c29dcd7cc43ca5a82831b6f87a)
|
161
|
+
|
162
|
+
**Types**
|
163
|
+
|
164
|
+
- AddressEdit: SearchItem optional [27c46b](https://github.com/youzan/vant/commit/27c46b01ae391f7c26430ea258181d1f534511a0)
|
165
|
+
- DatePicker: export DatePickerColumnType [829db0](https://github.com/youzan/vant/commit/829db06d5b2576e2024a280bd10ba1fa3f17f25c)
|
166
|
+
- Picker: fix columns prop typing [6c64bc](https://github.com/youzan/vant/commit/6c64bc33c1ba537b7951dcbc02d6deec3aaab093)
|
167
|
+
- Picker: fix return type of getSelectedOptions [967cb5](https://github.com/youzan/vant/commit/967cb56c181cc145189a868f49c4666a75f85b00)
|
168
|
+
- TimePicker: export TimePickerColumnType [b608fb](https://github.com/youzan/vant/commit/b608fb23f031cf09a474039cd9cd23f8bc7811d3)
|
169
|
+
### [v3.4.9](https://github.com/youzan/vant/compare/v4.0.0-alpha.2...v3.4.9)
|
170
|
+
|
171
|
+
`2022-05-02`
|
172
|
+
|
173
|
+
**Bug Fixes**
|
174
|
+
|
175
|
+
- @vant/area-data: only publish dist folder to npm [f927f6](https://github.com/youzan/vant/commit/f927f6a7518cf7d08ec8abc5dd35019685c19e3a)
|
176
|
+
- remove default license in vant cli template [#10546](https://github.com/youzan/vant/issues/10546)
|
177
|
+
|
178
|
+
**Document**
|
179
|
+
|
180
|
+
- @vant/cli: optimize links and fix typos [#10545](https://github.com/youzan/vant/issues/10545)
|
181
|
+
- translate docs of composables [#10561](https://github.com/youzan/vant/issues/10561)
|
182
|
+
- update the composables content [#10560](https://github.com/youzan/vant/issues/10560)
|
183
|
+
- vant-cli: translate README to en [#10519](https://github.com/youzan/vant/issues/10519)
|
184
|
+
- vant-cli: translate vant-cli docs to en [#10537](https://github.com/youzan/vant/issues/10537)
|
185
|
+
- vant: keep the doc consistent with the demo code [#10554](https://github.com/youzan/vant/issues/10554)
|
186
|
+
|
187
|
+
**Feature**
|
188
|
+
|
189
|
+
- Form: support setting multile validate-trigger [#10544](https://github.com/youzan/vant/issues/10544)
|
190
|
+
- Image: localize default image [#10514](https://github.com/youzan/vant/issues/10514)
|
191
|
+
- Image: localize error image [#10515](https://github.com/youzan/vant/issues/10515)
|
192
|
+
- Image: localize search image [#10516](https://github.com/youzan/vant/issues/10516)
|
193
|
+
- Loading: add aria to improve a11y [#10568](https://github.com/youzan/vant/issues/10568)
|
194
|
+
|
195
|
+
**release**
|
196
|
+
|
197
|
+
- @vant/area-data 1.2.4 [c378f4](https://github.com/youzan/vant/commit/c378f4ead14176e371ce1e80074244268fbc5769)
|
198
|
+
- 3.4.9 [948863](https://github.com/youzan/vant/commit/9488631862446a6b1e2bd3ce90bf5da008e93beb)
|
@@ -16,7 +16,6 @@ declare const addressEditProps: {
|
|
16
16
|
default: true;
|
17
17
|
};
|
18
18
|
showDelete: BooleanConstructor;
|
19
|
-
showPostal: BooleanConstructor;
|
20
19
|
disableArea: BooleanConstructor;
|
21
20
|
searchResult: PropType<AddressEditSearchItem[]>;
|
22
21
|
telMaxlength: (NumberConstructor | StringConstructor)[];
|
@@ -45,10 +44,6 @@ declare const addressEditProps: {
|
|
45
44
|
type: PropType<(val: string) => boolean>;
|
46
45
|
default: typeof isMobile;
|
47
46
|
};
|
48
|
-
postalValidator: {
|
49
|
-
type: PropType<(val: string) => boolean>;
|
50
|
-
default: (value: string) => boolean;
|
51
|
-
};
|
52
47
|
};
|
53
48
|
export declare type AddressEditProps = ExtractPropTypes<typeof addressEditProps>;
|
54
49
|
declare const _default: import("vue").DefineComponent<{
|
@@ -65,7 +60,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
65
60
|
default: true;
|
66
61
|
};
|
67
62
|
showDelete: BooleanConstructor;
|
68
|
-
showPostal: BooleanConstructor;
|
69
63
|
disableArea: BooleanConstructor;
|
70
64
|
searchResult: PropType<AddressEditSearchItem[]>;
|
71
65
|
telMaxlength: (NumberConstructor | StringConstructor)[];
|
@@ -94,10 +88,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
94
88
|
type: PropType<(val: string) => boolean>;
|
95
89
|
default: typeof isMobile;
|
96
90
|
};
|
97
|
-
postalValidator: {
|
98
|
-
type: PropType<(val: string) => boolean>;
|
99
|
-
default: (value: string) => boolean;
|
100
|
-
};
|
101
91
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("focus" | "selectSearch" | "save" | "delete" | "clickArea" | "changeArea" | "changeDetail" | "changeDefault")[], "focus" | "selectSearch" | "save" | "delete" | "clickArea" | "changeArea" | "changeDetail" | "changeDefault", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
102
92
|
areaList: PropType<AreaList>;
|
103
93
|
isSaving: BooleanConstructor;
|
@@ -112,7 +102,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
112
102
|
default: true;
|
113
103
|
};
|
114
104
|
showDelete: BooleanConstructor;
|
115
|
-
showPostal: BooleanConstructor;
|
116
105
|
disableArea: BooleanConstructor;
|
117
106
|
searchResult: PropType<AddressEditSearchItem[]>;
|
118
107
|
telMaxlength: (NumberConstructor | StringConstructor)[];
|
@@ -141,10 +130,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
141
130
|
type: PropType<(val: string) => boolean>;
|
142
131
|
default: typeof isMobile;
|
143
132
|
};
|
144
|
-
postalValidator: {
|
145
|
-
type: PropType<(val: string) => boolean>;
|
146
|
-
default: (value: string) => boolean;
|
147
|
-
};
|
148
133
|
}>> & {
|
149
134
|
onFocus?: ((...args: any[]) => any) | undefined;
|
150
135
|
onSelectSearch?: ((...args: any[]) => any) | undefined;
|
@@ -160,7 +145,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
160
145
|
showArea: boolean;
|
161
146
|
showDetail: boolean;
|
162
147
|
showDelete: boolean;
|
163
|
-
showPostal: boolean;
|
164
148
|
disableArea: boolean;
|
165
149
|
showSetDefault: boolean;
|
166
150
|
showSearchResult: boolean;
|
@@ -169,6 +153,5 @@ declare const _default: import("vue").DefineComponent<{
|
|
169
153
|
areaColumnsPlaceholder: string[];
|
170
154
|
addressInfo: Partial<AddressEditInfo>;
|
171
155
|
telValidator: (val: string) => boolean;
|
172
|
-
postalValidator: (val: string) => boolean;
|
173
156
|
}>;
|
174
157
|
export default _default;
|
@@ -22,10 +22,8 @@ const DEFAULT_DATA = {
|
|
22
22
|
province: "",
|
23
23
|
areaCode: "",
|
24
24
|
isDefault: false,
|
25
|
-
postalCode: "",
|
26
25
|
addressDetail: ""
|
27
26
|
};
|
28
|
-
const isPostal = (value) => /^\d{6}$/.test(value);
|
29
27
|
const addressEditProps = {
|
30
28
|
areaList: Object,
|
31
29
|
isSaving: Boolean,
|
@@ -34,7 +32,6 @@ const addressEditProps = {
|
|
34
32
|
showArea: truthProp,
|
35
33
|
showDetail: truthProp,
|
36
34
|
showDelete: Boolean,
|
37
|
-
showPostal: Boolean,
|
38
35
|
disableArea: Boolean,
|
39
36
|
searchResult: Array,
|
40
37
|
telMaxlength: numericProp,
|
@@ -53,10 +50,6 @@ const addressEditProps = {
|
|
53
50
|
telValidator: {
|
54
51
|
type: Function,
|
55
52
|
default: isMobile
|
56
|
-
},
|
57
|
-
postalValidator: {
|
58
|
-
type: Function,
|
59
|
-
default: isPostal
|
60
53
|
}
|
61
54
|
};
|
62
55
|
var stdin_default = defineComponent({
|
@@ -99,8 +92,7 @@ var stdin_default = defineComponent({
|
|
99
92
|
const rules = computed(() => {
|
100
93
|
const {
|
101
94
|
validator,
|
102
|
-
telValidator
|
103
|
-
postalValidator
|
95
|
+
telValidator
|
104
96
|
} = props;
|
105
97
|
const makeRule = (name2, emptyMessage) => ({
|
106
98
|
validator: (value) => {
|
@@ -123,11 +115,7 @@ var stdin_default = defineComponent({
|
|
123
115
|
message: t("telInvalid")
|
124
116
|
}],
|
125
117
|
areaCode: [makeRule("areaCode", t("areaEmpty"))],
|
126
|
-
addressDetail: [makeRule("addressDetail", t("addressEmpty"))]
|
127
|
-
postalCode: [makeRule("addressDetail", t("postalEmpty")), {
|
128
|
-
validator: postalValidator,
|
129
|
-
message: t("postalEmpty")
|
130
|
-
}]
|
118
|
+
addressDetail: [makeRule("addressDetail", t("addressEmpty"))]
|
131
119
|
};
|
132
120
|
});
|
133
121
|
const onSave = () => emit("save", data);
|
@@ -252,16 +240,7 @@ var stdin_default = defineComponent({
|
|
252
240
|
"onFocus": () => onFocus("addressDetail"),
|
253
241
|
"onInput": onChangeDetail,
|
254
242
|
"onSelectSearch": (event) => emit("selectSearch", event)
|
255
|
-
}, null),
|
256
|
-
"modelValue": data.postalCode,
|
257
|
-
"onUpdate:modelValue": ($event) => data.postalCode = $event,
|
258
|
-
"type": "tel",
|
259
|
-
"rules": rules.value.postalCode,
|
260
|
-
"label": t("postal"),
|
261
|
-
"maxlength": "6",
|
262
|
-
"placeholder": t("postal"),
|
263
|
-
"onFocus": () => onFocus("postalCode")
|
264
|
-
}, null), [[_vShow, !hideBottomFields.value]]), (_a = slots.default) == null ? void 0 : _a.call(slots)]), renderSetDefaultCell(), _withDirectives(_createVNode("div", {
|
243
|
+
}, null), (_a = slots.default) == null ? void 0 : _a.call(slots)]), renderSetDefaultCell(), _withDirectives(_createVNode("div", {
|
265
244
|
"class": bem("buttons")
|
266
245
|
}, [_createVNode(Button, {
|
267
246
|
"block": true,
|
@@ -13,7 +13,6 @@ export declare const AddressEdit: import("../utils").WithInstall<import("vue").D
|
|
13
13
|
default: true;
|
14
14
|
};
|
15
15
|
showDelete: BooleanConstructor;
|
16
|
-
showPostal: BooleanConstructor;
|
17
16
|
disableArea: BooleanConstructor;
|
18
17
|
searchResult: import("vue").PropType<import("./types").AddressEditSearchItem[]>;
|
19
18
|
telMaxlength: (NumberConstructor | StringConstructor)[];
|
@@ -42,10 +41,6 @@ export declare const AddressEdit: import("../utils").WithInstall<import("vue").D
|
|
42
41
|
type: import("vue").PropType<(val: string) => boolean>;
|
43
42
|
default: typeof import("../utils").isMobile;
|
44
43
|
};
|
45
|
-
postalValidator: {
|
46
|
-
type: import("vue").PropType<(val: string) => boolean>;
|
47
|
-
default: (value: string) => boolean;
|
48
|
-
};
|
49
44
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("focus" | "selectSearch" | "save" | "delete" | "clickArea" | "changeArea" | "changeDetail" | "changeDefault")[], "focus" | "selectSearch" | "save" | "delete" | "clickArea" | "changeArea" | "changeDetail" | "changeDefault", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
50
45
|
areaList: import("vue").PropType<import("..").AreaList>;
|
51
46
|
isSaving: BooleanConstructor;
|
@@ -60,7 +55,6 @@ export declare const AddressEdit: import("../utils").WithInstall<import("vue").D
|
|
60
55
|
default: true;
|
61
56
|
};
|
62
57
|
showDelete: BooleanConstructor;
|
63
|
-
showPostal: BooleanConstructor;
|
64
58
|
disableArea: BooleanConstructor;
|
65
59
|
searchResult: import("vue").PropType<import("./types").AddressEditSearchItem[]>;
|
66
60
|
telMaxlength: (NumberConstructor | StringConstructor)[];
|
@@ -89,10 +83,6 @@ export declare const AddressEdit: import("../utils").WithInstall<import("vue").D
|
|
89
83
|
type: import("vue").PropType<(val: string) => boolean>;
|
90
84
|
default: typeof import("../utils").isMobile;
|
91
85
|
};
|
92
|
-
postalValidator: {
|
93
|
-
type: import("vue").PropType<(val: string) => boolean>;
|
94
|
-
default: (value: string) => boolean;
|
95
|
-
};
|
96
86
|
}>> & {
|
97
87
|
onFocus?: ((...args: any[]) => any) | undefined;
|
98
88
|
onSelectSearch?: ((...args: any[]) => any) | undefined;
|
@@ -108,7 +98,6 @@ export declare const AddressEdit: import("../utils").WithInstall<import("vue").D
|
|
108
98
|
showArea: boolean;
|
109
99
|
showDetail: boolean;
|
110
100
|
showDelete: boolean;
|
111
|
-
showPostal: boolean;
|
112
101
|
disableArea: boolean;
|
113
102
|
showSetDefault: boolean;
|
114
103
|
showSearchResult: boolean;
|
@@ -117,7 +106,6 @@ export declare const AddressEdit: import("../utils").WithInstall<import("vue").D
|
|
117
106
|
areaColumnsPlaceholder: string[];
|
118
107
|
addressInfo: Partial<import("./types").AddressEditInfo>;
|
119
108
|
telValidator: (val: string) => boolean;
|
120
|
-
postalValidator: (val: string) => boolean;
|
121
109
|
}>>;
|
122
110
|
export default AddressEdit;
|
123
111
|
export type { AddressEditProps };
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { createVNode as _createVNode } from "vue";
|
2
2
|
import { defineComponent } from "vue";
|
3
|
-
import {
|
3
|
+
import { extend, createNamespace, makeRequiredProp } from "../utils";
|
4
4
|
import { Tag } from "../tag";
|
5
5
|
import { Icon } from "../icon";
|
6
6
|
import { Cell } from "../cell";
|
package/es/badge/Badge.d.ts
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
import { type PropType, type ExtractPropTypes } from 'vue';
|
2
|
+
import { type Numeric } from '../utils';
|
2
3
|
export declare type BadgePosition = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
3
4
|
declare const badgeProps: {
|
4
5
|
dot: BooleanConstructor;
|
@@ -8,7 +9,7 @@ declare const badgeProps: {
|
|
8
9
|
default: keyof HTMLElementTagNameMap;
|
9
10
|
};
|
10
11
|
color: StringConstructor;
|
11
|
-
offset: PropType<[
|
12
|
+
offset: PropType<[Numeric, Numeric]>;
|
12
13
|
content: (NumberConstructor | StringConstructor)[];
|
13
14
|
showZero: {
|
14
15
|
type: BooleanConstructor;
|
@@ -28,7 +29,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
28
29
|
default: keyof HTMLElementTagNameMap;
|
29
30
|
};
|
30
31
|
color: StringConstructor;
|
31
|
-
offset: PropType<[
|
32
|
+
offset: PropType<[Numeric, Numeric]>;
|
32
33
|
content: (NumberConstructor | StringConstructor)[];
|
33
34
|
showZero: {
|
34
35
|
type: BooleanConstructor;
|
@@ -46,7 +47,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
46
47
|
default: keyof HTMLElementTagNameMap;
|
47
48
|
};
|
48
49
|
color: StringConstructor;
|
49
|
-
offset: PropType<[
|
50
|
+
offset: PropType<[Numeric, Numeric]>;
|
50
51
|
content: (NumberConstructor | StringConstructor)[];
|
51
52
|
showZero: {
|
52
53
|
type: BooleanConstructor;
|
package/es/badge/index.d.ts
CHANGED
@@ -6,7 +6,7 @@ export declare const Badge: import("../utils").WithInstall<import("vue").DefineC
|
|
6
6
|
default: keyof HTMLElementTagNameMap;
|
7
7
|
};
|
8
8
|
color: StringConstructor;
|
9
|
-
offset: import("vue").PropType<[
|
9
|
+
offset: import("vue").PropType<[import("../utils").Numeric, import("../utils").Numeric]>;
|
10
10
|
content: (NumberConstructor | StringConstructor)[];
|
11
11
|
showZero: {
|
12
12
|
type: BooleanConstructor;
|
@@ -24,7 +24,7 @@ export declare const Badge: import("../utils").WithInstall<import("vue").DefineC
|
|
24
24
|
default: keyof HTMLElementTagNameMap;
|
25
25
|
};
|
26
26
|
color: StringConstructor;
|
27
|
-
offset: import("vue").PropType<[
|
27
|
+
offset: import("vue").PropType<[import("../utils").Numeric, import("../utils").Numeric]>;
|
28
28
|
content: (NumberConstructor | StringConstructor)[];
|
29
29
|
showZero: {
|
30
30
|
type: BooleanConstructor;
|
@@ -66,6 +66,7 @@ declare const calendarProps: {
|
|
66
66
|
type: BooleanConstructor;
|
67
67
|
default: true;
|
68
68
|
};
|
69
|
+
safeAreaInsetTop: BooleanConstructor;
|
69
70
|
safeAreaInsetBottom: {
|
70
71
|
type: BooleanConstructor;
|
71
72
|
default: true;
|
@@ -152,6 +153,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
152
153
|
type: BooleanConstructor;
|
153
154
|
default: true;
|
154
155
|
};
|
156
|
+
safeAreaInsetTop: BooleanConstructor;
|
155
157
|
safeAreaInsetBottom: {
|
156
158
|
type: BooleanConstructor;
|
157
159
|
default: true;
|
@@ -236,6 +238,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
236
238
|
type: BooleanConstructor;
|
237
239
|
default: true;
|
238
240
|
};
|
241
|
+
safeAreaInsetTop: BooleanConstructor;
|
239
242
|
safeAreaInsetBottom: {
|
240
243
|
type: BooleanConstructor;
|
241
244
|
default: true;
|
@@ -273,6 +276,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
273
276
|
lazyRender: boolean;
|
274
277
|
closeOnClickOverlay: boolean;
|
275
278
|
closeOnPopstate: boolean;
|
279
|
+
safeAreaInsetTop: boolean;
|
276
280
|
poppable: boolean;
|
277
281
|
maxRange: string | number;
|
278
282
|
showMark: boolean;
|