vant 3.2.4 → 3.2.5
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 +59 -63
- package/es/action-bar-icon/ActionBarIcon.js +2 -2
- package/es/action-sheet/ActionSheet.d.ts +7 -7
- package/es/action-sheet/ActionSheet.js +3 -6
- package/es/action-sheet/index.d.ts +7 -7
- package/es/address-edit/AddressEdit.d.ts +13 -14
- package/es/address-edit/AddressEdit.js +6 -17
- package/es/address-edit/AddressEditDetail.js +3 -3
- package/es/address-edit/index.d.ts +7 -7
- package/es/address-list/AddressList.d.ts +9 -10
- package/es/address-list/AddressList.js +5 -11
- package/es/address-list/AddressListItem.d.ts +4 -4
- package/es/address-list/AddressListItem.js +3 -6
- package/es/address-list/index.d.ts +8 -8
- package/es/area/Area.d.ts +43 -44
- package/es/area/Area.js +4 -12
- package/es/area/index.d.ts +27 -27
- package/es/badge/Badge.d.ts +7 -7
- package/es/badge/Badge.js +5 -8
- package/es/badge/index.d.ts +7 -7
- package/es/button/Button.d.ts +29 -27
- package/es/button/Button.js +7 -22
- package/es/button/index.d.ts +27 -27
- package/es/calendar/Calendar.d.ts +46 -47
- package/es/calendar/Calendar.js +10 -27
- package/es/calendar/CalendarDay.d.ts +7 -7
- package/es/calendar/CalendarDay.js +4 -10
- package/es/calendar/CalendarMonth.d.ts +19 -19
- package/es/calendar/CalendarMonth.js +8 -17
- package/es/calendar/index.d.ts +28 -28
- package/es/calendar/utils.d.ts +2 -2
- package/es/calendar/utils.js +1 -3
- package/es/card/Card.d.ts +4 -4
- package/es/card/Card.js +5 -8
- package/es/card/index.d.ts +4 -4
- package/es/cascader/Cascader.d.ts +14 -14
- package/es/cascader/Cascader.js +17 -23
- package/es/cascader/index.d.ts +13 -13
- package/es/cell/Cell.js +4 -4
- package/es/checkbox/Checkbox.d.ts +9 -9
- package/es/checkbox/Checker.d.ts +14 -14
- package/es/checkbox/Checker.js +6 -12
- package/es/checkbox/index.d.ts +5 -5
- package/es/checkbox-group/CheckboxGroup.d.ts +6 -6
- package/es/checkbox-group/CheckboxGroup.js +5 -8
- package/es/checkbox-group/index.d.ts +4 -4
- package/es/circle/Circle.d.ts +22 -22
- package/es/circle/Circle.js +9 -29
- package/es/circle/index.d.ts +22 -22
- package/es/col/Col.d.ts +4 -5
- package/es/col/Col.js +4 -10
- package/es/col/index.d.ts +3 -3
- package/es/collapse-item/CollapseItem.js +2 -2
- package/es/composables/use-lock-scroll.js +3 -3
- package/es/composables/use-placeholder.d.ts +1 -1
- package/es/config-provider/ConfigProvider.d.ts +4 -4
- package/es/config-provider/ConfigProvider.js +3 -6
- package/es/config-provider/index.d.ts +4 -4
- package/es/contact-card/ContactCard.d.ts +5 -6
- package/es/contact-card/ContactCard.js +3 -6
- package/es/contact-card/index.d.ts +5 -5
- package/es/count-down/CountDown.d.ts +14 -14
- package/es/count-down/CountDown.js +4 -10
- package/es/count-down/index.d.ts +10 -10
- package/es/coupon/Coupon.d.ts +3 -3
- package/es/coupon/Coupon.js +5 -15
- package/es/coupon/index.d.ts +3 -3
- package/es/coupon-cell/CouponCell.d.ts +2 -3
- package/es/coupon-cell/CouponCell.js +4 -13
- package/es/coupon-cell/index.d.ts +1 -1
- package/es/coupon-list/CouponList.d.ts +43 -44
- package/es/coupon-list/CouponList.js +10 -34
- package/es/coupon-list/index.d.ts +43 -43
- package/es/datetime-picker/DatePicker.d.ts +23 -25
- package/es/datetime-picker/DatePicker.js +2 -5
- package/es/datetime-picker/DatetimePicker.d.ts +1 -10
- package/es/datetime-picker/TimePicker.d.ts +16 -16
- package/es/datetime-picker/TimePicker.js +6 -18
- package/es/datetime-picker/index.d.ts +1 -10
- package/es/datetime-picker/utils.d.ts +9 -9
- package/es/datetime-picker/utils.js +1 -3
- package/es/dialog/Dialog.d.ts +6 -6
- package/es/dialog/Dialog.js +4 -7
- package/es/dialog/function-call.d.ts +6 -6
- package/es/divider/Divider.d.ts +2 -3
- package/es/divider/Divider.js +2 -5
- package/es/divider/index.d.ts +1 -1
- package/es/dropdown-item/DropdownItem.d.ts +9 -9
- package/es/dropdown-item/DropdownItem.js +3 -6
- package/es/dropdown-item/index.d.ts +5 -5
- package/es/dropdown-menu/DropdownMenu.d.ts +19 -19
- package/es/dropdown-menu/DropdownMenu.js +5 -11
- package/es/dropdown-menu/index.d.ts +10 -10
- package/es/empty/Empty.d.ts +4 -4
- package/es/empty/Empty.js +4 -7
- package/es/empty/index.d.ts +4 -4
- package/es/field/Field.d.ts +70 -70
- package/es/field/Field.js +14 -26
- package/es/field/index.d.ts +32 -32
- package/es/form/Form.d.ts +11 -11
- package/es/form/Form.js +4 -7
- package/es/form/index.d.ts +7 -7
- package/es/grid/Grid.js +4 -7
- package/es/grid-item/GridItem.d.ts +2 -2
- package/es/grid-item/GridItem.js +4 -4
- package/es/grid-item/index.d.ts +2 -2
- package/es/icon/Icon.d.ts +5 -6
- package/es/icon/Icon.js +6 -11
- package/es/icon/index.d.ts +5 -5
- package/es/image/Image.d.ts +10 -10
- package/es/image/Image.js +7 -13
- package/es/image/index.d.ts +10 -10
- package/es/image-preview/ImagePreview.d.ts +52 -52
- package/es/image-preview/ImagePreview.js +10 -31
- package/es/image-preview/ImagePreviewItem.js +6 -20
- package/es/image-preview/function-call.d.ts +31 -31
- package/es/index-anchor/IndexAnchor.js +3 -3
- package/es/index-bar/IndexBar.js +3 -6
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/list/List.d.ts +19 -19
- package/es/list/List.js +4 -10
- package/es/list/index.d.ts +10 -10
- package/es/loading/Loading.d.ts +5 -6
- package/es/loading/Loading.js +5 -8
- package/es/loading/index.d.ts +5 -5
- package/es/nav-bar/NavBar.js +2 -2
- package/es/notice-bar/NoticeBar.d.ts +17 -17
- package/es/notice-bar/NoticeBar.js +3 -9
- package/es/notice-bar/index.d.ts +11 -11
- package/es/notify/Notify.d.ts +10 -11
- package/es/notify/Notify.js +4 -7
- package/es/notify/function-call.d.ts +5 -5
- package/es/notify/function-call.js +17 -21
- package/es/number-keyboard/NumberKeyboard.d.ts +15 -15
- package/es/number-keyboard/NumberKeyboard.js +5 -14
- package/es/number-keyboard/NumberKeyboardKey.js +2 -2
- package/es/number-keyboard/index.d.ts +15 -15
- package/es/overlay/Overlay.js +5 -4
- package/es/pagination/Pagination.d.ts +18 -19
- package/es/pagination/Pagination.js +13 -33
- package/es/pagination/index.d.ts +18 -18
- package/es/password-input/PasswordInput.d.ts +6 -6
- package/es/password-input/PasswordInput.js +5 -11
- package/es/password-input/index.d.ts +6 -6
- package/es/picker/Picker.d.ts +29 -29
- package/es/picker/Picker.js +9 -27
- package/es/picker/PickerColumn.d.ts +15 -16
- package/es/picker/PickerColumn.js +25 -49
- package/es/picker/index.d.ts +22 -22
- package/es/picker/types.d.ts +2 -2
- package/es/popover/Popover.d.ts +27 -27
- package/es/popover/Popover.js +7 -22
- package/es/popover/index.d.ts +27 -27
- package/es/popup/Popup.d.ts +22 -22
- package/es/popup/Popup.js +5 -14
- package/es/popup/index.d.ts +15 -15
- package/es/popup/shared.js +3 -3
- package/es/progress/Progress.js +3 -3
- package/es/pull-refresh/PullRefresh.d.ts +9 -12
- package/es/pull-refresh/PullRefresh.js +6 -18
- package/es/pull-refresh/index.d.ts +9 -12
- package/es/radio/Radio.d.ts +5 -5
- package/es/radio/index.d.ts +5 -5
- package/es/radio-group/RadioGroup.js +2 -2
- package/es/rate/Rate.d.ts +21 -21
- package/es/rate/Rate.js +10 -22
- package/es/rate/index.d.ts +21 -21
- package/es/row/Row.d.ts +7 -7
- package/es/row/Row.js +4 -10
- package/es/row/index.d.ts +7 -7
- package/es/search/Search.d.ts +62 -62
- package/es/search/Search.js +4 -10
- package/es/search/index.d.ts +35 -35
- package/es/share-sheet/ShareSheet.d.ts +11 -12
- package/es/share-sheet/ShareSheet.js +3 -6
- package/es/share-sheet/index.d.ts +7 -7
- package/es/sidebar/Sidebar.js +2 -5
- package/es/sidebar-item/SidebarItem.js +2 -2
- package/es/skeleton/Skeleton.d.ts +10 -9
- package/es/skeleton/Skeleton.js +5 -11
- package/es/skeleton/index.d.ts +11 -9
- package/es/slider/Slider.d.ts +14 -14
- package/es/slider/Slider.js +18 -27
- package/es/slider/index.d.ts +14 -14
- package/es/stepper/Stepper.d.ts +23 -23
- package/es/stepper/Stepper.js +15 -32
- package/es/stepper/index.d.ts +23 -23
- package/es/steps/Steps.d.ts +20 -20
- package/es/steps/Steps.js +5 -14
- package/es/steps/index.d.ts +10 -10
- package/es/sticky/Sticky.d.ts +5 -5
- package/es/sticky/Sticky.js +5 -14
- package/es/sticky/index.d.ts +5 -5
- package/es/submit-bar/SubmitBar.d.ts +14 -14
- package/es/submit-bar/SubmitBar.js +5 -14
- package/es/submit-bar/index.d.ts +14 -14
- package/es/swipe/Swipe.d.ts +30 -30
- package/es/swipe/Swipe.js +7 -16
- package/es/swipe/index.d.ts +18 -18
- package/es/swipe-cell/SwipeCell.d.ts +8 -8
- package/es/swipe-cell/SwipeCell.js +5 -8
- package/es/swipe-cell/index.d.ts +5 -5
- package/es/switch/Switch.js +2 -2
- package/es/tab/Tab.js +3 -3
- package/es/tabbar/Tabbar.d.ts +2 -2
- package/es/tabbar/Tabbar.js +3 -6
- package/es/tabbar/index.d.ts +2 -2
- package/es/tabbar-item/TabbarItem.js +3 -3
- package/es/tabs/Tabs.d.ts +39 -39
- package/es/tabs/Tabs.js +18 -27
- package/es/tabs/TabsContent.d.ts +7 -7
- package/es/tabs/TabsContent.js +4 -13
- package/es/tabs/TabsTitle.js +2 -2
- package/es/tabs/index.d.ts +23 -23
- package/es/tag/Tag.d.ts +5 -6
- package/es/tag/Tag.js +3 -6
- package/es/tag/index.d.ts +5 -5
- package/es/toast/Toast.d.ts +20 -20
- package/es/toast/Toast.js +8 -20
- package/es/tree-select/TreeSelect.d.ts +10 -10
- package/es/tree-select/TreeSelect.js +6 -21
- package/es/tree-select/index.d.ts +10 -10
- package/es/uploader/Uploader.d.ts +65 -65
- package/es/uploader/Uploader.js +10 -31
- package/es/uploader/UploaderPreviewItem.d.ts +6 -6
- package/es/uploader/UploaderPreviewItem.js +5 -8
- package/es/uploader/index.d.ts +45 -45
- package/es/uploader/utils.d.ts +3 -3
- package/es/uploader/utils.js +2 -10
- package/es/utils/{base.d.ts → basic.d.ts} +1 -6
- package/es/utils/{base.js → basic.js} +1 -7
- package/{lib/utils/create/bem.d.ts → es/utils/create.d.ts} +7 -4
- package/es/utils/create.js +53 -0
- package/{lib/utils/dom/scroll.d.ts → es/utils/dom.d.ts} +5 -2
- package/es/utils/dom.js +70 -0
- package/es/utils/format.d.ts +12 -0
- package/es/utils/format.js +127 -0
- package/es/utils/index.d.ts +4 -7
- package/es/utils/index.js +5 -8
- package/es/utils/interceptor.js +2 -1
- package/es/utils/mount-component.js +5 -3
- package/es/utils/props.d.ts +31 -0
- package/es/utils/props.js +30 -0
- package/es/utils/validate.d.ts +7 -7
- package/es/utils/validate.js +8 -22
- package/es/utils/with-install.js +1 -1
- package/lib/action-bar-icon/ActionBarIcon.js +1 -1
- package/lib/action-sheet/ActionSheet.d.ts +7 -7
- package/lib/action-sheet/ActionSheet.js +2 -5
- package/lib/action-sheet/index.d.ts +7 -7
- package/lib/address-edit/AddressEdit.d.ts +13 -14
- package/lib/address-edit/AddressEdit.js +5 -16
- package/lib/address-edit/AddressEditDetail.js +2 -2
- package/lib/address-edit/index.d.ts +7 -7
- package/lib/address-list/AddressList.d.ts +9 -10
- package/lib/address-list/AddressList.js +4 -10
- package/lib/address-list/AddressListItem.d.ts +4 -4
- package/lib/address-list/AddressListItem.js +2 -5
- package/lib/address-list/index.d.ts +8 -8
- package/lib/area/Area.d.ts +43 -44
- package/lib/area/Area.js +3 -11
- package/lib/area/index.d.ts +27 -27
- package/lib/badge/Badge.d.ts +7 -7
- package/lib/badge/Badge.js +4 -7
- package/lib/badge/index.d.ts +7 -7
- package/lib/button/Button.d.ts +29 -27
- package/lib/button/Button.js +6 -21
- package/lib/button/index.d.ts +27 -27
- package/lib/calendar/Calendar.d.ts +46 -47
- package/lib/calendar/Calendar.js +9 -26
- package/lib/calendar/CalendarDay.d.ts +7 -7
- package/lib/calendar/CalendarDay.js +3 -9
- package/lib/calendar/CalendarMonth.d.ts +19 -19
- package/lib/calendar/CalendarMonth.js +6 -15
- package/lib/calendar/index.d.ts +28 -28
- package/lib/calendar/utils.d.ts +2 -2
- package/lib/calendar/utils.js +9 -7
- package/lib/card/Card.d.ts +4 -4
- package/lib/card/Card.js +4 -7
- package/lib/card/index.d.ts +4 -4
- package/lib/cascader/Cascader.d.ts +14 -14
- package/lib/cascader/Cascader.js +16 -22
- package/lib/cascader/index.d.ts +13 -13
- package/lib/cell/Cell.js +3 -3
- package/lib/checkbox/Checkbox.d.ts +9 -9
- package/lib/checkbox/Checker.d.ts +14 -14
- package/lib/checkbox/Checker.js +5 -11
- package/lib/checkbox/index.d.ts +5 -5
- package/lib/checkbox-group/CheckboxGroup.d.ts +6 -6
- package/lib/checkbox-group/CheckboxGroup.js +4 -7
- package/lib/checkbox-group/index.d.ts +4 -4
- package/lib/circle/Circle.d.ts +22 -22
- package/lib/circle/Circle.js +8 -28
- package/lib/circle/index.d.ts +22 -22
- package/lib/col/Col.d.ts +4 -5
- package/lib/col/Col.js +3 -9
- package/lib/col/index.d.ts +3 -3
- package/lib/collapse-item/CollapseItem.js +1 -1
- package/lib/composables/on-popup-reopen.js +1 -1
- package/lib/composables/use-lock-scroll.js +2 -2
- package/lib/composables/use-placeholder.d.ts +1 -1
- package/lib/composables/use-route.js +1 -1
- package/lib/config-provider/ConfigProvider.d.ts +4 -4
- package/lib/config-provider/ConfigProvider.js +2 -5
- package/lib/config-provider/index.d.ts +4 -4
- package/lib/contact-card/ContactCard.d.ts +5 -6
- package/lib/contact-card/ContactCard.js +2 -5
- package/lib/contact-card/index.d.ts +5 -5
- package/lib/count-down/CountDown.d.ts +14 -14
- package/lib/count-down/CountDown.js +3 -9
- package/lib/count-down/index.d.ts +10 -10
- package/lib/coupon/Coupon.d.ts +3 -3
- package/lib/coupon/Coupon.js +4 -14
- package/lib/coupon/index.d.ts +3 -3
- package/lib/coupon-cell/CouponCell.d.ts +2 -3
- package/lib/coupon-cell/CouponCell.js +3 -12
- package/lib/coupon-cell/index.d.ts +1 -1
- package/lib/coupon-list/CouponList.d.ts +43 -44
- package/lib/coupon-list/CouponList.js +9 -33
- package/lib/coupon-list/index.d.ts +43 -43
- package/lib/datetime-picker/DatePicker.d.ts +23 -25
- package/lib/datetime-picker/DatePicker.js +1 -4
- package/lib/datetime-picker/DatetimePicker.d.ts +1 -10
- package/lib/datetime-picker/TimePicker.d.ts +16 -16
- package/lib/datetime-picker/TimePicker.js +5 -17
- package/lib/datetime-picker/index.d.ts +1 -10
- package/lib/datetime-picker/utils.d.ts +9 -9
- package/lib/datetime-picker/utils.js +6 -6
- package/lib/dialog/Dialog.d.ts +6 -6
- package/lib/dialog/Dialog.js +3 -6
- package/lib/dialog/function-call.d.ts +6 -6
- package/lib/divider/Divider.d.ts +2 -3
- package/lib/divider/Divider.js +1 -4
- package/lib/divider/index.d.ts +1 -1
- package/lib/dropdown-item/DropdownItem.d.ts +9 -9
- package/lib/dropdown-item/DropdownItem.js +2 -5
- package/lib/dropdown-item/index.d.ts +5 -5
- package/lib/dropdown-menu/DropdownMenu.d.ts +19 -19
- package/lib/dropdown-menu/DropdownMenu.js +4 -10
- package/lib/dropdown-menu/index.d.ts +10 -10
- package/lib/empty/Empty.d.ts +4 -4
- package/lib/empty/Empty.js +3 -6
- package/lib/empty/index.d.ts +4 -4
- package/lib/field/Field.d.ts +70 -70
- package/lib/field/Field.js +14 -26
- package/lib/field/index.d.ts +32 -32
- package/lib/field/utils.js +5 -5
- package/lib/form/Form.d.ts +11 -11
- package/lib/form/Form.js +3 -6
- package/lib/form/index.d.ts +7 -7
- package/lib/grid/Grid.js +3 -6
- package/lib/grid-item/GridItem.d.ts +2 -2
- package/lib/grid-item/GridItem.js +3 -3
- package/lib/grid-item/index.d.ts +2 -2
- package/lib/icon/Icon.d.ts +5 -6
- package/lib/icon/Icon.js +5 -10
- package/lib/icon/index.d.ts +5 -5
- package/lib/image/Image.d.ts +10 -10
- package/lib/image/Image.js +6 -12
- package/lib/image/index.d.ts +10 -10
- package/lib/image-preview/ImagePreview.d.ts +52 -52
- package/lib/image-preview/ImagePreview.js +8 -29
- package/lib/image-preview/ImagePreviewItem.js +5 -19
- package/lib/image-preview/function-call.d.ts +31 -31
- package/lib/index-anchor/IndexAnchor.js +4 -4
- package/lib/index-bar/IndexBar.js +2 -5
- package/lib/index.d.ts +1 -1
- package/lib/index.js +3 -2
- package/lib/list/List.d.ts +19 -19
- package/lib/list/List.js +3 -9
- package/lib/list/index.d.ts +10 -10
- package/lib/loading/Loading.d.ts +5 -6
- package/lib/loading/Loading.js +4 -7
- package/lib/loading/index.d.ts +5 -5
- package/lib/nav-bar/NavBar.js +1 -1
- package/lib/notice-bar/NoticeBar.d.ts +17 -17
- package/lib/notice-bar/NoticeBar.js +2 -8
- package/lib/notice-bar/index.d.ts +11 -11
- package/lib/notify/Notify.d.ts +10 -11
- package/lib/notify/Notify.js +3 -6
- package/lib/notify/function-call.d.ts +5 -5
- package/lib/notify/function-call.js +17 -21
- package/lib/number-keyboard/NumberKeyboard.d.ts +15 -15
- package/lib/number-keyboard/NumberKeyboard.js +4 -13
- package/lib/number-keyboard/NumberKeyboardKey.js +1 -1
- package/lib/number-keyboard/index.d.ts +15 -15
- package/lib/overlay/Overlay.js +4 -3
- package/lib/pagination/Pagination.d.ts +18 -19
- package/lib/pagination/Pagination.js +12 -32
- package/lib/pagination/index.d.ts +18 -18
- package/lib/password-input/PasswordInput.d.ts +6 -6
- package/lib/password-input/PasswordInput.js +4 -10
- package/lib/password-input/index.d.ts +6 -6
- package/lib/picker/Picker.d.ts +29 -29
- package/lib/picker/Picker.js +9 -27
- package/lib/picker/PickerColumn.d.ts +15 -16
- package/lib/picker/PickerColumn.js +24 -48
- package/lib/picker/index.d.ts +22 -22
- package/lib/picker/types.d.ts +2 -2
- package/lib/popover/Popover.d.ts +27 -27
- package/lib/popover/Popover.js +6 -21
- package/lib/popover/index.d.ts +27 -27
- package/lib/popup/Popup.d.ts +22 -22
- package/lib/popup/Popup.js +4 -13
- package/lib/popup/index.d.ts +15 -15
- package/lib/popup/shared.js +3 -3
- package/lib/progress/Progress.js +2 -2
- package/lib/pull-refresh/PullRefresh.d.ts +9 -12
- package/lib/pull-refresh/PullRefresh.js +5 -17
- package/lib/pull-refresh/index.d.ts +9 -12
- package/lib/radio/Radio.d.ts +5 -5
- package/lib/radio/index.d.ts +5 -5
- package/lib/radio-group/RadioGroup.js +1 -1
- package/lib/rate/Rate.d.ts +21 -21
- package/lib/rate/Rate.js +8 -20
- package/lib/rate/index.d.ts +21 -21
- package/lib/row/Row.d.ts +7 -7
- package/lib/row/Row.js +3 -9
- package/lib/row/index.d.ts +7 -7
- package/lib/search/Search.d.ts +62 -62
- package/lib/search/Search.js +3 -9
- package/lib/search/index.d.ts +35 -35
- package/lib/share-sheet/ShareSheet.d.ts +11 -12
- package/lib/share-sheet/ShareSheet.js +2 -5
- package/lib/share-sheet/index.d.ts +7 -7
- package/lib/sidebar/Sidebar.js +1 -4
- package/lib/sidebar-item/SidebarItem.js +1 -1
- package/lib/skeleton/Skeleton.d.ts +10 -9
- package/lib/skeleton/Skeleton.js +4 -10
- package/lib/skeleton/index.d.ts +11 -9
- package/lib/slider/Slider.d.ts +14 -14
- package/lib/slider/Slider.js +17 -26
- package/lib/slider/index.d.ts +14 -14
- package/lib/stepper/Stepper.d.ts +23 -23
- package/lib/stepper/Stepper.js +14 -31
- package/lib/stepper/index.d.ts +23 -23
- package/lib/steps/Steps.d.ts +20 -20
- package/lib/steps/Steps.js +4 -13
- package/lib/steps/index.d.ts +10 -10
- package/lib/sticky/Sticky.d.ts +5 -5
- package/lib/sticky/Sticky.js +4 -13
- package/lib/sticky/index.d.ts +5 -5
- package/lib/submit-bar/SubmitBar.d.ts +14 -14
- package/lib/submit-bar/SubmitBar.js +4 -13
- package/lib/submit-bar/index.d.ts +14 -14
- package/lib/swipe/Swipe.d.ts +30 -30
- package/lib/swipe/Swipe.js +6 -15
- package/lib/swipe/index.d.ts +18 -18
- package/lib/swipe-cell/SwipeCell.d.ts +8 -8
- package/lib/swipe-cell/SwipeCell.js +4 -7
- package/lib/swipe-cell/index.d.ts +5 -5
- package/lib/switch/Switch.js +1 -1
- package/lib/tab/Tab.js +2 -2
- package/lib/tabbar/Tabbar.d.ts +2 -2
- package/lib/tabbar/Tabbar.js +2 -5
- package/lib/tabbar/index.d.ts +2 -2
- package/lib/tabbar-item/TabbarItem.js +2 -2
- package/lib/tabs/Tabs.d.ts +39 -39
- package/lib/tabs/Tabs.js +16 -25
- package/lib/tabs/TabsContent.d.ts +7 -7
- package/lib/tabs/TabsContent.js +3 -12
- package/lib/tabs/TabsTitle.js +1 -1
- package/lib/tabs/index.d.ts +23 -23
- package/lib/tag/Tag.d.ts +5 -6
- package/lib/tag/Tag.js +2 -5
- package/lib/tag/index.d.ts +5 -5
- package/lib/toast/Toast.d.ts +20 -20
- package/lib/toast/Toast.js +7 -19
- package/lib/tree-select/TreeSelect.d.ts +10 -10
- package/lib/tree-select/TreeSelect.js +5 -20
- package/lib/tree-select/index.d.ts +10 -10
- package/lib/uploader/Uploader.d.ts +65 -65
- package/lib/uploader/Uploader.js +9 -30
- package/lib/uploader/UploaderPreviewItem.d.ts +6 -6
- package/lib/uploader/UploaderPreviewItem.js +4 -7
- package/lib/uploader/index.d.ts +45 -45
- package/lib/uploader/utils.d.ts +3 -3
- package/lib/uploader/utils.js +11 -14
- package/lib/utils/{base.d.ts → basic.d.ts} +1 -6
- package/lib/utils/{base.js → basic.js} +4 -11
- package/lib/utils/constant.js +1 -1
- package/{es/utils/create/bem.d.ts → lib/utils/create.d.ts} +7 -4
- package/lib/utils/create.js +68 -0
- package/{es/utils/dom/scroll.d.ts → lib/utils/dom.d.ts} +5 -2
- package/lib/utils/dom.js +98 -0
- package/lib/utils/format.d.ts +12 -0
- package/lib/utils/format.js +157 -0
- package/lib/utils/index.d.ts +4 -7
- package/lib/utils/index.js +28 -52
- package/lib/utils/interceptor.js +5 -3
- package/lib/utils/mount-component.js +5 -3
- package/lib/utils/props.d.ts +31 -0
- package/lib/utils/props.js +53 -0
- package/lib/utils/validate.d.ts +7 -7
- package/lib/utils/validate.js +24 -29
- package/lib/utils/with-install.js +2 -2
- package/lib/vant.es.js +1079 -1788
- package/lib/vant.es.min.js +15117 -1
- package/lib/vant.js +1078 -1787
- package/lib/vant.min.js +1 -1
- package/package.json +7 -7
- package/vetur/attributes.json +836 -836
- package/vetur/tags.json +275 -275
- package/vetur/web-types.json +2255 -2251
- package/es/utils/create/bem.js +0 -35
- package/es/utils/create/index.d.ts +0 -1
- package/es/utils/create/index.js +0 -6
- package/es/utils/create/translate.d.ts +0 -2
- package/es/utils/create/translate.js +0 -12
- package/es/utils/dom/event.d.ts +0 -3
- package/es/utils/dom/event.js +0 -18
- package/es/utils/dom/scroll.js +0 -56
- package/es/utils/dom/style.d.ts +0 -2
- package/es/utils/dom/style.js +0 -16
- package/es/utils/format/number.d.ts +0 -4
- package/es/utils/format/number.js +0 -40
- package/es/utils/format/string.d.ts +0 -3
- package/es/utils/format/string.js +0 -16
- package/es/utils/format/unit.d.ts +0 -5
- package/es/utils/format/unit.js +0 -76
- package/lib/utils/create/bem.js +0 -40
- package/lib/utils/create/index.d.ts +0 -1
- package/lib/utils/create/index.js +0 -13
- package/lib/utils/create/translate.d.ts +0 -2
- package/lib/utils/create/translate.js +0 -24
- package/lib/utils/dom/event.d.ts +0 -3
- package/lib/utils/dom/event.js +0 -27
- package/lib/utils/dom/scroll.js +0 -75
- package/lib/utils/dom/style.d.ts +0 -2
- package/lib/utils/dom/style.js +0 -22
- package/lib/utils/format/number.d.ts +0 -4
- package/lib/utils/format/number.js +0 -48
- package/lib/utils/format/string.d.ts +0 -3
- package/lib/utils/format/string.js +0 -25
- package/lib/utils/format/unit.d.ts +0 -5
- package/lib/utils/format/unit.js +0 -89
package/es/loading/Loading.d.ts
CHANGED
@@ -1,22 +1,21 @@
|
|
1
|
-
import { PropType } from 'vue';
|
2
1
|
export declare type LoadingType = 'circular' | 'spinner';
|
3
2
|
declare const _default: import("vue").DefineComponent<{
|
4
3
|
size: (NumberConstructor | StringConstructor)[];
|
4
|
+
type: {
|
5
|
+
type: import("vue").PropType<LoadingType>;
|
6
|
+
default: LoadingType;
|
7
|
+
};
|
5
8
|
color: StringConstructor;
|
6
9
|
vertical: BooleanConstructor;
|
7
10
|
textSize: (NumberConstructor | StringConstructor)[];
|
8
11
|
textColor: StringConstructor;
|
9
|
-
type: {
|
10
|
-
type: PropType<LoadingType>;
|
11
|
-
default: string;
|
12
|
-
};
|
13
12
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
|
14
13
|
size?: unknown;
|
14
|
+
type?: unknown;
|
15
15
|
color?: unknown;
|
16
16
|
vertical?: unknown;
|
17
17
|
textSize?: unknown;
|
18
18
|
textColor?: unknown;
|
19
|
-
type?: unknown;
|
20
19
|
} & {
|
21
20
|
type: LoadingType;
|
22
21
|
vertical: boolean;
|
package/es/loading/Loading.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { createVNode as _createVNode } from "vue";
|
2
2
|
import { computed, defineComponent } from 'vue';
|
3
|
-
import {
|
3
|
+
import { extend, addUnit, numericProp, getSizeStyle, makeStringProp, createNamespace } from '../utils';
|
4
4
|
var [name, bem] = createNamespace('loading');
|
5
5
|
var SpinIcon = Array(12).fill(null).map((_, index) => _createVNode("i", {
|
6
6
|
"class": bem('line', String(index + 1))
|
@@ -19,15 +19,12 @@ var CircularIcon = _createVNode("svg", {
|
|
19
19
|
export default defineComponent({
|
20
20
|
name,
|
21
21
|
props: {
|
22
|
-
size:
|
22
|
+
size: numericProp,
|
23
|
+
type: makeStringProp('circular'),
|
23
24
|
color: String,
|
24
25
|
vertical: Boolean,
|
25
|
-
textSize:
|
26
|
-
textColor: String
|
27
|
-
type: {
|
28
|
-
type: String,
|
29
|
-
default: 'circular'
|
30
|
-
}
|
26
|
+
textSize: numericProp,
|
27
|
+
textColor: String
|
31
28
|
},
|
32
29
|
|
33
30
|
setup(props, {
|
package/es/loading/index.d.ts
CHANGED
@@ -1,20 +1,20 @@
|
|
1
1
|
export declare const Loading: import("../utils").WithInstall<import("vue").DefineComponent<{
|
2
2
|
size: (NumberConstructor | StringConstructor)[];
|
3
|
+
type: {
|
4
|
+
type: import("vue").PropType<import("./Loading").LoadingType>;
|
5
|
+
default: import("./Loading").LoadingType;
|
6
|
+
};
|
3
7
|
color: StringConstructor;
|
4
8
|
vertical: BooleanConstructor;
|
5
9
|
textSize: (NumberConstructor | StringConstructor)[];
|
6
10
|
textColor: StringConstructor;
|
7
|
-
type: {
|
8
|
-
type: import("vue").PropType<import("./Loading").LoadingType>;
|
9
|
-
default: string;
|
10
|
-
};
|
11
11
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
|
12
12
|
size?: unknown;
|
13
|
+
type?: unknown;
|
13
14
|
color?: unknown;
|
14
15
|
vertical?: unknown;
|
15
16
|
textSize?: unknown;
|
16
17
|
textColor?: unknown;
|
17
|
-
type?: unknown;
|
18
18
|
} & {
|
19
19
|
type: import("./Loading").LoadingType;
|
20
20
|
vertical: boolean;
|
package/es/nav-bar/NavBar.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { createVNode as _createVNode } from "vue";
|
2
2
|
import { ref, defineComponent } from 'vue'; // Utils
|
3
3
|
|
4
|
-
import { truthProp, BORDER_BOTTOM, getZIndexStyle, createNamespace } from '../utils'; // Composables
|
4
|
+
import { truthProp, numericProp, BORDER_BOTTOM, getZIndexStyle, createNamespace } from '../utils'; // Composables
|
5
5
|
|
6
6
|
import { usePlaceholder } from '../composables/use-placeholder'; // Components
|
7
7
|
|
@@ -12,7 +12,7 @@ export default defineComponent({
|
|
12
12
|
props: {
|
13
13
|
title: String,
|
14
14
|
fixed: Boolean,
|
15
|
-
zIndex:
|
15
|
+
zIndex: numericProp,
|
16
16
|
border: truthProp,
|
17
17
|
leftText: String,
|
18
18
|
rightText: String,
|
@@ -4,13 +4,6 @@ declare const props: {
|
|
4
4
|
text: StringConstructor;
|
5
5
|
mode: PropType<NoticeBarMode>;
|
6
6
|
color: StringConstructor;
|
7
|
-
leftIcon: StringConstructor;
|
8
|
-
wrapable: BooleanConstructor;
|
9
|
-
background: StringConstructor;
|
10
|
-
scrollable: {
|
11
|
-
type: PropType<boolean | null>;
|
12
|
-
default: null;
|
13
|
-
};
|
14
7
|
delay: {
|
15
8
|
type: (NumberConstructor | StringConstructor)[];
|
16
9
|
default: number;
|
@@ -19,12 +12,6 @@ declare const props: {
|
|
19
12
|
type: (NumberConstructor | StringConstructor)[];
|
20
13
|
default: number;
|
21
14
|
};
|
22
|
-
};
|
23
|
-
export declare type NoticeBarProps = ExtractPropTypes<typeof props>;
|
24
|
-
declare const _default: import("vue").DefineComponent<{
|
25
|
-
text: StringConstructor;
|
26
|
-
mode: PropType<NoticeBarMode>;
|
27
|
-
color: StringConstructor;
|
28
15
|
leftIcon: StringConstructor;
|
29
16
|
wrapable: BooleanConstructor;
|
30
17
|
background: StringConstructor;
|
@@ -32,6 +19,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
32
19
|
type: PropType<boolean | null>;
|
33
20
|
default: null;
|
34
21
|
};
|
22
|
+
};
|
23
|
+
export declare type NoticeBarProps = ExtractPropTypes<typeof props>;
|
24
|
+
declare const _default: import("vue").DefineComponent<{
|
25
|
+
text: StringConstructor;
|
26
|
+
mode: PropType<NoticeBarMode>;
|
27
|
+
color: StringConstructor;
|
35
28
|
delay: {
|
36
29
|
type: (NumberConstructor | StringConstructor)[];
|
37
30
|
default: number;
|
@@ -40,21 +33,28 @@ declare const _default: import("vue").DefineComponent<{
|
|
40
33
|
type: (NumberConstructor | StringConstructor)[];
|
41
34
|
default: number;
|
42
35
|
};
|
36
|
+
leftIcon: StringConstructor;
|
37
|
+
wrapable: BooleanConstructor;
|
38
|
+
background: StringConstructor;
|
39
|
+
scrollable: {
|
40
|
+
type: PropType<boolean | null>;
|
41
|
+
default: null;
|
42
|
+
};
|
43
43
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "replay")[], "close" | "replay", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
|
44
44
|
text?: unknown;
|
45
45
|
mode?: unknown;
|
46
46
|
color?: unknown;
|
47
|
+
delay?: unknown;
|
48
|
+
speed?: unknown;
|
47
49
|
leftIcon?: unknown;
|
48
50
|
wrapable?: unknown;
|
49
51
|
background?: unknown;
|
50
52
|
scrollable?: unknown;
|
51
|
-
delay?: unknown;
|
52
|
-
speed?: unknown;
|
53
53
|
} & {
|
54
54
|
scrollable: boolean | null;
|
55
55
|
speed: string | number;
|
56
|
-
wrapable: boolean;
|
57
56
|
delay: string | number;
|
57
|
+
wrapable: boolean;
|
58
58
|
} & {
|
59
59
|
text?: string | undefined;
|
60
60
|
color?: string | undefined;
|
@@ -67,7 +67,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
67
67
|
}, {
|
68
68
|
scrollable: boolean | null;
|
69
69
|
speed: string | number;
|
70
|
-
wrapable: boolean;
|
71
70
|
delay: string | number;
|
71
|
+
wrapable: boolean;
|
72
72
|
}>;
|
73
73
|
export default _default;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { withDirectives as _withDirectives, vShow as _vShow, createVNode as _createVNode } from "vue";
|
2
2
|
import { ref, watch, reactive, defineComponent } from 'vue'; // Utils
|
3
3
|
|
4
|
-
import { isDef, createNamespace } from '../utils'; // Composables
|
4
|
+
import { isDef, createNamespace, makeNumericProp } from '../utils'; // Composables
|
5
5
|
|
6
6
|
import { raf, useRect, doubleRaf, useEventListener, onMountedOrActivated } from '@vant/use';
|
7
7
|
import { useExpose } from '../composables/use-expose';
|
@@ -14,20 +14,14 @@ var props = {
|
|
14
14
|
text: String,
|
15
15
|
mode: String,
|
16
16
|
color: String,
|
17
|
+
delay: makeNumericProp(1),
|
18
|
+
speed: makeNumericProp(60),
|
17
19
|
leftIcon: String,
|
18
20
|
wrapable: Boolean,
|
19
21
|
background: String,
|
20
22
|
scrollable: {
|
21
23
|
type: Boolean,
|
22
24
|
default: null
|
23
|
-
},
|
24
|
-
delay: {
|
25
|
-
type: [Number, String],
|
26
|
-
default: 1
|
27
|
-
},
|
28
|
-
speed: {
|
29
|
-
type: [Number, String],
|
30
|
-
default: 60
|
31
25
|
}
|
32
26
|
};
|
33
27
|
export default defineComponent({
|
package/es/notice-bar/index.d.ts
CHANGED
@@ -3,13 +3,6 @@ export declare const NoticeBar: import("../utils").WithInstall<import("vue").Def
|
|
3
3
|
text: StringConstructor;
|
4
4
|
mode: import("vue").PropType<import("./types").NoticeBarMode>;
|
5
5
|
color: StringConstructor;
|
6
|
-
leftIcon: StringConstructor;
|
7
|
-
wrapable: BooleanConstructor;
|
8
|
-
background: StringConstructor;
|
9
|
-
scrollable: {
|
10
|
-
type: import("vue").PropType<boolean | null>;
|
11
|
-
default: null;
|
12
|
-
};
|
13
6
|
delay: {
|
14
7
|
type: (NumberConstructor | StringConstructor)[];
|
15
8
|
default: number;
|
@@ -18,21 +11,28 @@ export declare const NoticeBar: import("../utils").WithInstall<import("vue").Def
|
|
18
11
|
type: (NumberConstructor | StringConstructor)[];
|
19
12
|
default: number;
|
20
13
|
};
|
14
|
+
leftIcon: StringConstructor;
|
15
|
+
wrapable: BooleanConstructor;
|
16
|
+
background: StringConstructor;
|
17
|
+
scrollable: {
|
18
|
+
type: import("vue").PropType<boolean | null>;
|
19
|
+
default: null;
|
20
|
+
};
|
21
21
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "replay")[], "close" | "replay", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
|
22
22
|
text?: unknown;
|
23
23
|
mode?: unknown;
|
24
24
|
color?: unknown;
|
25
|
+
delay?: unknown;
|
26
|
+
speed?: unknown;
|
25
27
|
leftIcon?: unknown;
|
26
28
|
wrapable?: unknown;
|
27
29
|
background?: unknown;
|
28
30
|
scrollable?: unknown;
|
29
|
-
delay?: unknown;
|
30
|
-
speed?: unknown;
|
31
31
|
} & {
|
32
32
|
scrollable: boolean | null;
|
33
33
|
speed: string | number;
|
34
|
-
wrapable: boolean;
|
35
34
|
delay: string | number;
|
35
|
+
wrapable: boolean;
|
36
36
|
} & {
|
37
37
|
text?: string | undefined;
|
38
38
|
color?: string | undefined;
|
@@ -45,8 +45,8 @@ export declare const NoticeBar: import("../utils").WithInstall<import("vue").Def
|
|
45
45
|
}, {
|
46
46
|
scrollable: boolean | null;
|
47
47
|
speed: string | number;
|
48
|
-
wrapable: boolean;
|
49
48
|
delay: string | number;
|
49
|
+
wrapable: boolean;
|
50
50
|
}>>;
|
51
51
|
export default NoticeBar;
|
52
52
|
export type { NoticeBarProps };
|
package/es/notify/Notify.d.ts
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
import { PropType } from 'vue';
|
2
1
|
import type { NotifyType } from './types';
|
3
2
|
declare const _default: import("vue").DefineComponent<{
|
4
3
|
show: BooleanConstructor;
|
@@ -8,7 +7,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
8
7
|
default: true;
|
9
8
|
};
|
10
9
|
duration: (NumberConstructor | StringConstructor)[];
|
11
|
-
teleport: PropType<string | import("vue").RendererElement | null | undefined>;
|
10
|
+
teleport: import("vue").PropType<string | import("vue").RendererElement | null | undefined>;
|
12
11
|
lockScroll: {
|
13
12
|
type: BooleanConstructor;
|
14
13
|
default: true;
|
@@ -17,24 +16,24 @@ declare const _default: import("vue").DefineComponent<{
|
|
17
16
|
type: BooleanConstructor;
|
18
17
|
default: true;
|
19
18
|
};
|
20
|
-
beforeClose: PropType<import("../utils").Interceptor>;
|
21
|
-
overlayStyle: PropType<import("vue").CSSProperties>;
|
22
|
-
overlayClass: PropType<unknown>;
|
19
|
+
beforeClose: import("vue").PropType<import("../utils").Interceptor>;
|
20
|
+
overlayStyle: import("vue").PropType<import("vue").CSSProperties>;
|
21
|
+
overlayClass: import("vue").PropType<unknown>;
|
23
22
|
transitionAppear: BooleanConstructor;
|
24
23
|
closeOnClickOverlay: {
|
25
24
|
type: BooleanConstructor;
|
26
25
|
default: true;
|
27
26
|
};
|
28
27
|
} & {
|
28
|
+
type: {
|
29
|
+
type: import("vue").PropType<NotifyType>;
|
30
|
+
default: NotifyType;
|
31
|
+
};
|
29
32
|
color: StringConstructor;
|
30
33
|
message: (NumberConstructor | StringConstructor)[];
|
31
|
-
className: PropType<unknown>;
|
34
|
+
className: import("vue").PropType<unknown>;
|
32
35
|
background: StringConstructor;
|
33
36
|
lockScroll: BooleanConstructor;
|
34
|
-
type: {
|
35
|
-
type: PropType<NotifyType>;
|
36
|
-
default: string;
|
37
|
-
};
|
38
37
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
|
39
38
|
show?: unknown;
|
40
39
|
zIndex?: unknown;
|
@@ -48,11 +47,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
48
47
|
overlayClass?: unknown;
|
49
48
|
transitionAppear?: unknown;
|
50
49
|
closeOnClickOverlay?: unknown;
|
50
|
+
type?: unknown;
|
51
51
|
color?: unknown;
|
52
52
|
message?: unknown;
|
53
53
|
className?: unknown;
|
54
54
|
background?: unknown;
|
55
|
-
type?: unknown;
|
56
55
|
} & {
|
57
56
|
type: NotifyType;
|
58
57
|
overlay: boolean;
|
package/es/notify/Notify.js
CHANGED
@@ -1,21 +1,18 @@
|
|
1
1
|
import { createVNode as _createVNode } from "vue";
|
2
2
|
import { defineComponent } from 'vue';
|
3
|
-
import {
|
3
|
+
import { extend, numericProp, unknownProp, makeStringProp, createNamespace } from '../utils';
|
4
4
|
import { Popup } from '../popup';
|
5
5
|
import { popupSharedProps } from '../popup/shared';
|
6
6
|
var [name, bem] = createNamespace('notify');
|
7
7
|
export default defineComponent({
|
8
8
|
name,
|
9
9
|
props: extend({}, popupSharedProps, {
|
10
|
+
type: makeStringProp('danger'),
|
10
11
|
color: String,
|
11
|
-
message:
|
12
|
+
message: numericProp,
|
12
13
|
className: unknownProp,
|
13
14
|
background: String,
|
14
|
-
lockScroll: Boolean
|
15
|
-
type: {
|
16
|
-
type: String,
|
17
|
-
default: 'danger'
|
18
|
-
}
|
15
|
+
lockScroll: Boolean
|
19
16
|
}),
|
20
17
|
|
21
18
|
setup(props, {
|
@@ -33,15 +33,15 @@ declare namespace Notify {
|
|
33
33
|
default: true;
|
34
34
|
};
|
35
35
|
} & {
|
36
|
+
type: {
|
37
|
+
type: import("vue").PropType<import("./types").NotifyType>;
|
38
|
+
default: import("./types").NotifyType;
|
39
|
+
};
|
36
40
|
color: StringConstructor;
|
37
41
|
message: (NumberConstructor | StringConstructor)[];
|
38
42
|
className: import("vue").PropType<unknown>;
|
39
43
|
background: StringConstructor;
|
40
44
|
lockScroll: BooleanConstructor;
|
41
|
-
type: {
|
42
|
-
type: import("vue").PropType<import("./types").NotifyType>;
|
43
|
-
default: string;
|
44
|
-
};
|
45
45
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
|
46
46
|
show?: unknown;
|
47
47
|
zIndex?: unknown;
|
@@ -55,11 +55,11 @@ declare namespace Notify {
|
|
55
55
|
overlayClass?: unknown;
|
56
56
|
transitionAppear?: unknown;
|
57
57
|
closeOnClickOverlay?: unknown;
|
58
|
+
type?: unknown;
|
58
59
|
color?: unknown;
|
59
60
|
message?: unknown;
|
60
61
|
className?: unknown;
|
61
62
|
background?: unknown;
|
62
|
-
type?: unknown;
|
63
63
|
} & {
|
64
64
|
type: import("./types").NotifyType;
|
65
65
|
overlay: boolean;
|
@@ -5,11 +5,9 @@ import VanNotify from './Notify';
|
|
5
5
|
var timer;
|
6
6
|
var instance;
|
7
7
|
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
};
|
12
|
-
}
|
8
|
+
var parseOptions = message => isObject(message) ? message : {
|
9
|
+
message
|
10
|
+
};
|
13
11
|
|
14
12
|
function initInstance() {
|
15
13
|
({
|
@@ -48,20 +46,18 @@ function Notify(options) {
|
|
48
46
|
return instance;
|
49
47
|
}
|
50
48
|
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
};
|
64
|
-
}
|
49
|
+
var getDefaultOptions = () => ({
|
50
|
+
type: 'danger',
|
51
|
+
color: undefined,
|
52
|
+
message: '',
|
53
|
+
onClose: undefined,
|
54
|
+
onClick: undefined,
|
55
|
+
onOpened: undefined,
|
56
|
+
duration: 3000,
|
57
|
+
className: '',
|
58
|
+
lockScroll: false,
|
59
|
+
background: undefined
|
60
|
+
});
|
65
61
|
|
66
62
|
Notify.clear = () => {
|
67
63
|
if (instance) {
|
@@ -69,14 +65,14 @@ Notify.clear = () => {
|
|
69
65
|
}
|
70
66
|
};
|
71
67
|
|
72
|
-
Notify.currentOptions =
|
68
|
+
Notify.currentOptions = getDefaultOptions();
|
73
69
|
|
74
70
|
Notify.setDefaultOptions = options => {
|
75
71
|
extend(Notify.currentOptions, options);
|
76
72
|
};
|
77
73
|
|
78
74
|
Notify.resetDefaultOptions = () => {
|
79
|
-
Notify.currentOptions =
|
75
|
+
Notify.currentOptions = getDefaultOptions();
|
80
76
|
};
|
81
77
|
|
82
78
|
Notify.Component = withInstall(VanNotify);
|
@@ -3,8 +3,20 @@ export declare type NumberKeyboardTheme = 'default' | 'custom';
|
|
3
3
|
declare const _default: import("vue").DefineComponent<{
|
4
4
|
show: BooleanConstructor;
|
5
5
|
title: StringConstructor;
|
6
|
+
theme: {
|
7
|
+
type: PropType<NumberKeyboardTheme>;
|
8
|
+
default: NumberKeyboardTheme;
|
9
|
+
};
|
6
10
|
zIndex: (NumberConstructor | StringConstructor)[];
|
7
11
|
teleport: PropType<string | import("vue").RendererElement | null | undefined>;
|
12
|
+
maxlength: {
|
13
|
+
type: (NumberConstructor | StringConstructor)[];
|
14
|
+
default: number;
|
15
|
+
};
|
16
|
+
modelValue: {
|
17
|
+
type: PropType<string>;
|
18
|
+
default: string;
|
19
|
+
};
|
8
20
|
transition: {
|
9
21
|
type: BooleanConstructor;
|
10
22
|
default: true;
|
@@ -29,27 +41,18 @@ declare const _default: import("vue").DefineComponent<{
|
|
29
41
|
type: BooleanConstructor;
|
30
42
|
default: true;
|
31
43
|
};
|
32
|
-
theme: {
|
33
|
-
type: PropType<NumberKeyboardTheme>;
|
34
|
-
default: string;
|
35
|
-
};
|
36
|
-
modelValue: {
|
37
|
-
type: StringConstructor;
|
38
|
-
default: string;
|
39
|
-
};
|
40
44
|
extraKey: {
|
41
45
|
type: PropType<string | string[]>;
|
42
46
|
default: string;
|
43
47
|
};
|
44
|
-
maxlength: {
|
45
|
-
type: (NumberConstructor | StringConstructor)[];
|
46
|
-
default: number;
|
47
|
-
};
|
48
48
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("input" | "blur" | "update:modelValue" | "hide" | "show" | "close" | "delete")[], "input" | "blur" | "update:modelValue" | "hide" | "show" | "close" | "delete", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
|
49
49
|
show?: unknown;
|
50
50
|
title?: unknown;
|
51
|
+
theme?: unknown;
|
51
52
|
zIndex?: unknown;
|
52
53
|
teleport?: unknown;
|
54
|
+
maxlength?: unknown;
|
55
|
+
modelValue?: unknown;
|
53
56
|
transition?: unknown;
|
54
57
|
blurOnClose?: unknown;
|
55
58
|
showDeleteKey?: unknown;
|
@@ -59,10 +62,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
59
62
|
closeButtonLoading?: unknown;
|
60
63
|
hideOnClickOutside?: unknown;
|
61
64
|
safeAreaInsetBottom?: unknown;
|
62
|
-
theme?: unknown;
|
63
|
-
modelValue?: unknown;
|
64
65
|
extraKey?: unknown;
|
65
|
-
maxlength?: unknown;
|
66
66
|
} & {
|
67
67
|
maxlength: string | number;
|
68
68
|
modelValue: string;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { withDirectives as _withDirectives, vShow as _vShow, resolveDirective as _resolveDirective, createVNode as _createVNode } from "vue";
|
2
2
|
import { ref, watch, computed, Teleport, Transition, defineComponent } from 'vue'; // Utils
|
3
3
|
|
4
|
-
import { truthProp, getZIndexStyle, stopPropagation, createNamespace } from '../utils'; // Composables
|
4
|
+
import { truthProp, numericProp, getZIndexStyle, makeStringProp, makeNumericProp, stopPropagation, createNamespace } from '../utils'; // Composables
|
5
5
|
|
6
6
|
import { useClickAway } from '@vant/use'; // Components
|
7
7
|
|
@@ -12,8 +12,11 @@ export default defineComponent({
|
|
12
12
|
props: {
|
13
13
|
show: Boolean,
|
14
14
|
title: String,
|
15
|
-
|
15
|
+
theme: makeStringProp('default'),
|
16
|
+
zIndex: numericProp,
|
16
17
|
teleport: [String, Object],
|
18
|
+
maxlength: makeNumericProp(Infinity),
|
19
|
+
modelValue: makeStringProp(''),
|
17
20
|
transition: truthProp,
|
18
21
|
blurOnClose: truthProp,
|
19
22
|
showDeleteKey: truthProp,
|
@@ -23,21 +26,9 @@ export default defineComponent({
|
|
23
26
|
closeButtonLoading: Boolean,
|
24
27
|
hideOnClickOutside: truthProp,
|
25
28
|
safeAreaInsetBottom: truthProp,
|
26
|
-
theme: {
|
27
|
-
type: String,
|
28
|
-
default: 'default'
|
29
|
-
},
|
30
|
-
modelValue: {
|
31
|
-
type: String,
|
32
|
-
default: ''
|
33
|
-
},
|
34
29
|
extraKey: {
|
35
30
|
type: [String, Array],
|
36
31
|
default: ''
|
37
|
-
},
|
38
|
-
maxlength: {
|
39
|
-
type: [Number, String],
|
40
|
-
default: Number.MAX_VALUE
|
41
32
|
}
|
42
33
|
},
|
43
34
|
emits: ['show', 'hide', 'blur', 'input', 'close', 'delete', 'update:modelValue'],
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { createVNode as _createVNode } from "vue";
|
2
2
|
import { ref, defineComponent } from 'vue';
|
3
|
-
import { createNamespace } from '../utils';
|
3
|
+
import { numericProp, createNamespace } from '../utils';
|
4
4
|
import { useTouch } from '../composables/use-touch';
|
5
5
|
import { Loading } from '../loading';
|
6
6
|
var [name, bem] = createNamespace('key');
|
@@ -25,7 +25,7 @@ export default defineComponent({
|
|
25
25
|
name,
|
26
26
|
props: {
|
27
27
|
type: String,
|
28
|
-
text:
|
28
|
+
text: numericProp,
|
29
29
|
color: String,
|
30
30
|
wider: Boolean,
|
31
31
|
large: Boolean,
|
@@ -1,8 +1,20 @@
|
|
1
1
|
export declare const NumberKeyboard: import("../utils").WithInstall<import("vue").DefineComponent<{
|
2
2
|
show: BooleanConstructor;
|
3
3
|
title: StringConstructor;
|
4
|
+
theme: {
|
5
|
+
type: import("vue").PropType<import("./NumberKeyboard").NumberKeyboardTheme>;
|
6
|
+
default: import("./NumberKeyboard").NumberKeyboardTheme;
|
7
|
+
};
|
4
8
|
zIndex: (NumberConstructor | StringConstructor)[];
|
5
9
|
teleport: import("vue").PropType<string | import("vue").RendererElement | null | undefined>;
|
10
|
+
maxlength: {
|
11
|
+
type: (NumberConstructor | StringConstructor)[];
|
12
|
+
default: number;
|
13
|
+
};
|
14
|
+
modelValue: {
|
15
|
+
type: import("vue").PropType<string>;
|
16
|
+
default: string;
|
17
|
+
};
|
6
18
|
transition: {
|
7
19
|
type: BooleanConstructor;
|
8
20
|
default: true;
|
@@ -27,27 +39,18 @@ export declare const NumberKeyboard: import("../utils").WithInstall<import("vue"
|
|
27
39
|
type: BooleanConstructor;
|
28
40
|
default: true;
|
29
41
|
};
|
30
|
-
theme: {
|
31
|
-
type: import("vue").PropType<import("./NumberKeyboard").NumberKeyboardTheme>;
|
32
|
-
default: string;
|
33
|
-
};
|
34
|
-
modelValue: {
|
35
|
-
type: StringConstructor;
|
36
|
-
default: string;
|
37
|
-
};
|
38
42
|
extraKey: {
|
39
43
|
type: import("vue").PropType<string | string[]>;
|
40
44
|
default: string;
|
41
45
|
};
|
42
|
-
maxlength: {
|
43
|
-
type: (NumberConstructor | StringConstructor)[];
|
44
|
-
default: number;
|
45
|
-
};
|
46
46
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("input" | "blur" | "update:modelValue" | "hide" | "show" | "close" | "delete")[], "input" | "blur" | "update:modelValue" | "hide" | "show" | "close" | "delete", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
|
47
47
|
show?: unknown;
|
48
48
|
title?: unknown;
|
49
|
+
theme?: unknown;
|
49
50
|
zIndex?: unknown;
|
50
51
|
teleport?: unknown;
|
52
|
+
maxlength?: unknown;
|
53
|
+
modelValue?: unknown;
|
51
54
|
transition?: unknown;
|
52
55
|
blurOnClose?: unknown;
|
53
56
|
showDeleteKey?: unknown;
|
@@ -57,10 +60,7 @@ export declare const NumberKeyboard: import("../utils").WithInstall<import("vue"
|
|
57
60
|
closeButtonLoading?: unknown;
|
58
61
|
hideOnClickOutside?: unknown;
|
59
62
|
safeAreaInsetBottom?: unknown;
|
60
|
-
theme?: unknown;
|
61
|
-
modelValue?: unknown;
|
62
63
|
extraKey?: unknown;
|
63
|
-
maxlength?: unknown;
|
64
64
|
} & {
|
65
65
|
maxlength: string | number;
|
66
66
|
modelValue: string;
|
package/es/overlay/Overlay.js
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
import { withDirectives as _withDirectives, createVNode as _createVNode, vShow as _vShow } from "vue";
|
2
2
|
import { Transition, defineComponent } from 'vue';
|
3
|
-
import { noop, isDef, extend, truthProp, unknownProp, preventDefault, createNamespace, getZIndexStyle } from '../utils';
|
3
|
+
import { noop, isDef, extend, truthProp, numericProp, unknownProp, preventDefault, createNamespace, getZIndexStyle } from '../utils';
|
4
4
|
import { useLazyRender } from '../composables/use-lazy-render';
|
5
5
|
var [name, bem] = createNamespace('overlay');
|
6
6
|
export default defineComponent({
|
7
7
|
name,
|
8
8
|
props: {
|
9
9
|
show: Boolean,
|
10
|
-
zIndex:
|
11
|
-
duration:
|
10
|
+
zIndex: numericProp,
|
11
|
+
duration: numericProp,
|
12
12
|
className: unknownProp,
|
13
13
|
lockScroll: truthProp,
|
14
14
|
customStyle: Object
|
@@ -37,7 +37,8 @@ export default defineComponent({
|
|
37
37
|
}, [slots.default == null ? void 0 : slots.default()]), [[_vShow, props.show]]);
|
38
38
|
});
|
39
39
|
return () => _createVNode(Transition, {
|
40
|
-
"name": "van-fade"
|
40
|
+
"name": "van-fade",
|
41
|
+
"appear": true
|
41
42
|
}, {
|
42
43
|
default: () => [renderOverlay()]
|
43
44
|
});
|