vant 3.4.5 → 4.0.0-alpha.1
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/changelog.generated.md +197 -0
- package/es/action-bar/index.css +1 -1
- package/es/action-bar/index.less +4 -6
- package/es/action-bar-button/index.css +1 -1
- package/es/action-bar-button/index.less +9 -11
- package/es/action-bar-icon/index.css +1 -1
- package/es/action-bar-icon/index.less +10 -12
- package/es/action-sheet/index.css +1 -1
- package/es/action-sheet/index.less +23 -24
- package/es/address-edit/AddressEdit.d.ts +6 -6
- package/es/address-edit/AddressEdit.js +29 -33
- package/es/address-edit/AddressEditDetail.d.ts +2 -2
- package/es/address-edit/AddressEditDetail.js +5 -14
- package/es/address-edit/index.css +1 -1
- package/es/address-edit/index.d.ts +6 -6
- package/es/address-edit/index.less +8 -15
- package/es/address-edit/types.d.ts +2 -4
- package/es/address-list/AddressList.d.ts +4 -4
- package/es/address-list/AddressList.js +5 -5
- package/es/address-list/AddressListItem.js +3 -3
- package/es/address-list/index.css +1 -1
- package/es/address-list/index.d.ts +4 -4
- package/es/address-list/index.less +20 -22
- package/es/area/Area.d.ts +13 -25
- package/es/area/Area.js +43 -208
- package/es/area/index.d.ts +11 -19
- package/es/area/types.d.ts +2 -17
- package/es/area/utils.d.ts +6 -0
- package/es/area/utils.js +85 -0
- package/es/badge/index.css +1 -1
- package/es/badge/index.less +15 -17
- package/es/button/index.css +1 -1
- package/es/button/index.less +55 -52
- package/es/calendar/Calendar.d.ts +10 -6
- package/es/calendar/Calendar.js +7 -5
- package/es/calendar/CalendarHeader.d.ts +2 -2
- package/es/calendar/CalendarHeader.js +2 -2
- package/es/calendar/CalendarMonth.d.ts +1 -2
- package/es/calendar/CalendarMonth.js +2 -2
- package/es/calendar/index.css +1 -1
- package/es/calendar/index.d.ts +9 -6
- package/es/calendar/index.less +41 -37
- package/es/card/Card.d.ts +2 -2
- package/es/card/Card.js +3 -3
- package/es/card/index.css +1 -1
- package/es/card/index.d.ts +2 -2
- package/es/card/index.less +23 -25
- package/es/cascader/Cascader.d.ts +2 -2
- package/es/cascader/Cascader.js +3 -3
- package/es/cascader/index.css +1 -1
- package/es/cascader/index.d.ts +2 -2
- package/es/cascader/index.less +17 -19
- package/es/cell/Cell.js +1 -4
- package/es/cell/index.css +1 -1
- package/es/cell/index.less +21 -27
- package/es/cell-group/index.css +1 -1
- package/es/cell-group/index.less +12 -13
- package/es/checkbox/index.css +1 -1
- package/es/checkbox/index.less +12 -14
- package/es/circle/index.css +1 -1
- package/es/circle/index.less +8 -10
- package/es/collapse-item/index.css +1 -1
- package/es/collapse-item/index.less +12 -12
- package/es/config-provider/ConfigProvider.d.ts +14 -0
- package/es/config-provider/ConfigProvider.js +11 -2
- package/es/config-provider/index.d.ts +10 -1
- package/es/contact-card/ContactCard.js +2 -2
- package/es/contact-card/index.css +1 -1
- package/es/contact-card/index.less +7 -9
- package/es/contact-edit/ContactEdit.d.ts +2 -2
- package/es/contact-edit/ContactEdit.js +3 -4
- package/es/contact-edit/index.css +1 -1
- package/es/contact-edit/index.d.ts +2 -2
- package/es/contact-edit/index.less +7 -9
- package/es/contact-list/ContactList.js +4 -4
- package/es/contact-list/index.css +1 -1
- package/es/contact-list/index.less +9 -11
- package/es/count-down/index.css +1 -1
- package/es/count-down/index.less +4 -6
- package/es/coupon/index.css +1 -1
- package/es/coupon/index.less +28 -31
- package/es/coupon-cell/index.css +1 -1
- package/es/coupon-cell/index.less +2 -4
- package/es/coupon-list/CouponList.js +2 -2
- package/es/coupon-list/index.css +1 -1
- package/es/coupon-list/index.less +15 -17
- package/es/date-picker/DatePicker.d.ts +168 -0
- package/es/date-picker/DatePicker.js +111 -0
- package/es/{datetime-picker/DatePicker.d.ts → date-picker/index.d.ts} +40 -28
- package/es/date-picker/index.js +8 -0
- package/es/{datetime-picker → date-picker}/style/index.d.ts +0 -0
- package/es/{datetime-picker → date-picker}/style/index.js +0 -0
- package/es/{datetime-picker → date-picker}/style/less.d.ts +0 -0
- package/es/{datetime-picker → date-picker}/style/less.js +0 -0
- package/es/{datetime-picker → date-picker}/utils.d.ts +15 -11
- package/es/date-picker/utils.js +40 -0
- package/es/dialog/index.css +1 -1
- package/es/dialog/index.less +24 -24
- package/es/divider/index.css +1 -1
- package/es/divider/index.less +10 -12
- package/es/dropdown-item/index.css +1 -1
- package/es/dropdown-item/index.less +2 -5
- package/es/dropdown-menu/index.css +1 -1
- package/es/dropdown-menu/index.less +14 -17
- package/es/empty/index.css +1 -1
- package/es/empty/index.less +9 -11
- package/es/field/Field.d.ts +4 -4
- package/es/field/Field.js +4 -4
- package/es/field/index.css +1 -1
- package/es/field/index.d.ts +4 -4
- package/es/field/index.less +20 -23
- package/es/grid-item/index.css +1 -1
- package/es/grid-item/index.less +10 -13
- package/es/image/index.css +1 -1
- package/es/image/index.less +10 -12
- package/es/image-preview/index.css +1 -1
- package/es/image-preview/index.less +11 -13
- package/es/index-anchor/index.css +1 -1
- package/es/index-anchor/index.less +12 -14
- package/es/index-bar/IndexBar.js +25 -4
- package/es/index-bar/index.css +1 -1
- package/es/index-bar/index.less +7 -8
- package/es/index.d.ts +3 -2
- package/es/index.js +7 -4
- package/es/list/index.css +1 -1
- package/es/list/index.less +5 -7
- package/es/loading/index.css +1 -1
- package/es/loading/index.less +7 -10
- package/es/locale/lang/la-LA.d.ts +64 -0
- package/es/locale/lang/la-LA.js +66 -0
- package/es/nav-bar/NavBar.d.ts +4 -4
- package/es/nav-bar/NavBar.js +6 -6
- package/es/nav-bar/index.css +1 -1
- package/es/nav-bar/index.d.ts +4 -4
- package/es/nav-bar/index.less +11 -13
- package/es/notice-bar/index.css +1 -1
- package/es/notice-bar/index.less +11 -13
- package/es/notify/index.css +1 -1
- package/es/notify/index.less +13 -15
- package/es/number-keyboard/NumberKeyboard.d.ts +1 -1
- package/es/number-keyboard/index.css +1 -1
- package/es/number-keyboard/index.d.ts +1 -1
- package/es/number-keyboard/index.less +26 -22
- package/es/overlay/index.css +1 -1
- package/es/overlay/index.less +4 -6
- package/es/pagination/index.css +1 -1
- package/es/pagination/index.less +13 -15
- package/es/password-input/index.css +1 -1
- package/es/password-input/index.less +20 -22
- package/es/picker/Picker.d.ts +26 -28
- package/es/picker/Picker.js +91 -196
- package/es/picker/PickerColumn.d.ts +21 -30
- package/es/picker/PickerColumn.js +61 -111
- package/es/picker/index.css +1 -1
- package/es/picker/index.d.ts +19 -20
- package/es/picker/index.less +32 -19
- package/es/picker/types.d.ts +13 -19
- package/es/picker/utils.d.ts +10 -0
- package/es/picker/utils.js +73 -0
- package/es/popover/Popover.d.ts +1 -1
- package/es/popover/index.css +1 -1
- package/es/popover/index.d.ts +1 -1
- package/es/popover/index.less +21 -23
- package/es/popup/Popup.d.ts +7 -3
- package/es/popup/Popup.js +6 -3
- package/es/popup/index.css +1 -1
- package/es/popup/index.d.ts +6 -3
- package/es/popup/index.less +20 -22
- package/es/progress/index.css +1 -1
- package/es/progress/index.less +14 -18
- package/es/pull-refresh/index.css +1 -1
- package/es/pull-refresh/index.less +5 -7
- package/es/radio/index.css +1 -1
- package/es/radio/index.less +12 -14
- package/es/rate/index.css +1 -1
- package/es/rate/index.less +6 -8
- package/es/search/Search.d.ts +4 -4
- package/es/search/Search.js +7 -7
- package/es/search/index.css +1 -1
- package/es/search/index.d.ts +4 -4
- package/es/search/index.less +16 -18
- package/es/share-sheet/index.css +1 -1
- package/es/share-sheet/index.less +17 -18
- package/es/sidebar/index.css +1 -1
- package/es/sidebar/index.less +2 -4
- package/es/sidebar-item/index.css +1 -1
- package/es/sidebar-item/index.less +17 -19
- package/es/skeleton/Skeleton.js +6 -4
- package/es/skeleton/index.css +1 -1
- package/es/skeleton/index.less +14 -16
- package/es/slider/Slider.d.ts +4 -4
- package/es/slider/Slider.js +4 -5
- package/es/slider/index.css +1 -1
- package/es/slider/index.d.ts +4 -4
- package/es/slider/index.less +20 -18
- package/es/step/index.css +1 -1
- package/es/step/index.less +15 -17
- package/es/stepper/Stepper.d.ts +1 -1
- package/es/stepper/index.css +1 -1
- package/es/stepper/index.d.ts +1 -1
- package/es/stepper/index.less +20 -24
- package/es/steps/Steps.d.ts +2 -2
- package/es/steps/Steps.js +2 -2
- package/es/steps/index.css +1 -1
- package/es/steps/index.d.ts +2 -2
- package/es/steps/index.less +3 -5
- package/es/sticky/index.css +1 -1
- package/es/sticky/index.less +2 -4
- package/es/style/animation.css +1 -1
- package/es/style/animation.less +18 -22
- package/es/style/base.css +1 -1
- package/es/style/base.less +11 -7
- package/es/style/css-variables.css +1 -1
- package/es/style/css-variables.less +76 -61
- package/es/style/mixins/hairline.less +0 -2
- package/es/style/normalize.css +1 -1
- package/es/style/normalize.less +1 -3
- package/es/submit-bar/index.css +1 -1
- package/es/submit-bar/index.less +26 -28
- package/es/swipe/index.css +1 -1
- package/es/swipe/index.less +11 -13
- package/es/swipe-cell/SwipeCell.js +1 -1
- package/es/switch/index.css +1 -1
- package/es/switch/index.less +24 -24
- package/es/tabbar/index.css +1 -1
- package/es/tabbar/index.less +5 -7
- package/es/tabbar-item/index.css +1 -1
- package/es/tabbar-item/index.less +9 -11
- package/es/tabs/Tabs.d.ts +2 -4
- package/es/tabs/Tabs.js +14 -27
- package/es/tabs/index.css +1 -1
- package/es/tabs/index.d.ts +2 -4
- package/es/tabs/index.less +17 -20
- package/es/tag/index.css +1 -1
- package/es/tag/index.less +22 -25
- package/es/time-picker/TimePicker.d.ts +214 -0
- package/es/time-picker/TimePicker.js +71 -0
- package/{lib/datetime-picker/TimePicker.d.ts → es/time-picker/index.d.ts} +60 -20
- package/es/time-picker/index.js +8 -0
- package/{lib/datetime-picker → es/time-picker}/style/index.d.ts +0 -0
- package/es/time-picker/style/index.js +3 -0
- package/{lib/datetime-picker → es/time-picker}/style/less.d.ts +0 -0
- package/es/time-picker/style/less.js +3 -0
- package/es/toast/Toast.js +1 -0
- package/es/toast/index.css +1 -1
- package/es/toast/index.less +19 -21
- package/es/tree-select/TreeSelect.d.ts +3 -3
- package/es/tree-select/TreeSelect.js +3 -3
- package/es/tree-select/index.css +1 -1
- package/es/tree-select/index.d.ts +3 -3
- package/es/tree-select/index.less +12 -14
- package/es/uploader/Uploader.d.ts +4 -4
- package/es/uploader/Uploader.js +4 -4
- package/es/uploader/index.css +1 -1
- package/es/uploader/index.d.ts +4 -4
- package/es/uploader/index.less +31 -33
- package/es/utils/basic.d.ts +1 -0
- package/es/utils/basic.js +2 -0
- package/lib/action-bar/index.css +1 -1
- package/lib/action-bar/index.less +4 -6
- package/lib/action-bar-button/index.css +1 -1
- package/lib/action-bar-button/index.less +9 -11
- package/lib/action-bar-icon/index.css +1 -1
- package/lib/action-bar-icon/index.less +10 -12
- package/lib/action-sheet/index.css +1 -1
- package/lib/action-sheet/index.less +23 -24
- package/lib/address-edit/AddressEdit.d.ts +6 -6
- package/lib/address-edit/AddressEdit.js +29 -33
- package/lib/address-edit/AddressEditDetail.d.ts +2 -2
- package/lib/address-edit/AddressEditDetail.js +5 -14
- package/lib/address-edit/index.css +1 -1
- package/lib/address-edit/index.d.ts +6 -6
- package/lib/address-edit/index.less +8 -15
- package/lib/address-edit/types.d.ts +2 -4
- package/lib/address-list/AddressList.d.ts +4 -4
- package/lib/address-list/AddressList.js +5 -5
- package/lib/address-list/AddressListItem.js +3 -3
- package/lib/address-list/index.css +1 -1
- package/lib/address-list/index.d.ts +4 -4
- package/lib/address-list/index.less +20 -22
- package/lib/area/Area.d.ts +13 -25
- package/lib/area/Area.js +42 -207
- package/lib/area/index.d.ts +11 -19
- package/lib/area/types.d.ts +2 -17
- package/lib/area/utils.d.ts +6 -0
- package/lib/area/utils.js +109 -0
- package/lib/badge/index.css +1 -1
- package/lib/badge/index.less +15 -17
- package/lib/button/index.css +1 -1
- package/lib/button/index.less +55 -52
- package/lib/calendar/Calendar.d.ts +10 -6
- package/lib/calendar/Calendar.js +7 -5
- package/lib/calendar/CalendarHeader.d.ts +2 -2
- package/lib/calendar/CalendarHeader.js +2 -2
- package/lib/calendar/CalendarMonth.d.ts +1 -2
- package/lib/calendar/CalendarMonth.js +2 -2
- package/lib/calendar/index.css +1 -1
- package/lib/calendar/index.d.ts +9 -6
- package/lib/calendar/index.less +41 -37
- package/lib/card/Card.d.ts +2 -2
- package/lib/card/Card.js +3 -3
- package/lib/card/index.css +1 -1
- package/lib/card/index.d.ts +2 -2
- package/lib/card/index.less +23 -25
- package/lib/cascader/Cascader.d.ts +2 -2
- package/lib/cascader/Cascader.js +3 -3
- package/lib/cascader/index.css +1 -1
- package/lib/cascader/index.d.ts +2 -2
- package/lib/cascader/index.less +17 -19
- package/lib/cell/Cell.js +1 -4
- package/lib/cell/index.css +1 -1
- package/lib/cell/index.less +21 -27
- package/lib/cell-group/index.css +1 -1
- package/lib/cell-group/index.less +12 -13
- package/lib/checkbox/index.css +1 -1
- package/lib/checkbox/index.less +12 -14
- package/lib/circle/index.css +1 -1
- package/lib/circle/index.less +8 -10
- package/lib/collapse-item/index.css +1 -1
- package/lib/collapse-item/index.less +12 -12
- package/lib/config-provider/ConfigProvider.d.ts +14 -0
- package/lib/config-provider/ConfigProvider.js +9 -0
- package/lib/config-provider/index.d.ts +10 -1
- package/lib/contact-card/ContactCard.js +2 -2
- package/lib/contact-card/index.css +1 -1
- package/lib/contact-card/index.less +7 -9
- package/lib/contact-edit/ContactEdit.d.ts +2 -2
- package/lib/contact-edit/ContactEdit.js +3 -4
- package/lib/contact-edit/index.css +1 -1
- package/lib/contact-edit/index.d.ts +2 -2
- package/lib/contact-edit/index.less +7 -9
- package/lib/contact-list/ContactList.js +4 -4
- package/lib/contact-list/index.css +1 -1
- package/lib/contact-list/index.less +9 -11
- package/lib/count-down/index.css +1 -1
- package/lib/count-down/index.less +4 -6
- package/lib/coupon/index.css +1 -1
- package/lib/coupon/index.less +28 -31
- package/lib/coupon-cell/index.css +1 -1
- package/lib/coupon-cell/index.less +2 -4
- package/lib/coupon-list/CouponList.js +2 -2
- package/lib/coupon-list/index.css +1 -1
- package/lib/coupon-list/index.less +15 -17
- package/lib/date-picker/DatePicker.d.ts +168 -0
- package/lib/date-picker/DatePicker.js +135 -0
- package/lib/{datetime-picker/DatePicker.d.ts → date-picker/index.d.ts} +40 -28
- package/lib/{datetime-picker → date-picker}/index.js +4 -4
- package/lib/date-picker/style/index.d.ts +1 -0
- package/lib/{datetime-picker → date-picker}/style/index.js +0 -0
- package/lib/date-picker/style/less.d.ts +1 -0
- package/lib/{datetime-picker → date-picker}/style/less.js +0 -0
- package/lib/{datetime-picker → date-picker}/utils.d.ts +15 -11
- package/lib/{datetime-picker → date-picker}/utils.js +11 -34
- package/lib/dialog/index.css +1 -1
- package/lib/dialog/index.less +24 -24
- package/lib/divider/index.css +1 -1
- package/lib/divider/index.less +10 -12
- package/lib/dropdown-item/index.css +1 -1
- package/lib/dropdown-item/index.less +2 -5
- package/lib/dropdown-menu/index.css +1 -1
- package/lib/dropdown-menu/index.less +14 -17
- package/lib/empty/index.css +1 -1
- package/lib/empty/index.less +9 -11
- package/lib/field/Field.d.ts +4 -4
- package/lib/field/Field.js +4 -4
- package/lib/field/index.css +1 -1
- package/lib/field/index.d.ts +4 -4
- package/lib/field/index.less +20 -23
- package/lib/grid-item/index.css +1 -1
- package/lib/grid-item/index.less +10 -13
- package/lib/image/index.css +1 -1
- package/lib/image/index.less +10 -12
- package/lib/image-preview/index.css +1 -1
- package/lib/image-preview/index.less +11 -13
- package/lib/index-anchor/index.css +1 -1
- package/lib/index-anchor/index.less +12 -14
- package/lib/index-bar/IndexBar.js +25 -4
- package/lib/index-bar/index.css +1 -1
- package/lib/index-bar/index.less +7 -8
- package/lib/index.css +1 -1
- package/lib/index.d.ts +3 -2
- package/lib/index.js +7 -4
- package/lib/list/index.css +1 -1
- package/lib/list/index.less +5 -7
- package/lib/loading/index.css +1 -1
- package/lib/loading/index.less +7 -10
- package/lib/locale/lang/la-LA.d.ts +64 -0
- package/lib/locale/lang/la-LA.js +90 -0
- package/lib/nav-bar/NavBar.d.ts +4 -4
- package/lib/nav-bar/NavBar.js +6 -6
- package/lib/nav-bar/index.css +1 -1
- package/lib/nav-bar/index.d.ts +4 -4
- package/lib/nav-bar/index.less +11 -13
- package/lib/notice-bar/index.css +1 -1
- package/lib/notice-bar/index.less +11 -13
- package/lib/notify/index.css +1 -1
- package/lib/notify/index.less +13 -15
- package/lib/number-keyboard/NumberKeyboard.d.ts +1 -1
- package/lib/number-keyboard/index.css +1 -1
- package/lib/number-keyboard/index.d.ts +1 -1
- package/lib/number-keyboard/index.less +26 -22
- package/lib/overlay/index.css +1 -1
- package/lib/overlay/index.less +4 -6
- package/lib/pagination/index.css +1 -1
- package/lib/pagination/index.less +13 -15
- package/lib/password-input/index.css +1 -1
- package/lib/password-input/index.less +20 -22
- package/lib/picker/Picker.d.ts +26 -28
- package/lib/picker/Picker.js +90 -195
- package/lib/picker/PickerColumn.d.ts +21 -30
- package/lib/picker/PickerColumn.js +60 -110
- package/lib/picker/index.css +1 -1
- package/lib/picker/index.d.ts +19 -20
- package/lib/picker/index.less +32 -19
- package/lib/picker/types.d.ts +13 -19
- package/lib/picker/utils.d.ts +10 -0
- package/lib/picker/utils.js +97 -0
- package/lib/popover/Popover.d.ts +1 -1
- package/lib/popover/index.css +1 -1
- package/lib/popover/index.d.ts +1 -1
- package/lib/popover/index.less +21 -23
- package/lib/popup/Popup.d.ts +7 -3
- package/lib/popup/Popup.js +6 -3
- package/lib/popup/index.css +1 -1
- package/lib/popup/index.d.ts +6 -3
- package/lib/popup/index.less +20 -22
- package/lib/progress/index.css +1 -1
- package/lib/progress/index.less +14 -18
- package/lib/pull-refresh/index.css +1 -1
- package/lib/pull-refresh/index.less +5 -7
- package/lib/radio/index.css +1 -1
- package/lib/radio/index.less +12 -14
- package/lib/rate/index.css +1 -1
- package/lib/rate/index.less +6 -8
- package/lib/search/Search.d.ts +4 -4
- package/lib/search/Search.js +7 -7
- package/lib/search/index.css +1 -1
- package/lib/search/index.d.ts +4 -4
- package/lib/search/index.less +16 -18
- package/lib/share-sheet/index.css +1 -1
- package/lib/share-sheet/index.less +17 -18
- package/lib/sidebar/index.css +1 -1
- package/lib/sidebar/index.less +2 -4
- package/lib/sidebar-item/index.css +1 -1
- package/lib/sidebar-item/index.less +17 -19
- package/lib/skeleton/Skeleton.js +5 -3
- package/lib/skeleton/index.css +1 -1
- package/lib/skeleton/index.less +14 -16
- package/lib/slider/Slider.d.ts +4 -4
- package/lib/slider/Slider.js +5 -6
- package/lib/slider/index.css +1 -1
- package/lib/slider/index.d.ts +4 -4
- package/lib/slider/index.less +20 -18
- package/lib/step/index.css +1 -1
- package/lib/step/index.less +15 -17
- package/lib/stepper/Stepper.d.ts +1 -1
- package/lib/stepper/index.css +1 -1
- package/lib/stepper/index.d.ts +1 -1
- package/lib/stepper/index.less +20 -24
- package/lib/steps/Steps.d.ts +2 -2
- package/lib/steps/Steps.js +2 -2
- package/lib/steps/index.css +1 -1
- package/lib/steps/index.d.ts +2 -2
- package/lib/steps/index.less +3 -5
- package/lib/sticky/index.css +1 -1
- package/lib/sticky/index.less +2 -4
- package/lib/style/animation.css +1 -1
- package/lib/style/animation.less +18 -22
- package/lib/style/base.css +1 -1
- package/lib/style/base.less +11 -7
- package/lib/style/css-variables.css +1 -1
- package/lib/style/css-variables.less +76 -61
- package/lib/style/mixins/hairline.less +0 -2
- package/lib/style/normalize.css +1 -1
- package/lib/style/normalize.less +1 -3
- package/lib/submit-bar/index.css +1 -1
- package/lib/submit-bar/index.less +26 -28
- package/lib/swipe/index.css +1 -1
- package/lib/swipe/index.less +11 -13
- package/lib/swipe-cell/SwipeCell.js +1 -1
- package/lib/switch/index.css +1 -1
- package/lib/switch/index.less +24 -24
- package/lib/tabbar/index.css +1 -1
- package/lib/tabbar/index.less +5 -7
- package/lib/tabbar-item/index.css +1 -1
- package/lib/tabbar-item/index.less +9 -11
- package/lib/tabs/Tabs.d.ts +2 -4
- package/lib/tabs/Tabs.js +13 -26
- package/lib/tabs/index.css +1 -1
- package/lib/tabs/index.d.ts +2 -4
- package/lib/tabs/index.less +17 -20
- package/lib/tag/index.css +1 -1
- package/lib/tag/index.less +22 -25
- package/lib/time-picker/TimePicker.d.ts +214 -0
- package/lib/time-picker/TimePicker.js +95 -0
- package/{es/datetime-picker/TimePicker.d.ts → lib/time-picker/index.d.ts} +60 -20
- package/lib/{datetime-picker/types.js → time-picker/index.js} +17 -0
- package/lib/time-picker/style/index.d.ts +1 -0
- package/lib/time-picker/style/index.js +3 -0
- package/lib/time-picker/style/less.d.ts +1 -0
- package/lib/time-picker/style/less.js +3 -0
- package/lib/toast/Toast.js +1 -0
- package/lib/toast/index.css +1 -1
- package/lib/toast/index.less +19 -21
- package/lib/tree-select/TreeSelect.d.ts +3 -3
- package/lib/tree-select/TreeSelect.js +3 -3
- package/lib/tree-select/index.css +1 -1
- package/lib/tree-select/index.d.ts +3 -3
- package/lib/tree-select/index.less +12 -14
- package/lib/uploader/Uploader.d.ts +4 -4
- package/lib/uploader/Uploader.js +4 -4
- package/lib/uploader/index.css +1 -1
- package/lib/uploader/index.d.ts +4 -4
- package/lib/uploader/index.less +31 -33
- package/lib/utils/basic.d.ts +1 -0
- package/lib/utils/basic.js +2 -0
- package/lib/vant.cjs.js +1251 -1655
- package/lib/vant.cjs.min.js +1 -1
- package/lib/vant.es.js +1251 -1656
- package/lib/vant.es.min.js +1251 -1656
- package/lib/vant.js +1251 -1655
- package/lib/vant.min.js +1 -1
- package/package.json +5 -2
- package/vetur/attributes.json +430 -366
- package/vetur/tags.json +144 -132
- package/vetur/web-types.json +1495 -1300
- package/es/action-bar/var.css +0 -0
- package/es/action-bar/var.less +0 -4
- package/es/action-bar-button/var.css +0 -0
- package/es/action-bar-button/var.less +0 -5
- package/es/action-bar-icon/var.css +0 -0
- package/es/action-bar-icon/var.less +0 -10
- package/es/action-sheet/var.css +0 -0
- package/es/action-sheet/var.less +0 -23
- package/es/address-edit/var.css +0 -0
- package/es/address-edit/var.less +0 -6
- package/es/address-list/var.css +0 -0
- package/es/address-list/var.less +0 -16
- package/es/badge/var.css +0 -0
- package/es/badge/var.less +0 -12
- package/es/button/var.css +0 -0
- package/es/button/var.less +0 -36
- package/es/calendar/var.css +0 -0
- package/es/calendar/var.less +0 -27
- package/es/card/var.css +0 -0
- package/es/card/var.less +0 -18
- package/es/cascader/var.css +0 -0
- package/es/cascader/var.less +0 -15
- package/es/cell/var.css +0 -0
- package/es/cell/var.less +0 -21
- package/es/cell-group/var.css +0 -0
- package/es/cell-group/var.less +0 -12
- package/es/checkbox/var.css +0 -0
- package/es/checkbox/var.less +0 -11
- package/es/circle/var.css +0 -0
- package/es/circle/var.less +0 -9
- package/es/collapse-item/var.css +0 -0
- package/es/collapse-item/var.less +0 -9
- package/es/contact-card/var.css +0 -0
- package/es/contact-card/var.less +0 -6
- package/es/contact-edit/var.css +0 -0
- package/es/contact-edit/var.less +0 -8
- package/es/contact-list/var.css +0 -0
- package/es/contact-list/var.less +0 -6
- package/es/count-down/var.css +0 -0
- package/es/count-down/var.less +0 -5
- package/es/coupon/var.css +0 -0
- package/es/coupon/var.less +0 -19
- package/es/coupon-cell/var.css +0 -0
- package/es/coupon-cell/var.less +0 -3
- package/es/coupon-list/var.css +0 -0
- package/es/coupon-list/var.less +0 -10
- package/es/datetime-picker/DatePicker.js +0 -250
- package/es/datetime-picker/DatetimePicker.d.ts +0 -7
- package/es/datetime-picker/DatetimePicker.js +0 -40
- package/es/datetime-picker/TimePicker.js +0 -117
- package/es/datetime-picker/index.d.ts +0 -12
- package/es/datetime-picker/index.js +0 -8
- package/es/datetime-picker/types.d.ts +0 -9
- package/es/datetime-picker/types.js +0 -0
- package/es/datetime-picker/utils.js +0 -63
- package/es/dialog/var.css +0 -0
- package/es/dialog/var.less +0 -21
- package/es/divider/var.css +0 -0
- package/es/divider/var.less +0 -10
- package/es/dropdown-item/var.css +0 -0
- package/es/dropdown-item/var.less +0 -3
- package/es/dropdown-menu/var.css +0 -0
- package/es/dropdown-menu/var.less +0 -13
- package/es/empty/var.css +0 -0
- package/es/empty/var.less +0 -10
- package/es/field/var.css +0 -0
- package/es/field/var.less +0 -21
- package/es/grid-item/var.css +0 -0
- package/es/grid-item/var.less +0 -8
- package/es/image/var.css +0 -0
- package/es/image/var.less +0 -9
- package/es/image-preview/var.css +0 -0
- package/es/image-preview/var.less +0 -11
- package/es/index-anchor/var.css +0 -0
- package/es/index-anchor/var.less +0 -11
- package/es/index-bar/var.css +0 -0
- package/es/index-bar/var.less +0 -6
- package/es/list/var.css +0 -0
- package/es/list/var.less +0 -6
- package/es/loading/var.css +0 -0
- package/es/loading/var.less +0 -7
- package/es/nav-bar/var.css +0 -0
- package/es/nav-bar/var.less +0 -10
- package/es/notice-bar/var.css +0 -0
- package/es/notice-bar/var.less +0 -11
- package/es/notify/var.css +0 -0
- package/es/notify/var.less +0 -10
- package/es/number-keyboard/var.css +0 -0
- package/es/number-keyboard/var.less +0 -17
- package/es/overlay/var.css +0 -0
- package/es/overlay/var.less +0 -4
- package/es/pagination/var.css +0 -0
- package/es/pagination/var.less +0 -11
- package/es/password-input/var.css +0 -0
- package/es/password-input/var.less +0 -17
- package/es/picker/var.css +0 -0
- package/es/picker/var.less +0 -22
- package/es/popover/var.css +0 -0
- package/es/popover/var.less +0 -15
- package/es/popup/var.css +0 -0
- package/es/popup/var.less +0 -9
- package/es/progress/var.css +0 -0
- package/es/progress/var.less +0 -11
- package/es/pull-refresh/var.css +0 -0
- package/es/pull-refresh/var.less +0 -6
- package/es/radio/var.css +0 -0
- package/es/radio/var.less +0 -11
- package/es/rate/var.css +0 -0
- package/es/rate/var.less +0 -7
- package/es/search/var.css +0 -0
- package/es/search/var.less +0 -13
- package/es/share-sheet/var.css +0 -0
- package/es/share-sheet/var.less +0 -18
- package/es/sidebar/var.css +0 -0
- package/es/sidebar/var.less +0 -3
- package/es/sidebar-item/var.css +0 -0
- package/es/sidebar-item/var.less +0 -15
- package/es/skeleton/var.css +0 -0
- package/es/skeleton/var.less +0 -9
- package/es/slider/var.css +0 -0
- package/es/slider/var.less +0 -11
- package/es/step/var.css +0 -0
- package/es/step/var.less +0 -13
- package/es/stepper/var.css +0 -0
- package/es/stepper/var.less +0 -15
- package/es/steps/var.css +0 -0
- package/es/steps/var.less +0 -3
- package/es/sticky/var.css +0 -0
- package/es/sticky/var.less +0 -3
- package/es/style/var.css +0 -0
- package/es/style/var.less +0 -74
- package/es/submit-bar/var.css +0 -0
- package/es/submit-bar/var.less +0 -22
- package/es/swipe/var.css +0 -0
- package/es/swipe/var.less +0 -8
- package/es/switch/var.css +0 -0
- package/es/switch/var.less +0 -14
- package/es/tabbar/var.css +0 -0
- package/es/tabbar/var.less +0 -5
- package/es/tabbar-item/var.css +0 -0
- package/es/tabbar-item/var.less +0 -9
- package/es/tabs/var.css +0 -0
- package/es/tabs/var.less +0 -14
- package/es/tag/var.css +0 -0
- package/es/tag/var.less +0 -18
- package/es/toast/var.css +0 -0
- package/es/toast/var.less +0 -17
- package/es/tree-select/var.css +0 -0
- package/es/tree-select/var.less +0 -10
- package/es/uploader/var.css +0 -0
- package/es/uploader/var.less +0 -27
- package/lib/action-bar/var.css +0 -0
- package/lib/action-bar/var.less +0 -4
- package/lib/action-bar-button/var.css +0 -0
- package/lib/action-bar-button/var.less +0 -5
- package/lib/action-bar-icon/var.css +0 -0
- package/lib/action-bar-icon/var.less +0 -10
- package/lib/action-sheet/var.css +0 -0
- package/lib/action-sheet/var.less +0 -23
- package/lib/address-edit/var.css +0 -0
- package/lib/address-edit/var.less +0 -6
- package/lib/address-list/var.css +0 -0
- package/lib/address-list/var.less +0 -16
- package/lib/badge/var.css +0 -0
- package/lib/badge/var.less +0 -12
- package/lib/button/var.css +0 -0
- package/lib/button/var.less +0 -36
- package/lib/calendar/var.css +0 -0
- package/lib/calendar/var.less +0 -27
- package/lib/card/var.css +0 -0
- package/lib/card/var.less +0 -18
- package/lib/cascader/var.css +0 -0
- package/lib/cascader/var.less +0 -15
- package/lib/cell/var.css +0 -0
- package/lib/cell/var.less +0 -21
- package/lib/cell-group/var.css +0 -0
- package/lib/cell-group/var.less +0 -12
- package/lib/checkbox/var.css +0 -0
- package/lib/checkbox/var.less +0 -11
- package/lib/circle/var.css +0 -0
- package/lib/circle/var.less +0 -9
- package/lib/collapse-item/var.css +0 -0
- package/lib/collapse-item/var.less +0 -9
- package/lib/contact-card/var.css +0 -0
- package/lib/contact-card/var.less +0 -6
- package/lib/contact-edit/var.css +0 -0
- package/lib/contact-edit/var.less +0 -8
- package/lib/contact-list/var.css +0 -0
- package/lib/contact-list/var.less +0 -6
- package/lib/count-down/var.css +0 -0
- package/lib/count-down/var.less +0 -5
- package/lib/coupon/var.css +0 -0
- package/lib/coupon/var.less +0 -19
- package/lib/coupon-cell/var.css +0 -0
- package/lib/coupon-cell/var.less +0 -3
- package/lib/coupon-list/var.css +0 -0
- package/lib/coupon-list/var.less +0 -10
- package/lib/datetime-picker/DatePicker.js +0 -274
- package/lib/datetime-picker/DatetimePicker.d.ts +0 -7
- package/lib/datetime-picker/DatetimePicker.js +0 -69
- package/lib/datetime-picker/TimePicker.js +0 -141
- package/lib/datetime-picker/index.d.ts +0 -12
- package/lib/datetime-picker/types.d.ts +0 -9
- package/lib/dialog/var.css +0 -0
- package/lib/dialog/var.less +0 -21
- package/lib/divider/var.css +0 -0
- package/lib/divider/var.less +0 -10
- package/lib/dropdown-item/var.css +0 -0
- package/lib/dropdown-item/var.less +0 -3
- package/lib/dropdown-menu/var.css +0 -0
- package/lib/dropdown-menu/var.less +0 -13
- package/lib/empty/var.css +0 -0
- package/lib/empty/var.less +0 -10
- package/lib/field/var.css +0 -0
- package/lib/field/var.less +0 -21
- package/lib/grid-item/var.css +0 -0
- package/lib/grid-item/var.less +0 -8
- package/lib/image/var.css +0 -0
- package/lib/image/var.less +0 -9
- package/lib/image-preview/var.css +0 -0
- package/lib/image-preview/var.less +0 -11
- package/lib/index-anchor/var.css +0 -0
- package/lib/index-anchor/var.less +0 -11
- package/lib/index-bar/var.css +0 -0
- package/lib/index-bar/var.less +0 -6
- package/lib/list/var.css +0 -0
- package/lib/list/var.less +0 -6
- package/lib/loading/var.css +0 -0
- package/lib/loading/var.less +0 -7
- package/lib/nav-bar/var.css +0 -0
- package/lib/nav-bar/var.less +0 -10
- package/lib/notice-bar/var.css +0 -0
- package/lib/notice-bar/var.less +0 -11
- package/lib/notify/var.css +0 -0
- package/lib/notify/var.less +0 -10
- package/lib/number-keyboard/var.css +0 -0
- package/lib/number-keyboard/var.less +0 -17
- package/lib/overlay/var.css +0 -0
- package/lib/overlay/var.less +0 -4
- package/lib/pagination/var.css +0 -0
- package/lib/pagination/var.less +0 -11
- package/lib/password-input/var.css +0 -0
- package/lib/password-input/var.less +0 -17
- package/lib/picker/var.css +0 -0
- package/lib/picker/var.less +0 -22
- package/lib/popover/var.css +0 -0
- package/lib/popover/var.less +0 -15
- package/lib/popup/var.css +0 -0
- package/lib/popup/var.less +0 -9
- package/lib/progress/var.css +0 -0
- package/lib/progress/var.less +0 -11
- package/lib/pull-refresh/var.css +0 -0
- package/lib/pull-refresh/var.less +0 -6
- package/lib/radio/var.css +0 -0
- package/lib/radio/var.less +0 -11
- package/lib/rate/var.css +0 -0
- package/lib/rate/var.less +0 -7
- package/lib/search/var.css +0 -0
- package/lib/search/var.less +0 -13
- package/lib/share-sheet/var.css +0 -0
- package/lib/share-sheet/var.less +0 -18
- package/lib/sidebar/var.css +0 -0
- package/lib/sidebar/var.less +0 -3
- package/lib/sidebar-item/var.css +0 -0
- package/lib/sidebar-item/var.less +0 -15
- package/lib/skeleton/var.css +0 -0
- package/lib/skeleton/var.less +0 -9
- package/lib/slider/var.css +0 -0
- package/lib/slider/var.less +0 -11
- package/lib/step/var.css +0 -0
- package/lib/step/var.less +0 -13
- package/lib/stepper/var.css +0 -0
- package/lib/stepper/var.less +0 -15
- package/lib/steps/var.css +0 -0
- package/lib/steps/var.less +0 -3
- package/lib/sticky/var.css +0 -0
- package/lib/sticky/var.less +0 -3
- package/lib/style/var.css +0 -0
- package/lib/style/var.less +0 -74
- package/lib/submit-bar/var.css +0 -0
- package/lib/submit-bar/var.less +0 -22
- package/lib/swipe/var.css +0 -0
- package/lib/swipe/var.less +0 -8
- package/lib/switch/var.css +0 -0
- package/lib/switch/var.less +0 -14
- package/lib/tabbar/var.css +0 -0
- package/lib/tabbar/var.less +0 -5
- package/lib/tabbar-item/var.css +0 -0
- package/lib/tabbar-item/var.less +0 -9
- package/lib/tabs/var.css +0 -0
- package/lib/tabs/var.less +0 -14
- package/lib/tag/var.css +0 -0
- package/lib/tag/var.less +0 -18
- package/lib/toast/var.css +0 -0
- package/lib/toast/var.less +0 -17
- package/lib/tree-select/var.css +0 -0
- package/lib/tree-select/var.less +0 -10
- package/lib/uploader/var.css +0 -0
- package/lib/uploader/var.less +0 -27
package/es/button/index.less
CHANGED
@@ -1,40 +1,42 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
:
|
4
|
-
--van-button-mini-
|
5
|
-
--van-button-
|
6
|
-
--van-button-
|
7
|
-
--van-button-small-
|
8
|
-
--van-button-
|
9
|
-
--van-button-
|
10
|
-
--van-button-
|
11
|
-
--van-button-
|
12
|
-
--van-button-
|
13
|
-
--van-button-default-
|
14
|
-
--van-button-default-
|
15
|
-
--van-button-default-
|
16
|
-
--van-button-default-color:
|
17
|
-
--van-button-
|
18
|
-
--van-button-
|
19
|
-
--van-button-primary-color:
|
20
|
-
--van-button-
|
21
|
-
--van-button-
|
22
|
-
--van-button-success-color:
|
23
|
-
--van-button-
|
24
|
-
--van-button-
|
25
|
-
--van-button-danger-color:
|
26
|
-
--van-button-
|
27
|
-
--van-button-
|
28
|
-
--van-button-warning-color:
|
29
|
-
--van-button-
|
30
|
-
--van-button-
|
31
|
-
--van-button-
|
32
|
-
--van-button-
|
33
|
-
--van-button-
|
34
|
-
--van-button-
|
35
|
-
--van-button-
|
36
|
-
|
37
|
-
|
1
|
+
body {
|
2
|
+
--van-button-mini-height: 24px;
|
3
|
+
--van-button-mini-padding: 0 var(--van-padding-base);
|
4
|
+
--van-button-mini-font-size: var(--van-font-size-xs);
|
5
|
+
--van-button-small-height: 32px;
|
6
|
+
--van-button-small-padding: 0 var(--van-padding-xs);
|
7
|
+
--van-button-small-font-size: var(--van-font-size-sm);
|
8
|
+
--van-button-normal-padding: 0 15px;
|
9
|
+
--van-button-normal-font-size: var(--van-font-size-md);
|
10
|
+
--van-button-large-height: 50px;
|
11
|
+
--van-button-default-height: 44px;
|
12
|
+
--van-button-default-line-height: 1.2;
|
13
|
+
--van-button-default-font-size: var(--van-font-size-lg);
|
14
|
+
--van-button-default-color: var(--van-text-color);
|
15
|
+
--van-button-default-background: var(--van-background-2);
|
16
|
+
--van-button-default-border-color: var(--van-gray-4);
|
17
|
+
--van-button-primary-color: var(--van-white);
|
18
|
+
--van-button-primary-background: var(--van-primary-color);
|
19
|
+
--van-button-primary-border-color: var(--van-primary-color);
|
20
|
+
--van-button-success-color: var(--van-white);
|
21
|
+
--van-button-success-background: var(--van-success-color);
|
22
|
+
--van-button-success-border-color: var(--van-success-color);
|
23
|
+
--van-button-danger-color: var(--van-white);
|
24
|
+
--van-button-danger-background: var(--van-danger-color);
|
25
|
+
--van-button-danger-border-color: var(--van-danger-color);
|
26
|
+
--van-button-warning-color: var(--van-white);
|
27
|
+
--van-button-warning-background: var(--van-warning-color);
|
28
|
+
--van-button-warning-border-color: var(--van-warning-color);
|
29
|
+
--van-button-border-width: var(--van-border-width);
|
30
|
+
--van-button-radius: var(--van-radius-md);
|
31
|
+
--van-button-round-radius: var(--van-radius-max);
|
32
|
+
--van-button-plain-background: var(--van-white);
|
33
|
+
--van-button-disabled-opacity: var(--van-disabled-opacity);
|
34
|
+
--van-button-icon-size: 1.2em;
|
35
|
+
--van-button-loading-icon-size: 20px;
|
36
|
+
}
|
37
|
+
|
38
|
+
.van-theme-dark {
|
39
|
+
--van-button-plain-background: transparent;
|
38
40
|
}
|
39
41
|
|
40
42
|
.van-button {
|
@@ -47,10 +49,11 @@
|
|
47
49
|
font-size: var(--van-button-default-font-size);
|
48
50
|
line-height: var(--van-button-default-line-height);
|
49
51
|
text-align: center;
|
50
|
-
border-radius: var(--van-button-
|
52
|
+
border-radius: var(--van-button-radius);
|
51
53
|
cursor: pointer;
|
52
|
-
transition: opacity var(--van-
|
54
|
+
transition: opacity var(--van-duration-fast);
|
53
55
|
-webkit-appearance: none;
|
56
|
+
-webkit-font-smoothing: auto;
|
54
57
|
|
55
58
|
&::before {
|
56
59
|
position: absolute;
|
@@ -80,56 +83,56 @@
|
|
80
83
|
|
81
84
|
&--default {
|
82
85
|
color: var(--van-button-default-color);
|
83
|
-
background: var(--van-button-default-background
|
86
|
+
background: var(--van-button-default-background);
|
84
87
|
border: var(--van-button-border-width) solid
|
85
88
|
var(--van-button-default-border-color);
|
86
89
|
}
|
87
90
|
|
88
91
|
&--primary {
|
89
92
|
color: var(--van-button-primary-color);
|
90
|
-
background: var(--van-button-primary-background
|
93
|
+
background: var(--van-button-primary-background);
|
91
94
|
border: var(--van-button-border-width) solid
|
92
95
|
var(--van-button-primary-border-color);
|
93
96
|
}
|
94
97
|
|
95
98
|
&--success {
|
96
99
|
color: var(--van-button-success-color);
|
97
|
-
background: var(--van-button-success-background
|
100
|
+
background: var(--van-button-success-background);
|
98
101
|
border: var(--van-button-border-width) solid
|
99
102
|
var(--van-button-success-border-color);
|
100
103
|
}
|
101
104
|
|
102
105
|
&--danger {
|
103
106
|
color: var(--van-button-danger-color);
|
104
|
-
background: var(--van-button-danger-background
|
107
|
+
background: var(--van-button-danger-background);
|
105
108
|
border: var(--van-button-border-width) solid
|
106
109
|
var(--van-button-danger-border-color);
|
107
110
|
}
|
108
111
|
|
109
112
|
&--warning {
|
110
113
|
color: var(--van-button-warning-color);
|
111
|
-
background: var(--van-button-warning-background
|
114
|
+
background: var(--van-button-warning-background);
|
112
115
|
border: var(--van-button-border-width) solid
|
113
116
|
var(--van-button-warning-border-color);
|
114
117
|
}
|
115
118
|
|
116
119
|
&--plain {
|
117
|
-
background: var(--van-button-plain-background
|
120
|
+
background: var(--van-button-plain-background);
|
118
121
|
|
119
122
|
&.van-button--primary {
|
120
|
-
color: var(--van-button-primary-background
|
123
|
+
color: var(--van-button-primary-background);
|
121
124
|
}
|
122
125
|
|
123
126
|
&.van-button--success {
|
124
|
-
color: var(--van-button-success-background
|
127
|
+
color: var(--van-button-success-background);
|
125
128
|
}
|
126
129
|
|
127
130
|
&.van-button--danger {
|
128
|
-
color: var(--van-button-danger-background
|
131
|
+
color: var(--van-button-danger-background);
|
129
132
|
}
|
130
133
|
|
131
134
|
&.van-button--warning {
|
132
|
-
color: var(--van-button-warning-background
|
135
|
+
color: var(--van-button-warning-background);
|
133
136
|
}
|
134
137
|
}
|
135
138
|
|
@@ -185,7 +188,7 @@
|
|
185
188
|
}
|
186
189
|
|
187
190
|
&--round {
|
188
|
-
border-radius: var(--van-button-round-
|
191
|
+
border-radius: var(--van-button-round-radius);
|
189
192
|
}
|
190
193
|
|
191
194
|
&--square {
|
@@ -224,11 +227,11 @@
|
|
224
227
|
|
225
228
|
&::after {
|
226
229
|
border-color: inherit;
|
227
|
-
border-radius: calc(var(--van-button-
|
230
|
+
border-radius: calc(var(--van-button-radius) * 2);
|
228
231
|
}
|
229
232
|
|
230
233
|
&.van-button--round::after {
|
231
|
-
border-radius: var(--van-button-round-
|
234
|
+
border-radius: var(--van-button-round-radius);
|
232
235
|
}
|
233
236
|
|
234
237
|
&.van-button--square::after {
|
@@ -66,6 +66,7 @@ declare const calendarProps: {
|
|
66
66
|
type: BooleanConstructor;
|
67
67
|
default: true;
|
68
68
|
};
|
69
|
+
safeAreaInsetTop: BooleanConstructor;
|
69
70
|
safeAreaInsetBottom: {
|
70
71
|
type: BooleanConstructor;
|
71
72
|
default: true;
|
@@ -152,6 +153,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
152
153
|
type: BooleanConstructor;
|
153
154
|
default: true;
|
154
155
|
};
|
156
|
+
safeAreaInsetTop: BooleanConstructor;
|
155
157
|
safeAreaInsetBottom: {
|
156
158
|
type: BooleanConstructor;
|
157
159
|
default: true;
|
@@ -171,7 +173,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
171
173
|
default: number;
|
172
174
|
validator: (val: number) => boolean;
|
173
175
|
};
|
174
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "update:show" | "confirm" | "
|
176
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "update:show" | "confirm" | "clickSubtitle" | "unselect" | "monthShow" | "overRange")[], "select" | "update:show" | "confirm" | "clickSubtitle" | "unselect" | "monthShow" | "overRange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
175
177
|
show: BooleanConstructor;
|
176
178
|
type: {
|
177
179
|
type: PropType<CalendarType>;
|
@@ -236,6 +238,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
236
238
|
type: BooleanConstructor;
|
237
239
|
default: true;
|
238
240
|
};
|
241
|
+
safeAreaInsetTop: BooleanConstructor;
|
239
242
|
safeAreaInsetBottom: {
|
240
243
|
type: BooleanConstructor;
|
241
244
|
default: true;
|
@@ -259,10 +262,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
259
262
|
onSelect?: ((...args: any[]) => any) | undefined;
|
260
263
|
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
261
264
|
onConfirm?: ((...args: any[]) => any) | undefined;
|
262
|
-
|
265
|
+
onClickSubtitle?: ((...args: any[]) => any) | undefined;
|
263
266
|
onUnselect?: ((...args: any[]) => any) | undefined;
|
264
|
-
|
265
|
-
|
267
|
+
onMonthShow?: ((...args: any[]) => any) | undefined;
|
268
|
+
onOverRange?: ((...args: any[]) => any) | undefined;
|
266
269
|
}, {
|
267
270
|
type: CalendarType;
|
268
271
|
position: PopupPosition;
|
@@ -273,8 +276,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
273
276
|
lazyRender: boolean;
|
274
277
|
closeOnClickOverlay: boolean;
|
275
278
|
closeOnPopstate: boolean;
|
276
|
-
|
277
|
-
maxDate: Date;
|
279
|
+
safeAreaInsetTop: boolean;
|
278
280
|
poppable: boolean;
|
279
281
|
maxRange: string | number;
|
280
282
|
showMark: boolean;
|
@@ -283,6 +285,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
283
285
|
allowSameDay: boolean;
|
284
286
|
showSubtitle: boolean;
|
285
287
|
showRangePrompt: boolean;
|
288
|
+
minDate: Date;
|
289
|
+
maxDate: Date;
|
286
290
|
firstDayOfWeek: string | number;
|
287
291
|
}>;
|
288
292
|
export default _default;
|
package/es/calendar/Calendar.js
CHANGED
@@ -36,6 +36,7 @@ const calendarProps = {
|
|
36
36
|
showRangePrompt: truthProp,
|
37
37
|
confirmDisabledText: String,
|
38
38
|
closeOnClickOverlay: truthProp,
|
39
|
+
safeAreaInsetTop: Boolean,
|
39
40
|
safeAreaInsetBottom: truthProp,
|
40
41
|
minDate: {
|
41
42
|
type: Date,
|
@@ -59,7 +60,7 @@ const calendarProps = {
|
|
59
60
|
var stdin_default = defineComponent({
|
60
61
|
name,
|
61
62
|
props: calendarProps,
|
62
|
-
emits: ["select", "confirm", "unselect", "
|
63
|
+
emits: ["select", "confirm", "unselect", "monthShow", "overRange", "update:show", "clickSubtitle"],
|
63
64
|
setup(props, {
|
64
65
|
emit,
|
65
66
|
slots
|
@@ -151,7 +152,7 @@ var stdin_default = defineComponent({
|
|
151
152
|
}
|
152
153
|
if (!monthRefs.value[i].showed) {
|
153
154
|
monthRefs.value[i].showed = true;
|
154
|
-
emit("
|
155
|
+
emit("monthShow", {
|
155
156
|
date: month.date,
|
156
157
|
title: month.getTitle()
|
157
158
|
});
|
@@ -215,7 +216,7 @@ var stdin_default = defineComponent({
|
|
215
216
|
if (showRangePrompt) {
|
216
217
|
Toast(rangePrompt || t("rangePrompt", maxRange));
|
217
218
|
}
|
218
|
-
emit("
|
219
|
+
emit("overRange");
|
219
220
|
return false;
|
220
221
|
}
|
221
222
|
return true;
|
@@ -331,7 +332,7 @@ var stdin_default = defineComponent({
|
|
331
332
|
return _createVNode(Button, {
|
332
333
|
"round": true,
|
333
334
|
"block": true,
|
334
|
-
"type": "
|
335
|
+
"type": "primary",
|
335
336
|
"color": props.color,
|
336
337
|
"class": bem("confirm"),
|
337
338
|
"disabled": disabled,
|
@@ -357,7 +358,7 @@ var stdin_default = defineComponent({
|
|
357
358
|
"showTitle": props.showTitle,
|
358
359
|
"showSubtitle": props.showSubtitle,
|
359
360
|
"firstDayOfWeek": dayOffset.value,
|
360
|
-
"
|
361
|
+
"onClickSubtitle": (event) => emit("clickSubtitle", event)
|
361
362
|
}, pick(slots, ["title", "subtitle"])), _createVNode("div", {
|
362
363
|
"ref": bodyRef,
|
363
364
|
"class": bem("body"),
|
@@ -384,6 +385,7 @@ var stdin_default = defineComponent({
|
|
384
385
|
"closeable": props.showTitle || props.showSubtitle,
|
385
386
|
"teleport": props.teleport,
|
386
387
|
"closeOnPopstate": props.closeOnPopstate,
|
388
|
+
"safeAreaInsetTop": props.safeAreaInsetTop,
|
387
389
|
"closeOnClickOverlay": props.closeOnClickOverlay,
|
388
390
|
"onUpdate:show": updateShow
|
389
391
|
}, {
|
@@ -4,14 +4,14 @@ 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, "
|
7
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "clickSubtitle"[], "clickSubtitle", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
8
8
|
title: StringConstructor;
|
9
9
|
subtitle: StringConstructor;
|
10
10
|
showTitle: BooleanConstructor;
|
11
11
|
showSubtitle: BooleanConstructor;
|
12
12
|
firstDayOfWeek: NumberConstructor;
|
13
13
|
}>> & {
|
14
|
-
|
14
|
+
onClickSubtitle?: ((...args: any[]) => any) | undefined;
|
15
15
|
}, {
|
16
16
|
showTitle: boolean;
|
17
17
|
showSubtitle: boolean;
|
@@ -12,7 +12,7 @@ var stdin_default = defineComponent({
|
|
12
12
|
showSubtitle: Boolean,
|
13
13
|
firstDayOfWeek: Number
|
14
14
|
},
|
15
|
-
emits: ["
|
15
|
+
emits: ["clickSubtitle"],
|
16
16
|
setup(props, {
|
17
17
|
slots,
|
18
18
|
emit
|
@@ -26,7 +26,7 @@ var stdin_default = defineComponent({
|
|
26
26
|
}, [title]);
|
27
27
|
}
|
28
28
|
};
|
29
|
-
const onClickSubtitle = (event) => emit("
|
29
|
+
const onClickSubtitle = (event) => emit("clickSubtitle", event);
|
30
30
|
const renderSubtitle = () => {
|
31
31
|
if (props.showSubtitle) {
|
32
32
|
const title = slots.subtitle ? slots.subtitle() : props.subtitle;
|
@@ -50,7 +50,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
50
50
|
showSubtitle: BooleanConstructor;
|
51
51
|
showMonthTitle: BooleanConstructor;
|
52
52
|
firstDayOfWeek: NumberConstructor;
|
53
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
53
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
54
54
|
date: {
|
55
55
|
type: DateConstructor;
|
56
56
|
required: true;
|
@@ -76,7 +76,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
76
76
|
firstDayOfWeek: NumberConstructor;
|
77
77
|
}>> & {
|
78
78
|
onClick?: ((...args: any[]) => any) | undefined;
|
79
|
-
"onUpdate-height"?: ((...args: any[]) => any) | undefined;
|
80
79
|
}, {
|
81
80
|
lazyRender: boolean;
|
82
81
|
showMark: boolean;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { createVNode as _createVNode } from "vue";
|
2
2
|
import { ref, computed, defineComponent } from "vue";
|
3
3
|
import { pick, addUnit, numericProp, setScrollTop, createNamespace, makeRequiredProp } from "../utils";
|
4
|
-
import { getMonthEndDay } from "../
|
4
|
+
import { getMonthEndDay } from "../date-picker/utils";
|
5
5
|
import { t, bem, compareDay, getPrevDay, getNextDay, formatMonthTitle } from "./utils";
|
6
6
|
import { useRect, useToggle } from "@vant/use";
|
7
7
|
import { useExpose } from "../composables/use-expose";
|
@@ -27,7 +27,7 @@ const calendarMonthProps = {
|
|
27
27
|
var stdin_default = defineComponent({
|
28
28
|
name,
|
29
29
|
props: calendarMonthProps,
|
30
|
-
emits: ["click"
|
30
|
+
emits: ["click"],
|
31
31
|
setup(props, {
|
32
32
|
emit,
|
33
33
|
slots
|
package/es/calendar/index.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
body{--van-calendar-background: var(--van-background-2);--van-calendar-popup-height: 80%;--van-calendar-header-shadow: 0 2px 10px rgba(125, 126, 128, .16);--van-calendar-header-title-height: 44px;--van-calendar-header-title-font-size: var(--van-font-size-lg);--van-calendar-header-subtitle-font-size: var(--van-font-size-md);--van-calendar-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: var(--van-primary-color);--van-calendar-range-middle-color: var(--van-primary-color);--van-calendar-range-middle-background-opacity: .1;--van-calendar-selected-day-size: 54px;--van-calendar-selected-day-color: var(--van-white);--van-calendar-info-font-size: var(--van-font-size-xs);--van-calendar-info-line-height: var(--van-line-height-xs);--van-calendar-selected-day-background: var(--van-primary-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-theme-dark{--van-calendar-month-mark-color: rgba(100, 101, 102, .2);--van-calendar-day-disabled-color: var(--van-gray-7)}.van-calendar{display:flex;flex-direction:column;height:100%;background:var(--van-calendar-background)}.van-calendar__popup.van-popup--top,.van-calendar__popup.van-popup--bottom{height:var(--van-calendar-popup-height)}.van-calendar__popup.van-popup--left,.van-calendar__popup.van-popup--right{height:100%}.van-calendar__popup .van-popup__close-icon{top:11px}.van-calendar__header{flex-shrink:0;box-shadow:var(--van-calendar-header-shadow)}.van-calendar__month-title,.van-calendar__header-title,.van-calendar__header-subtitle{color:var(--van-text-color);height:var(--van-calendar-header-title-height);font-weight:var(--van-font-bold);line-height:var(--van-calendar-header-title-height);text-align:center}.van-calendar__header-title{font-size:var(--van-calendar-header-title-font-size)}.van-calendar__header-subtitle{font-size:var(--van-calendar-header-subtitle-font-size)}.van-calendar__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)}.van-calendar__day--start{border-radius:var(--van-radius-md) 0 0 var(--van-radius-md)}.van-calendar__day--end{border-radius:0 var(--van-radius-md) var(--van-radius-md) 0}.van-calendar__day--start-end,.van-calendar__day--multiple-selected{border-radius:var(--van-radius-md)}.van-calendar__day--middle{color:var(--van-calendar-range-middle-color)}.van-calendar__day--middle:after{position:absolute;top:0;right:0;bottom:0;left:0;background-color:currentColor;opacity:var(--van-calendar-range-middle-background-opacity);content:""}.van-calendar__day--disabled{color:var(--van-calendar-day-disabled-color);cursor:default}.van-calendar__top-info,.van-calendar__bottom-info{position:absolute;right:0;left:0;font-size:var(--van-calendar-info-font-size);line-height:var(--van-calendar-info-line-height)}@media (max-width: 350px){.van-calendar__top-info,.van-calendar__bottom-info{font-size:9px}}.van-calendar__top-info{top:6px}.van-calendar__bottom-info{bottom:6px}.van-calendar__selected-day{width:var(--van-calendar-selected-day-size);height:var(--van-calendar-selected-day-size);color:var(--van-calendar-selected-day-color);background:var(--van-calendar-selected-day-background);border-radius:var(--van-radius-md)}.van-calendar__footer{flex-shrink:0;padding-left:var(--van-padding-md);padding-right:var(--van-padding-md)}.van-calendar__confirm{height:var(--van-calendar-confirm-button-height);margin:var(--van-calendar-confirm-button-margin)}
|
package/es/calendar/index.d.ts
CHANGED
@@ -63,6 +63,7 @@ export declare const Calendar: import("../utils").WithInstall<import("vue").Defi
|
|
63
63
|
type: BooleanConstructor;
|
64
64
|
default: true;
|
65
65
|
};
|
66
|
+
safeAreaInsetTop: BooleanConstructor;
|
66
67
|
safeAreaInsetBottom: {
|
67
68
|
type: BooleanConstructor;
|
68
69
|
default: true;
|
@@ -82,7 +83,7 @@ export declare const Calendar: import("../utils").WithInstall<import("vue").Defi
|
|
82
83
|
default: number;
|
83
84
|
validator: (val: number) => boolean;
|
84
85
|
};
|
85
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "update:show" | "confirm" | "
|
86
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "update:show" | "confirm" | "clickSubtitle" | "unselect" | "monthShow" | "overRange")[], "select" | "update:show" | "confirm" | "clickSubtitle" | "unselect" | "monthShow" | "overRange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
86
87
|
show: BooleanConstructor;
|
87
88
|
type: {
|
88
89
|
type: import("vue").PropType<import("./types").CalendarType>;
|
@@ -147,6 +148,7 @@ export declare const Calendar: import("../utils").WithInstall<import("vue").Defi
|
|
147
148
|
type: BooleanConstructor;
|
148
149
|
default: true;
|
149
150
|
};
|
151
|
+
safeAreaInsetTop: BooleanConstructor;
|
150
152
|
safeAreaInsetBottom: {
|
151
153
|
type: BooleanConstructor;
|
152
154
|
default: true;
|
@@ -170,10 +172,10 @@ export declare const Calendar: import("../utils").WithInstall<import("vue").Defi
|
|
170
172
|
onSelect?: ((...args: any[]) => any) | undefined;
|
171
173
|
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
172
174
|
onConfirm?: ((...args: any[]) => any) | undefined;
|
173
|
-
|
175
|
+
onClickSubtitle?: ((...args: any[]) => any) | undefined;
|
174
176
|
onUnselect?: ((...args: any[]) => any) | undefined;
|
175
|
-
|
176
|
-
|
177
|
+
onMonthShow?: ((...args: any[]) => any) | undefined;
|
178
|
+
onOverRange?: ((...args: any[]) => any) | undefined;
|
177
179
|
}, {
|
178
180
|
type: import("./types").CalendarType;
|
179
181
|
position: import("..").PopupPosition;
|
@@ -184,8 +186,7 @@ export declare const Calendar: import("../utils").WithInstall<import("vue").Defi
|
|
184
186
|
lazyRender: boolean;
|
185
187
|
closeOnClickOverlay: boolean;
|
186
188
|
closeOnPopstate: boolean;
|
187
|
-
|
188
|
-
maxDate: Date;
|
189
|
+
safeAreaInsetTop: boolean;
|
189
190
|
poppable: boolean;
|
190
191
|
maxRange: string | number;
|
191
192
|
showMark: boolean;
|
@@ -194,6 +195,8 @@ export declare const Calendar: import("../utils").WithInstall<import("vue").Defi
|
|
194
195
|
allowSameDay: boolean;
|
195
196
|
showSubtitle: boolean;
|
196
197
|
showRangePrompt: boolean;
|
198
|
+
minDate: Date;
|
199
|
+
maxDate: Date;
|
197
200
|
firstDayOfWeek: string | number;
|
198
201
|
}>>;
|
199
202
|
export default Calendar;
|
package/es/calendar/index.less
CHANGED
@@ -1,38 +1,41 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
:
|
4
|
-
--van-calendar-
|
5
|
-
--van-calendar-
|
6
|
-
--van-calendar-header-
|
7
|
-
--van-calendar-header-
|
8
|
-
--van-calendar-
|
9
|
-
--van-calendar-
|
10
|
-
--van-calendar-
|
11
|
-
--van-calendar-
|
12
|
-
--van-calendar-month-
|
13
|
-
--van-calendar-
|
14
|
-
--van-calendar-
|
15
|
-
--van-calendar-
|
16
|
-
--van-calendar-
|
17
|
-
--van-calendar-range-
|
18
|
-
--van-calendar-range-
|
19
|
-
--van-calendar-
|
20
|
-
--van-calendar-
|
21
|
-
--van-calendar-
|
22
|
-
--van-calendar-
|
23
|
-
--van-calendar-
|
24
|
-
--van-calendar-
|
25
|
-
--van-calendar-
|
26
|
-
--van-calendar-
|
27
|
-
|
28
|
-
|
1
|
+
body {
|
2
|
+
--van-calendar-background: var(--van-background-2);
|
3
|
+
--van-calendar-popup-height: 80%;
|
4
|
+
--van-calendar-header-shadow: 0 2px 10px rgba(125, 126, 128, 0.16);
|
5
|
+
--van-calendar-header-title-height: 44px;
|
6
|
+
--van-calendar-header-title-font-size: var(--van-font-size-lg);
|
7
|
+
--van-calendar-header-subtitle-font-size: var(--van-font-size-md);
|
8
|
+
--van-calendar-weekdays-height: 30px;
|
9
|
+
--van-calendar-weekdays-font-size: var(--van-font-size-sm);
|
10
|
+
--van-calendar-month-title-font-size: var(--van-font-size-md);
|
11
|
+
--van-calendar-month-mark-color: rgba(242, 243, 245, 0.8);
|
12
|
+
--van-calendar-month-mark-font-size: 160px;
|
13
|
+
--van-calendar-day-height: 64px;
|
14
|
+
--van-calendar-day-font-size: var(--van-font-size-lg);
|
15
|
+
--van-calendar-range-edge-color: var(--van-white);
|
16
|
+
--van-calendar-range-edge-background: var(--van-primary-color);
|
17
|
+
--van-calendar-range-middle-color: var(--van-primary-color);
|
18
|
+
--van-calendar-range-middle-background-opacity: 0.1;
|
19
|
+
--van-calendar-selected-day-size: 54px;
|
20
|
+
--van-calendar-selected-day-color: var(--van-white);
|
21
|
+
--van-calendar-info-font-size: var(--van-font-size-xs);
|
22
|
+
--van-calendar-info-line-height: var(--van-line-height-xs);
|
23
|
+
--van-calendar-selected-day-background: var(--van-primary-color);
|
24
|
+
--van-calendar-day-disabled-color: var(--van-text-color-3);
|
25
|
+
--van-calendar-confirm-button-height: 36px;
|
26
|
+
--van-calendar-confirm-button-margin: 7px 0;
|
27
|
+
}
|
28
|
+
|
29
|
+
.van-theme-dark {
|
30
|
+
--van-calendar-month-mark-color: rgba(100, 101, 102, 0.2);
|
31
|
+
--van-calendar-day-disabled-color: var(--van-gray-7);
|
29
32
|
}
|
30
33
|
|
31
34
|
.van-calendar {
|
32
35
|
display: flex;
|
33
36
|
flex-direction: column;
|
34
37
|
height: 100%;
|
35
|
-
background: var(--van-calendar-background
|
38
|
+
background: var(--van-calendar-background);
|
36
39
|
|
37
40
|
&__popup {
|
38
41
|
&.van-popup--top,
|
@@ -52,14 +55,15 @@
|
|
52
55
|
|
53
56
|
&__header {
|
54
57
|
flex-shrink: 0;
|
55
|
-
box-shadow: var(--van-calendar-header-
|
58
|
+
box-shadow: var(--van-calendar-header-shadow);
|
56
59
|
}
|
57
60
|
|
58
61
|
&__month-title,
|
59
62
|
&__header-title,
|
60
63
|
&__header-subtitle {
|
64
|
+
color: var(--van-text-color);
|
61
65
|
height: var(--van-calendar-header-title-height);
|
62
|
-
font-weight: var(--van-font-
|
66
|
+
font-weight: var(--van-font-bold);
|
63
67
|
line-height: var(--van-calendar-header-title-height);
|
64
68
|
text-align: center;
|
65
69
|
}
|
@@ -132,20 +136,20 @@
|
|
132
136
|
&--multiple-middle,
|
133
137
|
&--multiple-selected {
|
134
138
|
color: var(--van-calendar-range-edge-color);
|
135
|
-
background: var(--van-calendar-range-edge-background
|
139
|
+
background: var(--van-calendar-range-edge-background);
|
136
140
|
}
|
137
141
|
|
138
142
|
&--start {
|
139
|
-
border-radius: var(--van-
|
143
|
+
border-radius: var(--van-radius-md) 0 0 var(--van-radius-md);
|
140
144
|
}
|
141
145
|
|
142
146
|
&--end {
|
143
|
-
border-radius: 0 var(--van-
|
147
|
+
border-radius: 0 var(--van-radius-md) var(--van-radius-md) 0;
|
144
148
|
}
|
145
149
|
|
146
150
|
&--start-end,
|
147
151
|
&--multiple-selected {
|
148
|
-
border-radius: var(--van-
|
152
|
+
border-radius: var(--van-radius-md);
|
149
153
|
}
|
150
154
|
|
151
155
|
&--middle {
|
@@ -194,8 +198,8 @@
|
|
194
198
|
width: var(--van-calendar-selected-day-size);
|
195
199
|
height: var(--van-calendar-selected-day-size);
|
196
200
|
color: var(--van-calendar-selected-day-color);
|
197
|
-
background: var(--van-calendar-selected-day-background
|
198
|
-
border-radius: var(--van-
|
201
|
+
background: var(--van-calendar-selected-day-background);
|
202
|
+
border-radius: var(--van-radius-md);
|
199
203
|
}
|
200
204
|
|
201
205
|
&__footer {
|
package/es/card/Card.d.ts
CHANGED
@@ -31,7 +31,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
31
31
|
};
|
32
32
|
thumbLink: StringConstructor;
|
33
33
|
originPrice: (NumberConstructor | StringConstructor)[];
|
34
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "
|
34
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "clickThumb"[], "clickThumb", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
35
35
|
tag: StringConstructor;
|
36
36
|
num: (NumberConstructor | StringConstructor)[];
|
37
37
|
desc: StringConstructor;
|
@@ -47,7 +47,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
47
47
|
thumbLink: StringConstructor;
|
48
48
|
originPrice: (NumberConstructor | StringConstructor)[];
|
49
49
|
}>> & {
|
50
|
-
|
50
|
+
onClickThumb?: ((...args: any[]) => any) | undefined;
|
51
51
|
}, {
|
52
52
|
lazyLoad: boolean;
|
53
53
|
centered: boolean;
|
package/es/card/Card.js
CHANGED
@@ -20,7 +20,7 @@ const cardProps = {
|
|
20
20
|
var stdin_default = defineComponent({
|
21
21
|
name,
|
22
22
|
props: cardProps,
|
23
|
-
emits: ["
|
23
|
+
emits: ["clickThumb"],
|
24
24
|
setup(props, {
|
25
25
|
slots,
|
26
26
|
emit
|
@@ -41,7 +41,7 @@ var stdin_default = defineComponent({
|
|
41
41
|
"class": bem("tag")
|
42
42
|
}, [slots.tag ? slots.tag() : _createVNode(Tag, {
|
43
43
|
"mark": true,
|
44
|
-
"type": "
|
44
|
+
"type": "primary"
|
45
45
|
}, {
|
46
46
|
default: () => [props.tag]
|
47
47
|
})]);
|
@@ -64,7 +64,7 @@ var stdin_default = defineComponent({
|
|
64
64
|
return _createVNode("a", {
|
65
65
|
"href": props.thumbLink,
|
66
66
|
"class": bem("thumb"),
|
67
|
-
"onClick": (event) => emit("
|
67
|
+
"onClick": (event) => emit("clickThumb", event)
|
68
68
|
}, [renderThumbImage(), renderThumbTag()]);
|
69
69
|
}
|
70
70
|
};
|