vant 3.2.0 → 3.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/changelog.generated.md +128 -61
- package/es/action-bar/ActionBar.d.ts +1 -1
- package/es/action-bar/index.d.ts +2 -3
- package/es/action-bar/index.js +2 -3
- package/es/action-bar-button/ActionBarButton.d.ts +1 -1
- package/es/action-bar-button/index.d.ts +2 -3
- package/es/action-bar-button/index.js +2 -3
- package/es/action-bar-icon/ActionBarIcon.d.ts +1 -1
- package/es/action-bar-icon/index.d.ts +2 -3
- package/es/action-bar-icon/index.js +2 -3
- package/es/action-sheet/ActionSheet.d.ts +1 -1
- package/es/action-sheet/index.d.ts +2 -3
- package/es/action-sheet/index.js +2 -3
- package/es/address-edit/AddressEdit.js +3 -3
- package/es/address-edit/AddressEditDetail.js +3 -19
- package/es/address-edit/index.css +1 -1
- package/es/address-edit/index.d.ts +3 -2
- package/es/address-edit/index.js +2 -3
- package/es/address-edit/index.less +0 -7
- package/es/address-edit/var.less +0 -2
- package/es/address-list/index.d.ts +1 -2
- package/es/address-list/index.js +2 -3
- package/es/area/Area.d.ts +1 -1
- package/es/area/Area.js +5 -2
- package/es/area/index.d.ts +4 -3
- package/es/area/index.js +2 -3
- package/es/badge/Badge.d.ts +2 -2
- package/es/badge/index.d.ts +3 -4
- package/es/badge/index.js +2 -3
- package/es/button/Button.d.ts +2 -2
- package/es/button/index.css +1 -1
- package/es/button/index.d.ts +3 -4
- package/es/button/index.js +2 -3
- package/es/button/index.less +7 -7
- package/es/calendar/Calendar.d.ts +3 -4
- package/es/calendar/Calendar.js +62 -56
- package/es/calendar/CalendarMonth.d.ts +29 -3
- package/es/calendar/CalendarMonth.js +34 -28
- package/es/calendar/index.d.ts +5 -5
- package/es/calendar/index.js +2 -3
- package/es/calendar/types.d.ts +10 -1
- package/es/card/index.d.ts +1 -2
- package/es/card/index.js +2 -3
- package/es/cascader/Cascader.d.ts +1 -1
- package/es/cascader/index.d.ts +2 -3
- package/es/cascader/index.js +2 -3
- package/es/cell/Cell.d.ts +2 -2
- package/es/cell/index.d.ts +3 -4
- package/es/cell/index.js +2 -3
- package/es/cell-group/CellGroup.d.ts +1 -1
- package/es/cell-group/index.d.ts +2 -3
- package/es/cell-group/index.js +2 -3
- package/es/checkbox/Checkbox.d.ts +2 -2
- package/es/checkbox/Checker.d.ts +4 -4
- package/es/checkbox/Checker.js +1 -1
- package/es/checkbox/index.d.ts +5 -4
- package/es/checkbox/index.js +2 -3
- package/es/checkbox-group/index.d.ts +3 -2
- package/es/checkbox-group/index.js +2 -3
- package/es/circle/Circle.d.ts +8 -0
- package/es/circle/Circle.js +21 -1
- package/es/circle/index.d.ts +9 -2
- package/es/circle/index.js +2 -3
- package/es/col/Col.d.ts +1 -1
- package/es/col/index.d.ts +2 -3
- package/es/col/index.js +2 -3
- package/es/collapse/index.d.ts +1 -2
- package/es/collapse/index.js +2 -3
- package/es/collapse-item/CollapseItem.d.ts +4 -4
- package/es/collapse-item/CollapseItem.js +4 -2
- package/es/collapse-item/index.d.ts +7 -6
- package/es/collapse-item/index.js +2 -3
- package/es/composables/use-height.js +3 -5
- package/es/composables/use-lock-scroll.js +2 -10
- package/es/config-provider/ConfigProvider.d.ts +2 -2
- package/es/config-provider/index.d.ts +3 -4
- package/es/config-provider/index.js +2 -3
- package/es/contact-card/index.d.ts +1 -2
- package/es/contact-card/index.js +2 -3
- package/es/contact-edit/ContactEdit.js +6 -8
- package/es/contact-edit/index.d.ts +1 -2
- package/es/contact-edit/index.js +2 -3
- package/es/contact-list/index.d.ts +1 -2
- package/es/contact-list/index.js +2 -3
- package/es/count-down/CountDown.d.ts +2 -10
- package/es/count-down/index.d.ts +4 -3
- package/es/count-down/index.js +2 -3
- package/es/count-down/types.d.ts +11 -0
- package/es/count-down/types.js +1 -0
- package/es/coupon/Coupon.d.ts +1 -1
- package/es/coupon/index.d.ts +2 -3
- package/es/coupon/index.js +2 -3
- package/es/coupon-cell/CouponCell.d.ts +1 -1
- package/es/coupon-cell/CouponCell.js +1 -1
- package/es/coupon-cell/index.d.ts +2 -3
- package/es/coupon-cell/index.js +2 -3
- package/es/coupon-list/CouponList.js +5 -12
- package/es/coupon-list/index.css +1 -1
- package/es/coupon-list/index.d.ts +1 -2
- package/es/coupon-list/index.js +2 -3
- package/es/coupon-list/index.less +6 -1
- package/es/datetime-picker/DatePicker.d.ts +1 -1
- package/es/datetime-picker/DatePicker.js +4 -3
- package/es/datetime-picker/DatetimePicker.d.ts +3 -2
- package/es/datetime-picker/DatetimePicker.js +1 -1
- package/es/datetime-picker/TimePicker.d.ts +1 -1
- package/es/datetime-picker/TimePicker.js +3 -1
- package/es/datetime-picker/index.d.ts +6 -4
- package/es/datetime-picker/index.js +2 -3
- package/es/dialog/Dialog.d.ts +3 -6
- package/es/dialog/Dialog.js +2 -1
- package/es/dialog/function-call.d.ts +15 -40
- package/es/dialog/function-call.js +3 -2
- package/es/dialog/index.d.ts +2 -3
- package/es/dialog/types.d.ts +36 -0
- package/es/dialog/types.js +1 -0
- package/es/divider/Divider.d.ts +1 -1
- package/es/divider/index.d.ts +2 -3
- package/es/divider/index.js +2 -3
- package/es/dropdown-item/DropdownItem.d.ts +1 -1
- package/es/dropdown-item/index.d.ts +4 -3
- package/es/dropdown-item/index.js +2 -3
- package/es/dropdown-menu/DropdownMenu.d.ts +1 -1
- package/es/dropdown-menu/index.d.ts +4 -3
- package/es/dropdown-menu/index.js +2 -3
- package/es/empty/Empty.d.ts +1 -1
- package/es/empty/index.d.ts +2 -3
- package/es/empty/index.js +2 -3
- package/es/field/Field.d.ts +19 -12
- package/es/field/Field.js +8 -3
- package/es/field/index.css +1 -1
- package/es/field/index.d.ts +17 -13
- package/es/field/index.js +2 -3
- package/es/field/index.less +5 -3
- package/es/field/var.less +1 -1
- package/es/form/index.d.ts +3 -2
- package/es/form/index.js +2 -3
- package/es/grid/Grid.d.ts +3 -3
- package/es/grid/index.d.ts +4 -5
- package/es/grid/index.js +2 -3
- package/es/grid-item/GridItem.d.ts +1 -1
- package/es/grid-item/index.d.ts +2 -3
- package/es/grid-item/index.js +2 -3
- package/es/icon/Icon.d.ts +1 -1
- package/es/icon/index.css +1 -1
- package/es/icon/index.d.ts +2 -3
- package/es/icon/index.js +2 -3
- package/es/icon/index.less +1 -1
- package/es/image/Image.d.ts +5 -5
- package/es/image/Image.js +1 -2
- package/es/image/index.d.ts +6 -7
- package/es/image/index.js +2 -3
- package/es/image-preview/ImagePreview.d.ts +4 -4
- package/es/image-preview/ImagePreviewItem.d.ts +1 -1
- package/es/image-preview/function-call.d.ts +5 -5
- package/es/image-preview/function-call.js +5 -5
- package/es/image-preview/index.d.ts +2 -0
- package/es/index-anchor/IndexAnchor.d.ts +1 -1
- package/es/index-anchor/index.d.ts +2 -3
- package/es/index-anchor/index.js +2 -3
- package/es/index-bar/index.d.ts +3 -2
- package/es/index-bar/index.js +2 -3
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/list/index.d.ts +3 -2
- package/es/list/index.js +2 -3
- package/es/loading/Loading.d.ts +1 -1
- package/es/loading/index.d.ts +2 -3
- package/es/loading/index.js +2 -3
- package/es/locale/index.d.ts +1 -2
- package/es/locale/index.js +2 -3
- package/es/locale/lang/de-DE-formal.d.ts +1 -8
- package/es/locale/lang/de-DE-formal.js +2 -9
- package/es/locale/lang/de-DE.d.ts +1 -8
- package/es/locale/lang/de-DE.js +2 -9
- package/es/locale/lang/en-US.d.ts +1 -8
- package/es/locale/lang/en-US.js +2 -9
- package/es/locale/lang/es-ES.d.ts +1 -8
- package/es/locale/lang/es-ES.js +2 -9
- package/es/locale/lang/fr-FR.d.ts +1 -8
- package/es/locale/lang/fr-FR.js +2 -9
- package/es/locale/lang/ja-JP.d.ts +1 -8
- package/es/locale/lang/ja-JP.js +4 -11
- package/es/locale/lang/nb-NO.d.ts +1 -8
- package/es/locale/lang/nb-NO.js +2 -9
- package/es/locale/lang/ro-RO.d.ts +1 -8
- package/es/locale/lang/ro-RO.js +2 -9
- package/es/locale/lang/ru-RU.d.ts +1 -8
- package/es/locale/lang/ru-RU.js +2 -9
- package/es/locale/lang/th-TH.d.ts +1 -8
- package/es/locale/lang/th-TH.js +2 -9
- package/es/locale/lang/tr-TR.d.ts +1 -8
- package/es/locale/lang/tr-TR.js +2 -9
- package/es/locale/lang/zh-CN.d.ts +1 -8
- package/es/locale/lang/zh-CN.js +6 -13
- package/es/locale/lang/zh-HK.d.ts +1 -8
- package/es/locale/lang/zh-HK.js +5 -12
- package/es/locale/lang/zh-TW.d.ts +1 -8
- package/es/locale/lang/zh-TW.js +5 -12
- package/es/nav-bar/index.d.ts +1 -2
- package/es/nav-bar/index.js +2 -3
- package/es/notice-bar/index.d.ts +3 -2
- package/es/notice-bar/index.js +2 -3
- package/es/notify/Notify.d.ts +2 -2
- package/es/notify/Notify.js +12 -15
- package/es/notify/function-call.d.ts +6 -19
- package/es/notify/function-call.js +3 -2
- package/es/notify/index.d.ts +2 -3
- package/es/notify/types.d.ts +20 -0
- package/es/notify/types.js +1 -0
- package/es/number-keyboard/index.css +1 -1
- package/es/number-keyboard/index.d.ts +1 -2
- package/es/number-keyboard/index.js +2 -3
- package/es/number-keyboard/index.less +2 -1
- package/es/number-keyboard/var.less +1 -0
- package/es/overlay/Overlay.d.ts +1 -1
- package/es/overlay/index.d.ts +2 -3
- package/es/overlay/index.js +2 -3
- package/es/pagination/index.d.ts +1 -2
- package/es/pagination/index.js +2 -3
- package/es/password-input/index.css +1 -1
- package/es/password-input/index.d.ts +1 -2
- package/es/password-input/index.js +2 -3
- package/es/password-input/index.less +2 -0
- package/es/password-input/var.less +1 -0
- package/es/picker/Picker.d.ts +3 -3
- package/es/picker/PickerColumn.d.ts +2 -2
- package/es/picker/index.css +1 -1
- package/es/picker/index.d.ts +6 -5
- package/es/picker/index.js +2 -3
- package/es/picker/types.d.ts +3 -3
- package/es/popover/Popover.d.ts +8 -0
- package/es/popover/Popover.js +25 -15
- package/es/popover/index.d.ts +8 -2
- package/es/popover/index.js +2 -3
- package/es/popup/Popup.js +9 -8
- package/es/popup/index.d.ts +1 -2
- package/es/popup/index.js +2 -3
- package/es/progress/Progress.d.ts +5 -2
- package/es/progress/Progress.js +7 -32
- package/es/progress/index.css +1 -1
- package/es/progress/index.d.ts +7 -4
- package/es/progress/index.js +2 -3
- package/es/progress/index.less +6 -1
- package/es/pull-refresh/index.d.ts +1 -2
- package/es/pull-refresh/index.js +2 -3
- package/es/radio/Radio.d.ts +2 -2
- package/es/radio/index.d.ts +3 -4
- package/es/radio/index.js +2 -3
- package/es/radio-group/index.d.ts +1 -2
- package/es/radio-group/index.js +2 -3
- package/es/rate/Rate.d.ts +2 -2
- package/es/rate/Rate.js +1 -1
- package/es/rate/index.d.ts +3 -4
- package/es/rate/index.js +2 -3
- package/es/row/Row.d.ts +2 -2
- package/es/row/index.d.ts +3 -4
- package/es/row/index.js +2 -3
- package/es/search/Search.d.ts +18 -6
- package/es/search/Search.js +4 -3
- package/es/search/index.d.ts +18 -8
- package/es/search/index.js +2 -3
- package/es/share-sheet/ShareSheet.d.ts +1 -1
- package/es/share-sheet/index.d.ts +2 -3
- package/es/share-sheet/index.js +2 -3
- package/es/sidebar/index.d.ts +1 -2
- package/es/sidebar/index.js +2 -3
- package/es/sidebar-item/index.d.ts +1 -2
- package/es/sidebar-item/index.js +2 -3
- package/es/skeleton/Skeleton.d.ts +1 -1
- package/es/skeleton/index.d.ts +2 -3
- package/es/skeleton/index.js +2 -3
- package/es/slider/Slider.d.ts +6 -1
- package/es/slider/Slider.js +53 -17
- package/es/slider/index.css +1 -1
- package/es/slider/index.d.ts +5 -2
- package/es/slider/index.js +2 -3
- package/es/slider/index.less +19 -23
- package/es/step/Step.d.ts +1 -1
- package/es/step/index.css +1 -1
- package/es/step/index.d.ts +1 -2
- package/es/step/index.js +2 -3
- package/es/step/index.less +1 -1
- package/es/stepper/index.d.ts +1 -2
- package/es/stepper/index.js +2 -3
- package/es/steps/index.d.ts +1 -2
- package/es/steps/index.js +2 -3
- package/es/sticky/index.d.ts +1 -2
- package/es/sticky/index.js +2 -3
- package/es/style/animation.css +1 -1
- package/es/style/animation.less +20 -20
- package/es/style/base.css +1 -1
- package/es/submit-bar/index.css +1 -1
- package/es/submit-bar/index.d.ts +1 -2
- package/es/submit-bar/index.js +2 -3
- package/es/submit-bar/index.less +3 -4
- package/es/swipe/Swipe.d.ts +5 -5
- package/es/swipe/Swipe.js +2 -1
- package/es/swipe/index.d.ts +8 -7
- package/es/swipe/index.js +2 -3
- package/es/swipe-cell/index.css +1 -1
- package/es/swipe-cell/index.d.ts +3 -2
- package/es/swipe-cell/index.js +2 -3
- package/es/swipe-item/SwipeItem.d.ts +1 -1
- package/es/swipe-item/index.d.ts +1 -2
- package/es/swipe-item/index.js +2 -3
- package/es/switch/index.css +1 -1
- package/es/switch/index.d.ts +1 -2
- package/es/switch/index.js +2 -3
- package/es/tab/Tab.d.ts +8 -1
- package/es/tab/Tab.js +3 -2
- package/es/tab/index.d.ts +9 -3
- package/es/tab/index.js +2 -3
- package/es/tabbar/index.d.ts +1 -2
- package/es/tabbar/index.js +2 -3
- package/es/tabbar-item/index.d.ts +1 -2
- package/es/tabbar-item/index.js +2 -3
- package/es/tabs/Tabs.js +4 -8
- package/es/tabs/TabsTitle.d.ts +8 -1
- package/es/tabs/TabsTitle.js +5 -3
- package/es/tabs/index.d.ts +3 -2
- package/es/tabs/index.js +2 -3
- package/es/tabs/utils.js +2 -4
- package/es/tag/index.d.ts +1 -2
- package/es/tag/index.js +2 -3
- package/es/toast/Toast.d.ts +1 -2
- package/es/toast/Toast.js +3 -4
- package/es/toast/function-call.d.ts +2 -25
- package/es/toast/function-call.js +3 -1
- package/es/toast/index.d.ts +2 -3
- package/es/toast/types.d.ts +32 -0
- package/es/toast/types.js +1 -0
- package/es/tree-select/index.css +1 -1
- package/es/tree-select/index.d.ts +1 -2
- package/es/tree-select/index.js +2 -3
- package/es/tree-select/index.less +1 -1
- package/es/uploader/Uploader.d.ts +3 -3
- package/es/uploader/index.css +1 -1
- package/es/uploader/index.d.ts +6 -5
- package/es/uploader/index.js +2 -3
- package/es/uploader/index.less +4 -5
- package/es/utils/validate.d.ts +0 -1
- package/es/utils/validate.js +0 -3
- package/es/utils/with-install.d.ts +1 -1
- package/es/utils/with-install.js +0 -1
- package/lib/action-bar/ActionBar.d.ts +1 -1
- package/lib/action-bar/index.d.ts +2 -3
- package/lib/action-bar/index.js +1 -1
- package/lib/action-bar-button/ActionBarButton.d.ts +1 -1
- package/lib/action-bar-button/index.d.ts +2 -3
- package/lib/action-bar-button/index.js +1 -1
- package/lib/action-bar-icon/ActionBarIcon.d.ts +1 -1
- package/lib/action-bar-icon/index.d.ts +2 -3
- package/lib/action-bar-icon/index.js +1 -1
- package/lib/action-sheet/ActionSheet.d.ts +1 -1
- package/lib/action-sheet/index.d.ts +2 -3
- package/lib/action-sheet/index.js +1 -1
- package/lib/address-edit/AddressEdit.js +3 -3
- package/lib/address-edit/AddressEditDetail.js +2 -18
- package/lib/address-edit/index.css +1 -1
- package/lib/address-edit/index.d.ts +3 -2
- package/lib/address-edit/index.js +1 -1
- package/lib/address-edit/index.less +0 -7
- package/lib/address-edit/var.less +0 -2
- package/lib/address-list/index.d.ts +1 -2
- package/lib/address-list/index.js +1 -1
- package/lib/area/Area.d.ts +1 -1
- package/lib/area/Area.js +5 -2
- package/lib/area/index.d.ts +4 -3
- package/lib/area/index.js +1 -1
- package/lib/badge/Badge.d.ts +2 -2
- package/lib/badge/index.d.ts +3 -4
- package/lib/badge/index.js +1 -1
- package/lib/button/Button.d.ts +2 -2
- package/lib/button/index.css +1 -1
- package/lib/button/index.d.ts +3 -4
- package/lib/button/index.js +1 -1
- package/lib/button/index.less +7 -7
- package/lib/calendar/Calendar.d.ts +3 -4
- package/lib/calendar/Calendar.js +60 -54
- package/lib/calendar/CalendarMonth.d.ts +29 -3
- package/lib/calendar/CalendarMonth.js +34 -28
- package/lib/calendar/index.d.ts +5 -5
- package/lib/calendar/index.js +1 -1
- package/lib/calendar/types.d.ts +10 -1
- package/lib/card/index.d.ts +1 -2
- package/lib/card/index.js +1 -1
- package/lib/cascader/Cascader.d.ts +1 -1
- package/lib/cascader/index.d.ts +2 -3
- package/lib/cascader/index.js +1 -1
- package/lib/cell/Cell.d.ts +2 -2
- package/lib/cell/index.d.ts +3 -4
- package/lib/cell/index.js +1 -1
- package/lib/cell-group/CellGroup.d.ts +1 -1
- package/lib/cell-group/index.d.ts +2 -3
- package/lib/cell-group/index.js +1 -1
- package/lib/checkbox/Checkbox.d.ts +2 -2
- package/lib/checkbox/Checker.d.ts +4 -4
- package/lib/checkbox/Checker.js +1 -1
- package/lib/checkbox/index.d.ts +5 -4
- package/lib/checkbox/index.js +1 -1
- package/lib/checkbox-group/index.d.ts +3 -2
- package/lib/checkbox-group/index.js +1 -1
- package/lib/circle/Circle.d.ts +8 -0
- package/lib/circle/Circle.js +21 -1
- package/lib/circle/index.d.ts +9 -2
- package/lib/circle/index.js +1 -1
- package/lib/col/Col.d.ts +1 -1
- package/lib/col/index.d.ts +2 -3
- package/lib/col/index.js +1 -1
- package/lib/collapse/index.d.ts +1 -2
- package/lib/collapse/index.js +1 -1
- package/lib/collapse-item/CollapseItem.d.ts +4 -4
- package/lib/collapse-item/CollapseItem.js +4 -2
- package/lib/collapse-item/index.d.ts +7 -6
- package/lib/collapse-item/index.js +1 -1
- package/lib/composables/use-height.js +3 -5
- package/lib/composables/use-lock-scroll.js +2 -10
- package/lib/config-provider/ConfigProvider.d.ts +2 -2
- package/lib/config-provider/index.d.ts +3 -4
- package/lib/config-provider/index.js +1 -1
- package/lib/contact-card/index.d.ts +1 -2
- package/lib/contact-card/index.js +1 -1
- package/lib/contact-edit/ContactEdit.js +6 -8
- package/lib/contact-edit/index.d.ts +1 -2
- package/lib/contact-edit/index.js +1 -1
- package/lib/contact-list/index.d.ts +1 -2
- package/lib/contact-list/index.js +1 -1
- package/lib/count-down/CountDown.d.ts +2 -10
- package/lib/count-down/index.d.ts +4 -3
- package/lib/count-down/index.js +1 -1
- package/lib/count-down/types.d.ts +11 -0
- package/lib/count-down/types.js +3 -0
- package/lib/coupon/Coupon.d.ts +1 -1
- package/lib/coupon/index.d.ts +2 -3
- package/lib/coupon/index.js +1 -1
- package/lib/coupon-cell/CouponCell.d.ts +1 -1
- package/lib/coupon-cell/CouponCell.js +1 -1
- package/lib/coupon-cell/index.d.ts +2 -3
- package/lib/coupon-cell/index.js +1 -1
- package/lib/coupon-list/CouponList.js +5 -13
- package/lib/coupon-list/index.css +1 -1
- package/lib/coupon-list/index.d.ts +1 -2
- package/lib/coupon-list/index.js +1 -1
- package/lib/coupon-list/index.less +6 -1
- package/lib/datetime-picker/DatePicker.d.ts +1 -1
- package/lib/datetime-picker/DatePicker.js +4 -3
- package/lib/datetime-picker/DatetimePicker.d.ts +3 -2
- package/lib/datetime-picker/TimePicker.d.ts +1 -1
- package/lib/datetime-picker/TimePicker.js +3 -1
- package/lib/datetime-picker/index.d.ts +6 -4
- package/lib/datetime-picker/index.js +1 -1
- package/lib/dialog/Dialog.d.ts +3 -6
- package/lib/dialog/function-call.d.ts +15 -40
- package/lib/dialog/function-call.js +4 -4
- package/lib/dialog/index.d.ts +2 -3
- package/lib/dialog/types.d.ts +36 -0
- package/lib/dialog/types.js +3 -0
- package/lib/divider/Divider.d.ts +1 -1
- package/lib/divider/index.d.ts +2 -3
- package/lib/divider/index.js +1 -1
- package/lib/dropdown-item/DropdownItem.d.ts +1 -1
- package/lib/dropdown-item/index.d.ts +4 -3
- package/lib/dropdown-item/index.js +1 -1
- package/lib/dropdown-menu/DropdownMenu.d.ts +1 -1
- package/lib/dropdown-menu/index.d.ts +4 -3
- package/lib/dropdown-menu/index.js +1 -1
- package/lib/empty/Empty.d.ts +1 -1
- package/lib/empty/index.d.ts +2 -3
- package/lib/empty/index.js +1 -1
- package/lib/field/Field.d.ts +19 -12
- package/lib/field/Field.js +8 -3
- package/lib/field/index.css +1 -1
- package/lib/field/index.d.ts +17 -13
- package/lib/field/index.js +1 -1
- package/lib/field/index.less +5 -3
- package/lib/field/var.less +1 -1
- package/lib/form/index.d.ts +3 -2
- package/lib/form/index.js +1 -1
- package/lib/grid/Grid.d.ts +3 -3
- package/lib/grid/index.d.ts +4 -5
- package/lib/grid/index.js +1 -1
- package/lib/grid-item/GridItem.d.ts +1 -1
- package/lib/grid-item/index.d.ts +2 -3
- package/lib/grid-item/index.js +1 -1
- package/lib/icon/Icon.d.ts +1 -1
- package/lib/icon/index.css +1 -1
- package/lib/icon/index.d.ts +2 -3
- package/lib/icon/index.js +1 -1
- package/lib/icon/index.less +1 -1
- package/lib/image/Image.d.ts +5 -5
- package/lib/image/Image.js +1 -2
- package/lib/image/index.d.ts +6 -7
- package/lib/image/index.js +1 -1
- package/lib/image-preview/ImagePreview.d.ts +4 -4
- package/lib/image-preview/ImagePreviewItem.d.ts +1 -1
- package/lib/image-preview/function-call.d.ts +5 -5
- package/lib/image-preview/function-call.js +5 -5
- package/lib/image-preview/index.d.ts +2 -0
- package/lib/index-anchor/IndexAnchor.d.ts +1 -1
- package/lib/index-anchor/index.d.ts +2 -3
- package/lib/index-anchor/index.js +1 -1
- package/lib/index-bar/index.d.ts +3 -2
- package/lib/index-bar/index.js +1 -1
- package/lib/index.css +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/list/index.d.ts +3 -2
- package/lib/list/index.js +1 -1
- package/lib/loading/Loading.d.ts +1 -1
- package/lib/loading/index.d.ts +2 -3
- package/lib/loading/index.js +1 -1
- package/lib/locale/index.d.ts +1 -2
- package/lib/locale/index.js +1 -1
- package/lib/locale/lang/de-DE-formal.d.ts +1 -8
- package/lib/locale/lang/de-DE-formal.js +2 -9
- package/lib/locale/lang/de-DE.d.ts +1 -8
- package/lib/locale/lang/de-DE.js +2 -9
- package/lib/locale/lang/en-US.d.ts +1 -8
- package/lib/locale/lang/en-US.js +2 -9
- package/lib/locale/lang/es-ES.d.ts +1 -8
- package/lib/locale/lang/es-ES.js +2 -9
- package/lib/locale/lang/fr-FR.d.ts +1 -8
- package/lib/locale/lang/fr-FR.js +2 -9
- package/lib/locale/lang/ja-JP.d.ts +1 -8
- package/lib/locale/lang/ja-JP.js +4 -11
- package/lib/locale/lang/nb-NO.d.ts +1 -8
- package/lib/locale/lang/nb-NO.js +2 -9
- package/lib/locale/lang/ro-RO.d.ts +1 -8
- package/lib/locale/lang/ro-RO.js +2 -9
- package/lib/locale/lang/ru-RU.d.ts +1 -8
- package/lib/locale/lang/ru-RU.js +2 -9
- package/lib/locale/lang/th-TH.d.ts +1 -8
- package/lib/locale/lang/th-TH.js +2 -9
- package/lib/locale/lang/tr-TR.d.ts +1 -8
- package/lib/locale/lang/tr-TR.js +2 -9
- package/lib/locale/lang/zh-CN.d.ts +1 -8
- package/lib/locale/lang/zh-CN.js +6 -13
- package/lib/locale/lang/zh-HK.d.ts +1 -8
- package/lib/locale/lang/zh-HK.js +5 -12
- package/lib/locale/lang/zh-TW.d.ts +1 -8
- package/lib/locale/lang/zh-TW.js +5 -12
- package/lib/nav-bar/index.d.ts +1 -2
- package/lib/nav-bar/index.js +1 -1
- package/lib/notice-bar/index.d.ts +3 -2
- package/lib/notice-bar/index.js +1 -1
- package/lib/notify/Notify.d.ts +2 -2
- package/lib/notify/Notify.js +12 -15
- package/lib/notify/function-call.d.ts +6 -19
- package/lib/notify/function-call.js +4 -4
- package/lib/notify/index.d.ts +2 -3
- package/lib/notify/types.d.ts +20 -0
- package/lib/notify/types.js +3 -0
- package/lib/number-keyboard/index.css +1 -1
- package/lib/number-keyboard/index.d.ts +1 -2
- package/lib/number-keyboard/index.js +1 -1
- package/lib/number-keyboard/index.less +2 -1
- package/lib/number-keyboard/var.less +1 -0
- package/lib/overlay/Overlay.d.ts +1 -1
- package/lib/overlay/index.d.ts +2 -3
- package/lib/overlay/index.js +1 -1
- package/lib/pagination/index.d.ts +1 -2
- package/lib/pagination/index.js +1 -1
- package/lib/password-input/index.css +1 -1
- package/lib/password-input/index.d.ts +1 -2
- package/lib/password-input/index.js +1 -1
- package/lib/password-input/index.less +2 -0
- package/lib/password-input/var.less +1 -0
- package/lib/picker/Picker.d.ts +3 -3
- package/lib/picker/PickerColumn.d.ts +2 -2
- package/lib/picker/index.css +1 -1
- package/lib/picker/index.d.ts +6 -5
- package/lib/picker/index.js +1 -1
- package/lib/picker/types.d.ts +3 -3
- package/lib/popover/Popover.d.ts +8 -0
- package/lib/popover/Popover.js +25 -15
- package/lib/popover/index.d.ts +8 -2
- package/lib/popover/index.js +1 -1
- package/lib/popup/Popup.js +9 -8
- package/lib/popup/index.d.ts +1 -2
- package/lib/popup/index.js +1 -1
- package/lib/progress/Progress.d.ts +5 -2
- package/lib/progress/Progress.js +6 -32
- package/lib/progress/index.css +1 -1
- package/lib/progress/index.d.ts +7 -4
- package/lib/progress/index.js +1 -1
- package/lib/progress/index.less +6 -1
- package/lib/pull-refresh/index.d.ts +1 -2
- package/lib/pull-refresh/index.js +1 -1
- package/lib/radio/Radio.d.ts +2 -2
- package/lib/radio/index.d.ts +3 -4
- package/lib/radio/index.js +1 -1
- package/lib/radio-group/index.d.ts +1 -2
- package/lib/radio-group/index.js +1 -1
- package/lib/rate/Rate.d.ts +2 -2
- package/lib/rate/Rate.js +1 -1
- package/lib/rate/index.d.ts +3 -4
- package/lib/rate/index.js +1 -1
- package/lib/row/Row.d.ts +2 -2
- package/lib/row/index.d.ts +3 -4
- package/lib/row/index.js +1 -1
- package/lib/search/Search.d.ts +18 -6
- package/lib/search/Search.js +3 -2
- package/lib/search/index.d.ts +18 -8
- package/lib/search/index.js +1 -1
- package/lib/share-sheet/ShareSheet.d.ts +1 -1
- package/lib/share-sheet/index.d.ts +2 -3
- package/lib/share-sheet/index.js +1 -1
- package/lib/sidebar/index.d.ts +1 -2
- package/lib/sidebar/index.js +1 -1
- package/lib/sidebar-item/index.d.ts +1 -2
- package/lib/sidebar-item/index.js +1 -1
- package/lib/skeleton/Skeleton.d.ts +1 -1
- package/lib/skeleton/index.d.ts +2 -3
- package/lib/skeleton/index.js +1 -1
- package/lib/slider/Slider.d.ts +6 -1
- package/lib/slider/Slider.js +53 -17
- package/lib/slider/index.css +1 -1
- package/lib/slider/index.d.ts +5 -2
- package/lib/slider/index.js +1 -1
- package/lib/slider/index.less +19 -23
- package/lib/step/Step.d.ts +1 -1
- package/lib/step/index.css +1 -1
- package/lib/step/index.d.ts +1 -2
- package/lib/step/index.js +1 -1
- package/lib/step/index.less +1 -1
- package/lib/stepper/index.d.ts +1 -2
- package/lib/stepper/index.js +1 -1
- package/lib/steps/index.d.ts +1 -2
- package/lib/steps/index.js +1 -1
- package/lib/sticky/index.d.ts +1 -2
- package/lib/sticky/index.js +1 -1
- package/lib/style/animation.css +1 -1
- package/lib/style/animation.less +20 -20
- package/lib/style/base.css +1 -1
- package/lib/submit-bar/index.css +1 -1
- package/lib/submit-bar/index.d.ts +1 -2
- package/lib/submit-bar/index.js +1 -1
- package/lib/submit-bar/index.less +3 -4
- package/lib/swipe/Swipe.d.ts +5 -5
- package/lib/swipe/Swipe.js +2 -1
- package/lib/swipe/index.d.ts +8 -7
- package/lib/swipe/index.js +1 -1
- package/lib/swipe-cell/index.css +1 -1
- package/lib/swipe-cell/index.d.ts +3 -2
- package/lib/swipe-cell/index.js +1 -1
- package/lib/swipe-item/SwipeItem.d.ts +1 -1
- package/lib/swipe-item/index.d.ts +1 -2
- package/lib/swipe-item/index.js +1 -1
- package/lib/switch/index.css +1 -1
- package/lib/switch/index.d.ts +1 -2
- package/lib/switch/index.js +1 -1
- package/lib/tab/Tab.d.ts +8 -1
- package/lib/tab/Tab.js +2 -1
- package/lib/tab/index.d.ts +9 -3
- package/lib/tab/index.js +1 -1
- package/lib/tabbar/index.d.ts +1 -2
- package/lib/tabbar/index.js +1 -1
- package/lib/tabbar-item/index.d.ts +1 -2
- package/lib/tabbar-item/index.js +1 -1
- package/lib/tabs/Tabs.js +2 -6
- package/lib/tabs/TabsTitle.d.ts +8 -1
- package/lib/tabs/TabsTitle.js +4 -2
- package/lib/tabs/index.d.ts +3 -2
- package/lib/tabs/index.js +1 -1
- package/lib/tabs/utils.js +1 -4
- package/lib/tag/index.d.ts +1 -2
- package/lib/tag/index.js +1 -1
- package/lib/toast/Toast.d.ts +1 -2
- package/lib/toast/Toast.js +1 -3
- package/lib/toast/function-call.d.ts +2 -25
- package/lib/toast/function-call.js +3 -1
- package/lib/toast/index.d.ts +2 -3
- package/lib/toast/types.d.ts +32 -0
- package/lib/toast/types.js +3 -0
- package/lib/tree-select/index.css +1 -1
- package/lib/tree-select/index.d.ts +1 -2
- package/lib/tree-select/index.js +1 -1
- package/lib/tree-select/index.less +1 -1
- package/lib/uploader/Uploader.d.ts +3 -3
- package/lib/uploader/index.css +1 -1
- package/lib/uploader/index.d.ts +6 -5
- package/lib/uploader/index.js +1 -1
- package/lib/uploader/index.less +4 -5
- package/lib/utils/validate.d.ts +0 -1
- package/lib/utils/validate.js +0 -5
- package/lib/utils/with-install.d.ts +1 -1
- package/lib/utils/with-install.js +0 -1
- package/lib/vant.es.js +15826 -0
- package/lib/vant.es.min.js +1 -0
- package/lib/vant.js +15157 -19779
- package/lib/vant.min.js +1 -1
- package/package.json +12 -18
- package/vetur/attributes.json +714 -684
- package/vetur/tags.json +243 -234
- package/vetur/web-types.json +2207 -2121
- package/LICENSE +0 -7
- package/README.md +0 -106
- package/README.zh-CN.md +0 -116
package/lib/empty/Empty.d.ts
CHANGED
package/lib/empty/index.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
declare const Empty: import("../utils").WithInstall<import("vue").DefineComponent<{
|
1
|
+
export declare const Empty: import("../utils").WithInstall<import("vue").DefineComponent<{
|
2
2
|
imageSize: (NumberConstructor | StringConstructor)[];
|
3
3
|
description: StringConstructor;
|
4
4
|
image: {
|
@@ -14,8 +14,7 @@ declare const Empty: import("../utils").WithInstall<import("vue").DefineComponen
|
|
14
14
|
} & {
|
15
15
|
description?: string | undefined;
|
16
16
|
imageSize?: string | number | undefined;
|
17
|
-
}
|
17
|
+
}>, {
|
18
18
|
image: string;
|
19
19
|
}>>;
|
20
20
|
export default Empty;
|
21
|
-
export { Empty };
|
package/lib/empty/index.js
CHANGED
package/lib/field/Field.d.ts
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
import { PropType, ExtractPropTypes } from 'vue';
|
2
2
|
import type { FieldRule, FieldType, FieldTextAlign, FieldClearTrigger, FieldFormatTrigger, FieldAutosizeConfig } from './types';
|
3
3
|
export declare const fieldSharedProps: {
|
4
|
+
id: StringConstructor;
|
5
|
+
name: StringConstructor;
|
4
6
|
formatter: PropType<(value: string) => string>;
|
5
7
|
leftIcon: StringConstructor;
|
6
8
|
rightIcon: StringConstructor;
|
@@ -9,6 +11,7 @@ export declare const fieldSharedProps: {
|
|
9
11
|
maxlength: (NumberConstructor | StringConstructor)[];
|
10
12
|
inputAlign: PropType<FieldTextAlign>;
|
11
13
|
placeholder: StringConstructor;
|
14
|
+
autocomplete: StringConstructor;
|
12
15
|
errorMessage: StringConstructor;
|
13
16
|
error: {
|
14
17
|
type: BooleanConstructor;
|
@@ -63,6 +66,8 @@ declare const props: {
|
|
63
66
|
default: null;
|
64
67
|
};
|
65
68
|
} & {
|
69
|
+
id: StringConstructor;
|
70
|
+
name: StringConstructor;
|
66
71
|
formatter: PropType<(value: string) => string>;
|
67
72
|
leftIcon: StringConstructor;
|
68
73
|
rightIcon: StringConstructor;
|
@@ -71,6 +76,7 @@ declare const props: {
|
|
71
76
|
maxlength: (NumberConstructor | StringConstructor)[];
|
72
77
|
inputAlign: PropType<FieldTextAlign>;
|
73
78
|
placeholder: StringConstructor;
|
79
|
+
autocomplete: StringConstructor;
|
74
80
|
errorMessage: StringConstructor;
|
75
81
|
error: {
|
76
82
|
type: BooleanConstructor;
|
@@ -102,13 +108,11 @@ declare const props: {
|
|
102
108
|
};
|
103
109
|
} & {
|
104
110
|
rows: (NumberConstructor | StringConstructor)[];
|
105
|
-
name: StringConstructor;
|
106
111
|
rules: PropType<FieldRule[]>;
|
107
112
|
autosize: PropType<boolean | FieldAutosizeConfig>;
|
108
113
|
labelWidth: (NumberConstructor | StringConstructor)[];
|
109
114
|
labelClass: PropType<unknown>;
|
110
115
|
labelAlign: PropType<FieldTextAlign>;
|
111
|
-
autocomplete: StringConstructor;
|
112
116
|
showWordLimit: BooleanConstructor;
|
113
117
|
errorMessageAlign: PropType<FieldTextAlign>;
|
114
118
|
type: {
|
@@ -145,6 +149,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
145
149
|
default: null;
|
146
150
|
};
|
147
151
|
} & {
|
152
|
+
id: StringConstructor;
|
153
|
+
name: StringConstructor;
|
148
154
|
formatter: PropType<(value: string) => string>;
|
149
155
|
leftIcon: StringConstructor;
|
150
156
|
rightIcon: StringConstructor;
|
@@ -153,6 +159,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
153
159
|
maxlength: (NumberConstructor | StringConstructor)[];
|
154
160
|
inputAlign: PropType<FieldTextAlign>;
|
155
161
|
placeholder: StringConstructor;
|
162
|
+
autocomplete: StringConstructor;
|
156
163
|
errorMessage: StringConstructor;
|
157
164
|
error: {
|
158
165
|
type: BooleanConstructor;
|
@@ -184,13 +191,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
184
191
|
};
|
185
192
|
} & {
|
186
193
|
rows: (NumberConstructor | StringConstructor)[];
|
187
|
-
name: StringConstructor;
|
188
194
|
rules: PropType<FieldRule[]>;
|
189
195
|
autosize: PropType<boolean | FieldAutosizeConfig>;
|
190
196
|
labelWidth: (NumberConstructor | StringConstructor)[];
|
191
197
|
labelClass: PropType<unknown>;
|
192
198
|
labelAlign: PropType<FieldTextAlign>;
|
193
|
-
autocomplete: StringConstructor;
|
194
199
|
showWordLimit: BooleanConstructor;
|
195
200
|
errorMessageAlign: PropType<FieldTextAlign>;
|
196
201
|
type: {
|
@@ -218,6 +223,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
218
223
|
titleStyle?: unknown;
|
219
224
|
arrowDirection?: unknown;
|
220
225
|
clickable?: unknown;
|
226
|
+
id?: unknown;
|
227
|
+
name?: unknown;
|
221
228
|
formatter?: unknown;
|
222
229
|
leftIcon?: unknown;
|
223
230
|
rightIcon?: unknown;
|
@@ -226,6 +233,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
226
233
|
maxlength?: unknown;
|
227
234
|
inputAlign?: unknown;
|
228
235
|
placeholder?: unknown;
|
236
|
+
autocomplete?: unknown;
|
229
237
|
errorMessage?: unknown;
|
230
238
|
error?: unknown;
|
231
239
|
disabled?: unknown;
|
@@ -235,12 +243,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
235
243
|
clearTrigger?: unknown;
|
236
244
|
formatTrigger?: unknown;
|
237
245
|
rows?: unknown;
|
238
|
-
name?: unknown;
|
239
246
|
rules?: unknown;
|
240
247
|
autosize?: unknown;
|
241
248
|
labelWidth?: unknown;
|
242
249
|
labelAlign?: unknown;
|
243
|
-
autocomplete?: unknown;
|
244
250
|
showWordLimit?: unknown;
|
245
251
|
errorMessageAlign?: unknown;
|
246
252
|
type?: unknown;
|
@@ -248,14 +254,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
248
254
|
} & {
|
249
255
|
type: FieldType;
|
250
256
|
center: boolean;
|
257
|
+
autofocus: boolean;
|
258
|
+
disabled: boolean;
|
251
259
|
isLink: boolean;
|
252
260
|
border: boolean;
|
253
261
|
required: boolean;
|
254
262
|
clickable: boolean | null;
|
255
|
-
autofocus: boolean;
|
256
263
|
clearable: boolean;
|
257
264
|
error: boolean;
|
258
|
-
disabled: boolean;
|
259
265
|
readonly: boolean;
|
260
266
|
clearIcon: string;
|
261
267
|
modelValue: string | number;
|
@@ -268,14 +274,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
268
274
|
label?: string | number | undefined;
|
269
275
|
title?: string | number | undefined;
|
270
276
|
iconPrefix?: string | undefined;
|
277
|
+
autocomplete?: string | undefined;
|
278
|
+
value?: string | number | undefined;
|
271
279
|
icon?: string | undefined;
|
272
280
|
size?: "large" | undefined;
|
273
|
-
value?: string | number | undefined;
|
274
281
|
valueClass?: unknown;
|
275
282
|
labelClass?: unknown;
|
276
283
|
titleClass?: unknown;
|
277
284
|
titleStyle?: string | import("vue").CSSProperties | undefined;
|
278
285
|
arrowDirection?: import("../cell").CellArrowDirection | undefined;
|
286
|
+
id?: string | undefined;
|
279
287
|
formatter?: ((value: string) => string) | undefined;
|
280
288
|
leftIcon?: string | undefined;
|
281
289
|
rightIcon?: string | undefined;
|
@@ -288,7 +296,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
288
296
|
autosize?: boolean | FieldAutosizeConfig | undefined;
|
289
297
|
labelWidth?: string | number | undefined;
|
290
298
|
labelAlign?: FieldTextAlign | undefined;
|
291
|
-
autocomplete?: string | undefined;
|
292
299
|
errorMessageAlign?: FieldTextAlign | undefined;
|
293
300
|
}> & {
|
294
301
|
onFocus?: ((...args: any[]) => any) | undefined;
|
@@ -302,14 +309,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
302
309
|
}, {
|
303
310
|
type: FieldType;
|
304
311
|
center: boolean;
|
312
|
+
autofocus: boolean;
|
313
|
+
disabled: boolean;
|
305
314
|
isLink: boolean;
|
306
315
|
border: boolean;
|
307
316
|
required: boolean;
|
308
317
|
clickable: boolean | null;
|
309
|
-
autofocus: boolean;
|
310
318
|
clearable: boolean;
|
311
319
|
error: boolean;
|
312
|
-
disabled: boolean;
|
313
320
|
readonly: boolean;
|
314
321
|
clearIcon: string;
|
315
322
|
modelValue: string | number;
|
package/lib/field/Field.js
CHANGED
@@ -25,6 +25,8 @@ var _cell = require("../cell");
|
|
25
25
|
var [name, bem] = (0, _utils.createNamespace)('field'); // provide to Search component to inherit
|
26
26
|
|
27
27
|
var fieldSharedProps = {
|
28
|
+
id: String,
|
29
|
+
name: String,
|
28
30
|
formatter: Function,
|
29
31
|
leftIcon: String,
|
30
32
|
rightIcon: String,
|
@@ -33,6 +35,7 @@ var fieldSharedProps = {
|
|
33
35
|
maxlength: [Number, String],
|
34
36
|
inputAlign: String,
|
35
37
|
placeholder: String,
|
38
|
+
autocomplete: String,
|
36
39
|
errorMessage: String,
|
37
40
|
error: {
|
38
41
|
type: Boolean,
|
@@ -66,13 +69,11 @@ var fieldSharedProps = {
|
|
66
69
|
exports.fieldSharedProps = fieldSharedProps;
|
67
70
|
var props = (0, _utils.extend)({}, _Cell.cellProps, fieldSharedProps, {
|
68
71
|
rows: [Number, String],
|
69
|
-
name: String,
|
70
72
|
rules: Array,
|
71
73
|
autosize: [Boolean, Object],
|
72
74
|
labelWidth: [Number, String],
|
73
75
|
labelClass: _utils.unknownProp,
|
74
76
|
labelAlign: String,
|
75
|
-
autocomplete: String,
|
76
77
|
showWordLimit: Boolean,
|
77
78
|
errorMessageAlign: String,
|
78
79
|
type: {
|
@@ -367,6 +368,7 @@ var _default = (0, _vue.defineComponent)({
|
|
367
368
|
}
|
368
369
|
|
369
370
|
var inputAttrs = {
|
371
|
+
id: props.id,
|
370
372
|
ref: inputRef,
|
371
373
|
name: props.name,
|
372
374
|
rows: props.rows !== undefined ? +props.rows : undefined,
|
@@ -456,7 +458,9 @@ var _default = (0, _vue.defineComponent)({
|
|
456
458
|
}
|
457
459
|
|
458
460
|
if (props.label) {
|
459
|
-
return (0, _vue.createVNode)("
|
461
|
+
return (0, _vue.createVNode)("label", {
|
462
|
+
"for": props.id
|
463
|
+
}, [props.label + colon]);
|
460
464
|
}
|
461
465
|
};
|
462
466
|
|
@@ -501,6 +505,7 @@ var _default = (0, _vue.defineComponent)({
|
|
501
505
|
"size": props.size,
|
502
506
|
"icon": props.leftIcon,
|
503
507
|
"class": bem({
|
508
|
+
error: showError.value,
|
504
509
|
disabled,
|
505
510
|
["label-" + labelAlign]: labelAlign
|
506
511
|
}),
|
package/lib/field/index.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
:root{--van-field-label-width:6.2em;--van-field-label-color:var(--van-gray-7);--van-field-label-margin-right:var(--van-padding-sm);--van-field-input-text-color:var(--van-text-color);--van-field-input-error-text-color:var(--van-danger-color);--van-field-input-disabled-text-color:var(--van-gray-5);--van-field-placeholder-text-color:var(--van-gray-5);--van-field-icon-size:16px;--van-field-clear-icon-size:16px;--van-field-clear-icon-color:var(--van-gray-5);--van-field-right-icon-color:var(--van-gray-6);--van-field-error-message-color:var(--van-danger-color);--van-field-error-message-
|
1
|
+
:root{--van-field-label-width:6.2em;--van-field-label-color:var(--van-gray-7);--van-field-label-margin-right:var(--van-padding-sm);--van-field-input-text-color:var(--van-text-color);--van-field-input-error-text-color:var(--van-danger-color);--van-field-input-disabled-text-color:var(--van-gray-5);--van-field-placeholder-text-color:var(--van-gray-5);--van-field-icon-size:16px;--van-field-clear-icon-size:16px;--van-field-clear-icon-color:var(--van-gray-5);--van-field-right-icon-color:var(--van-gray-6);--van-field-error-message-color:var(--van-danger-color);--van-field-error-message-font-size:12px;--van-field-text-area-min-height:60px;--van-field-word-limit-color:var(--van-gray-7);--van-field-word-limit-font-size:var(--van-font-size-sm);--van-field-word-limit-line-height:16px;--van-field-disabled-text-color:var(--van-gray-5);--van-field-required-mark-color:var(--van-red)}.van-field__label{flex:none;box-sizing:border-box;width:var(--van-field-label-width);margin-right:var(--van-field-label-margin-right);color:var(--van-field-label-color);text-align:left;word-wrap:break-word}.van-field__label--center{text-align:center}.van-field__label--right{text-align:right}.van-field__label--required::before{margin-right:2px;color:var(--van-field-required-mark-color);content:'*'}.van-field--disabled .van-field__label{color:var(--van-field-disabled-text-color)}.van-field__value{overflow:visible}.van-field__body{display:flex;align-items:center}.van-field__control{display:block;box-sizing:border-box;width:100%;min-width:0;margin:0;padding:0;color:var(--van-field-input-text-color);line-height:inherit;text-align:left;background-color:transparent;border:0;resize:none;-webkit-user-select:auto;user-select:auto}.van-field__control::-webkit-input-placeholder{color:var(--van-field-placeholder-text-color)}.van-field__control::placeholder{color:var(--van-field-placeholder-text-color)}.van-field__control:disabled{color:var(--van-field-input-disabled-text-color);cursor:not-allowed;opacity:1;-webkit-text-fill-color:var(--van-field-input-disabled-text-color)}.van-field__control:read-only{cursor:default}.van-field__control--center{justify-content:center;text-align:center}.van-field__control--right{justify-content:flex-end;text-align:right}.van-field__control--custom{display:flex;align-items:center;min-height:var(--van-cell-line-height)}.van-field__control--error::-webkit-input-placeholder{color:var(--van-field-input-error-text-color);-webkit-text-fill-color:currentColor}.van-field__control--error,.van-field__control--error::placeholder{color:var(--van-field-input-error-text-color);-webkit-text-fill-color:currentColor}.van-field__control--min-height{min-height:var(--van-field-text-area-min-height)}.van-field__control[type=date],.van-field__control[type=datetime-local],.van-field__control[type=time]{min-height:var(--van-cell-line-height)}.van-field__control[type=search]{-webkit-appearance:none}.van-field__button,.van-field__clear,.van-field__icon,.van-field__right-icon{flex-shrink:0}.van-field__clear,.van-field__right-icon{margin-right:calc(var(--van-padding-xs) * -1);padding:0 var(--van-padding-xs);line-height:inherit}.van-field__clear{color:var(--van-field-clear-icon-color);font-size:var(--van-field-clear-icon-size);cursor:pointer}.van-field__left-icon .van-icon,.van-field__right-icon .van-icon{display:block;font-size:var(--van-field-icon-size);line-height:inherit}.van-field__left-icon{margin-right:var(--van-padding-base)}.van-field__right-icon{color:var(--van-field-right-icon-color)}.van-field__button{padding-left:var(--van-padding-xs)}.van-field__error-message{color:var(--van-field-error-message-color);font-size:var(--van-field-error-message-font-size);text-align:left}.van-field__error-message--center{text-align:center}.van-field__error-message--right{text-align:right}.van-field__word-limit{margin-top:var(--van-padding-base);color:var(--van-field-word-limit-color);font-size:var(--van-field-word-limit-font-size);line-height:var(--van-field-word-limit-line-height);text-align:right}
|
package/lib/field/index.d.ts
CHANGED
@@ -1,4 +1,5 @@
|
|
1
|
-
|
1
|
+
import { FieldProps } from './Field';
|
2
|
+
export declare const Field: import("../utils").WithInstall<import("vue").DefineComponent<{
|
2
3
|
icon: StringConstructor;
|
3
4
|
size: import("vue").PropType<"large">;
|
4
5
|
title: (NumberConstructor | StringConstructor)[];
|
@@ -22,6 +23,8 @@ declare const Field: import("../utils").WithInstall<import("vue").DefineComponen
|
|
22
23
|
default: null;
|
23
24
|
};
|
24
25
|
} & {
|
26
|
+
id: StringConstructor;
|
27
|
+
name: StringConstructor;
|
25
28
|
formatter: import("vue").PropType<(value: string) => string>;
|
26
29
|
leftIcon: StringConstructor;
|
27
30
|
rightIcon: StringConstructor;
|
@@ -30,6 +33,7 @@ declare const Field: import("../utils").WithInstall<import("vue").DefineComponen
|
|
30
33
|
maxlength: (NumberConstructor | StringConstructor)[];
|
31
34
|
inputAlign: import("vue").PropType<import("./types").FieldTextAlign>;
|
32
35
|
placeholder: StringConstructor;
|
36
|
+
autocomplete: StringConstructor;
|
33
37
|
errorMessage: StringConstructor;
|
34
38
|
error: {
|
35
39
|
type: BooleanConstructor;
|
@@ -61,13 +65,11 @@ declare const Field: import("../utils").WithInstall<import("vue").DefineComponen
|
|
61
65
|
};
|
62
66
|
} & {
|
63
67
|
rows: (NumberConstructor | StringConstructor)[];
|
64
|
-
name: StringConstructor;
|
65
68
|
rules: import("vue").PropType<import("./types").FieldRule[]>;
|
66
69
|
autosize: import("vue").PropType<boolean | import("./types").FieldAutosizeConfig>;
|
67
70
|
labelWidth: (NumberConstructor | StringConstructor)[];
|
68
71
|
labelClass: import("vue").PropType<unknown>;
|
69
72
|
labelAlign: import("vue").PropType<import("./types").FieldTextAlign>;
|
70
|
-
autocomplete: StringConstructor;
|
71
73
|
showWordLimit: BooleanConstructor;
|
72
74
|
errorMessageAlign: import("vue").PropType<import("./types").FieldTextAlign>;
|
73
75
|
type: {
|
@@ -95,6 +97,8 @@ declare const Field: import("../utils").WithInstall<import("vue").DefineComponen
|
|
95
97
|
titleStyle?: unknown;
|
96
98
|
arrowDirection?: unknown;
|
97
99
|
clickable?: unknown;
|
100
|
+
id?: unknown;
|
101
|
+
name?: unknown;
|
98
102
|
formatter?: unknown;
|
99
103
|
leftIcon?: unknown;
|
100
104
|
rightIcon?: unknown;
|
@@ -103,6 +107,7 @@ declare const Field: import("../utils").WithInstall<import("vue").DefineComponen
|
|
103
107
|
maxlength?: unknown;
|
104
108
|
inputAlign?: unknown;
|
105
109
|
placeholder?: unknown;
|
110
|
+
autocomplete?: unknown;
|
106
111
|
errorMessage?: unknown;
|
107
112
|
error?: unknown;
|
108
113
|
disabled?: unknown;
|
@@ -112,12 +117,10 @@ declare const Field: import("../utils").WithInstall<import("vue").DefineComponen
|
|
112
117
|
clearTrigger?: unknown;
|
113
118
|
formatTrigger?: unknown;
|
114
119
|
rows?: unknown;
|
115
|
-
name?: unknown;
|
116
120
|
rules?: unknown;
|
117
121
|
autosize?: unknown;
|
118
122
|
labelWidth?: unknown;
|
119
123
|
labelAlign?: unknown;
|
120
|
-
autocomplete?: unknown;
|
121
124
|
showWordLimit?: unknown;
|
122
125
|
errorMessageAlign?: unknown;
|
123
126
|
type?: unknown;
|
@@ -125,14 +128,14 @@ declare const Field: import("../utils").WithInstall<import("vue").DefineComponen
|
|
125
128
|
} & {
|
126
129
|
type: import("./types").FieldType;
|
127
130
|
center: boolean;
|
131
|
+
autofocus: boolean;
|
132
|
+
disabled: boolean;
|
128
133
|
isLink: boolean;
|
129
134
|
border: boolean;
|
130
135
|
required: boolean;
|
131
136
|
clickable: boolean | null;
|
132
|
-
autofocus: boolean;
|
133
137
|
clearable: boolean;
|
134
138
|
error: boolean;
|
135
|
-
disabled: boolean;
|
136
139
|
readonly: boolean;
|
137
140
|
clearIcon: string;
|
138
141
|
modelValue: string | number;
|
@@ -145,14 +148,16 @@ declare const Field: import("../utils").WithInstall<import("vue").DefineComponen
|
|
145
148
|
label?: string | number | undefined;
|
146
149
|
title?: string | number | undefined;
|
147
150
|
iconPrefix?: string | undefined;
|
151
|
+
autocomplete?: string | undefined;
|
152
|
+
value?: string | number | undefined;
|
148
153
|
icon?: string | undefined;
|
149
154
|
size?: "large" | undefined;
|
150
|
-
value?: string | number | undefined;
|
151
155
|
valueClass?: unknown;
|
152
156
|
labelClass?: unknown;
|
153
157
|
titleClass?: unknown;
|
154
158
|
titleStyle?: string | import("vue").CSSProperties | undefined;
|
155
159
|
arrowDirection?: import("..").CellArrowDirection | undefined;
|
160
|
+
id?: string | undefined;
|
156
161
|
formatter?: ((value: string) => string) | undefined;
|
157
162
|
leftIcon?: string | undefined;
|
158
163
|
rightIcon?: string | undefined;
|
@@ -165,7 +170,6 @@ declare const Field: import("../utils").WithInstall<import("vue").DefineComponen
|
|
165
170
|
autosize?: boolean | import("./types").FieldAutosizeConfig | undefined;
|
166
171
|
labelWidth?: string | number | undefined;
|
167
172
|
labelAlign?: import("./types").FieldTextAlign | undefined;
|
168
|
-
autocomplete?: string | undefined;
|
169
173
|
errorMessageAlign?: import("./types").FieldTextAlign | undefined;
|
170
174
|
}> & {
|
171
175
|
onFocus?: ((...args: any[]) => any) | undefined;
|
@@ -179,14 +183,14 @@ declare const Field: import("../utils").WithInstall<import("vue").DefineComponen
|
|
179
183
|
}, {
|
180
184
|
type: import("./types").FieldType;
|
181
185
|
center: boolean;
|
186
|
+
autofocus: boolean;
|
187
|
+
disabled: boolean;
|
182
188
|
isLink: boolean;
|
183
189
|
border: boolean;
|
184
190
|
required: boolean;
|
185
191
|
clickable: boolean | null;
|
186
|
-
autofocus: boolean;
|
187
192
|
clearable: boolean;
|
188
193
|
error: boolean;
|
189
|
-
disabled: boolean;
|
190
194
|
readonly: boolean;
|
191
195
|
clearIcon: string;
|
192
196
|
modelValue: string | number;
|
@@ -196,5 +200,5 @@ declare const Field: import("../utils").WithInstall<import("vue").DefineComponen
|
|
196
200
|
colon: boolean;
|
197
201
|
}>>;
|
198
202
|
export default Field;
|
199
|
-
export {
|
200
|
-
export type { FieldType, FieldRule, FieldTextAlign, FieldClearTrigger, FieldFormatTrigger, FieldValidateError, FieldAutosizeConfig, FieldValidateTrigger, } from './types';
|
203
|
+
export type { FieldProps };
|
204
|
+
export type { FieldType, FieldRule, FieldInstance, FieldTextAlign, FieldClearTrigger, FieldFormatTrigger, FieldValidateError, FieldAutosizeConfig, FieldValidateTrigger, } from './types';
|
package/lib/field/index.js
CHANGED
package/lib/field/index.less
CHANGED
@@ -14,7 +14,7 @@
|
|
14
14
|
--van-field-clear-icon-color: @field-clear-icon-color;
|
15
15
|
--van-field-right-icon-color: @field-right-icon-color;
|
16
16
|
--van-field-error-message-color: @field-error-message-color;
|
17
|
-
--van-field-error-message-
|
17
|
+
--van-field-error-message-font-size: @field-error-message-font-size;
|
18
18
|
--van-field-text-area-min-height: @field-text-area-min-height;
|
19
19
|
--van-field-word-limit-color: @field-word-limit-color;
|
20
20
|
--van-field-word-limit-font-size: @field-word-limit-font-size;
|
@@ -78,6 +78,8 @@
|
|
78
78
|
background-color: transparent;
|
79
79
|
border: 0;
|
80
80
|
resize: none;
|
81
|
+
// https://github.com/youzan/vant/pull/9418
|
82
|
+
user-select: auto;
|
81
83
|
|
82
84
|
&::placeholder {
|
83
85
|
color: var(--van-field-placeholder-text-color);
|
@@ -143,7 +145,7 @@
|
|
143
145
|
|
144
146
|
&__clear,
|
145
147
|
&__right-icon {
|
146
|
-
margin-right:
|
148
|
+
margin-right: calc(var(--van-padding-xs) * -1);
|
147
149
|
padding: 0 var(--van-padding-xs);
|
148
150
|
line-height: inherit;
|
149
151
|
}
|
@@ -175,7 +177,7 @@
|
|
175
177
|
|
176
178
|
&__error-message {
|
177
179
|
color: var(--van-field-error-message-color);
|
178
|
-
font-size: var(--van-field-error-message-
|
180
|
+
font-size: var(--van-field-error-message-font-size);
|
179
181
|
text-align: left;
|
180
182
|
|
181
183
|
&--center {
|
package/lib/field/var.less
CHANGED
@@ -12,7 +12,7 @@
|
|
12
12
|
@field-clear-icon-color: var(--van-gray-5);
|
13
13
|
@field-right-icon-color: var(--van-gray-6);
|
14
14
|
@field-error-message-color: var(--van-danger-color);
|
15
|
-
@field-error-message-
|
15
|
+
@field-error-message-font-size: 12px;
|
16
16
|
@field-text-area-min-height: 60px;
|
17
17
|
@field-word-limit-color: var(--van-gray-7);
|
18
18
|
@field-word-limit-font-size: var(--van-font-size-sm);
|
package/lib/form/index.d.ts
CHANGED
@@ -1,4 +1,5 @@
|
|
1
|
-
|
1
|
+
import { FormProps } from './Form';
|
2
|
+
export declare const Form: import("../utils").WithInstall<import("vue").DefineComponent<{
|
2
3
|
colon: BooleanConstructor;
|
3
4
|
disabled: BooleanConstructor;
|
4
5
|
readonly: BooleanConstructor;
|
@@ -65,5 +66,5 @@ declare const Form: import("../utils").WithInstall<import("vue").DefineComponent
|
|
65
66
|
validateTrigger: import("..").FieldValidateTrigger;
|
66
67
|
}>>;
|
67
68
|
export default Form;
|
68
|
-
export {
|
69
|
+
export type { FormProps };
|
69
70
|
export type { FormInstance } from './types';
|
package/lib/form/index.js
CHANGED
package/lib/grid/Grid.d.ts
CHANGED
@@ -54,21 +54,21 @@ declare const _default: import("vue").DefineComponent<{
|
|
54
54
|
clickable?: unknown;
|
55
55
|
columnNum?: unknown;
|
56
56
|
} & {
|
57
|
+
reverse: boolean;
|
57
58
|
center: boolean;
|
58
59
|
border: boolean;
|
59
60
|
clickable: boolean;
|
60
|
-
reverse: boolean;
|
61
61
|
square: boolean;
|
62
62
|
columnNum: string | number;
|
63
63
|
} & {
|
64
64
|
iconSize?: string | number | undefined;
|
65
65
|
direction?: GridDirection | undefined;
|
66
66
|
gutter?: string | number | undefined;
|
67
|
-
}
|
67
|
+
}>, {
|
68
|
+
reverse: boolean;
|
68
69
|
center: boolean;
|
69
70
|
border: boolean;
|
70
71
|
clickable: boolean;
|
71
|
-
reverse: boolean;
|
72
72
|
square: boolean;
|
73
73
|
columnNum: string | number;
|
74
74
|
}>;
|
package/lib/grid/index.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
declare const Grid: import("../utils").WithInstall<import("vue").DefineComponent<{
|
1
|
+
export declare const Grid: import("../utils").WithInstall<import("vue").DefineComponent<{
|
2
2
|
square: BooleanConstructor;
|
3
3
|
center: {
|
4
4
|
type: BooleanConstructor;
|
@@ -28,24 +28,23 @@ declare const Grid: import("../utils").WithInstall<import("vue").DefineComponent
|
|
28
28
|
clickable?: unknown;
|
29
29
|
columnNum?: unknown;
|
30
30
|
} & {
|
31
|
+
reverse: boolean;
|
31
32
|
center: boolean;
|
32
33
|
border: boolean;
|
33
34
|
clickable: boolean;
|
34
|
-
reverse: boolean;
|
35
35
|
square: boolean;
|
36
36
|
columnNum: string | number;
|
37
37
|
} & {
|
38
38
|
iconSize?: string | number | undefined;
|
39
39
|
direction?: import("./Grid").GridDirection | undefined;
|
40
40
|
gutter?: string | number | undefined;
|
41
|
-
}
|
41
|
+
}>, {
|
42
|
+
reverse: boolean;
|
42
43
|
center: boolean;
|
43
44
|
border: boolean;
|
44
45
|
clickable: boolean;
|
45
|
-
reverse: boolean;
|
46
46
|
square: boolean;
|
47
47
|
columnNum: string | number;
|
48
48
|
}>>;
|
49
49
|
export default Grid;
|
50
|
-
export { Grid };
|
51
50
|
export type { GridDirection } from './Grid';
|
package/lib/grid/index.js
CHANGED
package/lib/grid-item/index.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
declare const GridItem: import("../utils").WithInstall<import("vue").DefineComponent<{
|
1
|
+
export declare const GridItem: import("../utils").WithInstall<import("vue").DefineComponent<{
|
2
2
|
to: import("vue").PropType<import("vue-router").RouteLocationRaw>;
|
3
3
|
url: StringConstructor;
|
4
4
|
replace: BooleanConstructor;
|
@@ -30,9 +30,8 @@ declare const GridItem: import("../utils").WithInstall<import("vue").DefineCompo
|
|
30
30
|
iconPrefix?: string | undefined;
|
31
31
|
icon?: string | undefined;
|
32
32
|
iconColor?: string | undefined;
|
33
|
-
}
|
33
|
+
}>, {
|
34
34
|
replace: boolean;
|
35
35
|
dot: boolean;
|
36
36
|
}>>;
|
37
37
|
export default GridItem;
|
38
|
-
export { GridItem };
|
package/lib/grid-item/index.js
CHANGED
package/lib/icon/Icon.d.ts
CHANGED