vant 4.9.5 → 4.9.7
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 +1 -2
- 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.d.ts +7 -7
- 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 +2 -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 +2 -2
- package/es/dropdown-menu/index.d.ts +4 -4
- package/es/empty/Empty.d.ts +4 -4
- package/es/empty/Empty.mjs +40 -20
- package/es/empty/index.d.ts +4 -4
- package/es/field/Field.d.ts +5 -5
- package/es/field/Field.mjs +3 -2
- package/es/field/index.d.ts +5 -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/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 -8
- package/es/overlay/Overlay.mjs +1 -2
- package/es/overlay/index.d.ts +6 -6
- 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 +5 -5
- package/es/search/Search.mjs +3 -3
- package/es/search/index.d.ts +5 -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 +5 -5
- package/es/slider/Slider.mjs +1 -2
- package/es/slider/index.d.ts +5 -5
- 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 +5 -4
- package/es/tab/TabTitle.d.ts +4 -4
- package/es/tab/TabTitle.mjs +3 -3
- 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 +15 -16
- 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.d.ts +7 -7
- 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 +5 -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 +8 -8
- package/lib/dropdown-menu/index.d.ts +4 -4
- package/lib/empty/Empty.d.ts +4 -4
- package/lib/empty/Empty.js +40 -20
- package/lib/empty/index.d.ts +4 -4
- package/lib/field/Field.d.ts +5 -5
- package/lib/field/Field.js +20 -19
- package/lib/field/index.d.ts +5 -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.d.ts +1 -1
- package/lib/index.js +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 -8
- package/lib/overlay/Overlay.js +4 -5
- package/lib/overlay/index.d.ts +6 -6
- 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 +5 -5
- package/lib/search/Search.js +4 -4
- package/lib/search/index.d.ts +5 -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 +5 -5
- package/lib/slider/Slider.js +7 -8
- package/lib/slider/index.d.ts +5 -5
- 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 +16 -15
- package/lib/tab/TabTitle.d.ts +4 -4
- package/lib/tab/TabTitle.js +4 -4
- 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 +106 -120
- package/lib/vant.es.js +106 -120
- package/lib/vant.js +107 -121
- 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 +16 -16
@@ -1,4 +1,4 @@
|
|
1
|
-
export declare const CouponList: import("../utils").WithInstall<import("vue").DefineComponent<{
|
1
|
+
export declare const CouponList: import("../utils").WithInstall<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
2
2
|
code: {
|
3
3
|
type: import("vue").PropType<string>;
|
4
4
|
default: string;
|
@@ -47,7 +47,7 @@ export declare const CouponList: import("../utils").WithInstall<import("vue").De
|
|
47
47
|
type: import("vue").PropType<number | number[]>;
|
48
48
|
default: number;
|
49
49
|
};
|
50
|
-
}
|
50
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "exchange" | "update:code")[], "change" | "exchange" | "update:code", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
51
51
|
code: {
|
52
52
|
type: import("vue").PropType<string>;
|
53
53
|
default: string;
|
@@ -96,11 +96,11 @@ export declare const CouponList: import("../utils").WithInstall<import("vue").De
|
|
96
96
|
type: import("vue").PropType<number | number[]>;
|
97
97
|
default: number;
|
98
98
|
};
|
99
|
-
}>> & {
|
99
|
+
}>> & Readonly<{
|
100
100
|
onChange?: ((...args: any[]) => any) | undefined;
|
101
101
|
onExchange?: ((...args: any[]) => any) | undefined;
|
102
102
|
"onUpdate:code"?: ((...args: any[]) => any) | undefined;
|
103
|
-
}
|
103
|
+
}>, {
|
104
104
|
code: string;
|
105
105
|
currency: string;
|
106
106
|
coupons: import("..").CouponInfo[];
|
@@ -113,7 +113,7 @@ export declare const CouponList: import("../utils").WithInstall<import("vue").De
|
|
113
113
|
displayedCouponIndex: number;
|
114
114
|
exchangeButtonLoading: boolean;
|
115
115
|
exchangeButtonDisabled: boolean;
|
116
|
-
}, {}>>;
|
116
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
|
117
117
|
export default CouponList;
|
118
118
|
export { couponListProps } from './CouponList';
|
119
119
|
export type { CouponListProps } from './CouponList';
|
@@ -29,7 +29,7 @@ export declare const datePickerProps: {
|
|
29
29
|
type: PropType<string[]>;
|
30
30
|
default: () => never[];
|
31
31
|
};
|
32
|
-
filter: PropType<(columnType: string, options: import("../picker").PickerOption[], values?: string[]
|
32
|
+
filter: PropType<(columnType: string, options: import("../picker").PickerOption[], values?: string[]) => import("../picker").PickerOption[]>;
|
33
33
|
formatter: {
|
34
34
|
type: PropType<(type: string, option: import("../picker").PickerOption) => import("../picker").PickerOption>;
|
35
35
|
default: (type: string, option: import("../picker").PickerOption) => import("../picker").PickerOption;
|
@@ -56,7 +56,7 @@ export type DatePickerExpose = {
|
|
56
56
|
};
|
57
57
|
export type DatePickerProps = ExtractPropTypes<typeof datePickerProps>;
|
58
58
|
export type DatePickerInstance = ComponentPublicInstance<DatePickerProps, DatePickerExpose>;
|
59
|
-
declare const _default: import("vue").DefineComponent<{
|
59
|
+
declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
60
60
|
loading: BooleanConstructor;
|
61
61
|
readonly: BooleanConstructor;
|
62
62
|
allowHtml: BooleanConstructor;
|
@@ -85,7 +85,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
85
85
|
type: PropType<string[]>;
|
86
86
|
default: () => never[];
|
87
87
|
};
|
88
|
-
filter: PropType<(columnType: string, options: import("../picker").PickerOption[], values?: string[]
|
88
|
+
filter: PropType<(columnType: string, options: import("../picker").PickerOption[], values?: string[]) => import("../picker").PickerOption[]>;
|
89
89
|
formatter: {
|
90
90
|
type: PropType<(type: string, option: import("../picker").PickerOption) => import("../picker").PickerOption>;
|
91
91
|
default: (type: string, option: import("../picker").PickerOption) => import("../picker").PickerOption;
|
@@ -105,7 +105,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
105
105
|
default: () => Date;
|
106
106
|
validator: (val: unknown) => val is Date;
|
107
107
|
};
|
108
|
-
}
|
108
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "cancel" | "change" | "confirm")[], "update:modelValue" | "cancel" | "change" | "confirm", import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
109
109
|
loading: BooleanConstructor;
|
110
110
|
readonly: BooleanConstructor;
|
111
111
|
allowHtml: BooleanConstructor;
|
@@ -134,7 +134,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
134
134
|
type: PropType<string[]>;
|
135
135
|
default: () => never[];
|
136
136
|
};
|
137
|
-
filter: PropType<(columnType: string, options: import("../picker").PickerOption[], values?: string[]
|
137
|
+
filter: PropType<(columnType: string, options: import("../picker").PickerOption[], values?: string[]) => import("../picker").PickerOption[]>;
|
138
138
|
formatter: {
|
139
139
|
type: PropType<(type: string, option: import("../picker").PickerOption) => import("../picker").PickerOption>;
|
140
140
|
default: (type: string, option: import("../picker").PickerOption) => import("../picker").PickerOption;
|
@@ -154,12 +154,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
154
154
|
default: () => Date;
|
155
155
|
validator: (val: unknown) => val is Date;
|
156
156
|
};
|
157
|
-
}>> & {
|
157
|
+
}>> & Readonly<{
|
158
158
|
onChange?: ((...args: any[]) => any) | undefined;
|
159
159
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
160
160
|
onCancel?: ((...args: any[]) => any) | undefined;
|
161
161
|
onConfirm?: ((...args: any[]) => any) | undefined;
|
162
|
-
}
|
162
|
+
}>, {
|
163
163
|
formatter: (type: string, option: import("../picker").PickerOption) => import("../picker").PickerOption;
|
164
164
|
modelValue: string[];
|
165
165
|
readonly: boolean;
|
@@ -172,5 +172,5 @@ declare const _default: import("vue").DefineComponent<{
|
|
172
172
|
minDate: Date;
|
173
173
|
maxDate: Date;
|
174
174
|
columnsType: DatePickerColumnType[];
|
175
|
-
}, {}>;
|
175
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
176
176
|
export default _default;
|
@@ -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_utils2 = require("./utils");
|
28
27
|
var import_use_expose = require("../composables/use-expose");
|
@@ -45,7 +44,7 @@ const datePickerProps = (0, import_utils.extend)({}, import_utils2.sharedProps,
|
|
45
44
|
validator: import_utils.isDate
|
46
45
|
}
|
47
46
|
});
|
48
|
-
var stdin_default = (0,
|
47
|
+
var stdin_default = (0, import_vue.defineComponent)({
|
49
48
|
name,
|
50
49
|
props: datePickerProps,
|
51
50
|
emits: ["confirm", "cancel", "change", "update:modelValue"],
|
@@ -53,9 +52,9 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
53
52
|
emit,
|
54
53
|
slots
|
55
54
|
}) {
|
56
|
-
const currentValues = (0,
|
57
|
-
const updatedByExternalSources = (0,
|
58
|
-
const pickerRef = (0,
|
55
|
+
const currentValues = (0, import_vue.ref)(props.modelValue);
|
56
|
+
const updatedByExternalSources = (0, import_vue.ref)(false);
|
57
|
+
const pickerRef = (0, import_vue.ref)();
|
59
58
|
const genYearOptions = () => {
|
60
59
|
const minYear = props.minDate.getFullYear();
|
61
60
|
const maxYear = props.maxDate.getFullYear();
|
@@ -102,7 +101,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
102
101
|
return (_a = pickerRef.value) == null ? void 0 : _a.confirm();
|
103
102
|
};
|
104
103
|
const getSelectedDate = () => currentValues.value;
|
105
|
-
const columns = (0,
|
104
|
+
const columns = (0, import_vue.computed)(() => props.columnsType.map((type) => {
|
106
105
|
switch (type) {
|
107
106
|
case "year":
|
108
107
|
return genYearOptions();
|
@@ -117,12 +116,12 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
117
116
|
return [];
|
118
117
|
}
|
119
118
|
}));
|
120
|
-
(0,
|
119
|
+
(0, import_vue.watch)(currentValues, (newValues) => {
|
121
120
|
if (!(0, import_utils.isSameValue)(newValues, props.modelValue)) {
|
122
121
|
emit("update:modelValue", newValues);
|
123
122
|
}
|
124
123
|
});
|
125
|
-
(0,
|
124
|
+
(0, import_vue.watch)(() => props.modelValue, (newValues, oldValues) => {
|
126
125
|
updatedByExternalSources.value = (0, import_utils.isSameValue)(oldValues, currentValues.value);
|
127
126
|
newValues = (0, import_utils2.formatValueRange)(newValues, columns.value);
|
128
127
|
if (!(0, import_utils.isSameValue)(newValues, currentValues.value)) {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { DatePickerProps } from './DatePicker';
|
2
|
-
export declare const DatePicker: import("../utils").WithInstall<import("vue").DefineComponent<{
|
2
|
+
export declare const DatePicker: import("../utils").WithInstall<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
3
3
|
loading: BooleanConstructor;
|
4
4
|
readonly: BooleanConstructor;
|
5
5
|
allowHtml: BooleanConstructor;
|
@@ -28,7 +28,7 @@ export declare const DatePicker: import("../utils").WithInstall<import("vue").De
|
|
28
28
|
type: import("vue").PropType<string[]>;
|
29
29
|
default: () => never[];
|
30
30
|
};
|
31
|
-
filter: import("vue").PropType<(columnType: string, options: import("..").PickerOption[], values?: string[]
|
31
|
+
filter: import("vue").PropType<(columnType: string, options: import("..").PickerOption[], values?: string[]) => import("..").PickerOption[]>;
|
32
32
|
formatter: {
|
33
33
|
type: import("vue").PropType<(type: string, option: import("..").PickerOption) => import("..").PickerOption>;
|
34
34
|
default: (type: string, option: import("..").PickerOption) => import("..").PickerOption;
|
@@ -48,7 +48,7 @@ export declare const DatePicker: import("../utils").WithInstall<import("vue").De
|
|
48
48
|
default: () => Date;
|
49
49
|
validator: (val: unknown) => val is Date;
|
50
50
|
};
|
51
|
-
}
|
51
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "cancel" | "change" | "confirm")[], "update:modelValue" | "cancel" | "change" | "confirm", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
52
52
|
loading: BooleanConstructor;
|
53
53
|
readonly: BooleanConstructor;
|
54
54
|
allowHtml: BooleanConstructor;
|
@@ -77,7 +77,7 @@ export declare const DatePicker: import("../utils").WithInstall<import("vue").De
|
|
77
77
|
type: import("vue").PropType<string[]>;
|
78
78
|
default: () => never[];
|
79
79
|
};
|
80
|
-
filter: import("vue").PropType<(columnType: string, options: import("..").PickerOption[], values?: string[]
|
80
|
+
filter: import("vue").PropType<(columnType: string, options: import("..").PickerOption[], values?: string[]) => import("..").PickerOption[]>;
|
81
81
|
formatter: {
|
82
82
|
type: import("vue").PropType<(type: string, option: import("..").PickerOption) => import("..").PickerOption>;
|
83
83
|
default: (type: string, option: import("..").PickerOption) => import("..").PickerOption;
|
@@ -97,12 +97,12 @@ export declare const DatePicker: import("../utils").WithInstall<import("vue").De
|
|
97
97
|
default: () => Date;
|
98
98
|
validator: (val: unknown) => val is Date;
|
99
99
|
};
|
100
|
-
}>> & {
|
100
|
+
}>> & Readonly<{
|
101
101
|
onChange?: ((...args: any[]) => any) | undefined;
|
102
102
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
103
103
|
onCancel?: ((...args: any[]) => any) | undefined;
|
104
104
|
onConfirm?: ((...args: any[]) => any) | undefined;
|
105
|
-
}
|
105
|
+
}>, {
|
106
106
|
formatter: (type: string, option: import("..").PickerOption) => import("..").PickerOption;
|
107
107
|
modelValue: string[];
|
108
108
|
readonly: boolean;
|
@@ -115,7 +115,7 @@ export declare const DatePicker: import("../utils").WithInstall<import("vue").De
|
|
115
115
|
minDate: Date;
|
116
116
|
maxDate: Date;
|
117
117
|
columnsType: import("./DatePicker").DatePickerColumnType[];
|
118
|
-
}, {}>>;
|
118
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
|
119
119
|
export default DatePicker;
|
120
120
|
export { datePickerProps } from './DatePicker';
|
121
121
|
export type { DatePickerProps };
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { type RequiredParams } from '../utils';
|
2
|
+
import { pickerSharedProps } from '../picker/Picker';
|
2
3
|
import type { PropType } from 'vue';
|
3
4
|
import type { PickerOption } from '../picker';
|
4
5
|
type Filter = (columnType: string, options: PickerOption[], values?: string[]) => PickerOption[];
|
@@ -39,7 +40,7 @@ export declare const sharedProps: {
|
|
39
40
|
default: (type: string, option: PickerOption) => PickerOption;
|
40
41
|
};
|
41
42
|
};
|
42
|
-
export declare const pickerInheritKeys:
|
43
|
+
export declare const pickerInheritKeys: Array<keyof typeof pickerSharedProps>;
|
43
44
|
export declare function times<T>(n: number, iteratee: (index: number) => T): T[];
|
44
45
|
export declare const getMonthEndDay: (year: number, month: number) => number;
|
45
46
|
export declare const genOptions: <T extends string>(min: number, max: number, type: T, formatter: Formatter, filter?: Filter | TimeFilter, values?: string[]) => PickerOption[];
|
package/lib/dialog/Dialog.d.ts
CHANGED
@@ -8,7 +8,7 @@ export declare const dialogProps: {
|
|
8
8
|
default: true;
|
9
9
|
};
|
10
10
|
duration: (NumberConstructor | StringConstructor)[];
|
11
|
-
teleport: PropType<
|
11
|
+
teleport: PropType<import("vue").TeleportProps["to"]>;
|
12
12
|
lockScroll: {
|
13
13
|
type: BooleanConstructor;
|
14
14
|
default: true;
|
@@ -56,7 +56,7 @@ export declare const dialogProps: {
|
|
56
56
|
closeOnClickOverlay: BooleanConstructor;
|
57
57
|
};
|
58
58
|
export type DialogProps = ExtractPropTypes<typeof dialogProps>;
|
59
|
-
declare const _default: import("vue").DefineComponent<{
|
59
|
+
declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
60
60
|
show: BooleanConstructor;
|
61
61
|
zIndex: (NumberConstructor | StringConstructor)[];
|
62
62
|
overlay: {
|
@@ -64,7 +64,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
64
64
|
default: true;
|
65
65
|
};
|
66
66
|
duration: (NumberConstructor | StringConstructor)[];
|
67
|
-
teleport: PropType<
|
67
|
+
teleport: PropType<import("vue").TeleportProps["to"]>;
|
68
68
|
lockScroll: {
|
69
69
|
type: BooleanConstructor;
|
70
70
|
default: true;
|
@@ -86,7 +86,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
86
86
|
theme: PropType<DialogTheme>;
|
87
87
|
width: (NumberConstructor | StringConstructor)[];
|
88
88
|
message: PropType<DialogMessage>;
|
89
|
-
callback: PropType<(action?: DialogAction
|
89
|
+
callback: PropType<(action?: DialogAction) => void>;
|
90
90
|
allowHtml: BooleanConstructor;
|
91
91
|
className: PropType<unknown>;
|
92
92
|
transition: {
|
@@ -110,7 +110,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
110
110
|
default: true;
|
111
111
|
};
|
112
112
|
closeOnClickOverlay: BooleanConstructor;
|
113
|
-
}
|
113
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("cancel" | "keydown" | "update:show" | "confirm")[], "cancel" | "keydown" | "update:show" | "confirm", import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
114
114
|
show: BooleanConstructor;
|
115
115
|
zIndex: (NumberConstructor | StringConstructor)[];
|
116
116
|
overlay: {
|
@@ -118,7 +118,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
118
118
|
default: true;
|
119
119
|
};
|
120
120
|
duration: (NumberConstructor | StringConstructor)[];
|
121
|
-
teleport: PropType<
|
121
|
+
teleport: PropType<import("vue").TeleportProps["to"]>;
|
122
122
|
lockScroll: {
|
123
123
|
type: BooleanConstructor;
|
124
124
|
default: true;
|
@@ -140,7 +140,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
140
140
|
theme: PropType<DialogTheme>;
|
141
141
|
width: (NumberConstructor | StringConstructor)[];
|
142
142
|
message: PropType<DialogMessage>;
|
143
|
-
callback: PropType<(action?: DialogAction
|
143
|
+
callback: PropType<(action?: DialogAction) => void>;
|
144
144
|
allowHtml: BooleanConstructor;
|
145
145
|
className: PropType<unknown>;
|
146
146
|
transition: {
|
@@ -164,12 +164,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
164
164
|
default: true;
|
165
165
|
};
|
166
166
|
closeOnClickOverlay: BooleanConstructor;
|
167
|
-
}>> & {
|
167
|
+
}>> & Readonly<{
|
168
168
|
onKeydown?: ((...args: any[]) => any) | undefined;
|
169
169
|
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
170
170
|
onCancel?: ((...args: any[]) => any) | undefined;
|
171
171
|
onConfirm?: ((...args: any[]) => any) | undefined;
|
172
|
-
}
|
172
|
+
}>, {
|
173
173
|
overlay: boolean;
|
174
174
|
show: boolean;
|
175
175
|
lockScroll: boolean;
|
@@ -183,5 +183,5 @@ declare const _default: import("vue").DefineComponent<{
|
|
183
183
|
cancelButtonDisabled: boolean;
|
184
184
|
confirmButtonDisabled: boolean;
|
185
185
|
showConfirmButton: boolean;
|
186
|
-
}, {}>;
|
186
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
187
187
|
export default _default;
|
package/lib/dialog/Dialog.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_shared = require("../popup/shared");
|
28
27
|
var import_popup = require("../popup");
|
@@ -52,7 +51,7 @@ const dialogProps = (0, import_utils.extend)({}, import_shared.popupSharedProps,
|
|
52
51
|
closeOnClickOverlay: Boolean
|
53
52
|
});
|
54
53
|
const popupInheritKeys = [...import_shared.popupSharedPropKeys, "transition", "closeOnPopstate"];
|
55
|
-
var stdin_default = (0,
|
54
|
+
var stdin_default = (0, import_vue.defineComponent)({
|
56
55
|
name,
|
57
56
|
props: dialogProps,
|
58
57
|
emits: ["confirm", "cancel", "keydown", "update:show"],
|
@@ -60,8 +59,8 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
60
59
|
emit,
|
61
60
|
slots
|
62
61
|
}) {
|
63
|
-
const root = (0,
|
64
|
-
const loading = (0,
|
62
|
+
const root = (0, import_vue.ref)();
|
63
|
+
const loading = (0, import_vue.reactive)({
|
65
64
|
confirm: false,
|
66
65
|
cancel: false
|
67
66
|
});
|
@@ -94,7 +93,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
94
93
|
};
|
95
94
|
const onCancel = getActionHandler("cancel");
|
96
95
|
const onConfirm = getActionHandler("confirm");
|
97
|
-
const onKeydown = (0,
|
96
|
+
const onKeydown = (0, import_vue.withKeys)((event) => {
|
98
97
|
var _a, _b;
|
99
98
|
if (event.target !== ((_b = (_a = root.value) == null ? void 0 : _a.popupRef) == null ? void 0 : _b.value)) {
|
100
99
|
return;
|
package/lib/dialog/index.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
export declare const Dialog: import("../utils").WithInstall<import("vue").DefineComponent<{
|
1
|
+
export declare const Dialog: import("../utils").WithInstall<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
2
2
|
show: BooleanConstructor;
|
3
3
|
zIndex: (NumberConstructor | StringConstructor)[];
|
4
4
|
overlay: {
|
@@ -6,7 +6,7 @@ export declare const Dialog: import("../utils").WithInstall<import("vue").Define
|
|
6
6
|
default: true;
|
7
7
|
};
|
8
8
|
duration: (NumberConstructor | StringConstructor)[];
|
9
|
-
teleport: import("vue").PropType<
|
9
|
+
teleport: import("vue").PropType<import("vue").TeleportProps["to"]>;
|
10
10
|
lockScroll: {
|
11
11
|
type: BooleanConstructor;
|
12
12
|
default: true;
|
@@ -28,7 +28,7 @@ export declare const Dialog: import("../utils").WithInstall<import("vue").Define
|
|
28
28
|
theme: import("vue").PropType<import("./types").DialogTheme>;
|
29
29
|
width: (NumberConstructor | StringConstructor)[];
|
30
30
|
message: import("vue").PropType<import("./types").DialogMessage>;
|
31
|
-
callback: import("vue").PropType<(action?: import("./types").DialogAction
|
31
|
+
callback: import("vue").PropType<(action?: import("./types").DialogAction) => void>;
|
32
32
|
allowHtml: BooleanConstructor;
|
33
33
|
className: import("vue").PropType<unknown>;
|
34
34
|
transition: {
|
@@ -52,7 +52,7 @@ export declare const Dialog: import("../utils").WithInstall<import("vue").Define
|
|
52
52
|
default: true;
|
53
53
|
};
|
54
54
|
closeOnClickOverlay: BooleanConstructor;
|
55
|
-
}
|
55
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("cancel" | "keydown" | "update:show" | "confirm")[], "cancel" | "keydown" | "update:show" | "confirm", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
56
56
|
show: BooleanConstructor;
|
57
57
|
zIndex: (NumberConstructor | StringConstructor)[];
|
58
58
|
overlay: {
|
@@ -60,7 +60,7 @@ export declare const Dialog: import("../utils").WithInstall<import("vue").Define
|
|
60
60
|
default: true;
|
61
61
|
};
|
62
62
|
duration: (NumberConstructor | StringConstructor)[];
|
63
|
-
teleport: import("vue").PropType<
|
63
|
+
teleport: import("vue").PropType<import("vue").TeleportProps["to"]>;
|
64
64
|
lockScroll: {
|
65
65
|
type: BooleanConstructor;
|
66
66
|
default: true;
|
@@ -82,7 +82,7 @@ export declare const Dialog: import("../utils").WithInstall<import("vue").Define
|
|
82
82
|
theme: import("vue").PropType<import("./types").DialogTheme>;
|
83
83
|
width: (NumberConstructor | StringConstructor)[];
|
84
84
|
message: import("vue").PropType<import("./types").DialogMessage>;
|
85
|
-
callback: import("vue").PropType<(action?: import("./types").DialogAction
|
85
|
+
callback: import("vue").PropType<(action?: import("./types").DialogAction) => void>;
|
86
86
|
allowHtml: BooleanConstructor;
|
87
87
|
className: import("vue").PropType<unknown>;
|
88
88
|
transition: {
|
@@ -106,12 +106,12 @@ export declare const Dialog: import("../utils").WithInstall<import("vue").Define
|
|
106
106
|
default: true;
|
107
107
|
};
|
108
108
|
closeOnClickOverlay: BooleanConstructor;
|
109
|
-
}>> & {
|
109
|
+
}>> & Readonly<{
|
110
110
|
onKeydown?: ((...args: any[]) => any) | undefined;
|
111
111
|
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
112
112
|
onCancel?: ((...args: any[]) => any) | undefined;
|
113
113
|
onConfirm?: ((...args: any[]) => any) | undefined;
|
114
|
-
}
|
114
|
+
}>, {
|
115
115
|
overlay: boolean;
|
116
116
|
show: boolean;
|
117
117
|
lockScroll: boolean;
|
@@ -125,7 +125,7 @@ export declare const Dialog: import("../utils").WithInstall<import("vue").Define
|
|
125
125
|
cancelButtonDisabled: boolean;
|
126
126
|
confirmButtonDisabled: boolean;
|
127
127
|
showConfirmButton: boolean;
|
128
|
-
}, {}>>;
|
128
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
|
129
129
|
export default Dialog;
|
130
130
|
export { dialogProps } from './Dialog';
|
131
131
|
export { showDialog, closeDialog, showConfirmDialog, setDialogDefaultOptions, resetDialogDefaultOptions, } from './function-call';
|
package/lib/dialog/types.d.ts
CHANGED
package/lib/divider/Divider.d.ts
CHANGED
@@ -13,7 +13,7 @@ export declare const dividerProps: {
|
|
13
13
|
};
|
14
14
|
};
|
15
15
|
export type DividerProps = ExtractPropTypes<typeof dividerProps>;
|
16
|
-
declare const _default: import("vue").DefineComponent<{
|
16
|
+
declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
17
17
|
dashed: BooleanConstructor;
|
18
18
|
hairline: {
|
19
19
|
type: BooleanConstructor;
|
@@ -24,7 +24,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
24
24
|
type: import("vue").PropType<DividerContentPosition>;
|
25
25
|
default: DividerContentPosition;
|
26
26
|
};
|
27
|
-
}
|
27
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
28
28
|
dashed: BooleanConstructor;
|
29
29
|
hairline: {
|
30
30
|
type: BooleanConstructor;
|
@@ -35,10 +35,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
35
35
|
type: import("vue").PropType<DividerContentPosition>;
|
36
36
|
default: DividerContentPosition;
|
37
37
|
};
|
38
|
-
}
|
38
|
+
}>> & Readonly<{}>, {
|
39
39
|
dashed: boolean;
|
40
40
|
vertical: boolean;
|
41
41
|
hairline: boolean;
|
42
42
|
contentPosition: DividerContentPosition;
|
43
|
-
}, {}>;
|
43
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
44
44
|
export default _default;
|
package/lib/divider/Divider.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
|
const [name, bem] = (0, import_utils.createNamespace)("divider");
|
28
27
|
const dividerProps = {
|
@@ -31,7 +30,7 @@ const dividerProps = {
|
|
31
30
|
vertical: Boolean,
|
32
31
|
contentPosition: (0, import_utils.makeStringProp)("center")
|
33
32
|
};
|
34
|
-
var stdin_default = (0,
|
33
|
+
var stdin_default = (0, import_vue.defineComponent)({
|
35
34
|
name,
|
36
35
|
props: dividerProps,
|
37
36
|
setup(props, {
|
package/lib/divider/index.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
export declare const Divider: import("../utils").WithInstall<import("vue").DefineComponent<{
|
1
|
+
export declare const Divider: import("../utils").WithInstall<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
2
2
|
dashed: BooleanConstructor;
|
3
3
|
hairline: {
|
4
4
|
type: BooleanConstructor;
|
@@ -9,7 +9,7 @@ export declare const Divider: import("../utils").WithInstall<import("vue").Defin
|
|
9
9
|
type: import("vue").PropType<import("./Divider").DividerContentPosition>;
|
10
10
|
default: import("./Divider").DividerContentPosition;
|
11
11
|
};
|
12
|
-
}
|
12
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
13
13
|
dashed: BooleanConstructor;
|
14
14
|
hairline: {
|
15
15
|
type: BooleanConstructor;
|
@@ -20,12 +20,12 @@ export declare const Divider: import("../utils").WithInstall<import("vue").Defin
|
|
20
20
|
type: import("vue").PropType<import("./Divider").DividerContentPosition>;
|
21
21
|
default: import("./Divider").DividerContentPosition;
|
22
22
|
};
|
23
|
-
}
|
23
|
+
}>> & Readonly<{}>, {
|
24
24
|
dashed: boolean;
|
25
25
|
vertical: boolean;
|
26
26
|
hairline: boolean;
|
27
27
|
contentPosition: import("./Divider").DividerContentPosition;
|
28
|
-
}, {}>>;
|
28
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
|
29
29
|
export default Divider;
|
30
30
|
export { dividerProps } from './Divider';
|
31
31
|
export type { DividerProps, DividerContentPosition } from './Divider';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { type PropType, type ExtractPropTypes } from 'vue';
|
1
|
+
import { type PropType, type TeleportProps, type ExtractPropTypes } from 'vue';
|
2
2
|
import type { DropdownItemOption } from './types';
|
3
3
|
export declare const dropdownItemProps: {
|
4
4
|
title: StringConstructor;
|
@@ -7,7 +7,7 @@ export declare const dropdownItemProps: {
|
|
7
7
|
default: () => never[];
|
8
8
|
};
|
9
9
|
disabled: BooleanConstructor;
|
10
|
-
teleport: PropType<
|
10
|
+
teleport: PropType<TeleportProps["to"]>;
|
11
11
|
lazyRender: {
|
12
12
|
type: BooleanConstructor;
|
13
13
|
default: true;
|
@@ -16,44 +16,44 @@ export declare const dropdownItemProps: {
|
|
16
16
|
titleClass: PropType<unknown>;
|
17
17
|
};
|
18
18
|
export type DropdownItemProps = ExtractPropTypes<typeof dropdownItemProps>;
|
19
|
-
declare const _default: import("vue").DefineComponent<{
|
19
|
+
declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
20
20
|
title: StringConstructor;
|
21
21
|
options: {
|
22
22
|
type: PropType<DropdownItemOption[]>;
|
23
23
|
default: () => never[];
|
24
24
|
};
|
25
25
|
disabled: BooleanConstructor;
|
26
|
-
teleport: PropType<
|
26
|
+
teleport: PropType<TeleportProps["to"]>;
|
27
27
|
lazyRender: {
|
28
28
|
type: BooleanConstructor;
|
29
29
|
default: true;
|
30
30
|
};
|
31
31
|
modelValue: PropType<unknown>;
|
32
32
|
titleClass: PropType<unknown>;
|
33
|
-
}
|
33
|
+
}>, (() => import("vue/jsx-runtime").JSX.Element) | undefined, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("open" | "update:modelValue" | "change" | "close" | "opened" | "closed")[], "open" | "update:modelValue" | "change" | "close" | "opened" | "closed", import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
34
34
|
title: StringConstructor;
|
35
35
|
options: {
|
36
36
|
type: PropType<DropdownItemOption[]>;
|
37
37
|
default: () => never[];
|
38
38
|
};
|
39
39
|
disabled: BooleanConstructor;
|
40
|
-
teleport: PropType<
|
40
|
+
teleport: PropType<TeleportProps["to"]>;
|
41
41
|
lazyRender: {
|
42
42
|
type: BooleanConstructor;
|
43
43
|
default: true;
|
44
44
|
};
|
45
45
|
modelValue: PropType<unknown>;
|
46
46
|
titleClass: PropType<unknown>;
|
47
|
-
}>> & {
|
47
|
+
}>> & Readonly<{
|
48
48
|
onChange?: ((...args: any[]) => any) | undefined;
|
49
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
49
50
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
50
51
|
onOpen?: ((...args: any[]) => any) | undefined;
|
51
|
-
onClose?: ((...args: any[]) => any) | undefined;
|
52
52
|
onOpened?: ((...args: any[]) => any) | undefined;
|
53
53
|
onClosed?: ((...args: any[]) => any) | undefined;
|
54
|
-
}
|
54
|
+
}>, {
|
55
55
|
disabled: boolean;
|
56
56
|
lazyRender: boolean;
|
57
57
|
options: DropdownItemOption[];
|
58
|
-
}, {}>;
|
58
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
59
59
|
export default _default;
|
@@ -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_DropdownMenu = require("../dropdown-menu/DropdownMenu");
|
28
27
|
var import_use = require("@vant/use");
|
@@ -40,7 +39,7 @@ const dropdownItemProps = {
|
|
40
39
|
modelValue: import_utils.unknownProp,
|
41
40
|
titleClass: import_utils.unknownProp
|
42
41
|
};
|
43
|
-
var stdin_default = (0,
|
42
|
+
var stdin_default = (0, import_vue.defineComponent)({
|
44
43
|
name,
|
45
44
|
inheritAttrs: false,
|
46
45
|
props: dropdownItemProps,
|
@@ -50,12 +49,12 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
50
49
|
slots,
|
51
50
|
attrs
|
52
51
|
}) {
|
53
|
-
const state = (0,
|
52
|
+
const state = (0, import_vue.reactive)({
|
54
53
|
showPopup: false,
|
55
54
|
transition: true,
|
56
55
|
showWrapper: false
|
57
56
|
});
|
58
|
-
const wrapperRef = (0,
|
57
|
+
const wrapperRef = (0, import_vue.ref)();
|
59
58
|
const {
|
60
59
|
parent,
|
61
60
|
index
|
@@ -189,6 +188,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
189
188
|
position: "absolute"
|
190
189
|
},
|
191
190
|
"aria-labelledby": `${parent.id}-${index.value}`,
|
191
|
+
"data-allow-mismatch": "attribute",
|
192
192
|
"closeOnClickOverlay": closeOnClickOverlay,
|
193
193
|
"onOpen": onOpen,
|
194
194
|
"onClose": onClose,
|
@@ -208,7 +208,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
208
208
|
});
|
209
209
|
return () => {
|
210
210
|
if (props.teleport) {
|
211
|
-
return (0, import_vue.createVNode)(
|
211
|
+
return (0, import_vue.createVNode)(import_vue.Teleport, {
|
212
212
|
"to": props.teleport
|
213
213
|
}, {
|
214
214
|
default: () => [renderContent()]
|