vant 3.4.5 → 4.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/changelog.generated.md +197 -0
- package/es/action-bar/index.css +1 -1
- package/es/action-bar/index.less +4 -6
- package/es/action-bar-button/index.css +1 -1
- package/es/action-bar-button/index.less +9 -11
- package/es/action-bar-icon/index.css +1 -1
- package/es/action-bar-icon/index.less +10 -12
- package/es/action-sheet/index.css +1 -1
- package/es/action-sheet/index.less +23 -24
- package/es/address-edit/AddressEdit.d.ts +6 -6
- package/es/address-edit/AddressEdit.js +29 -33
- package/es/address-edit/AddressEditDetail.d.ts +2 -2
- package/es/address-edit/AddressEditDetail.js +5 -14
- package/es/address-edit/index.css +1 -1
- package/es/address-edit/index.d.ts +6 -6
- package/es/address-edit/index.less +8 -15
- package/es/address-edit/types.d.ts +2 -4
- package/es/address-list/AddressList.d.ts +4 -4
- package/es/address-list/AddressList.js +5 -5
- package/es/address-list/AddressListItem.js +3 -3
- package/es/address-list/index.css +1 -1
- package/es/address-list/index.d.ts +4 -4
- package/es/address-list/index.less +20 -22
- package/es/area/Area.d.ts +13 -25
- package/es/area/Area.js +43 -208
- package/es/area/index.d.ts +11 -19
- package/es/area/types.d.ts +2 -17
- package/es/area/utils.d.ts +6 -0
- package/es/area/utils.js +85 -0
- package/es/badge/index.css +1 -1
- package/es/badge/index.less +15 -17
- package/es/button/index.css +1 -1
- package/es/button/index.less +55 -52
- package/es/calendar/Calendar.d.ts +10 -6
- package/es/calendar/Calendar.js +7 -5
- package/es/calendar/CalendarHeader.d.ts +2 -2
- package/es/calendar/CalendarHeader.js +2 -2
- package/es/calendar/CalendarMonth.d.ts +1 -2
- package/es/calendar/CalendarMonth.js +2 -2
- package/es/calendar/index.css +1 -1
- package/es/calendar/index.d.ts +9 -6
- package/es/calendar/index.less +41 -37
- package/es/card/Card.d.ts +2 -2
- package/es/card/Card.js +3 -3
- package/es/card/index.css +1 -1
- package/es/card/index.d.ts +2 -2
- package/es/card/index.less +23 -25
- package/es/cascader/Cascader.d.ts +2 -2
- package/es/cascader/Cascader.js +3 -3
- package/es/cascader/index.css +1 -1
- package/es/cascader/index.d.ts +2 -2
- package/es/cascader/index.less +17 -19
- package/es/cell/Cell.js +1 -4
- package/es/cell/index.css +1 -1
- package/es/cell/index.less +21 -27
- package/es/cell-group/index.css +1 -1
- package/es/cell-group/index.less +12 -13
- package/es/checkbox/index.css +1 -1
- package/es/checkbox/index.less +12 -14
- package/es/circle/index.css +1 -1
- package/es/circle/index.less +8 -10
- package/es/collapse-item/index.css +1 -1
- package/es/collapse-item/index.less +12 -12
- package/es/config-provider/ConfigProvider.d.ts +14 -0
- package/es/config-provider/ConfigProvider.js +11 -2
- package/es/config-provider/index.d.ts +10 -1
- package/es/contact-card/ContactCard.js +2 -2
- package/es/contact-card/index.css +1 -1
- package/es/contact-card/index.less +7 -9
- package/es/contact-edit/ContactEdit.d.ts +2 -2
- package/es/contact-edit/ContactEdit.js +3 -4
- package/es/contact-edit/index.css +1 -1
- package/es/contact-edit/index.d.ts +2 -2
- package/es/contact-edit/index.less +7 -9
- package/es/contact-list/ContactList.js +4 -4
- package/es/contact-list/index.css +1 -1
- package/es/contact-list/index.less +9 -11
- package/es/count-down/index.css +1 -1
- package/es/count-down/index.less +4 -6
- package/es/coupon/index.css +1 -1
- package/es/coupon/index.less +28 -31
- package/es/coupon-cell/index.css +1 -1
- package/es/coupon-cell/index.less +2 -4
- package/es/coupon-list/CouponList.js +2 -2
- package/es/coupon-list/index.css +1 -1
- package/es/coupon-list/index.less +15 -17
- package/es/date-picker/DatePicker.d.ts +168 -0
- package/es/date-picker/DatePicker.js +111 -0
- package/es/{datetime-picker/DatePicker.d.ts → date-picker/index.d.ts} +40 -28
- package/es/date-picker/index.js +8 -0
- package/es/{datetime-picker → date-picker}/style/index.d.ts +0 -0
- package/es/{datetime-picker → date-picker}/style/index.js +0 -0
- package/es/{datetime-picker → date-picker}/style/less.d.ts +0 -0
- package/es/{datetime-picker → date-picker}/style/less.js +0 -0
- package/es/{datetime-picker → date-picker}/utils.d.ts +15 -11
- package/es/date-picker/utils.js +40 -0
- package/es/dialog/index.css +1 -1
- package/es/dialog/index.less +24 -24
- package/es/divider/index.css +1 -1
- package/es/divider/index.less +10 -12
- package/es/dropdown-item/index.css +1 -1
- package/es/dropdown-item/index.less +2 -5
- package/es/dropdown-menu/index.css +1 -1
- package/es/dropdown-menu/index.less +14 -17
- package/es/empty/index.css +1 -1
- package/es/empty/index.less +9 -11
- package/es/field/Field.d.ts +4 -4
- package/es/field/Field.js +4 -4
- package/es/field/index.css +1 -1
- package/es/field/index.d.ts +4 -4
- package/es/field/index.less +20 -23
- package/es/grid-item/index.css +1 -1
- package/es/grid-item/index.less +10 -13
- package/es/image/index.css +1 -1
- package/es/image/index.less +10 -12
- package/es/image-preview/index.css +1 -1
- package/es/image-preview/index.less +11 -13
- package/es/index-anchor/index.css +1 -1
- package/es/index-anchor/index.less +12 -14
- package/es/index-bar/IndexBar.js +25 -4
- package/es/index-bar/index.css +1 -1
- package/es/index-bar/index.less +7 -8
- package/es/index.d.ts +3 -2
- package/es/index.js +7 -4
- package/es/list/index.css +1 -1
- package/es/list/index.less +5 -7
- package/es/loading/index.css +1 -1
- package/es/loading/index.less +7 -10
- package/es/locale/lang/la-LA.d.ts +64 -0
- package/es/locale/lang/la-LA.js +66 -0
- package/es/nav-bar/NavBar.d.ts +4 -4
- package/es/nav-bar/NavBar.js +6 -6
- package/es/nav-bar/index.css +1 -1
- package/es/nav-bar/index.d.ts +4 -4
- package/es/nav-bar/index.less +11 -13
- package/es/notice-bar/index.css +1 -1
- package/es/notice-bar/index.less +11 -13
- package/es/notify/index.css +1 -1
- package/es/notify/index.less +13 -15
- package/es/number-keyboard/NumberKeyboard.d.ts +1 -1
- package/es/number-keyboard/index.css +1 -1
- package/es/number-keyboard/index.d.ts +1 -1
- package/es/number-keyboard/index.less +26 -22
- package/es/overlay/index.css +1 -1
- package/es/overlay/index.less +4 -6
- package/es/pagination/index.css +1 -1
- package/es/pagination/index.less +13 -15
- package/es/password-input/index.css +1 -1
- package/es/password-input/index.less +20 -22
- package/es/picker/Picker.d.ts +26 -28
- package/es/picker/Picker.js +91 -196
- package/es/picker/PickerColumn.d.ts +21 -30
- package/es/picker/PickerColumn.js +61 -111
- package/es/picker/index.css +1 -1
- package/es/picker/index.d.ts +19 -20
- package/es/picker/index.less +32 -19
- package/es/picker/types.d.ts +13 -19
- package/es/picker/utils.d.ts +10 -0
- package/es/picker/utils.js +73 -0
- package/es/popover/Popover.d.ts +1 -1
- package/es/popover/index.css +1 -1
- package/es/popover/index.d.ts +1 -1
- package/es/popover/index.less +21 -23
- package/es/popup/Popup.d.ts +7 -3
- package/es/popup/Popup.js +6 -3
- package/es/popup/index.css +1 -1
- package/es/popup/index.d.ts +6 -3
- package/es/popup/index.less +20 -22
- package/es/progress/index.css +1 -1
- package/es/progress/index.less +14 -18
- package/es/pull-refresh/index.css +1 -1
- package/es/pull-refresh/index.less +5 -7
- package/es/radio/index.css +1 -1
- package/es/radio/index.less +12 -14
- package/es/rate/index.css +1 -1
- package/es/rate/index.less +6 -8
- package/es/search/Search.d.ts +4 -4
- package/es/search/Search.js +7 -7
- package/es/search/index.css +1 -1
- package/es/search/index.d.ts +4 -4
- package/es/search/index.less +16 -18
- package/es/share-sheet/index.css +1 -1
- package/es/share-sheet/index.less +17 -18
- package/es/sidebar/index.css +1 -1
- package/es/sidebar/index.less +2 -4
- package/es/sidebar-item/index.css +1 -1
- package/es/sidebar-item/index.less +17 -19
- package/es/skeleton/Skeleton.js +6 -4
- package/es/skeleton/index.css +1 -1
- package/es/skeleton/index.less +14 -16
- package/es/slider/Slider.d.ts +4 -4
- package/es/slider/Slider.js +4 -5
- package/es/slider/index.css +1 -1
- package/es/slider/index.d.ts +4 -4
- package/es/slider/index.less +20 -18
- package/es/step/index.css +1 -1
- package/es/step/index.less +15 -17
- package/es/stepper/Stepper.d.ts +1 -1
- package/es/stepper/index.css +1 -1
- package/es/stepper/index.d.ts +1 -1
- package/es/stepper/index.less +20 -24
- package/es/steps/Steps.d.ts +2 -2
- package/es/steps/Steps.js +2 -2
- package/es/steps/index.css +1 -1
- package/es/steps/index.d.ts +2 -2
- package/es/steps/index.less +3 -5
- package/es/sticky/index.css +1 -1
- package/es/sticky/index.less +2 -4
- package/es/style/animation.css +1 -1
- package/es/style/animation.less +18 -22
- package/es/style/base.css +1 -1
- package/es/style/base.less +11 -7
- package/es/style/css-variables.css +1 -1
- package/es/style/css-variables.less +76 -61
- package/es/style/mixins/hairline.less +0 -2
- package/es/style/normalize.css +1 -1
- package/es/style/normalize.less +1 -3
- package/es/submit-bar/index.css +1 -1
- package/es/submit-bar/index.less +26 -28
- package/es/swipe/index.css +1 -1
- package/es/swipe/index.less +11 -13
- package/es/swipe-cell/SwipeCell.js +1 -1
- package/es/switch/index.css +1 -1
- package/es/switch/index.less +24 -24
- package/es/tabbar/index.css +1 -1
- package/es/tabbar/index.less +5 -7
- package/es/tabbar-item/index.css +1 -1
- package/es/tabbar-item/index.less +9 -11
- package/es/tabs/Tabs.d.ts +2 -4
- package/es/tabs/Tabs.js +14 -27
- package/es/tabs/index.css +1 -1
- package/es/tabs/index.d.ts +2 -4
- package/es/tabs/index.less +17 -20
- package/es/tag/index.css +1 -1
- package/es/tag/index.less +22 -25
- package/es/time-picker/TimePicker.d.ts +214 -0
- package/es/time-picker/TimePicker.js +71 -0
- package/{lib/datetime-picker/TimePicker.d.ts → es/time-picker/index.d.ts} +60 -20
- package/es/time-picker/index.js +8 -0
- package/{lib/datetime-picker → es/time-picker}/style/index.d.ts +0 -0
- package/es/time-picker/style/index.js +3 -0
- package/{lib/datetime-picker → es/time-picker}/style/less.d.ts +0 -0
- package/es/time-picker/style/less.js +3 -0
- package/es/toast/Toast.js +1 -0
- package/es/toast/index.css +1 -1
- package/es/toast/index.less +19 -21
- package/es/tree-select/TreeSelect.d.ts +3 -3
- package/es/tree-select/TreeSelect.js +3 -3
- package/es/tree-select/index.css +1 -1
- package/es/tree-select/index.d.ts +3 -3
- package/es/tree-select/index.less +12 -14
- package/es/uploader/Uploader.d.ts +4 -4
- package/es/uploader/Uploader.js +4 -4
- package/es/uploader/index.css +1 -1
- package/es/uploader/index.d.ts +4 -4
- package/es/uploader/index.less +31 -33
- package/es/utils/basic.d.ts +1 -0
- package/es/utils/basic.js +2 -0
- package/lib/action-bar/index.css +1 -1
- package/lib/action-bar/index.less +4 -6
- package/lib/action-bar-button/index.css +1 -1
- package/lib/action-bar-button/index.less +9 -11
- package/lib/action-bar-icon/index.css +1 -1
- package/lib/action-bar-icon/index.less +10 -12
- package/lib/action-sheet/index.css +1 -1
- package/lib/action-sheet/index.less +23 -24
- package/lib/address-edit/AddressEdit.d.ts +6 -6
- package/lib/address-edit/AddressEdit.js +29 -33
- package/lib/address-edit/AddressEditDetail.d.ts +2 -2
- package/lib/address-edit/AddressEditDetail.js +5 -14
- package/lib/address-edit/index.css +1 -1
- package/lib/address-edit/index.d.ts +6 -6
- package/lib/address-edit/index.less +8 -15
- package/lib/address-edit/types.d.ts +2 -4
- package/lib/address-list/AddressList.d.ts +4 -4
- package/lib/address-list/AddressList.js +5 -5
- package/lib/address-list/AddressListItem.js +3 -3
- package/lib/address-list/index.css +1 -1
- package/lib/address-list/index.d.ts +4 -4
- package/lib/address-list/index.less +20 -22
- package/lib/area/Area.d.ts +13 -25
- package/lib/area/Area.js +42 -207
- package/lib/area/index.d.ts +11 -19
- package/lib/area/types.d.ts +2 -17
- package/lib/area/utils.d.ts +6 -0
- package/lib/area/utils.js +109 -0
- package/lib/badge/index.css +1 -1
- package/lib/badge/index.less +15 -17
- package/lib/button/index.css +1 -1
- package/lib/button/index.less +55 -52
- package/lib/calendar/Calendar.d.ts +10 -6
- package/lib/calendar/Calendar.js +7 -5
- package/lib/calendar/CalendarHeader.d.ts +2 -2
- package/lib/calendar/CalendarHeader.js +2 -2
- package/lib/calendar/CalendarMonth.d.ts +1 -2
- package/lib/calendar/CalendarMonth.js +2 -2
- package/lib/calendar/index.css +1 -1
- package/lib/calendar/index.d.ts +9 -6
- package/lib/calendar/index.less +41 -37
- package/lib/card/Card.d.ts +2 -2
- package/lib/card/Card.js +3 -3
- package/lib/card/index.css +1 -1
- package/lib/card/index.d.ts +2 -2
- package/lib/card/index.less +23 -25
- package/lib/cascader/Cascader.d.ts +2 -2
- package/lib/cascader/Cascader.js +3 -3
- package/lib/cascader/index.css +1 -1
- package/lib/cascader/index.d.ts +2 -2
- package/lib/cascader/index.less +17 -19
- package/lib/cell/Cell.js +1 -4
- package/lib/cell/index.css +1 -1
- package/lib/cell/index.less +21 -27
- package/lib/cell-group/index.css +1 -1
- package/lib/cell-group/index.less +12 -13
- package/lib/checkbox/index.css +1 -1
- package/lib/checkbox/index.less +12 -14
- package/lib/circle/index.css +1 -1
- package/lib/circle/index.less +8 -10
- package/lib/collapse-item/index.css +1 -1
- package/lib/collapse-item/index.less +12 -12
- package/lib/config-provider/ConfigProvider.d.ts +14 -0
- package/lib/config-provider/ConfigProvider.js +9 -0
- package/lib/config-provider/index.d.ts +10 -1
- package/lib/contact-card/ContactCard.js +2 -2
- package/lib/contact-card/index.css +1 -1
- package/lib/contact-card/index.less +7 -9
- package/lib/contact-edit/ContactEdit.d.ts +2 -2
- package/lib/contact-edit/ContactEdit.js +3 -4
- package/lib/contact-edit/index.css +1 -1
- package/lib/contact-edit/index.d.ts +2 -2
- package/lib/contact-edit/index.less +7 -9
- package/lib/contact-list/ContactList.js +4 -4
- package/lib/contact-list/index.css +1 -1
- package/lib/contact-list/index.less +9 -11
- package/lib/count-down/index.css +1 -1
- package/lib/count-down/index.less +4 -6
- package/lib/coupon/index.css +1 -1
- package/lib/coupon/index.less +28 -31
- package/lib/coupon-cell/index.css +1 -1
- package/lib/coupon-cell/index.less +2 -4
- package/lib/coupon-list/CouponList.js +2 -2
- package/lib/coupon-list/index.css +1 -1
- package/lib/coupon-list/index.less +15 -17
- package/lib/date-picker/DatePicker.d.ts +168 -0
- package/lib/date-picker/DatePicker.js +135 -0
- package/lib/{datetime-picker/DatePicker.d.ts → date-picker/index.d.ts} +40 -28
- package/lib/{datetime-picker → date-picker}/index.js +4 -4
- package/lib/date-picker/style/index.d.ts +1 -0
- package/lib/{datetime-picker → date-picker}/style/index.js +0 -0
- package/lib/date-picker/style/less.d.ts +1 -0
- package/lib/{datetime-picker → date-picker}/style/less.js +0 -0
- package/lib/{datetime-picker → date-picker}/utils.d.ts +15 -11
- package/lib/{datetime-picker → date-picker}/utils.js +11 -34
- package/lib/dialog/index.css +1 -1
- package/lib/dialog/index.less +24 -24
- package/lib/divider/index.css +1 -1
- package/lib/divider/index.less +10 -12
- package/lib/dropdown-item/index.css +1 -1
- package/lib/dropdown-item/index.less +2 -5
- package/lib/dropdown-menu/index.css +1 -1
- package/lib/dropdown-menu/index.less +14 -17
- package/lib/empty/index.css +1 -1
- package/lib/empty/index.less +9 -11
- package/lib/field/Field.d.ts +4 -4
- package/lib/field/Field.js +4 -4
- package/lib/field/index.css +1 -1
- package/lib/field/index.d.ts +4 -4
- package/lib/field/index.less +20 -23
- package/lib/grid-item/index.css +1 -1
- package/lib/grid-item/index.less +10 -13
- package/lib/image/index.css +1 -1
- package/lib/image/index.less +10 -12
- package/lib/image-preview/index.css +1 -1
- package/lib/image-preview/index.less +11 -13
- package/lib/index-anchor/index.css +1 -1
- package/lib/index-anchor/index.less +12 -14
- package/lib/index-bar/IndexBar.js +25 -4
- package/lib/index-bar/index.css +1 -1
- package/lib/index-bar/index.less +7 -8
- package/lib/index.css +1 -1
- package/lib/index.d.ts +3 -2
- package/lib/index.js +7 -4
- package/lib/list/index.css +1 -1
- package/lib/list/index.less +5 -7
- package/lib/loading/index.css +1 -1
- package/lib/loading/index.less +7 -10
- package/lib/locale/lang/la-LA.d.ts +64 -0
- package/lib/locale/lang/la-LA.js +90 -0
- package/lib/nav-bar/NavBar.d.ts +4 -4
- package/lib/nav-bar/NavBar.js +6 -6
- package/lib/nav-bar/index.css +1 -1
- package/lib/nav-bar/index.d.ts +4 -4
- package/lib/nav-bar/index.less +11 -13
- package/lib/notice-bar/index.css +1 -1
- package/lib/notice-bar/index.less +11 -13
- package/lib/notify/index.css +1 -1
- package/lib/notify/index.less +13 -15
- package/lib/number-keyboard/NumberKeyboard.d.ts +1 -1
- package/lib/number-keyboard/index.css +1 -1
- package/lib/number-keyboard/index.d.ts +1 -1
- package/lib/number-keyboard/index.less +26 -22
- package/lib/overlay/index.css +1 -1
- package/lib/overlay/index.less +4 -6
- package/lib/pagination/index.css +1 -1
- package/lib/pagination/index.less +13 -15
- package/lib/password-input/index.css +1 -1
- package/lib/password-input/index.less +20 -22
- package/lib/picker/Picker.d.ts +26 -28
- package/lib/picker/Picker.js +90 -195
- package/lib/picker/PickerColumn.d.ts +21 -30
- package/lib/picker/PickerColumn.js +60 -110
- package/lib/picker/index.css +1 -1
- package/lib/picker/index.d.ts +19 -20
- package/lib/picker/index.less +32 -19
- package/lib/picker/types.d.ts +13 -19
- package/lib/picker/utils.d.ts +10 -0
- package/lib/picker/utils.js +97 -0
- package/lib/popover/Popover.d.ts +1 -1
- package/lib/popover/index.css +1 -1
- package/lib/popover/index.d.ts +1 -1
- package/lib/popover/index.less +21 -23
- package/lib/popup/Popup.d.ts +7 -3
- package/lib/popup/Popup.js +6 -3
- package/lib/popup/index.css +1 -1
- package/lib/popup/index.d.ts +6 -3
- package/lib/popup/index.less +20 -22
- package/lib/progress/index.css +1 -1
- package/lib/progress/index.less +14 -18
- package/lib/pull-refresh/index.css +1 -1
- package/lib/pull-refresh/index.less +5 -7
- package/lib/radio/index.css +1 -1
- package/lib/radio/index.less +12 -14
- package/lib/rate/index.css +1 -1
- package/lib/rate/index.less +6 -8
- package/lib/search/Search.d.ts +4 -4
- package/lib/search/Search.js +7 -7
- package/lib/search/index.css +1 -1
- package/lib/search/index.d.ts +4 -4
- package/lib/search/index.less +16 -18
- package/lib/share-sheet/index.css +1 -1
- package/lib/share-sheet/index.less +17 -18
- package/lib/sidebar/index.css +1 -1
- package/lib/sidebar/index.less +2 -4
- package/lib/sidebar-item/index.css +1 -1
- package/lib/sidebar-item/index.less +17 -19
- package/lib/skeleton/Skeleton.js +5 -3
- package/lib/skeleton/index.css +1 -1
- package/lib/skeleton/index.less +14 -16
- package/lib/slider/Slider.d.ts +4 -4
- package/lib/slider/Slider.js +5 -6
- package/lib/slider/index.css +1 -1
- package/lib/slider/index.d.ts +4 -4
- package/lib/slider/index.less +20 -18
- package/lib/step/index.css +1 -1
- package/lib/step/index.less +15 -17
- package/lib/stepper/Stepper.d.ts +1 -1
- package/lib/stepper/index.css +1 -1
- package/lib/stepper/index.d.ts +1 -1
- package/lib/stepper/index.less +20 -24
- package/lib/steps/Steps.d.ts +2 -2
- package/lib/steps/Steps.js +2 -2
- package/lib/steps/index.css +1 -1
- package/lib/steps/index.d.ts +2 -2
- package/lib/steps/index.less +3 -5
- package/lib/sticky/index.css +1 -1
- package/lib/sticky/index.less +2 -4
- package/lib/style/animation.css +1 -1
- package/lib/style/animation.less +18 -22
- package/lib/style/base.css +1 -1
- package/lib/style/base.less +11 -7
- package/lib/style/css-variables.css +1 -1
- package/lib/style/css-variables.less +76 -61
- package/lib/style/mixins/hairline.less +0 -2
- package/lib/style/normalize.css +1 -1
- package/lib/style/normalize.less +1 -3
- package/lib/submit-bar/index.css +1 -1
- package/lib/submit-bar/index.less +26 -28
- package/lib/swipe/index.css +1 -1
- package/lib/swipe/index.less +11 -13
- package/lib/swipe-cell/SwipeCell.js +1 -1
- package/lib/switch/index.css +1 -1
- package/lib/switch/index.less +24 -24
- package/lib/tabbar/index.css +1 -1
- package/lib/tabbar/index.less +5 -7
- package/lib/tabbar-item/index.css +1 -1
- package/lib/tabbar-item/index.less +9 -11
- package/lib/tabs/Tabs.d.ts +2 -4
- package/lib/tabs/Tabs.js +13 -26
- package/lib/tabs/index.css +1 -1
- package/lib/tabs/index.d.ts +2 -4
- package/lib/tabs/index.less +17 -20
- package/lib/tag/index.css +1 -1
- package/lib/tag/index.less +22 -25
- package/lib/time-picker/TimePicker.d.ts +214 -0
- package/lib/time-picker/TimePicker.js +95 -0
- package/{es/datetime-picker/TimePicker.d.ts → lib/time-picker/index.d.ts} +60 -20
- package/lib/{datetime-picker/types.js → time-picker/index.js} +17 -0
- package/lib/time-picker/style/index.d.ts +1 -0
- package/lib/time-picker/style/index.js +3 -0
- package/lib/time-picker/style/less.d.ts +1 -0
- package/lib/time-picker/style/less.js +3 -0
- package/lib/toast/Toast.js +1 -0
- package/lib/toast/index.css +1 -1
- package/lib/toast/index.less +19 -21
- package/lib/tree-select/TreeSelect.d.ts +3 -3
- package/lib/tree-select/TreeSelect.js +3 -3
- package/lib/tree-select/index.css +1 -1
- package/lib/tree-select/index.d.ts +3 -3
- package/lib/tree-select/index.less +12 -14
- package/lib/uploader/Uploader.d.ts +4 -4
- package/lib/uploader/Uploader.js +4 -4
- package/lib/uploader/index.css +1 -1
- package/lib/uploader/index.d.ts +4 -4
- package/lib/uploader/index.less +31 -33
- package/lib/utils/basic.d.ts +1 -0
- package/lib/utils/basic.js +2 -0
- package/lib/vant.cjs.js +1251 -1655
- package/lib/vant.cjs.min.js +1 -1
- package/lib/vant.es.js +1251 -1656
- package/lib/vant.es.min.js +1251 -1656
- package/lib/vant.js +1251 -1655
- package/lib/vant.min.js +1 -1
- package/package.json +5 -2
- package/vetur/attributes.json +430 -366
- package/vetur/tags.json +144 -132
- package/vetur/web-types.json +1495 -1300
- package/es/action-bar/var.css +0 -0
- package/es/action-bar/var.less +0 -4
- package/es/action-bar-button/var.css +0 -0
- package/es/action-bar-button/var.less +0 -5
- package/es/action-bar-icon/var.css +0 -0
- package/es/action-bar-icon/var.less +0 -10
- package/es/action-sheet/var.css +0 -0
- package/es/action-sheet/var.less +0 -23
- package/es/address-edit/var.css +0 -0
- package/es/address-edit/var.less +0 -6
- package/es/address-list/var.css +0 -0
- package/es/address-list/var.less +0 -16
- package/es/badge/var.css +0 -0
- package/es/badge/var.less +0 -12
- package/es/button/var.css +0 -0
- package/es/button/var.less +0 -36
- package/es/calendar/var.css +0 -0
- package/es/calendar/var.less +0 -27
- package/es/card/var.css +0 -0
- package/es/card/var.less +0 -18
- package/es/cascader/var.css +0 -0
- package/es/cascader/var.less +0 -15
- package/es/cell/var.css +0 -0
- package/es/cell/var.less +0 -21
- package/es/cell-group/var.css +0 -0
- package/es/cell-group/var.less +0 -12
- package/es/checkbox/var.css +0 -0
- package/es/checkbox/var.less +0 -11
- package/es/circle/var.css +0 -0
- package/es/circle/var.less +0 -9
- package/es/collapse-item/var.css +0 -0
- package/es/collapse-item/var.less +0 -9
- package/es/contact-card/var.css +0 -0
- package/es/contact-card/var.less +0 -6
- package/es/contact-edit/var.css +0 -0
- package/es/contact-edit/var.less +0 -8
- package/es/contact-list/var.css +0 -0
- package/es/contact-list/var.less +0 -6
- package/es/count-down/var.css +0 -0
- package/es/count-down/var.less +0 -5
- package/es/coupon/var.css +0 -0
- package/es/coupon/var.less +0 -19
- package/es/coupon-cell/var.css +0 -0
- package/es/coupon-cell/var.less +0 -3
- package/es/coupon-list/var.css +0 -0
- package/es/coupon-list/var.less +0 -10
- package/es/datetime-picker/DatePicker.js +0 -250
- package/es/datetime-picker/DatetimePicker.d.ts +0 -7
- package/es/datetime-picker/DatetimePicker.js +0 -40
- package/es/datetime-picker/TimePicker.js +0 -117
- package/es/datetime-picker/index.d.ts +0 -12
- package/es/datetime-picker/index.js +0 -8
- package/es/datetime-picker/types.d.ts +0 -9
- package/es/datetime-picker/types.js +0 -0
- package/es/datetime-picker/utils.js +0 -63
- package/es/dialog/var.css +0 -0
- package/es/dialog/var.less +0 -21
- package/es/divider/var.css +0 -0
- package/es/divider/var.less +0 -10
- package/es/dropdown-item/var.css +0 -0
- package/es/dropdown-item/var.less +0 -3
- package/es/dropdown-menu/var.css +0 -0
- package/es/dropdown-menu/var.less +0 -13
- package/es/empty/var.css +0 -0
- package/es/empty/var.less +0 -10
- package/es/field/var.css +0 -0
- package/es/field/var.less +0 -21
- package/es/grid-item/var.css +0 -0
- package/es/grid-item/var.less +0 -8
- package/es/image/var.css +0 -0
- package/es/image/var.less +0 -9
- package/es/image-preview/var.css +0 -0
- package/es/image-preview/var.less +0 -11
- package/es/index-anchor/var.css +0 -0
- package/es/index-anchor/var.less +0 -11
- package/es/index-bar/var.css +0 -0
- package/es/index-bar/var.less +0 -6
- package/es/list/var.css +0 -0
- package/es/list/var.less +0 -6
- package/es/loading/var.css +0 -0
- package/es/loading/var.less +0 -7
- package/es/nav-bar/var.css +0 -0
- package/es/nav-bar/var.less +0 -10
- package/es/notice-bar/var.css +0 -0
- package/es/notice-bar/var.less +0 -11
- package/es/notify/var.css +0 -0
- package/es/notify/var.less +0 -10
- package/es/number-keyboard/var.css +0 -0
- package/es/number-keyboard/var.less +0 -17
- package/es/overlay/var.css +0 -0
- package/es/overlay/var.less +0 -4
- package/es/pagination/var.css +0 -0
- package/es/pagination/var.less +0 -11
- package/es/password-input/var.css +0 -0
- package/es/password-input/var.less +0 -17
- package/es/picker/var.css +0 -0
- package/es/picker/var.less +0 -22
- package/es/popover/var.css +0 -0
- package/es/popover/var.less +0 -15
- package/es/popup/var.css +0 -0
- package/es/popup/var.less +0 -9
- package/es/progress/var.css +0 -0
- package/es/progress/var.less +0 -11
- package/es/pull-refresh/var.css +0 -0
- package/es/pull-refresh/var.less +0 -6
- package/es/radio/var.css +0 -0
- package/es/radio/var.less +0 -11
- package/es/rate/var.css +0 -0
- package/es/rate/var.less +0 -7
- package/es/search/var.css +0 -0
- package/es/search/var.less +0 -13
- package/es/share-sheet/var.css +0 -0
- package/es/share-sheet/var.less +0 -18
- package/es/sidebar/var.css +0 -0
- package/es/sidebar/var.less +0 -3
- package/es/sidebar-item/var.css +0 -0
- package/es/sidebar-item/var.less +0 -15
- package/es/skeleton/var.css +0 -0
- package/es/skeleton/var.less +0 -9
- package/es/slider/var.css +0 -0
- package/es/slider/var.less +0 -11
- package/es/step/var.css +0 -0
- package/es/step/var.less +0 -13
- package/es/stepper/var.css +0 -0
- package/es/stepper/var.less +0 -15
- package/es/steps/var.css +0 -0
- package/es/steps/var.less +0 -3
- package/es/sticky/var.css +0 -0
- package/es/sticky/var.less +0 -3
- package/es/style/var.css +0 -0
- package/es/style/var.less +0 -74
- package/es/submit-bar/var.css +0 -0
- package/es/submit-bar/var.less +0 -22
- package/es/swipe/var.css +0 -0
- package/es/swipe/var.less +0 -8
- package/es/switch/var.css +0 -0
- package/es/switch/var.less +0 -14
- package/es/tabbar/var.css +0 -0
- package/es/tabbar/var.less +0 -5
- package/es/tabbar-item/var.css +0 -0
- package/es/tabbar-item/var.less +0 -9
- package/es/tabs/var.css +0 -0
- package/es/tabs/var.less +0 -14
- package/es/tag/var.css +0 -0
- package/es/tag/var.less +0 -18
- package/es/toast/var.css +0 -0
- package/es/toast/var.less +0 -17
- package/es/tree-select/var.css +0 -0
- package/es/tree-select/var.less +0 -10
- package/es/uploader/var.css +0 -0
- package/es/uploader/var.less +0 -27
- package/lib/action-bar/var.css +0 -0
- package/lib/action-bar/var.less +0 -4
- package/lib/action-bar-button/var.css +0 -0
- package/lib/action-bar-button/var.less +0 -5
- package/lib/action-bar-icon/var.css +0 -0
- package/lib/action-bar-icon/var.less +0 -10
- package/lib/action-sheet/var.css +0 -0
- package/lib/action-sheet/var.less +0 -23
- package/lib/address-edit/var.css +0 -0
- package/lib/address-edit/var.less +0 -6
- package/lib/address-list/var.css +0 -0
- package/lib/address-list/var.less +0 -16
- package/lib/badge/var.css +0 -0
- package/lib/badge/var.less +0 -12
- package/lib/button/var.css +0 -0
- package/lib/button/var.less +0 -36
- package/lib/calendar/var.css +0 -0
- package/lib/calendar/var.less +0 -27
- package/lib/card/var.css +0 -0
- package/lib/card/var.less +0 -18
- package/lib/cascader/var.css +0 -0
- package/lib/cascader/var.less +0 -15
- package/lib/cell/var.css +0 -0
- package/lib/cell/var.less +0 -21
- package/lib/cell-group/var.css +0 -0
- package/lib/cell-group/var.less +0 -12
- package/lib/checkbox/var.css +0 -0
- package/lib/checkbox/var.less +0 -11
- package/lib/circle/var.css +0 -0
- package/lib/circle/var.less +0 -9
- package/lib/collapse-item/var.css +0 -0
- package/lib/collapse-item/var.less +0 -9
- package/lib/contact-card/var.css +0 -0
- package/lib/contact-card/var.less +0 -6
- package/lib/contact-edit/var.css +0 -0
- package/lib/contact-edit/var.less +0 -8
- package/lib/contact-list/var.css +0 -0
- package/lib/contact-list/var.less +0 -6
- package/lib/count-down/var.css +0 -0
- package/lib/count-down/var.less +0 -5
- package/lib/coupon/var.css +0 -0
- package/lib/coupon/var.less +0 -19
- package/lib/coupon-cell/var.css +0 -0
- package/lib/coupon-cell/var.less +0 -3
- package/lib/coupon-list/var.css +0 -0
- package/lib/coupon-list/var.less +0 -10
- package/lib/datetime-picker/DatePicker.js +0 -274
- package/lib/datetime-picker/DatetimePicker.d.ts +0 -7
- package/lib/datetime-picker/DatetimePicker.js +0 -69
- package/lib/datetime-picker/TimePicker.js +0 -141
- package/lib/datetime-picker/index.d.ts +0 -12
- package/lib/datetime-picker/types.d.ts +0 -9
- package/lib/dialog/var.css +0 -0
- package/lib/dialog/var.less +0 -21
- package/lib/divider/var.css +0 -0
- package/lib/divider/var.less +0 -10
- package/lib/dropdown-item/var.css +0 -0
- package/lib/dropdown-item/var.less +0 -3
- package/lib/dropdown-menu/var.css +0 -0
- package/lib/dropdown-menu/var.less +0 -13
- package/lib/empty/var.css +0 -0
- package/lib/empty/var.less +0 -10
- package/lib/field/var.css +0 -0
- package/lib/field/var.less +0 -21
- package/lib/grid-item/var.css +0 -0
- package/lib/grid-item/var.less +0 -8
- package/lib/image/var.css +0 -0
- package/lib/image/var.less +0 -9
- package/lib/image-preview/var.css +0 -0
- package/lib/image-preview/var.less +0 -11
- package/lib/index-anchor/var.css +0 -0
- package/lib/index-anchor/var.less +0 -11
- package/lib/index-bar/var.css +0 -0
- package/lib/index-bar/var.less +0 -6
- package/lib/list/var.css +0 -0
- package/lib/list/var.less +0 -6
- package/lib/loading/var.css +0 -0
- package/lib/loading/var.less +0 -7
- package/lib/nav-bar/var.css +0 -0
- package/lib/nav-bar/var.less +0 -10
- package/lib/notice-bar/var.css +0 -0
- package/lib/notice-bar/var.less +0 -11
- package/lib/notify/var.css +0 -0
- package/lib/notify/var.less +0 -10
- package/lib/number-keyboard/var.css +0 -0
- package/lib/number-keyboard/var.less +0 -17
- package/lib/overlay/var.css +0 -0
- package/lib/overlay/var.less +0 -4
- package/lib/pagination/var.css +0 -0
- package/lib/pagination/var.less +0 -11
- package/lib/password-input/var.css +0 -0
- package/lib/password-input/var.less +0 -17
- package/lib/picker/var.css +0 -0
- package/lib/picker/var.less +0 -22
- package/lib/popover/var.css +0 -0
- package/lib/popover/var.less +0 -15
- package/lib/popup/var.css +0 -0
- package/lib/popup/var.less +0 -9
- package/lib/progress/var.css +0 -0
- package/lib/progress/var.less +0 -11
- package/lib/pull-refresh/var.css +0 -0
- package/lib/pull-refresh/var.less +0 -6
- package/lib/radio/var.css +0 -0
- package/lib/radio/var.less +0 -11
- package/lib/rate/var.css +0 -0
- package/lib/rate/var.less +0 -7
- package/lib/search/var.css +0 -0
- package/lib/search/var.less +0 -13
- package/lib/share-sheet/var.css +0 -0
- package/lib/share-sheet/var.less +0 -18
- package/lib/sidebar/var.css +0 -0
- package/lib/sidebar/var.less +0 -3
- package/lib/sidebar-item/var.css +0 -0
- package/lib/sidebar-item/var.less +0 -15
- package/lib/skeleton/var.css +0 -0
- package/lib/skeleton/var.less +0 -9
- package/lib/slider/var.css +0 -0
- package/lib/slider/var.less +0 -11
- package/lib/step/var.css +0 -0
- package/lib/step/var.less +0 -13
- package/lib/stepper/var.css +0 -0
- package/lib/stepper/var.less +0 -15
- package/lib/steps/var.css +0 -0
- package/lib/steps/var.less +0 -3
- package/lib/sticky/var.css +0 -0
- package/lib/sticky/var.less +0 -3
- package/lib/style/var.css +0 -0
- package/lib/style/var.less +0 -74
- package/lib/submit-bar/var.css +0 -0
- package/lib/submit-bar/var.less +0 -22
- package/lib/swipe/var.css +0 -0
- package/lib/swipe/var.less +0 -8
- package/lib/switch/var.css +0 -0
- package/lib/switch/var.less +0 -14
- package/lib/tabbar/var.css +0 -0
- package/lib/tabbar/var.less +0 -5
- package/lib/tabbar-item/var.css +0 -0
- package/lib/tabbar-item/var.less +0 -9
- package/lib/tabs/var.css +0 -0
- package/lib/tabs/var.less +0 -14
- package/lib/tag/var.css +0 -0
- package/lib/tag/var.less +0 -18
- package/lib/toast/var.css +0 -0
- package/lib/toast/var.less +0 -17
- package/lib/tree-select/var.css +0 -0
- package/lib/tree-select/var.less +0 -10
- package/lib/uploader/var.css +0 -0
- package/lib/uploader/var.less +0 -27
package/es/step/index.less
CHANGED
@@ -1,17 +1,15 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
:
|
4
|
-
--van-step-text-color:
|
5
|
-
--van-step-
|
6
|
-
--van-step-
|
7
|
-
--van-step-
|
8
|
-
--van-step-
|
9
|
-
--van-step-
|
10
|
-
--van-step-
|
11
|
-
--van-step-
|
12
|
-
--van-step-
|
13
|
-
--van-step-circle-color: @step-circle-color;
|
14
|
-
--van-step-horizontal-title-font-size: @step-horizontal-title-font-size;
|
1
|
+
body {
|
2
|
+
--van-step-text-color: var(--van-text-color-2);
|
3
|
+
--van-step-active-color: var(--van-primary-color);
|
4
|
+
--van-step-process-text-color: var(--van-text-color);
|
5
|
+
--van-step-font-size: var(--van-font-size-md);
|
6
|
+
--van-step-line-color: var(--van-border-color);
|
7
|
+
--van-step-finish-line-color: var(--van-primary-color);
|
8
|
+
--van-step-finish-text-color: var(--van-text-color);
|
9
|
+
--van-step-icon-size: 12px;
|
10
|
+
--van-step-circle-size: 5px;
|
11
|
+
--van-step-circle-color: var(--van-gray-6);
|
12
|
+
--van-step-horizontal-title-font-size: var(--van-font-size-sm);
|
15
13
|
}
|
16
14
|
|
17
15
|
.van-step {
|
@@ -31,7 +29,7 @@
|
|
31
29
|
&__line {
|
32
30
|
position: absolute;
|
33
31
|
background-color: var(--van-step-line-color);
|
34
|
-
transition: background-color var(--van-
|
32
|
+
transition: background-color var(--van-duration-base);
|
35
33
|
}
|
36
34
|
|
37
35
|
&--horizontal {
|
@@ -66,7 +64,7 @@
|
|
66
64
|
left: calc(var(--van-padding-xs) * -1);
|
67
65
|
z-index: 1;
|
68
66
|
padding: 0 var(--van-padding-xs);
|
69
|
-
background-color: var(--van-background-
|
67
|
+
background-color: var(--van-background-2);
|
70
68
|
transform: translateY(-50%);
|
71
69
|
}
|
72
70
|
|
@@ -139,7 +137,7 @@
|
|
139
137
|
|
140
138
|
&__icon,
|
141
139
|
&__title {
|
142
|
-
transition: color var(--van-
|
140
|
+
transition: color var(--van-duration-base);
|
143
141
|
|
144
142
|
&--active,
|
145
143
|
&--finish {
|
package/es/stepper/Stepper.d.ts
CHANGED
@@ -165,8 +165,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
165
165
|
name: string | number;
|
166
166
|
max: string | number;
|
167
167
|
disabled: boolean;
|
168
|
-
min: string | number;
|
169
168
|
step: string | number;
|
169
|
+
min: string | number;
|
170
170
|
integer: boolean;
|
171
171
|
showPlus: boolean;
|
172
172
|
showMinus: boolean;
|
package/es/stepper/index.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
body{--van-stepper-background: var(--van-active-color);--van-stepper-button-icon-color: var(--van-text-color);--van-stepper-button-disabled-color: var(--van-background);--van-stepper-button-disabled-icon-color: var(--van-gray-5);--van-stepper-button-round-theme-color: var(--van-primary-color);--van-stepper-input-width: 32px;--van-stepper-input-height: 28px;--van-stepper-input-font-size: var(--van-font-size-md);--van-stepper-input-line-height: normal;--van-stepper-input-text-color: var(--van-text-color);--van-stepper-input-disabled-text-color: var(--van-text-color-3);--van-stepper-input-disabled-background: var(--van-active-color);--van-stepper-radius: var(--van-radius-md)}.van-stepper{display:inline-block;-webkit-user-select:none;user-select:none}.van-stepper__minus,.van-stepper__plus{position:relative;box-sizing:border-box;width:var(--van-stepper-input-height);height:var(--van-stepper-input-height);margin:0;padding:0;color:var(--van-stepper-button-icon-color);vertical-align:middle;background:var(--van-stepper-background);border:0}.van-stepper__minus:before,.van-stepper__plus:before{width:50%;height:1px}.van-stepper__minus:after,.van-stepper__plus:after{width:1px;height:50%}.van-stepper__minus:before,.van-stepper__plus:before,.van-stepper__minus:after,.van-stepper__plus:after{position:absolute;top:50%;left:50%;background-color:currentColor;transform:translate(-50%,-50%);content:""}.van-stepper__minus--disabled,.van-stepper__plus--disabled{color:var(--van-stepper-button-disabled-icon-color);background-color:var(--van-stepper-button-disabled-color);cursor:not-allowed}.van-stepper__minus{border-radius:var(--van-stepper-radius) 0 0 var(--van-stepper-radius)}.van-stepper__minus:after{display:none}.van-stepper__plus{border-radius:0 var(--van-stepper-radius) var(--van-stepper-radius) 0}.van-stepper__input{box-sizing:border-box;width:var(--van-stepper-input-width);height:var(--van-stepper-input-height);margin:0 2px;padding:0;color:var(--van-stepper-input-text-color);font-size:var(--van-stepper-input-font-size);line-height:var(--van-stepper-input-line-height);text-align:center;vertical-align:middle;background:var(--van-stepper-background);border:0;border-width:1px 0;border-radius:0;-webkit-appearance:none}.van-stepper__input:disabled{color:var(--van-stepper-input-disabled-text-color);background-color:var(--van-stepper-input-disabled-background);-webkit-text-fill-color:var(--van-stepper-input-disabled-text-color);opacity:1}.van-stepper__input:read-only{cursor:default}.van-stepper--round .van-stepper__input{background-color:transparent}.van-stepper--round .van-stepper__plus,.van-stepper--round .van-stepper__minus{border-radius:100%}.van-stepper--round .van-stepper__plus--disabled,.van-stepper--round .van-stepper__minus--disabled{opacity:.3;cursor:not-allowed}.van-stepper--round .van-stepper__plus{color:var(--van-white);background:var(--van-stepper-button-round-theme-color)}.van-stepper--round .van-stepper__minus{color:var(--van-stepper-button-round-theme-color);background-color:var(--van-background-2);border:1px solid var(--van-stepper-button-round-theme-color)}
|
package/es/stepper/index.d.ts
CHANGED
@@ -110,8 +110,8 @@ export declare const Stepper: import("../utils").WithInstall<import("vue").Defin
|
|
110
110
|
name: string | number;
|
111
111
|
max: string | number;
|
112
112
|
disabled: boolean;
|
113
|
-
min: string | number;
|
114
113
|
step: string | number;
|
114
|
+
min: string | number;
|
115
115
|
integer: boolean;
|
116
116
|
showPlus: boolean;
|
117
117
|
showMinus: boolean;
|
package/es/stepper/index.less
CHANGED
@@ -1,19 +1,17 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
:
|
4
|
-
--van-stepper-
|
5
|
-
--van-stepper-button-icon-color:
|
6
|
-
--van-stepper-button-
|
7
|
-
--van-stepper-
|
8
|
-
--van-stepper-
|
9
|
-
--van-stepper-input-
|
10
|
-
--van-stepper-input-height:
|
11
|
-
--van-stepper-input-
|
12
|
-
--van-stepper-input-
|
13
|
-
--van-stepper-input-
|
14
|
-
--van-stepper-
|
15
|
-
--van-stepper-input-disabled-background-color: @stepper-input-disabled-background-color;
|
16
|
-
--van-stepper-border-radius: @stepper-border-radius;
|
1
|
+
body {
|
2
|
+
--van-stepper-background: var(--van-active-color);
|
3
|
+
--van-stepper-button-icon-color: var(--van-text-color);
|
4
|
+
--van-stepper-button-disabled-color: var(--van-background);
|
5
|
+
--van-stepper-button-disabled-icon-color: var(--van-gray-5);
|
6
|
+
--van-stepper-button-round-theme-color: var(--van-primary-color);
|
7
|
+
--van-stepper-input-width: 32px;
|
8
|
+
--van-stepper-input-height: 28px;
|
9
|
+
--van-stepper-input-font-size: var(--van-font-size-md);
|
10
|
+
--van-stepper-input-line-height: normal;
|
11
|
+
--van-stepper-input-text-color: var(--van-text-color);
|
12
|
+
--van-stepper-input-disabled-text-color: var(--van-text-color-3);
|
13
|
+
--van-stepper-input-disabled-background: var(--van-active-color);
|
14
|
+
--van-stepper-radius: var(--van-radius-md);
|
17
15
|
}
|
18
16
|
|
19
17
|
.van-stepper {
|
@@ -30,7 +28,7 @@
|
|
30
28
|
padding: 0;
|
31
29
|
color: var(--van-stepper-button-icon-color);
|
32
30
|
vertical-align: middle;
|
33
|
-
background: var(--van-stepper-background
|
31
|
+
background: var(--van-stepper-background);
|
34
32
|
border: 0;
|
35
33
|
|
36
34
|
&::before {
|
@@ -61,8 +59,7 @@
|
|
61
59
|
}
|
62
60
|
|
63
61
|
&__minus {
|
64
|
-
border-radius: var(--van-stepper-
|
65
|
-
var(--van-stepper-border-radius);
|
62
|
+
border-radius: var(--van-stepper-radius) 0 0 var(--van-stepper-radius);
|
66
63
|
|
67
64
|
&::after {
|
68
65
|
display: none;
|
@@ -70,8 +67,7 @@
|
|
70
67
|
}
|
71
68
|
|
72
69
|
&__plus {
|
73
|
-
border-radius: 0 var(--van-stepper-
|
74
|
-
var(--van-stepper-border-radius) 0;
|
70
|
+
border-radius: 0 var(--van-stepper-radius) var(--van-stepper-radius) 0;
|
75
71
|
}
|
76
72
|
|
77
73
|
&__input {
|
@@ -85,7 +81,7 @@
|
|
85
81
|
line-height: var(--van-stepper-input-line-height);
|
86
82
|
text-align: center;
|
87
83
|
vertical-align: middle;
|
88
|
-
background: var(--van-stepper-background
|
84
|
+
background: var(--van-stepper-background);
|
89
85
|
border: 0;
|
90
86
|
border-width: 1px 0;
|
91
87
|
border-radius: 0;
|
@@ -93,7 +89,7 @@
|
|
93
89
|
|
94
90
|
&:disabled {
|
95
91
|
color: var(--van-stepper-input-disabled-text-color);
|
96
|
-
background-color: var(--van-stepper-input-disabled-background
|
92
|
+
background-color: var(--van-stepper-input-disabled-background);
|
97
93
|
// fix disabled color in iOS
|
98
94
|
-webkit-text-fill-color: var(--van-stepper-input-disabled-text-color);
|
99
95
|
opacity: 1;
|
@@ -126,7 +122,7 @@
|
|
126
122
|
|
127
123
|
.van-stepper__minus {
|
128
124
|
color: var(--van-stepper-button-round-theme-color);
|
129
|
-
background-color: var(--van-background-
|
125
|
+
background-color: var(--van-background-2);
|
130
126
|
border: 1px solid var(--van-stepper-button-round-theme-color);
|
131
127
|
}
|
132
128
|
}
|
package/es/steps/Steps.d.ts
CHANGED
@@ -43,7 +43,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
43
43
|
activeColor: StringConstructor;
|
44
44
|
inactiveIcon: StringConstructor;
|
45
45
|
inactiveColor: StringConstructor;
|
46
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "
|
46
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "clickStep"[], "clickStep", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
47
47
|
active: {
|
48
48
|
type: (NumberConstructor | StringConstructor)[];
|
49
49
|
default: number;
|
@@ -62,7 +62,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
62
62
|
inactiveIcon: StringConstructor;
|
63
63
|
inactiveColor: StringConstructor;
|
64
64
|
}>> & {
|
65
|
-
|
65
|
+
onClickStep?: ((...args: any[]) => any) | undefined;
|
66
66
|
}, {
|
67
67
|
active: string | number;
|
68
68
|
direction: StepsDirection;
|
package/es/steps/Steps.js
CHANGED
@@ -17,7 +17,7 @@ const STEPS_KEY = Symbol(name);
|
|
17
17
|
var stdin_default = defineComponent({
|
18
18
|
name,
|
19
19
|
props: stepsProps,
|
20
|
-
emits: ["
|
20
|
+
emits: ["clickStep"],
|
21
21
|
setup(props, {
|
22
22
|
emit,
|
23
23
|
slots
|
@@ -25,7 +25,7 @@ var stdin_default = defineComponent({
|
|
25
25
|
const {
|
26
26
|
linkChildren
|
27
27
|
} = useChildren(STEPS_KEY);
|
28
|
-
const onClickStep = (index) => emit("
|
28
|
+
const onClickStep = (index) => emit("clickStep", index);
|
29
29
|
linkChildren({
|
30
30
|
props,
|
31
31
|
onClickStep
|
package/es/steps/index.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
body{--van-steps-background: var(--van-background-2)}.van-steps{overflow:hidden;background-color:var(--van-steps-background)}.van-steps--horizontal{padding:10px 10px 0}.van-steps--horizontal .van-steps__items{position:relative;display:flex;margin:0 0 10px;padding-bottom:22px}.van-steps--vertical{padding:0 0 0 var(--van-padding-xl)}
|
package/es/steps/index.d.ts
CHANGED
@@ -16,7 +16,7 @@ export declare const Steps: import("../utils").WithInstall<import("vue").DefineC
|
|
16
16
|
activeColor: StringConstructor;
|
17
17
|
inactiveIcon: StringConstructor;
|
18
18
|
inactiveColor: StringConstructor;
|
19
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "
|
19
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "clickStep"[], "clickStep", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
20
20
|
active: {
|
21
21
|
type: (NumberConstructor | StringConstructor)[];
|
22
22
|
default: number;
|
@@ -35,7 +35,7 @@ export declare const Steps: import("../utils").WithInstall<import("vue").DefineC
|
|
35
35
|
inactiveIcon: StringConstructor;
|
36
36
|
inactiveColor: StringConstructor;
|
37
37
|
}>> & {
|
38
|
-
|
38
|
+
onClickStep?: ((...args: any[]) => any) | undefined;
|
39
39
|
}, {
|
40
40
|
active: string | number;
|
41
41
|
direction: import("./Steps").StepsDirection;
|
package/es/steps/index.less
CHANGED
@@ -1,12 +1,10 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
:root {
|
4
|
-
--van-steps-background-color: @steps-background-color;
|
1
|
+
body {
|
2
|
+
--van-steps-background: var(--van-background-2);
|
5
3
|
}
|
6
4
|
|
7
5
|
.van-steps {
|
8
6
|
overflow: hidden;
|
9
|
-
background-color: var(--van-steps-background
|
7
|
+
background-color: var(--van-steps-background);
|
10
8
|
|
11
9
|
&--horizontal {
|
12
10
|
padding: 10px 10px 0;
|
package/es/sticky/index.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
body{--van-sticky-z-index: 99}.van-sticky--fixed{position:fixed;z-index:var(--van-sticky-z-index)}
|
package/es/sticky/index.less
CHANGED
package/es/style/animation.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
@keyframes van-slide-up-enter{0%{transform:translateY(100%)}}@keyframes van-slide-up-leave{to{transform:translateY(100%)}}@keyframes van-slide-down-enter{0%{transform:translateY(-100%)}}@keyframes van-slide-down-leave{to{transform:translateY(-100%)}}@keyframes van-slide-left-enter{0%{transform:translate(-100%)}}@keyframes van-slide-left-leave{to{transform:translate(-100%)}}@keyframes van-slide-right-enter{0%{transform:translate(100%)}}@keyframes van-slide-right-leave{to{transform:translate(100%)}}@keyframes van-fade-in{0%{opacity:0}to{opacity:1}}@keyframes van-fade-out{0%{opacity:1}to{opacity:0}}@keyframes van-rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.van-fade-enter-active{animation:var(--van-
|
1
|
+
@keyframes van-slide-up-enter{0%{transform:translateY(100%)}}@keyframes van-slide-up-leave{to{transform:translateY(100%)}}@keyframes van-slide-down-enter{0%{transform:translateY(-100%)}}@keyframes van-slide-down-leave{to{transform:translateY(-100%)}}@keyframes van-slide-left-enter{0%{transform:translate(-100%)}}@keyframes van-slide-left-leave{to{transform:translate(-100%)}}@keyframes van-slide-right-enter{0%{transform:translate(100%)}}@keyframes van-slide-right-leave{to{transform:translate(100%)}}@keyframes van-fade-in{0%{opacity:0}to{opacity:1}}@keyframes van-fade-out{0%{opacity:1}to{opacity:0}}@keyframes van-rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.van-fade-enter-active{animation:var(--van-duration-base) van-fade-in both var(--van-ease-out)}.van-fade-leave-active{animation:var(--van-duration-base) van-fade-out both var(--van-ease-in)}.van-slide-up-enter-active{animation:van-slide-up-enter var(--van-duration-base) both var(--van-ease-out)}.van-slide-up-leave-active{animation:van-slide-up-leave var(--van-duration-base) both var(--van-ease-in)}.van-slide-down-enter-active{animation:van-slide-down-enter var(--van-duration-base) both var(--van-ease-out)}.van-slide-down-leave-active{animation:van-slide-down-leave var(--van-duration-base) both var(--van-ease-in)}.van-slide-left-enter-active{animation:van-slide-left-enter var(--van-duration-base) both var(--van-ease-out)}.van-slide-left-leave-active{animation:van-slide-left-leave var(--van-duration-base) both var(--van-ease-in)}.van-slide-right-enter-active{animation:van-slide-right-enter var(--van-duration-base) both var(--van-ease-out)}.van-slide-right-leave-active{animation:van-slide-right-leave var(--van-duration-base) both var(--van-ease-in)}
|
package/es/style/animation.less
CHANGED
@@ -1,5 +1,3 @@
|
|
1
|
-
@import './var';
|
2
|
-
|
3
1
|
@keyframes van-slide-up-enter {
|
4
2
|
from {
|
5
3
|
transform: translate3d(0, 100%, 0);
|
@@ -80,60 +78,58 @@
|
|
80
78
|
|
81
79
|
.van-fade {
|
82
80
|
&-enter-active {
|
83
|
-
animation: var(--van-
|
84
|
-
var(--van-animation-timing-function-enter);
|
81
|
+
animation: var(--van-duration-base) van-fade-in both var(--van-ease-out);
|
85
82
|
}
|
86
83
|
|
87
84
|
&-leave-active {
|
88
|
-
animation: var(--van-
|
89
|
-
var(--van-animation-timing-function-leave);
|
85
|
+
animation: var(--van-duration-base) van-fade-out both var(--van-ease-in);
|
90
86
|
}
|
91
87
|
}
|
92
88
|
|
93
89
|
.van-slide-up {
|
94
90
|
&-enter-active {
|
95
|
-
animation: van-slide-up-enter var(--van-
|
96
|
-
var(--van-
|
91
|
+
animation: van-slide-up-enter var(--van-duration-base) both
|
92
|
+
var(--van-ease-out);
|
97
93
|
}
|
98
94
|
|
99
95
|
&-leave-active {
|
100
|
-
animation: van-slide-up-leave var(--van-
|
101
|
-
var(--van-
|
96
|
+
animation: van-slide-up-leave var(--van-duration-base) both
|
97
|
+
var(--van-ease-in);
|
102
98
|
}
|
103
99
|
}
|
104
100
|
|
105
101
|
.van-slide-down {
|
106
102
|
&-enter-active {
|
107
|
-
animation: van-slide-down-enter var(--van-
|
108
|
-
var(--van-
|
103
|
+
animation: van-slide-down-enter var(--van-duration-base) both
|
104
|
+
var(--van-ease-out);
|
109
105
|
}
|
110
106
|
|
111
107
|
&-leave-active {
|
112
|
-
animation: van-slide-down-leave var(--van-
|
113
|
-
var(--van-
|
108
|
+
animation: van-slide-down-leave var(--van-duration-base) both
|
109
|
+
var(--van-ease-in);
|
114
110
|
}
|
115
111
|
}
|
116
112
|
|
117
113
|
.van-slide-left {
|
118
114
|
&-enter-active {
|
119
|
-
animation: van-slide-left-enter var(--van-
|
120
|
-
var(--van-
|
115
|
+
animation: van-slide-left-enter var(--van-duration-base) both
|
116
|
+
var(--van-ease-out);
|
121
117
|
}
|
122
118
|
|
123
119
|
&-leave-active {
|
124
|
-
animation: van-slide-left-leave var(--van-
|
125
|
-
var(--van-
|
120
|
+
animation: van-slide-left-leave var(--van-duration-base) both
|
121
|
+
var(--van-ease-in);
|
126
122
|
}
|
127
123
|
}
|
128
124
|
|
129
125
|
.van-slide-right {
|
130
126
|
&-enter-active {
|
131
|
-
animation: van-slide-right-enter var(--van-
|
132
|
-
var(--van-
|
127
|
+
animation: van-slide-right-enter var(--van-duration-base) both
|
128
|
+
var(--van-ease-out);
|
133
129
|
}
|
134
130
|
|
135
131
|
&-leave-active {
|
136
|
-
animation: van-slide-right-leave var(--van-
|
137
|
-
var(--van-
|
132
|
+
animation: van-slide-right-leave var(--van-duration-base) both
|
133
|
+
var(--van-ease-in);
|
138
134
|
}
|
139
135
|
}
|
package/es/style/base.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
body{--van-black: #000;--van-white: #fff;--van-gray-1: #f7f8fa;--van-gray-2: #f2f3f5;--van-gray-3: #ebedf0;--van-gray-4: #dcdee0;--van-gray-5: #c8c9cc;--van-gray-6: #969799;--van-gray-7: #646566;--van-gray-8: #323233;--van-red: #ee0a24;--van-blue: #1989fa;--van-orange: #ff976a;--van-orange-dark: #ed6a0c;--van-orange-light: #fffbe8;--van-green: #07c160;--van-gradient-red: linear-gradient(to right, #ff6034, #ee0a24);--van-gradient-orange: linear-gradient(to right, #ffd01e, #ff8917);--van-primary-color: var(--van-blue);--van-success-color: var(--van-green);--van-danger-color: var(--van-red);--van-warning-color: var(--van-orange);--van-text-color: var(--van-gray-8);--van-text-color-2: var(--van-gray-6);--van-text-color-3: var(--van-gray-5);--van-link-color: #576b95;--van-active-color: var(--van-gray-2);--van-active-opacity: .6;--van-disabled-opacity: .5;--van-background: var(--van-gray-1);--van-background-2: var(--van-white);--van-background-3: var(--van-white);--van-padding-base: 4px;--van-padding-xs: 8px;--van-padding-sm: 12px;--van-padding-md: 16px;--van-padding-lg: 24px;--van-padding-xl: 32px;--van-font-bold: 600;--van-font-size-xs: 10px;--van-font-size-sm: 12px;--van-font-size-md: 14px;--van-font-size-lg: 16px;--van-line-height-xs: 14px;--van-line-height-sm: 18px;--van-line-height-md: 20px;--van-line-height-lg: 22px;--van-base-font: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Segoe UI, Arial, Roboto, "PingFang SC", "miui", "Hiragino Sans GB", "Microsoft Yahei", sans-serif;--van-price-font: avenir-heavy, "PingFang SC", helvetica neue, arial, sans-serif;--van-duration-base: .3s;--van-duration-fast: .2s;--van-ease-out: ease-out;--van-ease-in: ease-in;--van-border-color: var(--van-gray-3);--van-border-width: 1px;--van-radius-sm: 2px;--van-radius-md: 4px;--van-radius-lg: 8px;--van-radius-max: 999px}.van-theme-dark{--van-text-color: #f5f5f5;--van-text-color-2: #707070;--van-text-color-3: #4d4d4d;--van-border-color: #3a3a3c;--van-active-color: #3a3a3c;--van-background: #000;--van-background-2: #1c1c1e;--van-background-3: #37363b}html{-webkit-tap-highlight-color:transparent}body{margin:0;font-family:var(--van-base-font)}a{text-decoration:none}input,button,textarea{color:inherit;font:inherit}a:focus,input:focus,button:focus,textarea:focus,[class*=van-]:focus{outline:none}ol,ul{margin:0;padding:0;list-style:none}@keyframes van-slide-up-enter{0%{transform:translateY(100%)}}@keyframes van-slide-up-leave{to{transform:translateY(100%)}}@keyframes van-slide-down-enter{0%{transform:translateY(-100%)}}@keyframes van-slide-down-leave{to{transform:translateY(-100%)}}@keyframes van-slide-left-enter{0%{transform:translate(-100%)}}@keyframes van-slide-left-leave{to{transform:translate(-100%)}}@keyframes van-slide-right-enter{0%{transform:translate(100%)}}@keyframes van-slide-right-leave{to{transform:translate(100%)}}@keyframes van-fade-in{0%{opacity:0}to{opacity:1}}@keyframes van-fade-out{0%{opacity:1}to{opacity:0}}@keyframes van-rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.van-fade-enter-active{animation:var(--van-duration-base) van-fade-in both var(--van-ease-out)}.van-fade-leave-active{animation:var(--van-duration-base) van-fade-out both var(--van-ease-in)}.van-slide-up-enter-active{animation:van-slide-up-enter var(--van-duration-base) both var(--van-ease-out)}.van-slide-up-leave-active{animation:van-slide-up-leave var(--van-duration-base) both var(--van-ease-in)}.van-slide-down-enter-active{animation:van-slide-down-enter var(--van-duration-base) both var(--van-ease-out)}.van-slide-down-leave-active{animation:van-slide-down-leave var(--van-duration-base) both var(--van-ease-in)}.van-slide-left-enter-active{animation:van-slide-left-enter var(--van-duration-base) both var(--van-ease-out)}.van-slide-left-leave-active{animation:van-slide-left-leave var(--van-duration-base) both var(--van-ease-in)}.van-slide-right-enter-active{animation:van-slide-right-enter var(--van-duration-base) both var(--van-ease-out)}.van-slide-right-leave-active{animation:van-slide-right-leave var(--van-duration-base) both var(--van-ease-in)}.van-clearfix:after{display:table;clear:both;content:""}.van-ellipsis{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.van-multi-ellipsis--l2{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:2;-webkit-box-orient:vertical}.van-multi-ellipsis--l3{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:3;-webkit-box-orient:vertical}.van-safe-area-top{padding-top:constant(safe-area-inset-top);padding-top:env(safe-area-inset-top)}.van-safe-area-bottom{padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom)}.van-haptics-feedback{cursor:pointer}.van-haptics-feedback:active{opacity:var(--van-active-opacity)}[class*=van-hairline]:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;top:-50%;right:-50%;bottom:-50%;left:-50%;border:0 solid var(--van-border-color);transform:scale(.5)}.van-hairline,.van-hairline--top,.van-hairline--left,.van-hairline--right,.van-hairline--bottom,.van-hairline--surround,.van-hairline--top-bottom{position:relative}.van-hairline--top:after{border-top-width:var(--van-border-width)}.van-hairline--left:after{border-left-width:var(--van-border-width)}.van-hairline--right:after{border-right-width:var(--van-border-width)}.van-hairline--bottom:after{border-bottom-width:var(--van-border-width)}.van-hairline--top-bottom:after,.van-hairline-unset--top-bottom:after{border-width:var(--van-border-width) 0}.van-hairline--surround:after{border-width:var(--van-border-width)}
|
package/es/style/base.less
CHANGED
@@ -2,7 +2,6 @@
|
|
2
2
|
* Entry of basic styles
|
3
3
|
*/
|
4
4
|
|
5
|
-
@import './var.less';
|
6
5
|
@import './css-variables.less';
|
7
6
|
@import './normalize.less';
|
8
7
|
@import './animation.less';
|
@@ -26,6 +25,11 @@
|
|
26
25
|
.multi-ellipsis(3);
|
27
26
|
}
|
28
27
|
|
28
|
+
.van-safe-area-top {
|
29
|
+
padding-top: constant(safe-area-inset-top);
|
30
|
+
padding-top: env(safe-area-inset-top);
|
31
|
+
}
|
32
|
+
|
29
33
|
.van-safe-area-bottom {
|
30
34
|
padding-bottom: constant(safe-area-inset-bottom);
|
31
35
|
padding-bottom: env(safe-area-inset-bottom);
|
@@ -57,29 +61,29 @@
|
|
57
61
|
}
|
58
62
|
|
59
63
|
&--top::after {
|
60
|
-
border-top-width:
|
64
|
+
border-top-width: var(--van-border-width);
|
61
65
|
}
|
62
66
|
|
63
67
|
&--left::after {
|
64
|
-
border-left-width:
|
68
|
+
border-left-width: var(--van-border-width);
|
65
69
|
}
|
66
70
|
|
67
71
|
&--right::after {
|
68
|
-
border-right-width:
|
72
|
+
border-right-width: var(--van-border-width);
|
69
73
|
}
|
70
74
|
|
71
75
|
&--bottom::after {
|
72
|
-
border-bottom-width:
|
76
|
+
border-bottom-width: var(--van-border-width);
|
73
77
|
}
|
74
78
|
|
75
79
|
&,
|
76
80
|
&-unset {
|
77
81
|
&--top-bottom::after {
|
78
|
-
border-width:
|
82
|
+
border-width: var(--van-border-width) 0;
|
79
83
|
}
|
80
84
|
}
|
81
85
|
|
82
86
|
&--surround::after {
|
83
|
-
border-width:
|
87
|
+
border-width: var(--van-border-width);
|
84
88
|
}
|
85
89
|
}
|
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
body{--van-black: #000;--van-white: #fff;--van-gray-1: #f7f8fa;--van-gray-2: #f2f3f5;--van-gray-3: #ebedf0;--van-gray-4: #dcdee0;--van-gray-5: #c8c9cc;--van-gray-6: #969799;--van-gray-7: #646566;--van-gray-8: #323233;--van-red: #ee0a24;--van-blue: #1989fa;--van-orange: #ff976a;--van-orange-dark: #ed6a0c;--van-orange-light: #fffbe8;--van-green: #07c160;--van-gradient-red: linear-gradient(to right, #ff6034, #ee0a24);--van-gradient-orange: linear-gradient(to right, #ffd01e, #ff8917);--van-primary-color: var(--van-blue);--van-success-color: var(--van-green);--van-danger-color: var(--van-red);--van-warning-color: var(--van-orange);--van-text-color: var(--van-gray-8);--van-text-color-2: var(--van-gray-6);--van-text-color-3: var(--van-gray-5);--van-link-color: #576b95;--van-active-color: var(--van-gray-2);--van-active-opacity: .6;--van-disabled-opacity: .5;--van-background: var(--van-gray-1);--van-background-2: var(--van-white);--van-background-3: var(--van-white);--van-padding-base: 4px;--van-padding-xs: 8px;--van-padding-sm: 12px;--van-padding-md: 16px;--van-padding-lg: 24px;--van-padding-xl: 32px;--van-font-bold: 600;--van-font-size-xs: 10px;--van-font-size-sm: 12px;--van-font-size-md: 14px;--van-font-size-lg: 16px;--van-line-height-xs: 14px;--van-line-height-sm: 18px;--van-line-height-md: 20px;--van-line-height-lg: 22px;--van-base-font: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Segoe UI, Arial, Roboto, "PingFang SC", "miui", "Hiragino Sans GB", "Microsoft Yahei", sans-serif;--van-price-font: avenir-heavy, "PingFang SC", helvetica neue, arial, sans-serif;--van-duration-base: .3s;--van-duration-fast: .2s;--van-ease-out: ease-out;--van-ease-in: ease-in;--van-border-color: var(--van-gray-3);--van-border-width: 1px;--van-radius-sm: 2px;--van-radius-md: 4px;--van-radius-lg: 8px;--van-radius-max: 999px}.van-theme-dark{--van-text-color: #f5f5f5;--van-text-color-2: #707070;--van-text-color-3: #4d4d4d;--van-border-color: #3a3a3c;--van-active-color: #3a3a3c;--van-background: #000;--van-background-2: #1c1c1e;--van-background-3: #37363b}
|
@@ -1,75 +1,90 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
:root {
|
1
|
+
body {
|
4
2
|
// Color Palette
|
5
|
-
--van-black:
|
6
|
-
--van-white:
|
7
|
-
--van-gray-1:
|
8
|
-
--van-gray-2:
|
9
|
-
--van-gray-3:
|
10
|
-
--van-gray-4:
|
11
|
-
--van-gray-5:
|
12
|
-
--van-gray-6:
|
13
|
-
--van-gray-7:
|
14
|
-
--van-gray-8:
|
15
|
-
--van-red:
|
16
|
-
--van-blue:
|
17
|
-
--van-orange:
|
18
|
-
--van-orange-dark:
|
19
|
-
--van-orange-light:
|
20
|
-
--van-green:
|
3
|
+
--van-black: #000;
|
4
|
+
--van-white: #fff;
|
5
|
+
--van-gray-1: #f7f8fa;
|
6
|
+
--van-gray-2: #f2f3f5;
|
7
|
+
--van-gray-3: #ebedf0;
|
8
|
+
--van-gray-4: #dcdee0;
|
9
|
+
--van-gray-5: #c8c9cc;
|
10
|
+
--van-gray-6: #969799;
|
11
|
+
--van-gray-7: #646566;
|
12
|
+
--van-gray-8: #323233;
|
13
|
+
--van-red: #ee0a24;
|
14
|
+
--van-blue: #1989fa;
|
15
|
+
--van-orange: #ff976a;
|
16
|
+
--van-orange-dark: #ed6a0c;
|
17
|
+
--van-orange-light: #fffbe8;
|
18
|
+
--van-green: #07c160;
|
21
19
|
|
22
20
|
// Gradient Colors
|
23
|
-
--van-gradient-red:
|
24
|
-
--van-gradient-orange:
|
21
|
+
--van-gradient-red: linear-gradient(to right, #ff6034, #ee0a24);
|
22
|
+
--van-gradient-orange: linear-gradient(to right, #ffd01e, #ff8917);
|
25
23
|
|
26
24
|
// Component Colors
|
27
|
-
--van-primary-color:
|
28
|
-
--van-success-color:
|
29
|
-
--van-danger-color:
|
30
|
-
--van-warning-color:
|
31
|
-
--van-text-color:
|
32
|
-
--van-text-color-2:
|
33
|
-
--van-text-color-3:
|
34
|
-
--van-
|
35
|
-
--van-active-color:
|
36
|
-
--van-active-opacity:
|
37
|
-
--van-disabled-opacity:
|
38
|
-
--van-background
|
39
|
-
--van-background-
|
25
|
+
--van-primary-color: var(--van-blue);
|
26
|
+
--van-success-color: var(--van-green);
|
27
|
+
--van-danger-color: var(--van-red);
|
28
|
+
--van-warning-color: var(--van-orange);
|
29
|
+
--van-text-color: var(--van-gray-8);
|
30
|
+
--van-text-color-2: var(--van-gray-6);
|
31
|
+
--van-text-color-3: var(--van-gray-5);
|
32
|
+
--van-link-color: #576b95;
|
33
|
+
--van-active-color: var(--van-gray-2);
|
34
|
+
--van-active-opacity: 0.6;
|
35
|
+
--van-disabled-opacity: 0.5;
|
36
|
+
--van-background: var(--van-gray-1);
|
37
|
+
--van-background-2: var(--van-white);
|
38
|
+
--van-background-3: var(--van-white);
|
40
39
|
|
41
40
|
// Padding
|
42
|
-
--van-padding-base:
|
43
|
-
--van-padding-xs:
|
44
|
-
--van-padding-sm:
|
45
|
-
--van-padding-md:
|
46
|
-
--van-padding-lg:
|
47
|
-
--van-padding-xl:
|
41
|
+
--van-padding-base: 4px;
|
42
|
+
--van-padding-xs: 8px;
|
43
|
+
--van-padding-sm: 12px;
|
44
|
+
--van-padding-md: 16px;
|
45
|
+
--van-padding-lg: 24px;
|
46
|
+
--van-padding-xl: 32px;
|
48
47
|
|
49
48
|
// Font
|
50
|
-
--van-font-
|
51
|
-
--van-font-size-
|
52
|
-
--van-font-size-
|
53
|
-
--van-font-size-
|
54
|
-
--van-font-
|
55
|
-
--van-line-height-xs:
|
56
|
-
--van-line-height-sm:
|
57
|
-
--van-line-height-md:
|
58
|
-
--van-line-height-lg:
|
59
|
-
|
60
|
-
--van-
|
49
|
+
--van-font-bold: 600;
|
50
|
+
--van-font-size-xs: 10px;
|
51
|
+
--van-font-size-sm: 12px;
|
52
|
+
--van-font-size-md: 14px;
|
53
|
+
--van-font-size-lg: 16px;
|
54
|
+
--van-line-height-xs: 14px;
|
55
|
+
--van-line-height-sm: 18px;
|
56
|
+
--van-line-height-md: 20px;
|
57
|
+
--van-line-height-lg: 22px;
|
58
|
+
/* stylelint-disable */
|
59
|
+
--van-base-font: -apple-system, BlinkMacSystemFont, 'Helvetica Neue',
|
60
|
+
Helvetica, Segoe UI, Arial, Roboto, 'PingFang SC', 'miui',
|
61
|
+
'Hiragino Sans GB', 'Microsoft Yahei', sans-serif;
|
62
|
+
--van-price-font: avenir-heavy, 'PingFang SC', helvetica neue, arial,
|
63
|
+
sans-serif;
|
64
|
+
/* stylelint-enable */
|
61
65
|
|
62
66
|
// Animation
|
63
|
-
--van-
|
64
|
-
--van-
|
65
|
-
--van-
|
66
|
-
--van-
|
67
|
+
--van-duration-base: 0.3s;
|
68
|
+
--van-duration-fast: 0.2s;
|
69
|
+
--van-ease-out: ease-out;
|
70
|
+
--van-ease-in: ease-in;
|
67
71
|
|
68
72
|
// Border
|
69
|
-
--van-border-color:
|
70
|
-
--van-border-width
|
71
|
-
--van-
|
72
|
-
--van-
|
73
|
-
--van-
|
74
|
-
--van-
|
73
|
+
--van-border-color: var(--van-gray-3);
|
74
|
+
--van-border-width: 1px;
|
75
|
+
--van-radius-sm: 2px;
|
76
|
+
--van-radius-md: 4px;
|
77
|
+
--van-radius-lg: 8px;
|
78
|
+
--van-radius-max: 999px;
|
79
|
+
}
|
80
|
+
|
81
|
+
.van-theme-dark {
|
82
|
+
--van-text-color: #f5f5f5;
|
83
|
+
--van-text-color-2: #707070;
|
84
|
+
--van-text-color-3: #4d4d4d;
|
85
|
+
--van-border-color: #3a3a3c;
|
86
|
+
--van-active-color: #3a3a3c;
|
87
|
+
--van-background: #000;
|
88
|
+
--van-background-2: #1c1c1e;
|
89
|
+
--van-background-3: #37363b;
|
75
90
|
}
|
package/es/style/normalize.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
html{-webkit-tap-highlight-color:transparent}body{margin:0;font-family
|
1
|
+
html{-webkit-tap-highlight-color:transparent}body{margin:0;font-family:var(--van-base-font)}a{text-decoration:none}input,button,textarea{color:inherit;font:inherit}a:focus,input:focus,button:focus,textarea:focus,[class*=van-]:focus{outline:none}ol,ul{margin:0;padding:0;list-style:none}
|