vant 4.9.4 → 4.9.6
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 +4 -4
- package/es/action-bar/ActionBar.mjs +1 -2
- package/es/action-bar/index.d.ts +4 -4
- package/es/action-bar-button/ActionBarButton.d.ts +7 -7
- package/es/action-bar-button/ActionBarButton.mjs +1 -2
- package/es/action-bar-button/index.d.ts +6 -6
- package/es/action-bar-icon/ActionBarIcon.d.ts +7 -7
- package/es/action-bar-icon/ActionBarIcon.mjs +1 -2
- package/es/action-bar-icon/index.d.ts +6 -6
- package/es/action-sheet/ActionSheet.d.ts +8 -8
- package/es/action-sheet/ActionSheet.mjs +1 -2
- package/es/action-sheet/index.d.ts +7 -7
- package/es/address-edit/AddressEdit.d.ts +5 -5
- package/es/address-edit/AddressEdit.mjs +1 -2
- package/es/address-edit/AddressEditDetail.d.ts +5 -5
- package/es/address-edit/AddressEditDetail.mjs +1 -2
- package/es/address-edit/index.d.ts +5 -5
- package/es/address-list/AddressList.d.ts +8 -8
- package/es/address-list/AddressList.mjs +1 -2
- package/es/address-list/AddressListItem.d.ts +5 -5
- package/es/address-list/AddressListItem.mjs +1 -2
- package/es/address-list/index.d.ts +7 -7
- package/es/area/Area.d.ts +5 -5
- package/es/area/Area.mjs +1 -2
- package/es/area/index.d.ts +5 -5
- package/es/back-top/BackTop.d.ts +12 -12
- package/es/back-top/BackTop.mjs +1 -2
- package/es/back-top/index.d.ts +9 -9
- package/es/badge/Badge.d.ts +4 -4
- package/es/badge/Badge.mjs +1 -2
- package/es/badge/index.d.ts +4 -4
- package/es/barrage/Barrage.d.ts +5 -5
- package/es/barrage/Barrage.mjs +1 -2
- package/es/barrage/index.d.ts +5 -5
- package/es/button/Button.d.ts +8 -8
- package/es/button/Button.mjs +1 -2
- package/es/button/index.d.ts +7 -7
- package/es/calendar/Calendar.d.ts +9 -9
- package/es/calendar/Calendar.mjs +6 -5
- package/es/calendar/CalendarDay.d.ts +5 -5
- package/es/calendar/CalendarDay.mjs +1 -2
- package/es/calendar/CalendarHeader.d.ts +5 -5
- package/es/calendar/CalendarHeader.mjs +1 -2
- package/es/calendar/CalendarMonth.d.ts +5 -5
- package/es/calendar/CalendarMonth.mjs +1 -2
- package/es/calendar/index.css +1 -1
- package/es/calendar/index.d.ts +7 -7
- package/es/calendar/types.d.ts +2 -2
- package/es/calendar/utils.d.ts +1 -1
- package/es/card/Card.d.ts +5 -5
- package/es/card/Card.mjs +1 -2
- package/es/card/index.d.ts +5 -5
- package/es/cascader/Cascader.d.ts +6 -6
- package/es/cascader/Cascader.mjs +2 -4
- package/es/cascader/index.d.ts +6 -6
- package/es/cell/Cell.d.ts +7 -7
- package/es/cell/Cell.mjs +1 -2
- package/es/cell/index.d.ts +6 -6
- package/es/cell-group/CellGroup.d.ts +4 -4
- package/es/cell-group/CellGroup.mjs +1 -2
- package/es/cell-group/index.d.ts +4 -4
- package/es/checkbox/Checkbox.d.ts +5 -5
- package/es/checkbox/Checkbox.mjs +3 -6
- package/es/checkbox/Checker.d.ts +7 -7
- package/es/checkbox/Checker.mjs +1 -2
- package/es/checkbox/index.d.ts +5 -5
- package/es/checkbox-group/CheckboxGroup.d.ts +5 -5
- package/es/checkbox-group/CheckboxGroup.mjs +1 -2
- package/es/checkbox-group/index.d.ts +5 -5
- package/es/circle/Circle.d.ts +5 -5
- package/es/circle/Circle.mjs +1 -2
- package/es/circle/index.d.ts +5 -5
- package/es/col/Col.d.ts +4 -4
- package/es/col/Col.mjs +1 -2
- package/es/col/index.d.ts +4 -4
- package/es/collapse/Collapse.d.ts +5 -5
- package/es/collapse/Collapse.mjs +1 -2
- package/es/collapse/index.d.ts +5 -5
- package/es/collapse-item/CollapseItem.d.ts +4 -4
- package/es/collapse-item/CollapseItem.mjs +1 -2
- package/es/collapse-item/index.d.ts +4 -4
- package/es/composables/use-height.d.ts +1 -1
- package/es/composables/use-lazy-render.d.ts +0 -1
- package/es/composables/use-placeholder.d.ts +0 -1
- package/es/composables/use-refs.d.ts +1 -1
- package/es/composables/use-route.d.ts +2 -1
- package/es/composables/use-sync-prop-ref.d.ts +1 -1
- package/es/composables/use-touch.d.ts +8 -8
- package/es/config-provider/ConfigProvider.d.ts +4 -4
- package/es/config-provider/ConfigProvider.mjs +1 -2
- package/es/config-provider/index.d.ts +4 -4
- package/es/contact-card/ContactCard.d.ts +5 -5
- package/es/contact-card/ContactCard.mjs +1 -2
- package/es/contact-card/index.d.ts +5 -5
- package/es/contact-edit/ContactEdit.d.ts +5 -5
- package/es/contact-edit/ContactEdit.mjs +1 -2
- package/es/contact-edit/index.d.ts +5 -5
- package/es/contact-list/ContactList.d.ts +4 -4
- package/es/contact-list/ContactList.mjs +1 -2
- package/es/contact-list/index.d.ts +4 -4
- package/es/count-down/CountDown.d.ts +5 -5
- package/es/count-down/CountDown.mjs +1 -2
- package/es/count-down/index.d.ts +5 -5
- package/es/coupon/Coupon.d.ts +4 -4
- package/es/coupon/Coupon.mjs +1 -2
- package/es/coupon/index.d.ts +4 -4
- package/es/coupon-cell/CouponCell.d.ts +4 -4
- package/es/coupon-cell/CouponCell.mjs +1 -2
- package/es/coupon-cell/index.d.ts +4 -4
- package/es/coupon-list/CouponList.d.ts +5 -5
- package/es/coupon-list/CouponList.mjs +1 -2
- package/es/coupon-list/index.d.ts +5 -5
- package/es/date-picker/DatePicker.d.ts +8 -8
- package/es/date-picker/DatePicker.mjs +1 -2
- package/es/date-picker/index.d.ts +7 -7
- package/es/date-picker/utils.d.ts +2 -1
- package/es/dialog/Dialog.d.ts +10 -10
- package/es/dialog/Dialog.mjs +1 -2
- package/es/dialog/function-call.mjs +1 -1
- package/es/dialog/index.d.ts +9 -9
- package/es/dialog/types.d.ts +0 -1
- package/es/divider/Divider.d.ts +4 -4
- package/es/divider/Divider.mjs +1 -2
- package/es/divider/index.d.ts +4 -4
- package/es/dropdown-item/DropdownItem.d.ts +10 -10
- package/es/dropdown-item/DropdownItem.mjs +1 -2
- package/es/dropdown-item/index.d.ts +8 -8
- package/es/dropdown-menu/DropdownMenu.d.ts +4 -4
- package/es/dropdown-menu/DropdownMenu.mjs +1 -2
- package/es/dropdown-menu/index.d.ts +4 -4
- package/es/empty/Empty.d.ts +4 -4
- package/es/empty/Empty.mjs +1 -2
- package/es/empty/index.d.ts +4 -4
- package/es/field/Field.d.ts +13 -5
- package/es/field/Field.mjs +9 -3
- package/es/field/index.d.ts +9 -5
- package/es/floating-bubble/FloatingBubble.d.ts +9 -9
- package/es/floating-bubble/FloatingBubble.mjs +9 -18
- package/es/floating-bubble/index.d.ts +7 -7
- package/es/floating-panel/FloatingPanel.d.ts +5 -5
- package/es/floating-panel/FloatingPanel.mjs +2 -4
- package/es/floating-panel/index.d.ts +5 -5
- package/es/form/Form.d.ts +5 -5
- package/es/form/Form.mjs +1 -2
- package/es/form/index.d.ts +5 -5
- package/es/grid/Grid.d.ts +4 -4
- package/es/grid/Grid.mjs +1 -2
- package/es/grid/index.d.ts +4 -4
- package/es/grid-item/GridItem.d.ts +7 -7
- package/es/grid-item/GridItem.mjs +1 -2
- package/es/grid-item/index.d.ts +6 -6
- package/es/highlight/Highlight.d.ts +4 -4
- package/es/highlight/Highlight.mjs +1 -2
- package/es/highlight/index.d.ts +4 -4
- package/es/icon/Icon.d.ts +4 -4
- package/es/icon/Icon.mjs +1 -2
- package/es/icon/index.d.ts +4 -4
- package/es/image/Image.d.ts +19 -18
- package/es/image/Image.mjs +1 -2
- package/es/image/index.d.ts +13 -13
- package/es/image-preview/ImagePreview.d.ts +9 -9
- package/es/image-preview/ImagePreview.mjs +1 -2
- package/es/image-preview/ImagePreviewItem.d.ts +5 -5
- package/es/image-preview/ImagePreviewItem.mjs +4 -8
- package/es/image-preview/function-call.mjs +1 -1
- package/es/image-preview/index.d.ts +7 -7
- package/es/index-anchor/IndexAnchor.d.ts +3 -3
- package/es/index-anchor/IndexAnchor.mjs +1 -2
- package/es/index-anchor/index.d.ts +3 -3
- package/es/index-bar/IndexBar.d.ts +9 -9
- package/es/index-bar/IndexBar.mjs +1 -2
- package/es/index-bar/index.d.ts +7 -7
- package/es/index.d.ts +1 -1
- package/es/index.mjs +1 -1
- package/es/lazyload/vue-lazyload/index.d.ts +1 -1
- package/es/lazyload/vue-lazyload/lazy-container.mjs +2 -4
- package/es/lazyload/vue-lazyload/lazy.mjs +8 -16
- package/es/lazyload/vue-lazyload/listener.mjs +2 -4
- package/es/lazyload/vue-lazyload/util.mjs +5 -10
- package/es/list/List.d.ts +5 -5
- package/es/list/List.mjs +1 -2
- package/es/list/index.d.ts +5 -5
- package/es/loading/Loading.d.ts +4 -4
- package/es/loading/Loading.mjs +1 -2
- package/es/loading/index.d.ts +4 -4
- package/es/locale/index.d.ts +1 -1
- package/es/nav-bar/NavBar.d.ts +5 -5
- package/es/nav-bar/NavBar.mjs +1 -2
- package/es/nav-bar/index.d.ts +5 -5
- package/es/notice-bar/NoticeBar.d.ts +5 -5
- package/es/notice-bar/NoticeBar.mjs +1 -2
- package/es/notice-bar/index.d.ts +5 -5
- package/es/notify/Notify.d.ts +8 -8
- package/es/notify/Notify.mjs +1 -2
- package/es/notify/function-call.mjs +1 -1
- package/es/notify/index.d.ts +7 -7
- package/es/number-keyboard/NumberKeyboard.d.ts +10 -10
- package/es/number-keyboard/NumberKeyboard.mjs +7 -3
- package/es/number-keyboard/NumberKeyboardKey.d.ts +5 -5
- package/es/number-keyboard/NumberKeyboardKey.mjs +1 -2
- package/es/number-keyboard/index.d.ts +8 -8
- package/es/overlay/Overlay.d.ts +8 -5
- package/es/overlay/Overlay.mjs +19 -9
- package/es/overlay/index.d.ts +6 -4
- package/es/pagination/Pagination.d.ts +5 -5
- package/es/pagination/Pagination.mjs +1 -2
- package/es/pagination/index.d.ts +5 -5
- package/es/password-input/PasswordInput.d.ts +5 -5
- package/es/password-input/PasswordInput.mjs +1 -2
- package/es/password-input/index.d.ts +5 -5
- package/es/picker/Picker.d.ts +5 -5
- package/es/picker/Picker.mjs +1 -2
- package/es/picker/PickerColumn.d.ts +5 -5
- package/es/picker/PickerColumn.mjs +2 -4
- package/es/picker/PickerToolbar.d.ts +4 -4
- package/es/picker/PickerToolbar.mjs +1 -2
- package/es/picker/index.d.ts +5 -5
- package/es/picker/utils.d.ts +1 -1
- package/es/picker/utils.mjs +2 -4
- package/es/picker-group/PickerGroup.d.ts +5 -5
- package/es/picker-group/PickerGroup.mjs +1 -2
- package/es/picker-group/index.d.ts +5 -5
- package/es/popover/Popover.d.ts +9 -9
- package/es/popover/Popover.mjs +1 -2
- package/es/popover/index.d.ts +7 -7
- package/es/popup/Popup.d.ts +9 -9
- package/es/popup/Popup.mjs +2 -4
- package/es/popup/index.d.ts +8 -8
- package/es/popup/shared.d.ts +2 -2
- package/es/progress/Progress.d.ts +4 -4
- package/es/progress/Progress.mjs +1 -2
- package/es/progress/index.d.ts +4 -4
- package/es/pull-refresh/PullRefresh.d.ts +5 -5
- package/es/pull-refresh/PullRefresh.mjs +1 -2
- package/es/pull-refresh/index.d.ts +5 -5
- package/es/radio/Radio.d.ts +5 -5
- package/es/radio/Radio.mjs +1 -2
- package/es/radio/index.d.ts +5 -5
- package/es/radio-group/RadioGroup.d.ts +8 -8
- package/es/radio-group/RadioGroup.mjs +1 -2
- package/es/radio-group/index.d.ts +7 -7
- package/es/rate/Rate.d.ts +5 -5
- package/es/rate/Rate.mjs +2 -4
- package/es/rate/index.d.ts +5 -5
- package/es/rolling-text/RollingText.d.ts +4 -4
- package/es/rolling-text/RollingText.mjs +4 -8
- package/es/rolling-text/RollingTextItem.d.ts +4 -4
- package/es/rolling-text/RollingTextItem.mjs +1 -2
- package/es/rolling-text/index.d.ts +4 -4
- package/es/row/Row.d.ts +4 -4
- package/es/row/Row.mjs +2 -4
- package/es/row/index.d.ts +4 -4
- package/es/search/Search.d.ts +11 -5
- package/es/search/Search.mjs +1 -2
- package/es/search/index.d.ts +9 -5
- package/es/share-sheet/ShareSheet.d.ts +8 -8
- package/es/share-sheet/ShareSheet.mjs +1 -2
- package/es/share-sheet/index.d.ts +7 -7
- package/es/sidebar/Sidebar.d.ts +5 -5
- package/es/sidebar/Sidebar.mjs +1 -2
- package/es/sidebar/index.d.ts +5 -5
- package/es/sidebar-item/SidebarItem.d.ts +8 -8
- package/es/sidebar-item/SidebarItem.mjs +1 -2
- package/es/sidebar-item/index.d.ts +7 -7
- package/es/signature/Signature.d.ts +5 -5
- package/es/signature/Signature.mjs +2 -4
- package/es/signature/index.d.ts +5 -5
- package/es/skeleton/Skeleton.d.ts +5 -5
- package/es/skeleton/Skeleton.mjs +1 -2
- package/es/skeleton/index.d.ts +5 -5
- package/es/skeleton-avatar/SkeletonAvatar.d.ts +4 -4
- package/es/skeleton-avatar/SkeletonAvatar.mjs +1 -2
- package/es/skeleton-avatar/index.d.ts +4 -4
- package/es/skeleton-image/SkeletonImage.d.ts +4 -4
- package/es/skeleton-image/SkeletonImage.mjs +1 -2
- package/es/skeleton-image/index.d.ts +4 -4
- package/es/skeleton-paragraph/SkeletonParagraph.d.ts +4 -4
- package/es/skeleton-paragraph/SkeletonParagraph.mjs +1 -2
- package/es/skeleton-paragraph/index.d.ts +4 -4
- package/es/skeleton-title/SkeletonTitle.d.ts +4 -4
- package/es/skeleton-title/SkeletonTitle.mjs +1 -2
- package/es/skeleton-title/index.d.ts +4 -4
- package/es/slider/Slider.d.ts +6 -6
- package/es/slider/Slider.mjs +1 -2
- package/es/slider/index.d.ts +6 -6
- package/es/space/Space.d.ts +10 -10
- package/es/space/Space.mjs +1 -2
- package/es/space/index.d.ts +8 -8
- package/es/step/Step.d.ts +1 -1
- package/es/step/Step.mjs +1 -2
- package/es/step/index.d.ts +1 -1
- package/es/stepper/Stepper.d.ts +5 -5
- package/es/stepper/Stepper.mjs +1 -2
- package/es/stepper/index.d.ts +5 -5
- package/es/steps/Steps.d.ts +5 -5
- package/es/steps/Steps.mjs +1 -2
- package/es/steps/index.d.ts +5 -5
- package/es/sticky/Sticky.d.ts +5 -5
- package/es/sticky/Sticky.mjs +1 -2
- package/es/sticky/index.d.ts +5 -5
- package/es/submit-bar/SubmitBar.d.ts +5 -5
- package/es/submit-bar/SubmitBar.mjs +1 -2
- package/es/submit-bar/index.d.ts +5 -5
- package/es/swipe/Swipe.d.ts +5 -5
- package/es/swipe/Swipe.mjs +2 -4
- package/es/swipe/index.d.ts +5 -5
- package/es/swipe-cell/SwipeCell.d.ts +6 -6
- package/es/swipe-cell/SwipeCell.mjs +2 -4
- package/es/swipe-cell/index.d.ts +6 -6
- package/es/swipe-item/SwipeItem.d.ts +1 -1
- package/es/swipe-item/SwipeItem.mjs +1 -2
- package/es/swipe-item/index.d.ts +1 -1
- package/es/switch/Switch.d.ts +5 -5
- package/es/switch/Switch.mjs +1 -2
- package/es/switch/index.d.ts +5 -5
- package/es/tab/Tab.d.ts +7 -7
- package/es/tab/Tab.mjs +1 -2
- package/es/tab/TabTitle.d.ts +4 -4
- package/es/tab/TabTitle.mjs +1 -2
- package/es/tab/index.d.ts +6 -6
- package/es/tabbar/Tabbar.d.ts +5 -5
- package/es/tabbar/Tabbar.mjs +1 -2
- package/es/tabbar/index.d.ts +5 -5
- package/es/tabbar-item/TabbarItem.d.ts +8 -8
- package/es/tabbar-item/TabbarItem.mjs +1 -2
- package/es/tabbar-item/index.d.ts +7 -7
- package/es/tabs/Tabs.d.ts +5 -5
- package/es/tabs/Tabs.mjs +3 -6
- package/es/tabs/TabsContent.d.ts +5 -5
- package/es/tabs/TabsContent.mjs +1 -2
- package/es/tabs/index.d.ts +5 -5
- package/es/tag/Tag.d.ts +5 -5
- package/es/tag/Tag.mjs +1 -2
- package/es/tag/index.d.ts +5 -5
- package/es/text-ellipsis/TextEllipsis.d.ts +5 -5
- package/es/text-ellipsis/TextEllipsis.mjs +3 -6
- package/es/text-ellipsis/index.d.ts +5 -5
- package/es/time-picker/TimePicker.d.ts +12 -11
- package/es/time-picker/TimePicker.mjs +1 -2
- package/es/time-picker/index.d.ts +9 -9
- package/es/toast/Toast.d.ts +9 -9
- package/es/toast/Toast.mjs +1 -2
- package/es/toast/function-call.mjs +1 -2
- package/es/toast/index.d.ts +7 -7
- package/es/tree-select/TreeSelect.d.ts +5 -5
- package/es/tree-select/TreeSelect.mjs +1 -2
- package/es/tree-select/index.d.ts +5 -5
- package/es/uploader/Uploader.d.ts +5 -5
- package/es/uploader/Uploader.mjs +1 -2
- package/es/uploader/UploaderPreviewItem.d.ts +8 -7
- package/es/uploader/UploaderPreviewItem.mjs +1 -2
- package/es/uploader/index.d.ts +5 -5
- package/es/uploader/utils.d.ts +1 -1
- package/es/utils/basic.d.ts +2 -2
- package/es/utils/create.d.ts +1 -1
- package/es/utils/dom.d.ts +1 -1
- package/es/utils/mount-component.d.ts +1 -1
- package/es/watermark/Watermark.d.ts +4 -4
- package/es/watermark/Watermark.mjs +1 -2
- package/es/watermark/index.d.ts +4 -4
- package/lib/action-bar/ActionBar.d.ts +4 -4
- package/lib/action-bar/ActionBar.js +2 -3
- package/lib/action-bar/index.d.ts +4 -4
- package/lib/action-bar-button/ActionBarButton.d.ts +7 -7
- package/lib/action-bar-button/ActionBarButton.js +3 -4
- package/lib/action-bar-button/index.d.ts +6 -6
- package/lib/action-bar-icon/ActionBarIcon.d.ts +7 -7
- package/lib/action-bar-icon/ActionBarIcon.js +1 -2
- package/lib/action-bar-icon/index.d.ts +6 -6
- package/lib/action-sheet/ActionSheet.d.ts +8 -8
- package/lib/action-sheet/ActionSheet.js +2 -3
- package/lib/action-sheet/index.d.ts +7 -7
- package/lib/address-edit/AddressEdit.d.ts +5 -5
- package/lib/address-edit/AddressEdit.js +11 -12
- package/lib/address-edit/AddressEditDetail.d.ts +5 -5
- package/lib/address-edit/AddressEditDetail.js +2 -3
- package/lib/address-edit/index.d.ts +5 -5
- package/lib/address-list/AddressList.d.ts +8 -8
- package/lib/address-list/AddressList.js +2 -3
- package/lib/address-list/AddressListItem.d.ts +5 -5
- package/lib/address-list/AddressListItem.js +1 -2
- package/lib/address-list/index.d.ts +7 -7
- package/lib/area/Area.d.ts +5 -5
- package/lib/area/Area.js +6 -7
- package/lib/area/index.d.ts +5 -5
- package/lib/back-top/BackTop.d.ts +12 -12
- package/lib/back-top/BackTop.js +11 -12
- package/lib/back-top/index.d.ts +9 -9
- package/lib/badge/Badge.d.ts +4 -4
- package/lib/badge/Badge.js +2 -3
- package/lib/badge/index.d.ts +4 -4
- package/lib/barrage/Barrage.d.ts +5 -5
- package/lib/barrage/Barrage.js +9 -10
- package/lib/barrage/index.d.ts +5 -5
- package/lib/button/Button.d.ts +8 -8
- package/lib/button/Button.js +1 -2
- package/lib/button/index.d.ts +7 -7
- package/lib/calendar/Calendar.d.ts +9 -9
- package/lib/calendar/Calendar.js +19 -18
- package/lib/calendar/CalendarDay.d.ts +5 -5
- package/lib/calendar/CalendarDay.js +2 -3
- package/lib/calendar/CalendarHeader.d.ts +5 -5
- package/lib/calendar/CalendarHeader.js +5 -6
- package/lib/calendar/CalendarMonth.d.ts +5 -5
- package/lib/calendar/CalendarMonth.js +11 -12
- package/lib/calendar/index.css +1 -1
- package/lib/calendar/index.d.ts +7 -7
- package/lib/calendar/types.d.ts +2 -2
- package/lib/calendar/utils.d.ts +1 -1
- package/lib/card/Card.d.ts +5 -5
- package/lib/card/Card.js +1 -2
- package/lib/card/index.d.ts +5 -5
- package/lib/cascader/Cascader.d.ts +6 -6
- package/lib/cascader/Cascader.js +9 -11
- package/lib/cascader/index.d.ts +6 -6
- package/lib/cell/Cell.d.ts +7 -7
- package/lib/cell/Cell.js +1 -2
- package/lib/cell/index.d.ts +6 -6
- package/lib/cell-group/CellGroup.d.ts +4 -4
- package/lib/cell-group/CellGroup.js +1 -2
- package/lib/cell-group/index.d.ts +4 -4
- package/lib/checkbox/Checkbox.d.ts +5 -5
- package/lib/checkbox/Checkbox.js +5 -8
- package/lib/checkbox/Checker.d.ts +7 -7
- package/lib/checkbox/Checker.js +6 -7
- package/lib/checkbox/index.d.ts +5 -5
- package/lib/checkbox-group/CheckboxGroup.d.ts +5 -5
- package/lib/checkbox-group/CheckboxGroup.js +2 -3
- package/lib/checkbox-group/index.d.ts +5 -5
- package/lib/circle/Circle.d.ts +5 -5
- package/lib/circle/Circle.js +5 -6
- package/lib/circle/index.d.ts +5 -5
- package/lib/col/Col.d.ts +4 -4
- package/lib/col/Col.js +2 -3
- package/lib/col/index.d.ts +4 -4
- package/lib/collapse/Collapse.d.ts +5 -5
- package/lib/collapse/Collapse.js +1 -2
- package/lib/collapse/index.d.ts +5 -5
- package/lib/collapse-item/CollapseItem.d.ts +4 -4
- package/lib/collapse-item/CollapseItem.js +8 -9
- package/lib/collapse-item/index.d.ts +4 -4
- package/lib/composables/use-height.d.ts +1 -1
- package/lib/composables/use-lazy-render.d.ts +0 -1
- package/lib/composables/use-placeholder.d.ts +0 -1
- package/lib/composables/use-refs.d.ts +1 -1
- package/lib/composables/use-route.d.ts +2 -1
- package/lib/composables/use-sync-prop-ref.d.ts +1 -1
- package/lib/composables/use-touch.d.ts +8 -8
- package/lib/config-provider/ConfigProvider.d.ts +4 -4
- package/lib/config-provider/ConfigProvider.js +10 -11
- package/lib/config-provider/index.d.ts +4 -4
- package/lib/contact-card/ContactCard.d.ts +5 -5
- package/lib/contact-card/ContactCard.js +1 -2
- package/lib/contact-card/index.d.ts +5 -5
- package/lib/contact-edit/ContactEdit.d.ts +5 -5
- package/lib/contact-edit/ContactEdit.js +3 -4
- package/lib/contact-edit/index.d.ts +5 -5
- package/lib/contact-list/ContactList.d.ts +4 -4
- package/lib/contact-list/ContactList.js +1 -2
- package/lib/contact-list/index.d.ts +4 -4
- package/lib/count-down/CountDown.d.ts +5 -5
- package/lib/count-down/CountDown.js +3 -4
- package/lib/count-down/index.d.ts +5 -5
- package/lib/coupon/Coupon.d.ts +4 -4
- package/lib/coupon/Coupon.js +4 -5
- package/lib/coupon/index.d.ts +4 -4
- package/lib/coupon-cell/CouponCell.d.ts +4 -4
- package/lib/coupon-cell/CouponCell.js +1 -2
- package/lib/coupon-cell/index.d.ts +4 -4
- package/lib/coupon-list/CouponList.d.ts +5 -5
- package/lib/coupon-list/CouponList.js +13 -14
- package/lib/coupon-list/index.d.ts +5 -5
- package/lib/date-picker/DatePicker.d.ts +8 -8
- package/lib/date-picker/DatePicker.js +7 -8
- package/lib/date-picker/index.d.ts +7 -7
- package/lib/date-picker/utils.d.ts +2 -1
- package/lib/dialog/Dialog.d.ts +10 -10
- package/lib/dialog/Dialog.js +4 -5
- package/lib/dialog/index.d.ts +9 -9
- package/lib/dialog/types.d.ts +0 -1
- package/lib/divider/Divider.d.ts +4 -4
- package/lib/divider/Divider.js +1 -2
- package/lib/divider/index.d.ts +4 -4
- package/lib/dropdown-item/DropdownItem.d.ts +10 -10
- package/lib/dropdown-item/DropdownItem.js +4 -5
- package/lib/dropdown-item/index.d.ts +8 -8
- package/lib/dropdown-menu/DropdownMenu.d.ts +4 -4
- package/lib/dropdown-menu/DropdownMenu.js +7 -8
- package/lib/dropdown-menu/index.d.ts +4 -4
- package/lib/empty/Empty.d.ts +4 -4
- package/lib/empty/Empty.js +1 -2
- package/lib/empty/index.d.ts +4 -4
- package/lib/field/Field.d.ts +13 -5
- package/lib/field/Field.js +25 -19
- package/lib/field/index.d.ts +9 -5
- package/lib/floating-bubble/FloatingBubble.d.ts +9 -9
- package/lib/floating-bubble/FloatingBubble.js +22 -31
- package/lib/floating-bubble/index.d.ts +7 -7
- package/lib/floating-panel/FloatingPanel.d.ts +5 -5
- package/lib/floating-panel/FloatingPanel.js +9 -11
- package/lib/floating-panel/index.d.ts +5 -5
- package/lib/form/Form.d.ts +5 -5
- package/lib/form/Form.js +1 -2
- package/lib/form/index.d.ts +5 -5
- package/lib/grid/Grid.d.ts +4 -4
- package/lib/grid/Grid.js +1 -2
- package/lib/grid/index.d.ts +4 -4
- package/lib/grid-item/GridItem.d.ts +7 -7
- package/lib/grid-item/GridItem.js +3 -4
- package/lib/grid-item/index.d.ts +6 -6
- package/lib/highlight/Highlight.d.ts +4 -4
- package/lib/highlight/Highlight.js +2 -3
- package/lib/highlight/index.d.ts +4 -4
- package/lib/icon/Icon.d.ts +4 -4
- package/lib/icon/Icon.js +3 -4
- package/lib/icon/index.d.ts +4 -4
- package/lib/image/Image.d.ts +19 -18
- package/lib/image/Image.js +11 -12
- package/lib/image/index.d.ts +13 -13
- package/lib/image-preview/ImagePreview.d.ts +9 -9
- package/lib/image-preview/ImagePreview.js +9 -10
- package/lib/image-preview/ImagePreviewItem.d.ts +5 -5
- package/lib/image-preview/ImagePreviewItem.js +16 -20
- package/lib/image-preview/index.d.ts +7 -7
- package/lib/index-anchor/IndexAnchor.d.ts +3 -3
- package/lib/index-anchor/IndexAnchor.js +4 -5
- package/lib/index-anchor/index.d.ts +3 -3
- package/lib/index-bar/IndexBar.d.ts +9 -9
- package/lib/index-bar/IndexBar.js +11 -12
- package/lib/index-bar/index.d.ts +7 -7
- package/lib/index.css +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/lazyload/vue-lazyload/index.d.ts +1 -1
- package/lib/lazyload/vue-lazyload/lazy-container.js +2 -4
- package/lib/lazyload/vue-lazyload/lazy.js +8 -16
- package/lib/lazyload/vue-lazyload/listener.js +2 -4
- package/lib/lazyload/vue-lazyload/util.js +5 -10
- package/lib/list/List.d.ts +5 -5
- package/lib/list/List.js +10 -11
- package/lib/list/index.d.ts +5 -5
- package/lib/loading/Loading.d.ts +4 -4
- package/lib/loading/Loading.js +2 -3
- package/lib/loading/index.d.ts +4 -4
- package/lib/locale/index.d.ts +1 -1
- package/lib/nav-bar/NavBar.d.ts +5 -5
- package/lib/nav-bar/NavBar.js +2 -3
- package/lib/nav-bar/index.d.ts +5 -5
- package/lib/notice-bar/NoticeBar.d.ts +5 -5
- package/lib/notice-bar/NoticeBar.js +5 -6
- package/lib/notice-bar/index.d.ts +5 -5
- package/lib/notify/Notify.d.ts +8 -8
- package/lib/notify/Notify.js +1 -2
- package/lib/notify/index.d.ts +7 -7
- package/lib/number-keyboard/NumberKeyboard.d.ts +10 -10
- package/lib/number-keyboard/NumberKeyboard.js +12 -8
- package/lib/number-keyboard/NumberKeyboardKey.d.ts +5 -5
- package/lib/number-keyboard/NumberKeyboardKey.js +2 -3
- package/lib/number-keyboard/index.d.ts +8 -8
- package/lib/overlay/Overlay.d.ts +8 -5
- package/lib/overlay/Overlay.js +20 -10
- package/lib/overlay/index.d.ts +6 -4
- package/lib/pagination/Pagination.d.ts +5 -5
- package/lib/pagination/Pagination.js +4 -5
- package/lib/pagination/index.d.ts +5 -5
- package/lib/password-input/PasswordInput.d.ts +5 -5
- package/lib/password-input/PasswordInput.js +1 -2
- package/lib/password-input/index.d.ts +5 -5
- package/lib/picker/Picker.d.ts +5 -5
- package/lib/picker/Picker.js +15 -16
- package/lib/picker/PickerColumn.d.ts +5 -5
- package/lib/picker/PickerColumn.js +8 -10
- package/lib/picker/PickerToolbar.d.ts +4 -4
- package/lib/picker/PickerToolbar.js +1 -2
- package/lib/picker/index.d.ts +5 -5
- package/lib/picker/utils.d.ts +1 -1
- package/lib/picker/utils.js +2 -4
- package/lib/picker-group/PickerGroup.d.ts +5 -5
- package/lib/picker-group/PickerGroup.js +3 -4
- package/lib/picker-group/index.d.ts +5 -5
- package/lib/popover/Popover.d.ts +9 -9
- package/lib/popover/Popover.js +9 -10
- package/lib/popover/index.d.ts +7 -7
- package/lib/popup/Popup.d.ts +9 -9
- package/lib/popup/Popup.js +13 -15
- package/lib/popup/index.d.ts +8 -8
- package/lib/popup/shared.d.ts +2 -2
- package/lib/progress/Progress.d.ts +4 -4
- package/lib/progress/Progress.js +2 -3
- package/lib/progress/index.d.ts +4 -4
- package/lib/pull-refresh/PullRefresh.d.ts +5 -5
- package/lib/pull-refresh/PullRefresh.js +6 -7
- package/lib/pull-refresh/index.d.ts +5 -5
- package/lib/radio/Radio.d.ts +5 -5
- package/lib/radio/Radio.js +1 -2
- package/lib/radio/index.d.ts +5 -5
- package/lib/radio-group/RadioGroup.d.ts +8 -8
- package/lib/radio-group/RadioGroup.js +2 -3
- package/lib/radio-group/index.d.ts +7 -7
- package/lib/rate/Rate.d.ts +5 -5
- package/lib/rate/Rate.js +6 -8
- package/lib/rate/index.d.ts +5 -5
- package/lib/rolling-text/RollingText.d.ts +4 -4
- package/lib/rolling-text/RollingText.js +10 -14
- package/lib/rolling-text/RollingTextItem.d.ts +4 -4
- package/lib/rolling-text/RollingTextItem.js +5 -6
- package/lib/rolling-text/index.d.ts +4 -4
- package/lib/row/Row.d.ts +4 -4
- package/lib/row/Row.js +5 -7
- package/lib/row/index.d.ts +4 -4
- package/lib/search/Search.d.ts +11 -5
- package/lib/search/Search.js +2 -3
- package/lib/search/index.d.ts +9 -5
- package/lib/share-sheet/ShareSheet.d.ts +8 -8
- package/lib/share-sheet/ShareSheet.js +1 -2
- package/lib/share-sheet/index.d.ts +7 -7
- package/lib/sidebar/Sidebar.d.ts +5 -5
- package/lib/sidebar/Sidebar.js +1 -2
- package/lib/sidebar/index.d.ts +5 -5
- package/lib/sidebar-item/SidebarItem.d.ts +8 -8
- package/lib/sidebar-item/SidebarItem.js +1 -2
- package/lib/sidebar-item/index.d.ts +7 -7
- package/lib/signature/Signature.d.ts +5 -5
- package/lib/signature/Signature.js +7 -9
- package/lib/signature/index.d.ts +5 -5
- package/lib/skeleton/Skeleton.d.ts +5 -5
- package/lib/skeleton/Skeleton.js +1 -2
- package/lib/skeleton/index.d.ts +5 -5
- package/lib/skeleton-avatar/SkeletonAvatar.d.ts +4 -4
- package/lib/skeleton-avatar/SkeletonAvatar.js +1 -2
- package/lib/skeleton-avatar/index.d.ts +4 -4
- package/lib/skeleton-image/SkeletonImage.d.ts +4 -4
- package/lib/skeleton-image/SkeletonImage.js +1 -2
- package/lib/skeleton-image/index.d.ts +4 -4
- package/lib/skeleton-paragraph/SkeletonParagraph.d.ts +4 -4
- package/lib/skeleton-paragraph/SkeletonParagraph.js +1 -2
- package/lib/skeleton-paragraph/index.d.ts +4 -4
- package/lib/skeleton-title/SkeletonTitle.d.ts +4 -4
- package/lib/skeleton-title/SkeletonTitle.js +1 -2
- package/lib/skeleton-title/index.d.ts +4 -4
- package/lib/slider/Slider.d.ts +6 -6
- package/lib/slider/Slider.js +7 -8
- package/lib/slider/index.d.ts +6 -6
- package/lib/space/Space.d.ts +10 -10
- package/lib/space/Space.js +4 -5
- package/lib/space/index.d.ts +8 -8
- package/lib/step/Step.d.ts +1 -1
- package/lib/step/Step.js +3 -4
- package/lib/step/index.d.ts +1 -1
- package/lib/stepper/Stepper.d.ts +5 -5
- package/lib/stepper/Stepper.js +11 -12
- package/lib/stepper/index.d.ts +5 -5
- package/lib/steps/Steps.d.ts +5 -5
- package/lib/steps/Steps.js +1 -2
- package/lib/steps/index.d.ts +5 -5
- package/lib/sticky/Sticky.d.ts +5 -5
- package/lib/sticky/Sticky.js +10 -11
- package/lib/sticky/index.d.ts +5 -5
- package/lib/submit-bar/SubmitBar.d.ts +5 -5
- package/lib/submit-bar/SubmitBar.js +2 -3
- package/lib/submit-bar/index.d.ts +5 -5
- package/lib/swipe/Swipe.d.ts +5 -5
- package/lib/swipe/Swipe.js +24 -26
- package/lib/swipe/index.d.ts +5 -5
- package/lib/swipe-cell/SwipeCell.d.ts +6 -6
- package/lib/swipe-cell/SwipeCell.js +8 -10
- package/lib/swipe-cell/index.d.ts +6 -6
- package/lib/swipe-item/SwipeItem.d.ts +1 -1
- package/lib/swipe-item/SwipeItem.js +6 -7
- package/lib/swipe-item/index.d.ts +1 -1
- package/lib/switch/Switch.d.ts +5 -5
- package/lib/switch/Switch.js +1 -2
- package/lib/switch/index.d.ts +5 -5
- package/lib/tab/Tab.d.ts +7 -7
- package/lib/tab/Tab.js +12 -13
- package/lib/tab/TabTitle.d.ts +4 -4
- package/lib/tab/TabTitle.js +2 -3
- package/lib/tab/index.d.ts +6 -6
- package/lib/tabbar/Tabbar.d.ts +5 -5
- package/lib/tabbar/Tabbar.js +2 -3
- package/lib/tabbar/index.d.ts +5 -5
- package/lib/tabbar-item/TabbarItem.d.ts +8 -8
- package/lib/tabbar-item/TabbarItem.js +3 -4
- package/lib/tabbar-item/index.d.ts +7 -7
- package/lib/tabs/Tabs.d.ts +5 -5
- package/lib/tabs/Tabs.js +23 -26
- package/lib/tabs/TabsContent.d.ts +5 -5
- package/lib/tabs/TabsContent.js +4 -5
- package/lib/tabs/index.d.ts +5 -5
- package/lib/tag/Tag.d.ts +5 -5
- package/lib/tag/Tag.js +2 -3
- package/lib/tag/index.d.ts +5 -5
- package/lib/text-ellipsis/TextEllipsis.d.ts +5 -5
- package/lib/text-ellipsis/TextEllipsis.js +13 -16
- package/lib/text-ellipsis/index.d.ts +5 -5
- package/lib/time-picker/TimePicker.d.ts +12 -11
- package/lib/time-picker/TimePicker.js +6 -7
- package/lib/time-picker/index.d.ts +9 -9
- package/lib/toast/Toast.d.ts +9 -9
- package/lib/toast/Toast.js +5 -6
- package/lib/toast/function-call.js +3 -4
- package/lib/toast/index.d.ts +7 -7
- package/lib/tree-select/TreeSelect.d.ts +5 -5
- package/lib/tree-select/TreeSelect.js +1 -2
- package/lib/tree-select/index.d.ts +5 -5
- package/lib/uploader/Uploader.d.ts +5 -5
- package/lib/uploader/Uploader.js +7 -8
- package/lib/uploader/UploaderPreviewItem.d.ts +8 -7
- package/lib/uploader/UploaderPreviewItem.js +1 -2
- package/lib/uploader/index.d.ts +5 -5
- package/lib/uploader/utils.d.ts +1 -1
- package/lib/utils/basic.d.ts +2 -2
- package/lib/utils/create.d.ts +1 -1
- package/lib/utils/dom.d.ts +1 -1
- package/lib/utils/mount-component.d.ts +1 -1
- package/lib/vant.cjs.js +85 -108
- package/lib/vant.es.js +86 -109
- package/lib/vant.js +86 -109
- package/lib/vant.min.js +3 -3
- package/lib/watermark/Watermark.d.ts +4 -4
- package/lib/watermark/Watermark.js +8 -9
- package/lib/watermark/index.d.ts +4 -4
- package/lib/web-types.json +1 -1
- package/package.json +14 -14
package/lib/calendar/Calendar.js
CHANGED
@@ -32,7 +32,6 @@ __export(stdin_exports, {
|
|
32
32
|
});
|
33
33
|
module.exports = __toCommonJS(stdin_exports);
|
34
34
|
var import_vue = require("vue");
|
35
|
-
var import_vue2 = require("vue");
|
36
35
|
var import_utils = require("../utils");
|
37
36
|
var import_utils2 = require("./utils");
|
38
37
|
var import_use = require("@vant/use");
|
@@ -86,7 +85,7 @@ const calendarProps = {
|
|
86
85
|
validator: (val) => val >= 0 && val <= 6
|
87
86
|
}
|
88
87
|
};
|
89
|
-
var stdin_default = (0,
|
88
|
+
var stdin_default = (0, import_vue.defineComponent)({
|
90
89
|
name: import_utils2.name,
|
91
90
|
props: calendarProps,
|
92
91
|
emits: ["select", "confirm", "unselect", "monthShow", "overRange", "update:show", "clickSubtitle", "clickDisabledDate", "panelChange"],
|
@@ -94,14 +93,14 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
94
93
|
emit,
|
95
94
|
slots
|
96
95
|
}) {
|
97
|
-
const canSwitch = (0,
|
98
|
-
const minDate = (0,
|
96
|
+
const canSwitch = (0, import_vue.computed)(() => props.switchMode !== "none");
|
97
|
+
const minDate = (0, import_vue.computed)(() => {
|
99
98
|
if (!props.minDate && !canSwitch.value) {
|
100
99
|
return (0, import_utils2.getToday)();
|
101
100
|
}
|
102
101
|
return props.minDate;
|
103
102
|
});
|
104
|
-
const maxDate = (0,
|
103
|
+
const maxDate = (0, import_vue.computed)(() => {
|
105
104
|
if (!props.maxDate && !canSwitch.value) {
|
106
105
|
return (0, import_utils2.getMonthByOffset)((0, import_utils2.getToday)(), 6);
|
107
106
|
}
|
@@ -129,6 +128,9 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
129
128
|
if (!Array.isArray(defaultDate)) {
|
130
129
|
defaultDate = [];
|
131
130
|
}
|
131
|
+
if (defaultDate.length === 1 && (0, import_utils2.compareDay)(defaultDate[0], now) === 1) {
|
132
|
+
defaultDate = [];
|
133
|
+
}
|
132
134
|
const min = minDate.value;
|
133
135
|
const max = maxDate.value;
|
134
136
|
const start = limitDateRange(defaultDate[0] || now, min, max ? allowSameDay ? max : (0, import_utils2.getPrevDay)(max) : void 0);
|
@@ -151,13 +153,13 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
151
153
|
return date ? date : limitDateRange((0, import_utils2.getToday)());
|
152
154
|
};
|
153
155
|
let bodyHeight;
|
154
|
-
const bodyRef = (0,
|
155
|
-
const currentDate = (0,
|
156
|
-
const currentPanelDate = (0,
|
157
|
-
const currentMonthRef = (0,
|
156
|
+
const bodyRef = (0, import_vue.ref)();
|
157
|
+
const currentDate = (0, import_vue.ref)(getInitialDate());
|
158
|
+
const currentPanelDate = (0, import_vue.ref)(getInitialPanelDate());
|
159
|
+
const currentMonthRef = (0, import_vue.ref)();
|
158
160
|
const [monthRefs, setMonthRefs] = (0, import_use_refs.useRefs)();
|
159
|
-
const dayOffset = (0,
|
160
|
-
const months = (0,
|
161
|
+
const dayOffset = (0, import_vue.computed)(() => props.firstDayOfWeek ? +props.firstDayOfWeek % 7 : 0);
|
162
|
+
const months = (0, import_vue.computed)(() => {
|
161
163
|
const months2 = [];
|
162
164
|
if (!minDate.value || !maxDate.value) {
|
163
165
|
return months2;
|
@@ -170,7 +172,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
170
172
|
} while ((0, import_utils2.compareMonth)(cursor, maxDate.value) !== 1);
|
171
173
|
return months2;
|
172
174
|
});
|
173
|
-
const buttonDisabled = (0,
|
175
|
+
const buttonDisabled = (0, import_vue.computed)(() => {
|
174
176
|
if (currentDate.value) {
|
175
177
|
if (props.type === "range") {
|
176
178
|
return !currentDate.value[0] || !currentDate.value[1];
|
@@ -312,7 +314,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
312
314
|
var _a;
|
313
315
|
return (_a = disabledDays2.find((day) => (0, import_utils2.compareDay)(startDay, day.date) === -1 && (0, import_utils2.compareDay)(day.date, date) === -1)) == null ? void 0 : _a.date;
|
314
316
|
};
|
315
|
-
const disabledDays = (0,
|
317
|
+
const disabledDays = (0, import_vue.computed)(() => monthRefs.value.reduce((arr, ref2) => {
|
316
318
|
var _a, _b;
|
317
319
|
arr.push(...(_b = (_a = ref2.disabledDays) == null ? void 0 : _a.value) != null ? _b : []);
|
318
320
|
return arr;
|
@@ -442,11 +444,10 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
442
444
|
"onScroll": canSwitch.value ? void 0 : onScroll
|
443
445
|
}, [canSwitch.value ? renderMonth(currentPanelDate.value, 0) : months.value.map(renderMonth)]), renderFooter()]);
|
444
446
|
};
|
445
|
-
(0,
|
446
|
-
(0,
|
447
|
-
(0,
|
448
|
-
|
449
|
-
scrollToCurrentDate();
|
447
|
+
(0, import_vue.watch)(() => props.show, init);
|
448
|
+
(0, import_vue.watch)(() => [props.type, props.minDate, props.maxDate, props.switchMode], () => reset(getInitialDate(currentDate.value)));
|
449
|
+
(0, import_vue.watch)(() => props.defaultDate, (value) => {
|
450
|
+
reset(value);
|
450
451
|
});
|
451
452
|
(0, import_use_expose.useExpose)({
|
452
453
|
reset,
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { type PropType } from 'vue';
|
2
2
|
import type { CalendarDayItem } from './types';
|
3
|
-
declare const _default: import("vue").DefineComponent<{
|
3
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
4
4
|
item: {
|
5
5
|
type: PropType<CalendarDayItem>;
|
6
6
|
required: true;
|
@@ -12,7 +12,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
12
12
|
default: number;
|
13
13
|
};
|
14
14
|
rowHeight: StringConstructor;
|
15
|
-
}
|
15
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "clickDisabledDate")[], "click" | "clickDisabledDate", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
16
16
|
item: {
|
17
17
|
type: PropType<CalendarDayItem>;
|
18
18
|
required: true;
|
@@ -24,10 +24,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
24
24
|
default: number;
|
25
25
|
};
|
26
26
|
rowHeight: StringConstructor;
|
27
|
-
}>> & {
|
27
|
+
}>> & Readonly<{
|
28
28
|
onClick?: ((...args: any[]) => any) | undefined;
|
29
29
|
onClickDisabledDate?: ((...args: any[]) => any) | undefined;
|
30
|
-
}
|
30
|
+
}>, {
|
31
31
|
offset: number;
|
32
|
-
}, {}>;
|
32
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
33
33
|
export default _default;
|
@@ -21,11 +21,10 @@ __export(stdin_exports, {
|
|
21
21
|
});
|
22
22
|
module.exports = __toCommonJS(stdin_exports);
|
23
23
|
var import_vue = require("vue");
|
24
|
-
var import_vue2 = require("vue");
|
25
24
|
var import_utils = require("../utils");
|
26
25
|
var import_utils2 = require("./utils");
|
27
26
|
const [name] = (0, import_utils.createNamespace)("calendar-day");
|
28
|
-
var stdin_default = (0,
|
27
|
+
var stdin_default = (0, import_vue.defineComponent)({
|
29
28
|
name,
|
30
29
|
props: {
|
31
30
|
item: (0, import_utils.makeRequiredProp)(Object),
|
@@ -39,7 +38,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
39
38
|
emit,
|
40
39
|
slots
|
41
40
|
}) {
|
42
|
-
const style = (0,
|
41
|
+
const style = (0, import_vue.computed)(() => {
|
43
42
|
var _a;
|
44
43
|
const {
|
45
44
|
item,
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import type { CalendarSwitchMode } from './types';
|
2
|
-
declare const _default: import("vue").DefineComponent<{
|
2
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
3
3
|
date: DateConstructor;
|
4
4
|
minDate: DateConstructor;
|
5
5
|
maxDate: DateConstructor;
|
@@ -12,7 +12,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
12
12
|
type: import("vue").PropType<CalendarSwitchMode>;
|
13
13
|
default: CalendarSwitchMode;
|
14
14
|
};
|
15
|
-
}
|
15
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clickSubtitle" | "panelChange")[], "clickSubtitle" | "panelChange", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
16
16
|
date: DateConstructor;
|
17
17
|
minDate: DateConstructor;
|
18
18
|
maxDate: DateConstructor;
|
@@ -25,12 +25,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
25
25
|
type: import("vue").PropType<CalendarSwitchMode>;
|
26
26
|
default: CalendarSwitchMode;
|
27
27
|
};
|
28
|
-
}>> & {
|
28
|
+
}>> & Readonly<{
|
29
29
|
onClickSubtitle?: ((...args: any[]) => any) | undefined;
|
30
30
|
onPanelChange?: ((...args: any[]) => any) | undefined;
|
31
|
-
}
|
31
|
+
}>, {
|
32
32
|
switchMode: CalendarSwitchMode;
|
33
33
|
showTitle: boolean;
|
34
34
|
showSubtitle: boolean;
|
35
|
-
}, {}>;
|
35
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
36
36
|
export default _default;
|
@@ -21,12 +21,11 @@ __export(stdin_exports, {
|
|
21
21
|
});
|
22
22
|
module.exports = __toCommonJS(stdin_exports);
|
23
23
|
var import_vue = require("vue");
|
24
|
-
var import_vue2 = require("vue");
|
25
24
|
var import_utils = require("../utils");
|
26
25
|
var import_utils2 = require("./utils");
|
27
26
|
var import_icon = require("../icon");
|
28
27
|
const [name] = (0, import_utils.createNamespace)("calendar-header");
|
29
|
-
var stdin_default = (0,
|
28
|
+
var stdin_default = (0, import_vue.defineComponent)({
|
30
29
|
name,
|
31
30
|
props: {
|
32
31
|
date: Date,
|
@@ -44,10 +43,10 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
44
43
|
slots,
|
45
44
|
emit
|
46
45
|
}) {
|
47
|
-
const prevMonthDisabled = (0,
|
48
|
-
const prevYearDisabled = (0,
|
49
|
-
const nextMonthDisabled = (0,
|
50
|
-
const nextYearDisabled = (0,
|
46
|
+
const prevMonthDisabled = (0, import_vue.computed)(() => props.date && props.minDate && (0, import_utils2.compareMonth)((0, import_utils2.getPrevMonth)(props.date), props.minDate) < 0);
|
47
|
+
const prevYearDisabled = (0, import_vue.computed)(() => props.date && props.minDate && (0, import_utils2.compareMonth)((0, import_utils2.getPrevYear)(props.date), props.minDate) < 0);
|
48
|
+
const nextMonthDisabled = (0, import_vue.computed)(() => props.date && props.maxDate && (0, import_utils2.compareMonth)((0, import_utils2.getNextMonth)(props.date), props.maxDate) > 0);
|
49
|
+
const nextYearDisabled = (0, import_vue.computed)(() => props.date && props.maxDate && (0, import_utils2.compareMonth)((0, import_utils2.getNextYear)(props.date), props.maxDate) > 0);
|
51
50
|
const renderTitle = () => {
|
52
51
|
if (props.showTitle) {
|
53
52
|
const text = props.title || (0, import_utils2.t)("title");
|
@@ -20,7 +20,7 @@ declare const calendarMonthProps: {
|
|
20
20
|
firstDayOfWeek: NumberConstructor;
|
21
21
|
};
|
22
22
|
export type CalendarMonthProps = ExtractPropTypes<typeof calendarMonthProps>;
|
23
|
-
declare const _default: import("vue").DefineComponent<{
|
23
|
+
declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
24
24
|
date: {
|
25
25
|
type: DateConstructor;
|
26
26
|
required: true;
|
@@ -38,7 +38,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
38
38
|
showSubtitle: BooleanConstructor;
|
39
39
|
showMonthTitle: BooleanConstructor;
|
40
40
|
firstDayOfWeek: NumberConstructor;
|
41
|
-
}
|
41
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "clickDisabledDate")[], "click" | "clickDisabledDate", import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
42
42
|
date: {
|
43
43
|
type: DateConstructor;
|
44
44
|
required: true;
|
@@ -56,14 +56,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
56
56
|
showSubtitle: BooleanConstructor;
|
57
57
|
showMonthTitle: BooleanConstructor;
|
58
58
|
firstDayOfWeek: NumberConstructor;
|
59
|
-
}>> & {
|
59
|
+
}>> & Readonly<{
|
60
60
|
onClick?: ((...args: any[]) => any) | undefined;
|
61
61
|
onClickDisabledDate?: ((...args: any[]) => any) | undefined;
|
62
|
-
}
|
62
|
+
}>, {
|
63
63
|
lazyRender: boolean;
|
64
64
|
showMark: boolean;
|
65
65
|
allowSameDay: boolean;
|
66
66
|
showSubtitle: boolean;
|
67
67
|
showMonthTitle: boolean;
|
68
|
-
}, {}>;
|
68
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
69
69
|
export default _default;
|
@@ -31,7 +31,6 @@ __export(stdin_exports, {
|
|
31
31
|
});
|
32
32
|
module.exports = __toCommonJS(stdin_exports);
|
33
33
|
var import_vue = require("vue");
|
34
|
-
var import_vue2 = require("vue");
|
35
34
|
var import_utils = require("../utils");
|
36
35
|
var import_utils2 = require("../date-picker/utils");
|
37
36
|
var import_utils3 = require("./utils");
|
@@ -56,7 +55,7 @@ const calendarMonthProps = {
|
|
56
55
|
showMonthTitle: Boolean,
|
57
56
|
firstDayOfWeek: Number
|
58
57
|
};
|
59
|
-
var stdin_default = (0,
|
58
|
+
var stdin_default = (0, import_vue.defineComponent)({
|
60
59
|
name,
|
61
60
|
props: calendarMonthProps,
|
62
61
|
emits: ["click", "clickDisabledDate"],
|
@@ -65,12 +64,12 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
65
64
|
slots
|
66
65
|
}) {
|
67
66
|
const [visible, setVisible] = (0, import_use.useToggle)();
|
68
|
-
const daysRef = (0,
|
69
|
-
const monthRef = (0,
|
67
|
+
const daysRef = (0, import_vue.ref)();
|
68
|
+
const monthRef = (0, import_vue.ref)();
|
70
69
|
const height = (0, import_use_height.useHeight)(monthRef);
|
71
|
-
const title = (0,
|
72
|
-
const rowHeight = (0,
|
73
|
-
const offset = (0,
|
70
|
+
const title = (0, import_vue.computed)(() => (0, import_utils3.formatMonthTitle)(props.date));
|
71
|
+
const rowHeight = (0, import_vue.computed)(() => (0, import_utils.addUnit)(props.rowHeight));
|
72
|
+
const offset = (0, import_vue.computed)(() => {
|
74
73
|
const date = props.date.getDate();
|
75
74
|
const day = props.date.getDay();
|
76
75
|
const realDay = (day - date % 7 + 8) % 7;
|
@@ -79,8 +78,8 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
79
78
|
}
|
80
79
|
return realDay;
|
81
80
|
});
|
82
|
-
const totalDay = (0,
|
83
|
-
const shouldRender = (0,
|
81
|
+
const totalDay = (0, import_vue.computed)(() => (0, import_utils2.getMonthEndDay)(props.date.getFullYear(), props.date.getMonth() + 1));
|
82
|
+
const shouldRender = (0, import_vue.computed)(() => visible.value || !props.lazyRender);
|
84
83
|
const getTitle = () => title.value;
|
85
84
|
const getMultipleDayType = (day) => {
|
86
85
|
const isSelected = (date) => props.currentDate.some((item) => (0, import_utils3.compareDay)(item, date) === 0);
|
@@ -178,13 +177,13 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
178
177
|
}, [props.date.getMonth() + 1]);
|
179
178
|
}
|
180
179
|
};
|
181
|
-
const placeholders = (0,
|
180
|
+
const placeholders = (0, import_vue.computed)(() => {
|
182
181
|
const count = Math.ceil((totalDay.value + offset.value) / 7);
|
183
182
|
return Array(count).fill({
|
184
183
|
type: "placeholder"
|
185
184
|
});
|
186
185
|
});
|
187
|
-
const days = (0,
|
186
|
+
const days = (0, import_vue.computed)(() => {
|
188
187
|
const days2 = [];
|
189
188
|
const year = props.date.getFullYear();
|
190
189
|
const month = props.date.getMonth();
|
@@ -204,7 +203,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
204
203
|
}
|
205
204
|
return days2;
|
206
205
|
});
|
207
|
-
const disabledDays = (0,
|
206
|
+
const disabledDays = (0, import_vue.computed)(() => days.value.filter((day) => day.type === "disabled"));
|
208
207
|
const scrollToDate = (body, targetDate) => {
|
209
208
|
if (daysRef.value) {
|
210
209
|
const daysRect = (0, import_use.useRect)(daysRef.value);
|
package/lib/calendar/index.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
:root,:host{--van-calendar-background: var(--van-background-2);--van-calendar-popup-height: 80%;--van-calendar-header-shadow: 0 2px 10px rgba(125, 126, 128, .16);--van-calendar-header-title-height: 44px;--van-calendar-header-title-font-size: var(--van-font-size-lg);--van-calendar-header-subtitle-font-size: var(--van-font-size-md);--van-calendar-header-action-width: 28px;--van-calendar-header-action-color: var(--van-text-color);--van-calendar-header-action-disabled-color: var(--van-text-color-3);--van-calendar-weekdays-height: 30px;--van-calendar-weekdays-font-size: var(--van-font-size-sm);--van-calendar-month-title-font-size: var(--van-font-size-md);--van-calendar-month-mark-color: rgba(242, 243, 245, .8);--van-calendar-month-mark-font-size: 160px;--van-calendar-day-height: 64px;--van-calendar-day-font-size: var(--van-font-size-lg);--van-calendar-day-margin-bottom: 4px;--van-calendar-range-edge-color: var(--van-white);--van-calendar-range-edge-background: var(--van-primary-color);--van-calendar-range-middle-color: var(--van-primary-color);--van-calendar-range-middle-background-opacity: .1;--van-calendar-selected-day-size: 54px;--van-calendar-selected-day-color: var(--van-white);--van-calendar-
|
1
|
+
:root,:host{--van-calendar-background: var(--van-background-2);--van-calendar-popup-height: 80%;--van-calendar-header-shadow: 0 2px 10px rgba(125, 126, 128, .16);--van-calendar-header-title-height: 44px;--van-calendar-header-title-font-size: var(--van-font-size-lg);--van-calendar-header-subtitle-font-size: var(--van-font-size-md);--van-calendar-header-action-width: 28px;--van-calendar-header-action-color: var(--van-text-color);--van-calendar-header-action-disabled-color: var(--van-text-color-3);--van-calendar-weekdays-height: 30px;--van-calendar-weekdays-font-size: var(--van-font-size-sm);--van-calendar-month-title-font-size: var(--van-font-size-md);--van-calendar-month-mark-color: rgba(242, 243, 245, .8);--van-calendar-month-mark-font-size: 160px;--van-calendar-day-height: 64px;--van-calendar-day-font-size: var(--van-font-size-lg);--van-calendar-day-margin-bottom: 4px;--van-calendar-day-disabled-color: var(--van-text-color-3);--van-calendar-range-edge-color: var(--van-white);--van-calendar-range-edge-background: var(--van-primary-color);--van-calendar-range-middle-color: var(--van-primary-color);--van-calendar-range-middle-background-opacity: .1;--van-calendar-selected-day-size: 54px;--van-calendar-selected-day-color: var(--van-white);--van-calendar-selected-day-background: var(--van-primary-color);--van-calendar-info-font-size: var(--van-font-size-xs);--van-calendar-info-line-height: var(--van-line-height-xs);--van-calendar-confirm-button-height: 36px;--van-calendar-confirm-button-margin: 7px 0}.van-theme-dark{--van-calendar-month-mark-color: rgba(100, 101, 102, .2);--van-calendar-day-disabled-color: var(--van-gray-7)}.van-calendar{display:flex;flex-direction:column;height:100%;background:var(--van-calendar-background)}.van-calendar__popup.van-popup--top,.van-calendar__popup.van-popup--bottom{height:var(--van-calendar-popup-height)}.van-calendar__popup.van-popup--left,.van-calendar__popup.van-popup--right{height:100%}.van-calendar__popup .van-popup__close-icon{top:11px}.van-calendar__header{flex-shrink:0;box-shadow:var(--van-calendar-header-shadow)}.van-calendar__month-title,.van-calendar__header-title,.van-calendar__header-subtitle{color:var(--van-text-color);height:var(--van-calendar-header-title-height);font-weight:var(--van-font-bold);line-height:var(--van-calendar-header-title-height);text-align:center}.van-calendar__header-title{font-size:var(--van-calendar-header-title-font-size)}.van-calendar__header-subtitle{font-size:var(--van-calendar-header-subtitle-font-size)}.van-calendar__header-subtitle--with-swicth{display:flex;align-items:center;padding:0 var(--van-padding-base)}.van-calendar__header-subtitle-text{flex:1}.van-calendar__header-action{display:flex;align-items:center;justify-content:center;min-width:var(--van-calendar-header-action-width);height:100%;color:var(--van-calendar-header-action-color);cursor:pointer}.van-calendar__header-action--disabled{color:var(--van-calendar-header-action-disabled-color);cursor:not-allowed}.van-calendar__month-title{font-size:var(--van-calendar-month-title-font-size)}.van-calendar__weekdays{display:flex}.van-calendar__weekday{flex:1;font-size:var(--van-calendar-weekdays-font-size);line-height:var(--van-calendar-weekdays-height);text-align:center}.van-calendar__body{flex:1;overflow:auto;-webkit-overflow-scrolling:touch}.van-calendar__days{position:relative;display:flex;flex-wrap:wrap;-webkit-user-select:none;user-select:none}.van-calendar__month-mark{position:absolute;top:50%;left:50%;z-index:0;color:var(--van-calendar-month-mark-color);font-size:var(--van-calendar-month-mark-font-size);transform:translate(-50%,-50%);pointer-events:none}.van-calendar__day,.van-calendar__selected-day{display:flex;align-items:center;justify-content:center;text-align:center}.van-calendar__day{position:relative;width:14.285%;height:var(--van-calendar-day-height);font-size:var(--van-calendar-day-font-size);margin-bottom:var(--van-calendar-day-margin-bottom);cursor:pointer}.van-calendar__day--end,.van-calendar__day--start,.van-calendar__day--start-end,.van-calendar__day--multiple-middle,.van-calendar__day--multiple-selected{color:var(--van-calendar-range-edge-color);background:var(--van-calendar-range-edge-background)}.van-calendar__day--start{border-radius:var(--van-radius-md) 0 0 var(--van-radius-md)}.van-calendar__day--end{border-radius:0 var(--van-radius-md) var(--van-radius-md) 0}.van-calendar__day--start-end,.van-calendar__day--multiple-selected{border-radius:var(--van-radius-md)}.van-calendar__day--middle{color:var(--van-calendar-range-middle-color)}.van-calendar__day--middle:after{position:absolute;top:0;right:0;bottom:0;left:0;background-color:currentColor;opacity:var(--van-calendar-range-middle-background-opacity);content:""}.van-calendar__day--disabled{color:var(--van-calendar-day-disabled-color);cursor:default}.van-calendar__top-info,.van-calendar__bottom-info{position:absolute;right:0;left:0;font-size:var(--van-calendar-info-font-size);line-height:var(--van-calendar-info-line-height)}@media (max-width: 350px){.van-calendar__top-info,.van-calendar__bottom-info{font-size:9px}}.van-calendar__top-info{top:6px}.van-calendar__bottom-info{bottom:6px}.van-calendar__selected-day{width:var(--van-calendar-selected-day-size);height:var(--van-calendar-selected-day-size);color:var(--van-calendar-selected-day-color);background:var(--van-calendar-selected-day-background);border-radius:var(--van-radius-md)}.van-calendar__footer{flex-shrink:0;padding-left:var(--van-padding-md);padding-right:var(--van-padding-md)}.van-calendar__confirm{height:var(--van-calendar-confirm-button-height);margin:var(--van-calendar-confirm-button-margin)}
|
package/lib/calendar/index.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
export declare const Calendar: import("../utils").WithInstall<import("vue").DefineComponent<{
|
1
|
+
export declare const Calendar: import("../utils").WithInstall<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
2
2
|
show: BooleanConstructor;
|
3
3
|
type: {
|
4
4
|
type: import("vue").PropType<import("./types").CalendarType>;
|
@@ -27,7 +27,7 @@ export declare const Calendar: import("../utils").WithInstall<import("vue").Defi
|
|
27
27
|
type: import("vue").PropType<import("..").PopupPosition>;
|
28
28
|
default: import("..").PopupPosition;
|
29
29
|
};
|
30
|
-
teleport: import("vue").PropType<
|
30
|
+
teleport: import("vue").PropType<import("vue").TeleportProps["to"]>;
|
31
31
|
showMark: {
|
32
32
|
type: BooleanConstructor;
|
33
33
|
default: true;
|
@@ -85,7 +85,7 @@ export declare const Calendar: import("../utils").WithInstall<import("vue").Defi
|
|
85
85
|
default: number;
|
86
86
|
validator: (val: number) => boolean;
|
87
87
|
};
|
88
|
-
}
|
88
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "update:show" | "confirm" | "clickDisabledDate" | "clickSubtitle" | "panelChange" | "unselect" | "monthShow" | "overRange")[], "select" | "update:show" | "confirm" | "clickDisabledDate" | "clickSubtitle" | "panelChange" | "unselect" | "monthShow" | "overRange", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
89
89
|
show: BooleanConstructor;
|
90
90
|
type: {
|
91
91
|
type: import("vue").PropType<import("./types").CalendarType>;
|
@@ -114,7 +114,7 @@ export declare const Calendar: import("../utils").WithInstall<import("vue").Defi
|
|
114
114
|
type: import("vue").PropType<import("..").PopupPosition>;
|
115
115
|
default: import("..").PopupPosition;
|
116
116
|
};
|
117
|
-
teleport: import("vue").PropType<
|
117
|
+
teleport: import("vue").PropType<import("vue").TeleportProps["to"]>;
|
118
118
|
showMark: {
|
119
119
|
type: BooleanConstructor;
|
120
120
|
default: true;
|
@@ -172,7 +172,7 @@ export declare const Calendar: import("../utils").WithInstall<import("vue").Defi
|
|
172
172
|
default: number;
|
173
173
|
validator: (val: number) => boolean;
|
174
174
|
};
|
175
|
-
}>> & {
|
175
|
+
}>> & Readonly<{
|
176
176
|
onSelect?: ((...args: any[]) => any) | undefined;
|
177
177
|
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
178
178
|
onConfirm?: ((...args: any[]) => any) | undefined;
|
@@ -182,7 +182,7 @@ export declare const Calendar: import("../utils").WithInstall<import("vue").Defi
|
|
182
182
|
onUnselect?: ((...args: any[]) => any) | undefined;
|
183
183
|
onMonthShow?: ((...args: any[]) => any) | undefined;
|
184
184
|
onOverRange?: ((...args: any[]) => any) | undefined;
|
185
|
-
}
|
185
|
+
}>, {
|
186
186
|
type: import("./types").CalendarType;
|
187
187
|
position: import("..").PopupPosition;
|
188
188
|
round: boolean;
|
@@ -203,7 +203,7 @@ export declare const Calendar: import("../utils").WithInstall<import("vue").Defi
|
|
203
203
|
showSubtitle: boolean;
|
204
204
|
showRangePrompt: boolean;
|
205
205
|
firstDayOfWeek: string | number;
|
206
|
-
}, {}>>;
|
206
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
|
207
207
|
export default Calendar;
|
208
208
|
export { calendarProps } from './Calendar';
|
209
209
|
export type { CalendarProps } from './Calendar';
|
package/lib/calendar/types.d.ts
CHANGED
@@ -45,16 +45,16 @@ export type CalendarThemeVars = {
|
|
45
45
|
calendarDayHeight?: string;
|
46
46
|
calendarDayFontSize?: string;
|
47
47
|
calendarDayMarginBottom?: string;
|
48
|
+
calendarDayDisabledColor?: string;
|
48
49
|
calendarRangeEdgeColor?: string;
|
49
50
|
calendarRangeEdgeBackground?: string;
|
50
51
|
calendarRangeMiddleColor?: string;
|
51
52
|
calendarRangeMiddleBackgroundOpacity?: number | string;
|
52
53
|
calendarSelectedDaySize?: string;
|
53
54
|
calendarSelectedDayColor?: string;
|
55
|
+
calendarSelectedDayBackground?: string;
|
54
56
|
calendarInfoFontSize?: string;
|
55
57
|
calendarInfoLineHeight?: number | string;
|
56
|
-
calendarSelectedDayBackground?: string;
|
57
|
-
calendarDayDisabledColor?: string;
|
58
58
|
calendarConfirmButtonHeight?: string;
|
59
59
|
calendarConfirmButtonMargin?: string;
|
60
60
|
};
|
package/lib/calendar/utils.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
declare const name: string, bem: (el?: import("../utils").Mods
|
1
|
+
declare const name: string, bem: (el?: import("../utils").Mods, mods?: import("../utils").Mods) => import("../utils").Mods, t: (path: string, ...args: unknown[]) => any;
|
2
2
|
export { name, bem, t };
|
3
3
|
export declare const formatMonthTitle: (date: Date) => any;
|
4
4
|
export declare function compareMonth(date1: Date, date2: Date): 0 | 1 | -1;
|
package/lib/card/Card.d.ts
CHANGED
@@ -16,7 +16,7 @@ export declare const cardProps: {
|
|
16
16
|
originPrice: (NumberConstructor | StringConstructor)[];
|
17
17
|
};
|
18
18
|
export type CardProps = ExtractPropTypes<typeof cardProps>;
|
19
|
-
declare const _default: import("vue").DefineComponent<{
|
19
|
+
declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
20
20
|
tag: StringConstructor;
|
21
21
|
num: (NumberConstructor | StringConstructor)[];
|
22
22
|
desc: StringConstructor;
|
@@ -31,7 +31,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
31
31
|
};
|
32
32
|
thumbLink: StringConstructor;
|
33
33
|
originPrice: (NumberConstructor | StringConstructor)[];
|
34
|
-
}
|
34
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "clickThumb"[], "clickThumb", import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
35
35
|
tag: StringConstructor;
|
36
36
|
num: (NumberConstructor | StringConstructor)[];
|
37
37
|
desc: StringConstructor;
|
@@ -46,11 +46,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
46
46
|
};
|
47
47
|
thumbLink: StringConstructor;
|
48
48
|
originPrice: (NumberConstructor | StringConstructor)[];
|
49
|
-
}>> & {
|
49
|
+
}>> & Readonly<{
|
50
50
|
onClickThumb?: ((...args: any[]) => any) | undefined;
|
51
|
-
}
|
51
|
+
}>, {
|
52
52
|
lazyLoad: boolean;
|
53
53
|
centered: boolean;
|
54
54
|
currency: string;
|
55
|
-
}, {}>;
|
55
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
56
56
|
export default _default;
|
package/lib/card/Card.js
CHANGED
@@ -22,7 +22,6 @@ __export(stdin_exports, {
|
|
22
22
|
});
|
23
23
|
module.exports = __toCommonJS(stdin_exports);
|
24
24
|
var import_vue = require("vue");
|
25
|
-
var import_vue2 = require("vue");
|
26
25
|
var import_utils = require("../utils");
|
27
26
|
var import_tag = require("../tag");
|
28
27
|
var import_image = require("../image");
|
@@ -40,7 +39,7 @@ const cardProps = {
|
|
40
39
|
thumbLink: String,
|
41
40
|
originPrice: import_utils.numericProp
|
42
41
|
};
|
43
|
-
var stdin_default = (0,
|
42
|
+
var stdin_default = (0, import_vue.defineComponent)({
|
44
43
|
name,
|
45
44
|
props: cardProps,
|
46
45
|
emits: ["clickThumb"],
|
package/lib/card/index.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
export declare const Card: import("../utils").WithInstall<import("vue").DefineComponent<{
|
1
|
+
export declare const Card: import("../utils").WithInstall<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
2
2
|
tag: StringConstructor;
|
3
3
|
num: (NumberConstructor | StringConstructor)[];
|
4
4
|
desc: StringConstructor;
|
@@ -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
|
-
}
|
16
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "clickThumb"[], "clickThumb", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
17
17
|
tag: StringConstructor;
|
18
18
|
num: (NumberConstructor | StringConstructor)[];
|
19
19
|
desc: StringConstructor;
|
@@ -28,13 +28,13 @@ export declare const Card: import("../utils").WithInstall<import("vue").DefineCo
|
|
28
28
|
};
|
29
29
|
thumbLink: StringConstructor;
|
30
30
|
originPrice: (NumberConstructor | StringConstructor)[];
|
31
|
-
}>> & {
|
31
|
+
}>> & Readonly<{
|
32
32
|
onClickThumb?: ((...args: any[]) => any) | undefined;
|
33
|
-
}
|
33
|
+
}>, {
|
34
34
|
lazyLoad: boolean;
|
35
35
|
centered: boolean;
|
36
36
|
currency: string;
|
37
|
-
}, {}>>;
|
37
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
|
38
38
|
export default Card;
|
39
39
|
export { cardProps } from './Card';
|
40
40
|
export type { CardProps } from './Card';
|
@@ -28,7 +28,7 @@ export declare const cascaderProps: {
|
|
28
28
|
activeColor: StringConstructor;
|
29
29
|
};
|
30
30
|
export type CascaderProps = ExtractPropTypes<typeof cascaderProps>;
|
31
|
-
declare const _default: import("vue").DefineComponent<{
|
31
|
+
declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
32
32
|
title: StringConstructor;
|
33
33
|
options: {
|
34
34
|
type: PropType<CascaderOption[]>;
|
@@ -54,7 +54,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
54
54
|
fieldNames: PropType<CascaderFieldNames>;
|
55
55
|
placeholder: StringConstructor;
|
56
56
|
activeColor: StringConstructor;
|
57
|
-
}
|
57
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change" | "close" | "clickTab" | "finish")[], "update:modelValue" | "change" | "close" | "clickTab" | "finish", import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
58
58
|
title: StringConstructor;
|
59
59
|
options: {
|
60
60
|
type: PropType<CascaderOption[]>;
|
@@ -80,17 +80,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
80
80
|
fieldNames: PropType<CascaderFieldNames>;
|
81
81
|
placeholder: StringConstructor;
|
82
82
|
activeColor: StringConstructor;
|
83
|
-
}>> & {
|
83
|
+
}>> & Readonly<{
|
84
84
|
onChange?: ((...args: any[]) => any) | undefined;
|
85
|
-
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
86
85
|
onClose?: ((...args: any[]) => any) | undefined;
|
86
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
87
87
|
onClickTab?: ((...args: any[]) => any) | undefined;
|
88
88
|
onFinish?: ((...args: any[]) => any) | undefined;
|
89
|
-
}
|
89
|
+
}>, {
|
90
90
|
closeIcon: string;
|
91
91
|
closeable: boolean;
|
92
92
|
options: CascaderOption[];
|
93
93
|
swipeable: boolean;
|
94
94
|
showHeader: boolean;
|
95
|
-
}, {}>;
|
95
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
96
96
|
export default _default;
|
package/lib/cascader/Cascader.js
CHANGED
@@ -22,7 +22,6 @@ __export(stdin_exports, {
|
|
22
22
|
});
|
23
23
|
module.exports = __toCommonJS(stdin_exports);
|
24
24
|
var import_vue = require("vue");
|
25
|
-
var import_vue2 = require("vue");
|
26
25
|
var import_utils = require("../utils");
|
27
26
|
var import_use_refs = require("../composables/use-refs");
|
28
27
|
var import_tab = require("../tab");
|
@@ -41,7 +40,7 @@ const cascaderProps = {
|
|
41
40
|
placeholder: String,
|
42
41
|
activeColor: String
|
43
42
|
};
|
44
|
-
var stdin_default = (0,
|
43
|
+
var stdin_default = (0, import_vue.defineComponent)({
|
45
44
|
name,
|
46
45
|
props: cascaderProps,
|
47
46
|
emits: ["close", "change", "finish", "clickTab", "update:modelValue"],
|
@@ -49,8 +48,8 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
49
48
|
slots,
|
50
49
|
emit
|
51
50
|
}) {
|
52
|
-
const tabs = (0,
|
53
|
-
const activeTab = (0,
|
51
|
+
const tabs = (0, import_vue.ref)([]);
|
52
|
+
const activeTab = (0, import_vue.ref)(0);
|
54
53
|
const [selectedElementRefs, setSelectedElementRefs] = (0, import_use_refs.useRefs)();
|
55
54
|
const {
|
56
55
|
text: textKey,
|
@@ -100,7 +99,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
100
99
|
selected: null
|
101
100
|
});
|
102
101
|
}
|
103
|
-
(0,
|
102
|
+
(0, import_vue.nextTick)(() => {
|
104
103
|
activeTab.value = tabs.value.length - 1;
|
105
104
|
});
|
106
105
|
return;
|
@@ -129,7 +128,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
129
128
|
} else {
|
130
129
|
tabs.value.push(nextTab);
|
131
130
|
}
|
132
|
-
(0,
|
131
|
+
(0, import_vue.nextTick)(() => {
|
133
132
|
activeTab.value++;
|
134
133
|
});
|
135
134
|
}
|
@@ -234,15 +233,14 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
234
233
|
}
|
235
234
|
};
|
236
235
|
updateTabs();
|
237
|
-
(0,
|
236
|
+
(0, import_vue.watch)(activeTab, (value) => {
|
238
237
|
const el = selectedElementRefs.value[value];
|
239
|
-
if (el)
|
240
|
-
scrollIntoView(el);
|
238
|
+
if (el) scrollIntoView(el);
|
241
239
|
});
|
242
|
-
(0,
|
240
|
+
(0, import_vue.watch)(() => props.options, updateTabs, {
|
243
241
|
deep: true
|
244
242
|
});
|
245
|
-
(0,
|
243
|
+
(0, import_vue.watch)(() => props.modelValue, (value) => {
|
246
244
|
if (value !== void 0) {
|
247
245
|
const values = tabs.value.map((tab) => {
|
248
246
|
var _a;
|