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
package/lib/popover/types.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
export
|
2
|
-
export
|
3
|
-
export
|
4
|
-
export
|
1
|
+
export type PopoverTheme = 'light' | 'dark';
|
2
|
+
export type PopoverTrigger = 'manual' | 'click';
|
3
|
+
export type PopoverPlacement = 'top' | 'top-start' | 'top-end' | 'left' | 'left-start' | 'left-end' | 'right' | 'right-start' | 'right-end' | 'bottom' | 'bottom-start' | 'bottom-end';
|
4
|
+
export type PopoverAction = {
|
5
5
|
text: string;
|
6
6
|
icon?: string;
|
7
7
|
color?: string;
|
@@ -9,7 +9,7 @@ export declare type PopoverAction = {
|
|
9
9
|
className?: string;
|
10
10
|
[key: PropertyKey]: any;
|
11
11
|
};
|
12
|
-
export
|
12
|
+
export type PopoverThemeVars = {
|
13
13
|
popoverArrowSize?: string;
|
14
14
|
popoverRadius?: string;
|
15
15
|
popoverActionWidth?: string;
|
package/lib/popup/Popup.d.ts
CHANGED
@@ -46,7 +46,7 @@ export declare const popupProps: {
|
|
46
46
|
safeAreaInsetTop: BooleanConstructor;
|
47
47
|
safeAreaInsetBottom: BooleanConstructor;
|
48
48
|
};
|
49
|
-
export
|
49
|
+
export type PopupProps = ExtractPropTypes<typeof popupProps>;
|
50
50
|
declare const _default: import("vue").DefineComponent<{
|
51
51
|
show: BooleanConstructor;
|
52
52
|
zIndex: (NumberConstructor | StringConstructor)[];
|
@@ -92,7 +92,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
92
92
|
};
|
93
93
|
safeAreaInsetTop: BooleanConstructor;
|
94
94
|
safeAreaInsetBottom: BooleanConstructor;
|
95
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
95
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("open" | "close" | "keydown" | "opened" | "closed" | "update:show" | "clickOverlay" | "clickCloseIcon")[], "open" | "close" | "keydown" | "opened" | "closed" | "update:show" | "clickOverlay" | "clickCloseIcon", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
96
96
|
show: BooleanConstructor;
|
97
97
|
zIndex: (NumberConstructor | StringConstructor)[];
|
98
98
|
overlay: {
|
@@ -139,8 +139,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
139
139
|
safeAreaInsetBottom: BooleanConstructor;
|
140
140
|
}>> & {
|
141
141
|
onKeydown?: ((...args: any[]) => any) | undefined;
|
142
|
-
onClose?: ((...args: any[]) => any) | undefined;
|
143
142
|
onOpen?: ((...args: any[]) => any) | undefined;
|
143
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
144
144
|
onOpened?: ((...args: any[]) => any) | undefined;
|
145
145
|
onClosed?: ((...args: any[]) => any) | undefined;
|
146
146
|
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
package/lib/popup/index.d.ts
CHANGED
@@ -43,7 +43,7 @@ export declare const Popup: import("../utils").WithInstall<import("vue").DefineC
|
|
43
43
|
};
|
44
44
|
safeAreaInsetTop: BooleanConstructor;
|
45
45
|
safeAreaInsetBottom: BooleanConstructor;
|
46
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
46
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("open" | "close" | "keydown" | "opened" | "closed" | "update:show" | "clickOverlay" | "clickCloseIcon")[], "open" | "close" | "keydown" | "opened" | "closed" | "update:show" | "clickOverlay" | "clickCloseIcon", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
47
47
|
show: BooleanConstructor;
|
48
48
|
zIndex: (NumberConstructor | StringConstructor)[];
|
49
49
|
overlay: {
|
@@ -90,8 +90,8 @@ export declare const Popup: import("../utils").WithInstall<import("vue").DefineC
|
|
90
90
|
safeAreaInsetBottom: BooleanConstructor;
|
91
91
|
}>> & {
|
92
92
|
onKeydown?: ((...args: any[]) => any) | undefined;
|
93
|
-
onClose?: ((...args: any[]) => any) | undefined;
|
94
93
|
onOpen?: ((...args: any[]) => any) | undefined;
|
94
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
95
95
|
onOpened?: ((...args: any[]) => any) | undefined;
|
96
96
|
onClosed?: ((...args: any[]) => any) | undefined;
|
97
97
|
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
package/lib/popup/shared.d.ts
CHANGED
@@ -26,5 +26,5 @@ export declare const popupSharedProps: {
|
|
26
26
|
default: true;
|
27
27
|
};
|
28
28
|
};
|
29
|
-
export
|
29
|
+
export type PopupSharedPropKeys = Array<keyof typeof popupSharedProps>;
|
30
30
|
export declare const popupSharedPropKeys: PopupSharedPropKeys;
|
package/lib/popup/types.d.ts
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
import type { Ref, ComponentPublicInstance } from 'vue';
|
2
2
|
import type { PopupProps } from './Popup';
|
3
|
-
export
|
4
|
-
export
|
5
|
-
export
|
3
|
+
export type PopupPosition = 'top' | 'left' | 'bottom' | 'right' | 'center' | '';
|
4
|
+
export type PopupCloseIconPosition = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
5
|
+
export type PopupExpose = {
|
6
6
|
popupRef: Ref<HTMLElement>;
|
7
7
|
};
|
8
|
-
export
|
9
|
-
export
|
8
|
+
export type PopupInstance = ComponentPublicInstance<PopupProps, PopupExpose>;
|
9
|
+
export type PopupThemeVars = {
|
10
10
|
popupBackground?: string;
|
11
11
|
popupTransition?: string;
|
12
12
|
popupRoundRadius?: string;
|
@@ -18,7 +18,7 @@ export declare const progressProps: {
|
|
18
18
|
validator: (value: Numeric) => boolean;
|
19
19
|
};
|
20
20
|
};
|
21
|
-
export
|
21
|
+
export type ProgressProps = ExtractPropTypes<typeof progressProps>;
|
22
22
|
declare const _default: import("vue").DefineComponent<{
|
23
23
|
color: StringConstructor;
|
24
24
|
inactive: BooleanConstructor;
|
package/lib/progress/types.d.ts
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
import type { ComponentPublicInstance } from 'vue';
|
2
2
|
import type { ProgressProps } from './Progress';
|
3
|
-
export
|
3
|
+
export type ProgressExpose = {
|
4
4
|
resize: () => void;
|
5
5
|
};
|
6
|
-
export
|
7
|
-
export
|
6
|
+
export type ProgressInstance = ComponentPublicInstance<ProgressProps, ProgressExpose>;
|
7
|
+
export type ProgressThemeVars = {
|
8
8
|
progressHeight?: string;
|
9
9
|
progressColor?: string;
|
10
10
|
progressInactiveColor?: string;
|
@@ -20,7 +20,7 @@ export declare const pullRefreshProps: {
|
|
20
20
|
default: number;
|
21
21
|
};
|
22
22
|
};
|
23
|
-
export
|
23
|
+
export type PullRefreshProps = ExtractPropTypes<typeof pullRefreshProps>;
|
24
24
|
declare const _default: import("vue").DefineComponent<{
|
25
25
|
disabled: BooleanConstructor;
|
26
26
|
modelValue: BooleanConstructor;
|
package/lib/radio/Radio.d.ts
CHANGED
@@ -13,9 +13,9 @@ export declare const radioProps: {
|
|
13
13
|
labelPosition: import("vue").PropType<CheckerLabelPosition>;
|
14
14
|
labelDisabled: BooleanConstructor;
|
15
15
|
};
|
16
|
-
export
|
17
|
-
export
|
18
|
-
export
|
16
|
+
export type RadioShape = CheckerShape;
|
17
|
+
export type RadioLabelPosition = CheckerLabelPosition;
|
18
|
+
export type RadioProps = ExtractPropTypes<typeof radioProps>;
|
19
19
|
declare const _default: import("vue").DefineComponent<{
|
20
20
|
name: import("vue").PropType<unknown>;
|
21
21
|
shape: {
|
package/lib/radio/types.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { type PropType, type InjectionKey, type ExtractPropTypes } from 'vue';
|
2
2
|
import type { CheckerDirection } from '../checkbox/Checker';
|
3
|
-
export
|
3
|
+
export type RadioGroupDirection = CheckerDirection;
|
4
4
|
export declare const radioGroupProps: {
|
5
5
|
disabled: BooleanConstructor;
|
6
6
|
iconSize: (NumberConstructor | StringConstructor)[];
|
@@ -8,8 +8,8 @@ export declare const radioGroupProps: {
|
|
8
8
|
modelValue: PropType<unknown>;
|
9
9
|
checkedColor: StringConstructor;
|
10
10
|
};
|
11
|
-
export
|
12
|
-
export
|
11
|
+
export type RadioGroupProps = ExtractPropTypes<typeof radioGroupProps>;
|
12
|
+
export type RadioGroupProvide = {
|
13
13
|
props: RadioGroupProps;
|
14
14
|
updateValue: (value: unknown) => void;
|
15
15
|
};
|
package/lib/rate/Rate.d.ts
CHANGED
@@ -30,7 +30,7 @@ export declare const rateProps: {
|
|
30
30
|
};
|
31
31
|
disabledColor: StringConstructor;
|
32
32
|
};
|
33
|
-
export
|
33
|
+
export type RateProps = ExtractPropTypes<typeof rateProps>;
|
34
34
|
declare const _default: import("vue").DefineComponent<{
|
35
35
|
size: (NumberConstructor | StringConstructor)[];
|
36
36
|
icon: {
|
package/lib/rate/types.d.ts
CHANGED
package/lib/row/Row.d.ts
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
import { type PropType, type ComputedRef, type InjectionKey, type ExtractPropTypes } from 'vue';
|
2
|
-
export
|
2
|
+
export type RowSpaces = {
|
3
3
|
left?: number;
|
4
4
|
right: number;
|
5
5
|
}[];
|
6
|
-
export
|
6
|
+
export type RowProvide = {
|
7
7
|
spaces: ComputedRef<RowSpaces>;
|
8
8
|
};
|
9
9
|
export declare const ROW_KEY: InjectionKey<RowProvide>;
|
10
|
-
export
|
11
|
-
export
|
10
|
+
export type RowAlign = 'top' | 'center' | 'bottom';
|
11
|
+
export type RowJustify = 'start' | 'end' | 'center' | 'space-around' | 'space-between';
|
12
12
|
export declare const rowProps: {
|
13
13
|
tag: {
|
14
14
|
type: PropType<keyof HTMLElementTagNameMap>;
|
@@ -25,7 +25,7 @@ export declare const rowProps: {
|
|
25
25
|
};
|
26
26
|
justify: PropType<RowJustify>;
|
27
27
|
};
|
28
|
-
export
|
28
|
+
export type RowProps = ExtractPropTypes<typeof rowProps>;
|
29
29
|
declare const _default: import("vue").DefineComponent<{
|
30
30
|
tag: {
|
31
31
|
type: PropType<keyof HTMLElementTagNameMap>;
|
package/lib/search/Search.d.ts
CHANGED
@@ -60,7 +60,7 @@ export declare const searchProps: {
|
|
60
60
|
background: StringConstructor;
|
61
61
|
showAction: BooleanConstructor;
|
62
62
|
};
|
63
|
-
export
|
63
|
+
export type SearchProps = ExtractPropTypes<typeof searchProps>;
|
64
64
|
declare const _default: import("vue").DefineComponent<{
|
65
65
|
id: StringConstructor;
|
66
66
|
name: StringConstructor;
|
package/lib/search/types.d.ts
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
import type { ComponentPublicInstance } from 'vue';
|
2
2
|
import type { SearchProps } from './Search';
|
3
|
-
export
|
4
|
-
export
|
3
|
+
export type SearchShape = 'square' | 'round';
|
4
|
+
export type SearchExpose = {
|
5
5
|
focus: () => void;
|
6
6
|
blur: () => void;
|
7
7
|
};
|
8
|
-
export
|
9
|
-
export
|
8
|
+
export type SearchInstance = ComponentPublicInstance<SearchProps, SearchExpose>;
|
9
|
+
export type SearchThemeVars = {
|
10
10
|
searchPadding?: string;
|
11
11
|
searchBackground?: string;
|
12
12
|
searchContentBackground?: string;
|
@@ -1,11 +1,11 @@
|
|
1
1
|
import { type ExtractPropTypes } from 'vue';
|
2
|
-
export
|
2
|
+
export type ShareSheetOption = {
|
3
3
|
name: string;
|
4
4
|
icon: string;
|
5
5
|
className?: string;
|
6
6
|
description?: string;
|
7
7
|
};
|
8
|
-
export
|
8
|
+
export type ShareSheetOptions = ShareSheetOption[] | ShareSheetOption[][];
|
9
9
|
export declare const shareSheetProps: {
|
10
10
|
show: BooleanConstructor;
|
11
11
|
zIndex: (NumberConstructor | StringConstructor)[];
|
@@ -52,7 +52,7 @@ export declare const shareSheetProps: {
|
|
52
52
|
default: true;
|
53
53
|
};
|
54
54
|
};
|
55
|
-
export
|
55
|
+
export type ShareSheetProps = ExtractPropTypes<typeof shareSheetProps>;
|
56
56
|
declare const _default: import("vue").DefineComponent<{
|
57
57
|
show: BooleanConstructor;
|
58
58
|
zIndex: (NumberConstructor | StringConstructor)[];
|
@@ -98,7 +98,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
98
98
|
type: BooleanConstructor;
|
99
99
|
default: true;
|
100
100
|
};
|
101
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "
|
101
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "cancel" | "update:show")[], "select" | "cancel" | "update:show", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
102
102
|
show: BooleanConstructor;
|
103
103
|
zIndex: (NumberConstructor | StringConstructor)[];
|
104
104
|
overlay: {
|
@@ -43,7 +43,7 @@ export declare const ShareSheet: import("../utils").WithInstall<import("vue").De
|
|
43
43
|
type: BooleanConstructor;
|
44
44
|
default: true;
|
45
45
|
};
|
46
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "
|
46
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "cancel" | "update:show")[], "select" | "cancel" | "update:show", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
47
47
|
show: BooleanConstructor;
|
48
48
|
zIndex: (NumberConstructor | StringConstructor)[];
|
49
49
|
overlay: {
|
package/lib/sidebar/Sidebar.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { type InjectionKey, type ExtractPropTypes } from 'vue';
|
2
|
-
export
|
2
|
+
export type SidebarProvide = {
|
3
3
|
getActive: () => number;
|
4
4
|
setActive: (value: number) => void;
|
5
5
|
};
|
@@ -10,7 +10,7 @@ export declare const sidebarProps: {
|
|
10
10
|
default: number;
|
11
11
|
};
|
12
12
|
};
|
13
|
-
export
|
13
|
+
export type SidebarProps = ExtractPropTypes<typeof sidebarProps>;
|
14
14
|
declare const _default: import("vue").DefineComponent<{
|
15
15
|
modelValue: {
|
16
16
|
type: (NumberConstructor | StringConstructor)[];
|
package/lib/sidebar/types.d.ts
CHANGED
@@ -11,7 +11,7 @@ export declare const sidebarItemProps: {
|
|
11
11
|
disabled: BooleanConstructor;
|
12
12
|
badgeProps: PropType<Partial<BadgeProps>>;
|
13
13
|
};
|
14
|
-
export
|
14
|
+
export type SidebarItemProps = ExtractPropTypes<typeof sidebarItemProps>;
|
15
15
|
declare const _default: import("vue").DefineComponent<{
|
16
16
|
to: PropType<import("vue-router").RouteLocationRaw>;
|
17
17
|
url: StringConstructor;
|
@@ -1,14 +1,20 @@
|
|
1
1
|
import { type PropType, type ExtractPropTypes } from 'vue';
|
2
2
|
import { type Numeric } from '../utils';
|
3
|
-
|
3
|
+
import type { SkeletonAvatarShape } from './types';
|
4
4
|
export declare const skeletonProps: {
|
5
5
|
row: {
|
6
6
|
type: (NumberConstructor | StringConstructor)[];
|
7
7
|
default: number;
|
8
8
|
};
|
9
|
-
title: BooleanConstructor;
|
10
9
|
round: BooleanConstructor;
|
10
|
+
title: BooleanConstructor;
|
11
|
+
titleWidth: (NumberConstructor | StringConstructor)[];
|
11
12
|
avatar: BooleanConstructor;
|
13
|
+
avatarSize: (NumberConstructor | StringConstructor)[];
|
14
|
+
avatarShape: {
|
15
|
+
type: PropType<SkeletonAvatarShape>;
|
16
|
+
default: SkeletonAvatarShape;
|
17
|
+
};
|
12
18
|
loading: {
|
13
19
|
type: BooleanConstructor;
|
14
20
|
default: true;
|
@@ -17,26 +23,26 @@ export declare const skeletonProps: {
|
|
17
23
|
type: BooleanConstructor;
|
18
24
|
default: true;
|
19
25
|
};
|
20
|
-
avatarSize: (NumberConstructor | StringConstructor)[];
|
21
|
-
titleWidth: (NumberConstructor | StringConstructor)[];
|
22
|
-
avatarShape: {
|
23
|
-
type: PropType<SkeletonAvatarShape>;
|
24
|
-
default: SkeletonAvatarShape;
|
25
|
-
};
|
26
26
|
rowWidth: {
|
27
27
|
type: PropType<Numeric | Numeric[]>;
|
28
28
|
default: string;
|
29
29
|
};
|
30
30
|
};
|
31
|
-
export
|
31
|
+
export type SkeletonProps = ExtractPropTypes<typeof skeletonProps>;
|
32
32
|
declare const _default: import("vue").DefineComponent<{
|
33
33
|
row: {
|
34
34
|
type: (NumberConstructor | StringConstructor)[];
|
35
35
|
default: number;
|
36
36
|
};
|
37
|
-
title: BooleanConstructor;
|
38
37
|
round: BooleanConstructor;
|
38
|
+
title: BooleanConstructor;
|
39
|
+
titleWidth: (NumberConstructor | StringConstructor)[];
|
39
40
|
avatar: BooleanConstructor;
|
41
|
+
avatarSize: (NumberConstructor | StringConstructor)[];
|
42
|
+
avatarShape: {
|
43
|
+
type: PropType<SkeletonAvatarShape>;
|
44
|
+
default: SkeletonAvatarShape;
|
45
|
+
};
|
40
46
|
loading: {
|
41
47
|
type: BooleanConstructor;
|
42
48
|
default: true;
|
@@ -45,12 +51,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
45
51
|
type: BooleanConstructor;
|
46
52
|
default: true;
|
47
53
|
};
|
48
|
-
avatarSize: (NumberConstructor | StringConstructor)[];
|
49
|
-
titleWidth: (NumberConstructor | StringConstructor)[];
|
50
|
-
avatarShape: {
|
51
|
-
type: PropType<SkeletonAvatarShape>;
|
52
|
-
default: SkeletonAvatarShape;
|
53
|
-
};
|
54
54
|
rowWidth: {
|
55
55
|
type: PropType<Numeric | Numeric[]>;
|
56
56
|
default: string;
|
@@ -62,9 +62,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
62
62
|
type: (NumberConstructor | StringConstructor)[];
|
63
63
|
default: number;
|
64
64
|
};
|
65
|
-
title: BooleanConstructor;
|
66
65
|
round: BooleanConstructor;
|
66
|
+
title: BooleanConstructor;
|
67
|
+
titleWidth: (NumberConstructor | StringConstructor)[];
|
67
68
|
avatar: BooleanConstructor;
|
69
|
+
avatarSize: (NumberConstructor | StringConstructor)[];
|
70
|
+
avatarShape: {
|
71
|
+
type: PropType<SkeletonAvatarShape>;
|
72
|
+
default: SkeletonAvatarShape;
|
73
|
+
};
|
68
74
|
loading: {
|
69
75
|
type: BooleanConstructor;
|
70
76
|
default: true;
|
@@ -73,12 +79,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
73
79
|
type: BooleanConstructor;
|
74
80
|
default: true;
|
75
81
|
};
|
76
|
-
avatarSize: (NumberConstructor | StringConstructor)[];
|
77
|
-
titleWidth: (NumberConstructor | StringConstructor)[];
|
78
|
-
avatarShape: {
|
79
|
-
type: PropType<SkeletonAvatarShape>;
|
80
|
-
default: SkeletonAvatarShape;
|
81
|
-
};
|
82
82
|
rowWidth: {
|
83
83
|
type: PropType<Numeric | Numeric[]>;
|
84
84
|
default: string;
|
@@ -89,8 +89,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
89
89
|
round: boolean;
|
90
90
|
loading: boolean;
|
91
91
|
row: string | number;
|
92
|
-
avatar: boolean;
|
93
92
|
avatarShape: SkeletonAvatarShape;
|
94
93
|
rowWidth: Numeric | Numeric[];
|
94
|
+
avatar: boolean;
|
95
95
|
}>;
|
96
96
|
export default _default;
|
package/lib/skeleton/Skeleton.js
CHANGED
@@ -1,6 +1,8 @@
|
|
1
|
+
var __create = Object.create;
|
1
2
|
var __defProp = Object.defineProperty;
|
2
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
3
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
4
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
5
7
|
var __export = (target, all) => {
|
6
8
|
for (var name2 in all)
|
@@ -14,6 +16,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
14
16
|
}
|
15
17
|
return to;
|
16
18
|
};
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
20
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
21
|
+
mod
|
22
|
+
));
|
17
23
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
18
24
|
var stdin_exports = {};
|
19
25
|
__export(stdin_exports, {
|
@@ -24,22 +30,24 @@ module.exports = __toCommonJS(stdin_exports);
|
|
24
30
|
var import_vue = require("vue");
|
25
31
|
var import_vue2 = require("vue");
|
26
32
|
var import_utils = require("../utils");
|
33
|
+
var import_SkeletonTitle = __toESM(require("./SkeletonTitle"));
|
34
|
+
var import_SkeletonAvatar = __toESM(require("./SkeletonAvatar"));
|
35
|
+
var import_SkeletonParagraph = __toESM(require("./SkeletonParagraph"));
|
27
36
|
const [name, bem] = (0, import_utils.createNamespace)("skeleton");
|
28
|
-
const DEFAULT_ROW_WIDTH = "100%";
|
29
37
|
const DEFAULT_LAST_ROW_WIDTH = "60%";
|
30
38
|
const skeletonProps = {
|
31
39
|
row: (0, import_utils.makeNumericProp)(0),
|
32
|
-
title: Boolean,
|
33
40
|
round: Boolean,
|
41
|
+
title: Boolean,
|
42
|
+
titleWidth: import_utils.numericProp,
|
34
43
|
avatar: Boolean,
|
35
|
-
loading: import_utils.truthProp,
|
36
|
-
animate: import_utils.truthProp,
|
37
44
|
avatarSize: import_utils.numericProp,
|
38
|
-
titleWidth: import_utils.numericProp,
|
39
45
|
avatarShape: (0, import_utils.makeStringProp)("round"),
|
46
|
+
loading: import_utils.truthProp,
|
47
|
+
animate: import_utils.truthProp,
|
40
48
|
rowWidth: {
|
41
49
|
type: [Number, String, Array],
|
42
|
-
default: DEFAULT_ROW_WIDTH
|
50
|
+
default: import_SkeletonParagraph.DEFAULT_ROW_WIDTH
|
43
51
|
}
|
44
52
|
};
|
45
53
|
var stdin_default = (0, import_vue2.defineComponent)({
|
@@ -52,19 +60,17 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
52
60
|
}) {
|
53
61
|
const renderAvatar = () => {
|
54
62
|
if (props.avatar) {
|
55
|
-
return (0, import_vue.createVNode)(
|
56
|
-
"
|
57
|
-
"
|
63
|
+
return (0, import_vue.createVNode)(import_SkeletonAvatar.default, {
|
64
|
+
"avatarShape": props.avatarShape,
|
65
|
+
"avatarSize": props.avatarSize
|
58
66
|
}, null);
|
59
67
|
}
|
60
68
|
};
|
61
69
|
const renderTitle = () => {
|
62
70
|
if (props.title) {
|
63
|
-
return (0, import_vue.createVNode)(
|
64
|
-
"
|
65
|
-
"
|
66
|
-
width: (0, import_utils.addUnit)(props.titleWidth)
|
67
|
-
}
|
71
|
+
return (0, import_vue.createVNode)(import_SkeletonTitle.default, {
|
72
|
+
"round": props.round,
|
73
|
+
"titleWidth": props.titleWidth
|
68
74
|
}, null);
|
69
75
|
}
|
70
76
|
};
|
@@ -72,7 +78,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
72
78
|
const {
|
73
79
|
rowWidth
|
74
80
|
} = props;
|
75
|
-
if (rowWidth === DEFAULT_ROW_WIDTH && index === +props.row - 1) {
|
81
|
+
if (rowWidth === import_SkeletonParagraph.DEFAULT_ROW_WIDTH && index === +props.row - 1) {
|
76
82
|
return DEFAULT_LAST_ROW_WIDTH;
|
77
83
|
}
|
78
84
|
if (Array.isArray(rowWidth)) {
|
@@ -80,12 +86,19 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
80
86
|
}
|
81
87
|
return rowWidth;
|
82
88
|
};
|
83
|
-
const renderRows = () => Array(+props.row).fill("").map((_, i) => (0, import_vue.createVNode)(
|
84
|
-
"
|
85
|
-
"
|
86
|
-
|
87
|
-
}
|
89
|
+
const renderRows = () => Array(+props.row).fill("").map((_, i) => (0, import_vue.createVNode)(import_SkeletonParagraph.default, {
|
90
|
+
"key": i,
|
91
|
+
"round": props.round,
|
92
|
+
"rowWidth": (0, import_utils.addUnit)(getRowWidth(i))
|
88
93
|
}, null));
|
94
|
+
const renderContents = () => {
|
95
|
+
if (slots.template) {
|
96
|
+
return slots.template();
|
97
|
+
}
|
98
|
+
return (0, import_vue.createVNode)(import_vue.Fragment, null, [renderAvatar(), (0, import_vue.createVNode)("div", {
|
99
|
+
"class": bem("content")
|
100
|
+
}, [renderTitle(), renderRows()])]);
|
101
|
+
};
|
89
102
|
return () => {
|
90
103
|
var _a;
|
91
104
|
if (!props.loading) {
|
@@ -96,9 +109,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
96
109
|
animate: props.animate,
|
97
110
|
round: props.round
|
98
111
|
})
|
99
|
-
}, attrs), [
|
100
|
-
"class": bem("content")
|
101
|
-
}, [renderTitle(), renderRows()])]);
|
112
|
+
}, attrs), [renderContents()]);
|
102
113
|
};
|
103
114
|
}
|
104
115
|
});
|
@@ -0,0 +1,26 @@
|
|
1
|
+
import { ExtractPropTypes } from 'vue';
|
2
|
+
import type { SkeletonAvatarShape } from './types';
|
3
|
+
export declare const skeletonAvatarProps: {
|
4
|
+
avatarSize: (NumberConstructor | StringConstructor)[];
|
5
|
+
avatarShape: {
|
6
|
+
type: import("vue").PropType<SkeletonAvatarShape>;
|
7
|
+
default: SkeletonAvatarShape;
|
8
|
+
};
|
9
|
+
};
|
10
|
+
export type SkeletonAvatarProps = ExtractPropTypes<typeof skeletonAvatarProps>;
|
11
|
+
declare const _default: import("vue").DefineComponent<{
|
12
|
+
avatarSize: (NumberConstructor | StringConstructor)[];
|
13
|
+
avatarShape: {
|
14
|
+
type: import("vue").PropType<SkeletonAvatarShape>;
|
15
|
+
default: SkeletonAvatarShape;
|
16
|
+
};
|
17
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
18
|
+
avatarSize: (NumberConstructor | StringConstructor)[];
|
19
|
+
avatarShape: {
|
20
|
+
type: import("vue").PropType<SkeletonAvatarShape>;
|
21
|
+
default: SkeletonAvatarShape;
|
22
|
+
};
|
23
|
+
}>>, {
|
24
|
+
avatarShape: SkeletonAvatarShape;
|
25
|
+
}>;
|
26
|
+
export default _default;
|
@@ -0,0 +1,41 @@
|
|
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
|
+
skeletonAvatarProps: () => skeletonAvatarProps
|
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-avatar");
|
28
|
+
const skeletonAvatarProps = {
|
29
|
+
avatarSize: import_utils.numericProp,
|
30
|
+
avatarShape: (0, import_utils.makeStringProp)("round")
|
31
|
+
};
|
32
|
+
var stdin_default = (0, import_vue2.defineComponent)({
|
33
|
+
name,
|
34
|
+
props: skeletonAvatarProps,
|
35
|
+
setup(props) {
|
36
|
+
return () => (0, import_vue.createVNode)("div", {
|
37
|
+
"class": bem([props.avatarShape]),
|
38
|
+
"style": (0, import_utils.getSizeStyle)(props.avatarSize)
|
39
|
+
}, null);
|
40
|
+
}
|
41
|
+
});
|