vant 3.4.5 → 4.0.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/action-bar/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 +6 -6
- package/es/calendar/Calendar.js +5 -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 +6 -6
- package/es/calendar/index.less +40 -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 +9 -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 +22 -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/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/nav-bar/NavBar.d.ts +3 -3
- package/es/nav-bar/NavBar.js +3 -3
- package/es/nav-bar/index.css +1 -1
- package/es/nav-bar/index.d.ts +3 -3
- 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 +31 -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 +3 -3
- package/es/popup/Popup.js +3 -3
- package/es/popup/index.css +1 -1
- package/es/popup/index.d.ts +3 -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/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 +6 -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/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/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 +6 -6
- package/lib/calendar/Calendar.js +5 -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 +6 -6
- package/lib/calendar/index.less +40 -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 +7 -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 +22 -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/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/nav-bar/NavBar.d.ts +3 -3
- package/lib/nav-bar/NavBar.js +3 -3
- package/lib/nav-bar/index.css +1 -1
- package/lib/nav-bar/index.d.ts +3 -3
- 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 +31 -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 +3 -3
- package/lib/popup/Popup.js +3 -3
- package/lib/popup/index.css +1 -1
- package/lib/popup/index.d.ts +3 -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/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 +6 -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/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/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 +1194 -1629
- package/lib/vant.cjs.min.js +1 -1
- package/lib/vant.es.js +1194 -1630
- package/lib/vant.es.min.js +1194 -1630
- package/lib/vant.js +1193 -1628
- package/lib/vant.min.js +1 -1
- package/package.json +4 -1
- package/vetur/attributes.json +242 -186
- package/vetur/tags.json +82 -72
- package/vetur/web-types.json +826 -651
- 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/action-bar/var.css
DELETED
File without changes
|
package/es/action-bar/var.less
DELETED
File without changes
|
File without changes
|
@@ -1,10 +0,0 @@
|
|
1
|
-
@import '../style/var.less';
|
2
|
-
|
3
|
-
@action-bar-icon-width: 48px;
|
4
|
-
@action-bar-icon-height: 100%;
|
5
|
-
@action-bar-icon-color: var(--van-text-color);
|
6
|
-
@action-bar-icon-size: 18px;
|
7
|
-
@action-bar-icon-font-size: var(--van-font-size-xs);
|
8
|
-
@action-bar-icon-active-color: var(--van-active-color);
|
9
|
-
@action-bar-icon-text-color: var(--van-gray-7);
|
10
|
-
@action-bar-icon-background-color: var(--van-background-color-light);
|
package/es/action-sheet/var.css
DELETED
File without changes
|
package/es/action-sheet/var.less
DELETED
@@ -1,23 +0,0 @@
|
|
1
|
-
@import '../style/var.less';
|
2
|
-
|
3
|
-
@action-sheet-max-height: 80%;
|
4
|
-
@action-sheet-header-height: 48px;
|
5
|
-
@action-sheet-header-font-size: var(--van-font-size-lg);
|
6
|
-
@action-sheet-description-color: var(--van-text-color-2);
|
7
|
-
@action-sheet-description-font-size: var(--van-font-size-md);
|
8
|
-
@action-sheet-description-line-height: var(--van-line-height-md);
|
9
|
-
@action-sheet-item-background: var(--van-background-color-light);
|
10
|
-
@action-sheet-item-font-size: var(--van-font-size-lg);
|
11
|
-
@action-sheet-item-line-height: var(--van-line-height-lg);
|
12
|
-
@action-sheet-item-text-color: var(--van-text-color);
|
13
|
-
@action-sheet-item-disabled-text-color: var(--van-text-color-3);
|
14
|
-
@action-sheet-subname-color: var(--van-text-color-2);
|
15
|
-
@action-sheet-subname-font-size: var(--van-font-size-sm);
|
16
|
-
@action-sheet-subname-line-height: var(--van-line-height-sm);
|
17
|
-
@action-sheet-close-icon-size: 22px;
|
18
|
-
@action-sheet-close-icon-color: var(--van-gray-5);
|
19
|
-
@action-sheet-close-icon-padding: 0 var(--van-padding-md);
|
20
|
-
@action-sheet-cancel-text-color: var(--van-gray-7);
|
21
|
-
@action-sheet-cancel-padding-top: var(--van-padding-xs);
|
22
|
-
@action-sheet-cancel-padding-color: var(--van-background-color);
|
23
|
-
@action-sheet-loading-icon-size: 22px;
|
package/es/address-edit/var.css
DELETED
File without changes
|
package/es/address-edit/var.less
DELETED
@@ -1,6 +0,0 @@
|
|
1
|
-
@import '../style/var.less';
|
2
|
-
|
3
|
-
@address-edit-padding: var(--van-padding-sm);
|
4
|
-
@address-edit-buttons-padding: var(--van-padding-xl) var(--van-padding-base);
|
5
|
-
@address-edit-button-margin-bottom: var(--van-padding-sm);
|
6
|
-
@address-edit-button-font-size: var(--van-font-size-lg);
|
package/es/address-list/var.css
DELETED
File without changes
|
package/es/address-list/var.less
DELETED
@@ -1,16 +0,0 @@
|
|
1
|
-
@import '../style/var.less';
|
2
|
-
|
3
|
-
@address-list-padding: var(--van-padding-sm) var(--van-padding-sm) 80px;
|
4
|
-
@address-list-disabled-text-color: var(--van-text-color-2);
|
5
|
-
@address-list-disabled-text-padding: calc(var(--van-padding-base) * 5) 0
|
6
|
-
var(--van-padding-md);
|
7
|
-
@address-list-disabled-text-font-size: var(--van-font-size-md);
|
8
|
-
@address-list-disabled-text-line-height: var(--van-line-height-md);
|
9
|
-
@address-list-add-button-z-index: 999;
|
10
|
-
@address-list-item-padding: var(--van-padding-sm);
|
11
|
-
@address-list-item-text-color: var(--van-text-color);
|
12
|
-
@address-list-item-disabled-text-color: var(--van-text-color-3);
|
13
|
-
@address-list-item-font-size: 13px;
|
14
|
-
@address-list-item-line-height: var(--van-line-height-sm);
|
15
|
-
@address-list-item-radio-icon-color: var(--van-danger-color);
|
16
|
-
@address-list-edit-icon-size: 20px;
|
package/es/badge/var.css
DELETED
File without changes
|
package/es/badge/var.less
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
@import '../style/var.less';
|
2
|
-
|
3
|
-
@badge-size: 16px;
|
4
|
-
@badge-color: var(--van-white);
|
5
|
-
@badge-padding: 0 3px;
|
6
|
-
@badge-font-size: var(--van-font-size-sm);
|
7
|
-
@badge-font-weight: var(--van-font-weight-bold);
|
8
|
-
@badge-border-width: var(--van-border-width-base);
|
9
|
-
@badge-background-color: var(--van-danger-color);
|
10
|
-
@badge-dot-color: var(--van-danger-color);
|
11
|
-
@badge-dot-size: 8px;
|
12
|
-
@badge-font-family: -apple-system-font, Helvetica Neue, Arial, sans-serif;
|
package/es/button/var.css
DELETED
File without changes
|
package/es/button/var.less
DELETED
@@ -1,36 +0,0 @@
|
|
1
|
-
@import '../style/var.less';
|
2
|
-
|
3
|
-
@button-mini-height: 24px;
|
4
|
-
@button-mini-padding: 0 var(--van-padding-base);
|
5
|
-
@button-mini-font-size: var(--van-font-size-xs);
|
6
|
-
@button-small-height: 32px;
|
7
|
-
@button-small-padding: 0 var(--van-padding-xs);
|
8
|
-
@button-small-font-size: var(--van-font-size-sm);
|
9
|
-
@button-normal-padding: 0 15px;
|
10
|
-
@button-normal-font-size: var(--van-font-size-md);
|
11
|
-
@button-large-height: 50px;
|
12
|
-
@button-default-height: 44px;
|
13
|
-
@button-default-line-height: 1.2;
|
14
|
-
@button-default-font-size: var(--van-font-size-lg);
|
15
|
-
@button-default-color: var(--van-text-color);
|
16
|
-
@button-default-background-color: var(--van-background-color-light);
|
17
|
-
@button-default-border-color: var(--van-border-color);
|
18
|
-
@button-primary-color: var(--van-white);
|
19
|
-
@button-primary-background-color: var(--van-primary-color);
|
20
|
-
@button-primary-border-color: var(--van-primary-color);
|
21
|
-
@button-success-color: var(--van-white);
|
22
|
-
@button-success-background-color: var(--van-success-color);
|
23
|
-
@button-success-border-color: var(--van-success-color);
|
24
|
-
@button-danger-color: var(--van-white);
|
25
|
-
@button-danger-background-color: var(--van-danger-color);
|
26
|
-
@button-danger-border-color: var(--van-danger-color);
|
27
|
-
@button-warning-color: var(--van-white);
|
28
|
-
@button-warning-background-color: var(--van-warning-color);
|
29
|
-
@button-warning-border-color: var(--van-warning-color);
|
30
|
-
@button-border-width: var(--van-border-width-base);
|
31
|
-
@button-border-radius: var(--van-border-radius-sm);
|
32
|
-
@button-round-border-radius: var(--van-border-radius-max);
|
33
|
-
@button-plain-background-color: var(--van-white);
|
34
|
-
@button-disabled-opacity: var(--van-disabled-opacity);
|
35
|
-
@button-icon-size: 1.2em;
|
36
|
-
@button-loading-icon-size: 20px;
|
package/es/calendar/var.css
DELETED
File without changes
|
package/es/calendar/var.less
DELETED
@@ -1,27 +0,0 @@
|
|
1
|
-
@import '../style/var.less';
|
2
|
-
|
3
|
-
@calendar-background-color: var(--van-background-color-light);
|
4
|
-
@calendar-popup-height: 80%;
|
5
|
-
@calendar-header-box-shadow: 0 2px 10px rgba(125, 126, 128, 0.16);
|
6
|
-
@calendar-header-title-height: 44px;
|
7
|
-
@calendar-header-title-font-size: var(--van-font-size-lg);
|
8
|
-
@calendar-header-subtitle-font-size: var(--van-font-size-md);
|
9
|
-
@calendar-weekdays-height: 30px;
|
10
|
-
@calendar-weekdays-font-size: var(--van-font-size-sm);
|
11
|
-
@calendar-month-title-font-size: var(--van-font-size-md);
|
12
|
-
@calendar-month-mark-color: rgba(242, 243, 245, 0.8);
|
13
|
-
@calendar-month-mark-font-size: 160px;
|
14
|
-
@calendar-day-height: 64px;
|
15
|
-
@calendar-day-font-size: var(--van-font-size-lg);
|
16
|
-
@calendar-range-edge-color: var(--van-white);
|
17
|
-
@calendar-range-edge-background-color: var(--van-danger-color);
|
18
|
-
@calendar-range-middle-color: var(--van-danger-color);
|
19
|
-
@calendar-range-middle-background-opacity: 0.1;
|
20
|
-
@calendar-selected-day-size: 54px;
|
21
|
-
@calendar-selected-day-color: var(--van-white);
|
22
|
-
@calendar-info-font-size: var(--van-font-size-xs);
|
23
|
-
@calendar-info-line-height: var(--van-line-height-xs);
|
24
|
-
@calendar-selected-day-background-color: var(--van-danger-color);
|
25
|
-
@calendar-day-disabled-color: var(--van-text-color-3);
|
26
|
-
@calendar-confirm-button-height: 36px;
|
27
|
-
@calendar-confirm-button-margin: 7px 0;
|
package/es/card/var.css
DELETED
File without changes
|
package/es/card/var.less
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
@import '../style/var.less';
|
2
|
-
|
3
|
-
@card-padding: var(--van-padding-xs) var(--van-padding-md);
|
4
|
-
@card-font-size: var(--van-font-size-sm);
|
5
|
-
@card-text-color: var(--van-text-color);
|
6
|
-
@card-background-color: var(--van-gray-1);
|
7
|
-
@card-thumb-size: 88px;
|
8
|
-
@card-thumb-border-radius: var(--van-border-radius-lg);
|
9
|
-
@card-title-line-height: 16px;
|
10
|
-
@card-desc-color: var(--van-gray-7);
|
11
|
-
@card-desc-line-height: var(--van-line-height-md);
|
12
|
-
@card-price-color: var(--van-gray-8);
|
13
|
-
@card-origin-price-color: var(--van-text-color-2);
|
14
|
-
@card-num-color: var(--van-text-color-2);
|
15
|
-
@card-origin-price-font-size: var(--van-font-size-xs);
|
16
|
-
@card-price-font-size: var(--van-font-size-sm);
|
17
|
-
@card-price-integer-font-size: var(--van-font-size-lg);
|
18
|
-
@card-price-font-family: var(--van-price-integer-font-family);
|
package/es/cascader/var.css
DELETED
File without changes
|
package/es/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/es/cell/var.css
DELETED
File without changes
|
package/es/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/es/cell-group/var.css
DELETED
File without changes
|
package/es/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/es/checkbox/var.css
DELETED
File without changes
|
package/es/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/es/circle/var.css
DELETED
File without changes
|
package/es/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);
|
package/es/collapse-item/var.css
DELETED
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/es/contact-card/var.css
DELETED
File without changes
|
package/es/contact-card/var.less
DELETED
package/es/contact-edit/var.css
DELETED
File without changes
|
package/es/contact-edit/var.less
DELETED
@@ -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/es/contact-list/var.css
DELETED
File without changes
|
package/es/contact-list/var.less
DELETED
package/es/count-down/var.css
DELETED
File without changes
|
package/es/count-down/var.less
DELETED
package/es/coupon/var.css
DELETED
File without changes
|
package/es/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/es/coupon-cell/var.css
DELETED
File without changes
|
package/es/coupon-cell/var.less
DELETED
package/es/coupon-list/var.css
DELETED
File without changes
|
package/es/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,250 +0,0 @@
|
|
1
|
-
import { createVNode as _createVNode, mergeProps as _mergeProps } from "vue";
|
2
|
-
import { ref, watch, computed, nextTick, onMounted, defineComponent } from "vue";
|
3
|
-
import { pick, clamp, extend, isDate, padZero, makeStringProp, createNamespace } from "../utils";
|
4
|
-
import { times, sharedProps, getTrueValue, getMonthEndDay, pickerInheritKeys, proxyPickerMethods } from "./utils";
|
5
|
-
import { useExpose } from "../composables/use-expose";
|
6
|
-
import { Picker } from "../picker";
|
7
|
-
const currentYear = new Date().getFullYear();
|
8
|
-
const [name] = createNamespace("date-picker");
|
9
|
-
var stdin_default = defineComponent({
|
10
|
-
name,
|
11
|
-
props: extend({}, sharedProps, {
|
12
|
-
type: makeStringProp("datetime"),
|
13
|
-
modelValue: Date,
|
14
|
-
minDate: {
|
15
|
-
type: Date,
|
16
|
-
default: () => new Date(currentYear - 10, 0, 1),
|
17
|
-
validator: isDate
|
18
|
-
},
|
19
|
-
maxDate: {
|
20
|
-
type: Date,
|
21
|
-
default: () => new Date(currentYear + 10, 11, 31),
|
22
|
-
validator: isDate
|
23
|
-
}
|
24
|
-
}),
|
25
|
-
emits: ["confirm", "cancel", "change", "update:modelValue"],
|
26
|
-
setup(props, {
|
27
|
-
emit,
|
28
|
-
slots
|
29
|
-
}) {
|
30
|
-
const formatValue = (value) => {
|
31
|
-
if (isDate(value)) {
|
32
|
-
const timestamp = clamp(value.getTime(), props.minDate.getTime(), props.maxDate.getTime());
|
33
|
-
return new Date(timestamp);
|
34
|
-
}
|
35
|
-
return void 0;
|
36
|
-
};
|
37
|
-
const picker = ref();
|
38
|
-
const currentDate = ref(formatValue(props.modelValue));
|
39
|
-
const getBoundary = (type, value) => {
|
40
|
-
const boundary = props[`${type}Date`];
|
41
|
-
const year = boundary.getFullYear();
|
42
|
-
let month = 1;
|
43
|
-
let date = 1;
|
44
|
-
let hour = 0;
|
45
|
-
let minute = 0;
|
46
|
-
if (type === "max") {
|
47
|
-
month = 12;
|
48
|
-
date = getMonthEndDay(value.getFullYear(), value.getMonth() + 1);
|
49
|
-
hour = 23;
|
50
|
-
minute = 59;
|
51
|
-
}
|
52
|
-
if (value.getFullYear() === year) {
|
53
|
-
month = boundary.getMonth() + 1;
|
54
|
-
if (value.getMonth() + 1 === month) {
|
55
|
-
date = boundary.getDate();
|
56
|
-
if (value.getDate() === date) {
|
57
|
-
hour = boundary.getHours();
|
58
|
-
if (value.getHours() === hour) {
|
59
|
-
minute = boundary.getMinutes();
|
60
|
-
}
|
61
|
-
}
|
62
|
-
}
|
63
|
-
}
|
64
|
-
return {
|
65
|
-
[`${type}Year`]: year,
|
66
|
-
[`${type}Month`]: month,
|
67
|
-
[`${type}Date`]: date,
|
68
|
-
[`${type}Hour`]: hour,
|
69
|
-
[`${type}Minute`]: minute
|
70
|
-
};
|
71
|
-
};
|
72
|
-
const ranges = computed(() => {
|
73
|
-
const {
|
74
|
-
maxYear,
|
75
|
-
maxDate,
|
76
|
-
maxMonth,
|
77
|
-
maxHour,
|
78
|
-
maxMinute
|
79
|
-
} = getBoundary("max", currentDate.value || props.minDate);
|
80
|
-
const {
|
81
|
-
minYear,
|
82
|
-
minDate,
|
83
|
-
minMonth,
|
84
|
-
minHour,
|
85
|
-
minMinute
|
86
|
-
} = getBoundary("min", currentDate.value || props.minDate);
|
87
|
-
let result = [{
|
88
|
-
type: "year",
|
89
|
-
range: [minYear, maxYear]
|
90
|
-
}, {
|
91
|
-
type: "month",
|
92
|
-
range: [minMonth, maxMonth]
|
93
|
-
}, {
|
94
|
-
type: "day",
|
95
|
-
range: [minDate, maxDate]
|
96
|
-
}, {
|
97
|
-
type: "hour",
|
98
|
-
range: [minHour, maxHour]
|
99
|
-
}, {
|
100
|
-
type: "minute",
|
101
|
-
range: [minMinute, maxMinute]
|
102
|
-
}];
|
103
|
-
switch (props.type) {
|
104
|
-
case "date":
|
105
|
-
result = result.slice(0, 3);
|
106
|
-
break;
|
107
|
-
case "year-month":
|
108
|
-
result = result.slice(0, 2);
|
109
|
-
break;
|
110
|
-
case "month-day":
|
111
|
-
result = result.slice(1, 3);
|
112
|
-
break;
|
113
|
-
case "datehour":
|
114
|
-
result = result.slice(0, 4);
|
115
|
-
break;
|
116
|
-
}
|
117
|
-
if (props.columnsOrder) {
|
118
|
-
const columnsOrder = props.columnsOrder.concat(result.map((column) => column.type));
|
119
|
-
result.sort((a, b) => columnsOrder.indexOf(a.type) - columnsOrder.indexOf(b.type));
|
120
|
-
}
|
121
|
-
return result;
|
122
|
-
});
|
123
|
-
const originColumns = computed(() => ranges.value.map(({
|
124
|
-
type,
|
125
|
-
range: rangeArr
|
126
|
-
}) => {
|
127
|
-
let values = times(rangeArr[1] - rangeArr[0] + 1, (index) => padZero(rangeArr[0] + index));
|
128
|
-
if (props.filter) {
|
129
|
-
values = props.filter(type, values);
|
130
|
-
}
|
131
|
-
return {
|
132
|
-
type,
|
133
|
-
values
|
134
|
-
};
|
135
|
-
}));
|
136
|
-
const columns = computed(() => originColumns.value.map((column) => ({
|
137
|
-
values: column.values.map((value) => props.formatter(column.type, value))
|
138
|
-
})));
|
139
|
-
const updateColumnValue = () => {
|
140
|
-
const value = currentDate.value || props.minDate;
|
141
|
-
const {
|
142
|
-
formatter
|
143
|
-
} = props;
|
144
|
-
const values = originColumns.value.map((column) => {
|
145
|
-
switch (column.type) {
|
146
|
-
case "year":
|
147
|
-
return formatter("year", `${value.getFullYear()}`);
|
148
|
-
case "month":
|
149
|
-
return formatter("month", padZero(value.getMonth() + 1));
|
150
|
-
case "day":
|
151
|
-
return formatter("day", padZero(value.getDate()));
|
152
|
-
case "hour":
|
153
|
-
return formatter("hour", padZero(value.getHours()));
|
154
|
-
case "minute":
|
155
|
-
return formatter("minute", padZero(value.getMinutes()));
|
156
|
-
default:
|
157
|
-
return "";
|
158
|
-
}
|
159
|
-
});
|
160
|
-
nextTick(() => {
|
161
|
-
var _a;
|
162
|
-
(_a = picker.value) == null ? void 0 : _a.setValues(values);
|
163
|
-
});
|
164
|
-
};
|
165
|
-
const updateInnerValue = () => {
|
166
|
-
const {
|
167
|
-
type
|
168
|
-
} = props;
|
169
|
-
const indexes = picker.value.getIndexes();
|
170
|
-
const getValue = (type2) => {
|
171
|
-
let index = 0;
|
172
|
-
originColumns.value.forEach((column, columnIndex) => {
|
173
|
-
if (type2 === column.type) {
|
174
|
-
index = columnIndex;
|
175
|
-
}
|
176
|
-
});
|
177
|
-
const {
|
178
|
-
values
|
179
|
-
} = originColumns.value[index];
|
180
|
-
return getTrueValue(values[indexes[index]]);
|
181
|
-
};
|
182
|
-
let year;
|
183
|
-
let month;
|
184
|
-
let day;
|
185
|
-
if (type === "month-day") {
|
186
|
-
year = (currentDate.value || props.minDate).getFullYear();
|
187
|
-
month = getValue("month");
|
188
|
-
day = getValue("day");
|
189
|
-
} else {
|
190
|
-
year = getValue("year");
|
191
|
-
month = getValue("month");
|
192
|
-
day = type === "year-month" ? 1 : getValue("day");
|
193
|
-
}
|
194
|
-
const maxDay = getMonthEndDay(year, month);
|
195
|
-
day = day > maxDay ? maxDay : day;
|
196
|
-
let hour = 0;
|
197
|
-
let minute = 0;
|
198
|
-
if (type === "datehour") {
|
199
|
-
hour = getValue("hour");
|
200
|
-
}
|
201
|
-
if (type === "datetime") {
|
202
|
-
hour = getValue("hour");
|
203
|
-
minute = getValue("minute");
|
204
|
-
}
|
205
|
-
const value = new Date(year, month - 1, day, hour, minute);
|
206
|
-
currentDate.value = formatValue(value);
|
207
|
-
};
|
208
|
-
const onConfirm = () => {
|
209
|
-
emit("update:modelValue", currentDate.value);
|
210
|
-
emit("confirm", currentDate.value);
|
211
|
-
};
|
212
|
-
const onCancel = () => emit("cancel");
|
213
|
-
const onChange = () => {
|
214
|
-
updateInnerValue();
|
215
|
-
nextTick(() => {
|
216
|
-
nextTick(() => emit("change", currentDate.value));
|
217
|
-
});
|
218
|
-
};
|
219
|
-
onMounted(() => {
|
220
|
-
updateColumnValue();
|
221
|
-
nextTick(updateInnerValue);
|
222
|
-
});
|
223
|
-
watch(columns, updateColumnValue);
|
224
|
-
watch(currentDate, (value, oldValue) => emit("update:modelValue", oldValue ? value : null));
|
225
|
-
watch(() => [props.filter, props.maxDate], updateInnerValue);
|
226
|
-
watch(() => props.minDate, () => {
|
227
|
-
nextTick(updateInnerValue);
|
228
|
-
});
|
229
|
-
watch(() => props.modelValue, (value) => {
|
230
|
-
var _a;
|
231
|
-
value = formatValue(value);
|
232
|
-
if (value && value.valueOf() !== ((_a = currentDate.value) == null ? void 0 : _a.valueOf())) {
|
233
|
-
currentDate.value = value;
|
234
|
-
}
|
235
|
-
});
|
236
|
-
useExpose({
|
237
|
-
getPicker: () => picker.value && proxyPickerMethods(picker.value, updateInnerValue)
|
238
|
-
});
|
239
|
-
return () => _createVNode(Picker, _mergeProps({
|
240
|
-
"ref": picker,
|
241
|
-
"columns": columns.value,
|
242
|
-
"onChange": onChange,
|
243
|
-
"onCancel": onCancel,
|
244
|
-
"onConfirm": onConfirm
|
245
|
-
}, pick(props, pickerInheritKeys)), slots);
|
246
|
-
}
|
247
|
-
});
|
248
|
-
export {
|
249
|
-
stdin_default as default
|
250
|
-
};
|
@@ -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;
|