vant 4.3.2 → 4.4.1
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/index.d.ts +1 -1
- package/es/action-bar-button/ActionBarButton.d.ts +1 -1
- package/es/action-bar-button/index.d.ts +1 -1
- package/es/action-bar-icon/ActionBarIcon.d.ts +1 -1
- package/es/action-bar-icon/index.d.ts +1 -1
- package/es/action-sheet/ActionSheet.d.ts +1 -1
- package/es/action-sheet/index.d.ts +1 -1
- package/es/address-edit/AddressEdit.d.ts +1 -1
- package/es/address-edit/AddressEdit.mjs +1 -0
- package/es/address-edit/AddressEditDetail.d.ts +1 -1
- package/es/address-edit/index.d.ts +1 -1
- package/es/address-list/AddressList.d.ts +1 -1
- package/es/address-list/AddressListItem.d.ts +1 -1
- package/es/address-list/index.d.ts +1 -1
- package/es/area/Area.d.ts +7 -9
- package/es/area/Area.mjs +1 -1
- package/es/area/index.d.ts +5 -7
- package/es/back-top/BackTop.d.ts +2 -2
- package/es/back-top/BackTop.mjs +6 -3
- package/es/back-top/index.css +1 -1
- package/es/back-top/index.d.ts +2 -2
- package/es/badge/Badge.d.ts +1 -1
- package/es/badge/index.d.ts +1 -1
- package/es/barrage/Barrage.d.ts +93 -0
- package/es/barrage/Barrage.mjs +134 -0
- package/es/barrage/index.css +1 -0
- package/es/barrage/index.d.ts +69 -0
- package/es/barrage/index.mjs +10 -0
- package/es/barrage/style/index.d.ts +1 -0
- package/es/barrage/style/index.mjs +2 -0
- package/es/barrage/types.d.ts +7 -0
- package/es/barrage/types.mjs +0 -0
- package/es/button/Button.d.ts +1 -1
- package/es/button/index.d.ts +1 -1
- package/es/calendar/Calendar.d.ts +1 -1
- package/es/calendar/CalendarDay.d.ts +1 -1
- package/es/calendar/CalendarHeader.d.ts +1 -1
- package/es/calendar/CalendarMonth.d.ts +1 -1
- package/es/calendar/index.d.ts +1 -1
- package/es/card/Card.d.ts +1 -1
- package/es/card/index.d.ts +1 -1
- package/es/cascader/Cascader.d.ts +1 -1
- package/es/cascader/Cascader.mjs +14 -0
- package/es/cascader/index.d.ts +1 -1
- package/es/cell/Cell.d.ts +1 -1
- package/es/cell/index.d.ts +1 -1
- package/es/cell-group/CellGroup.d.ts +1 -1
- package/es/cell-group/index.d.ts +1 -1
- package/es/checkbox/Checkbox.d.ts +1 -1
- package/es/checkbox/Checker.d.ts +1 -1
- package/es/checkbox/index.d.ts +1 -1
- package/es/checkbox-group/CheckboxGroup.d.ts +1 -1
- package/es/checkbox-group/index.d.ts +1 -1
- package/es/circle/Circle.d.ts +1 -1
- package/es/circle/index.d.ts +1 -1
- package/es/col/Col.d.ts +1 -1
- package/es/col/index.d.ts +1 -1
- package/es/collapse/Collapse.d.ts +1 -1
- package/es/collapse/index.d.ts +1 -1
- package/es/collapse-item/CollapseItem.d.ts +1 -1
- package/es/collapse-item/index.d.ts +1 -1
- package/es/config-provider/ConfigProvider.d.ts +1 -1
- package/es/config-provider/index.d.ts +1 -1
- package/es/contact-card/ContactCard.d.ts +1 -1
- package/es/contact-card/index.d.ts +1 -1
- package/es/contact-edit/ContactEdit.d.ts +1 -1
- package/es/contact-edit/index.d.ts +1 -1
- package/es/contact-list/ContactList.d.ts +1 -1
- package/es/contact-list/ContactList.mjs +1 -1
- package/es/contact-list/index.css +1 -1
- package/es/contact-list/index.d.ts +1 -1
- package/es/count-down/CountDown.d.ts +1 -1
- package/es/count-down/index.d.ts +1 -1
- package/es/coupon/Coupon.d.ts +1 -1
- package/es/coupon/index.d.ts +1 -1
- package/es/coupon-cell/CouponCell.d.ts +1 -1
- package/es/coupon-cell/index.d.ts +1 -1
- package/es/coupon-list/CouponList.d.ts +1 -1
- package/es/coupon-list/index.d.ts +1 -1
- package/es/date-picker/DatePicker.d.ts +1 -1
- package/es/date-picker/DatePicker.mjs +5 -2
- package/es/date-picker/index.d.ts +1 -1
- package/es/dialog/Dialog.d.ts +1 -1
- package/es/dialog/index.css +1 -1
- package/es/dialog/index.d.ts +1 -1
- package/es/divider/Divider.d.ts +5 -1
- package/es/divider/Divider.mjs +4 -2
- package/es/divider/index.css +1 -1
- package/es/divider/index.d.ts +4 -1
- package/es/dropdown-item/DropdownItem.d.ts +1 -1
- package/es/dropdown-item/index.d.ts +1 -1
- package/es/dropdown-menu/DropdownMenu.d.ts +1 -1
- package/es/dropdown-menu/index.d.ts +1 -1
- package/es/empty/Empty.d.ts +1 -1
- package/es/empty/index.d.ts +1 -1
- package/es/field/Field.d.ts +1 -1
- package/es/field/index.d.ts +1 -1
- package/es/form/Form.d.ts +1 -1
- package/es/form/index.d.ts +1 -1
- package/es/grid/Grid.d.ts +1 -1
- package/es/grid/index.d.ts +1 -1
- package/es/grid-item/GridItem.d.ts +1 -1
- package/es/grid-item/index.d.ts +1 -1
- package/es/icon/Icon.d.ts +1 -1
- package/es/icon/index.d.ts +1 -1
- package/es/image/Image.d.ts +1 -1
- package/es/image/index.d.ts +1 -1
- package/es/image-preview/ImagePreview.d.ts +1 -1
- package/es/image-preview/ImagePreviewItem.d.ts +1 -1
- package/es/image-preview/ImagePreviewItem.mjs +37 -18
- package/es/image-preview/index.d.ts +1 -1
- package/es/index-anchor/IndexAnchor.d.ts +1 -1
- package/es/index-anchor/index.d.ts +1 -1
- package/es/index-bar/IndexBar.d.ts +1 -1
- package/es/index-bar/index.d.ts +1 -1
- package/es/index.d.ts +2 -1
- package/es/index.mjs +4 -1
- package/es/list/List.d.ts +1 -1
- package/es/list/index.d.ts +1 -1
- package/es/loading/Loading.d.ts +1 -1
- package/es/loading/index.d.ts +1 -1
- package/es/nav-bar/NavBar.d.ts +1 -1
- package/es/nav-bar/index.d.ts +1 -1
- package/es/notice-bar/NoticeBar.d.ts +2 -2
- package/es/notice-bar/index.d.ts +2 -2
- package/es/notify/Notify.d.ts +1 -1
- package/es/notify/index.d.ts +1 -1
- package/es/number-keyboard/NumberKeyboard.d.ts +1 -1
- package/es/number-keyboard/NumberKeyboardKey.d.ts +1 -1
- package/es/number-keyboard/index.d.ts +1 -1
- package/es/overlay/Overlay.d.ts +1 -1
- package/es/overlay/index.d.ts +1 -1
- package/es/pagination/Pagination.d.ts +1 -1
- package/es/pagination/index.d.ts +1 -1
- package/es/password-input/PasswordInput.d.ts +1 -1
- package/es/password-input/index.d.ts +1 -1
- package/es/picker/Picker.d.ts +1 -1
- package/es/picker/PickerColumn.d.ts +1 -1
- package/es/picker/PickerToolbar.d.ts +1 -1
- package/es/picker/index.d.ts +1 -1
- package/es/picker-group/PickerGroup.d.ts +1 -1
- package/es/picker-group/index.d.ts +1 -1
- package/es/popover/Popover.d.ts +15 -2
- package/es/popover/Popover.mjs +9 -4
- package/es/popover/index.css +1 -1
- package/es/popover/index.d.ts +10 -1
- package/es/popover/types.d.ts +1 -0
- package/es/popup/Popup.d.ts +1 -1
- package/es/popup/Popup.mjs +8 -1
- package/es/popup/index.d.ts +1 -1
- package/es/progress/Progress.d.ts +1 -1
- package/es/progress/index.d.ts +1 -1
- package/es/pull-refresh/PullRefresh.d.ts +1 -1
- package/es/pull-refresh/index.d.ts +1 -1
- package/es/radio/Radio.d.ts +1 -1
- package/es/radio/index.d.ts +1 -1
- package/es/radio-group/RadioGroup.d.ts +1 -1
- package/es/radio-group/index.d.ts +1 -1
- package/es/rate/Rate.d.ts +1 -1
- package/es/rate/index.d.ts +1 -1
- package/es/row/Row.d.ts +1 -1
- package/es/row/index.d.ts +1 -1
- package/es/search/Search.d.ts +1 -1
- package/es/search/index.d.ts +1 -1
- package/es/share-sheet/ShareSheet.d.ts +1 -1
- package/es/share-sheet/index.d.ts +1 -1
- package/es/sidebar/Sidebar.d.ts +1 -1
- package/es/sidebar/index.d.ts +1 -1
- package/es/sidebar-item/SidebarItem.d.ts +1 -1
- package/es/sidebar-item/index.d.ts +1 -1
- package/es/signature/Signature.d.ts +14 -1
- package/es/signature/Signature.mjs +24 -8
- package/es/signature/index.css +1 -1
- package/es/signature/index.d.ts +10 -1
- package/es/skeleton/Skeleton.d.ts +1 -1
- package/es/skeleton/index.d.ts +1 -1
- package/es/skeleton-avatar/SkeletonAvatar.d.ts +1 -1
- package/es/skeleton-avatar/index.d.ts +1 -1
- package/es/skeleton-image/SkeletonImage.d.ts +1 -1
- package/es/skeleton-image/index.d.ts +1 -1
- package/es/skeleton-paragraph/SkeletonParagraph.d.ts +1 -1
- package/es/skeleton-paragraph/index.d.ts +1 -1
- package/es/skeleton-title/SkeletonTitle.d.ts +1 -1
- package/es/skeleton-title/index.d.ts +1 -1
- package/es/slider/Slider.d.ts +1 -1
- package/es/slider/Slider.mjs +10 -5
- package/es/slider/index.d.ts +1 -1
- package/es/space/Space.d.ts +1 -1
- package/es/space/index.d.ts +1 -1
- package/es/step/Step.d.ts +1 -1
- package/es/step/index.d.ts +1 -1
- package/es/stepper/Stepper.d.ts +1 -1
- package/es/stepper/index.d.ts +1 -1
- package/es/steps/Steps.d.ts +1 -1
- package/es/steps/index.d.ts +1 -1
- package/es/sticky/Sticky.d.ts +1 -1
- package/es/sticky/index.d.ts +1 -1
- package/es/submit-bar/SubmitBar.d.ts +1 -1
- package/es/submit-bar/index.d.ts +1 -1
- package/es/swipe/Swipe.d.ts +1 -1
- package/es/swipe/index.d.ts +1 -1
- package/es/swipe-cell/SwipeCell.d.ts +1 -1
- package/es/swipe-cell/index.d.ts +1 -1
- package/es/swipe-item/SwipeItem.d.ts +1 -1
- package/es/swipe-item/index.d.ts +1 -1
- package/es/switch/Switch.d.ts +1 -1
- package/es/switch/index.d.ts +1 -1
- package/es/tab/Tab.d.ts +1 -1
- package/es/tab/Tab.mjs +14 -3
- package/es/tab/TabTitle.d.ts +1 -1
- package/es/tab/index.d.ts +1 -1
- package/es/tabbar/Tabbar.d.ts +1 -1
- package/es/tabbar/index.d.ts +1 -1
- package/es/tabbar-item/TabbarItem.d.ts +1 -1
- package/es/tabbar-item/index.d.ts +1 -1
- package/es/tabs/Tabs.d.ts +1 -1
- package/es/tabs/TabsContent.d.ts +1 -1
- package/es/tabs/index.d.ts +1 -1
- package/es/tag/Tag.d.ts +1 -1
- package/es/tag/index.d.ts +1 -1
- package/es/text-ellipsis/TextEllipsis.d.ts +1 -1
- package/es/text-ellipsis/index.d.ts +1 -1
- package/es/time-picker/TimePicker.d.ts +1 -1
- package/es/time-picker/index.d.ts +1 -1
- package/es/toast/Toast.d.ts +1 -1
- package/es/toast/index.d.ts +1 -1
- package/es/tree-select/TreeSelect.d.ts +1 -1
- package/es/tree-select/index.d.ts +1 -1
- package/es/uploader/Uploader.d.ts +7 -2
- package/es/uploader/Uploader.mjs +25 -10
- package/es/uploader/UploaderPreviewItem.d.ts +6 -2
- package/es/uploader/UploaderPreviewItem.mjs +6 -3
- package/es/uploader/index.d.ts +6 -2
- package/es/uploader/types.d.ts +1 -0
- package/es/utils/constant.d.ts +1 -0
- package/es/utils/constant.mjs +2 -0
- package/es/utils/mount-component.d.ts +1 -1
- package/es/watermark/Watermark.d.ts +1 -1
- package/es/watermark/index.d.ts +1 -1
- package/lib/action-bar/ActionBar.d.ts +1 -1
- package/lib/action-bar/index.d.ts +1 -1
- package/lib/action-bar-button/ActionBarButton.d.ts +1 -1
- package/lib/action-bar-button/index.d.ts +1 -1
- package/lib/action-bar-icon/ActionBarIcon.d.ts +1 -1
- package/lib/action-bar-icon/index.d.ts +1 -1
- package/lib/action-sheet/ActionSheet.d.ts +1 -1
- package/lib/action-sheet/index.d.ts +1 -1
- package/lib/address-edit/AddressEdit.d.ts +1 -1
- package/lib/address-edit/AddressEdit.js +1 -0
- package/lib/address-edit/AddressEditDetail.d.ts +1 -1
- package/lib/address-edit/index.d.ts +1 -1
- package/lib/address-list/AddressList.d.ts +1 -1
- package/lib/address-list/AddressListItem.d.ts +1 -1
- package/lib/address-list/index.d.ts +1 -1
- package/lib/area/Area.d.ts +7 -9
- package/lib/area/Area.js +1 -1
- package/lib/area/index.d.ts +5 -7
- package/lib/back-top/BackTop.d.ts +2 -2
- package/lib/back-top/BackTop.js +6 -3
- package/lib/back-top/index.css +1 -1
- package/lib/back-top/index.d.ts +2 -2
- package/lib/badge/Badge.d.ts +1 -1
- package/lib/badge/index.d.ts +1 -1
- package/lib/barrage/Barrage.d.ts +93 -0
- package/lib/barrage/Barrage.js +153 -0
- package/lib/barrage/index.css +1 -0
- package/lib/barrage/index.d.ts +69 -0
- package/lib/barrage/index.js +39 -0
- package/lib/barrage/style/index.d.ts +1 -0
- package/lib/barrage/style/index.js +2 -0
- package/lib/barrage/types.d.ts +7 -0
- package/lib/barrage/types.js +15 -0
- package/lib/button/Button.d.ts +1 -1
- package/lib/button/index.d.ts +1 -1
- package/lib/calendar/Calendar.d.ts +1 -1
- package/lib/calendar/CalendarDay.d.ts +1 -1
- package/lib/calendar/CalendarHeader.d.ts +1 -1
- package/lib/calendar/CalendarMonth.d.ts +1 -1
- package/lib/calendar/index.d.ts +1 -1
- package/lib/card/Card.d.ts +1 -1
- package/lib/card/index.d.ts +1 -1
- package/lib/cascader/Cascader.d.ts +1 -1
- package/lib/cascader/Cascader.js +14 -0
- package/lib/cascader/index.d.ts +1 -1
- package/lib/cell/Cell.d.ts +1 -1
- package/lib/cell/index.d.ts +1 -1
- package/lib/cell-group/CellGroup.d.ts +1 -1
- package/lib/cell-group/index.d.ts +1 -1
- package/lib/checkbox/Checkbox.d.ts +1 -1
- package/lib/checkbox/Checker.d.ts +1 -1
- package/lib/checkbox/index.d.ts +1 -1
- package/lib/checkbox-group/CheckboxGroup.d.ts +1 -1
- package/lib/checkbox-group/index.d.ts +1 -1
- package/lib/circle/Circle.d.ts +1 -1
- package/lib/circle/index.d.ts +1 -1
- package/lib/col/Col.d.ts +1 -1
- package/lib/col/index.d.ts +1 -1
- package/lib/collapse/Collapse.d.ts +1 -1
- package/lib/collapse/index.d.ts +1 -1
- package/lib/collapse-item/CollapseItem.d.ts +1 -1
- package/lib/collapse-item/index.d.ts +1 -1
- package/lib/config-provider/ConfigProvider.d.ts +1 -1
- package/lib/config-provider/index.d.ts +1 -1
- package/lib/contact-card/ContactCard.d.ts +1 -1
- package/lib/contact-card/index.d.ts +1 -1
- package/lib/contact-edit/ContactEdit.d.ts +1 -1
- package/lib/contact-edit/index.d.ts +1 -1
- package/lib/contact-list/ContactList.d.ts +1 -1
- package/lib/contact-list/ContactList.js +1 -1
- package/lib/contact-list/index.css +1 -1
- package/lib/contact-list/index.d.ts +1 -1
- package/lib/count-down/CountDown.d.ts +1 -1
- package/lib/count-down/index.d.ts +1 -1
- package/lib/coupon/Coupon.d.ts +1 -1
- package/lib/coupon/index.d.ts +1 -1
- package/lib/coupon-cell/CouponCell.d.ts +1 -1
- package/lib/coupon-cell/index.d.ts +1 -1
- package/lib/coupon-list/CouponList.d.ts +1 -1
- package/lib/coupon-list/index.d.ts +1 -1
- package/lib/date-picker/DatePicker.d.ts +1 -1
- package/lib/date-picker/DatePicker.js +5 -2
- package/lib/date-picker/index.d.ts +1 -1
- package/lib/dialog/Dialog.d.ts +1 -1
- package/lib/dialog/index.css +1 -1
- package/lib/dialog/index.d.ts +1 -1
- package/lib/divider/Divider.d.ts +5 -1
- package/lib/divider/Divider.js +4 -2
- package/lib/divider/index.css +1 -1
- package/lib/divider/index.d.ts +4 -1
- package/lib/dropdown-item/DropdownItem.d.ts +1 -1
- package/lib/dropdown-item/index.d.ts +1 -1
- package/lib/dropdown-menu/DropdownMenu.d.ts +1 -1
- package/lib/dropdown-menu/index.d.ts +1 -1
- package/lib/empty/Empty.d.ts +1 -1
- package/lib/empty/index.d.ts +1 -1
- package/lib/field/Field.d.ts +1 -1
- package/lib/field/index.d.ts +1 -1
- package/lib/form/Form.d.ts +1 -1
- package/lib/form/index.d.ts +1 -1
- package/lib/grid/Grid.d.ts +1 -1
- package/lib/grid/index.d.ts +1 -1
- package/lib/grid-item/GridItem.d.ts +1 -1
- package/lib/grid-item/index.d.ts +1 -1
- package/lib/icon/Icon.d.ts +1 -1
- package/lib/icon/index.d.ts +1 -1
- package/lib/image/Image.d.ts +1 -1
- package/lib/image/index.d.ts +1 -1
- package/lib/image-preview/ImagePreview.d.ts +1 -1
- package/lib/image-preview/ImagePreviewItem.d.ts +1 -1
- package/lib/image-preview/ImagePreviewItem.js +36 -17
- package/lib/image-preview/index.d.ts +1 -1
- package/lib/index-anchor/IndexAnchor.d.ts +1 -1
- package/lib/index-anchor/index.d.ts +1 -1
- package/lib/index-bar/IndexBar.d.ts +1 -1
- package/lib/index-bar/index.d.ts +1 -1
- package/lib/index.css +1 -1
- package/lib/index.d.ts +2 -1
- package/lib/index.js +4 -1
- package/lib/list/List.d.ts +1 -1
- package/lib/list/index.d.ts +1 -1
- package/lib/loading/Loading.d.ts +1 -1
- package/lib/loading/index.d.ts +1 -1
- package/lib/nav-bar/NavBar.d.ts +1 -1
- package/lib/nav-bar/index.d.ts +1 -1
- package/lib/notice-bar/NoticeBar.d.ts +2 -2
- package/lib/notice-bar/index.d.ts +2 -2
- package/lib/notify/Notify.d.ts +1 -1
- package/lib/notify/index.d.ts +1 -1
- package/lib/number-keyboard/NumberKeyboard.d.ts +1 -1
- package/lib/number-keyboard/NumberKeyboardKey.d.ts +1 -1
- package/lib/number-keyboard/index.d.ts +1 -1
- package/lib/overlay/Overlay.d.ts +1 -1
- package/lib/overlay/index.d.ts +1 -1
- package/lib/pagination/Pagination.d.ts +1 -1
- package/lib/pagination/index.d.ts +1 -1
- package/lib/password-input/PasswordInput.d.ts +1 -1
- package/lib/password-input/index.d.ts +1 -1
- package/lib/picker/Picker.d.ts +1 -1
- package/lib/picker/PickerColumn.d.ts +1 -1
- package/lib/picker/PickerToolbar.d.ts +1 -1
- package/lib/picker/index.d.ts +1 -1
- package/lib/picker-group/PickerGroup.d.ts +1 -1
- package/lib/picker-group/index.d.ts +1 -1
- package/lib/popover/Popover.d.ts +15 -2
- package/lib/popover/Popover.js +8 -3
- package/lib/popover/index.css +1 -1
- package/lib/popover/index.d.ts +10 -1
- package/lib/popover/types.d.ts +1 -0
- package/lib/popup/Popup.d.ts +1 -1
- package/lib/popup/Popup.js +8 -1
- package/lib/popup/index.d.ts +1 -1
- package/lib/progress/Progress.d.ts +1 -1
- package/lib/progress/index.d.ts +1 -1
- package/lib/pull-refresh/PullRefresh.d.ts +1 -1
- package/lib/pull-refresh/index.d.ts +1 -1
- package/lib/radio/Radio.d.ts +1 -1
- package/lib/radio/index.d.ts +1 -1
- package/lib/radio-group/RadioGroup.d.ts +1 -1
- package/lib/radio-group/index.d.ts +1 -1
- package/lib/rate/Rate.d.ts +1 -1
- package/lib/rate/index.d.ts +1 -1
- package/lib/row/Row.d.ts +1 -1
- package/lib/row/index.d.ts +1 -1
- package/lib/search/Search.d.ts +1 -1
- package/lib/search/index.d.ts +1 -1
- package/lib/share-sheet/ShareSheet.d.ts +1 -1
- package/lib/share-sheet/index.d.ts +1 -1
- package/lib/sidebar/Sidebar.d.ts +1 -1
- package/lib/sidebar/index.d.ts +1 -1
- package/lib/sidebar-item/SidebarItem.d.ts +1 -1
- package/lib/sidebar-item/index.d.ts +1 -1
- package/lib/signature/Signature.d.ts +14 -1
- package/lib/signature/Signature.js +23 -7
- package/lib/signature/index.css +1 -1
- package/lib/signature/index.d.ts +10 -1
- package/lib/skeleton/Skeleton.d.ts +1 -1
- package/lib/skeleton/index.d.ts +1 -1
- package/lib/skeleton-avatar/SkeletonAvatar.d.ts +1 -1
- package/lib/skeleton-avatar/index.d.ts +1 -1
- package/lib/skeleton-image/SkeletonImage.d.ts +1 -1
- package/lib/skeleton-image/index.d.ts +1 -1
- package/lib/skeleton-paragraph/SkeletonParagraph.d.ts +1 -1
- package/lib/skeleton-paragraph/index.d.ts +1 -1
- package/lib/skeleton-title/SkeletonTitle.d.ts +1 -1
- package/lib/skeleton-title/index.d.ts +1 -1
- package/lib/slider/Slider.d.ts +1 -1
- package/lib/slider/Slider.js +10 -5
- package/lib/slider/index.d.ts +1 -1
- package/lib/space/Space.d.ts +1 -1
- package/lib/space/index.d.ts +1 -1
- package/lib/step/Step.d.ts +1 -1
- package/lib/step/index.d.ts +1 -1
- package/lib/stepper/Stepper.d.ts +1 -1
- package/lib/stepper/index.d.ts +1 -1
- package/lib/steps/Steps.d.ts +1 -1
- package/lib/steps/index.d.ts +1 -1
- package/lib/sticky/Sticky.d.ts +1 -1
- package/lib/sticky/index.d.ts +1 -1
- package/lib/submit-bar/SubmitBar.d.ts +1 -1
- package/lib/submit-bar/index.d.ts +1 -1
- package/lib/swipe/Swipe.d.ts +1 -1
- package/lib/swipe/index.d.ts +1 -1
- package/lib/swipe-cell/SwipeCell.d.ts +1 -1
- package/lib/swipe-cell/index.d.ts +1 -1
- package/lib/swipe-item/SwipeItem.d.ts +1 -1
- package/lib/swipe-item/index.d.ts +1 -1
- package/lib/switch/Switch.d.ts +1 -1
- package/lib/switch/index.d.ts +1 -1
- package/lib/tab/Tab.d.ts +1 -1
- package/lib/tab/Tab.js +13 -2
- package/lib/tab/TabTitle.d.ts +1 -1
- package/lib/tab/index.d.ts +1 -1
- package/lib/tabbar/Tabbar.d.ts +1 -1
- package/lib/tabbar/index.d.ts +1 -1
- package/lib/tabbar-item/TabbarItem.d.ts +1 -1
- package/lib/tabbar-item/index.d.ts +1 -1
- package/lib/tabs/Tabs.d.ts +1 -1
- package/lib/tabs/TabsContent.d.ts +1 -1
- package/lib/tabs/index.d.ts +1 -1
- package/lib/tag/Tag.d.ts +1 -1
- package/lib/tag/index.d.ts +1 -1
- package/lib/text-ellipsis/TextEllipsis.d.ts +1 -1
- package/lib/text-ellipsis/index.d.ts +1 -1
- package/lib/time-picker/TimePicker.d.ts +1 -1
- package/lib/time-picker/index.d.ts +1 -1
- package/lib/toast/Toast.d.ts +1 -1
- package/lib/toast/index.d.ts +1 -1
- package/lib/tree-select/TreeSelect.d.ts +1 -1
- package/lib/tree-select/index.d.ts +1 -1
- package/lib/uploader/Uploader.d.ts +7 -2
- package/lib/uploader/Uploader.js +25 -10
- package/lib/uploader/UploaderPreviewItem.d.ts +6 -2
- package/lib/uploader/UploaderPreviewItem.js +6 -3
- package/lib/uploader/index.d.ts +6 -2
- package/lib/uploader/types.d.ts +1 -0
- package/lib/utils/constant.d.ts +1 -0
- package/lib/utils/constant.js +2 -0
- package/lib/utils/mount-component.d.ts +1 -1
- package/lib/vant.cjs.js +571 -337
- package/lib/vant.es.js +572 -338
- package/lib/vant.js +596 -337
- package/lib/vant.min.js +1 -1
- package/lib/watermark/Watermark.d.ts +1 -1
- package/lib/watermark/index.d.ts +1 -1
- package/lib/web-types.json +1 -1
- package/package.json +5 -4
package/lib/vant.js
CHANGED
@@ -626,7 +626,7 @@
|
|
626
626
|
});
|
627
627
|
return to;
|
628
628
|
}
|
629
|
-
var stdin_default$
|
629
|
+
var stdin_default$1Q = {
|
630
630
|
name: "姓名",
|
631
631
|
tel: "电话",
|
632
632
|
save: "保存",
|
@@ -690,7 +690,7 @@
|
|
690
690
|
};
|
691
691
|
const lang = vue.ref("zh-CN");
|
692
692
|
const messages = vue.reactive({
|
693
|
-
"zh-CN": stdin_default$
|
693
|
+
"zh-CN": stdin_default$1Q
|
694
694
|
});
|
695
695
|
const Locale = {
|
696
696
|
messages() {
|
@@ -705,11 +705,11 @@
|
|
705
705
|
}
|
706
706
|
};
|
707
707
|
const useCurrentLang = () => lang;
|
708
|
-
var stdin_default$
|
708
|
+
var stdin_default$1P = Locale;
|
709
709
|
function createTranslate(name2) {
|
710
710
|
const prefix = camelize(name2) + ".";
|
711
711
|
return (path, ...args) => {
|
712
|
-
const messages2 = stdin_default$
|
712
|
+
const messages2 = stdin_default$1P.messages();
|
713
713
|
const message = get(messages2, prefix + path) || get(messages2, path);
|
714
714
|
return isFunction(message) ? message(...args) : message;
|
715
715
|
};
|
@@ -753,6 +753,7 @@
|
|
753
753
|
const BORDER = "van-hairline";
|
754
754
|
const BORDER_TOP = `${BORDER}--top`;
|
755
755
|
const BORDER_LEFT = `${BORDER}--left`;
|
756
|
+
const BORDER_RIGHT = `${BORDER}--right`;
|
756
757
|
const BORDER_BOTTOM = `${BORDER}--bottom`;
|
757
758
|
const BORDER_SURROUND = `${BORDER}--surround`;
|
758
759
|
const BORDER_TOP_BOTTOM = `${BORDER}--top-bottom`;
|
@@ -831,20 +832,20 @@
|
|
831
832
|
}
|
832
833
|
}, [renderContent()]);
|
833
834
|
}
|
834
|
-
const [name$
|
835
|
-
const ACTION_BAR_KEY = Symbol(name$
|
835
|
+
const [name$1F, bem$1A] = createNamespace("action-bar");
|
836
|
+
const ACTION_BAR_KEY = Symbol(name$1F);
|
836
837
|
const actionBarProps = {
|
837
838
|
placeholder: Boolean,
|
838
839
|
safeAreaInsetBottom: truthProp
|
839
840
|
};
|
840
|
-
var stdin_default$
|
841
|
-
name: name$
|
841
|
+
var stdin_default$1O = vue.defineComponent({
|
842
|
+
name: name$1F,
|
842
843
|
props: actionBarProps,
|
843
844
|
setup(props, {
|
844
845
|
slots
|
845
846
|
}) {
|
846
847
|
const root = vue.ref();
|
847
|
-
const renderPlaceholder = usePlaceholder(root, bem$
|
848
|
+
const renderPlaceholder = usePlaceholder(root, bem$1A);
|
848
849
|
const {
|
849
850
|
linkChildren
|
850
851
|
} = useChildren(ACTION_BAR_KEY);
|
@@ -853,7 +854,7 @@
|
|
853
854
|
var _a;
|
854
855
|
return vue.createVNode("div", {
|
855
856
|
"ref": root,
|
856
|
-
"class": [bem$
|
857
|
+
"class": [bem$1A(), {
|
857
858
|
"van-safe-area-bottom": props.safeAreaInsetBottom
|
858
859
|
}]
|
859
860
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
@@ -866,7 +867,7 @@
|
|
866
867
|
};
|
867
868
|
}
|
868
869
|
});
|
869
|
-
const ActionBar = withInstall(stdin_default$
|
870
|
+
const ActionBar = withInstall(stdin_default$1O);
|
870
871
|
function useExpose(apis) {
|
871
872
|
const instance2 = vue.getCurrentInstance();
|
872
873
|
if (instance2) {
|
@@ -894,7 +895,7 @@
|
|
894
895
|
const vm = vue.getCurrentInstance().proxy;
|
895
896
|
return () => route(vm);
|
896
897
|
}
|
897
|
-
const [name$
|
898
|
+
const [name$1E, bem$1z] = createNamespace("badge");
|
898
899
|
const badgeProps = {
|
899
900
|
dot: Boolean,
|
900
901
|
max: numericProp,
|
@@ -905,8 +906,8 @@
|
|
905
906
|
showZero: truthProp,
|
906
907
|
position: makeStringProp("top-right")
|
907
908
|
};
|
908
|
-
var stdin_default$
|
909
|
-
name: name$
|
909
|
+
var stdin_default$1N = vue.defineComponent({
|
910
|
+
name: name$1E,
|
910
911
|
props: badgeProps,
|
911
912
|
setup(props, {
|
912
913
|
slots
|
@@ -969,7 +970,7 @@
|
|
969
970
|
const renderBadge = () => {
|
970
971
|
if (hasContent() || props.dot) {
|
971
972
|
return vue.createVNode("div", {
|
972
|
-
"class": bem$
|
973
|
+
"class": bem$1z([props.position, {
|
973
974
|
dot: props.dot,
|
974
975
|
fixed: !!slots.default
|
975
976
|
}]),
|
@@ -983,7 +984,7 @@
|
|
983
984
|
tag
|
984
985
|
} = props;
|
985
986
|
return vue.createVNode(tag, {
|
986
|
-
"class": bem$
|
987
|
+
"class": bem$1z("wrapper")
|
987
988
|
}, {
|
988
989
|
default: () => [slots.default(), renderBadge()]
|
989
990
|
});
|
@@ -992,14 +993,14 @@
|
|
992
993
|
};
|
993
994
|
}
|
994
995
|
});
|
995
|
-
const Badge = withInstall(stdin_default$
|
996
|
+
const Badge = withInstall(stdin_default$1N);
|
996
997
|
let globalZIndex = 2e3;
|
997
998
|
const useGlobalZIndex = () => ++globalZIndex;
|
998
999
|
const setGlobalZIndex = (val) => {
|
999
1000
|
globalZIndex = val;
|
1000
1001
|
};
|
1001
|
-
const [name$
|
1002
|
-
const CONFIG_PROVIDER_KEY = Symbol(name$
|
1002
|
+
const [name$1D, bem$1y] = createNamespace("config-provider");
|
1003
|
+
const CONFIG_PROVIDER_KEY = Symbol(name$1D);
|
1003
1004
|
const configProviderProps = {
|
1004
1005
|
tag: makeStringProp("div"),
|
1005
1006
|
theme: makeStringProp("light"),
|
@@ -1016,8 +1017,8 @@
|
|
1016
1017
|
});
|
1017
1018
|
return cssVars;
|
1018
1019
|
}
|
1019
|
-
var stdin_default$
|
1020
|
-
name: name$
|
1020
|
+
var stdin_default$1M = vue.defineComponent({
|
1021
|
+
name: name$1D,
|
1021
1022
|
props: configProviderProps,
|
1022
1023
|
setup(props, {
|
1023
1024
|
slots
|
@@ -1049,7 +1050,7 @@
|
|
1049
1050
|
}
|
1050
1051
|
});
|
1051
1052
|
return () => vue.createVNode(props.tag, {
|
1052
|
-
"class": bem$
|
1053
|
+
"class": bem$1y(),
|
1053
1054
|
"style": style.value
|
1054
1055
|
}, {
|
1055
1056
|
default: () => {
|
@@ -1059,7 +1060,7 @@
|
|
1059
1060
|
});
|
1060
1061
|
}
|
1061
1062
|
});
|
1062
|
-
const [name$
|
1063
|
+
const [name$1C, bem$1x] = createNamespace("icon");
|
1063
1064
|
const isImage$1 = (name2) => name2 == null ? void 0 : name2.includes("/");
|
1064
1065
|
const iconProps = {
|
1065
1066
|
dot: Boolean,
|
@@ -1071,14 +1072,14 @@
|
|
1071
1072
|
badgeProps: Object,
|
1072
1073
|
classPrefix: String
|
1073
1074
|
};
|
1074
|
-
var stdin_default$
|
1075
|
-
name: name$
|
1075
|
+
var stdin_default$1L = vue.defineComponent({
|
1076
|
+
name: name$1C,
|
1076
1077
|
props: iconProps,
|
1077
1078
|
setup(props, {
|
1078
1079
|
slots
|
1079
1080
|
}) {
|
1080
1081
|
const config = vue.inject(CONFIG_PROVIDER_KEY, null);
|
1081
|
-
const classPrefix = vue.computed(() => props.classPrefix || (config == null ? void 0 : config.iconPrefix) || bem$
|
1082
|
+
const classPrefix = vue.computed(() => props.classPrefix || (config == null ? void 0 : config.iconPrefix) || bem$1x());
|
1082
1083
|
return () => {
|
1083
1084
|
const {
|
1084
1085
|
tag,
|
@@ -1102,7 +1103,7 @@
|
|
1102
1103
|
default: () => {
|
1103
1104
|
var _a;
|
1104
1105
|
return [(_a = slots.default) == null ? void 0 : _a.call(slots), isImageIcon && vue.createVNode("img", {
|
1105
|
-
"class": bem$
|
1106
|
+
"class": bem$1x("image"),
|
1106
1107
|
"src": name2
|
1107
1108
|
}, null)];
|
1108
1109
|
}
|
@@ -1110,13 +1111,13 @@
|
|
1110
1111
|
};
|
1111
1112
|
}
|
1112
1113
|
});
|
1113
|
-
const Icon = withInstall(stdin_default$
|
1114
|
-
const [name$
|
1114
|
+
const Icon = withInstall(stdin_default$1L);
|
1115
|
+
const [name$1B, bem$1w] = createNamespace("loading");
|
1115
1116
|
const SpinIcon = Array(12).fill(null).map((_, index) => vue.createVNode("i", {
|
1116
|
-
"class": bem$
|
1117
|
+
"class": bem$1w("line", String(index + 1))
|
1117
1118
|
}, null));
|
1118
1119
|
const CircularIcon = vue.createVNode("svg", {
|
1119
|
-
"class": bem$
|
1120
|
+
"class": bem$1w("circular"),
|
1120
1121
|
"viewBox": "25 25 50 50"
|
1121
1122
|
}, [vue.createVNode("circle", {
|
1122
1123
|
"cx": "50",
|
@@ -1132,8 +1133,8 @@
|
|
1132
1133
|
textSize: numericProp,
|
1133
1134
|
textColor: String
|
1134
1135
|
};
|
1135
|
-
var stdin_default$
|
1136
|
-
name: name$
|
1136
|
+
var stdin_default$1K = vue.defineComponent({
|
1137
|
+
name: name$1B,
|
1137
1138
|
props: loadingProps,
|
1138
1139
|
setup(props, {
|
1139
1140
|
slots
|
@@ -1144,7 +1145,7 @@
|
|
1144
1145
|
const renderIcon = () => {
|
1145
1146
|
const DefaultIcon = props.type === "spinner" ? SpinIcon : CircularIcon;
|
1146
1147
|
return vue.createVNode("span", {
|
1147
|
-
"class": bem$
|
1148
|
+
"class": bem$1w("spinner", props.type),
|
1148
1149
|
"style": spinnerStyle.value
|
1149
1150
|
}, [slots.icon ? slots.icon() : DefaultIcon]);
|
1150
1151
|
};
|
@@ -1152,7 +1153,7 @@
|
|
1152
1153
|
var _a;
|
1153
1154
|
if (slots.default) {
|
1154
1155
|
return vue.createVNode("span", {
|
1155
|
-
"class": bem$
|
1156
|
+
"class": bem$1w("text"),
|
1156
1157
|
"style": {
|
1157
1158
|
fontSize: addUnit(props.textSize),
|
1158
1159
|
color: (_a = props.textColor) != null ? _a : props.color
|
@@ -1166,7 +1167,7 @@
|
|
1166
1167
|
vertical
|
1167
1168
|
} = props;
|
1168
1169
|
return vue.createVNode("div", {
|
1169
|
-
"class": bem$
|
1170
|
+
"class": bem$1w([type, {
|
1170
1171
|
vertical
|
1171
1172
|
}]),
|
1172
1173
|
"aria-live": "polite",
|
@@ -1175,8 +1176,8 @@
|
|
1175
1176
|
};
|
1176
1177
|
}
|
1177
1178
|
});
|
1178
|
-
const Loading = withInstall(stdin_default$
|
1179
|
-
const [name$
|
1179
|
+
const Loading = withInstall(stdin_default$1K);
|
1180
|
+
const [name$1A, bem$1v] = createNamespace("button");
|
1180
1181
|
const buttonProps = extend({}, routeProps, {
|
1181
1182
|
tag: makeStringProp("button"),
|
1182
1183
|
text: String,
|
@@ -1198,8 +1199,8 @@
|
|
1198
1199
|
loadingType: String,
|
1199
1200
|
iconPosition: makeStringProp("left")
|
1200
1201
|
});
|
1201
|
-
var stdin_default$
|
1202
|
-
name: name$
|
1202
|
+
var stdin_default$1J = vue.defineComponent({
|
1203
|
+
name: name$1A,
|
1203
1204
|
props: buttonProps,
|
1204
1205
|
emits: ["click"],
|
1205
1206
|
setup(props, {
|
@@ -1214,7 +1215,7 @@
|
|
1214
1215
|
return vue.createVNode(Loading, {
|
1215
1216
|
"size": props.loadingSize,
|
1216
1217
|
"type": props.loadingType,
|
1217
|
-
"class": bem$
|
1218
|
+
"class": bem$1v("loading")
|
1218
1219
|
}, null);
|
1219
1220
|
};
|
1220
1221
|
const renderIcon = () => {
|
@@ -1223,13 +1224,13 @@
|
|
1223
1224
|
}
|
1224
1225
|
if (slots.icon) {
|
1225
1226
|
return vue.createVNode("div", {
|
1226
|
-
"class": bem$
|
1227
|
+
"class": bem$1v("icon")
|
1227
1228
|
}, [slots.icon()]);
|
1228
1229
|
}
|
1229
1230
|
if (props.icon) {
|
1230
1231
|
return vue.createVNode(Icon, {
|
1231
1232
|
"name": props.icon,
|
1232
|
-
"class": bem$
|
1233
|
+
"class": bem$1v("icon"),
|
1233
1234
|
"classPrefix": props.iconPrefix
|
1234
1235
|
}, null);
|
1235
1236
|
}
|
@@ -1243,7 +1244,7 @@
|
|
1243
1244
|
}
|
1244
1245
|
if (text) {
|
1245
1246
|
return vue.createVNode("span", {
|
1246
|
-
"class": bem$
|
1247
|
+
"class": bem$1v("text")
|
1247
1248
|
}, [text]);
|
1248
1249
|
}
|
1249
1250
|
};
|
@@ -1290,7 +1291,7 @@
|
|
1290
1291
|
nativeType,
|
1291
1292
|
iconPosition
|
1292
1293
|
} = props;
|
1293
|
-
const classes = [bem$
|
1294
|
+
const classes = [bem$1v([type, size, {
|
1294
1295
|
plain,
|
1295
1296
|
block,
|
1296
1297
|
round: round2,
|
@@ -1309,14 +1310,14 @@
|
|
1309
1310
|
"onClick": onClick
|
1310
1311
|
}, {
|
1311
1312
|
default: () => [vue.createVNode("div", {
|
1312
|
-
"class": bem$
|
1313
|
+
"class": bem$1v("content")
|
1313
1314
|
}, [iconPosition === "left" && renderIcon(), renderText(), iconPosition === "right" && renderIcon()])]
|
1314
1315
|
});
|
1315
1316
|
};
|
1316
1317
|
}
|
1317
1318
|
});
|
1318
|
-
const Button = withInstall(stdin_default$
|
1319
|
-
const [name$
|
1319
|
+
const Button = withInstall(stdin_default$1J);
|
1320
|
+
const [name$1z, bem$1u] = createNamespace("action-bar-button");
|
1320
1321
|
const actionBarButtonProps = extend({}, routeProps, {
|
1321
1322
|
type: String,
|
1322
1323
|
text: String,
|
@@ -1325,8 +1326,8 @@
|
|
1325
1326
|
loading: Boolean,
|
1326
1327
|
disabled: Boolean
|
1327
1328
|
});
|
1328
|
-
var stdin_default$
|
1329
|
-
name: name$
|
1329
|
+
var stdin_default$1I = vue.defineComponent({
|
1330
|
+
name: name$1z,
|
1330
1331
|
props: actionBarButtonProps,
|
1331
1332
|
setup(props, {
|
1332
1333
|
slots
|
@@ -1361,7 +1362,7 @@
|
|
1361
1362
|
disabled
|
1362
1363
|
} = props;
|
1363
1364
|
return vue.createVNode(Button, {
|
1364
|
-
"class": bem$
|
1365
|
+
"class": bem$1u([type, {
|
1365
1366
|
last: isLast.value,
|
1366
1367
|
first: isFirst.value
|
1367
1368
|
}]),
|
@@ -1378,8 +1379,8 @@
|
|
1378
1379
|
};
|
1379
1380
|
}
|
1380
1381
|
});
|
1381
|
-
const ActionBarButton = withInstall(stdin_default$
|
1382
|
-
const [name$
|
1382
|
+
const ActionBarButton = withInstall(stdin_default$1I);
|
1383
|
+
const [name$1y, bem$1t] = createNamespace("action-bar-icon");
|
1383
1384
|
const actionBarIconProps = extend({}, routeProps, {
|
1384
1385
|
dot: Boolean,
|
1385
1386
|
text: String,
|
@@ -1390,8 +1391,8 @@
|
|
1390
1391
|
badgeProps: Object,
|
1391
1392
|
iconPrefix: String
|
1392
1393
|
});
|
1393
|
-
var stdin_default$
|
1394
|
-
name: name$
|
1394
|
+
var stdin_default$1H = vue.defineComponent({
|
1395
|
+
name: name$1y,
|
1395
1396
|
props: actionBarIconProps,
|
1396
1397
|
setup(props, {
|
1397
1398
|
slots
|
@@ -1411,7 +1412,7 @@
|
|
1411
1412
|
if (slots.icon) {
|
1412
1413
|
return vue.createVNode(Badge, vue.mergeProps({
|
1413
1414
|
"dot": dot,
|
1414
|
-
"class": bem$
|
1415
|
+
"class": bem$1t("icon"),
|
1415
1416
|
"content": badge
|
1416
1417
|
}, badgeProps2), {
|
1417
1418
|
default: slots.icon
|
@@ -1423,20 +1424,20 @@
|
|
1423
1424
|
"name": icon,
|
1424
1425
|
"badge": badge,
|
1425
1426
|
"color": color,
|
1426
|
-
"class": [bem$
|
1427
|
+
"class": [bem$1t("icon"), iconClass],
|
1427
1428
|
"badgeProps": badgeProps2,
|
1428
1429
|
"classPrefix": iconPrefix
|
1429
1430
|
}, null);
|
1430
1431
|
};
|
1431
1432
|
return () => vue.createVNode("div", {
|
1432
1433
|
"role": "button",
|
1433
|
-
"class": bem$
|
1434
|
+
"class": bem$1t(),
|
1434
1435
|
"tabindex": 0,
|
1435
1436
|
"onClick": route2
|
1436
1437
|
}, [renderIcon(), slots.default ? slots.default() : props.text]);
|
1437
1438
|
}
|
1438
1439
|
});
|
1439
|
-
const ActionBarIcon = withInstall(stdin_default$
|
1440
|
+
const ActionBarIcon = withInstall(stdin_default$1H);
|
1440
1441
|
const popupSharedProps = {
|
1441
1442
|
// whether to show popup
|
1442
1443
|
show: Boolean,
|
@@ -1587,7 +1588,7 @@
|
|
1587
1588
|
);
|
1588
1589
|
return (render) => () => inited.value ? render() : null;
|
1589
1590
|
}
|
1590
|
-
const [name$
|
1591
|
+
const [name$1x, bem$1s] = createNamespace("overlay");
|
1591
1592
|
const overlayProps = {
|
1592
1593
|
show: Boolean,
|
1593
1594
|
zIndex: numericProp,
|
@@ -1597,8 +1598,8 @@
|
|
1597
1598
|
lazyRender: truthProp,
|
1598
1599
|
customStyle: Object
|
1599
1600
|
};
|
1600
|
-
var stdin_default$
|
1601
|
-
name: name$
|
1601
|
+
var stdin_default$1G = vue.defineComponent({
|
1602
|
+
name: name$1x,
|
1602
1603
|
props: overlayProps,
|
1603
1604
|
setup(props, {
|
1604
1605
|
slots
|
@@ -1619,7 +1620,7 @@
|
|
1619
1620
|
return vue.withDirectives(vue.createVNode("div", {
|
1620
1621
|
"ref": root,
|
1621
1622
|
"style": style,
|
1622
|
-
"class": [bem$
|
1623
|
+
"class": [bem$1s(), props.className]
|
1623
1624
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]), [[vue.vShow, props.show]]);
|
1624
1625
|
});
|
1625
1626
|
useEventListener("touchmove", onTouchMove, {
|
@@ -1633,7 +1634,7 @@
|
|
1633
1634
|
});
|
1634
1635
|
}
|
1635
1636
|
});
|
1636
|
-
const Overlay = withInstall(stdin_default$
|
1637
|
+
const Overlay = withInstall(stdin_default$1G);
|
1637
1638
|
const popupProps$2 = extend({}, popupSharedProps, {
|
1638
1639
|
round: Boolean,
|
1639
1640
|
position: makeStringProp("center"),
|
@@ -1646,9 +1647,9 @@
|
|
1646
1647
|
safeAreaInsetTop: Boolean,
|
1647
1648
|
safeAreaInsetBottom: Boolean
|
1648
1649
|
});
|
1649
|
-
const [name$
|
1650
|
-
var stdin_default$
|
1651
|
-
name: name$
|
1650
|
+
const [name$1w, bem$1r] = createNamespace("popup");
|
1651
|
+
var stdin_default$1F = vue.defineComponent({
|
1652
|
+
name: name$1w,
|
1652
1653
|
inheritAttrs: false,
|
1653
1654
|
props: popupProps$2,
|
1654
1655
|
emits: ["open", "close", "opened", "closed", "keydown", "update:show", "clickOverlay", "clickCloseIcon"],
|
@@ -1722,13 +1723,20 @@
|
|
1722
1723
|
"role": "button",
|
1723
1724
|
"tabindex": 0,
|
1724
1725
|
"name": props.closeIcon,
|
1725
|
-
"class": [bem$
|
1726
|
+
"class": [bem$1r("close-icon", props.closeIconPosition), HAPTICS_FEEDBACK],
|
1726
1727
|
"classPrefix": props.iconPrefix,
|
1727
1728
|
"onClick": onClickCloseIcon
|
1728
1729
|
}, null);
|
1729
1730
|
}
|
1730
1731
|
};
|
1731
|
-
|
1732
|
+
let timer2;
|
1733
|
+
const onOpened = () => {
|
1734
|
+
if (timer2)
|
1735
|
+
clearTimeout(timer2);
|
1736
|
+
timer2 = setTimeout(() => {
|
1737
|
+
emit("opened");
|
1738
|
+
});
|
1739
|
+
};
|
1732
1740
|
const onClosed = () => emit("closed");
|
1733
1741
|
const onKeydown = (event) => emit("keydown", event);
|
1734
1742
|
const renderPopup = lazyRender(() => {
|
@@ -1744,7 +1752,7 @@
|
|
1744
1752
|
"style": style.value,
|
1745
1753
|
"role": "dialog",
|
1746
1754
|
"tabindex": 0,
|
1747
|
-
"class": [bem$
|
1755
|
+
"class": [bem$1r({
|
1748
1756
|
round: round2,
|
1749
1757
|
[position]: position
|
1750
1758
|
}), {
|
@@ -1825,8 +1833,8 @@
|
|
1825
1833
|
};
|
1826
1834
|
}
|
1827
1835
|
});
|
1828
|
-
const Popup = withInstall(stdin_default$
|
1829
|
-
const [name$
|
1836
|
+
const Popup = withInstall(stdin_default$1F);
|
1837
|
+
const [name$1v, bem$1q] = createNamespace("action-sheet");
|
1830
1838
|
const actionSheetProps = extend({}, popupSharedProps, {
|
1831
1839
|
title: String,
|
1832
1840
|
round: truthProp,
|
@@ -1840,8 +1848,8 @@
|
|
1840
1848
|
safeAreaInsetBottom: truthProp
|
1841
1849
|
});
|
1842
1850
|
const popupInheritKeys$2 = [...popupSharedPropKeys, "round", "closeOnPopstate", "safeAreaInsetBottom"];
|
1843
|
-
var stdin_default$
|
1844
|
-
name: name$
|
1851
|
+
var stdin_default$1E = vue.defineComponent({
|
1852
|
+
name: name$1v,
|
1845
1853
|
props: actionSheetProps,
|
1846
1854
|
emits: ["select", "cancel", "update:show"],
|
1847
1855
|
setup(props, {
|
@@ -1856,10 +1864,10 @@
|
|
1856
1864
|
const renderHeader = () => {
|
1857
1865
|
if (props.title) {
|
1858
1866
|
return vue.createVNode("div", {
|
1859
|
-
"class": bem$
|
1867
|
+
"class": bem$1q("header")
|
1860
1868
|
}, [props.title, props.closeable && vue.createVNode(Icon, {
|
1861
1869
|
"name": props.closeIcon,
|
1862
|
-
"class": [bem$
|
1870
|
+
"class": [bem$1q("close"), HAPTICS_FEEDBACK],
|
1863
1871
|
"onClick": onCancel
|
1864
1872
|
}, null)]);
|
1865
1873
|
}
|
@@ -1867,10 +1875,10 @@
|
|
1867
1875
|
const renderCancel = () => {
|
1868
1876
|
if (slots.cancel || props.cancelText) {
|
1869
1877
|
return [vue.createVNode("div", {
|
1870
|
-
"class": bem$
|
1878
|
+
"class": bem$1q("gap")
|
1871
1879
|
}, null), vue.createVNode("button", {
|
1872
1880
|
"type": "button",
|
1873
|
-
"class": bem$
|
1881
|
+
"class": bem$1q("cancel"),
|
1874
1882
|
"onClick": onCancel
|
1875
1883
|
}, [slots.cancel ? slots.cancel() : props.cancelText])];
|
1876
1884
|
}
|
@@ -1878,7 +1886,7 @@
|
|
1878
1886
|
const renderActionContent = (action, index) => {
|
1879
1887
|
if (action.loading) {
|
1880
1888
|
return vue.createVNode(Loading, {
|
1881
|
-
"class": bem$
|
1889
|
+
"class": bem$1q("loading-icon")
|
1882
1890
|
}, null);
|
1883
1891
|
}
|
1884
1892
|
if (slots.action) {
|
@@ -1888,9 +1896,9 @@
|
|
1888
1896
|
});
|
1889
1897
|
}
|
1890
1898
|
return [vue.createVNode("span", {
|
1891
|
-
"class": bem$
|
1899
|
+
"class": bem$1q("name")
|
1892
1900
|
}, [action.name]), action.subname && vue.createVNode("div", {
|
1893
|
-
"class": bem$
|
1901
|
+
"class": bem$1q("subname")
|
1894
1902
|
}, [action.subname])];
|
1895
1903
|
};
|
1896
1904
|
const renderAction = (action, index) => {
|
@@ -1918,7 +1926,7 @@
|
|
1918
1926
|
"style": {
|
1919
1927
|
color
|
1920
1928
|
},
|
1921
|
-
"class": [bem$
|
1929
|
+
"class": [bem$1q("item", {
|
1922
1930
|
loading,
|
1923
1931
|
disabled
|
1924
1932
|
}), className],
|
@@ -1929,26 +1937,26 @@
|
|
1929
1937
|
if (props.description || slots.description) {
|
1930
1938
|
const content = slots.description ? slots.description() : props.description;
|
1931
1939
|
return vue.createVNode("div", {
|
1932
|
-
"class": bem$
|
1940
|
+
"class": bem$1q("description")
|
1933
1941
|
}, [content]);
|
1934
1942
|
}
|
1935
1943
|
};
|
1936
1944
|
return () => vue.createVNode(Popup, vue.mergeProps({
|
1937
|
-
"class": bem$
|
1945
|
+
"class": bem$1q(),
|
1938
1946
|
"position": "bottom",
|
1939
1947
|
"onUpdate:show": updateShow
|
1940
1948
|
}, pick(props, popupInheritKeys$2)), {
|
1941
1949
|
default: () => {
|
1942
1950
|
var _a;
|
1943
1951
|
return [renderHeader(), renderDescription(), vue.createVNode("div", {
|
1944
|
-
"class": bem$
|
1952
|
+
"class": bem$1q("content")
|
1945
1953
|
}, [props.actions.map(renderAction), (_a = slots.default) == null ? void 0 : _a.call(slots)]), renderCancel()];
|
1946
1954
|
}
|
1947
1955
|
});
|
1948
1956
|
}
|
1949
1957
|
});
|
1950
|
-
const ActionSheet = withInstall(stdin_default$
|
1951
|
-
const [name$
|
1958
|
+
const ActionSheet = withInstall(stdin_default$1E);
|
1959
|
+
const [name$1u, bem$1p, t$k] = createNamespace("picker");
|
1952
1960
|
const getFirstEnabledOption = (options) => options.find((option) => !option.disabled) || options[0];
|
1953
1961
|
function getColumnsType(columns, fields) {
|
1954
1962
|
const firstColumn = columns[0];
|
@@ -2017,10 +2025,10 @@
|
|
2017
2025
|
const DEFAULT_DURATION = 200;
|
2018
2026
|
const MOMENTUM_TIME = 300;
|
2019
2027
|
const MOMENTUM_DISTANCE = 15;
|
2020
|
-
const [name$
|
2021
|
-
const PICKER_KEY = Symbol(name$
|
2022
|
-
var stdin_default$
|
2023
|
-
name: name$
|
2028
|
+
const [name$1t, bem$1o] = createNamespace("picker-column");
|
2029
|
+
const PICKER_KEY = Symbol(name$1t);
|
2030
|
+
var stdin_default$1D = vue.defineComponent({
|
2031
|
+
name: name$1t,
|
2024
2032
|
props: {
|
2025
2033
|
value: numericProp,
|
2026
2034
|
fields: makeRequiredProp(Object),
|
@@ -2159,7 +2167,7 @@
|
|
2159
2167
|
role: "button",
|
2160
2168
|
style: optionStyle,
|
2161
2169
|
tabindex: disabled ? -1 : 0,
|
2162
|
-
class: [bem$
|
2170
|
+
class: [bem$1o("item", {
|
2163
2171
|
disabled,
|
2164
2172
|
selected: value === props.value
|
2165
2173
|
}), option.className],
|
@@ -2187,7 +2195,7 @@
|
|
2187
2195
|
});
|
2188
2196
|
return () => vue.createVNode("div", {
|
2189
2197
|
"ref": root,
|
2190
|
-
"class": bem$
|
2198
|
+
"class": bem$1o(),
|
2191
2199
|
"onTouchstartPassive": onTouchStart,
|
2192
2200
|
"onTouchend": onTouchEnd,
|
2193
2201
|
"onTouchcancel": onTouchEnd
|
@@ -2198,12 +2206,12 @@
|
|
2198
2206
|
transitionDuration: `${currentDuration.value}ms`,
|
2199
2207
|
transitionProperty: currentDuration.value ? "all" : "none"
|
2200
2208
|
},
|
2201
|
-
"class": bem$
|
2209
|
+
"class": bem$1o("wrapper"),
|
2202
2210
|
"onTransitionend": stopMomentum
|
2203
2211
|
}, [renderOptions()])]);
|
2204
2212
|
}
|
2205
2213
|
});
|
2206
|
-
const [name$
|
2214
|
+
const [name$1s] = createNamespace("picker-toolbar");
|
2207
2215
|
const pickerToolbarProps = {
|
2208
2216
|
title: String,
|
2209
2217
|
cancelButtonText: String,
|
@@ -2211,8 +2219,8 @@
|
|
2211
2219
|
};
|
2212
2220
|
const pickerToolbarSlots = ["cancel", "confirm", "title", "toolbar"];
|
2213
2221
|
const pickerToolbarPropKeys = Object.keys(pickerToolbarProps);
|
2214
|
-
var stdin_default$
|
2215
|
-
name: name$
|
2222
|
+
var stdin_default$1C = vue.defineComponent({
|
2223
|
+
name: name$1s,
|
2216
2224
|
props: pickerToolbarProps,
|
2217
2225
|
emits: ["confirm", "cancel"],
|
2218
2226
|
setup(props, {
|
@@ -2225,7 +2233,7 @@
|
|
2225
2233
|
}
|
2226
2234
|
if (props.title) {
|
2227
2235
|
return vue.createVNode("div", {
|
2228
|
-
"class": [bem$
|
2236
|
+
"class": [bem$1p("title"), "van-ellipsis"]
|
2229
2237
|
}, [props.title]);
|
2230
2238
|
}
|
2231
2239
|
};
|
@@ -2235,7 +2243,7 @@
|
|
2235
2243
|
const text = props.cancelButtonText || t$k("cancel");
|
2236
2244
|
return vue.createVNode("button", {
|
2237
2245
|
"type": "button",
|
2238
|
-
"class": [bem$
|
2246
|
+
"class": [bem$1p("cancel"), HAPTICS_FEEDBACK],
|
2239
2247
|
"onClick": onCancel
|
2240
2248
|
}, [slots.cancel ? slots.cancel() : text]);
|
2241
2249
|
};
|
@@ -2243,12 +2251,12 @@
|
|
2243
2251
|
const text = props.confirmButtonText || t$k("confirm");
|
2244
2252
|
return vue.createVNode("button", {
|
2245
2253
|
"type": "button",
|
2246
|
-
"class": [bem$
|
2254
|
+
"class": [bem$1p("confirm"), HAPTICS_FEEDBACK],
|
2247
2255
|
"onClick": onConfirm
|
2248
2256
|
}, [slots.confirm ? slots.confirm() : text]);
|
2249
2257
|
};
|
2250
2258
|
return () => vue.createVNode("div", {
|
2251
|
-
"class": bem$
|
2259
|
+
"class": bem$1p("toolbar")
|
2252
2260
|
}, [slots.toolbar ? slots.toolbar() : [renderCancel(), renderTitle(), renderConfirm()]]);
|
2253
2261
|
}
|
2254
2262
|
});
|
@@ -2266,6 +2274,32 @@
|
|
2266
2274
|
});
|
2267
2275
|
return propRef;
|
2268
2276
|
};
|
2277
|
+
const isString = (val) => typeof val === "string";
|
2278
|
+
const cacheStringFunction = (fn) => {
|
2279
|
+
const cache = /* @__PURE__ */ Object.create(null);
|
2280
|
+
return (str) => {
|
2281
|
+
const hit = cache[str];
|
2282
|
+
return hit || (cache[str] = fn(str));
|
2283
|
+
};
|
2284
|
+
};
|
2285
|
+
const hyphenateRE = /\B([A-Z])/g;
|
2286
|
+
const hyphenate = cacheStringFunction(
|
2287
|
+
(str) => str.replace(hyphenateRE, "-$1").toLowerCase()
|
2288
|
+
);
|
2289
|
+
function stringifyStyle(styles) {
|
2290
|
+
let ret = "";
|
2291
|
+
if (!styles || isString(styles)) {
|
2292
|
+
return ret;
|
2293
|
+
}
|
2294
|
+
for (const key in styles) {
|
2295
|
+
const value = styles[key];
|
2296
|
+
const normalizedKey = key.startsWith(`--`) ? key : hyphenate(key);
|
2297
|
+
if (isString(value) || typeof value === "number") {
|
2298
|
+
ret += `${normalizedKey}:${value};`;
|
2299
|
+
}
|
2300
|
+
}
|
2301
|
+
return ret;
|
2302
|
+
}
|
2269
2303
|
function scrollLeftTo(scroller, to, duration) {
|
2270
2304
|
let rafId;
|
2271
2305
|
let count = 0;
|
@@ -2353,7 +2387,7 @@
|
|
2353
2387
|
vue.onBeforeUnmount(unobserve);
|
2354
2388
|
onMountedOrActivated(observe);
|
2355
2389
|
}
|
2356
|
-
const [name$
|
2390
|
+
const [name$1r, bem$1n] = createNamespace("sticky");
|
2357
2391
|
const stickyProps = {
|
2358
2392
|
zIndex: numericProp,
|
2359
2393
|
position: makeStringProp("top"),
|
@@ -2361,8 +2395,8 @@
|
|
2361
2395
|
offsetTop: makeNumericProp(0),
|
2362
2396
|
offsetBottom: makeNumericProp(0)
|
2363
2397
|
};
|
2364
|
-
var stdin_default$
|
2365
|
-
name: name$
|
2398
|
+
var stdin_default$1B = vue.defineComponent({
|
2399
|
+
name: name$1r,
|
2366
2400
|
props: stickyProps,
|
2367
2401
|
emits: ["scroll", "change"],
|
2368
2402
|
setup(props, {
|
@@ -2475,7 +2509,7 @@
|
|
2475
2509
|
"ref": root,
|
2476
2510
|
"style": rootStyle.value
|
2477
2511
|
}, [vue.createVNode("div", {
|
2478
|
-
"class": bem$
|
2512
|
+
"class": bem$1n({
|
2479
2513
|
fixed: state.fixed && !isReset.value
|
2480
2514
|
}),
|
2481
2515
|
"style": stickyStyle.value
|
@@ -2483,8 +2517,8 @@
|
|
2483
2517
|
};
|
2484
2518
|
}
|
2485
2519
|
});
|
2486
|
-
const Sticky = withInstall(stdin_default$
|
2487
|
-
const [name$
|
2520
|
+
const Sticky = withInstall(stdin_default$1B);
|
2521
|
+
const [name$1q, bem$1m] = createNamespace("swipe");
|
2488
2522
|
const swipeProps = {
|
2489
2523
|
loop: truthProp,
|
2490
2524
|
width: numericProp,
|
@@ -2499,9 +2533,9 @@
|
|
2499
2533
|
showIndicators: truthProp,
|
2500
2534
|
stopPropagation: truthProp
|
2501
2535
|
};
|
2502
|
-
const SWIPE_KEY = Symbol(name$
|
2503
|
-
var stdin_default$
|
2504
|
-
name: name$
|
2536
|
+
const SWIPE_KEY = Symbol(name$1q);
|
2537
|
+
var stdin_default$1A = vue.defineComponent({
|
2538
|
+
name: name$1q,
|
2505
2539
|
props: swipeProps,
|
2506
2540
|
emits: ["change", "dragStart", "dragEnd"],
|
2507
2541
|
setup(props, {
|
@@ -2779,7 +2813,7 @@
|
|
2779
2813
|
} : void 0;
|
2780
2814
|
return vue.createVNode("i", {
|
2781
2815
|
"style": style,
|
2782
|
-
"class": bem$
|
2816
|
+
"class": bem$1m("indicator", {
|
2783
2817
|
active
|
2784
2818
|
})
|
2785
2819
|
}, null);
|
@@ -2793,7 +2827,7 @@
|
|
2793
2827
|
}
|
2794
2828
|
if (props.showIndicators && count.value > 1) {
|
2795
2829
|
return vue.createVNode("div", {
|
2796
|
-
"class": bem$
|
2830
|
+
"class": bem$1m("indicators", {
|
2797
2831
|
vertical: props.vertical
|
2798
2832
|
})
|
2799
2833
|
}, [Array(count.value).fill("").map(renderDot)]);
|
@@ -2835,11 +2869,11 @@
|
|
2835
2869
|
var _a;
|
2836
2870
|
return vue.createVNode("div", {
|
2837
2871
|
"ref": root,
|
2838
|
-
"class": bem$
|
2872
|
+
"class": bem$1m()
|
2839
2873
|
}, [vue.createVNode("div", {
|
2840
2874
|
"ref": track,
|
2841
2875
|
"style": trackStyle.value,
|
2842
|
-
"class": bem$
|
2876
|
+
"class": bem$1m("track", {
|
2843
2877
|
vertical: props.vertical
|
2844
2878
|
}),
|
2845
2879
|
"onTouchstartPassive": onTouchStart,
|
@@ -2849,10 +2883,10 @@
|
|
2849
2883
|
};
|
2850
2884
|
}
|
2851
2885
|
});
|
2852
|
-
const Swipe = withInstall(stdin_default$
|
2853
|
-
const [name$
|
2854
|
-
var stdin_default$
|
2855
|
-
name: name$
|
2886
|
+
const Swipe = withInstall(stdin_default$1A);
|
2887
|
+
const [name$1p, bem$1l] = createNamespace("tabs");
|
2888
|
+
var stdin_default$1z = vue.defineComponent({
|
2889
|
+
name: name$1p,
|
2856
2890
|
props: {
|
2857
2891
|
count: makeRequiredProp(Number),
|
2858
2892
|
inited: Boolean,
|
@@ -2876,7 +2910,7 @@
|
|
2876
2910
|
return vue.createVNode(Swipe, {
|
2877
2911
|
"ref": swipeRef,
|
2878
2912
|
"loop": false,
|
2879
|
-
"class": bem$
|
2913
|
+
"class": bem$1l("track"),
|
2880
2914
|
"duration": +props.duration * 1e3,
|
2881
2915
|
"touchable": props.swipeable,
|
2882
2916
|
"lazyRender": props.lazyRender,
|
@@ -2904,13 +2938,13 @@
|
|
2904
2938
|
swipeRef
|
2905
2939
|
});
|
2906
2940
|
return () => vue.createVNode("div", {
|
2907
|
-
"class": bem$
|
2941
|
+
"class": bem$1l("content", {
|
2908
2942
|
animated: props.animated || props.swipeable
|
2909
2943
|
})
|
2910
2944
|
}, [renderChildren()]);
|
2911
2945
|
}
|
2912
2946
|
});
|
2913
|
-
const [name$
|
2947
|
+
const [name$1o, bem$1k] = createNamespace("tabs");
|
2914
2948
|
const tabsProps = {
|
2915
2949
|
type: makeStringProp("line"),
|
2916
2950
|
color: String,
|
@@ -2933,9 +2967,9 @@
|
|
2933
2967
|
titleActiveColor: String,
|
2934
2968
|
titleInactiveColor: String
|
2935
2969
|
};
|
2936
|
-
const TABS_KEY = Symbol(name$
|
2937
|
-
var stdin_default$
|
2938
|
-
name: name$
|
2970
|
+
const TABS_KEY = Symbol(name$1o);
|
2971
|
+
var stdin_default$1y = vue.defineComponent({
|
2972
|
+
name: name$1o,
|
2939
2973
|
props: tabsProps,
|
2940
2974
|
emits: ["change", "scroll", "rendered", "clickTab", "update:active"],
|
2941
2975
|
setup(props, {
|
@@ -3133,7 +3167,7 @@
|
|
3133
3167
|
const renderLine = () => {
|
3134
3168
|
if (props.type === "line" && children.length) {
|
3135
3169
|
return vue.createVNode("div", {
|
3136
|
-
"class": bem$
|
3170
|
+
"class": bem$1k("line"),
|
3137
3171
|
"style": state.lineStyle
|
3138
3172
|
}, null);
|
3139
3173
|
}
|
@@ -3147,13 +3181,13 @@
|
|
3147
3181
|
} = props;
|
3148
3182
|
const Header = [vue.createVNode("div", {
|
3149
3183
|
"ref": sticky ? void 0 : wrapRef,
|
3150
|
-
"class": [bem$
|
3184
|
+
"class": [bem$1k("wrap"), {
|
3151
3185
|
[BORDER_TOP_BOTTOM]: type === "line" && border
|
3152
3186
|
}]
|
3153
3187
|
}, [vue.createVNode("div", {
|
3154
3188
|
"ref": navRef,
|
3155
3189
|
"role": "tablist",
|
3156
|
-
"class": bem$
|
3190
|
+
"class": bem$1k("nav", [type, {
|
3157
3191
|
shrink: props.shrink,
|
3158
3192
|
complete: scrollable.value
|
3159
3193
|
}]),
|
@@ -3226,14 +3260,14 @@
|
|
3226
3260
|
});
|
3227
3261
|
return () => vue.createVNode("div", {
|
3228
3262
|
"ref": root,
|
3229
|
-
"class": bem$
|
3263
|
+
"class": bem$1k([props.type])
|
3230
3264
|
}, [props.sticky ? vue.createVNode(Sticky, {
|
3231
3265
|
"container": root.value,
|
3232
3266
|
"offsetTop": offsetTopPx.value,
|
3233
3267
|
"onScroll": onStickyScroll
|
3234
3268
|
}, {
|
3235
3269
|
default: () => [renderHeader()]
|
3236
|
-
}) : renderHeader(), vue.createVNode(stdin_default$
|
3270
|
+
}) : renderHeader(), vue.createVNode(stdin_default$1z, {
|
3237
3271
|
"ref": contentRef,
|
3238
3272
|
"count": children.length,
|
3239
3273
|
"inited": state.inited,
|
@@ -3253,9 +3287,9 @@
|
|
3253
3287
|
});
|
3254
3288
|
const TAB_STATUS_KEY = Symbol();
|
3255
3289
|
const useTabStatus = () => vue.inject(TAB_STATUS_KEY, null);
|
3256
|
-
const [name$
|
3290
|
+
const [name$1n, bem$1j] = createNamespace("tab");
|
3257
3291
|
const TabTitle = vue.defineComponent({
|
3258
|
-
name: name$
|
3292
|
+
name: name$1n,
|
3259
3293
|
props: {
|
3260
3294
|
id: String,
|
3261
3295
|
dot: Boolean,
|
@@ -3304,7 +3338,7 @@
|
|
3304
3338
|
});
|
3305
3339
|
const renderText = () => {
|
3306
3340
|
const Text = vue.createVNode("span", {
|
3307
|
-
"class": bem$
|
3341
|
+
"class": bem$1j("text", {
|
3308
3342
|
ellipsis: !props.scrollable
|
3309
3343
|
})
|
3310
3344
|
}, [slots.title ? slots.title() : props.title]);
|
@@ -3322,7 +3356,7 @@
|
|
3322
3356
|
return () => vue.createVNode("div", {
|
3323
3357
|
"id": props.id,
|
3324
3358
|
"role": "tab",
|
3325
|
-
"class": [bem$
|
3359
|
+
"class": [bem$1j([props.type, {
|
3326
3360
|
grow: props.scrollable && !props.shrink,
|
3327
3361
|
shrink: props.shrink,
|
3328
3362
|
active: props.isActive,
|
@@ -3336,9 +3370,9 @@
|
|
3336
3370
|
}, [renderText()]);
|
3337
3371
|
}
|
3338
3372
|
});
|
3339
|
-
const [name$
|
3340
|
-
var stdin_default$
|
3341
|
-
name: name$
|
3373
|
+
const [name$1m, bem$1i] = createNamespace("swipe-item");
|
3374
|
+
var stdin_default$1x = vue.defineComponent({
|
3375
|
+
name: name$1m,
|
3342
3376
|
setup(props, {
|
3343
3377
|
slots
|
3344
3378
|
}) {
|
@@ -3400,14 +3434,14 @@
|
|
3400
3434
|
return () => {
|
3401
3435
|
var _a;
|
3402
3436
|
return vue.createVNode("div", {
|
3403
|
-
"class": bem$
|
3437
|
+
"class": bem$1i(),
|
3404
3438
|
"style": style.value
|
3405
3439
|
}, [shouldRender.value ? (_a = slots.default) == null ? void 0 : _a.call(slots) : null]);
|
3406
3440
|
};
|
3407
3441
|
}
|
3408
3442
|
});
|
3409
|
-
const SwipeItem = withInstall(stdin_default$
|
3410
|
-
const [name$
|
3443
|
+
const SwipeItem = withInstall(stdin_default$1x);
|
3444
|
+
const [name$1l, bem$1h] = createNamespace("tab");
|
3411
3445
|
const tabProps = extend({}, routeProps, {
|
3412
3446
|
dot: Boolean,
|
3413
3447
|
name: numericProp,
|
@@ -3418,8 +3452,8 @@
|
|
3418
3452
|
titleStyle: [String, Object],
|
3419
3453
|
showZeroBadge: truthProp
|
3420
3454
|
});
|
3421
|
-
var stdin_default$
|
3422
|
-
name: name$
|
3455
|
+
var stdin_default$1w = vue.defineComponent({
|
3456
|
+
name: name$1l,
|
3423
3457
|
props: tabProps,
|
3424
3458
|
setup(props, {
|
3425
3459
|
slots
|
@@ -3453,12 +3487,22 @@
|
|
3453
3487
|
}
|
3454
3488
|
return isActive;
|
3455
3489
|
});
|
3490
|
+
const parsedClass = vue.ref("");
|
3491
|
+
const parsedStyle = vue.ref("");
|
3492
|
+
vue.watchEffect(() => {
|
3493
|
+
const {
|
3494
|
+
titleClass,
|
3495
|
+
titleStyle
|
3496
|
+
} = props;
|
3497
|
+
parsedClass.value = titleClass ? vue.normalizeClass(titleClass) : "";
|
3498
|
+
parsedStyle.value = titleStyle && typeof titleStyle !== "string" ? stringifyStyle(vue.normalizeStyle(titleStyle)) : titleStyle;
|
3499
|
+
});
|
3456
3500
|
const renderTitle = (onClickTab) => vue.createVNode(TabTitle, vue.mergeProps({
|
3457
3501
|
"key": id,
|
3458
3502
|
"id": `${parent.id}-${index.value}`,
|
3459
3503
|
"ref": parent.setTitleRefs(index.value),
|
3460
|
-
"style":
|
3461
|
-
"class":
|
3504
|
+
"style": parsedStyle.value,
|
3505
|
+
"class": parsedClass.value,
|
3462
3506
|
"isActive": active.value,
|
3463
3507
|
"controls": id,
|
3464
3508
|
"scrollable": parent.scrollable.value,
|
@@ -3504,7 +3548,7 @@
|
|
3504
3548
|
return vue.createVNode(SwipeItem, {
|
3505
3549
|
"id": id,
|
3506
3550
|
"role": "tabpanel",
|
3507
|
-
"class": bem$
|
3551
|
+
"class": bem$1h("panel-wrapper", {
|
3508
3552
|
inactive: hasInactiveClass.value
|
3509
3553
|
}),
|
3510
3554
|
"tabindex": active.value ? 0 : -1,
|
@@ -3514,7 +3558,7 @@
|
|
3514
3558
|
default: () => {
|
3515
3559
|
var _a2;
|
3516
3560
|
return [vue.createVNode("div", {
|
3517
|
-
"class": bem$
|
3561
|
+
"class": bem$1h("panel")
|
3518
3562
|
}, [(_a2 = slots.default) == null ? void 0 : _a2.call(slots)])];
|
3519
3563
|
}
|
3520
3564
|
});
|
@@ -3524,24 +3568,24 @@
|
|
3524
3568
|
return vue.withDirectives(vue.createVNode("div", {
|
3525
3569
|
"id": id,
|
3526
3570
|
"role": "tabpanel",
|
3527
|
-
"class": bem$
|
3571
|
+
"class": bem$1h("panel"),
|
3528
3572
|
"tabindex": show ? 0 : -1,
|
3529
3573
|
"aria-labelledby": label
|
3530
3574
|
}, [Content]), [[vue.vShow, show]]);
|
3531
3575
|
};
|
3532
3576
|
}
|
3533
3577
|
});
|
3534
|
-
const Tab = withInstall(stdin_default$
|
3535
|
-
const Tabs = withInstall(stdin_default$
|
3536
|
-
const [name$
|
3537
|
-
const PICKER_GROUP_KEY = Symbol(name$
|
3578
|
+
const Tab = withInstall(stdin_default$1w);
|
3579
|
+
const Tabs = withInstall(stdin_default$1y);
|
3580
|
+
const [name$1k, bem$1g] = createNamespace("picker-group");
|
3581
|
+
const PICKER_GROUP_KEY = Symbol(name$1k);
|
3538
3582
|
const pickerGroupProps = extend({
|
3539
3583
|
tabs: makeArrayProp(),
|
3540
3584
|
activeTab: makeNumericProp(0),
|
3541
3585
|
nextStepText: String
|
3542
3586
|
}, pickerToolbarProps);
|
3543
|
-
var stdin_default$
|
3544
|
-
name: name$
|
3587
|
+
var stdin_default$1v = vue.defineComponent({
|
3588
|
+
name: name$1k,
|
3545
3589
|
props: pickerGroupProps,
|
3546
3590
|
emits: ["confirm", "cancel", "update:activeTab"],
|
3547
3591
|
setup(props, {
|
@@ -3568,8 +3612,8 @@
|
|
3568
3612
|
const childNodes = (_a = slots.default) == null ? void 0 : _a.call(slots);
|
3569
3613
|
const confirmButtonText = showNextButton() ? props.nextStepText : props.confirmButtonText;
|
3570
3614
|
return vue.createVNode("div", {
|
3571
|
-
"class": bem$
|
3572
|
-
}, [vue.createVNode(stdin_default$
|
3615
|
+
"class": bem$1g()
|
3616
|
+
}, [vue.createVNode(stdin_default$1C, {
|
3573
3617
|
"title": props.title,
|
3574
3618
|
"cancelButtonText": props.cancelButtonText,
|
3575
3619
|
"confirmButtonText": confirmButtonText,
|
@@ -3578,14 +3622,14 @@
|
|
3578
3622
|
}, pick(slots, pickerToolbarSlots)), vue.createVNode(Tabs, {
|
3579
3623
|
"active": activeTab.value,
|
3580
3624
|
"onUpdate:active": ($event) => activeTab.value = $event,
|
3581
|
-
"class": bem$
|
3625
|
+
"class": bem$1g("tabs"),
|
3582
3626
|
"shrink": true,
|
3583
3627
|
"animated": true,
|
3584
3628
|
"lazyRender": false
|
3585
3629
|
}, {
|
3586
3630
|
default: () => [props.tabs.map((title, index) => vue.createVNode(Tab, {
|
3587
3631
|
"title": title,
|
3588
|
-
"titleClass": bem$
|
3632
|
+
"titleClass": bem$1g("tab-title")
|
3589
3633
|
}, {
|
3590
3634
|
default: () => [childNodes == null ? void 0 : childNodes[index]]
|
3591
3635
|
}))]
|
@@ -3608,8 +3652,8 @@
|
|
3608
3652
|
toolbarPosition: makeStringProp("top"),
|
3609
3653
|
columnsFieldNames: Object
|
3610
3654
|
});
|
3611
|
-
var stdin_default$
|
3612
|
-
name: name$
|
3655
|
+
var stdin_default$1u = vue.defineComponent({
|
3656
|
+
name: name$1u,
|
3613
3657
|
props: pickerProps,
|
3614
3658
|
emits: ["confirm", "cancel", "change", "scrollInto", "clickOption", "update:modelValue"],
|
3615
3659
|
setup(props, {
|
@@ -3690,7 +3734,7 @@
|
|
3690
3734
|
return params;
|
3691
3735
|
};
|
3692
3736
|
const cancel = () => emit("cancel", getEventParams());
|
3693
|
-
const renderColumnItems = () => currentColumns.value.map((options, columnIndex) => vue.createVNode(stdin_default$
|
3737
|
+
const renderColumnItems = () => currentColumns.value.map((options, columnIndex) => vue.createVNode(stdin_default$1D, {
|
3694
3738
|
"value": selectedValues.value[columnIndex],
|
3695
3739
|
"fields": fields.value,
|
3696
3740
|
"options": options,
|
@@ -3719,10 +3763,10 @@
|
|
3719
3763
|
backgroundSize: `100% ${(wrapHeight - optionHeight.value) / 2}px`
|
3720
3764
|
};
|
3721
3765
|
return [vue.createVNode("div", {
|
3722
|
-
"class": bem$
|
3766
|
+
"class": bem$1p("mask"),
|
3723
3767
|
"style": maskStyle
|
3724
3768
|
}, null), vue.createVNode("div", {
|
3725
|
-
"class": [BORDER_UNSET_TOP_BOTTOM, bem$
|
3769
|
+
"class": [BORDER_UNSET_TOP_BOTTOM, bem$1p("frame")],
|
3726
3770
|
"style": frameStyle
|
3727
3771
|
}, null)];
|
3728
3772
|
}
|
@@ -3734,13 +3778,13 @@
|
|
3734
3778
|
};
|
3735
3779
|
return vue.createVNode("div", {
|
3736
3780
|
"ref": columnsRef,
|
3737
|
-
"class": bem$
|
3781
|
+
"class": bem$1p("columns"),
|
3738
3782
|
"style": columnsStyle
|
3739
3783
|
}, [renderColumnItems(), renderMask(wrapHeight)]);
|
3740
3784
|
};
|
3741
3785
|
const renderToolbar = () => {
|
3742
3786
|
if (props.showToolbar && !parent) {
|
3743
|
-
return vue.createVNode(stdin_default$
|
3787
|
+
return vue.createVNode(stdin_default$1C, vue.mergeProps(pick(props, pickerToolbarPropKeys), {
|
3744
3788
|
"onConfirm": confirm,
|
3745
3789
|
"onCancel": cancel
|
3746
3790
|
}), pick(slots, pickerToolbarSlots));
|
@@ -3783,9 +3827,9 @@
|
|
3783
3827
|
return () => {
|
3784
3828
|
var _a, _b;
|
3785
3829
|
return vue.createVNode("div", {
|
3786
|
-
"class": bem$
|
3830
|
+
"class": bem$1p()
|
3787
3831
|
}, [props.toolbarPosition === "top" ? renderToolbar() : null, props.loading ? vue.createVNode(Loading, {
|
3788
|
-
"class": bem$
|
3832
|
+
"class": bem$1p("loading")
|
3789
3833
|
}, null) : null, (_a = slots["columns-top"]) == null ? void 0 : _a.call(slots), renderColumns(), (_b = slots["columns-bottom"]) == null ? void 0 : _b.call(slots), props.toolbarPosition === "bottom" ? renderToolbar() : null]);
|
3790
3834
|
};
|
3791
3835
|
}
|
@@ -3876,9 +3920,9 @@
|
|
3876
3920
|
}
|
3877
3921
|
return options;
|
3878
3922
|
}
|
3879
|
-
const Picker = withInstall(stdin_default$
|
3880
|
-
const [name$
|
3881
|
-
const areaProps = extend({}, pickerSharedProps, {
|
3923
|
+
const Picker = withInstall(stdin_default$1u);
|
3924
|
+
const [name$1j, bem$1f] = createNamespace("area");
|
3925
|
+
const areaProps = extend({}, pick(pickerSharedProps, INHERIT_PROPS), {
|
3882
3926
|
modelValue: String,
|
3883
3927
|
columnsNum: makeNumericProp(3),
|
3884
3928
|
columnsPlaceholder: makeArrayProp(),
|
@@ -3887,8 +3931,8 @@
|
|
3887
3931
|
default: () => ({})
|
3888
3932
|
}
|
3889
3933
|
});
|
3890
|
-
var stdin_default$
|
3891
|
-
name: name$
|
3934
|
+
var stdin_default$1t = vue.defineComponent({
|
3935
|
+
name: name$1j,
|
3892
3936
|
props: areaProps,
|
3893
3937
|
emits: ["change", "confirm", "cancel", "update:modelValue"],
|
3894
3938
|
setup(props, {
|
@@ -3935,7 +3979,7 @@
|
|
3935
3979
|
"ref": picker,
|
3936
3980
|
"modelValue": codes.value,
|
3937
3981
|
"onUpdate:modelValue": ($event) => codes.value = $event,
|
3938
|
-
"class": bem$
|
3982
|
+
"class": bem$1f(),
|
3939
3983
|
"columns": columns.value,
|
3940
3984
|
"onChange": onChange,
|
3941
3985
|
"onCancel": onCancel,
|
@@ -3943,8 +3987,8 @@
|
|
3943
3987
|
}, pick(props, INHERIT_PROPS)), pick(slots, INHERIT_SLOTS));
|
3944
3988
|
}
|
3945
3989
|
});
|
3946
|
-
const Area = withInstall(stdin_default$
|
3947
|
-
const [name$
|
3990
|
+
const Area = withInstall(stdin_default$1t);
|
3991
|
+
const [name$1i, bem$1e] = createNamespace("cell");
|
3948
3992
|
const cellSharedProps = {
|
3949
3993
|
tag: makeStringProp("div"),
|
3950
3994
|
icon: String,
|
@@ -3968,8 +4012,8 @@
|
|
3968
4012
|
}
|
3969
4013
|
};
|
3970
4014
|
const cellProps = extend({}, cellSharedProps, routeProps);
|
3971
|
-
var stdin_default$
|
3972
|
-
name: name$
|
4015
|
+
var stdin_default$1s = vue.defineComponent({
|
4016
|
+
name: name$1i,
|
3973
4017
|
props: cellProps,
|
3974
4018
|
setup(props, {
|
3975
4019
|
slots
|
@@ -3979,7 +4023,7 @@
|
|
3979
4023
|
const showLabel = slots.label || isDef(props.label);
|
3980
4024
|
if (showLabel) {
|
3981
4025
|
return vue.createVNode("div", {
|
3982
|
-
"class": [bem$
|
4026
|
+
"class": [bem$1e("label"), props.labelClass]
|
3983
4027
|
}, [slots.label ? slots.label() : props.label]);
|
3984
4028
|
}
|
3985
4029
|
};
|
@@ -3991,7 +4035,7 @@
|
|
3991
4035
|
return;
|
3992
4036
|
}
|
3993
4037
|
return vue.createVNode("div", {
|
3994
|
-
"class": [bem$
|
4038
|
+
"class": [bem$1e("title"), props.titleClass],
|
3995
4039
|
"style": props.titleStyle
|
3996
4040
|
}, [titleSlot || vue.createVNode("span", null, [props.title]), renderLabel()]);
|
3997
4041
|
}
|
@@ -4001,7 +4045,7 @@
|
|
4001
4045
|
const hasValue = slot || isDef(props.value);
|
4002
4046
|
if (hasValue) {
|
4003
4047
|
return vue.createVNode("div", {
|
4004
|
-
"class": [bem$
|
4048
|
+
"class": [bem$1e("value"), props.valueClass]
|
4005
4049
|
}, [slot ? slot() : vue.createVNode("span", null, [props.value])]);
|
4006
4050
|
}
|
4007
4051
|
};
|
@@ -4012,7 +4056,7 @@
|
|
4012
4056
|
if (props.icon) {
|
4013
4057
|
return vue.createVNode(Icon, {
|
4014
4058
|
"name": props.icon,
|
4015
|
-
"class": bem$
|
4059
|
+
"class": bem$1e("left-icon"),
|
4016
4060
|
"classPrefix": props.iconPrefix
|
4017
4061
|
}, null);
|
4018
4062
|
}
|
@@ -4025,7 +4069,7 @@
|
|
4025
4069
|
const name2 = props.arrowDirection && props.arrowDirection !== "right" ? `arrow-${props.arrowDirection}` : "arrow";
|
4026
4070
|
return vue.createVNode(Icon, {
|
4027
4071
|
"name": name2,
|
4028
|
-
"class": bem$
|
4072
|
+
"class": bem$1e("right-icon")
|
4029
4073
|
}, null);
|
4030
4074
|
}
|
4031
4075
|
};
|
@@ -4050,7 +4094,7 @@
|
|
4050
4094
|
classes[size] = !!size;
|
4051
4095
|
}
|
4052
4096
|
return vue.createVNode(tag, {
|
4053
|
-
"class": bem$
|
4097
|
+
"class": bem$1e(classes),
|
4054
4098
|
"role": clickable ? "button" : void 0,
|
4055
4099
|
"tabindex": clickable ? 0 : void 0,
|
4056
4100
|
"onClick": route2
|
@@ -4063,8 +4107,8 @@
|
|
4063
4107
|
};
|
4064
4108
|
}
|
4065
4109
|
});
|
4066
|
-
const Cell = withInstall(stdin_default$
|
4067
|
-
const [name$
|
4110
|
+
const Cell = withInstall(stdin_default$1s);
|
4111
|
+
const [name$1h, bem$1d] = createNamespace("form");
|
4068
4112
|
const formProps = {
|
4069
4113
|
colon: Boolean,
|
4070
4114
|
disabled: Boolean,
|
@@ -4083,8 +4127,8 @@
|
|
4083
4127
|
default: "onBlur"
|
4084
4128
|
}
|
4085
4129
|
};
|
4086
|
-
var stdin_default$
|
4087
|
-
name: name$
|
4130
|
+
var stdin_default$1r = vue.defineComponent({
|
4131
|
+
name: name$1h,
|
4088
4132
|
props: formProps,
|
4089
4133
|
emits: ["submit", "failed"],
|
4090
4134
|
setup(props, {
|
@@ -4210,13 +4254,13 @@
|
|
4210
4254
|
return () => {
|
4211
4255
|
var _a;
|
4212
4256
|
return vue.createVNode("form", {
|
4213
|
-
"class": bem$
|
4257
|
+
"class": bem$1d(),
|
4214
4258
|
"onSubmit": onSubmit
|
4215
4259
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
4216
4260
|
};
|
4217
4261
|
}
|
4218
4262
|
});
|
4219
|
-
const Form = withInstall(stdin_default$
|
4263
|
+
const Form = withInstall(stdin_default$1r);
|
4220
4264
|
function isEmptyValue(value) {
|
4221
4265
|
if (Array.isArray(value)) {
|
4222
4266
|
return !value.length;
|
@@ -4305,7 +4349,7 @@
|
|
4305
4349
|
function cutString(str, maxlength) {
|
4306
4350
|
return [...str].slice(0, maxlength).join("");
|
4307
4351
|
}
|
4308
|
-
const [name$
|
4352
|
+
const [name$1g, bem$1c] = createNamespace("field");
|
4309
4353
|
const fieldSharedProps = {
|
4310
4354
|
id: String,
|
4311
4355
|
name: String,
|
@@ -4352,8 +4396,8 @@
|
|
4352
4396
|
default: null
|
4353
4397
|
}
|
4354
4398
|
});
|
4355
|
-
var stdin_default$
|
4356
|
-
name: name$
|
4399
|
+
var stdin_default$1q = vue.defineComponent({
|
4400
|
+
name: name$1g,
|
4357
4401
|
props: fieldProps,
|
4358
4402
|
emits: ["blur", "focus", "clear", "keypress", "clickInput", "endValidate", "startValidate", "clickLeftIcon", "clickRightIcon", "update:modelValue"],
|
4359
4403
|
setup(props, {
|
@@ -4627,7 +4671,7 @@
|
|
4627
4671
|
const getInputId = () => props.id || `${id}-input`;
|
4628
4672
|
const getValidationStatus = () => state.status;
|
4629
4673
|
const renderInput = () => {
|
4630
|
-
const controlClass = bem$
|
4674
|
+
const controlClass = bem$1c("control", [getProp("inputAlign"), {
|
4631
4675
|
error: showError.value,
|
4632
4676
|
custom: !!slots.input,
|
4633
4677
|
"min-height": props.type === "textarea" && !props.autosize
|
@@ -4669,7 +4713,7 @@
|
|
4669
4713
|
const leftIconSlot = slots["left-icon"];
|
4670
4714
|
if (props.leftIcon || leftIconSlot) {
|
4671
4715
|
return vue.createVNode("div", {
|
4672
|
-
"class": bem$
|
4716
|
+
"class": bem$1c("left-icon"),
|
4673
4717
|
"onClick": onClickLeftIcon
|
4674
4718
|
}, [leftIconSlot ? leftIconSlot() : vue.createVNode(Icon, {
|
4675
4719
|
"name": props.leftIcon,
|
@@ -4681,7 +4725,7 @@
|
|
4681
4725
|
const rightIconSlot = slots["right-icon"];
|
4682
4726
|
if (props.rightIcon || rightIconSlot) {
|
4683
4727
|
return vue.createVNode("div", {
|
4684
|
-
"class": bem$
|
4728
|
+
"class": bem$1c("right-icon"),
|
4685
4729
|
"onClick": onClickRightIcon
|
4686
4730
|
}, [rightIconSlot ? rightIconSlot() : vue.createVNode(Icon, {
|
4687
4731
|
"name": props.rightIcon,
|
@@ -4693,9 +4737,9 @@
|
|
4693
4737
|
if (props.showWordLimit && props.maxlength) {
|
4694
4738
|
const count = getStringLength(getModelValue());
|
4695
4739
|
return vue.createVNode("div", {
|
4696
|
-
"class": bem$
|
4740
|
+
"class": bem$1c("word-limit")
|
4697
4741
|
}, [vue.createVNode("span", {
|
4698
|
-
"class": bem$
|
4742
|
+
"class": bem$1c("word-num")
|
4699
4743
|
}, [count]), vue.createTextVNode("/"), props.maxlength]);
|
4700
4744
|
}
|
4701
4745
|
};
|
@@ -4708,7 +4752,7 @@
|
|
4708
4752
|
const slot = slots["error-message"];
|
4709
4753
|
const errorMessageAlign = getProp("errorMessageAlign");
|
4710
4754
|
return vue.createVNode("div", {
|
4711
|
-
"class": bem$
|
4755
|
+
"class": bem$1c("error-message", errorMessageAlign)
|
4712
4756
|
}, [slot ? slot({
|
4713
4757
|
message
|
4714
4758
|
}) : message]);
|
@@ -4736,13 +4780,13 @@
|
|
4736
4780
|
}
|
4737
4781
|
};
|
4738
4782
|
const renderFieldBody = () => [vue.createVNode("div", {
|
4739
|
-
"class": bem$
|
4783
|
+
"class": bem$1c("body")
|
4740
4784
|
}, [renderInput(), showClear.value && vue.createVNode(Icon, {
|
4741
4785
|
"ref": clearIconRef,
|
4742
4786
|
"name": props.clearIcon,
|
4743
|
-
"class": bem$
|
4787
|
+
"class": bem$1c("clear")
|
4744
4788
|
}, null), renderRightIcon(), slots.button && vue.createVNode("div", {
|
4745
|
-
"class": bem$
|
4789
|
+
"class": bem$1c("button")
|
4746
4790
|
}, [slots.button()])]), renderWordLimit(), renderMessage()];
|
4747
4791
|
useExpose({
|
4748
4792
|
blur,
|
@@ -4786,7 +4830,7 @@
|
|
4786
4830
|
};
|
4787
4831
|
return vue.createVNode(Cell, {
|
4788
4832
|
"size": props.size,
|
4789
|
-
"class": bem$
|
4833
|
+
"class": bem$1c({
|
4790
4834
|
error: showError.value,
|
4791
4835
|
disabled,
|
4792
4836
|
[`label-${labelAlign}`]: labelAlign
|
@@ -4796,8 +4840,8 @@
|
|
4796
4840
|
"isLink": props.isLink,
|
4797
4841
|
"clickable": props.clickable,
|
4798
4842
|
"titleStyle": labelStyle.value,
|
4799
|
-
"valueClass": bem$
|
4800
|
-
"titleClass": [bem$
|
4843
|
+
"valueClass": bem$1c("value"),
|
4844
|
+
"titleClass": [bem$1c("label", [labelAlign, {
|
4801
4845
|
required: props.required
|
4802
4846
|
}]), props.labelClass],
|
4803
4847
|
"arrowDirection": props.arrowDirection
|
@@ -4810,7 +4854,7 @@
|
|
4810
4854
|
};
|
4811
4855
|
}
|
4812
4856
|
});
|
4813
|
-
const Field = withInstall(stdin_default$
|
4857
|
+
const Field = withInstall(stdin_default$1q);
|
4814
4858
|
let lockCount = 0;
|
4815
4859
|
function lockClick(lock) {
|
4816
4860
|
if (lock) {
|
@@ -4825,7 +4869,7 @@
|
|
4825
4869
|
}
|
4826
4870
|
}
|
4827
4871
|
}
|
4828
|
-
const [name$
|
4872
|
+
const [name$1f, bem$1b] = createNamespace("toast");
|
4829
4873
|
const popupInheritProps = ["show", "overlay", "teleport", "transition", "overlayClass", "overlayStyle", "closeOnClickOverlay"];
|
4830
4874
|
const toastProps = {
|
4831
4875
|
icon: String,
|
@@ -4848,8 +4892,8 @@
|
|
4848
4892
|
closeOnClick: Boolean,
|
4849
4893
|
closeOnClickOverlay: Boolean
|
4850
4894
|
};
|
4851
|
-
var stdin_default$
|
4852
|
-
name: name$
|
4895
|
+
var stdin_default$1p = vue.defineComponent({
|
4896
|
+
name: name$1f,
|
4853
4897
|
props: toastProps,
|
4854
4898
|
emits: ["update:show"],
|
4855
4899
|
setup(props, {
|
@@ -4885,13 +4929,13 @@
|
|
4885
4929
|
return vue.createVNode(Icon, {
|
4886
4930
|
"name": icon || type,
|
4887
4931
|
"size": iconSize,
|
4888
|
-
"class": bem$
|
4932
|
+
"class": bem$1b("icon"),
|
4889
4933
|
"classPrefix": iconPrefix
|
4890
4934
|
}, null);
|
4891
4935
|
}
|
4892
4936
|
if (type === "loading") {
|
4893
4937
|
return vue.createVNode(Loading, {
|
4894
|
-
"class": bem$
|
4938
|
+
"class": bem$1b("loading"),
|
4895
4939
|
"size": iconSize,
|
4896
4940
|
"type": loadingType
|
4897
4941
|
}, null);
|
@@ -4904,16 +4948,16 @@
|
|
4904
4948
|
} = props;
|
4905
4949
|
if (slots.message) {
|
4906
4950
|
return vue.createVNode("div", {
|
4907
|
-
"class": bem$
|
4951
|
+
"class": bem$1b("text")
|
4908
4952
|
}, [slots.message()]);
|
4909
4953
|
}
|
4910
4954
|
if (isDef(message) && message !== "") {
|
4911
4955
|
return type === "html" ? vue.createVNode("div", {
|
4912
4956
|
"key": 0,
|
4913
|
-
"class": bem$
|
4957
|
+
"class": bem$1b("text"),
|
4914
4958
|
"innerHTML": String(message)
|
4915
4959
|
}, null) : vue.createVNode("div", {
|
4916
|
-
"class": bem$
|
4960
|
+
"class": bem$1b("text")
|
4917
4961
|
}, [message]);
|
4918
4962
|
}
|
4919
4963
|
};
|
@@ -4929,7 +4973,7 @@
|
|
4929
4973
|
vue.onMounted(toggleClickable);
|
4930
4974
|
vue.onUnmounted(toggleClickable);
|
4931
4975
|
return () => vue.createVNode(Popup, vue.mergeProps({
|
4932
|
-
"class": [bem$
|
4976
|
+
"class": [bem$1b([props.position, props.wordBreak === "normal" ? "break-normal" : props.wordBreak, {
|
4933
4977
|
[props.type]: !props.icon
|
4934
4978
|
}]), props.className],
|
4935
4979
|
"lockScroll": false,
|
@@ -5030,7 +5074,7 @@
|
|
5030
5074
|
onClosed,
|
5031
5075
|
"onUpdate:show": toggle
|
5032
5076
|
};
|
5033
|
-
return vue.createVNode(stdin_default$
|
5077
|
+
return vue.createVNode(stdin_default$1p, vue.mergeProps(state, attrs), null);
|
5034
5078
|
};
|
5035
5079
|
vue.watch(message, (val) => {
|
5036
5080
|
state.message = val;
|
@@ -5100,8 +5144,8 @@
|
|
5100
5144
|
const allowMultipleToast = (value = true) => {
|
5101
5145
|
allowMultiple = value;
|
5102
5146
|
};
|
5103
|
-
const Toast = withInstall(stdin_default$
|
5104
|
-
const [name$
|
5147
|
+
const Toast = withInstall(stdin_default$1p);
|
5148
|
+
const [name$1e, bem$1a] = createNamespace("switch");
|
5105
5149
|
const switchProps = {
|
5106
5150
|
size: numericProp,
|
5107
5151
|
loading: Boolean,
|
@@ -5118,8 +5162,8 @@
|
|
5118
5162
|
default: false
|
5119
5163
|
}
|
5120
5164
|
};
|
5121
|
-
var stdin_default$
|
5122
|
-
name: name$
|
5165
|
+
var stdin_default$1o = vue.defineComponent({
|
5166
|
+
name: name$1e,
|
5123
5167
|
props: switchProps,
|
5124
5168
|
emits: ["change", "update:modelValue"],
|
5125
5169
|
setup(props, {
|
@@ -5138,7 +5182,7 @@
|
|
5138
5182
|
if (props.loading) {
|
5139
5183
|
const color = isChecked() ? props.activeColor : props.inactiveColor;
|
5140
5184
|
return vue.createVNode(Loading, {
|
5141
|
-
"class": bem$
|
5185
|
+
"class": bem$1a("loading"),
|
5142
5186
|
"color": color
|
5143
5187
|
}, null);
|
5144
5188
|
}
|
@@ -5163,7 +5207,7 @@
|
|
5163
5207
|
};
|
5164
5208
|
return vue.createVNode("div", {
|
5165
5209
|
"role": "switch",
|
5166
|
-
"class": bem$
|
5210
|
+
"class": bem$1a({
|
5167
5211
|
on: checked,
|
5168
5212
|
loading,
|
5169
5213
|
disabled
|
@@ -5173,16 +5217,16 @@
|
|
5173
5217
|
"aria-checked": checked,
|
5174
5218
|
"onClick": onClick
|
5175
5219
|
}, [vue.createVNode("div", {
|
5176
|
-
"class": bem$
|
5220
|
+
"class": bem$1a("node")
|
5177
5221
|
}, [renderLoading()]), (_a = slots.background) == null ? void 0 : _a.call(slots)]);
|
5178
5222
|
};
|
5179
5223
|
}
|
5180
5224
|
});
|
5181
|
-
const Switch = withInstall(stdin_default$
|
5182
|
-
const [name$
|
5225
|
+
const Switch = withInstall(stdin_default$1o);
|
5226
|
+
const [name$1d, bem$19] = createNamespace("address-edit-detail");
|
5183
5227
|
const t$j = createNamespace("address-edit")[2];
|
5184
|
-
var stdin_default$
|
5185
|
-
name: name$
|
5228
|
+
var stdin_default$1n = vue.defineComponent({
|
5229
|
+
name: name$1d,
|
5186
5230
|
props: {
|
5187
5231
|
show: Boolean,
|
5188
5232
|
rows: numericProp,
|
@@ -5216,7 +5260,7 @@
|
|
5216
5260
|
"icon": "location-o",
|
5217
5261
|
"title": express.name,
|
5218
5262
|
"label": express.address,
|
5219
|
-
"class": bem$
|
5263
|
+
"class": bem$19("search-item"),
|
5220
5264
|
"border": false,
|
5221
5265
|
"onClick": () => onSelect(express)
|
5222
5266
|
}, null));
|
@@ -5230,7 +5274,7 @@
|
|
5230
5274
|
"autosize": true,
|
5231
5275
|
"clearable": true,
|
5232
5276
|
"ref": field,
|
5233
|
-
"class": bem$
|
5277
|
+
"class": bem$19(),
|
5234
5278
|
"rows": props.rows,
|
5235
5279
|
"type": "textarea",
|
5236
5280
|
"rules": props.rules,
|
@@ -5247,7 +5291,7 @@
|
|
5247
5291
|
};
|
5248
5292
|
}
|
5249
5293
|
});
|
5250
|
-
const [name$
|
5294
|
+
const [name$1c, bem$18, t$i] = createNamespace("address-edit");
|
5251
5295
|
const DEFAULT_DATA = {
|
5252
5296
|
name: "",
|
5253
5297
|
tel: "",
|
@@ -5287,8 +5331,8 @@
|
|
5287
5331
|
default: isMobile
|
5288
5332
|
}
|
5289
5333
|
};
|
5290
|
-
var stdin_default$
|
5291
|
-
name: name$
|
5334
|
+
var stdin_default$1m = vue.defineComponent({
|
5335
|
+
name: name$1c,
|
5292
5336
|
props: addressEditProps,
|
5293
5337
|
emits: ["save", "focus", "delete", "clickArea", "changeArea", "changeDetail", "selectSearch", "changeDefault"],
|
5294
5338
|
setup(props, {
|
@@ -5398,8 +5442,9 @@
|
|
5398
5442
|
};
|
5399
5443
|
return vue.withDirectives(vue.createVNode(Cell, {
|
5400
5444
|
"center": true,
|
5445
|
+
"border": false,
|
5401
5446
|
"title": t$i("defaultAddress"),
|
5402
|
-
"class": bem$
|
5447
|
+
"class": bem$18("default")
|
5403
5448
|
}, slots2), [[vue.vShow, !hideBottomFields.value]]);
|
5404
5449
|
}
|
5405
5450
|
};
|
@@ -5425,13 +5470,13 @@
|
|
5425
5470
|
disableArea
|
5426
5471
|
} = props;
|
5427
5472
|
return vue.createVNode(Form, {
|
5428
|
-
"class": bem$
|
5473
|
+
"class": bem$18(),
|
5429
5474
|
"onSubmit": onSave
|
5430
5475
|
}, {
|
5431
5476
|
default: () => {
|
5432
5477
|
var _a;
|
5433
5478
|
return [vue.createVNode("div", {
|
5434
|
-
"class": bem$
|
5479
|
+
"class": bem$18("fields")
|
5435
5480
|
}, [vue.createVNode(Field, {
|
5436
5481
|
"modelValue": data.name,
|
5437
5482
|
"onUpdate:modelValue": ($event) => data.name = $event,
|
@@ -5462,7 +5507,7 @@
|
|
5462
5507
|
emit("clickArea");
|
5463
5508
|
showAreaPopup.value = !disableArea;
|
5464
5509
|
}
|
5465
|
-
}, null), [[vue.vShow, props.showArea]]), vue.createVNode(stdin_default$
|
5510
|
+
}, null), [[vue.vShow, props.showArea]]), vue.createVNode(stdin_default$1n, {
|
5466
5511
|
"show": props.showDetail,
|
5467
5512
|
"rows": props.detailRows,
|
5468
5513
|
"rules": rules.value.addressDetail,
|
@@ -5476,19 +5521,19 @@
|
|
5476
5521
|
"onInput": onChangeDetail,
|
5477
5522
|
"onSelectSearch": (event) => emit("selectSearch", event)
|
5478
5523
|
}, null), (_a = slots.default) == null ? void 0 : _a.call(slots)]), renderSetDefaultCell(), vue.withDirectives(vue.createVNode("div", {
|
5479
|
-
"class": bem$
|
5524
|
+
"class": bem$18("buttons")
|
5480
5525
|
}, [vue.createVNode(Button, {
|
5481
5526
|
"block": true,
|
5482
5527
|
"round": true,
|
5483
5528
|
"type": "primary",
|
5484
5529
|
"text": props.saveButtonText || t$i("save"),
|
5485
|
-
"class": bem$
|
5530
|
+
"class": bem$18("button"),
|
5486
5531
|
"loading": props.isSaving,
|
5487
5532
|
"nativeType": "submit"
|
5488
5533
|
}, null), props.showDelete && vue.createVNode(Button, {
|
5489
5534
|
"block": true,
|
5490
5535
|
"round": true,
|
5491
|
-
"class": bem$
|
5536
|
+
"class": bem$18("button"),
|
5492
5537
|
"loading": props.isDeleting,
|
5493
5538
|
"text": props.deleteButtonText || t$i("delete"),
|
5494
5539
|
"onClick": onDelete
|
@@ -5518,8 +5563,8 @@
|
|
5518
5563
|
};
|
5519
5564
|
}
|
5520
5565
|
});
|
5521
|
-
const AddressEdit = withInstall(stdin_default$
|
5522
|
-
const [name$
|
5566
|
+
const AddressEdit = withInstall(stdin_default$1m);
|
5567
|
+
const [name$1b, bem$17] = createNamespace("radio-group");
|
5523
5568
|
const radioGroupProps = {
|
5524
5569
|
disabled: Boolean,
|
5525
5570
|
iconSize: numericProp,
|
@@ -5527,9 +5572,9 @@
|
|
5527
5572
|
modelValue: unknownProp,
|
5528
5573
|
checkedColor: String
|
5529
5574
|
};
|
5530
|
-
const RADIO_KEY = Symbol(name$
|
5531
|
-
var stdin_default$
|
5532
|
-
name: name$
|
5575
|
+
const RADIO_KEY = Symbol(name$1b);
|
5576
|
+
var stdin_default$1l = vue.defineComponent({
|
5577
|
+
name: name$1b,
|
5533
5578
|
props: radioGroupProps,
|
5534
5579
|
emits: ["change", "update:modelValue"],
|
5535
5580
|
setup(props, {
|
@@ -5549,14 +5594,14 @@
|
|
5549
5594
|
return () => {
|
5550
5595
|
var _a;
|
5551
5596
|
return vue.createVNode("div", {
|
5552
|
-
"class": bem$
|
5597
|
+
"class": bem$17([props.direction]),
|
5553
5598
|
"role": "radiogroup"
|
5554
5599
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
5555
5600
|
};
|
5556
5601
|
}
|
5557
5602
|
});
|
5558
|
-
const RadioGroup = withInstall(stdin_default$
|
5559
|
-
const [name$
|
5603
|
+
const RadioGroup = withInstall(stdin_default$1l);
|
5604
|
+
const [name$1a, bem$16] = createNamespace("tag");
|
5560
5605
|
const tagProps = {
|
5561
5606
|
size: String,
|
5562
5607
|
mark: Boolean,
|
@@ -5568,8 +5613,8 @@
|
|
5568
5613
|
textColor: String,
|
5569
5614
|
closeable: Boolean
|
5570
5615
|
};
|
5571
|
-
var stdin_default$
|
5572
|
-
name: name$
|
5616
|
+
var stdin_default$1k = vue.defineComponent({
|
5617
|
+
name: name$1a,
|
5573
5618
|
props: tagProps,
|
5574
5619
|
emits: ["close"],
|
5575
5620
|
setup(props, {
|
@@ -5612,12 +5657,12 @@
|
|
5612
5657
|
}
|
5613
5658
|
const CloseIcon = closeable && vue.createVNode(Icon, {
|
5614
5659
|
"name": "cross",
|
5615
|
-
"class": [bem$
|
5660
|
+
"class": [bem$16("close"), HAPTICS_FEEDBACK],
|
5616
5661
|
"onClick": onClose
|
5617
5662
|
}, null);
|
5618
5663
|
return vue.createVNode("span", {
|
5619
5664
|
"style": getStyle(),
|
5620
|
-
"class": bem$
|
5665
|
+
"class": bem$16([classes, type])
|
5621
5666
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots), CloseIcon]);
|
5622
5667
|
};
|
5623
5668
|
return () => vue.createVNode(vue.Transition, {
|
@@ -5627,7 +5672,7 @@
|
|
5627
5672
|
});
|
5628
5673
|
}
|
5629
5674
|
});
|
5630
|
-
const Tag = withInstall(stdin_default$
|
5675
|
+
const Tag = withInstall(stdin_default$1k);
|
5631
5676
|
const checkerProps = {
|
5632
5677
|
name: unknownProp,
|
5633
5678
|
shape: makeStringProp("round"),
|
@@ -5638,7 +5683,7 @@
|
|
5638
5683
|
labelPosition: String,
|
5639
5684
|
labelDisabled: Boolean
|
5640
5685
|
};
|
5641
|
-
var stdin_default$
|
5686
|
+
var stdin_default$1j = vue.defineComponent({
|
5642
5687
|
props: extend({}, checkerProps, {
|
5643
5688
|
bem: makeRequiredProp(Function),
|
5644
5689
|
role: String,
|
@@ -5740,9 +5785,9 @@
|
|
5740
5785
|
}
|
5741
5786
|
});
|
5742
5787
|
const radioProps = checkerProps;
|
5743
|
-
const [name$
|
5744
|
-
var stdin_default$
|
5745
|
-
name: name$
|
5788
|
+
const [name$19, bem$15] = createNamespace("radio");
|
5789
|
+
var stdin_default$1i = vue.defineComponent({
|
5790
|
+
name: name$19,
|
5746
5791
|
props: checkerProps,
|
5747
5792
|
emits: ["update:modelValue"],
|
5748
5793
|
setup(props, {
|
@@ -5763,8 +5808,8 @@
|
|
5763
5808
|
emit("update:modelValue", props.name);
|
5764
5809
|
}
|
5765
5810
|
};
|
5766
|
-
return () => vue.createVNode(stdin_default$
|
5767
|
-
"bem": bem$
|
5811
|
+
return () => vue.createVNode(stdin_default$1j, vue.mergeProps({
|
5812
|
+
"bem": bem$15,
|
5768
5813
|
"role": "radio",
|
5769
5814
|
"parent": parent,
|
5770
5815
|
"checked": checked(),
|
@@ -5772,10 +5817,10 @@
|
|
5772
5817
|
}, props), pick(slots, ["default", "icon"]));
|
5773
5818
|
}
|
5774
5819
|
});
|
5775
|
-
const Radio = withInstall(stdin_default$
|
5776
|
-
const [name$
|
5777
|
-
var stdin_default$
|
5778
|
-
name: name$
|
5820
|
+
const Radio = withInstall(stdin_default$1i);
|
5821
|
+
const [name$18, bem$14] = createNamespace("address-item");
|
5822
|
+
var stdin_default$1h = vue.defineComponent({
|
5823
|
+
name: name$18,
|
5779
5824
|
props: {
|
5780
5825
|
address: makeRequiredProp(Object),
|
5781
5826
|
disabled: Boolean,
|
@@ -5795,7 +5840,7 @@
|
|
5795
5840
|
};
|
5796
5841
|
const renderRightIcon = () => vue.createVNode(Icon, {
|
5797
5842
|
"name": "edit",
|
5798
|
-
"class": bem$
|
5843
|
+
"class": bem$14("edit"),
|
5799
5844
|
"onClick": (event) => {
|
5800
5845
|
event.stopPropagation();
|
5801
5846
|
emit("edit");
|
@@ -5810,7 +5855,7 @@
|
|
5810
5855
|
return vue.createVNode(Tag, {
|
5811
5856
|
"type": "primary",
|
5812
5857
|
"round": true,
|
5813
|
-
"class": bem$
|
5858
|
+
"class": bem$14("tag")
|
5814
5859
|
}, {
|
5815
5860
|
default: () => [props.defaultTagText]
|
5816
5861
|
});
|
@@ -5823,9 +5868,9 @@
|
|
5823
5868
|
switchable
|
5824
5869
|
} = props;
|
5825
5870
|
const Info = [vue.createVNode("div", {
|
5826
|
-
"class": bem$
|
5871
|
+
"class": bem$14("name")
|
5827
5872
|
}, [`${address.name} ${address.tel}`, renderTag()]), vue.createVNode("div", {
|
5828
|
-
"class": bem$
|
5873
|
+
"class": bem$14("address")
|
5829
5874
|
}, [address.address])];
|
5830
5875
|
if (switchable && !disabled) {
|
5831
5876
|
return vue.createVNode(Radio, {
|
@@ -5843,13 +5888,13 @@
|
|
5843
5888
|
disabled
|
5844
5889
|
} = props;
|
5845
5890
|
return vue.createVNode("div", {
|
5846
|
-
"class": bem$
|
5891
|
+
"class": bem$14({
|
5847
5892
|
disabled
|
5848
5893
|
}),
|
5849
5894
|
"onClick": onClick
|
5850
5895
|
}, [vue.createVNode(Cell, {
|
5851
5896
|
"border": false,
|
5852
|
-
"titleClass": bem$
|
5897
|
+
"titleClass": bem$14("title")
|
5853
5898
|
}, {
|
5854
5899
|
title: renderContent,
|
5855
5900
|
"right-icon": renderRightIcon
|
@@ -5859,7 +5904,7 @@
|
|
5859
5904
|
};
|
5860
5905
|
}
|
5861
5906
|
});
|
5862
|
-
const [name$
|
5907
|
+
const [name$17, bem$13, t$h] = createNamespace("address-list");
|
5863
5908
|
const addressListProps = {
|
5864
5909
|
list: makeArrayProp(),
|
5865
5910
|
modelValue: numericProp,
|
@@ -5869,8 +5914,8 @@
|
|
5869
5914
|
addButtonText: String,
|
5870
5915
|
defaultTagText: String
|
5871
5916
|
};
|
5872
|
-
var stdin_default$
|
5873
|
-
name: name$
|
5917
|
+
var stdin_default$1g = vue.defineComponent({
|
5918
|
+
name: name$17,
|
5874
5919
|
props: addressListProps,
|
5875
5920
|
emits: ["add", "edit", "select", "clickItem", "editDisabled", "selectDisabled", "update:modelValue"],
|
5876
5921
|
setup(props, {
|
@@ -5886,7 +5931,7 @@
|
|
5886
5931
|
emit("update:modelValue", item.id);
|
5887
5932
|
}
|
5888
5933
|
};
|
5889
|
-
return vue.createVNode(stdin_default$
|
5934
|
+
return vue.createVNode(stdin_default$1h, {
|
5890
5935
|
"key": item.id,
|
5891
5936
|
"address": item,
|
5892
5937
|
"disabled": disabled,
|
@@ -5906,13 +5951,13 @@
|
|
5906
5951
|
}
|
5907
5952
|
};
|
5908
5953
|
const renderBottom = () => vue.createVNode("div", {
|
5909
|
-
"class": [bem$
|
5954
|
+
"class": [bem$13("bottom"), "van-safe-area-bottom"]
|
5910
5955
|
}, [vue.createVNode(Button, {
|
5911
5956
|
"round": true,
|
5912
5957
|
"block": true,
|
5913
5958
|
"type": "primary",
|
5914
5959
|
"text": props.addButtonText || t$h("add"),
|
5915
|
-
"class": bem$
|
5960
|
+
"class": bem$13("add"),
|
5916
5961
|
"onClick": () => emit("add")
|
5917
5962
|
}, null)]);
|
5918
5963
|
return () => {
|
@@ -5920,10 +5965,10 @@
|
|
5920
5965
|
const List2 = renderList(props.list);
|
5921
5966
|
const DisabledList = renderList(props.disabledList, true);
|
5922
5967
|
const DisabledText = props.disabledText && vue.createVNode("div", {
|
5923
|
-
"class": bem$
|
5968
|
+
"class": bem$13("disabled-text")
|
5924
5969
|
}, [props.disabledText]);
|
5925
5970
|
return vue.createVNode("div", {
|
5926
|
-
"class": bem$
|
5971
|
+
"class": bem$13()
|
5927
5972
|
}, [(_a = slots.top) == null ? void 0 : _a.call(slots), vue.createVNode(RadioGroup, {
|
5928
5973
|
"modelValue": props.modelValue
|
5929
5974
|
}, {
|
@@ -5932,7 +5977,7 @@
|
|
5932
5977
|
};
|
5933
5978
|
}
|
5934
5979
|
});
|
5935
|
-
const AddressList = withInstall(stdin_default$
|
5980
|
+
const AddressList = withInstall(stdin_default$1g);
|
5936
5981
|
const hasIntersectionObserver = inBrowser && "IntersectionObserver" in window && "IntersectionObserverEntry" in window && "intersectionRatio" in window.IntersectionObserverEntry.prototype;
|
5937
5982
|
const modeType = {
|
5938
5983
|
event: "event",
|
@@ -6085,7 +6130,7 @@
|
|
6085
6130
|
this.caches.shift();
|
6086
6131
|
}
|
6087
6132
|
}
|
6088
|
-
const [name$
|
6133
|
+
const [name$16, bem$12] = createNamespace("back-top");
|
6089
6134
|
const backTopProps = {
|
6090
6135
|
right: numericProp,
|
6091
6136
|
bottom: numericProp,
|
@@ -6098,8 +6143,8 @@
|
|
6098
6143
|
default: "body"
|
6099
6144
|
}
|
6100
6145
|
};
|
6101
|
-
var stdin_default$
|
6102
|
-
name: name$
|
6146
|
+
var stdin_default$1f = vue.defineComponent({
|
6147
|
+
name: name$16,
|
6103
6148
|
inheritAttrs: false,
|
6104
6149
|
props: backTopProps,
|
6105
6150
|
emits: ["click"],
|
@@ -6154,28 +6199,158 @@
|
|
6154
6199
|
vue.watch(() => props.target, updateTarget);
|
6155
6200
|
return () => {
|
6156
6201
|
const Content = vue.createVNode("div", vue.mergeProps({
|
6157
|
-
"ref": root,
|
6158
|
-
"class": bem$
|
6202
|
+
"ref": !props.teleport ? root : void 0,
|
6203
|
+
"class": bem$12({
|
6159
6204
|
active: show.value
|
6160
6205
|
}),
|
6161
6206
|
"style": style.value,
|
6162
6207
|
"onClick": onClick
|
6163
6208
|
}, attrs), [slots.default ? slots.default() : vue.createVNode(Icon, {
|
6164
6209
|
"name": "back-top",
|
6165
|
-
"class": bem$
|
6210
|
+
"class": bem$12("icon")
|
6166
6211
|
}, null)]);
|
6167
6212
|
if (props.teleport) {
|
6168
|
-
return vue.createVNode(
|
6213
|
+
return [vue.createVNode("div", {
|
6214
|
+
"ref": root,
|
6215
|
+
"class": bem$12("placeholder")
|
6216
|
+
}, null), vue.createVNode(vue.Teleport, {
|
6169
6217
|
"to": props.teleport
|
6170
6218
|
}, {
|
6171
6219
|
default: () => [Content]
|
6172
|
-
});
|
6220
|
+
})];
|
6173
6221
|
}
|
6174
6222
|
return Content;
|
6175
6223
|
};
|
6176
6224
|
}
|
6177
6225
|
});
|
6178
|
-
const BackTop = withInstall(stdin_default$
|
6226
|
+
const BackTop = withInstall(stdin_default$1f);
|
6227
|
+
var __async = (__this, __arguments, generator) => {
|
6228
|
+
return new Promise((resolve, reject) => {
|
6229
|
+
var fulfilled = (value) => {
|
6230
|
+
try {
|
6231
|
+
step(generator.next(value));
|
6232
|
+
} catch (e) {
|
6233
|
+
reject(e);
|
6234
|
+
}
|
6235
|
+
};
|
6236
|
+
var rejected = (value) => {
|
6237
|
+
try {
|
6238
|
+
step(generator.throw(value));
|
6239
|
+
} catch (e) {
|
6240
|
+
reject(e);
|
6241
|
+
}
|
6242
|
+
};
|
6243
|
+
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
6244
|
+
step((generator = generator.apply(__this, __arguments)).next());
|
6245
|
+
});
|
6246
|
+
};
|
6247
|
+
const barrageProps = {
|
6248
|
+
top: makeNumericProp(10),
|
6249
|
+
rows: makeNumericProp(4),
|
6250
|
+
duration: makeNumericProp(4e3),
|
6251
|
+
autoPlay: truthProp,
|
6252
|
+
delay: makeNumberProp(300),
|
6253
|
+
modelValue: makeArrayProp()
|
6254
|
+
};
|
6255
|
+
const [name$15, bem$11] = createNamespace("barrage");
|
6256
|
+
var stdin_default$1e = vue.defineComponent({
|
6257
|
+
name: name$15,
|
6258
|
+
props: barrageProps,
|
6259
|
+
emits: ["update:modelValue"],
|
6260
|
+
setup(props, {
|
6261
|
+
emit,
|
6262
|
+
slots
|
6263
|
+
}) {
|
6264
|
+
const barrageWrapper = vue.ref();
|
6265
|
+
const className = bem$11("item");
|
6266
|
+
const total = vue.ref(0);
|
6267
|
+
const barrageItems = [];
|
6268
|
+
const createBarrageItem = (text, delay = props.delay) => {
|
6269
|
+
const item = document.createElement("span");
|
6270
|
+
item.className = className;
|
6271
|
+
item.innerText = String(text);
|
6272
|
+
item.style.animationDuration = `${props.duration}ms`;
|
6273
|
+
item.style.animationDelay = `${delay}ms`;
|
6274
|
+
item.style.animationName = "van-barrage";
|
6275
|
+
item.style.animationTimingFunction = "linear";
|
6276
|
+
return item;
|
6277
|
+
};
|
6278
|
+
const isInitBarrage = vue.ref(true);
|
6279
|
+
const isPlay = vue.ref(props.autoPlay);
|
6280
|
+
const appendBarrageItem = ({
|
6281
|
+
id,
|
6282
|
+
text
|
6283
|
+
}, i) => {
|
6284
|
+
var _a;
|
6285
|
+
const item = createBarrageItem(text, isInitBarrage.value ? i * props.delay : void 0);
|
6286
|
+
if (!props.autoPlay && isPlay.value === false) {
|
6287
|
+
item.style.animationPlayState = "paused";
|
6288
|
+
}
|
6289
|
+
(_a = barrageWrapper.value) == null ? void 0 : _a.append(item);
|
6290
|
+
total.value++;
|
6291
|
+
const top2 = (total.value - 1) % +props.rows * item.offsetHeight + +props.top;
|
6292
|
+
item.style.top = `${top2}px`;
|
6293
|
+
item.dataset.id = String(id);
|
6294
|
+
barrageItems.push(item);
|
6295
|
+
item.addEventListener("animationend", () => {
|
6296
|
+
emit("update:modelValue", [...props.modelValue].filter((v) => String(v.id) !== item.dataset.id));
|
6297
|
+
});
|
6298
|
+
};
|
6299
|
+
const updateBarrages = (newValue, oldValue) => {
|
6300
|
+
const map = new Map(oldValue.map((item) => [item.id, item]));
|
6301
|
+
newValue.forEach((item, i) => {
|
6302
|
+
if (map.has(item.id)) {
|
6303
|
+
map.delete(item.id);
|
6304
|
+
} else {
|
6305
|
+
appendBarrageItem(item, i);
|
6306
|
+
}
|
6307
|
+
});
|
6308
|
+
map.forEach((item) => {
|
6309
|
+
const index = barrageItems.findIndex((span) => span.dataset.id === String(item.id));
|
6310
|
+
if (index > -1) {
|
6311
|
+
barrageItems[index].remove();
|
6312
|
+
barrageItems.splice(index, 1);
|
6313
|
+
}
|
6314
|
+
});
|
6315
|
+
isInitBarrage.value = false;
|
6316
|
+
};
|
6317
|
+
vue.watch(() => props.modelValue.slice(), (newValue, oldValue) => updateBarrages(newValue != null ? newValue : [], oldValue != null ? oldValue : []), {
|
6318
|
+
deep: true
|
6319
|
+
});
|
6320
|
+
const rootStyle = vue.ref({});
|
6321
|
+
vue.onMounted(() => __async(this, null, function* () {
|
6322
|
+
var _a;
|
6323
|
+
rootStyle.value["--move-distance"] = `-${(_a = barrageWrapper.value) == null ? void 0 : _a.offsetWidth}px`;
|
6324
|
+
yield vue.nextTick();
|
6325
|
+
updateBarrages(props.modelValue, []);
|
6326
|
+
}));
|
6327
|
+
const play = () => {
|
6328
|
+
isPlay.value = true;
|
6329
|
+
barrageItems.forEach((item) => {
|
6330
|
+
item.style.animationPlayState = "running";
|
6331
|
+
});
|
6332
|
+
};
|
6333
|
+
const pause = () => {
|
6334
|
+
isPlay.value = false;
|
6335
|
+
barrageItems.forEach((item) => {
|
6336
|
+
item.style.animationPlayState = "paused";
|
6337
|
+
});
|
6338
|
+
};
|
6339
|
+
useExpose({
|
6340
|
+
play,
|
6341
|
+
pause
|
6342
|
+
});
|
6343
|
+
return () => {
|
6344
|
+
var _a;
|
6345
|
+
return vue.createVNode("div", {
|
6346
|
+
"class": bem$11(),
|
6347
|
+
"ref": barrageWrapper,
|
6348
|
+
"style": rootStyle.value
|
6349
|
+
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
6350
|
+
};
|
6351
|
+
}
|
6352
|
+
});
|
6353
|
+
const Barrage = withInstall(stdin_default$1e);
|
6179
6354
|
const [name$14, bem$10, t$g] = createNamespace("calendar");
|
6180
6355
|
const formatMonthTitle = (date) => t$g("monthTitle", date.getFullYear(), date.getMonth() + 1);
|
6181
6356
|
function compareMonth(date1, date2) {
|
@@ -7337,6 +7512,7 @@
|
|
7337
7512
|
}) {
|
7338
7513
|
const tabs = vue.ref([]);
|
7339
7514
|
const activeTab = vue.ref(0);
|
7515
|
+
const [selectedElementRefs, setSelectedElementRefs] = useRefs();
|
7340
7516
|
const {
|
7341
7517
|
text: textKey,
|
7342
7518
|
value: valueKey,
|
@@ -7455,6 +7631,7 @@
|
|
7455
7631
|
selected
|
7456
7632
|
}) : vue.createVNode("span", null, [option[textKey]]);
|
7457
7633
|
return vue.createVNode("li", {
|
7634
|
+
"ref": selected ? setSelectedElementRefs(tabIndex) : void 0,
|
7458
7635
|
"role": "menuitemradio",
|
7459
7636
|
"class": [bem$Z("option", {
|
7460
7637
|
selected,
|
@@ -7511,7 +7688,18 @@
|
|
7511
7688
|
}, {
|
7512
7689
|
default: () => [tabs.value.map(renderTab)]
|
7513
7690
|
});
|
7691
|
+
const scrollIntoView = (el) => {
|
7692
|
+
const scrollParent = el.parentElement;
|
7693
|
+
if (scrollParent) {
|
7694
|
+
scrollParent.scrollTop = el.offsetTop - (scrollParent.offsetHeight - el.offsetHeight) / 2;
|
7695
|
+
}
|
7696
|
+
};
|
7514
7697
|
updateTabs();
|
7698
|
+
vue.watch(activeTab, (value) => {
|
7699
|
+
const el = selectedElementRefs.value[value];
|
7700
|
+
if (el)
|
7701
|
+
scrollIntoView(el);
|
7702
|
+
});
|
7515
7703
|
vue.watch(() => props.options, updateTabs, {
|
7516
7704
|
deep: true
|
7517
7705
|
});
|
@@ -7695,7 +7883,7 @@
|
|
7695
7883
|
checked
|
7696
7884
|
});
|
7697
7885
|
useCustomFieldValue(() => props.modelValue);
|
7698
|
-
return () => vue.createVNode(stdin_default$
|
7886
|
+
return () => vue.createVNode(stdin_default$1j, vue.mergeProps({
|
7699
7887
|
"bem": bem$W,
|
7700
7888
|
"role": "checkbox",
|
7701
7889
|
"parent": parent,
|
@@ -8199,7 +8387,7 @@
|
|
8199
8387
|
}
|
8200
8388
|
});
|
8201
8389
|
const CollapseItem = withInstall(stdin_default$$);
|
8202
|
-
const ConfigProvider = withInstall(stdin_default$
|
8390
|
+
const ConfigProvider = withInstall(stdin_default$1M);
|
8203
8391
|
const [name$R, bem$Q, t$e] = createNamespace("contact-card");
|
8204
8392
|
const contactCardProps = {
|
8205
8393
|
tel: String,
|
@@ -8364,7 +8552,7 @@
|
|
8364
8552
|
const renderRightIcon = () => vue.createVNode(Radio, {
|
8365
8553
|
"class": bem$O("radio"),
|
8366
8554
|
"name": item.id,
|
8367
|
-
"iconSize":
|
8555
|
+
"iconSize": 18
|
8368
8556
|
}, null);
|
8369
8557
|
const renderEditIcon = () => vue.createVNode(Icon, {
|
8370
8558
|
"name": "edit",
|
@@ -9148,6 +9336,7 @@
|
|
9148
9336
|
slots
|
9149
9337
|
}) {
|
9150
9338
|
const currentValues = vue.ref(props.modelValue);
|
9339
|
+
const updatedByExternalSources = vue.ref(false);
|
9151
9340
|
const genYearOptions = () => {
|
9152
9341
|
const minYear = props.minDate.getFullYear();
|
9153
9342
|
const maxYear = props.maxDate.getFullYear();
|
@@ -9163,7 +9352,7 @@
|
|
9163
9352
|
columnsType
|
9164
9353
|
} = props;
|
9165
9354
|
const index = columnsType.indexOf(type);
|
9166
|
-
const value = currentValues.value[index];
|
9355
|
+
const value = updatedByExternalSources.value ? props.modelValue[index] : currentValues.value[index];
|
9167
9356
|
if (value) {
|
9168
9357
|
return +value;
|
9169
9358
|
}
|
@@ -9206,11 +9395,13 @@
|
|
9206
9395
|
emit("update:modelValue", newValues);
|
9207
9396
|
}
|
9208
9397
|
});
|
9209
|
-
vue.watch(() => props.modelValue, (newValues) => {
|
9398
|
+
vue.watch(() => props.modelValue, (newValues, oldValues) => {
|
9399
|
+
updatedByExternalSources.value = isSameValue(oldValues, currentValues.value);
|
9210
9400
|
newValues = formatValueRange(newValues, columns.value);
|
9211
9401
|
if (!isSameValue(newValues, currentValues.value)) {
|
9212
9402
|
currentValues.value = newValues;
|
9213
9403
|
}
|
9404
|
+
updatedByExternalSources.value = false;
|
9214
9405
|
}, {
|
9215
9406
|
immediate: true
|
9216
9407
|
});
|
@@ -9513,6 +9704,7 @@
|
|
9513
9704
|
const dividerProps = {
|
9514
9705
|
dashed: Boolean,
|
9515
9706
|
hairline: truthProp,
|
9707
|
+
vertical: Boolean,
|
9516
9708
|
contentPosition: makeStringProp("center")
|
9517
9709
|
};
|
9518
9710
|
var stdin_default$Q = vue.defineComponent({
|
@@ -9528,9 +9720,10 @@
|
|
9528
9720
|
"class": bem$H({
|
9529
9721
|
dashed: props.dashed,
|
9530
9722
|
hairline: props.hairline,
|
9531
|
-
|
9723
|
+
vertical: props.vertical,
|
9724
|
+
[`content-${props.contentPosition}`]: !!slots.default && !props.vertical
|
9532
9725
|
})
|
9533
|
-
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
9726
|
+
}, [!props.vertical && ((_a = slots.default) == null ? void 0 : _a.call(slots))]);
|
9534
9727
|
};
|
9535
9728
|
}
|
9536
9729
|
});
|
@@ -10009,6 +10202,7 @@
|
|
10009
10202
|
y: (touches[0].clientY + touches[1].clientY) / 2
|
10010
10203
|
});
|
10011
10204
|
const bem$C = createNamespace("image-preview")[1];
|
10205
|
+
const longImageRatio = 2.6;
|
10012
10206
|
var stdin_default$L = vue.defineComponent({
|
10013
10207
|
props: {
|
10014
10208
|
src: String,
|
@@ -10031,33 +10225,28 @@
|
|
10031
10225
|
moveY: 0,
|
10032
10226
|
moving: false,
|
10033
10227
|
zooming: false,
|
10034
|
-
|
10035
|
-
|
10036
|
-
displayHeight: 0
|
10228
|
+
initializing: false,
|
10229
|
+
imageRatio: 0
|
10037
10230
|
});
|
10038
10231
|
const touch = useTouch();
|
10039
10232
|
const imageRef = vue.ref();
|
10040
10233
|
const swipeItem = vue.ref();
|
10041
|
-
const vertical = vue.
|
10042
|
-
|
10043
|
-
|
10044
|
-
rootHeight
|
10045
|
-
} = props;
|
10046
|
-
const rootRatio = rootHeight / rootWidth;
|
10047
|
-
return state.imageRatio > rootRatio;
|
10048
|
-
});
|
10234
|
+
const vertical = vue.ref(false);
|
10235
|
+
const isLongImage = vue.ref(false);
|
10236
|
+
let initialMoveY = 0;
|
10049
10237
|
const imageStyle = vue.computed(() => {
|
10050
10238
|
const {
|
10051
10239
|
scale,
|
10052
10240
|
moveX,
|
10053
10241
|
moveY,
|
10054
10242
|
moving,
|
10055
|
-
zooming
|
10243
|
+
zooming,
|
10244
|
+
initializing
|
10056
10245
|
} = state;
|
10057
10246
|
const style = {
|
10058
|
-
transitionDuration: zooming || moving ? "0s" : ".3s"
|
10247
|
+
transitionDuration: zooming || moving || initializing ? "0s" : ".3s"
|
10059
10248
|
};
|
10060
|
-
if (scale !== 1) {
|
10249
|
+
if (scale !== 1 || isLongImage.value) {
|
10061
10250
|
style.transform = `matrix(${scale}, 0, 0, ${scale}, ${moveX}, ${moveY})`;
|
10062
10251
|
}
|
10063
10252
|
return style;
|
@@ -10102,7 +10291,7 @@
|
|
10102
10291
|
state.moveY = clamp(moveY, -maxMoveY.value, maxMoveY.value);
|
10103
10292
|
} else {
|
10104
10293
|
state.moveX = 0;
|
10105
|
-
state.moveY = 0;
|
10294
|
+
state.moveY = isLongImage.value ? initialMoveY : 0;
|
10106
10295
|
}
|
10107
10296
|
emit("scale", {
|
10108
10297
|
scale,
|
@@ -10115,7 +10304,7 @@
|
|
10115
10304
|
};
|
10116
10305
|
const toggleScale = () => {
|
10117
10306
|
const scale = state.scale > 1 ? 1 : 2;
|
10118
|
-
setScale(scale, scale === 2 ? {
|
10307
|
+
setScale(scale, scale === 2 || isLongImage.value ? {
|
10119
10308
|
x: touch.startX.value,
|
10120
10309
|
y: touch.startY.value
|
10121
10310
|
} : void 0);
|
@@ -10145,7 +10334,7 @@
|
|
10145
10334
|
startMoveY = state.moveY;
|
10146
10335
|
touchStartTime = Date.now();
|
10147
10336
|
isImageMoved = false;
|
10148
|
-
state.moving = fingerNum === 1 && state.scale !== 1;
|
10337
|
+
state.moving = fingerNum === 1 && (state.scale !== 1 || isLongImage.value);
|
10149
10338
|
state.zooming = fingerNum === 2 && !offsetX.value;
|
10150
10339
|
if (state.zooming) {
|
10151
10340
|
startScale = state.scale;
|
@@ -10241,12 +10430,34 @@
|
|
10241
10430
|
checkTap();
|
10242
10431
|
touch.reset();
|
10243
10432
|
};
|
10433
|
+
const resize = () => {
|
10434
|
+
const {
|
10435
|
+
rootWidth,
|
10436
|
+
rootHeight
|
10437
|
+
} = props;
|
10438
|
+
const rootRatio = rootHeight / rootWidth;
|
10439
|
+
const {
|
10440
|
+
imageRatio
|
10441
|
+
} = state;
|
10442
|
+
vertical.value = state.imageRatio > rootRatio && imageRatio < longImageRatio;
|
10443
|
+
isLongImage.value = state.imageRatio > rootRatio && imageRatio >= longImageRatio;
|
10444
|
+
if (isLongImage.value) {
|
10445
|
+
initialMoveY = (imageRatio * rootWidth - rootHeight) / 2;
|
10446
|
+
state.moveY = initialMoveY;
|
10447
|
+
state.initializing = true;
|
10448
|
+
raf(() => {
|
10449
|
+
state.initializing = false;
|
10450
|
+
});
|
10451
|
+
}
|
10452
|
+
resetScale();
|
10453
|
+
};
|
10244
10454
|
const onLoad = (event) => {
|
10245
10455
|
const {
|
10246
10456
|
naturalWidth,
|
10247
10457
|
naturalHeight
|
10248
10458
|
} = event.target;
|
10249
10459
|
state.imageRatio = naturalHeight / naturalWidth;
|
10460
|
+
resize();
|
10250
10461
|
};
|
10251
10462
|
vue.watch(() => props.active, resetScale);
|
10252
10463
|
vue.watch(() => props.show, (value) => {
|
@@ -10254,6 +10465,7 @@
|
|
10254
10465
|
resetScale();
|
10255
10466
|
}
|
10256
10467
|
});
|
10468
|
+
vue.watch(() => [props.rootWidth, props.rootHeight], resize);
|
10257
10469
|
useEventListener("touchmove", onTouchMove, {
|
10258
10470
|
target: vue.computed(() => {
|
10259
10471
|
var _a;
|
@@ -11805,7 +12017,7 @@
|
|
11805
12017
|
}
|
11806
12018
|
});
|
11807
12019
|
const PasswordInput = withInstall(stdin_default$A);
|
11808
|
-
const PickerGroup = withInstall(stdin_default$
|
12020
|
+
const PickerGroup = withInstall(stdin_default$1v);
|
11809
12021
|
function getWindow(node) {
|
11810
12022
|
if (node == null) {
|
11811
12023
|
return window;
|
@@ -12752,6 +12964,7 @@
|
|
12752
12964
|
theme: makeStringProp("light"),
|
12753
12965
|
overlay: Boolean,
|
12754
12966
|
actions: makeArrayProp(),
|
12967
|
+
actionsDirection: makeStringProp("vertical"),
|
12755
12968
|
trigger: makeStringProp("click"),
|
12756
12969
|
duration: numericProp,
|
12757
12970
|
showArrow: truthProp,
|
@@ -12855,7 +13068,9 @@
|
|
12855
13068
|
"classPrefix": props.iconPrefix,
|
12856
13069
|
"class": bem$q("action-icon")
|
12857
13070
|
}, null), vue.createVNode("div", {
|
12858
|
-
"class": [bem$q("action-text"),
|
13071
|
+
"class": [bem$q("action-text"), {
|
13072
|
+
[BORDER_BOTTOM]: props.actionsDirection === "vertical"
|
13073
|
+
}]
|
12859
13074
|
}, [action.text])];
|
12860
13075
|
};
|
12861
13076
|
const renderAction = (action, index) => {
|
@@ -12870,7 +13085,9 @@
|
|
12870
13085
|
"class": [bem$q("action", {
|
12871
13086
|
disabled,
|
12872
13087
|
"with-icon": icon
|
12873
|
-
}),
|
13088
|
+
}), {
|
13089
|
+
[BORDER_RIGHT]: props.actionsDirection === "horizontal"
|
13090
|
+
}, className],
|
12874
13091
|
"style": {
|
12875
13092
|
color
|
12876
13093
|
},
|
@@ -12919,7 +13136,7 @@
|
|
12919
13136
|
"class": bem$q("arrow")
|
12920
13137
|
}, null), vue.createVNode("div", {
|
12921
13138
|
"role": "menu",
|
12922
|
-
"class": bem$q("content")
|
13139
|
+
"class": bem$q("content", props.actionsDirection)
|
12923
13140
|
}, [slots.default ? slots.default() : props.actions.map(renderAction)])]
|
12924
13141
|
})]);
|
12925
13142
|
};
|
@@ -13721,6 +13938,7 @@
|
|
13721
13938
|
penColor: makeStringProp("#000"),
|
13722
13939
|
lineWidth: makeNumberProp(3),
|
13723
13940
|
clearButtonText: String,
|
13941
|
+
backgroundColor: makeStringProp(""),
|
13724
13942
|
confirmButtonText: String
|
13725
13943
|
};
|
13726
13944
|
const hasCanvasSupport = () => {
|
@@ -13740,7 +13958,8 @@
|
|
13740
13958
|
const state = vue.reactive({
|
13741
13959
|
width: 0,
|
13742
13960
|
height: 0,
|
13743
|
-
ctx: null
|
13961
|
+
ctx: null,
|
13962
|
+
ratio: inBrowser$1 ? window.devicePixelRatio : 1
|
13744
13963
|
});
|
13745
13964
|
let canvasRect;
|
13746
13965
|
const isRenderCanvas = inBrowser$1 ? hasCanvasSupport() : true;
|
@@ -13749,7 +13968,7 @@
|
|
13749
13968
|
return false;
|
13750
13969
|
}
|
13751
13970
|
state.ctx.beginPath();
|
13752
|
-
state.ctx.lineWidth = props.lineWidth;
|
13971
|
+
state.ctx.lineWidth = props.lineWidth * state.ratio;
|
13753
13972
|
state.ctx.strokeStyle = props.penColor;
|
13754
13973
|
canvasRect = useRect(canvasRef);
|
13755
13974
|
emit("start");
|
@@ -13761,8 +13980,8 @@
|
|
13761
13980
|
}
|
13762
13981
|
preventDefault(event);
|
13763
13982
|
const touch = event.touches[0];
|
13764
|
-
const mouseX = touch.clientX - ((canvasRect == null ? void 0 : canvasRect.left) || 0);
|
13765
|
-
const mouseY = touch.clientY - ((canvasRect == null ? void 0 : canvasRect.top) || 0);
|
13983
|
+
const mouseX = (touch.clientX - ((canvasRect == null ? void 0 : canvasRect.left) || 0)) * state.ratio;
|
13984
|
+
const mouseY = (touch.clientY - ((canvasRect == null ? void 0 : canvasRect.top) || 0)) * state.ratio;
|
13766
13985
|
state.ctx.lineCap = "round";
|
13767
13986
|
state.ctx.lineJoin = "round";
|
13768
13987
|
(_a = state.ctx) == null ? void 0 : _a.lineTo(mouseX, mouseY);
|
@@ -13779,13 +13998,23 @@
|
|
13779
13998
|
empty.height = canvas.height;
|
13780
13999
|
return canvas.toDataURL() === empty.toDataURL();
|
13781
14000
|
};
|
14001
|
+
const setCanvasBgColor = () => {
|
14002
|
+
if (state.ctx && props.backgroundColor) {
|
14003
|
+
state.ctx.fillStyle = props.backgroundColor;
|
14004
|
+
state.ctx.fillRect(0, 0, state.width, state.height);
|
14005
|
+
}
|
14006
|
+
};
|
13782
14007
|
const submit = () => {
|
14008
|
+
var _a, _b;
|
13783
14009
|
const canvas = canvasRef.value;
|
13784
14010
|
if (!canvas) {
|
13785
14011
|
return;
|
13786
14012
|
}
|
13787
14013
|
const isEmpty = isCanvasEmpty(canvas);
|
13788
|
-
const image = isEmpty ? "" :
|
14014
|
+
const image = isEmpty ? "" : ((_b = (_a = {
|
14015
|
+
jpg: () => canvas.toDataURL("image/jpeg", 0.8),
|
14016
|
+
jpeg: () => canvas.toDataURL("image/jpeg", 0.8)
|
14017
|
+
})[props.type]) == null ? void 0 : _b.call(_a)) || canvas.toDataURL(`image/${props.type}`);
|
13789
14018
|
emit("submit", {
|
13790
14019
|
image,
|
13791
14020
|
canvas
|
@@ -13795,6 +14024,7 @@
|
|
13795
14024
|
if (state.ctx) {
|
13796
14025
|
state.ctx.clearRect(0, 0, state.width, state.height);
|
13797
14026
|
state.ctx.closePath();
|
14027
|
+
setCanvasBgColor();
|
13798
14028
|
}
|
13799
14029
|
emit("clear");
|
13800
14030
|
};
|
@@ -13802,8 +14032,11 @@
|
|
13802
14032
|
var _a, _b, _c;
|
13803
14033
|
if (isRenderCanvas) {
|
13804
14034
|
state.ctx = (_a = canvasRef.value) == null ? void 0 : _a.getContext("2d");
|
13805
|
-
state.width = ((_b = wrapRef.value) == null ? void 0 : _b.offsetWidth) || 0;
|
13806
|
-
state.height = ((_c = wrapRef.value) == null ? void 0 : _c.offsetHeight) || 0;
|
14035
|
+
state.width = (((_b = wrapRef.value) == null ? void 0 : _b.offsetWidth) || 0) * state.ratio;
|
14036
|
+
state.height = (((_c = wrapRef.value) == null ? void 0 : _c.offsetHeight) || 0) * state.ratio;
|
14037
|
+
vue.nextTick(() => {
|
14038
|
+
setCanvasBgColor();
|
14039
|
+
});
|
13807
14040
|
}
|
13808
14041
|
});
|
13809
14042
|
return () => vue.createVNode("div", {
|
@@ -14087,6 +14320,14 @@
|
|
14087
14320
|
const diff = Math.round((value - min) / step) * step;
|
14088
14321
|
return addNumber(min, diff);
|
14089
14322
|
};
|
14323
|
+
const updateStartValue = () => {
|
14324
|
+
const current22 = props.modelValue;
|
14325
|
+
if (isRange(current22)) {
|
14326
|
+
startValue = current22.map(format2);
|
14327
|
+
} else {
|
14328
|
+
startValue = format2(current22);
|
14329
|
+
}
|
14330
|
+
};
|
14090
14331
|
const handleRangeValue = (value) => {
|
14091
14332
|
var _a, _b;
|
14092
14333
|
const left2 = (_a = value[0]) != null ? _a : Number(props.min);
|
@@ -14111,6 +14352,7 @@
|
|
14111
14352
|
if (props.disabled || props.readonly) {
|
14112
14353
|
return;
|
14113
14354
|
}
|
14355
|
+
updateStartValue();
|
14114
14356
|
const {
|
14115
14357
|
min,
|
14116
14358
|
reverse,
|
@@ -14150,11 +14392,7 @@
|
|
14150
14392
|
}
|
14151
14393
|
touch.start(event);
|
14152
14394
|
current2 = props.modelValue;
|
14153
|
-
|
14154
|
-
startValue = current2.map(format2);
|
14155
|
-
} else {
|
14156
|
-
startValue = format2(current2);
|
14157
|
-
}
|
14395
|
+
updateStartValue();
|
14158
14396
|
dragStatus.value = "start";
|
14159
14397
|
};
|
14160
14398
|
const onTouchMove = (event) => {
|
@@ -15505,10 +15743,11 @@
|
|
15505
15743
|
imageFit: String,
|
15506
15744
|
lazyLoad: Boolean,
|
15507
15745
|
deletable: Boolean,
|
15746
|
+
reupload: Boolean,
|
15508
15747
|
previewSize: [Number, String, Array],
|
15509
15748
|
beforeDelete: Function
|
15510
15749
|
},
|
15511
|
-
emits: ["delete", "preview"],
|
15750
|
+
emits: ["delete", "preview", "reupload"],
|
15512
15751
|
setup(props, {
|
15513
15752
|
emit,
|
15514
15753
|
slots
|
@@ -15550,6 +15789,7 @@
|
|
15550
15789
|
});
|
15551
15790
|
};
|
15552
15791
|
const onPreview = () => emit("preview");
|
15792
|
+
const onReupload = () => emit("reupload");
|
15553
15793
|
const renderDeleteIcon = () => {
|
15554
15794
|
if (props.deletable && props.item.status !== "uploading") {
|
15555
15795
|
const slot = slots["preview-delete"];
|
@@ -15585,7 +15825,8 @@
|
|
15585
15825
|
item,
|
15586
15826
|
lazyLoad,
|
15587
15827
|
imageFit,
|
15588
|
-
previewSize
|
15828
|
+
previewSize,
|
15829
|
+
reupload
|
15589
15830
|
} = props;
|
15590
15831
|
if (isImageFile(item)) {
|
15591
15832
|
return vue.createVNode(Image$1, {
|
@@ -15595,7 +15836,7 @@
|
|
15595
15836
|
"width": Array.isArray(previewSize) ? previewSize[0] : previewSize,
|
15596
15837
|
"height": Array.isArray(previewSize) ? previewSize[1] : previewSize,
|
15597
15838
|
"lazyLoad": lazyLoad,
|
15598
|
-
"onClick": onPreview
|
15839
|
+
"onClick": reupload ? onReupload : onPreview
|
15599
15840
|
}, {
|
15600
15841
|
default: renderCover
|
15601
15842
|
});
|
@@ -15629,6 +15870,7 @@
|
|
15629
15870
|
uploadIcon: makeStringProp("photograph"),
|
15630
15871
|
uploadText: String,
|
15631
15872
|
deletable: truthProp,
|
15873
|
+
reupload: Boolean,
|
15632
15874
|
afterRead: Function,
|
15633
15875
|
showUpload: truthProp,
|
15634
15876
|
modelValue: makeArrayProp(),
|
@@ -15646,13 +15888,14 @@
|
|
15646
15888
|
var stdin_default$5 = vue.defineComponent({
|
15647
15889
|
name: name$1,
|
15648
15890
|
props: uploaderProps,
|
15649
|
-
emits: ["delete", "oversize", "clickUpload", "closePreview", "clickPreview", "update:modelValue"],
|
15891
|
+
emits: ["delete", "oversize", "clickUpload", "closePreview", "clickPreview", "clickReupload", "update:modelValue"],
|
15650
15892
|
setup(props, {
|
15651
15893
|
emit,
|
15652
15894
|
slots
|
15653
15895
|
}) {
|
15654
15896
|
const inputRef = vue.ref();
|
15655
15897
|
const urls = [];
|
15898
|
+
const reuploadIndex = vue.ref(-1);
|
15656
15899
|
const getDetail = (index = props.modelValue.length) => ({
|
15657
15900
|
name: props.name,
|
15658
15901
|
index
|
@@ -15678,7 +15921,14 @@
|
|
15678
15921
|
}
|
15679
15922
|
}
|
15680
15923
|
items = vue.reactive(items);
|
15681
|
-
|
15924
|
+
if (reuploadIndex.value > -1) {
|
15925
|
+
const arr = [...props.modelValue];
|
15926
|
+
arr.splice(reuploadIndex.value, 1, items);
|
15927
|
+
emit("update:modelValue", arr);
|
15928
|
+
reuploadIndex.value = -1;
|
15929
|
+
} else {
|
15930
|
+
emit("update:modelValue", [...props.modelValue, ...toArray(items)]);
|
15931
|
+
}
|
15682
15932
|
if (props.afterRead) {
|
15683
15933
|
props.afterRead(items, getDetail());
|
15684
15934
|
}
|
@@ -15779,15 +16029,20 @@
|
|
15779
16029
|
emit("update:modelValue", fileList);
|
15780
16030
|
emit("delete", item, getDetail(index));
|
15781
16031
|
};
|
16032
|
+
const reuploadImage = (index) => {
|
16033
|
+
chooseFile();
|
16034
|
+
reuploadIndex.value = index;
|
16035
|
+
};
|
15782
16036
|
const renderPreviewItem = (item, index) => {
|
15783
|
-
const needPickData = ["imageFit", "deletable", "previewSize", "beforeDelete"];
|
16037
|
+
const needPickData = ["imageFit", "deletable", "reupload", "previewSize", "beforeDelete"];
|
15784
16038
|
const previewData = extend(pick(props, needPickData), pick(item, needPickData, true));
|
15785
16039
|
return vue.createVNode(stdin_default$6, vue.mergeProps({
|
15786
16040
|
"item": item,
|
15787
16041
|
"index": index,
|
15788
|
-
"onClick": () => emit("clickPreview", item, getDetail(index)),
|
16042
|
+
"onClick": () => emit(props.reupload ? "clickReupload" : "clickPreview", item, getDetail(index)),
|
15789
16043
|
"onDelete": () => deleteFile(item, index),
|
15790
|
-
"onPreview": () => previewImage(item)
|
16044
|
+
"onPreview": () => previewImage(item),
|
16045
|
+
"onReupload": () => reuploadImage(index)
|
15791
16046
|
}, pick(props, ["name", "lazyLoad"]), previewData), pick(slots, ["preview-cover", "preview-delete"]));
|
15792
16047
|
};
|
15793
16048
|
const renderPreviewList = () => {
|
@@ -15797,24 +16052,25 @@
|
|
15797
16052
|
};
|
15798
16053
|
const onClickUpload = (event) => emit("clickUpload", event);
|
15799
16054
|
const renderUpload = () => {
|
15800
|
-
if (props.modelValue.length >= +props.maxCount) {
|
16055
|
+
if (props.modelValue.length >= +props.maxCount && !props.reupload) {
|
15801
16056
|
return;
|
15802
16057
|
}
|
16058
|
+
const hideUploader = props.modelValue.length >= +props.maxCount && props.reupload;
|
15803
16059
|
const Input = props.readonly ? null : vue.createVNode("input", {
|
15804
16060
|
"ref": inputRef,
|
15805
16061
|
"type": "file",
|
15806
16062
|
"class": bem$1("input"),
|
15807
16063
|
"accept": props.accept,
|
15808
16064
|
"capture": props.capture,
|
15809
|
-
"multiple": props.multiple,
|
16065
|
+
"multiple": props.multiple && reuploadIndex.value === -1,
|
15810
16066
|
"disabled": props.disabled,
|
15811
16067
|
"onChange": onChange
|
15812
16068
|
}, null);
|
15813
16069
|
if (slots.default) {
|
15814
|
-
return vue.createVNode("div", {
|
16070
|
+
return vue.withDirectives(vue.createVNode("div", {
|
15815
16071
|
"class": bem$1("input-wrapper"),
|
15816
16072
|
"onClick": onClickUpload
|
15817
|
-
}, [slots.default(), Input]);
|
16073
|
+
}, [slots.default(), Input]), [[vue.vShow, !hideUploader]]);
|
15818
16074
|
}
|
15819
16075
|
return vue.withDirectives(vue.createVNode("div", {
|
15820
16076
|
"class": bem$1("upload", {
|
@@ -15827,7 +16083,7 @@
|
|
15827
16083
|
"class": bem$1("upload-icon")
|
15828
16084
|
}, null), props.uploadText && vue.createVNode("span", {
|
15829
16085
|
"class": bem$1("upload-text")
|
15830
|
-
}, [props.uploadText]), Input]), [[vue.vShow, props.showUpload]]);
|
16086
|
+
}, [props.uploadText]), Input]), [[vue.vShow, props.showUpload && !hideUploader]]);
|
15831
16087
|
};
|
15832
16088
|
const chooseFile = () => {
|
15833
16089
|
if (inputRef.value && !props.disabled) {
|
@@ -16837,7 +17093,7 @@
|
|
16837
17093
|
});
|
16838
17094
|
}
|
16839
17095
|
};
|
16840
|
-
const version = "4.
|
17096
|
+
const version = "4.4.1";
|
16841
17097
|
function install(app) {
|
16842
17098
|
const components = [
|
16843
17099
|
ActionBar,
|
@@ -16849,6 +17105,7 @@
|
|
16849
17105
|
Area,
|
16850
17106
|
BackTop,
|
16851
17107
|
Badge,
|
17108
|
+
Barrage,
|
16852
17109
|
Button,
|
16853
17110
|
Calendar,
|
16854
17111
|
Card,
|
@@ -16958,6 +17215,7 @@
|
|
16958
17215
|
exports2.Area = Area;
|
16959
17216
|
exports2.BackTop = BackTop;
|
16960
17217
|
exports2.Badge = Badge;
|
17218
|
+
exports2.Barrage = Barrage;
|
16961
17219
|
exports2.Button = Button;
|
16962
17220
|
exports2.Calendar = Calendar;
|
16963
17221
|
exports2.Card = Card;
|
@@ -17057,6 +17315,7 @@
|
|
17057
17315
|
exports2.areaProps = areaProps;
|
17058
17316
|
exports2.backTopProps = backTopProps;
|
17059
17317
|
exports2.badgeProps = badgeProps;
|
17318
|
+
exports2.barrageProps = barrageProps;
|
17060
17319
|
exports2.buttonProps = buttonProps;
|
17061
17320
|
exports2.calendarProps = calendarProps;
|
17062
17321
|
exports2.cardProps = cardProps;
|