vant 4.0.0-rc.6 → 4.0.0-rc.8
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/es/action-bar/ActionBar.d.ts +1 -1
- package/es/action-bar/types.d.ts +1 -1
- package/es/action-bar-button/ActionBarButton.d.ts +1 -1
- package/es/action-bar-button/types.d.ts +1 -1
- package/es/action-bar-icon/ActionBarIcon.d.ts +1 -1
- package/es/action-bar-icon/types.d.ts +1 -1
- package/es/action-sheet/ActionSheet.d.ts +3 -3
- package/es/action-sheet/index.css +1 -1
- package/es/action-sheet/index.d.ts +1 -1
- package/es/action-sheet/types.d.ts +1 -1
- package/es/address-edit/AddressEdit.d.ts +1 -1
- package/es/address-edit/types.d.ts +5 -5
- package/es/address-list/AddressList.d.ts +1 -1
- package/es/address-list/AddressListItem.d.ts +1 -1
- package/es/address-list/types.d.ts +1 -1
- package/es/area/Area.d.ts +2 -2
- package/es/area/index.d.ts +1 -1
- package/es/area/types.d.ts +2 -2
- package/es/back-top/BackTop.d.ts +66 -0
- package/es/back-top/BackTop.mjs +99 -0
- package/es/back-top/index.css +1 -0
- package/es/back-top/index.d.ts +53 -0
- package/es/back-top/index.mjs +10 -0
- package/es/back-top/style/index.d.ts +1 -0
- package/es/back-top/style/index.mjs +4 -0
- package/es/back-top/types.d.ts +6 -0
- package/es/back-top/types.mjs +0 -0
- package/es/badge/Badge.d.ts +2 -2
- package/es/badge/types.d.ts +1 -1
- package/es/button/Button.d.ts +1 -1
- package/es/button/types.d.ts +5 -5
- package/es/calendar/Calendar.d.ts +1 -1
- package/es/calendar/CalendarMonth.d.ts +1 -1
- package/es/calendar/types.d.ts +7 -7
- package/es/card/Card.d.ts +1 -1
- package/es/card/types.d.ts +1 -1
- package/es/cascader/Cascader.d.ts +1 -1
- package/es/cascader/types.d.ts +4 -4
- package/es/cell/Cell.d.ts +4 -4
- package/es/cell/index.d.ts +1 -1
- package/es/cell/types.d.ts +1 -1
- package/es/cell-group/CellGroup.d.ts +1 -1
- package/es/cell-group/types.d.ts +1 -1
- package/es/checkbox/Checkbox.d.ts +1 -1
- package/es/checkbox/Checker.d.ts +4 -4
- package/es/checkbox/types.d.ts +5 -5
- package/es/checkbox-group/CheckboxGroup.d.ts +1 -1
- package/es/checkbox-group/types.d.ts +5 -5
- package/es/circle/Circle.d.ts +2 -2
- package/es/circle/types.d.ts +1 -1
- package/es/col/Col.d.ts +1 -1
- package/es/collapse/Collapse.d.ts +4 -4
- package/es/collapse-item/CollapseItem.d.ts +2 -2
- package/es/collapse-item/index.d.ts +1 -1
- package/es/collapse-item/types.d.ts +3 -3
- package/es/composables/use-route.d.ts +1 -1
- package/es/composables/use-sync-prop-ref.d.ts +2 -0
- package/es/composables/use-sync-prop-ref.mjs +18 -0
- package/es/composables/use-touch.d.ts +1 -1
- package/es/config-provider/ConfigProvider.d.ts +4 -4
- package/es/config-provider/types.d.ts +1 -1
- package/es/contact-card/ContactCard.d.ts +2 -2
- package/es/contact-card/types.d.ts +1 -1
- package/es/contact-edit/ContactEdit.d.ts +2 -2
- package/es/contact-edit/types.d.ts +1 -1
- package/es/contact-list/ContactList.d.ts +2 -2
- package/es/contact-list/types.d.ts +1 -1
- package/es/count-down/CountDown.d.ts +1 -1
- package/es/count-down/types.d.ts +4 -4
- package/es/coupon/Coupon.d.ts +1 -1
- package/es/coupon/types.d.ts +1 -1
- package/es/coupon-cell/CouponCell.d.ts +1 -1
- package/es/coupon-cell/types.d.ts +1 -1
- package/es/coupon-list/CouponList.d.ts +1 -1
- package/es/coupon-list/types.d.ts +1 -1
- package/es/date-picker/DatePicker.d.ts +3 -3
- package/es/date-picker/DatePicker.mjs +4 -1
- package/es/date-picker/index.d.ts +1 -1
- package/es/date-picker/utils.d.ts +2 -2
- package/es/dialog/Dialog.d.ts +2 -2
- package/es/dialog/index.d.ts +1 -1
- package/es/dialog/types.d.ts +6 -6
- package/es/divider/Divider.d.ts +2 -2
- package/es/divider/types.d.ts +1 -1
- package/es/dropdown-item/DropdownItem.d.ts +3 -3
- package/es/dropdown-item/DropdownItem.mjs +6 -4
- package/es/dropdown-item/index.d.ts +2 -2
- package/es/dropdown-item/types.d.ts +4 -4
- package/es/dropdown-menu/DropdownMenu.d.ts +1 -1
- package/es/dropdown-menu/types.d.ts +3 -3
- package/es/empty/Empty.d.ts +1 -1
- package/es/empty/types.d.ts +1 -1
- package/es/field/Field.d.ts +2 -2
- package/es/field/index.d.ts +1 -1
- package/es/field/types.d.ts +16 -16
- package/es/form/Form.d.ts +1 -1
- package/es/form/types.d.ts +3 -3
- package/es/grid/Grid.d.ts +3 -3
- package/es/grid-item/GridItem.d.ts +1 -1
- package/es/grid-item/types.d.ts +1 -1
- package/es/icon/Icon.d.ts +1 -1
- package/es/image/Image.d.ts +3 -3
- package/es/image/types.d.ts +1 -1
- package/es/image-preview/ImagePreview.d.ts +3 -2
- package/es/image-preview/ImagePreview.mjs +6 -3
- package/es/image-preview/ImagePreviewItem.d.ts +2 -1
- package/es/image-preview/ImagePreviewItem.mjs +15 -11
- package/es/image-preview/index.d.ts +2 -1
- package/es/image-preview/types.d.ts +5 -5
- package/es/index-anchor/IndexAnchor.d.ts +1 -1
- package/es/index-anchor/types.d.ts +1 -1
- package/es/index-bar/IndexBar.d.ts +1 -1
- package/es/index-bar/types.d.ts +4 -4
- package/es/index.d.ts +2 -1
- package/es/index.mjs +4 -1
- package/es/lazyload/vue-lazyload/lazy-image.mjs +5 -5
- package/es/lazyload/vue-lazyload/util.d.ts +25 -0
- package/es/list/List.d.ts +1 -1
- package/es/list/List.mjs +1 -1
- package/es/list/types.d.ts +4 -4
- package/es/loading/Loading.d.ts +2 -2
- package/es/loading/types.d.ts +1 -1
- package/es/locale/index.d.ts +1 -1
- package/es/nav-bar/NavBar.d.ts +1 -1
- package/es/nav-bar/types.d.ts +1 -1
- package/es/notice-bar/NoticeBar.d.ts +1 -1
- package/es/notice-bar/types.d.ts +4 -4
- package/es/notify/Notify.d.ts +1 -1
- package/es/notify/types.d.ts +5 -5
- package/es/number-keyboard/NumberKeyboard.d.ts +2 -2
- package/es/number-keyboard/NumberKeyboard.mjs +6 -4
- package/es/number-keyboard/NumberKeyboardKey.d.ts +1 -1
- package/es/number-keyboard/types.d.ts +1 -1
- package/es/overlay/Overlay.d.ts +1 -1
- package/es/overlay/types.d.ts +1 -1
- package/es/pagination/Pagination.d.ts +2 -2
- package/es/pagination/types.d.ts +1 -1
- package/es/password-input/PasswordInput.d.ts +1 -1
- package/es/password-input/types.d.ts +1 -1
- package/es/picker/Picker.d.ts +2 -2
- package/es/picker/Picker.mjs +4 -2
- package/es/picker/PickerColumn.mjs +5 -4
- package/es/picker/PickerToolbar.d.ts +1 -1
- package/es/picker/index.d.ts +1 -1
- package/es/picker/types.d.ts +11 -11
- package/es/picker-group/PickerGroup.d.ts +2 -2
- package/es/picker-group/types.d.ts +1 -1
- package/es/popover/Popover.d.ts +1 -1
- package/es/popover/Popover.mjs +13 -8
- package/es/popover/types.d.ts +5 -5
- package/es/popup/Popup.d.ts +3 -3
- package/es/popup/index.d.ts +2 -2
- package/es/popup/shared.d.ts +1 -1
- package/es/popup/types.d.ts +5 -5
- package/es/progress/Progress.d.ts +1 -1
- package/es/progress/types.d.ts +3 -3
- package/es/pull-refresh/PullRefresh.d.ts +1 -1
- package/es/pull-refresh/types.d.ts +1 -1
- package/es/radio/Radio.d.ts +3 -3
- package/es/radio/types.d.ts +1 -1
- package/es/radio-group/RadioGroup.d.ts +3 -3
- package/es/rate/Rate.d.ts +1 -1
- package/es/rate/types.d.ts +1 -1
- package/es/row/Row.d.ts +5 -5
- package/es/search/Search.d.ts +1 -1
- package/es/search/types.d.ts +4 -4
- package/es/share-sheet/ShareSheet.d.ts +4 -4
- package/es/share-sheet/index.d.ts +1 -1
- package/es/share-sheet/types.d.ts +1 -1
- package/es/sidebar/Sidebar.d.ts +2 -2
- package/es/sidebar/types.d.ts +1 -1
- package/es/sidebar-item/SidebarItem.d.ts +1 -1
- package/es/sidebar-item/types.d.ts +1 -1
- package/es/skeleton/Skeleton.d.ts +24 -24
- package/es/skeleton/Skeleton.mjs +28 -23
- package/es/skeleton/SkeletonAvatar.d.ts +26 -0
- package/es/skeleton/SkeletonAvatar.mjs +22 -0
- package/es/skeleton/SkeletonImage.d.ts +26 -0
- package/es/skeleton/SkeletonImage.mjs +26 -0
- package/es/skeleton/SkeletonParagraph.d.ts +27 -0
- package/es/skeleton/SkeletonParagraph.mjs +31 -0
- package/es/skeleton/SkeletonTitle.d.ts +16 -0
- package/es/skeleton/SkeletonTitle.mjs +26 -0
- package/es/skeleton/index.css +1 -1
- package/es/skeleton/index.d.ts +85 -18
- package/es/skeleton/index.mjs +22 -2
- package/es/skeleton/style/index.mjs +2 -0
- package/es/skeleton/types.d.ts +8 -4
- package/es/slider/Slider.d.ts +3 -3
- package/es/slider/types.d.ts +1 -1
- package/es/space/Space.d.ts +3 -3
- package/es/step/types.d.ts +1 -1
- package/es/stepper/Stepper.d.ts +3 -3
- package/es/stepper/Stepper.mjs +1 -2
- package/es/stepper/index.d.ts +1 -1
- package/es/stepper/types.d.ts +1 -1
- package/es/steps/Steps.d.ts +3 -3
- package/es/steps/types.d.ts +1 -1
- package/es/sticky/Sticky.d.ts +2 -2
- package/es/sticky/types.d.ts +1 -1
- package/es/submit-bar/SubmitBar.d.ts +2 -2
- package/es/submit-bar/types.d.ts +1 -1
- package/es/swipe/Swipe.d.ts +1 -1
- package/es/swipe/types.d.ts +6 -6
- package/es/swipe-cell/SwipeCell.d.ts +3 -3
- package/es/swipe-cell/index.d.ts +2 -2
- package/es/swipe-cell/types.d.ts +4 -4
- package/es/switch/Switch.d.ts +1 -1
- package/es/switch/types.d.ts +1 -1
- package/es/tab/Tab.d.ts +1 -1
- package/es/tabbar/Tabbar.d.ts +2 -2
- package/es/tabbar/types.d.ts +1 -1
- package/es/tabbar-item/TabbarItem.d.ts +1 -1
- package/es/tabbar-item/types.d.ts +1 -1
- package/es/tabs/Tabs.d.ts +1 -1
- package/es/tabs/types.d.ts +6 -6
- package/es/tag/Tag.d.ts +1 -1
- package/es/tag/types.d.ts +3 -3
- package/es/time-picker/TimePicker.d.ts +3 -3
- package/es/time-picker/TimePicker.mjs +4 -1
- package/es/time-picker/index.d.ts +1 -1
- package/es/toast/Toast.d.ts +1 -1
- package/es/toast/types.d.ts +6 -6
- package/es/tree-select/TreeSelect.d.ts +3 -3
- package/es/tree-select/types.d.ts +1 -1
- package/es/uploader/Uploader.d.ts +1 -1
- package/es/uploader/Uploader.mjs +4 -4
- package/es/uploader/types.d.ts +8 -8
- package/es/utils/basic.d.ts +3 -3
- package/es/utils/constant.d.ts +1 -0
- package/es/utils/constant.mjs +3 -1
- package/es/utils/create.d.ts +4 -4
- package/es/utils/deep-assign.d.ts +1 -1
- package/es/utils/dom.d.ts +1 -1
- package/es/utils/interceptor.d.ts +1 -1
- package/es/utils/mount-component.d.ts +1 -1
- package/es/utils/with-install.d.ts +2 -2
- package/lib/action-bar/ActionBar.d.ts +1 -1
- package/lib/action-bar/types.d.ts +1 -1
- package/lib/action-bar-button/ActionBarButton.d.ts +1 -1
- package/lib/action-bar-button/types.d.ts +1 -1
- package/lib/action-bar-icon/ActionBarIcon.d.ts +1 -1
- package/lib/action-bar-icon/types.d.ts +1 -1
- package/lib/action-sheet/ActionSheet.d.ts +3 -3
- package/lib/action-sheet/index.css +1 -1
- package/lib/action-sheet/index.d.ts +1 -1
- package/lib/action-sheet/types.d.ts +1 -1
- package/lib/address-edit/AddressEdit.d.ts +1 -1
- package/lib/address-edit/types.d.ts +5 -5
- package/lib/address-list/AddressList.d.ts +1 -1
- package/lib/address-list/AddressListItem.d.ts +1 -1
- package/lib/address-list/types.d.ts +1 -1
- package/lib/area/Area.d.ts +2 -2
- package/lib/area/index.d.ts +1 -1
- package/lib/area/types.d.ts +2 -2
- package/lib/back-top/BackTop.d.ts +66 -0
- package/lib/back-top/BackTop.js +118 -0
- package/lib/back-top/index.css +1 -0
- package/lib/back-top/index.d.ts +53 -0
- package/lib/back-top/index.js +35 -0
- package/lib/back-top/style/index.d.ts +1 -0
- package/lib/back-top/style/index.js +4 -0
- package/lib/back-top/types.d.ts +6 -0
- package/lib/back-top/types.js +15 -0
- package/lib/badge/Badge.d.ts +2 -2
- package/lib/badge/types.d.ts +1 -1
- package/lib/button/Button.d.ts +1 -1
- package/lib/button/types.d.ts +5 -5
- package/lib/calendar/Calendar.d.ts +1 -1
- package/lib/calendar/CalendarMonth.d.ts +1 -1
- package/lib/calendar/types.d.ts +7 -7
- package/lib/card/Card.d.ts +1 -1
- package/lib/card/types.d.ts +1 -1
- package/lib/cascader/Cascader.d.ts +1 -1
- package/lib/cascader/types.d.ts +4 -4
- package/lib/cell/Cell.d.ts +4 -4
- package/lib/cell/index.d.ts +1 -1
- package/lib/cell/types.d.ts +1 -1
- package/lib/cell-group/CellGroup.d.ts +1 -1
- package/lib/cell-group/types.d.ts +1 -1
- package/lib/checkbox/Checkbox.d.ts +1 -1
- package/lib/checkbox/Checker.d.ts +4 -4
- package/lib/checkbox/types.d.ts +5 -5
- package/lib/checkbox-group/CheckboxGroup.d.ts +1 -1
- package/lib/checkbox-group/types.d.ts +5 -5
- package/lib/circle/Circle.d.ts +2 -2
- package/lib/circle/types.d.ts +1 -1
- package/lib/col/Col.d.ts +1 -1
- package/lib/collapse/Collapse.d.ts +4 -4
- package/lib/collapse-item/CollapseItem.d.ts +2 -2
- package/lib/collapse-item/index.d.ts +1 -1
- package/lib/collapse-item/types.d.ts +3 -3
- package/lib/composables/use-route.d.ts +1 -1
- package/lib/composables/use-sync-prop-ref.d.ts +2 -0
- package/lib/composables/use-sync-prop-ref.js +37 -0
- package/lib/composables/use-touch.d.ts +1 -1
- package/lib/config-provider/ConfigProvider.d.ts +4 -4
- package/lib/config-provider/types.d.ts +1 -1
- package/lib/contact-card/ContactCard.d.ts +2 -2
- package/lib/contact-card/types.d.ts +1 -1
- package/lib/contact-edit/ContactEdit.d.ts +2 -2
- package/lib/contact-edit/types.d.ts +1 -1
- package/lib/contact-list/ContactList.d.ts +2 -2
- package/lib/contact-list/types.d.ts +1 -1
- package/lib/count-down/CountDown.d.ts +1 -1
- package/lib/count-down/types.d.ts +4 -4
- package/lib/coupon/Coupon.d.ts +1 -1
- package/lib/coupon/types.d.ts +1 -1
- package/lib/coupon-cell/CouponCell.d.ts +1 -1
- package/lib/coupon-cell/types.d.ts +1 -1
- package/lib/coupon-list/CouponList.d.ts +1 -1
- package/lib/coupon-list/types.d.ts +1 -1
- package/lib/date-picker/DatePicker.d.ts +3 -3
- package/lib/date-picker/DatePicker.js +4 -1
- package/lib/date-picker/index.d.ts +1 -1
- package/lib/date-picker/utils.d.ts +2 -2
- package/lib/dialog/Dialog.d.ts +2 -2
- package/lib/dialog/index.d.ts +1 -1
- package/lib/dialog/types.d.ts +6 -6
- package/lib/divider/Divider.d.ts +2 -2
- package/lib/divider/types.d.ts +1 -1
- package/lib/dropdown-item/DropdownItem.d.ts +3 -3
- package/lib/dropdown-item/DropdownItem.js +5 -3
- package/lib/dropdown-item/index.d.ts +2 -2
- package/lib/dropdown-item/types.d.ts +4 -4
- package/lib/dropdown-menu/DropdownMenu.d.ts +1 -1
- package/lib/dropdown-menu/types.d.ts +3 -3
- package/lib/empty/Empty.d.ts +1 -1
- package/lib/empty/types.d.ts +1 -1
- package/lib/field/Field.d.ts +2 -2
- package/lib/field/index.d.ts +1 -1
- package/lib/field/types.d.ts +16 -16
- package/lib/form/Form.d.ts +1 -1
- package/lib/form/types.d.ts +3 -3
- package/lib/grid/Grid.d.ts +3 -3
- package/lib/grid-item/GridItem.d.ts +1 -1
- package/lib/grid-item/types.d.ts +1 -1
- package/lib/icon/Icon.d.ts +1 -1
- package/lib/image/Image.d.ts +3 -3
- package/lib/image/types.d.ts +1 -1
- package/lib/image-preview/ImagePreview.d.ts +3 -2
- package/lib/image-preview/ImagePreview.js +6 -3
- package/lib/image-preview/ImagePreviewItem.d.ts +2 -1
- package/lib/image-preview/ImagePreviewItem.js +14 -10
- package/lib/image-preview/index.d.ts +2 -1
- package/lib/image-preview/types.d.ts +5 -5
- package/lib/index-anchor/IndexAnchor.d.ts +1 -1
- package/lib/index-anchor/types.d.ts +1 -1
- package/lib/index-bar/IndexBar.d.ts +1 -1
- package/lib/index-bar/types.d.ts +4 -4
- package/lib/index.css +1 -1
- package/lib/index.d.ts +2 -1
- package/lib/index.js +4 -1
- package/lib/lazyload/vue-lazyload/lazy-image.js +6 -6
- package/lib/lazyload/vue-lazyload/util.d.ts +25 -0
- package/lib/list/List.d.ts +1 -1
- package/lib/list/List.js +1 -1
- package/lib/list/types.d.ts +4 -4
- package/lib/loading/Loading.d.ts +2 -2
- package/lib/loading/types.d.ts +1 -1
- package/lib/locale/index.d.ts +1 -1
- package/lib/nav-bar/NavBar.d.ts +1 -1
- package/lib/nav-bar/types.d.ts +1 -1
- package/lib/notice-bar/NoticeBar.d.ts +1 -1
- package/lib/notice-bar/types.d.ts +4 -4
- package/lib/notify/Notify.d.ts +1 -1
- package/lib/notify/types.d.ts +5 -5
- package/lib/number-keyboard/NumberKeyboard.d.ts +2 -2
- package/lib/number-keyboard/NumberKeyboard.js +5 -3
- package/lib/number-keyboard/NumberKeyboardKey.d.ts +1 -1
- package/lib/number-keyboard/types.d.ts +1 -1
- package/lib/overlay/Overlay.d.ts +1 -1
- package/lib/overlay/types.d.ts +1 -1
- package/lib/pagination/Pagination.d.ts +2 -2
- package/lib/pagination/types.d.ts +1 -1
- package/lib/password-input/PasswordInput.d.ts +1 -1
- package/lib/password-input/types.d.ts +1 -1
- package/lib/picker/Picker.d.ts +2 -2
- package/lib/picker/Picker.js +3 -1
- package/lib/picker/PickerColumn.js +5 -4
- package/lib/picker/PickerToolbar.d.ts +1 -1
- package/lib/picker/index.d.ts +1 -1
- package/lib/picker/types.d.ts +11 -11
- package/lib/picker-group/PickerGroup.d.ts +2 -2
- package/lib/picker-group/types.d.ts +1 -1
- package/lib/popover/Popover.d.ts +1 -1
- package/lib/popover/Popover.js +13 -8
- package/lib/popover/types.d.ts +5 -5
- package/lib/popup/Popup.d.ts +3 -3
- package/lib/popup/index.d.ts +2 -2
- package/lib/popup/shared.d.ts +1 -1
- package/lib/popup/types.d.ts +5 -5
- package/lib/progress/Progress.d.ts +1 -1
- package/lib/progress/types.d.ts +3 -3
- package/lib/pull-refresh/PullRefresh.d.ts +1 -1
- package/lib/pull-refresh/types.d.ts +1 -1
- package/lib/radio/Radio.d.ts +3 -3
- package/lib/radio/types.d.ts +1 -1
- package/lib/radio-group/RadioGroup.d.ts +3 -3
- package/lib/rate/Rate.d.ts +1 -1
- package/lib/rate/types.d.ts +1 -1
- package/lib/row/Row.d.ts +5 -5
- package/lib/search/Search.d.ts +1 -1
- package/lib/search/types.d.ts +4 -4
- package/lib/share-sheet/ShareSheet.d.ts +4 -4
- package/lib/share-sheet/index.d.ts +1 -1
- package/lib/share-sheet/types.d.ts +1 -1
- package/lib/sidebar/Sidebar.d.ts +2 -2
- package/lib/sidebar/types.d.ts +1 -1
- package/lib/sidebar-item/SidebarItem.d.ts +1 -1
- package/lib/sidebar-item/types.d.ts +1 -1
- package/lib/skeleton/Skeleton.d.ts +24 -24
- package/lib/skeleton/Skeleton.js +34 -23
- package/lib/skeleton/SkeletonAvatar.d.ts +26 -0
- package/lib/skeleton/SkeletonAvatar.js +41 -0
- package/lib/skeleton/SkeletonImage.d.ts +26 -0
- package/lib/skeleton/SkeletonImage.js +45 -0
- package/lib/skeleton/SkeletonParagraph.d.ts +27 -0
- package/lib/skeleton/SkeletonParagraph.js +50 -0
- package/lib/skeleton/SkeletonTitle.d.ts +16 -0
- package/lib/skeleton/SkeletonTitle.js +45 -0
- package/lib/skeleton/index.css +1 -1
- package/lib/skeleton/index.d.ts +85 -18
- package/lib/skeleton/index.js +22 -2
- package/lib/skeleton/style/index.js +2 -0
- package/lib/skeleton/types.d.ts +8 -4
- package/lib/slider/Slider.d.ts +3 -3
- package/lib/slider/types.d.ts +1 -1
- package/lib/space/Space.d.ts +3 -3
- package/lib/step/types.d.ts +1 -1
- package/lib/stepper/Stepper.d.ts +3 -3
- package/lib/stepper/Stepper.js +1 -2
- package/lib/stepper/index.d.ts +1 -1
- package/lib/stepper/types.d.ts +1 -1
- package/lib/steps/Steps.d.ts +3 -3
- package/lib/steps/types.d.ts +1 -1
- package/lib/sticky/Sticky.d.ts +2 -2
- package/lib/sticky/types.d.ts +1 -1
- package/lib/submit-bar/SubmitBar.d.ts +2 -2
- package/lib/submit-bar/types.d.ts +1 -1
- package/lib/swipe/Swipe.d.ts +1 -1
- package/lib/swipe/types.d.ts +6 -6
- package/lib/swipe-cell/SwipeCell.d.ts +3 -3
- package/lib/swipe-cell/index.d.ts +2 -2
- package/lib/swipe-cell/types.d.ts +4 -4
- package/lib/switch/Switch.d.ts +1 -1
- package/lib/switch/types.d.ts +1 -1
- package/lib/tab/Tab.d.ts +1 -1
- package/lib/tabbar/Tabbar.d.ts +2 -2
- package/lib/tabbar/types.d.ts +1 -1
- package/lib/tabbar-item/TabbarItem.d.ts +1 -1
- package/lib/tabbar-item/types.d.ts +1 -1
- package/lib/tabs/Tabs.d.ts +1 -1
- package/lib/tabs/types.d.ts +6 -6
- package/lib/tag/Tag.d.ts +1 -1
- package/lib/tag/types.d.ts +3 -3
- package/lib/time-picker/TimePicker.d.ts +3 -3
- package/lib/time-picker/TimePicker.js +4 -1
- package/lib/time-picker/index.d.ts +1 -1
- package/lib/toast/Toast.d.ts +1 -1
- package/lib/toast/types.d.ts +6 -6
- package/lib/tree-select/TreeSelect.d.ts +3 -3
- package/lib/tree-select/types.d.ts +1 -1
- package/lib/uploader/Uploader.d.ts +1 -1
- package/lib/uploader/Uploader.js +3 -3
- package/lib/uploader/types.d.ts +8 -8
- package/lib/utils/basic.d.ts +3 -3
- package/lib/utils/constant.d.ts +1 -0
- package/lib/utils/constant.js +3 -1
- package/lib/utils/create.d.ts +4 -4
- package/lib/utils/deep-assign.d.ts +1 -1
- package/lib/utils/dom.d.ts +1 -1
- package/lib/utils/interceptor.d.ts +1 -1
- package/lib/utils/mount-component.d.ts +1 -1
- package/lib/utils/with-install.d.ts +2 -2
- package/lib/vant.cjs.js +1182 -963
- package/lib/vant.es.js +1183 -964
- package/lib/vant.js +1176 -963
- package/lib/vant.min.js +1 -1
- package/lib/web-types.json +1 -12164
- package/package.json +2 -2
@@ -0,0 +1,26 @@
|
|
1
|
+
import { type ExtractPropTypes } from 'vue';
|
2
|
+
import type { SkeletonImageShape } from './types';
|
3
|
+
export declare const skeletonImageProps: {
|
4
|
+
imageSize: (NumberConstructor | StringConstructor)[];
|
5
|
+
imageShape: {
|
6
|
+
type: import("vue").PropType<SkeletonImageShape>;
|
7
|
+
default: SkeletonImageShape;
|
8
|
+
};
|
9
|
+
};
|
10
|
+
export type SkeletonImageProps = ExtractPropTypes<typeof skeletonImageProps>;
|
11
|
+
declare const _default: import("vue").DefineComponent<{
|
12
|
+
imageSize: (NumberConstructor | StringConstructor)[];
|
13
|
+
imageShape: {
|
14
|
+
type: import("vue").PropType<SkeletonImageShape>;
|
15
|
+
default: SkeletonImageShape;
|
16
|
+
};
|
17
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
18
|
+
imageSize: (NumberConstructor | StringConstructor)[];
|
19
|
+
imageShape: {
|
20
|
+
type: import("vue").PropType<SkeletonImageShape>;
|
21
|
+
default: SkeletonImageShape;
|
22
|
+
};
|
23
|
+
}>>, {
|
24
|
+
imageShape: SkeletonImageShape;
|
25
|
+
}>;
|
26
|
+
export default _default;
|
@@ -0,0 +1,45 @@
|
|
1
|
+
var __defProp = Object.defineProperty;
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
5
|
+
var __export = (target, all) => {
|
6
|
+
for (var name2 in all)
|
7
|
+
__defProp(target, name2, { get: all[name2], enumerable: true });
|
8
|
+
};
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
11
|
+
for (let key of __getOwnPropNames(from))
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
14
|
+
}
|
15
|
+
return to;
|
16
|
+
};
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
18
|
+
var stdin_exports = {};
|
19
|
+
__export(stdin_exports, {
|
20
|
+
default: () => stdin_default,
|
21
|
+
skeletonImageProps: () => skeletonImageProps
|
22
|
+
});
|
23
|
+
module.exports = __toCommonJS(stdin_exports);
|
24
|
+
var import_vue = require("vue");
|
25
|
+
var import_vue2 = require("vue");
|
26
|
+
var import_utils = require("../utils");
|
27
|
+
var import_icon = require("../icon");
|
28
|
+
const [name, bem] = (0, import_utils.createNamespace)("skeleton-image");
|
29
|
+
const skeletonImageProps = {
|
30
|
+
imageSize: import_utils.numericProp,
|
31
|
+
imageShape: (0, import_utils.makeStringProp)("square")
|
32
|
+
};
|
33
|
+
var stdin_default = (0, import_vue2.defineComponent)({
|
34
|
+
name,
|
35
|
+
props: skeletonImageProps,
|
36
|
+
setup(props) {
|
37
|
+
return () => (0, import_vue.createVNode)("div", {
|
38
|
+
"class": bem([props.imageShape]),
|
39
|
+
"style": (0, import_utils.getSizeStyle)(props.imageSize)
|
40
|
+
}, [(0, import_vue.createVNode)(import_icon.Icon, {
|
41
|
+
"name": "photo",
|
42
|
+
"class": bem("icon")
|
43
|
+
}, null)]);
|
44
|
+
}
|
45
|
+
});
|
@@ -0,0 +1,27 @@
|
|
1
|
+
import { ExtractPropTypes } from 'vue';
|
2
|
+
export declare const DEFAULT_ROW_WIDTH = "100%";
|
3
|
+
export declare const skeletonParagraphProps: {
|
4
|
+
round: BooleanConstructor;
|
5
|
+
rowWidth: {
|
6
|
+
type: (NumberConstructor | StringConstructor)[];
|
7
|
+
default: string;
|
8
|
+
};
|
9
|
+
};
|
10
|
+
export type SkeletonParagraphProps = ExtractPropTypes<typeof skeletonParagraphProps>;
|
11
|
+
declare const _default: import("vue").DefineComponent<{
|
12
|
+
round: BooleanConstructor;
|
13
|
+
rowWidth: {
|
14
|
+
type: (NumberConstructor | StringConstructor)[];
|
15
|
+
default: string;
|
16
|
+
};
|
17
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
18
|
+
round: BooleanConstructor;
|
19
|
+
rowWidth: {
|
20
|
+
type: (NumberConstructor | StringConstructor)[];
|
21
|
+
default: string;
|
22
|
+
};
|
23
|
+
}>>, {
|
24
|
+
round: boolean;
|
25
|
+
rowWidth: string | number;
|
26
|
+
}>;
|
27
|
+
export default _default;
|
@@ -0,0 +1,50 @@
|
|
1
|
+
var __defProp = Object.defineProperty;
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
5
|
+
var __export = (target, all) => {
|
6
|
+
for (var name2 in all)
|
7
|
+
__defProp(target, name2, { get: all[name2], enumerable: true });
|
8
|
+
};
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
11
|
+
for (let key of __getOwnPropNames(from))
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
14
|
+
}
|
15
|
+
return to;
|
16
|
+
};
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
18
|
+
var stdin_exports = {};
|
19
|
+
__export(stdin_exports, {
|
20
|
+
DEFAULT_ROW_WIDTH: () => DEFAULT_ROW_WIDTH,
|
21
|
+
default: () => stdin_default,
|
22
|
+
skeletonParagraphProps: () => skeletonParagraphProps
|
23
|
+
});
|
24
|
+
module.exports = __toCommonJS(stdin_exports);
|
25
|
+
var import_vue = require("vue");
|
26
|
+
var import_vue2 = require("vue");
|
27
|
+
var import_utils = require("../utils");
|
28
|
+
const DEFAULT_ROW_WIDTH = "100%";
|
29
|
+
const skeletonParagraphProps = {
|
30
|
+
round: Boolean,
|
31
|
+
rowWidth: {
|
32
|
+
type: import_utils.numericProp,
|
33
|
+
default: DEFAULT_ROW_WIDTH
|
34
|
+
}
|
35
|
+
};
|
36
|
+
const [name, bem] = (0, import_utils.createNamespace)("skeleton-paragraph");
|
37
|
+
var stdin_default = (0, import_vue2.defineComponent)({
|
38
|
+
name,
|
39
|
+
props: skeletonParagraphProps,
|
40
|
+
setup(props) {
|
41
|
+
return () => (0, import_vue.createVNode)("div", {
|
42
|
+
"class": bem([{
|
43
|
+
round: props.round
|
44
|
+
}]),
|
45
|
+
"style": {
|
46
|
+
width: props.rowWidth
|
47
|
+
}
|
48
|
+
}, null);
|
49
|
+
}
|
50
|
+
});
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import { type ExtractPropTypes } from 'vue';
|
2
|
+
export declare const skeletonTitleProps: {
|
3
|
+
round: BooleanConstructor;
|
4
|
+
titleWidth: (NumberConstructor | StringConstructor)[];
|
5
|
+
};
|
6
|
+
export type SkeletonTitleProps = ExtractPropTypes<typeof skeletonTitleProps>;
|
7
|
+
declare const _default: import("vue").DefineComponent<{
|
8
|
+
round: BooleanConstructor;
|
9
|
+
titleWidth: (NumberConstructor | StringConstructor)[];
|
10
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
11
|
+
round: BooleanConstructor;
|
12
|
+
titleWidth: (NumberConstructor | StringConstructor)[];
|
13
|
+
}>>, {
|
14
|
+
round: boolean;
|
15
|
+
}>;
|
16
|
+
export default _default;
|
@@ -0,0 +1,45 @@
|
|
1
|
+
var __defProp = Object.defineProperty;
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
5
|
+
var __export = (target, all) => {
|
6
|
+
for (var name2 in all)
|
7
|
+
__defProp(target, name2, { get: all[name2], enumerable: true });
|
8
|
+
};
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
11
|
+
for (let key of __getOwnPropNames(from))
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
14
|
+
}
|
15
|
+
return to;
|
16
|
+
};
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
18
|
+
var stdin_exports = {};
|
19
|
+
__export(stdin_exports, {
|
20
|
+
default: () => stdin_default,
|
21
|
+
skeletonTitleProps: () => skeletonTitleProps
|
22
|
+
});
|
23
|
+
module.exports = __toCommonJS(stdin_exports);
|
24
|
+
var import_vue = require("vue");
|
25
|
+
var import_vue2 = require("vue");
|
26
|
+
var import_utils = require("../utils");
|
27
|
+
const [name, bem] = (0, import_utils.createNamespace)("skeleton-title");
|
28
|
+
const skeletonTitleProps = {
|
29
|
+
round: Boolean,
|
30
|
+
titleWidth: import_utils.numericProp
|
31
|
+
};
|
32
|
+
var stdin_default = (0, import_vue2.defineComponent)({
|
33
|
+
name,
|
34
|
+
props: skeletonTitleProps,
|
35
|
+
setup(props) {
|
36
|
+
return () => (0, import_vue.createVNode)("h3", {
|
37
|
+
"class": bem([{
|
38
|
+
round: props.round
|
39
|
+
}]),
|
40
|
+
"style": {
|
41
|
+
width: (0, import_utils.addUnit)(props.titleWidth)
|
42
|
+
}
|
43
|
+
}, null);
|
44
|
+
}
|
45
|
+
});
|
package/lib/skeleton/index.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
:root{--van-skeleton-
|
1
|
+
:root{--van-skeleton-paragraph-height: 16px;--van-skeleton-paragraph-background: var(--van-active-color);--van-skeleton-paragraph-margin-top: var(--van-padding-sm);--van-skeleton-title-width: 40%;--van-skeleton-avatar-size: 32px;--van-skeleton-avatar-background: var(--van-active-color);--van-skeleton-image-size: 96px;--van-skeleton-image-radius: 24px;--van-skeleton-duration: 1.2s}.van-skeleton{display:flex;padding:0 var(--van-padding-md)}.van-skeleton-avatar{flex-shrink:0;width:var(--van-skeleton-avatar-size);height:var(--van-skeleton-avatar-size);margin-right:var(--van-padding-md);background:var(--van-skeleton-avatar-background)}.van-skeleton-avatar--round{border-radius:var(--van-radius-max)}.van-skeleton__content{width:100%}.van-skeleton-avatar+.van-skeleton__content{padding-top:var(--van-padding-xs)}.van-skeleton-paragraph,.van-skeleton-title{height:var(--van-skeleton-paragraph-height);background:var(--van-skeleton-paragraph-background)}.van-skeleton-paragraph--round,.van-skeleton-title--round{border-radius:var(--van-radius-max)}.van-skeleton-title{width:var(--van-skeleton-title-width);margin:0}.van-skeleton-paragraph:not(:first-child){margin-top:var(--van-skeleton-paragraph-margin-top)}.van-skeleton-title+.van-skeleton-paragraph{margin-top:20px}.van-skeleton--animate{animation:van-skeleton-blink var(--van-skeleton-duration) ease-in-out infinite}.van-skeleton-image{display:flex;width:var(--van-skeleton-image-size);height:var(--van-skeleton-image-size);align-items:center;justify-content:center;background:var(--van-active-color)}.van-skeleton-image--round{border-radius:var(--van-skeleton-image-radius)}.van-skeleton-image__icon{width:calc(var(--van-skeleton-image-size) / 2);height:calc(var(--van-skeleton-image-size) / 2);font-size:calc(var(--van-skeleton-image-size) / 2);color:var(--van-gray-5)}@keyframes van-skeleton-blink{50%{opacity:.6}}
|
package/lib/skeleton/index.d.ts
CHANGED
@@ -1,11 +1,72 @@
|
|
1
|
+
export declare const SkeletonImage: import("../utils").WithInstall<import("vue").DefineComponent<{
|
2
|
+
imageSize: (NumberConstructor | StringConstructor)[];
|
3
|
+
imageShape: {
|
4
|
+
type: import("vue").PropType<import("./types").SkeletonImageShape>;
|
5
|
+
default: import("./types").SkeletonImageShape;
|
6
|
+
};
|
7
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
8
|
+
imageSize: (NumberConstructor | StringConstructor)[];
|
9
|
+
imageShape: {
|
10
|
+
type: import("vue").PropType<import("./types").SkeletonImageShape>;
|
11
|
+
default: import("./types").SkeletonImageShape;
|
12
|
+
};
|
13
|
+
}>>, {
|
14
|
+
imageShape: import("./types").SkeletonImageShape;
|
15
|
+
}>>;
|
16
|
+
export declare const SkeletonTitle: import("../utils").WithInstall<import("vue").DefineComponent<{
|
17
|
+
round: BooleanConstructor;
|
18
|
+
titleWidth: (NumberConstructor | StringConstructor)[];
|
19
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
20
|
+
round: BooleanConstructor;
|
21
|
+
titleWidth: (NumberConstructor | StringConstructor)[];
|
22
|
+
}>>, {
|
23
|
+
round: boolean;
|
24
|
+
}>>;
|
25
|
+
export declare const SkeletonAvatar: import("../utils").WithInstall<import("vue").DefineComponent<{
|
26
|
+
avatarSize: (NumberConstructor | StringConstructor)[];
|
27
|
+
avatarShape: {
|
28
|
+
type: import("vue").PropType<import("./types").SkeletonAvatarShape>;
|
29
|
+
default: import("./types").SkeletonAvatarShape;
|
30
|
+
};
|
31
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
32
|
+
avatarSize: (NumberConstructor | StringConstructor)[];
|
33
|
+
avatarShape: {
|
34
|
+
type: import("vue").PropType<import("./types").SkeletonAvatarShape>;
|
35
|
+
default: import("./types").SkeletonAvatarShape;
|
36
|
+
};
|
37
|
+
}>>, {
|
38
|
+
avatarShape: import("./types").SkeletonAvatarShape;
|
39
|
+
}>>;
|
40
|
+
export declare const SkeletonParagraph: import("../utils").WithInstall<import("vue").DefineComponent<{
|
41
|
+
round: BooleanConstructor;
|
42
|
+
rowWidth: {
|
43
|
+
type: (NumberConstructor | StringConstructor)[];
|
44
|
+
default: string;
|
45
|
+
};
|
46
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
47
|
+
round: BooleanConstructor;
|
48
|
+
rowWidth: {
|
49
|
+
type: (NumberConstructor | StringConstructor)[];
|
50
|
+
default: string;
|
51
|
+
};
|
52
|
+
}>>, {
|
53
|
+
round: boolean;
|
54
|
+
rowWidth: string | number;
|
55
|
+
}>>;
|
1
56
|
export declare const Skeleton: import("../utils").WithInstall<import("vue").DefineComponent<{
|
2
57
|
row: {
|
3
58
|
type: (NumberConstructor | StringConstructor)[];
|
4
59
|
default: number;
|
5
60
|
};
|
6
|
-
title: BooleanConstructor;
|
7
61
|
round: BooleanConstructor;
|
62
|
+
title: BooleanConstructor;
|
63
|
+
titleWidth: (NumberConstructor | StringConstructor)[];
|
8
64
|
avatar: BooleanConstructor;
|
65
|
+
avatarSize: (NumberConstructor | StringConstructor)[];
|
66
|
+
avatarShape: {
|
67
|
+
type: import("vue").PropType<import("./types").SkeletonAvatarShape>;
|
68
|
+
default: import("./types").SkeletonAvatarShape;
|
69
|
+
};
|
9
70
|
loading: {
|
10
71
|
type: BooleanConstructor;
|
11
72
|
default: true;
|
@@ -14,12 +75,6 @@ export declare const Skeleton: import("../utils").WithInstall<import("vue").Defi
|
|
14
75
|
type: BooleanConstructor;
|
15
76
|
default: true;
|
16
77
|
};
|
17
|
-
avatarSize: (NumberConstructor | StringConstructor)[];
|
18
|
-
titleWidth: (NumberConstructor | StringConstructor)[];
|
19
|
-
avatarShape: {
|
20
|
-
type: import("vue").PropType<import("./Skeleton").SkeletonAvatarShape>;
|
21
|
-
default: import("./Skeleton").SkeletonAvatarShape;
|
22
|
-
};
|
23
78
|
rowWidth: {
|
24
79
|
type: import("vue").PropType<import("../utils").Numeric | import("../utils").Numeric[]>;
|
25
80
|
default: string;
|
@@ -31,9 +86,15 @@ export declare const Skeleton: import("../utils").WithInstall<import("vue").Defi
|
|
31
86
|
type: (NumberConstructor | StringConstructor)[];
|
32
87
|
default: number;
|
33
88
|
};
|
34
|
-
title: BooleanConstructor;
|
35
89
|
round: BooleanConstructor;
|
90
|
+
title: BooleanConstructor;
|
91
|
+
titleWidth: (NumberConstructor | StringConstructor)[];
|
36
92
|
avatar: BooleanConstructor;
|
93
|
+
avatarSize: (NumberConstructor | StringConstructor)[];
|
94
|
+
avatarShape: {
|
95
|
+
type: import("vue").PropType<import("./types").SkeletonAvatarShape>;
|
96
|
+
default: import("./types").SkeletonAvatarShape;
|
97
|
+
};
|
37
98
|
loading: {
|
38
99
|
type: BooleanConstructor;
|
39
100
|
default: true;
|
@@ -42,12 +103,6 @@ export declare const Skeleton: import("../utils").WithInstall<import("vue").Defi
|
|
42
103
|
type: BooleanConstructor;
|
43
104
|
default: true;
|
44
105
|
};
|
45
|
-
avatarSize: (NumberConstructor | StringConstructor)[];
|
46
|
-
titleWidth: (NumberConstructor | StringConstructor)[];
|
47
|
-
avatarShape: {
|
48
|
-
type: import("vue").PropType<import("./Skeleton").SkeletonAvatarShape>;
|
49
|
-
default: import("./Skeleton").SkeletonAvatarShape;
|
50
|
-
};
|
51
106
|
rowWidth: {
|
52
107
|
type: import("vue").PropType<import("../utils").Numeric | import("../utils").Numeric[]>;
|
53
108
|
default: string;
|
@@ -58,16 +113,28 @@ export declare const Skeleton: import("../utils").WithInstall<import("vue").Defi
|
|
58
113
|
round: boolean;
|
59
114
|
loading: boolean;
|
60
115
|
row: string | number;
|
61
|
-
|
62
|
-
avatarShape: import("./Skeleton").SkeletonAvatarShape;
|
116
|
+
avatarShape: import("./types").SkeletonAvatarShape;
|
63
117
|
rowWidth: import("../utils").Numeric | import("../utils").Numeric[];
|
118
|
+
avatar: boolean;
|
64
119
|
}>>;
|
65
120
|
export default Skeleton;
|
66
121
|
export { skeletonProps } from './Skeleton';
|
67
|
-
export type { SkeletonProps
|
68
|
-
export
|
122
|
+
export type { SkeletonProps } from './Skeleton';
|
123
|
+
export { skeletonImageProps } from './SkeletonImage';
|
124
|
+
export type { SkeletonImageProps } from './SkeletonImage';
|
125
|
+
export { skeletonAvatarProps } from './SkeletonAvatar';
|
126
|
+
export type { SkeletonAvatarProps } from './SkeletonAvatar';
|
127
|
+
export { skeletonParagraphProps } from './SkeletonParagraph';
|
128
|
+
export type { SkeletonParagraphProps } from './SkeletonParagraph';
|
129
|
+
export { skeletonTitleProps } from './SkeletonTitle';
|
130
|
+
export type { SkeletonTitleProps } from './SkeletonTitle';
|
131
|
+
export type { SkeletonThemeVars, SkeletonImageShape, SkeletonAvatarShape, } from './types';
|
69
132
|
declare module 'vue' {
|
70
133
|
interface GlobalComponents {
|
71
134
|
VanSkeleton: typeof Skeleton;
|
135
|
+
VanSkeletonImage: typeof SkeletonImage;
|
136
|
+
VanSkeletonTitle: typeof SkeletonTitle;
|
137
|
+
VanSkeletonAvatar: typeof SkeletonAvatar;
|
138
|
+
VanSkeletonParagraph: typeof SkeletonParagraph;
|
72
139
|
}
|
73
140
|
}
|
package/lib/skeleton/index.js
CHANGED
@@ -24,12 +24,32 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
24
24
|
var stdin_exports = {};
|
25
25
|
__export(stdin_exports, {
|
26
26
|
Skeleton: () => Skeleton,
|
27
|
+
SkeletonAvatar: () => SkeletonAvatar,
|
28
|
+
SkeletonImage: () => SkeletonImage,
|
29
|
+
SkeletonParagraph: () => SkeletonParagraph,
|
30
|
+
SkeletonTitle: () => SkeletonTitle,
|
27
31
|
default: () => stdin_default,
|
28
|
-
|
32
|
+
skeletonAvatarProps: () => import_SkeletonAvatar2.skeletonAvatarProps,
|
33
|
+
skeletonImageProps: () => import_SkeletonImage2.skeletonImageProps,
|
34
|
+
skeletonParagraphProps: () => import_SkeletonParagraph2.skeletonParagraphProps,
|
35
|
+
skeletonProps: () => import_Skeleton2.skeletonProps,
|
36
|
+
skeletonTitleProps: () => import_SkeletonTitle2.skeletonTitleProps
|
29
37
|
});
|
30
38
|
module.exports = __toCommonJS(stdin_exports);
|
31
|
-
var import_utils = require("../utils");
|
32
39
|
var import_Skeleton = __toESM(require("./Skeleton"));
|
40
|
+
var import_SkeletonImage = __toESM(require("./SkeletonImage"));
|
41
|
+
var import_SkeletonTitle = __toESM(require("./SkeletonTitle"));
|
42
|
+
var import_SkeletonAvatar = __toESM(require("./SkeletonAvatar"));
|
43
|
+
var import_SkeletonParagraph = __toESM(require("./SkeletonParagraph"));
|
44
|
+
var import_utils = require("../utils");
|
33
45
|
var import_Skeleton2 = require("./Skeleton");
|
46
|
+
var import_SkeletonImage2 = require("./SkeletonImage");
|
47
|
+
var import_SkeletonAvatar2 = require("./SkeletonAvatar");
|
48
|
+
var import_SkeletonParagraph2 = require("./SkeletonParagraph");
|
49
|
+
var import_SkeletonTitle2 = require("./SkeletonTitle");
|
50
|
+
const SkeletonImage = (0, import_utils.withInstall)(import_SkeletonImage.default);
|
51
|
+
const SkeletonTitle = (0, import_utils.withInstall)(import_SkeletonTitle.default);
|
52
|
+
const SkeletonAvatar = (0, import_utils.withInstall)(import_SkeletonAvatar.default);
|
53
|
+
const SkeletonParagraph = (0, import_utils.withInstall)(import_SkeletonParagraph.default);
|
34
54
|
const Skeleton = (0, import_utils.withInstall)(import_Skeleton.default);
|
35
55
|
var stdin_default = Skeleton;
|
package/lib/skeleton/types.d.ts
CHANGED
@@ -1,9 +1,13 @@
|
|
1
|
-
export
|
2
|
-
|
3
|
-
|
4
|
-
|
1
|
+
export type SkeletonAvatarShape = 'square' | 'round';
|
2
|
+
export type SkeletonImageShape = 'square' | 'round';
|
3
|
+
export type SkeletonThemeVars = {
|
4
|
+
skeletonParagraphHeight?: string;
|
5
|
+
skeletonParagraphBackground?: string;
|
6
|
+
skeletonParagraphMarginTop?: string;
|
5
7
|
skeletonTitleWidth?: string;
|
6
8
|
skeletonAvatarSize?: string;
|
7
9
|
skeletonAvatarBackground?: string;
|
10
|
+
SkeletonImageSize?: string;
|
11
|
+
SkeletonImageRadius?: string;
|
8
12
|
skeletonDuration?: string;
|
9
13
|
};
|
package/lib/slider/Slider.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { type PropType, type ExtractPropTypes } from 'vue';
|
2
|
-
|
3
|
-
|
2
|
+
type NumberRange = [number, number];
|
3
|
+
type SliderValue = number | NumberRange;
|
4
4
|
export declare const sliderProps: {
|
5
5
|
min: {
|
6
6
|
type: (NumberConstructor | StringConstructor)[];
|
@@ -28,7 +28,7 @@ export declare const sliderProps: {
|
|
28
28
|
default: number;
|
29
29
|
};
|
30
30
|
};
|
31
|
-
export
|
31
|
+
export type SliderProps = ExtractPropTypes<typeof sliderProps>;
|
32
32
|
declare const _default: import("vue").DefineComponent<{
|
33
33
|
min: {
|
34
34
|
type: (NumberConstructor | StringConstructor)[];
|
package/lib/slider/types.d.ts
CHANGED
package/lib/space/Space.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { ExtractPropTypes, PropType } from 'vue';
|
2
|
-
export
|
3
|
-
export
|
2
|
+
export type SpaceSize = number | string;
|
3
|
+
export type SpaceAlign = 'start' | 'end' | 'center' | 'baseline';
|
4
4
|
export declare const spaceProps: {
|
5
5
|
align: PropType<SpaceAlign>;
|
6
6
|
direction: {
|
@@ -14,7 +14,7 @@ export declare const spaceProps: {
|
|
14
14
|
wrap: BooleanConstructor;
|
15
15
|
fill: BooleanConstructor;
|
16
16
|
};
|
17
|
-
export
|
17
|
+
export type SpaceProps = ExtractPropTypes<typeof spaceProps>;
|
18
18
|
declare const _default: import("vue").DefineComponent<{
|
19
19
|
align: PropType<SpaceAlign>;
|
20
20
|
direction: {
|
package/lib/step/types.d.ts
CHANGED
package/lib/stepper/Stepper.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { type PropType, type ExtractPropTypes } from 'vue';
|
2
2
|
import { Interceptor } from '../utils';
|
3
|
-
export
|
3
|
+
export type StepperTheme = 'default' | 'round';
|
4
4
|
export declare const stepperProps: {
|
5
5
|
min: {
|
6
6
|
type: (NumberConstructor | StringConstructor)[];
|
@@ -56,7 +56,7 @@ export declare const stepperProps: {
|
|
56
56
|
};
|
57
57
|
decimalLength: (NumberConstructor | StringConstructor)[];
|
58
58
|
};
|
59
|
-
export
|
59
|
+
export type StepperProps = ExtractPropTypes<typeof stepperProps>;
|
60
60
|
declare const _default: import("vue").DefineComponent<{
|
61
61
|
min: {
|
62
62
|
type: (NumberConstructor | StringConstructor)[];
|
@@ -177,13 +177,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
177
177
|
name: string | number;
|
178
178
|
max: string | number;
|
179
179
|
disabled: boolean;
|
180
|
+
longPress: boolean;
|
180
181
|
step: string | number;
|
181
182
|
min: string | number;
|
182
183
|
integer: boolean;
|
183
184
|
showPlus: boolean;
|
184
185
|
showMinus: boolean;
|
185
186
|
showInput: boolean;
|
186
|
-
longPress: boolean;
|
187
187
|
autoFixed: boolean;
|
188
188
|
allowEmpty: boolean;
|
189
189
|
disablePlus: boolean;
|
package/lib/stepper/Stepper.js
CHANGED
@@ -27,7 +27,6 @@ var import_utils = require("../utils");
|
|
27
27
|
var import_use = require("@vant/use");
|
28
28
|
const [name, bem] = (0, import_utils.createNamespace)("stepper");
|
29
29
|
const LONG_PRESS_INTERVAL = 200;
|
30
|
-
const LONG_PRESS_START_TIME = 600;
|
31
30
|
const isEqual = (value1, value2) => String(value1) === String(value2);
|
32
31
|
const stepperProps = {
|
33
32
|
min: (0, import_utils.makeNumericProp)(1),
|
@@ -182,7 +181,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
182
181
|
isLongPress = true;
|
183
182
|
onChange();
|
184
183
|
longPressStep();
|
185
|
-
}, LONG_PRESS_START_TIME);
|
184
|
+
}, import_utils.LONG_PRESS_START_TIME);
|
186
185
|
}
|
187
186
|
};
|
188
187
|
const onTouchEnd = (event) => {
|
package/lib/stepper/index.d.ts
CHANGED
@@ -118,13 +118,13 @@ export declare const Stepper: import("../utils").WithInstall<import("vue").Defin
|
|
118
118
|
name: string | number;
|
119
119
|
max: string | number;
|
120
120
|
disabled: boolean;
|
121
|
+
longPress: boolean;
|
121
122
|
step: string | number;
|
122
123
|
min: string | number;
|
123
124
|
integer: boolean;
|
124
125
|
showPlus: boolean;
|
125
126
|
showMinus: boolean;
|
126
127
|
showInput: boolean;
|
127
|
-
longPress: boolean;
|
128
128
|
autoFixed: boolean;
|
129
129
|
allowEmpty: boolean;
|
130
130
|
disablePlus: boolean;
|
package/lib/stepper/types.d.ts
CHANGED
package/lib/steps/Steps.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { type ExtractPropTypes, type InjectionKey } from 'vue';
|
2
|
-
export
|
2
|
+
export type StepsDirection = 'horizontal' | 'vertical';
|
3
3
|
export declare const stepsProps: {
|
4
4
|
active: {
|
5
5
|
type: (NumberConstructor | StringConstructor)[];
|
@@ -19,8 +19,8 @@ export declare const stepsProps: {
|
|
19
19
|
inactiveIcon: StringConstructor;
|
20
20
|
inactiveColor: StringConstructor;
|
21
21
|
};
|
22
|
-
export
|
23
|
-
export
|
22
|
+
export type StepsProps = ExtractPropTypes<typeof stepsProps>;
|
23
|
+
export type StepsProvide = {
|
24
24
|
props: StepsProps;
|
25
25
|
onClickStep: (index: number) => void;
|
26
26
|
};
|
package/lib/steps/types.d.ts
CHANGED
package/lib/sticky/Sticky.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { type PropType, type ExtractPropTypes } from 'vue';
|
2
|
-
export
|
2
|
+
export type StickyPosition = 'top' | 'bottom';
|
3
3
|
export declare const stickyProps: {
|
4
4
|
zIndex: (NumberConstructor | StringConstructor)[];
|
5
5
|
position: {
|
@@ -16,7 +16,7 @@ export declare const stickyProps: {
|
|
16
16
|
default: number;
|
17
17
|
};
|
18
18
|
};
|
19
|
-
export
|
19
|
+
export type StickyProps = ExtractPropTypes<typeof stickyProps>;
|
20
20
|
declare const _default: import("vue").DefineComponent<{
|
21
21
|
zIndex: (NumberConstructor | StringConstructor)[];
|
22
22
|
position: {
|
package/lib/sticky/types.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { type PropType, type ExtractPropTypes } from 'vue';
|
2
2
|
import { ButtonType } from '../button';
|
3
|
-
export
|
3
|
+
export type SubmitBarTextAlign = 'left' | 'right';
|
4
4
|
export declare const submitBarProps: {
|
5
5
|
tip: StringConstructor;
|
6
6
|
label: StringConstructor;
|
@@ -30,7 +30,7 @@ export declare const submitBarProps: {
|
|
30
30
|
default: true;
|
31
31
|
};
|
32
32
|
};
|
33
|
-
export
|
33
|
+
export type SubmitBarProps = ExtractPropTypes<typeof submitBarProps>;
|
34
34
|
declare const _default: import("vue").DefineComponent<{
|
35
35
|
tip: StringConstructor;
|
36
36
|
label: StringConstructor;
|
package/lib/swipe/Swipe.d.ts
CHANGED
@@ -35,7 +35,7 @@ export declare const swipeProps: {
|
|
35
35
|
default: true;
|
36
36
|
};
|
37
37
|
};
|
38
|
-
export
|
38
|
+
export type SwipeProps = ExtractPropTypes<typeof swipeProps>;
|
39
39
|
export declare const SWIPE_KEY: InjectionKey<SwipeProvide>;
|
40
40
|
declare const _default: import("vue").DefineComponent<{
|
41
41
|
loop: {
|