vant 3.4.1 → 3.4.2
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 +6 -5
- package/es/action-bar/index.css +1 -1
- package/es/action-bar/index.d.ts +6 -5
- package/es/action-bar-button/ActionBarButton.d.ts +11 -21
- package/es/action-bar-button/index.css +1 -1
- package/es/action-bar-button/index.d.ts +11 -21
- package/es/action-bar-icon/ActionBarIcon.d.ts +16 -84
- package/es/action-bar-icon/index.css +1 -1
- package/es/action-bar-icon/index.d.ts +14 -64
- package/es/action-sheet/ActionSheet.d.ts +54 -47
- package/es/action-sheet/index.css +1 -1
- package/es/action-sheet/index.d.ts +54 -47
- package/es/address-edit/AddressEdit.d.ts +48 -48
- package/es/address-edit/AddressEditDetail.d.ts +10 -20
- package/es/address-edit/index.css +1 -1
- package/es/address-edit/index.d.ts +48 -48
- package/es/address-list/AddressList.d.ts +18 -18
- package/es/address-list/AddressListItem.d.ts +9 -12
- package/es/address-list/index.css +1 -1
- package/es/address-list/index.d.ts +18 -18
- package/es/address-list/index.less +1 -1
- package/es/area/Area.d.ts +41 -33
- package/es/area/index.d.ts +41 -33
- package/es/badge/Badge.d.ts +19 -20
- package/es/badge/index.css +1 -1
- package/es/badge/index.d.ts +19 -20
- package/es/button/Button.d.ts +39 -47
- package/es/button/index.css +1 -1
- package/es/button/index.d.ts +39 -47
- package/es/calendar/Calendar.d.ts +85 -62
- package/es/calendar/Calendar.js +6 -1
- package/es/calendar/CalendarDay.d.ts +13 -14
- package/es/calendar/CalendarHeader.d.ts +7 -14
- package/es/calendar/CalendarMonth.d.ts +25 -32
- package/es/calendar/index.css +1 -1
- package/es/calendar/index.d.ts +85 -62
- package/es/card/Card.d.ts +16 -26
- package/es/card/index.css +1 -1
- package/es/card/index.d.ts +16 -26
- package/es/cascader/Cascader.d.ts +36 -22
- package/es/cascader/Cascader.js +3 -2
- package/es/cascader/index.css +1 -1
- package/es/cascader/index.d.ts +32 -22
- package/es/cell/Cell.d.ts +27 -41
- package/es/cell/index.css +1 -1
- package/es/cell/index.d.ts +27 -41
- package/es/cell-group/CellGroup.d.ts +8 -10
- package/es/cell-group/index.css +1 -1
- package/es/cell-group/index.d.ts +8 -10
- package/es/checkbox/Checkbox.d.ts +17 -21
- package/es/checkbox/Checker.d.ts +24 -29
- package/es/checkbox/index.css +1 -1
- package/es/checkbox/index.d.ts +17 -21
- package/es/checkbox-group/CheckboxGroup.d.ts +11 -16
- package/es/checkbox-group/index.css +1 -1
- package/es/checkbox-group/index.d.ts +11 -16
- package/es/circle/Circle.d.ts +35 -28
- package/es/circle/index.css +1 -1
- package/es/circle/index.d.ts +35 -28
- package/es/col/Col.d.ts +11 -10
- package/es/col/index.css +1 -1
- package/es/col/index.d.ts +11 -10
- package/es/collapse/Collapse.d.ts +11 -9
- package/es/collapse/index.d.ts +11 -9
- package/es/collapse-item/CollapseItem.d.ts +31 -41
- package/es/collapse-item/index.css +1 -1
- package/es/collapse-item/index.d.ts +31 -41
- package/es/composables/use-height.js +6 -2
- package/es/config-provider/ConfigProvider.d.ts +8 -10
- package/es/config-provider/index.d.ts +8 -10
- package/es/contact-card/ContactCard.d.ts +13 -14
- package/es/contact-card/index.css +1 -1
- package/es/contact-card/index.d.ts +13 -14
- package/es/contact-edit/ContactEdit.d.ts +15 -18
- package/es/contact-edit/index.css +1 -1
- package/es/contact-edit/index.d.ts +15 -18
- package/es/contact-list/ContactList.d.ts +6 -11
- package/es/contact-list/index.css +1 -1
- package/es/contact-list/index.d.ts +6 -11
- package/es/count-down/CountDown.d.ts +15 -11
- package/es/count-down/index.css +1 -1
- package/es/count-down/index.d.ts +15 -11
- package/es/coupon/Coupon.d.ts +12 -11
- package/es/coupon/index.css +1 -1
- package/es/coupon/index.d.ts +12 -11
- package/es/coupon-cell/CouponCell.d.ts +23 -16
- package/es/coupon-cell/index.css +1 -1
- package/es/coupon-cell/index.d.ts +23 -16
- package/es/coupon-list/CouponList.d.ts +53 -40
- package/es/coupon-list/index.css +1 -1
- package/es/coupon-list/index.d.ts +53 -40
- package/es/datetime-picker/DatePicker.d.ts +45 -36
- package/es/datetime-picker/TimePicker.d.ts +47 -38
- package/es/dialog/Dialog.d.ts +52 -59
- package/es/dialog/function-call.d.ts +52 -59
- package/es/dialog/index.css +1 -1
- package/es/divider/Divider.d.ts +11 -9
- package/es/divider/index.css +1 -1
- package/es/divider/index.d.ts +11 -9
- package/es/dropdown-item/DropdownItem.d.ts +15 -18
- package/es/dropdown-item/index.css +1 -1
- package/es/dropdown-item/index.d.ts +15 -18
- package/es/dropdown-menu/DropdownMenu.d.ts +24 -18
- package/es/dropdown-menu/index.css +1 -1
- package/es/dropdown-menu/index.d.ts +24 -18
- package/es/empty/Empty.d.ts +8 -10
- package/es/empty/index.css +1 -1
- package/es/empty/index.d.ts +8 -10
- package/es/field/Field.d.ts +80 -90
- package/es/field/index.css +1 -1
- package/es/field/index.d.ts +80 -90
- package/es/form/Form.d.ts +24 -30
- package/es/form/index.d.ts +24 -30
- package/es/grid/Grid.d.ts +20 -22
- package/es/grid/index.css +1 -1
- package/es/grid/index.d.ts +20 -22
- package/es/grid-item/GridItem.d.ts +15 -82
- package/es/grid-item/index.css +1 -1
- package/es/grid-item/index.d.ts +13 -62
- package/es/icon/Icon.d.ts +16 -79
- package/es/icon/index.css +1 -1
- package/es/icon/index.d.ts +14 -59
- package/es/image/Image.d.ts +32 -32
- package/es/image/Image.js +13 -4
- package/es/image/index.css +1 -1
- package/es/image/index.d.ts +30 -32
- package/es/image-preview/ImagePreview.d.ts +54 -42
- package/es/image-preview/ImagePreviewItem.d.ts +21 -18
- package/es/image-preview/ImagePreviewItem.js +12 -4
- package/es/image-preview/function-call.d.ts +54 -42
- package/es/image-preview/index.css +1 -1
- package/es/index-anchor/IndexAnchor.d.ts +3 -5
- package/es/index-anchor/index.css +1 -1
- package/es/index-anchor/index.d.ts +3 -5
- package/es/index-bar/IndexBar.d.ts +17 -16
- package/es/index-bar/index.css +1 -1
- package/es/index-bar/index.d.ts +17 -16
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/list/List.d.ts +20 -22
- package/es/list/index.css +1 -1
- package/es/list/index.d.ts +20 -22
- package/es/loading/Loading.d.ts +11 -16
- package/es/loading/index.css +1 -1
- package/es/loading/index.d.ts +11 -16
- package/es/nav-bar/NavBar.d.ts +14 -22
- package/es/nav-bar/index.css +1 -1
- package/es/nav-bar/index.d.ts +14 -22
- package/es/notice-bar/NoticeBar.d.ts +20 -22
- package/es/notice-bar/index.css +1 -1
- package/es/notice-bar/index.d.ts +20 -22
- package/es/notify/Notify.d.ts +39 -39
- package/es/notify/function-call.d.ts +39 -39
- package/es/notify/index.css +1 -1
- package/es/number-keyboard/NumberKeyboard.d.ts +46 -38
- package/es/number-keyboard/NumberKeyboardKey.d.ts +8 -16
- package/es/number-keyboard/index.css +1 -1
- package/es/number-keyboard/index.d.ts +46 -38
- package/es/overlay/Overlay.d.ts +24 -16
- package/es/overlay/Overlay.js +2 -1
- package/es/overlay/index.css +1 -1
- package/es/overlay/index.d.ts +20 -16
- package/es/pagination/Pagination.d.ts +29 -22
- package/es/pagination/index.css +1 -1
- package/es/pagination/index.d.ts +29 -22
- package/es/password-input/PasswordInput.d.ts +18 -18
- package/es/password-input/index.css +1 -1
- package/es/password-input/index.d.ts +18 -18
- package/es/picker/Picker.d.ts +38 -33
- package/es/picker/PickerColumn.d.ts +29 -22
- package/es/picker/index.css +1 -1
- package/es/picker/index.d.ts +38 -33
- package/es/popover/Popover.d.ts +48 -36
- package/es/popover/index.css +1 -1
- package/es/popover/index.d.ts +48 -36
- package/es/popup/Popup.d.ts +44 -45
- package/es/popup/index.css +1 -1
- package/es/popup/index.d.ts +44 -45
- package/es/progress/Progress.d.ts +18 -22
- package/es/progress/index.css +1 -1
- package/es/progress/index.d.ts +18 -22
- package/es/pull-refresh/PullRefresh.d.ts +21 -24
- package/es/pull-refresh/index.css +1 -1
- package/es/pull-refresh/index.d.ts +21 -24
- package/es/radio/Radio.d.ts +13 -20
- package/es/radio/index.css +1 -1
- package/es/radio/index.d.ts +13 -20
- package/es/radio-group/RadioGroup.d.ts +7 -14
- package/es/radio-group/index.css +1 -1
- package/es/radio-group/index.d.ts +7 -14
- package/es/rate/Rate.d.ts +31 -32
- package/es/rate/index.css +1 -1
- package/es/rate/index.d.ts +31 -32
- package/es/row/Row.d.ts +16 -14
- package/es/row/index.css +1 -1
- package/es/row/index.d.ts +16 -14
- package/es/search/Search.d.ts +58 -51
- package/es/search/index.css +1 -1
- package/es/search/index.d.ts +58 -51
- package/es/share-sheet/ShareSheet.d.ts +45 -41
- package/es/share-sheet/index.css +1 -1
- package/es/share-sheet/index.d.ts +45 -41
- package/es/sidebar/Sidebar.d.ts +6 -5
- package/es/sidebar/index.css +1 -1
- package/es/sidebar/index.d.ts +6 -5
- package/es/sidebar-item/SidebarItem.d.ts +13 -78
- package/es/sidebar-item/index.css +1 -1
- package/es/sidebar-item/index.d.ts +11 -58
- package/es/skeleton/Skeleton.d.ts +27 -24
- package/es/skeleton/Skeleton.js +1 -1
- package/es/skeleton/index.css +1 -1
- package/es/skeleton/index.d.ts +27 -24
- package/es/slider/Slider.d.ts +27 -30
- package/es/slider/index.css +1 -1
- package/es/slider/index.d.ts +27 -30
- package/es/step/Step.d.ts +1 -1
- package/es/step/index.css +1 -1
- package/es/step/index.d.ts +1 -1
- package/es/stepper/Stepper.d.ts +51 -48
- package/es/stepper/index.css +1 -1
- package/es/stepper/index.d.ts +51 -48
- package/es/steps/Steps.d.ts +19 -20
- package/es/steps/index.css +1 -1
- package/es/steps/index.d.ts +19 -20
- package/es/sticky/Sticky.d.ts +16 -14
- package/es/sticky/index.css +1 -1
- package/es/sticky/index.d.ts +16 -14
- package/es/style/animation.css +1 -1
- package/es/style/base.css +1 -1
- package/es/style/css-variables.css +1 -1
- package/es/style/normalize.css +1 -1
- package/es/submit-bar/SubmitBar.d.ts +28 -32
- package/es/submit-bar/index.css +1 -1
- package/es/submit-bar/index.d.ts +28 -32
- package/es/swipe/Swipe.d.ts +35 -28
- package/es/swipe/index.css +1 -1
- package/es/swipe/index.d.ts +35 -28
- package/es/swipe-cell/SwipeCell.d.ts +11 -16
- package/es/swipe-cell/index.css +1 -1
- package/es/swipe-cell/index.d.ts +11 -16
- package/es/swipe-item/SwipeItem.d.ts +1 -1
- package/es/swipe-item/index.css +1 -1
- package/es/swipe-item/index.d.ts +1 -1
- package/es/switch/Switch.d.ts +16 -20
- package/es/switch/index.css +1 -1
- package/es/switch/index.d.ts +16 -20
- package/es/tab/Tab.d.ts +16 -25
- package/es/tab/index.css +1 -1
- package/es/tab/index.d.ts +16 -25
- package/es/tabbar/Tabbar.d.ts +24 -24
- package/es/tabbar/index.css +1 -1
- package/es/tabbar/index.d.ts +24 -24
- package/es/tabbar-item/TabbarItem.d.ts +14 -80
- package/es/tabbar-item/index.css +1 -1
- package/es/tabbar-item/index.d.ts +12 -60
- package/es/tabs/Tabs.d.ts +43 -44
- package/es/tabs/TabsContent.d.ts +18 -17
- package/es/tabs/TabsTitle.d.ts +19 -32
- package/es/tabs/index.css +1 -1
- package/es/tabs/index.d.ts +43 -44
- package/es/tag/Tag.d.ts +17 -22
- package/es/tag/index.css +1 -1
- package/es/tag/index.d.ts +17 -22
- package/es/toast/Toast.d.ts +31 -38
- package/es/toast/index.css +1 -1
- package/es/tree-select/TreeSelect.d.ts +26 -15
- package/es/tree-select/index.css +1 -1
- package/es/tree-select/index.d.ts +26 -15
- package/es/uploader/Uploader.d.ts +61 -50
- package/es/uploader/UploaderPreviewItem.d.ts +13 -20
- package/es/uploader/index.css +1 -1
- package/es/uploader/index.d.ts +61 -50
- package/lib/action-bar/ActionBar.d.ts +6 -5
- package/lib/action-bar/index.css +1 -1
- package/lib/action-bar/index.d.ts +6 -5
- package/lib/action-bar-button/ActionBarButton.d.ts +11 -21
- package/lib/action-bar-button/index.css +1 -1
- package/lib/action-bar-button/index.d.ts +11 -21
- package/lib/action-bar-icon/ActionBarIcon.d.ts +16 -84
- package/lib/action-bar-icon/index.css +1 -1
- package/lib/action-bar-icon/index.d.ts +14 -64
- package/lib/action-sheet/ActionSheet.d.ts +54 -47
- package/lib/action-sheet/index.css +1 -1
- package/lib/action-sheet/index.d.ts +54 -47
- package/lib/address-edit/AddressEdit.d.ts +48 -48
- package/lib/address-edit/AddressEditDetail.d.ts +10 -20
- package/lib/address-edit/index.css +1 -1
- package/lib/address-edit/index.d.ts +48 -48
- package/lib/address-list/AddressList.d.ts +18 -18
- package/lib/address-list/AddressListItem.d.ts +9 -12
- package/lib/address-list/index.css +1 -1
- package/lib/address-list/index.d.ts +18 -18
- package/lib/address-list/index.less +1 -1
- package/lib/area/Area.d.ts +41 -33
- package/lib/area/index.d.ts +41 -33
- package/lib/badge/Badge.d.ts +19 -20
- package/lib/badge/index.css +1 -1
- package/lib/badge/index.d.ts +19 -20
- package/lib/button/Button.d.ts +39 -47
- package/lib/button/index.css +1 -1
- package/lib/button/index.d.ts +39 -47
- package/lib/calendar/Calendar.d.ts +85 -62
- package/lib/calendar/Calendar.js +6 -1
- package/lib/calendar/CalendarDay.d.ts +13 -14
- package/lib/calendar/CalendarHeader.d.ts +7 -14
- package/lib/calendar/CalendarMonth.d.ts +25 -32
- package/lib/calendar/index.css +1 -1
- package/lib/calendar/index.d.ts +85 -62
- package/lib/card/Card.d.ts +16 -26
- package/lib/card/index.css +1 -1
- package/lib/card/index.d.ts +16 -26
- package/lib/cascader/Cascader.d.ts +36 -22
- package/lib/cascader/Cascader.js +3 -2
- package/lib/cascader/index.css +1 -1
- package/lib/cascader/index.d.ts +32 -22
- package/lib/cell/Cell.d.ts +27 -41
- package/lib/cell/index.css +1 -1
- package/lib/cell/index.d.ts +27 -41
- package/lib/cell-group/CellGroup.d.ts +8 -10
- package/lib/cell-group/index.css +1 -1
- package/lib/cell-group/index.d.ts +8 -10
- package/lib/checkbox/Checkbox.d.ts +17 -21
- package/lib/checkbox/Checker.d.ts +24 -29
- package/lib/checkbox/index.css +1 -1
- package/lib/checkbox/index.d.ts +17 -21
- package/lib/checkbox-group/CheckboxGroup.d.ts +11 -16
- package/lib/checkbox-group/index.css +1 -1
- package/lib/checkbox-group/index.d.ts +11 -16
- package/lib/circle/Circle.d.ts +35 -28
- package/lib/circle/index.css +1 -1
- package/lib/circle/index.d.ts +35 -28
- package/lib/col/Col.d.ts +11 -10
- package/lib/col/index.css +1 -1
- package/lib/col/index.d.ts +11 -10
- package/lib/collapse/Collapse.d.ts +11 -9
- package/lib/collapse/index.d.ts +11 -9
- package/lib/collapse-item/CollapseItem.d.ts +31 -41
- package/lib/collapse-item/index.css +1 -1
- package/lib/collapse-item/index.d.ts +31 -41
- package/lib/composables/use-height.js +6 -2
- package/lib/config-provider/ConfigProvider.d.ts +8 -10
- package/lib/config-provider/index.d.ts +8 -10
- package/lib/contact-card/ContactCard.d.ts +13 -14
- package/lib/contact-card/index.css +1 -1
- package/lib/contact-card/index.d.ts +13 -14
- package/lib/contact-edit/ContactEdit.d.ts +15 -18
- package/lib/contact-edit/index.css +1 -1
- package/lib/contact-edit/index.d.ts +15 -18
- package/lib/contact-list/ContactList.d.ts +6 -11
- package/lib/contact-list/index.css +1 -1
- package/lib/contact-list/index.d.ts +6 -11
- package/lib/count-down/CountDown.d.ts +15 -11
- package/lib/count-down/index.css +1 -1
- package/lib/count-down/index.d.ts +15 -11
- package/lib/coupon/Coupon.d.ts +12 -11
- package/lib/coupon/index.css +1 -1
- package/lib/coupon/index.d.ts +12 -11
- package/lib/coupon-cell/CouponCell.d.ts +23 -16
- package/lib/coupon-cell/index.css +1 -1
- package/lib/coupon-cell/index.d.ts +23 -16
- package/lib/coupon-list/CouponList.d.ts +53 -40
- package/lib/coupon-list/index.css +1 -1
- package/lib/coupon-list/index.d.ts +53 -40
- package/lib/datetime-picker/DatePicker.d.ts +45 -36
- package/lib/datetime-picker/TimePicker.d.ts +47 -38
- package/lib/dialog/Dialog.d.ts +52 -59
- package/lib/dialog/function-call.d.ts +52 -59
- package/lib/dialog/index.css +1 -1
- package/lib/divider/Divider.d.ts +11 -9
- package/lib/divider/index.css +1 -1
- package/lib/divider/index.d.ts +11 -9
- package/lib/dropdown-item/DropdownItem.d.ts +15 -18
- package/lib/dropdown-item/index.css +1 -1
- package/lib/dropdown-item/index.d.ts +15 -18
- package/lib/dropdown-menu/DropdownMenu.d.ts +24 -18
- package/lib/dropdown-menu/index.css +1 -1
- package/lib/dropdown-menu/index.d.ts +24 -18
- package/lib/empty/Empty.d.ts +8 -10
- package/lib/empty/index.css +1 -1
- package/lib/empty/index.d.ts +8 -10
- package/lib/field/Field.d.ts +80 -90
- package/lib/field/index.css +1 -1
- package/lib/field/index.d.ts +80 -90
- package/lib/form/Form.d.ts +24 -30
- package/lib/form/index.d.ts +24 -30
- package/lib/grid/Grid.d.ts +20 -22
- package/lib/grid/index.css +1 -1
- package/lib/grid/index.d.ts +20 -22
- package/lib/grid-item/GridItem.d.ts +15 -82
- package/lib/grid-item/index.css +1 -1
- package/lib/grid-item/index.d.ts +13 -62
- package/lib/icon/Icon.d.ts +16 -79
- package/lib/icon/index.css +1 -1
- package/lib/icon/index.d.ts +14 -59
- package/lib/image/Image.d.ts +32 -32
- package/lib/image/Image.js +12 -3
- package/lib/image/index.css +1 -1
- package/lib/image/index.d.ts +30 -32
- package/lib/image-preview/ImagePreview.d.ts +54 -42
- package/lib/image-preview/ImagePreviewItem.d.ts +21 -18
- package/lib/image-preview/ImagePreviewItem.js +12 -4
- package/lib/image-preview/function-call.d.ts +54 -42
- package/lib/image-preview/index.css +1 -1
- package/lib/index-anchor/IndexAnchor.d.ts +3 -5
- package/lib/index-anchor/index.css +1 -1
- package/lib/index-anchor/index.d.ts +3 -5
- package/lib/index-bar/IndexBar.d.ts +17 -16
- package/lib/index-bar/index.css +1 -1
- package/lib/index-bar/index.d.ts +17 -16
- package/lib/index.css +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/list/List.d.ts +20 -22
- package/lib/list/index.css +1 -1
- package/lib/list/index.d.ts +20 -22
- package/lib/loading/Loading.d.ts +11 -16
- package/lib/loading/index.css +1 -1
- package/lib/loading/index.d.ts +11 -16
- package/lib/nav-bar/NavBar.d.ts +14 -22
- package/lib/nav-bar/index.css +1 -1
- package/lib/nav-bar/index.d.ts +14 -22
- package/lib/notice-bar/NoticeBar.d.ts +20 -22
- package/lib/notice-bar/index.css +1 -1
- package/lib/notice-bar/index.d.ts +20 -22
- package/lib/notify/Notify.d.ts +39 -39
- package/lib/notify/function-call.d.ts +39 -39
- package/lib/notify/index.css +1 -1
- package/lib/number-keyboard/NumberKeyboard.d.ts +46 -38
- package/lib/number-keyboard/NumberKeyboardKey.d.ts +8 -16
- package/lib/number-keyboard/index.css +1 -1
- package/lib/number-keyboard/index.d.ts +46 -38
- package/lib/overlay/Overlay.d.ts +24 -16
- package/lib/overlay/Overlay.js +2 -1
- package/lib/overlay/index.css +1 -1
- package/lib/overlay/index.d.ts +20 -16
- package/lib/pagination/Pagination.d.ts +29 -22
- package/lib/pagination/index.css +1 -1
- package/lib/pagination/index.d.ts +29 -22
- package/lib/password-input/PasswordInput.d.ts +18 -18
- package/lib/password-input/index.css +1 -1
- package/lib/password-input/index.d.ts +18 -18
- package/lib/picker/Picker.d.ts +38 -33
- package/lib/picker/PickerColumn.d.ts +29 -22
- package/lib/picker/index.css +1 -1
- package/lib/picker/index.d.ts +38 -33
- package/lib/popover/Popover.d.ts +48 -36
- package/lib/popover/index.css +1 -1
- package/lib/popover/index.d.ts +48 -36
- package/lib/popup/Popup.d.ts +44 -45
- package/lib/popup/index.css +1 -1
- package/lib/popup/index.d.ts +44 -45
- package/lib/progress/Progress.d.ts +18 -22
- package/lib/progress/index.css +1 -1
- package/lib/progress/index.d.ts +18 -22
- package/lib/pull-refresh/PullRefresh.d.ts +21 -24
- package/lib/pull-refresh/index.css +1 -1
- package/lib/pull-refresh/index.d.ts +21 -24
- package/lib/radio/Radio.d.ts +13 -20
- package/lib/radio/index.css +1 -1
- package/lib/radio/index.d.ts +13 -20
- package/lib/radio-group/RadioGroup.d.ts +7 -14
- package/lib/radio-group/index.css +1 -1
- package/lib/radio-group/index.d.ts +7 -14
- package/lib/rate/Rate.d.ts +31 -32
- package/lib/rate/index.css +1 -1
- package/lib/rate/index.d.ts +31 -32
- package/lib/row/Row.d.ts +16 -14
- package/lib/row/index.css +1 -1
- package/lib/row/index.d.ts +16 -14
- package/lib/search/Search.d.ts +58 -51
- package/lib/search/index.css +1 -1
- package/lib/search/index.d.ts +58 -51
- package/lib/share-sheet/ShareSheet.d.ts +45 -41
- package/lib/share-sheet/index.css +1 -1
- package/lib/share-sheet/index.d.ts +45 -41
- package/lib/sidebar/Sidebar.d.ts +6 -5
- package/lib/sidebar/index.css +1 -1
- package/lib/sidebar/index.d.ts +6 -5
- package/lib/sidebar-item/SidebarItem.d.ts +13 -78
- package/lib/sidebar-item/index.css +1 -1
- package/lib/sidebar-item/index.d.ts +11 -58
- package/lib/skeleton/Skeleton.d.ts +27 -24
- package/lib/skeleton/Skeleton.js +1 -1
- package/lib/skeleton/index.css +1 -1
- package/lib/skeleton/index.d.ts +27 -24
- package/lib/slider/Slider.d.ts +27 -30
- package/lib/slider/index.css +1 -1
- package/lib/slider/index.d.ts +27 -30
- package/lib/step/Step.d.ts +1 -1
- package/lib/step/index.css +1 -1
- package/lib/step/index.d.ts +1 -1
- package/lib/stepper/Stepper.d.ts +51 -48
- package/lib/stepper/index.css +1 -1
- package/lib/stepper/index.d.ts +51 -48
- package/lib/steps/Steps.d.ts +19 -20
- package/lib/steps/index.css +1 -1
- package/lib/steps/index.d.ts +19 -20
- package/lib/sticky/Sticky.d.ts +16 -14
- package/lib/sticky/index.css +1 -1
- package/lib/sticky/index.d.ts +16 -14
- package/lib/style/animation.css +1 -1
- package/lib/style/base.css +1 -1
- package/lib/style/css-variables.css +1 -1
- package/lib/style/normalize.css +1 -1
- package/lib/submit-bar/SubmitBar.d.ts +28 -32
- package/lib/submit-bar/index.css +1 -1
- package/lib/submit-bar/index.d.ts +28 -32
- package/lib/swipe/Swipe.d.ts +35 -28
- package/lib/swipe/index.css +1 -1
- package/lib/swipe/index.d.ts +35 -28
- package/lib/swipe-cell/SwipeCell.d.ts +11 -16
- package/lib/swipe-cell/index.css +1 -1
- package/lib/swipe-cell/index.d.ts +11 -16
- package/lib/swipe-item/SwipeItem.d.ts +1 -1
- package/lib/swipe-item/index.css +1 -1
- package/lib/swipe-item/index.d.ts +1 -1
- package/lib/switch/Switch.d.ts +16 -20
- package/lib/switch/index.css +1 -1
- package/lib/switch/index.d.ts +16 -20
- package/lib/tab/Tab.d.ts +16 -25
- package/lib/tab/index.css +1 -1
- package/lib/tab/index.d.ts +16 -25
- package/lib/tabbar/Tabbar.d.ts +24 -24
- package/lib/tabbar/index.css +1 -1
- package/lib/tabbar/index.d.ts +24 -24
- package/lib/tabbar-item/TabbarItem.d.ts +14 -80
- package/lib/tabbar-item/index.css +1 -1
- package/lib/tabbar-item/index.d.ts +12 -60
- package/lib/tabs/Tabs.d.ts +43 -44
- package/lib/tabs/TabsContent.d.ts +18 -17
- package/lib/tabs/TabsTitle.d.ts +19 -32
- package/lib/tabs/index.css +1 -1
- package/lib/tabs/index.d.ts +43 -44
- package/lib/tag/Tag.d.ts +17 -22
- package/lib/tag/index.css +1 -1
- package/lib/tag/index.d.ts +17 -22
- package/lib/toast/Toast.d.ts +31 -38
- package/lib/toast/index.css +1 -1
- package/lib/tree-select/TreeSelect.d.ts +26 -15
- package/lib/tree-select/index.css +1 -1
- package/lib/tree-select/index.d.ts +26 -15
- package/lib/uploader/Uploader.d.ts +61 -50
- package/lib/uploader/UploaderPreviewItem.d.ts +13 -20
- package/lib/uploader/index.css +1 -1
- package/lib/uploader/index.d.ts +61 -50
- package/lib/vant.cjs.js +43 -15
- package/lib/vant.cjs.min.js +1 -1
- package/lib/vant.es.js +43 -15
- package/lib/vant.es.min.js +43 -15
- package/lib/vant.js +43 -15
- package/lib/vant.min.js +1 -1
- package/package.json +3 -3
- package/vetur/attributes.json +939 -939
- package/vetur/tags.json +31 -31
- package/vetur/web-types.json +1511 -1511
package/lib/button/index.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
:root{--van-button-mini-height:24px;--van-button-mini-padding:0 var(--van-padding-base);--van-button-mini-font-size:var(--van-font-size-xs);--van-button-small-height:32px;--van-button-small-padding:0 var(--van-padding-xs);--van-button-small-font-size:var(--van-font-size-sm);--van-button-normal-padding:0 15px;--van-button-normal-font-size:var(--van-font-size-md);--van-button-large-height:50px;--van-button-default-height:44px;--van-button-default-line-height:1.2;--van-button-default-font-size:var(--van-font-size-lg);--van-button-default-color:var(--van-text-color);--van-button-default-background-color:var(--van-background-color-light);--van-button-default-border-color:var(--van-border-color);--van-button-primary-color:var(--van-white);--van-button-primary-background-color:var(--van-primary-color);--van-button-primary-border-color:var(--van-primary-color);--van-button-success-color:var(--van-white);--van-button-success-background-color:var(--van-success-color);--van-button-success-border-color:var(--van-success-color);--van-button-danger-color:var(--van-white);--van-button-danger-background-color:var(--van-danger-color);--van-button-danger-border-color:var(--van-danger-color);--van-button-warning-color:var(--van-white);--van-button-warning-background-color:var(--van-warning-color);--van-button-warning-border-color:var(--van-warning-color);--van-button-border-width:var(--van-border-width-base);--van-button-border-radius:var(--van-border-radius-sm);--van-button-round-border-radius:var(--van-border-radius-max);--van-button-plain-background-color:var(--van-white);--van-button-disabled-opacity:var(--van-disabled-opacity);--van-button-icon-size:1.2em;--van-button-loading-icon-size:20px}.van-button{position:relative;display:inline-block;box-sizing:border-box;height:var(--van-button-default-height);margin:0;padding:0;font-size:var(--van-button-default-font-size);line-height:var(--van-button-default-line-height);text-align:center;border-radius:var(--van-button-border-radius);cursor:pointer;transition:opacity var(--van-animation-duration-fast);-webkit-appearance:none}.van-button
|
1
|
+
:root{--van-button-mini-height: 24px;--van-button-mini-padding: 0 var(--van-padding-base);--van-button-mini-font-size: var(--van-font-size-xs);--van-button-small-height: 32px;--van-button-small-padding: 0 var(--van-padding-xs);--van-button-small-font-size: var(--van-font-size-sm);--van-button-normal-padding: 0 15px;--van-button-normal-font-size: var(--van-font-size-md);--van-button-large-height: 50px;--van-button-default-height: 44px;--van-button-default-line-height: 1.2;--van-button-default-font-size: var(--van-font-size-lg);--van-button-default-color: var(--van-text-color);--van-button-default-background-color: var(--van-background-color-light);--van-button-default-border-color: var(--van-border-color);--van-button-primary-color: var(--van-white);--van-button-primary-background-color: var(--van-primary-color);--van-button-primary-border-color: var(--van-primary-color);--van-button-success-color: var(--van-white);--van-button-success-background-color: var(--van-success-color);--van-button-success-border-color: var(--van-success-color);--van-button-danger-color: var(--van-white);--van-button-danger-background-color: var(--van-danger-color);--van-button-danger-border-color: var(--van-danger-color);--van-button-warning-color: var(--van-white);--van-button-warning-background-color: var(--van-warning-color);--van-button-warning-border-color: var(--van-warning-color);--van-button-border-width: var(--van-border-width-base);--van-button-border-radius: var(--van-border-radius-sm);--van-button-round-border-radius: var(--van-border-radius-max);--van-button-plain-background-color: var(--van-white);--van-button-disabled-opacity: var(--van-disabled-opacity);--van-button-icon-size: 1.2em;--van-button-loading-icon-size: 20px}.van-button{position:relative;display:inline-block;box-sizing:border-box;height:var(--van-button-default-height);margin:0;padding:0;font-size:var(--van-button-default-font-size);line-height:var(--van-button-default-line-height);text-align:center;border-radius:var(--van-button-border-radius);cursor:pointer;transition:opacity var(--van-animation-duration-fast);-webkit-appearance:none}.van-button:before{position:absolute;top:50%;left:50%;width:100%;height:100%;background:var(--van-black);border:inherit;border-color:var(--van-black);border-radius:inherit;transform:translate(-50%,-50%);opacity:0;content:" "}.van-button:active:before{opacity:.1}.van-button--loading:before,.van-button--disabled:before{display:none}.van-button--default{color:var(--van-button-default-color);background:var(--van-button-default-background-color);border:var(--van-button-border-width) solid var(--van-button-default-border-color)}.van-button--primary{color:var(--van-button-primary-color);background:var(--van-button-primary-background-color);border:var(--van-button-border-width) solid var(--van-button-primary-border-color)}.van-button--success{color:var(--van-button-success-color);background:var(--van-button-success-background-color);border:var(--van-button-border-width) solid var(--van-button-success-border-color)}.van-button--danger{color:var(--van-button-danger-color);background:var(--van-button-danger-background-color);border:var(--van-button-border-width) solid var(--van-button-danger-border-color)}.van-button--warning{color:var(--van-button-warning-color);background:var(--van-button-warning-background-color);border:var(--van-button-border-width) solid var(--van-button-warning-border-color)}.van-button--plain{background:var(--van-button-plain-background-color)}.van-button--plain.van-button--primary{color:var(--van-button-primary-background-color)}.van-button--plain.van-button--success{color:var(--van-button-success-background-color)}.van-button--plain.van-button--danger{color:var(--van-button-danger-background-color)}.van-button--plain.van-button--warning{color:var(--van-button-warning-background-color)}.van-button--large{width:100%;height:var(--van-button-large-height)}.van-button--normal{padding:var(--van-button-normal-padding);font-size:var(--van-button-normal-font-size)}.van-button--small{height:var(--van-button-small-height);padding:var(--van-button-small-padding);font-size:var(--van-button-small-font-size)}.van-button__loading{color:inherit;font-size:inherit}.van-button__loading .van-loading__spinner{color:currentColor;width:var(--van-button-loading-icon-size);height:var(--van-button-loading-icon-size)}.van-button--mini{height:var(--van-button-mini-height);padding:var(--van-button-mini-padding);font-size:var(--van-button-mini-font-size)}.van-button--mini+.van-button--mini{margin-left:var(--van-padding-base)}.van-button--block{display:block;width:100%}.van-button--disabled{cursor:not-allowed;opacity:var(--van-button-disabled-opacity)}.van-button--loading{cursor:default}.van-button--round{border-radius:var(--van-button-round-border-radius)}.van-button--square{border-radius:0}.van-button__content{display:flex;align-items:center;justify-content:center;height:100%}.van-button__content:before{content:" "}.van-button__icon{font-size:var(--van-button-icon-size);line-height:inherit}.van-button__icon+.van-button__text,.van-button__loading+.van-button__text,.van-button__text+.van-button__icon,.van-button__text+.van-button__loading{margin-left:var(--van-padding-base)}.van-button--hairline{border-width:0}.van-button--hairline:after{border-color:inherit;border-radius:calc(var(--van-button-border-radius) * 2)}.van-button--hairline.van-button--round:after{border-radius:var(--van-button-round-border-radius)}.van-button--hairline.van-button--square:after{border-radius:0}
|
package/lib/button/index.d.ts
CHANGED
@@ -37,54 +37,46 @@ export declare const Button: import("../utils").WithInstall<import("vue").Define
|
|
37
37
|
type: import("vue").PropType<import("./types").ButtonIconPosition>;
|
38
38
|
default: import("./types").ButtonIconPosition;
|
39
39
|
};
|
40
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
41
|
-
to
|
42
|
-
url
|
43
|
-
replace
|
44
|
-
tag?: unknown;
|
45
|
-
text?: unknown;
|
46
|
-
icon?: unknown;
|
47
|
-
type?: unknown;
|
48
|
-
size?: unknown;
|
49
|
-
color?: unknown;
|
50
|
-
block?: unknown;
|
51
|
-
plain?: unknown;
|
52
|
-
round?: unknown;
|
53
|
-
square?: unknown;
|
54
|
-
loading?: unknown;
|
55
|
-
hairline?: unknown;
|
56
|
-
disabled?: unknown;
|
57
|
-
iconPrefix?: unknown;
|
58
|
-
nativeType?: unknown;
|
59
|
-
loadingSize?: unknown;
|
60
|
-
loadingText?: unknown;
|
61
|
-
loadingType?: unknown;
|
62
|
-
iconPosition?: unknown;
|
63
|
-
} & {
|
64
|
-
replace: boolean;
|
65
|
-
type: import("./types").ButtonType;
|
66
|
-
tag: keyof HTMLElementTagNameMap;
|
67
|
-
round: boolean;
|
68
|
-
disabled: boolean;
|
69
|
-
size: import("./types").ButtonSize;
|
70
|
-
loading: boolean;
|
71
|
-
block: boolean;
|
72
|
-
square: boolean;
|
73
|
-
plain: boolean;
|
74
|
-
hairline: boolean;
|
75
|
-
nativeType: import("./types").ButtonNativeType;
|
76
|
-
iconPosition: import("./types").ButtonIconPosition;
|
40
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
41
|
+
to: import("vue").PropType<import("vue-router").RouteLocationRaw>;
|
42
|
+
url: StringConstructor;
|
43
|
+
replace: BooleanConstructor;
|
77
44
|
} & {
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
icon
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
}
|
45
|
+
tag: {
|
46
|
+
type: import("vue").PropType<keyof HTMLElementTagNameMap>;
|
47
|
+
default: keyof HTMLElementTagNameMap;
|
48
|
+
};
|
49
|
+
text: StringConstructor;
|
50
|
+
icon: StringConstructor;
|
51
|
+
type: {
|
52
|
+
type: import("vue").PropType<import("./types").ButtonType>;
|
53
|
+
default: import("./types").ButtonType;
|
54
|
+
};
|
55
|
+
size: {
|
56
|
+
type: import("vue").PropType<import("./types").ButtonSize>;
|
57
|
+
default: import("./types").ButtonSize;
|
58
|
+
};
|
59
|
+
color: StringConstructor;
|
60
|
+
block: BooleanConstructor;
|
61
|
+
plain: BooleanConstructor;
|
62
|
+
round: BooleanConstructor;
|
63
|
+
square: BooleanConstructor;
|
64
|
+
loading: BooleanConstructor;
|
65
|
+
hairline: BooleanConstructor;
|
66
|
+
disabled: BooleanConstructor;
|
67
|
+
iconPrefix: StringConstructor;
|
68
|
+
nativeType: {
|
69
|
+
type: import("vue").PropType<import("./types").ButtonNativeType>;
|
70
|
+
default: import("./types").ButtonNativeType;
|
71
|
+
};
|
72
|
+
loadingSize: (NumberConstructor | StringConstructor)[];
|
73
|
+
loadingText: StringConstructor;
|
74
|
+
loadingType: import("vue").PropType<import("..").LoadingType>;
|
75
|
+
iconPosition: {
|
76
|
+
type: import("vue").PropType<import("./types").ButtonIconPosition>;
|
77
|
+
default: import("./types").ButtonIconPosition;
|
78
|
+
};
|
79
|
+
}>> & {
|
88
80
|
onClick?: ((...args: any[]) => any) | undefined;
|
89
81
|
}, {
|
90
82
|
replace: boolean;
|
@@ -171,68 +171,91 @@ declare const _default: import("vue").DefineComponent<{
|
|
171
171
|
default: number;
|
172
172
|
validator: (val: number) => boolean;
|
173
173
|
};
|
174
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "update:show" | "confirm" | "click-subtitle" | "unselect" | "month-show" | "over-range")[], "select" | "update:show" | "confirm" | "click-subtitle" | "unselect" | "month-show" | "over-range", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
175
|
-
show
|
176
|
-
type
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
allowSameDay:
|
222
|
-
showSubtitle:
|
223
|
-
|
224
|
-
|
225
|
-
}
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
confirmDisabledText
|
235
|
-
|
174
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "update:show" | "confirm" | "click-subtitle" | "unselect" | "month-show" | "over-range")[], "select" | "update:show" | "confirm" | "click-subtitle" | "unselect" | "month-show" | "over-range", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
175
|
+
show: BooleanConstructor;
|
176
|
+
type: {
|
177
|
+
type: PropType<CalendarType>;
|
178
|
+
default: CalendarType;
|
179
|
+
};
|
180
|
+
title: StringConstructor;
|
181
|
+
color: StringConstructor;
|
182
|
+
round: {
|
183
|
+
type: BooleanConstructor;
|
184
|
+
default: true;
|
185
|
+
};
|
186
|
+
readonly: BooleanConstructor;
|
187
|
+
poppable: {
|
188
|
+
type: BooleanConstructor;
|
189
|
+
default: true;
|
190
|
+
};
|
191
|
+
maxRange: {
|
192
|
+
type: (NumberConstructor | StringConstructor)[];
|
193
|
+
default: null;
|
194
|
+
};
|
195
|
+
position: {
|
196
|
+
type: PropType<PopupPosition>;
|
197
|
+
default: PopupPosition;
|
198
|
+
};
|
199
|
+
teleport: PropType<string | import("vue").RendererElement | null | undefined>;
|
200
|
+
showMark: {
|
201
|
+
type: BooleanConstructor;
|
202
|
+
default: true;
|
203
|
+
};
|
204
|
+
showTitle: {
|
205
|
+
type: BooleanConstructor;
|
206
|
+
default: true;
|
207
|
+
};
|
208
|
+
formatter: PropType<(item: CalendarDayItem) => CalendarDayItem>;
|
209
|
+
rowHeight: (NumberConstructor | StringConstructor)[];
|
210
|
+
confirmText: StringConstructor;
|
211
|
+
rangePrompt: StringConstructor;
|
212
|
+
lazyRender: {
|
213
|
+
type: BooleanConstructor;
|
214
|
+
default: true;
|
215
|
+
};
|
216
|
+
showConfirm: {
|
217
|
+
type: BooleanConstructor;
|
218
|
+
default: true;
|
219
|
+
};
|
220
|
+
defaultDate: PropType<Date | Date[] | null>;
|
221
|
+
allowSameDay: BooleanConstructor;
|
222
|
+
showSubtitle: {
|
223
|
+
type: BooleanConstructor;
|
224
|
+
default: true;
|
225
|
+
};
|
226
|
+
closeOnPopstate: {
|
227
|
+
type: BooleanConstructor;
|
228
|
+
default: true;
|
229
|
+
};
|
230
|
+
showRangePrompt: {
|
231
|
+
type: BooleanConstructor;
|
232
|
+
default: true;
|
233
|
+
};
|
234
|
+
confirmDisabledText: StringConstructor;
|
235
|
+
closeOnClickOverlay: {
|
236
|
+
type: BooleanConstructor;
|
237
|
+
default: true;
|
238
|
+
};
|
239
|
+
safeAreaInsetBottom: {
|
240
|
+
type: BooleanConstructor;
|
241
|
+
default: true;
|
242
|
+
};
|
243
|
+
minDate: {
|
244
|
+
type: DateConstructor;
|
245
|
+
validator: (val: unknown) => val is Date;
|
246
|
+
default: () => Date;
|
247
|
+
};
|
248
|
+
maxDate: {
|
249
|
+
type: DateConstructor;
|
250
|
+
validator: (val: unknown) => val is Date;
|
251
|
+
default: () => Date;
|
252
|
+
};
|
253
|
+
firstDayOfWeek: {
|
254
|
+
type: (NumberConstructor | StringConstructor)[];
|
255
|
+
default: number;
|
256
|
+
validator: (val: number) => boolean;
|
257
|
+
};
|
258
|
+
}>> & {
|
236
259
|
onSelect?: ((...args: any[]) => any) | undefined;
|
237
260
|
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
238
261
|
onConfirm?: ((...args: any[]) => any) | undefined;
|
package/lib/calendar/Calendar.js
CHANGED
@@ -297,7 +297,12 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
297
297
|
if (compareToStart === 1) {
|
298
298
|
const disabledDay = getDisabledDate(disabledDays.value, startDay, date);
|
299
299
|
if (disabledDay) {
|
300
|
-
|
300
|
+
const endDay2 = (0, import_utils2.getPrevDay)(disabledDay);
|
301
|
+
if ((0, import_utils2.compareDay)(startDay, endDay2) === -1) {
|
302
|
+
select([startDay, endDay2]);
|
303
|
+
} else {
|
304
|
+
select([date]);
|
305
|
+
}
|
301
306
|
} else {
|
302
307
|
select([startDay, date], true);
|
303
308
|
}
|
@@ -12,20 +12,19 @@ declare const _default: import("vue").DefineComponent<{
|
|
12
12
|
default: number;
|
13
13
|
};
|
14
14
|
rowHeight: StringConstructor;
|
15
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
16
|
-
item
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
offset:
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
}> & {
|
15
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
16
|
+
item: {
|
17
|
+
type: PropType<CalendarDayItem>;
|
18
|
+
required: true;
|
19
|
+
};
|
20
|
+
color: StringConstructor;
|
21
|
+
index: NumberConstructor;
|
22
|
+
offset: {
|
23
|
+
type: NumberConstructor;
|
24
|
+
default: number;
|
25
|
+
};
|
26
|
+
rowHeight: StringConstructor;
|
27
|
+
}>> & {
|
29
28
|
onClick?: ((...args: any[]) => any) | undefined;
|
30
29
|
}, {
|
31
30
|
offset: number;
|
@@ -4,20 +4,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
4
4
|
showTitle: BooleanConstructor;
|
5
5
|
showSubtitle: BooleanConstructor;
|
6
6
|
firstDayOfWeek: NumberConstructor;
|
7
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click-subtitle"[], "click-subtitle", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
8
|
-
title
|
9
|
-
subtitle
|
10
|
-
showTitle
|
11
|
-
showSubtitle
|
12
|
-
firstDayOfWeek
|
13
|
-
} & {
|
14
|
-
showTitle: boolean;
|
15
|
-
showSubtitle: boolean;
|
16
|
-
} & {
|
17
|
-
title?: string | undefined;
|
18
|
-
firstDayOfWeek?: number | undefined;
|
19
|
-
subtitle?: string | undefined;
|
20
|
-
}> & {
|
7
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click-subtitle"[], "click-subtitle", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
8
|
+
title: StringConstructor;
|
9
|
+
subtitle: StringConstructor;
|
10
|
+
showTitle: BooleanConstructor;
|
11
|
+
showSubtitle: BooleanConstructor;
|
12
|
+
firstDayOfWeek: NumberConstructor;
|
13
|
+
}>> & {
|
21
14
|
"onClick-subtitle"?: ((...args: any[]) => any) | undefined;
|
22
15
|
}, {
|
23
16
|
showTitle: boolean;
|
@@ -50,38 +50,31 @@ declare const _default: import("vue").DefineComponent<{
|
|
50
50
|
showSubtitle: BooleanConstructor;
|
51
51
|
showMonthTitle: BooleanConstructor;
|
52
52
|
firstDayOfWeek: NumberConstructor;
|
53
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "update-height")[], "click" | "update-height", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
54
|
-
date
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
} & {
|
78
|
-
color?: string | undefined;
|
79
|
-
type?: CalendarType | undefined;
|
80
|
-
formatter?: ((item: CalendarDayItem) => CalendarDayItem) | undefined;
|
81
|
-
rowHeight?: string | number | undefined;
|
82
|
-
firstDayOfWeek?: number | undefined;
|
83
|
-
currentDate?: Date | Date[] | null | undefined;
|
84
|
-
}> & {
|
53
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "update-height")[], "click" | "update-height", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
54
|
+
date: {
|
55
|
+
type: DateConstructor;
|
56
|
+
required: true;
|
57
|
+
};
|
58
|
+
type: PropType<CalendarType>;
|
59
|
+
color: StringConstructor;
|
60
|
+
minDate: {
|
61
|
+
type: DateConstructor;
|
62
|
+
required: true;
|
63
|
+
};
|
64
|
+
maxDate: {
|
65
|
+
type: DateConstructor;
|
66
|
+
required: true;
|
67
|
+
};
|
68
|
+
showMark: BooleanConstructor;
|
69
|
+
rowHeight: (NumberConstructor | StringConstructor)[];
|
70
|
+
formatter: PropType<(item: CalendarDayItem) => CalendarDayItem>;
|
71
|
+
lazyRender: BooleanConstructor;
|
72
|
+
currentDate: PropType<Date | Date[] | null>;
|
73
|
+
allowSameDay: BooleanConstructor;
|
74
|
+
showSubtitle: BooleanConstructor;
|
75
|
+
showMonthTitle: BooleanConstructor;
|
76
|
+
firstDayOfWeek: NumberConstructor;
|
77
|
+
}>> & {
|
85
78
|
onClick?: ((...args: any[]) => any) | undefined;
|
86
79
|
"onUpdate-height"?: ((...args: any[]) => any) | undefined;
|
87
80
|
}, {
|
package/lib/calendar/index.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
:root{--van-calendar-background-color:var(--van-background-color-light);--van-calendar-popup-height:80%;--van-calendar-header-box-shadow:0 2px 10px rgba(125, 126, 128,
|
1
|
+
:root{--van-calendar-background-color: var(--van-background-color-light);--van-calendar-popup-height: 80%;--van-calendar-header-box-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-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-range-edge-color: var(--van-white);--van-calendar-range-edge-background-color: var(--van-danger-color);--van-calendar-range-middle-color: var(--van-danger-color);--van-calendar-range-middle-background-opacity: .1;--van-calendar-selected-day-size: 54px;--van-calendar-selected-day-color: var(--van-white);--van-calendar-info-font-size: var(--van-font-size-xs);--van-calendar-info-line-height: var(--van-line-height-xs);--van-calendar-selected-day-background-color: var(--van-danger-color);--van-calendar-day-disabled-color: var(--van-text-color-3);--van-calendar-confirm-button-height: 36px;--van-calendar-confirm-button-margin: 7px 0}.van-calendar{display:flex;flex-direction:column;height:100%;background:var(--van-calendar-background-color)}.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-box-shadow)}.van-calendar__month-title,.van-calendar__header-title,.van-calendar__header-subtitle{height:var(--van-calendar-header-title-height);font-weight:var(--van-font-weight-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__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);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-color)}.van-calendar__day--start{border-radius:var(--van-border-radius-md) 0 0 var(--van-border-radius-md)}.van-calendar__day--end{border-radius:0 var(--van-border-radius-md) var(--van-border-radius-md) 0}.van-calendar__day--start-end,.van-calendar__day--multiple-selected{border-radius:var(--van-border-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-color);border-radius:var(--van-border-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
@@ -82,68 +82,91 @@ export declare const Calendar: import("../utils").WithInstall<import("vue").Defi
|
|
82
82
|
default: number;
|
83
83
|
validator: (val: number) => boolean;
|
84
84
|
};
|
85
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "update:show" | "confirm" | "click-subtitle" | "unselect" | "month-show" | "over-range")[], "select" | "update:show" | "confirm" | "click-subtitle" | "unselect" | "month-show" | "over-range", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
86
|
-
show
|
87
|
-
type
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
allowSameDay:
|
133
|
-
showSubtitle:
|
134
|
-
|
135
|
-
|
136
|
-
}
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
confirmDisabledText
|
146
|
-
|
85
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "update:show" | "confirm" | "click-subtitle" | "unselect" | "month-show" | "over-range")[], "select" | "update:show" | "confirm" | "click-subtitle" | "unselect" | "month-show" | "over-range", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
86
|
+
show: BooleanConstructor;
|
87
|
+
type: {
|
88
|
+
type: import("vue").PropType<import("./types").CalendarType>;
|
89
|
+
default: import("./types").CalendarType;
|
90
|
+
};
|
91
|
+
title: StringConstructor;
|
92
|
+
color: StringConstructor;
|
93
|
+
round: {
|
94
|
+
type: BooleanConstructor;
|
95
|
+
default: true;
|
96
|
+
};
|
97
|
+
readonly: BooleanConstructor;
|
98
|
+
poppable: {
|
99
|
+
type: BooleanConstructor;
|
100
|
+
default: true;
|
101
|
+
};
|
102
|
+
maxRange: {
|
103
|
+
type: (NumberConstructor | StringConstructor)[];
|
104
|
+
default: null;
|
105
|
+
};
|
106
|
+
position: {
|
107
|
+
type: import("vue").PropType<import("..").PopupPosition>;
|
108
|
+
default: import("..").PopupPosition;
|
109
|
+
};
|
110
|
+
teleport: import("vue").PropType<string | import("vue").RendererElement | null | undefined>;
|
111
|
+
showMark: {
|
112
|
+
type: BooleanConstructor;
|
113
|
+
default: true;
|
114
|
+
};
|
115
|
+
showTitle: {
|
116
|
+
type: BooleanConstructor;
|
117
|
+
default: true;
|
118
|
+
};
|
119
|
+
formatter: import("vue").PropType<(item: import("./types").CalendarDayItem) => import("./types").CalendarDayItem>;
|
120
|
+
rowHeight: (NumberConstructor | StringConstructor)[];
|
121
|
+
confirmText: StringConstructor;
|
122
|
+
rangePrompt: StringConstructor;
|
123
|
+
lazyRender: {
|
124
|
+
type: BooleanConstructor;
|
125
|
+
default: true;
|
126
|
+
};
|
127
|
+
showConfirm: {
|
128
|
+
type: BooleanConstructor;
|
129
|
+
default: true;
|
130
|
+
};
|
131
|
+
defaultDate: import("vue").PropType<Date | Date[] | null>;
|
132
|
+
allowSameDay: BooleanConstructor;
|
133
|
+
showSubtitle: {
|
134
|
+
type: BooleanConstructor;
|
135
|
+
default: true;
|
136
|
+
};
|
137
|
+
closeOnPopstate: {
|
138
|
+
type: BooleanConstructor;
|
139
|
+
default: true;
|
140
|
+
};
|
141
|
+
showRangePrompt: {
|
142
|
+
type: BooleanConstructor;
|
143
|
+
default: true;
|
144
|
+
};
|
145
|
+
confirmDisabledText: StringConstructor;
|
146
|
+
closeOnClickOverlay: {
|
147
|
+
type: BooleanConstructor;
|
148
|
+
default: true;
|
149
|
+
};
|
150
|
+
safeAreaInsetBottom: {
|
151
|
+
type: BooleanConstructor;
|
152
|
+
default: true;
|
153
|
+
};
|
154
|
+
minDate: {
|
155
|
+
type: DateConstructor;
|
156
|
+
validator: (val: unknown) => val is Date;
|
157
|
+
default: () => Date;
|
158
|
+
};
|
159
|
+
maxDate: {
|
160
|
+
type: DateConstructor;
|
161
|
+
validator: (val: unknown) => val is Date;
|
162
|
+
default: () => Date;
|
163
|
+
};
|
164
|
+
firstDayOfWeek: {
|
165
|
+
type: (NumberConstructor | StringConstructor)[];
|
166
|
+
default: number;
|
167
|
+
validator: (val: number) => boolean;
|
168
|
+
};
|
169
|
+
}>> & {
|
147
170
|
onSelect?: ((...args: any[]) => any) | undefined;
|
148
171
|
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
149
172
|
onConfirm?: ((...args: any[]) => any) | undefined;
|