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
@@ -0,0 +1,73 @@
|
|
1
|
+
import { isDef, clamp, extend } from "../utils";
|
2
|
+
const getFirstEnabledOption = (options) => options.find((option) => !option.disabled) || options[0];
|
3
|
+
function getColumnsType(columns, fields) {
|
4
|
+
const firstColumn = columns[0];
|
5
|
+
if (firstColumn) {
|
6
|
+
if (Array.isArray(firstColumn)) {
|
7
|
+
return "multiple";
|
8
|
+
}
|
9
|
+
if (fields.children in firstColumn) {
|
10
|
+
return "cascade";
|
11
|
+
}
|
12
|
+
}
|
13
|
+
return "default";
|
14
|
+
}
|
15
|
+
function findIndexOfEnabledOption(options, index) {
|
16
|
+
index = clamp(index, 0, options.length);
|
17
|
+
for (let i = index; i < options.length; i++) {
|
18
|
+
if (!options[i].disabled)
|
19
|
+
return i;
|
20
|
+
}
|
21
|
+
for (let i = index - 1; i >= 0; i--) {
|
22
|
+
if (!options[i].disabled)
|
23
|
+
return i;
|
24
|
+
}
|
25
|
+
return 0;
|
26
|
+
}
|
27
|
+
const isOptionExist = (options, value, fields) => value !== void 0 && !!options.find((option) => option[fields.value] === value);
|
28
|
+
function findOptionByValue(options, value, fields) {
|
29
|
+
const index = options.findIndex((option) => option[fields.value] === value);
|
30
|
+
const enabledIndex = findIndexOfEnabledOption(options, index);
|
31
|
+
return options[enabledIndex];
|
32
|
+
}
|
33
|
+
function formatCascadeColumns(columns, fields, selectedValues) {
|
34
|
+
const formatted = [];
|
35
|
+
let cursor = {
|
36
|
+
[fields.children]: columns
|
37
|
+
};
|
38
|
+
let columnIndex = 0;
|
39
|
+
while (cursor && cursor[fields.children]) {
|
40
|
+
const options = cursor[fields.children];
|
41
|
+
const value = selectedValues.value[columnIndex];
|
42
|
+
cursor = isDef(value) ? findOptionByValue(options, value, fields) : void 0;
|
43
|
+
if (!cursor && options.length) {
|
44
|
+
const firstValue = getFirstEnabledOption(options)[fields.value];
|
45
|
+
cursor = findOptionByValue(options, firstValue, fields);
|
46
|
+
}
|
47
|
+
columnIndex++;
|
48
|
+
formatted.push(options);
|
49
|
+
}
|
50
|
+
return formatted;
|
51
|
+
}
|
52
|
+
function getElementTranslateY(element) {
|
53
|
+
const { transform } = window.getComputedStyle(element);
|
54
|
+
const translateY = transform.slice(7, transform.length - 1).split(", ")[5];
|
55
|
+
return Number(translateY);
|
56
|
+
}
|
57
|
+
function assignDefaultFields(fields) {
|
58
|
+
return extend({
|
59
|
+
text: "text",
|
60
|
+
value: "value",
|
61
|
+
children: "children"
|
62
|
+
}, fields);
|
63
|
+
}
|
64
|
+
export {
|
65
|
+
assignDefaultFields,
|
66
|
+
findIndexOfEnabledOption,
|
67
|
+
findOptionByValue,
|
68
|
+
formatCascadeColumns,
|
69
|
+
getColumnsType,
|
70
|
+
getElementTranslateY,
|
71
|
+
getFirstEnabledOption,
|
72
|
+
isOptionExist
|
73
|
+
};
|
package/es/popover/Popover.d.ts
CHANGED
@@ -149,13 +149,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
149
149
|
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
150
150
|
}, {
|
151
151
|
offset: [number, number];
|
152
|
+
theme: PopoverTheme;
|
152
153
|
overlay: boolean;
|
153
154
|
show: boolean;
|
154
155
|
teleport: string | import("vue").RendererElement | null | undefined;
|
155
156
|
closeOnClickOverlay: boolean;
|
156
157
|
actions: PopoverAction[];
|
157
158
|
closeOnClickAction: boolean;
|
158
|
-
theme: PopoverTheme;
|
159
159
|
closeOnClickOutside: boolean;
|
160
160
|
trigger: PopoverTrigger;
|
161
161
|
showArrow: boolean;
|
package/es/popover/index.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
body{--van-popover-arrow-size: 6px;--van-popover-radius: var(--van-radius-lg);--van-popover-action-width: 128px;--van-popover-action-height: 44px;--van-popover-action-font-size: var(--van-font-size-md);--van-popover-action-line-height: var(--van-line-height-md);--van-popover-action-icon-size: 20px;--van-popover-light-text-color: var(--van-text-color);--van-popover-light-background: var(--van-background-2);--van-popover-light-action-disabled-text-color: var(--van-text-color-3);--van-popover-dark-text-color: var(--van-white);--van-popover-dark-background: #4a4a4a;--van-popover-dark-action-disabled-text-color: var(--van-text-color-2)}.van-popover{position:absolute;overflow:visible;background-color:transparent;transition:opacity .15s,transform .15s}.van-popover__wrapper{display:inline-block}.van-popover__arrow{position:absolute;width:0;height:0;border-color:transparent;border-style:solid;border-width:var(--van-popover-arrow-size)}.van-popover__content{overflow:hidden;border-radius:var(--van-popover-radius)}.van-popover__action{position:relative;display:flex;align-items:center;box-sizing:border-box;width:var(--van-popover-action-width);height:var(--van-popover-action-height);padding:0 var(--van-padding-md);font-size:var(--van-popover-action-font-size);line-height:var(--van-line-height-md);cursor:pointer}.van-popover__action:last-child .van-popover__action-text:after{display:none}.van-popover__action-text{display:flex;flex:1;align-items:center;justify-content:center;height:100%}.van-popover__action-icon{margin-right:var(--van-padding-xs);font-size:var(--van-popover-action-icon-size)}.van-popover__action--with-icon .van-popover__action-text{justify-content:flex-start}.van-popover[data-popper-placement^=top] .van-popover__arrow{bottom:0;border-top-color:currentColor;border-bottom-width:0;transform:translate(-50%);margin-bottom:calc(var(--van-popover-arrow-size) * -1)}.van-popover[data-popper-placement=top]{transform-origin:50% 100%}.van-popover[data-popper-placement=top] .van-popover__arrow{left:50%}.van-popover[data-popper-placement=top-start]{transform-origin:0 100%}.van-popover[data-popper-placement=top-start] .van-popover__arrow{left:var(--van-padding-md)}.van-popover[data-popper-placement=top-end]{transform-origin:100% 100%}.van-popover[data-popper-placement=top-end] .van-popover__arrow{right:var(--van-padding-md)}.van-popover[data-popper-placement^=left] .van-popover__arrow{right:0;border-right-width:0;border-left-color:currentColor;transform:translateY(-50%);margin-right:calc(var(--van-popover-arrow-size) * -1)}.van-popover[data-popper-placement=left]{transform-origin:100% 50%}.van-popover[data-popper-placement=left] .van-popover__arrow{top:50%}.van-popover[data-popper-placement=left-start]{transform-origin:100% 0}.van-popover[data-popper-placement=left-start] .van-popover__arrow{top:var(--van-padding-md)}.van-popover[data-popper-placement=left-end]{transform-origin:100% 100%}.van-popover[data-popper-placement=left-end] .van-popover__arrow{bottom:var(--van-padding-md)}.van-popover[data-popper-placement^=right] .van-popover__arrow{left:0;border-right-color:currentColor;border-left-width:0;transform:translateY(-50%);margin-left:calc(var(--van-popover-arrow-size) * -1)}.van-popover[data-popper-placement=right]{transform-origin:0 50%}.van-popover[data-popper-placement=right] .van-popover__arrow{top:50%}.van-popover[data-popper-placement=right-start]{transform-origin:0 0}.van-popover[data-popper-placement=right-start] .van-popover__arrow{top:var(--van-padding-md)}.van-popover[data-popper-placement=right-end]{transform-origin:0 100%}.van-popover[data-popper-placement=right-end] .van-popover__arrow{bottom:var(--van-padding-md)}.van-popover[data-popper-placement^=bottom] .van-popover__arrow{top:0;border-top-width:0;border-bottom-color:currentColor;transform:translate(-50%);margin-top:calc(var(--van-popover-arrow-size) * -1)}.van-popover[data-popper-placement=bottom]{transform-origin:50% 0}.van-popover[data-popper-placement=bottom] .van-popover__arrow{left:50%}.van-popover[data-popper-placement=bottom-start]{transform-origin:0 0}.van-popover[data-popper-placement=bottom-start] .van-popover__arrow{left:var(--van-padding-md)}.van-popover[data-popper-placement=bottom-end]{transform-origin:100% 0}.van-popover[data-popper-placement=bottom-end] .van-popover__arrow{right:var(--van-padding-md)}.van-popover--light{color:var(--van-popover-light-text-color)}.van-popover--light .van-popover__content{background:var(--van-popover-light-background);box-shadow:0 2px 12px rgba(50,50,51,.12)}.van-popover--light .van-popover__arrow{color:var(--van-popover-light-background)}.van-popover--light .van-popover__action:active{background-color:var(--van-active-color)}.van-popover--light .van-popover__action--disabled{color:var(--van-popover-light-action-disabled-text-color);cursor:not-allowed}.van-popover--light .van-popover__action--disabled:active{background-color:transparent}.van-popover--dark{color:var(--van-popover-dark-text-color)}.van-popover--dark .van-popover__content{background:var(--van-popover-dark-background)}.van-popover--dark .van-popover__arrow{color:var(--van-popover-dark-background)}.van-popover--dark .van-popover__action:active{background-color:rgba(0,0,0,.2)}.van-popover--dark .van-popover__action--disabled{color:var(--van-popover-dark-action-disabled-text-color)}.van-popover--dark .van-popover__action--disabled:active{background-color:transparent}.van-popover--dark .van-popover__action-text:after{border-color:var(--van-gray-7)}.van-popover-zoom-enter-from,.van-popover-zoom-leave-active{transform:scale(.8);opacity:0}.van-popover-zoom-enter-active{transition-timing-function:var(--van-ease-out)}.van-popover-zoom-leave-active{transition-timing-function:var(--van-ease-in)}
|
package/es/popover/index.d.ts
CHANGED
@@ -98,13 +98,13 @@ export declare const Popover: import("../utils").WithInstall<import("vue").Defin
|
|
98
98
|
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
99
99
|
}, {
|
100
100
|
offset: [number, number];
|
101
|
+
theme: import("./types").PopoverTheme;
|
101
102
|
overlay: boolean;
|
102
103
|
show: boolean;
|
103
104
|
teleport: string | import("vue").RendererElement | null | undefined;
|
104
105
|
closeOnClickOverlay: boolean;
|
105
106
|
actions: import("./types").PopoverAction[];
|
106
107
|
closeOnClickAction: boolean;
|
107
|
-
theme: import("./types").PopoverTheme;
|
108
108
|
closeOnClickOutside: boolean;
|
109
109
|
trigger: import("./types").PopoverTrigger;
|
110
110
|
showArrow: boolean;
|
package/es/popover/index.less
CHANGED
@@ -1,19 +1,17 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
:
|
4
|
-
--van-popover-
|
5
|
-
--van-popover-
|
6
|
-
--van-popover-action-
|
7
|
-
--van-popover-action-height:
|
8
|
-
--van-popover-action-
|
9
|
-
--van-popover-
|
10
|
-
--van-popover-
|
11
|
-
--van-popover-light-text-color:
|
12
|
-
--van-popover-
|
13
|
-
--van-popover-
|
14
|
-
--van-popover-dark-text-color:
|
15
|
-
--van-popover-dark-background-color: @popover-dark-background-color;
|
16
|
-
--van-popover-dark-action-disabled-text-color: @popover-dark-action-disabled-text-color;
|
1
|
+
body {
|
2
|
+
--van-popover-arrow-size: 6px;
|
3
|
+
--van-popover-radius: var(--van-radius-lg);
|
4
|
+
--van-popover-action-width: 128px;
|
5
|
+
--van-popover-action-height: 44px;
|
6
|
+
--van-popover-action-font-size: var(--van-font-size-md);
|
7
|
+
--van-popover-action-line-height: var(--van-line-height-md);
|
8
|
+
--van-popover-action-icon-size: 20px;
|
9
|
+
--van-popover-light-text-color: var(--van-text-color);
|
10
|
+
--van-popover-light-background: var(--van-background-2);
|
11
|
+
--van-popover-light-action-disabled-text-color: var(--van-text-color-3);
|
12
|
+
--van-popover-dark-text-color: var(--van-white);
|
13
|
+
--van-popover-dark-background: #4a4a4a;
|
14
|
+
--van-popover-dark-action-disabled-text-color: var(--van-text-color-2);
|
17
15
|
}
|
18
16
|
|
19
17
|
.van-popover {
|
@@ -37,7 +35,7 @@
|
|
37
35
|
|
38
36
|
&__content {
|
39
37
|
overflow: hidden;
|
40
|
-
border-radius: var(--van-popover-
|
38
|
+
border-radius: var(--van-popover-radius);
|
41
39
|
}
|
42
40
|
|
43
41
|
&__action {
|
@@ -218,12 +216,12 @@
|
|
218
216
|
color: var(--van-popover-light-text-color);
|
219
217
|
|
220
218
|
.van-popover__content {
|
221
|
-
background: var(--van-popover-light-background
|
219
|
+
background: var(--van-popover-light-background);
|
222
220
|
box-shadow: 0 2px 12px rgba(50, 50, 51, 0.12);
|
223
221
|
}
|
224
222
|
|
225
223
|
.van-popover__arrow {
|
226
|
-
color: var(--van-popover-light-background
|
224
|
+
color: var(--van-popover-light-background);
|
227
225
|
}
|
228
226
|
|
229
227
|
.van-popover__action {
|
@@ -246,11 +244,11 @@
|
|
246
244
|
color: var(--van-popover-dark-text-color);
|
247
245
|
|
248
246
|
.van-popover__content {
|
249
|
-
background: var(--van-popover-dark-background
|
247
|
+
background: var(--van-popover-dark-background);
|
250
248
|
}
|
251
249
|
|
252
250
|
.van-popover__arrow {
|
253
|
-
color: var(--van-popover-dark-background
|
251
|
+
color: var(--van-popover-dark-background);
|
254
252
|
}
|
255
253
|
|
256
254
|
.van-popover__action {
|
@@ -281,10 +279,10 @@
|
|
281
279
|
}
|
282
280
|
|
283
281
|
&-zoom-enter-active {
|
284
|
-
transition-timing-function: var(--van-
|
282
|
+
transition-timing-function: var(--van-ease-out);
|
285
283
|
}
|
286
284
|
|
287
285
|
&-zoom-leave-active {
|
288
|
-
transition-timing-function: var(--van-
|
286
|
+
transition-timing-function: var(--van-ease-in);
|
289
287
|
}
|
290
288
|
}
|
package/es/popup/Popup.d.ts
CHANGED
@@ -43,6 +43,7 @@ declare const popupProps: {
|
|
43
43
|
type: import("vue").PropType<PopupCloseIconPosition>;
|
44
44
|
default: PopupCloseIconPosition;
|
45
45
|
};
|
46
|
+
safeAreaInsetTop: BooleanConstructor;
|
46
47
|
safeAreaInsetBottom: BooleanConstructor;
|
47
48
|
};
|
48
49
|
export declare type PopupProps = ExtractPropTypes<typeof popupProps>;
|
@@ -89,8 +90,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
89
90
|
type: import("vue").PropType<PopupCloseIconPosition>;
|
90
91
|
default: PopupCloseIconPosition;
|
91
92
|
};
|
93
|
+
safeAreaInsetTop: BooleanConstructor;
|
92
94
|
safeAreaInsetBottom: BooleanConstructor;
|
93
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("open" | "close" | "keydown" | "opened" | "closed" | "update:show" | "
|
95
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("open" | "close" | "keydown" | "opened" | "closed" | "update:show" | "clickOverlay" | "clickCloseIcon")[], "open" | "close" | "keydown" | "opened" | "closed" | "update:show" | "clickOverlay" | "clickCloseIcon", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
94
96
|
show: BooleanConstructor;
|
95
97
|
zIndex: (NumberConstructor | StringConstructor)[];
|
96
98
|
overlay: {
|
@@ -133,6 +135,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
133
135
|
type: import("vue").PropType<PopupCloseIconPosition>;
|
134
136
|
default: PopupCloseIconPosition;
|
135
137
|
};
|
138
|
+
safeAreaInsetTop: BooleanConstructor;
|
136
139
|
safeAreaInsetBottom: BooleanConstructor;
|
137
140
|
}>> & {
|
138
141
|
onKeydown?: ((...args: any[]) => any) | undefined;
|
@@ -141,8 +144,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
141
144
|
onOpened?: ((...args: any[]) => any) | undefined;
|
142
145
|
onClosed?: ((...args: any[]) => any) | undefined;
|
143
146
|
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
144
|
-
|
145
|
-
|
147
|
+
onClickOverlay?: ((...args: any[]) => any) | undefined;
|
148
|
+
onClickCloseIcon?: ((...args: any[]) => any) | undefined;
|
146
149
|
}, {
|
147
150
|
position: PopupPosition;
|
148
151
|
round: boolean;
|
@@ -157,5 +160,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
157
160
|
closeable: boolean;
|
158
161
|
closeOnPopstate: boolean;
|
159
162
|
closeIconPosition: PopupCloseIconPosition;
|
163
|
+
safeAreaInsetTop: boolean;
|
160
164
|
}>;
|
161
165
|
export default _default;
|
package/es/popup/Popup.js
CHANGED
@@ -18,6 +18,7 @@ const popupProps = extend({}, popupSharedProps, {
|
|
18
18
|
iconPrefix: String,
|
19
19
|
closeOnPopstate: Boolean,
|
20
20
|
closeIconPosition: makeStringProp("top-right"),
|
21
|
+
safeAreaInsetTop: Boolean,
|
21
22
|
safeAreaInsetBottom: Boolean
|
22
23
|
});
|
23
24
|
const [name, bem] = createNamespace("popup");
|
@@ -26,7 +27,7 @@ var stdin_default = defineComponent({
|
|
26
27
|
name,
|
27
28
|
inheritAttrs: false,
|
28
29
|
props: popupProps,
|
29
|
-
emits: ["open", "close", "opened", "closed", "keydown", "update:show", "
|
30
|
+
emits: ["open", "close", "opened", "closed", "keydown", "update:show", "clickOverlay", "clickCloseIcon"],
|
30
31
|
setup(props, {
|
31
32
|
emit,
|
32
33
|
attrs,
|
@@ -69,7 +70,7 @@ var stdin_default = defineComponent({
|
|
69
70
|
}
|
70
71
|
};
|
71
72
|
const onClickOverlay = (event) => {
|
72
|
-
emit("
|
73
|
+
emit("clickOverlay", event);
|
73
74
|
if (props.closeOnClickOverlay) {
|
74
75
|
close();
|
75
76
|
}
|
@@ -89,7 +90,7 @@ var stdin_default = defineComponent({
|
|
89
90
|
}
|
90
91
|
};
|
91
92
|
const onClickCloseIcon = (event) => {
|
92
|
-
emit("
|
93
|
+
emit("clickCloseIcon", event);
|
93
94
|
close();
|
94
95
|
};
|
95
96
|
const renderCloseIcon = () => {
|
@@ -112,6 +113,7 @@ var stdin_default = defineComponent({
|
|
112
113
|
const {
|
113
114
|
round,
|
114
115
|
position,
|
116
|
+
safeAreaInsetTop,
|
115
117
|
safeAreaInsetBottom
|
116
118
|
} = props;
|
117
119
|
return _withDirectives(_createVNode("div", _mergeProps({
|
@@ -121,6 +123,7 @@ var stdin_default = defineComponent({
|
|
121
123
|
round,
|
122
124
|
[position]: position
|
123
125
|
}), {
|
126
|
+
"van-safe-area-top": safeAreaInsetTop,
|
124
127
|
"van-safe-area-bottom": safeAreaInsetBottom
|
125
128
|
}],
|
126
129
|
"onKeydown": onKeydown
|
package/es/popup/index.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
body{--van-popup-background: var(--van-background-2);--van-popup-transition: transform var(--van-duration-base);--van-popup-round-radius: 16px;--van-popup-close-icon-size: 22px;--van-popup-close-icon-color: var(--van-gray-5);--van-popup-close-icon-margin: 16px;--van-popup-close-icon-z-index: 1}.van-overflow-hidden{overflow:hidden!important}.van-popup{position:fixed;max-height:100%;overflow-y:auto;background:var(--van-popup-background);transition:var(--van-popup-transition);-webkit-overflow-scrolling:touch}.van-popup--center{top:50%;left:50%;transform:translate(-50%,-50%)}.van-popup--center.van-popup--round{border-radius:var(--van-popup-round-radius)}.van-popup--top{top:0;left:0;width:100%}.van-popup--top.van-popup--round{border-radius:0 0 var(--van-popup-round-radius) var(--van-popup-round-radius)}.van-popup--right{top:50%;right:0;transform:translateY(-50%)}.van-popup--right.van-popup--round{border-radius:var(--van-popup-round-radius) 0 0 var(--van-popup-round-radius)}.van-popup--bottom{bottom:0;left:0;width:100%}.van-popup--bottom.van-popup--round{border-radius:var(--van-popup-round-radius) var(--van-popup-round-radius) 0 0}.van-popup--left{top:50%;left:0;transform:translateY(-50%)}.van-popup--left.van-popup--round{border-radius:0 var(--van-popup-round-radius) var(--van-popup-round-radius) 0}.van-popup-slide-top-enter-active,.van-popup-slide-left-enter-active,.van-popup-slide-right-enter-active,.van-popup-slide-bottom-enter-active{transition-timing-function:var(--van-ease-out)}.van-popup-slide-top-leave-active,.van-popup-slide-left-leave-active,.van-popup-slide-right-leave-active,.van-popup-slide-bottom-leave-active{transition-timing-function:var(--van-ease-in)}.van-popup-slide-top-enter-from,.van-popup-slide-top-leave-active{transform:translateY(-100%)}.van-popup-slide-right-enter-from,.van-popup-slide-right-leave-active{transform:translate(100%,-50%)}.van-popup-slide-bottom-enter-from,.van-popup-slide-bottom-leave-active{transform:translateY(100%)}.van-popup-slide-left-enter-from,.van-popup-slide-left-leave-active{transform:translate(-100%,-50%)}.van-popup__close-icon{position:absolute;z-index:var(--van-popup-close-icon-z-index);color:var(--van-popup-close-icon-color);font-size:var(--van-popup-close-icon-size)}.van-popup__close-icon--top-left{top:var(--van-popup-close-icon-margin);left:var(--van-popup-close-icon-margin)}.van-popup__close-icon--top-right{top:var(--van-popup-close-icon-margin);right:var(--van-popup-close-icon-margin)}.van-popup__close-icon--bottom-left{bottom:var(--van-popup-close-icon-margin);left:var(--van-popup-close-icon-margin)}.van-popup__close-icon--bottom-right{right:var(--van-popup-close-icon-margin);bottom:var(--van-popup-close-icon-margin)}
|
package/es/popup/index.d.ts
CHANGED
@@ -41,8 +41,9 @@ export declare const Popup: import("../utils").WithInstall<import("vue").DefineC
|
|
41
41
|
type: import("vue").PropType<import("./types").PopupCloseIconPosition>;
|
42
42
|
default: import("./types").PopupCloseIconPosition;
|
43
43
|
};
|
44
|
+
safeAreaInsetTop: BooleanConstructor;
|
44
45
|
safeAreaInsetBottom: BooleanConstructor;
|
45
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("open" | "close" | "keydown" | "opened" | "closed" | "update:show" | "
|
46
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("open" | "close" | "keydown" | "opened" | "closed" | "update:show" | "clickOverlay" | "clickCloseIcon")[], "open" | "close" | "keydown" | "opened" | "closed" | "update:show" | "clickOverlay" | "clickCloseIcon", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
46
47
|
show: BooleanConstructor;
|
47
48
|
zIndex: (NumberConstructor | StringConstructor)[];
|
48
49
|
overlay: {
|
@@ -85,6 +86,7 @@ export declare const Popup: import("../utils").WithInstall<import("vue").DefineC
|
|
85
86
|
type: import("vue").PropType<import("./types").PopupCloseIconPosition>;
|
86
87
|
default: import("./types").PopupCloseIconPosition;
|
87
88
|
};
|
89
|
+
safeAreaInsetTop: BooleanConstructor;
|
88
90
|
safeAreaInsetBottom: BooleanConstructor;
|
89
91
|
}>> & {
|
90
92
|
onKeydown?: ((...args: any[]) => any) | undefined;
|
@@ -93,8 +95,8 @@ export declare const Popup: import("../utils").WithInstall<import("vue").DefineC
|
|
93
95
|
onOpened?: ((...args: any[]) => any) | undefined;
|
94
96
|
onClosed?: ((...args: any[]) => any) | undefined;
|
95
97
|
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
96
|
-
|
97
|
-
|
98
|
+
onClickOverlay?: ((...args: any[]) => any) | undefined;
|
99
|
+
onClickCloseIcon?: ((...args: any[]) => any) | undefined;
|
98
100
|
}, {
|
99
101
|
position: import("./types").PopupPosition;
|
100
102
|
round: boolean;
|
@@ -109,6 +111,7 @@ export declare const Popup: import("../utils").WithInstall<import("vue").DefineC
|
|
109
111
|
closeable: boolean;
|
110
112
|
closeOnPopstate: boolean;
|
111
113
|
closeIconPosition: import("./types").PopupCloseIconPosition;
|
114
|
+
safeAreaInsetTop: boolean;
|
112
115
|
}>>;
|
113
116
|
export default Popup;
|
114
117
|
export type { PopupProps } from './Popup';
|
package/es/popup/index.less
CHANGED
@@ -1,13 +1,11 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
:
|
4
|
-
--van-popup-
|
5
|
-
--van-popup-
|
6
|
-
--van-popup-
|
7
|
-
--van-popup-close-icon-
|
8
|
-
--van-popup-close-icon-
|
9
|
-
--van-popup-close-icon-margin: @popup-close-icon-margin;
|
10
|
-
--van-popup-close-icon-z-index: @popup-close-icon-z-index;
|
1
|
+
body {
|
2
|
+
--van-popup-background: var(--van-background-2);
|
3
|
+
--van-popup-transition: transform var(--van-duration-base);
|
4
|
+
--van-popup-round-radius: 16px;
|
5
|
+
--van-popup-close-icon-size: 22px;
|
6
|
+
--van-popup-close-icon-color: var(--van-gray-5);
|
7
|
+
--van-popup-close-icon-margin: 16px;
|
8
|
+
--van-popup-close-icon-z-index: 1;
|
11
9
|
}
|
12
10
|
|
13
11
|
.van {
|
@@ -19,7 +17,7 @@
|
|
19
17
|
position: fixed;
|
20
18
|
max-height: 100%;
|
21
19
|
overflow-y: auto;
|
22
|
-
background: var(--van-popup-background
|
20
|
+
background: var(--van-popup-background);
|
23
21
|
transition: var(--van-popup-transition);
|
24
22
|
-webkit-overflow-scrolling: touch;
|
25
23
|
|
@@ -29,7 +27,7 @@
|
|
29
27
|
transform: translate3d(-50%, -50%, 0);
|
30
28
|
|
31
29
|
&.van-popup--round {
|
32
|
-
border-radius: var(--van-popup-round-
|
30
|
+
border-radius: var(--van-popup-round-radius);
|
33
31
|
}
|
34
32
|
}
|
35
33
|
|
@@ -39,8 +37,8 @@
|
|
39
37
|
width: 100%;
|
40
38
|
|
41
39
|
&.van-popup--round {
|
42
|
-
border-radius: 0 0 var(--van-popup-round-
|
43
|
-
var(--van-popup-round-
|
40
|
+
border-radius: 0 0 var(--van-popup-round-radius)
|
41
|
+
var(--van-popup-round-radius);
|
44
42
|
}
|
45
43
|
}
|
46
44
|
|
@@ -50,8 +48,8 @@
|
|
50
48
|
transform: translate3d(0, -50%, 0);
|
51
49
|
|
52
50
|
&.van-popup--round {
|
53
|
-
border-radius: var(--van-popup-round-
|
54
|
-
var(--van-popup-round-
|
51
|
+
border-radius: var(--van-popup-round-radius) 0 0
|
52
|
+
var(--van-popup-round-radius);
|
55
53
|
}
|
56
54
|
}
|
57
55
|
|
@@ -61,8 +59,8 @@
|
|
61
59
|
width: 100%;
|
62
60
|
|
63
61
|
&.van-popup--round {
|
64
|
-
border-radius: var(--van-popup-round-
|
65
|
-
var(--van-popup-round-
|
62
|
+
border-radius: var(--van-popup-round-radius)
|
63
|
+
var(--van-popup-round-radius) 0 0;
|
66
64
|
}
|
67
65
|
}
|
68
66
|
|
@@ -72,8 +70,8 @@
|
|
72
70
|
transform: translate3d(0, -50%, 0);
|
73
71
|
|
74
72
|
&.van-popup--round {
|
75
|
-
border-radius: 0 var(--van-popup-round-
|
76
|
-
var(--van-popup-round-
|
73
|
+
border-radius: 0 var(--van-popup-round-radius)
|
74
|
+
var(--van-popup-round-radius) 0;
|
77
75
|
}
|
78
76
|
}
|
79
77
|
|
@@ -81,14 +79,14 @@
|
|
81
79
|
&-slide-left-enter-active,
|
82
80
|
&-slide-right-enter-active,
|
83
81
|
&-slide-bottom-enter-active {
|
84
|
-
transition-timing-function: var(--van-
|
82
|
+
transition-timing-function: var(--van-ease-out);
|
85
83
|
}
|
86
84
|
|
87
85
|
&-slide-top-leave-active,
|
88
86
|
&-slide-left-leave-active,
|
89
87
|
&-slide-right-leave-active,
|
90
88
|
&-slide-bottom-leave-active {
|
91
|
-
transition-timing-function: var(--van-
|
89
|
+
transition-timing-function: var(--van-ease-in);
|
92
90
|
}
|
93
91
|
|
94
92
|
&-slide-top-enter-from,
|
package/es/progress/index.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
body{--van-progress-height: 4px;--van-progress-color: var(--van-primary-color);--van-progress-inactive-color: var(--van-gray-5);--van-progress-background: var(--van-gray-3);--van-progress-pivot-padding: 0 5px;--van-progress-pivot-text-color: var(--van-white);--van-progress-pivot-font-size: var(--van-font-size-xs);--van-progress-pivot-line-height: 1.6;--van-progress-pivot-background: var(--van-primary-color)}.van-progress{position:relative;height:var(--van-progress-height);background:var(--van-progress-background);border-radius:var(--van-progress-height)}.van-progress__portion{position:absolute;left:0;width:100%;height:100%;background:var(--van-progress-color);border-radius:inherit;transform-origin:0;transition:all var(--van-duration-base) var(--van-ease-out)}.van-progress__portion--inactive{background:var(--van-progress-inactive-color)}.van-progress__pivot{position:absolute;top:50%;box-sizing:border-box;min-width:3.6em;padding:var(--van-progress-pivot-padding);color:var(--van-progress-pivot-text-color);font-size:var(--van-progress-pivot-font-size);line-height:var(--van-progress-pivot-line-height);text-align:center;word-break:keep-all;background:var(--van-progress-pivot-background);border-radius:1em;transition:all var(--van-duration-base) var(--van-ease-out)}.van-progress__pivot--inactive{background:var(--van-progress-inactive-color)}
|
package/es/progress/index.less
CHANGED
@@ -1,21 +1,19 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
:
|
4
|
-
--van-progress-
|
5
|
-
--van-progress-
|
6
|
-
--van-progress-
|
7
|
-
--van-progress-
|
8
|
-
--van-progress-pivot-
|
9
|
-
--van-progress-pivot-
|
10
|
-
--van-progress-pivot-
|
11
|
-
--van-progress-pivot-line-height: @progress-pivot-line-height;
|
12
|
-
--van-progress-pivot-background-color: @progress-pivot-background-color;
|
1
|
+
body {
|
2
|
+
--van-progress-height: 4px;
|
3
|
+
--van-progress-color: var(--van-primary-color);
|
4
|
+
--van-progress-inactive-color: var(--van-gray-5);
|
5
|
+
--van-progress-background: var(--van-gray-3);
|
6
|
+
--van-progress-pivot-padding: 0 5px;
|
7
|
+
--van-progress-pivot-text-color: var(--van-white);
|
8
|
+
--van-progress-pivot-font-size: var(--van-font-size-xs);
|
9
|
+
--van-progress-pivot-line-height: 1.6;
|
10
|
+
--van-progress-pivot-background: var(--van-primary-color);
|
13
11
|
}
|
14
12
|
|
15
13
|
.van-progress {
|
16
14
|
position: relative;
|
17
15
|
height: var(--van-progress-height);
|
18
|
-
background: var(--van-progress-background
|
16
|
+
background: var(--van-progress-background);
|
19
17
|
border-radius: var(--van-progress-height);
|
20
18
|
|
21
19
|
&__portion {
|
@@ -26,8 +24,7 @@
|
|
26
24
|
background: var(--van-progress-color);
|
27
25
|
border-radius: inherit;
|
28
26
|
transform-origin: 0;
|
29
|
-
transition: all var(--van-
|
30
|
-
var(--van-animation-timing-function-enter);
|
27
|
+
transition: all var(--van-duration-base) var(--van-ease-out);
|
31
28
|
|
32
29
|
&--inactive {
|
33
30
|
background: var(--van-progress-inactive-color);
|
@@ -45,10 +42,9 @@
|
|
45
42
|
line-height: var(--van-progress-pivot-line-height);
|
46
43
|
text-align: center;
|
47
44
|
word-break: keep-all;
|
48
|
-
background: var(--van-progress-pivot-background
|
45
|
+
background: var(--van-progress-pivot-background);
|
49
46
|
border-radius: 1em;
|
50
|
-
transition: all var(--van-
|
51
|
-
var(--van-animation-timing-function-enter);
|
47
|
+
transition: all var(--van-duration-base) var(--van-ease-out);
|
52
48
|
|
53
49
|
&--inactive {
|
54
50
|
background: var(--van-progress-inactive-color);
|
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
body{--van-pull-refresh-head-height: 50px;--van-pull-refresh-head-font-size: var(--van-font-size-md);--van-pull-refresh-head-text-color: var(--van-text-color-2);--van-pull-refresh-loading-icon-size: 16px}.van-pull-refresh{overflow:hidden}.van-pull-refresh__track{position:relative;height:100%;transition-property:transform}.van-pull-refresh__head{position:absolute;left:0;width:100%;height:var(--van-pull-refresh-head-height);overflow:hidden;color:var(--van-pull-refresh-head-text-color);font-size:var(--van-pull-refresh-head-font-size);line-height:var(--van-pull-refresh-head-height);text-align:center;transform:translateY(-100%)}.van-pull-refresh__loading .van-loading__spinner{width:var(--van-pull-refresh-loading-icon-size);height:var(--van-pull-refresh-loading-icon-size)}
|
@@ -1,10 +1,8 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
:
|
4
|
-
--van-pull-refresh-head-
|
5
|
-
--van-pull-refresh-
|
6
|
-
--van-pull-refresh-head-text-color: @pull-refresh-head-text-color;
|
7
|
-
--van-pull-refresh-loading-icon-size: @pull-refresh-loading-icon-size;
|
1
|
+
body {
|
2
|
+
--van-pull-refresh-head-height: 50px;
|
3
|
+
--van-pull-refresh-head-font-size: var(--van-font-size-md);
|
4
|
+
--van-pull-refresh-head-text-color: var(--van-text-color-2);
|
5
|
+
--van-pull-refresh-loading-icon-size: 16px;
|
8
6
|
}
|
9
7
|
|
10
8
|
.van-pull-refresh {
|
package/es/radio/index.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
body{--van-radio-size: 20px;--van-radio-border-color: var(--van-gray-5);--van-radio-duration: var(--van-duration-fast);--van-radio-label-margin: var(--van-padding-xs);--van-radio-label-color: var(--van-text-color);--van-radio-checked-icon-color: var(--van-primary-color);--van-radio-disabled-icon-color: var(--van-gray-5);--van-radio-disabled-label-color: var(--van-text-color-3);--van-radio-disabled-background: var(--van-border-color)}.van-radio{display:flex;align-items:center;overflow:hidden;cursor:pointer;-webkit-user-select:none;user-select:none}.van-radio--disabled{cursor:not-allowed}.van-radio--label-disabled{cursor:default}.van-radio--horizontal{margin-right:var(--van-padding-sm)}.van-radio__icon{flex:none;height:1em;font-size:var(--van-radio-size);line-height:1em;cursor:pointer}.van-radio__icon .van-icon{display:block;box-sizing:border-box;width:1.25em;height:1.25em;color:transparent;font-size:.8em;line-height:1.25;text-align:center;border:1px solid var(--van-radio-border-color);transition-duration:var(--van-radio-duration);transition-property:color,border-color,background-color}.van-radio__icon--round .van-icon{border-radius:100%}.van-radio__icon--checked .van-icon{color:var(--van-white);background-color:var(--van-radio-checked-icon-color);border-color:var(--van-radio-checked-icon-color)}.van-radio__icon--disabled{cursor:not-allowed}.van-radio__icon--disabled .van-icon{background-color:var(--van-radio-disabled-background);border-color:var(--van-radio-disabled-icon-color)}.van-radio__icon--disabled.van-radio__icon--checked .van-icon{color:var(--van-radio-disabled-icon-color)}.van-radio__label{margin-left:var(--van-radio-label-margin);color:var(--van-radio-label-color);line-height:var(--van-radio-size)}.van-radio__label--left{margin:0 var(--van-radio-label-margin) 0 0}.van-radio__label--disabled{color:var(--van-radio-disabled-label-color)}
|
package/es/radio/index.less
CHANGED
@@ -1,15 +1,13 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
:
|
4
|
-
--van-radio-
|
5
|
-
--van-radio-
|
6
|
-
--van-radio-
|
7
|
-
--van-radio-
|
8
|
-
--van-radio-
|
9
|
-
--van-radio-
|
10
|
-
--van-radio-disabled-
|
11
|
-
--van-radio-disabled-label-color: @radio-disabled-label-color;
|
12
|
-
--van-radio-disabled-background-color: @radio-disabled-background-color;
|
1
|
+
body {
|
2
|
+
--van-radio-size: 20px;
|
3
|
+
--van-radio-border-color: var(--van-gray-5);
|
4
|
+
--van-radio-duration: var(--van-duration-fast);
|
5
|
+
--van-radio-label-margin: var(--van-padding-xs);
|
6
|
+
--van-radio-label-color: var(--van-text-color);
|
7
|
+
--van-radio-checked-icon-color: var(--van-primary-color);
|
8
|
+
--van-radio-disabled-icon-color: var(--van-gray-5);
|
9
|
+
--van-radio-disabled-label-color: var(--van-text-color-3);
|
10
|
+
--van-radio-disabled-background: var(--van-border-color);
|
13
11
|
}
|
14
12
|
|
15
13
|
.van-radio {
|
@@ -48,7 +46,7 @@
|
|
48
46
|
line-height: 1.25;
|
49
47
|
text-align: center;
|
50
48
|
border: 1px solid var(--van-radio-border-color);
|
51
|
-
transition-duration: var(--van-radio-
|
49
|
+
transition-duration: var(--van-radio-duration);
|
52
50
|
transition-property: color, border-color, background-color;
|
53
51
|
}
|
54
52
|
|
@@ -70,7 +68,7 @@
|
|
70
68
|
cursor: not-allowed;
|
71
69
|
|
72
70
|
.van-icon {
|
73
|
-
background-color: var(--van-radio-disabled-background
|
71
|
+
background-color: var(--van-radio-disabled-background);
|
74
72
|
border-color: var(--van-radio-disabled-icon-color);
|
75
73
|
}
|
76
74
|
}
|
package/es/rate/index.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
body{--van-rate-icon-size: 20px;--van-rate-icon-gutter: var(--van-padding-base);--van-rate-icon-void-color: var(--van-gray-5);--van-rate-icon-full-color: var(--van-danger-color);--van-rate-icon-disabled-color: var(--van-gray-5)}.van-rate{display:inline-flex;cursor:pointer;-webkit-user-select:none;user-select:none;flex-wrap:wrap}.van-rate__item{position:relative}.van-rate__item:not(:last-child){padding-right:var(--van-rate-icon-gutter)}.van-rate__icon{display:block;width:1em;color:var(--van-rate-icon-void-color);font-size:var(--van-rate-icon-size)}.van-rate__icon--half{position:absolute;top:0;left:0;overflow:hidden}.van-rate__icon--full{color:var(--van-rate-icon-full-color)}.van-rate__icon--disabled{color:var(--van-rate-icon-disabled-color)}.van-rate--disabled{cursor:not-allowed}.van-rate--readonly{cursor:default}
|
package/es/rate/index.less
CHANGED
@@ -1,11 +1,9 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
:
|
4
|
-
--van-rate-icon-
|
5
|
-
--van-rate-icon-
|
6
|
-
--van-rate-icon-
|
7
|
-
--van-rate-icon-full-color: @rate-icon-full-color;
|
8
|
-
--van-rate-icon-disabled-color: @rate-icon-disabled-color;
|
1
|
+
body {
|
2
|
+
--van-rate-icon-size: 20px;
|
3
|
+
--van-rate-icon-gutter: var(--van-padding-base);
|
4
|
+
--van-rate-icon-void-color: var(--van-gray-5);
|
5
|
+
--van-rate-icon-full-color: var(--van-danger-color);
|
6
|
+
--van-rate-icon-disabled-color: var(--van-gray-5);
|
9
7
|
}
|
10
8
|
|
11
9
|
.van-rate {
|