vant 3.3.7 → 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 +3 -3
- package/es/badge/index.d.ts +7 -2
- package/es/button/Button.d.ts +4 -4
- package/es/button/index.d.ts +8 -3
- package/es/calendar/Calendar.d.ts +3 -3
- 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 +7 -2
- 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/DatetimePicker.d.ts +2 -2
- package/es/datetime-picker/TimePicker.d.ts +1 -1
- package/es/datetime-picker/index.d.ts +6 -1
- package/es/datetime-picker/utils.d.ts +1 -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/index.d.ts +6 -1
- package/es/field/types.d.ts +1 -1
- 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/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 +3 -4
- 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 +2 -2
- 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 +3 -3
- package/lib/badge/index.d.ts +7 -2
- package/lib/button/Button.d.ts +4 -4
- package/lib/button/index.d.ts +8 -3
- package/lib/calendar/Calendar.d.ts +3 -3
- 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 +7 -2
- 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/DatetimePicker.d.ts +2 -2
- package/lib/datetime-picker/TimePicker.d.ts +1 -1
- package/lib/datetime-picker/index.d.ts +6 -1
- package/lib/datetime-picker/utils.d.ts +1 -1
- 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/index.d.ts +6 -1
- package/lib/field/types.d.ts +1 -1
- 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/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 +3 -4
- 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/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 +2 -2
- 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 +190 -117
- package/lib/vant.cjs.min.js +1 -1
- package/lib/vant.es.js +191 -118
- package/lib/vant.es.min.js +191 -118
- package/lib/vant.js +190 -117
- package/lib/vant.min.js +1 -1
- package/package.json +1 -1
- package/vetur/attributes.json +178 -147
- package/vetur/tags.json +48 -41
- package/vetur/web-types.json +491 -403
package/es/button/Button.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { PropType, ExtractPropTypes } from 'vue';
|
1
|
+
import { type PropType, type ExtractPropTypes } from 'vue';
|
2
2
|
import { LoadingType } from '../loading';
|
3
3
|
import { ButtonSize, ButtonType, ButtonNativeType, ButtonIconPosition } from './types';
|
4
4
|
declare const buttonProps: {
|
@@ -81,7 +81,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
81
81
|
type: PropType<ButtonIconPosition>;
|
82
82
|
default: ButtonIconPosition;
|
83
83
|
};
|
84
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("
|
84
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
85
85
|
to?: unknown;
|
86
86
|
url?: unknown;
|
87
87
|
replace?: unknown;
|
@@ -119,10 +119,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
119
119
|
nativeType: ButtonNativeType;
|
120
120
|
iconPosition: ButtonIconPosition;
|
121
121
|
} & {
|
122
|
-
text?: string | undefined;
|
123
122
|
url?: string | undefined;
|
124
|
-
|
123
|
+
text?: string | undefined;
|
125
124
|
color?: string | undefined;
|
125
|
+
to?: import("vue-router").RouteLocationRaw | undefined;
|
126
126
|
iconPrefix?: string | undefined;
|
127
127
|
icon?: string | undefined;
|
128
128
|
loadingSize?: string | number | undefined;
|
package/es/button/index.d.ts
CHANGED
@@ -37,7 +37,7 @@ export declare const Button: import("../utils").WithInstall<import("vue").Define
|
|
37
37
|
type: import("vue").PropType<import("./types").ButtonIconPosition>;
|
38
38
|
default: import("./types").ButtonIconPosition;
|
39
39
|
};
|
40
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("
|
40
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
41
41
|
to?: unknown;
|
42
42
|
url?: unknown;
|
43
43
|
replace?: unknown;
|
@@ -75,10 +75,10 @@ export declare const Button: import("../utils").WithInstall<import("vue").Define
|
|
75
75
|
nativeType: import("./types").ButtonNativeType;
|
76
76
|
iconPosition: import("./types").ButtonIconPosition;
|
77
77
|
} & {
|
78
|
-
text?: string | undefined;
|
79
78
|
url?: string | undefined;
|
80
|
-
|
79
|
+
text?: string | undefined;
|
81
80
|
color?: string | undefined;
|
81
|
+
to?: import("vue-router").RouteLocationRaw | undefined;
|
82
82
|
iconPrefix?: string | undefined;
|
83
83
|
icon?: string | undefined;
|
84
84
|
loadingSize?: string | number | undefined;
|
@@ -104,3 +104,8 @@ export declare const Button: import("../utils").WithInstall<import("vue").Define
|
|
104
104
|
export default Button;
|
105
105
|
export type { ButtonProps } from './Button';
|
106
106
|
export type { ButtonType, ButtonSize, ButtonNativeType, ButtonIconPosition, } from './types';
|
107
|
+
declare module 'vue' {
|
108
|
+
interface GlobalComponents {
|
109
|
+
VanButton: typeof Button;
|
110
|
+
}
|
111
|
+
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { PropType, ExtractPropTypes } from 'vue';
|
1
|
+
import { type PropType, type ExtractPropTypes } from 'vue';
|
2
2
|
import { PopupPosition } from '../popup';
|
3
3
|
import type { CalendarType, CalendarDayItem } from './types';
|
4
4
|
declare const calendarProps: {
|
@@ -171,7 +171,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
171
171
|
default: number;
|
172
172
|
validator: (val: number) => boolean;
|
173
173
|
};
|
174
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "update:show" | "confirm" | "click-subtitle" | "unselect" | "month-show" | "over-range")[], "select" | "update:show" | "confirm" | "click-subtitle" | "unselect" | "month-show" | "over-range", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("
|
174
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "update:show" | "confirm" | "click-subtitle" | "unselect" | "month-show" | "over-range")[], "select" | "update:show" | "confirm" | "click-subtitle" | "unselect" | "month-show" | "over-range", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
175
175
|
show?: unknown;
|
176
176
|
type?: unknown;
|
177
177
|
title?: unknown;
|
@@ -223,8 +223,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
223
223
|
showRangePrompt: boolean;
|
224
224
|
firstDayOfWeek: string | number;
|
225
225
|
} & {
|
226
|
-
title?: string | undefined;
|
227
226
|
color?: string | undefined;
|
227
|
+
title?: string | undefined;
|
228
228
|
formatter?: ((item: CalendarDayItem) => CalendarDayItem) | undefined;
|
229
229
|
teleport?: string | import("vue").RendererElement | null | undefined;
|
230
230
|
rowHeight?: string | number | undefined;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { PropType } from 'vue';
|
1
|
+
import { type PropType } from 'vue';
|
2
2
|
import type { CalendarDayItem } from './types';
|
3
3
|
declare const _default: import("vue").DefineComponent<{
|
4
4
|
item: {
|
@@ -12,7 +12,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
12
12
|
default: number;
|
13
13
|
};
|
14
14
|
rowHeight: StringConstructor;
|
15
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("
|
15
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
16
16
|
item?: unknown;
|
17
17
|
color?: unknown;
|
18
18
|
index?: unknown;
|
@@ -4,7 +4,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
4
4
|
showTitle: BooleanConstructor;
|
5
5
|
showSubtitle: BooleanConstructor;
|
6
6
|
firstDayOfWeek: NumberConstructor;
|
7
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click-subtitle"[], "click-subtitle", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("
|
7
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click-subtitle"[], "click-subtitle", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
8
8
|
title?: unknown;
|
9
9
|
subtitle?: unknown;
|
10
10
|
showTitle?: unknown;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { PropType, ExtractPropTypes } from 'vue';
|
1
|
+
import { type PropType, type ExtractPropTypes } from 'vue';
|
2
2
|
import type { CalendarType, CalendarDayItem } from './types';
|
3
3
|
declare const calendarMonthProps: {
|
4
4
|
date: {
|
@@ -50,7 +50,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
50
50
|
showSubtitle: BooleanConstructor;
|
51
51
|
showMonthTitle: BooleanConstructor;
|
52
52
|
firstDayOfWeek: NumberConstructor;
|
53
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "update-height")[], "click" | "update-height", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("
|
53
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "update-height")[], "click" | "update-height", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
54
54
|
date?: unknown;
|
55
55
|
type?: unknown;
|
56
56
|
color?: unknown;
|
@@ -66,8 +66,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
66
66
|
showMonthTitle?: unknown;
|
67
67
|
firstDayOfWeek?: unknown;
|
68
68
|
} & {
|
69
|
-
lazyRender: boolean;
|
70
69
|
date: Date;
|
70
|
+
lazyRender: boolean;
|
71
71
|
minDate: Date;
|
72
72
|
maxDate: Date;
|
73
73
|
showMark: boolean;
|
@@ -75,8 +75,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
75
75
|
showSubtitle: boolean;
|
76
76
|
showMonthTitle: boolean;
|
77
77
|
} & {
|
78
|
-
type?: CalendarType | undefined;
|
79
78
|
color?: string | undefined;
|
79
|
+
type?: CalendarType | undefined;
|
80
80
|
formatter?: ((item: CalendarDayItem) => CalendarDayItem) | undefined;
|
81
81
|
rowHeight?: string | number | undefined;
|
82
82
|
firstDayOfWeek?: number | undefined;
|
package/es/calendar/index.d.ts
CHANGED
@@ -82,7 +82,7 @@ export declare const Calendar: import("../utils").WithInstall<import("vue").Defi
|
|
82
82
|
default: number;
|
83
83
|
validator: (val: number) => boolean;
|
84
84
|
};
|
85
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "update:show" | "confirm" | "click-subtitle" | "unselect" | "month-show" | "over-range")[], "select" | "update:show" | "confirm" | "click-subtitle" | "unselect" | "month-show" | "over-range", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("
|
85
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "update:show" | "confirm" | "click-subtitle" | "unselect" | "month-show" | "over-range")[], "select" | "update:show" | "confirm" | "click-subtitle" | "unselect" | "month-show" | "over-range", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
86
86
|
show?: unknown;
|
87
87
|
type?: unknown;
|
88
88
|
title?: unknown;
|
@@ -134,8 +134,8 @@ export declare const Calendar: import("../utils").WithInstall<import("vue").Defi
|
|
134
134
|
showRangePrompt: boolean;
|
135
135
|
firstDayOfWeek: string | number;
|
136
136
|
} & {
|
137
|
-
title?: string | undefined;
|
138
137
|
color?: string | undefined;
|
138
|
+
title?: string | undefined;
|
139
139
|
formatter?: ((item: import("./types").CalendarDayItem) => import("./types").CalendarDayItem) | undefined;
|
140
140
|
teleport?: string | import("vue").RendererElement | null | undefined;
|
141
141
|
rowHeight?: string | number | undefined;
|
@@ -176,3 +176,8 @@ export declare const Calendar: import("../utils").WithInstall<import("vue").Defi
|
|
176
176
|
export default Calendar;
|
177
177
|
export type { CalendarProps } from './Calendar';
|
178
178
|
export type { CalendarType, CalendarDayItem, CalendarDayType, CalendarInstance, } from './types';
|
179
|
+
declare module 'vue' {
|
180
|
+
interface GlobalComponents {
|
181
|
+
VanCalendar: typeof Calendar;
|
182
|
+
}
|
183
|
+
}
|
package/es/card/Card.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { ExtractPropTypes } from 'vue';
|
1
|
+
import { type ExtractPropTypes } from 'vue';
|
2
2
|
declare const cardProps: {
|
3
3
|
tag: StringConstructor;
|
4
4
|
num: (NumberConstructor | StringConstructor)[];
|
@@ -31,7 +31,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
31
31
|
};
|
32
32
|
thumbLink: StringConstructor;
|
33
33
|
originPrice: (NumberConstructor | StringConstructor)[];
|
34
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click-thumb"[], "click-thumb", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("
|
34
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click-thumb"[], "click-thumb", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
35
35
|
tag?: unknown;
|
36
36
|
num?: unknown;
|
37
37
|
desc?: unknown;
|
package/es/card/index.d.ts
CHANGED
@@ -13,7 +13,7 @@ export declare const Card: import("../utils").WithInstall<import("vue").DefineCo
|
|
13
13
|
};
|
14
14
|
thumbLink: StringConstructor;
|
15
15
|
originPrice: (NumberConstructor | StringConstructor)[];
|
16
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click-thumb"[], "click-thumb", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("
|
16
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click-thumb"[], "click-thumb", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
17
17
|
tag?: unknown;
|
18
18
|
num?: unknown;
|
19
19
|
desc?: unknown;
|
@@ -47,3 +47,8 @@ export declare const Card: import("../utils").WithInstall<import("vue").DefineCo
|
|
47
47
|
}>>;
|
48
48
|
export default Card;
|
49
49
|
export type { CardProps } from './Card';
|
50
|
+
declare module 'vue' {
|
51
|
+
interface GlobalComponents {
|
52
|
+
VanCard: typeof Card;
|
53
|
+
}
|
54
|
+
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { PropType, ExtractPropTypes } from 'vue';
|
1
|
+
import { type PropType, type ExtractPropTypes } from 'vue';
|
2
2
|
import type { CascaderOption, CascaderFieldNames } from './types';
|
3
3
|
declare const cascaderProps: {
|
4
4
|
title: StringConstructor;
|
@@ -46,7 +46,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
46
46
|
fieldNames: PropType<CascaderFieldNames>;
|
47
47
|
placeholder: StringConstructor;
|
48
48
|
activeColor: StringConstructor;
|
49
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change" | "close" | "click-tab" | "finish")[], "update:modelValue" | "change" | "close" | "click-tab" | "finish", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("
|
49
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change" | "close" | "click-tab" | "finish")[], "update:modelValue" | "change" | "close" | "click-tab" | "finish", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
50
50
|
title?: unknown;
|
51
51
|
options?: unknown;
|
52
52
|
closeable?: unknown;
|
package/es/cascader/Cascader.js
CHANGED
@@ -223,10 +223,10 @@ export default defineComponent({
|
|
223
223
|
var renderTabs = () => _createVNode(Tabs, {
|
224
224
|
"active": activeTab.value,
|
225
225
|
"onUpdate:active": $event => activeTab.value = $event,
|
226
|
+
"shrink": true,
|
226
227
|
"animated": true,
|
227
228
|
"class": bem('tabs'),
|
228
229
|
"color": props.activeColor,
|
229
|
-
"swipeThreshold": 0,
|
230
230
|
"swipeable": props.swipeable,
|
231
231
|
"onClick-tab": onClickTab
|
232
232
|
}, {
|
package/es/cascader/index.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
:root{--van-cascader-header-height:48px;--van-cascader-header-padding:0 var(--van-padding-md);--van-cascader-title-font-size:var(--van-font-size-lg);--van-cascader-title-line-height:20px;--van-cascader-close-icon-size:22px;--van-cascader-close-icon-color:var(--van-gray-5);--van-cascader-selected-icon-size:18px;--van-cascader-tabs-height:48px;--van-cascader-active-color:var(--van-danger-color);--van-cascader-options-height:384px;--van-cascader-option-disabled-color:var(--van-text-color-3);--van-cascader-tab-color:var(--van-text-color);--van-cascader-unselected-tab-color:var(--van-text-color-2)}.van-cascader__header{display:flex;align-items:center;justify-content:space-between;height:var(--van-cascader-header-height);padding:var(--van-cascader-header-padding)}.van-cascader__title{font-weight:var(--van-font-weight-bold);font-size:var(--van-cascader-title-font-size);line-height:var(--van-cascader-title-line-height)}.van-cascader__close-icon{color:var(--van-cascader-close-icon-color);font-size:var(--van-cascader-close-icon-size)}.van-cascader__tabs
|
1
|
+
:root{--van-cascader-header-height:48px;--van-cascader-header-padding:0 var(--van-padding-md);--van-cascader-title-font-size:var(--van-font-size-lg);--van-cascader-title-line-height:20px;--van-cascader-close-icon-size:22px;--van-cascader-close-icon-color:var(--van-gray-5);--van-cascader-selected-icon-size:18px;--van-cascader-tabs-height:48px;--van-cascader-active-color:var(--van-danger-color);--van-cascader-options-height:384px;--van-cascader-option-disabled-color:var(--van-text-color-3);--van-cascader-tab-color:var(--van-text-color);--van-cascader-unselected-tab-color:var(--van-text-color-2)}.van-cascader__header{display:flex;align-items:center;justify-content:space-between;height:var(--van-cascader-header-height);padding:var(--van-cascader-header-padding)}.van-cascader__title{font-weight:var(--van-font-weight-bold);font-size:var(--van-cascader-title-font-size);line-height:var(--van-cascader-title-line-height)}.van-cascader__close-icon{color:var(--van-cascader-close-icon-color);font-size:var(--van-cascader-close-icon-size)}.van-cascader__tabs.van-tabs--line .van-tabs__wrap{height:var(--van-cascader-tabs-height)}.van-cascader__tab{color:var(--van-cascader-tab-color);font-weight:var(--van-font-weight-bold)}.van-cascader__tab--unselected{color:var(--van-cascader-unselected-tab-color);font-weight:400}.van-cascader__option{display:flex;align-items:center;justify-content:space-between;padding:10px var(--van-padding-md);font-size:var(--van-font-size-md);line-height:var(--van-line-height-md);cursor:pointer}.van-cascader__option:active{background-color:var(--van-active-color)}.van-cascader__option--selected{color:var(--van-cascader-active-color);font-weight:var(--van-font-weight-bold)}.van-cascader__option--disabled{color:var(--van-cascader-option-disabled-color);cursor:not-allowed}.van-cascader__option--disabled:active{background-color:transparent}.van-cascader__selected-icon{font-size:var(--van-cascader-selected-icon-size)}.van-cascader__options{box-sizing:border-box;height:var(--van-cascader-options-height);padding-top:6px;overflow-y:auto;-webkit-overflow-scrolling:touch}
|
package/es/cascader/index.d.ts
CHANGED
@@ -20,7 +20,7 @@ export declare const Cascader: import("../utils").WithInstall<import("vue").Defi
|
|
20
20
|
fieldNames: import("vue").PropType<import("./types").CascaderFieldNames>;
|
21
21
|
placeholder: StringConstructor;
|
22
22
|
activeColor: StringConstructor;
|
23
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change" | "close" | "click-tab" | "finish")[], "update:modelValue" | "change" | "close" | "click-tab" | "finish", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("
|
23
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change" | "close" | "click-tab" | "finish")[], "update:modelValue" | "change" | "close" | "click-tab" | "finish", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
24
24
|
title?: unknown;
|
25
25
|
options?: unknown;
|
26
26
|
closeable?: unknown;
|
@@ -56,3 +56,8 @@ export declare const Cascader: import("../utils").WithInstall<import("vue").Defi
|
|
56
56
|
export default Cascader;
|
57
57
|
export type { CascaderProps } from './Cascader';
|
58
58
|
export type { CascaderOption, CascaderFieldNames } from './types';
|
59
|
+
declare module 'vue' {
|
60
|
+
interface GlobalComponents {
|
61
|
+
VanCascader: typeof Cascader;
|
62
|
+
}
|
63
|
+
}
|
package/es/cascader/index.less
CHANGED
@@ -37,19 +37,9 @@
|
|
37
37
|
}
|
38
38
|
|
39
39
|
&__tabs {
|
40
|
-
.van-tab {
|
41
|
-
flex: none;
|
42
|
-
padding: 0 10px;
|
43
|
-
}
|
44
|
-
|
45
40
|
&.van-tabs--line .van-tabs__wrap {
|
46
41
|
height: var(--van-cascader-tabs-height);
|
47
42
|
}
|
48
|
-
|
49
|
-
.van-tabs__nav--complete {
|
50
|
-
padding-right: 6px;
|
51
|
-
padding-left: 6px;
|
52
|
-
}
|
53
43
|
}
|
54
44
|
|
55
45
|
&__tab {
|
package/es/cell/Cell.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { PropType, CSSProperties, ExtractPropTypes } from 'vue';
|
1
|
+
import { type PropType, type CSSProperties, type ExtractPropTypes } from 'vue';
|
2
2
|
export declare type CellSize = 'normal' | 'large';
|
3
3
|
export declare type CellArrowDirection = 'up' | 'down' | 'left' | 'right';
|
4
4
|
export declare const cellSharedProps: {
|
@@ -81,7 +81,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
81
81
|
to: PropType<import("vue-router").RouteLocationRaw>;
|
82
82
|
url: StringConstructor;
|
83
83
|
replace: BooleanConstructor;
|
84
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("
|
84
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
85
85
|
icon?: unknown;
|
86
86
|
size?: unknown;
|
87
87
|
title?: unknown;
|
package/es/cell/index.d.ts
CHANGED
@@ -25,7 +25,7 @@ export declare const Cell: import("../utils").WithInstall<import("vue").DefineCo
|
|
25
25
|
to: import("vue").PropType<import("vue-router").RouteLocationRaw>;
|
26
26
|
url: StringConstructor;
|
27
27
|
replace: BooleanConstructor;
|
28
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("
|
28
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
29
29
|
icon?: unknown;
|
30
30
|
size?: unknown;
|
31
31
|
title?: unknown;
|
@@ -76,3 +76,8 @@ export declare const Cell: import("../utils").WithInstall<import("vue").DefineCo
|
|
76
76
|
}>>;
|
77
77
|
export default Cell;
|
78
78
|
export type { CellSize, CellProps, CellArrowDirection } from './Cell';
|
79
|
+
declare module 'vue' {
|
80
|
+
interface GlobalComponents {
|
81
|
+
VanCell: typeof Cell;
|
82
|
+
}
|
83
|
+
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { ExtractPropTypes } from 'vue';
|
1
|
+
import { type ExtractPropTypes } from 'vue';
|
2
2
|
declare const cellGroupProps: {
|
3
3
|
title: StringConstructor;
|
4
4
|
inset: BooleanConstructor;
|
@@ -15,7 +15,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
15
15
|
type: BooleanConstructor;
|
16
16
|
default: true;
|
17
17
|
};
|
18
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("
|
18
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
19
19
|
title?: unknown;
|
20
20
|
inset?: unknown;
|
21
21
|
border?: unknown;
|
package/es/cell-group/index.d.ts
CHANGED
@@ -5,7 +5,7 @@ export declare const CellGroup: import("../utils").WithInstall<import("vue").Def
|
|
5
5
|
type: BooleanConstructor;
|
6
6
|
default: true;
|
7
7
|
};
|
8
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("
|
8
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
9
9
|
title?: unknown;
|
10
10
|
inset?: unknown;
|
11
11
|
border?: unknown;
|
@@ -20,3 +20,8 @@ export declare const CellGroup: import("../utils").WithInstall<import("vue").Def
|
|
20
20
|
}>>;
|
21
21
|
export default CellGroup;
|
22
22
|
export type { CellGroupProps } from './CellGroup';
|
23
|
+
declare module 'vue' {
|
24
|
+
interface GlobalComponents {
|
25
|
+
VanCellGroup: typeof CellGroup;
|
26
|
+
}
|
27
|
+
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { ExtractPropTypes } from 'vue';
|
1
|
+
import { type ExtractPropTypes } from 'vue';
|
2
2
|
declare const checkboxProps: {
|
3
3
|
name: import("vue").PropType<unknown>;
|
4
4
|
shape: {
|
@@ -35,7 +35,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
35
35
|
type: BooleanConstructor;
|
36
36
|
default: true;
|
37
37
|
};
|
38
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("
|
38
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
39
39
|
name?: unknown;
|
40
40
|
shape?: unknown;
|
41
41
|
disabled?: unknown;
|
package/es/checkbox/Checker.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { PropType } from 'vue';
|
1
|
+
import { type PropType } from 'vue';
|
2
2
|
export declare type CheckerShape = 'square' | 'round';
|
3
3
|
export declare type CheckerDirection = 'horizontal' | 'vertical';
|
4
4
|
export declare type CheckerLabelPosition = 'left' | 'right';
|
@@ -47,7 +47,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
47
47
|
type: BooleanConstructor;
|
48
48
|
default: true;
|
49
49
|
};
|
50
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "toggle")[], "click" | "toggle", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("
|
50
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "toggle")[], "click" | "toggle", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
51
51
|
name?: unknown;
|
52
52
|
shape?: unknown;
|
53
53
|
disabled?: unknown;
|
package/es/checkbox/index.d.ts
CHANGED
@@ -15,7 +15,7 @@ export declare const Checkbox: import("../utils").WithInstall<import("vue").Defi
|
|
15
15
|
type: BooleanConstructor;
|
16
16
|
default: true;
|
17
17
|
};
|
18
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("
|
18
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
19
19
|
name?: unknown;
|
20
20
|
shape?: unknown;
|
21
21
|
disabled?: unknown;
|
@@ -48,3 +48,8 @@ export declare const Checkbox: import("../utils").WithInstall<import("vue").Defi
|
|
48
48
|
export default Checkbox;
|
49
49
|
export type { CheckboxProps } from './Checkbox';
|
50
50
|
export type { CheckboxShape, CheckboxInstance, CheckboxLabelPosition, } from './types';
|
51
|
+
declare module 'vue' {
|
52
|
+
interface GlobalComponents {
|
53
|
+
VanCheckbox: typeof Checkbox;
|
54
|
+
}
|
55
|
+
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { PropType, InjectionKey, ExtractPropTypes } from 'vue';
|
1
|
+
import { type PropType, type InjectionKey, type ExtractPropTypes } from 'vue';
|
2
2
|
import type { CheckerDirection } from '../checkbox/Checker';
|
3
3
|
import type { CheckboxGroupProvide } from './types';
|
4
4
|
declare const checkboxGroupProps: {
|
@@ -24,7 +24,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
24
24
|
default: () => never[];
|
25
25
|
};
|
26
26
|
checkedColor: StringConstructor;
|
27
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("
|
27
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
28
28
|
max?: unknown;
|
29
29
|
disabled?: unknown;
|
30
30
|
iconSize?: unknown;
|
@@ -8,7 +8,7 @@ export declare const CheckboxGroup: import("../utils").WithInstall<import("vue")
|
|
8
8
|
default: () => never[];
|
9
9
|
};
|
10
10
|
checkedColor: StringConstructor;
|
11
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("
|
11
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
12
12
|
max?: unknown;
|
13
13
|
disabled?: unknown;
|
14
14
|
iconSize?: unknown;
|
@@ -33,3 +33,8 @@ export declare const CheckboxGroup: import("../utils").WithInstall<import("vue")
|
|
33
33
|
export default CheckboxGroup;
|
34
34
|
export type { CheckboxGroupProps } from './CheckboxGroup';
|
35
35
|
export type { CheckboxGroupInstance, CheckboxGroupDirection, CheckboxGroupToggleAllOptions, } from './types';
|
36
|
+
declare module 'vue' {
|
37
|
+
interface GlobalComponents {
|
38
|
+
VanCheckboxGroup: typeof CheckboxGroup;
|
39
|
+
}
|
40
|
+
}
|
package/es/circle/Circle.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { PropType, ExtractPropTypes } from 'vue';
|
1
|
+
import { type PropType, type ExtractPropTypes } from 'vue';
|
2
2
|
export declare type CircleStartPosition = 'top' | 'right' | 'bottom' | 'left';
|
3
3
|
declare const circleProps: {
|
4
4
|
text: StringConstructor;
|
@@ -70,7 +70,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
70
70
|
type: PropType<CircleStartPosition>;
|
71
71
|
default: CircleStartPosition;
|
72
72
|
};
|
73
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:currentRate"[], "update:currentRate", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("
|
73
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:currentRate"[], "update:currentRate", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
74
74
|
text?: unknown;
|
75
75
|
size?: unknown;
|
76
76
|
fill?: unknown;
|
package/es/circle/index.d.ts
CHANGED
@@ -32,7 +32,7 @@ export declare const Circle: import("../utils").WithInstall<import("vue").Define
|
|
32
32
|
type: import("vue").PropType<import("./Circle").CircleStartPosition>;
|
33
33
|
default: import("./Circle").CircleStartPosition;
|
34
34
|
};
|
35
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:currentRate"[], "update:currentRate", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("
|
35
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:currentRate"[], "update:currentRate", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
36
36
|
text?: unknown;
|
37
37
|
size?: unknown;
|
38
38
|
fill?: unknown;
|
@@ -72,3 +72,8 @@ export declare const Circle: import("../utils").WithInstall<import("vue").Define
|
|
72
72
|
}>>;
|
73
73
|
export default Circle;
|
74
74
|
export type { CircleProps, CircleStartPosition } from './Circle';
|
75
|
+
declare module 'vue' {
|
76
|
+
interface GlobalComponents {
|
77
|
+
VanCircle: typeof Circle;
|
78
|
+
}
|
79
|
+
}
|
package/es/col/Col.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { ExtractPropTypes } from 'vue';
|
1
|
+
import { type ExtractPropTypes } from 'vue';
|
2
2
|
declare const colProps: {
|
3
3
|
tag: {
|
4
4
|
type: import("vue").PropType<keyof HTMLElementTagNameMap>;
|
@@ -21,7 +21,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
21
21
|
default: number;
|
22
22
|
};
|
23
23
|
offset: (NumberConstructor | StringConstructor)[];
|
24
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("
|
24
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
25
25
|
tag?: unknown;
|
26
26
|
span?: unknown;
|
27
27
|
offset?: unknown;
|
package/es/col/index.d.ts
CHANGED
@@ -8,7 +8,7 @@ export declare const Col: import("../utils").WithInstall<import("vue").DefineCom
|
|
8
8
|
default: number;
|
9
9
|
};
|
10
10
|
offset: (NumberConstructor | StringConstructor)[];
|
11
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("
|
11
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
12
12
|
tag?: unknown;
|
13
13
|
span?: unknown;
|
14
14
|
offset?: unknown;
|
@@ -23,3 +23,8 @@ export declare const Col: import("../utils").WithInstall<import("vue").DefineCom
|
|
23
23
|
}>>;
|
24
24
|
export default Col;
|
25
25
|
export type { ColProps } from './Col';
|
26
|
+
declare module 'vue' {
|
27
|
+
interface GlobalComponents {
|
28
|
+
VanCol: typeof Col;
|
29
|
+
}
|
30
|
+
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { PropType, InjectionKey, ExtractPropTypes } from 'vue';
|
1
|
+
import { type PropType, type InjectionKey, type ExtractPropTypes } from 'vue';
|
2
2
|
export declare type CollapseProvide = {
|
3
3
|
toggle: (name: number | string, expanded: boolean) => void;
|
4
4
|
isExpanded: (name: number | string) => boolean;
|
@@ -26,7 +26,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
26
26
|
type: PropType<string | number | (string | number)[]>;
|
27
27
|
default: string;
|
28
28
|
};
|
29
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("
|
29
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
30
30
|
border?: unknown;
|
31
31
|
accordion?: unknown;
|
32
32
|
modelValue?: unknown;
|
package/es/collapse/index.d.ts
CHANGED
@@ -8,7 +8,7 @@ export declare const Collapse: import("../utils").WithInstall<import("vue").Defi
|
|
8
8
|
type: import("vue").PropType<string | number | (string | number)[]>;
|
9
9
|
default: string;
|
10
10
|
};
|
11
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("
|
11
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
12
12
|
border?: unknown;
|
13
13
|
accordion?: unknown;
|
14
14
|
modelValue?: unknown;
|
@@ -26,3 +26,8 @@ export declare const Collapse: import("../utils").WithInstall<import("vue").Defi
|
|
26
26
|
}>>;
|
27
27
|
export default Collapse;
|
28
28
|
export type { CollapseProps } from './Collapse';
|
29
|
+
declare module 'vue' {
|
30
|
+
interface GlobalComponents {
|
31
|
+
VanCollapse: typeof Collapse;
|
32
|
+
}
|
33
|
+
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { ExtractPropTypes } from 'vue';
|
1
|
+
import { type ExtractPropTypes } from 'vue';
|
2
2
|
declare const collapseItemProps: {
|
3
3
|
icon: StringConstructor;
|
4
4
|
size: import("vue").PropType<import("../cell").CellSize>;
|
@@ -63,7 +63,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
63
63
|
};
|
64
64
|
disabled: BooleanConstructor;
|
65
65
|
readonly: BooleanConstructor;
|
66
|
-
}, (() => JSX.Element) | undefined, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("
|
66
|
+
}, (() => JSX.Element) | undefined, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
67
67
|
icon?: unknown;
|
68
68
|
size?: unknown;
|
69
69
|
title?: unknown;
|
@@ -29,7 +29,7 @@ export declare const CollapseItem: import("../utils").WithInstall<import("vue").
|
|
29
29
|
};
|
30
30
|
disabled: BooleanConstructor;
|
31
31
|
readonly: BooleanConstructor;
|
32
|
-
}, (() => JSX.Element) | undefined, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("
|
32
|
+
}, (() => JSX.Element) | undefined, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
33
33
|
icon?: unknown;
|
34
34
|
size?: unknown;
|
35
35
|
title?: unknown;
|
@@ -82,3 +82,8 @@ export declare const CollapseItem: import("../utils").WithInstall<import("vue").
|
|
82
82
|
export default CollapseItem;
|
83
83
|
export type { CollapseItemProps } from './CollapseItem';
|
84
84
|
export type { CollapseItemInstance } from './types';
|
85
|
+
declare module 'vue' {
|
86
|
+
interface GlobalComponents {
|
87
|
+
VanCollapseItem: typeof CollapseItem;
|
88
|
+
}
|
89
|
+
}
|
@@ -1,12 +1,19 @@
|
|
1
1
|
import { ref, onBeforeUpdate } from 'vue';
|
2
2
|
export function useRefs() {
|
3
3
|
var refs = ref([]);
|
4
|
+
var cache = [];
|
4
5
|
onBeforeUpdate(() => {
|
5
6
|
refs.value = [];
|
6
7
|
});
|
7
8
|
|
8
|
-
var setRefs = index =>
|
9
|
-
|
9
|
+
var setRefs = index => {
|
10
|
+
if (!cache[index]) {
|
11
|
+
cache[index] = el => {
|
12
|
+
refs.value[index] = el;
|
13
|
+
};
|
14
|
+
}
|
15
|
+
|
16
|
+
return cache[index];
|
10
17
|
};
|
11
18
|
|
12
19
|
return [refs, setRefs];
|