vant 3.3.4 → 3.4.0
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 +2 -2
- package/es/action-bar/index.d.ts +6 -1
- package/es/action-bar-button/ActionBarButton.d.ts +4 -4
- package/es/action-bar-button/index.d.ts +8 -3
- package/es/action-bar-icon/ActionBarIcon.d.ts +69 -8
- package/es/action-bar-icon/ActionBarIcon.js +8 -5
- package/es/action-bar-icon/index.d.ts +49 -3
- package/es/action-sheet/ActionSheet.d.ts +2 -2
- package/es/action-sheet/ActionSheet.js +27 -15
- package/es/action-sheet/index.d.ts +6 -1
- package/es/address-edit/AddressEdit.d.ts +2 -2
- package/es/address-edit/AddressEditDetail.d.ts +2 -2
- package/es/address-edit/index.d.ts +6 -1
- package/es/address-list/AddressList.d.ts +2 -2
- package/es/address-list/AddressListItem.d.ts +2 -2
- package/es/address-list/index.d.ts +6 -1
- package/es/area/Area.d.ts +2 -2
- package/es/area/index.d.ts +6 -1
- package/es/badge/Badge.d.ts +15 -3
- package/es/badge/Badge.js +4 -3
- package/es/badge/index.css +1 -1
- package/es/badge/index.d.ts +15 -3
- package/es/badge/index.less +22 -1
- package/es/button/Button.d.ts +4 -4
- package/es/button/index.d.ts +8 -3
- package/es/calendar/Calendar.d.ts +5 -5
- package/es/calendar/CalendarDay.d.ts +2 -2
- package/es/calendar/CalendarHeader.d.ts +1 -1
- package/es/calendar/CalendarMonth.d.ts +4 -4
- package/es/calendar/index.d.ts +9 -4
- package/es/card/Card.d.ts +2 -2
- package/es/card/index.d.ts +6 -1
- package/es/cascader/Cascader.d.ts +2 -2
- package/es/cascader/Cascader.js +1 -1
- package/es/cascader/index.css +1 -1
- package/es/cascader/index.d.ts +6 -1
- package/es/cascader/index.less +0 -10
- package/es/cell/Cell.d.ts +2 -2
- package/es/cell/index.d.ts +6 -1
- package/es/cell-group/CellGroup.d.ts +2 -2
- package/es/cell-group/index.d.ts +6 -1
- package/es/checkbox/Checkbox.d.ts +2 -2
- package/es/checkbox/Checker.d.ts +2 -2
- package/es/checkbox/index.d.ts +6 -1
- package/es/checkbox-group/CheckboxGroup.d.ts +2 -2
- package/es/checkbox-group/index.d.ts +6 -1
- package/es/circle/Circle.d.ts +2 -2
- package/es/circle/index.d.ts +6 -1
- package/es/col/Col.d.ts +2 -2
- package/es/col/index.d.ts +6 -1
- package/es/collapse/Collapse.d.ts +2 -2
- package/es/collapse/index.d.ts +6 -1
- package/es/collapse-item/CollapseItem.d.ts +2 -2
- package/es/collapse-item/index.d.ts +6 -1
- package/es/composables/use-refs.js +9 -2
- package/es/composables/use-route.d.ts +1 -1
- package/es/composables/use-touch.js +7 -6
- package/es/config-provider/ConfigProvider.d.ts +2 -2
- package/es/config-provider/index.d.ts +6 -1
- package/es/contact-card/ContactCard.d.ts +2 -2
- package/es/contact-card/index.d.ts +6 -1
- package/es/contact-edit/ContactEdit.d.ts +2 -2
- package/es/contact-edit/index.d.ts +6 -1
- package/es/contact-list/ContactList.d.ts +2 -2
- package/es/contact-list/index.d.ts +6 -1
- package/es/count-down/CountDown.d.ts +2 -2
- package/es/count-down/index.d.ts +6 -1
- package/es/coupon/Coupon.d.ts +2 -2
- package/es/coupon/index.d.ts +6 -1
- package/es/coupon-cell/CouponCell.d.ts +2 -2
- package/es/coupon-cell/index.d.ts +6 -1
- package/es/coupon-list/CouponList.d.ts +2 -2
- package/es/coupon-list/index.d.ts +6 -1
- package/es/datetime-picker/DatePicker.d.ts +1 -1
- package/es/datetime-picker/DatePicker.js +2 -2
- package/es/datetime-picker/DatetimePicker.d.ts +2 -2
- package/es/datetime-picker/TimePicker.d.ts +1 -1
- package/es/datetime-picker/TimePicker.js +2 -2
- package/es/datetime-picker/index.d.ts +6 -1
- package/es/datetime-picker/utils.d.ts +3 -1
- package/es/datetime-picker/utils.js +17 -1
- package/es/dialog/Dialog.d.ts +2 -2
- package/es/dialog/function-call.d.ts +1 -1
- package/es/dialog/index.d.ts +5 -0
- package/es/divider/Divider.d.ts +2 -2
- package/es/divider/index.d.ts +6 -1
- package/es/dropdown-item/DropdownItem.d.ts +2 -2
- package/es/dropdown-item/index.d.ts +6 -1
- package/es/dropdown-menu/DropdownMenu.d.ts +2 -2
- package/es/dropdown-menu/index.d.ts +6 -1
- package/es/empty/Empty.d.ts +2 -2
- package/es/empty/index.d.ts +6 -1
- package/es/field/Field.d.ts +2 -2
- package/es/field/Field.js +5 -5
- package/es/field/index.d.ts +6 -1
- package/es/field/types.d.ts +1 -1
- package/es/field/utils.d.ts +2 -0
- package/es/field/utils.js +9 -0
- package/es/form/Form.d.ts +2 -2
- package/es/form/index.d.ts +6 -1
- package/es/grid/Grid.d.ts +2 -2
- package/es/grid/index.d.ts +6 -1
- package/es/grid-item/GridItem.d.ts +66 -5
- package/es/grid-item/GridItem.js +8 -6
- package/es/grid-item/index.d.ts +48 -2
- package/es/icon/Icon.d.ts +66 -5
- package/es/icon/Icon.js +7 -6
- package/es/icon/index.css +1 -1
- package/es/icon/index.d.ts +48 -2
- package/es/image/Image.d.ts +2 -2
- package/es/image/index.d.ts +6 -1
- package/es/image-preview/ImagePreview.d.ts +6 -2
- package/es/image-preview/ImagePreview.js +2 -1
- package/es/image-preview/ImagePreviewItem.d.ts +1 -1
- package/es/image-preview/function-call.d.ts +4 -1
- package/es/image-preview/function-call.js +1 -0
- package/es/image-preview/index.d.ts +5 -0
- package/es/image-preview/types.d.ts +1 -0
- package/es/index-anchor/IndexAnchor.d.ts +2 -2
- package/es/index-anchor/index.d.ts +6 -1
- package/es/index-bar/IndexBar.d.ts +2 -2
- package/es/index-bar/index.d.ts +6 -1
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/list/List.d.ts +2 -2
- package/es/list/index.d.ts +6 -1
- package/es/loading/Loading.d.ts +2 -2
- package/es/loading/index.d.ts +6 -1
- package/es/nav-bar/NavBar.d.ts +2 -2
- package/es/nav-bar/index.d.ts +6 -1
- package/es/notice-bar/NoticeBar.d.ts +2 -2
- package/es/notice-bar/index.d.ts +6 -1
- package/es/notify/Notify.d.ts +14 -3
- package/es/notify/Notify.js +2 -1
- package/es/notify/function-call.d.ts +9 -2
- package/es/notify/function-call.js +1 -0
- package/es/notify/index.d.ts +5 -0
- package/es/notify/types.d.ts +2 -0
- package/es/number-keyboard/NumberKeyboard.d.ts +2 -2
- package/es/number-keyboard/NumberKeyboardKey.d.ts +3 -3
- package/es/number-keyboard/index.d.ts +6 -1
- package/es/overlay/Overlay.d.ts +2 -2
- package/es/overlay/index.d.ts +6 -1
- package/es/pagination/Pagination.d.ts +2 -2
- package/es/pagination/Pagination.js +3 -3
- package/es/pagination/index.d.ts +6 -1
- package/es/password-input/PasswordInput.d.ts +2 -2
- package/es/password-input/index.d.ts +6 -1
- package/es/picker/Picker.d.ts +2 -2
- package/es/picker/Picker.js +21 -13
- package/es/picker/PickerColumn.d.ts +1 -1
- package/es/picker/index.d.ts +6 -1
- package/es/popover/Popover.d.ts +2 -2
- package/es/popover/Popover.js +19 -9
- package/es/popover/index.d.ts +6 -1
- package/es/popup/Popup.d.ts +5 -6
- package/es/popup/Popup.js +7 -4
- package/es/popup/index.d.ts +16 -10
- package/es/popup/shared.d.ts +1 -1
- package/es/popup/types.d.ts +5 -0
- package/es/popup/types.js +1 -0
- package/es/progress/Progress.d.ts +2 -2
- package/es/progress/index.d.ts +6 -1
- package/es/pull-refresh/PullRefresh.d.ts +2 -2
- package/es/pull-refresh/index.css +1 -1
- package/es/pull-refresh/index.d.ts +6 -1
- package/es/pull-refresh/index.less +0 -1
- package/es/radio/Radio.d.ts +2 -2
- package/es/radio/index.d.ts +6 -1
- package/es/radio-group/RadioGroup.d.ts +2 -2
- package/es/radio-group/index.d.ts +6 -1
- package/es/rate/Rate.d.ts +2 -2
- package/es/rate/index.d.ts +6 -1
- package/es/row/Row.d.ts +2 -2
- package/es/row/index.d.ts +6 -1
- package/es/search/Search.d.ts +8 -2
- package/es/search/Search.js +19 -1
- package/es/search/index.d.ts +12 -1
- package/es/share-sheet/ShareSheet.d.ts +2 -2
- package/es/share-sheet/index.d.ts +6 -1
- package/es/sidebar/Sidebar.d.ts +2 -2
- package/es/sidebar/index.d.ts +6 -1
- package/es/sidebar-item/SidebarItem.d.ts +65 -4
- package/es/sidebar-item/SidebarItem.js +7 -6
- package/es/sidebar-item/index.d.ts +47 -1
- package/es/skeleton/Skeleton.d.ts +2 -2
- package/es/skeleton/index.d.ts +6 -1
- package/es/slider/Slider.d.ts +4 -4
- package/es/slider/index.d.ts +8 -3
- package/es/step/Step.d.ts +1 -1
- package/es/step/Step.js +1 -1
- package/es/step/index.d.ts +6 -1
- package/es/stepper/Stepper.d.ts +2 -2
- package/es/stepper/index.d.ts +6 -1
- package/es/steps/Steps.d.ts +2 -2
- package/es/steps/index.d.ts +6 -1
- package/es/sticky/Sticky.d.ts +2 -2
- package/es/sticky/index.d.ts +6 -1
- package/es/submit-bar/SubmitBar.d.ts +2 -2
- package/es/submit-bar/index.d.ts +6 -1
- package/es/swipe/Swipe.d.ts +2 -2
- package/es/swipe/Swipe.js +34 -30
- package/es/swipe/index.d.ts +6 -1
- package/es/swipe-cell/SwipeCell.d.ts +2 -2
- package/es/swipe-cell/SwipeCell.js +8 -5
- package/es/swipe-cell/index.d.ts +6 -1
- package/es/swipe-item/SwipeItem.d.ts +1 -1
- package/es/swipe-item/index.d.ts +6 -1
- package/es/switch/Switch.d.ts +2 -2
- package/es/switch/index.d.ts +6 -1
- package/es/tab/Tab.d.ts +2 -2
- package/es/tab/index.d.ts +6 -1
- package/es/tabbar/Tabbar.d.ts +2 -2
- package/es/tabbar/index.d.ts +6 -1
- package/es/tabbar-item/TabbarItem.d.ts +65 -4
- package/es/tabbar-item/TabbarItem.js +6 -5
- package/es/tabbar-item/index.d.ts +47 -1
- package/es/tabs/Tabs.d.ts +7 -2
- package/es/tabs/Tabs.js +19 -11
- package/es/tabs/TabsContent.d.ts +1 -1
- package/es/tabs/TabsTitle.d.ts +6 -5
- package/es/tabs/TabsTitle.js +10 -5
- package/es/tabs/index.css +1 -1
- package/es/tabs/index.d.ts +10 -1
- package/es/tabs/index.less +43 -35
- package/es/tag/Tag.d.ts +2 -2
- package/es/tag/index.d.ts +6 -1
- package/es/toast/Toast.d.ts +4 -4
- package/es/toast/function-call.d.ts +2 -2
- package/es/toast/function-call.js +1 -1
- package/es/tree-select/TreeSelect.d.ts +2 -2
- package/es/tree-select/index.css +1 -1
- package/es/tree-select/index.d.ts +6 -1
- package/es/tree-select/index.less +1 -1
- package/es/uploader/Uploader.d.ts +3 -3
- package/es/uploader/UploaderPreviewItem.d.ts +2 -2
- package/es/uploader/index.d.ts +6 -1
- package/lib/action-bar/ActionBar.d.ts +2 -2
- package/lib/action-bar/index.d.ts +6 -1
- package/lib/action-bar-button/ActionBarButton.d.ts +4 -4
- package/lib/action-bar-button/index.d.ts +8 -3
- package/lib/action-bar-icon/ActionBarIcon.d.ts +69 -8
- package/lib/action-bar-icon/ActionBarIcon.js +7 -4
- package/lib/action-bar-icon/index.d.ts +49 -3
- package/lib/action-sheet/ActionSheet.d.ts +2 -2
- package/lib/action-sheet/ActionSheet.js +27 -15
- package/lib/action-sheet/index.d.ts +6 -1
- package/lib/address-edit/AddressEdit.d.ts +2 -2
- package/lib/address-edit/AddressEditDetail.d.ts +2 -2
- package/lib/address-edit/index.d.ts +6 -1
- package/lib/address-list/AddressList.d.ts +2 -2
- package/lib/address-list/AddressListItem.d.ts +2 -2
- package/lib/address-list/index.d.ts +6 -1
- package/lib/area/Area.d.ts +2 -2
- package/lib/area/index.d.ts +6 -1
- package/lib/badge/Badge.d.ts +15 -3
- package/lib/badge/Badge.js +4 -3
- package/lib/badge/index.css +1 -1
- package/lib/badge/index.d.ts +15 -3
- package/lib/badge/index.less +22 -1
- package/lib/button/Button.d.ts +4 -4
- package/lib/button/index.d.ts +8 -3
- package/lib/calendar/Calendar.d.ts +5 -5
- package/lib/calendar/CalendarDay.d.ts +2 -2
- package/lib/calendar/CalendarHeader.d.ts +1 -1
- package/lib/calendar/CalendarMonth.d.ts +4 -4
- package/lib/calendar/index.d.ts +9 -4
- package/lib/card/Card.d.ts +2 -2
- package/lib/card/index.d.ts +6 -1
- package/lib/cascader/Cascader.d.ts +2 -2
- package/lib/cascader/Cascader.js +1 -1
- package/lib/cascader/index.css +1 -1
- package/lib/cascader/index.d.ts +6 -1
- package/lib/cascader/index.less +0 -10
- package/lib/cell/Cell.d.ts +2 -2
- package/lib/cell/index.d.ts +6 -1
- package/lib/cell-group/CellGroup.d.ts +2 -2
- package/lib/cell-group/index.d.ts +6 -1
- package/lib/checkbox/Checkbox.d.ts +2 -2
- package/lib/checkbox/Checker.d.ts +2 -2
- package/lib/checkbox/index.d.ts +6 -1
- package/lib/checkbox-group/CheckboxGroup.d.ts +2 -2
- package/lib/checkbox-group/index.d.ts +6 -1
- package/lib/circle/Circle.d.ts +2 -2
- package/lib/circle/index.d.ts +6 -1
- package/lib/col/Col.d.ts +2 -2
- package/lib/col/index.d.ts +6 -1
- package/lib/collapse/Collapse.d.ts +2 -2
- package/lib/collapse/index.d.ts +6 -1
- package/lib/collapse-item/CollapseItem.d.ts +2 -2
- package/lib/collapse-item/index.d.ts +6 -1
- package/lib/composables/use-refs.js +9 -2
- package/lib/composables/use-route.d.ts +1 -1
- package/lib/composables/use-touch.js +7 -7
- package/lib/config-provider/ConfigProvider.d.ts +2 -2
- package/lib/config-provider/index.d.ts +6 -1
- package/lib/contact-card/ContactCard.d.ts +2 -2
- package/lib/contact-card/index.d.ts +6 -1
- package/lib/contact-edit/ContactEdit.d.ts +2 -2
- package/lib/contact-edit/index.d.ts +6 -1
- package/lib/contact-list/ContactList.d.ts +2 -2
- package/lib/contact-list/index.d.ts +6 -1
- package/lib/count-down/CountDown.d.ts +2 -2
- package/lib/count-down/index.d.ts +6 -1
- package/lib/coupon/Coupon.d.ts +2 -2
- package/lib/coupon/index.d.ts +6 -1
- package/lib/coupon-cell/CouponCell.d.ts +2 -2
- package/lib/coupon-cell/index.d.ts +6 -1
- package/lib/coupon-list/CouponList.d.ts +2 -2
- package/lib/coupon-list/index.d.ts +6 -1
- package/lib/datetime-picker/DatePicker.d.ts +1 -1
- package/lib/datetime-picker/DatePicker.js +1 -1
- package/lib/datetime-picker/DatetimePicker.d.ts +2 -2
- package/lib/datetime-picker/TimePicker.d.ts +1 -1
- package/lib/datetime-picker/TimePicker.js +1 -1
- package/lib/datetime-picker/index.d.ts +6 -1
- package/lib/datetime-picker/utils.d.ts +3 -1
- package/lib/datetime-picker/utils.js +22 -3
- package/lib/dialog/Dialog.d.ts +2 -2
- package/lib/dialog/function-call.d.ts +1 -1
- package/lib/dialog/index.d.ts +5 -0
- package/lib/divider/Divider.d.ts +2 -2
- package/lib/divider/index.d.ts +6 -1
- package/lib/dropdown-item/DropdownItem.d.ts +2 -2
- package/lib/dropdown-item/index.d.ts +6 -1
- package/lib/dropdown-menu/DropdownMenu.d.ts +2 -2
- package/lib/dropdown-menu/index.d.ts +6 -1
- package/lib/empty/Empty.d.ts +2 -2
- package/lib/empty/index.d.ts +6 -1
- package/lib/field/Field.d.ts +2 -2
- package/lib/field/Field.js +4 -4
- package/lib/field/index.d.ts +6 -1
- package/lib/field/types.d.ts +1 -1
- package/lib/field/utils.d.ts +2 -0
- package/lib/field/utils.js +13 -0
- package/lib/form/Form.d.ts +2 -2
- package/lib/form/index.d.ts +6 -1
- package/lib/grid/Grid.d.ts +2 -2
- package/lib/grid/index.d.ts +6 -1
- package/lib/grid-item/GridItem.d.ts +66 -5
- package/lib/grid-item/GridItem.js +7 -5
- package/lib/grid-item/index.d.ts +48 -2
- package/lib/icon/Icon.d.ts +66 -5
- package/lib/icon/Icon.js +5 -4
- package/lib/icon/index.css +1 -1
- package/lib/icon/index.d.ts +48 -2
- package/lib/image/Image.d.ts +2 -2
- package/lib/image/index.d.ts +6 -1
- package/lib/image-preview/ImagePreview.d.ts +6 -2
- package/lib/image-preview/ImagePreview.js +2 -1
- package/lib/image-preview/ImagePreviewItem.d.ts +1 -1
- package/lib/image-preview/function-call.d.ts +4 -1
- package/lib/image-preview/function-call.js +1 -0
- package/lib/image-preview/index.d.ts +5 -0
- package/lib/image-preview/types.d.ts +1 -0
- package/lib/index-anchor/IndexAnchor.d.ts +2 -2
- package/lib/index-anchor/index.d.ts +6 -1
- package/lib/index-bar/IndexBar.d.ts +2 -2
- package/lib/index-bar/index.d.ts +6 -1
- package/lib/index.css +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/list/List.d.ts +2 -2
- package/lib/list/index.d.ts +6 -1
- package/lib/loading/Loading.d.ts +2 -2
- package/lib/loading/index.d.ts +6 -1
- package/lib/nav-bar/NavBar.d.ts +2 -2
- package/lib/nav-bar/index.d.ts +6 -1
- package/lib/notice-bar/NoticeBar.d.ts +2 -2
- package/lib/notice-bar/index.d.ts +6 -1
- package/lib/notify/Notify.d.ts +14 -3
- package/lib/notify/Notify.js +2 -1
- package/lib/notify/function-call.d.ts +9 -2
- package/lib/notify/function-call.js +1 -0
- package/lib/notify/index.d.ts +5 -0
- package/lib/notify/types.d.ts +2 -0
- package/lib/number-keyboard/NumberKeyboard.d.ts +2 -2
- package/lib/number-keyboard/NumberKeyboardKey.d.ts +3 -3
- package/lib/number-keyboard/index.d.ts +6 -1
- package/lib/overlay/Overlay.d.ts +2 -2
- package/lib/overlay/index.d.ts +6 -1
- package/lib/pagination/Pagination.d.ts +2 -2
- package/lib/pagination/Pagination.js +3 -3
- package/lib/pagination/index.d.ts +6 -1
- package/lib/password-input/PasswordInput.d.ts +2 -2
- package/lib/password-input/index.d.ts +6 -1
- package/lib/picker/Picker.d.ts +2 -2
- package/lib/picker/Picker.js +21 -13
- package/lib/picker/PickerColumn.d.ts +1 -1
- package/lib/picker/index.d.ts +6 -1
- package/lib/popover/Popover.d.ts +2 -2
- package/lib/popover/Popover.js +18 -8
- package/lib/popover/index.d.ts +6 -1
- package/lib/popup/Popup.d.ts +5 -6
- package/lib/popup/Popup.js +5 -3
- package/lib/popup/index.d.ts +16 -10
- package/lib/popup/shared.d.ts +1 -1
- package/lib/popup/types.d.ts +5 -0
- package/lib/popup/types.js +3 -0
- package/lib/progress/Progress.d.ts +2 -2
- package/lib/progress/index.d.ts +6 -1
- package/lib/pull-refresh/PullRefresh.d.ts +2 -2
- package/lib/pull-refresh/index.css +1 -1
- package/lib/pull-refresh/index.d.ts +6 -1
- package/lib/pull-refresh/index.less +0 -1
- package/lib/radio/Radio.d.ts +2 -2
- package/lib/radio/index.d.ts +6 -1
- package/lib/radio-group/RadioGroup.d.ts +2 -2
- package/lib/radio-group/index.d.ts +6 -1
- package/lib/rate/Rate.d.ts +2 -2
- package/lib/rate/index.d.ts +6 -1
- package/lib/row/Row.d.ts +2 -2
- package/lib/row/index.d.ts +6 -1
- package/lib/search/Search.d.ts +8 -2
- package/lib/search/Search.js +19 -1
- package/lib/search/index.d.ts +12 -1
- package/lib/share-sheet/ShareSheet.d.ts +2 -2
- package/lib/share-sheet/index.d.ts +6 -1
- package/lib/sidebar/Sidebar.d.ts +2 -2
- package/lib/sidebar/index.d.ts +6 -1
- package/lib/sidebar-item/SidebarItem.d.ts +65 -4
- package/lib/sidebar-item/SidebarItem.js +6 -5
- package/lib/sidebar-item/index.d.ts +47 -1
- package/lib/skeleton/Skeleton.d.ts +2 -2
- package/lib/skeleton/index.d.ts +6 -1
- package/lib/slider/Slider.d.ts +4 -4
- package/lib/slider/index.d.ts +8 -3
- package/lib/ssr.js +2 -2
- package/lib/step/Step.d.ts +1 -1
- package/lib/step/Step.js +1 -1
- package/lib/step/index.d.ts +6 -1
- package/lib/stepper/Stepper.d.ts +2 -2
- package/lib/stepper/index.d.ts +6 -1
- package/lib/steps/Steps.d.ts +2 -2
- package/lib/steps/index.d.ts +6 -1
- package/lib/sticky/Sticky.d.ts +2 -2
- package/lib/sticky/index.d.ts +6 -1
- package/lib/submit-bar/SubmitBar.d.ts +2 -2
- package/lib/submit-bar/index.d.ts +6 -1
- package/lib/swipe/Swipe.d.ts +2 -2
- package/lib/swipe/Swipe.js +34 -30
- package/lib/swipe/index.d.ts +6 -1
- package/lib/swipe-cell/SwipeCell.d.ts +2 -2
- package/lib/swipe-cell/SwipeCell.js +8 -5
- package/lib/swipe-cell/index.d.ts +6 -1
- package/lib/swipe-item/SwipeItem.d.ts +1 -1
- package/lib/swipe-item/index.d.ts +6 -1
- package/lib/switch/Switch.d.ts +2 -2
- package/lib/switch/index.d.ts +6 -1
- package/lib/tab/Tab.d.ts +2 -2
- package/lib/tab/index.d.ts +6 -1
- package/lib/tabbar/Tabbar.d.ts +2 -2
- package/lib/tabbar/index.d.ts +6 -1
- package/lib/tabbar-item/TabbarItem.d.ts +65 -4
- package/lib/tabbar-item/TabbarItem.js +5 -4
- package/lib/tabbar-item/index.d.ts +47 -1
- package/lib/tabs/Tabs.d.ts +7 -2
- package/lib/tabs/Tabs.js +18 -10
- package/lib/tabs/TabsContent.d.ts +1 -1
- package/lib/tabs/TabsTitle.d.ts +6 -5
- package/lib/tabs/TabsTitle.js +10 -5
- package/lib/tabs/index.css +1 -1
- package/lib/tabs/index.d.ts +10 -1
- package/lib/tabs/index.less +43 -35
- package/lib/tag/Tag.d.ts +2 -2
- package/lib/tag/index.d.ts +6 -1
- package/lib/toast/Toast.d.ts +4 -4
- package/lib/toast/function-call.d.ts +2 -2
- package/lib/tree-select/TreeSelect.d.ts +2 -2
- package/lib/tree-select/index.css +1 -1
- package/lib/tree-select/index.d.ts +6 -1
- package/lib/tree-select/index.less +1 -1
- package/lib/uploader/Uploader.d.ts +3 -3
- package/lib/uploader/UploaderPreviewItem.d.ts +2 -2
- package/lib/uploader/index.d.ts +6 -1
- package/lib/vant.cjs.js +223 -129
- package/lib/vant.cjs.min.js +1 -1
- package/lib/vant.es.js +224 -130
- package/lib/vant.es.min.js +224 -130
- package/lib/vant.js +391 -171
- package/lib/vant.min.js +1 -1
- package/package.json +17 -13
- package/vetur/attributes.json +365 -330
- package/vetur/tags.json +115 -107
- package/vetur/web-types.json +1265 -1167
package/vetur/attributes.json
CHANGED
@@ -34,6 +34,10 @@
|
|
34
34
|
"type": "number | string",
|
35
35
|
"description": "图标右上角徽标的内容, 默认值: -"
|
36
36
|
},
|
37
|
+
"van-action-bar-icon/badge-props": {
|
38
|
+
"type": "BadgeProps",
|
39
|
+
"description": "自定义徽标的属性,传入的对象会被透传给 [Badge 组件的 props](#/zh-CN/badge#props), 默认值: -"
|
40
|
+
},
|
37
41
|
"van-action-bar-icon/url": {
|
38
42
|
"type": "string",
|
39
43
|
"description": "点击后跳转的链接地址, 默认值: -"
|
@@ -60,7 +64,7 @@
|
|
60
64
|
},
|
61
65
|
"van-action-bar-button/icon": {
|
62
66
|
"type": "string",
|
63
|
-
"description": "
|
67
|
+
"description": "左侧图标名称或图片链接,等同于 Icon 组件的 [name 属性](#/zh-CN/icon#props), 默认值: -"
|
64
68
|
},
|
65
69
|
"van-action-bar-button/disabled": {
|
66
70
|
"type": "boolean",
|
@@ -82,89 +86,6 @@
|
|
82
86
|
"type": "boolean",
|
83
87
|
"description": "是否在跳转时替换当前页面历史, 默认值: `false`"
|
84
88
|
},
|
85
|
-
"van-action-sheet/v-model:show": {
|
86
|
-
"type": "boolean",
|
87
|
-
"description": "是否显示动作面板, 默认值: `false`"
|
88
|
-
},
|
89
|
-
"van-action-sheet/actions": {
|
90
|
-
"type": "ActionSheetAction[]",
|
91
|
-
"description": "面板选项列表, 默认值: `[]`"
|
92
|
-
},
|
93
|
-
"van-action-sheet/title": {
|
94
|
-
"type": "string",
|
95
|
-
"description": "顶部标题, 默认值: -"
|
96
|
-
},
|
97
|
-
"van-action-sheet/cancel-text": {
|
98
|
-
"type": "string",
|
99
|
-
"description": "取消按钮文字, 默认值: -"
|
100
|
-
},
|
101
|
-
"van-action-sheet/description": {
|
102
|
-
"type": "string",
|
103
|
-
"description": "选项上方的描述信息, 默认值: -"
|
104
|
-
},
|
105
|
-
"van-action-sheet/closeable": {
|
106
|
-
"type": "boolean",
|
107
|
-
"description": "是否显示关闭图标, 默认值: `true`"
|
108
|
-
},
|
109
|
-
"van-action-sheet/close-icon": {
|
110
|
-
"type": "string",
|
111
|
-
"description": "关闭[图标名称](#/zh-CN/icon)或图片链接, 默认值: `cross`"
|
112
|
-
},
|
113
|
-
"van-action-sheet/duration": {
|
114
|
-
"type": "number | string",
|
115
|
-
"description": "动画时长,单位秒,设置为 0 可以禁用动画, 默认值: `0.3`"
|
116
|
-
},
|
117
|
-
"van-action-sheet/round": {
|
118
|
-
"type": "boolean",
|
119
|
-
"description": "是否显示圆角, 默认值: `true`"
|
120
|
-
},
|
121
|
-
"van-action-sheet/overlay": {
|
122
|
-
"type": "boolean",
|
123
|
-
"description": "是否显示遮罩层, 默认值: `true`"
|
124
|
-
},
|
125
|
-
"van-action-sheet/overlay-class": {
|
126
|
-
"type": "string | Array \\",
|
127
|
-
"description": "自定义遮罩层类名, 默认值: object_",
|
128
|
-
"options": [
|
129
|
-
"-"
|
130
|
-
]
|
131
|
-
},
|
132
|
-
"van-action-sheet/overlay-style": {
|
133
|
-
"type": "object",
|
134
|
-
"description": "自定义遮罩层样式, 默认值: -"
|
135
|
-
},
|
136
|
-
"van-action-sheet/lock-scroll": {
|
137
|
-
"type": "boolean",
|
138
|
-
"description": "是否锁定背景滚动, 默认值: `true`"
|
139
|
-
},
|
140
|
-
"van-action-sheet/lazy-render": {
|
141
|
-
"type": "boolean",
|
142
|
-
"description": "是否在显示弹层时才渲染节点, 默认值: `true`"
|
143
|
-
},
|
144
|
-
"van-action-sheet/close-on-popstate": {
|
145
|
-
"type": "boolean",
|
146
|
-
"description": "是否在页面回退时自动关闭, 默认值: `true`"
|
147
|
-
},
|
148
|
-
"van-action-sheet/close-on-click-action": {
|
149
|
-
"type": "boolean",
|
150
|
-
"description": "是否在点击选项后关闭, 默认值: `false`"
|
151
|
-
},
|
152
|
-
"van-action-sheet/close-on-click-overlay": {
|
153
|
-
"type": "boolean",
|
154
|
-
"description": "是否在点击遮罩层后关闭, 默认值: `true`"
|
155
|
-
},
|
156
|
-
"van-action-sheet/safe-area-inset-bottom": {
|
157
|
-
"type": "boolean",
|
158
|
-
"description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei), 默认值: `true`"
|
159
|
-
},
|
160
|
-
"van-action-sheet/teleport": {
|
161
|
-
"type": "string | Element",
|
162
|
-
"description": "指定挂载的节点,等同于 Teleport 组件的 [to 属性](https://v3.cn.vuejs.org/api/built-in-components.html#teleport), 默认值: -"
|
163
|
-
},
|
164
|
-
"van-action-sheet/before-close": {
|
165
|
-
"type": "(action: string) => boolean | Promise\\<boolean\\>",
|
166
|
-
"description": "关闭前的回调函数,返回 `false` 可阻止关闭,支持返回 Promise, 默认值: -"
|
167
|
-
},
|
168
89
|
"van-address-list/v-model": {
|
169
90
|
"type": "string",
|
170
91
|
"description": "当前选中地址的 id, 默认值: -"
|
@@ -281,33 +202,6 @@
|
|
281
202
|
"type": "(key, val) => string",
|
282
203
|
"description": "自定义校验函数, 默认值: -"
|
283
204
|
},
|
284
|
-
"van-badge/content": {
|
285
|
-
"type": "number | string",
|
286
|
-
"description": "徽标内容, 默认值: -"
|
287
|
-
},
|
288
|
-
"van-badge/color": {
|
289
|
-
"type": "string",
|
290
|
-
"description": "徽标背景颜色, 默认值: `#ee0a24`"
|
291
|
-
},
|
292
|
-
"van-badge/dot": {
|
293
|
-
"type": "boolean",
|
294
|
-
"description": "是否展示为小红点, 默认值: `false`"
|
295
|
-
},
|
296
|
-
"van-badge/max": {
|
297
|
-
"type": "number | string",
|
298
|
-
"description": "最大值,超过最大值会显示 `{max}+`,仅当 content 为数字时有效, 默认值: -"
|
299
|
-
},
|
300
|
-
"van-badge/offset": {
|
301
|
-
"type": "[number | string, number \\",
|
302
|
-
"description": "设置徽标的偏移量,数组的两项分别对应水平和垂直方向的偏移量,默认单位为 `px`, 默认值: string]_",
|
303
|
-
"options": [
|
304
|
-
"-"
|
305
|
-
]
|
306
|
-
},
|
307
|
-
"van-badge/show-zero": {
|
308
|
-
"type": "boolean",
|
309
|
-
"description": "当 content 为数字 0 时,是否展示徽标, 默认值: `true`"
|
310
|
-
},
|
311
205
|
"van-area/value": {
|
312
206
|
"type": "string",
|
313
207
|
"description": "当前选中项对应的地区码, 默认值: -"
|
@@ -360,6 +254,120 @@
|
|
360
254
|
"type": "() => boolean",
|
361
255
|
"description": "根据地区码校验海外地址,海外地址会划分至单独的分类, 默认值: -"
|
362
256
|
},
|
257
|
+
"van-action-sheet/v-model:show": {
|
258
|
+
"type": "boolean",
|
259
|
+
"description": "是否显示动作面板, 默认值: `false`"
|
260
|
+
},
|
261
|
+
"van-action-sheet/actions": {
|
262
|
+
"type": "ActionSheetAction[]",
|
263
|
+
"description": "面板选项列表, 默认值: `[]`"
|
264
|
+
},
|
265
|
+
"van-action-sheet/title": {
|
266
|
+
"type": "string",
|
267
|
+
"description": "顶部标题, 默认值: -"
|
268
|
+
},
|
269
|
+
"van-action-sheet/cancel-text": {
|
270
|
+
"type": "string",
|
271
|
+
"description": "取消按钮文字, 默认值: -"
|
272
|
+
},
|
273
|
+
"van-action-sheet/description": {
|
274
|
+
"type": "string",
|
275
|
+
"description": "选项上方的描述信息, 默认值: -"
|
276
|
+
},
|
277
|
+
"van-action-sheet/closeable": {
|
278
|
+
"type": "boolean",
|
279
|
+
"description": "是否显示关闭图标, 默认值: `true`"
|
280
|
+
},
|
281
|
+
"van-action-sheet/close-icon": {
|
282
|
+
"type": "string",
|
283
|
+
"description": "关闭图标名称或图片链接,等同于 Icon 组件的 [name 属性](#/zh-CN/icon#props), 默认值: `cross`"
|
284
|
+
},
|
285
|
+
"van-action-sheet/duration": {
|
286
|
+
"type": "number | string",
|
287
|
+
"description": "动画时长,单位秒,设置为 0 可以禁用动画, 默认值: `0.3`"
|
288
|
+
},
|
289
|
+
"van-action-sheet/round": {
|
290
|
+
"type": "boolean",
|
291
|
+
"description": "是否显示圆角, 默认值: `true`"
|
292
|
+
},
|
293
|
+
"van-action-sheet/overlay": {
|
294
|
+
"type": "boolean",
|
295
|
+
"description": "是否显示遮罩层, 默认值: `true`"
|
296
|
+
},
|
297
|
+
"van-action-sheet/overlay-class": {
|
298
|
+
"type": "string | Array \\",
|
299
|
+
"description": "自定义遮罩层类名, 默认值: object_",
|
300
|
+
"options": [
|
301
|
+
"-"
|
302
|
+
]
|
303
|
+
},
|
304
|
+
"van-action-sheet/overlay-style": {
|
305
|
+
"type": "object",
|
306
|
+
"description": "自定义遮罩层样式, 默认值: -"
|
307
|
+
},
|
308
|
+
"van-action-sheet/lock-scroll": {
|
309
|
+
"type": "boolean",
|
310
|
+
"description": "是否锁定背景滚动, 默认值: `true`"
|
311
|
+
},
|
312
|
+
"van-action-sheet/lazy-render": {
|
313
|
+
"type": "boolean",
|
314
|
+
"description": "是否在显示弹层时才渲染节点, 默认值: `true`"
|
315
|
+
},
|
316
|
+
"van-action-sheet/close-on-popstate": {
|
317
|
+
"type": "boolean",
|
318
|
+
"description": "是否在页面回退时自动关闭, 默认值: `true`"
|
319
|
+
},
|
320
|
+
"van-action-sheet/close-on-click-action": {
|
321
|
+
"type": "boolean",
|
322
|
+
"description": "是否在点击选项后关闭, 默认值: `false`"
|
323
|
+
},
|
324
|
+
"van-action-sheet/close-on-click-overlay": {
|
325
|
+
"type": "boolean",
|
326
|
+
"description": "是否在点击遮罩层后关闭, 默认值: `true`"
|
327
|
+
},
|
328
|
+
"van-action-sheet/safe-area-inset-bottom": {
|
329
|
+
"type": "boolean",
|
330
|
+
"description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei), 默认值: `true`"
|
331
|
+
},
|
332
|
+
"van-action-sheet/teleport": {
|
333
|
+
"type": "string | Element",
|
334
|
+
"description": "指定挂载的节点,等同于 Teleport 组件的 [to 属性](https://v3.cn.vuejs.org/api/built-in-components.html#teleport), 默认值: -"
|
335
|
+
},
|
336
|
+
"van-action-sheet/before-close": {
|
337
|
+
"type": "(action: string) => boolean | Promise\\<boolean\\>",
|
338
|
+
"description": "关闭前的回调函数,返回 `false` 可阻止关闭,支持返回 Promise, 默认值: -"
|
339
|
+
},
|
340
|
+
"van-badge/content": {
|
341
|
+
"type": "number | string",
|
342
|
+
"description": "徽标内容, 默认值: -"
|
343
|
+
},
|
344
|
+
"van-badge/color": {
|
345
|
+
"type": "string",
|
346
|
+
"description": "徽标背景颜色, 默认值: `#ee0a24`"
|
347
|
+
},
|
348
|
+
"van-badge/dot": {
|
349
|
+
"type": "boolean",
|
350
|
+
"description": "是否展示为小红点, 默认值: `false`"
|
351
|
+
},
|
352
|
+
"van-badge/max": {
|
353
|
+
"type": "number | string",
|
354
|
+
"description": "最大值,超过最大值会显示 `{max}+`,仅当 content 为数字时有效, 默认值: -"
|
355
|
+
},
|
356
|
+
"van-badge/offset": {
|
357
|
+
"type": "[number | string, number \\",
|
358
|
+
"description": "设置徽标的偏移量,数组的两项分别对应水平和垂直方向的偏移量,默认单位为 `px`, 默认值: string]_",
|
359
|
+
"options": [
|
360
|
+
"-"
|
361
|
+
]
|
362
|
+
},
|
363
|
+
"van-badge/show-zero": {
|
364
|
+
"type": "boolean",
|
365
|
+
"description": "当 content 为数字 0 时,是否展示徽标, 默认值: `true`"
|
366
|
+
},
|
367
|
+
"van-badge/position": {
|
368
|
+
"type": "string",
|
369
|
+
"description": "徽标位置,可选值为 `top-left` `bottom-left` `bottom-right`, 默认值: `top-right`"
|
370
|
+
},
|
363
371
|
"van-button/type": {
|
364
372
|
"type": "string",
|
365
373
|
"description": "类型,可选值为 `primary` `success` `warning` `danger`, 默认值: `default`"
|
@@ -378,7 +386,7 @@
|
|
378
386
|
},
|
379
387
|
"van-button/icon": {
|
380
388
|
"type": "string",
|
381
|
-
"description": "
|
389
|
+
"description": "左侧图标名称或图片链接,等同于 Icon 组件的 [name 属性](#/zh-CN/icon#props), 默认值: -"
|
382
390
|
},
|
383
391
|
"van-button/icon-prefix": {
|
384
392
|
"type": "string",
|
@@ -620,7 +628,7 @@
|
|
620
628
|
"description": "选中项的值, 默认值: -"
|
621
629
|
},
|
622
630
|
"van-cascader/options": {
|
623
|
-
"type": "
|
631
|
+
"type": "CascaderOption[]",
|
624
632
|
"description": "可选项数据源, 默认值: `[]`"
|
625
633
|
},
|
626
634
|
"van-cascader/placeholder": {
|
@@ -641,7 +649,7 @@
|
|
641
649
|
},
|
642
650
|
"van-cascader/close-icon": {
|
643
651
|
"type": "string",
|
644
|
-
"description": "
|
652
|
+
"description": "关闭图标名称或图片链接,等同于 Icon 组件的 [name 属性](#/zh-CN/icon#props), 默认值: `cross`"
|
645
653
|
},
|
646
654
|
"van-cascader/field-names": {
|
647
655
|
"type": "object",
|
@@ -677,7 +685,7 @@
|
|
677
685
|
},
|
678
686
|
"van-cell/icon": {
|
679
687
|
"type": "string",
|
680
|
-
"description": "
|
688
|
+
"description": "左侧图标名称或图片链接,等同于 Icon 组件的 [name 属性](#/zh-CN/icon#props), 默认值: -"
|
681
689
|
},
|
682
690
|
"van-cell/icon-prefix": {
|
683
691
|
"type": "string",
|
@@ -908,7 +916,7 @@
|
|
908
916
|
},
|
909
917
|
"van-collapse-item/icon": {
|
910
918
|
"type": "string",
|
911
|
-
"description": "
|
919
|
+
"description": "标题栏左侧图标名称或图片链接,等同于 Icon 组件的 [name 属性](#/zh-CN/icon#props), 默认值: -"
|
912
920
|
},
|
913
921
|
"van-collapse-item/size": {
|
914
922
|
"type": "string",
|
@@ -1214,77 +1222,6 @@
|
|
1214
1222
|
"type": "number | string",
|
1215
1223
|
"description": "可选的最大分钟, 默认值: `59`"
|
1216
1224
|
},
|
1217
|
-
"van-divider/dashed": {
|
1218
|
-
"type": "boolean",
|
1219
|
-
"description": "是否使用虚线, 默认值: `false`"
|
1220
|
-
},
|
1221
|
-
"van-divider/hairline": {
|
1222
|
-
"type": "boolean",
|
1223
|
-
"description": "是否使用 0.5px 线, 默认值: `true`"
|
1224
|
-
},
|
1225
|
-
"van-divider/content-position": {
|
1226
|
-
"type": "string",
|
1227
|
-
"description": "内容位置,可选值为 `left` `right`, 默认值: `center`"
|
1228
|
-
},
|
1229
|
-
"van-dropdown-menu/active-color": {
|
1230
|
-
"type": "string",
|
1231
|
-
"description": "菜单标题和选项的选中态颜色, 默认值: `#ee0a24`"
|
1232
|
-
},
|
1233
|
-
"van-dropdown-menu/direction": {
|
1234
|
-
"type": "string",
|
1235
|
-
"description": "菜单展开方向,可选值为`up`, 默认值: `down`"
|
1236
|
-
},
|
1237
|
-
"van-dropdown-menu/z-index": {
|
1238
|
-
"type": "number | string",
|
1239
|
-
"description": "菜单栏 z-index 层级, 默认值: `10`"
|
1240
|
-
},
|
1241
|
-
"van-dropdown-menu/duration": {
|
1242
|
-
"type": "number | string",
|
1243
|
-
"description": "动画时长,单位秒,设置为 0 可以禁用动画, 默认值: `0.2`"
|
1244
|
-
},
|
1245
|
-
"van-dropdown-menu/overlay": {
|
1246
|
-
"type": "boolean",
|
1247
|
-
"description": "是否显示遮罩层, 默认值: `true`"
|
1248
|
-
},
|
1249
|
-
"van-dropdown-menu/close-on-click-overlay": {
|
1250
|
-
"type": "boolean",
|
1251
|
-
"description": "是否在点击遮罩层后关闭菜单, 默认值: `true`"
|
1252
|
-
},
|
1253
|
-
"van-dropdown-menu/close-on-click-outside": {
|
1254
|
-
"type": "boolean",
|
1255
|
-
"description": "是否在点击外部元素后关闭菜单, 默认值: `true`"
|
1256
|
-
},
|
1257
|
-
"van-dropdown-item/v-model": {
|
1258
|
-
"type": "number | string",
|
1259
|
-
"description": "当前选中项对应的 value, 默认值: -"
|
1260
|
-
},
|
1261
|
-
"van-dropdown-item/title": {
|
1262
|
-
"type": "string",
|
1263
|
-
"description": "菜单项标题, 默认值: 当前选中项文字"
|
1264
|
-
},
|
1265
|
-
"van-dropdown-item/options": {
|
1266
|
-
"type": "Option[]",
|
1267
|
-
"description": "选项数组, 默认值: `[]`"
|
1268
|
-
},
|
1269
|
-
"van-dropdown-item/disabled": {
|
1270
|
-
"type": "boolean",
|
1271
|
-
"description": "是否禁用菜单, 默认值: `false`"
|
1272
|
-
},
|
1273
|
-
"van-dropdown-item/lazy-render": {
|
1274
|
-
"type": "boolean",
|
1275
|
-
"description": "是否在首次展开时才渲染菜单内容, 默认值: `true`"
|
1276
|
-
},
|
1277
|
-
"van-dropdown-item/title-class": {
|
1278
|
-
"type": "string | Array \\",
|
1279
|
-
"description": "标题额外类名, 默认值: object_",
|
1280
|
-
"options": [
|
1281
|
-
"-"
|
1282
|
-
]
|
1283
|
-
},
|
1284
|
-
"van-dropdown-item/teleport": {
|
1285
|
-
"type": "string | Element",
|
1286
|
-
"description": "指定挂载的节点,等同于 Teleport 组件的 [to 属性](https://v3.cn.vuejs.org/api/built-in-components.html#teleport), 默认值: -"
|
1287
|
-
},
|
1288
1225
|
"van-dialog/v-model:show": {
|
1289
1226
|
"type": "boolean",
|
1290
1227
|
"description": "是否显示弹窗, 默认值: -"
|
@@ -1361,19 +1298,90 @@
|
|
1361
1298
|
"type": "boolean",
|
1362
1299
|
"description": "是否锁定背景滚动, 默认值: `true`"
|
1363
1300
|
},
|
1364
|
-
"van-dialog/allow-html": {
|
1301
|
+
"van-dialog/allow-html": {
|
1302
|
+
"type": "boolean",
|
1303
|
+
"description": "是否允许 message 内容中渲染 HTML, 默认值: `false`"
|
1304
|
+
},
|
1305
|
+
"van-dialog/before-close": {
|
1306
|
+
"type": "(action: string) => boolean | Promise\\<boolean\\>",
|
1307
|
+
"description": "关闭前的回调函数,返回 `false` 可阻止关闭,支持返回 Promise, 默认值: -"
|
1308
|
+
},
|
1309
|
+
"van-dialog/transition": {
|
1310
|
+
"type": "string",
|
1311
|
+
"description": "动画类名,等价于 [transition](https://v3.cn.vuejs.org/api/built-in-components.html#transition) 的 `name` 属性, 默认值: -"
|
1312
|
+
},
|
1313
|
+
"van-dialog/teleport": {
|
1314
|
+
"type": "string | Element",
|
1315
|
+
"description": "指定挂载的节点,等同于 Teleport 组件的 [to 属性](https://v3.cn.vuejs.org/api/built-in-components.html#teleport), 默认值: -"
|
1316
|
+
},
|
1317
|
+
"van-divider/dashed": {
|
1318
|
+
"type": "boolean",
|
1319
|
+
"description": "是否使用虚线, 默认值: `false`"
|
1320
|
+
},
|
1321
|
+
"van-divider/hairline": {
|
1322
|
+
"type": "boolean",
|
1323
|
+
"description": "是否使用 0.5px 线, 默认值: `true`"
|
1324
|
+
},
|
1325
|
+
"van-divider/content-position": {
|
1326
|
+
"type": "string",
|
1327
|
+
"description": "内容位置,可选值为 `left` `right`, 默认值: `center`"
|
1328
|
+
},
|
1329
|
+
"van-dropdown-menu/active-color": {
|
1330
|
+
"type": "string",
|
1331
|
+
"description": "菜单标题和选项的选中态颜色, 默认值: `#ee0a24`"
|
1332
|
+
},
|
1333
|
+
"van-dropdown-menu/direction": {
|
1334
|
+
"type": "string",
|
1335
|
+
"description": "菜单展开方向,可选值为`up`, 默认值: `down`"
|
1336
|
+
},
|
1337
|
+
"van-dropdown-menu/z-index": {
|
1338
|
+
"type": "number | string",
|
1339
|
+
"description": "菜单栏 z-index 层级, 默认值: `10`"
|
1340
|
+
},
|
1341
|
+
"van-dropdown-menu/duration": {
|
1342
|
+
"type": "number | string",
|
1343
|
+
"description": "动画时长,单位秒,设置为 0 可以禁用动画, 默认值: `0.2`"
|
1344
|
+
},
|
1345
|
+
"van-dropdown-menu/overlay": {
|
1346
|
+
"type": "boolean",
|
1347
|
+
"description": "是否显示遮罩层, 默认值: `true`"
|
1348
|
+
},
|
1349
|
+
"van-dropdown-menu/close-on-click-overlay": {
|
1350
|
+
"type": "boolean",
|
1351
|
+
"description": "是否在点击遮罩层后关闭菜单, 默认值: `true`"
|
1352
|
+
},
|
1353
|
+
"van-dropdown-menu/close-on-click-outside": {
|
1354
|
+
"type": "boolean",
|
1355
|
+
"description": "是否在点击外部元素后关闭菜单, 默认值: `true`"
|
1356
|
+
},
|
1357
|
+
"van-dropdown-item/v-model": {
|
1358
|
+
"type": "number | string",
|
1359
|
+
"description": "当前选中项对应的 value, 默认值: -"
|
1360
|
+
},
|
1361
|
+
"van-dropdown-item/title": {
|
1362
|
+
"type": "string",
|
1363
|
+
"description": "菜单项标题, 默认值: 当前选中项文字"
|
1364
|
+
},
|
1365
|
+
"van-dropdown-item/options": {
|
1366
|
+
"type": "Option[]",
|
1367
|
+
"description": "选项数组, 默认值: `[]`"
|
1368
|
+
},
|
1369
|
+
"van-dropdown-item/disabled": {
|
1365
1370
|
"type": "boolean",
|
1366
|
-
"description": "
|
1371
|
+
"description": "是否禁用菜单, 默认值: `false`"
|
1367
1372
|
},
|
1368
|
-
"van-
|
1369
|
-
"type": "
|
1370
|
-
"description": "
|
1373
|
+
"van-dropdown-item/lazy-render": {
|
1374
|
+
"type": "boolean",
|
1375
|
+
"description": "是否在首次展开时才渲染菜单内容, 默认值: `true`"
|
1371
1376
|
},
|
1372
|
-
"van-
|
1373
|
-
"type": "string",
|
1374
|
-
"description": "
|
1377
|
+
"van-dropdown-item/title-class": {
|
1378
|
+
"type": "string | Array \\",
|
1379
|
+
"description": "标题额外类名, 默认值: object_",
|
1380
|
+
"options": [
|
1381
|
+
"-"
|
1382
|
+
]
|
1375
1383
|
},
|
1376
|
-
"van-
|
1384
|
+
"van-dropdown-item/teleport": {
|
1377
1385
|
"type": "string | Element",
|
1378
1386
|
"description": "指定挂载的节点,等同于 Teleport 组件的 [to 属性](https://v3.cn.vuejs.org/api/built-in-components.html#teleport), 默认值: -"
|
1379
1387
|
},
|
@@ -1406,8 +1414,8 @@
|
|
1406
1414
|
"description": "输入框 id,同时会设置 label 的 for 属性, 默认值: `van-field-n-input`"
|
1407
1415
|
},
|
1408
1416
|
"van-field/type": {
|
1409
|
-
"type": "
|
1410
|
-
"description": "输入框类型,
|
1417
|
+
"type": "FieldType",
|
1418
|
+
"description": "输入框类型, 支持原生 input 标签的所有 [type 属性](https://developer.mozilla.org/zh-CN/docs/Web/HTML/Element/input#%3Cinput%3E_types),额外支持了 `digit` 类型, 默认值: `text`"
|
1411
1419
|
},
|
1412
1420
|
"van-field/size": {
|
1413
1421
|
"type": "string",
|
@@ -1451,10 +1459,10 @@
|
|
1451
1459
|
},
|
1452
1460
|
"van-field/clear-icon": {
|
1453
1461
|
"type": "string",
|
1454
|
-
"description": "
|
1462
|
+
"description": "清除图标名称或图片链接,等同于 Icon 组件的 [name 属性](#/zh-CN/icon#props), 默认值: `clear`"
|
1455
1463
|
},
|
1456
1464
|
"van-field/clear-trigger": {
|
1457
|
-
"type": "
|
1465
|
+
"type": "FieldClearTrigger",
|
1458
1466
|
"description": "显示清除图标的时机,`always` 表示输入框不为空时展示,<br>`focus` 表示输入框聚焦且不为空时展示, 默认值: `focus`"
|
1459
1467
|
},
|
1460
1468
|
"van-field/clickable": {
|
@@ -1482,7 +1490,7 @@
|
|
1482
1490
|
"description": "底部错误提示文案,为空时不展示, 默认值: -"
|
1483
1491
|
},
|
1484
1492
|
"van-field/error-message-align": {
|
1485
|
-
"type": "
|
1493
|
+
"type": "FieldTextAlign",
|
1486
1494
|
"description": "错误提示文案对齐方式,可选值为 `center` `right`, 默认值: `left`"
|
1487
1495
|
},
|
1488
1496
|
"van-field/formatter": {
|
@@ -1490,7 +1498,7 @@
|
|
1490
1498
|
"description": "输入内容格式化函数, 默认值: -"
|
1491
1499
|
},
|
1492
1500
|
"van-field/format-trigger": {
|
1493
|
-
"type": "
|
1501
|
+
"type": "FieldFormatTrigger",
|
1494
1502
|
"description": "格式化函数触发的时机,可选值为 `onBlur`, 默认值: `onChange`"
|
1495
1503
|
},
|
1496
1504
|
"van-field/arrow-direction": {
|
@@ -1509,31 +1517,31 @@
|
|
1509
1517
|
"description": "左侧文本宽度,默认单位为 `px`, 默认值: `6.2em`"
|
1510
1518
|
},
|
1511
1519
|
"van-field/label-align": {
|
1512
|
-
"type": "
|
1520
|
+
"type": "FieldTextAlign",
|
1513
1521
|
"description": "左侧文本对齐方式,可选值为 `center` `right`, 默认值: `left`"
|
1514
1522
|
},
|
1515
1523
|
"van-field/input-align": {
|
1516
|
-
"type": "
|
1524
|
+
"type": "FieldTextAlign",
|
1517
1525
|
"description": "输入框对齐方式,可选值为 `center` `right`, 默认值: `left`"
|
1518
1526
|
},
|
1519
1527
|
"van-field/autosize": {
|
1520
|
-
"type": "boolean |
|
1528
|
+
"type": "boolean | FieldAutosizeConfig",
|
1521
1529
|
"description": "是否自适应内容高度,只对 textarea 有效,<br>可传入对象,如 { maxHeight: 100, minHeight: 50 },<br>单位为`px`, 默认值: `false`"
|
1522
1530
|
},
|
1523
1531
|
"van-field/left-icon": {
|
1524
1532
|
"type": "string",
|
1525
|
-
"description": "
|
1533
|
+
"description": "左侧图标名称或图片链接,等同于 Icon 组件的 [name 属性](#/zh-CN/icon#props), 默认值: -"
|
1526
1534
|
},
|
1527
1535
|
"van-field/right-icon": {
|
1528
1536
|
"type": "string",
|
1529
|
-
"description": "
|
1537
|
+
"description": "右侧图标名称或图片链接,等同于 Icon 组件的 [name 属性](#/zh-CN/icon#props), 默认值: -"
|
1530
1538
|
},
|
1531
1539
|
"van-field/icon-prefix": {
|
1532
1540
|
"type": "string",
|
1533
1541
|
"description": "图标类名前缀,等同于 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props), 默认值: `van-icon`"
|
1534
1542
|
},
|
1535
1543
|
"van-field/rules": {
|
1536
|
-
"type": "
|
1544
|
+
"type": "FieldRule[]",
|
1537
1545
|
"description": "表单校验规则,详见 [Form 组件](#/zh-CN/form#rule-shu-ju-jie-gou), 默认值: -"
|
1538
1546
|
},
|
1539
1547
|
"van-field/autocomplete": {
|
@@ -1546,7 +1554,7 @@
|
|
1546
1554
|
},
|
1547
1555
|
"van-form/label-align": {
|
1548
1556
|
"type": "string",
|
1549
|
-
"description": "
|
1557
|
+
"description": "表单项 label 对齐方式,可选值为 `center` `right`, 默认值: `left`"
|
1550
1558
|
},
|
1551
1559
|
"van-form/input-align": {
|
1552
1560
|
"type": "string",
|
@@ -1592,34 +1600,6 @@
|
|
1592
1600
|
"type": "boolean",
|
1593
1601
|
"description": "是否在按下回车键时提交表单, 默认值: `true`"
|
1594
1602
|
},
|
1595
|
-
"van-icon/name": {
|
1596
|
-
"type": "string",
|
1597
|
-
"description": "图标名称或图片链接, 默认值: -"
|
1598
|
-
},
|
1599
|
-
"van-icon/dot": {
|
1600
|
-
"type": "boolean",
|
1601
|
-
"description": "是否显示图标右上角小红点, 默认值: `false`"
|
1602
|
-
},
|
1603
|
-
"van-icon/badge": {
|
1604
|
-
"type": "number | string",
|
1605
|
-
"description": "图标右上角徽标的内容, 默认值: -"
|
1606
|
-
},
|
1607
|
-
"van-icon/color": {
|
1608
|
-
"type": "string",
|
1609
|
-
"description": "图标颜色, 默认值: `inherit`"
|
1610
|
-
},
|
1611
|
-
"van-icon/size": {
|
1612
|
-
"type": "number | string",
|
1613
|
-
"description": "图标大小,如 `20px` `2em`,默认单位为 `px`, 默认值: `inherit`"
|
1614
|
-
},
|
1615
|
-
"van-icon/class-prefix": {
|
1616
|
-
"type": "string",
|
1617
|
-
"description": "类名前缀,用于使用自定义图标, 默认值: `van-icon`"
|
1618
|
-
},
|
1619
|
-
"van-icon/tag": {
|
1620
|
-
"type": "string",
|
1621
|
-
"description": "根节点对应的 HTML 标签名, 默认值: `i`"
|
1622
|
-
},
|
1623
1603
|
"van-grid/column-num": {
|
1624
1604
|
"type": "number | string",
|
1625
1605
|
"description": "列数, 默认值: `4`"
|
@@ -1658,7 +1638,7 @@
|
|
1658
1638
|
},
|
1659
1639
|
"van-grid-item/icon": {
|
1660
1640
|
"type": "string",
|
1661
|
-
"description": "[
|
1641
|
+
"description": "图标名称或图片链接,等同于 Icon 组件的 [name 属性](#/zh-CN/icon#props), 默认值: -"
|
1662
1642
|
},
|
1663
1643
|
"van-grid-item/icon-prefix": {
|
1664
1644
|
"type": "string",
|
@@ -1680,6 +1660,10 @@
|
|
1680
1660
|
"type": "number | string",
|
1681
1661
|
"description": "图标右上角徽标的内容, 默认值: -"
|
1682
1662
|
},
|
1663
|
+
"van-grid-item/badge-props": {
|
1664
|
+
"type": "BadgeProps",
|
1665
|
+
"description": "自定义徽标的属性,传入的对象会被透传给 [Badge 组件的 props](#/zh-CN/badge#props), 默认值: -"
|
1666
|
+
},
|
1683
1667
|
"van-grid-item/url": {
|
1684
1668
|
"type": "string",
|
1685
1669
|
"description": "点击后跳转的链接地址, 默认值: -"
|
@@ -1692,33 +1676,37 @@
|
|
1692
1676
|
"type": "boolean",
|
1693
1677
|
"description": "是否在跳转时替换当前页面历史, 默认值: `false`"
|
1694
1678
|
},
|
1695
|
-
"van-
|
1696
|
-
"type": "string
|
1697
|
-
"description": "
|
1698
|
-
},
|
1699
|
-
"van-index-bar/z-index": {
|
1700
|
-
"type": "number | string",
|
1701
|
-
"description": "z-index 层级, 默认值: `1`"
|
1679
|
+
"van-icon/name": {
|
1680
|
+
"type": "string",
|
1681
|
+
"description": "图标名称或图片链接, 默认值: -"
|
1702
1682
|
},
|
1703
|
-
"van-
|
1683
|
+
"van-icon/dot": {
|
1704
1684
|
"type": "boolean",
|
1705
|
-
"description": "
|
1685
|
+
"description": "是否显示图标右上角小红点, 默认值: `false`"
|
1706
1686
|
},
|
1707
|
-
"van-
|
1708
|
-
"type": "number",
|
1709
|
-
"description": "
|
1687
|
+
"van-icon/badge": {
|
1688
|
+
"type": "number | string",
|
1689
|
+
"description": "图标右上角徽标的内容, 默认值: -"
|
1710
1690
|
},
|
1711
|
-
"van-
|
1712
|
-
"type": "
|
1713
|
-
"description": "
|
1691
|
+
"van-icon/badge-props": {
|
1692
|
+
"type": "BadgeProps",
|
1693
|
+
"description": "自定义徽标的属性,传入的对象会被透传给 [Badge 组件的 props](#/zh-CN/badge#props), 默认值: -"
|
1714
1694
|
},
|
1715
|
-
"van-
|
1716
|
-
"type": "string
|
1717
|
-
"description": "
|
1695
|
+
"van-icon/color": {
|
1696
|
+
"type": "string",
|
1697
|
+
"description": "图标颜色, 默认值: `inherit`"
|
1718
1698
|
},
|
1719
|
-
"van-
|
1699
|
+
"van-icon/size": {
|
1720
1700
|
"type": "number | string",
|
1721
|
-
"description": "
|
1701
|
+
"description": "图标大小,如 `20px` `2em`,默认单位为 `px`, 默认值: `inherit`"
|
1702
|
+
},
|
1703
|
+
"van-icon/class-prefix": {
|
1704
|
+
"type": "string",
|
1705
|
+
"description": "类名前缀,用于使用自定义图标, 默认值: `van-icon`"
|
1706
|
+
},
|
1707
|
+
"van-icon/tag": {
|
1708
|
+
"type": "string",
|
1709
|
+
"description": "根节点对应的 HTML 标签名, 默认值: `i`"
|
1722
1710
|
},
|
1723
1711
|
"van-image/src": {
|
1724
1712
|
"type": "string",
|
@@ -1762,11 +1750,11 @@
|
|
1762
1750
|
},
|
1763
1751
|
"van-image/error-icon": {
|
1764
1752
|
"type": "string",
|
1765
|
-
"description": "
|
1753
|
+
"description": "失败时提示的图标名称或图片链接,等同于 Icon 组件的 [name 属性](#/zh-CN/icon#props), 默认值: `photo-fail`"
|
1766
1754
|
},
|
1767
1755
|
"van-image/loading-icon": {
|
1768
1756
|
"type": "string",
|
1769
|
-
"description": "
|
1757
|
+
"description": "加载时提示的图标名称或图片链接,等同于 Icon 组件的 [name 属性](#/zh-CN/icon#props), 默认值: `photo`"
|
1770
1758
|
},
|
1771
1759
|
"van-image/icon-size": {
|
1772
1760
|
"type": "number | string",
|
@@ -1843,6 +1831,13 @@
|
|
1843
1831
|
"type": "string",
|
1844
1832
|
"description": "动画类名,等价于 [transition](https://v3.cn.vuejs.org/api/built-in-components.html#transition) 的 `name` 属性, 默认值: `van-fade`"
|
1845
1833
|
},
|
1834
|
+
"van-image-preview/overlay-class": {
|
1835
|
+
"type": "string | Array \\",
|
1836
|
+
"description": "自定义遮罩层类名, 默认值: object_",
|
1837
|
+
"options": [
|
1838
|
+
"-"
|
1839
|
+
]
|
1840
|
+
},
|
1846
1841
|
"van-image-preview/overlay-style": {
|
1847
1842
|
"type": "object",
|
1848
1843
|
"description": "自定义遮罩层样式, 默认值: -"
|
@@ -1851,6 +1846,34 @@
|
|
1851
1846
|
"type": "string | Element",
|
1852
1847
|
"description": "指定挂载的节点,等同于 Teleport 组件的 [to 属性](https://v3.cn.vuejs.org/api/built-in-components.html#teleport), 默认值: -"
|
1853
1848
|
},
|
1849
|
+
"van-index-bar/index-list": {
|
1850
|
+
"type": "string[] | number[]",
|
1851
|
+
"description": "索引字符列表, 默认值: `A-Z`"
|
1852
|
+
},
|
1853
|
+
"van-index-bar/z-index": {
|
1854
|
+
"type": "number | string",
|
1855
|
+
"description": "z-index 层级, 默认值: `1`"
|
1856
|
+
},
|
1857
|
+
"van-index-bar/sticky": {
|
1858
|
+
"type": "boolean",
|
1859
|
+
"description": "是否开启锚点自动吸顶, 默认值: `true`"
|
1860
|
+
},
|
1861
|
+
"van-index-bar/sticky-offset-top": {
|
1862
|
+
"type": "number",
|
1863
|
+
"description": "锚点自动吸顶时与顶部的距离, 默认值: `0`"
|
1864
|
+
},
|
1865
|
+
"van-index-bar/highlight-color": {
|
1866
|
+
"type": "string",
|
1867
|
+
"description": "索引字符高亮颜色, 默认值: `#ee0a24`"
|
1868
|
+
},
|
1869
|
+
"van-index-bar/teleport": {
|
1870
|
+
"type": "string | Element",
|
1871
|
+
"description": "指定索引栏挂载的节点, 默认值: -"
|
1872
|
+
},
|
1873
|
+
"van-index-anchor/index": {
|
1874
|
+
"type": "number | string",
|
1875
|
+
"description": "索引字符, 默认值: -"
|
1876
|
+
},
|
1854
1877
|
"van-list/v-model:loading": {
|
1855
1878
|
"type": "boolean",
|
1856
1879
|
"description": "是否处于加载状态,加载过程中不触发 `load` 事件, 默认值: `false`"
|
@@ -1965,7 +1988,7 @@
|
|
1965
1988
|
},
|
1966
1989
|
"van-notice-bar/left-icon": {
|
1967
1990
|
"type": "string",
|
1968
|
-
"description": "
|
1991
|
+
"description": "左侧图标名称或图片链接,等同于 Icon 组件的 [name 属性](#/zh-CN/icon#props), 默认值: -"
|
1969
1992
|
},
|
1970
1993
|
"van-notice-bar/delay": {
|
1971
1994
|
"type": "number | string",
|
@@ -2311,7 +2334,7 @@
|
|
2311
2334
|
},
|
2312
2335
|
"van-popup/close-icon": {
|
2313
2336
|
"type": "string",
|
2314
|
-
"description": "
|
2337
|
+
"description": "关闭图标名称或图片链接,等同于 Icon 组件的 [name 属性](#/zh-CN/icon#props), 默认值: `cross`"
|
2315
2338
|
},
|
2316
2339
|
"van-popup/close-icon-position": {
|
2317
2340
|
"type": "string",
|
@@ -2341,42 +2364,6 @@
|
|
2341
2364
|
"type": "boolean",
|
2342
2365
|
"description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei), 默认值: `false`"
|
2343
2366
|
},
|
2344
|
-
"van-progress/percentage": {
|
2345
|
-
"type": "number | string",
|
2346
|
-
"description": "进度百分比, 默认值: `0`"
|
2347
|
-
},
|
2348
|
-
"van-progress/stroke-width": {
|
2349
|
-
"type": "number | string",
|
2350
|
-
"description": "进度条粗细,默认单位为`px`, 默认值: `4px`"
|
2351
|
-
},
|
2352
|
-
"van-progress/color": {
|
2353
|
-
"type": "string",
|
2354
|
-
"description": "进度条颜色, 默认值: `#1989fa`"
|
2355
|
-
},
|
2356
|
-
"van-progress/track-color": {
|
2357
|
-
"type": "string",
|
2358
|
-
"description": "轨道颜色, 默认值: `#e5e5e5`"
|
2359
|
-
},
|
2360
|
-
"van-progress/pivot-text": {
|
2361
|
-
"type": "string",
|
2362
|
-
"description": "进度文字内容, 默认值: 百分比"
|
2363
|
-
},
|
2364
|
-
"van-progress/pivot-color": {
|
2365
|
-
"type": "string",
|
2366
|
-
"description": "进度文字背景色, 默认值: 同进度条颜色"
|
2367
|
-
},
|
2368
|
-
"van-progress/text-color": {
|
2369
|
-
"type": "string",
|
2370
|
-
"description": "进度文字颜色, 默认值: `white`"
|
2371
|
-
},
|
2372
|
-
"van-progress/inactive": {
|
2373
|
-
"type": "boolean",
|
2374
|
-
"description": "是否置灰, 默认值: `false`"
|
2375
|
-
},
|
2376
|
-
"van-progress/show-pivot": {
|
2377
|
-
"type": "boolean",
|
2378
|
-
"description": "是否显示进度文字, 默认值: `true`"
|
2379
|
-
},
|
2380
2367
|
"van-pull-refresh/v-model": {
|
2381
2368
|
"type": "boolean",
|
2382
2369
|
"description": "是否处于加载中状态, 默认值: -"
|
@@ -2417,6 +2404,42 @@
|
|
2417
2404
|
"type": "boolean",
|
2418
2405
|
"description": "是否禁用下拉刷新, 默认值: `false`"
|
2419
2406
|
},
|
2407
|
+
"van-progress/percentage": {
|
2408
|
+
"type": "number | string",
|
2409
|
+
"description": "进度百分比, 默认值: `0`"
|
2410
|
+
},
|
2411
|
+
"van-progress/stroke-width": {
|
2412
|
+
"type": "number | string",
|
2413
|
+
"description": "进度条粗细,默认单位为`px`, 默认值: `4px`"
|
2414
|
+
},
|
2415
|
+
"van-progress/color": {
|
2416
|
+
"type": "string",
|
2417
|
+
"description": "进度条颜色, 默认值: `#1989fa`"
|
2418
|
+
},
|
2419
|
+
"van-progress/track-color": {
|
2420
|
+
"type": "string",
|
2421
|
+
"description": "轨道颜色, 默认值: `#e5e5e5`"
|
2422
|
+
},
|
2423
|
+
"van-progress/pivot-text": {
|
2424
|
+
"type": "string",
|
2425
|
+
"description": "进度文字内容, 默认值: 百分比"
|
2426
|
+
},
|
2427
|
+
"van-progress/pivot-color": {
|
2428
|
+
"type": "string",
|
2429
|
+
"description": "进度文字背景色, 默认值: 同进度条颜色"
|
2430
|
+
},
|
2431
|
+
"van-progress/text-color": {
|
2432
|
+
"type": "string",
|
2433
|
+
"description": "进度文字颜色, 默认值: `white`"
|
2434
|
+
},
|
2435
|
+
"van-progress/inactive": {
|
2436
|
+
"type": "boolean",
|
2437
|
+
"description": "是否置灰, 默认值: `false`"
|
2438
|
+
},
|
2439
|
+
"van-progress/show-pivot": {
|
2440
|
+
"type": "boolean",
|
2441
|
+
"description": "是否显示进度文字, 默认值: `true`"
|
2442
|
+
},
|
2420
2443
|
"van-radio/name": {
|
2421
2444
|
"type": "any",
|
2422
2445
|
"description": "标识符, 默认值: -"
|
@@ -2495,11 +2518,11 @@
|
|
2495
2518
|
},
|
2496
2519
|
"van-rate/icon": {
|
2497
2520
|
"type": "string",
|
2498
|
-
"description": "
|
2521
|
+
"description": "选中时的图标名称或图片链接,等同于 Icon 组件的 [name 属性](#/zh-CN/icon#props), 默认值: `star`"
|
2499
2522
|
},
|
2500
2523
|
"van-rate/void-icon": {
|
2501
2524
|
"type": "string",
|
2502
|
-
"description": "
|
2525
|
+
"description": "未选中时的图标名称或图片链接,等同于 Icon 组件的 [name 属性](#/zh-CN/icon#props), 默认值: `star-o`"
|
2503
2526
|
},
|
2504
2527
|
"van-rate/icon-prefix": {
|
2505
2528
|
"type": "string",
|
@@ -2559,7 +2582,7 @@
|
|
2559
2582
|
},
|
2560
2583
|
"van-search/clear-icon": {
|
2561
2584
|
"type": "string",
|
2562
|
-
"description": "
|
2585
|
+
"description": "清除图标名称或图片链接,等同于 Icon 组件的 [name 属性](#/zh-CN/icon#props), 默认值: `clear`"
|
2563
2586
|
},
|
2564
2587
|
"van-search/clear-trigger": {
|
2565
2588
|
"type": "string",
|
@@ -2607,11 +2630,11 @@
|
|
2607
2630
|
},
|
2608
2631
|
"van-search/left-icon": {
|
2609
2632
|
"type": "string",
|
2610
|
-
"description": "
|
2633
|
+
"description": "输入框左侧图标名称或图片链接,等同于 Icon 组件的 [name 属性](#/zh-CN/icon#props), 默认值: `search`"
|
2611
2634
|
},
|
2612
2635
|
"van-search/right-icon": {
|
2613
2636
|
"type": "string",
|
2614
|
-
"description": "
|
2637
|
+
"description": "输入框右侧图标名称或图片链接,等同于 Icon 组件的 [name 属性](#/zh-CN/icon#props), 默认值: -"
|
2615
2638
|
},
|
2616
2639
|
"van-search/autocomplete": {
|
2617
2640
|
"type": "string",
|
@@ -2704,6 +2727,10 @@
|
|
2704
2727
|
"type": "number | string",
|
2705
2728
|
"description": "图标右上角徽标的内容, 默认值: -"
|
2706
2729
|
},
|
2730
|
+
"van-sidebar-item/badge-props": {
|
2731
|
+
"type": "BadgeProps",
|
2732
|
+
"description": "自定义徽标的属性,传入的对象会被透传给 [Badge 组件的 props](#/zh-CN/badge#props), 默认值: -"
|
2733
|
+
},
|
2707
2734
|
"van-sidebar-item/disabled": {
|
2708
2735
|
"type": "boolean",
|
2709
2736
|
"description": "是否禁用该项, 默认值: `false`"
|
@@ -2996,7 +3023,7 @@
|
|
2996
3023
|
},
|
2997
3024
|
"van-submit-bar/tip-icon": {
|
2998
3025
|
"type": "string",
|
2999
|
-
"description": "
|
3026
|
+
"description": "提示文案左侧的图标名称或图片链接,等同于 Icon 组件的 [name 属性](#/zh-CN/icon#props), 默认值: -"
|
3000
3027
|
},
|
3001
3028
|
"van-submit-bar/currency": {
|
3002
3029
|
"type": "string",
|
@@ -3014,30 +3041,6 @@
|
|
3014
3041
|
"type": "boolean",
|
3015
3042
|
"description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei), 默认值: `true`"
|
3016
3043
|
},
|
3017
|
-
"van-swipe-cell/name": {
|
3018
|
-
"type": "number | string",
|
3019
|
-
"description": "标识符,可以在事件参数中获取到, 默认值: `''`"
|
3020
|
-
},
|
3021
|
-
"van-swipe-cell/left-width": {
|
3022
|
-
"type": "number | string",
|
3023
|
-
"description": "指定左侧滑动区域宽度,单位为 `px`, 默认值: `auto`"
|
3024
|
-
},
|
3025
|
-
"van-swipe-cell/right-width": {
|
3026
|
-
"type": "number | string",
|
3027
|
-
"description": "指定右侧滑动区域宽度,单位为 `px`, 默认值: `auto`"
|
3028
|
-
},
|
3029
|
-
"van-swipe-cell/before-close": {
|
3030
|
-
"type": "(args) => boolean | Promise\\<boolean\\>",
|
3031
|
-
"description": "关闭前的回调函数,返回 `false` 可阻止关闭,支持返回 Promise, 默认值: -"
|
3032
|
-
},
|
3033
|
-
"van-swipe-cell/disabled": {
|
3034
|
-
"type": "boolean",
|
3035
|
-
"description": "是否禁用滑动, 默认值: `false`"
|
3036
|
-
},
|
3037
|
-
"van-swipe-cell/stop-propagation": {
|
3038
|
-
"type": "boolean",
|
3039
|
-
"description": "是否阻止滑动事件冒泡, 默认值: `false`"
|
3040
|
-
},
|
3041
3044
|
"van-swipe/autoplay": {
|
3042
3045
|
"type": "number | string",
|
3043
3046
|
"description": "自动轮播间隔,单位为 ms, 默认值: -"
|
@@ -3086,6 +3089,30 @@
|
|
3086
3089
|
"type": "string",
|
3087
3090
|
"description": "指示器颜色, 默认值: `#1989fa`"
|
3088
3091
|
},
|
3092
|
+
"van-swipe-cell/name": {
|
3093
|
+
"type": "number | string",
|
3094
|
+
"description": "标识符,可以在事件参数中获取到, 默认值: `''`"
|
3095
|
+
},
|
3096
|
+
"van-swipe-cell/left-width": {
|
3097
|
+
"type": "number | string",
|
3098
|
+
"description": "指定左侧滑动区域宽度,单位为 `px`, 默认值: `auto`"
|
3099
|
+
},
|
3100
|
+
"van-swipe-cell/right-width": {
|
3101
|
+
"type": "number | string",
|
3102
|
+
"description": "指定右侧滑动区域宽度,单位为 `px`, 默认值: `auto`"
|
3103
|
+
},
|
3104
|
+
"van-swipe-cell/before-close": {
|
3105
|
+
"type": "(args) => boolean | Promise\\<boolean\\>",
|
3106
|
+
"description": "关闭前的回调函数,返回 `false` 可阻止关闭,支持返回 Promise, 默认值: -"
|
3107
|
+
},
|
3108
|
+
"van-swipe-cell/disabled": {
|
3109
|
+
"type": "boolean",
|
3110
|
+
"description": "是否禁用滑动, 默认值: `false`"
|
3111
|
+
},
|
3112
|
+
"van-swipe-cell/stop-propagation": {
|
3113
|
+
"type": "boolean",
|
3114
|
+
"description": "是否阻止滑动事件冒泡, 默认值: `false`"
|
3115
|
+
},
|
3089
3116
|
"van-switch/v-model": {
|
3090
3117
|
"type": "any",
|
3091
3118
|
"description": "开关选中状态, 默认值: `false`"
|
@@ -3162,6 +3189,10 @@
|
|
3162
3189
|
"type": "boolean",
|
3163
3190
|
"description": "是否使用粘性布局, 默认值: `false`"
|
3164
3191
|
},
|
3192
|
+
"van-tabs/shrink": {
|
3193
|
+
"type": "boolean",
|
3194
|
+
"description": "是否开启左侧收缩布局, 默认值: `false`"
|
3195
|
+
},
|
3165
3196
|
"van-tabs/swipeable": {
|
3166
3197
|
"type": "boolean",
|
3167
3198
|
"description": "是否开启手势左右滑动切换, 默认值: `false`"
|
@@ -3296,7 +3327,7 @@
|
|
3296
3327
|
},
|
3297
3328
|
"van-tabbar-item/icon": {
|
3298
3329
|
"type": "string",
|
3299
|
-
"description": "[
|
3330
|
+
"description": "图标名称或图片链接,等同于 Icon 组件的 [name 属性](#/zh-CN/icon#props), 默认值: -"
|
3300
3331
|
},
|
3301
3332
|
"van-tabbar-item/icon-prefix": {
|
3302
3333
|
"type": "string",
|
@@ -3310,6 +3341,10 @@
|
|
3310
3341
|
"type": "number | string",
|
3311
3342
|
"description": "图标右上角徽标的内容, 默认值: -"
|
3312
3343
|
},
|
3344
|
+
"van-tabbar-item/badge-props": {
|
3345
|
+
"type": "BadgeProps",
|
3346
|
+
"description": "自定义徽标的属性,传入的对象会被透传给 [Badge 组件的 props](#/zh-CN/badge#props), 默认值: -"
|
3347
|
+
},
|
3313
3348
|
"van-tabbar-item/url": {
|
3314
3349
|
"type": "string",
|
3315
3350
|
"description": "点击后跳转的链接地址, 默认值: -"
|
@@ -3478,6 +3513,6 @@
|
|
3478
3513
|
},
|
3479
3514
|
"van-uploader/upload-icon": {
|
3480
3515
|
"type": "string",
|
3481
|
-
"description": "
|
3516
|
+
"description": "上传区域图标名称或图片链接,等同于 Icon 组件的 [name 属性](#/zh-CN/icon#props), 默认值: `photograph`"
|
3482
3517
|
}
|
3483
3518
|
}
|