vant 3.4.2 → 4.0.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/action-bar/index.css +1 -1
- package/es/action-bar/index.less +4 -6
- package/es/action-bar-button/index.css +1 -1
- package/es/action-bar-button/index.less +9 -11
- package/es/action-bar-icon/index.css +1 -1
- package/es/action-bar-icon/index.less +10 -12
- package/es/action-sheet/index.css +1 -1
- package/es/action-sheet/index.less +23 -24
- package/es/address-edit/AddressEdit.d.ts +6 -6
- package/es/address-edit/AddressEdit.js +29 -33
- package/es/address-edit/AddressEditDetail.d.ts +2 -2
- package/es/address-edit/AddressEditDetail.js +9 -17
- 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 -206
- package/es/area/index.d.ts +11 -19
- package/es/area/types.d.ts +2 -17
- package/es/area/utils.d.ts +6 -0
- package/es/area/utils.js +85 -0
- package/es/badge/index.css +1 -1
- package/es/badge/index.less +15 -17
- package/es/button/index.css +1 -1
- package/es/button/index.less +55 -52
- package/es/calendar/Calendar.d.ts +6 -6
- package/es/calendar/Calendar.js +5 -5
- package/es/calendar/CalendarHeader.d.ts +2 -2
- package/es/calendar/CalendarHeader.js +2 -2
- package/es/calendar/CalendarMonth.d.ts +1 -2
- package/es/calendar/CalendarMonth.js +3 -3
- package/es/calendar/index.css +1 -1
- package/es/calendar/index.d.ts +6 -6
- package/es/calendar/index.less +40 -37
- package/es/card/Card.d.ts +2 -2
- package/es/card/Card.js +3 -3
- package/es/card/index.css +1 -1
- package/es/card/index.d.ts +2 -2
- package/es/card/index.less +23 -25
- package/es/cascader/Cascader.d.ts +2 -2
- package/es/cascader/Cascader.js +3 -3
- package/es/cascader/index.css +1 -1
- package/es/cascader/index.d.ts +2 -2
- package/es/cascader/index.less +17 -19
- package/es/cell/Cell.js +1 -4
- package/es/cell/index.css +1 -1
- package/es/cell/index.less +21 -27
- package/es/cell-group/index.css +1 -1
- package/es/cell-group/index.less +12 -13
- package/es/checkbox/index.css +1 -1
- package/es/checkbox/index.less +12 -14
- package/es/circle/index.css +1 -1
- package/es/circle/index.less +8 -10
- package/es/collapse-item/CollapseItem.d.ts +13 -0
- package/es/collapse-item/CollapseItem.js +3 -2
- package/es/collapse-item/index.css +1 -1
- package/es/collapse-item/index.d.ts +9 -0
- package/es/collapse-item/index.less +12 -12
- package/es/config-provider/ConfigProvider.d.ts +14 -0
- package/es/config-provider/ConfigProvider.js +9 -2
- package/es/config-provider/index.d.ts +10 -1
- package/es/contact-card/ContactCard.js +3 -3
- 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 +5 -5
- 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/Dialog.d.ts +2 -1
- package/es/dialog/Dialog.js +19 -3
- package/es/dialog/function-call.d.ts +2 -1
- package/es/dialog/index.css +1 -1
- package/es/dialog/index.less +22 -24
- package/es/divider/index.css +1 -1
- package/es/divider/index.less +10 -12
- package/es/dropdown-item/index.css +1 -1
- package/es/dropdown-item/index.less +2 -5
- package/es/dropdown-menu/index.css +1 -1
- package/es/dropdown-menu/index.less +14 -18
- 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/field/utils.js +2 -1
- package/es/grid-item/index.css +1 -1
- package/es/grid-item/index.less +10 -13
- package/es/icon/index.css +1 -1
- package/es/icon/index.less +1 -0
- 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 -14
- package/es/index-anchor/index.css +1 -1
- package/es/index-anchor/index.less +12 -14
- package/es/index-bar/IndexBar.d.ts +4 -4
- package/es/index-bar/IndexBar.js +3 -1
- package/es/index-bar/index.css +1 -1
- package/es/index-bar/index.d.ts +3 -3
- 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/bn-BD.d.ts +64 -0
- package/es/locale/lang/bn-BD.js +74 -0
- package/es/locale/lang/de-DE-formal.d.ts +2 -11
- package/es/locale/lang/de-DE-formal.js +3 -12
- package/es/locale/lang/de-DE.d.ts +2 -11
- package/es/locale/lang/de-DE.js +3 -12
- package/es/locale/lang/en-US.d.ts +2 -11
- package/es/locale/lang/en-US.js +3 -12
- package/es/locale/lang/es-ES.d.ts +2 -11
- package/es/locale/lang/es-ES.js +3 -12
- package/es/locale/lang/fr-FR.d.ts +2 -11
- package/es/locale/lang/fr-FR.js +3 -12
- package/es/locale/lang/hi-IN.d.ts +64 -0
- package/es/locale/lang/hi-IN.js +74 -0
- package/es/locale/lang/id-ID.d.ts +64 -0
- package/es/locale/lang/id-ID.js +66 -0
- package/es/locale/lang/it-IT.d.ts +64 -0
- package/es/locale/lang/it-IT.js +74 -0
- package/es/locale/lang/ja-JP.d.ts +2 -12
- package/es/locale/lang/ja-JP.js +5 -15
- package/es/locale/lang/ko-KR.d.ts +64 -0
- package/es/locale/lang/ko-KR.js +74 -0
- package/es/locale/lang/nb-NO.d.ts +2 -11
- package/es/locale/lang/nb-NO.js +3 -12
- package/es/locale/lang/pt-BR.d.ts +2 -11
- package/es/locale/lang/pt-BR.js +3 -12
- package/es/locale/lang/ro-RO.d.ts +2 -11
- package/es/locale/lang/ro-RO.js +3 -12
- package/es/locale/lang/ru-RU.d.ts +2 -11
- package/es/locale/lang/ru-RU.js +3 -12
- package/es/locale/lang/th-TH.d.ts +2 -12
- package/es/locale/lang/th-TH.js +5 -15
- package/es/locale/lang/tr-TR.d.ts +2 -11
- package/es/locale/lang/tr-TR.js +2 -11
- package/es/locale/lang/uk-UA.d.ts +64 -0
- package/es/locale/lang/uk-UA.js +74 -0
- package/es/locale/lang/vi-VN.d.ts +64 -0
- package/es/locale/lang/vi-VN.js +74 -0
- package/es/locale/lang/zh-CN.d.ts +2 -12
- package/es/locale/lang/zh-CN.js +6 -16
- package/es/locale/lang/zh-HK.d.ts +2 -12
- package/es/locale/lang/zh-HK.js +6 -16
- package/es/locale/lang/zh-TW.d.ts +2 -12
- package/es/locale/lang/zh-TW.js +6 -16
- package/es/nav-bar/NavBar.d.ts +3 -3
- package/es/nav-bar/NavBar.js +3 -3
- package/es/nav-bar/index.css +1 -1
- package/es/nav-bar/index.d.ts +3 -3
- package/es/nav-bar/index.less +11 -14
- 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 -23
- package/es/overlay/index.css +1 -1
- package/es/overlay/index.less +4 -6
- package/es/pagination/index.css +1 -1
- package/es/pagination/index.less +13 -15
- package/es/password-input/index.css +1 -1
- package/es/password-input/index.less +20 -22
- package/es/picker/Picker.d.ts +26 -28
- package/es/picker/Picker.js +91 -196
- package/es/picker/PickerColumn.d.ts +21 -30
- package/es/picker/PickerColumn.js +61 -111
- package/es/picker/index.css +1 -1
- package/es/picker/index.d.ts +19 -20
- package/es/picker/index.less +31 -20
- 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 +4 -3
- package/es/popup/Popup.js +13 -5
- package/es/popup/index.css +1 -1
- package/es/popup/index.d.ts +4 -3
- package/es/popup/index.less +20 -23
- package/es/popup/types.d.ts +5 -2
- 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 -19
- package/es/sidebar/index.css +1 -1
- package/es/sidebar/index.less +2 -4
- package/es/sidebar-item/index.css +1 -1
- package/es/sidebar-item/index.less +17 -19
- package/es/skeleton/index.css +1 -1
- package/es/skeleton/index.less +14 -16
- package/es/slider/Slider.d.ts +4 -4
- package/es/slider/Slider.js +4 -5
- package/es/slider/index.css +1 -1
- package/es/slider/index.d.ts +4 -4
- package/es/slider/index.less +20 -18
- package/es/step/index.css +1 -1
- package/es/step/index.less +15 -17
- package/es/stepper/Stepper.d.ts +1 -1
- package/es/stepper/index.css +1 -1
- package/es/stepper/index.d.ts +1 -1
- package/es/stepper/index.less +20 -25
- 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 +12 -9
- 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 +27 -28
- package/es/swipe/index.css +1 -1
- package/es/swipe/index.less +11 -13
- package/es/switch/index.css +1 -1
- package/es/switch/index.less +24 -24
- package/es/tabbar/index.css +1 -1
- package/es/tabbar/index.less +5 -7
- package/es/tabbar-item/index.css +1 -1
- package/es/tabbar-item/index.less +9 -11
- package/es/tabs/Tabs.d.ts +2 -4
- package/es/tabs/Tabs.js +14 -27
- package/es/tabs/index.css +1 -1
- package/es/tabs/index.d.ts +2 -4
- package/es/tabs/index.less +17 -20
- package/es/tag/Tag.js +2 -2
- package/es/tag/index.css +1 -1
- package/es/tag/index.less +22 -26
- 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.d.ts +3 -0
- package/es/toast/Toast.js +2 -1
- 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 +5 -4
- 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/uploader/types.d.ts +1 -3
- package/es/utils/basic.d.ts +1 -0
- package/es/utils/basic.js +2 -0
- package/es/utils/interceptor.d.ts +1 -1
- package/lib/action-bar/ActionBar.js +14 -13
- package/lib/action-bar/index.css +1 -1
- package/lib/action-bar/index.js +14 -8
- package/lib/action-bar/index.less +4 -6
- package/lib/action-bar-button/ActionBarButton.js +18 -17
- package/lib/action-bar-button/index.css +1 -1
- package/lib/action-bar-button/index.js +14 -8
- package/lib/action-bar-button/index.less +9 -11
- package/lib/action-bar-icon/ActionBarIcon.js +18 -17
- package/lib/action-bar-icon/index.css +1 -1
- package/lib/action-bar-icon/index.js +14 -8
- package/lib/action-bar-icon/index.less +10 -12
- package/lib/action-sheet/ActionSheet.js +17 -16
- package/lib/action-sheet/index.css +1 -1
- package/lib/action-sheet/index.js +14 -8
- package/lib/action-sheet/index.less +23 -24
- package/lib/address-edit/AddressEdit.d.ts +6 -6
- package/lib/address-edit/AddressEdit.js +54 -52
- package/lib/address-edit/AddressEditDetail.d.ts +2 -2
- package/lib/address-edit/AddressEditDetail.js +24 -31
- package/lib/address-edit/index.css +1 -1
- package/lib/address-edit/index.d.ts +6 -6
- package/lib/address-edit/index.js +14 -8
- package/lib/address-edit/index.less +8 -15
- package/lib/address-edit/types.d.ts +2 -4
- package/lib/address-edit/types.js +18 -1
- package/lib/address-list/AddressList.d.ts +4 -4
- package/lib/address-list/AddressList.js +23 -17
- package/lib/address-list/AddressListItem.js +20 -19
- package/lib/address-list/index.css +1 -1
- package/lib/address-list/index.d.ts +4 -4
- package/lib/address-list/index.js +14 -8
- package/lib/address-list/index.less +20 -22
- package/lib/area/Area.d.ts +13 -25
- package/lib/area/Area.js +58 -220
- package/lib/area/index.d.ts +11 -19
- package/lib/area/index.js +14 -8
- package/lib/area/types.d.ts +2 -17
- package/lib/area/types.js +18 -1
- package/lib/area/utils.d.ts +6 -0
- package/lib/area/utils.js +109 -0
- package/lib/badge/Badge.js +13 -12
- package/lib/badge/index.css +1 -1
- package/lib/badge/index.js +14 -8
- package/lib/badge/index.less +15 -17
- package/lib/button/Button.js +16 -15
- package/lib/button/index.css +1 -1
- package/lib/button/index.js +14 -8
- package/lib/button/index.less +55 -52
- package/lib/button/types.js +18 -1
- package/lib/calendar/Calendar.d.ts +6 -6
- package/lib/calendar/Calendar.js +29 -23
- package/lib/calendar/CalendarDay.js +14 -13
- package/lib/calendar/CalendarHeader.d.ts +2 -2
- package/lib/calendar/CalendarHeader.js +16 -15
- package/lib/calendar/CalendarMonth.d.ts +1 -2
- package/lib/calendar/CalendarMonth.js +23 -17
- package/lib/calendar/index.css +1 -1
- package/lib/calendar/index.d.ts +6 -6
- package/lib/calendar/index.js +14 -8
- package/lib/calendar/index.less +40 -37
- package/lib/calendar/types.js +18 -1
- package/lib/calendar/utils.js +11 -10
- package/lib/card/Card.d.ts +2 -2
- package/lib/card/Card.js +18 -17
- package/lib/card/index.css +1 -1
- package/lib/card/index.d.ts +2 -2
- package/lib/card/index.js +14 -8
- package/lib/card/index.less +23 -25
- package/lib/cascader/Cascader.d.ts +2 -2
- package/lib/cascader/Cascader.js +19 -18
- package/lib/cascader/index.css +1 -1
- package/lib/cascader/index.d.ts +2 -2
- package/lib/cascader/index.js +14 -8
- package/lib/cascader/index.less +17 -19
- package/lib/cascader/types.js +18 -1
- package/lib/cell/Cell.js +16 -18
- package/lib/cell/index.css +1 -1
- package/lib/cell/index.js +14 -8
- package/lib/cell/index.less +21 -27
- package/lib/cell-group/CellGroup.js +13 -12
- package/lib/cell-group/index.css +1 -1
- package/lib/cell-group/index.js +14 -8
- package/lib/cell-group/index.less +12 -13
- package/lib/checkbox/Checkbox.js +19 -13
- package/lib/checkbox/Checker.js +14 -13
- package/lib/checkbox/index.css +1 -1
- package/lib/checkbox/index.js +14 -8
- package/lib/checkbox/index.less +12 -14
- package/lib/checkbox/types.js +18 -1
- package/lib/checkbox-group/CheckboxGroup.js +15 -14
- package/lib/checkbox-group/index.js +14 -8
- package/lib/checkbox-group/types.js +18 -1
- package/lib/circle/Circle.js +14 -13
- package/lib/circle/index.css +1 -1
- package/lib/circle/index.js +14 -8
- package/lib/circle/index.less +8 -10
- package/lib/col/Col.js +15 -14
- package/lib/col/index.js +14 -8
- package/lib/collapse/Collapse.js +14 -13
- package/lib/collapse/index.js +14 -8
- package/lib/collapse-item/CollapseItem.d.ts +13 -0
- package/lib/collapse-item/CollapseItem.js +22 -20
- package/lib/collapse-item/index.css +1 -1
- package/lib/collapse-item/index.d.ts +9 -0
- package/lib/collapse-item/index.js +14 -8
- package/lib/collapse-item/index.less +12 -12
- package/lib/collapse-item/types.js +18 -1
- package/lib/composables/on-popup-reopen.js +11 -10
- package/lib/composables/use-expose.js +12 -11
- package/lib/composables/use-height.js +12 -11
- package/lib/composables/use-id.js +11 -10
- package/lib/composables/use-lazy-render.js +11 -10
- package/lib/composables/use-lock-scroll.js +14 -13
- package/lib/composables/use-placeholder.js +12 -11
- package/lib/composables/use-refs.js +11 -10
- package/lib/composables/use-route.js +11 -10
- package/lib/composables/use-tab-status.js +11 -10
- package/lib/composables/use-touch.js +11 -10
- package/lib/composables/use-visibility-change.js +13 -12
- package/lib/config-provider/ConfigProvider.d.ts +14 -0
- package/lib/config-provider/ConfigProvider.js +20 -12
- package/lib/config-provider/index.d.ts +10 -1
- package/lib/config-provider/index.js +14 -8
- package/lib/contact-card/ContactCard.js +17 -16
- package/lib/contact-card/index.css +1 -1
- package/lib/contact-card/index.js +14 -8
- package/lib/contact-card/index.less +7 -9
- package/lib/contact-edit/ContactEdit.d.ts +2 -2
- package/lib/contact-edit/ContactEdit.js +21 -21
- package/lib/contact-edit/index.css +1 -1
- package/lib/contact-edit/index.d.ts +2 -2
- package/lib/contact-edit/index.js +14 -8
- package/lib/contact-edit/index.less +7 -9
- package/lib/contact-list/ContactList.js +24 -23
- package/lib/contact-list/index.css +1 -1
- package/lib/contact-list/index.js +14 -8
- package/lib/contact-list/index.less +9 -11
- package/lib/count-down/CountDown.js +16 -15
- package/lib/count-down/index.css +1 -1
- package/lib/count-down/index.js +14 -8
- package/lib/count-down/index.less +4 -6
- package/lib/count-down/types.js +18 -1
- package/lib/count-down/utils.js +11 -10
- package/lib/coupon/Coupon.js +15 -14
- package/lib/coupon/index.css +1 -1
- package/lib/coupon/index.js +14 -8
- package/lib/coupon/index.less +28 -31
- package/lib/coupon/utils.js +11 -10
- package/lib/coupon-cell/CouponCell.js +14 -13
- package/lib/coupon-cell/index.css +1 -1
- package/lib/coupon-cell/index.js +14 -8
- package/lib/coupon-cell/index.less +2 -4
- package/lib/coupon-list/CouponList.js +22 -21
- package/lib/coupon-list/index.css +1 -1
- package/lib/coupon-list/index.js +14 -8
- 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/date-picker/index.js +37 -0
- 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/date-picker/utils.js +64 -0
- package/lib/dialog/Dialog.d.ts +2 -1
- package/lib/dialog/Dialog.js +35 -18
- package/lib/dialog/function-call.d.ts +2 -1
- package/lib/dialog/function-call.js +16 -10
- package/lib/dialog/index.css +1 -1
- package/lib/dialog/index.js +11 -10
- package/lib/dialog/index.less +22 -24
- package/lib/dialog/types.js +18 -1
- package/lib/divider/Divider.js +13 -12
- package/lib/divider/index.css +1 -1
- package/lib/divider/index.js +14 -8
- package/lib/divider/index.less +10 -12
- package/lib/dropdown-item/DropdownItem.js +19 -18
- package/lib/dropdown-item/index.css +1 -1
- package/lib/dropdown-item/index.js +14 -8
- package/lib/dropdown-item/index.less +2 -5
- package/lib/dropdown-item/types.js +18 -1
- package/lib/dropdown-menu/DropdownMenu.js +15 -14
- package/lib/dropdown-menu/index.css +1 -1
- package/lib/dropdown-menu/index.js +14 -8
- package/lib/dropdown-menu/index.less +14 -18
- package/lib/dropdown-menu/types.js +18 -1
- package/lib/empty/Empty.js +14 -13
- package/lib/empty/Network.js +11 -10
- package/lib/empty/index.css +1 -1
- package/lib/empty/index.js +14 -8
- package/lib/empty/index.less +9 -11
- package/lib/field/Field.d.ts +4 -4
- package/lib/field/Field.js +24 -23
- package/lib/field/index.css +1 -1
- package/lib/field/index.d.ts +4 -4
- package/lib/field/index.js +14 -8
- package/lib/field/index.less +20 -23
- package/lib/field/types.js +18 -1
- package/lib/field/utils.js +13 -11
- package/lib/form/Form.js +15 -14
- package/lib/form/index.js +14 -8
- package/lib/form/types.js +18 -1
- package/lib/grid/Grid.js +15 -14
- package/lib/grid/index.js +14 -8
- package/lib/grid-item/GridItem.js +18 -17
- package/lib/grid-item/index.css +1 -1
- package/lib/grid-item/index.js +14 -8
- package/lib/grid-item/index.less +10 -13
- package/lib/icon/Icon.js +15 -14
- package/lib/icon/index.css +1 -1
- package/lib/icon/index.js +14 -8
- package/lib/icon/index.less +1 -0
- package/lib/image/Image.js +14 -13
- package/lib/image/index.css +1 -1
- package/lib/image/index.js +14 -8
- package/lib/image/index.less +10 -12
- package/lib/image-preview/ImagePreview.js +21 -15
- package/lib/image-preview/ImagePreviewItem.js +17 -16
- package/lib/image-preview/function-call.js +16 -10
- package/lib/image-preview/index.css +1 -1
- package/lib/image-preview/index.js +11 -10
- package/lib/image-preview/index.less +11 -14
- package/lib/image-preview/types.js +18 -1
- package/lib/index-anchor/IndexAnchor.js +17 -16
- package/lib/index-anchor/index.css +1 -1
- package/lib/index-anchor/index.js +14 -8
- package/lib/index-anchor/index.less +12 -14
- package/lib/index-bar/IndexBar.d.ts +4 -4
- package/lib/index-bar/IndexBar.js +19 -16
- package/lib/index-bar/index.css +1 -1
- package/lib/index-bar/index.d.ts +3 -3
- package/lib/index-bar/index.js +14 -8
- package/lib/index-bar/index.less +7 -8
- package/lib/index-bar/types.js +18 -1
- package/lib/index.css +1 -1
- package/lib/index.d.ts +3 -2
- package/lib/index.js +186 -182
- package/lib/lazyload/index.js +11 -10
- package/lib/lazyload/vue-lazyload/index.js +16 -10
- package/lib/lazyload/vue-lazyload/lazy-component.js +12 -11
- package/lib/lazyload/vue-lazyload/lazy-container.js +11 -10
- package/lib/lazyload/vue-lazyload/lazy-image.js +13 -12
- package/lib/lazyload/vue-lazyload/lazy.js +17 -11
- package/lib/lazyload/vue-lazyload/listener.js +13 -12
- package/lib/lazyload/vue-lazyload/util.js +11 -10
- package/lib/list/List.js +17 -16
- package/lib/list/index.css +1 -1
- package/lib/list/index.js +14 -8
- package/lib/list/index.less +5 -7
- package/lib/list/types.js +18 -1
- package/lib/loading/Loading.js +13 -12
- package/lib/loading/index.css +1 -1
- package/lib/loading/index.js +14 -8
- package/lib/loading/index.less +7 -10
- package/lib/locale/index.js +15 -9
- package/lib/locale/lang/bn-BD.d.ts +64 -0
- package/lib/locale/lang/bn-BD.js +98 -0
- package/lib/locale/lang/de-DE-formal.d.ts +2 -11
- package/lib/locale/lang/de-DE-formal.js +22 -14
- package/lib/locale/lang/de-DE.d.ts +2 -11
- package/lib/locale/lang/de-DE.js +22 -14
- package/lib/locale/lang/en-US.d.ts +2 -11
- package/lib/locale/lang/en-US.js +22 -14
- package/lib/locale/lang/es-ES.d.ts +2 -11
- package/lib/locale/lang/es-ES.js +22 -14
- package/lib/locale/lang/fr-FR.d.ts +2 -11
- package/lib/locale/lang/fr-FR.js +22 -14
- package/lib/locale/lang/hi-IN.d.ts +64 -0
- package/lib/locale/lang/hi-IN.js +98 -0
- package/lib/locale/lang/id-ID.d.ts +64 -0
- package/lib/locale/lang/id-ID.js +90 -0
- package/lib/locale/lang/it-IT.d.ts +64 -0
- package/lib/locale/lang/it-IT.js +98 -0
- package/lib/locale/lang/ja-JP.d.ts +2 -12
- package/lib/locale/lang/ja-JP.js +24 -17
- package/lib/locale/lang/ko-KR.d.ts +64 -0
- package/lib/locale/lang/ko-KR.js +98 -0
- package/lib/locale/lang/nb-NO.d.ts +2 -11
- package/lib/locale/lang/nb-NO.js +22 -14
- package/lib/locale/lang/pt-BR.d.ts +2 -11
- package/lib/locale/lang/pt-BR.js +22 -14
- package/lib/locale/lang/ro-RO.d.ts +2 -11
- package/lib/locale/lang/ro-RO.js +22 -14
- package/lib/locale/lang/ru-RU.d.ts +2 -11
- package/lib/locale/lang/ru-RU.js +22 -14
- package/lib/locale/lang/th-TH.d.ts +2 -12
- package/lib/locale/lang/th-TH.js +24 -17
- package/lib/locale/lang/tr-TR.d.ts +2 -11
- package/lib/locale/lang/tr-TR.js +21 -13
- package/lib/locale/lang/uk-UA.d.ts +64 -0
- package/lib/locale/lang/uk-UA.js +98 -0
- package/lib/locale/lang/vi-VN.d.ts +64 -0
- package/lib/locale/lang/vi-VN.js +98 -0
- package/lib/locale/lang/zh-CN.d.ts +2 -12
- package/lib/locale/lang/zh-CN.js +25 -18
- package/lib/locale/lang/zh-HK.d.ts +2 -12
- package/lib/locale/lang/zh-HK.js +25 -18
- package/lib/locale/lang/zh-TW.d.ts +2 -12
- package/lib/locale/lang/zh-TW.js +25 -18
- package/lib/nav-bar/NavBar.d.ts +3 -3
- package/lib/nav-bar/NavBar.js +18 -17
- package/lib/nav-bar/index.css +1 -1
- package/lib/nav-bar/index.d.ts +3 -3
- package/lib/nav-bar/index.js +14 -8
- package/lib/nav-bar/index.less +11 -14
- package/lib/notice-bar/NoticeBar.js +17 -16
- package/lib/notice-bar/index.css +1 -1
- package/lib/notice-bar/index.js +14 -8
- package/lib/notice-bar/index.less +11 -13
- package/lib/notice-bar/types.js +18 -1
- package/lib/notify/Notify.js +15 -14
- package/lib/notify/function-call.js +16 -10
- package/lib/notify/index.css +1 -1
- package/lib/notify/index.js +11 -10
- package/lib/notify/index.less +13 -15
- package/lib/notify/types.js +18 -1
- package/lib/number-keyboard/NumberKeyboard.d.ts +1 -1
- package/lib/number-keyboard/NumberKeyboard.js +17 -11
- package/lib/number-keyboard/NumberKeyboardKey.js +15 -14
- package/lib/number-keyboard/index.css +1 -1
- package/lib/number-keyboard/index.d.ts +1 -1
- package/lib/number-keyboard/index.js +14 -8
- package/lib/number-keyboard/index.less +26 -23
- package/lib/overlay/Overlay.js +14 -13
- package/lib/overlay/index.css +1 -1
- package/lib/overlay/index.js +14 -8
- package/lib/overlay/index.less +4 -6
- package/lib/pagination/Pagination.js +13 -12
- package/lib/pagination/index.css +1 -1
- package/lib/pagination/index.js +14 -8
- package/lib/pagination/index.less +13 -15
- package/lib/password-input/PasswordInput.js +13 -12
- package/lib/password-input/index.css +1 -1
- package/lib/password-input/index.js +14 -8
- package/lib/password-input/index.less +20 -22
- package/lib/picker/Picker.d.ts +26 -28
- package/lib/picker/Picker.js +109 -208
- package/lib/picker/PickerColumn.d.ts +21 -30
- package/lib/picker/PickerColumn.js +76 -125
- package/lib/picker/index.css +1 -1
- package/lib/picker/index.d.ts +19 -20
- package/lib/picker/index.js +14 -8
- package/lib/picker/index.less +31 -20
- package/lib/picker/types.d.ts +13 -19
- package/lib/picker/types.js +18 -1
- 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/Popover.js +17 -16
- package/lib/popover/index.css +1 -1
- package/lib/popover/index.d.ts +1 -1
- package/lib/popover/index.js +14 -8
- package/lib/popover/index.less +21 -23
- package/lib/popover/types.js +18 -1
- package/lib/popup/Popup.d.ts +4 -3
- package/lib/popup/Popup.js +33 -24
- package/lib/popup/index.css +1 -1
- package/lib/popup/index.d.ts +4 -3
- package/lib/popup/index.js +14 -8
- package/lib/popup/index.less +20 -23
- package/lib/popup/shared.js +11 -10
- package/lib/popup/types.d.ts +5 -2
- package/lib/popup/types.js +18 -1
- package/lib/progress/Progress.js +13 -12
- package/lib/progress/index.css +1 -1
- package/lib/progress/index.js +14 -8
- package/lib/progress/index.less +14 -18
- package/lib/progress/types.js +18 -1
- package/lib/pull-refresh/PullRefresh.js +16 -15
- package/lib/pull-refresh/index.css +1 -1
- package/lib/pull-refresh/index.js +14 -8
- package/lib/pull-refresh/index.less +5 -7
- package/lib/radio/Radio.js +18 -12
- package/lib/radio/index.css +1 -1
- package/lib/radio/index.js +14 -8
- package/lib/radio/index.less +12 -14
- package/lib/radio-group/RadioGroup.js +14 -13
- package/lib/radio-group/index.js +14 -8
- package/lib/rate/Rate.js +17 -16
- package/lib/rate/index.css +1 -1
- package/lib/rate/index.js +14 -8
- package/lib/rate/index.less +6 -8
- package/lib/row/Row.js +14 -13
- package/lib/row/index.js +14 -8
- package/lib/search/Search.d.ts +4 -4
- package/lib/search/Search.js +24 -23
- package/lib/search/index.css +1 -1
- package/lib/search/index.d.ts +4 -4
- package/lib/search/index.js +14 -8
- package/lib/search/index.less +16 -18
- package/lib/search/types.js +18 -1
- package/lib/share-sheet/ShareSheet.js +15 -14
- package/lib/share-sheet/index.css +1 -1
- package/lib/share-sheet/index.js +14 -8
- package/lib/share-sheet/index.less +17 -19
- package/lib/sidebar/Sidebar.js +14 -13
- package/lib/sidebar/index.css +1 -1
- package/lib/sidebar/index.js +14 -8
- package/lib/sidebar/index.less +2 -4
- package/lib/sidebar-item/SidebarItem.js +17 -16
- package/lib/sidebar-item/index.css +1 -1
- package/lib/sidebar-item/index.js +14 -8
- package/lib/sidebar-item/index.less +17 -19
- package/lib/skeleton/Skeleton.js +13 -12
- package/lib/skeleton/index.css +1 -1
- package/lib/skeleton/index.js +14 -8
- package/lib/skeleton/index.less +14 -16
- package/lib/slider/Slider.d.ts +4 -4
- package/lib/slider/Slider.js +20 -20
- package/lib/slider/index.css +1 -1
- package/lib/slider/index.d.ts +4 -4
- package/lib/slider/index.js +14 -8
- package/lib/slider/index.less +20 -18
- package/lib/step/Step.js +16 -15
- package/lib/step/index.css +1 -1
- package/lib/step/index.js +14 -8
- package/lib/step/index.less +15 -17
- package/lib/stepper/Stepper.d.ts +1 -1
- package/lib/stepper/Stepper.js +14 -13
- package/lib/stepper/index.css +1 -1
- package/lib/stepper/index.d.ts +1 -1
- package/lib/stepper/index.js +14 -8
- package/lib/stepper/index.less +20 -25
- package/lib/steps/Steps.d.ts +2 -2
- package/lib/steps/Steps.js +16 -15
- package/lib/steps/index.css +1 -1
- package/lib/steps/index.d.ts +2 -2
- package/lib/steps/index.js +14 -8
- package/lib/steps/index.less +3 -5
- package/lib/sticky/Sticky.js +15 -14
- package/lib/sticky/index.css +1 -1
- package/lib/sticky/index.js +14 -8
- 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 +12 -9
- 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/SubmitBar.js +15 -14
- package/lib/submit-bar/index.css +1 -1
- package/lib/submit-bar/index.js +14 -8
- package/lib/submit-bar/index.less +27 -28
- package/lib/swipe/Swipe.js +17 -16
- package/lib/swipe/index.css +1 -1
- package/lib/swipe/index.js +14 -8
- package/lib/swipe/index.less +11 -13
- package/lib/swipe/types.js +18 -1
- package/lib/swipe-cell/SwipeCell.js +16 -15
- package/lib/swipe-cell/index.js +14 -8
- package/lib/swipe-cell/types.js +18 -1
- package/lib/swipe-item/SwipeItem.js +16 -15
- package/lib/swipe-item/index.js +14 -8
- package/lib/switch/Switch.js +15 -14
- package/lib/switch/index.css +1 -1
- package/lib/switch/index.js +14 -8
- package/lib/switch/index.less +24 -24
- package/lib/tab/Tab.js +20 -19
- package/lib/tab/index.js +14 -8
- package/lib/tabbar/Tabbar.js +15 -14
- package/lib/tabbar/index.css +1 -1
- package/lib/tabbar/index.js +14 -8
- package/lib/tabbar/index.less +5 -7
- package/lib/tabbar-item/TabbarItem.js +18 -17
- package/lib/tabbar-item/index.css +1 -1
- package/lib/tabbar-item/index.js +14 -8
- package/lib/tabbar-item/index.less +9 -11
- package/lib/tabs/Tabs.d.ts +2 -4
- package/lib/tabs/Tabs.js +38 -45
- package/lib/tabs/TabsContent.js +14 -13
- package/lib/tabs/TabsTitle.js +14 -13
- package/lib/tabs/index.css +1 -1
- package/lib/tabs/index.d.ts +2 -4
- package/lib/tabs/index.js +14 -8
- package/lib/tabs/index.less +17 -20
- package/lib/tabs/types.js +18 -1
- package/lib/tabs/utils.js +12 -11
- package/lib/tag/Tag.js +15 -14
- package/lib/tag/index.css +1 -1
- package/lib/tag/index.js +14 -8
- package/lib/tag/index.less +22 -26
- 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/time-picker/index.js +37 -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.d.ts +3 -0
- package/lib/toast/Toast.js +19 -17
- package/lib/toast/function-call.js +17 -11
- package/lib/toast/index.css +1 -1
- package/lib/toast/index.js +11 -10
- package/lib/toast/index.less +19 -21
- package/lib/toast/lock-click.js +19 -2
- package/lib/toast/types.js +18 -1
- package/lib/tree-select/TreeSelect.d.ts +3 -3
- package/lib/tree-select/TreeSelect.js +21 -19
- package/lib/tree-select/index.css +1 -1
- package/lib/tree-select/index.d.ts +3 -3
- package/lib/tree-select/index.js +14 -8
- package/lib/tree-select/index.less +12 -14
- package/lib/uploader/Uploader.d.ts +4 -4
- package/lib/uploader/Uploader.js +25 -19
- package/lib/uploader/UploaderPreviewItem.js +17 -16
- package/lib/uploader/index.css +1 -1
- package/lib/uploader/index.d.ts +4 -4
- package/lib/uploader/index.js +14 -8
- package/lib/uploader/index.less +31 -33
- package/lib/uploader/types.d.ts +1 -3
- package/lib/uploader/types.js +18 -1
- package/lib/uploader/utils.js +11 -10
- package/lib/utils/basic.d.ts +1 -0
- package/lib/utils/basic.js +21 -2
- package/lib/utils/constant.js +19 -2
- package/lib/utils/create.js +16 -10
- package/lib/utils/deep-assign.js +11 -10
- package/lib/utils/deep-clone.js +11 -10
- package/lib/utils/dom.js +13 -12
- package/lib/utils/format.js +13 -12
- package/lib/utils/index.js +18 -17
- package/lib/utils/interceptor.d.ts +1 -1
- package/lib/utils/interceptor.js +12 -11
- package/lib/utils/mount-component.js +13 -12
- package/lib/utils/props.js +19 -2
- package/lib/utils/validate.js +11 -10
- package/lib/utils/with-install.js +11 -10
- package/lib/vant.cjs.js +1244 -1656
- package/lib/vant.cjs.min.js +1 -1
- package/lib/vant.es.js +1244 -1657
- package/lib/vant.es.min.js +1244 -1657
- package/lib/vant.js +1247 -1658
- package/lib/vant.min.js +1 -1
- package/package.json +7 -7
- package/vetur/attributes.json +155 -95
- package/vetur/tags.json +49 -38
- package/vetur/web-types.json +450 -265
- 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 -273
- package/lib/datetime-picker/DatetimePicker.d.ts +0 -7
- package/lib/datetime-picker/DatetimePicker.js +0 -63
- package/lib/datetime-picker/TimePicker.js +0 -140
- package/lib/datetime-picker/index.d.ts +0 -12
- package/lib/datetime-picker/index.js +0 -31
- package/lib/datetime-picker/types.d.ts +0 -9
- package/lib/datetime-picker/types.js +0 -3
- package/lib/datetime-picker/utils.js +0 -86
- 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
@@ -1,37 +1,38 @@
|
|
1
|
-
var __create = Object.create;
|
2
1
|
var __defProp = Object.defineProperty;
|
3
2
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
4
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
6
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
7
5
|
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
8
6
|
var __export = (target, all) => {
|
9
|
-
__markAsModule(target);
|
10
7
|
for (var name2 in all)
|
11
8
|
__defProp(target, name2, { get: all[name2], enumerable: true });
|
12
9
|
};
|
13
|
-
var __reExport = (target, module2, desc) => {
|
10
|
+
var __reExport = (target, module2, copyDefault, desc) => {
|
14
11
|
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
15
12
|
for (let key of __getOwnPropNames(module2))
|
16
|
-
if (!__hasOwnProp.call(target, key) && key !== "default")
|
13
|
+
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
17
14
|
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
18
15
|
}
|
19
16
|
return target;
|
20
17
|
};
|
21
|
-
var
|
22
|
-
return
|
23
|
-
};
|
24
|
-
|
18
|
+
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
19
|
+
return (module2, temp) => {
|
20
|
+
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
21
|
+
};
|
22
|
+
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
23
|
+
var stdin_exports = {};
|
24
|
+
__export(stdin_exports, {
|
25
25
|
CONFIG_PROVIDER_KEY: () => CONFIG_PROVIDER_KEY,
|
26
26
|
default: () => stdin_default
|
27
27
|
});
|
28
|
-
var import_vue =
|
29
|
-
var import_vue2 =
|
30
|
-
var import_utils =
|
28
|
+
var import_vue = require("vue");
|
29
|
+
var import_vue2 = require("vue");
|
30
|
+
var import_utils = require("../utils");
|
31
31
|
const [name, bem] = (0, import_utils.createNamespace)("config-provider");
|
32
32
|
const CONFIG_PROVIDER_KEY = Symbol(name);
|
33
33
|
const configProviderProps = {
|
34
34
|
tag: (0, import_utils.makeStringProp)("div"),
|
35
|
+
theme: (0, import_utils.makeStringProp)("light"),
|
35
36
|
themeVars: Object,
|
36
37
|
iconPrefix: String
|
37
38
|
};
|
@@ -53,6 +54,12 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
53
54
|
return mapThemeVarsToCSSVars(props.themeVars);
|
54
55
|
}
|
55
56
|
});
|
57
|
+
if (import_utils.inBrowser) {
|
58
|
+
(0, import_vue2.watch)(() => props.theme, (newVal, oldVal) => {
|
59
|
+
document.body.classList.remove(`van-theme-${oldVal}`);
|
60
|
+
document.body.classList.add(`van-theme-${newVal}`);
|
61
|
+
});
|
62
|
+
}
|
56
63
|
(0, import_vue2.provide)(CONFIG_PROVIDER_KEY, props);
|
57
64
|
return () => (0, import_vue.createVNode)(props.tag, {
|
58
65
|
"class": bem(),
|
@@ -65,3 +72,4 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
65
72
|
});
|
66
73
|
}
|
67
74
|
});
|
75
|
+
module.exports = __toCommonJS(stdin_exports);
|
@@ -3,6 +3,10 @@ export declare const ConfigProvider: import("../utils").WithInstall<import("vue"
|
|
3
3
|
type: import("vue").PropType<keyof HTMLElementTagNameMap>;
|
4
4
|
default: keyof HTMLElementTagNameMap;
|
5
5
|
};
|
6
|
+
theme: {
|
7
|
+
type: import("vue").PropType<import("./ConfigProvider").ConfigProviderTheme>;
|
8
|
+
default: import("./ConfigProvider").ConfigProviderTheme;
|
9
|
+
};
|
6
10
|
themeVars: import("vue").PropType<Record<string, string | number>>;
|
7
11
|
iconPrefix: StringConstructor;
|
8
12
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
@@ -10,13 +14,18 @@ export declare const ConfigProvider: import("../utils").WithInstall<import("vue"
|
|
10
14
|
type: import("vue").PropType<keyof HTMLElementTagNameMap>;
|
11
15
|
default: keyof HTMLElementTagNameMap;
|
12
16
|
};
|
17
|
+
theme: {
|
18
|
+
type: import("vue").PropType<import("./ConfigProvider").ConfigProviderTheme>;
|
19
|
+
default: import("./ConfigProvider").ConfigProviderTheme;
|
20
|
+
};
|
13
21
|
themeVars: import("vue").PropType<Record<string, string | number>>;
|
14
22
|
iconPrefix: StringConstructor;
|
15
23
|
}>>, {
|
16
24
|
tag: keyof HTMLElementTagNameMap;
|
25
|
+
theme: import("./ConfigProvider").ConfigProviderTheme;
|
17
26
|
}>>;
|
18
27
|
export default ConfigProvider;
|
19
|
-
export type { ConfigProviderProps } from './ConfigProvider';
|
28
|
+
export type { ConfigProviderProps, ConfigProviderTheme, } from './ConfigProvider';
|
20
29
|
declare module 'vue' {
|
21
30
|
interface GlobalComponents {
|
22
31
|
VanConfigProvider: typeof ConfigProvider;
|
@@ -6,26 +6,32 @@ var __getProtoOf = Object.getPrototypeOf;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
7
7
|
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
8
8
|
var __export = (target, all) => {
|
9
|
-
__markAsModule(target);
|
10
9
|
for (var name in all)
|
11
10
|
__defProp(target, name, { get: all[name], enumerable: true });
|
12
11
|
};
|
13
|
-
var __reExport = (target, module2, desc) => {
|
12
|
+
var __reExport = (target, module2, copyDefault, desc) => {
|
14
13
|
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
15
14
|
for (let key of __getOwnPropNames(module2))
|
16
|
-
if (!__hasOwnProp.call(target, key) && key !== "default")
|
15
|
+
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
17
16
|
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
18
17
|
}
|
19
18
|
return target;
|
20
19
|
};
|
21
|
-
var
|
22
|
-
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default",
|
20
|
+
var __toESM = (module2, isNodeMode) => {
|
21
|
+
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
|
23
22
|
};
|
24
|
-
|
23
|
+
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
24
|
+
return (module2, temp) => {
|
25
|
+
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
26
|
+
};
|
27
|
+
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
28
|
+
var stdin_exports = {};
|
29
|
+
__export(stdin_exports, {
|
25
30
|
ConfigProvider: () => ConfigProvider,
|
26
31
|
default: () => stdin_default
|
27
32
|
});
|
28
|
-
var import_utils =
|
29
|
-
var import_ConfigProvider =
|
33
|
+
var import_utils = require("../utils");
|
34
|
+
var import_ConfigProvider = __toESM(require("./ConfigProvider"));
|
30
35
|
const ConfigProvider = (0, import_utils.withInstall)(import_ConfigProvider.default);
|
31
36
|
var stdin_default = ConfigProvider;
|
37
|
+
module.exports = __toCommonJS(stdin_exports);
|
@@ -1,33 +1,33 @@
|
|
1
|
-
var __create = Object.create;
|
2
1
|
var __defProp = Object.defineProperty;
|
3
2
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
4
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
6
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
7
5
|
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
8
6
|
var __export = (target, all) => {
|
9
|
-
__markAsModule(target);
|
10
7
|
for (var name2 in all)
|
11
8
|
__defProp(target, name2, { get: all[name2], enumerable: true });
|
12
9
|
};
|
13
|
-
var __reExport = (target, module2, desc) => {
|
10
|
+
var __reExport = (target, module2, copyDefault, desc) => {
|
14
11
|
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
15
12
|
for (let key of __getOwnPropNames(module2))
|
16
|
-
if (!__hasOwnProp.call(target, key) && key !== "default")
|
13
|
+
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
17
14
|
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
18
15
|
}
|
19
16
|
return target;
|
20
17
|
};
|
21
|
-
var
|
22
|
-
return
|
23
|
-
};
|
24
|
-
|
18
|
+
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
19
|
+
return (module2, temp) => {
|
20
|
+
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
21
|
+
};
|
22
|
+
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
23
|
+
var stdin_exports = {};
|
24
|
+
__export(stdin_exports, {
|
25
25
|
default: () => stdin_default
|
26
26
|
});
|
27
|
-
var import_vue =
|
28
|
-
var import_vue2 =
|
29
|
-
var import_utils =
|
30
|
-
var import_cell =
|
27
|
+
var import_vue = require("vue");
|
28
|
+
var import_vue2 = require("vue");
|
29
|
+
var import_utils = require("../utils");
|
30
|
+
var import_cell = require("../cell");
|
31
31
|
const [name, bem, t] = (0, import_utils.createNamespace)("contact-card");
|
32
32
|
const contactCardProps = {
|
33
33
|
tel: String,
|
@@ -50,7 +50,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
50
50
|
};
|
51
51
|
const renderContent = () => {
|
52
52
|
if (props.type === "add") {
|
53
|
-
return props.addText || t("
|
53
|
+
return props.addText || t("addContact");
|
54
54
|
}
|
55
55
|
return [(0, import_vue.createVNode)("div", null, [`${t("name")}\uFF1A${props.name}`]), (0, import_vue.createVNode)("div", null, [`${t("tel")}\uFF1A${props.tel}`])];
|
56
56
|
};
|
@@ -60,10 +60,11 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
60
60
|
"class": bem([props.type]),
|
61
61
|
"border": false,
|
62
62
|
"isLink": props.editable,
|
63
|
-
"
|
63
|
+
"titleClass": bem("title"),
|
64
64
|
"onClick": onClick
|
65
65
|
}, {
|
66
|
-
|
66
|
+
title: renderContent
|
67
67
|
});
|
68
68
|
}
|
69
69
|
});
|
70
|
+
module.exports = __toCommonJS(stdin_exports);
|
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
body{--van-contact-card-padding: var(--van-padding-md);--van-contact-card-add-icon-size: 40px;--van-contact-card-add-icon-color: var(--van-primary-color);--van-contact-card-title-line-height: var(--van-line-height-md)}.van-contact-card{padding:var(--van-contact-card-padding)}.van-contact-card__title{margin-left:5px;line-height:var(--van-contact-card-title-line-height)}.van-contact-card--add .van-contact-card__value{line-height:var(--van-contact-card-add-icon-size)}.van-contact-card--add .van-cell__left-icon{color:var(--van-contact-card-add-icon-color);font-size:var(--van-contact-card-add-icon-size)}.van-contact-card:before{position:absolute;right:0;bottom:0;left:0;height:2px;background:repeating-linear-gradient(-45deg,var(--van-warning-color) 0,var(--van-warning-color) 20%,transparent 0,transparent 25%,var(--van-primary-color) 0,var(--van-primary-color) 45%,transparent 0,transparent 50%);background-size:80px;content:""}
|
@@ -6,26 +6,32 @@ var __getProtoOf = Object.getPrototypeOf;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
7
7
|
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
8
8
|
var __export = (target, all) => {
|
9
|
-
__markAsModule(target);
|
10
9
|
for (var name in all)
|
11
10
|
__defProp(target, name, { get: all[name], enumerable: true });
|
12
11
|
};
|
13
|
-
var __reExport = (target, module2, desc) => {
|
12
|
+
var __reExport = (target, module2, copyDefault, desc) => {
|
14
13
|
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
15
14
|
for (let key of __getOwnPropNames(module2))
|
16
|
-
if (!__hasOwnProp.call(target, key) && key !== "default")
|
15
|
+
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
17
16
|
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
18
17
|
}
|
19
18
|
return target;
|
20
19
|
};
|
21
|
-
var
|
22
|
-
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default",
|
20
|
+
var __toESM = (module2, isNodeMode) => {
|
21
|
+
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
|
23
22
|
};
|
24
|
-
|
23
|
+
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
24
|
+
return (module2, temp) => {
|
25
|
+
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
26
|
+
};
|
27
|
+
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
28
|
+
var stdin_exports = {};
|
29
|
+
__export(stdin_exports, {
|
25
30
|
ContactCard: () => ContactCard,
|
26
31
|
default: () => stdin_default
|
27
32
|
});
|
28
|
-
var import_utils =
|
29
|
-
var import_ContactCard =
|
33
|
+
var import_utils = require("../utils");
|
34
|
+
var import_ContactCard = __toESM(require("./ContactCard"));
|
30
35
|
const ContactCard = (0, import_utils.withInstall)(import_ContactCard.default);
|
31
36
|
var stdin_default = ContactCard;
|
37
|
+
module.exports = __toCommonJS(stdin_exports);
|
@@ -1,18 +1,16 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
:
|
4
|
-
--van-contact-card-
|
5
|
-
--van-contact-card-
|
6
|
-
--van-contact-card-add-icon-color: @contact-card-add-icon-color;
|
7
|
-
--van-contact-card-value-line-height: @contact-card-value-line-height;
|
1
|
+
body {
|
2
|
+
--van-contact-card-padding: var(--van-padding-md);
|
3
|
+
--van-contact-card-add-icon-size: 40px;
|
4
|
+
--van-contact-card-add-icon-color: var(--van-primary-color);
|
5
|
+
--van-contact-card-title-line-height: var(--van-line-height-md);
|
8
6
|
}
|
9
7
|
|
10
8
|
.van-contact-card {
|
11
9
|
padding: var(--van-contact-card-padding);
|
12
10
|
|
13
|
-
&
|
11
|
+
&__title {
|
14
12
|
margin-left: 5px;
|
15
|
-
line-height: var(--van-contact-card-
|
13
|
+
line-height: var(--van-contact-card-title-line-height);
|
16
14
|
}
|
17
15
|
|
18
16
|
&--add {
|
@@ -35,7 +35,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
35
35
|
type: PropType<(val: string) => boolean>;
|
36
36
|
default: typeof isMobile;
|
37
37
|
};
|
38
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("save" | "delete" | "
|
38
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("save" | "delete" | "changeDefault")[], "save" | "delete" | "changeDefault", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
39
39
|
isEdit: BooleanConstructor;
|
40
40
|
isSaving: BooleanConstructor;
|
41
41
|
isDeleting: BooleanConstructor;
|
@@ -52,7 +52,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
52
52
|
}>> & {
|
53
53
|
onSave?: ((...args: any[]) => any) | undefined;
|
54
54
|
onDelete?: ((...args: any[]) => any) | undefined;
|
55
|
-
|
55
|
+
onChangeDefault?: ((...args: any[]) => any) | undefined;
|
56
56
|
}, {
|
57
57
|
isSaving: boolean;
|
58
58
|
isDeleting: boolean;
|
@@ -1,37 +1,37 @@
|
|
1
|
-
var __create = Object.create;
|
2
1
|
var __defProp = Object.defineProperty;
|
3
2
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
4
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
6
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
7
5
|
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
8
6
|
var __export = (target, all) => {
|
9
|
-
__markAsModule(target);
|
10
7
|
for (var name2 in all)
|
11
8
|
__defProp(target, name2, { get: all[name2], enumerable: true });
|
12
9
|
};
|
13
|
-
var __reExport = (target, module2, desc) => {
|
10
|
+
var __reExport = (target, module2, copyDefault, desc) => {
|
14
11
|
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
15
12
|
for (let key of __getOwnPropNames(module2))
|
16
|
-
if (!__hasOwnProp.call(target, key) && key !== "default")
|
13
|
+
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
17
14
|
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
18
15
|
}
|
19
16
|
return target;
|
20
17
|
};
|
21
|
-
var
|
22
|
-
return
|
23
|
-
};
|
24
|
-
|
18
|
+
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
19
|
+
return (module2, temp) => {
|
20
|
+
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
21
|
+
};
|
22
|
+
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
23
|
+
var stdin_exports = {};
|
24
|
+
__export(stdin_exports, {
|
25
25
|
default: () => stdin_default
|
26
26
|
});
|
27
|
-
var import_vue =
|
28
|
-
var import_vue2 =
|
29
|
-
var import_utils =
|
30
|
-
var import_cell =
|
31
|
-
var import_form =
|
32
|
-
var import_field =
|
33
|
-
var import_button =
|
34
|
-
var import_switch =
|
27
|
+
var import_vue = require("vue");
|
28
|
+
var import_vue2 = require("vue");
|
29
|
+
var import_utils = require("../utils");
|
30
|
+
var import_cell = require("../cell");
|
31
|
+
var import_form = require("../form");
|
32
|
+
var import_field = require("../field");
|
33
|
+
var import_button = require("../button");
|
34
|
+
var import_switch = require("../switch");
|
35
35
|
const [name, bem, t] = (0, import_utils.createNamespace)("contact-edit");
|
36
36
|
const DEFAULT_CONTACT = {
|
37
37
|
tel: "",
|
@@ -55,7 +55,7 @@ const contactEditProps = {
|
|
55
55
|
var stdin_default = (0, import_vue2.defineComponent)({
|
56
56
|
name,
|
57
57
|
props: contactEditProps,
|
58
|
-
emits: ["save", "delete", "
|
58
|
+
emits: ["save", "delete", "changeDefault"],
|
59
59
|
setup(props, {
|
60
60
|
emit
|
61
61
|
}) {
|
@@ -71,7 +71,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
71
71
|
}, [(0, import_vue.createVNode)(import_button.Button, {
|
72
72
|
"block": true,
|
73
73
|
"round": true,
|
74
|
-
"type": "
|
74
|
+
"type": "primary",
|
75
75
|
"text": t("save"),
|
76
76
|
"class": bem("button"),
|
77
77
|
"loading": props.isSaving,
|
@@ -87,8 +87,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
87
87
|
const renderSwitch = () => (0, import_vue.createVNode)(import_switch.Switch, {
|
88
88
|
"modelValue": contact.isDefault,
|
89
89
|
"onUpdate:modelValue": ($event) => contact.isDefault = $event,
|
90
|
-
"
|
91
|
-
"onChange": (checked) => emit("change-default", checked)
|
90
|
+
"onChange": (checked) => emit("changeDefault", checked)
|
92
91
|
}, null);
|
93
92
|
const renderSetDefault = () => {
|
94
93
|
if (props.showSetDefault) {
|
@@ -134,3 +133,4 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
134
133
|
});
|
135
134
|
}
|
136
135
|
});
|
136
|
+
module.exports = __toCommonJS(stdin_exports);
|
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
body{--van-contact-edit-padding: var(--van-padding-md);--van-contact-edit-fields-radius: var(--van-radius-md);--van-contact-edit-buttons-padding: var(--van-padding-xl) 0;--van-contact-edit-button-margin-bottom: var(--van-padding-sm);--van-contact-edit-button-font-size: var(--van-font-size-lg);--van-contact-edit-field-label-width: 4.1em}.van-contact-edit{padding:var(--van-contact-edit-padding)}.van-contact-edit__fields{overflow:hidden;border-radius:var(--van-contact-edit-fields-radius)}.van-contact-edit__fields .van-field__label{width:var(--van-contact-edit-field-label-width)}.van-contact-edit__switch-cell{margin-top:10px;padding-top:9px;padding-bottom:9px;border-radius:var(--van-contact-edit-fields-radius)}.van-contact-edit__buttons{padding:var(--van-contact-edit-buttons-padding)}.van-contact-edit__button{margin-bottom:var(--van-contact-edit-button-margin-bottom);font-size:var(--van-contact-edit-button-font-size)}
|
@@ -12,7 +12,7 @@ export declare const ContactEdit: import("../utils").WithInstall<import("vue").D
|
|
12
12
|
type: import("vue").PropType<(val: string) => boolean>;
|
13
13
|
default: typeof import("../utils").isMobile;
|
14
14
|
};
|
15
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("save" | "delete" | "
|
15
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("save" | "delete" | "changeDefault")[], "save" | "delete" | "changeDefault", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
16
16
|
isEdit: BooleanConstructor;
|
17
17
|
isSaving: BooleanConstructor;
|
18
18
|
isDeleting: BooleanConstructor;
|
@@ -29,7 +29,7 @@ export declare const ContactEdit: import("../utils").WithInstall<import("vue").D
|
|
29
29
|
}>> & {
|
30
30
|
onSave?: ((...args: any[]) => any) | undefined;
|
31
31
|
onDelete?: ((...args: any[]) => any) | undefined;
|
32
|
-
|
32
|
+
onChangeDefault?: ((...args: any[]) => any) | undefined;
|
33
33
|
}, {
|
34
34
|
isSaving: boolean;
|
35
35
|
isDeleting: boolean;
|
@@ -6,26 +6,32 @@ var __getProtoOf = Object.getPrototypeOf;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
7
7
|
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
8
8
|
var __export = (target, all) => {
|
9
|
-
__markAsModule(target);
|
10
9
|
for (var name in all)
|
11
10
|
__defProp(target, name, { get: all[name], enumerable: true });
|
12
11
|
};
|
13
|
-
var __reExport = (target, module2, desc) => {
|
12
|
+
var __reExport = (target, module2, copyDefault, desc) => {
|
14
13
|
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
15
14
|
for (let key of __getOwnPropNames(module2))
|
16
|
-
if (!__hasOwnProp.call(target, key) && key !== "default")
|
15
|
+
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
17
16
|
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
18
17
|
}
|
19
18
|
return target;
|
20
19
|
};
|
21
|
-
var
|
22
|
-
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default",
|
20
|
+
var __toESM = (module2, isNodeMode) => {
|
21
|
+
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
|
23
22
|
};
|
24
|
-
|
23
|
+
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
24
|
+
return (module2, temp) => {
|
25
|
+
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
26
|
+
};
|
27
|
+
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
28
|
+
var stdin_exports = {};
|
29
|
+
__export(stdin_exports, {
|
25
30
|
ContactEdit: () => ContactEdit,
|
26
31
|
default: () => stdin_default
|
27
32
|
});
|
28
|
-
var import_utils =
|
29
|
-
var import_ContactEdit =
|
33
|
+
var import_utils = require("../utils");
|
34
|
+
var import_ContactEdit = __toESM(require("./ContactEdit"));
|
30
35
|
const ContactEdit = (0, import_utils.withInstall)(import_ContactEdit.default);
|
31
36
|
var stdin_default = ContactEdit;
|
37
|
+
module.exports = __toCommonJS(stdin_exports);
|
@@ -1,12 +1,10 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
:
|
4
|
-
--van-contact-edit-padding:
|
5
|
-
--van-contact-edit-
|
6
|
-
--van-contact-edit-
|
7
|
-
--van-contact-edit-
|
8
|
-
--van-contact-edit-button-font-size: @contact-edit-button-font-size;
|
9
|
-
--van-contact-edit-field-label-width: @contact-edit-field-label-width;
|
1
|
+
body {
|
2
|
+
--van-contact-edit-padding: var(--van-padding-md);
|
3
|
+
--van-contact-edit-fields-radius: var(--van-radius-md);
|
4
|
+
--van-contact-edit-buttons-padding: var(--van-padding-xl) 0;
|
5
|
+
--van-contact-edit-button-margin-bottom: var(--van-padding-sm);
|
6
|
+
--van-contact-edit-button-font-size: var(--van-font-size-lg);
|
7
|
+
--van-contact-edit-field-label-width: 4.1em;
|
10
8
|
}
|
11
9
|
|
12
10
|
.van-contact-edit {
|
@@ -1,38 +1,38 @@
|
|
1
|
-
var __create = Object.create;
|
2
1
|
var __defProp = Object.defineProperty;
|
3
2
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
4
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
6
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
7
5
|
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
8
6
|
var __export = (target, all) => {
|
9
|
-
__markAsModule(target);
|
10
7
|
for (var name2 in all)
|
11
8
|
__defProp(target, name2, { get: all[name2], enumerable: true });
|
12
9
|
};
|
13
|
-
var __reExport = (target, module2, desc) => {
|
10
|
+
var __reExport = (target, module2, copyDefault, desc) => {
|
14
11
|
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
15
12
|
for (let key of __getOwnPropNames(module2))
|
16
|
-
if (!__hasOwnProp.call(target, key) && key !== "default")
|
13
|
+
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
17
14
|
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
18
15
|
}
|
19
16
|
return target;
|
20
17
|
};
|
21
|
-
var
|
22
|
-
return
|
23
|
-
};
|
24
|
-
|
18
|
+
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
19
|
+
return (module2, temp) => {
|
20
|
+
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
21
|
+
};
|
22
|
+
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
23
|
+
var stdin_exports = {};
|
24
|
+
__export(stdin_exports, {
|
25
25
|
default: () => stdin_default
|
26
26
|
});
|
27
|
-
var import_vue =
|
28
|
-
var import_vue2 =
|
29
|
-
var import_utils =
|
30
|
-
var import_tag =
|
31
|
-
var import_icon =
|
32
|
-
var import_cell =
|
33
|
-
var import_radio =
|
34
|
-
var import_button =
|
35
|
-
var import_radio_group =
|
27
|
+
var import_vue = require("vue");
|
28
|
+
var import_vue2 = require("vue");
|
29
|
+
var import_utils = require("../utils");
|
30
|
+
var import_tag = require("../tag");
|
31
|
+
var import_icon = require("../icon");
|
32
|
+
var import_cell = require("../cell");
|
33
|
+
var import_radio = require("../radio");
|
34
|
+
var import_button = require("../button");
|
35
|
+
var import_radio_group = require("../radio-group");
|
36
36
|
const [name, bem, t] = (0, import_utils.createNamespace)("contact-list");
|
37
37
|
const contactListProps = {
|
38
38
|
list: Array,
|
@@ -69,7 +69,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
69
69
|
const nodes = [`${item.name}\uFF0C${item.tel}`];
|
70
70
|
if (item.isDefault && props.defaultTagText) {
|
71
71
|
nodes.push((0, import_vue.createVNode)(import_tag.Tag, {
|
72
|
-
"type": "
|
72
|
+
"type": "primary",
|
73
73
|
"round": true,
|
74
74
|
"class": bem("item-tag")
|
75
75
|
}, {
|
@@ -83,11 +83,11 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
83
83
|
"isLink": true,
|
84
84
|
"center": true,
|
85
85
|
"class": bem("item"),
|
86
|
-
"
|
86
|
+
"titleClass": bem("item-title"),
|
87
87
|
"onClick": onClick
|
88
88
|
}, {
|
89
89
|
icon: renderEditIcon,
|
90
|
-
|
90
|
+
title: renderContent,
|
91
91
|
"right-icon": renderRightIcon
|
92
92
|
});
|
93
93
|
};
|
@@ -103,10 +103,11 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
103
103
|
}, [(0, import_vue.createVNode)(import_button.Button, {
|
104
104
|
"round": true,
|
105
105
|
"block": true,
|
106
|
-
"type": "
|
106
|
+
"type": "primary",
|
107
107
|
"class": bem("add"),
|
108
|
-
"text": props.addText || t("
|
108
|
+
"text": props.addText || t("addContact"),
|
109
109
|
"onClick": () => emit("add")
|
110
110
|
}, null)])]);
|
111
111
|
}
|
112
112
|
});
|
113
|
+
module.exports = __toCommonJS(stdin_exports);
|
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
body{--van-contact-list-edit-icon-size: 16px;--van-contact-list-add-button-z-index: 999;--van-contact-list-radio-color: var(--van-primary-color);--van-contact-list-item-padding: var(--van-padding-md)}.van-contact-list{box-sizing:border-box;height:100%;padding-bottom:80px}.van-contact-list__item{padding:var(--van-contact-list-item-padding)}.van-contact-list__item-title{display:flex;align-items:center;padding-right:var(--van-padding-xl);padding-left:var(--van-padding-xs)}.van-contact-list__item-tag{flex:none;margin-left:var(--van-padding-xs);padding-top:0;padding-bottom:0;line-height:1.4em}.van-contact-list__group{box-sizing:border-box;height:100%;overflow-y:scroll;-webkit-overflow-scrolling:touch}.van-contact-list__edit{font-size:var(--van-contact-list-edit-icon-size)}.van-contact-list__radio .van-radio__icon--checked .van-icon{background-color:var(--van-contact-list-radio-color);border-color:var(--van-contact-list-radio-color)}.van-contact-list__bottom{position:fixed;right:0;bottom:0;left:0;z-index:var(--van-contact-list-add-button-z-index);padding-left:var(--van-padding-md);padding-right:var(--van-padding-md);background-color:var(--van-background-2)}.van-contact-list__add{height:40px;margin:5px 0}
|
@@ -6,26 +6,32 @@ var __getProtoOf = Object.getPrototypeOf;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
7
7
|
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
8
8
|
var __export = (target, all) => {
|
9
|
-
__markAsModule(target);
|
10
9
|
for (var name in all)
|
11
10
|
__defProp(target, name, { get: all[name], enumerable: true });
|
12
11
|
};
|
13
|
-
var __reExport = (target, module2, desc) => {
|
12
|
+
var __reExport = (target, module2, copyDefault, desc) => {
|
14
13
|
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
15
14
|
for (let key of __getOwnPropNames(module2))
|
16
|
-
if (!__hasOwnProp.call(target, key) && key !== "default")
|
15
|
+
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
17
16
|
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
18
17
|
}
|
19
18
|
return target;
|
20
19
|
};
|
21
|
-
var
|
22
|
-
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default",
|
20
|
+
var __toESM = (module2, isNodeMode) => {
|
21
|
+
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
|
23
22
|
};
|
24
|
-
|
23
|
+
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
24
|
+
return (module2, temp) => {
|
25
|
+
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
26
|
+
};
|
27
|
+
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
28
|
+
var stdin_exports = {};
|
29
|
+
__export(stdin_exports, {
|
25
30
|
ContactList: () => ContactList,
|
26
31
|
default: () => stdin_default
|
27
32
|
});
|
28
|
-
var import_utils =
|
29
|
-
var import_ContactList =
|
33
|
+
var import_utils = require("../utils");
|
34
|
+
var import_ContactList = __toESM(require("./ContactList"));
|
30
35
|
const ContactList = (0, import_utils.withInstall)(import_ContactList.default);
|
31
36
|
var stdin_default = ContactList;
|
37
|
+
module.exports = __toCommonJS(stdin_exports);
|