vant 4.0.0-alpha.0 → 4.0.0-alpha.3
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/README.md +141 -0
- package/changelog.generated.md +198 -0
- package/es/address-edit/AddressEdit.d.ts +0 -17
- package/es/address-edit/AddressEdit.js +3 -24
- package/es/address-edit/index.d.ts +0 -12
- package/es/address-edit/types.d.ts +0 -1
- package/es/address-list/AddressListItem.d.ts +3 -2
- package/es/address-list/AddressListItem.js +1 -1
- package/es/badge/Badge.d.ts +4 -3
- package/es/badge/index.d.ts +2 -2
- package/es/calendar/Calendar.d.ts +4 -0
- package/es/calendar/Calendar.js +3 -1
- package/es/calendar/CalendarDay.js +4 -0
- package/es/calendar/index.css +1 -1
- package/es/calendar/index.d.ts +3 -0
- package/es/calendar/index.less +3 -0
- package/es/calendar/types.d.ts +2 -1
- package/es/cascader/types.d.ts +2 -1
- package/es/checkbox/Checker.d.ts +2 -1
- package/es/collapse/Collapse.d.ts +7 -6
- package/es/collapse/index.d.ts +3 -3
- package/es/composables/use-touch.js +1 -1
- package/es/config-provider/ConfigProvider.d.ts +4 -3
- package/es/config-provider/ConfigProvider.js +2 -0
- package/es/config-provider/index.d.ts +2 -2
- package/es/contact-list/ContactList.d.ts +3 -2
- package/es/coupon/Coupon.d.ts +2 -1
- package/es/coupon-list/CouponList.d.ts +3 -13
- package/es/coupon-list/CouponList.js +9 -7
- package/es/coupon-list/index.css +1 -1
- package/es/coupon-list/index.d.ts +2 -9
- package/es/coupon-list/index.less +4 -16
- package/es/coupon-list/style/index.js +1 -0
- package/es/coupon-list/style/less.js +1 -0
- package/es/date-picker/DatePicker.js +1 -1
- package/es/dialog/index.css +1 -1
- package/es/dialog/index.less +2 -0
- package/es/dialog/types.d.ts +2 -2
- package/es/dropdown-item/types.d.ts +2 -1
- package/es/empty/Empty.d.ts +8 -7
- package/es/empty/Empty.js +12 -15
- package/es/empty/Images.d.ts +4 -0
- package/es/empty/Images.js +271 -0
- package/es/empty/index.d.ts +2 -2
- package/es/field/Field.d.ts +4 -0
- package/es/field/Field.js +8 -3
- package/es/field/index.d.ts +2 -0
- package/es/field/types.d.ts +1 -1
- package/es/form/Form.d.ts +13 -13
- package/es/form/Form.js +7 -3
- package/es/form/index.d.ts +9 -9
- package/es/form/types.d.ts +1 -0
- package/es/icon/index.css +1 -1
- package/es/index-bar/IndexBar.d.ts +5 -4
- package/es/index-bar/IndexBar.js +25 -4
- package/es/index-bar/index.d.ts +3 -3
- package/es/index-bar/types.d.ts +2 -1
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/loading/Loading.js +3 -1
- package/es/locale/lang/bn-BD.d.ts +0 -2
- package/es/locale/lang/bn-BD.js +0 -2
- package/es/locale/lang/da-DK.d.ts +64 -0
- package/es/locale/lang/da-DK.js +66 -0
- package/es/locale/lang/de-DE-formal.d.ts +0 -2
- package/es/locale/lang/de-DE-formal.js +0 -2
- package/es/locale/lang/de-DE.d.ts +0 -2
- package/es/locale/lang/de-DE.js +0 -2
- package/es/locale/lang/en-US.d.ts +0 -2
- package/es/locale/lang/en-US.js +0 -2
- package/es/locale/lang/es-ES.d.ts +0 -2
- package/es/locale/lang/es-ES.js +0 -2
- package/es/locale/lang/fr-FR.d.ts +0 -2
- package/es/locale/lang/fr-FR.js +0 -2
- package/es/locale/lang/hi-IN.d.ts +0 -2
- package/es/locale/lang/hi-IN.js +0 -2
- package/es/locale/lang/id-ID.d.ts +0 -2
- package/es/locale/lang/id-ID.js +0 -2
- package/es/locale/lang/is-IS.d.ts +62 -0
- package/es/locale/lang/is-IS.js +72 -0
- package/es/locale/lang/it-IT.d.ts +0 -2
- package/es/locale/lang/it-IT.js +0 -2
- package/es/locale/lang/ja-JP.d.ts +0 -2
- package/es/locale/lang/ja-JP.js +0 -2
- package/es/locale/lang/ko-KR.d.ts +0 -2
- package/es/locale/lang/ko-KR.js +0 -2
- package/es/locale/lang/la-LA.d.ts +62 -0
- package/es/locale/lang/la-LA.js +64 -0
- package/es/locale/lang/nb-NO.d.ts +0 -2
- package/es/locale/lang/nb-NO.js +0 -2
- package/es/locale/lang/pt-BR.d.ts +0 -2
- package/es/locale/lang/pt-BR.js +0 -2
- package/es/locale/lang/ro-RO.d.ts +0 -2
- package/es/locale/lang/ro-RO.js +0 -2
- package/es/locale/lang/ru-RU.d.ts +0 -2
- package/es/locale/lang/ru-RU.js +0 -2
- package/es/locale/lang/sv-SE.d.ts +62 -0
- package/es/locale/lang/sv-SE.js +64 -0
- package/es/locale/lang/th-TH.d.ts +0 -2
- package/es/locale/lang/th-TH.js +0 -2
- package/es/locale/lang/tr-TR.d.ts +0 -2
- package/es/locale/lang/tr-TR.js +0 -2
- package/es/locale/lang/uk-UA.d.ts +0 -2
- package/es/locale/lang/uk-UA.js +0 -2
- package/es/locale/lang/vi-VN.d.ts +0 -2
- package/es/locale/lang/vi-VN.js +0 -2
- package/es/locale/lang/zh-CN.d.ts +0 -2
- package/es/locale/lang/zh-CN.js +0 -2
- package/es/locale/lang/zh-HK.d.ts +0 -2
- package/es/locale/lang/zh-HK.js +0 -2
- package/es/locale/lang/zh-TW.d.ts +0 -2
- package/es/locale/lang/zh-TW.js +0 -2
- package/es/nav-bar/NavBar.d.ts +1 -1
- package/es/nav-bar/NavBar.js +3 -3
- package/es/nav-bar/index.d.ts +1 -1
- package/es/notify/types.d.ts +2 -1
- package/es/number-keyboard/NumberKeyboard.js +10 -1
- package/es/picker/Picker.d.ts +5 -4
- package/es/picker/index.css +1 -1
- package/es/picker/index.d.ts +3 -3
- package/es/picker/index.less +1 -0
- package/es/picker/types.d.ts +4 -3
- package/es/picker/utils.d.ts +4 -3
- package/es/popup/Popup.d.ts +4 -0
- package/es/popup/Popup.js +3 -0
- package/es/popup/index.css +1 -1
- package/es/popup/index.d.ts +3 -0
- package/es/progress/Progress.d.ts +4 -3
- package/es/progress/index.d.ts +2 -2
- package/es/rate/Rate.js +32 -10
- package/es/search/Search.d.ts +3 -0
- package/es/search/index.css +1 -1
- package/es/search/index.d.ts +2 -0
- package/es/search/index.less +1 -1
- package/es/share-sheet/ShareSheet.js +25 -11
- package/es/share-sheet/index.css +1 -1
- package/es/share-sheet/index.less +45 -1
- package/es/skeleton/Skeleton.d.ts +5 -4
- package/es/skeleton/Skeleton.js +6 -4
- package/es/skeleton/index.d.ts +3 -3
- package/es/slider/index.css +1 -1
- package/es/style/animation.css +1 -1
- package/es/style/base.css +1 -1
- package/es/style/base.less +5 -0
- package/es/swipe-cell/SwipeCell.js +1 -1
- package/es/swipe-cell/index.css +1 -1
- package/es/tabbar/Tabbar.d.ts +2 -2
- package/es/tabs/Tabs.d.ts +1 -1
- package/es/tabs/Tabs.js +1 -0
- package/es/tabs/types.d.ts +5 -4
- package/es/toast/Toast.js +1 -0
- package/es/toast/types.d.ts +3 -2
- package/es/tree-select/TreeSelect.d.ts +7 -6
- package/es/tree-select/index.d.ts +3 -3
- package/es/uploader/Uploader.d.ts +4 -4
- package/es/uploader/Uploader.js +3 -3
- package/es/uploader/UploaderPreviewItem.d.ts +3 -3
- package/es/uploader/UploaderPreviewItem.js +9 -6
- package/es/uploader/index.d.ts +2 -2
- package/es/uploader/types.d.ts +5 -5
- package/es/uploader/utils.d.ts +0 -1
- package/es/uploader/utils.js +2 -4
- package/es/utils/basic.d.ts +2 -0
- package/es/utils/basic.js +3 -1
- package/es/utils/format.d.ts +7 -6
- package/es/utils/format.js +6 -0
- package/es/utils/validate.d.ts +2 -1
- package/lib/action-bar/ActionBar.js +8 -13
- package/lib/action-bar/index.js +9 -16
- package/lib/action-bar-button/ActionBarButton.js +8 -13
- package/lib/action-bar-button/index.js +9 -16
- package/lib/action-bar-icon/ActionBarIcon.js +8 -13
- package/lib/action-bar-icon/index.js +9 -16
- package/lib/action-sheet/ActionSheet.js +8 -13
- package/lib/action-sheet/index.js +9 -16
- package/lib/address-edit/AddressEdit.d.ts +0 -17
- package/lib/address-edit/AddressEdit.js +12 -40
- package/lib/address-edit/AddressEditDetail.js +8 -13
- package/lib/address-edit/index.d.ts +0 -12
- package/lib/address-edit/index.js +9 -16
- package/lib/address-edit/types.d.ts +0 -1
- package/lib/address-edit/types.js +7 -12
- package/lib/address-list/AddressList.js +9 -16
- package/lib/address-list/AddressListItem.d.ts +3 -2
- package/lib/address-list/AddressListItem.js +8 -13
- package/lib/address-list/index.js +9 -16
- package/lib/area/Area.js +8 -13
- package/lib/area/index.js +9 -16
- package/lib/area/types.js +7 -12
- package/lib/area/utils.js +8 -13
- package/lib/badge/Badge.d.ts +4 -3
- package/lib/badge/Badge.js +8 -13
- package/lib/badge/index.d.ts +2 -2
- package/lib/badge/index.js +9 -16
- package/lib/button/Button.js +8 -13
- package/lib/button/index.js +9 -16
- package/lib/button/types.js +7 -12
- package/lib/calendar/Calendar.d.ts +4 -0
- package/lib/calendar/Calendar.js +12 -17
- package/lib/calendar/CalendarDay.js +12 -13
- package/lib/calendar/CalendarHeader.js +8 -13
- package/lib/calendar/CalendarMonth.js +9 -16
- package/lib/calendar/index.css +1 -1
- package/lib/calendar/index.d.ts +3 -0
- package/lib/calendar/index.js +9 -16
- package/lib/calendar/index.less +3 -0
- package/lib/calendar/types.d.ts +2 -1
- package/lib/calendar/types.js +7 -12
- package/lib/calendar/utils.js +8 -13
- package/lib/card/Card.js +8 -13
- package/lib/card/index.js +9 -16
- package/lib/cascader/Cascader.js +8 -13
- package/lib/cascader/index.js +9 -16
- package/lib/cascader/types.d.ts +2 -1
- package/lib/cascader/types.js +7 -12
- package/lib/cell/Cell.js +8 -13
- package/lib/cell/index.js +9 -16
- package/lib/cell-group/CellGroup.js +8 -13
- package/lib/cell-group/index.js +9 -16
- package/lib/checkbox/Checkbox.js +9 -16
- package/lib/checkbox/Checker.d.ts +2 -1
- package/lib/checkbox/Checker.js +8 -13
- package/lib/checkbox/index.js +9 -16
- package/lib/checkbox/types.js +7 -12
- package/lib/checkbox-group/CheckboxGroup.js +8 -13
- package/lib/checkbox-group/index.js +9 -16
- package/lib/checkbox-group/types.js +7 -12
- package/lib/circle/Circle.js +8 -13
- package/lib/circle/index.js +9 -16
- package/lib/col/Col.js +8 -13
- package/lib/col/index.js +9 -16
- package/lib/collapse/Collapse.d.ts +7 -6
- package/lib/collapse/Collapse.js +8 -13
- package/lib/collapse/index.d.ts +3 -3
- package/lib/collapse/index.js +9 -16
- package/lib/collapse-item/CollapseItem.js +8 -13
- package/lib/collapse-item/index.js +9 -16
- package/lib/collapse-item/types.js +7 -12
- package/lib/composables/on-popup-reopen.js +8 -13
- package/lib/composables/use-expose.js +8 -13
- package/lib/composables/use-height.js +8 -13
- package/lib/composables/use-id.js +8 -13
- package/lib/composables/use-lazy-render.js +8 -13
- package/lib/composables/use-lock-scroll.js +8 -13
- package/lib/composables/use-placeholder.js +8 -13
- package/lib/composables/use-refs.js +8 -13
- package/lib/composables/use-route.js +8 -13
- package/lib/composables/use-tab-status.js +8 -13
- package/lib/composables/use-touch.js +9 -14
- package/lib/composables/use-visibility-change.js +8 -13
- package/lib/config-provider/ConfigProvider.d.ts +4 -3
- package/lib/config-provider/ConfigProvider.js +10 -13
- package/lib/config-provider/index.d.ts +2 -2
- package/lib/config-provider/index.js +9 -16
- package/lib/contact-card/ContactCard.js +8 -13
- package/lib/contact-card/index.js +9 -16
- package/lib/contact-edit/ContactEdit.js +8 -13
- package/lib/contact-edit/index.js +9 -16
- package/lib/contact-list/ContactList.d.ts +3 -2
- package/lib/contact-list/ContactList.js +8 -13
- package/lib/contact-list/index.js +9 -16
- package/lib/count-down/CountDown.js +8 -13
- package/lib/count-down/index.js +9 -16
- package/lib/count-down/types.js +7 -12
- package/lib/count-down/utils.js +8 -13
- package/lib/coupon/Coupon.d.ts +2 -1
- package/lib/coupon/Coupon.js +8 -13
- package/lib/coupon/index.js +9 -16
- package/lib/coupon/utils.js +8 -13
- package/lib/coupon-cell/CouponCell.js +8 -13
- package/lib/coupon-cell/index.js +9 -16
- package/lib/coupon-list/CouponList.d.ts +3 -13
- package/lib/coupon-list/CouponList.js +17 -20
- package/lib/coupon-list/index.css +1 -1
- package/lib/coupon-list/index.d.ts +2 -9
- package/lib/coupon-list/index.js +9 -16
- package/lib/coupon-list/index.less +4 -16
- package/lib/coupon-list/style/index.js +1 -0
- package/lib/coupon-list/style/less.js +1 -0
- package/lib/date-picker/DatePicker.js +9 -14
- package/lib/date-picker/index.js +9 -16
- package/lib/date-picker/utils.js +8 -13
- package/lib/dialog/Dialog.js +8 -13
- package/lib/dialog/function-call.js +9 -16
- package/lib/dialog/index.css +1 -1
- package/lib/dialog/index.js +8 -13
- package/lib/dialog/index.less +2 -0
- package/lib/dialog/types.d.ts +2 -2
- package/lib/dialog/types.js +7 -12
- package/lib/divider/Divider.js +8 -13
- package/lib/divider/index.js +9 -16
- package/lib/dropdown-item/DropdownItem.js +8 -13
- package/lib/dropdown-item/index.js +9 -16
- package/lib/dropdown-item/types.d.ts +2 -1
- package/lib/dropdown-item/types.js +7 -12
- package/lib/dropdown-menu/DropdownMenu.js +8 -13
- package/lib/dropdown-menu/index.js +9 -16
- package/lib/dropdown-menu/types.js +7 -12
- package/lib/empty/Empty.d.ts +8 -7
- package/lib/empty/Empty.js +19 -27
- package/lib/empty/Images.d.ts +4 -0
- package/lib/empty/Images.js +290 -0
- package/lib/empty/index.d.ts +2 -2
- package/lib/empty/index.js +9 -16
- package/lib/field/Field.d.ts +4 -0
- package/lib/field/Field.js +15 -15
- package/lib/field/index.d.ts +2 -0
- package/lib/field/index.js +9 -16
- package/lib/field/types.d.ts +1 -1
- package/lib/field/types.js +7 -12
- package/lib/field/utils.js +8 -13
- package/lib/form/Form.d.ts +13 -13
- package/lib/form/Form.js +14 -15
- package/lib/form/index.d.ts +9 -9
- package/lib/form/index.js +9 -16
- package/lib/form/types.d.ts +1 -0
- package/lib/form/types.js +7 -12
- package/lib/grid/Grid.js +8 -13
- package/lib/grid/index.js +9 -16
- package/lib/grid-item/GridItem.js +8 -13
- package/lib/grid-item/index.js +9 -16
- package/lib/icon/Icon.js +8 -13
- package/lib/icon/index.css +1 -1
- package/lib/icon/index.js +9 -16
- package/lib/image/Image.js +8 -13
- package/lib/image/index.js +9 -16
- package/lib/image-preview/ImagePreview.js +9 -16
- package/lib/image-preview/ImagePreviewItem.js +8 -13
- package/lib/image-preview/function-call.js +9 -16
- package/lib/image-preview/index.js +8 -13
- package/lib/image-preview/types.js +7 -12
- package/lib/index-anchor/IndexAnchor.js +8 -13
- package/lib/index-anchor/index.js +9 -16
- package/lib/index-bar/IndexBar.d.ts +5 -4
- package/lib/index-bar/IndexBar.js +33 -17
- package/lib/index-bar/index.d.ts +3 -3
- package/lib/index-bar/index.js +9 -16
- package/lib/index-bar/types.d.ts +2 -1
- package/lib/index-bar/types.js +7 -12
- package/lib/index.css +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +97 -101
- package/lib/index.less +2 -2
- package/lib/lazyload/index.js +8 -13
- package/lib/lazyload/vue-lazyload/index.js +9 -16
- package/lib/lazyload/vue-lazyload/lazy-component.js +8 -13
- package/lib/lazyload/vue-lazyload/lazy-container.js +8 -13
- package/lib/lazyload/vue-lazyload/lazy-image.js +8 -13
- package/lib/lazyload/vue-lazyload/lazy.js +9 -16
- package/lib/lazyload/vue-lazyload/listener.js +8 -13
- package/lib/lazyload/vue-lazyload/util.js +8 -13
- package/lib/list/List.js +8 -13
- package/lib/list/index.js +9 -16
- package/lib/list/types.js +7 -12
- package/lib/loading/Loading.js +11 -14
- package/lib/loading/index.js +9 -16
- package/lib/locale/index.js +9 -16
- package/lib/locale/lang/bn-BD.d.ts +0 -2
- package/lib/locale/lang/bn-BD.js +8 -15
- package/lib/locale/lang/da-DK.d.ts +64 -0
- package/lib/locale/lang/da-DK.js +85 -0
- package/lib/locale/lang/de-DE-formal.d.ts +0 -2
- package/lib/locale/lang/de-DE-formal.js +8 -15
- package/lib/locale/lang/de-DE.d.ts +0 -2
- package/lib/locale/lang/de-DE.js +8 -15
- package/lib/locale/lang/en-US.d.ts +0 -2
- package/lib/locale/lang/en-US.js +8 -15
- package/lib/locale/lang/es-ES.d.ts +0 -2
- package/lib/locale/lang/es-ES.js +8 -15
- package/lib/locale/lang/fr-FR.d.ts +0 -2
- package/lib/locale/lang/fr-FR.js +8 -15
- package/lib/locale/lang/hi-IN.d.ts +0 -2
- package/lib/locale/lang/hi-IN.js +8 -15
- package/lib/locale/lang/id-ID.d.ts +0 -2
- package/lib/locale/lang/id-ID.js +8 -15
- package/lib/locale/lang/is-IS.d.ts +62 -0
- package/lib/locale/lang/is-IS.js +91 -0
- package/lib/locale/lang/it-IT.d.ts +0 -2
- package/lib/locale/lang/it-IT.js +8 -15
- package/lib/locale/lang/ja-JP.d.ts +0 -2
- package/lib/locale/lang/ja-JP.js +8 -15
- package/lib/locale/lang/ko-KR.d.ts +0 -2
- package/lib/locale/lang/ko-KR.js +8 -15
- package/lib/locale/lang/la-LA.d.ts +62 -0
- package/lib/locale/lang/la-LA.js +83 -0
- package/lib/locale/lang/nb-NO.d.ts +0 -2
- package/lib/locale/lang/nb-NO.js +8 -15
- package/lib/locale/lang/pt-BR.d.ts +0 -2
- package/lib/locale/lang/pt-BR.js +8 -15
- package/lib/locale/lang/ro-RO.d.ts +0 -2
- package/lib/locale/lang/ro-RO.js +8 -15
- package/lib/locale/lang/ru-RU.d.ts +0 -2
- package/lib/locale/lang/ru-RU.js +8 -15
- package/lib/locale/lang/sv-SE.d.ts +62 -0
- package/lib/locale/lang/sv-SE.js +83 -0
- package/lib/locale/lang/th-TH.d.ts +0 -2
- package/lib/locale/lang/th-TH.js +8 -15
- package/lib/locale/lang/tr-TR.d.ts +0 -2
- package/lib/locale/lang/tr-TR.js +8 -15
- package/lib/locale/lang/uk-UA.d.ts +0 -2
- package/lib/locale/lang/uk-UA.js +8 -15
- package/lib/locale/lang/vi-VN.d.ts +0 -2
- package/lib/locale/lang/vi-VN.js +8 -15
- package/lib/locale/lang/zh-CN.d.ts +0 -2
- package/lib/locale/lang/zh-CN.js +8 -15
- package/lib/locale/lang/zh-HK.d.ts +0 -2
- package/lib/locale/lang/zh-HK.js +8 -15
- package/lib/locale/lang/zh-TW.d.ts +0 -2
- package/lib/locale/lang/zh-TW.js +8 -15
- package/lib/nav-bar/NavBar.d.ts +1 -1
- package/lib/nav-bar/NavBar.js +11 -16
- package/lib/nav-bar/index.d.ts +1 -1
- package/lib/nav-bar/index.js +9 -16
- package/lib/notice-bar/NoticeBar.js +8 -13
- package/lib/notice-bar/index.js +9 -16
- package/lib/notice-bar/types.js +7 -12
- package/lib/notify/Notify.js +8 -13
- package/lib/notify/function-call.js +9 -16
- package/lib/notify/index.js +8 -13
- package/lib/notify/types.d.ts +2 -1
- package/lib/notify/types.js +7 -12
- package/lib/number-keyboard/NumberKeyboard.js +19 -17
- package/lib/number-keyboard/NumberKeyboardKey.js +8 -13
- package/lib/number-keyboard/index.js +9 -16
- package/lib/overlay/Overlay.js +8 -13
- package/lib/overlay/index.js +9 -16
- package/lib/pagination/Pagination.js +8 -13
- package/lib/pagination/index.js +9 -16
- package/lib/password-input/PasswordInput.js +8 -13
- package/lib/password-input/index.js +9 -16
- package/lib/picker/Picker.d.ts +5 -4
- package/lib/picker/Picker.js +9 -16
- package/lib/picker/PickerColumn.js +8 -13
- package/lib/picker/index.css +1 -1
- package/lib/picker/index.d.ts +3 -3
- package/lib/picker/index.js +9 -16
- package/lib/picker/index.less +1 -0
- package/lib/picker/types.d.ts +4 -3
- package/lib/picker/types.js +7 -12
- package/lib/picker/utils.d.ts +4 -3
- package/lib/picker/utils.js +8 -13
- package/lib/popover/Popover.js +8 -13
- package/lib/popover/index.js +9 -16
- package/lib/popover/types.js +7 -12
- package/lib/popup/Popup.d.ts +4 -0
- package/lib/popup/Popup.js +11 -13
- package/lib/popup/index.css +1 -1
- package/lib/popup/index.d.ts +3 -0
- package/lib/popup/index.js +9 -16
- package/lib/popup/shared.js +8 -13
- package/lib/popup/types.js +7 -12
- package/lib/progress/Progress.d.ts +4 -3
- package/lib/progress/Progress.js +8 -13
- package/lib/progress/index.d.ts +2 -2
- package/lib/progress/index.js +9 -16
- package/lib/progress/types.js +7 -12
- package/lib/pull-refresh/PullRefresh.js +8 -13
- package/lib/pull-refresh/index.js +9 -16
- package/lib/radio/Radio.js +9 -16
- package/lib/radio/index.js +9 -16
- package/lib/radio-group/RadioGroup.js +8 -13
- package/lib/radio-group/index.js +9 -16
- package/lib/rate/Rate.js +39 -22
- package/lib/rate/index.js +9 -16
- package/lib/row/Row.js +8 -13
- package/lib/row/index.js +9 -16
- package/lib/search/Search.d.ts +3 -0
- package/lib/search/Search.js +8 -13
- package/lib/search/index.css +1 -1
- package/lib/search/index.d.ts +2 -0
- package/lib/search/index.js +9 -16
- package/lib/search/index.less +1 -1
- package/lib/search/types.js +7 -12
- package/lib/share-sheet/ShareSheet.js +33 -24
- package/lib/share-sheet/index.css +1 -1
- package/lib/share-sheet/index.js +9 -16
- package/lib/share-sheet/index.less +45 -1
- package/lib/sidebar/Sidebar.js +8 -13
- package/lib/sidebar/index.js +9 -16
- package/lib/sidebar-item/SidebarItem.js +8 -13
- package/lib/sidebar-item/index.js +9 -16
- package/lib/skeleton/Skeleton.d.ts +5 -4
- package/lib/skeleton/Skeleton.js +13 -16
- package/lib/skeleton/index.d.ts +3 -3
- package/lib/skeleton/index.js +9 -16
- package/lib/slider/Slider.js +8 -13
- package/lib/slider/index.css +1 -1
- package/lib/slider/index.js +9 -16
- package/lib/step/Step.js +8 -13
- package/lib/step/index.js +9 -16
- package/lib/stepper/Stepper.js +8 -13
- package/lib/stepper/index.js +9 -16
- package/lib/steps/Steps.js +8 -13
- package/lib/steps/index.js +9 -16
- package/lib/sticky/Sticky.js +8 -13
- package/lib/sticky/index.js +9 -16
- package/lib/style/animation.css +1 -1
- package/lib/style/base.css +1 -1
- package/lib/style/base.less +5 -0
- package/lib/submit-bar/SubmitBar.js +8 -13
- package/lib/submit-bar/index.js +9 -16
- package/lib/swipe/Swipe.js +8 -13
- package/lib/swipe/index.js +9 -16
- package/lib/swipe/types.js +7 -12
- package/lib/swipe-cell/SwipeCell.js +9 -14
- package/lib/swipe-cell/index.css +1 -1
- package/lib/swipe-cell/index.js +9 -16
- package/lib/swipe-cell/types.js +7 -12
- package/lib/swipe-item/SwipeItem.js +8 -13
- package/lib/swipe-item/index.js +9 -16
- package/lib/switch/Switch.js +8 -13
- package/lib/switch/index.js +9 -16
- package/lib/tab/Tab.js +8 -13
- package/lib/tab/index.js +9 -16
- package/lib/tabbar/Tabbar.d.ts +2 -2
- package/lib/tabbar/Tabbar.js +8 -13
- package/lib/tabbar/index.js +9 -16
- package/lib/tabbar-item/TabbarItem.js +8 -13
- package/lib/tabbar-item/index.js +9 -16
- package/lib/tabs/Tabs.d.ts +1 -1
- package/lib/tabs/Tabs.js +10 -16
- package/lib/tabs/TabsContent.js +8 -13
- package/lib/tabs/TabsTitle.js +8 -13
- package/lib/tabs/index.js +9 -16
- package/lib/tabs/types.d.ts +5 -4
- package/lib/tabs/types.js +7 -12
- package/lib/tabs/utils.js +8 -13
- package/lib/tag/Tag.js +8 -13
- package/lib/tag/index.js +9 -16
- package/lib/time-picker/TimePicker.js +8 -13
- package/lib/time-picker/index.js +9 -16
- package/lib/toast/Toast.js +9 -13
- package/lib/toast/function-call.js +9 -16
- package/lib/toast/index.js +8 -13
- package/lib/toast/lock-click.js +8 -13
- package/lib/toast/types.d.ts +3 -2
- package/lib/toast/types.js +7 -12
- package/lib/tree-select/TreeSelect.d.ts +7 -6
- package/lib/tree-select/TreeSelect.js +8 -13
- package/lib/tree-select/index.d.ts +3 -3
- package/lib/tree-select/index.js +9 -16
- package/lib/uploader/Uploader.d.ts +4 -4
- package/lib/uploader/Uploader.js +11 -18
- package/lib/uploader/UploaderPreviewItem.d.ts +3 -3
- package/lib/uploader/UploaderPreviewItem.js +17 -19
- package/lib/uploader/index.d.ts +2 -2
- package/lib/uploader/index.js +9 -16
- package/lib/uploader/types.d.ts +5 -5
- package/lib/uploader/types.js +7 -12
- package/lib/uploader/utils.d.ts +0 -1
- package/lib/uploader/utils.js +10 -17
- package/lib/utils/basic.d.ts +2 -0
- package/lib/utils/basic.js +11 -14
- package/lib/utils/constant.js +8 -13
- package/lib/utils/create.js +9 -16
- package/lib/utils/deep-assign.js +8 -13
- package/lib/utils/deep-clone.js +8 -13
- package/lib/utils/dom.js +8 -13
- package/lib/utils/format.d.ts +7 -6
- package/lib/utils/format.js +14 -13
- package/lib/utils/index.js +17 -21
- package/lib/utils/interceptor.js +8 -13
- package/lib/utils/mount-component.js +8 -13
- package/lib/utils/props.js +8 -13
- package/lib/utils/validate.d.ts +2 -1
- package/lib/utils/validate.js +8 -13
- package/lib/utils/with-install.js +8 -13
- package/lib/vant.cjs.js +538 -284
- package/lib/vant.cjs.min.js +1 -1
- package/lib/vant.es.js +538 -284
- package/lib/vant.es.min.js +538 -284
- package/lib/vant.js +538 -284
- package/lib/vant.min.js +1 -1
- package/package.json +4 -4
- package/vetur/attributes.json +388 -452
- package/vetur/tags.json +108 -106
- package/vetur/web-types.json +2027 -1172
- package/es/empty/Network.d.ts +0 -1
- package/es/empty/Network.js +0 -89
- package/lib/empty/Network.d.ts +0 -1
- package/lib/empty/Network.js +0 -113
package/es/locale/lang/tr-TR.js
CHANGED
@@ -50,10 +50,8 @@ var stdin_default = {
|
|
50
50
|
},
|
51
51
|
vanAddressEdit: {
|
52
52
|
area: "Alan",
|
53
|
-
postal: "Posta",
|
54
53
|
areaEmpty: "L\xFCtfen al\u0131c\u0131 alan\u0131n\u0131 se\xE7in",
|
55
54
|
addressEmpty: "Adres bo\u015F olamaz!",
|
56
|
-
postalEmpty: "Yanl\u0131\u015F posta kodu",
|
57
55
|
addressDetail: "Adres",
|
58
56
|
defaultAddress: "Varsay\u0131lan adres olarak ayarla"
|
59
57
|
},
|
package/es/locale/lang/uk-UA.js
CHANGED
@@ -58,10 +58,8 @@ var stdin_default = {
|
|
58
58
|
},
|
59
59
|
vanAddressEdit: {
|
60
60
|
area: "\u041E\u0431\u043B\u0430\u0441\u0442\u044C",
|
61
|
-
postal: "\u041F\u043E\u0448\u0442\u043E\u0432\u0438\u0439",
|
62
61
|
areaEmpty: "\u0411\u0443\u0434\u044C \u043B\u0430\u0441\u043A\u0430, \u0432\u0438\u0431\u0435\u0440\u0456\u0442\u044C \u0437\u043E\u043D\u0443 \u043F\u0440\u0438\u0439\u043E\u043C\u0443",
|
63
62
|
addressEmpty: "\u0410\u0434\u0440\u0435\u0441\u0430 \u043D\u0435 \u043C\u043E\u0436\u0435 \u0431\u0443\u0442\u0438 \u043F\u043E\u0440\u043E\u0436\u043D\u044C\u043E\u044E",
|
64
|
-
postalEmpty: "\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u043F\u043E\u0448\u0442\u043E\u0432\u0438\u0439 \u0456\u043D\u0434\u0435\u043A\u0441",
|
65
63
|
addressDetail: "\u0410\u0434\u0440\u0435\u0441\u0430",
|
66
64
|
defaultAddress: "\u0412\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u0438 \u044F\u043A \u0430\u0434\u0440\u0435\u0441\u0443 \u0437\u0430 \u0437\u0430\u043C\u043E\u0432\u0447\u0443\u0432\u0430\u043D\u043D\u044F\u043C"
|
67
65
|
},
|
package/es/locale/lang/vi-VN.js
CHANGED
@@ -58,10 +58,8 @@ var stdin_default = {
|
|
58
58
|
},
|
59
59
|
vanAddressEdit: {
|
60
60
|
area: "Khu v\u1EF1c",
|
61
|
-
postal: "B\u01B0u \u0111i\u1EC7n",
|
62
61
|
areaEmpty: "Vui l\xF2ng ch\u1ECDn khu v\u1EF1c nh\u1EADn h\xE0ng",
|
63
62
|
addressEmpty: "\u0110\u1ECBa ch\u1EC9 kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng",
|
64
|
-
postalEmpty: "M\xE3 b\u01B0u ch\xEDnh sai",
|
65
63
|
addressDetail: "\u0110\u1ECBa ch\u1EC9",
|
66
64
|
defaultAddress: "\u0110\u1EB7t l\xE0m \u0111\u1ECBa ch\u1EC9 m\u1EB7c \u0111\u1ECBnh"
|
67
65
|
},
|
package/es/locale/lang/zh-CN.js
CHANGED
@@ -50,10 +50,8 @@ var stdin_default = {
|
|
50
50
|
},
|
51
51
|
vanAddressEdit: {
|
52
52
|
area: "\u5730\u533A",
|
53
|
-
postal: "\u90AE\u653F\u7F16\u7801",
|
54
53
|
areaEmpty: "\u8BF7\u9009\u62E9\u5730\u533A",
|
55
54
|
addressEmpty: "\u8BF7\u586B\u5199\u8BE6\u7EC6\u5730\u5740",
|
56
|
-
postalEmpty: "\u90AE\u653F\u7F16\u7801\u4E0D\u6B63\u786E",
|
57
55
|
addressDetail: "\u8BE6\u7EC6\u5730\u5740",
|
58
56
|
defaultAddress: "\u8BBE\u4E3A\u9ED8\u8BA4\u6536\u8D27\u5730\u5740"
|
59
57
|
},
|
package/es/locale/lang/zh-HK.js
CHANGED
@@ -50,10 +50,8 @@ var stdin_default = {
|
|
50
50
|
},
|
51
51
|
vanAddressEdit: {
|
52
52
|
area: "\u5730\u5340",
|
53
|
-
postal: "\u90F5\u653F\u7DE8\u78BC",
|
54
53
|
areaEmpty: "\u8ACB\u9078\u64C7\u5730\u5340",
|
55
54
|
addressEmpty: "\u8ACB\u586B\u5BEB\u8A73\u7D30\u5730\u5740",
|
56
|
-
postalEmpty: "\u90F5\u653F\u7DE8\u78BC\u4E0D\u6B63\u78BA",
|
57
55
|
addressDetail: "\u8A73\u7D30\u5730\u5740",
|
58
56
|
defaultAddress: "\u8A2D\u70BA\u9ED8\u8A8D\u6536\u8CA8\u5730\u5740"
|
59
57
|
},
|
package/es/locale/lang/zh-TW.js
CHANGED
@@ -50,10 +50,8 @@ var stdin_default = {
|
|
50
50
|
},
|
51
51
|
vanAddressEdit: {
|
52
52
|
area: "\u5730\u5340",
|
53
|
-
postal: "\u90F5\u905E\u5340\u865F",
|
54
53
|
areaEmpty: "\u8ACB\u9078\u64C7\u5730\u5340",
|
55
54
|
addressEmpty: "\u8ACB\u586B\u5BEB\u8A73\u7D30\u5730\u5740",
|
56
|
-
postalEmpty: "\u90F5\u905E\u5340\u865F\u4E0D\u6B63\u78BA",
|
57
55
|
addressDetail: "\u8A73\u7D30\u5730\u5740",
|
58
56
|
defaultAddress: "\u8A2D\u70BA\u9810\u8A2D\u6536\u8CA8\u5730\u5740"
|
59
57
|
},
|
package/es/nav-bar/NavBar.d.ts
CHANGED
package/es/nav-bar/NavBar.js
CHANGED
@@ -60,10 +60,10 @@ var stdin_default = defineComponent({
|
|
60
60
|
"ref": navBarRef,
|
61
61
|
"style": style,
|
62
62
|
"class": [bem({
|
63
|
-
fixed
|
64
|
-
"safe-area-inset-top": props.safeAreaInsetTop
|
63
|
+
fixed
|
65
64
|
}), {
|
66
|
-
[BORDER_BOTTOM]: border
|
65
|
+
[BORDER_BOTTOM]: border,
|
66
|
+
"van-safe-area-top": props.safeAreaInsetTop
|
67
67
|
}]
|
68
68
|
}, [_createVNode("div", {
|
69
69
|
"class": bem("content")
|
package/es/nav-bar/index.d.ts
CHANGED
@@ -31,8 +31,8 @@ export declare const NavBar: import("../utils").WithInstall<import("vue").Define
|
|
31
31
|
fixed: boolean;
|
32
32
|
border: boolean;
|
33
33
|
placeholder: boolean;
|
34
|
-
leftArrow: boolean;
|
35
34
|
safeAreaInsetTop: boolean;
|
35
|
+
leftArrow: boolean;
|
36
36
|
}>>;
|
37
37
|
export default NavBar;
|
38
38
|
export type { NavBarProps } from './NavBar';
|
package/es/notify/types.d.ts
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
import { Notify } from './function-call';
|
2
|
-
|
2
|
+
import type { Numeric } from '../utils';
|
3
|
+
export declare type NotifyMessage = Numeric;
|
3
4
|
export declare type NotifyType = 'primary' | 'success' | 'danger' | 'warning';
|
4
5
|
export declare type NotifyPosition = 'top' | 'bottom';
|
5
6
|
export declare type NotifyOptions = {
|
@@ -26,6 +26,15 @@ const numberKeyboardProps = {
|
|
26
26
|
default: ""
|
27
27
|
}
|
28
28
|
};
|
29
|
+
function shuffle(array) {
|
30
|
+
for (let i = array.length - 1; i > 0; i--) {
|
31
|
+
const j = Math.floor(Math.random() * (i + 1));
|
32
|
+
const temp = array[i];
|
33
|
+
array[i] = array[j];
|
34
|
+
array[j] = temp;
|
35
|
+
}
|
36
|
+
return array;
|
37
|
+
}
|
29
38
|
var stdin_default = defineComponent({
|
30
39
|
name,
|
31
40
|
props: numberKeyboardProps,
|
@@ -40,7 +49,7 @@ var stdin_default = defineComponent({
|
|
40
49
|
text: i + 1
|
41
50
|
}));
|
42
51
|
if (props.randomKeyOrder) {
|
43
|
-
keys2
|
52
|
+
shuffle(keys2);
|
44
53
|
}
|
45
54
|
return keys2;
|
46
55
|
};
|
package/es/picker/Picker.d.ts
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
import { type PropType, type ExtractPropTypes } from 'vue';
|
2
|
+
import { type Numeric } from '../utils';
|
2
3
|
import type { PickerColumn, PickerOption, PickerFieldNames, PickerToolbarPosition } from './types';
|
3
4
|
export declare const pickerSharedProps: {
|
4
5
|
title: StringConstructor;
|
@@ -53,7 +54,7 @@ declare const pickerProps: {
|
|
53
54
|
default: () => never[];
|
54
55
|
};
|
55
56
|
modelValue: {
|
56
|
-
type: PropType<
|
57
|
+
type: PropType<Numeric[]>;
|
57
58
|
default: () => never[];
|
58
59
|
};
|
59
60
|
toolbarPosition: {
|
@@ -92,7 +93,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
92
93
|
default: () => never[];
|
93
94
|
};
|
94
95
|
modelValue: {
|
95
|
-
type: PropType<
|
96
|
+
type: PropType<Numeric[]>;
|
96
97
|
default: () => never[];
|
97
98
|
};
|
98
99
|
toolbarPosition: {
|
@@ -129,7 +130,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
129
130
|
default: () => never[];
|
130
131
|
};
|
131
132
|
modelValue: {
|
132
|
-
type: PropType<
|
133
|
+
type: PropType<Numeric[]>;
|
133
134
|
default: () => never[];
|
134
135
|
};
|
135
136
|
toolbarPosition: {
|
@@ -143,7 +144,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
143
144
|
onCancel?: ((...args: any[]) => any) | undefined;
|
144
145
|
onConfirm?: ((...args: any[]) => any) | undefined;
|
145
146
|
}, {
|
146
|
-
modelValue:
|
147
|
+
modelValue: Numeric[];
|
147
148
|
readonly: boolean;
|
148
149
|
loading: boolean;
|
149
150
|
allowHtml: boolean;
|
package/es/picker/index.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
body{--van-picker-background: var(--van-background-2);--van-picker-toolbar-height: 44px;--van-picker-title-font-size: var(--van-font-size-lg);--van-picker-title-line-height: var(--van-line-height-md);--van-picker-action-padding: 0 var(--van-padding-md);--van-picker-action-font-size: var(--van-font-size-md);--van-picker-confirm-action-color: var(--van-link-color);--van-picker-cancel-action-color: var(--van-text-color-2);--van-picker-option-font-size: var(--van-font-size-lg);--van-picker-option-padding: 0 var(--van-padding-base);--van-picker-option-text-color: var(--van-text-color);--van-picker-option-disabled-opacity: .3;--van-picker-loading-icon-color: var(--van-primary-color);--van-picker-loading-mask-color: rgba(255, 255, 255, .9);--van-picker-mask-color: linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .4)), linear-gradient(0deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .4))}.van-theme-dark{--van-picker-mask-color: linear-gradient(180deg, rgba(0, 0, 0, .6), rgba(0, 0, 0, .1)), linear-gradient(0deg, rgba(0, 0, 0, .6), rgba(0, 0, 0, .1))}.van-picker{position:relative;background:var(--van-picker-background);-webkit-user-select:none;user-select:none}.van-picker__toolbar{display:flex;align-items:center;justify-content:space-between;height:var(--van-picker-toolbar-height)}.van-picker__cancel,.van-picker__confirm{height:100%;padding:var(--van-picker-action-padding);font-size:var(--van-picker-action-font-size);background-color:transparent;border:none}.van-picker__confirm{color:var(--van-picker-confirm-action-color)}.van-picker__cancel{color:var(--van-picker-cancel-action-color)}.van-picker__title{max-width:50%;font-weight:var(--van-font-bold);font-size:var(--van-picker-title-font-size);line-height:var(--van-picker-title-line-height);text-align:center}.van-picker__columns{position:relative;display:flex;cursor:-webkit-grab;cursor:grab}.van-picker__loading{position:absolute;top:0;right:0;bottom:0;left:0;z-index:3;display:flex;align-items:center;justify-content:center;color:var(--van-picker-loading-icon-color);background:var(--van-picker-loading-mask-color)}.van-picker__frame{position:absolute;top:50%;right:var(--van-padding-md);left:var(--van-padding-md);z-index:2;transform:translateY(-50%);pointer-events:none}.van-picker__mask{position:absolute;top:0;left:0;z-index:1;width:100%;height:100%;background-image:var(--van-picker-mask-color);background-repeat:no-repeat;background-position:top,bottom;transform:translateZ(0);pointer-events:none}.van-picker-column{flex:1;overflow:hidden;font-size:var(--van-picker-option-font-size)}.van-picker-column__wrapper{transition-timing-function:cubic-bezier(.23,1,.68,1)}.van-picker-column__item{display:flex;align-items:center;justify-content:center;padding:var(--van-picker-option-padding);color:var(--van-picker-option-text-color)}.van-picker-column__item--disabled{cursor:not-allowed;opacity:var(--van-picker-option-disabled-opacity)}
|
1
|
+
body{--van-picker-background: var(--van-background-2);--van-picker-toolbar-height: 44px;--van-picker-title-font-size: var(--van-font-size-lg);--van-picker-title-line-height: var(--van-line-height-md);--van-picker-action-padding: 0 var(--van-padding-md);--van-picker-action-font-size: var(--van-font-size-md);--van-picker-confirm-action-color: var(--van-link-color);--van-picker-cancel-action-color: var(--van-text-color-2);--van-picker-option-font-size: var(--van-font-size-lg);--van-picker-option-padding: 0 var(--van-padding-base);--van-picker-option-text-color: var(--van-text-color);--van-picker-option-disabled-opacity: .3;--van-picker-loading-icon-color: var(--van-primary-color);--van-picker-loading-mask-color: rgba(255, 255, 255, .9);--van-picker-mask-color: linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .4)), linear-gradient(0deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .4))}.van-theme-dark{--van-picker-mask-color: linear-gradient(180deg, rgba(0, 0, 0, .6), rgba(0, 0, 0, .1)), linear-gradient(0deg, rgba(0, 0, 0, .6), rgba(0, 0, 0, .1))}.van-picker{position:relative;background:var(--van-picker-background);-webkit-user-select:none;user-select:none}.van-picker__toolbar{display:flex;align-items:center;justify-content:space-between;height:var(--van-picker-toolbar-height)}.van-picker__cancel,.van-picker__confirm{height:100%;padding:var(--van-picker-action-padding);font-size:var(--van-picker-action-font-size);background-color:transparent;border:none}.van-picker__confirm{color:var(--van-picker-confirm-action-color)}.van-picker__cancel{color:var(--van-picker-cancel-action-color)}.van-picker__title{color:var(--van-text-color);max-width:50%;font-weight:var(--van-font-bold);font-size:var(--van-picker-title-font-size);line-height:var(--van-picker-title-line-height);text-align:center}.van-picker__columns{position:relative;display:flex;cursor:-webkit-grab;cursor:grab}.van-picker__loading{position:absolute;top:0;right:0;bottom:0;left:0;z-index:3;display:flex;align-items:center;justify-content:center;color:var(--van-picker-loading-icon-color);background:var(--van-picker-loading-mask-color)}.van-picker__frame{position:absolute;top:50%;right:var(--van-padding-md);left:var(--van-padding-md);z-index:2;transform:translateY(-50%);pointer-events:none}.van-picker__mask{position:absolute;top:0;left:0;z-index:1;width:100%;height:100%;background-image:var(--van-picker-mask-color);background-repeat:no-repeat;background-position:top,bottom;transform:translateZ(0);pointer-events:none}.van-picker-column{flex:1;overflow:hidden;font-size:var(--van-picker-option-font-size)}.van-picker-column__wrapper{transition-timing-function:cubic-bezier(.23,1,.68,1)}.van-picker-column__item{display:flex;align-items:center;justify-content:center;padding:var(--van-picker-option-padding);color:var(--van-picker-option-text-color)}.van-picker-column__item--disabled{cursor:not-allowed;opacity:var(--van-picker-option-disabled-opacity)}
|
package/es/picker/index.d.ts
CHANGED
@@ -28,7 +28,7 @@ export declare const Picker: import("../utils").WithInstall<import("vue").Define
|
|
28
28
|
default: () => never[];
|
29
29
|
};
|
30
30
|
modelValue: {
|
31
|
-
type: import("vue").PropType<(
|
31
|
+
type: import("vue").PropType<import("../utils").Numeric[]>;
|
32
32
|
default: () => never[];
|
33
33
|
};
|
34
34
|
toolbarPosition: {
|
@@ -65,7 +65,7 @@ export declare const Picker: import("../utils").WithInstall<import("vue").Define
|
|
65
65
|
default: () => never[];
|
66
66
|
};
|
67
67
|
modelValue: {
|
68
|
-
type: import("vue").PropType<(
|
68
|
+
type: import("vue").PropType<import("../utils").Numeric[]>;
|
69
69
|
default: () => never[];
|
70
70
|
};
|
71
71
|
toolbarPosition: {
|
@@ -79,7 +79,7 @@ export declare const Picker: import("../utils").WithInstall<import("vue").Define
|
|
79
79
|
onCancel?: ((...args: any[]) => any) | undefined;
|
80
80
|
onConfirm?: ((...args: any[]) => any) | undefined;
|
81
81
|
}, {
|
82
|
-
modelValue: (
|
82
|
+
modelValue: import("../utils").Numeric[];
|
83
83
|
readonly: boolean;
|
84
84
|
loading: boolean;
|
85
85
|
allowHtml: boolean;
|
package/es/picker/index.less
CHANGED
package/es/picker/types.d.ts
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
import type { ComponentPublicInstance } from 'vue';
|
2
|
+
import type { Numeric } from '../utils';
|
2
3
|
import type { PickerProps } from './Picker';
|
3
4
|
export declare type PickerToolbarPosition = 'top' | 'bottom';
|
4
5
|
export declare type PickerFieldNames = {
|
@@ -7,8 +8,8 @@ export declare type PickerFieldNames = {
|
|
7
8
|
children?: string;
|
8
9
|
};
|
9
10
|
export declare type PickerOption = {
|
10
|
-
text?:
|
11
|
-
value?:
|
11
|
+
text?: Numeric;
|
12
|
+
value?: Numeric;
|
12
13
|
disabled?: boolean;
|
13
14
|
children?: PickerColumn;
|
14
15
|
className?: unknown;
|
@@ -34,7 +35,7 @@ export declare type PickerColumnProvide = {
|
|
34
35
|
};
|
35
36
|
export declare type PickerInstance = ComponentPublicInstance<PickerProps, PickerExpose>;
|
36
37
|
export declare type PickerConfirmEventParams = {
|
37
|
-
selectedValues:
|
38
|
+
selectedValues: Numeric[];
|
38
39
|
selectedOptions: Array<PickerOption | undefined>;
|
39
40
|
};
|
40
41
|
export declare type PickerCancelEventParams = PickerConfirmEventParams;
|
package/es/picker/utils.d.ts
CHANGED
@@ -1,10 +1,11 @@
|
|
1
|
+
import { type Numeric } from '../utils';
|
1
2
|
import type { Ref } from 'vue';
|
2
3
|
import type { PickerOption, PickerColumn, PickerFieldNames } from './types';
|
3
4
|
export declare const getFirstEnabledOption: (options: PickerOption[]) => PickerOption | undefined;
|
4
5
|
export declare function getColumnsType(columns: PickerColumn | PickerColumn[], fields: Required<PickerFieldNames>): "default" | "multiple" | "cascade";
|
5
6
|
export declare function findIndexOfEnabledOption(options: PickerOption[], index: number): number;
|
6
|
-
export declare const isOptionExist: (options: PickerOption[], value:
|
7
|
-
export declare function findOptionByValue(options: PickerOption[], value:
|
8
|
-
export declare function formatCascadeColumns(columns: PickerColumn | PickerColumn[], fields: Required<PickerFieldNames>, selectedValues: Ref<
|
7
|
+
export declare const isOptionExist: (options: PickerOption[], value: Numeric | undefined, fields: Required<PickerFieldNames>) => boolean;
|
8
|
+
export declare function findOptionByValue(options: PickerOption[], value: Numeric, fields: Required<PickerFieldNames>): PickerOption | undefined;
|
9
|
+
export declare function formatCascadeColumns(columns: PickerColumn | PickerColumn[], fields: Required<PickerFieldNames>, selectedValues: Ref<Numeric[]>): PickerColumn[];
|
9
10
|
export declare function getElementTranslateY(element: Element): number;
|
10
11
|
export declare function assignDefaultFields(fields: PickerFieldNames | undefined): Required<PickerFieldNames>;
|
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,6 +90,7 @@ 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
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;
|
@@ -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;
|
@@ -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");
|
@@ -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
|
-
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:
|
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:translate3d(-50%,-50%,0)}.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:translate3d(0,-50%,0)}.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:translate3d(0,-50%,0)}.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:translate3d(0,-100%,0)}.van-popup-slide-right-enter-from,.van-popup-slide-right-leave-active{transform:translate3d(100%,-50%,0)}.van-popup-slide-bottom-enter-from,.van-popup-slide-bottom-leave-active{transform:translate3d(0,100%,0)}.van-popup-slide-left-enter-from,.van-popup-slide-left-leave-active{transform:translate3d(-100%,-50%,0)}.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,6 +41,7 @@ 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
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;
|
@@ -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;
|
@@ -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';
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { type ExtractPropTypes } from 'vue';
|
2
|
+
import { type Numeric } from '../utils';
|
2
3
|
declare const progressProps: {
|
3
4
|
color: StringConstructor;
|
4
5
|
inactive: BooleanConstructor;
|
@@ -14,7 +15,7 @@ declare const progressProps: {
|
|
14
15
|
percentage: {
|
15
16
|
type: (NumberConstructor | StringConstructor)[];
|
16
17
|
default: number;
|
17
|
-
validator: (value:
|
18
|
+
validator: (value: Numeric) => boolean;
|
18
19
|
};
|
19
20
|
};
|
20
21
|
export declare type ProgressProps = ExtractPropTypes<typeof progressProps>;
|
@@ -33,7 +34,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
33
34
|
percentage: {
|
34
35
|
type: (NumberConstructor | StringConstructor)[];
|
35
36
|
default: number;
|
36
|
-
validator: (value:
|
37
|
+
validator: (value: Numeric) => boolean;
|
37
38
|
};
|
38
39
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
39
40
|
color: StringConstructor;
|
@@ -50,7 +51,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
50
51
|
percentage: {
|
51
52
|
type: (NumberConstructor | StringConstructor)[];
|
52
53
|
default: number;
|
53
|
-
validator: (value:
|
54
|
+
validator: (value: Numeric) => boolean;
|
54
55
|
};
|
55
56
|
}>>, {
|
56
57
|
inactive: boolean;
|
package/es/progress/index.d.ts
CHANGED
@@ -14,7 +14,7 @@ export declare const Progress: import("../utils").WithInstall<import("vue").Defi
|
|
14
14
|
percentage: {
|
15
15
|
type: (NumberConstructor | StringConstructor)[];
|
16
16
|
default: number;
|
17
|
-
validator: (value:
|
17
|
+
validator: (value: import("../utils").Numeric) => boolean;
|
18
18
|
};
|
19
19
|
}, () => 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<{
|
20
20
|
color: StringConstructor;
|
@@ -31,7 +31,7 @@ export declare const Progress: import("../utils").WithInstall<import("vue").Defi
|
|
31
31
|
percentage: {
|
32
32
|
type: (NumberConstructor | StringConstructor)[];
|
33
33
|
default: number;
|
34
|
-
validator: (value:
|
34
|
+
validator: (value: import("../utils").Numeric) => boolean;
|
35
35
|
};
|
36
36
|
}>>, {
|
37
37
|
inactive: boolean;
|
package/es/rate/Rate.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { createVNode as _createVNode } from "vue";
|
2
|
-
import { computed, defineComponent } from "vue";
|
2
|
+
import { computed, defineComponent, ref } from "vue";
|
3
3
|
import { addUnit, truthProp, numericProp, preventDefault, makeStringProp, makeNumberProp, makeNumericProp, createNamespace } from "../utils";
|
4
4
|
import { useRect, useCustomFieldValue } from "@vant/use";
|
5
5
|
import { useRefs } from "../composables/use-refs";
|
@@ -56,33 +56,53 @@ var stdin_default = defineComponent({
|
|
56
56
|
}) {
|
57
57
|
const touch = useTouch();
|
58
58
|
const [itemRefs, setItemRefs] = useRefs();
|
59
|
+
const groupRef = ref();
|
59
60
|
const untouchable = () => props.readonly || props.disabled || !props.touchable;
|
60
61
|
const list = computed(() => Array(+props.count).fill("").map((_, i) => getRateStatus(props.modelValue, i + 1, props.allowHalf, props.readonly)));
|
61
62
|
let ranges;
|
63
|
+
let groupRefRect;
|
64
|
+
let minRectTop = Number.MAX_SAFE_INTEGER;
|
65
|
+
let maxRectTop = Number.MIN_SAFE_INTEGER;
|
62
66
|
const updateRanges = () => {
|
67
|
+
groupRefRect = useRect(groupRef);
|
63
68
|
const rects = itemRefs.value.map(useRect);
|
64
69
|
ranges = [];
|
65
70
|
rects.forEach((rect, index) => {
|
71
|
+
minRectTop = Math.min(rect.top, minRectTop);
|
72
|
+
maxRectTop = Math.max(rect.top, maxRectTop);
|
66
73
|
if (props.allowHalf) {
|
67
74
|
ranges.push({
|
68
75
|
score: index + 0.5,
|
69
|
-
left: rect.left
|
76
|
+
left: rect.left,
|
77
|
+
top: rect.top,
|
78
|
+
height: rect.height
|
70
79
|
}, {
|
71
80
|
score: index + 1,
|
72
|
-
left: rect.left + rect.width / 2
|
81
|
+
left: rect.left + rect.width / 2,
|
82
|
+
top: rect.top,
|
83
|
+
height: rect.height
|
73
84
|
});
|
74
85
|
} else {
|
75
86
|
ranges.push({
|
76
87
|
score: index + 1,
|
77
|
-
left: rect.left
|
88
|
+
left: rect.left,
|
89
|
+
top: rect.top,
|
90
|
+
height: rect.height
|
78
91
|
});
|
79
92
|
}
|
80
93
|
});
|
81
94
|
};
|
82
|
-
const getScoreByPosition = (x) => {
|
95
|
+
const getScoreByPosition = (x, y) => {
|
83
96
|
for (let i = ranges.length - 1; i > 0; i--) {
|
84
|
-
if (
|
85
|
-
|
97
|
+
if (y >= groupRefRect.top && y <= groupRefRect.bottom) {
|
98
|
+
if (x > ranges[i].left && y >= ranges[i].top && y <= ranges[i].top + ranges[i].height) {
|
99
|
+
return ranges[i].score;
|
100
|
+
}
|
101
|
+
} else {
|
102
|
+
const curTop = y < groupRefRect.top ? minRectTop : maxRectTop;
|
103
|
+
if (x > ranges[i].left && ranges[i].top === curTop) {
|
104
|
+
return ranges[i].score;
|
105
|
+
}
|
86
106
|
}
|
87
107
|
}
|
88
108
|
return props.allowHalf ? 0.5 : 1;
|
@@ -107,10 +127,11 @@ var stdin_default = defineComponent({
|
|
107
127
|
touch.move(event);
|
108
128
|
if (touch.isHorizontal()) {
|
109
129
|
const {
|
110
|
-
clientX
|
130
|
+
clientX,
|
131
|
+
clientY
|
111
132
|
} = event.touches[0];
|
112
133
|
preventDefault(event);
|
113
|
-
select(getScoreByPosition(clientX));
|
134
|
+
select(getScoreByPosition(clientX, clientY));
|
114
135
|
}
|
115
136
|
};
|
116
137
|
const renderStar = (item, index) => {
|
@@ -139,7 +160,7 @@ var stdin_default = defineComponent({
|
|
139
160
|
}
|
140
161
|
const onClickItem = (event) => {
|
141
162
|
updateRanges();
|
142
|
-
select(allowHalf ? getScoreByPosition(event.clientX) : score);
|
163
|
+
select(allowHalf ? getScoreByPosition(event.clientX, event.clientY) : score);
|
143
164
|
};
|
144
165
|
return _createVNode("div", {
|
145
166
|
"key": index,
|
@@ -177,6 +198,7 @@ var stdin_default = defineComponent({
|
|
177
198
|
};
|
178
199
|
useCustomFieldValue(() => props.modelValue);
|
179
200
|
return () => _createVNode("div", {
|
201
|
+
"ref": groupRef,
|
180
202
|
"role": "radiogroup",
|
181
203
|
"class": bem({
|
182
204
|
readonly: props.readonly,
|
package/es/search/Search.d.ts
CHANGED
@@ -21,6 +21,7 @@ declare const searchProps: {
|
|
21
21
|
placeholder: StringConstructor;
|
22
22
|
autocomplete: StringConstructor;
|
23
23
|
errorMessage: StringConstructor;
|
24
|
+
enterkeyhint: StringConstructor;
|
24
25
|
clearTrigger: {
|
25
26
|
type: import("vue").PropType<import("../field").FieldClearTrigger>;
|
26
27
|
default: import("../field").FieldClearTrigger;
|
@@ -81,6 +82,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
81
82
|
placeholder: StringConstructor;
|
82
83
|
autocomplete: StringConstructor;
|
83
84
|
errorMessage: StringConstructor;
|
85
|
+
enterkeyhint: StringConstructor;
|
84
86
|
clearTrigger: {
|
85
87
|
type: import("vue").PropType<import("../field").FieldClearTrigger>;
|
86
88
|
default: import("../field").FieldClearTrigger;
|
@@ -139,6 +141,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
139
141
|
placeholder: StringConstructor;
|
140
142
|
autocomplete: StringConstructor;
|
141
143
|
errorMessage: StringConstructor;
|
144
|
+
enterkeyhint: StringConstructor;
|
142
145
|
clearTrigger: {
|
143
146
|
type: import("vue").PropType<import("../field").FieldClearTrigger>;
|
144
147
|
default: import("../field").FieldClearTrigger;
|
package/es/search/index.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
body{--van-search-padding: 10px var(--van-padding-sm);--van-search-background: var(--van-background-2);--van-search-content-background: var(--van-
|
1
|
+
body{--van-search-padding: 10px var(--van-padding-sm);--van-search-background: var(--van-background-2);--van-search-content-background: var(--van-background);--van-search-input-height: 34px;--van-search-label-padding: 0 5px;--van-search-label-color: var(--van-text-color);--van-search-label-font-size: var(--van-font-size-md);--van-search-left-icon-color: var(--van-gray-6);--van-search-action-padding: 0 var(--van-padding-xs);--van-search-action-text-color: var(--van-text-color);--van-search-action-font-size: var(--van-font-size-md)}.van-search{display:flex;align-items:center;box-sizing:border-box;padding:var(--van-search-padding);background:var(--van-search-background)}.van-search__content{display:flex;flex:1;padding-left:var(--van-padding-sm);background:var(--van-search-content-background);border-radius:var(--van-radius-sm)}.van-search__content--round{border-radius:var(--van-radius-max)}.van-search__label{padding:var(--van-search-label-padding);color:var(--van-search-label-color);font-size:var(--van-search-label-font-size);line-height:var(--van-search-input-height)}.van-search__field{flex:1;padding:5px var(--van-padding-xs) 5px 0;background-color:transparent}.van-search__field .van-field__left-icon{color:var(--van-search-left-icon-color)}.van-search--show-action{padding-right:0}.van-search input::-webkit-search-decoration,.van-search input::-webkit-search-cancel-button,.van-search input::-webkit-search-results-button,.van-search input::-webkit-search-results-decoration{display:none}.van-search__action{padding:var(--van-search-action-padding);color:var(--van-search-action-text-color);font-size:var(--van-search-action-font-size);line-height:var(--van-search-input-height);cursor:pointer;-webkit-user-select:none;user-select:none}.van-search__action:active{background-color:var(--van-active-color)}
|