vant 3.4.6 → 3.4.9
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/README.md +141 -0
- package/changelog.generated.md +44 -65
- package/es/address-list/AddressListItem.d.ts +3 -2
- package/es/address-list/AddressListItem.js +1 -1
- package/es/badge/Badge.d.ts +4 -3
- package/es/badge/index.d.ts +2 -2
- package/es/calendar/Calendar.js +1 -1
- package/es/calendar/CalendarDay.js +4 -0
- package/es/calendar/index.css +1 -1
- package/es/calendar/index.less +2 -0
- package/es/calendar/types.d.ts +2 -1
- package/es/calendar/var.less +1 -0
- package/es/cascader/types.d.ts +2 -1
- package/es/checkbox/Checker.d.ts +2 -1
- package/es/collapse/Collapse.d.ts +7 -6
- package/es/collapse/index.d.ts +3 -3
- package/es/composables/use-touch.js +1 -1
- package/es/config-provider/ConfigProvider.d.ts +4 -3
- package/es/config-provider/index.d.ts +2 -2
- package/es/contact-list/ContactList.d.ts +3 -2
- package/es/coupon/Coupon.d.ts +2 -1
- package/es/coupon-list/CouponList.d.ts +3 -13
- package/es/coupon-list/CouponList.js +9 -7
- package/es/coupon-list/index.css +1 -1
- package/es/coupon-list/index.d.ts +2 -9
- package/es/coupon-list/index.less +4 -16
- package/es/coupon-list/style/index.js +1 -0
- package/es/coupon-list/style/less.js +1 -0
- package/es/coupon-list/var.less +0 -1
- package/es/datetime-picker/DatePicker.js +2 -2
- package/es/dialog/index.css +1 -1
- package/es/dialog/types.d.ts +2 -2
- package/es/dropdown-item/types.d.ts +2 -1
- package/es/empty/Empty.d.ts +8 -7
- package/es/empty/Empty.js +12 -15
- package/es/empty/Images.d.ts +4 -0
- package/es/empty/Images.js +271 -0
- package/es/empty/index.d.ts +2 -2
- package/es/field/Field.d.ts +4 -0
- package/es/field/Field.js +8 -3
- package/es/field/index.d.ts +2 -0
- package/es/field/types.d.ts +1 -1
- package/es/form/Form.d.ts +13 -13
- package/es/form/Form.js +7 -3
- package/es/form/index.d.ts +9 -9
- package/es/form/types.d.ts +1 -0
- package/es/icon/index.css +1 -1
- package/es/index-bar/IndexBar.d.ts +5 -4
- package/es/index-bar/IndexBar.js +25 -4
- package/es/index-bar/index.d.ts +3 -3
- package/es/index-bar/types.d.ts +2 -1
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/loading/Loading.js +3 -1
- package/es/locale/lang/da-DK.d.ts +64 -0
- package/es/locale/lang/da-DK.js +66 -0
- package/es/locale/lang/is-IS.d.ts +64 -0
- package/es/locale/lang/is-IS.js +74 -0
- package/es/locale/lang/la-LA.d.ts +64 -0
- package/es/locale/lang/la-LA.js +66 -0
- package/es/locale/lang/sv-SE.d.ts +64 -0
- package/es/locale/lang/sv-SE.js +66 -0
- package/es/notify/types.d.ts +2 -1
- package/es/number-keyboard/NumberKeyboard.js +10 -1
- package/es/picker/types.d.ts +3 -2
- package/es/popup/index.css +1 -1
- package/es/progress/Progress.d.ts +4 -3
- package/es/progress/index.d.ts +2 -2
- package/es/rate/Rate.js +32 -10
- package/es/search/Search.d.ts +3 -0
- package/es/search/index.d.ts +2 -0
- package/es/share-sheet/ShareSheet.js +25 -11
- package/es/share-sheet/index.css +1 -1
- package/es/share-sheet/index.less +45 -1
- package/es/skeleton/Skeleton.d.ts +5 -4
- package/es/skeleton/index.d.ts +3 -3
- package/es/slider/index.css +1 -1
- package/es/style/animation.css +1 -1
- package/es/style/base.css +1 -1
- package/es/swipe-cell/index.css +1 -1
- package/es/tabbar/Tabbar.d.ts +2 -2
- package/es/tabs/Tabs.d.ts +1 -1
- package/es/tabs/Tabs.js +1 -0
- package/es/tabs/types.d.ts +5 -4
- package/es/toast/types.d.ts +3 -2
- package/es/tree-select/TreeSelect.d.ts +7 -6
- package/es/tree-select/index.d.ts +3 -3
- package/es/uploader/Uploader.d.ts +4 -4
- package/es/uploader/Uploader.js +3 -3
- package/es/uploader/UploaderPreviewItem.d.ts +3 -3
- package/es/uploader/UploaderPreviewItem.js +9 -6
- package/es/uploader/index.d.ts +2 -2
- package/es/uploader/types.d.ts +5 -5
- package/es/uploader/utils.d.ts +0 -1
- package/es/uploader/utils.js +2 -4
- package/es/utils/basic.d.ts +2 -0
- package/es/utils/basic.js +3 -1
- package/es/utils/format.d.ts +7 -6
- package/es/utils/format.js +6 -0
- package/es/utils/validate.d.ts +2 -1
- package/lib/action-bar/ActionBar.js +8 -13
- package/lib/action-bar/index.js +9 -16
- package/lib/action-bar-button/ActionBarButton.js +8 -13
- package/lib/action-bar-button/index.js +9 -16
- package/lib/action-bar-icon/ActionBarIcon.js +8 -13
- package/lib/action-bar-icon/index.js +9 -16
- package/lib/action-sheet/ActionSheet.js +8 -13
- package/lib/action-sheet/index.js +9 -16
- package/lib/address-edit/AddressEdit.js +9 -16
- package/lib/address-edit/AddressEditDetail.js +8 -13
- package/lib/address-edit/index.js +9 -16
- package/lib/address-edit/types.js +7 -12
- package/lib/address-list/AddressList.js +9 -16
- package/lib/address-list/AddressListItem.d.ts +3 -2
- package/lib/address-list/AddressListItem.js +8 -13
- package/lib/address-list/index.js +9 -16
- package/lib/area/Area.js +8 -13
- package/lib/area/index.js +9 -16
- package/lib/area/types.js +7 -12
- package/lib/badge/Badge.d.ts +4 -3
- package/lib/badge/Badge.js +8 -13
- package/lib/badge/index.d.ts +2 -2
- package/lib/badge/index.js +9 -16
- package/lib/button/Button.js +8 -13
- package/lib/button/index.js +9 -16
- package/lib/button/types.js +7 -12
- package/lib/calendar/Calendar.js +10 -17
- package/lib/calendar/CalendarDay.js +12 -13
- package/lib/calendar/CalendarHeader.js +8 -13
- package/lib/calendar/CalendarMonth.js +9 -16
- package/lib/calendar/index.css +1 -1
- package/lib/calendar/index.js +9 -16
- package/lib/calendar/index.less +2 -0
- package/lib/calendar/types.d.ts +2 -1
- package/lib/calendar/types.js +7 -12
- package/lib/calendar/utils.js +8 -13
- package/lib/calendar/var.less +1 -0
- package/lib/card/Card.js +8 -13
- package/lib/card/index.js +9 -16
- package/lib/cascader/Cascader.js +8 -13
- package/lib/cascader/index.js +9 -16
- package/lib/cascader/types.d.ts +2 -1
- package/lib/cascader/types.js +7 -12
- package/lib/cell/Cell.js +8 -13
- package/lib/cell/index.js +9 -16
- package/lib/cell-group/CellGroup.js +8 -13
- package/lib/cell-group/index.js +9 -16
- package/lib/checkbox/Checkbox.js +9 -16
- package/lib/checkbox/Checker.d.ts +2 -1
- package/lib/checkbox/Checker.js +8 -13
- package/lib/checkbox/index.js +9 -16
- package/lib/checkbox/types.js +7 -12
- package/lib/checkbox-group/CheckboxGroup.js +8 -13
- package/lib/checkbox-group/index.js +9 -16
- package/lib/checkbox-group/types.js +7 -12
- package/lib/circle/Circle.js +8 -13
- package/lib/circle/index.js +9 -16
- package/lib/col/Col.js +8 -13
- package/lib/col/index.js +9 -16
- package/lib/collapse/Collapse.d.ts +7 -6
- package/lib/collapse/Collapse.js +8 -13
- package/lib/collapse/index.d.ts +3 -3
- package/lib/collapse/index.js +9 -16
- package/lib/collapse-item/CollapseItem.js +8 -13
- package/lib/collapse-item/index.js +9 -16
- package/lib/collapse-item/types.js +7 -12
- package/lib/composables/on-popup-reopen.js +8 -13
- package/lib/composables/use-expose.js +8 -13
- package/lib/composables/use-height.js +8 -13
- package/lib/composables/use-id.js +8 -13
- package/lib/composables/use-lazy-render.js +8 -13
- package/lib/composables/use-lock-scroll.js +8 -13
- package/lib/composables/use-placeholder.js +8 -13
- package/lib/composables/use-refs.js +8 -13
- package/lib/composables/use-route.js +8 -13
- package/lib/composables/use-tab-status.js +8 -13
- package/lib/composables/use-touch.js +9 -14
- package/lib/composables/use-visibility-change.js +8 -13
- package/lib/config-provider/ConfigProvider.d.ts +4 -3
- package/lib/config-provider/ConfigProvider.js +8 -13
- package/lib/config-provider/index.d.ts +2 -2
- package/lib/config-provider/index.js +9 -16
- package/lib/contact-card/ContactCard.js +8 -13
- package/lib/contact-card/index.js +9 -16
- package/lib/contact-edit/ContactEdit.js +8 -13
- package/lib/contact-edit/index.js +9 -16
- package/lib/contact-list/ContactList.d.ts +3 -2
- package/lib/contact-list/ContactList.js +8 -13
- package/lib/contact-list/index.js +9 -16
- package/lib/count-down/CountDown.js +8 -13
- package/lib/count-down/index.js +9 -16
- package/lib/count-down/types.js +7 -12
- package/lib/count-down/utils.js +8 -13
- package/lib/coupon/Coupon.d.ts +2 -1
- package/lib/coupon/Coupon.js +8 -13
- package/lib/coupon/index.js +9 -16
- package/lib/coupon/utils.js +8 -13
- package/lib/coupon-cell/CouponCell.js +8 -13
- package/lib/coupon-cell/index.js +9 -16
- package/lib/coupon-list/CouponList.d.ts +3 -13
- package/lib/coupon-list/CouponList.js +17 -20
- package/lib/coupon-list/index.css +1 -1
- package/lib/coupon-list/index.d.ts +2 -9
- package/lib/coupon-list/index.js +9 -16
- package/lib/coupon-list/index.less +4 -16
- package/lib/coupon-list/style/index.js +1 -0
- package/lib/coupon-list/style/less.js +1 -0
- package/lib/coupon-list/var.less +0 -1
- package/lib/datetime-picker/DatePicker.js +10 -15
- package/lib/datetime-picker/DatetimePicker.js +9 -16
- package/lib/datetime-picker/TimePicker.js +8 -13
- package/lib/datetime-picker/index.js +9 -16
- package/lib/datetime-picker/types.js +7 -12
- package/lib/datetime-picker/utils.js +8 -13
- package/lib/dialog/Dialog.js +8 -13
- package/lib/dialog/function-call.js +9 -16
- package/lib/dialog/index.css +1 -1
- package/lib/dialog/index.js +8 -13
- package/lib/dialog/types.d.ts +2 -2
- package/lib/dialog/types.js +7 -12
- package/lib/divider/Divider.js +8 -13
- package/lib/divider/index.js +9 -16
- package/lib/dropdown-item/DropdownItem.js +8 -13
- package/lib/dropdown-item/index.js +9 -16
- package/lib/dropdown-item/types.d.ts +2 -1
- package/lib/dropdown-item/types.js +7 -12
- package/lib/dropdown-menu/DropdownMenu.js +8 -13
- package/lib/dropdown-menu/index.js +9 -16
- package/lib/dropdown-menu/types.js +7 -12
- package/lib/empty/Empty.d.ts +8 -7
- package/lib/empty/Empty.js +19 -27
- package/lib/empty/Images.d.ts +4 -0
- package/lib/empty/Images.js +290 -0
- package/lib/empty/index.d.ts +2 -2
- package/lib/empty/index.js +9 -16
- package/lib/field/Field.d.ts +4 -0
- package/lib/field/Field.js +15 -15
- package/lib/field/index.d.ts +2 -0
- package/lib/field/index.js +9 -16
- package/lib/field/types.d.ts +1 -1
- package/lib/field/types.js +7 -12
- package/lib/field/utils.js +8 -13
- package/lib/form/Form.d.ts +13 -13
- package/lib/form/Form.js +14 -15
- package/lib/form/index.d.ts +9 -9
- package/lib/form/index.js +9 -16
- package/lib/form/types.d.ts +1 -0
- package/lib/form/types.js +7 -12
- package/lib/grid/Grid.js +8 -13
- package/lib/grid/index.js +9 -16
- package/lib/grid-item/GridItem.js +8 -13
- package/lib/grid-item/index.js +9 -16
- package/lib/icon/Icon.js +8 -13
- package/lib/icon/index.css +1 -1
- package/lib/icon/index.js +9 -16
- package/lib/image/Image.js +8 -13
- package/lib/image/index.js +9 -16
- package/lib/image-preview/ImagePreview.js +9 -16
- package/lib/image-preview/ImagePreviewItem.js +8 -13
- package/lib/image-preview/function-call.js +9 -16
- package/lib/image-preview/index.js +8 -13
- package/lib/image-preview/types.js +7 -12
- package/lib/index-anchor/IndexAnchor.js +8 -13
- package/lib/index-anchor/index.js +9 -16
- package/lib/index-bar/IndexBar.d.ts +5 -4
- package/lib/index-bar/IndexBar.js +33 -17
- package/lib/index-bar/index.d.ts +3 -3
- package/lib/index-bar/index.js +9 -16
- package/lib/index-bar/types.d.ts +2 -1
- package/lib/index-bar/types.js +7 -12
- package/lib/index.css +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +96 -100
- package/lib/index.less +2 -2
- package/lib/lazyload/index.js +8 -13
- package/lib/lazyload/vue-lazyload/index.js +9 -16
- package/lib/lazyload/vue-lazyload/lazy-component.js +8 -13
- package/lib/lazyload/vue-lazyload/lazy-container.js +8 -13
- package/lib/lazyload/vue-lazyload/lazy-image.js +8 -13
- package/lib/lazyload/vue-lazyload/lazy.js +9 -16
- package/lib/lazyload/vue-lazyload/listener.js +8 -13
- package/lib/lazyload/vue-lazyload/util.js +8 -13
- package/lib/list/List.js +8 -13
- package/lib/list/index.js +9 -16
- package/lib/list/types.js +7 -12
- package/lib/loading/Loading.js +11 -14
- package/lib/loading/index.js +9 -16
- package/lib/locale/index.js +9 -16
- package/lib/locale/lang/bn-BD.js +8 -13
- package/lib/locale/lang/da-DK.d.ts +64 -0
- package/lib/locale/lang/da-DK.js +85 -0
- package/lib/locale/lang/de-DE-formal.js +8 -13
- package/lib/locale/lang/de-DE.js +8 -13
- package/lib/locale/lang/en-US.js +8 -13
- package/lib/locale/lang/es-ES.js +8 -13
- package/lib/locale/lang/fr-FR.js +8 -13
- package/lib/locale/lang/hi-IN.js +8 -13
- package/lib/locale/lang/id-ID.js +8 -13
- package/lib/locale/lang/is-IS.d.ts +64 -0
- package/lib/locale/lang/is-IS.js +93 -0
- package/lib/locale/lang/it-IT.js +8 -13
- package/lib/locale/lang/ja-JP.js +8 -13
- package/lib/locale/lang/ko-KR.js +8 -13
- package/lib/locale/lang/la-LA.d.ts +64 -0
- package/lib/locale/lang/la-LA.js +85 -0
- package/lib/locale/lang/nb-NO.js +8 -13
- package/lib/locale/lang/pt-BR.js +8 -13
- package/lib/locale/lang/ro-RO.js +8 -13
- package/lib/locale/lang/ru-RU.js +8 -13
- package/lib/locale/lang/sv-SE.d.ts +64 -0
- package/lib/locale/lang/sv-SE.js +85 -0
- package/lib/locale/lang/th-TH.js +8 -13
- package/lib/locale/lang/tr-TR.js +8 -13
- package/lib/locale/lang/uk-UA.js +8 -13
- package/lib/locale/lang/vi-VN.js +8 -13
- package/lib/locale/lang/zh-CN.js +8 -13
- package/lib/locale/lang/zh-HK.js +8 -13
- package/lib/locale/lang/zh-TW.js +8 -13
- package/lib/nav-bar/NavBar.js +8 -13
- package/lib/nav-bar/index.js +9 -16
- package/lib/notice-bar/NoticeBar.js +8 -13
- package/lib/notice-bar/index.js +9 -16
- package/lib/notice-bar/types.js +7 -12
- package/lib/notify/Notify.js +8 -13
- package/lib/notify/function-call.js +9 -16
- package/lib/notify/index.js +8 -13
- package/lib/notify/types.d.ts +2 -1
- package/lib/notify/types.js +7 -12
- package/lib/number-keyboard/NumberKeyboard.js +19 -17
- package/lib/number-keyboard/NumberKeyboardKey.js +8 -13
- package/lib/number-keyboard/index.js +9 -16
- package/lib/overlay/Overlay.js +8 -13
- package/lib/overlay/index.js +9 -16
- package/lib/pagination/Pagination.js +8 -13
- package/lib/pagination/index.js +9 -16
- package/lib/password-input/PasswordInput.js +8 -13
- package/lib/password-input/index.js +9 -16
- package/lib/picker/Picker.js +9 -16
- package/lib/picker/PickerColumn.js +8 -13
- package/lib/picker/index.js +9 -16
- package/lib/picker/types.d.ts +3 -2
- package/lib/picker/types.js +7 -12
- package/lib/popover/Popover.js +8 -13
- package/lib/popover/index.js +9 -16
- package/lib/popover/types.js +7 -12
- package/lib/popup/Popup.js +8 -13
- package/lib/popup/index.css +1 -1
- package/lib/popup/index.js +9 -16
- package/lib/popup/shared.js +8 -13
- package/lib/popup/types.js +7 -12
- package/lib/progress/Progress.d.ts +4 -3
- package/lib/progress/Progress.js +8 -13
- package/lib/progress/index.d.ts +2 -2
- package/lib/progress/index.js +9 -16
- package/lib/progress/types.js +7 -12
- package/lib/pull-refresh/PullRefresh.js +8 -13
- package/lib/pull-refresh/index.js +9 -16
- package/lib/radio/Radio.js +9 -16
- package/lib/radio/index.js +9 -16
- package/lib/radio-group/RadioGroup.js +8 -13
- package/lib/radio-group/index.js +9 -16
- package/lib/rate/Rate.js +39 -22
- package/lib/rate/index.js +9 -16
- package/lib/row/Row.js +8 -13
- package/lib/row/index.js +9 -16
- package/lib/search/Search.d.ts +3 -0
- package/lib/search/Search.js +8 -13
- package/lib/search/index.d.ts +2 -0
- package/lib/search/index.js +9 -16
- package/lib/search/types.js +7 -12
- package/lib/share-sheet/ShareSheet.js +33 -24
- package/lib/share-sheet/index.css +1 -1
- package/lib/share-sheet/index.js +9 -16
- package/lib/share-sheet/index.less +45 -1
- package/lib/sidebar/Sidebar.js +8 -13
- package/lib/sidebar/index.js +9 -16
- package/lib/sidebar-item/SidebarItem.js +8 -13
- package/lib/sidebar-item/index.js +9 -16
- package/lib/skeleton/Skeleton.d.ts +5 -4
- package/lib/skeleton/Skeleton.js +8 -13
- package/lib/skeleton/index.d.ts +3 -3
- package/lib/skeleton/index.js +9 -16
- package/lib/slider/Slider.js +8 -13
- package/lib/slider/index.css +1 -1
- package/lib/slider/index.js +9 -16
- package/lib/step/Step.js +8 -13
- package/lib/step/index.js +9 -16
- package/lib/stepper/Stepper.js +8 -13
- package/lib/stepper/index.js +9 -16
- package/lib/steps/Steps.js +8 -13
- package/lib/steps/index.js +9 -16
- package/lib/sticky/Sticky.js +8 -13
- package/lib/sticky/index.js +9 -16
- package/lib/style/animation.css +1 -1
- package/lib/style/base.css +1 -1
- package/lib/submit-bar/SubmitBar.js +8 -13
- package/lib/submit-bar/index.js +9 -16
- package/lib/swipe/Swipe.js +8 -13
- package/lib/swipe/index.js +9 -16
- package/lib/swipe/types.js +7 -12
- package/lib/swipe-cell/SwipeCell.js +8 -13
- package/lib/swipe-cell/index.css +1 -1
- package/lib/swipe-cell/index.js +9 -16
- package/lib/swipe-cell/types.js +7 -12
- package/lib/swipe-item/SwipeItem.js +8 -13
- package/lib/swipe-item/index.js +9 -16
- package/lib/switch/Switch.js +8 -13
- package/lib/switch/index.js +9 -16
- package/lib/tab/Tab.js +8 -13
- package/lib/tab/index.js +9 -16
- package/lib/tabbar/Tabbar.d.ts +2 -2
- package/lib/tabbar/Tabbar.js +8 -13
- package/lib/tabbar/index.js +9 -16
- package/lib/tabbar-item/TabbarItem.js +8 -13
- package/lib/tabbar-item/index.js +9 -16
- package/lib/tabs/Tabs.d.ts +1 -1
- package/lib/tabs/Tabs.js +10 -16
- package/lib/tabs/TabsContent.js +8 -13
- package/lib/tabs/TabsTitle.js +8 -13
- package/lib/tabs/index.js +9 -16
- package/lib/tabs/types.d.ts +5 -4
- package/lib/tabs/types.js +7 -12
- package/lib/tabs/utils.js +8 -13
- package/lib/tag/Tag.js +8 -13
- package/lib/tag/index.js +9 -16
- package/lib/toast/Toast.js +8 -13
- package/lib/toast/function-call.js +9 -16
- package/lib/toast/index.js +8 -13
- package/lib/toast/lock-click.js +8 -13
- package/lib/toast/types.d.ts +3 -2
- package/lib/toast/types.js +7 -12
- package/lib/tree-select/TreeSelect.d.ts +7 -6
- package/lib/tree-select/TreeSelect.js +8 -13
- package/lib/tree-select/index.d.ts +3 -3
- package/lib/tree-select/index.js +9 -16
- package/lib/uploader/Uploader.d.ts +4 -4
- package/lib/uploader/Uploader.js +11 -18
- package/lib/uploader/UploaderPreviewItem.d.ts +3 -3
- package/lib/uploader/UploaderPreviewItem.js +17 -19
- package/lib/uploader/index.d.ts +2 -2
- package/lib/uploader/index.js +9 -16
- package/lib/uploader/types.d.ts +5 -5
- package/lib/uploader/types.js +7 -12
- package/lib/uploader/utils.d.ts +0 -1
- package/lib/uploader/utils.js +10 -17
- package/lib/utils/basic.d.ts +2 -0
- package/lib/utils/basic.js +11 -14
- package/lib/utils/constant.js +8 -13
- package/lib/utils/create.js +9 -16
- package/lib/utils/deep-assign.js +8 -13
- package/lib/utils/deep-clone.js +8 -13
- package/lib/utils/dom.js +8 -13
- package/lib/utils/format.d.ts +7 -6
- package/lib/utils/format.js +14 -13
- package/lib/utils/index.js +17 -21
- package/lib/utils/interceptor.js +8 -13
- package/lib/utils/mount-component.js +8 -13
- package/lib/utils/props.js +8 -13
- package/lib/utils/validate.d.ts +2 -1
- package/lib/utils/validate.js +8 -13
- package/lib/utils/with-install.js +8 -13
- package/lib/vant.cjs.js +530 -263
- package/lib/vant.cjs.min.js +1 -1
- package/lib/vant.es.js +530 -263
- package/lib/vant.es.min.js +530 -263
- package/lib/vant.js +530 -263
- package/lib/vant.min.js +1 -1
- package/package.json +3 -3
- package/vetur/attributes.json +423 -487
- package/vetur/tags.json +112 -110
- package/vetur/web-types.json +2200 -1345
- package/es/empty/Network.d.ts +0 -1
- package/es/empty/Network.js +0 -89
- package/lib/empty/Network.d.ts +0 -1
- package/lib/empty/Network.js +0 -113
package/lib/vant.es.min.js
CHANGED
@@ -22,6 +22,7 @@ function pick(obj, keys, ignoreUndefined) {
|
|
22
22
|
return ret;
|
23
23
|
}, {});
|
24
24
|
}
|
25
|
+
const toArray = (item) => Array.isArray(item) ? item : [item];
|
25
26
|
const unknownProp = null;
|
26
27
|
const numericProp = [Number, String];
|
27
28
|
const truthProp = {
|
@@ -118,6 +119,12 @@ function addUnit(value) {
|
|
118
119
|
}
|
119
120
|
function getSizeStyle(originSize) {
|
120
121
|
if (isDef(originSize)) {
|
122
|
+
if (Array.isArray(originSize)) {
|
123
|
+
return {
|
124
|
+
width: addUnit(originSize[0]),
|
125
|
+
height: addUnit(originSize[1])
|
126
|
+
};
|
127
|
+
}
|
121
128
|
const size = addUnit(originSize);
|
122
129
|
return {
|
123
130
|
width: size,
|
@@ -308,10 +315,10 @@ const Locale = {
|
|
308
315
|
};
|
309
316
|
var stdin_default$1C = Locale;
|
310
317
|
function createTranslate(name2) {
|
311
|
-
const
|
318
|
+
const prefix = camelize(name2) + ".";
|
312
319
|
return (path, ...args) => {
|
313
320
|
const messages2 = stdin_default$1C.messages();
|
314
|
-
const message = get(messages2,
|
321
|
+
const message = get(messages2, prefix + path) || get(messages2, path);
|
315
322
|
return isFunction(message) ? message(...args) : message;
|
316
323
|
};
|
317
324
|
}
|
@@ -668,7 +675,9 @@ var stdin_default$1x = defineComponent({
|
|
668
675
|
return createVNode("div", {
|
669
676
|
"class": bem$1m([type, {
|
670
677
|
vertical
|
671
|
-
}])
|
678
|
+
}]),
|
679
|
+
"aria-live": "polite",
|
680
|
+
"aria-busy": true
|
672
681
|
}, [createVNode("span", {
|
673
682
|
"class": bem$1m("spinner", type),
|
674
683
|
"style": spinnerStyle.value
|
@@ -986,7 +995,7 @@ function useTouch() {
|
|
986
995
|
};
|
987
996
|
const move = (event) => {
|
988
997
|
const touch = event.touches[0];
|
989
|
-
deltaX.value = touch.clientX < 0 ? 0 : touch.clientX - startX.value;
|
998
|
+
deltaX.value = (touch.clientX < 0 ? 0 : touch.clientX) - startX.value;
|
990
999
|
deltaY.value = touch.clientY - startY.value;
|
991
1000
|
offsetX.value = Math.abs(deltaX.value);
|
992
1001
|
offsetY.value = Math.abs(deltaY.value);
|
@@ -2325,9 +2334,12 @@ const formProps = {
|
|
2325
2334
|
scrollToError: Boolean,
|
2326
2335
|
validateFirst: Boolean,
|
2327
2336
|
submitOnEnter: truthProp,
|
2328
|
-
validateTrigger: makeStringProp("onBlur"),
|
2329
2337
|
showErrorMessage: truthProp,
|
2330
|
-
errorMessageAlign: String
|
2338
|
+
errorMessageAlign: String,
|
2339
|
+
validateTrigger: {
|
2340
|
+
type: [String, Array],
|
2341
|
+
default: "onBlur"
|
2342
|
+
}
|
2331
2343
|
};
|
2332
2344
|
var stdin_default$1m = defineComponent({
|
2333
2345
|
name: name$1f,
|
@@ -2442,6 +2454,7 @@ var stdin_default$1m = defineComponent({
|
|
2442
2454
|
useExpose({
|
2443
2455
|
submit,
|
2444
2456
|
validate,
|
2457
|
+
getValues,
|
2445
2458
|
scrollToField,
|
2446
2459
|
resetValidation
|
2447
2460
|
});
|
@@ -2539,7 +2552,7 @@ function cutString(str, maxlength) {
|
|
2539
2552
|
return [...str].slice(0, maxlength).join("");
|
2540
2553
|
}
|
2541
2554
|
let current = 0;
|
2542
|
-
function useId() {
|
2555
|
+
function useId$1() {
|
2543
2556
|
const vm = getCurrentInstance();
|
2544
2557
|
const { name: name2 = "unknown" } = (vm == null ? void 0 : vm.type) || {};
|
2545
2558
|
return `${name2}-${++current}`;
|
@@ -2560,6 +2573,7 @@ const fieldSharedProps = {
|
|
2560
2573
|
placeholder: String,
|
2561
2574
|
autocomplete: String,
|
2562
2575
|
errorMessage: String,
|
2576
|
+
enterkeyhint: String,
|
2563
2577
|
clearTrigger: makeStringProp("focus"),
|
2564
2578
|
formatTrigger: makeStringProp("onChange"),
|
2565
2579
|
error: {
|
@@ -2598,7 +2612,7 @@ var stdin_default$1l = defineComponent({
|
|
2598
2612
|
emit,
|
2599
2613
|
slots
|
2600
2614
|
}) {
|
2601
|
-
const id = useId();
|
2615
|
+
const id = useId$1();
|
2602
2616
|
const state = reactive({
|
2603
2617
|
focused: false,
|
2604
2618
|
validateFailed: false,
|
@@ -2688,10 +2702,13 @@ var stdin_default$1l = defineComponent({
|
|
2688
2702
|
});
|
2689
2703
|
const validateWithTrigger = (trigger) => {
|
2690
2704
|
if (form && props.rules) {
|
2691
|
-
const
|
2705
|
+
const {
|
2706
|
+
validateTrigger
|
2707
|
+
} = form.props;
|
2708
|
+
const defaultTrigger = toArray(validateTrigger).includes(trigger);
|
2692
2709
|
const rules = props.rules.filter((rule) => {
|
2693
2710
|
if (rule.trigger) {
|
2694
|
-
return rule.trigger
|
2711
|
+
return toArray(rule.trigger).includes(trigger);
|
2695
2712
|
}
|
2696
2713
|
return defaultTrigger;
|
2697
2714
|
});
|
@@ -2829,6 +2846,7 @@ var stdin_default$1l = defineComponent({
|
|
2829
2846
|
autofocus: props.autofocus,
|
2830
2847
|
placeholder: props.placeholder,
|
2831
2848
|
autocomplete: props.autocomplete,
|
2849
|
+
enterkeyhint: props.enterkeyhint,
|
2832
2850
|
"aria-labelledby": props.label ? `${id}-label` : void 0,
|
2833
2851
|
onBlur,
|
2834
2852
|
onFocus,
|
@@ -4241,6 +4259,7 @@ var stdin_default$1a = defineComponent({
|
|
4241
4259
|
slots
|
4242
4260
|
}) {
|
4243
4261
|
const style = computed(() => {
|
4262
|
+
var _a;
|
4244
4263
|
const {
|
4245
4264
|
item,
|
4246
4265
|
index,
|
@@ -4272,6 +4291,9 @@ var stdin_default$1a = defineComponent({
|
|
4272
4291
|
break;
|
4273
4292
|
}
|
4274
4293
|
}
|
4294
|
+
if (offset + (((_a = item.date) == null ? void 0 : _a.getDate()) || 1) > 28) {
|
4295
|
+
style2.marginBottom = 0;
|
4296
|
+
}
|
4275
4297
|
return style2;
|
4276
4298
|
});
|
4277
4299
|
const onClick = () => {
|
@@ -4779,8 +4801,8 @@ var stdin_default$17 = defineComponent({
|
|
4779
4801
|
}
|
4780
4802
|
raf(() => {
|
4781
4803
|
bodyHeight = Math.floor(useRect(bodyRef).height);
|
4782
|
-
scrollToCurrentDate();
|
4783
4804
|
});
|
4805
|
+
scrollToCurrentDate();
|
4784
4806
|
};
|
4785
4807
|
const reset = (date = getInitialDate()) => {
|
4786
4808
|
currentDate.value = date;
|
@@ -5924,7 +5946,7 @@ var stdin_default$10 = defineComponent({
|
|
5924
5946
|
const root = ref();
|
5925
5947
|
const navRef = ref();
|
5926
5948
|
const wrapRef = ref();
|
5927
|
-
const id = useId();
|
5949
|
+
const id = useId$1();
|
5928
5950
|
const scroller = useScrollParent(root);
|
5929
5951
|
const [titleRefs, setTitleRefs] = useRefs();
|
5930
5952
|
const {
|
@@ -6094,6 +6116,7 @@ var stdin_default$10 = defineComponent({
|
|
6094
6116
|
}
|
6095
6117
|
};
|
6096
6118
|
const renderNav = () => children.map((item, index) => createVNode(stdin_default$13, mergeProps({
|
6119
|
+
"key": item.id,
|
6097
6120
|
"id": `${id}-${index}`,
|
6098
6121
|
"ref": setTitleRefs(index),
|
6099
6122
|
"type": props.type,
|
@@ -6313,7 +6336,7 @@ var stdin_default$_ = defineComponent({
|
|
6313
6336
|
setup(props, {
|
6314
6337
|
slots
|
6315
6338
|
}) {
|
6316
|
-
const id = useId();
|
6339
|
+
const id = useId$1();
|
6317
6340
|
const inited = ref(false);
|
6318
6341
|
const {
|
6319
6342
|
parent,
|
@@ -7684,14 +7707,328 @@ var stdin_default$L = defineComponent({
|
|
7684
7707
|
}
|
7685
7708
|
});
|
7686
7709
|
const CouponCell = withInstall(stdin_default$L);
|
7687
|
-
const
|
7688
|
-
const
|
7710
|
+
const getId = (num) => `van-empty-${num}`;
|
7711
|
+
const useId = (num) => `url(#${getId(num)})`;
|
7712
|
+
const renderStop = (color, offset, opacity) => createVNode("stop", {
|
7713
|
+
"stop-color": color,
|
7714
|
+
"offset": `${offset}%`,
|
7715
|
+
"stop-opacity": opacity
|
7716
|
+
}, null);
|
7717
|
+
const renderStops = (fromColor, toColor) => [renderStop(fromColor, 0), renderStop(toColor, 100)];
|
7718
|
+
const renderShadow = (id) => [createVNode("defs", null, [createVNode("radialGradient", {
|
7719
|
+
"id": getId(id),
|
7720
|
+
"cx": "50%",
|
7721
|
+
"cy": "54%",
|
7722
|
+
"fx": "50%",
|
7723
|
+
"fy": "54%",
|
7724
|
+
"r": "297%",
|
7725
|
+
"gradientTransform": "matrix(-.16 0 0 -.33 .58 .72)"
|
7726
|
+
}, [renderStop("#EBEDF0", 0), renderStop("#F2F3F5", 100, 0.3)])]), createVNode("ellipse", {
|
7727
|
+
"fill": useId(id),
|
7728
|
+
"opacity": ".8",
|
7729
|
+
"cx": "80",
|
7730
|
+
"cy": "140",
|
7731
|
+
"rx": "46",
|
7732
|
+
"ry": "8"
|
7733
|
+
}, null)];
|
7734
|
+
const renderBuilding = () => [createVNode("defs", null, [createVNode("linearGradient", {
|
7735
|
+
"id": getId("a"),
|
7736
|
+
"x1": "64%",
|
7737
|
+
"y1": "100%",
|
7738
|
+
"x2": "64%"
|
7739
|
+
}, [renderStop("#FFF", 0, 0.5), renderStop("#F2F3F5", 100)])]), createVNode("g", {
|
7740
|
+
"opacity": ".8"
|
7741
|
+
}, [createVNode("path", {
|
7742
|
+
"d": "M36 131V53H16v20H2v58h34z",
|
7743
|
+
"fill": useId("a")
|
7744
|
+
}, null), createVNode("path", {
|
7745
|
+
"d": "M123 15h22v14h9v77h-31V15z",
|
7746
|
+
"fill": useId("a")
|
7747
|
+
}, null)])];
|
7748
|
+
const renderCloud = () => [createVNode("defs", null, [createVNode("linearGradient", {
|
7749
|
+
"id": getId("b"),
|
7750
|
+
"x1": "64%",
|
7751
|
+
"y1": "97%",
|
7752
|
+
"x2": "64%",
|
7753
|
+
"y2": "0%"
|
7754
|
+
}, [renderStop("#F2F3F5", 0, 0.3), renderStop("#F2F3F5", 100)])]), createVNode("g", {
|
7755
|
+
"opacity": ".8"
|
7756
|
+
}, [createVNode("path", {
|
7757
|
+
"d": "M87 6c3 0 7 3 8 6a8 8 0 1 1-1 16H80a7 7 0 0 1-8-6c0-4 3-7 6-7 0-5 4-9 9-9Z",
|
7758
|
+
"fill": useId("b")
|
7759
|
+
}, null), createVNode("path", {
|
7760
|
+
"d": "M19 23c2 0 3 1 4 3 2 0 4 2 4 4a4 4 0 0 1-4 3v1h-7v-1l-1 1c-2 0-3-2-3-4 0-1 1-3 3-3 0-2 2-4 4-4Z",
|
7761
|
+
"fill": useId("b")
|
7762
|
+
}, null)])];
|
7763
|
+
const renderNetwork = () => createVNode("svg", {
|
7764
|
+
"viewBox": "0 0 160 160"
|
7765
|
+
}, [createVNode("defs", null, [createVNode("linearGradient", {
|
7766
|
+
"id": getId(1),
|
7767
|
+
"x1": "64%",
|
7768
|
+
"y1": "100%",
|
7769
|
+
"x2": "64%"
|
7770
|
+
}, [renderStop("#FFF", 0, 0.5), renderStop("#F2F3F5", 100)]), createVNode("linearGradient", {
|
7771
|
+
"id": getId(2),
|
7772
|
+
"x1": "50%",
|
7773
|
+
"x2": "50%",
|
7774
|
+
"y2": "84%"
|
7775
|
+
}, [renderStop("#EBEDF0", 0), renderStop("#DCDEE0", 100, 0)]), createVNode("linearGradient", {
|
7776
|
+
"id": getId(3),
|
7777
|
+
"x1": "100%",
|
7778
|
+
"x2": "100%",
|
7779
|
+
"y2": "100%"
|
7780
|
+
}, [renderStops("#EAEDF0", "#DCDEE0")]), createVNode("radialGradient", {
|
7781
|
+
"id": getId(4),
|
7782
|
+
"cx": "50%",
|
7783
|
+
"cy": "0%",
|
7784
|
+
"fx": "50%",
|
7785
|
+
"fy": "0%",
|
7786
|
+
"r": "100%",
|
7787
|
+
"gradientTransform": "matrix(0 1 -.54 0 .5 -.5)"
|
7788
|
+
}, [renderStop("#EBEDF0", 0), renderStop("#FFF", 100, 0)])]), createVNode("g", {
|
7789
|
+
"fill": "none"
|
7790
|
+
}, [renderBuilding(), createVNode("path", {
|
7791
|
+
"fill": useId(4),
|
7792
|
+
"d": "M0 139h160v21H0z"
|
7793
|
+
}, null), createVNode("path", {
|
7794
|
+
"d": "M80 54a7 7 0 0 1 3 13v27l-2 2h-2a2 2 0 0 1-2-2V67a7 7 0 0 1 3-13z",
|
7795
|
+
"fill": useId(2)
|
7796
|
+
}, null), createVNode("g", {
|
7797
|
+
"opacity": ".6",
|
7798
|
+
"stroke-linecap": "round",
|
7799
|
+
"stroke-width": "7"
|
7800
|
+
}, [createVNode("path", {
|
7801
|
+
"d": "M64 47a19 19 0 0 0-5 13c0 5 2 10 5 13",
|
7802
|
+
"stroke": useId(3)
|
7803
|
+
}, null), createVNode("path", {
|
7804
|
+
"d": "M53 36a34 34 0 0 0 0 48",
|
7805
|
+
"stroke": useId(3)
|
7806
|
+
}, null), createVNode("path", {
|
7807
|
+
"d": "M95 73a19 19 0 0 0 6-13c0-5-2-9-6-13",
|
7808
|
+
"stroke": useId(3)
|
7809
|
+
}, null), createVNode("path", {
|
7810
|
+
"d": "M106 84a34 34 0 0 0 0-48",
|
7811
|
+
"stroke": useId(3)
|
7812
|
+
}, null)]), createVNode("g", {
|
7813
|
+
"transform": "translate(31 105)"
|
7814
|
+
}, [createVNode("rect", {
|
7815
|
+
"fill": "#EBEDF0",
|
7816
|
+
"width": "98",
|
7817
|
+
"height": "34",
|
7818
|
+
"rx": "2"
|
7819
|
+
}, null), createVNode("rect", {
|
7820
|
+
"fill": "#FFF",
|
7821
|
+
"x": "9",
|
7822
|
+
"y": "8",
|
7823
|
+
"width": "80",
|
7824
|
+
"height": "18",
|
7825
|
+
"rx": "1.1"
|
7826
|
+
}, null), createVNode("rect", {
|
7827
|
+
"fill": "#EBEDF0",
|
7828
|
+
"x": "15",
|
7829
|
+
"y": "12",
|
7830
|
+
"width": "18",
|
7831
|
+
"height": "6",
|
7832
|
+
"rx": "1.1"
|
7833
|
+
}, null)])])]);
|
7834
|
+
const renderMaterial = () => createVNode("svg", {
|
7835
|
+
"viewBox": "0 0 160 160"
|
7836
|
+
}, [createVNode("defs", null, [createVNode("linearGradient", {
|
7837
|
+
"x1": "50%",
|
7838
|
+
"x2": "50%",
|
7839
|
+
"y2": "100%",
|
7840
|
+
"id": getId(5)
|
7841
|
+
}, [renderStops("#F2F3F5", "#DCDEE0")]), createVNode("linearGradient", {
|
7842
|
+
"x1": "95%",
|
7843
|
+
"y1": "48%",
|
7844
|
+
"x2": "5.5%",
|
7845
|
+
"y2": "51%",
|
7846
|
+
"id": getId(6)
|
7847
|
+
}, [renderStops("#EAEDF1", "#DCDEE0")]), createVNode("linearGradient", {
|
7848
|
+
"y1": "45%",
|
7849
|
+
"x2": "100%",
|
7850
|
+
"y2": "54%",
|
7851
|
+
"id": getId(7)
|
7852
|
+
}, [renderStops("#EAEDF1", "#DCDEE0")])]), renderBuilding(), renderCloud(), createVNode("g", {
|
7853
|
+
"transform": "translate(36 50)",
|
7854
|
+
"fill": "none"
|
7855
|
+
}, [createVNode("g", {
|
7856
|
+
"transform": "translate(8)"
|
7857
|
+
}, [createVNode("rect", {
|
7858
|
+
"fill": "#EBEDF0",
|
7859
|
+
"opacity": ".6",
|
7860
|
+
"x": "38",
|
7861
|
+
"y": "13",
|
7862
|
+
"width": "36",
|
7863
|
+
"height": "53",
|
7864
|
+
"rx": "2"
|
7865
|
+
}, null), createVNode("rect", {
|
7866
|
+
"fill": useId(5),
|
7867
|
+
"width": "64",
|
7868
|
+
"height": "66",
|
7869
|
+
"rx": "2"
|
7870
|
+
}, null), createVNode("rect", {
|
7871
|
+
"fill": "#FFF",
|
7872
|
+
"x": "6",
|
7873
|
+
"y": "6",
|
7874
|
+
"width": "52",
|
7875
|
+
"height": "55",
|
7876
|
+
"rx": "1"
|
7877
|
+
}, null), createVNode("g", {
|
7878
|
+
"transform": "translate(15 17)",
|
7879
|
+
"fill": useId(6)
|
7880
|
+
}, [createVNode("rect", {
|
7881
|
+
"width": "34",
|
7882
|
+
"height": "6",
|
7883
|
+
"rx": "1"
|
7884
|
+
}, null), createVNode("path", {
|
7885
|
+
"d": "M0 14h34v6H0z"
|
7886
|
+
}, null), createVNode("rect", {
|
7887
|
+
"y": "28",
|
7888
|
+
"width": "34",
|
7889
|
+
"height": "6",
|
7890
|
+
"rx": "1"
|
7891
|
+
}, null)])]), createVNode("rect", {
|
7892
|
+
"fill": useId(7),
|
7893
|
+
"y": "61",
|
7894
|
+
"width": "88",
|
7895
|
+
"height": "28",
|
7896
|
+
"rx": "1"
|
7897
|
+
}, null), createVNode("rect", {
|
7898
|
+
"fill": "#F7F8FA",
|
7899
|
+
"x": "29",
|
7900
|
+
"y": "72",
|
7901
|
+
"width": "30",
|
7902
|
+
"height": "6",
|
7903
|
+
"rx": "1"
|
7904
|
+
}, null)])]);
|
7905
|
+
const renderError = () => createVNode("svg", {
|
7906
|
+
"viewBox": "0 0 160 160"
|
7907
|
+
}, [createVNode("defs", null, [createVNode("linearGradient", {
|
7908
|
+
"x1": "50%",
|
7909
|
+
"x2": "50%",
|
7910
|
+
"y2": "100%",
|
7911
|
+
"id": getId(8)
|
7912
|
+
}, [renderStops("#EAEDF1", "#DCDEE0")])]), renderBuilding(), renderCloud(), renderShadow("c"), createVNode("path", {
|
7913
|
+
"d": "m59 60 21 21 21-21h3l9 9v3L92 93l21 21v3l-9 9h-3l-21-21-21 21h-3l-9-9v-3l21-21-21-21v-3l9-9h3Z",
|
7914
|
+
"fill": useId(8)
|
7915
|
+
}, null)]);
|
7916
|
+
const renderSearch = () => createVNode("svg", {
|
7917
|
+
"viewBox": "0 0 160 160"
|
7918
|
+
}, [createVNode("defs", null, [createVNode("linearGradient", {
|
7919
|
+
"x1": "50%",
|
7920
|
+
"y1": "100%",
|
7921
|
+
"x2": "50%",
|
7922
|
+
"id": getId(9)
|
7923
|
+
}, [renderStops("#EEE", "#D8D8D8")]), createVNode("linearGradient", {
|
7924
|
+
"x1": "100%",
|
7925
|
+
"y1": "50%",
|
7926
|
+
"y2": "50%",
|
7927
|
+
"id": getId(10)
|
7928
|
+
}, [renderStops("#F2F3F5", "#DCDEE0")]), createVNode("linearGradient", {
|
7929
|
+
"x1": "50%",
|
7930
|
+
"x2": "50%",
|
7931
|
+
"y2": "100%",
|
7932
|
+
"id": getId(11)
|
7933
|
+
}, [renderStops("#F2F3F5", "#DCDEE0")]), createVNode("linearGradient", {
|
7934
|
+
"x1": "50%",
|
7935
|
+
"x2": "50%",
|
7936
|
+
"y2": "100%",
|
7937
|
+
"id": getId(12)
|
7938
|
+
}, [renderStops("#FFF", "#F7F8FA")])]), renderBuilding(), renderCloud(), renderShadow("d"), createVNode("g", {
|
7939
|
+
"transform": "rotate(-45 113 -4)",
|
7940
|
+
"fill": "none"
|
7941
|
+
}, [createVNode("rect", {
|
7942
|
+
"fill": useId(9),
|
7943
|
+
"x": "24",
|
7944
|
+
"y": "52.8",
|
7945
|
+
"width": "5.8",
|
7946
|
+
"height": "19",
|
7947
|
+
"rx": "1"
|
7948
|
+
}, null), createVNode("rect", {
|
7949
|
+
"fill": useId(10),
|
7950
|
+
"x": "22.1",
|
7951
|
+
"y": "67.3",
|
7952
|
+
"width": "9.9",
|
7953
|
+
"height": "28",
|
7954
|
+
"rx": "1"
|
7955
|
+
}, null), createVNode("circle", {
|
7956
|
+
"stroke": useId(11),
|
7957
|
+
"stroke-width": "8",
|
7958
|
+
"cx": "27",
|
7959
|
+
"cy": "27",
|
7960
|
+
"r": "27"
|
7961
|
+
}, null), createVNode("circle", {
|
7962
|
+
"fill": useId(12),
|
7963
|
+
"cx": "27",
|
7964
|
+
"cy": "27",
|
7965
|
+
"r": "16"
|
7966
|
+
}, null), createVNode("path", {
|
7967
|
+
"d": "M37 7c-8 0-15 5-16 12",
|
7968
|
+
"stroke": useId(11),
|
7969
|
+
"stroke-width": "3",
|
7970
|
+
"opacity": ".5",
|
7971
|
+
"stroke-linecap": "round",
|
7972
|
+
"transform": "rotate(45 29 13)"
|
7973
|
+
}, null)])]);
|
7974
|
+
const [name$E, bem$D] = createNamespace("empty");
|
7975
|
+
const PRESET_IMAGES = {
|
7976
|
+
error: renderError,
|
7977
|
+
search: renderSearch,
|
7978
|
+
network: renderNetwork,
|
7979
|
+
default: renderMaterial
|
7980
|
+
};
|
7981
|
+
const emptyProps = {
|
7982
|
+
image: makeStringProp("default"),
|
7983
|
+
imageSize: [Number, String, Array],
|
7984
|
+
description: String
|
7985
|
+
};
|
7986
|
+
var stdin_default$K = defineComponent({
|
7987
|
+
name: name$E,
|
7988
|
+
props: emptyProps,
|
7989
|
+
setup(props, {
|
7990
|
+
slots
|
7991
|
+
}) {
|
7992
|
+
const renderImage = () => {
|
7993
|
+
var _a;
|
7994
|
+
if (slots.image) {
|
7995
|
+
return slots.image();
|
7996
|
+
}
|
7997
|
+
return ((_a = PRESET_IMAGES[props.image]) == null ? void 0 : _a.call(PRESET_IMAGES)) || createVNode("img", {
|
7998
|
+
"src": props.image
|
7999
|
+
}, null);
|
8000
|
+
};
|
8001
|
+
const renderDescription = () => {
|
8002
|
+
const description = slots.description ? slots.description() : props.description;
|
8003
|
+
if (description) {
|
8004
|
+
return createVNode("p", {
|
8005
|
+
"class": bem$D("description")
|
8006
|
+
}, [description]);
|
8007
|
+
}
|
8008
|
+
};
|
8009
|
+
const renderBottom = () => {
|
8010
|
+
if (slots.default) {
|
8011
|
+
return createVNode("div", {
|
8012
|
+
"class": bem$D("bottom")
|
8013
|
+
}, [slots.default()]);
|
8014
|
+
}
|
8015
|
+
};
|
8016
|
+
return () => createVNode("div", {
|
8017
|
+
"class": bem$D()
|
8018
|
+
}, [createVNode("div", {
|
8019
|
+
"class": bem$D("image"),
|
8020
|
+
"style": getSizeStyle(props.imageSize)
|
8021
|
+
}, [renderImage()]), renderDescription(), renderBottom()]);
|
8022
|
+
}
|
8023
|
+
});
|
8024
|
+
const Empty = withInstall(stdin_default$K);
|
8025
|
+
const [name$D, bem$C, t$8] = createNamespace("coupon-list");
|
7689
8026
|
const couponListProps = {
|
7690
8027
|
code: makeStringProp(""),
|
7691
8028
|
coupons: makeArrayProp(),
|
7692
8029
|
currency: makeStringProp("\xA5"),
|
7693
8030
|
showCount: truthProp,
|
7694
|
-
emptyImage:
|
8031
|
+
emptyImage: String,
|
7695
8032
|
chosenCoupon: makeNumberProp(-1),
|
7696
8033
|
enabledTitle: String,
|
7697
8034
|
disabledTitle: String,
|
@@ -7706,8 +8043,8 @@ const couponListProps = {
|
|
7706
8043
|
exchangeButtonLoading: Boolean,
|
7707
8044
|
exchangeButtonDisabled: Boolean
|
7708
8045
|
};
|
7709
|
-
var stdin_default$
|
7710
|
-
name: name$
|
8046
|
+
var stdin_default$J = defineComponent({
|
8047
|
+
name: name$D,
|
7711
8048
|
props: couponListProps,
|
7712
8049
|
emits: ["change", "exchange", "update:code"],
|
7713
8050
|
setup(props, {
|
@@ -7739,28 +8076,30 @@ var stdin_default$K = defineComponent({
|
|
7739
8076
|
return (_a = couponRefs.value[index]) == null ? void 0 : _a.scrollIntoView();
|
7740
8077
|
});
|
7741
8078
|
};
|
7742
|
-
const renderEmpty = () => createVNode(
|
7743
|
-
"
|
7744
|
-
},
|
7745
|
-
"
|
7746
|
-
|
8079
|
+
const renderEmpty = () => createVNode(Empty, {
|
8080
|
+
"image": props.emptyImage
|
8081
|
+
}, {
|
8082
|
+
default: () => [createVNode("p", {
|
8083
|
+
"class": bem$C("empty-tip")
|
8084
|
+
}, [t$8("noCoupon")])]
|
8085
|
+
});
|
7747
8086
|
const renderExchangeBar = () => {
|
7748
8087
|
if (props.showExchangeBar) {
|
7749
8088
|
return createVNode("div", {
|
7750
8089
|
"ref": barRef,
|
7751
|
-
"class": bem$
|
8090
|
+
"class": bem$C("exchange-bar")
|
7752
8091
|
}, [createVNode(Field, {
|
7753
8092
|
"modelValue": currentCode.value,
|
7754
8093
|
"onUpdate:modelValue": ($event) => currentCode.value = $event,
|
7755
8094
|
"clearable": true,
|
7756
8095
|
"border": false,
|
7757
|
-
"class": bem$
|
8096
|
+
"class": bem$C("field"),
|
7758
8097
|
"placeholder": props.inputPlaceholder || t$8("placeholder"),
|
7759
8098
|
"maxlength": "20"
|
7760
8099
|
}, null), createVNode(Button, {
|
7761
8100
|
"plain": true,
|
7762
8101
|
"type": "danger",
|
7763
|
-
"class": bem$
|
8102
|
+
"class": bem$C("exchange"),
|
7764
8103
|
"text": props.exchangeButtonText || t$8("exchange"),
|
7765
8104
|
"loading": props.exchangeButtonLoading,
|
7766
8105
|
"disabled": buttonDisabled.value,
|
@@ -7780,7 +8119,7 @@ var stdin_default$K = defineComponent({
|
|
7780
8119
|
default: () => {
|
7781
8120
|
var _a;
|
7782
8121
|
return [createVNode("div", {
|
7783
|
-
"class": bem$
|
8122
|
+
"class": bem$C("list", {
|
7784
8123
|
"with-bottom": props.showCloseButton
|
7785
8124
|
}),
|
7786
8125
|
"style": {
|
@@ -7809,7 +8148,7 @@ var stdin_default$K = defineComponent({
|
|
7809
8148
|
default: () => {
|
7810
8149
|
var _a;
|
7811
8150
|
return [createVNode("div", {
|
7812
|
-
"class": bem$
|
8151
|
+
"class": bem$C("list", {
|
7813
8152
|
"with-bottom": props.showCloseButton
|
7814
8153
|
}),
|
7815
8154
|
"style": {
|
@@ -7836,29 +8175,29 @@ var stdin_default$K = defineComponent({
|
|
7836
8175
|
});
|
7837
8176
|
return () => createVNode("div", {
|
7838
8177
|
"ref": root,
|
7839
|
-
"class": bem$
|
8178
|
+
"class": bem$C()
|
7840
8179
|
}, [renderExchangeBar(), createVNode(Tabs, {
|
7841
8180
|
"active": activeTab.value,
|
7842
8181
|
"onUpdate:active": ($event) => activeTab.value = $event,
|
7843
|
-
"class": bem$
|
8182
|
+
"class": bem$C("tab")
|
7844
8183
|
}, {
|
7845
8184
|
default: () => [renderCouponTab(), renderDisabledTab()]
|
7846
8185
|
}), createVNode("div", {
|
7847
|
-
"class": bem$
|
8186
|
+
"class": bem$C("bottom")
|
7848
8187
|
}, [withDirectives(createVNode(Button, {
|
7849
8188
|
"round": true,
|
7850
8189
|
"block": true,
|
7851
8190
|
"type": "danger",
|
7852
|
-
"class": bem$
|
8191
|
+
"class": bem$C("close"),
|
7853
8192
|
"text": props.closeButtonText || t$8("close"),
|
7854
8193
|
"onClick": () => emit("change", -1)
|
7855
8194
|
}, null), [[vShow, props.showCloseButton]])])]);
|
7856
8195
|
}
|
7857
8196
|
});
|
7858
|
-
const CouponList = withInstall(stdin_default$
|
7859
|
-
const [name$
|
7860
|
-
var stdin_default$
|
7861
|
-
name: name$
|
8197
|
+
const CouponList = withInstall(stdin_default$J);
|
8198
|
+
const [name$C] = createNamespace("time-picker");
|
8199
|
+
var stdin_default$I = defineComponent({
|
8200
|
+
name: name$C,
|
7862
8201
|
props: extend({}, sharedProps, {
|
7863
8202
|
minHour: makeNumericProp(0),
|
7864
8203
|
maxHour: makeNumericProp(23),
|
@@ -7965,9 +8304,9 @@ var stdin_default$J = defineComponent({
|
|
7965
8304
|
}
|
7966
8305
|
});
|
7967
8306
|
const currentYear = new Date().getFullYear();
|
7968
|
-
const [name$
|
7969
|
-
var stdin_default$
|
7970
|
-
name: name$
|
8307
|
+
const [name$B] = createNamespace("date-picker");
|
8308
|
+
var stdin_default$H = defineComponent({
|
8309
|
+
name: name$B,
|
7971
8310
|
props: extend({}, sharedProps, {
|
7972
8311
|
type: makeStringProp("datetime"),
|
7973
8312
|
modelValue: Date,
|
@@ -8173,6 +8512,7 @@ var stdin_default$I = defineComponent({
|
|
8173
8512
|
const onChange = () => {
|
8174
8513
|
updateInnerValue();
|
8175
8514
|
nextTick(() => {
|
8515
|
+
updateInnerValue();
|
8176
8516
|
nextTick(() => emit("change", currentDate.value));
|
8177
8517
|
});
|
8178
8518
|
};
|
@@ -8182,8 +8522,7 @@ var stdin_default$I = defineComponent({
|
|
8182
8522
|
});
|
8183
8523
|
watch(columns, updateColumnValue);
|
8184
8524
|
watch(currentDate, (value, oldValue) => emit("update:modelValue", oldValue ? value : null));
|
8185
|
-
watch(() => [props.filter, props.maxDate],
|
8186
|
-
watch(() => props.minDate, () => {
|
8525
|
+
watch(() => [props.filter, props.minDate, props.maxDate], () => {
|
8187
8526
|
nextTick(updateInnerValue);
|
8188
8527
|
});
|
8189
8528
|
watch(() => props.modelValue, (value) => {
|
@@ -8205,14 +8544,14 @@ var stdin_default$I = defineComponent({
|
|
8205
8544
|
}, pick(props, pickerInheritKeys)), slots);
|
8206
8545
|
}
|
8207
8546
|
});
|
8208
|
-
const [name$
|
8209
|
-
const timePickerPropKeys = Object.keys(stdin_default$
|
8210
|
-
const datePickerPropKeys = Object.keys(stdin_default$
|
8211
|
-
const datetimePickerProps = extend({}, stdin_default$
|
8547
|
+
const [name$A, bem$B] = createNamespace("datetime-picker");
|
8548
|
+
const timePickerPropKeys = Object.keys(stdin_default$I.props);
|
8549
|
+
const datePickerPropKeys = Object.keys(stdin_default$H.props);
|
8550
|
+
const datetimePickerProps = extend({}, stdin_default$I.props, stdin_default$H.props, {
|
8212
8551
|
modelValue: [String, Date]
|
8213
8552
|
});
|
8214
|
-
var stdin_default$
|
8215
|
-
name: name$
|
8553
|
+
var stdin_default$G = defineComponent({
|
8554
|
+
name: name$A,
|
8216
8555
|
props: datetimePickerProps,
|
8217
8556
|
setup(props, {
|
8218
8557
|
attrs,
|
@@ -8227,17 +8566,17 @@ var stdin_default$H = defineComponent({
|
|
8227
8566
|
});
|
8228
8567
|
return () => {
|
8229
8568
|
const isTimePicker = props.type === "time";
|
8230
|
-
const Component = isTimePicker ? stdin_default$
|
8569
|
+
const Component = isTimePicker ? stdin_default$I : stdin_default$H;
|
8231
8570
|
const inheritProps = pick(props, isTimePicker ? timePickerPropKeys : datePickerPropKeys);
|
8232
8571
|
return createVNode(Component, mergeProps({
|
8233
8572
|
"ref": root,
|
8234
|
-
"class": bem$
|
8573
|
+
"class": bem$B()
|
8235
8574
|
}, inheritProps, attrs), slots);
|
8236
8575
|
};
|
8237
8576
|
}
|
8238
8577
|
});
|
8239
|
-
const DatetimePicker = withInstall(stdin_default$
|
8240
|
-
const [name$
|
8578
|
+
const DatetimePicker = withInstall(stdin_default$G);
|
8579
|
+
const [name$z, bem$A, t$7] = createNamespace("dialog");
|
8241
8580
|
const dialogProps = extend({}, popupSharedProps, {
|
8242
8581
|
title: String,
|
8243
8582
|
theme: String,
|
@@ -8258,8 +8597,8 @@ const dialogProps = extend({}, popupSharedProps, {
|
|
8258
8597
|
closeOnClickOverlay: Boolean
|
8259
8598
|
});
|
8260
8599
|
const popupInheritKeys$1 = [...popupSharedPropKeys, "transition", "closeOnPopstate"];
|
8261
|
-
var stdin_default$
|
8262
|
-
name: name$
|
8600
|
+
var stdin_default$F = defineComponent({
|
8601
|
+
name: name$z,
|
8263
8602
|
props: dialogProps,
|
8264
8603
|
emits: ["confirm", "cancel", "keydown", "update:show"],
|
8265
8604
|
setup(props, {
|
@@ -8316,7 +8655,7 @@ var stdin_default$G = defineComponent({
|
|
8316
8655
|
const title = slots.title ? slots.title() : props.title;
|
8317
8656
|
if (title) {
|
8318
8657
|
return createVNode("div", {
|
8319
|
-
"class": bem$
|
8658
|
+
"class": bem$A("header", {
|
8320
8659
|
isolated: !props.message && !slots.default
|
8321
8660
|
})
|
8322
8661
|
}, [title]);
|
@@ -8328,7 +8667,7 @@ var stdin_default$G = defineComponent({
|
|
8328
8667
|
allowHtml,
|
8329
8668
|
messageAlign
|
8330
8669
|
} = props;
|
8331
|
-
const classNames = bem$
|
8670
|
+
const classNames = bem$A("message", {
|
8332
8671
|
"has-title": hasTitle,
|
8333
8672
|
[messageAlign]: messageAlign
|
8334
8673
|
});
|
@@ -8346,7 +8685,7 @@ var stdin_default$G = defineComponent({
|
|
8346
8685
|
const renderContent = () => {
|
8347
8686
|
if (slots.default) {
|
8348
8687
|
return createVNode("div", {
|
8349
|
-
"class": bem$
|
8688
|
+
"class": bem$A("content")
|
8350
8689
|
}, [slots.default()]);
|
8351
8690
|
}
|
8352
8691
|
const {
|
@@ -8358,18 +8697,18 @@ var stdin_default$G = defineComponent({
|
|
8358
8697
|
const hasTitle = !!(title || slots.title);
|
8359
8698
|
return createVNode("div", {
|
8360
8699
|
"key": allowHtml ? 1 : 0,
|
8361
|
-
"class": bem$
|
8700
|
+
"class": bem$A("content", {
|
8362
8701
|
isolated: !hasTitle
|
8363
8702
|
})
|
8364
8703
|
}, [renderMessage(hasTitle)]);
|
8365
8704
|
}
|
8366
8705
|
};
|
8367
8706
|
const renderButtons = () => createVNode("div", {
|
8368
|
-
"class": [BORDER_TOP, bem$
|
8707
|
+
"class": [BORDER_TOP, bem$A("footer")]
|
8369
8708
|
}, [props.showCancelButton && createVNode(Button, {
|
8370
8709
|
"size": "large",
|
8371
8710
|
"text": props.cancelButtonText || t$7("cancel"),
|
8372
|
-
"class": bem$
|
8711
|
+
"class": bem$A("cancel"),
|
8373
8712
|
"style": {
|
8374
8713
|
color: props.cancelButtonColor
|
8375
8714
|
},
|
@@ -8378,7 +8717,7 @@ var stdin_default$G = defineComponent({
|
|
8378
8717
|
}, null), props.showConfirmButton && createVNode(Button, {
|
8379
8718
|
"size": "large",
|
8380
8719
|
"text": props.confirmButtonText || t$7("confirm"),
|
8381
|
-
"class": [bem$
|
8720
|
+
"class": [bem$A("confirm"), {
|
8382
8721
|
[BORDER_LEFT]: props.showCancelButton
|
8383
8722
|
}],
|
8384
8723
|
"style": {
|
@@ -8388,19 +8727,19 @@ var stdin_default$G = defineComponent({
|
|
8388
8727
|
"onClick": onConfirm
|
8389
8728
|
}, null)]);
|
8390
8729
|
const renderRoundButtons = () => createVNode(ActionBar, {
|
8391
|
-
"class": bem$
|
8730
|
+
"class": bem$A("footer")
|
8392
8731
|
}, {
|
8393
8732
|
default: () => [props.showCancelButton && createVNode(ActionBarButton, {
|
8394
8733
|
"type": "warning",
|
8395
8734
|
"text": props.cancelButtonText || t$7("cancel"),
|
8396
|
-
"class": bem$
|
8735
|
+
"class": bem$A("cancel"),
|
8397
8736
|
"color": props.cancelButtonColor,
|
8398
8737
|
"loading": loading.cancel,
|
8399
8738
|
"onClick": onCancel
|
8400
8739
|
}, null), props.showConfirmButton && createVNode(ActionBarButton, {
|
8401
8740
|
"type": "danger",
|
8402
8741
|
"text": props.confirmButtonText || t$7("confirm"),
|
8403
|
-
"class": bem$
|
8742
|
+
"class": bem$A("confirm"),
|
8404
8743
|
"color": props.confirmButtonColor,
|
8405
8744
|
"loading": loading.confirm,
|
8406
8745
|
"onClick": onConfirm
|
@@ -8423,7 +8762,7 @@ var stdin_default$G = defineComponent({
|
|
8423
8762
|
return createVNode(Popup, mergeProps({
|
8424
8763
|
"ref": root,
|
8425
8764
|
"role": "dialog",
|
8426
|
-
"class": [bem$
|
8765
|
+
"class": [bem$A([theme]), className],
|
8427
8766
|
"style": {
|
8428
8767
|
width: addUnit(width)
|
8429
8768
|
},
|
@@ -8445,7 +8784,7 @@ function initInstance$2() {
|
|
8445
8784
|
state,
|
8446
8785
|
toggle
|
8447
8786
|
} = usePopupState();
|
8448
|
-
return () => createVNode(stdin_default$
|
8787
|
+
return () => createVNode(stdin_default$F, mergeProps(state, {
|
8449
8788
|
"onUpdate:show": toggle
|
8450
8789
|
}), null);
|
8451
8790
|
}
|
@@ -8510,19 +8849,19 @@ Dialog.setDefaultOptions = (options) => {
|
|
8510
8849
|
Dialog.resetDefaultOptions = () => {
|
8511
8850
|
Dialog.currentOptions = extend({}, Dialog.defaultOptions);
|
8512
8851
|
};
|
8513
|
-
Dialog.Component = withInstall(stdin_default$
|
8852
|
+
Dialog.Component = withInstall(stdin_default$F);
|
8514
8853
|
Dialog.install = (app) => {
|
8515
8854
|
app.use(Dialog.Component);
|
8516
8855
|
app.config.globalProperties.$dialog = Dialog;
|
8517
8856
|
};
|
8518
|
-
const [name$
|
8857
|
+
const [name$y, bem$z] = createNamespace("divider");
|
8519
8858
|
const dividerProps = {
|
8520
8859
|
dashed: Boolean,
|
8521
8860
|
hairline: truthProp,
|
8522
8861
|
contentPosition: makeStringProp("center")
|
8523
8862
|
};
|
8524
|
-
var stdin_default$
|
8525
|
-
name: name$
|
8863
|
+
var stdin_default$E = defineComponent({
|
8864
|
+
name: name$y,
|
8526
8865
|
props: dividerProps,
|
8527
8866
|
setup(props, {
|
8528
8867
|
slots
|
@@ -8531,7 +8870,7 @@ var stdin_default$F = defineComponent({
|
|
8531
8870
|
var _a;
|
8532
8871
|
return createVNode("div", {
|
8533
8872
|
"role": "separator",
|
8534
|
-
"class": bem$
|
8873
|
+
"class": bem$z({
|
8535
8874
|
dashed: props.dashed,
|
8536
8875
|
hairline: props.hairline,
|
8537
8876
|
[`content-${props.contentPosition}`]: !!slots.default
|
@@ -8540,8 +8879,8 @@ var stdin_default$F = defineComponent({
|
|
8540
8879
|
};
|
8541
8880
|
}
|
8542
8881
|
});
|
8543
|
-
const Divider = withInstall(stdin_default$
|
8544
|
-
const [name$
|
8882
|
+
const Divider = withInstall(stdin_default$E);
|
8883
|
+
const [name$x, bem$y] = createNamespace("dropdown-menu");
|
8545
8884
|
const dropdownMenuProps = {
|
8546
8885
|
overlay: truthProp,
|
8547
8886
|
zIndex: numericProp,
|
@@ -8551,14 +8890,14 @@ const dropdownMenuProps = {
|
|
8551
8890
|
closeOnClickOutside: truthProp,
|
8552
8891
|
closeOnClickOverlay: truthProp
|
8553
8892
|
};
|
8554
|
-
const DROPDOWN_KEY = Symbol(name$
|
8555
|
-
var stdin_default$
|
8556
|
-
name: name$
|
8893
|
+
const DROPDOWN_KEY = Symbol(name$x);
|
8894
|
+
var stdin_default$D = defineComponent({
|
8895
|
+
name: name$x,
|
8557
8896
|
props: dropdownMenuProps,
|
8558
8897
|
setup(props, {
|
8559
8898
|
slots
|
8560
8899
|
}) {
|
8561
|
-
const id = useId();
|
8900
|
+
const id = useId$1();
|
8562
8901
|
const root = ref();
|
8563
8902
|
const barRef = ref();
|
8564
8903
|
const offset = ref(0);
|
@@ -8621,7 +8960,7 @@ var stdin_default$E = defineComponent({
|
|
8621
8960
|
"id": `${id}-${index}`,
|
8622
8961
|
"role": "button",
|
8623
8962
|
"tabindex": disabled ? void 0 : 0,
|
8624
|
-
"class": [bem$
|
8963
|
+
"class": [bem$y("item", {
|
8625
8964
|
disabled
|
8626
8965
|
}), {
|
8627
8966
|
[HAPTICS_FEEDBACK]: !disabled
|
@@ -8632,7 +8971,7 @@ var stdin_default$E = defineComponent({
|
|
8632
8971
|
}
|
8633
8972
|
}
|
8634
8973
|
}, [createVNode("span", {
|
8635
|
-
"class": [bem$
|
8974
|
+
"class": [bem$y("title", {
|
8636
8975
|
down: showPopup === (props.direction === "down"),
|
8637
8976
|
active: showPopup
|
8638
8977
|
}), titleClass],
|
@@ -8656,18 +8995,18 @@ var stdin_default$E = defineComponent({
|
|
8656
8995
|
var _a;
|
8657
8996
|
return createVNode("div", {
|
8658
8997
|
"ref": root,
|
8659
|
-
"class": bem$
|
8998
|
+
"class": bem$y()
|
8660
8999
|
}, [createVNode("div", {
|
8661
9000
|
"ref": barRef,
|
8662
9001
|
"style": barStyle.value,
|
8663
|
-
"class": bem$
|
9002
|
+
"class": bem$y("bar", {
|
8664
9003
|
opened: opened.value
|
8665
9004
|
})
|
8666
9005
|
}, [children.map(renderTitle)]), (_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
8667
9006
|
};
|
8668
9007
|
}
|
8669
9008
|
});
|
8670
|
-
const [name$
|
9009
|
+
const [name$w, bem$x] = createNamespace("dropdown-item");
|
8671
9010
|
const dropdownItemProps = {
|
8672
9011
|
title: String,
|
8673
9012
|
options: makeArrayProp(),
|
@@ -8677,8 +9016,8 @@ const dropdownItemProps = {
|
|
8677
9016
|
modelValue: unknownProp,
|
8678
9017
|
titleClass: unknownProp
|
8679
9018
|
};
|
8680
|
-
var stdin_default$
|
8681
|
-
name: name$
|
9019
|
+
var stdin_default$C = defineComponent({
|
9020
|
+
name: name$w,
|
8682
9021
|
props: dropdownItemProps,
|
8683
9022
|
emits: ["open", "opened", "close", "closed", "change", "update:modelValue"],
|
8684
9023
|
setup(props, {
|
@@ -8745,7 +9084,7 @@ var stdin_default$D = defineComponent({
|
|
8745
9084
|
const renderIcon = () => {
|
8746
9085
|
if (active) {
|
8747
9086
|
return createVNode(Icon, {
|
8748
|
-
"class": bem$
|
9087
|
+
"class": bem$x("icon"),
|
8749
9088
|
"color": activeColor,
|
8750
9089
|
"name": "success"
|
8751
9090
|
}, null);
|
@@ -8756,7 +9095,7 @@ var stdin_default$D = defineComponent({
|
|
8756
9095
|
"key": option.value,
|
8757
9096
|
"icon": option.icon,
|
8758
9097
|
"title": option.text,
|
8759
|
-
"class": bem$
|
9098
|
+
"class": bem$x("option", {
|
8760
9099
|
active
|
8761
9100
|
}),
|
8762
9101
|
"style": {
|
@@ -8788,13 +9127,13 @@ var stdin_default$D = defineComponent({
|
|
8788
9127
|
}
|
8789
9128
|
return withDirectives(createVNode("div", {
|
8790
9129
|
"style": style,
|
8791
|
-
"class": bem$
|
9130
|
+
"class": bem$x([direction]),
|
8792
9131
|
"onClick": onClickWrapper
|
8793
9132
|
}, [createVNode(Popup, {
|
8794
9133
|
"show": state.showPopup,
|
8795
9134
|
"onUpdate:show": ($event) => state.showPopup = $event,
|
8796
9135
|
"role": "menu",
|
8797
|
-
"class": bem$
|
9136
|
+
"class": bem$x("content"),
|
8798
9137
|
"overlay": overlay,
|
8799
9138
|
"position": direction === "down" ? "top" : "bottom",
|
8800
9139
|
"duration": state.transition ? duration : 0,
|
@@ -8832,147 +9171,8 @@ var stdin_default$D = defineComponent({
|
|
8832
9171
|
};
|
8833
9172
|
}
|
8834
9173
|
});
|
8835
|
-
const DropdownItem = withInstall(stdin_default$
|
8836
|
-
const DropdownMenu = withInstall(stdin_default$
|
8837
|
-
const prefix = "van-empty-network-";
|
8838
|
-
const renderStop = (color, offset, opacity) => createVNode("stop", {
|
8839
|
-
"stop-color": color,
|
8840
|
-
"offset": `${offset}%`,
|
8841
|
-
"stop-opacity": opacity
|
8842
|
-
}, null);
|
8843
|
-
const Network = createVNode("svg", {
|
8844
|
-
"viewBox": "0 0 160 160"
|
8845
|
-
}, [createVNode("defs", null, [createVNode("linearGradient", {
|
8846
|
-
"id": `${prefix}1`,
|
8847
|
-
"x1": "64%",
|
8848
|
-
"y1": "100%",
|
8849
|
-
"x2": "64%"
|
8850
|
-
}, [renderStop("#FFF", 0, 0.5), renderStop("#F2F3F5", 100)]), createVNode("linearGradient", {
|
8851
|
-
"id": `${prefix}2`,
|
8852
|
-
"x1": "50%",
|
8853
|
-
"x2": "50%",
|
8854
|
-
"y2": "84%"
|
8855
|
-
}, [renderStop("#EBEDF0", 0), renderStop("#DCDEE0", 100, 0)]), createVNode("linearGradient", {
|
8856
|
-
"id": `${prefix}3`,
|
8857
|
-
"x1": "100%",
|
8858
|
-
"x2": "100%",
|
8859
|
-
"y2": "100%"
|
8860
|
-
}, [renderStop("#EAEDF0", 0), renderStop("#DCDEE0", 100)]), createVNode("radialGradient", {
|
8861
|
-
"id": `${prefix}4`,
|
8862
|
-
"cx": "50%",
|
8863
|
-
"cy": "0%",
|
8864
|
-
"fx": "50%",
|
8865
|
-
"fy": "0%",
|
8866
|
-
"r": "100%",
|
8867
|
-
"gradientTransform": "matrix(0 1 -.54 0 .5 -.5)"
|
8868
|
-
}, [renderStop("#EBEDF0", 0), renderStop("#FFF", 100, 0)])]), createVNode("g", {
|
8869
|
-
"fill": "none"
|
8870
|
-
}, [createVNode("g", {
|
8871
|
-
"opacity": ".8"
|
8872
|
-
}, [createVNode("path", {
|
8873
|
-
"d": "M36 131V53H16v20H2v58h34z",
|
8874
|
-
"fill": `url(#${prefix}1)`
|
8875
|
-
}, null), createVNode("path", {
|
8876
|
-
"d": "M123 15h22v14h9v77h-31V15z",
|
8877
|
-
"fill": `url(#${prefix}1)`
|
8878
|
-
}, null)]), createVNode("path", {
|
8879
|
-
"fill": `url(#${prefix}4)`,
|
8880
|
-
"d": "M0 139h160v21H0z"
|
8881
|
-
}, null), createVNode("path", {
|
8882
|
-
"d": "M80 54a7 7 0 0 1 3 13v27l-2 2h-2a2 2 0 0 1-2-2V67a7 7 0 0 1 3-13z",
|
8883
|
-
"fill": `url(#${prefix}2)`
|
8884
|
-
}, null), createVNode("g", {
|
8885
|
-
"opacity": ".6",
|
8886
|
-
"stroke-linecap": "round",
|
8887
|
-
"stroke-width": "7"
|
8888
|
-
}, [createVNode("path", {
|
8889
|
-
"d": "M64 47a19 19 0 0 0-5 13c0 5 2 10 5 13",
|
8890
|
-
"stroke": `url(#${prefix}3)`
|
8891
|
-
}, null), createVNode("path", {
|
8892
|
-
"d": "M53 36a34 34 0 0 0 0 48",
|
8893
|
-
"stroke": `url(#${prefix}3)`
|
8894
|
-
}, null), createVNode("path", {
|
8895
|
-
"d": "M95 73a19 19 0 0 0 6-13c0-5-2-9-6-13",
|
8896
|
-
"stroke": `url(#${prefix}3)`
|
8897
|
-
}, null), createVNode("path", {
|
8898
|
-
"d": "M106 84a34 34 0 0 0 0-48",
|
8899
|
-
"stroke": `url(#${prefix}3)`
|
8900
|
-
}, null)]), createVNode("g", {
|
8901
|
-
"transform": "translate(31 105)"
|
8902
|
-
}, [createVNode("rect", {
|
8903
|
-
"fill": "#EBEDF0",
|
8904
|
-
"width": "98",
|
8905
|
-
"height": "34",
|
8906
|
-
"rx": "2"
|
8907
|
-
}, null), createVNode("rect", {
|
8908
|
-
"fill": "#FFF",
|
8909
|
-
"x": "9",
|
8910
|
-
"y": "8",
|
8911
|
-
"width": "80",
|
8912
|
-
"height": "18",
|
8913
|
-
"rx": "1.1"
|
8914
|
-
}, null), createVNode("rect", {
|
8915
|
-
"fill": "#EBEDF0",
|
8916
|
-
"x": "15",
|
8917
|
-
"y": "12",
|
8918
|
-
"width": "18",
|
8919
|
-
"height": "6",
|
8920
|
-
"rx": "1.1"
|
8921
|
-
}, null)])])]);
|
8922
|
-
const [name$w, bem$x] = createNamespace("empty");
|
8923
|
-
const PRESET_IMAGES = ["error", "search", "default"];
|
8924
|
-
const emptyProps = {
|
8925
|
-
image: makeStringProp("default"),
|
8926
|
-
imageSize: numericProp,
|
8927
|
-
description: String
|
8928
|
-
};
|
8929
|
-
var stdin_default$C = defineComponent({
|
8930
|
-
name: name$w,
|
8931
|
-
props: emptyProps,
|
8932
|
-
setup(props, {
|
8933
|
-
slots
|
8934
|
-
}) {
|
8935
|
-
const renderImage = () => {
|
8936
|
-
if (slots.image) {
|
8937
|
-
return slots.image();
|
8938
|
-
}
|
8939
|
-
let {
|
8940
|
-
image
|
8941
|
-
} = props;
|
8942
|
-
if (image === "network") {
|
8943
|
-
return Network;
|
8944
|
-
}
|
8945
|
-
if (PRESET_IMAGES.includes(image)) {
|
8946
|
-
image = `https://img.yzcdn.cn/vant/empty-image-${image}.png`;
|
8947
|
-
}
|
8948
|
-
return createVNode("img", {
|
8949
|
-
"src": image
|
8950
|
-
}, null);
|
8951
|
-
};
|
8952
|
-
const renderDescription = () => {
|
8953
|
-
const description = slots.description ? slots.description() : props.description;
|
8954
|
-
if (description) {
|
8955
|
-
return createVNode("p", {
|
8956
|
-
"class": bem$x("description")
|
8957
|
-
}, [description]);
|
8958
|
-
}
|
8959
|
-
};
|
8960
|
-
const renderBottom = () => {
|
8961
|
-
if (slots.default) {
|
8962
|
-
return createVNode("div", {
|
8963
|
-
"class": bem$x("bottom")
|
8964
|
-
}, [slots.default()]);
|
8965
|
-
}
|
8966
|
-
};
|
8967
|
-
return () => createVNode("div", {
|
8968
|
-
"class": bem$x()
|
8969
|
-
}, [createVNode("div", {
|
8970
|
-
"class": bem$x("image"),
|
8971
|
-
"style": getSizeStyle(props.imageSize)
|
8972
|
-
}, [renderImage()]), renderDescription(), renderBottom()]);
|
8973
|
-
}
|
8974
|
-
});
|
8975
|
-
const Empty = withInstall(stdin_default$C);
|
9174
|
+
const DropdownItem = withInstall(stdin_default$C);
|
9175
|
+
const DropdownMenu = withInstall(stdin_default$D);
|
8976
9176
|
const [name$v, bem$w] = createNamespace("grid");
|
8977
9177
|
const gridProps = {
|
8978
9178
|
square: Boolean,
|
@@ -9626,6 +9826,7 @@ var stdin_default$x = defineComponent({
|
|
9626
9826
|
children,
|
9627
9827
|
linkChildren
|
9628
9828
|
} = useChildren(INDEX_BAR_KEY);
|
9829
|
+
let selectActiveIndex;
|
9629
9830
|
linkChildren({
|
9630
9831
|
props
|
9631
9832
|
});
|
@@ -9653,6 +9854,7 @@ var stdin_default$x = defineComponent({
|
|
9653
9854
|
}
|
9654
9855
|
return -1;
|
9655
9856
|
};
|
9857
|
+
const getMatchAnchor = (index) => children.find((item) => String(item.index) === index);
|
9656
9858
|
const onScroll = () => {
|
9657
9859
|
if (isHidden(root)) {
|
9658
9860
|
return;
|
@@ -9664,7 +9866,16 @@ var stdin_default$x = defineComponent({
|
|
9664
9866
|
const scrollTop = getScrollTop(scrollParent.value);
|
9665
9867
|
const scrollParentRect = useRect(scrollParent);
|
9666
9868
|
const rects = children.map((item) => item.getRect(scrollParent.value, scrollParentRect));
|
9667
|
-
|
9869
|
+
let active = -1;
|
9870
|
+
if (selectActiveIndex) {
|
9871
|
+
const match = getMatchAnchor(selectActiveIndex);
|
9872
|
+
if (match) {
|
9873
|
+
const rect = match.getRect(scrollParent.value, scrollParentRect);
|
9874
|
+
active = getActiveAnchor(rect.top, rects);
|
9875
|
+
}
|
9876
|
+
} else {
|
9877
|
+
active = getActiveAnchor(scrollTop, rects);
|
9878
|
+
}
|
9668
9879
|
activeAnchor.value = indexList[active];
|
9669
9880
|
if (sticky) {
|
9670
9881
|
children.forEach((item, index) => {
|
@@ -9683,7 +9894,7 @@ var stdin_default$x = defineComponent({
|
|
9683
9894
|
if (index === active) {
|
9684
9895
|
state.active = true;
|
9685
9896
|
state.top = Math.max(props.stickyOffsetTop, rects[index].top - scrollTop) + scrollParentRect.top;
|
9686
|
-
} else if (index === active - 1) {
|
9897
|
+
} else if (index === active - 1 && selectActiveIndex === "") {
|
9687
9898
|
const activeItemTop = rects[active].top - scrollTop;
|
9688
9899
|
state.active = activeItemTop > 0;
|
9689
9900
|
state.top = activeItemTop + scrollParentRect.top - rects[index].height;
|
@@ -9692,6 +9903,7 @@ var stdin_default$x = defineComponent({
|
|
9692
9903
|
}
|
9693
9904
|
});
|
9694
9905
|
}
|
9906
|
+
selectActiveIndex = "";
|
9695
9907
|
};
|
9696
9908
|
const init = () => {
|
9697
9909
|
nextTick(onScroll);
|
@@ -9717,9 +9929,18 @@ var stdin_default$x = defineComponent({
|
|
9717
9929
|
}, [index]);
|
9718
9930
|
});
|
9719
9931
|
const scrollTo = (index) => {
|
9720
|
-
|
9721
|
-
const match =
|
9932
|
+
selectActiveIndex = String(index);
|
9933
|
+
const match = getMatchAnchor(selectActiveIndex);
|
9722
9934
|
if (match) {
|
9935
|
+
const scrollTop = getScrollTop(scrollParent.value);
|
9936
|
+
const scrollParentRect = useRect(scrollParent);
|
9937
|
+
const {
|
9938
|
+
offsetHeight
|
9939
|
+
} = document.documentElement;
|
9940
|
+
if (scrollTop === offsetHeight - scrollParentRect.height) {
|
9941
|
+
onScroll();
|
9942
|
+
return;
|
9943
|
+
}
|
9723
9944
|
match.$el.scrollIntoView();
|
9724
9945
|
if (props.sticky && props.stickyOffsetTop) {
|
9725
9946
|
setRootScrollTop(getRootScrollTop() - props.stickyOffsetTop);
|
@@ -10445,6 +10666,15 @@ const numberKeyboardProps = {
|
|
10445
10666
|
default: ""
|
10446
10667
|
}
|
10447
10668
|
};
|
10669
|
+
function shuffle(array) {
|
10670
|
+
for (let i = array.length - 1; i > 0; i--) {
|
10671
|
+
const j = Math.floor(Math.random() * (i + 1));
|
10672
|
+
const temp = array[i];
|
10673
|
+
array[i] = array[j];
|
10674
|
+
array[j] = temp;
|
10675
|
+
}
|
10676
|
+
return array;
|
10677
|
+
}
|
10448
10678
|
var stdin_default$q = defineComponent({
|
10449
10679
|
name: name$l,
|
10450
10680
|
props: numberKeyboardProps,
|
@@ -10459,7 +10689,7 @@ var stdin_default$q = defineComponent({
|
|
10459
10689
|
text: i + 1
|
10460
10690
|
}));
|
10461
10691
|
if (props.randomKeyOrder) {
|
10462
|
-
keys2
|
10692
|
+
shuffle(keys2);
|
10463
10693
|
}
|
10464
10694
|
return keys2;
|
10465
10695
|
};
|
@@ -11314,33 +11544,53 @@ var stdin_default$k = defineComponent({
|
|
11314
11544
|
}) {
|
11315
11545
|
const touch = useTouch();
|
11316
11546
|
const [itemRefs, setItemRefs] = useRefs();
|
11547
|
+
const groupRef = ref();
|
11317
11548
|
const untouchable = () => props.readonly || props.disabled || !props.touchable;
|
11318
11549
|
const list = computed(() => Array(+props.count).fill("").map((_, i) => getRateStatus(props.modelValue, i + 1, props.allowHalf, props.readonly)));
|
11319
11550
|
let ranges;
|
11551
|
+
let groupRefRect;
|
11552
|
+
let minRectTop = Number.MAX_SAFE_INTEGER;
|
11553
|
+
let maxRectTop = Number.MIN_SAFE_INTEGER;
|
11320
11554
|
const updateRanges = () => {
|
11555
|
+
groupRefRect = useRect(groupRef);
|
11321
11556
|
const rects = itemRefs.value.map(useRect);
|
11322
11557
|
ranges = [];
|
11323
11558
|
rects.forEach((rect, index) => {
|
11559
|
+
minRectTop = Math.min(rect.top, minRectTop);
|
11560
|
+
maxRectTop = Math.max(rect.top, maxRectTop);
|
11324
11561
|
if (props.allowHalf) {
|
11325
11562
|
ranges.push({
|
11326
11563
|
score: index + 0.5,
|
11327
|
-
left: rect.left
|
11564
|
+
left: rect.left,
|
11565
|
+
top: rect.top,
|
11566
|
+
height: rect.height
|
11328
11567
|
}, {
|
11329
11568
|
score: index + 1,
|
11330
|
-
left: rect.left + rect.width / 2
|
11569
|
+
left: rect.left + rect.width / 2,
|
11570
|
+
top: rect.top,
|
11571
|
+
height: rect.height
|
11331
11572
|
});
|
11332
11573
|
} else {
|
11333
11574
|
ranges.push({
|
11334
11575
|
score: index + 1,
|
11335
|
-
left: rect.left
|
11576
|
+
left: rect.left,
|
11577
|
+
top: rect.top,
|
11578
|
+
height: rect.height
|
11336
11579
|
});
|
11337
11580
|
}
|
11338
11581
|
});
|
11339
11582
|
};
|
11340
|
-
const getScoreByPosition = (x) => {
|
11583
|
+
const getScoreByPosition = (x, y) => {
|
11341
11584
|
for (let i = ranges.length - 1; i > 0; i--) {
|
11342
|
-
if (
|
11343
|
-
|
11585
|
+
if (y >= groupRefRect.top && y <= groupRefRect.bottom) {
|
11586
|
+
if (x > ranges[i].left && y >= ranges[i].top && y <= ranges[i].top + ranges[i].height) {
|
11587
|
+
return ranges[i].score;
|
11588
|
+
}
|
11589
|
+
} else {
|
11590
|
+
const curTop = y < groupRefRect.top ? minRectTop : maxRectTop;
|
11591
|
+
if (x > ranges[i].left && ranges[i].top === curTop) {
|
11592
|
+
return ranges[i].score;
|
11593
|
+
}
|
11344
11594
|
}
|
11345
11595
|
}
|
11346
11596
|
return props.allowHalf ? 0.5 : 1;
|
@@ -11365,10 +11615,11 @@ var stdin_default$k = defineComponent({
|
|
11365
11615
|
touch.move(event);
|
11366
11616
|
if (touch.isHorizontal()) {
|
11367
11617
|
const {
|
11368
|
-
clientX
|
11618
|
+
clientX,
|
11619
|
+
clientY
|
11369
11620
|
} = event.touches[0];
|
11370
11621
|
preventDefault(event);
|
11371
|
-
select(getScoreByPosition(clientX));
|
11622
|
+
select(getScoreByPosition(clientX, clientY));
|
11372
11623
|
}
|
11373
11624
|
};
|
11374
11625
|
const renderStar = (item, index) => {
|
@@ -11397,7 +11648,7 @@ var stdin_default$k = defineComponent({
|
|
11397
11648
|
}
|
11398
11649
|
const onClickItem = (event) => {
|
11399
11650
|
updateRanges();
|
11400
|
-
select(allowHalf ? getScoreByPosition(event.clientX) : score);
|
11651
|
+
select(allowHalf ? getScoreByPosition(event.clientX, event.clientY) : score);
|
11401
11652
|
};
|
11402
11653
|
return createVNode("div", {
|
11403
11654
|
"key": index,
|
@@ -11435,6 +11686,7 @@ var stdin_default$k = defineComponent({
|
|
11435
11686
|
};
|
11436
11687
|
useCustomFieldValue(() => props.modelValue);
|
11437
11688
|
return () => createVNode("div", {
|
11689
|
+
"ref": groupRef,
|
11438
11690
|
"role": "radiogroup",
|
11439
11691
|
"class": bem$f({
|
11440
11692
|
readonly: props.readonly,
|
@@ -11469,7 +11721,7 @@ var stdin_default$j = defineComponent({
|
|
11469
11721
|
slots,
|
11470
11722
|
attrs
|
11471
11723
|
}) {
|
11472
|
-
const id = useId();
|
11724
|
+
const id = useId$1();
|
11473
11725
|
const filedRef = ref();
|
11474
11726
|
const onCancel = () => {
|
11475
11727
|
if (!slots.action) {
|
@@ -11559,14 +11811,17 @@ var stdin_default$j = defineComponent({
|
|
11559
11811
|
}
|
11560
11812
|
});
|
11561
11813
|
const Search = withInstall(stdin_default$j);
|
11562
|
-
const PRESET_ICONS = ["qq", "link", "weibo", "wechat", "poster", "qrcode", "weapp-qrcode", "wechat-moments"];
|
11563
11814
|
const popupInheritKeys = [...popupSharedPropKeys, "round", "closeOnPopstate", "safeAreaInsetBottom"];
|
11564
|
-
|
11565
|
-
|
11566
|
-
|
11567
|
-
|
11568
|
-
|
11569
|
-
|
11815
|
+
const iconMap = {
|
11816
|
+
qq: "qq",
|
11817
|
+
link: "link-o",
|
11818
|
+
weibo: "weibo",
|
11819
|
+
qrcode: "qr",
|
11820
|
+
poster: "photo-o",
|
11821
|
+
wechat: "wechat",
|
11822
|
+
"weapp-qrcode": "miniprogram-o",
|
11823
|
+
"wechat-moments": "wechat-moments"
|
11824
|
+
};
|
11570
11825
|
const [name$d, bem$d, t$2] = createNamespace("share-sheet");
|
11571
11826
|
const shareSheetProps = extend({}, popupSharedProps, {
|
11572
11827
|
title: String,
|
@@ -11604,6 +11859,19 @@ var stdin_default$i = defineComponent({
|
|
11604
11859
|
}, [description])]);
|
11605
11860
|
}
|
11606
11861
|
};
|
11862
|
+
const renderIcon = (icon) => {
|
11863
|
+
if (iconMap[icon]) {
|
11864
|
+
return createVNode("div", {
|
11865
|
+
"class": bem$d("icon", [icon])
|
11866
|
+
}, [createVNode(Icon, {
|
11867
|
+
"name": iconMap[icon] || icon
|
11868
|
+
}, null)]);
|
11869
|
+
}
|
11870
|
+
return createVNode("img", {
|
11871
|
+
"src": icon,
|
11872
|
+
"class": bem$d("image-icon")
|
11873
|
+
}, null);
|
11874
|
+
};
|
11607
11875
|
const renderOption = (option, index) => {
|
11608
11876
|
const {
|
11609
11877
|
name: name2,
|
@@ -11616,10 +11884,7 @@ var stdin_default$i = defineComponent({
|
|
11616
11884
|
"tabindex": 0,
|
11617
11885
|
"class": [bem$d("option"), className, HAPTICS_FEEDBACK],
|
11618
11886
|
"onClick": () => onSelect(option, index)
|
11619
|
-
}, [createVNode("
|
11620
|
-
"src": getIconURL(icon),
|
11621
|
-
"class": bem$d("icon")
|
11622
|
-
}, null), name2 && createVNode("span", {
|
11887
|
+
}, [renderIcon(icon), name2 && createVNode("span", {
|
11623
11888
|
"class": bem$d("name")
|
11624
11889
|
}, [name2]), description && createVNode("span", {
|
11625
11890
|
"class": bem$d("option-description")
|
@@ -13011,7 +13276,6 @@ var stdin_default$6 = defineComponent({
|
|
13011
13276
|
});
|
13012
13277
|
const TreeSelect = withInstall(stdin_default$6);
|
13013
13278
|
const [name, bem, t] = createNamespace("uploader");
|
13014
|
-
const toArray = (item) => Array.isArray(item) ? item : [item];
|
13015
13279
|
function readFileContent(file, resultType) {
|
13016
13280
|
return new Promise((resolve) => {
|
13017
13281
|
if (resultType === "file") {
|
@@ -13077,7 +13341,7 @@ var stdin_default$5 = defineComponent({
|
|
13077
13341
|
imageFit: String,
|
13078
13342
|
lazyLoad: Boolean,
|
13079
13343
|
deletable: Boolean,
|
13080
|
-
previewSize:
|
13344
|
+
previewSize: [Number, String, Array],
|
13081
13345
|
beforeDelete: Function
|
13082
13346
|
},
|
13083
13347
|
emits: ["delete", "preview"],
|
@@ -13151,16 +13415,19 @@ var stdin_default$5 = defineComponent({
|
|
13151
13415
|
};
|
13152
13416
|
const renderPreview = () => {
|
13153
13417
|
const {
|
13154
|
-
item
|
13418
|
+
item,
|
13419
|
+
lazyLoad,
|
13420
|
+
imageFit,
|
13421
|
+
previewSize
|
13155
13422
|
} = props;
|
13156
13423
|
if (isImageFile(item)) {
|
13157
13424
|
return createVNode(Image$1, {
|
13158
|
-
"fit":
|
13425
|
+
"fit": imageFit,
|
13159
13426
|
"src": item.content || item.url,
|
13160
13427
|
"class": bem("preview-image"),
|
13161
|
-
"width":
|
13162
|
-
"height":
|
13163
|
-
"lazyLoad":
|
13428
|
+
"width": Array.isArray(previewSize) ? previewSize[0] : previewSize,
|
13429
|
+
"height": Array.isArray(previewSize) ? previewSize[1] : previewSize,
|
13430
|
+
"lazyLoad": lazyLoad,
|
13164
13431
|
"onClick": onPreview
|
13165
13432
|
}, {
|
13166
13433
|
default: renderCover
|
@@ -13200,7 +13467,7 @@ const uploaderProps = {
|
|
13200
13467
|
modelValue: makeArrayProp(),
|
13201
13468
|
beforeRead: Function,
|
13202
13469
|
beforeDelete: Function,
|
13203
|
-
previewSize:
|
13470
|
+
previewSize: [Number, String, Array],
|
13204
13471
|
previewImage: truthProp,
|
13205
13472
|
previewOptions: Object,
|
13206
13473
|
previewFullImage: truthProp,
|
@@ -14267,7 +14534,7 @@ const Lazyload = {
|
|
14267
14534
|
});
|
14268
14535
|
}
|
14269
14536
|
};
|
14270
|
-
const version = "3.4.
|
14537
|
+
const version = "3.4.9";
|
14271
14538
|
function install(app) {
|
14272
14539
|
const components = [
|
14273
14540
|
ActionBar,
|