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/steps/Steps.js
CHANGED
@@ -1,26 +1,17 @@
|
|
1
1
|
import { createVNode as _createVNode } from "vue";
|
2
2
|
import { defineComponent } from 'vue';
|
3
|
-
import { createNamespace } from '../utils';
|
3
|
+
import { makeStringProp, makeNumericProp, createNamespace } from '../utils';
|
4
4
|
import { useChildren } from '@vant/use';
|
5
5
|
var [name, bem] = createNamespace('steps');
|
6
6
|
var props = {
|
7
|
+
active: makeNumericProp(0),
|
8
|
+
direction: makeStringProp('horizontal'),
|
9
|
+
activeIcon: makeStringProp('checked'),
|
7
10
|
iconPrefix: String,
|
8
11
|
finishIcon: String,
|
9
12
|
activeColor: String,
|
10
13
|
inactiveIcon: String,
|
11
|
-
inactiveColor: String
|
12
|
-
active: {
|
13
|
-
type: [Number, String],
|
14
|
-
default: 0
|
15
|
-
},
|
16
|
-
direction: {
|
17
|
-
type: String,
|
18
|
-
default: 'horizontal'
|
19
|
-
},
|
20
|
-
activeIcon: {
|
21
|
-
type: String,
|
22
|
-
default: 'checked'
|
23
|
-
}
|
14
|
+
inactiveColor: String
|
24
15
|
};
|
25
16
|
export var STEPS_KEY = Symbol(name);
|
26
17
|
export default defineComponent({
|
package/es/steps/index.d.ts
CHANGED
@@ -1,30 +1,30 @@
|
|
1
1
|
export declare const Steps: import("../utils").WithInstall<import("vue").DefineComponent<{
|
2
|
-
iconPrefix: StringConstructor;
|
3
|
-
finishIcon: StringConstructor;
|
4
|
-
activeColor: StringConstructor;
|
5
|
-
inactiveIcon: StringConstructor;
|
6
|
-
inactiveColor: StringConstructor;
|
7
2
|
active: {
|
8
3
|
type: (NumberConstructor | StringConstructor)[];
|
9
4
|
default: number;
|
10
5
|
};
|
11
6
|
direction: {
|
12
7
|
type: import("vue").PropType<import("./Steps").StepsDirection>;
|
13
|
-
default:
|
8
|
+
default: import("./Steps").StepsDirection;
|
14
9
|
};
|
15
10
|
activeIcon: {
|
16
|
-
type:
|
11
|
+
type: import("vue").PropType<string>;
|
17
12
|
default: string;
|
18
13
|
};
|
14
|
+
iconPrefix: StringConstructor;
|
15
|
+
finishIcon: StringConstructor;
|
16
|
+
activeColor: StringConstructor;
|
17
|
+
inactiveIcon: StringConstructor;
|
18
|
+
inactiveColor: StringConstructor;
|
19
19
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click-step"[], "click-step", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
|
20
|
+
active?: unknown;
|
21
|
+
direction?: unknown;
|
22
|
+
activeIcon?: unknown;
|
20
23
|
iconPrefix?: unknown;
|
21
24
|
finishIcon?: unknown;
|
22
25
|
activeColor?: unknown;
|
23
26
|
inactiveIcon?: unknown;
|
24
27
|
inactiveColor?: unknown;
|
25
|
-
active?: unknown;
|
26
|
-
direction?: unknown;
|
27
|
-
activeIcon?: unknown;
|
28
28
|
} & {
|
29
29
|
active: string | number;
|
30
30
|
direction: import("./Steps").StepsDirection;
|
package/es/sticky/Sticky.d.ts
CHANGED
@@ -2,6 +2,10 @@ import { PropType } from 'vue';
|
|
2
2
|
export declare type StickyPosition = 'top' | 'bottom';
|
3
3
|
declare const _default: import("vue").DefineComponent<{
|
4
4
|
zIndex: (NumberConstructor | StringConstructor)[];
|
5
|
+
position: {
|
6
|
+
type: PropType<StickyPosition>;
|
7
|
+
default: StickyPosition;
|
8
|
+
};
|
5
9
|
container: PropType<Element>;
|
6
10
|
offsetTop: {
|
7
11
|
type: (NumberConstructor | StringConstructor)[];
|
@@ -11,16 +15,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
11
15
|
type: (NumberConstructor | StringConstructor)[];
|
12
16
|
default: number;
|
13
17
|
};
|
14
|
-
position: {
|
15
|
-
type: PropType<StickyPosition>;
|
16
|
-
default: string;
|
17
|
-
};
|
18
18
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("scroll" | "change")[], "scroll" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
|
19
19
|
zIndex?: unknown;
|
20
|
+
position?: unknown;
|
20
21
|
container?: unknown;
|
21
22
|
offsetTop?: unknown;
|
22
23
|
offsetBottom?: unknown;
|
23
|
-
position?: unknown;
|
24
24
|
} & {
|
25
25
|
position: StickyPosition;
|
26
26
|
offsetTop: string | number;
|
package/es/sticky/Sticky.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { createVNode as _createVNode } from "vue";
|
2
2
|
import { ref, watch, computed, reactive, defineComponent } from 'vue'; // Utils
|
3
3
|
|
4
|
-
import { extend, isHidden, unitToPx, getScrollTop, getZIndexStyle, createNamespace } from '../utils'; // Composables
|
4
|
+
import { extend, isHidden, unitToPx, numericProp, getScrollTop, getZIndexStyle, makeStringProp, makeNumericProp, createNamespace } from '../utils'; // Composables
|
5
5
|
|
6
6
|
import { useRect, useEventListener, useScrollParent } from '@vant/use';
|
7
7
|
import { useVisibilityChange } from '../composables/use-visibility-change';
|
@@ -9,20 +9,11 @@ var [name, bem] = createNamespace('sticky');
|
|
9
9
|
export default defineComponent({
|
10
10
|
name,
|
11
11
|
props: {
|
12
|
-
zIndex:
|
12
|
+
zIndex: numericProp,
|
13
|
+
position: makeStringProp('top'),
|
13
14
|
container: Object,
|
14
|
-
offsetTop:
|
15
|
-
|
16
|
-
default: 0
|
17
|
-
},
|
18
|
-
offsetBottom: {
|
19
|
-
type: [Number, String],
|
20
|
-
default: 0
|
21
|
-
},
|
22
|
-
position: {
|
23
|
-
type: String,
|
24
|
-
default: 'top'
|
25
|
-
}
|
15
|
+
offsetTop: makeNumericProp(0),
|
16
|
+
offsetBottom: makeNumericProp(0)
|
26
17
|
},
|
27
18
|
emits: ['scroll', 'change'],
|
28
19
|
|
package/es/sticky/index.d.ts
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
export declare const Sticky: import("../utils").WithInstall<import("vue").DefineComponent<{
|
2
2
|
zIndex: (NumberConstructor | StringConstructor)[];
|
3
|
+
position: {
|
4
|
+
type: import("vue").PropType<import("./Sticky").StickyPosition>;
|
5
|
+
default: import("./Sticky").StickyPosition;
|
6
|
+
};
|
3
7
|
container: import("vue").PropType<Element>;
|
4
8
|
offsetTop: {
|
5
9
|
type: (NumberConstructor | StringConstructor)[];
|
@@ -9,16 +13,12 @@ export declare const Sticky: import("../utils").WithInstall<import("vue").Define
|
|
9
13
|
type: (NumberConstructor | StringConstructor)[];
|
10
14
|
default: number;
|
11
15
|
};
|
12
|
-
position: {
|
13
|
-
type: import("vue").PropType<import("./Sticky").StickyPosition>;
|
14
|
-
default: string;
|
15
|
-
};
|
16
16
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("scroll" | "change")[], "scroll" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
|
17
17
|
zIndex?: unknown;
|
18
|
+
position?: unknown;
|
18
19
|
container?: unknown;
|
19
20
|
offsetTop?: unknown;
|
20
21
|
offsetBottom?: unknown;
|
21
|
-
position?: unknown;
|
22
22
|
} & {
|
23
23
|
position: import("./Sticky").StickyPosition;
|
24
24
|
offsetTop: string | number;
|
@@ -6,26 +6,26 @@ declare const _default: import("vue").DefineComponent<{
|
|
6
6
|
price: NumberConstructor;
|
7
7
|
tipIcon: StringConstructor;
|
8
8
|
loading: BooleanConstructor;
|
9
|
+
currency: {
|
10
|
+
type: PropType<string>;
|
11
|
+
default: string;
|
12
|
+
};
|
9
13
|
disabled: BooleanConstructor;
|
10
14
|
textAlign: PropType<import("csstype").TextAlignProperty | undefined>;
|
11
15
|
buttonText: StringConstructor;
|
16
|
+
buttonType: {
|
17
|
+
type: PropType<ButtonType>;
|
18
|
+
default: ButtonType;
|
19
|
+
};
|
12
20
|
buttonColor: StringConstructor;
|
13
21
|
suffixLabel: StringConstructor;
|
14
|
-
safeAreaInsetBottom: {
|
15
|
-
type: BooleanConstructor;
|
16
|
-
default: true;
|
17
|
-
};
|
18
22
|
decimalLength: {
|
19
23
|
type: (NumberConstructor | StringConstructor)[];
|
20
24
|
default: number;
|
21
25
|
};
|
22
|
-
|
23
|
-
type:
|
24
|
-
default:
|
25
|
-
};
|
26
|
-
buttonType: {
|
27
|
-
type: PropType<ButtonType>;
|
28
|
-
default: string;
|
26
|
+
safeAreaInsetBottom: {
|
27
|
+
type: BooleanConstructor;
|
28
|
+
default: true;
|
29
29
|
};
|
30
30
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "submit"[], "submit", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
|
31
31
|
tip?: unknown;
|
@@ -33,15 +33,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
33
33
|
price?: unknown;
|
34
34
|
tipIcon?: unknown;
|
35
35
|
loading?: unknown;
|
36
|
+
currency?: unknown;
|
36
37
|
disabled?: unknown;
|
37
38
|
textAlign?: unknown;
|
38
39
|
buttonText?: unknown;
|
40
|
+
buttonType?: unknown;
|
39
41
|
buttonColor?: unknown;
|
40
42
|
suffixLabel?: unknown;
|
41
|
-
safeAreaInsetBottom?: unknown;
|
42
43
|
decimalLength?: unknown;
|
43
|
-
|
44
|
-
buttonType?: unknown;
|
44
|
+
safeAreaInsetBottom?: unknown;
|
45
45
|
} & {
|
46
46
|
disabled: boolean;
|
47
47
|
safeAreaInsetBottom: boolean;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { createVNode as _createVNode } from "vue";
|
2
2
|
import { defineComponent } from 'vue';
|
3
|
-
import { truthProp, createNamespace } from '../utils'; // Components
|
3
|
+
import { truthProp, makeStringProp, makeNumericProp, createNamespace } from '../utils'; // Components
|
4
4
|
|
5
5
|
import { Icon } from '../icon';
|
6
6
|
import { Button } from '../button';
|
@@ -13,24 +13,15 @@ export default defineComponent({
|
|
13
13
|
price: Number,
|
14
14
|
tipIcon: String,
|
15
15
|
loading: Boolean,
|
16
|
+
currency: makeStringProp('¥'),
|
16
17
|
disabled: Boolean,
|
17
18
|
textAlign: String,
|
18
19
|
buttonText: String,
|
20
|
+
buttonType: makeStringProp('danger'),
|
19
21
|
buttonColor: String,
|
20
22
|
suffixLabel: String,
|
21
|
-
|
22
|
-
|
23
|
-
type: [Number, String],
|
24
|
-
default: 2
|
25
|
-
},
|
26
|
-
currency: {
|
27
|
-
type: String,
|
28
|
-
default: '¥'
|
29
|
-
},
|
30
|
-
buttonType: {
|
31
|
-
type: String,
|
32
|
-
default: 'danger'
|
33
|
-
}
|
23
|
+
decimalLength: makeNumericProp(2),
|
24
|
+
safeAreaInsetBottom: truthProp
|
34
25
|
},
|
35
26
|
emits: ['submit'],
|
36
27
|
|
package/es/submit-bar/index.d.ts
CHANGED
@@ -4,26 +4,26 @@ export declare const SubmitBar: import("../utils").WithInstall<import("vue").Def
|
|
4
4
|
price: NumberConstructor;
|
5
5
|
tipIcon: StringConstructor;
|
6
6
|
loading: BooleanConstructor;
|
7
|
+
currency: {
|
8
|
+
type: import("vue").PropType<string>;
|
9
|
+
default: string;
|
10
|
+
};
|
7
11
|
disabled: BooleanConstructor;
|
8
12
|
textAlign: import("vue").PropType<import("csstype").TextAlignProperty | undefined>;
|
9
13
|
buttonText: StringConstructor;
|
14
|
+
buttonType: {
|
15
|
+
type: import("vue").PropType<import("..").ButtonType>;
|
16
|
+
default: import("..").ButtonType;
|
17
|
+
};
|
10
18
|
buttonColor: StringConstructor;
|
11
19
|
suffixLabel: StringConstructor;
|
12
|
-
safeAreaInsetBottom: {
|
13
|
-
type: BooleanConstructor;
|
14
|
-
default: true;
|
15
|
-
};
|
16
20
|
decimalLength: {
|
17
21
|
type: (NumberConstructor | StringConstructor)[];
|
18
22
|
default: number;
|
19
23
|
};
|
20
|
-
|
21
|
-
type:
|
22
|
-
default:
|
23
|
-
};
|
24
|
-
buttonType: {
|
25
|
-
type: import("vue").PropType<import("..").ButtonType>;
|
26
|
-
default: string;
|
24
|
+
safeAreaInsetBottom: {
|
25
|
+
type: BooleanConstructor;
|
26
|
+
default: true;
|
27
27
|
};
|
28
28
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "submit"[], "submit", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
|
29
29
|
tip?: unknown;
|
@@ -31,15 +31,15 @@ export declare const SubmitBar: import("../utils").WithInstall<import("vue").Def
|
|
31
31
|
price?: unknown;
|
32
32
|
tipIcon?: unknown;
|
33
33
|
loading?: unknown;
|
34
|
+
currency?: unknown;
|
34
35
|
disabled?: unknown;
|
35
36
|
textAlign?: unknown;
|
36
37
|
buttonText?: unknown;
|
38
|
+
buttonType?: unknown;
|
37
39
|
buttonColor?: unknown;
|
38
40
|
suffixLabel?: unknown;
|
39
|
-
safeAreaInsetBottom?: unknown;
|
40
41
|
decimalLength?: unknown;
|
41
|
-
|
42
|
-
buttonType?: unknown;
|
42
|
+
safeAreaInsetBottom?: unknown;
|
43
43
|
} & {
|
44
44
|
disabled: boolean;
|
45
45
|
safeAreaInsetBottom: boolean;
|
package/es/swipe/Swipe.d.ts
CHANGED
@@ -8,11 +8,23 @@ declare const props: {
|
|
8
8
|
width: (NumberConstructor | StringConstructor)[];
|
9
9
|
height: (NumberConstructor | StringConstructor)[];
|
10
10
|
vertical: BooleanConstructor;
|
11
|
+
autoplay: {
|
12
|
+
type: (NumberConstructor | StringConstructor)[];
|
13
|
+
default: number;
|
14
|
+
};
|
15
|
+
duration: {
|
16
|
+
type: (NumberConstructor | StringConstructor)[];
|
17
|
+
default: number;
|
18
|
+
};
|
11
19
|
touchable: {
|
12
20
|
type: BooleanConstructor;
|
13
21
|
default: true;
|
14
22
|
};
|
15
23
|
lazyRender: BooleanConstructor;
|
24
|
+
initialSwipe: {
|
25
|
+
type: (NumberConstructor | StringConstructor)[];
|
26
|
+
default: number;
|
27
|
+
};
|
16
28
|
indicatorColor: StringConstructor;
|
17
29
|
showIndicators: {
|
18
30
|
type: BooleanConstructor;
|
@@ -22,18 +34,6 @@ declare const props: {
|
|
22
34
|
type: BooleanConstructor;
|
23
35
|
default: true;
|
24
36
|
};
|
25
|
-
autoplay: {
|
26
|
-
type: (NumberConstructor | StringConstructor)[];
|
27
|
-
default: number;
|
28
|
-
};
|
29
|
-
duration: {
|
30
|
-
type: (NumberConstructor | StringConstructor)[];
|
31
|
-
default: number;
|
32
|
-
};
|
33
|
-
initialSwipe: {
|
34
|
-
type: (NumberConstructor | StringConstructor)[];
|
35
|
-
default: number;
|
36
|
-
};
|
37
37
|
};
|
38
38
|
export declare type SwipeProps = ExtractPropTypes<typeof props>;
|
39
39
|
export declare const SWIPE_KEY: InjectionKey<SwipeProvide>;
|
@@ -45,11 +45,23 @@ declare const _default: import("vue").DefineComponent<{
|
|
45
45
|
width: (NumberConstructor | StringConstructor)[];
|
46
46
|
height: (NumberConstructor | StringConstructor)[];
|
47
47
|
vertical: BooleanConstructor;
|
48
|
+
autoplay: {
|
49
|
+
type: (NumberConstructor | StringConstructor)[];
|
50
|
+
default: number;
|
51
|
+
};
|
52
|
+
duration: {
|
53
|
+
type: (NumberConstructor | StringConstructor)[];
|
54
|
+
default: number;
|
55
|
+
};
|
48
56
|
touchable: {
|
49
57
|
type: BooleanConstructor;
|
50
58
|
default: true;
|
51
59
|
};
|
52
60
|
lazyRender: BooleanConstructor;
|
61
|
+
initialSwipe: {
|
62
|
+
type: (NumberConstructor | StringConstructor)[];
|
63
|
+
default: number;
|
64
|
+
};
|
53
65
|
indicatorColor: StringConstructor;
|
54
66
|
showIndicators: {
|
55
67
|
type: BooleanConstructor;
|
@@ -59,31 +71,19 @@ declare const _default: import("vue").DefineComponent<{
|
|
59
71
|
type: BooleanConstructor;
|
60
72
|
default: true;
|
61
73
|
};
|
62
|
-
autoplay: {
|
63
|
-
type: (NumberConstructor | StringConstructor)[];
|
64
|
-
default: number;
|
65
|
-
};
|
66
|
-
duration: {
|
67
|
-
type: (NumberConstructor | StringConstructor)[];
|
68
|
-
default: number;
|
69
|
-
};
|
70
|
-
initialSwipe: {
|
71
|
-
type: (NumberConstructor | StringConstructor)[];
|
72
|
-
default: number;
|
73
|
-
};
|
74
74
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
|
75
75
|
loop?: unknown;
|
76
76
|
width?: unknown;
|
77
77
|
height?: unknown;
|
78
78
|
vertical?: unknown;
|
79
|
+
autoplay?: unknown;
|
80
|
+
duration?: unknown;
|
79
81
|
touchable?: unknown;
|
80
82
|
lazyRender?: unknown;
|
83
|
+
initialSwipe?: unknown;
|
81
84
|
indicatorColor?: unknown;
|
82
85
|
showIndicators?: unknown;
|
83
86
|
stopPropagation?: unknown;
|
84
|
-
autoplay?: unknown;
|
85
|
-
duration?: unknown;
|
86
|
-
initialSwipe?: unknown;
|
87
87
|
} & {
|
88
88
|
autoplay: string | number;
|
89
89
|
loop: boolean;
|
@@ -91,12 +91,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
91
91
|
duration: string | number;
|
92
92
|
lazyRender: boolean;
|
93
93
|
touchable: boolean;
|
94
|
+
initialSwipe: string | number;
|
94
95
|
showIndicators: boolean;
|
95
96
|
stopPropagation: boolean;
|
96
|
-
initialSwipe: string | number;
|
97
97
|
} & {
|
98
|
-
height?: string | number | undefined;
|
99
98
|
width?: string | number | undefined;
|
99
|
+
height?: string | number | undefined;
|
100
100
|
indicatorColor?: string | undefined;
|
101
101
|
}> & {
|
102
102
|
onChange?: ((...args: any[]) => any) | undefined;
|
@@ -107,8 +107,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
107
107
|
duration: string | number;
|
108
108
|
lazyRender: boolean;
|
109
109
|
touchable: boolean;
|
110
|
+
initialSwipe: string | number;
|
110
111
|
showIndicators: boolean;
|
111
112
|
stopPropagation: boolean;
|
112
|
-
initialSwipe: string | number;
|
113
113
|
}>;
|
114
114
|
export default _default;
|
package/es/swipe/Swipe.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { createVNode as _createVNode } from "vue";
|
2
2
|
import { ref, watch, reactive, computed, onMounted, onActivated, onDeactivated, onBeforeUnmount, defineComponent } from 'vue'; // Utils
|
3
3
|
|
4
|
-
import { clamp, isHidden, truthProp, preventDefault, createNamespace } from '../utils'; // Composables
|
4
|
+
import { clamp, isHidden, truthProp, numericProp, preventDefault, createNamespace, makeNumericProp } from '../utils'; // Composables
|
5
5
|
|
6
6
|
import { doubleRaf, useChildren, useWindowSize, usePageVisibility } from '@vant/use';
|
7
7
|
import { useTouch } from '../composables/use-touch';
|
@@ -11,26 +11,17 @@ import { onPopupReopen } from '../composables/on-popup-reopen'; // Types
|
|
11
11
|
var [name, bem] = createNamespace('swipe');
|
12
12
|
var props = {
|
13
13
|
loop: truthProp,
|
14
|
-
width:
|
15
|
-
height:
|
14
|
+
width: numericProp,
|
15
|
+
height: numericProp,
|
16
16
|
vertical: Boolean,
|
17
|
+
autoplay: makeNumericProp(0),
|
18
|
+
duration: makeNumericProp(500),
|
17
19
|
touchable: truthProp,
|
18
20
|
lazyRender: Boolean,
|
21
|
+
initialSwipe: makeNumericProp(0),
|
19
22
|
indicatorColor: String,
|
20
23
|
showIndicators: truthProp,
|
21
|
-
stopPropagation: truthProp
|
22
|
-
autoplay: {
|
23
|
-
type: [Number, String],
|
24
|
-
default: 0
|
25
|
-
},
|
26
|
-
duration: {
|
27
|
-
type: [Number, String],
|
28
|
-
default: 500
|
29
|
-
},
|
30
|
-
initialSwipe: {
|
31
|
-
type: [Number, String],
|
32
|
-
default: 0
|
33
|
-
}
|
24
|
+
stopPropagation: truthProp
|
34
25
|
};
|
35
26
|
export var SWIPE_KEY = Symbol(name);
|
36
27
|
export default defineComponent({
|
package/es/swipe/index.d.ts
CHANGED
@@ -7,11 +7,23 @@ export declare const Swipe: import("../utils").WithInstall<import("vue").DefineC
|
|
7
7
|
width: (NumberConstructor | StringConstructor)[];
|
8
8
|
height: (NumberConstructor | StringConstructor)[];
|
9
9
|
vertical: BooleanConstructor;
|
10
|
+
autoplay: {
|
11
|
+
type: (NumberConstructor | StringConstructor)[];
|
12
|
+
default: number;
|
13
|
+
};
|
14
|
+
duration: {
|
15
|
+
type: (NumberConstructor | StringConstructor)[];
|
16
|
+
default: number;
|
17
|
+
};
|
10
18
|
touchable: {
|
11
19
|
type: BooleanConstructor;
|
12
20
|
default: true;
|
13
21
|
};
|
14
22
|
lazyRender: BooleanConstructor;
|
23
|
+
initialSwipe: {
|
24
|
+
type: (NumberConstructor | StringConstructor)[];
|
25
|
+
default: number;
|
26
|
+
};
|
15
27
|
indicatorColor: StringConstructor;
|
16
28
|
showIndicators: {
|
17
29
|
type: BooleanConstructor;
|
@@ -21,31 +33,19 @@ export declare const Swipe: import("../utils").WithInstall<import("vue").DefineC
|
|
21
33
|
type: BooleanConstructor;
|
22
34
|
default: true;
|
23
35
|
};
|
24
|
-
autoplay: {
|
25
|
-
type: (NumberConstructor | StringConstructor)[];
|
26
|
-
default: number;
|
27
|
-
};
|
28
|
-
duration: {
|
29
|
-
type: (NumberConstructor | StringConstructor)[];
|
30
|
-
default: number;
|
31
|
-
};
|
32
|
-
initialSwipe: {
|
33
|
-
type: (NumberConstructor | StringConstructor)[];
|
34
|
-
default: number;
|
35
|
-
};
|
36
36
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
|
37
37
|
loop?: unknown;
|
38
38
|
width?: unknown;
|
39
39
|
height?: unknown;
|
40
40
|
vertical?: unknown;
|
41
|
+
autoplay?: unknown;
|
42
|
+
duration?: unknown;
|
41
43
|
touchable?: unknown;
|
42
44
|
lazyRender?: unknown;
|
45
|
+
initialSwipe?: unknown;
|
43
46
|
indicatorColor?: unknown;
|
44
47
|
showIndicators?: unknown;
|
45
48
|
stopPropagation?: unknown;
|
46
|
-
autoplay?: unknown;
|
47
|
-
duration?: unknown;
|
48
|
-
initialSwipe?: unknown;
|
49
49
|
} & {
|
50
50
|
autoplay: string | number;
|
51
51
|
loop: boolean;
|
@@ -53,12 +53,12 @@ export declare const Swipe: import("../utils").WithInstall<import("vue").DefineC
|
|
53
53
|
duration: string | number;
|
54
54
|
lazyRender: boolean;
|
55
55
|
touchable: boolean;
|
56
|
+
initialSwipe: string | number;
|
56
57
|
showIndicators: boolean;
|
57
58
|
stopPropagation: boolean;
|
58
|
-
initialSwipe: string | number;
|
59
59
|
} & {
|
60
|
-
height?: string | number | undefined;
|
61
60
|
width?: string | number | undefined;
|
61
|
+
height?: string | number | undefined;
|
62
62
|
indicatorColor?: string | undefined;
|
63
63
|
}> & {
|
64
64
|
onChange?: ((...args: any[]) => any) | undefined;
|
@@ -69,9 +69,9 @@ export declare const Swipe: import("../utils").WithInstall<import("vue").DefineC
|
|
69
69
|
duration: string | number;
|
70
70
|
lazyRender: boolean;
|
71
71
|
touchable: boolean;
|
72
|
+
initialSwipe: string | number;
|
72
73
|
showIndicators: boolean;
|
73
74
|
stopPropagation: boolean;
|
74
|
-
initialSwipe: string | number;
|
75
75
|
}>>;
|
76
76
|
export default Swipe;
|
77
77
|
export type { SwipeProps };
|
@@ -1,34 +1,34 @@
|
|
1
1
|
import { PropType, ExtractPropTypes } from 'vue';
|
2
2
|
import { Interceptor } from '../utils';
|
3
3
|
declare const props: {
|
4
|
+
name: {
|
5
|
+
type: (NumberConstructor | StringConstructor)[];
|
6
|
+
default: string;
|
7
|
+
};
|
4
8
|
disabled: BooleanConstructor;
|
5
9
|
leftWidth: (NumberConstructor | StringConstructor)[];
|
6
10
|
rightWidth: (NumberConstructor | StringConstructor)[];
|
7
11
|
beforeClose: PropType<Interceptor>;
|
8
12
|
stopPropagation: BooleanConstructor;
|
13
|
+
};
|
14
|
+
export declare type SwipeCellProps = ExtractPropTypes<typeof props>;
|
15
|
+
declare const _default: import("vue").DefineComponent<{
|
9
16
|
name: {
|
10
17
|
type: (NumberConstructor | StringConstructor)[];
|
11
18
|
default: string;
|
12
19
|
};
|
13
|
-
};
|
14
|
-
export declare type SwipeCellProps = ExtractPropTypes<typeof props>;
|
15
|
-
declare const _default: import("vue").DefineComponent<{
|
16
20
|
disabled: BooleanConstructor;
|
17
21
|
leftWidth: (NumberConstructor | StringConstructor)[];
|
18
22
|
rightWidth: (NumberConstructor | StringConstructor)[];
|
19
23
|
beforeClose: PropType<Interceptor>;
|
20
24
|
stopPropagation: BooleanConstructor;
|
21
|
-
name: {
|
22
|
-
type: (NumberConstructor | StringConstructor)[];
|
23
|
-
default: string;
|
24
|
-
};
|
25
25
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("open" | "click" | "close")[], "open" | "click" | "close", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
|
26
|
+
name?: unknown;
|
26
27
|
disabled?: unknown;
|
27
28
|
leftWidth?: unknown;
|
28
29
|
rightWidth?: unknown;
|
29
30
|
beforeClose?: unknown;
|
30
31
|
stopPropagation?: unknown;
|
31
|
-
name?: unknown;
|
32
32
|
} & {
|
33
33
|
name: string | number;
|
34
34
|
disabled: boolean;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { createVNode as _createVNode } from "vue";
|
2
2
|
import { ref, reactive, computed, defineComponent } from 'vue'; // Utils
|
3
3
|
|
4
|
-
import { clamp, isDef, preventDefault, callInterceptor, createNamespace } from '../utils'; // Composables
|
4
|
+
import { clamp, isDef, numericProp, preventDefault, callInterceptor, createNamespace, makeNumericProp } from '../utils'; // Composables
|
5
5
|
|
6
6
|
import { useRect, useClickAway } from '@vant/use';
|
7
7
|
import { useTouch } from '../composables/use-touch';
|
@@ -9,15 +9,12 @@ import { useExpose } from '../composables/use-expose'; // Types
|
|
9
9
|
|
10
10
|
var [name, bem] = createNamespace('swipe-cell');
|
11
11
|
var props = {
|
12
|
+
name: makeNumericProp(''),
|
12
13
|
disabled: Boolean,
|
13
|
-
leftWidth:
|
14
|
-
rightWidth:
|
14
|
+
leftWidth: numericProp,
|
15
|
+
rightWidth: numericProp,
|
15
16
|
beforeClose: Function,
|
16
|
-
stopPropagation: Boolean
|
17
|
-
name: {
|
18
|
-
type: [Number, String],
|
19
|
-
default: ''
|
20
|
-
}
|
17
|
+
stopPropagation: Boolean
|
21
18
|
};
|
22
19
|
export default defineComponent({
|
23
20
|
name,
|
package/es/swipe-cell/index.d.ts
CHANGED
@@ -1,21 +1,21 @@
|
|
1
1
|
import { SwipeCellProps } from './SwipeCell';
|
2
2
|
export declare const SwipeCell: import("../utils").WithInstall<import("vue").DefineComponent<{
|
3
|
+
name: {
|
4
|
+
type: (NumberConstructor | StringConstructor)[];
|
5
|
+
default: string;
|
6
|
+
};
|
3
7
|
disabled: BooleanConstructor;
|
4
8
|
leftWidth: (NumberConstructor | StringConstructor)[];
|
5
9
|
rightWidth: (NumberConstructor | StringConstructor)[];
|
6
10
|
beforeClose: import("vue").PropType<import("../utils").Interceptor>;
|
7
11
|
stopPropagation: BooleanConstructor;
|
8
|
-
name: {
|
9
|
-
type: (NumberConstructor | StringConstructor)[];
|
10
|
-
default: string;
|
11
|
-
};
|
12
12
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("open" | "click" | "close")[], "open" | "click" | "close", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
|
13
|
+
name?: unknown;
|
13
14
|
disabled?: unknown;
|
14
15
|
leftWidth?: unknown;
|
15
16
|
rightWidth?: unknown;
|
16
17
|
beforeClose?: unknown;
|
17
18
|
stopPropagation?: unknown;
|
18
|
-
name?: unknown;
|
19
19
|
} & {
|
20
20
|
name: string | number;
|
21
21
|
disabled: boolean;
|