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
@@ -9,6 +9,18 @@ declare const ImagePreview: {
|
|
9
9
|
type: BooleanConstructor;
|
10
10
|
default: true;
|
11
11
|
};
|
12
|
+
images: {
|
13
|
+
type: import("vue").PropType<string[]>;
|
14
|
+
default: () => never[];
|
15
|
+
};
|
16
|
+
minZoom: {
|
17
|
+
type: (NumberConstructor | StringConstructor)[];
|
18
|
+
default: number;
|
19
|
+
};
|
20
|
+
maxZoom: {
|
21
|
+
type: (NumberConstructor | StringConstructor)[];
|
22
|
+
default: number;
|
23
|
+
};
|
12
24
|
overlay: {
|
13
25
|
type: BooleanConstructor;
|
14
26
|
default: true;
|
@@ -19,26 +31,13 @@ declare const ImagePreview: {
|
|
19
31
|
default: true;
|
20
32
|
};
|
21
33
|
className: import("vue").PropType<unknown>;
|
34
|
+
closeIcon: {
|
35
|
+
type: import("vue").PropType<string>;
|
36
|
+
default: string;
|
37
|
+
};
|
22
38
|
transition: StringConstructor;
|
23
39
|
beforeClose: import("vue").PropType<import("../utils").Interceptor>;
|
24
40
|
overlayStyle: import("vue").PropType<import("vue").CSSProperties>;
|
25
|
-
showIndicators: BooleanConstructor;
|
26
|
-
closeOnPopstate: {
|
27
|
-
type: BooleanConstructor;
|
28
|
-
default: true;
|
29
|
-
};
|
30
|
-
images: {
|
31
|
-
type: import("vue").PropType<string[]>;
|
32
|
-
default: () => never[];
|
33
|
-
};
|
34
|
-
minZoom: {
|
35
|
-
type: (NumberConstructor | StringConstructor)[];
|
36
|
-
default: number;
|
37
|
-
};
|
38
|
-
maxZoom: {
|
39
|
-
type: (NumberConstructor | StringConstructor)[];
|
40
|
-
default: number;
|
41
|
-
};
|
42
41
|
swipeDuration: {
|
43
42
|
type: (NumberConstructor | StringConstructor)[];
|
44
43
|
default: number;
|
@@ -47,48 +46,49 @@ declare const ImagePreview: {
|
|
47
46
|
type: (NumberConstructor | StringConstructor)[];
|
48
47
|
default: number;
|
49
48
|
};
|
50
|
-
|
51
|
-
|
52
|
-
|
49
|
+
showIndicators: BooleanConstructor;
|
50
|
+
closeOnPopstate: {
|
51
|
+
type: BooleanConstructor;
|
52
|
+
default: true;
|
53
53
|
};
|
54
54
|
closeIconPosition: {
|
55
55
|
type: import("vue").PropType<import("..").PopupCloseIconPosition>;
|
56
|
-
default:
|
56
|
+
default: import("..").PopupCloseIconPosition;
|
57
57
|
};
|
58
58
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "close" | "closed" | "update:show" | "scale")[], "change" | "close" | "closed" | "update:show" | "scale", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
|
59
59
|
show?: unknown;
|
60
60
|
loop?: unknown;
|
61
|
+
images?: unknown;
|
62
|
+
minZoom?: unknown;
|
63
|
+
maxZoom?: unknown;
|
61
64
|
overlay?: unknown;
|
62
65
|
closeable?: unknown;
|
63
66
|
showIndex?: unknown;
|
64
67
|
className?: unknown;
|
68
|
+
closeIcon?: unknown;
|
65
69
|
transition?: unknown;
|
66
70
|
beforeClose?: unknown;
|
67
71
|
overlayStyle?: unknown;
|
68
|
-
showIndicators?: unknown;
|
69
|
-
closeOnPopstate?: unknown;
|
70
|
-
images?: unknown;
|
71
|
-
minZoom?: unknown;
|
72
|
-
maxZoom?: unknown;
|
73
72
|
swipeDuration?: unknown;
|
74
73
|
startPosition?: unknown;
|
75
|
-
|
74
|
+
showIndicators?: unknown;
|
75
|
+
closeOnPopstate?: unknown;
|
76
76
|
closeIconPosition?: unknown;
|
77
77
|
} & {
|
78
78
|
loop: boolean;
|
79
79
|
overlay: boolean;
|
80
80
|
show: boolean;
|
81
|
+
closeIcon: string;
|
81
82
|
closeable: boolean;
|
82
83
|
closeOnPopstate: boolean;
|
83
|
-
closeIcon: string;
|
84
84
|
closeIconPosition: import("..").PopupCloseIconPosition;
|
85
85
|
swipeDuration: string | number;
|
86
86
|
showIndicators: boolean;
|
87
87
|
startPosition: string | number;
|
88
88
|
minZoom: string | number;
|
89
89
|
maxZoom: string | number;
|
90
|
-
showIndex: boolean;
|
91
90
|
images: string[];
|
91
|
+
showIndex: boolean;
|
92
92
|
} & {
|
93
93
|
beforeClose?: import("../utils").Interceptor | undefined;
|
94
94
|
overlayStyle?: import("vue").CSSProperties | undefined;
|
@@ -104,17 +104,17 @@ declare const ImagePreview: {
|
|
104
104
|
loop: boolean;
|
105
105
|
overlay: boolean;
|
106
106
|
show: boolean;
|
107
|
+
closeIcon: string;
|
107
108
|
closeable: boolean;
|
108
109
|
closeOnPopstate: boolean;
|
109
|
-
closeIcon: string;
|
110
110
|
closeIconPosition: import("..").PopupCloseIconPosition;
|
111
111
|
swipeDuration: string | number;
|
112
112
|
showIndicators: boolean;
|
113
113
|
startPosition: string | number;
|
114
114
|
minZoom: string | number;
|
115
115
|
maxZoom: string | number;
|
116
|
-
showIndex: boolean;
|
117
116
|
images: string[];
|
117
|
+
showIndex: boolean;
|
118
118
|
}>>;
|
119
119
|
install(app: App): void;
|
120
120
|
};
|
@@ -9,7 +9,7 @@ var _utils = require("../utils");
|
|
9
9
|
|
10
10
|
var _IndexBar = require("../index-bar/IndexBar");
|
11
11
|
|
12
|
-
var
|
12
|
+
var _dom = require("../utils/dom");
|
13
13
|
|
14
14
|
var _use = require("@vant/use");
|
15
15
|
|
@@ -22,7 +22,7 @@ var [name, bem] = (0, _utils.createNamespace)('index-anchor');
|
|
22
22
|
var _default = (0, _vue.defineComponent)({
|
23
23
|
name,
|
24
24
|
props: {
|
25
|
-
index:
|
25
|
+
index: _utils.numericProp
|
26
26
|
},
|
27
27
|
|
28
28
|
setup(props, {
|
@@ -74,9 +74,9 @@ var _default = (0, _vue.defineComponent)({
|
|
74
74
|
state.rect.height = rootRect.height;
|
75
75
|
|
76
76
|
if (scrollParent === window || scrollParent === document.body) {
|
77
|
-
state.rect.top = rootRect.top + (0,
|
77
|
+
state.rect.top = rootRect.top + (0, _dom.getRootScrollTop)();
|
78
78
|
} else {
|
79
|
-
state.rect.top = rootRect.top + (0,
|
79
|
+
state.rect.top = rootRect.top + (0, _dom.getScrollTop)(scrollParent) - scrollParentRect.top;
|
80
80
|
}
|
81
81
|
|
82
82
|
return state.rect;
|
@@ -24,13 +24,10 @@ function genAlphabet() {
|
|
24
24
|
var [name, bem] = (0, _utils.createNamespace)('index-bar');
|
25
25
|
var props = {
|
26
26
|
sticky: _utils.truthProp,
|
27
|
-
zIndex:
|
27
|
+
zIndex: _utils.numericProp,
|
28
28
|
teleport: [String, Object],
|
29
29
|
highlightColor: String,
|
30
|
-
stickyOffsetTop:
|
31
|
-
type: Number,
|
32
|
-
default: 0
|
33
|
-
},
|
30
|
+
stickyOffsetTop: (0, _utils.makeNumberProp)(0),
|
34
31
|
indexList: {
|
35
32
|
type: Array,
|
36
33
|
default: genAlphabet
|
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
@@ -5,8 +5,9 @@ var _exportNames = {
|
|
5
5
|
install: true,
|
6
6
|
version: true
|
7
7
|
};
|
8
|
+
exports.default = void 0;
|
8
9
|
exports.install = install;
|
9
|
-
exports.
|
10
|
+
exports.version = void 0;
|
10
11
|
|
11
12
|
var _actionBar = require("./action-bar");
|
12
13
|
|
@@ -781,7 +782,7 @@ Object.keys(_uploader).forEach(function (key) {
|
|
781
782
|
if (key in exports && exports[key] === _uploader[key]) return;
|
782
783
|
exports[key] = _uploader[key];
|
783
784
|
});
|
784
|
-
var version = '3.2.
|
785
|
+
var version = '3.2.5';
|
785
786
|
exports.version = version;
|
786
787
|
|
787
788
|
function install(app) {
|
package/lib/list/List.d.ts
CHANGED
@@ -1,55 +1,55 @@
|
|
1
|
-
import {
|
1
|
+
import { ExtractPropTypes } from 'vue';
|
2
2
|
import type { ListDirection } from './types';
|
3
3
|
declare const props: {
|
4
4
|
error: BooleanConstructor;
|
5
|
+
offset: {
|
6
|
+
type: (NumberConstructor | StringConstructor)[];
|
7
|
+
default: number;
|
8
|
+
};
|
5
9
|
loading: BooleanConstructor;
|
6
10
|
finished: BooleanConstructor;
|
7
11
|
errorText: StringConstructor;
|
12
|
+
direction: {
|
13
|
+
type: import("vue").PropType<ListDirection>;
|
14
|
+
default: ListDirection;
|
15
|
+
};
|
8
16
|
loadingText: StringConstructor;
|
9
17
|
finishedText: StringConstructor;
|
10
18
|
immediateCheck: {
|
11
19
|
type: BooleanConstructor;
|
12
20
|
default: true;
|
13
21
|
};
|
14
|
-
offset: {
|
15
|
-
type: (NumberConstructor | StringConstructor)[];
|
16
|
-
default: number;
|
17
|
-
};
|
18
|
-
direction: {
|
19
|
-
type: PropType<ListDirection>;
|
20
|
-
default: string;
|
21
|
-
};
|
22
22
|
};
|
23
23
|
export declare type ListProps = ExtractPropTypes<typeof props>;
|
24
24
|
declare const _default: import("vue").DefineComponent<{
|
25
25
|
error: BooleanConstructor;
|
26
|
+
offset: {
|
27
|
+
type: (NumberConstructor | StringConstructor)[];
|
28
|
+
default: number;
|
29
|
+
};
|
26
30
|
loading: BooleanConstructor;
|
27
31
|
finished: BooleanConstructor;
|
28
32
|
errorText: StringConstructor;
|
33
|
+
direction: {
|
34
|
+
type: import("vue").PropType<ListDirection>;
|
35
|
+
default: ListDirection;
|
36
|
+
};
|
29
37
|
loadingText: StringConstructor;
|
30
38
|
finishedText: StringConstructor;
|
31
39
|
immediateCheck: {
|
32
40
|
type: BooleanConstructor;
|
33
41
|
default: true;
|
34
42
|
};
|
35
|
-
offset: {
|
36
|
-
type: (NumberConstructor | StringConstructor)[];
|
37
|
-
default: number;
|
38
|
-
};
|
39
|
-
direction: {
|
40
|
-
type: PropType<ListDirection>;
|
41
|
-
default: string;
|
42
|
-
};
|
43
43
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("load" | "update:error" | "update:loading")[], "load" | "update:error" | "update:loading", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
|
44
44
|
error?: unknown;
|
45
|
+
offset?: unknown;
|
45
46
|
loading?: unknown;
|
46
47
|
finished?: unknown;
|
47
48
|
errorText?: unknown;
|
49
|
+
direction?: unknown;
|
48
50
|
loadingText?: unknown;
|
49
51
|
finishedText?: unknown;
|
50
52
|
immediateCheck?: unknown;
|
51
|
-
offset?: unknown;
|
52
|
-
direction?: unknown;
|
53
53
|
} & {
|
54
54
|
offset: string | number;
|
55
55
|
error: boolean;
|
package/lib/list/List.js
CHANGED
@@ -21,20 +21,14 @@ var _loading = require("../loading");
|
|
21
21
|
var [name, bem, t] = (0, _utils.createNamespace)('list');
|
22
22
|
var props = {
|
23
23
|
error: Boolean,
|
24
|
+
offset: (0, _utils.makeNumericProp)(300),
|
24
25
|
loading: Boolean,
|
25
26
|
finished: Boolean,
|
26
27
|
errorText: String,
|
28
|
+
direction: (0, _utils.makeStringProp)('down'),
|
27
29
|
loadingText: String,
|
28
30
|
finishedText: String,
|
29
|
-
immediateCheck: _utils.truthProp
|
30
|
-
offset: {
|
31
|
-
type: [Number, String],
|
32
|
-
default: 300
|
33
|
-
},
|
34
|
-
direction: {
|
35
|
-
type: String,
|
36
|
-
default: 'down'
|
37
|
-
}
|
31
|
+
immediateCheck: _utils.truthProp
|
38
32
|
};
|
39
33
|
|
40
34
|
var _default = (0, _vue.defineComponent)({
|
package/lib/list/index.d.ts
CHANGED
@@ -1,33 +1,33 @@
|
|
1
1
|
import { ListProps } from './List';
|
2
2
|
export declare const List: import("../utils").WithInstall<import("vue").DefineComponent<{
|
3
3
|
error: BooleanConstructor;
|
4
|
+
offset: {
|
5
|
+
type: (NumberConstructor | StringConstructor)[];
|
6
|
+
default: number;
|
7
|
+
};
|
4
8
|
loading: BooleanConstructor;
|
5
9
|
finished: BooleanConstructor;
|
6
10
|
errorText: StringConstructor;
|
11
|
+
direction: {
|
12
|
+
type: import("vue").PropType<import("./types").ListDirection>;
|
13
|
+
default: import("./types").ListDirection;
|
14
|
+
};
|
7
15
|
loadingText: StringConstructor;
|
8
16
|
finishedText: StringConstructor;
|
9
17
|
immediateCheck: {
|
10
18
|
type: BooleanConstructor;
|
11
19
|
default: true;
|
12
20
|
};
|
13
|
-
offset: {
|
14
|
-
type: (NumberConstructor | StringConstructor)[];
|
15
|
-
default: number;
|
16
|
-
};
|
17
|
-
direction: {
|
18
|
-
type: import("vue").PropType<import("./types").ListDirection>;
|
19
|
-
default: string;
|
20
|
-
};
|
21
21
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("load" | "update:error" | "update:loading")[], "load" | "update:error" | "update:loading", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
|
22
22
|
error?: unknown;
|
23
|
+
offset?: unknown;
|
23
24
|
loading?: unknown;
|
24
25
|
finished?: unknown;
|
25
26
|
errorText?: unknown;
|
27
|
+
direction?: unknown;
|
26
28
|
loadingText?: unknown;
|
27
29
|
finishedText?: unknown;
|
28
30
|
immediateCheck?: unknown;
|
29
|
-
offset?: unknown;
|
30
|
-
direction?: unknown;
|
31
31
|
} & {
|
32
32
|
offset: string | number;
|
33
33
|
error: boolean;
|
package/lib/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/lib/loading/Loading.js
CHANGED
@@ -24,15 +24,12 @@ var CircularIcon = (0, _vue.createVNode)("svg", {
|
|
24
24
|
var _default = (0, _vue.defineComponent)({
|
25
25
|
name,
|
26
26
|
props: {
|
27
|
-
size:
|
27
|
+
size: _utils.numericProp,
|
28
|
+
type: (0, _utils.makeStringProp)('circular'),
|
28
29
|
color: String,
|
29
30
|
vertical: Boolean,
|
30
|
-
textSize:
|
31
|
-
textColor: String
|
32
|
-
type: {
|
33
|
-
type: String,
|
34
|
-
default: 'circular'
|
35
|
-
}
|
31
|
+
textSize: _utils.numericProp,
|
32
|
+
textColor: String
|
36
33
|
},
|
37
34
|
|
38
35
|
setup(props, {
|
package/lib/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/lib/nav-bar/NavBar.js
CHANGED
@@ -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;
|
@@ -23,20 +23,14 @@ var props = {
|
|
23
23
|
text: String,
|
24
24
|
mode: String,
|
25
25
|
color: String,
|
26
|
+
delay: (0, _utils.makeNumericProp)(1),
|
27
|
+
speed: (0, _utils.makeNumericProp)(60),
|
26
28
|
leftIcon: String,
|
27
29
|
wrapable: Boolean,
|
28
30
|
background: String,
|
29
31
|
scrollable: {
|
30
32
|
type: Boolean,
|
31
33
|
default: null
|
32
|
-
},
|
33
|
-
delay: {
|
34
|
-
type: [Number, String],
|
35
|
-
default: 1
|
36
|
-
},
|
37
|
-
speed: {
|
38
|
-
type: [Number, String],
|
39
|
-
default: 60
|
40
34
|
}
|
41
35
|
};
|
42
36
|
|
@@ -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/lib/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/lib/notify/Notify.js
CHANGED
@@ -16,15 +16,12 @@ var [name, bem] = (0, _utils.createNamespace)('notify');
|
|
16
16
|
var _default = (0, _vue.defineComponent)({
|
17
17
|
name,
|
18
18
|
props: (0, _utils.extend)({}, _shared.popupSharedProps, {
|
19
|
+
type: (0, _utils.makeStringProp)('danger'),
|
19
20
|
color: String,
|
20
|
-
message:
|
21
|
+
message: _utils.numericProp,
|
21
22
|
className: _utils.unknownProp,
|
22
23
|
background: String,
|
23
|
-
lockScroll: Boolean
|
24
|
-
type: {
|
25
|
-
type: String,
|
26
|
-
default: 'danger'
|
27
|
-
}
|
24
|
+
lockScroll: Boolean
|
28
25
|
}),
|
29
26
|
|
30
27
|
setup(props, {
|