vant 3.4.0 → 3.4.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.js +24 -20
- package/es/action-bar/index.js +8 -4
- package/es/action-bar/style/index.js +2 -2
- package/es/action-bar/style/less.js +2 -2
- package/es/action-bar-button/ActionBarButton.js +26 -28
- package/es/action-bar-button/index.js +8 -4
- package/es/action-bar-button/style/index.js +7 -7
- package/es/action-bar-button/style/less.js +7 -7
- package/es/action-bar-icon/ActionBarIcon.js +23 -29
- package/es/action-bar-icon/index.js +8 -4
- package/es/action-bar-icon/style/index.js +5 -5
- package/es/action-bar-icon/style/less.js +5 -5
- package/es/action-sheet/ActionSheet.js +47 -61
- package/es/action-sheet/index.js +8 -4
- package/es/action-sheet/style/index.js +7 -7
- package/es/action-sheet/style/less.js +7 -7
- package/es/address-edit/AddressEdit.js +186 -219
- package/es/address-edit/AddressEditDetail.js +31 -43
- package/es/address-edit/index.js +8 -4
- package/es/address-edit/style/index.js +13 -13
- package/es/address-edit/style/less.js +13 -13
- package/es/address-edit/types.js +0 -1
- package/es/address-list/AddressList.js +38 -49
- package/es/address-list/AddressListItem.js +39 -49
- package/es/address-list/index.js +8 -4
- package/es/address-list/style/index.js +11 -11
- package/es/address-list/style/less.js +11 -11
- package/es/area/Area.js +99 -161
- package/es/area/index.js +8 -4
- package/es/area/style/index.js +3 -3
- package/es/area/style/less.js +3 -3
- package/es/area/types.js +0 -1
- package/es/badge/Badge.js +33 -47
- package/es/badge/index.js +8 -4
- package/es/badge/style/index.js +2 -2
- package/es/badge/style/less.js +2 -2
- package/es/button/Button.js +43 -63
- package/es/button/index.js +8 -4
- package/es/button/style/index.js +5 -5
- package/es/button/style/less.js +5 -5
- package/es/button/types.js +0 -1
- package/es/calendar/Calendar.js +123 -221
- package/es/calendar/CalendarDay.js +54 -70
- package/es/calendar/CalendarHeader.js +30 -35
- package/es/calendar/CalendarMonth.js +97 -140
- package/es/calendar/index.js +8 -4
- package/es/calendar/style/index.js +10 -10
- package/es/calendar/style/less.js +10 -10
- package/es/calendar/types.js +0 -1
- package/es/calendar/utils.js +40 -30
- package/es/card/Card.js +53 -72
- package/es/card/index.js +8 -4
- package/es/card/style/index.js +6 -6
- package/es/card/style/less.js +6 -6
- package/es/cascader/Cascader.js +84 -118
- package/es/cascader/index.js +8 -4
- package/es/cascader/style/index.js +9 -9
- package/es/cascader/style/less.js +9 -9
- package/es/cascader/types.js +0 -1
- package/es/cell/Cell.js +42 -59
- package/es/cell/index.js +8 -4
- package/es/cell/style/index.js +4 -4
- package/es/cell/style/less.js +4 -4
- package/es/cell-group/CellGroup.js +25 -26
- package/es/cell-group/index.js +8 -4
- package/es/cell-group/style/index.js +2 -2
- package/es/cell-group/style/less.js +2 -2
- package/es/checkbox/Checkbox.js +35 -53
- package/es/checkbox/Checker.js +37 -45
- package/es/checkbox/index.js +8 -4
- package/es/checkbox/style/index.js +5 -5
- package/es/checkbox/style/less.js +5 -5
- package/es/checkbox/types.js +0 -1
- package/es/checkbox-group/CheckboxGroup.js +32 -41
- package/es/checkbox-group/index.js +8 -4
- package/es/checkbox-group/style/index.js +2 -2
- package/es/checkbox-group/style/less.js +2 -2
- package/es/checkbox-group/types.js +0 -1
- package/es/circle/Circle.js +60 -76
- package/es/circle/index.js +8 -4
- package/es/circle/style/index.js +2 -2
- package/es/circle/style/less.js +2 -2
- package/es/col/Col.js +27 -26
- package/es/col/index.js +8 -4
- package/es/col/style/index.js +3 -3
- package/es/col/style/less.js +3 -3
- package/es/collapse/Collapse.js +39 -46
- package/es/collapse/index.js +8 -4
- package/es/collapse/style/index.js +1 -1
- package/es/collapse/style/less.js +1 -1
- package/es/collapse-item/CollapseItem.js +57 -81
- package/es/collapse-item/index.js +8 -4
- package/es/collapse-item/style/index.js +5 -5
- package/es/collapse-item/style/less.js +5 -5
- package/es/collapse-item/types.js +0 -1
- package/es/composables/on-popup-reopen.js +10 -8
- package/es/composables/use-expose.js +8 -7
- package/es/composables/use-height.js +8 -5
- package/es/composables/use-id.js +11 -12
- package/es/composables/use-lazy-render.js +10 -9
- package/es/composables/use-lock-scroll.js +29 -43
- package/es/composables/use-placeholder.js +10 -7
- package/es/composables/use-refs.js +10 -10
- package/es/composables/use-route.js +19 -17
- package/es/composables/use-tab-status.js +7 -4
- package/es/composables/use-touch.js +25 -35
- package/es/composables/use-visibility-change.js +12 -18
- package/es/config-provider/ConfigProvider.js +23 -21
- package/es/config-provider/index.js +8 -4
- package/es/config-provider/style/index.js +1 -1
- package/es/config-provider/style/less.js +1 -1
- package/es/contact-card/ContactCard.js +24 -28
- package/es/contact-card/index.js +8 -4
- package/es/contact-card/style/index.js +5 -5
- package/es/contact-card/style/less.js +5 -5
- package/es/contact-edit/ContactEdit.js +48 -56
- package/es/contact-edit/index.js +8 -4
- package/es/contact-edit/style/index.js +9 -9
- package/es/contact-edit/style/less.js +9 -9
- package/es/contact-list/ContactList.js +41 -51
- package/es/contact-list/index.js +8 -4
- package/es/contact-list/style/index.js +11 -11
- package/es/contact-list/style/less.js +11 -11
- package/es/count-down/CountDown.js +23 -28
- package/es/count-down/index.js +8 -4
- package/es/count-down/style/index.js +2 -2
- package/es/count-down/style/less.js +2 -2
- package/es/count-down/types.js +0 -1
- package/es/count-down/utils.js +24 -35
- package/es/coupon/Coupon.js +35 -38
- package/es/coupon/index.js +8 -4
- package/es/coupon/style/index.js +6 -6
- package/es/coupon/style/less.js +6 -6
- package/es/coupon/utils.js +11 -6
- package/es/coupon-cell/CouponCell.js +23 -32
- package/es/coupon-cell/index.js +8 -4
- package/es/coupon-cell/style/index.js +5 -5
- package/es/coupon-cell/style/less.js +5 -5
- package/es/coupon-list/CouponList.js +101 -112
- package/es/coupon-list/index.js +8 -4
- package/es/coupon-list/style/index.js +16 -16
- package/es/coupon-list/style/less.js +16 -16
- package/es/datetime-picker/DatePicker.js +112 -157
- package/es/datetime-picker/DatetimePicker.js +25 -26
- package/es/datetime-picker/TimePicker.js +51 -69
- package/es/datetime-picker/index.js +8 -4
- package/es/datetime-picker/style/index.js +3 -3
- package/es/datetime-picker/style/less.js +3 -3
- package/es/datetime-picker/types.js +0 -1
- package/es/datetime-picker/utils.js +30 -20
- package/es/dialog/Dialog.js +58 -83
- package/es/dialog/function-call.js +25 -37
- package/es/dialog/index.js +6 -3
- package/es/dialog/style/index.js +10 -10
- package/es/dialog/style/less.js +10 -10
- package/es/dialog/types.js +0 -1
- package/es/divider/Divider.js +24 -21
- package/es/divider/index.js +8 -4
- package/es/divider/style/index.js +2 -2
- package/es/divider/style/less.js +2 -2
- package/es/dropdown-item/DropdownItem.js +62 -94
- package/es/dropdown-item/index.js +8 -4
- package/es/dropdown-item/style/index.js +8 -8
- package/es/dropdown-item/style/less.js +8 -8
- package/es/dropdown-item/types.js +0 -1
- package/es/dropdown-menu/DropdownMenu.js +55 -61
- package/es/dropdown-menu/index.js +8 -4
- package/es/dropdown-menu/style/index.js +2 -2
- package/es/dropdown-menu/style/less.js +2 -2
- package/es/dropdown-menu/types.js +0 -1
- package/es/empty/Empty.js +25 -34
- package/es/empty/Network.js +24 -23
- package/es/empty/index.js +8 -4
- package/es/empty/style/index.js +2 -2
- package/es/empty/style/less.js +2 -2
- package/es/field/Field.js +154 -243
- package/es/field/index.js +8 -4
- package/es/field/style/index.js +5 -5
- package/es/field/style/less.js +5 -5
- package/es/field/types.js +0 -1
- package/es/field/utils.js +50 -69
- package/es/form/Form.js +55 -74
- package/es/form/index.js +8 -4
- package/es/form/style/index.js +1 -1
- package/es/form/style/less.js +1 -1
- package/es/form/types.js +0 -1
- package/es/grid/Grid.js +28 -24
- package/es/grid/index.js +8 -4
- package/es/grid/style/index.js +2 -2
- package/es/grid/style/less.js +2 -2
- package/es/grid-item/GridItem.js +40 -57
- package/es/grid-item/index.js +8 -4
- package/es/grid-item/style/index.js +5 -5
- package/es/grid-item/style/less.js +5 -5
- package/es/icon/Icon.js +29 -28
- package/es/icon/index.js +8 -4
- package/es/icon/style/index.js +3 -3
- package/es/icon/style/less.js +3 -3
- package/es/image/Image.js +59 -78
- package/es/image/index.js +8 -4
- package/es/image/style/index.js +4 -4
- package/es/image/style/less.js +4 -4
- package/es/image-preview/ImagePreview.js +51 -69
- package/es/image-preview/ImagePreviewItem.js +72 -105
- package/es/image-preview/function-call.js +23 -36
- package/es/image-preview/index.js +6 -3
- package/es/image-preview/style/index.js +10 -10
- package/es/image-preview/style/less.js +10 -10
- package/es/image-preview/types.js +0 -1
- package/es/index-anchor/IndexAnchor.js +31 -42
- package/es/index-anchor/index.js +8 -4
- package/es/index-anchor/style/index.js +3 -3
- package/es/index-anchor/style/less.js +3 -3
- package/es/index-bar/IndexBar.js +73 -98
- package/es/index-bar/index.js +8 -4
- package/es/index-bar/style/index.js +2 -2
- package/es/index-bar/style/less.js +2 -2
- package/es/index-bar/types.js +0 -1
- package/es/index.d.ts +1 -1
- package/es/index.js +267 -180
- package/es/lazyload/index.js +6 -3
- package/es/lazyload/style/index.js +1 -1
- package/es/lazyload/style/less.js +1 -1
- package/es/lazyload/vue-lazyload/index.js +17 -32
- package/es/lazyload/vue-lazyload/lazy-component.js +11 -16
- package/es/lazyload/vue-lazyload/lazy-container.js +28 -56
- package/es/lazyload/vue-lazyload/lazy-image.js +21 -46
- package/es/lazyload/vue-lazyload/lazy.js +113 -264
- package/es/lazyload/vue-lazyload/listener.js +50 -130
- package/es/lazyload/vue-lazyload/util.js +67 -87
- package/es/list/List.js +52 -74
- package/es/list/index.js +8 -4
- package/es/list/style/index.js +3 -3
- package/es/list/style/less.js +3 -3
- package/es/list/types.js +0 -1
- package/es/loading/Loading.js +25 -30
- package/es/loading/index.js +8 -4
- package/es/loading/style/index.js +2 -2
- package/es/loading/style/less.js +2 -2
- package/es/locale/index.js +14 -19
- package/es/locale/lang/de-DE-formal.js +49 -46
- package/es/locale/lang/de-DE.js +49 -46
- package/es/locale/lang/en-US.js +49 -46
- package/es/locale/lang/es-ES.js +49 -46
- package/es/locale/lang/fr-FR.js +49 -46
- package/es/locale/lang/ja-JP.js +50 -47
- package/es/locale/lang/nb-NO.js +49 -46
- package/es/locale/lang/pt-BR.js +49 -46
- package/es/locale/lang/ro-RO.js +49 -46
- package/es/locale/lang/ru-RU.js +49 -46
- package/es/locale/lang/th-TH.js +50 -47
- package/es/locale/lang/tr-TR.js +49 -46
- package/es/locale/lang/zh-CN.js +50 -47
- package/es/locale/lang/zh-HK.js +50 -47
- package/es/locale/lang/zh-TW.js +50 -47
- package/es/locale/style/index.js +1 -1
- package/es/locale/style/less.js +1 -1
- package/es/nav-bar/NavBar.js +35 -47
- package/es/nav-bar/index.js +8 -4
- package/es/nav-bar/style/index.js +4 -4
- package/es/nav-bar/style/less.js +4 -4
- package/es/notice-bar/NoticeBar.js +62 -85
- package/es/notice-bar/index.js +8 -4
- package/es/notice-bar/style/index.js +4 -4
- package/es/notice-bar/style/less.js +4 -4
- package/es/notice-bar/types.js +0 -1
- package/es/notify/Notify.js +19 -21
- package/es/notify/function-call.js +23 -37
- package/es/notify/index.js +6 -3
- package/es/notify/style/index.js +6 -6
- package/es/notify/style/less.js +6 -6
- package/es/notify/types.js +0 -1
- package/es/number-keyboard/NumberKeyboard.js +81 -114
- package/es/number-keyboard/NumberKeyboardKey.js +32 -48
- package/es/number-keyboard/index.js +8 -4
- package/es/number-keyboard/style/index.js +3 -3
- package/es/number-keyboard/style/less.js +3 -3
- package/es/overlay/Overlay.js +21 -24
- package/es/overlay/index.js +8 -4
- package/es/overlay/style/index.js +2 -2
- package/es/overlay/style/less.js +2 -2
- package/es/pagination/Pagination.js +62 -84
- package/es/pagination/index.js +8 -4
- package/es/pagination/style/index.js +2 -2
- package/es/pagination/style/less.js +2 -2
- package/es/password-input/PasswordInput.js +30 -37
- package/es/password-input/index.js +8 -4
- package/es/password-input/style/index.js +2 -2
- package/es/password-input/style/less.js +2 -2
- package/es/picker/Picker.js +126 -196
- package/es/picker/PickerColumn.d.ts +3 -2
- package/es/picker/PickerColumn.js +86 -133
- package/es/picker/index.js +8 -4
- package/es/picker/style/index.js +3 -3
- package/es/picker/style/less.js +3 -3
- package/es/picker/types.d.ts +13 -0
- package/es/picker/types.js +0 -1
- package/es/popover/Popover.js +71 -87
- package/es/popover/index.css +1 -1
- package/es/popover/index.js +8 -4
- package/es/popover/index.less +8 -4
- package/es/popover/style/index.js +6 -6
- package/es/popover/style/less.js +6 -6
- package/es/popover/types.js +0 -1
- package/es/popup/Popup.js +67 -88
- package/es/popup/index.js +8 -4
- package/es/popup/shared.js +7 -15
- package/es/popup/style/index.js +5 -5
- package/es/popup/style/less.js +5 -5
- package/es/popup/types.js +0 -1
- package/es/progress/Progress.js +23 -25
- package/es/progress/index.js +8 -4
- package/es/progress/style/index.js +2 -2
- package/es/progress/style/less.js +2 -2
- package/es/progress/types.js +0 -1
- package/es/pull-refresh/PullRefresh.js +66 -96
- package/es/pull-refresh/index.js +8 -4
- package/es/pull-refresh/style/index.js +3 -3
- package/es/pull-refresh/style/less.js +3 -3
- package/es/radio/Radio.js +23 -29
- package/es/radio/index.js +8 -4
- package/es/radio/style/index.js +6 -6
- package/es/radio/style/less.js +6 -6
- package/es/radio-group/RadioGroup.js +27 -25
- package/es/radio-group/index.js +8 -4
- package/es/radio-group/style/index.js +2 -2
- package/es/radio-group/style/less.js +2 -2
- package/es/rate/Rate.js +53 -77
- package/es/rate/index.js +8 -4
- package/es/rate/style/index.js +4 -4
- package/es/rate/style/less.js +4 -4
- package/es/row/Row.js +41 -40
- package/es/row/index.js +8 -4
- package/es/row/style/index.js +2 -2
- package/es/row/style/less.js +2 -2
- package/es/search/Search.js +67 -89
- package/es/search/index.js +8 -4
- package/es/search/style/index.js +6 -6
- package/es/search/style/less.js +6 -6
- package/es/search/types.js +0 -1
- package/es/share-sheet/ShareSheet.js +46 -65
- package/es/share-sheet/index.js +8 -4
- package/es/share-sheet/style/index.js +6 -6
- package/es/share-sheet/style/less.js +6 -6
- package/es/sidebar/Sidebar.js +29 -28
- package/es/sidebar/index.js +8 -4
- package/es/sidebar/style/index.js +2 -2
- package/es/sidebar/style/less.js +2 -2
- package/es/sidebar-item/SidebarItem.js +28 -36
- package/es/sidebar-item/index.js +8 -4
- package/es/sidebar-item/style/index.js +4 -4
- package/es/sidebar-item/style/less.js +4 -4
- package/es/skeleton/Skeleton.js +26 -34
- package/es/skeleton/index.js +8 -4
- package/es/skeleton/style/index.js +2 -2
- package/es/skeleton/style/less.js +2 -2
- package/es/slider/Slider.js +99 -158
- package/es/slider/index.js +8 -4
- package/es/slider/style/index.js +2 -2
- package/es/slider/style/less.js +2 -2
- package/es/step/Step.js +47 -68
- package/es/step/index.js +8 -4
- package/es/step/style/index.js +5 -5
- package/es/step/style/less.js +5 -5
- package/es/stepper/Stepper.js +82 -123
- package/es/stepper/index.js +8 -4
- package/es/stepper/style/index.js +2 -2
- package/es/stepper/style/less.js +2 -2
- package/es/steps/Steps.js +29 -27
- package/es/steps/index.js +8 -4
- package/es/steps/style/index.js +2 -2
- package/es/steps/style/less.js +2 -2
- package/es/sticky/Sticky.js +58 -73
- package/es/sticky/index.js +8 -4
- package/es/sticky/style/index.js +2 -2
- package/es/sticky/style/less.js +2 -2
- package/es/submit-bar/SubmitBar.js +48 -53
- package/es/submit-bar/index.js +8 -4
- package/es/submit-bar/style/index.js +6 -6
- package/es/submit-bar/style/less.js +6 -6
- package/es/swipe/Swipe.js +117 -184
- package/es/swipe/index.js +8 -4
- package/es/swipe/style/index.js +2 -2
- package/es/swipe/style/less.js +2 -2
- package/es/swipe/types.js +0 -1
- package/es/swipe-cell/SwipeCell.js +60 -89
- package/es/swipe-cell/index.js +8 -4
- package/es/swipe-cell/style/index.js +2 -2
- package/es/swipe-cell/style/less.js +2 -2
- package/es/swipe-cell/types.js +0 -1
- package/es/swipe-item/SwipeItem.js +40 -51
- package/es/swipe-item/index.js +8 -4
- package/es/swipe-item/style/index.js +3 -3
- package/es/swipe-item/style/less.js +3 -3
- package/es/switch/Switch.js +28 -32
- package/es/switch/index.js +8 -4
- package/es/switch/style/index.js +3 -3
- package/es/switch/style/less.js +3 -3
- package/es/tab/Tab.js +44 -56
- package/es/tab/index.js +8 -4
- package/es/tab/style/index.js +7 -7
- package/es/tab/style/less.js +7 -7
- package/es/tabbar/Tabbar.js +32 -40
- package/es/tabbar/index.js +8 -4
- package/es/tabbar/style/index.js +2 -2
- package/es/tabbar/style/less.js +2 -2
- package/es/tabbar-item/TabbarItem.js +49 -63
- package/es/tabbar-item/index.js +8 -4
- package/es/tabbar-item/style/index.js +5 -5
- package/es/tabbar-item/style/less.js +5 -5
- package/es/tabs/Tabs.js +137 -197
- package/es/tabs/TabsContent.js +24 -30
- package/es/tabs/TabsTitle.js +28 -37
- package/es/tabs/index.js +8 -4
- package/es/tabs/style/index.js +5 -5
- package/es/tabs/style/less.js +5 -5
- package/es/tabs/types.js +0 -1
- package/es/tabs/utils.js +16 -20
- package/es/tag/Tag.js +27 -34
- package/es/tag/index.js +8 -4
- package/es/tag/style/index.js +4 -4
- package/es/tag/style/less.js +4 -4
- package/es/toast/Toast.js +41 -56
- package/es/toast/function-call.js +55 -85
- package/es/toast/index.js +6 -3
- package/es/toast/lock-click.js +8 -7
- package/es/toast/style/index.js +7 -7
- package/es/toast/style/less.js +7 -7
- package/es/toast/types.js +0 -1
- package/es/tree-select/TreeSelect.js +37 -52
- package/es/tree-select/index.js +8 -4
- package/es/tree-select/style/index.js +6 -6
- package/es/tree-select/style/less.js +6 -6
- package/es/uploader/Uploader.js +87 -134
- package/es/uploader/UploaderPreviewItem.js +47 -60
- package/es/uploader/index.js +8 -4
- package/es/uploader/style/index.js +11 -11
- package/es/uploader/style/less.js +11 -11
- package/es/uploader/types.js +0 -1
- package/es/uploader/utils.js +35 -39
- package/es/utils/basic.js +20 -15
- package/es/utils/constant.js +20 -9
- package/es/utils/create.js +32 -43
- package/es/utils/deep-assign.js +9 -13
- package/es/utils/deep-clone.js +9 -9
- package/es/utils/dom.js +36 -38
- package/es/utils/format.js +56 -82
- package/es/utils/index.js +9 -9
- package/es/utils/interceptor.js +13 -14
- package/es/utils/mount-component.js +18 -26
- package/es/utils/props.js +19 -13
- package/es/utils/validate.js +20 -11
- package/es/utils/with-install.js +9 -10
- package/lib/action-bar/ActionBar.js +49 -33
- package/lib/action-bar/index.js +31 -15
- package/lib/action-bar/style/index.js +2 -5
- package/lib/action-bar/style/less.js +2 -5
- package/lib/action-bar-button/ActionBarButton.js +52 -45
- package/lib/action-bar-button/index.js +31 -15
- package/lib/action-bar-button/style/index.js +7 -15
- package/lib/action-bar-button/style/less.js +7 -15
- package/lib/action-bar-icon/ActionBarIcon.js +51 -48
- package/lib/action-bar-icon/index.js +31 -15
- package/lib/action-bar-icon/style/index.js +5 -11
- package/lib/action-bar-icon/style/less.js +5 -11
- package/lib/action-sheet/ActionSheet.js +86 -90
- package/lib/action-sheet/index.js +31 -15
- package/lib/action-sheet/style/index.js +7 -15
- package/lib/action-sheet/style/less.js +7 -15
- package/lib/address-edit/AddressEdit.js +223 -253
- package/lib/address-edit/AddressEditDetail.js +57 -56
- package/lib/address-edit/index.js +31 -15
- package/lib/address-edit/style/index.js +13 -27
- package/lib/address-edit/style/less.js +13 -27
- package/lib/address-edit/types.js +3 -3
- package/lib/address-list/AddressList.js +67 -67
- package/lib/address-list/AddressListItem.js +66 -66
- package/lib/address-list/index.js +31 -15
- package/lib/address-list/style/index.js +11 -23
- package/lib/address-list/style/less.js +11 -23
- package/lib/area/Area.js +130 -181
- package/lib/area/index.js +31 -15
- package/lib/area/style/index.js +3 -7
- package/lib/area/style/less.js +3 -7
- package/lib/area/types.js +3 -3
- package/lib/badge/Badge.js +62 -62
- package/lib/badge/index.js +31 -15
- package/lib/badge/style/index.js +2 -5
- package/lib/badge/style/less.js +2 -5
- package/lib/button/Button.js +75 -83
- package/lib/button/index.js +31 -15
- package/lib/button/style/index.js +5 -11
- package/lib/button/style/less.js +5 -11
- package/lib/button/types.js +3 -3
- package/lib/calendar/Calendar.js +183 -277
- package/lib/calendar/CalendarDay.js +84 -87
- package/lib/calendar/CalendarHeader.js +57 -49
- package/lib/calendar/CalendarMonth.js +130 -166
- package/lib/calendar/index.js +31 -15
- package/lib/calendar/style/index.js +10 -21
- package/lib/calendar/style/less.js +10 -21
- package/lib/calendar/types.js +3 -3
- package/lib/calendar/utils.js +59 -63
- package/lib/card/Card.js +91 -92
- package/lib/card/index.js +31 -15
- package/lib/card/style/index.js +6 -13
- package/lib/card/style/less.js +6 -13
- package/lib/cascader/Cascader.js +122 -144
- package/lib/cascader/index.js +31 -15
- package/lib/cascader/style/index.js +9 -19
- package/lib/cascader/style/less.js +9 -19
- package/lib/cascader/types.js +3 -3
- package/lib/cell/Cell.js +81 -87
- package/lib/cell/index.js +31 -15
- package/lib/cell/style/index.js +4 -9
- package/lib/cell/style/less.js +4 -9
- package/lib/cell-group/CellGroup.js +50 -37
- package/lib/cell-group/index.js +31 -15
- package/lib/cell-group/style/index.js +2 -5
- package/lib/cell-group/style/less.js +2 -5
- package/lib/checkbox/Checkbox.js +62 -73
- package/lib/checkbox/Checker.js +71 -67
- package/lib/checkbox/index.js +31 -15
- package/lib/checkbox/style/index.js +5 -11
- package/lib/checkbox/style/less.js +5 -11
- package/lib/checkbox/types.js +3 -3
- package/lib/checkbox-group/CheckboxGroup.js +61 -58
- package/lib/checkbox-group/index.js +31 -15
- package/lib/checkbox-group/style/index.js +2 -5
- package/lib/checkbox-group/style/less.js +2 -5
- package/lib/checkbox-group/types.js +3 -3
- package/lib/circle/Circle.js +100 -103
- package/lib/circle/index.js +31 -15
- package/lib/circle/style/index.js +2 -5
- package/lib/circle/style/less.js +2 -5
- package/lib/col/Col.js +54 -41
- package/lib/col/index.js +31 -15
- package/lib/col/style/index.js +3 -7
- package/lib/col/style/less.js +3 -7
- package/lib/collapse/Collapse.js +64 -58
- package/lib/collapse/index.js +31 -15
- package/lib/collapse/style/index.js +1 -3
- package/lib/collapse/style/less.js +1 -3
- package/lib/collapse-item/CollapseItem.js +88 -104
- package/lib/collapse-item/index.js +31 -15
- package/lib/collapse-item/style/index.js +5 -11
- package/lib/collapse-item/style/less.js +5 -11
- package/lib/collapse-item/types.js +3 -3
- package/lib/composables/on-popup-reopen.js +32 -16
- package/lib/composables/use-expose.js +31 -14
- package/lib/composables/use-height.js +32 -15
- package/lib/composables/use-id.js +33 -18
- package/lib/composables/use-lazy-render.js +32 -14
- package/lib/composables/use-lock-scroll.js +55 -56
- package/lib/composables/use-placeholder.js +33 -14
- package/lib/composables/use-refs.js +33 -16
- package/lib/composables/use-route.js +39 -27
- package/lib/composables/use-tab-status.js +30 -14
- package/lib/composables/use-touch.js +47 -39
- package/lib/composables/use-visibility-change.js +38 -29
- package/lib/config-provider/ConfigProvider.js +48 -32
- package/lib/config-provider/index.js +31 -15
- package/lib/config-provider/style/index.js +1 -3
- package/lib/config-provider/style/less.js +1 -3
- package/lib/contact-card/ContactCard.js +48 -39
- package/lib/contact-card/index.js +31 -15
- package/lib/contact-card/style/index.js +5 -11
- package/lib/contact-card/style/less.js +5 -11
- package/lib/contact-edit/ContactEdit.js +79 -78
- package/lib/contact-edit/index.js +31 -15
- package/lib/contact-edit/style/index.js +9 -19
- package/lib/contact-edit/style/less.js +9 -19
- package/lib/contact-list/ContactList.js +70 -72
- package/lib/contact-list/index.js +31 -15
- package/lib/contact-list/style/index.js +11 -23
- package/lib/contact-list/style/less.js +11 -23
- package/lib/count-down/CountDown.js +52 -46
- package/lib/count-down/index.js +31 -15
- package/lib/count-down/style/index.js +2 -5
- package/lib/count-down/style/less.js +2 -5
- package/lib/count-down/types.js +3 -3
- package/lib/count-down/utils.js +46 -40
- package/lib/coupon/Coupon.js +69 -60
- package/lib/coupon/index.js +31 -15
- package/lib/coupon/style/index.js +6 -13
- package/lib/coupon/style/less.js +6 -13
- package/lib/coupon/utils.js +33 -18
- package/lib/coupon-cell/CouponCell.js +53 -47
- package/lib/coupon-cell/index.js +31 -15
- package/lib/coupon-cell/style/index.js +5 -11
- package/lib/coupon-cell/style/less.js +5 -11
- package/lib/coupon-list/CouponList.js +149 -153
- package/lib/coupon-list/index.js +31 -15
- package/lib/coupon-list/style/index.js +16 -33
- package/lib/coupon-list/style/less.js +16 -33
- package/lib/datetime-picker/DatePicker.js +152 -185
- package/lib/datetime-picker/DatetimePicker.js +49 -41
- package/lib/datetime-picker/TimePicker.js +92 -99
- package/lib/datetime-picker/index.js +31 -15
- package/lib/datetime-picker/style/index.js +3 -7
- package/lib/datetime-picker/style/less.js +3 -7
- package/lib/datetime-picker/types.js +3 -3
- package/lib/datetime-picker/utils.js +50 -37
- package/lib/dialog/Dialog.js +99 -114
- package/lib/dialog/function-call.js +59 -57
- package/lib/dialog/index.js +29 -10
- package/lib/dialog/style/index.js +10 -21
- package/lib/dialog/style/less.js +10 -21
- package/lib/dialog/types.js +3 -3
- package/lib/divider/Divider.js +48 -31
- package/lib/divider/index.js +31 -15
- package/lib/divider/style/index.js +2 -5
- package/lib/divider/style/less.js +2 -5
- package/lib/dropdown-item/DropdownItem.js +96 -119
- package/lib/dropdown-item/index.js +31 -15
- package/lib/dropdown-item/style/index.js +8 -17
- package/lib/dropdown-item/style/less.js +8 -17
- package/lib/dropdown-item/types.js +3 -3
- package/lib/dropdown-menu/DropdownMenu.js +91 -85
- package/lib/dropdown-menu/index.js +31 -15
- package/lib/dropdown-menu/style/index.js +2 -5
- package/lib/dropdown-menu/style/less.js +2 -5
- package/lib/dropdown-menu/types.js +3 -3
- package/lib/empty/Empty.js +56 -52
- package/lib/empty/Network.js +62 -45
- package/lib/empty/index.js +31 -15
- package/lib/empty/style/index.js +2 -5
- package/lib/empty/style/less.js +2 -5
- package/lib/field/Field.js +220 -302
- package/lib/field/index.js +31 -15
- package/lib/field/style/index.js +5 -11
- package/lib/field/style/less.js +5 -11
- package/lib/field/types.js +3 -3
- package/lib/field/utils.js +64 -87
- package/lib/form/Form.js +84 -90
- package/lib/form/index.js +31 -15
- package/lib/form/style/index.js +1 -3
- package/lib/form/style/less.js +1 -3
- package/lib/form/types.js +3 -3
- package/lib/grid/Grid.js +57 -42
- package/lib/grid/index.js +31 -15
- package/lib/grid/style/index.js +2 -5
- package/lib/grid/style/less.js +2 -5
- package/lib/grid-item/GridItem.js +70 -78
- package/lib/grid-item/index.js +31 -15
- package/lib/grid-item/style/index.js +5 -11
- package/lib/grid-item/style/less.js +5 -11
- package/lib/icon/Icon.js +56 -43
- package/lib/icon/index.js +31 -15
- package/lib/icon/style/index.js +3 -7
- package/lib/icon/style/less.js +3 -7
- package/lib/image/Image.js +101 -107
- package/lib/image/index.js +31 -15
- package/lib/image/style/index.js +4 -9
- package/lib/image/style/less.js +4 -9
- package/lib/image-preview/ImagePreview.js +95 -106
- package/lib/image-preview/ImagePreviewItem.js +109 -131
- package/lib/image-preview/function-call.js +54 -54
- package/lib/image-preview/index.js +29 -10
- package/lib/image-preview/style/index.js +10 -21
- package/lib/image-preview/style/less.js +10 -21
- package/lib/image-preview/types.js +3 -3
- package/lib/index-anchor/IndexAnchor.js +63 -64
- package/lib/index-anchor/index.js +31 -15
- package/lib/index-anchor/style/index.js +3 -7
- package/lib/index-anchor/style/less.js +3 -7
- package/lib/index-bar/IndexBar.js +108 -122
- package/lib/index-bar/index.js +31 -15
- package/lib/index-bar/style/index.js +2 -5
- package/lib/index-bar/style/less.js +2 -5
- package/lib/index-bar/types.js +3 -3
- package/lib/index.css +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +288 -791
- package/lib/lazyload/index.js +29 -10
- package/lib/lazyload/style/index.js +1 -3
- package/lib/lazyload/style/less.js +1 -3
- package/lib/lazyload/vue-lazyload/index.js +39 -43
- package/lib/lazyload/vue-lazyload/lazy-component.js +35 -26
- package/lib/lazyload/vue-lazyload/lazy-container.js +50 -63
- package/lib/lazyload/vue-lazyload/lazy-image.js +43 -55
- package/lib/lazyload/vue-lazyload/lazy.js +149 -301
- package/lib/lazyload/vue-lazyload/listener.js +73 -140
- package/lib/lazyload/vue-lazyload/util.js +82 -109
- package/lib/list/List.js +88 -97
- package/lib/list/index.js +31 -15
- package/lib/list/style/index.js +3 -7
- package/lib/list/style/less.js +3 -7
- package/lib/list/types.js +3 -3
- package/lib/loading/Loading.js +56 -45
- package/lib/loading/index.js +31 -15
- package/lib/loading/style/index.js +2 -5
- package/lib/loading/style/less.js +2 -5
- package/lib/locale/index.js +38 -32
- package/lib/locale/lang/de-DE-formal.js +55 -50
- package/lib/locale/lang/de-DE.js +55 -50
- package/lib/locale/lang/en-US.js +55 -50
- package/lib/locale/lang/es-ES.js +55 -50
- package/lib/locale/lang/fr-FR.js +55 -50
- package/lib/locale/lang/ja-JP.js +56 -51
- package/lib/locale/lang/nb-NO.js +55 -50
- package/lib/locale/lang/pt-BR.js +55 -50
- package/lib/locale/lang/ro-RO.js +55 -50
- package/lib/locale/lang/ru-RU.js +55 -50
- package/lib/locale/lang/th-TH.js +56 -51
- package/lib/locale/lang/tr-TR.js +55 -50
- package/lib/locale/lang/zh-CN.js +56 -51
- package/lib/locale/lang/zh-HK.js +56 -51
- package/lib/locale/lang/zh-TW.js +56 -51
- package/lib/locale/style/index.js +1 -3
- package/lib/locale/style/less.js +1 -3
- package/lib/nav-bar/NavBar.js +69 -69
- package/lib/nav-bar/index.js +31 -15
- package/lib/nav-bar/style/index.js +4 -9
- package/lib/nav-bar/style/less.js +4 -9
- package/lib/notice-bar/NoticeBar.js +99 -111
- package/lib/notice-bar/index.js +31 -15
- package/lib/notice-bar/style/index.js +4 -9
- package/lib/notice-bar/style/less.js +4 -9
- package/lib/notice-bar/types.js +3 -3
- package/lib/notify/Notify.js +45 -35
- package/lib/notify/function-call.js +55 -55
- package/lib/notify/index.js +29 -10
- package/lib/notify/style/index.js +6 -13
- package/lib/notify/style/less.js +6 -13
- package/lib/notify/types.js +3 -3
- package/lib/number-keyboard/NumberKeyboard.js +126 -148
- package/lib/number-keyboard/NumberKeyboardKey.js +62 -63
- package/lib/number-keyboard/index.js +31 -15
- package/lib/number-keyboard/style/index.js +3 -7
- package/lib/number-keyboard/style/less.js +3 -7
- package/lib/overlay/Overlay.js +52 -42
- package/lib/overlay/index.js +31 -15
- package/lib/overlay/style/index.js +2 -5
- package/lib/overlay/style/less.js +2 -5
- package/lib/pagination/Pagination.js +102 -110
- package/lib/pagination/index.js +31 -15
- package/lib/pagination/style/index.js +2 -5
- package/lib/pagination/style/less.js +2 -5
- package/lib/password-input/PasswordInput.js +65 -58
- package/lib/password-input/index.js +31 -15
- package/lib/password-input/style/index.js +2 -5
- package/lib/password-input/style/less.js +2 -5
- package/lib/picker/Picker.js +167 -231
- package/lib/picker/PickerColumn.d.ts +3 -2
- package/lib/picker/PickerColumn.js +128 -164
- package/lib/picker/index.js +31 -15
- package/lib/picker/style/index.js +3 -7
- package/lib/picker/style/less.js +3 -7
- package/lib/picker/types.d.ts +13 -0
- package/lib/picker/types.js +3 -3
- package/lib/popover/Popover.js +111 -116
- package/lib/popover/index.css +1 -1
- package/lib/popover/index.js +31 -15
- package/lib/popover/index.less +8 -4
- package/lib/popover/style/index.js +6 -13
- package/lib/popover/style/less.js +6 -13
- package/lib/popover/types.js +3 -3
- package/lib/popup/Popup.js +103 -117
- package/lib/popup/index.js +31 -15
- package/lib/popup/shared.js +37 -30
- package/lib/popup/style/index.js +5 -11
- package/lib/popup/style/less.js +5 -11
- package/lib/popup/types.js +3 -3
- package/lib/progress/Progress.js +53 -41
- package/lib/progress/index.js +31 -15
- package/lib/progress/style/index.js +2 -5
- package/lib/progress/style/less.js +2 -5
- package/lib/progress/types.js +3 -3
- package/lib/pull-refresh/PullRefresh.js +99 -118
- package/lib/pull-refresh/index.js +31 -15
- package/lib/pull-refresh/style/index.js +3 -7
- package/lib/pull-refresh/style/less.js +3 -7
- package/lib/radio/Radio.js +48 -47
- package/lib/radio/index.js +31 -15
- package/lib/radio/style/index.js +6 -13
- package/lib/radio/style/less.js +6 -13
- package/lib/radio-group/RadioGroup.js +54 -40
- package/lib/radio-group/index.js +31 -15
- package/lib/radio-group/style/index.js +2 -5
- package/lib/radio-group/style/less.js +2 -5
- package/lib/rate/Rate.js +88 -102
- package/lib/rate/index.js +31 -15
- package/lib/rate/style/index.js +4 -9
- package/lib/rate/style/less.js +4 -9
- package/lib/row/Row.js +68 -55
- package/lib/row/index.js +31 -15
- package/lib/row/style/index.js +2 -5
- package/lib/row/style/less.js +2 -5
- package/lib/search/Search.js +95 -106
- package/lib/search/index.js +31 -15
- package/lib/search/style/index.js +6 -13
- package/lib/search/style/less.js +6 -13
- package/lib/search/types.js +3 -3
- package/lib/share-sheet/ShareSheet.js +81 -88
- package/lib/share-sheet/index.js +31 -15
- package/lib/share-sheet/style/index.js +6 -13
- package/lib/share-sheet/style/less.js +6 -13
- package/lib/sidebar/Sidebar.js +54 -41
- package/lib/sidebar/index.js +31 -15
- package/lib/sidebar/style/index.js +2 -5
- package/lib/sidebar/style/less.js +2 -5
- package/lib/sidebar-item/SidebarItem.js +55 -53
- package/lib/sidebar-item/index.js +31 -15
- package/lib/sidebar-item/style/index.js +4 -9
- package/lib/sidebar-item/style/less.js +4 -9
- package/lib/skeleton/Skeleton.js +61 -55
- package/lib/skeleton/index.js +31 -15
- package/lib/skeleton/style/index.js +2 -5
- package/lib/skeleton/style/less.js +2 -5
- package/lib/slider/Slider.js +138 -185
- package/lib/slider/index.js +31 -15
- package/lib/slider/style/index.js +2 -5
- package/lib/slider/style/less.js +2 -5
- package/lib/step/Step.js +79 -89
- package/lib/step/index.js +31 -15
- package/lib/step/style/index.js +5 -11
- package/lib/step/style/less.js +5 -11
- package/lib/stepper/Stepper.js +134 -162
- package/lib/stepper/index.js +31 -15
- package/lib/stepper/style/index.js +2 -5
- package/lib/stepper/style/less.js +2 -5
- package/lib/steps/Steps.js +54 -40
- package/lib/steps/index.js +31 -15
- package/lib/steps/style/index.js +2 -5
- package/lib/steps/style/less.js +2 -5
- package/lib/sticky/Sticky.js +86 -89
- package/lib/sticky/index.js +31 -15
- package/lib/sticky/style/index.js +2 -5
- package/lib/sticky/style/less.js +2 -5
- package/lib/submit-bar/SubmitBar.js +80 -73
- package/lib/submit-bar/index.js +31 -15
- package/lib/submit-bar/style/index.js +6 -13
- package/lib/submit-bar/style/less.js +6 -13
- package/lib/swipe/Swipe.js +172 -229
- package/lib/swipe/index.js +31 -15
- package/lib/swipe/style/index.js +2 -5
- package/lib/swipe/style/less.js +2 -5
- package/lib/swipe/types.js +3 -3
- package/lib/swipe-cell/SwipeCell.js +92 -109
- package/lib/swipe-cell/index.js +31 -15
- package/lib/swipe-cell/style/index.js +2 -5
- package/lib/swipe-cell/style/less.js +2 -5
- package/lib/swipe-cell/types.js +3 -3
- package/lib/swipe-item/SwipeItem.js +67 -67
- package/lib/swipe-item/index.js +31 -15
- package/lib/swipe-item/style/index.js +3 -7
- package/lib/swipe-item/style/less.js +3 -7
- package/lib/switch/Switch.js +60 -52
- package/lib/switch/index.js +31 -15
- package/lib/switch/style/index.js +3 -7
- package/lib/switch/style/less.js +3 -7
- package/lib/tab/Tab.js +79 -84
- package/lib/tab/index.js +31 -15
- package/lib/tab/style/index.js +7 -15
- package/lib/tab/style/less.js +7 -15
- package/lib/tabbar/Tabbar.js +64 -61
- package/lib/tabbar/index.js +31 -15
- package/lib/tabbar/style/index.js +2 -5
- package/lib/tabbar/style/less.js +2 -5
- package/lib/tabbar-item/TabbarItem.js +78 -83
- package/lib/tabbar-item/index.js +31 -15
- package/lib/tabbar-item/style/index.js +5 -11
- package/lib/tabbar-item/style/less.js +5 -11
- package/lib/tabs/Tabs.js +194 -252
- package/lib/tabs/TabsContent.js +54 -47
- package/lib/tabs/TabsTitle.js +55 -51
- package/lib/tabs/index.js +31 -15
- package/lib/tabs/style/index.js +5 -11
- package/lib/tabs/style/less.js +5 -11
- package/lib/tabs/types.js +3 -3
- package/lib/tabs/utils.js +41 -31
- package/lib/tag/Tag.js +53 -46
- package/lib/tag/index.js +31 -15
- package/lib/tag/style/index.js +4 -9
- package/lib/tag/style/less.js +4 -9
- package/lib/toast/Toast.js +78 -82
- package/lib/toast/function-call.js +90 -105
- package/lib/toast/index.js +29 -10
- package/lib/toast/lock-click.js +14 -11
- package/lib/toast/style/index.js +7 -15
- package/lib/toast/style/less.js +7 -15
- package/lib/toast/types.js +3 -3
- package/lib/tree-select/TreeSelect.js +70 -74
- package/lib/tree-select/index.js +31 -15
- package/lib/tree-select/style/index.js +6 -13
- package/lib/tree-select/style/less.js +6 -13
- package/lib/uploader/Uploader.js +133 -173
- package/lib/uploader/UploaderPreviewItem.js +86 -87
- package/lib/uploader/index.js +31 -15
- package/lib/uploader/style/index.js +11 -23
- package/lib/uploader/style/less.js +11 -23
- package/lib/uploader/types.js +3 -3
- package/lib/uploader/utils.js +55 -62
- package/lib/utils/basic.js +25 -27
- package/lib/utils/constant.js +27 -22
- package/lib/utils/create.js +53 -56
- package/lib/utils/deep-assign.js +33 -20
- package/lib/utils/deep-clone.js +33 -16
- package/lib/utils/dom.js +52 -60
- package/lib/utils/format.js +79 -113
- package/lib/utils/index.js +28 -75
- package/lib/utils/interceptor.js +38 -23
- package/lib/utils/mount-component.js +39 -34
- package/lib/utils/props.js +25 -35
- package/lib/utils/validate.js +42 -39
- package/lib/utils/with-install.js +31 -14
- package/lib/vant.cjs.js +5635 -5743
- package/lib/vant.cjs.min.js +1 -1
- package/lib/vant.es.js +5635 -5743
- package/lib/vant.es.min.js +5635 -5743
- package/lib/vant.js +5518 -5626
- package/lib/vant.min.js +1 -1
- package/package.json +3 -4
- package/vetur/attributes.json +163 -163
- package/vetur/tags.json +52 -52
- package/vetur/web-types.json +595 -595
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.4.
|
5
|
+
"version": "3.4.1",
|
6
6
|
"contributions": {
|
7
7
|
"html": {
|
8
8
|
"tags": [
|
@@ -253,6 +253,261 @@
|
|
253
253
|
}
|
254
254
|
]
|
255
255
|
},
|
256
|
+
{
|
257
|
+
"name": "van-action-sheet",
|
258
|
+
"slots": [
|
259
|
+
{
|
260
|
+
"name": "default",
|
261
|
+
"description": "自定义面板的展示内容"
|
262
|
+
},
|
263
|
+
{
|
264
|
+
"name": "description",
|
265
|
+
"description": "自定义描述文案"
|
266
|
+
},
|
267
|
+
{
|
268
|
+
"name": "cancel",
|
269
|
+
"description": "自定义取消按钮内容"
|
270
|
+
},
|
271
|
+
{
|
272
|
+
"name": "action",
|
273
|
+
"description": "自定义选项内容"
|
274
|
+
}
|
275
|
+
],
|
276
|
+
"events": [
|
277
|
+
{
|
278
|
+
"name": "select",
|
279
|
+
"description": "点击选项时触发,禁用或加载状态下不会触发"
|
280
|
+
},
|
281
|
+
{
|
282
|
+
"name": "cancel",
|
283
|
+
"description": "点击取消按钮时触发"
|
284
|
+
},
|
285
|
+
{
|
286
|
+
"name": "open",
|
287
|
+
"description": "打开面板时触发"
|
288
|
+
},
|
289
|
+
{
|
290
|
+
"name": "close",
|
291
|
+
"description": "关闭面板时触发"
|
292
|
+
},
|
293
|
+
{
|
294
|
+
"name": "opened",
|
295
|
+
"description": "打开面板且动画结束后触发"
|
296
|
+
},
|
297
|
+
{
|
298
|
+
"name": "closed",
|
299
|
+
"description": "关闭面板且动画结束后触发"
|
300
|
+
},
|
301
|
+
{
|
302
|
+
"name": "click-overlay",
|
303
|
+
"description": "点击遮罩层时触发"
|
304
|
+
}
|
305
|
+
],
|
306
|
+
"attributes": [
|
307
|
+
{
|
308
|
+
"name": "v-model:show",
|
309
|
+
"default": "`false`",
|
310
|
+
"description": "是否显示动作面板",
|
311
|
+
"options": [],
|
312
|
+
"value": {
|
313
|
+
"type": "boolean",
|
314
|
+
"kind": "expression"
|
315
|
+
}
|
316
|
+
},
|
317
|
+
{
|
318
|
+
"name": "actions",
|
319
|
+
"default": "`[]`",
|
320
|
+
"description": "面板选项列表",
|
321
|
+
"options": [],
|
322
|
+
"value": {
|
323
|
+
"type": "ActionSheetAction[]",
|
324
|
+
"kind": "expression"
|
325
|
+
}
|
326
|
+
},
|
327
|
+
{
|
328
|
+
"name": "title",
|
329
|
+
"default": "-",
|
330
|
+
"description": "顶部标题",
|
331
|
+
"options": [],
|
332
|
+
"value": {
|
333
|
+
"type": "string",
|
334
|
+
"kind": "expression"
|
335
|
+
}
|
336
|
+
},
|
337
|
+
{
|
338
|
+
"name": "cancel-text",
|
339
|
+
"default": "-",
|
340
|
+
"description": "取消按钮文字",
|
341
|
+
"options": [],
|
342
|
+
"value": {
|
343
|
+
"type": "string",
|
344
|
+
"kind": "expression"
|
345
|
+
}
|
346
|
+
},
|
347
|
+
{
|
348
|
+
"name": "description",
|
349
|
+
"default": "-",
|
350
|
+
"description": "选项上方的描述信息",
|
351
|
+
"options": [],
|
352
|
+
"value": {
|
353
|
+
"type": "string",
|
354
|
+
"kind": "expression"
|
355
|
+
}
|
356
|
+
},
|
357
|
+
{
|
358
|
+
"name": "closeable",
|
359
|
+
"default": "`true`",
|
360
|
+
"description": "是否显示关闭图标",
|
361
|
+
"options": [],
|
362
|
+
"value": {
|
363
|
+
"type": "boolean",
|
364
|
+
"kind": "expression"
|
365
|
+
}
|
366
|
+
},
|
367
|
+
{
|
368
|
+
"name": "close-icon",
|
369
|
+
"default": "`cross`",
|
370
|
+
"description": "关闭图标名称或图片链接,等同于 Icon 组件的 [name 属性](#/zh-CN/icon#props)",
|
371
|
+
"options": [],
|
372
|
+
"value": {
|
373
|
+
"type": "string",
|
374
|
+
"kind": "expression"
|
375
|
+
}
|
376
|
+
},
|
377
|
+
{
|
378
|
+
"name": "duration",
|
379
|
+
"default": "`0.3`",
|
380
|
+
"description": "动画时长,单位秒,设置为 0 可以禁用动画",
|
381
|
+
"options": [],
|
382
|
+
"value": {
|
383
|
+
"type": "number | string",
|
384
|
+
"kind": "expression"
|
385
|
+
}
|
386
|
+
},
|
387
|
+
{
|
388
|
+
"name": "round",
|
389
|
+
"default": "`true`",
|
390
|
+
"description": "是否显示圆角",
|
391
|
+
"options": [],
|
392
|
+
"value": {
|
393
|
+
"type": "boolean",
|
394
|
+
"kind": "expression"
|
395
|
+
}
|
396
|
+
},
|
397
|
+
{
|
398
|
+
"name": "overlay",
|
399
|
+
"default": "`true`",
|
400
|
+
"description": "是否显示遮罩层",
|
401
|
+
"options": [],
|
402
|
+
"value": {
|
403
|
+
"type": "boolean",
|
404
|
+
"kind": "expression"
|
405
|
+
}
|
406
|
+
},
|
407
|
+
{
|
408
|
+
"name": "overlay-class",
|
409
|
+
"default": "object_",
|
410
|
+
"description": "自定义遮罩层类名",
|
411
|
+
"options": [
|
412
|
+
"-"
|
413
|
+
],
|
414
|
+
"value": {
|
415
|
+
"type": "string | Array \\",
|
416
|
+
"kind": "expression"
|
417
|
+
}
|
418
|
+
},
|
419
|
+
{
|
420
|
+
"name": "overlay-style",
|
421
|
+
"default": "-",
|
422
|
+
"description": "自定义遮罩层样式",
|
423
|
+
"options": [],
|
424
|
+
"value": {
|
425
|
+
"type": "object",
|
426
|
+
"kind": "expression"
|
427
|
+
}
|
428
|
+
},
|
429
|
+
{
|
430
|
+
"name": "lock-scroll",
|
431
|
+
"default": "`true`",
|
432
|
+
"description": "是否锁定背景滚动",
|
433
|
+
"options": [],
|
434
|
+
"value": {
|
435
|
+
"type": "boolean",
|
436
|
+
"kind": "expression"
|
437
|
+
}
|
438
|
+
},
|
439
|
+
{
|
440
|
+
"name": "lazy-render",
|
441
|
+
"default": "`true`",
|
442
|
+
"description": "是否在显示弹层时才渲染节点",
|
443
|
+
"options": [],
|
444
|
+
"value": {
|
445
|
+
"type": "boolean",
|
446
|
+
"kind": "expression"
|
447
|
+
}
|
448
|
+
},
|
449
|
+
{
|
450
|
+
"name": "close-on-popstate",
|
451
|
+
"default": "`true`",
|
452
|
+
"description": "是否在页面回退时自动关闭",
|
453
|
+
"options": [],
|
454
|
+
"value": {
|
455
|
+
"type": "boolean",
|
456
|
+
"kind": "expression"
|
457
|
+
}
|
458
|
+
},
|
459
|
+
{
|
460
|
+
"name": "close-on-click-action",
|
461
|
+
"default": "`false`",
|
462
|
+
"description": "是否在点击选项后关闭",
|
463
|
+
"options": [],
|
464
|
+
"value": {
|
465
|
+
"type": "boolean",
|
466
|
+
"kind": "expression"
|
467
|
+
}
|
468
|
+
},
|
469
|
+
{
|
470
|
+
"name": "close-on-click-overlay",
|
471
|
+
"default": "`true`",
|
472
|
+
"description": "是否在点击遮罩层后关闭",
|
473
|
+
"options": [],
|
474
|
+
"value": {
|
475
|
+
"type": "boolean",
|
476
|
+
"kind": "expression"
|
477
|
+
}
|
478
|
+
},
|
479
|
+
{
|
480
|
+
"name": "safe-area-inset-bottom",
|
481
|
+
"default": "`true`",
|
482
|
+
"description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei)",
|
483
|
+
"options": [],
|
484
|
+
"value": {
|
485
|
+
"type": "boolean",
|
486
|
+
"kind": "expression"
|
487
|
+
}
|
488
|
+
},
|
489
|
+
{
|
490
|
+
"name": "teleport",
|
491
|
+
"default": "-",
|
492
|
+
"description": "指定挂载的节点,等同于 Teleport 组件的 [to 属性](https://v3.cn.vuejs.org/api/built-in-components.html#teleport)",
|
493
|
+
"options": [],
|
494
|
+
"value": {
|
495
|
+
"type": "string | Element",
|
496
|
+
"kind": "expression"
|
497
|
+
}
|
498
|
+
},
|
499
|
+
{
|
500
|
+
"name": "before-close",
|
501
|
+
"default": "-",
|
502
|
+
"description": "关闭前的回调函数,返回 `false` 可阻止关闭,支持返回 Promise",
|
503
|
+
"options": [],
|
504
|
+
"value": {
|
505
|
+
"type": "(action: string) => boolean | Promise\\<boolean\\>",
|
506
|
+
"kind": "expression"
|
507
|
+
}
|
508
|
+
}
|
509
|
+
]
|
510
|
+
},
|
256
511
|
{
|
257
512
|
"name": "van-address-list",
|
258
513
|
"slots": [
|
@@ -812,261 +1067,6 @@
|
|
812
1067
|
}
|
813
1068
|
]
|
814
1069
|
},
|
815
|
-
{
|
816
|
-
"name": "van-action-sheet",
|
817
|
-
"slots": [
|
818
|
-
{
|
819
|
-
"name": "default",
|
820
|
-
"description": "自定义面板的展示内容"
|
821
|
-
},
|
822
|
-
{
|
823
|
-
"name": "description",
|
824
|
-
"description": "自定义描述文案"
|
825
|
-
},
|
826
|
-
{
|
827
|
-
"name": "cancel",
|
828
|
-
"description": "自定义取消按钮内容"
|
829
|
-
},
|
830
|
-
{
|
831
|
-
"name": "action",
|
832
|
-
"description": "自定义选项内容"
|
833
|
-
}
|
834
|
-
],
|
835
|
-
"events": [
|
836
|
-
{
|
837
|
-
"name": "select",
|
838
|
-
"description": "点击选项时触发,禁用或加载状态下不会触发"
|
839
|
-
},
|
840
|
-
{
|
841
|
-
"name": "cancel",
|
842
|
-
"description": "点击取消按钮时触发"
|
843
|
-
},
|
844
|
-
{
|
845
|
-
"name": "open",
|
846
|
-
"description": "打开面板时触发"
|
847
|
-
},
|
848
|
-
{
|
849
|
-
"name": "close",
|
850
|
-
"description": "关闭面板时触发"
|
851
|
-
},
|
852
|
-
{
|
853
|
-
"name": "opened",
|
854
|
-
"description": "打开面板且动画结束后触发"
|
855
|
-
},
|
856
|
-
{
|
857
|
-
"name": "closed",
|
858
|
-
"description": "关闭面板且动画结束后触发"
|
859
|
-
},
|
860
|
-
{
|
861
|
-
"name": "click-overlay",
|
862
|
-
"description": "点击遮罩层时触发"
|
863
|
-
}
|
864
|
-
],
|
865
|
-
"attributes": [
|
866
|
-
{
|
867
|
-
"name": "v-model:show",
|
868
|
-
"default": "`false`",
|
869
|
-
"description": "是否显示动作面板",
|
870
|
-
"options": [],
|
871
|
-
"value": {
|
872
|
-
"type": "boolean",
|
873
|
-
"kind": "expression"
|
874
|
-
}
|
875
|
-
},
|
876
|
-
{
|
877
|
-
"name": "actions",
|
878
|
-
"default": "`[]`",
|
879
|
-
"description": "面板选项列表",
|
880
|
-
"options": [],
|
881
|
-
"value": {
|
882
|
-
"type": "ActionSheetAction[]",
|
883
|
-
"kind": "expression"
|
884
|
-
}
|
885
|
-
},
|
886
|
-
{
|
887
|
-
"name": "title",
|
888
|
-
"default": "-",
|
889
|
-
"description": "顶部标题",
|
890
|
-
"options": [],
|
891
|
-
"value": {
|
892
|
-
"type": "string",
|
893
|
-
"kind": "expression"
|
894
|
-
}
|
895
|
-
},
|
896
|
-
{
|
897
|
-
"name": "cancel-text",
|
898
|
-
"default": "-",
|
899
|
-
"description": "取消按钮文字",
|
900
|
-
"options": [],
|
901
|
-
"value": {
|
902
|
-
"type": "string",
|
903
|
-
"kind": "expression"
|
904
|
-
}
|
905
|
-
},
|
906
|
-
{
|
907
|
-
"name": "description",
|
908
|
-
"default": "-",
|
909
|
-
"description": "选项上方的描述信息",
|
910
|
-
"options": [],
|
911
|
-
"value": {
|
912
|
-
"type": "string",
|
913
|
-
"kind": "expression"
|
914
|
-
}
|
915
|
-
},
|
916
|
-
{
|
917
|
-
"name": "closeable",
|
918
|
-
"default": "`true`",
|
919
|
-
"description": "是否显示关闭图标",
|
920
|
-
"options": [],
|
921
|
-
"value": {
|
922
|
-
"type": "boolean",
|
923
|
-
"kind": "expression"
|
924
|
-
}
|
925
|
-
},
|
926
|
-
{
|
927
|
-
"name": "close-icon",
|
928
|
-
"default": "`cross`",
|
929
|
-
"description": "关闭图标名称或图片链接,等同于 Icon 组件的 [name 属性](#/zh-CN/icon#props)",
|
930
|
-
"options": [],
|
931
|
-
"value": {
|
932
|
-
"type": "string",
|
933
|
-
"kind": "expression"
|
934
|
-
}
|
935
|
-
},
|
936
|
-
{
|
937
|
-
"name": "duration",
|
938
|
-
"default": "`0.3`",
|
939
|
-
"description": "动画时长,单位秒,设置为 0 可以禁用动画",
|
940
|
-
"options": [],
|
941
|
-
"value": {
|
942
|
-
"type": "number | string",
|
943
|
-
"kind": "expression"
|
944
|
-
}
|
945
|
-
},
|
946
|
-
{
|
947
|
-
"name": "round",
|
948
|
-
"default": "`true`",
|
949
|
-
"description": "是否显示圆角",
|
950
|
-
"options": [],
|
951
|
-
"value": {
|
952
|
-
"type": "boolean",
|
953
|
-
"kind": "expression"
|
954
|
-
}
|
955
|
-
},
|
956
|
-
{
|
957
|
-
"name": "overlay",
|
958
|
-
"default": "`true`",
|
959
|
-
"description": "是否显示遮罩层",
|
960
|
-
"options": [],
|
961
|
-
"value": {
|
962
|
-
"type": "boolean",
|
963
|
-
"kind": "expression"
|
964
|
-
}
|
965
|
-
},
|
966
|
-
{
|
967
|
-
"name": "overlay-class",
|
968
|
-
"default": "object_",
|
969
|
-
"description": "自定义遮罩层类名",
|
970
|
-
"options": [
|
971
|
-
"-"
|
972
|
-
],
|
973
|
-
"value": {
|
974
|
-
"type": "string | Array \\",
|
975
|
-
"kind": "expression"
|
976
|
-
}
|
977
|
-
},
|
978
|
-
{
|
979
|
-
"name": "overlay-style",
|
980
|
-
"default": "-",
|
981
|
-
"description": "自定义遮罩层样式",
|
982
|
-
"options": [],
|
983
|
-
"value": {
|
984
|
-
"type": "object",
|
985
|
-
"kind": "expression"
|
986
|
-
}
|
987
|
-
},
|
988
|
-
{
|
989
|
-
"name": "lock-scroll",
|
990
|
-
"default": "`true`",
|
991
|
-
"description": "是否锁定背景滚动",
|
992
|
-
"options": [],
|
993
|
-
"value": {
|
994
|
-
"type": "boolean",
|
995
|
-
"kind": "expression"
|
996
|
-
}
|
997
|
-
},
|
998
|
-
{
|
999
|
-
"name": "lazy-render",
|
1000
|
-
"default": "`true`",
|
1001
|
-
"description": "是否在显示弹层时才渲染节点",
|
1002
|
-
"options": [],
|
1003
|
-
"value": {
|
1004
|
-
"type": "boolean",
|
1005
|
-
"kind": "expression"
|
1006
|
-
}
|
1007
|
-
},
|
1008
|
-
{
|
1009
|
-
"name": "close-on-popstate",
|
1010
|
-
"default": "`true`",
|
1011
|
-
"description": "是否在页面回退时自动关闭",
|
1012
|
-
"options": [],
|
1013
|
-
"value": {
|
1014
|
-
"type": "boolean",
|
1015
|
-
"kind": "expression"
|
1016
|
-
}
|
1017
|
-
},
|
1018
|
-
{
|
1019
|
-
"name": "close-on-click-action",
|
1020
|
-
"default": "`false`",
|
1021
|
-
"description": "是否在点击选项后关闭",
|
1022
|
-
"options": [],
|
1023
|
-
"value": {
|
1024
|
-
"type": "boolean",
|
1025
|
-
"kind": "expression"
|
1026
|
-
}
|
1027
|
-
},
|
1028
|
-
{
|
1029
|
-
"name": "close-on-click-overlay",
|
1030
|
-
"default": "`true`",
|
1031
|
-
"description": "是否在点击遮罩层后关闭",
|
1032
|
-
"options": [],
|
1033
|
-
"value": {
|
1034
|
-
"type": "boolean",
|
1035
|
-
"kind": "expression"
|
1036
|
-
}
|
1037
|
-
},
|
1038
|
-
{
|
1039
|
-
"name": "safe-area-inset-bottom",
|
1040
|
-
"default": "`true`",
|
1041
|
-
"description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei)",
|
1042
|
-
"options": [],
|
1043
|
-
"value": {
|
1044
|
-
"type": "boolean",
|
1045
|
-
"kind": "expression"
|
1046
|
-
}
|
1047
|
-
},
|
1048
|
-
{
|
1049
|
-
"name": "teleport",
|
1050
|
-
"default": "-",
|
1051
|
-
"description": "指定挂载的节点,等同于 Teleport 组件的 [to 属性](https://v3.cn.vuejs.org/api/built-in-components.html#teleport)",
|
1052
|
-
"options": [],
|
1053
|
-
"value": {
|
1054
|
-
"type": "string | Element",
|
1055
|
-
"kind": "expression"
|
1056
|
-
}
|
1057
|
-
},
|
1058
|
-
{
|
1059
|
-
"name": "before-close",
|
1060
|
-
"default": "-",
|
1061
|
-
"description": "关闭前的回调函数,返回 `false` 可阻止关闭,支持返回 Promise",
|
1062
|
-
"options": [],
|
1063
|
-
"value": {
|
1064
|
-
"type": "(action: string) => boolean | Promise\\<boolean\\>",
|
1065
|
-
"kind": "expression"
|
1066
|
-
}
|
1067
|
-
}
|
1068
|
-
]
|
1069
|
-
},
|
1070
1070
|
{
|
1071
1071
|
"name": "van-badge",
|
1072
1072
|
"slots": [
|
@@ -1293,89 +1293,260 @@
|
|
1293
1293
|
}
|
1294
1294
|
},
|
1295
1295
|
{
|
1296
|
-
"name": "square",
|
1297
|
-
"default": "`false`",
|
1298
|
-
"description": "是否为方形按钮",
|
1296
|
+
"name": "square",
|
1297
|
+
"default": "`false`",
|
1298
|
+
"description": "是否为方形按钮",
|
1299
|
+
"options": [],
|
1300
|
+
"value": {
|
1301
|
+
"type": "boolean",
|
1302
|
+
"kind": "expression"
|
1303
|
+
}
|
1304
|
+
},
|
1305
|
+
{
|
1306
|
+
"name": "round",
|
1307
|
+
"default": "`false`",
|
1308
|
+
"description": "是否为圆形按钮",
|
1309
|
+
"options": [],
|
1310
|
+
"value": {
|
1311
|
+
"type": "boolean",
|
1312
|
+
"kind": "expression"
|
1313
|
+
}
|
1314
|
+
},
|
1315
|
+
{
|
1316
|
+
"name": "disabled",
|
1317
|
+
"default": "`false`",
|
1318
|
+
"description": "是否禁用按钮",
|
1319
|
+
"options": [],
|
1320
|
+
"value": {
|
1321
|
+
"type": "boolean",
|
1322
|
+
"kind": "expression"
|
1323
|
+
}
|
1324
|
+
},
|
1325
|
+
{
|
1326
|
+
"name": "hairline",
|
1327
|
+
"default": "`false`",
|
1328
|
+
"description": "是否使用 0.5px 边框",
|
1329
|
+
"options": [],
|
1330
|
+
"value": {
|
1331
|
+
"type": "boolean",
|
1332
|
+
"kind": "expression"
|
1333
|
+
}
|
1334
|
+
},
|
1335
|
+
{
|
1336
|
+
"name": "loading",
|
1337
|
+
"default": "`false`",
|
1338
|
+
"description": "是否显示为加载状态",
|
1339
|
+
"options": [],
|
1340
|
+
"value": {
|
1341
|
+
"type": "boolean",
|
1342
|
+
"kind": "expression"
|
1343
|
+
}
|
1344
|
+
},
|
1345
|
+
{
|
1346
|
+
"name": "loading-text",
|
1347
|
+
"default": "-",
|
1348
|
+
"description": "加载状态提示文字",
|
1349
|
+
"options": [],
|
1350
|
+
"value": {
|
1351
|
+
"type": "string",
|
1352
|
+
"kind": "expression"
|
1353
|
+
}
|
1354
|
+
},
|
1355
|
+
{
|
1356
|
+
"name": "loading-type",
|
1357
|
+
"default": "`circular`",
|
1358
|
+
"description": "[加载图标类型](#/zh-CN/loading),可选值为 `spinner`",
|
1359
|
+
"options": [],
|
1360
|
+
"value": {
|
1361
|
+
"type": "string",
|
1362
|
+
"kind": "expression"
|
1363
|
+
}
|
1364
|
+
},
|
1365
|
+
{
|
1366
|
+
"name": "loading-size",
|
1367
|
+
"default": "`20px`",
|
1368
|
+
"description": "加载图标大小,默认单位为 `px`",
|
1369
|
+
"options": [],
|
1370
|
+
"value": {
|
1371
|
+
"type": "number | string",
|
1372
|
+
"kind": "expression"
|
1373
|
+
}
|
1374
|
+
},
|
1375
|
+
{
|
1376
|
+
"name": "url",
|
1377
|
+
"default": "-",
|
1378
|
+
"description": "点击后跳转的链接地址",
|
1379
|
+
"options": [],
|
1380
|
+
"value": {
|
1381
|
+
"type": "string",
|
1382
|
+
"kind": "expression"
|
1383
|
+
}
|
1384
|
+
},
|
1385
|
+
{
|
1386
|
+
"name": "to",
|
1387
|
+
"default": "-",
|
1388
|
+
"description": "点击后跳转的目标路由对象,等同于 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to)",
|
1389
|
+
"options": [],
|
1390
|
+
"value": {
|
1391
|
+
"type": "string | object",
|
1392
|
+
"kind": "expression"
|
1393
|
+
}
|
1394
|
+
},
|
1395
|
+
{
|
1396
|
+
"name": "replace",
|
1397
|
+
"default": "`false`",
|
1398
|
+
"description": "是否在跳转时替换当前页面历史",
|
1399
|
+
"options": [],
|
1400
|
+
"value": {
|
1401
|
+
"type": "boolean",
|
1402
|
+
"kind": "expression"
|
1403
|
+
}
|
1404
|
+
}
|
1405
|
+
]
|
1406
|
+
},
|
1407
|
+
{
|
1408
|
+
"name": "van-card",
|
1409
|
+
"slots": [
|
1410
|
+
{
|
1411
|
+
"name": "title",
|
1412
|
+
"description": "自定义标题"
|
1413
|
+
},
|
1414
|
+
{
|
1415
|
+
"name": "desc",
|
1416
|
+
"description": "自定义描述"
|
1417
|
+
},
|
1418
|
+
{
|
1419
|
+
"name": "num",
|
1420
|
+
"description": "自定义数量"
|
1421
|
+
},
|
1422
|
+
{
|
1423
|
+
"name": "price",
|
1424
|
+
"description": "自定义价格"
|
1425
|
+
},
|
1426
|
+
{
|
1427
|
+
"name": "origin-price",
|
1428
|
+
"description": "自定义商品原价"
|
1429
|
+
},
|
1430
|
+
{
|
1431
|
+
"name": "price-top",
|
1432
|
+
"description": "自定义价格上方区域"
|
1433
|
+
},
|
1434
|
+
{
|
1435
|
+
"name": "bottom",
|
1436
|
+
"description": "自定义价格下方区域"
|
1437
|
+
},
|
1438
|
+
{
|
1439
|
+
"name": "thumb",
|
1440
|
+
"description": "自定义图片"
|
1441
|
+
},
|
1442
|
+
{
|
1443
|
+
"name": "tag",
|
1444
|
+
"description": "自定义图片角标"
|
1445
|
+
},
|
1446
|
+
{
|
1447
|
+
"name": "tags",
|
1448
|
+
"description": "自定义描述下方标签区域"
|
1449
|
+
},
|
1450
|
+
{
|
1451
|
+
"name": "footer",
|
1452
|
+
"description": "自定义右下角内容"
|
1453
|
+
}
|
1454
|
+
],
|
1455
|
+
"events": [
|
1456
|
+
{
|
1457
|
+
"name": "click",
|
1458
|
+
"description": "点击时触发"
|
1459
|
+
},
|
1460
|
+
{
|
1461
|
+
"name": "click-thumb",
|
1462
|
+
"description": "点击自定义图片时触发"
|
1463
|
+
}
|
1464
|
+
],
|
1465
|
+
"attributes": [
|
1466
|
+
{
|
1467
|
+
"name": "thumb",
|
1468
|
+
"default": "-",
|
1469
|
+
"description": "左侧图片 URL",
|
1299
1470
|
"options": [],
|
1300
1471
|
"value": {
|
1301
|
-
"type": "
|
1472
|
+
"type": "string",
|
1302
1473
|
"kind": "expression"
|
1303
1474
|
}
|
1304
1475
|
},
|
1305
1476
|
{
|
1306
|
-
"name": "
|
1307
|
-
"default": "
|
1308
|
-
"description": "
|
1477
|
+
"name": "title",
|
1478
|
+
"default": "-",
|
1479
|
+
"description": "标题",
|
1309
1480
|
"options": [],
|
1310
1481
|
"value": {
|
1311
|
-
"type": "
|
1482
|
+
"type": "string",
|
1312
1483
|
"kind": "expression"
|
1313
1484
|
}
|
1314
1485
|
},
|
1315
1486
|
{
|
1316
|
-
"name": "
|
1317
|
-
"default": "
|
1318
|
-
"description": "
|
1487
|
+
"name": "desc",
|
1488
|
+
"default": "-",
|
1489
|
+
"description": "描述",
|
1319
1490
|
"options": [],
|
1320
1491
|
"value": {
|
1321
|
-
"type": "
|
1492
|
+
"type": "string",
|
1322
1493
|
"kind": "expression"
|
1323
1494
|
}
|
1324
1495
|
},
|
1325
1496
|
{
|
1326
|
-
"name": "
|
1327
|
-
"default": "
|
1328
|
-
"description": "
|
1497
|
+
"name": "tag",
|
1498
|
+
"default": "-",
|
1499
|
+
"description": "图片角标",
|
1329
1500
|
"options": [],
|
1330
1501
|
"value": {
|
1331
|
-
"type": "
|
1502
|
+
"type": "string",
|
1332
1503
|
"kind": "expression"
|
1333
1504
|
}
|
1334
1505
|
},
|
1335
1506
|
{
|
1336
|
-
"name": "
|
1337
|
-
"default": "
|
1338
|
-
"description": "
|
1507
|
+
"name": "num",
|
1508
|
+
"default": "-",
|
1509
|
+
"description": "商品数量",
|
1339
1510
|
"options": [],
|
1340
1511
|
"value": {
|
1341
|
-
"type": "
|
1512
|
+
"type": "number | string",
|
1342
1513
|
"kind": "expression"
|
1343
1514
|
}
|
1344
1515
|
},
|
1345
1516
|
{
|
1346
|
-
"name": "
|
1517
|
+
"name": "price",
|
1347
1518
|
"default": "-",
|
1348
|
-
"description": "
|
1519
|
+
"description": "商品价格",
|
1349
1520
|
"options": [],
|
1350
1521
|
"value": {
|
1351
|
-
"type": "string",
|
1522
|
+
"type": "number | string",
|
1352
1523
|
"kind": "expression"
|
1353
1524
|
}
|
1354
1525
|
},
|
1355
1526
|
{
|
1356
|
-
"name": "
|
1357
|
-
"default": "
|
1358
|
-
"description": "
|
1527
|
+
"name": "origin-price",
|
1528
|
+
"default": "-",
|
1529
|
+
"description": "商品划线原价",
|
1359
1530
|
"options": [],
|
1360
1531
|
"value": {
|
1361
|
-
"type": "string",
|
1532
|
+
"type": "number | string",
|
1362
1533
|
"kind": "expression"
|
1363
1534
|
}
|
1364
1535
|
},
|
1365
1536
|
{
|
1366
|
-
"name": "
|
1367
|
-
"default": "`
|
1368
|
-
"description": "
|
1537
|
+
"name": "centered",
|
1538
|
+
"default": "`false`",
|
1539
|
+
"description": "内容是否垂直居中",
|
1369
1540
|
"options": [],
|
1370
1541
|
"value": {
|
1371
|
-
"type": "
|
1542
|
+
"type": "boolean",
|
1372
1543
|
"kind": "expression"
|
1373
1544
|
}
|
1374
1545
|
},
|
1375
1546
|
{
|
1376
|
-
"name": "
|
1377
|
-
"default": "
|
1378
|
-
"description": "
|
1547
|
+
"name": "currency",
|
1548
|
+
"default": "`¥`",
|
1549
|
+
"description": "货币符号",
|
1379
1550
|
"options": [],
|
1380
1551
|
"value": {
|
1381
1552
|
"type": "string",
|
@@ -1383,19 +1554,19 @@
|
|
1383
1554
|
}
|
1384
1555
|
},
|
1385
1556
|
{
|
1386
|
-
"name": "
|
1557
|
+
"name": "thumb-link",
|
1387
1558
|
"default": "-",
|
1388
|
-
"description": "
|
1559
|
+
"description": "点击左侧图片后跳转的链接地址",
|
1389
1560
|
"options": [],
|
1390
1561
|
"value": {
|
1391
|
-
"type": "string
|
1562
|
+
"type": "string",
|
1392
1563
|
"kind": "expression"
|
1393
1564
|
}
|
1394
1565
|
},
|
1395
1566
|
{
|
1396
|
-
"name": "
|
1567
|
+
"name": "lazy-load",
|
1397
1568
|
"default": "`false`",
|
1398
|
-
"description": "
|
1569
|
+
"description": "是否开启图片懒加载,须配合 [Lazyload](#/zh-CN/lazyload) 组件使用",
|
1399
1570
|
"options": [],
|
1400
1571
|
"value": {
|
1401
1572
|
"type": "boolean",
|
@@ -1699,209 +1870,38 @@
|
|
1699
1870
|
},
|
1700
1871
|
{
|
1701
1872
|
"name": "close-on-click-overlay",
|
1702
|
-
"default": "`true`",
|
1703
|
-
"description": "是否在点击遮罩层后关闭",
|
1704
|
-
"options": [],
|
1705
|
-
"value": {
|
1706
|
-
"type": "boolean",
|
1707
|
-
"kind": "expression"
|
1708
|
-
}
|
1709
|
-
},
|
1710
|
-
{
|
1711
|
-
"name": "safe-area-inset-bottom",
|
1712
|
-
"default": "`true`",
|
1713
|
-
"description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei)",
|
1714
|
-
"options": [],
|
1715
|
-
"value": {
|
1716
|
-
"type": "boolean",
|
1717
|
-
"kind": "expression"
|
1718
|
-
}
|
1719
|
-
},
|
1720
|
-
{
|
1721
|
-
"name": "teleport",
|
1722
|
-
"default": "-",
|
1723
|
-
"description": "指定挂载的节点,等同于 Teleport 组件的 [to 属性](https://v3.cn.vuejs.org/api/built-in-components.html#teleport)",
|
1724
|
-
"options": [],
|
1725
|
-
"value": {
|
1726
|
-
"type": "string | Element",
|
1727
|
-
"kind": "expression"
|
1728
|
-
}
|
1729
|
-
},
|
1730
|
-
{
|
1731
|
-
"name": "max-range",
|
1732
|
-
"default": "无限制",
|
1733
|
-
"description": "日期区间最多可选天数",
|
1734
|
-
"options": [],
|
1735
|
-
"value": {
|
1736
|
-
"type": "number | string",
|
1737
|
-
"kind": "expression"
|
1738
|
-
}
|
1739
|
-
},
|
1740
|
-
{
|
1741
|
-
"name": "range-prompt",
|
1742
|
-
"default": "`最多选择 xx 天`",
|
1743
|
-
"description": "范围选择超过最多可选天数时的提示文案",
|
1744
|
-
"options": [],
|
1745
|
-
"value": {
|
1746
|
-
"type": "string",
|
1747
|
-
"kind": "expression"
|
1748
|
-
}
|
1749
|
-
},
|
1750
|
-
{
|
1751
|
-
"name": "show-range-prompt",
|
1752
|
-
"default": "`true`",
|
1753
|
-
"description": "范围选择超过最多可选天数时,是否展示提示文案",
|
1754
|
-
"options": [],
|
1755
|
-
"value": {
|
1756
|
-
"type": "boolean",
|
1757
|
-
"kind": "expression"
|
1758
|
-
}
|
1759
|
-
},
|
1760
|
-
{
|
1761
|
-
"name": "allow-same-day",
|
1762
|
-
"default": "`false`",
|
1763
|
-
"description": "是否允许日期范围的起止时间为同一天",
|
1764
|
-
"options": [],
|
1765
|
-
"value": {
|
1766
|
-
"type": "boolean",
|
1767
|
-
"kind": "expression"
|
1768
|
-
}
|
1769
|
-
},
|
1770
|
-
{
|
1771
|
-
"name": "max-range",
|
1772
|
-
"default": "无限制",
|
1773
|
-
"description": "日期最多可选天数",
|
1774
|
-
"options": [],
|
1775
|
-
"value": {
|
1776
|
-
"type": "number | string",
|
1777
|
-
"kind": "expression"
|
1778
|
-
}
|
1779
|
-
},
|
1780
|
-
{
|
1781
|
-
"name": "range-prompt",
|
1782
|
-
"default": "`最多选择 xx 天`",
|
1783
|
-
"description": "选择超过最多可选天数时的提示文案",
|
1784
|
-
"options": [],
|
1785
|
-
"value": {
|
1786
|
-
"type": "string",
|
1787
|
-
"kind": "expression"
|
1788
|
-
}
|
1789
|
-
}
|
1790
|
-
]
|
1791
|
-
},
|
1792
|
-
{
|
1793
|
-
"name": "van-card",
|
1794
|
-
"slots": [
|
1795
|
-
{
|
1796
|
-
"name": "title",
|
1797
|
-
"description": "自定义标题"
|
1798
|
-
},
|
1799
|
-
{
|
1800
|
-
"name": "desc",
|
1801
|
-
"description": "自定义描述"
|
1802
|
-
},
|
1803
|
-
{
|
1804
|
-
"name": "num",
|
1805
|
-
"description": "自定义数量"
|
1806
|
-
},
|
1807
|
-
{
|
1808
|
-
"name": "price",
|
1809
|
-
"description": "自定义价格"
|
1810
|
-
},
|
1811
|
-
{
|
1812
|
-
"name": "origin-price",
|
1813
|
-
"description": "自定义商品原价"
|
1814
|
-
},
|
1815
|
-
{
|
1816
|
-
"name": "price-top",
|
1817
|
-
"description": "自定义价格上方区域"
|
1818
|
-
},
|
1819
|
-
{
|
1820
|
-
"name": "bottom",
|
1821
|
-
"description": "自定义价格下方区域"
|
1822
|
-
},
|
1823
|
-
{
|
1824
|
-
"name": "thumb",
|
1825
|
-
"description": "自定义图片"
|
1826
|
-
},
|
1827
|
-
{
|
1828
|
-
"name": "tag",
|
1829
|
-
"description": "自定义图片角标"
|
1830
|
-
},
|
1831
|
-
{
|
1832
|
-
"name": "tags",
|
1833
|
-
"description": "自定义描述下方标签区域"
|
1834
|
-
},
|
1835
|
-
{
|
1836
|
-
"name": "footer",
|
1837
|
-
"description": "自定义右下角内容"
|
1838
|
-
}
|
1839
|
-
],
|
1840
|
-
"events": [
|
1841
|
-
{
|
1842
|
-
"name": "click",
|
1843
|
-
"description": "点击时触发"
|
1844
|
-
},
|
1845
|
-
{
|
1846
|
-
"name": "click-thumb",
|
1847
|
-
"description": "点击自定义图片时触发"
|
1848
|
-
}
|
1849
|
-
],
|
1850
|
-
"attributes": [
|
1851
|
-
{
|
1852
|
-
"name": "thumb",
|
1853
|
-
"default": "-",
|
1854
|
-
"description": "左侧图片 URL",
|
1855
|
-
"options": [],
|
1856
|
-
"value": {
|
1857
|
-
"type": "string",
|
1858
|
-
"kind": "expression"
|
1859
|
-
}
|
1860
|
-
},
|
1861
|
-
{
|
1862
|
-
"name": "title",
|
1863
|
-
"default": "-",
|
1864
|
-
"description": "标题",
|
1865
|
-
"options": [],
|
1866
|
-
"value": {
|
1867
|
-
"type": "string",
|
1868
|
-
"kind": "expression"
|
1869
|
-
}
|
1870
|
-
},
|
1871
|
-
{
|
1872
|
-
"name": "desc",
|
1873
|
-
"default": "-",
|
1874
|
-
"description": "描述",
|
1873
|
+
"default": "`true`",
|
1874
|
+
"description": "是否在点击遮罩层后关闭",
|
1875
1875
|
"options": [],
|
1876
1876
|
"value": {
|
1877
|
-
"type": "
|
1877
|
+
"type": "boolean",
|
1878
1878
|
"kind": "expression"
|
1879
1879
|
}
|
1880
1880
|
},
|
1881
1881
|
{
|
1882
|
-
"name": "
|
1883
|
-
"default": "
|
1884
|
-
"description": "
|
1882
|
+
"name": "safe-area-inset-bottom",
|
1883
|
+
"default": "`true`",
|
1884
|
+
"description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei)",
|
1885
1885
|
"options": [],
|
1886
1886
|
"value": {
|
1887
|
-
"type": "
|
1887
|
+
"type": "boolean",
|
1888
1888
|
"kind": "expression"
|
1889
1889
|
}
|
1890
1890
|
},
|
1891
1891
|
{
|
1892
|
-
"name": "
|
1892
|
+
"name": "teleport",
|
1893
1893
|
"default": "-",
|
1894
|
-
"description": "
|
1894
|
+
"description": "指定挂载的节点,等同于 Teleport 组件的 [to 属性](https://v3.cn.vuejs.org/api/built-in-components.html#teleport)",
|
1895
1895
|
"options": [],
|
1896
1896
|
"value": {
|
1897
|
-
"type": "
|
1897
|
+
"type": "string | Element",
|
1898
1898
|
"kind": "expression"
|
1899
1899
|
}
|
1900
1900
|
},
|
1901
1901
|
{
|
1902
|
-
"name": "
|
1903
|
-
"default": "
|
1904
|
-
"description": "
|
1902
|
+
"name": "max-range",
|
1903
|
+
"default": "无限制",
|
1904
|
+
"description": "日期区间最多可选天数",
|
1905
1905
|
"options": [],
|
1906
1906
|
"value": {
|
1907
1907
|
"type": "number | string",
|
@@ -1909,19 +1909,19 @@
|
|
1909
1909
|
}
|
1910
1910
|
},
|
1911
1911
|
{
|
1912
|
-
"name": "
|
1913
|
-
"default": "
|
1914
|
-
"description": "
|
1912
|
+
"name": "range-prompt",
|
1913
|
+
"default": "`最多选择 xx 天`",
|
1914
|
+
"description": "范围选择超过最多可选天数时的提示文案",
|
1915
1915
|
"options": [],
|
1916
1916
|
"value": {
|
1917
|
-
"type": "
|
1917
|
+
"type": "string",
|
1918
1918
|
"kind": "expression"
|
1919
1919
|
}
|
1920
1920
|
},
|
1921
1921
|
{
|
1922
|
-
"name": "
|
1923
|
-
"default": "`
|
1924
|
-
"description": "
|
1922
|
+
"name": "show-range-prompt",
|
1923
|
+
"default": "`true`",
|
1924
|
+
"description": "范围选择超过最多可选天数时,是否展示提示文案",
|
1925
1925
|
"options": [],
|
1926
1926
|
"value": {
|
1927
1927
|
"type": "boolean",
|
@@ -1929,32 +1929,32 @@
|
|
1929
1929
|
}
|
1930
1930
|
},
|
1931
1931
|
{
|
1932
|
-
"name": "
|
1933
|
-
"default": "
|
1934
|
-
"description": "
|
1932
|
+
"name": "allow-same-day",
|
1933
|
+
"default": "`false`",
|
1934
|
+
"description": "是否允许日期范围的起止时间为同一天",
|
1935
1935
|
"options": [],
|
1936
1936
|
"value": {
|
1937
|
-
"type": "
|
1937
|
+
"type": "boolean",
|
1938
1938
|
"kind": "expression"
|
1939
1939
|
}
|
1940
1940
|
},
|
1941
1941
|
{
|
1942
|
-
"name": "
|
1943
|
-
"default": "
|
1944
|
-
"description": "
|
1942
|
+
"name": "max-range",
|
1943
|
+
"default": "无限制",
|
1944
|
+
"description": "日期最多可选天数",
|
1945
1945
|
"options": [],
|
1946
1946
|
"value": {
|
1947
|
-
"type": "string",
|
1947
|
+
"type": "number | string",
|
1948
1948
|
"kind": "expression"
|
1949
1949
|
}
|
1950
1950
|
},
|
1951
1951
|
{
|
1952
|
-
"name": "
|
1953
|
-
"default": "
|
1954
|
-
"description": "
|
1952
|
+
"name": "range-prompt",
|
1953
|
+
"default": "`最多选择 xx 天`",
|
1954
|
+
"description": "选择超过最多可选天数时的提示文案",
|
1955
1955
|
"options": [],
|
1956
1956
|
"value": {
|
1957
|
-
"type": "
|
1957
|
+
"type": "string",
|
1958
1958
|
"kind": "expression"
|
1959
1959
|
}
|
1960
1960
|
}
|
@@ -7334,6 +7334,103 @@
|
|
7334
7334
|
}
|
7335
7335
|
]
|
7336
7336
|
},
|
7337
|
+
{
|
7338
|
+
"name": "van-progress",
|
7339
|
+
"slots": [],
|
7340
|
+
"events": [],
|
7341
|
+
"attributes": [
|
7342
|
+
{
|
7343
|
+
"name": "percentage",
|
7344
|
+
"default": "`0`",
|
7345
|
+
"description": "进度百分比",
|
7346
|
+
"options": [],
|
7347
|
+
"value": {
|
7348
|
+
"type": "number | string",
|
7349
|
+
"kind": "expression"
|
7350
|
+
}
|
7351
|
+
},
|
7352
|
+
{
|
7353
|
+
"name": "stroke-width",
|
7354
|
+
"default": "`4px`",
|
7355
|
+
"description": "进度条粗细,默认单位为`px`",
|
7356
|
+
"options": [],
|
7357
|
+
"value": {
|
7358
|
+
"type": "number | string",
|
7359
|
+
"kind": "expression"
|
7360
|
+
}
|
7361
|
+
},
|
7362
|
+
{
|
7363
|
+
"name": "color",
|
7364
|
+
"default": "`#1989fa`",
|
7365
|
+
"description": "进度条颜色",
|
7366
|
+
"options": [],
|
7367
|
+
"value": {
|
7368
|
+
"type": "string",
|
7369
|
+
"kind": "expression"
|
7370
|
+
}
|
7371
|
+
},
|
7372
|
+
{
|
7373
|
+
"name": "track-color",
|
7374
|
+
"default": "`#e5e5e5`",
|
7375
|
+
"description": "轨道颜色",
|
7376
|
+
"options": [],
|
7377
|
+
"value": {
|
7378
|
+
"type": "string",
|
7379
|
+
"kind": "expression"
|
7380
|
+
}
|
7381
|
+
},
|
7382
|
+
{
|
7383
|
+
"name": "pivot-text",
|
7384
|
+
"default": "百分比",
|
7385
|
+
"description": "进度文字内容",
|
7386
|
+
"options": [],
|
7387
|
+
"value": {
|
7388
|
+
"type": "string",
|
7389
|
+
"kind": "expression"
|
7390
|
+
}
|
7391
|
+
},
|
7392
|
+
{
|
7393
|
+
"name": "pivot-color",
|
7394
|
+
"default": "同进度条颜色",
|
7395
|
+
"description": "进度文字背景色",
|
7396
|
+
"options": [],
|
7397
|
+
"value": {
|
7398
|
+
"type": "string",
|
7399
|
+
"kind": "expression"
|
7400
|
+
}
|
7401
|
+
},
|
7402
|
+
{
|
7403
|
+
"name": "text-color",
|
7404
|
+
"default": "`white`",
|
7405
|
+
"description": "进度文字颜色",
|
7406
|
+
"options": [],
|
7407
|
+
"value": {
|
7408
|
+
"type": "string",
|
7409
|
+
"kind": "expression"
|
7410
|
+
}
|
7411
|
+
},
|
7412
|
+
{
|
7413
|
+
"name": "inactive",
|
7414
|
+
"default": "`false`",
|
7415
|
+
"description": "是否置灰",
|
7416
|
+
"options": [],
|
7417
|
+
"value": {
|
7418
|
+
"type": "boolean",
|
7419
|
+
"kind": "expression"
|
7420
|
+
}
|
7421
|
+
},
|
7422
|
+
{
|
7423
|
+
"name": "show-pivot",
|
7424
|
+
"default": "`true`",
|
7425
|
+
"description": "是否显示进度文字",
|
7426
|
+
"options": [],
|
7427
|
+
"value": {
|
7428
|
+
"type": "boolean",
|
7429
|
+
"kind": "expression"
|
7430
|
+
}
|
7431
|
+
}
|
7432
|
+
]
|
7433
|
+
},
|
7337
7434
|
{
|
7338
7435
|
"name": "van-pull-refresh",
|
7339
7436
|
"slots": [
|
@@ -7471,103 +7568,6 @@
|
|
7471
7568
|
}
|
7472
7569
|
]
|
7473
7570
|
},
|
7474
|
-
{
|
7475
|
-
"name": "van-progress",
|
7476
|
-
"slots": [],
|
7477
|
-
"events": [],
|
7478
|
-
"attributes": [
|
7479
|
-
{
|
7480
|
-
"name": "percentage",
|
7481
|
-
"default": "`0`",
|
7482
|
-
"description": "进度百分比",
|
7483
|
-
"options": [],
|
7484
|
-
"value": {
|
7485
|
-
"type": "number | string",
|
7486
|
-
"kind": "expression"
|
7487
|
-
}
|
7488
|
-
},
|
7489
|
-
{
|
7490
|
-
"name": "stroke-width",
|
7491
|
-
"default": "`4px`",
|
7492
|
-
"description": "进度条粗细,默认单位为`px`",
|
7493
|
-
"options": [],
|
7494
|
-
"value": {
|
7495
|
-
"type": "number | string",
|
7496
|
-
"kind": "expression"
|
7497
|
-
}
|
7498
|
-
},
|
7499
|
-
{
|
7500
|
-
"name": "color",
|
7501
|
-
"default": "`#1989fa`",
|
7502
|
-
"description": "进度条颜色",
|
7503
|
-
"options": [],
|
7504
|
-
"value": {
|
7505
|
-
"type": "string",
|
7506
|
-
"kind": "expression"
|
7507
|
-
}
|
7508
|
-
},
|
7509
|
-
{
|
7510
|
-
"name": "track-color",
|
7511
|
-
"default": "`#e5e5e5`",
|
7512
|
-
"description": "轨道颜色",
|
7513
|
-
"options": [],
|
7514
|
-
"value": {
|
7515
|
-
"type": "string",
|
7516
|
-
"kind": "expression"
|
7517
|
-
}
|
7518
|
-
},
|
7519
|
-
{
|
7520
|
-
"name": "pivot-text",
|
7521
|
-
"default": "百分比",
|
7522
|
-
"description": "进度文字内容",
|
7523
|
-
"options": [],
|
7524
|
-
"value": {
|
7525
|
-
"type": "string",
|
7526
|
-
"kind": "expression"
|
7527
|
-
}
|
7528
|
-
},
|
7529
|
-
{
|
7530
|
-
"name": "pivot-color",
|
7531
|
-
"default": "同进度条颜色",
|
7532
|
-
"description": "进度文字背景色",
|
7533
|
-
"options": [],
|
7534
|
-
"value": {
|
7535
|
-
"type": "string",
|
7536
|
-
"kind": "expression"
|
7537
|
-
}
|
7538
|
-
},
|
7539
|
-
{
|
7540
|
-
"name": "text-color",
|
7541
|
-
"default": "`white`",
|
7542
|
-
"description": "进度文字颜色",
|
7543
|
-
"options": [],
|
7544
|
-
"value": {
|
7545
|
-
"type": "string",
|
7546
|
-
"kind": "expression"
|
7547
|
-
}
|
7548
|
-
},
|
7549
|
-
{
|
7550
|
-
"name": "inactive",
|
7551
|
-
"default": "`false`",
|
7552
|
-
"description": "是否置灰",
|
7553
|
-
"options": [],
|
7554
|
-
"value": {
|
7555
|
-
"type": "boolean",
|
7556
|
-
"kind": "expression"
|
7557
|
-
}
|
7558
|
-
},
|
7559
|
-
{
|
7560
|
-
"name": "show-pivot",
|
7561
|
-
"default": "`true`",
|
7562
|
-
"description": "是否显示进度文字",
|
7563
|
-
"options": [],
|
7564
|
-
"value": {
|
7565
|
-
"type": "boolean",
|
7566
|
-
"kind": "expression"
|
7567
|
-
}
|
7568
|
-
}
|
7569
|
-
]
|
7570
|
-
},
|
7571
7571
|
{
|
7572
7572
|
"name": "van-radio",
|
7573
7573
|
"slots": [
|