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/lib/cascader/var.less
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
@import '../style/var.less';
|
2
|
-
|
3
|
-
@cascader-header-height: 48px;
|
4
|
-
@cascader-header-padding: 0 var(--van-padding-md);
|
5
|
-
@cascader-title-font-size: var(--van-font-size-lg);
|
6
|
-
@cascader-title-line-height: 20px;
|
7
|
-
@cascader-close-icon-size: 22px;
|
8
|
-
@cascader-close-icon-color: var(--van-gray-5);
|
9
|
-
@cascader-selected-icon-size: 18px;
|
10
|
-
@cascader-tabs-height: 48px;
|
11
|
-
@cascader-active-color: var(--van-danger-color);
|
12
|
-
@cascader-options-height: 384px;
|
13
|
-
@cascader-option-disabled-color: var(--van-text-color-3);
|
14
|
-
@cascader-tab-color: var(--van-text-color);
|
15
|
-
@cascader-unselected-tab-color: var(--van-text-color-2);
|
package/lib/cell/var.css
DELETED
File without changes
|
package/lib/cell/var.less
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
@import '../style/var.less';
|
2
|
-
|
3
|
-
@cell-font-size: var(--van-font-size-md);
|
4
|
-
@cell-line-height: 24px;
|
5
|
-
@cell-vertical-padding: 10px;
|
6
|
-
@cell-horizontal-padding: var(--van-padding-md);
|
7
|
-
@cell-text-color: var(--van-text-color);
|
8
|
-
@cell-background-color: var(--van-background-color-light);
|
9
|
-
@cell-border-color: var(--van-border-color);
|
10
|
-
@cell-active-color: var(--van-active-color);
|
11
|
-
@cell-required-color: var(--van-danger-color);
|
12
|
-
@cell-label-color: var(--van-text-color-2);
|
13
|
-
@cell-label-font-size: var(--van-font-size-sm);
|
14
|
-
@cell-label-line-height: var(--van-line-height-sm);
|
15
|
-
@cell-label-margin-top: var(--van-padding-base);
|
16
|
-
@cell-value-color: var(--van-text-color-2);
|
17
|
-
@cell-icon-size: 16px;
|
18
|
-
@cell-right-icon-color: var(--van-gray-6);
|
19
|
-
@cell-large-vertical-padding: var(--van-padding-sm);
|
20
|
-
@cell-large-title-font-size: var(--van-font-size-lg);
|
21
|
-
@cell-large-label-font-size: var(--van-font-size-md);
|
package/lib/cell-group/var.css
DELETED
File without changes
|
package/lib/cell-group/var.less
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
@import '../style/var.less';
|
2
|
-
|
3
|
-
@cell-group-background-color: var(--van-background-color-light);
|
4
|
-
@cell-group-title-color: var(--van-text-color-2);
|
5
|
-
@cell-group-title-padding: var(--van-padding-md) var(--van-padding-md)
|
6
|
-
var(--van-padding-xs);
|
7
|
-
@cell-group-title-font-size: var(--van-font-size-md);
|
8
|
-
@cell-group-title-line-height: 16px;
|
9
|
-
@cell-group-inset-padding: 0 var(--van-padding-md);
|
10
|
-
@cell-group-inset-border-radius: var(--van-border-radius-lg);
|
11
|
-
@cell-group-inset-title-padding: var(--van-padding-md) var(--van-padding-md)
|
12
|
-
var(--van-padding-xs) var(--van-padding-xl);
|
package/lib/checkbox/var.css
DELETED
File without changes
|
package/lib/checkbox/var.less
DELETED
@@ -1,11 +0,0 @@
|
|
1
|
-
@import '../style/var.less';
|
2
|
-
|
3
|
-
@checkbox-size: 20px;
|
4
|
-
@checkbox-border-color: var(--van-gray-5);
|
5
|
-
@checkbox-transition-duration: var(--van-animation-duration-fast);
|
6
|
-
@checkbox-label-margin: var(--van-padding-xs);
|
7
|
-
@checkbox-label-color: var(--van-text-color);
|
8
|
-
@checkbox-checked-icon-color: var(--van-primary-color);
|
9
|
-
@checkbox-disabled-icon-color: var(--van-gray-5);
|
10
|
-
@checkbox-disabled-label-color: var(--van-text-color-3);
|
11
|
-
@checkbox-disabled-background-color: var(--van-border-color);
|
package/lib/circle/var.css
DELETED
File without changes
|
package/lib/circle/var.less
DELETED
@@ -1,9 +0,0 @@
|
|
1
|
-
@import '../style/var.less';
|
2
|
-
|
3
|
-
@circle-size: 100px;
|
4
|
-
@circle-color: var(--van-primary-color);
|
5
|
-
@circle-layer-color: var(--van-white);
|
6
|
-
@circle-text-color: var(--van-text-color);
|
7
|
-
@circle-text-font-weight: var(--van-font-weight-bold);
|
8
|
-
@circle-text-font-size: var(--van-font-size-md);
|
9
|
-
@circle-text-line-height: var(--van-line-height-md);
|
File without changes
|
@@ -1,9 +0,0 @@
|
|
1
|
-
@import '../style/var.less';
|
2
|
-
|
3
|
-
@collapse-item-transition-duration: var(--van-animation-duration-base);
|
4
|
-
@collapse-item-content-padding: var(--van-padding-sm) var(--van-padding-md);
|
5
|
-
@collapse-item-content-font-size: var(--van-font-size-md);
|
6
|
-
@collapse-item-content-line-height: 1.5;
|
7
|
-
@collapse-item-content-text-color: var(--van-text-color-2);
|
8
|
-
@collapse-item-content-background-color: var(--van-background-color-light);
|
9
|
-
@collapse-item-title-disabled-color: var(--van-text-color-3);
|
package/lib/contact-card/var.css
DELETED
File without changes
|
package/lib/contact-edit/var.css
DELETED
File without changes
|
@@ -1,8 +0,0 @@
|
|
1
|
-
@import '../style/var.less';
|
2
|
-
|
3
|
-
@contact-edit-padding: var(--van-padding-md);
|
4
|
-
@contact-edit-fields-radius: var(--van-border-radius-md);
|
5
|
-
@contact-edit-buttons-padding: var(--van-padding-xl) 0;
|
6
|
-
@contact-edit-button-margin-bottom: var(--van-padding-sm);
|
7
|
-
@contact-edit-button-font-size: var(--van-font-size-lg);
|
8
|
-
@contact-edit-field-label-width: 4.1em;
|
package/lib/contact-list/var.css
DELETED
File without changes
|
package/lib/count-down/var.css
DELETED
File without changes
|
package/lib/count-down/var.less
DELETED
package/lib/coupon/var.css
DELETED
File without changes
|
package/lib/coupon/var.less
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
@import '../style/var.less';
|
2
|
-
|
3
|
-
@coupon-margin: 0 var(--van-padding-sm) var(--van-padding-sm);
|
4
|
-
@coupon-content-height: 84px;
|
5
|
-
@coupon-content-padding: 14px 0;
|
6
|
-
@coupon-content-text-color: var(--van-text-color);
|
7
|
-
@coupon-background-color: var(--van-background-color-light);
|
8
|
-
@coupon-active-background-color: var(--van-active-color);
|
9
|
-
@coupon-border-radius: var(--van-border-radius-lg);
|
10
|
-
@coupon-box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
|
11
|
-
@coupon-head-width: 96px;
|
12
|
-
@coupon-amount-color: var(--van-danger-color);
|
13
|
-
@coupon-amount-font-size: 30px;
|
14
|
-
@coupon-currency-font-size: 40%;
|
15
|
-
@coupon-name-font-size: var(--van-font-size-md);
|
16
|
-
@coupon-disabled-text-color: var(--van-text-color-2);
|
17
|
-
@coupon-description-padding: var(--van-padding-xs) var(--van-padding-md);
|
18
|
-
@coupon-description-border-color: var(--van-border-color);
|
19
|
-
@coupon-corner-checkbox-icon-color: var(--van-danger-color);
|
package/lib/coupon-cell/var.css
DELETED
File without changes
|
package/lib/coupon-cell/var.less
DELETED
package/lib/coupon-list/var.css
DELETED
File without changes
|
package/lib/coupon-list/var.less
DELETED
@@ -1,10 +0,0 @@
|
|
1
|
-
@import '../style/var.less';
|
2
|
-
|
3
|
-
@coupon-list-background-color: var(--van-background-color);
|
4
|
-
@coupon-list-field-padding: 5px 0 5px var(--van-padding-md);
|
5
|
-
@coupon-list-exchange-button-height: 32px;
|
6
|
-
@coupon-list-close-button-height: 40px;
|
7
|
-
@coupon-list-empty-image-size: 200px;
|
8
|
-
@coupon-list-empty-tip-color: var(--van-text-color-2);
|
9
|
-
@coupon-list-empty-tip-font-size: var(--van-font-size-md);
|
10
|
-
@coupon-list-empty-tip-line-height: var(--van-line-height-md);
|
@@ -1,274 +0,0 @@
|
|
1
|
-
var __defProp = Object.defineProperty;
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
5
|
-
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
6
|
-
var __export = (target, all) => {
|
7
|
-
for (var name2 in all)
|
8
|
-
__defProp(target, name2, { get: all[name2], enumerable: true });
|
9
|
-
};
|
10
|
-
var __reExport = (target, module2, copyDefault, desc) => {
|
11
|
-
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
12
|
-
for (let key of __getOwnPropNames(module2))
|
13
|
-
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
14
|
-
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
15
|
-
}
|
16
|
-
return target;
|
17
|
-
};
|
18
|
-
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
19
|
-
return (module2, temp) => {
|
20
|
-
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
21
|
-
};
|
22
|
-
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
23
|
-
var stdin_exports = {};
|
24
|
-
__export(stdin_exports, {
|
25
|
-
default: () => stdin_default
|
26
|
-
});
|
27
|
-
var import_vue = require("vue");
|
28
|
-
var import_vue2 = require("vue");
|
29
|
-
var import_utils = require("../utils");
|
30
|
-
var import_utils2 = require("./utils");
|
31
|
-
var import_use_expose = require("../composables/use-expose");
|
32
|
-
var import_picker = require("../picker");
|
33
|
-
const currentYear = new Date().getFullYear();
|
34
|
-
const [name] = (0, import_utils.createNamespace)("date-picker");
|
35
|
-
var stdin_default = (0, import_vue2.defineComponent)({
|
36
|
-
name,
|
37
|
-
props: (0, import_utils.extend)({}, import_utils2.sharedProps, {
|
38
|
-
type: (0, import_utils.makeStringProp)("datetime"),
|
39
|
-
modelValue: Date,
|
40
|
-
minDate: {
|
41
|
-
type: Date,
|
42
|
-
default: () => new Date(currentYear - 10, 0, 1),
|
43
|
-
validator: import_utils.isDate
|
44
|
-
},
|
45
|
-
maxDate: {
|
46
|
-
type: Date,
|
47
|
-
default: () => new Date(currentYear + 10, 11, 31),
|
48
|
-
validator: import_utils.isDate
|
49
|
-
}
|
50
|
-
}),
|
51
|
-
emits: ["confirm", "cancel", "change", "update:modelValue"],
|
52
|
-
setup(props, {
|
53
|
-
emit,
|
54
|
-
slots
|
55
|
-
}) {
|
56
|
-
const formatValue = (value) => {
|
57
|
-
if ((0, import_utils.isDate)(value)) {
|
58
|
-
const timestamp = (0, import_utils.clamp)(value.getTime(), props.minDate.getTime(), props.maxDate.getTime());
|
59
|
-
return new Date(timestamp);
|
60
|
-
}
|
61
|
-
return void 0;
|
62
|
-
};
|
63
|
-
const picker = (0, import_vue2.ref)();
|
64
|
-
const currentDate = (0, import_vue2.ref)(formatValue(props.modelValue));
|
65
|
-
const getBoundary = (type, value) => {
|
66
|
-
const boundary = props[`${type}Date`];
|
67
|
-
const year = boundary.getFullYear();
|
68
|
-
let month = 1;
|
69
|
-
let date = 1;
|
70
|
-
let hour = 0;
|
71
|
-
let minute = 0;
|
72
|
-
if (type === "max") {
|
73
|
-
month = 12;
|
74
|
-
date = (0, import_utils2.getMonthEndDay)(value.getFullYear(), value.getMonth() + 1);
|
75
|
-
hour = 23;
|
76
|
-
minute = 59;
|
77
|
-
}
|
78
|
-
if (value.getFullYear() === year) {
|
79
|
-
month = boundary.getMonth() + 1;
|
80
|
-
if (value.getMonth() + 1 === month) {
|
81
|
-
date = boundary.getDate();
|
82
|
-
if (value.getDate() === date) {
|
83
|
-
hour = boundary.getHours();
|
84
|
-
if (value.getHours() === hour) {
|
85
|
-
minute = boundary.getMinutes();
|
86
|
-
}
|
87
|
-
}
|
88
|
-
}
|
89
|
-
}
|
90
|
-
return {
|
91
|
-
[`${type}Year`]: year,
|
92
|
-
[`${type}Month`]: month,
|
93
|
-
[`${type}Date`]: date,
|
94
|
-
[`${type}Hour`]: hour,
|
95
|
-
[`${type}Minute`]: minute
|
96
|
-
};
|
97
|
-
};
|
98
|
-
const ranges = (0, import_vue2.computed)(() => {
|
99
|
-
const {
|
100
|
-
maxYear,
|
101
|
-
maxDate,
|
102
|
-
maxMonth,
|
103
|
-
maxHour,
|
104
|
-
maxMinute
|
105
|
-
} = getBoundary("max", currentDate.value || props.minDate);
|
106
|
-
const {
|
107
|
-
minYear,
|
108
|
-
minDate,
|
109
|
-
minMonth,
|
110
|
-
minHour,
|
111
|
-
minMinute
|
112
|
-
} = getBoundary("min", currentDate.value || props.minDate);
|
113
|
-
let result = [{
|
114
|
-
type: "year",
|
115
|
-
range: [minYear, maxYear]
|
116
|
-
}, {
|
117
|
-
type: "month",
|
118
|
-
range: [minMonth, maxMonth]
|
119
|
-
}, {
|
120
|
-
type: "day",
|
121
|
-
range: [minDate, maxDate]
|
122
|
-
}, {
|
123
|
-
type: "hour",
|
124
|
-
range: [minHour, maxHour]
|
125
|
-
}, {
|
126
|
-
type: "minute",
|
127
|
-
range: [minMinute, maxMinute]
|
128
|
-
}];
|
129
|
-
switch (props.type) {
|
130
|
-
case "date":
|
131
|
-
result = result.slice(0, 3);
|
132
|
-
break;
|
133
|
-
case "year-month":
|
134
|
-
result = result.slice(0, 2);
|
135
|
-
break;
|
136
|
-
case "month-day":
|
137
|
-
result = result.slice(1, 3);
|
138
|
-
break;
|
139
|
-
case "datehour":
|
140
|
-
result = result.slice(0, 4);
|
141
|
-
break;
|
142
|
-
}
|
143
|
-
if (props.columnsOrder) {
|
144
|
-
const columnsOrder = props.columnsOrder.concat(result.map((column) => column.type));
|
145
|
-
result.sort((a, b) => columnsOrder.indexOf(a.type) - columnsOrder.indexOf(b.type));
|
146
|
-
}
|
147
|
-
return result;
|
148
|
-
});
|
149
|
-
const originColumns = (0, import_vue2.computed)(() => ranges.value.map(({
|
150
|
-
type,
|
151
|
-
range: rangeArr
|
152
|
-
}) => {
|
153
|
-
let values = (0, import_utils2.times)(rangeArr[1] - rangeArr[0] + 1, (index) => (0, import_utils.padZero)(rangeArr[0] + index));
|
154
|
-
if (props.filter) {
|
155
|
-
values = props.filter(type, values);
|
156
|
-
}
|
157
|
-
return {
|
158
|
-
type,
|
159
|
-
values
|
160
|
-
};
|
161
|
-
}));
|
162
|
-
const columns = (0, import_vue2.computed)(() => originColumns.value.map((column) => ({
|
163
|
-
values: column.values.map((value) => props.formatter(column.type, value))
|
164
|
-
})));
|
165
|
-
const updateColumnValue = () => {
|
166
|
-
const value = currentDate.value || props.minDate;
|
167
|
-
const {
|
168
|
-
formatter
|
169
|
-
} = props;
|
170
|
-
const values = originColumns.value.map((column) => {
|
171
|
-
switch (column.type) {
|
172
|
-
case "year":
|
173
|
-
return formatter("year", `${value.getFullYear()}`);
|
174
|
-
case "month":
|
175
|
-
return formatter("month", (0, import_utils.padZero)(value.getMonth() + 1));
|
176
|
-
case "day":
|
177
|
-
return formatter("day", (0, import_utils.padZero)(value.getDate()));
|
178
|
-
case "hour":
|
179
|
-
return formatter("hour", (0, import_utils.padZero)(value.getHours()));
|
180
|
-
case "minute":
|
181
|
-
return formatter("minute", (0, import_utils.padZero)(value.getMinutes()));
|
182
|
-
default:
|
183
|
-
return "";
|
184
|
-
}
|
185
|
-
});
|
186
|
-
(0, import_vue2.nextTick)(() => {
|
187
|
-
var _a;
|
188
|
-
(_a = picker.value) == null ? void 0 : _a.setValues(values);
|
189
|
-
});
|
190
|
-
};
|
191
|
-
const updateInnerValue = () => {
|
192
|
-
const {
|
193
|
-
type
|
194
|
-
} = props;
|
195
|
-
const indexes = picker.value.getIndexes();
|
196
|
-
const getValue = (type2) => {
|
197
|
-
let index = 0;
|
198
|
-
originColumns.value.forEach((column, columnIndex) => {
|
199
|
-
if (type2 === column.type) {
|
200
|
-
index = columnIndex;
|
201
|
-
}
|
202
|
-
});
|
203
|
-
const {
|
204
|
-
values
|
205
|
-
} = originColumns.value[index];
|
206
|
-
return (0, import_utils2.getTrueValue)(values[indexes[index]]);
|
207
|
-
};
|
208
|
-
let year;
|
209
|
-
let month;
|
210
|
-
let day;
|
211
|
-
if (type === "month-day") {
|
212
|
-
year = (currentDate.value || props.minDate).getFullYear();
|
213
|
-
month = getValue("month");
|
214
|
-
day = getValue("day");
|
215
|
-
} else {
|
216
|
-
year = getValue("year");
|
217
|
-
month = getValue("month");
|
218
|
-
day = type === "year-month" ? 1 : getValue("day");
|
219
|
-
}
|
220
|
-
const maxDay = (0, import_utils2.getMonthEndDay)(year, month);
|
221
|
-
day = day > maxDay ? maxDay : day;
|
222
|
-
let hour = 0;
|
223
|
-
let minute = 0;
|
224
|
-
if (type === "datehour") {
|
225
|
-
hour = getValue("hour");
|
226
|
-
}
|
227
|
-
if (type === "datetime") {
|
228
|
-
hour = getValue("hour");
|
229
|
-
minute = getValue("minute");
|
230
|
-
}
|
231
|
-
const value = new Date(year, month - 1, day, hour, minute);
|
232
|
-
currentDate.value = formatValue(value);
|
233
|
-
};
|
234
|
-
const onConfirm = () => {
|
235
|
-
emit("update:modelValue", currentDate.value);
|
236
|
-
emit("confirm", currentDate.value);
|
237
|
-
};
|
238
|
-
const onCancel = () => emit("cancel");
|
239
|
-
const onChange = () => {
|
240
|
-
updateInnerValue();
|
241
|
-
(0, import_vue2.nextTick)(() => {
|
242
|
-
(0, import_vue2.nextTick)(() => emit("change", currentDate.value));
|
243
|
-
});
|
244
|
-
};
|
245
|
-
(0, import_vue2.onMounted)(() => {
|
246
|
-
updateColumnValue();
|
247
|
-
(0, import_vue2.nextTick)(updateInnerValue);
|
248
|
-
});
|
249
|
-
(0, import_vue2.watch)(columns, updateColumnValue);
|
250
|
-
(0, import_vue2.watch)(currentDate, (value, oldValue) => emit("update:modelValue", oldValue ? value : null));
|
251
|
-
(0, import_vue2.watch)(() => [props.filter, props.maxDate], updateInnerValue);
|
252
|
-
(0, import_vue2.watch)(() => props.minDate, () => {
|
253
|
-
(0, import_vue2.nextTick)(updateInnerValue);
|
254
|
-
});
|
255
|
-
(0, import_vue2.watch)(() => props.modelValue, (value) => {
|
256
|
-
var _a;
|
257
|
-
value = formatValue(value);
|
258
|
-
if (value && value.valueOf() !== ((_a = currentDate.value) == null ? void 0 : _a.valueOf())) {
|
259
|
-
currentDate.value = value;
|
260
|
-
}
|
261
|
-
});
|
262
|
-
(0, import_use_expose.useExpose)({
|
263
|
-
getPicker: () => picker.value && (0, import_utils2.proxyPickerMethods)(picker.value, updateInnerValue)
|
264
|
-
});
|
265
|
-
return () => (0, import_vue.createVNode)(import_picker.Picker, (0, import_vue.mergeProps)({
|
266
|
-
"ref": picker,
|
267
|
-
"columns": columns.value,
|
268
|
-
"onChange": onChange,
|
269
|
-
"onCancel": onCancel,
|
270
|
-
"onConfirm": onConfirm
|
271
|
-
}, (0, import_utils.pick)(props, import_utils2.pickerInheritKeys)), slots);
|
272
|
-
}
|
273
|
-
});
|
274
|
-
module.exports = __toCommonJS(stdin_exports);
|
@@ -1,7 +0,0 @@
|
|
1
|
-
import { type ExtractPropTypes } from 'vue';
|
2
|
-
declare const datetimePickerProps: any;
|
3
|
-
export declare type DatetimePickerProps = ExtractPropTypes<typeof datetimePickerProps>;
|
4
|
-
declare const _default: import("vue").DefineComponent<any, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<any>, {} | {
|
5
|
-
[x: string]: any;
|
6
|
-
}>;
|
7
|
-
export default _default;
|
@@ -1,69 +0,0 @@
|
|
1
|
-
var __create = Object.create;
|
2
|
-
var __defProp = Object.defineProperty;
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
7
|
-
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
8
|
-
var __export = (target, all) => {
|
9
|
-
for (var name2 in all)
|
10
|
-
__defProp(target, name2, { get: all[name2], enumerable: true });
|
11
|
-
};
|
12
|
-
var __reExport = (target, module2, copyDefault, desc) => {
|
13
|
-
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
14
|
-
for (let key of __getOwnPropNames(module2))
|
15
|
-
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
16
|
-
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
17
|
-
}
|
18
|
-
return target;
|
19
|
-
};
|
20
|
-
var __toESM = (module2, isNodeMode) => {
|
21
|
-
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
|
22
|
-
};
|
23
|
-
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
24
|
-
return (module2, temp) => {
|
25
|
-
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
26
|
-
};
|
27
|
-
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
28
|
-
var stdin_exports = {};
|
29
|
-
__export(stdin_exports, {
|
30
|
-
default: () => stdin_default
|
31
|
-
});
|
32
|
-
var import_vue = require("vue");
|
33
|
-
var import_vue2 = require("vue");
|
34
|
-
var import_utils = require("../utils");
|
35
|
-
var import_use_expose = require("../composables/use-expose");
|
36
|
-
var import_TimePicker = __toESM(require("./TimePicker"));
|
37
|
-
var import_DatePicker = __toESM(require("./DatePicker"));
|
38
|
-
const [name, bem] = (0, import_utils.createNamespace)("datetime-picker");
|
39
|
-
const timePickerPropKeys = Object.keys(import_TimePicker.default.props);
|
40
|
-
const datePickerPropKeys = Object.keys(import_DatePicker.default.props);
|
41
|
-
const datetimePickerProps = (0, import_utils.extend)({}, import_TimePicker.default.props, import_DatePicker.default.props, {
|
42
|
-
modelValue: [String, Date]
|
43
|
-
});
|
44
|
-
var stdin_default = (0, import_vue2.defineComponent)({
|
45
|
-
name,
|
46
|
-
props: datetimePickerProps,
|
47
|
-
setup(props, {
|
48
|
-
attrs,
|
49
|
-
slots
|
50
|
-
}) {
|
51
|
-
const root = (0, import_vue2.ref)();
|
52
|
-
(0, import_use_expose.useExpose)({
|
53
|
-
getPicker: () => {
|
54
|
-
var _a;
|
55
|
-
return (_a = root.value) == null ? void 0 : _a.getPicker();
|
56
|
-
}
|
57
|
-
});
|
58
|
-
return () => {
|
59
|
-
const isTimePicker = props.type === "time";
|
60
|
-
const Component = isTimePicker ? import_TimePicker.default : import_DatePicker.default;
|
61
|
-
const inheritProps = (0, import_utils.pick)(props, isTimePicker ? timePickerPropKeys : datePickerPropKeys);
|
62
|
-
return (0, import_vue.createVNode)(Component, (0, import_vue.mergeProps)({
|
63
|
-
"ref": root,
|
64
|
-
"class": bem()
|
65
|
-
}, inheritProps, attrs), slots);
|
66
|
-
};
|
67
|
-
}
|
68
|
-
});
|
69
|
-
module.exports = __toCommonJS(stdin_exports);
|