vant 3.2.6 → 3.3.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/es/action-bar/ActionBar.d.ts +8 -0
- package/es/action-bar/ActionBar.js +8 -6
- package/es/action-bar/index.css +1 -1
- package/es/action-bar/index.d.ts +1 -0
- package/es/action-bar/var.less +1 -1
- package/es/action-bar-button/ActionBarButton.d.ts +14 -1
- package/es/action-bar-button/ActionBarButton.js +13 -11
- package/es/action-bar-button/index.d.ts +1 -0
- package/es/action-bar-icon/ActionBarIcon.d.ts +15 -0
- package/es/action-bar-icon/ActionBarIcon.js +14 -12
- package/es/action-bar-icon/index.css +1 -1
- package/es/action-bar-icon/index.d.ts +1 -0
- package/es/action-bar-icon/var.less +1 -1
- package/es/action-sheet/ActionSheet.d.ts +57 -0
- package/es/action-sheet/ActionSheet.js +23 -20
- package/es/action-sheet/index.css +1 -1
- package/es/action-sheet/index.d.ts +1 -1
- package/es/action-sheet/index.less +0 -5
- package/es/action-sheet/var.less +4 -5
- package/es/address-edit/AddressEdit.d.ts +2 -2
- package/es/address-edit/AddressEdit.js +161 -186
- package/es/address-edit/AddressEditDetail.d.ts +10 -9
- package/es/address-edit/AddressEditDetail.js +10 -9
- package/es/address-list/AddressList.d.ts +20 -0
- package/es/address-list/AddressList.js +16 -13
- package/es/address-list/AddressListItem.js +6 -4
- package/es/address-list/index.css +1 -1
- package/es/address-list/index.d.ts +1 -0
- package/es/address-list/index.less +2 -2
- package/es/address-list/var.less +2 -2
- package/es/area/Area.d.ts +2 -2
- package/es/area/Area.js +20 -9
- package/es/area/index.d.ts +1 -2
- package/es/badge/Badge.d.ts +18 -2
- package/es/badge/Badge.js +17 -14
- package/es/badge/index.css +1 -1
- package/es/badge/index.d.ts +2 -1
- package/es/badge/index.less +1 -1
- package/es/button/Button.d.ts +43 -5
- package/es/button/Button.js +31 -28
- package/es/button/index.css +1 -1
- package/es/button/index.d.ts +18 -17
- package/es/button/types.d.ts +5 -0
- package/es/button/types.js +1 -0
- package/es/button/var.less +1 -1
- package/es/calendar/Calendar.d.ts +2 -2
- package/es/calendar/Calendar.js +32 -10
- package/es/calendar/CalendarDay.js +5 -4
- package/es/calendar/CalendarHeader.js +7 -7
- package/es/calendar/CalendarMonth.d.ts +2 -2
- package/es/calendar/CalendarMonth.js +7 -6
- package/es/calendar/index.css +1 -1
- package/es/calendar/index.d.ts +1 -2
- package/es/calendar/types.d.ts +1 -1
- package/es/calendar/utils.d.ts +1 -1
- package/es/calendar/var.less +2 -2
- package/es/card/Card.d.ts +18 -0
- package/es/card/Card.js +20 -17
- package/es/card/index.css +1 -1
- package/es/card/index.d.ts +1 -0
- package/es/card/var.less +3 -3
- package/es/cascader/Cascader.d.ts +2 -2
- package/es/cascader/Cascader.js +33 -15
- package/es/cascader/index.css +1 -1
- package/es/cascader/index.d.ts +1 -2
- package/es/cascader/index.less +0 -5
- package/es/cascader/var.less +2 -3
- package/es/cell/Cell.d.ts +35 -5
- package/es/cell/Cell.js +8 -13
- package/es/cell/index.css +1 -1
- package/es/cell/index.d.ts +3 -3
- package/es/cell/var.less +3 -3
- package/es/cell-group/CellGroup.d.ts +10 -0
- package/es/cell-group/CellGroup.js +12 -9
- package/es/cell-group/index.css +1 -1
- package/es/cell-group/index.d.ts +1 -0
- package/es/cell-group/var.less +2 -2
- package/es/checkbox/Checkbox.d.ts +2 -2
- package/es/checkbox/Checkbox.js +12 -7
- package/es/checkbox/Checker.js +6 -5
- package/es/checkbox/index.css +1 -1
- package/es/checkbox/index.d.ts +1 -2
- package/es/checkbox/types.d.ts +2 -6
- package/es/checkbox/var.less +1 -1
- package/es/checkbox-group/CheckboxGroup.d.ts +2 -2
- package/es/checkbox-group/CheckboxGroup.js +12 -7
- package/es/checkbox-group/index.d.ts +1 -2
- package/es/circle/Circle.d.ts +37 -1
- package/es/circle/Circle.js +20 -18
- package/es/circle/index.d.ts +1 -1
- package/es/col/Col.d.ts +13 -0
- package/es/col/Col.js +10 -8
- package/es/col/index.d.ts +1 -0
- package/es/collapse/Collapse.d.ts +13 -1
- package/es/collapse/Collapse.js +14 -12
- package/es/collapse/index.d.ts +1 -0
- package/es/collapse-item/CollapseItem.d.ts +5 -5
- package/es/collapse-item/CollapseItem.js +13 -8
- package/es/collapse-item/index.css +1 -1
- package/es/collapse-item/index.d.ts +3 -4
- package/es/collapse-item/var.less +3 -3
- package/es/composables/use-id.d.ts +1 -0
- package/es/composables/use-id.js +14 -0
- package/es/composables/use-route.d.ts +1 -1
- package/es/composables/use-route.js +4 -4
- package/es/config-provider/ConfigProvider.d.ts +11 -2
- package/es/config-provider/ConfigProvider.js +10 -8
- package/es/config-provider/index.d.ts +2 -1
- package/es/contact-card/ContactCard.d.ts +15 -0
- package/es/contact-card/ContactCard.js +13 -10
- package/es/contact-card/index.css +1 -1
- package/es/contact-card/index.d.ts +1 -1
- package/es/contact-card/index.less +2 -2
- package/es/contact-edit/ContactEdit.d.ts +17 -1
- package/es/contact-edit/ContactEdit.js +20 -18
- package/es/contact-edit/index.d.ts +1 -1
- package/es/contact-list/ContactList.d.ts +8 -1
- package/es/contact-list/ContactList.js +12 -9
- package/es/contact-list/index.css +1 -1
- package/es/contact-list/index.d.ts +1 -1
- package/es/contact-list/index.less +1 -1
- package/es/count-down/CountDown.d.ts +2 -2
- package/es/count-down/CountDown.js +8 -6
- package/es/count-down/index.d.ts +1 -2
- package/es/coupon/Coupon.js +2 -11
- package/es/coupon/index.css +1 -1
- package/es/coupon/index.less +2 -1
- package/es/coupon/utils.d.ts +3 -0
- package/es/coupon/utils.js +7 -0
- package/es/coupon/var.less +3 -2
- package/es/coupon-cell/CouponCell.d.ts +25 -0
- package/es/coupon-cell/CouponCell.js +17 -12
- package/es/coupon-cell/index.d.ts +1 -0
- package/es/coupon-list/CouponList.d.ts +55 -0
- package/es/coupon-list/CouponList.js +66 -48
- package/es/coupon-list/index.css +1 -1
- package/es/coupon-list/index.d.ts +1 -0
- package/es/coupon-list/index.less +3 -8
- package/es/coupon-list/var.less +1 -1
- package/es/datetime-picker/DatePicker.js +13 -10
- package/es/datetime-picker/DatetimePicker.d.ts +2 -2
- package/es/datetime-picker/DatetimePicker.js +10 -9
- package/es/datetime-picker/TimePicker.js +13 -10
- package/es/datetime-picker/utils.d.ts +1 -1
- package/es/datetime-picker/utils.js +3 -3
- package/es/dialog/Dialog.d.ts +55 -1
- package/es/dialog/Dialog.js +27 -25
- package/es/dialog/index.css +1 -1
- package/es/dialog/index.d.ts +1 -0
- package/es/dialog/var.less +1 -1
- package/es/divider/Divider.d.ts +13 -0
- package/es/divider/Divider.js +10 -8
- package/es/divider/index.css +1 -1
- package/es/divider/index.d.ts +1 -1
- package/es/divider/var.less +1 -1
- package/es/dropdown-item/DropdownItem.d.ts +2 -2
- package/es/dropdown-item/DropdownItem.js +23 -9
- package/es/dropdown-item/types.d.ts +2 -6
- package/es/dropdown-menu/DropdownMenu.d.ts +2 -2
- package/es/dropdown-menu/DropdownMenu.js +17 -10
- package/es/dropdown-menu/index.css +1 -1
- package/es/dropdown-menu/index.less +0 -8
- package/es/dropdown-menu/types.d.ts +1 -0
- package/es/dropdown-menu/var.less +2 -2
- package/es/empty/Empty.d.ts +10 -0
- package/es/empty/Empty.js +11 -8
- package/es/empty/Network.js +22 -34
- package/es/empty/index.css +1 -1
- package/es/empty/index.d.ts +1 -0
- package/es/empty/var.less +1 -1
- package/es/field/Field.d.ts +6 -6
- package/es/field/Field.js +60 -39
- package/es/field/index.css +1 -1
- package/es/field/index.d.ts +4 -4
- package/es/field/types.d.ts +7 -6
- package/es/field/utils.d.ts +2 -2
- package/es/field/utils.js +9 -6
- package/es/field/var.less +3 -3
- package/es/form/Form.d.ts +2 -2
- package/es/form/Form.js +9 -8
- package/es/grid/Grid.d.ts +3 -2
- package/es/grid/Grid.js +6 -5
- package/es/grid/index.d.ts +1 -1
- package/es/grid-item/GridItem.d.ts +14 -0
- package/es/grid-item/GridItem.js +14 -12
- package/es/grid-item/index.css +1 -1
- package/es/grid-item/index.d.ts +1 -0
- package/es/grid-item/var.less +1 -1
- package/es/icon/Icon.d.ts +14 -0
- package/es/icon/Icon.js +14 -12
- package/es/icon/index.d.ts +1 -0
- package/es/image/Image.d.ts +31 -2
- package/es/image/Image.js +36 -35
- package/es/image/index.css +1 -1
- package/es/image/index.d.ts +2 -2
- package/es/image/var.less +1 -1
- package/es/image-preview/ImagePreview.d.ts +2 -2
- package/es/image-preview/ImagePreview.js +11 -11
- package/es/image-preview/ImagePreviewItem.js +4 -3
- package/es/image-preview/function-call.js +5 -1
- package/es/image-preview/index.css +1 -1
- package/es/image-preview/index.less +0 -5
- package/es/image-preview/var.less +0 -1
- package/es/index-anchor/IndexAnchor.d.ts +5 -0
- package/es/index-anchor/IndexAnchor.js +8 -6
- package/es/index-anchor/index.css +1 -1
- package/es/index-anchor/index.d.ts +1 -0
- package/es/index-anchor/var.less +1 -1
- package/es/index-bar/IndexBar.d.ts +2 -2
- package/es/index-bar/IndexBar.js +7 -6
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/lazyload/index.d.ts +1 -1
- package/es/lazyload/index.js +1 -1
- package/es/lazyload/vue-lazyload/index.d.ts +55 -0
- package/es/lazyload/vue-lazyload/index.js +46 -0
- package/es/lazyload/vue-lazyload/lazy-component.js +53 -0
- package/es/lazyload/vue-lazyload/lazy-container.js +98 -0
- package/es/lazyload/vue-lazyload/lazy-image.js +115 -0
- package/es/lazyload/vue-lazyload/lazy.js +507 -0
- package/es/lazyload/vue-lazyload/listener.js +241 -0
- package/es/lazyload/vue-lazyload/util.js +183 -0
- package/es/list/List.d.ts +2 -2
- package/es/list/List.js +10 -7
- package/es/list/index.css +1 -1
- package/es/list/var.less +1 -1
- package/es/loading/Loading.d.ts +13 -0
- package/es/loading/Loading.js +13 -11
- package/es/loading/index.css +1 -1
- package/es/loading/index.d.ts +1 -1
- package/es/loading/var.less +1 -1
- package/es/locale/index.js +5 -1
- package/es/nav-bar/NavBar.d.ts +16 -0
- package/es/nav-bar/NavBar.js +20 -18
- package/es/nav-bar/index.css +1 -1
- package/es/nav-bar/index.d.ts +1 -0
- package/es/nav-bar/index.less +0 -4
- package/es/nav-bar/var.less +1 -1
- package/es/notice-bar/NoticeBar.d.ts +2 -2
- package/es/notice-bar/NoticeBar.js +7 -6
- package/es/notify/Notify.d.ts +38 -0
- package/es/notify/Notify.js +15 -12
- package/es/notify/index.d.ts +1 -0
- package/es/number-keyboard/NumberKeyboard.d.ts +48 -1
- package/es/number-keyboard/NumberKeyboard.js +30 -28
- package/es/number-keyboard/NumberKeyboardKey.js +9 -8
- package/es/number-keyboard/index.css +1 -1
- package/es/number-keyboard/index.d.ts +1 -1
- package/es/number-keyboard/index.less +0 -4
- package/es/number-keyboard/var.less +1 -1
- package/es/overlay/Overlay.d.ts +13 -1
- package/es/overlay/Overlay.js +13 -11
- package/es/overlay/index.d.ts +1 -0
- package/es/pagination/Pagination.d.ts +31 -0
- package/es/pagination/Pagination.js +84 -64
- package/es/pagination/index.css +1 -1
- package/es/pagination/index.d.ts +1 -1
- package/es/pagination/index.less +32 -31
- package/es/pagination/var.less +1 -1
- package/es/password-input/PasswordInput.d.ts +21 -1
- package/es/password-input/PasswordInput.js +15 -12
- package/es/password-input/index.css +1 -1
- package/es/password-input/index.d.ts +2 -1
- package/es/password-input/var.less +3 -3
- package/es/picker/Picker.d.ts +40 -1
- package/es/picker/Picker.js +20 -17
- package/es/picker/PickerColumn.js +5 -4
- package/es/picker/index.css +1 -1
- package/es/picker/index.less +2 -10
- package/es/picker/var.less +9 -3
- package/es/popover/Popover.d.ts +50 -11
- package/es/popover/Popover.js +35 -30
- package/es/popover/index.css +1 -1
- package/es/popover/index.d.ts +17 -16
- package/es/popover/types.d.ts +11 -0
- package/es/popover/types.js +1 -0
- package/es/popover/var.less +3 -3
- package/es/popup/Popup.d.ts +48 -3
- package/es/popup/Popup.js +23 -24
- package/es/popup/index.css +1 -1
- package/es/popup/index.d.ts +2 -3
- package/es/popup/index.less +0 -5
- package/es/popup/var.less +1 -2
- package/es/progress/Progress.d.ts +2 -2
- package/es/progress/Progress.js +4 -4
- package/es/pull-refresh/PullRefresh.d.ts +23 -0
- package/es/pull-refresh/PullRefresh.js +18 -16
- package/es/pull-refresh/index.css +1 -1
- package/es/pull-refresh/index.d.ts +1 -0
- package/es/pull-refresh/var.less +1 -1
- package/es/radio/Radio.d.ts +3 -1
- package/es/radio/Radio.js +5 -4
- package/es/radio/index.css +1 -1
- package/es/radio/index.d.ts +1 -2
- package/es/radio/var.less +1 -1
- package/es/radio-group/RadioGroup.d.ts +3 -2
- package/es/radio-group/RadioGroup.js +7 -6
- package/es/radio-group/index.d.ts +1 -2
- package/es/rate/Rate.d.ts +33 -0
- package/es/rate/Rate.js +26 -22
- package/es/rate/index.d.ts +1 -0
- package/es/row/Row.d.ts +18 -1
- package/es/row/Row.js +12 -10
- package/es/row/index.d.ts +1 -1
- package/es/search/Search.d.ts +2 -2
- package/es/search/Search.js +16 -9
- package/es/search/index.css +1 -1
- package/es/search/var.less +1 -1
- package/es/share-sheet/ShareSheet.d.ts +48 -0
- package/es/share-sheet/ShareSheet.js +20 -17
- package/es/share-sheet/index.css +1 -1
- package/es/share-sheet/index.d.ts +1 -1
- package/es/share-sheet/index.less +0 -4
- package/es/share-sheet/var.less +3 -3
- package/es/sidebar/Sidebar.d.ts +8 -1
- package/es/sidebar/Sidebar.js +10 -7
- package/es/sidebar/index.d.ts +1 -0
- package/es/sidebar-item/SidebarItem.d.ts +12 -0
- package/es/sidebar-item/SidebarItem.js +16 -11
- package/es/sidebar-item/index.css +1 -1
- package/es/sidebar-item/index.d.ts +1 -0
- package/es/sidebar-item/var.less +2 -2
- package/es/skeleton/Skeleton.d.ts +29 -1
- package/es/skeleton/Skeleton.js +21 -18
- package/es/skeleton/index.d.ts +5 -6
- package/es/slider/Slider.d.ts +31 -3
- package/es/slider/Slider.js +29 -25
- package/es/slider/index.d.ts +3 -2
- package/es/step/Step.js +4 -3
- package/es/step/index.css +1 -1
- package/es/step/index.less +1 -1
- package/es/step/var.less +1 -1
- package/es/stepper/Stepper.d.ts +53 -1
- package/es/stepper/Stepper.js +49 -39
- package/es/stepper/index.css +1 -1
- package/es/stepper/index.d.ts +3 -4
- package/es/stepper/index.less +3 -18
- package/es/stepper/var.less +1 -2
- package/es/steps/Steps.d.ts +3 -2
- package/es/steps/Steps.js +7 -6
- package/es/steps/index.css +1 -1
- package/es/steps/index.d.ts +5 -6
- package/es/steps/var.less +1 -1
- package/es/sticky/Sticky.d.ts +18 -1
- package/es/sticky/Sticky.js +13 -11
- package/es/sticky/index.d.ts +1 -1
- package/es/style/base.css +1 -1
- package/es/style/base.less +4 -0
- package/es/style/css-variables.css +1 -1
- package/es/style/css-variables.less +3 -1
- package/es/style/mixins/hairline.less +3 -3
- package/es/style/var.less +5 -3
- package/es/submit-bar/SubmitBar.d.ts +33 -3
- package/es/submit-bar/SubmitBar.js +23 -20
- package/es/submit-bar/index.css +1 -1
- package/es/submit-bar/index.d.ts +3 -2
- package/es/submit-bar/var.less +3 -3
- package/es/swipe/Swipe.d.ts +2 -2
- package/es/swipe/Swipe.js +32 -18
- package/es/swipe/types.d.ts +1 -3
- package/es/swipe-cell/SwipeCell.d.ts +2 -2
- package/es/swipe-cell/SwipeCell.js +12 -7
- package/es/swipe-item/SwipeItem.js +4 -3
- package/es/switch/Switch.d.ts +18 -0
- package/es/switch/Switch.js +23 -19
- package/es/switch/index.css +1 -1
- package/es/switch/index.d.ts +1 -0
- package/es/switch/index.less +2 -0
- package/es/switch/var.less +1 -1
- package/es/tab/Tab.d.ts +19 -1
- package/es/tab/Tab.js +33 -18
- package/es/tab/index.css +1 -1
- package/es/tab/index.d.ts +1 -0
- package/es/tab/index.less +1 -1
- package/es/tabbar/Tabbar.d.ts +4 -3
- package/es/tabbar/Tabbar.js +17 -16
- package/es/tabbar/index.css +1 -1
- package/es/tabbar/index.d.ts +1 -0
- package/es/tabbar/var.less +1 -1
- package/es/tabbar-item/TabbarItem.d.ts +13 -0
- package/es/tabbar-item/TabbarItem.js +25 -16
- package/es/tabbar-item/index.css +1 -1
- package/es/tabbar-item/index.d.ts +1 -0
- package/es/tabbar-item/var.less +1 -1
- package/es/tabs/Tabs.d.ts +2 -2
- package/es/tabs/Tabs.js +30 -18
- package/es/tabs/TabsContent.js +5 -4
- package/es/tabs/TabsTitle.d.ts +6 -0
- package/es/tabs/TabsTitle.js +7 -1
- package/es/tabs/index.css +1 -1
- package/es/tabs/types.d.ts +1 -0
- package/es/tabs/var.less +2 -2
- package/es/tag/Tag.d.ts +23 -3
- package/es/tag/Tag.js +18 -15
- package/es/tag/index.css +1 -1
- package/es/tag/index.d.ts +3 -2
- package/es/tag/var.less +1 -1
- package/es/toast/Toast.d.ts +33 -1
- package/es/toast/Toast.js +26 -24
- package/es/toast/function-call.js +10 -2
- package/es/toast/index.d.ts +1 -0
- package/es/tree-select/TreeSelect.d.ts +28 -1
- package/es/tree-select/TreeSelect.js +18 -15
- package/es/tree-select/index.css +1 -1
- package/es/tree-select/index.d.ts +1 -1
- package/es/tree-select/var.less +1 -1
- package/es/uploader/Uploader.d.ts +2 -2
- package/es/uploader/Uploader.js +17 -10
- package/es/uploader/UploaderPreviewItem.js +10 -5
- package/es/uploader/index.css +1 -1
- package/es/uploader/utils.d.ts +2 -2
- package/es/uploader/utils.js +2 -2
- package/es/uploader/var.less +1 -1
- package/es/utils/constant.d.ts +1 -0
- package/es/utils/constant.js +1 -0
- package/es/utils/create.d.ts +2 -2
- package/es/utils/create.js +6 -1
- package/es/utils/deep-assign.d.ts +1 -1
- package/es/utils/deep-assign.js +1 -1
- package/es/utils/deep-clone.js +2 -2
- package/es/utils/dom.d.ts +1 -1
- package/es/utils/dom.js +6 -7
- package/es/utils/format.js +20 -7
- package/es/utils/interceptor.d.ts +2 -2
- package/es/utils/interceptor.js +7 -5
- package/es/vue-tsx-shim.d.ts +1 -0
- package/lib/action-bar/ActionBar.d.ts +8 -0
- package/lib/action-bar/ActionBar.js +8 -6
- package/lib/action-bar/index.css +1 -1
- package/lib/action-bar/index.d.ts +1 -0
- package/lib/action-bar/var.less +1 -1
- package/lib/action-bar-button/ActionBarButton.d.ts +14 -1
- package/lib/action-bar-button/ActionBarButton.js +13 -11
- package/lib/action-bar-button/index.d.ts +1 -0
- package/lib/action-bar-icon/ActionBarIcon.d.ts +15 -0
- package/lib/action-bar-icon/ActionBarIcon.js +15 -13
- package/lib/action-bar-icon/index.css +1 -1
- package/lib/action-bar-icon/index.d.ts +1 -0
- package/lib/action-bar-icon/var.less +1 -1
- package/lib/action-sheet/ActionSheet.d.ts +57 -0
- package/lib/action-sheet/ActionSheet.js +22 -19
- package/lib/action-sheet/index.css +1 -1
- package/lib/action-sheet/index.d.ts +1 -1
- package/lib/action-sheet/index.less +0 -5
- package/lib/action-sheet/var.less +4 -5
- package/lib/address-edit/AddressEdit.d.ts +2 -2
- package/lib/address-edit/AddressEdit.js +162 -186
- package/lib/address-edit/AddressEditDetail.d.ts +10 -9
- package/lib/address-edit/AddressEditDetail.js +10 -9
- package/lib/address-list/AddressList.d.ts +20 -0
- package/lib/address-list/AddressList.js +16 -13
- package/lib/address-list/AddressListItem.js +6 -4
- package/lib/address-list/index.css +1 -1
- package/lib/address-list/index.d.ts +1 -0
- package/lib/address-list/index.less +2 -2
- package/lib/address-list/var.less +2 -2
- package/lib/area/Area.d.ts +2 -2
- package/lib/area/Area.js +19 -8
- package/lib/area/index.d.ts +1 -2
- package/lib/badge/Badge.d.ts +18 -2
- package/lib/badge/Badge.js +16 -13
- package/lib/badge/index.css +1 -1
- package/lib/badge/index.d.ts +2 -1
- package/lib/badge/index.less +1 -1
- package/lib/button/Button.d.ts +43 -5
- package/lib/button/Button.js +28 -26
- package/lib/button/index.css +1 -1
- package/lib/button/index.d.ts +18 -17
- package/lib/button/types.d.ts +5 -0
- package/lib/button/types.js +3 -0
- package/lib/button/var.less +1 -1
- package/lib/calendar/Calendar.d.ts +2 -2
- package/lib/calendar/Calendar.js +32 -10
- package/lib/calendar/CalendarDay.js +5 -4
- package/lib/calendar/CalendarHeader.js +7 -7
- package/lib/calendar/CalendarMonth.d.ts +2 -2
- package/lib/calendar/CalendarMonth.js +7 -6
- package/lib/calendar/index.css +1 -1
- package/lib/calendar/index.d.ts +1 -2
- package/lib/calendar/types.d.ts +1 -1
- package/lib/calendar/utils.d.ts +1 -1
- package/lib/calendar/var.less +2 -2
- package/lib/card/Card.d.ts +18 -0
- package/lib/card/Card.js +20 -17
- package/lib/card/index.css +1 -1
- package/lib/card/index.d.ts +1 -0
- package/lib/card/var.less +3 -3
- package/lib/cascader/Cascader.d.ts +2 -2
- package/lib/cascader/Cascader.js +32 -14
- package/lib/cascader/index.css +1 -1
- package/lib/cascader/index.d.ts +1 -2
- package/lib/cascader/index.less +0 -5
- package/lib/cascader/var.less +2 -3
- package/lib/cell/Cell.d.ts +35 -5
- package/lib/cell/Cell.js +10 -15
- package/lib/cell/index.css +1 -1
- package/lib/cell/index.d.ts +3 -3
- package/lib/cell/var.less +3 -3
- package/lib/cell-group/CellGroup.d.ts +10 -0
- package/lib/cell-group/CellGroup.js +13 -10
- package/lib/cell-group/index.css +1 -1
- package/lib/cell-group/index.d.ts +1 -0
- package/lib/cell-group/var.less +2 -2
- package/lib/checkbox/Checkbox.d.ts +2 -2
- package/lib/checkbox/Checkbox.js +12 -7
- package/lib/checkbox/Checker.js +6 -5
- package/lib/checkbox/index.css +1 -1
- package/lib/checkbox/index.d.ts +1 -2
- package/lib/checkbox/types.d.ts +2 -6
- package/lib/checkbox/var.less +1 -1
- package/lib/checkbox-group/CheckboxGroup.d.ts +2 -2
- package/lib/checkbox-group/CheckboxGroup.js +12 -7
- package/lib/checkbox-group/index.d.ts +1 -2
- package/lib/circle/Circle.d.ts +37 -1
- package/lib/circle/Circle.js +21 -18
- package/lib/circle/index.d.ts +1 -1
- package/lib/col/Col.d.ts +13 -0
- package/lib/col/Col.js +10 -8
- package/lib/col/index.d.ts +1 -0
- package/lib/collapse/Collapse.d.ts +13 -1
- package/lib/collapse/Collapse.js +14 -12
- package/lib/collapse/index.d.ts +1 -0
- package/lib/collapse-item/CollapseItem.d.ts +5 -5
- package/lib/collapse-item/CollapseItem.js +12 -7
- package/lib/collapse-item/index.css +1 -1
- package/lib/collapse-item/index.d.ts +3 -4
- package/lib/collapse-item/var.less +3 -3
- package/lib/composables/use-id.d.ts +1 -0
- package/lib/composables/use-id.js +21 -0
- package/lib/composables/use-route.d.ts +1 -1
- package/lib/composables/use-route.js +4 -4
- package/lib/config-provider/ConfigProvider.d.ts +11 -2
- package/lib/config-provider/ConfigProvider.js +11 -9
- package/lib/config-provider/index.d.ts +2 -1
- package/lib/contact-card/ContactCard.d.ts +15 -0
- package/lib/contact-card/ContactCard.js +13 -10
- package/lib/contact-card/index.css +1 -1
- package/lib/contact-card/index.d.ts +1 -1
- package/lib/contact-card/index.less +2 -2
- package/lib/contact-edit/ContactEdit.d.ts +17 -1
- package/lib/contact-edit/ContactEdit.js +20 -18
- package/lib/contact-edit/index.d.ts +1 -1
- package/lib/contact-list/ContactList.d.ts +8 -1
- package/lib/contact-list/ContactList.js +12 -9
- package/lib/contact-list/index.css +1 -1
- package/lib/contact-list/index.d.ts +1 -1
- package/lib/contact-list/index.less +1 -1
- package/lib/count-down/CountDown.d.ts +2 -2
- package/lib/count-down/CountDown.js +8 -6
- package/lib/count-down/index.d.ts +1 -2
- package/lib/coupon/Coupon.js +6 -13
- package/lib/coupon/index.css +1 -1
- package/lib/coupon/index.less +2 -1
- package/lib/coupon/utils.d.ts +3 -0
- package/lib/coupon/utils.js +20 -0
- package/lib/coupon/var.less +3 -2
- package/lib/coupon-cell/CouponCell.d.ts +25 -0
- package/lib/coupon-cell/CouponCell.js +16 -11
- package/lib/coupon-cell/index.d.ts +1 -0
- package/lib/coupon-list/CouponList.d.ts +55 -0
- package/lib/coupon-list/CouponList.js +65 -46
- package/lib/coupon-list/index.css +1 -1
- package/lib/coupon-list/index.d.ts +1 -0
- package/lib/coupon-list/index.less +3 -8
- package/lib/coupon-list/var.less +1 -1
- package/lib/datetime-picker/DatePicker.js +12 -9
- package/lib/datetime-picker/DatetimePicker.d.ts +2 -2
- package/lib/datetime-picker/DatetimePicker.js +10 -9
- package/lib/datetime-picker/TimePicker.js +12 -9
- package/lib/datetime-picker/utils.d.ts +1 -1
- package/lib/datetime-picker/utils.js +4 -4
- package/lib/dialog/Dialog.d.ts +55 -1
- package/lib/dialog/Dialog.js +27 -25
- package/lib/dialog/index.css +1 -1
- package/lib/dialog/index.d.ts +1 -0
- package/lib/dialog/var.less +1 -1
- package/lib/divider/Divider.d.ts +13 -0
- package/lib/divider/Divider.js +11 -9
- package/lib/divider/index.css +1 -1
- package/lib/divider/index.d.ts +1 -1
- package/lib/divider/var.less +1 -1
- package/lib/dropdown-item/DropdownItem.d.ts +2 -2
- package/lib/dropdown-item/DropdownItem.js +23 -9
- package/lib/dropdown-item/types.d.ts +2 -6
- package/lib/dropdown-menu/DropdownMenu.d.ts +2 -2
- package/lib/dropdown-menu/DropdownMenu.js +17 -9
- package/lib/dropdown-menu/index.css +1 -1
- package/lib/dropdown-menu/index.less +0 -8
- package/lib/dropdown-menu/types.d.ts +1 -0
- package/lib/dropdown-menu/var.less +2 -2
- package/lib/empty/Empty.d.ts +10 -0
- package/lib/empty/Empty.js +12 -9
- package/lib/empty/Network.js +22 -34
- package/lib/empty/index.css +1 -1
- package/lib/empty/index.d.ts +1 -0
- package/lib/empty/var.less +1 -1
- package/lib/field/Field.d.ts +6 -6
- package/lib/field/Field.js +60 -38
- package/lib/field/index.css +1 -1
- package/lib/field/index.d.ts +4 -4
- package/lib/field/types.d.ts +7 -6
- package/lib/field/utils.d.ts +2 -2
- package/lib/field/utils.js +8 -5
- package/lib/field/var.less +3 -3
- package/lib/form/Form.d.ts +2 -2
- package/lib/form/Form.js +8 -7
- package/lib/grid/Grid.d.ts +3 -2
- package/lib/grid/Grid.js +6 -5
- package/lib/grid/index.d.ts +1 -1
- package/lib/grid-item/GridItem.d.ts +14 -0
- package/lib/grid-item/GridItem.js +14 -12
- package/lib/grid-item/index.css +1 -1
- package/lib/grid-item/index.d.ts +1 -0
- package/lib/grid-item/var.less +1 -1
- package/lib/icon/Icon.d.ts +14 -0
- package/lib/icon/Icon.js +15 -12
- package/lib/icon/index.d.ts +1 -0
- package/lib/image/Image.d.ts +31 -2
- package/lib/image/Image.js +36 -35
- package/lib/image/index.css +1 -1
- package/lib/image/index.d.ts +2 -2
- package/lib/image/var.less +1 -1
- package/lib/image-preview/ImagePreview.d.ts +2 -2
- package/lib/image-preview/ImagePreview.js +9 -9
- package/lib/image-preview/ImagePreviewItem.js +4 -3
- package/lib/image-preview/function-call.js +5 -1
- package/lib/image-preview/index.css +1 -1
- package/lib/image-preview/index.less +0 -5
- package/lib/image-preview/var.less +0 -1
- package/lib/index-anchor/IndexAnchor.d.ts +5 -0
- package/lib/index-anchor/IndexAnchor.js +8 -6
- package/lib/index-anchor/index.css +1 -1
- package/lib/index-anchor/index.d.ts +1 -0
- package/lib/index-anchor/var.less +1 -1
- package/lib/index-bar/IndexBar.d.ts +2 -2
- package/lib/index-bar/IndexBar.js +7 -6
- package/lib/index.css +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/lazyload/index.d.ts +1 -1
- package/lib/lazyload/index.js +3 -3
- package/lib/lazyload/vue-lazyload/index.d.ts +55 -0
- package/lib/lazyload/vue-lazyload/index.js +58 -0
- package/lib/lazyload/vue-lazyload/lazy-component.js +62 -0
- package/lib/lazyload/vue-lazyload/lazy-container.js +106 -0
- package/lib/lazyload/vue-lazyload/lazy-image.js +125 -0
- package/lib/lazyload/vue-lazyload/lazy.js +520 -0
- package/lib/lazyload/vue-lazyload/listener.js +251 -0
- package/lib/lazyload/vue-lazyload/util.js +213 -0
- package/lib/list/List.d.ts +2 -2
- package/lib/list/List.js +10 -7
- package/lib/list/index.css +1 -1
- package/lib/list/var.less +1 -1
- package/lib/loading/Loading.d.ts +13 -0
- package/lib/loading/Loading.js +13 -11
- package/lib/loading/index.css +1 -1
- package/lib/loading/index.d.ts +1 -1
- package/lib/loading/var.less +1 -1
- package/lib/locale/index.js +5 -1
- package/lib/nav-bar/NavBar.d.ts +16 -0
- package/lib/nav-bar/NavBar.js +19 -17
- package/lib/nav-bar/index.css +1 -1
- package/lib/nav-bar/index.d.ts +1 -0
- package/lib/nav-bar/index.less +0 -4
- package/lib/nav-bar/var.less +1 -1
- package/lib/notice-bar/NoticeBar.d.ts +2 -2
- package/lib/notice-bar/NoticeBar.js +7 -6
- package/lib/notify/Notify.d.ts +38 -0
- package/lib/notify/Notify.js +15 -12
- package/lib/notify/index.d.ts +1 -0
- package/lib/number-keyboard/NumberKeyboard.d.ts +48 -1
- package/lib/number-keyboard/NumberKeyboard.js +29 -27
- package/lib/number-keyboard/NumberKeyboardKey.js +8 -7
- package/lib/number-keyboard/index.css +1 -1
- package/lib/number-keyboard/index.d.ts +1 -1
- package/lib/number-keyboard/index.less +0 -4
- package/lib/number-keyboard/var.less +1 -1
- package/lib/overlay/Overlay.d.ts +13 -1
- package/lib/overlay/Overlay.js +14 -12
- package/lib/overlay/index.d.ts +1 -0
- package/lib/pagination/Pagination.d.ts +31 -0
- package/lib/pagination/Pagination.js +83 -62
- package/lib/pagination/index.css +1 -1
- package/lib/pagination/index.d.ts +1 -1
- package/lib/pagination/index.less +32 -31
- package/lib/pagination/var.less +1 -1
- package/lib/password-input/PasswordInput.d.ts +21 -1
- package/lib/password-input/PasswordInput.js +15 -12
- package/lib/password-input/index.css +1 -1
- package/lib/password-input/index.d.ts +2 -1
- package/lib/password-input/var.less +3 -3
- package/lib/picker/Picker.d.ts +40 -1
- package/lib/picker/Picker.js +21 -18
- package/lib/picker/PickerColumn.js +5 -4
- package/lib/picker/index.css +1 -1
- package/lib/picker/index.less +2 -10
- package/lib/picker/var.less +9 -3
- package/lib/popover/Popover.d.ts +50 -11
- package/lib/popover/Popover.js +33 -29
- package/lib/popover/index.css +1 -1
- package/lib/popover/index.d.ts +17 -16
- package/lib/popover/types.d.ts +11 -0
- package/lib/popover/types.js +3 -0
- package/lib/popover/var.less +3 -3
- package/lib/popup/Popup.d.ts +48 -3
- package/lib/popup/Popup.js +22 -23
- package/lib/popup/index.css +1 -1
- package/lib/popup/index.d.ts +2 -3
- package/lib/popup/index.less +0 -5
- package/lib/popup/var.less +1 -2
- package/lib/progress/Progress.d.ts +2 -2
- package/lib/progress/Progress.js +4 -4
- package/lib/pull-refresh/PullRefresh.d.ts +23 -0
- package/lib/pull-refresh/PullRefresh.js +18 -16
- package/lib/pull-refresh/index.css +1 -1
- package/lib/pull-refresh/index.d.ts +1 -0
- package/lib/pull-refresh/var.less +1 -1
- package/lib/radio/Radio.d.ts +3 -1
- package/lib/radio/Radio.js +5 -4
- package/lib/radio/index.css +1 -1
- package/lib/radio/index.d.ts +1 -2
- package/lib/radio/var.less +1 -1
- package/lib/radio-group/RadioGroup.d.ts +3 -2
- package/lib/radio-group/RadioGroup.js +7 -6
- package/lib/radio-group/index.d.ts +1 -2
- package/lib/rate/Rate.d.ts +33 -0
- package/lib/rate/Rate.js +27 -22
- package/lib/rate/index.d.ts +1 -0
- package/lib/row/Row.d.ts +18 -1
- package/lib/row/Row.js +12 -10
- package/lib/row/index.d.ts +1 -1
- package/lib/search/Search.d.ts +2 -2
- package/lib/search/Search.js +17 -9
- package/lib/search/index.css +1 -1
- package/lib/search/var.less +1 -1
- package/lib/share-sheet/ShareSheet.d.ts +48 -0
- package/lib/share-sheet/ShareSheet.js +19 -16
- package/lib/share-sheet/index.css +1 -1
- package/lib/share-sheet/index.d.ts +1 -1
- package/lib/share-sheet/index.less +0 -4
- package/lib/share-sheet/var.less +3 -3
- package/lib/sidebar/Sidebar.d.ts +8 -1
- package/lib/sidebar/Sidebar.js +10 -7
- package/lib/sidebar/index.d.ts +1 -0
- package/lib/sidebar-item/SidebarItem.d.ts +12 -0
- package/lib/sidebar-item/SidebarItem.js +16 -11
- package/lib/sidebar-item/index.css +1 -1
- package/lib/sidebar-item/index.d.ts +1 -0
- package/lib/sidebar-item/var.less +2 -2
- package/lib/skeleton/Skeleton.d.ts +29 -1
- package/lib/skeleton/Skeleton.js +22 -19
- package/lib/skeleton/index.d.ts +5 -6
- package/lib/slider/Slider.d.ts +31 -3
- package/lib/slider/Slider.js +29 -25
- package/lib/slider/index.d.ts +3 -2
- package/lib/step/Step.js +4 -3
- package/lib/step/index.css +1 -1
- package/lib/step/index.less +1 -1
- package/lib/step/var.less +1 -1
- package/lib/stepper/Stepper.d.ts +53 -1
- package/lib/stepper/Stepper.js +48 -37
- package/lib/stepper/index.css +1 -1
- package/lib/stepper/index.d.ts +3 -4
- package/lib/stepper/index.less +3 -18
- package/lib/stepper/var.less +1 -2
- package/lib/steps/Steps.d.ts +3 -2
- package/lib/steps/Steps.js +7 -6
- package/lib/steps/index.css +1 -1
- package/lib/steps/index.d.ts +5 -6
- package/lib/steps/var.less +1 -1
- package/lib/sticky/Sticky.d.ts +18 -1
- package/lib/sticky/Sticky.js +13 -11
- package/lib/sticky/index.d.ts +1 -1
- package/lib/style/base.css +1 -1
- package/lib/style/base.less +4 -0
- package/lib/style/css-variables.css +1 -1
- package/lib/style/css-variables.less +3 -1
- package/lib/style/mixins/hairline.less +3 -3
- package/lib/style/var.less +5 -3
- package/lib/submit-bar/SubmitBar.d.ts +33 -3
- package/lib/submit-bar/SubmitBar.js +23 -20
- package/lib/submit-bar/index.css +1 -1
- package/lib/submit-bar/index.d.ts +3 -2
- package/lib/submit-bar/var.less +3 -3
- package/lib/swipe/Swipe.d.ts +2 -2
- package/lib/swipe/Swipe.js +30 -16
- package/lib/swipe/types.d.ts +1 -3
- package/lib/swipe-cell/SwipeCell.d.ts +2 -2
- package/lib/swipe-cell/SwipeCell.js +12 -7
- package/lib/swipe-item/SwipeItem.js +4 -3
- package/lib/switch/Switch.d.ts +18 -0
- package/lib/switch/Switch.js +23 -19
- package/lib/switch/index.css +1 -1
- package/lib/switch/index.d.ts +1 -0
- package/lib/switch/index.less +2 -0
- package/lib/switch/var.less +1 -1
- package/lib/tab/Tab.d.ts +19 -1
- package/lib/tab/Tab.js +35 -18
- package/lib/tab/index.css +1 -1
- package/lib/tab/index.d.ts +1 -0
- package/lib/tab/index.less +1 -1
- package/lib/tabbar/Tabbar.d.ts +4 -3
- package/lib/tabbar/Tabbar.js +17 -16
- package/lib/tabbar/index.css +1 -1
- package/lib/tabbar/index.d.ts +1 -0
- package/lib/tabbar/var.less +1 -1
- package/lib/tabbar-item/TabbarItem.d.ts +13 -0
- package/lib/tabbar-item/TabbarItem.js +24 -15
- package/lib/tabbar-item/index.css +1 -1
- package/lib/tabbar-item/index.d.ts +1 -0
- package/lib/tabbar-item/var.less +1 -1
- package/lib/tabs/Tabs.d.ts +2 -2
- package/lib/tabs/Tabs.js +29 -16
- package/lib/tabs/TabsContent.js +5 -4
- package/lib/tabs/TabsTitle.d.ts +6 -0
- package/lib/tabs/TabsTitle.js +7 -1
- package/lib/tabs/index.css +1 -1
- package/lib/tabs/types.d.ts +1 -0
- package/lib/tabs/var.less +2 -2
- package/lib/tag/Tag.d.ts +23 -3
- package/lib/tag/Tag.js +18 -15
- package/lib/tag/index.css +1 -1
- package/lib/tag/index.d.ts +3 -2
- package/lib/tag/var.less +1 -1
- package/lib/toast/Toast.d.ts +33 -1
- package/lib/toast/Toast.js +26 -24
- package/lib/toast/function-call.js +10 -2
- package/lib/toast/index.d.ts +1 -0
- package/lib/tree-select/TreeSelect.d.ts +28 -1
- package/lib/tree-select/TreeSelect.js +18 -15
- package/lib/tree-select/index.css +1 -1
- package/lib/tree-select/index.d.ts +1 -1
- package/lib/tree-select/var.less +1 -1
- package/lib/uploader/Uploader.d.ts +2 -2
- package/lib/uploader/Uploader.js +17 -10
- package/lib/uploader/UploaderPreviewItem.js +9 -4
- package/lib/uploader/index.css +1 -1
- package/lib/uploader/utils.d.ts +2 -2
- package/lib/uploader/utils.js +3 -2
- package/lib/uploader/var.less +1 -1
- package/lib/utils/constant.d.ts +1 -0
- package/lib/utils/constant.js +3 -1
- package/lib/utils/create.d.ts +2 -2
- package/lib/utils/create.js +6 -1
- package/lib/utils/deep-assign.d.ts +1 -1
- package/lib/utils/deep-assign.js +1 -1
- package/lib/utils/deep-clone.js +1 -1
- package/lib/utils/dom.d.ts +1 -1
- package/lib/utils/dom.js +9 -9
- package/lib/utils/format.js +21 -7
- package/lib/utils/interceptor.d.ts +2 -2
- package/lib/utils/interceptor.js +7 -5
- package/lib/vant.es.js +3584 -3234
- package/lib/vant.es.min.js +3584 -3234
- package/lib/vant.js +3583 -3233
- package/lib/vant.min.js +1 -1
- package/lib/vue-tsx-shim.d.ts +1 -0
- package/package.json +10 -7
- package/vetur/attributes.json +92 -92
- package/vetur/tags.json +26 -26
- package/vetur/web-types.json +358 -350
- package/es/composables/use-link-field.d.ts +0 -0
- package/es/composables/use-link-field.js +0 -0
- package/lib/composables/use-link-field.d.ts +0 -0
- package/lib/composables/use-link-field.js +0 -1
package/vetur/web-types.json
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
|
3
3
|
"framework": "vue",
|
4
4
|
"name": "vant",
|
5
|
-
"version": "3.
|
5
|
+
"version": "3.3.1",
|
6
6
|
"contributions": {
|
7
7
|
"html": {
|
8
8
|
"tags": [
|
@@ -244,76 +244,72 @@
|
|
244
244
|
]
|
245
245
|
},
|
246
246
|
{
|
247
|
-
"name": "van-
|
247
|
+
"name": "van-address-edit",
|
248
248
|
"slots": [
|
249
249
|
{
|
250
250
|
"name": "default",
|
251
|
-
"description": "
|
252
|
-
},
|
253
|
-
{
|
254
|
-
"name": "description",
|
255
|
-
"description": "自定义描述文案"
|
256
|
-
},
|
257
|
-
{
|
258
|
-
"name": "cancel",
|
259
|
-
"description": "自定义取消按钮内容"
|
251
|
+
"description": "在邮政编码下方插入内容"
|
260
252
|
}
|
261
253
|
],
|
262
254
|
"events": [
|
263
255
|
{
|
264
|
-
"name": "
|
265
|
-
"description": "
|
256
|
+
"name": "save",
|
257
|
+
"description": "点击保存按钮时触发"
|
266
258
|
},
|
267
259
|
{
|
268
|
-
"name": "
|
269
|
-
"description": "
|
260
|
+
"name": "focus",
|
261
|
+
"description": "输入框聚焦时触发"
|
270
262
|
},
|
271
263
|
{
|
272
|
-
"name": "
|
273
|
-
"description": "
|
264
|
+
"name": "delete",
|
265
|
+
"description": "确认删除地址时触发"
|
274
266
|
},
|
275
267
|
{
|
276
|
-
"name": "
|
277
|
-
"description": "
|
268
|
+
"name": "select-search",
|
269
|
+
"description": "选中搜索结果时触发"
|
278
270
|
},
|
279
271
|
{
|
280
|
-
"name": "
|
281
|
-
"description": "
|
272
|
+
"name": "click-area",
|
273
|
+
"description": "点击收件地区时触发"
|
282
274
|
},
|
283
275
|
{
|
284
|
-
"name": "
|
285
|
-
"description": "
|
276
|
+
"name": "change-area",
|
277
|
+
"description": "修改收件地区时触发"
|
286
278
|
},
|
287
279
|
{
|
288
|
-
"name": "
|
289
|
-
"description": "
|
280
|
+
"name": "change-detail",
|
281
|
+
"description": "修改详细地址时触发"
|
282
|
+
},
|
283
|
+
{
|
284
|
+
"name": "change-default",
|
285
|
+
"description": "切换是否使用默认地址时触发"
|
290
286
|
}
|
291
287
|
],
|
292
288
|
"attributes": [
|
293
289
|
{
|
294
|
-
"name": "
|
295
|
-
"default": "
|
296
|
-
"description": "
|
290
|
+
"name": "area-list",
|
291
|
+
"default": "-",
|
292
|
+
"description": "地区列表",
|
297
293
|
"options": [],
|
298
294
|
"value": {
|
299
|
-
"type": "
|
295
|
+
"type": "object",
|
300
296
|
"kind": "expression"
|
301
297
|
}
|
302
298
|
},
|
303
299
|
{
|
304
|
-
"name": "
|
300
|
+
"name": "area-columns-placeholder",
|
305
301
|
"default": "`[]`",
|
306
|
-
"description": "
|
302
|
+
"description": "地区选择列占位提示文字",
|
307
303
|
"options": [],
|
308
304
|
"value": {
|
309
|
-
"type": "
|
305
|
+
"type": "string[]",
|
310
306
|
"kind": "expression"
|
311
307
|
}
|
312
308
|
},
|
313
309
|
{
|
314
|
-
"name": "
|
315
|
-
"default": "
|
316
|
-
"description": "
|
310
|
+
"name": "area-placeholder",
|
311
|
+
"default": "`选择省 / 市 / 区`",
|
312
|
+
"description": "地区输入框占位提示文字",
|
317
313
|
"options": [],
|
318
314
|
"value": {
|
319
315
|
"type": "string",
|
@@ -321,29 +317,29 @@
|
|
321
317
|
}
|
322
318
|
},
|
323
319
|
{
|
324
|
-
"name": "
|
325
|
-
"default": "
|
326
|
-
"description": "
|
320
|
+
"name": "address-info",
|
321
|
+
"default": "`{}`",
|
322
|
+
"description": "地址信息初始值",
|
327
323
|
"options": [],
|
328
324
|
"value": {
|
329
|
-
"type": "
|
325
|
+
"type": "AddressEditInfo",
|
330
326
|
"kind": "expression"
|
331
327
|
}
|
332
328
|
},
|
333
329
|
{
|
334
|
-
"name": "
|
335
|
-
"default": "
|
336
|
-
"description": "
|
330
|
+
"name": "search-result",
|
331
|
+
"default": "`[]`",
|
332
|
+
"description": "详细地址搜索结果",
|
337
333
|
"options": [],
|
338
334
|
"value": {
|
339
|
-
"type": "
|
335
|
+
"type": "AddressEditSearchItem[]",
|
340
336
|
"kind": "expression"
|
341
337
|
}
|
342
338
|
},
|
343
339
|
{
|
344
|
-
"name": "
|
345
|
-
"default": "`
|
346
|
-
"description": "
|
340
|
+
"name": "show-postal",
|
341
|
+
"default": "`false`",
|
342
|
+
"description": "是否显示邮政编码",
|
347
343
|
"options": [],
|
348
344
|
"value": {
|
349
345
|
"type": "boolean",
|
@@ -351,29 +347,39 @@
|
|
351
347
|
}
|
352
348
|
},
|
353
349
|
{
|
354
|
-
"name": "
|
355
|
-
"default": "`
|
356
|
-
"description": "
|
350
|
+
"name": "show-delete",
|
351
|
+
"default": "`false`",
|
352
|
+
"description": "是否显示删除按钮",
|
357
353
|
"options": [],
|
358
354
|
"value": {
|
359
|
-
"type": "
|
355
|
+
"type": "boolean",
|
360
356
|
"kind": "expression"
|
361
357
|
}
|
362
358
|
},
|
363
359
|
{
|
364
|
-
"name": "
|
365
|
-
"default": "`
|
366
|
-
"description": "
|
360
|
+
"name": "show-set-default",
|
361
|
+
"default": "`false`",
|
362
|
+
"description": "是否显示默认地址栏",
|
367
363
|
"options": [],
|
368
364
|
"value": {
|
369
|
-
"type": "
|
365
|
+
"type": "boolean",
|
370
366
|
"kind": "expression"
|
371
367
|
}
|
372
368
|
},
|
373
369
|
{
|
374
|
-
"name": "
|
370
|
+
"name": "show-search-result",
|
371
|
+
"default": "`false`",
|
372
|
+
"description": "是否显示搜索结果",
|
373
|
+
"options": [],
|
374
|
+
"value": {
|
375
|
+
"type": "boolean",
|
376
|
+
"kind": "expression"
|
377
|
+
}
|
378
|
+
},
|
379
|
+
{
|
380
|
+
"name": "show-area",
|
375
381
|
"default": "`true`",
|
376
|
-
"description": "
|
382
|
+
"description": "是否显示地区",
|
377
383
|
"options": [],
|
378
384
|
"value": {
|
379
385
|
"type": "boolean",
|
@@ -381,9 +387,9 @@
|
|
381
387
|
}
|
382
388
|
},
|
383
389
|
{
|
384
|
-
"name": "
|
390
|
+
"name": "show-detail",
|
385
391
|
"default": "`true`",
|
386
|
-
"description": "
|
392
|
+
"description": "是否显示详细地址",
|
387
393
|
"options": [],
|
388
394
|
"value": {
|
389
395
|
"type": "boolean",
|
@@ -391,61 +397,59 @@
|
|
391
397
|
}
|
392
398
|
},
|
393
399
|
{
|
394
|
-
"name": "
|
395
|
-
"default": "
|
396
|
-
"description": "
|
397
|
-
"options": [
|
398
|
-
"-"
|
399
|
-
],
|
400
|
+
"name": "disable-area",
|
401
|
+
"default": "`false`",
|
402
|
+
"description": "是否禁用地区选择",
|
403
|
+
"options": [],
|
400
404
|
"value": {
|
401
|
-
"type": "
|
405
|
+
"type": "boolean",
|
402
406
|
"kind": "expression"
|
403
407
|
}
|
404
408
|
},
|
405
409
|
{
|
406
|
-
"name": "
|
407
|
-
"default": "
|
408
|
-
"description": "
|
410
|
+
"name": "save-button-text",
|
411
|
+
"default": "`保存`",
|
412
|
+
"description": "保存按钮文字",
|
409
413
|
"options": [],
|
410
414
|
"value": {
|
411
|
-
"type": "
|
415
|
+
"type": "string",
|
412
416
|
"kind": "expression"
|
413
417
|
}
|
414
418
|
},
|
415
419
|
{
|
416
|
-
"name": "
|
417
|
-
"default": "
|
418
|
-
"description": "
|
420
|
+
"name": "delete-button-text",
|
421
|
+
"default": "`删除`",
|
422
|
+
"description": "删除按钮文字",
|
419
423
|
"options": [],
|
420
424
|
"value": {
|
421
|
-
"type": "
|
425
|
+
"type": "string",
|
422
426
|
"kind": "expression"
|
423
427
|
}
|
424
428
|
},
|
425
429
|
{
|
426
|
-
"name": "
|
427
|
-
"default": "`
|
428
|
-
"description": "
|
430
|
+
"name": "detail-rows",
|
431
|
+
"default": "`1`",
|
432
|
+
"description": "详细地址输入框行数",
|
429
433
|
"options": [],
|
430
434
|
"value": {
|
431
|
-
"type": "
|
435
|
+
"type": "number | string",
|
432
436
|
"kind": "expression"
|
433
437
|
}
|
434
438
|
},
|
435
439
|
{
|
436
|
-
"name": "
|
437
|
-
"default": "`
|
438
|
-
"description": "
|
440
|
+
"name": "detail-maxlength",
|
441
|
+
"default": "`200`",
|
442
|
+
"description": "详细地址最大长度",
|
439
443
|
"options": [],
|
440
444
|
"value": {
|
441
|
-
"type": "
|
445
|
+
"type": "number | string",
|
442
446
|
"kind": "expression"
|
443
447
|
}
|
444
448
|
},
|
445
449
|
{
|
446
|
-
"name": "
|
450
|
+
"name": "is-saving",
|
447
451
|
"default": "`false`",
|
448
|
-
"description": "
|
452
|
+
"description": "是否显示保存按钮加载动画",
|
449
453
|
"options": [],
|
450
454
|
"value": {
|
451
455
|
"type": "boolean",
|
@@ -453,9 +457,9 @@
|
|
453
457
|
}
|
454
458
|
},
|
455
459
|
{
|
456
|
-
"name": "
|
457
|
-
"default": "`
|
458
|
-
"description": "
|
460
|
+
"name": "is-deleting",
|
461
|
+
"default": "`false`",
|
462
|
+
"description": "是否显示删除按钮加载动画",
|
459
463
|
"options": [],
|
460
464
|
"value": {
|
461
465
|
"type": "boolean",
|
@@ -463,118 +467,128 @@
|
|
463
467
|
}
|
464
468
|
},
|
465
469
|
{
|
466
|
-
"name": "
|
467
|
-
"default": "
|
468
|
-
"description": "
|
470
|
+
"name": "tel-validator",
|
471
|
+
"default": "-",
|
472
|
+
"description": "手机号格式校验函数",
|
469
473
|
"options": [],
|
470
474
|
"value": {
|
471
|
-
"type": "boolean",
|
475
|
+
"type": "string => boolean",
|
472
476
|
"kind": "expression"
|
473
477
|
}
|
474
478
|
},
|
475
479
|
{
|
476
|
-
"name": "
|
480
|
+
"name": "tel-maxlength",
|
477
481
|
"default": "-",
|
478
|
-
"description": "
|
482
|
+
"description": "手机号最大长度",
|
479
483
|
"options": [],
|
480
484
|
"value": {
|
481
|
-
"type": "
|
485
|
+
"type": "number | string",
|
482
486
|
"kind": "expression"
|
483
487
|
}
|
484
488
|
},
|
485
489
|
{
|
486
|
-
"name": "
|
490
|
+
"name": "postal-validator",
|
487
491
|
"default": "-",
|
488
|
-
"description": "
|
492
|
+
"description": "邮政编码格式校验函数",
|
489
493
|
"options": [],
|
490
494
|
"value": {
|
491
|
-
"type": "
|
495
|
+
"type": "string => boolean",
|
496
|
+
"kind": "expression"
|
497
|
+
}
|
498
|
+
},
|
499
|
+
{
|
500
|
+
"name": "validator",
|
501
|
+
"default": "-",
|
502
|
+
"description": "自定义校验函数",
|
503
|
+
"options": [],
|
504
|
+
"value": {
|
505
|
+
"type": "(key, val) => string",
|
492
506
|
"kind": "expression"
|
493
507
|
}
|
494
508
|
}
|
495
509
|
]
|
496
510
|
},
|
497
511
|
{
|
498
|
-
"name": "van-
|
512
|
+
"name": "van-action-sheet",
|
499
513
|
"slots": [
|
500
514
|
{
|
501
515
|
"name": "default",
|
502
|
-
"description": "
|
503
|
-
},
|
504
|
-
{
|
505
|
-
"name": "top",
|
506
|
-
"description": "在顶部插入内容"
|
516
|
+
"description": "自定义面板的展示内容"
|
507
517
|
},
|
508
518
|
{
|
509
|
-
"name": "
|
510
|
-
"description": "
|
519
|
+
"name": "description",
|
520
|
+
"description": "自定义描述文案"
|
511
521
|
},
|
512
522
|
{
|
513
|
-
"name": "
|
514
|
-
"description": "
|
523
|
+
"name": "cancel",
|
524
|
+
"description": "自定义取消按钮内容"
|
515
525
|
}
|
516
526
|
],
|
517
527
|
"events": [
|
518
528
|
{
|
519
|
-
"name": "
|
520
|
-
"description": "
|
529
|
+
"name": "select",
|
530
|
+
"description": "点击选项时触发,禁用或加载状态下不会触发"
|
521
531
|
},
|
522
532
|
{
|
523
|
-
"name": "
|
524
|
-
"description": "
|
533
|
+
"name": "cancel",
|
534
|
+
"description": "点击取消按钮时触发"
|
525
535
|
},
|
526
536
|
{
|
527
|
-
"name": "
|
528
|
-
"description": "
|
537
|
+
"name": "open",
|
538
|
+
"description": "打开面板时触发"
|
529
539
|
},
|
530
540
|
{
|
531
|
-
"name": "
|
532
|
-
"description": "
|
541
|
+
"name": "close",
|
542
|
+
"description": "关闭面板时触发"
|
533
543
|
},
|
534
544
|
{
|
535
|
-
"name": "
|
536
|
-
"description": "
|
545
|
+
"name": "opened",
|
546
|
+
"description": "打开面板且动画结束后触发"
|
537
547
|
},
|
538
548
|
{
|
539
|
-
"name": "
|
540
|
-
"description": "
|
549
|
+
"name": "closed",
|
550
|
+
"description": "关闭面板且动画结束后触发"
|
551
|
+
},
|
552
|
+
{
|
553
|
+
"name": "click-overlay",
|
554
|
+
"description": "点击遮罩层时触发"
|
541
555
|
}
|
542
556
|
],
|
543
557
|
"attributes": [
|
544
558
|
{
|
545
|
-
"name": "v-model",
|
546
|
-
"default": "
|
547
|
-
"description": "
|
559
|
+
"name": "v-model:show",
|
560
|
+
"default": "`false`",
|
561
|
+
"description": "是否显示动作面板",
|
548
562
|
"options": [],
|
549
563
|
"value": {
|
550
|
-
"type": "
|
564
|
+
"type": "boolean",
|
551
565
|
"kind": "expression"
|
552
566
|
}
|
553
567
|
},
|
554
568
|
{
|
555
|
-
"name": "
|
569
|
+
"name": "actions",
|
556
570
|
"default": "`[]`",
|
557
|
-
"description": "
|
571
|
+
"description": "面板选项列表",
|
558
572
|
"options": [],
|
559
573
|
"value": {
|
560
|
-
"type": "
|
574
|
+
"type": "ActionSheetAction[]",
|
561
575
|
"kind": "expression"
|
562
576
|
}
|
563
577
|
},
|
564
578
|
{
|
565
|
-
"name": "
|
566
|
-
"default": "
|
567
|
-
"description": "
|
579
|
+
"name": "title",
|
580
|
+
"default": "-",
|
581
|
+
"description": "顶部标题",
|
568
582
|
"options": [],
|
569
583
|
"value": {
|
570
|
-
"type": "
|
584
|
+
"type": "string",
|
571
585
|
"kind": "expression"
|
572
586
|
}
|
573
587
|
},
|
574
588
|
{
|
575
|
-
"name": "
|
589
|
+
"name": "cancel-text",
|
576
590
|
"default": "-",
|
577
|
-
"description": "
|
591
|
+
"description": "取消按钮文字",
|
578
592
|
"options": [],
|
579
593
|
"value": {
|
580
594
|
"type": "string",
|
@@ -582,124 +596,81 @@
|
|
582
596
|
}
|
583
597
|
},
|
584
598
|
{
|
585
|
-
"name": "
|
586
|
-
"default": "
|
587
|
-
"description": "
|
599
|
+
"name": "description",
|
600
|
+
"default": "-",
|
601
|
+
"description": "选项上方的描述信息",
|
588
602
|
"options": [],
|
589
603
|
"value": {
|
590
|
-
"type": "
|
604
|
+
"type": "string",
|
591
605
|
"kind": "expression"
|
592
606
|
}
|
593
607
|
},
|
594
608
|
{
|
595
|
-
"name": "
|
596
|
-
"default": "
|
597
|
-
"description": "
|
609
|
+
"name": "closeable",
|
610
|
+
"default": "`true`",
|
611
|
+
"description": "是否显示关闭图标",
|
598
612
|
"options": [],
|
599
613
|
"value": {
|
600
|
-
"type": "
|
614
|
+
"type": "boolean",
|
601
615
|
"kind": "expression"
|
602
616
|
}
|
603
617
|
},
|
604
618
|
{
|
605
|
-
"name": "
|
606
|
-
"default": "
|
607
|
-
"description": "
|
619
|
+
"name": "close-icon",
|
620
|
+
"default": "`cross`",
|
621
|
+
"description": "关闭[图标名称](#/zh-CN/icon)或图片链接",
|
608
622
|
"options": [],
|
609
623
|
"value": {
|
610
624
|
"type": "string",
|
611
625
|
"kind": "expression"
|
612
626
|
}
|
613
|
-
}
|
614
|
-
]
|
615
|
-
},
|
616
|
-
{
|
617
|
-
"name": "van-area",
|
618
|
-
"slots": [
|
619
|
-
{
|
620
|
-
"name": "toolbar",
|
621
|
-
"description": "自定义整个顶部栏的内容"
|
622
|
-
},
|
623
|
-
{
|
624
|
-
"name": "title",
|
625
|
-
"description": "自定义标题内容"
|
626
627
|
},
|
627
628
|
{
|
628
|
-
"name": "
|
629
|
-
"
|
630
|
-
|
631
|
-
{
|
632
|
-
"name": "cancel",
|
633
|
-
"description": "自定义取消按钮内容"
|
634
|
-
},
|
635
|
-
{
|
636
|
-
"name": "columns-top",
|
637
|
-
"description": "自定义选项上方内容"
|
638
|
-
},
|
639
|
-
{
|
640
|
-
"name": "columns-bottom",
|
641
|
-
"description": "自定义选项下方内容"
|
642
|
-
}
|
643
|
-
],
|
644
|
-
"events": [
|
645
|
-
{
|
646
|
-
"name": "confirm",
|
647
|
-
"description": "点击完成按钮时触发"
|
648
|
-
},
|
649
|
-
{
|
650
|
-
"name": "cancel",
|
651
|
-
"description": "点击取消按钮时触发"
|
652
|
-
},
|
653
|
-
{
|
654
|
-
"name": "change",
|
655
|
-
"description": "选项改变时触发"
|
656
|
-
}
|
657
|
-
],
|
658
|
-
"attributes": [
|
659
|
-
{
|
660
|
-
"name": "value",
|
661
|
-
"default": "-",
|
662
|
-
"description": "当前选中项对应的地区码",
|
629
|
+
"name": "duration",
|
630
|
+
"default": "`0.3`",
|
631
|
+
"description": "动画时长,单位秒,设置为 0 可以禁用动画",
|
663
632
|
"options": [],
|
664
633
|
"value": {
|
665
|
-
"type": "string",
|
634
|
+
"type": "number | string",
|
666
635
|
"kind": "expression"
|
667
636
|
}
|
668
637
|
},
|
669
638
|
{
|
670
|
-
"name": "
|
671
|
-
"default": "
|
672
|
-
"description": "
|
639
|
+
"name": "round",
|
640
|
+
"default": "`true`",
|
641
|
+
"description": "是否显示圆角",
|
673
642
|
"options": [],
|
674
643
|
"value": {
|
675
|
-
"type": "
|
644
|
+
"type": "boolean",
|
676
645
|
"kind": "expression"
|
677
646
|
}
|
678
647
|
},
|
679
648
|
{
|
680
|
-
"name": "
|
681
|
-
"default": "
|
682
|
-
"description": "
|
649
|
+
"name": "overlay",
|
650
|
+
"default": "`true`",
|
651
|
+
"description": "是否显示遮罩层",
|
683
652
|
"options": [],
|
684
653
|
"value": {
|
685
|
-
"type": "
|
654
|
+
"type": "boolean",
|
686
655
|
"kind": "expression"
|
687
656
|
}
|
688
657
|
},
|
689
658
|
{
|
690
|
-
"name": "
|
691
|
-
"default": "
|
692
|
-
"description": "
|
693
|
-
"options": [
|
659
|
+
"name": "overlay-class",
|
660
|
+
"default": "object_",
|
661
|
+
"description": "自定义遮罩层类名",
|
662
|
+
"options": [
|
663
|
+
"-"
|
664
|
+
],
|
694
665
|
"value": {
|
695
|
-
"type": "string",
|
666
|
+
"type": "string | Array \\",
|
696
667
|
"kind": "expression"
|
697
668
|
}
|
698
669
|
},
|
699
670
|
{
|
700
|
-
"name": "
|
671
|
+
"name": "overlay-style",
|
701
672
|
"default": "-",
|
702
|
-
"description": "
|
673
|
+
"description": "自定义遮罩层样式",
|
703
674
|
"options": [],
|
704
675
|
"value": {
|
705
676
|
"type": "object",
|
@@ -707,19 +678,19 @@
|
|
707
678
|
}
|
708
679
|
},
|
709
680
|
{
|
710
|
-
"name": "
|
711
|
-
"default": "`
|
712
|
-
"description": "
|
681
|
+
"name": "lock-scroll",
|
682
|
+
"default": "`true`",
|
683
|
+
"description": "是否锁定背景滚动",
|
713
684
|
"options": [],
|
714
685
|
"value": {
|
715
|
-
"type": "
|
686
|
+
"type": "boolean",
|
716
687
|
"kind": "expression"
|
717
688
|
}
|
718
689
|
},
|
719
690
|
{
|
720
|
-
"name": "
|
721
|
-
"default": "`
|
722
|
-
"description": "
|
691
|
+
"name": "lazy-render",
|
692
|
+
"default": "`true`",
|
693
|
+
"description": "是否在显示弹层时才渲染节点",
|
723
694
|
"options": [],
|
724
695
|
"value": {
|
725
696
|
"type": "boolean",
|
@@ -727,9 +698,9 @@
|
|
727
698
|
}
|
728
699
|
},
|
729
700
|
{
|
730
|
-
"name": "
|
731
|
-
"default": "`
|
732
|
-
"description": "
|
701
|
+
"name": "close-on-popstate",
|
702
|
+
"default": "`true`",
|
703
|
+
"description": "是否在页面回退时自动关闭",
|
733
704
|
"options": [],
|
734
705
|
"value": {
|
735
706
|
"type": "boolean",
|
@@ -737,224 +708,253 @@
|
|
737
708
|
}
|
738
709
|
},
|
739
710
|
{
|
740
|
-
"name": "
|
741
|
-
"default": "`
|
742
|
-
"description": "
|
711
|
+
"name": "close-on-click-action",
|
712
|
+
"default": "`false`",
|
713
|
+
"description": "是否在点击选项后关闭",
|
743
714
|
"options": [],
|
744
715
|
"value": {
|
745
|
-
"type": "
|
716
|
+
"type": "boolean",
|
746
717
|
"kind": "expression"
|
747
718
|
}
|
748
719
|
},
|
749
720
|
{
|
750
|
-
"name": "
|
751
|
-
"default": "`
|
752
|
-
"description": "
|
721
|
+
"name": "close-on-click-overlay",
|
722
|
+
"default": "`true`",
|
723
|
+
"description": "是否在点击遮罩层后关闭",
|
753
724
|
"options": [],
|
754
725
|
"value": {
|
755
|
-
"type": "
|
726
|
+
"type": "boolean",
|
756
727
|
"kind": "expression"
|
757
728
|
}
|
758
729
|
},
|
759
730
|
{
|
760
|
-
"name": "
|
761
|
-
"default": "`
|
762
|
-
"description": "
|
731
|
+
"name": "safe-area-inset-bottom",
|
732
|
+
"default": "`true`",
|
733
|
+
"description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei)",
|
763
734
|
"options": [],
|
764
735
|
"value": {
|
765
|
-
"type": "
|
736
|
+
"type": "boolean",
|
766
737
|
"kind": "expression"
|
767
738
|
}
|
768
739
|
},
|
769
740
|
{
|
770
|
-
"name": "
|
771
|
-
"default": "
|
772
|
-
"description": "
|
741
|
+
"name": "teleport",
|
742
|
+
"default": "-",
|
743
|
+
"description": "指定挂载的节点,等同于 Teleport 组件的 [to 属性](https://v3.cn.vuejs.org/api/built-in-components.html#teleport)",
|
773
744
|
"options": [],
|
774
745
|
"value": {
|
775
|
-
"type": "
|
746
|
+
"type": "string | Element",
|
776
747
|
"kind": "expression"
|
777
748
|
}
|
778
749
|
},
|
779
750
|
{
|
780
|
-
"name": "
|
751
|
+
"name": "before-close",
|
781
752
|
"default": "-",
|
782
|
-
"description": "
|
753
|
+
"description": "关闭前的回调函数,返回 `false` 可阻止关闭,支持返回 Promise",
|
783
754
|
"options": [],
|
784
755
|
"value": {
|
785
|
-
"type": "() => boolean",
|
756
|
+
"type": "(action: string) => boolean | Promise\\<boolean\\>",
|
786
757
|
"kind": "expression"
|
787
758
|
}
|
788
759
|
}
|
789
760
|
]
|
790
761
|
},
|
791
762
|
{
|
792
|
-
"name": "van-address-
|
763
|
+
"name": "van-address-list",
|
793
764
|
"slots": [
|
794
765
|
{
|
795
766
|
"name": "default",
|
796
|
-
"description": "
|
797
|
-
}
|
798
|
-
],
|
799
|
-
"events": [
|
767
|
+
"description": "在列表下方插入内容"
|
768
|
+
},
|
800
769
|
{
|
801
|
-
"name": "
|
802
|
-
"description": "
|
770
|
+
"name": "top",
|
771
|
+
"description": "在顶部插入内容"
|
803
772
|
},
|
804
773
|
{
|
805
|
-
"name": "
|
806
|
-
"description": "
|
774
|
+
"name": "item-bottom",
|
775
|
+
"description": "在列表项底部插入内容"
|
807
776
|
},
|
808
777
|
{
|
809
|
-
"name": "
|
810
|
-
"description": "
|
778
|
+
"name": "tag",
|
779
|
+
"description": "自定义列表项标签内容"
|
780
|
+
}
|
781
|
+
],
|
782
|
+
"events": [
|
783
|
+
{
|
784
|
+
"name": "add",
|
785
|
+
"description": "点击新增按钮时触发"
|
811
786
|
},
|
812
787
|
{
|
813
|
-
"name": "
|
814
|
-
"description": "
|
788
|
+
"name": "edit",
|
789
|
+
"description": "点击编辑按钮时触发"
|
815
790
|
},
|
816
791
|
{
|
817
|
-
"name": "
|
818
|
-
"description": "
|
792
|
+
"name": "select",
|
793
|
+
"description": "切换选中的地址时触发"
|
819
794
|
},
|
820
795
|
{
|
821
|
-
"name": "
|
822
|
-
"description": "
|
796
|
+
"name": "edit-disabled",
|
797
|
+
"description": "编辑不可配送的地址时触发"
|
823
798
|
},
|
824
799
|
{
|
825
|
-
"name": "
|
826
|
-
"description": "
|
800
|
+
"name": "select-disabled",
|
801
|
+
"description": "选中不可配送的地址时触发"
|
827
802
|
},
|
828
803
|
{
|
829
|
-
"name": "
|
830
|
-
"description": "
|
804
|
+
"name": "click-item",
|
805
|
+
"description": "点击任意地址时触发"
|
831
806
|
}
|
832
807
|
],
|
833
808
|
"attributes": [
|
834
809
|
{
|
835
|
-
"name": "
|
810
|
+
"name": "v-model",
|
836
811
|
"default": "-",
|
837
|
-
"description": "
|
812
|
+
"description": "当前选中地址的 id",
|
838
813
|
"options": [],
|
839
814
|
"value": {
|
840
|
-
"type": "
|
815
|
+
"type": "string",
|
841
816
|
"kind": "expression"
|
842
817
|
}
|
843
818
|
},
|
844
819
|
{
|
845
|
-
"name": "
|
820
|
+
"name": "list",
|
846
821
|
"default": "`[]`",
|
847
|
-
"description": "
|
822
|
+
"description": "地址列表",
|
848
823
|
"options": [],
|
849
824
|
"value": {
|
850
|
-
"type": "
|
825
|
+
"type": "AddressListAddress[]",
|
851
826
|
"kind": "expression"
|
852
827
|
}
|
853
828
|
},
|
854
829
|
{
|
855
|
-
"name": "
|
856
|
-
"default": "
|
857
|
-
"description": "
|
830
|
+
"name": "disabled-list",
|
831
|
+
"default": "`[]`",
|
832
|
+
"description": "不可配送地址列表",
|
858
833
|
"options": [],
|
859
834
|
"value": {
|
860
|
-
"type": "
|
835
|
+
"type": "AddressListAddress[]",
|
861
836
|
"kind": "expression"
|
862
837
|
}
|
863
838
|
},
|
864
839
|
{
|
865
|
-
"name": "
|
866
|
-
"default": "
|
867
|
-
"description": "
|
840
|
+
"name": "disabled-text",
|
841
|
+
"default": "-",
|
842
|
+
"description": "不可配送提示文案",
|
868
843
|
"options": [],
|
869
844
|
"value": {
|
870
|
-
"type": "
|
845
|
+
"type": "string",
|
871
846
|
"kind": "expression"
|
872
847
|
}
|
873
848
|
},
|
874
849
|
{
|
875
|
-
"name": "
|
876
|
-
"default": "`
|
877
|
-
"description": "
|
850
|
+
"name": "switchable",
|
851
|
+
"default": "`true`",
|
852
|
+
"description": "是否允许切换地址",
|
878
853
|
"options": [],
|
879
854
|
"value": {
|
880
|
-
"type": "
|
855
|
+
"type": "boolean",
|
881
856
|
"kind": "expression"
|
882
857
|
}
|
883
858
|
},
|
884
859
|
{
|
885
|
-
"name": "
|
886
|
-
"default": "
|
887
|
-
"description": "
|
860
|
+
"name": "add-button-text",
|
861
|
+
"default": "`新增地址`",
|
862
|
+
"description": "底部按钮文字",
|
888
863
|
"options": [],
|
889
864
|
"value": {
|
890
|
-
"type": "
|
865
|
+
"type": "string",
|
891
866
|
"kind": "expression"
|
892
867
|
}
|
893
868
|
},
|
894
869
|
{
|
895
|
-
"name": "
|
896
|
-
"default": "
|
897
|
-
"description": "
|
870
|
+
"name": "default-tag-text",
|
871
|
+
"default": "-",
|
872
|
+
"description": "默认地址标签文字",
|
898
873
|
"options": [],
|
899
874
|
"value": {
|
900
|
-
"type": "
|
875
|
+
"type": "string",
|
901
876
|
"kind": "expression"
|
902
877
|
}
|
878
|
+
}
|
879
|
+
]
|
880
|
+
},
|
881
|
+
{
|
882
|
+
"name": "van-area",
|
883
|
+
"slots": [
|
884
|
+
{
|
885
|
+
"name": "toolbar",
|
886
|
+
"description": "自定义整个顶部栏的内容"
|
903
887
|
},
|
904
888
|
{
|
905
|
-
"name": "
|
906
|
-
"
|
907
|
-
"description": "是否显示默认地址栏",
|
908
|
-
"options": [],
|
909
|
-
"value": {
|
910
|
-
"type": "boolean",
|
911
|
-
"kind": "expression"
|
912
|
-
}
|
889
|
+
"name": "title",
|
890
|
+
"description": "自定义标题内容"
|
913
891
|
},
|
914
892
|
{
|
915
|
-
"name": "
|
916
|
-
"
|
917
|
-
"description": "是否显示搜索结果",
|
918
|
-
"options": [],
|
919
|
-
"value": {
|
920
|
-
"type": "boolean",
|
921
|
-
"kind": "expression"
|
922
|
-
}
|
893
|
+
"name": "confirm",
|
894
|
+
"description": "自定义确认按钮内容"
|
923
895
|
},
|
924
896
|
{
|
925
|
-
"name": "
|
926
|
-
"
|
927
|
-
|
897
|
+
"name": "cancel",
|
898
|
+
"description": "自定义取消按钮内容"
|
899
|
+
},
|
900
|
+
{
|
901
|
+
"name": "columns-top",
|
902
|
+
"description": "自定义选项上方内容"
|
903
|
+
},
|
904
|
+
{
|
905
|
+
"name": "columns-bottom",
|
906
|
+
"description": "自定义选项下方内容"
|
907
|
+
}
|
908
|
+
],
|
909
|
+
"events": [
|
910
|
+
{
|
911
|
+
"name": "confirm",
|
912
|
+
"description": "点击完成按钮时触发"
|
913
|
+
},
|
914
|
+
{
|
915
|
+
"name": "cancel",
|
916
|
+
"description": "点击取消按钮时触发"
|
917
|
+
},
|
918
|
+
{
|
919
|
+
"name": "change",
|
920
|
+
"description": "选项改变时触发"
|
921
|
+
}
|
922
|
+
],
|
923
|
+
"attributes": [
|
924
|
+
{
|
925
|
+
"name": "value",
|
926
|
+
"default": "-",
|
927
|
+
"description": "当前选中项对应的地区码",
|
928
928
|
"options": [],
|
929
929
|
"value": {
|
930
|
-
"type": "
|
930
|
+
"type": "string",
|
931
931
|
"kind": "expression"
|
932
932
|
}
|
933
933
|
},
|
934
934
|
{
|
935
|
-
"name": "
|
936
|
-
"default": "
|
937
|
-
"description": "
|
935
|
+
"name": "title",
|
936
|
+
"default": "-",
|
937
|
+
"description": "顶部栏标题",
|
938
938
|
"options": [],
|
939
939
|
"value": {
|
940
|
-
"type": "
|
940
|
+
"type": "string",
|
941
941
|
"kind": "expression"
|
942
942
|
}
|
943
943
|
},
|
944
944
|
{
|
945
|
-
"name": "
|
946
|
-
"default": "
|
947
|
-
"description": "
|
945
|
+
"name": "confirm-button-text",
|
946
|
+
"default": "`确认`",
|
947
|
+
"description": "确认按钮文字",
|
948
948
|
"options": [],
|
949
949
|
"value": {
|
950
|
-
"type": "
|
950
|
+
"type": "string",
|
951
951
|
"kind": "expression"
|
952
952
|
}
|
953
953
|
},
|
954
954
|
{
|
955
|
-
"name": "
|
956
|
-
"default": "
|
957
|
-
"description": "
|
955
|
+
"name": "cancel-button-text",
|
956
|
+
"default": "`取消`",
|
957
|
+
"description": "取消按钮文字",
|
958
958
|
"options": [],
|
959
959
|
"value": {
|
960
960
|
"type": "string",
|
@@ -962,39 +962,39 @@
|
|
962
962
|
}
|
963
963
|
},
|
964
964
|
{
|
965
|
-
"name": "
|
966
|
-
"default": "
|
967
|
-
"description": "
|
965
|
+
"name": "area-list",
|
966
|
+
"default": "-",
|
967
|
+
"description": "省市区数据,格式见下方",
|
968
968
|
"options": [],
|
969
969
|
"value": {
|
970
|
-
"type": "
|
970
|
+
"type": "object",
|
971
971
|
"kind": "expression"
|
972
972
|
}
|
973
973
|
},
|
974
974
|
{
|
975
|
-
"name": "
|
976
|
-
"default": "`
|
977
|
-
"description": "
|
975
|
+
"name": "columns-placeholder",
|
976
|
+
"default": "`[]`",
|
977
|
+
"description": "列占位提示文字",
|
978
978
|
"options": [],
|
979
979
|
"value": {
|
980
|
-
"type": "
|
980
|
+
"type": "string[]",
|
981
981
|
"kind": "expression"
|
982
982
|
}
|
983
983
|
},
|
984
984
|
{
|
985
|
-
"name": "
|
986
|
-
"default": "`
|
987
|
-
"description": "
|
985
|
+
"name": "loading",
|
986
|
+
"default": "`false`",
|
987
|
+
"description": "是否显示加载状态",
|
988
988
|
"options": [],
|
989
989
|
"value": {
|
990
|
-
"type": "
|
990
|
+
"type": "boolean",
|
991
991
|
"kind": "expression"
|
992
992
|
}
|
993
993
|
},
|
994
994
|
{
|
995
|
-
"name": "
|
995
|
+
"name": "readonly",
|
996
996
|
"default": "`false`",
|
997
|
-
"description": "
|
997
|
+
"description": "是否为只读状态,只读状态下无法切换选项",
|
998
998
|
"options": [],
|
999
999
|
"value": {
|
1000
1000
|
"type": "boolean",
|
@@ -1002,29 +1002,29 @@
|
|
1002
1002
|
}
|
1003
1003
|
},
|
1004
1004
|
{
|
1005
|
-
"name": "
|
1006
|
-
"default": "`
|
1007
|
-
"description": "
|
1005
|
+
"name": "item-height",
|
1006
|
+
"default": "`44`",
|
1007
|
+
"description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`",
|
1008
1008
|
"options": [],
|
1009
1009
|
"value": {
|
1010
|
-
"type": "
|
1010
|
+
"type": "number | string",
|
1011
1011
|
"kind": "expression"
|
1012
1012
|
}
|
1013
1013
|
},
|
1014
1014
|
{
|
1015
|
-
"name": "
|
1016
|
-
"default": "
|
1017
|
-
"description": "
|
1015
|
+
"name": "columns-num",
|
1016
|
+
"default": "`3`",
|
1017
|
+
"description": "显示列数,3-省市区,2-省市,1-省",
|
1018
1018
|
"options": [],
|
1019
1019
|
"value": {
|
1020
|
-
"type": "
|
1020
|
+
"type": "number | string",
|
1021
1021
|
"kind": "expression"
|
1022
1022
|
}
|
1023
1023
|
},
|
1024
1024
|
{
|
1025
|
-
"name": "
|
1026
|
-
"default": "
|
1027
|
-
"description": "
|
1025
|
+
"name": "visible-item-count",
|
1026
|
+
"default": "`6`",
|
1027
|
+
"description": "可见的选项个数",
|
1028
1028
|
"options": [],
|
1029
1029
|
"value": {
|
1030
1030
|
"type": "number | string",
|
@@ -1032,22 +1032,22 @@
|
|
1032
1032
|
}
|
1033
1033
|
},
|
1034
1034
|
{
|
1035
|
-
"name": "
|
1036
|
-
"default": "
|
1037
|
-
"description": "
|
1035
|
+
"name": "swipe-duration",
|
1036
|
+
"default": "`1000`",
|
1037
|
+
"description": "快速滑动时惯性滚动的时长,单位 `ms`",
|
1038
1038
|
"options": [],
|
1039
1039
|
"value": {
|
1040
|
-
"type": "
|
1040
|
+
"type": "number | string",
|
1041
1041
|
"kind": "expression"
|
1042
1042
|
}
|
1043
1043
|
},
|
1044
1044
|
{
|
1045
|
-
"name": "
|
1045
|
+
"name": "is-oversea-code",
|
1046
1046
|
"default": "-",
|
1047
|
-
"description": "
|
1047
|
+
"description": "根据地区码校验海外地址,海外地址会划分至单独的分类",
|
1048
1048
|
"options": [],
|
1049
1049
|
"value": {
|
1050
|
-
"type": "(
|
1050
|
+
"type": "() => boolean",
|
1051
1051
|
"kind": "expression"
|
1052
1052
|
}
|
1053
1053
|
}
|
@@ -1946,6 +1946,14 @@
|
|
1946
1946
|
{
|
1947
1947
|
"name": "option",
|
1948
1948
|
"description": "自定义选项文字"
|
1949
|
+
},
|
1950
|
+
{
|
1951
|
+
"name": "options-top",
|
1952
|
+
"description": "自定义选项上方的内容"
|
1953
|
+
},
|
1954
|
+
{
|
1955
|
+
"name": "options-bottom",
|
1956
|
+
"description": "自定义选项下方的内容"
|
1949
1957
|
}
|
1950
1958
|
],
|
1951
1959
|
"events": [
|
@@ -4442,7 +4450,7 @@
|
|
4442
4450
|
},
|
4443
4451
|
{
|
4444
4452
|
"name": "id",
|
4445
|
-
"default": "-",
|
4453
|
+
"default": "`van-field-n-input`",
|
4446
4454
|
"description": "输入框 id,同时会设置 label 的 for 属性",
|
4447
4455
|
"options": [],
|
4448
4456
|
"value": {
|
@@ -6078,7 +6086,7 @@
|
|
6078
6086
|
},
|
6079
6087
|
{
|
6080
6088
|
"name": "color",
|
6081
|
-
"default": "`#
|
6089
|
+
"default": "`#ed6a0c`",
|
6082
6090
|
"description": "通知文本颜色",
|
6083
6091
|
"options": [],
|
6084
6092
|
"value": {
|
@@ -6088,7 +6096,7 @@
|
|
6088
6096
|
},
|
6089
6097
|
{
|
6090
6098
|
"name": "background",
|
6091
|
-
"default": "`#
|
6099
|
+
"default": "`#fffbe8`",
|
6092
6100
|
"description": "滚动条背景",
|
6093
6101
|
"options": [],
|
6094
6102
|
"value": {
|
@@ -7902,7 +7910,7 @@
|
|
7902
7910
|
},
|
7903
7911
|
{
|
7904
7912
|
"name": "id",
|
7905
|
-
"default": "-",
|
7913
|
+
"default": "`van-search-n-input`",
|
7906
7914
|
"description": "搜索框 id,同时会设置 label 的 for 属性",
|
7907
7915
|
"options": [],
|
7908
7916
|
"value": {
|
@@ -8554,7 +8562,7 @@
|
|
8554
8562
|
},
|
8555
8563
|
{
|
8556
8564
|
"name": "right-button",
|
8557
|
-
"description": "
|
8565
|
+
"description": "自定义右侧滑块按钮(双滑块模式下)"
|
8558
8566
|
}
|
8559
8567
|
],
|
8560
8568
|
"events": [
|