vant 4.4.0 → 4.5.0
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/AddressEditDetail.d.ts +1 -1
- package/es/address-edit/index.d.ts +1 -1
- package/es/address-list/AddressList.d.ts +14 -1
- package/es/address-list/AddressList.mjs +4 -2
- package/es/address-list/AddressListItem.d.ts +10 -1
- package/es/address-list/AddressListItem.mjs +4 -3
- package/es/address-list/index.d.ts +10 -1
- package/es/area/Area.d.ts +1 -1
- package/es/area/index.d.ts +1 -1
- package/es/back-top/BackTop.d.ts +1 -1
- package/es/back-top/BackTop.mjs +14 -1
- package/es/back-top/index.d.ts +1 -1
- package/es/badge/Badge.d.ts +1 -1
- package/es/badge/index.d.ts +1 -1
- package/es/barrage/Barrage.d.ts +1 -1
- package/es/barrage/index.d.ts +1 -1
- 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/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/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 +4 -4
- package/es/date-picker/index.d.ts +3 -3
- package/es/date-picker/utils.d.ts +4 -2
- package/es/date-picker/utils.mjs +8 -3
- package/es/dialog/Dialog.d.ts +1 -1
- package/es/dialog/index.d.ts +1 -1
- package/es/divider/Divider.d.ts +1 -1
- package/es/divider/index.d.ts +1 -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/DropdownMenu.mjs +10 -3
- package/es/dropdown-menu/index.d.ts +1 -1
- package/es/dropdown-menu/types.d.ts +5 -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/floating-panel/FloatingPanel.d.ts +77 -0
- package/es/floating-panel/FloatingPanel.mjs +126 -0
- package/es/floating-panel/index.css +1 -0
- package/es/floating-panel/index.d.ts +60 -0
- package/es/floating-panel/index.mjs +8 -0
- package/es/floating-panel/style/index.d.ts +1 -0
- package/es/floating-panel/style/index.mjs +2 -0
- 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 +9 -3
- 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 +1 -1
- package/es/notice-bar/index.d.ts +1 -1
- 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 +1 -1
- package/es/signature/index.d.ts +1 -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 +20 -7
- 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 +32 -5
- package/es/time-picker/TimePicker.mjs +73 -21
- package/es/time-picker/index.d.ts +21 -3
- 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 +1 -1
- package/es/uploader/UploaderPreviewItem.d.ts +1 -1
- package/es/uploader/index.d.ts +1 -1
- package/es/utils/basic.d.ts +3 -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/AddressEditDetail.d.ts +1 -1
- package/lib/address-edit/index.d.ts +1 -1
- package/lib/address-list/AddressList.d.ts +14 -1
- package/lib/address-list/AddressList.js +3 -1
- package/lib/address-list/AddressListItem.d.ts +10 -1
- package/lib/address-list/AddressListItem.js +3 -2
- package/lib/address-list/index.d.ts +10 -1
- package/lib/area/Area.d.ts +1 -1
- package/lib/area/index.d.ts +1 -1
- package/lib/back-top/BackTop.d.ts +1 -1
- package/lib/back-top/BackTop.js +13 -0
- package/lib/back-top/index.d.ts +1 -1
- package/lib/badge/Badge.d.ts +1 -1
- package/lib/badge/index.d.ts +1 -1
- package/lib/barrage/Barrage.d.ts +1 -1
- package/lib/barrage/index.d.ts +1 -1
- 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/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/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 +4 -4
- package/lib/date-picker/index.d.ts +3 -3
- package/lib/date-picker/utils.d.ts +4 -2
- package/lib/date-picker/utils.js +2 -2
- package/lib/dialog/Dialog.d.ts +1 -1
- package/lib/dialog/index.d.ts +1 -1
- package/lib/divider/Divider.d.ts +1 -1
- package/lib/divider/index.d.ts +1 -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/DropdownMenu.js +10 -3
- package/lib/dropdown-menu/index.d.ts +1 -1
- package/lib/dropdown-menu/types.d.ts +5 -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/floating-panel/FloatingPanel.d.ts +77 -0
- package/lib/floating-panel/FloatingPanel.js +145 -0
- package/lib/floating-panel/index.css +1 -0
- package/lib/floating-panel/index.d.ts +60 -0
- package/lib/floating-panel/index.js +37 -0
- package/lib/floating-panel/style/index.d.ts +1 -0
- package/lib/floating-panel/style/index.js +2 -0
- 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 +8 -2
- 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 +1 -1
- package/lib/notice-bar/index.d.ts +1 -1
- 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 +1 -1
- package/lib/signature/index.d.ts +1 -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 +20 -7
- 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 +32 -5
- package/lib/time-picker/TimePicker.js +84 -32
- package/lib/time-picker/index.d.ts +21 -3
- 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 +1 -1
- package/lib/uploader/UploaderPreviewItem.d.ts +1 -1
- package/lib/uploader/index.d.ts +1 -1
- package/lib/utils/basic.d.ts +3 -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 +818 -583
- package/lib/vant.es.js +819 -584
- package/lib/vant.js +839 -579
- 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
@@ -502,7 +502,7 @@
|
|
502
502
|
const parentHidden = el.offsetParent === null && style.position !== "fixed";
|
503
503
|
return hidden || parentHidden;
|
504
504
|
}
|
505
|
-
const { width: windowWidth, height: windowHeight } = useWindowSize();
|
505
|
+
const { width: windowWidth, height: windowHeight$1 } = useWindowSize();
|
506
506
|
function addUnit(value) {
|
507
507
|
if (isDef(value)) {
|
508
508
|
return isNumeric(value) ? `${value}px` : String(value);
|
@@ -550,7 +550,7 @@
|
|
550
550
|
}
|
551
551
|
function convertVh(value) {
|
552
552
|
value = value.replace(/vh/g, "");
|
553
|
-
return +value * windowHeight.value / 100;
|
553
|
+
return +value * windowHeight$1.value / 100;
|
554
554
|
}
|
555
555
|
function unitToPx(value) {
|
556
556
|
if (typeof value === "number") {
|
@@ -626,7 +626,7 @@
|
|
626
626
|
});
|
627
627
|
return to;
|
628
628
|
}
|
629
|
-
var stdin_default$
|
629
|
+
var stdin_default$1R = {
|
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$1R
|
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$1Q = 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$1Q.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`;
|
@@ -819,7 +820,7 @@
|
|
819
820
|
}
|
820
821
|
});
|
821
822
|
onPopupReopen(() => vue.nextTick(setHeight));
|
822
|
-
vue.watch([windowWidth, windowHeight], setHeight);
|
823
|
+
vue.watch([windowWidth, windowHeight$1], setHeight);
|
823
824
|
return height2;
|
824
825
|
};
|
825
826
|
function usePlaceholder(contentRef, bem2) {
|
@@ -831,20 +832,20 @@
|
|
831
832
|
}
|
832
833
|
}, [renderContent()]);
|
833
834
|
}
|
834
|
-
const [name$
|
835
|
-
const ACTION_BAR_KEY = Symbol(name$
|
835
|
+
const [name$1G, bem$1B] = createNamespace("action-bar");
|
836
|
+
const ACTION_BAR_KEY = Symbol(name$1G);
|
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$1P = vue.defineComponent({
|
842
|
+
name: name$1G,
|
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$1B);
|
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$1B(), {
|
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$1P);
|
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$1F, bem$1A] = 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$1O = vue.defineComponent({
|
910
|
+
name: name$1F,
|
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$1A([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$1A("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$1O);
|
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$1E, bem$1z] = createNamespace("config-provider");
|
1003
|
+
const CONFIG_PROVIDER_KEY = Symbol(name$1E);
|
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$1N = vue.defineComponent({
|
1021
|
+
name: name$1E,
|
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$1z(),
|
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$1D, bem$1y] = 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$1M = vue.defineComponent({
|
1076
|
+
name: name$1D,
|
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$1y());
|
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$1y("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$1M);
|
1115
|
+
const [name$1C, bem$1x] = createNamespace("loading");
|
1115
1116
|
const SpinIcon = Array(12).fill(null).map((_, index) => vue.createVNode("i", {
|
1116
|
-
"class": bem$
|
1117
|
+
"class": bem$1x("line", String(index + 1))
|
1117
1118
|
}, null));
|
1118
1119
|
const CircularIcon = vue.createVNode("svg", {
|
1119
|
-
"class": bem$
|
1120
|
+
"class": bem$1x("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$1L = vue.defineComponent({
|
1137
|
+
name: name$1C,
|
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$1x("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$1x("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$1x([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$1L);
|
1180
|
+
const [name$1B, bem$1w] = 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$1K = vue.defineComponent({
|
1203
|
+
name: name$1B,
|
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$1w("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$1w("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$1w("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$1w("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$1w([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$1w("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$1K);
|
1320
|
+
const [name$1A, bem$1v] = 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$1J = vue.defineComponent({
|
1330
|
+
name: name$1A,
|
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$1v([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$1J);
|
1383
|
+
const [name$1z, bem$1u] = 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$1I = vue.defineComponent({
|
1395
|
+
name: name$1z,
|
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$1u("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$1u("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$1u(),
|
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$1I);
|
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$1y, bem$1t] = 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$1H = vue.defineComponent({
|
1602
|
+
name: name$1y,
|
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$1t(), 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$1H);
|
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$1x, bem$1s] = createNamespace("popup");
|
1651
|
+
var stdin_default$1G = vue.defineComponent({
|
1652
|
+
name: name$1x,
|
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$1s("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$1s({
|
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$1G);
|
1837
|
+
const [name$1w, bem$1r] = 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$1F = vue.defineComponent({
|
1852
|
+
name: name$1w,
|
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$1r("header")
|
1860
1868
|
}, [props.title, props.closeable && vue.createVNode(Icon, {
|
1861
1869
|
"name": props.closeIcon,
|
1862
|
-
"class": [bem$
|
1870
|
+
"class": [bem$1r("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$1r("gap")
|
1871
1879
|
}, null), vue.createVNode("button", {
|
1872
1880
|
"type": "button",
|
1873
|
-
"class": bem$
|
1881
|
+
"class": bem$1r("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$1r("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$1r("name")
|
1892
1900
|
}, [action.name]), action.subname && vue.createVNode("div", {
|
1893
|
-
"class": bem$
|
1901
|
+
"class": bem$1r("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$1r("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$1r("description")
|
1933
1941
|
}, [content]);
|
1934
1942
|
}
|
1935
1943
|
};
|
1936
1944
|
return () => vue.createVNode(Popup, vue.mergeProps({
|
1937
|
-
"class": bem$
|
1945
|
+
"class": bem$1r(),
|
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$1r("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$1F);
|
1959
|
+
const [name$1v, bem$1q, 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$1u, bem$1p] = createNamespace("picker-column");
|
2029
|
+
const PICKER_KEY = Symbol(name$1u);
|
2030
|
+
var stdin_default$1E = vue.defineComponent({
|
2031
|
+
name: name$1u,
|
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$1p("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$1p(),
|
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$1p("wrapper"),
|
2202
2210
|
"onTransitionend": stopMomentum
|
2203
2211
|
}, [renderOptions()])]);
|
2204
2212
|
}
|
2205
2213
|
});
|
2206
|
-
const [name$
|
2214
|
+
const [name$1t] = 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$1D = vue.defineComponent({
|
2223
|
+
name: name$1t,
|
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$1q("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$1q("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$1q("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$1q("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$1s, bem$1o] = 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$1C = vue.defineComponent({
|
2399
|
+
name: name$1s,
|
2366
2400
|
props: stickyProps,
|
2367
2401
|
emits: ["scroll", "change"],
|
2368
2402
|
setup(props, {
|
@@ -2457,7 +2491,7 @@
|
|
2457
2491
|
passive: true
|
2458
2492
|
});
|
2459
2493
|
useVisibilityChange(root, onScroll);
|
2460
|
-
vue.watch([windowWidth, windowHeight], () => {
|
2494
|
+
vue.watch([windowWidth, windowHeight$1], () => {
|
2461
2495
|
if (!root.value || isHidden(root) || !state.fixed) {
|
2462
2496
|
return;
|
2463
2497
|
}
|
@@ -2475,7 +2509,7 @@
|
|
2475
2509
|
"ref": root,
|
2476
2510
|
"style": rootStyle.value
|
2477
2511
|
}, [vue.createVNode("div", {
|
2478
|
-
"class": bem$
|
2512
|
+
"class": bem$1o({
|
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$1C);
|
2521
|
+
const [name$1r, bem$1n] = 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$1r);
|
2537
|
+
var stdin_default$1B = vue.defineComponent({
|
2538
|
+
name: name$1r,
|
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$1n("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$1n("indicators", {
|
2797
2831
|
vertical: props.vertical
|
2798
2832
|
})
|
2799
2833
|
}, [Array(count.value).fill("").map(renderDot)]);
|
@@ -2815,7 +2849,7 @@
|
|
2815
2849
|
vue.watch(() => props.initialSwipe, (value) => initialize(+value));
|
2816
2850
|
vue.watch(count, () => initialize(state.active));
|
2817
2851
|
vue.watch(() => props.autoplay, autoplay);
|
2818
|
-
vue.watch([windowWidth, windowHeight, () => props.width, () => props.height], resize);
|
2852
|
+
vue.watch([windowWidth, windowHeight$1, () => props.width, () => props.height], resize);
|
2819
2853
|
vue.watch(usePageVisibility(), (visible) => {
|
2820
2854
|
if (visible === "visible") {
|
2821
2855
|
autoplay();
|
@@ -2835,11 +2869,11 @@
|
|
2835
2869
|
var _a;
|
2836
2870
|
return vue.createVNode("div", {
|
2837
2871
|
"ref": root,
|
2838
|
-
"class": bem$
|
2872
|
+
"class": bem$1n()
|
2839
2873
|
}, [vue.createVNode("div", {
|
2840
2874
|
"ref": track,
|
2841
2875
|
"style": trackStyle.value,
|
2842
|
-
"class": bem$
|
2876
|
+
"class": bem$1n("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$1B);
|
2887
|
+
const [name$1q, bem$1m] = createNamespace("tabs");
|
2888
|
+
var stdin_default$1A = vue.defineComponent({
|
2889
|
+
name: name$1q,
|
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$1m("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$1m("content", {
|
2908
2942
|
animated: props.animated || props.swipeable
|
2909
2943
|
})
|
2910
2944
|
}, [renderChildren()]);
|
2911
2945
|
}
|
2912
2946
|
});
|
2913
|
-
const [name$
|
2947
|
+
const [name$1p, bem$1l] = 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$1p);
|
2971
|
+
var stdin_default$1z = vue.defineComponent({
|
2972
|
+
name: name$1p,
|
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$1l("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$1l("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$1l("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$1l([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$1A, {
|
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$1o, bem$1k] = createNamespace("tab");
|
3257
3291
|
const TabTitle = vue.defineComponent({
|
3258
|
-
name: name$
|
3292
|
+
name: name$1o,
|
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$1k("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$1k([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$1n, bem$1j] = createNamespace("swipe-item");
|
3374
|
+
var stdin_default$1y = vue.defineComponent({
|
3375
|
+
name: name$1n,
|
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$1j(),
|
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$1y);
|
3444
|
+
const [name$1m, bem$1i] = 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$1x = vue.defineComponent({
|
3456
|
+
name: name$1m,
|
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$1i("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$1i("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$1i("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$1x);
|
3579
|
+
const Tabs = withInstall(stdin_default$1z);
|
3580
|
+
const [name$1l, bem$1h] = createNamespace("picker-group");
|
3581
|
+
const PICKER_GROUP_KEY = Symbol(name$1l);
|
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$1w = vue.defineComponent({
|
3588
|
+
name: name$1l,
|
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$1h()
|
3616
|
+
}, [vue.createVNode(stdin_default$1D, {
|
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$1h("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$1h("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$1v = vue.defineComponent({
|
3656
|
+
name: name$1v,
|
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$1E, {
|
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$1q("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$1q("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$1q("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$1D, 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$1q()
|
3787
3831
|
}, [props.toolbarPosition === "top" ? renderToolbar() : null, props.loading ? vue.createVNode(Loading, {
|
3788
|
-
"class": bem$
|
3832
|
+
"class": bem$1q("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,8 +3920,8 @@
|
|
3876
3920
|
}
|
3877
3921
|
return options;
|
3878
3922
|
}
|
3879
|
-
const Picker = withInstall(stdin_default$
|
3880
|
-
const [name$
|
3923
|
+
const Picker = withInstall(stdin_default$1v);
|
3924
|
+
const [name$1k, bem$1g] = createNamespace("area");
|
3881
3925
|
const areaProps = extend({}, pick(pickerSharedProps, INHERIT_PROPS), {
|
3882
3926
|
modelValue: String,
|
3883
3927
|
columnsNum: makeNumericProp(3),
|
@@ -3887,8 +3931,8 @@
|
|
3887
3931
|
default: () => ({})
|
3888
3932
|
}
|
3889
3933
|
});
|
3890
|
-
var stdin_default$
|
3891
|
-
name: name$
|
3934
|
+
var stdin_default$1u = vue.defineComponent({
|
3935
|
+
name: name$1k,
|
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$1g(),
|
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$1u);
|
3991
|
+
const [name$1j, bem$1f] = 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$1t = vue.defineComponent({
|
4016
|
+
name: name$1j,
|
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$1f("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$1f("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$1f("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$1f("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$1f("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$1f(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$1t);
|
4111
|
+
const [name$1i, bem$1e] = 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$1s = vue.defineComponent({
|
4131
|
+
name: name$1i,
|
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$1e(),
|
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$1s);
|
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$1h, bem$1d] = 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$1r = vue.defineComponent({
|
4400
|
+
name: name$1h,
|
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$1d("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$1d("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$1d("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$1d("word-limit")
|
4697
4741
|
}, [vue.createVNode("span", {
|
4698
|
-
"class": bem$
|
4742
|
+
"class": bem$1d("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$1d("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$1d("body")
|
4740
4784
|
}, [renderInput(), showClear.value && vue.createVNode(Icon, {
|
4741
4785
|
"ref": clearIconRef,
|
4742
4786
|
"name": props.clearIcon,
|
4743
|
-
"class": bem$
|
4787
|
+
"class": bem$1d("clear")
|
4744
4788
|
}, null), renderRightIcon(), slots.button && vue.createVNode("div", {
|
4745
|
-
"class": bem$
|
4789
|
+
"class": bem$1d("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$1d({
|
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$1d("value"),
|
4844
|
+
"titleClass": [bem$1d("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$1r);
|
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$1g, bem$1c] = 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$1q = vue.defineComponent({
|
4896
|
+
name: name$1g,
|
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$1c("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$1c("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$1c("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$1c("text"),
|
4914
4958
|
"innerHTML": String(message)
|
4915
4959
|
}, null) : vue.createVNode("div", {
|
4916
|
-
"class": bem$
|
4960
|
+
"class": bem$1c("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$1c([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$1q, 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$1q);
|
5148
|
+
const [name$1f, bem$1b] = 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$1p = vue.defineComponent({
|
5166
|
+
name: name$1f,
|
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$1b("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$1b({
|
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$1b("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$1p);
|
5226
|
+
const [name$1e, bem$1a] = createNamespace("address-edit-detail");
|
5183
5227
|
const t$j = createNamespace("address-edit")[2];
|
5184
|
-
var stdin_default$
|
5185
|
-
name: name$
|
5228
|
+
var stdin_default$1o = vue.defineComponent({
|
5229
|
+
name: name$1e,
|
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$1a("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$1a(),
|
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$1d, bem$19, 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$1n = vue.defineComponent({
|
5335
|
+
name: name$1d,
|
5292
5336
|
props: addressEditProps,
|
5293
5337
|
emits: ["save", "focus", "delete", "clickArea", "changeArea", "changeDetail", "selectSearch", "changeDefault"],
|
5294
5338
|
setup(props, {
|
@@ -5400,7 +5444,7 @@
|
|
5400
5444
|
"center": true,
|
5401
5445
|
"border": false,
|
5402
5446
|
"title": t$i("defaultAddress"),
|
5403
|
-
"class": bem$
|
5447
|
+
"class": bem$19("default")
|
5404
5448
|
}, slots2), [[vue.vShow, !hideBottomFields.value]]);
|
5405
5449
|
}
|
5406
5450
|
};
|
@@ -5426,13 +5470,13 @@
|
|
5426
5470
|
disableArea
|
5427
5471
|
} = props;
|
5428
5472
|
return vue.createVNode(Form, {
|
5429
|
-
"class": bem$
|
5473
|
+
"class": bem$19(),
|
5430
5474
|
"onSubmit": onSave
|
5431
5475
|
}, {
|
5432
5476
|
default: () => {
|
5433
5477
|
var _a;
|
5434
5478
|
return [vue.createVNode("div", {
|
5435
|
-
"class": bem$
|
5479
|
+
"class": bem$19("fields")
|
5436
5480
|
}, [vue.createVNode(Field, {
|
5437
5481
|
"modelValue": data.name,
|
5438
5482
|
"onUpdate:modelValue": ($event) => data.name = $event,
|
@@ -5463,7 +5507,7 @@
|
|
5463
5507
|
emit("clickArea");
|
5464
5508
|
showAreaPopup.value = !disableArea;
|
5465
5509
|
}
|
5466
|
-
}, null), [[vue.vShow, props.showArea]]), vue.createVNode(stdin_default$
|
5510
|
+
}, null), [[vue.vShow, props.showArea]]), vue.createVNode(stdin_default$1o, {
|
5467
5511
|
"show": props.showDetail,
|
5468
5512
|
"rows": props.detailRows,
|
5469
5513
|
"rules": rules.value.addressDetail,
|
@@ -5477,19 +5521,19 @@
|
|
5477
5521
|
"onInput": onChangeDetail,
|
5478
5522
|
"onSelectSearch": (event) => emit("selectSearch", event)
|
5479
5523
|
}, null), (_a = slots.default) == null ? void 0 : _a.call(slots)]), renderSetDefaultCell(), vue.withDirectives(vue.createVNode("div", {
|
5480
|
-
"class": bem$
|
5524
|
+
"class": bem$19("buttons")
|
5481
5525
|
}, [vue.createVNode(Button, {
|
5482
5526
|
"block": true,
|
5483
5527
|
"round": true,
|
5484
5528
|
"type": "primary",
|
5485
5529
|
"text": props.saveButtonText || t$i("save"),
|
5486
|
-
"class": bem$
|
5530
|
+
"class": bem$19("button"),
|
5487
5531
|
"loading": props.isSaving,
|
5488
5532
|
"nativeType": "submit"
|
5489
5533
|
}, null), props.showDelete && vue.createVNode(Button, {
|
5490
5534
|
"block": true,
|
5491
5535
|
"round": true,
|
5492
|
-
"class": bem$
|
5536
|
+
"class": bem$19("button"),
|
5493
5537
|
"loading": props.isDeleting,
|
5494
5538
|
"text": props.deleteButtonText || t$i("delete"),
|
5495
5539
|
"onClick": onDelete
|
@@ -5519,8 +5563,8 @@
|
|
5519
5563
|
};
|
5520
5564
|
}
|
5521
5565
|
});
|
5522
|
-
const AddressEdit = withInstall(stdin_default$
|
5523
|
-
const [name$
|
5566
|
+
const AddressEdit = withInstall(stdin_default$1n);
|
5567
|
+
const [name$1c, bem$18] = createNamespace("radio-group");
|
5524
5568
|
const radioGroupProps = {
|
5525
5569
|
disabled: Boolean,
|
5526
5570
|
iconSize: numericProp,
|
@@ -5528,9 +5572,9 @@
|
|
5528
5572
|
modelValue: unknownProp,
|
5529
5573
|
checkedColor: String
|
5530
5574
|
};
|
5531
|
-
const RADIO_KEY = Symbol(name$
|
5532
|
-
var stdin_default$
|
5533
|
-
name: name$
|
5575
|
+
const RADIO_KEY = Symbol(name$1c);
|
5576
|
+
var stdin_default$1m = vue.defineComponent({
|
5577
|
+
name: name$1c,
|
5534
5578
|
props: radioGroupProps,
|
5535
5579
|
emits: ["change", "update:modelValue"],
|
5536
5580
|
setup(props, {
|
@@ -5550,14 +5594,14 @@
|
|
5550
5594
|
return () => {
|
5551
5595
|
var _a;
|
5552
5596
|
return vue.createVNode("div", {
|
5553
|
-
"class": bem$
|
5597
|
+
"class": bem$18([props.direction]),
|
5554
5598
|
"role": "radiogroup"
|
5555
5599
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
5556
5600
|
};
|
5557
5601
|
}
|
5558
5602
|
});
|
5559
|
-
const RadioGroup = withInstall(stdin_default$
|
5560
|
-
const [name$
|
5603
|
+
const RadioGroup = withInstall(stdin_default$1m);
|
5604
|
+
const [name$1b, bem$17] = createNamespace("tag");
|
5561
5605
|
const tagProps = {
|
5562
5606
|
size: String,
|
5563
5607
|
mark: Boolean,
|
@@ -5569,8 +5613,8 @@
|
|
5569
5613
|
textColor: String,
|
5570
5614
|
closeable: Boolean
|
5571
5615
|
};
|
5572
|
-
var stdin_default$
|
5573
|
-
name: name$
|
5616
|
+
var stdin_default$1l = vue.defineComponent({
|
5617
|
+
name: name$1b,
|
5574
5618
|
props: tagProps,
|
5575
5619
|
emits: ["close"],
|
5576
5620
|
setup(props, {
|
@@ -5613,12 +5657,12 @@
|
|
5613
5657
|
}
|
5614
5658
|
const CloseIcon = closeable && vue.createVNode(Icon, {
|
5615
5659
|
"name": "cross",
|
5616
|
-
"class": [bem$
|
5660
|
+
"class": [bem$17("close"), HAPTICS_FEEDBACK],
|
5617
5661
|
"onClick": onClose
|
5618
5662
|
}, null);
|
5619
5663
|
return vue.createVNode("span", {
|
5620
5664
|
"style": getStyle(),
|
5621
|
-
"class": bem$
|
5665
|
+
"class": bem$17([classes, type])
|
5622
5666
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots), CloseIcon]);
|
5623
5667
|
};
|
5624
5668
|
return () => vue.createVNode(vue.Transition, {
|
@@ -5628,7 +5672,7 @@
|
|
5628
5672
|
});
|
5629
5673
|
}
|
5630
5674
|
});
|
5631
|
-
const Tag = withInstall(stdin_default$
|
5675
|
+
const Tag = withInstall(stdin_default$1l);
|
5632
5676
|
const checkerProps = {
|
5633
5677
|
name: unknownProp,
|
5634
5678
|
shape: makeStringProp("round"),
|
@@ -5639,7 +5683,7 @@
|
|
5639
5683
|
labelPosition: String,
|
5640
5684
|
labelDisabled: Boolean
|
5641
5685
|
};
|
5642
|
-
var stdin_default$
|
5686
|
+
var stdin_default$1k = vue.defineComponent({
|
5643
5687
|
props: extend({}, checkerProps, {
|
5644
5688
|
bem: makeRequiredProp(Function),
|
5645
5689
|
role: String,
|
@@ -5741,9 +5785,9 @@
|
|
5741
5785
|
}
|
5742
5786
|
});
|
5743
5787
|
const radioProps = checkerProps;
|
5744
|
-
const [name$
|
5745
|
-
var stdin_default$
|
5746
|
-
name: name$
|
5788
|
+
const [name$1a, bem$16] = createNamespace("radio");
|
5789
|
+
var stdin_default$1j = vue.defineComponent({
|
5790
|
+
name: name$1a,
|
5747
5791
|
props: checkerProps,
|
5748
5792
|
emits: ["update:modelValue"],
|
5749
5793
|
setup(props, {
|
@@ -5764,8 +5808,8 @@
|
|
5764
5808
|
emit("update:modelValue", props.name);
|
5765
5809
|
}
|
5766
5810
|
};
|
5767
|
-
return () => vue.createVNode(stdin_default$
|
5768
|
-
"bem": bem$
|
5811
|
+
return () => vue.createVNode(stdin_default$1k, vue.mergeProps({
|
5812
|
+
"bem": bem$16,
|
5769
5813
|
"role": "radio",
|
5770
5814
|
"parent": parent,
|
5771
5815
|
"checked": checked(),
|
@@ -5773,15 +5817,16 @@
|
|
5773
5817
|
}, props), pick(slots, ["default", "icon"]));
|
5774
5818
|
}
|
5775
5819
|
});
|
5776
|
-
const Radio = withInstall(stdin_default$
|
5777
|
-
const [name$
|
5778
|
-
var stdin_default$
|
5779
|
-
name: name$
|
5820
|
+
const Radio = withInstall(stdin_default$1j);
|
5821
|
+
const [name$19, bem$15] = createNamespace("address-item");
|
5822
|
+
var stdin_default$1i = vue.defineComponent({
|
5823
|
+
name: name$19,
|
5780
5824
|
props: {
|
5781
5825
|
address: makeRequiredProp(Object),
|
5782
5826
|
disabled: Boolean,
|
5783
5827
|
switchable: Boolean,
|
5784
|
-
defaultTagText: String
|
5828
|
+
defaultTagText: String,
|
5829
|
+
rightIcon: makeStringProp("edit")
|
5785
5830
|
},
|
5786
5831
|
emits: ["edit", "click", "select"],
|
5787
5832
|
setup(props, {
|
@@ -5795,8 +5840,8 @@
|
|
5795
5840
|
emit("click");
|
5796
5841
|
};
|
5797
5842
|
const renderRightIcon = () => vue.createVNode(Icon, {
|
5798
|
-
"name":
|
5799
|
-
"class": bem$
|
5843
|
+
"name": props.rightIcon,
|
5844
|
+
"class": bem$15("edit"),
|
5800
5845
|
"onClick": (event) => {
|
5801
5846
|
event.stopPropagation();
|
5802
5847
|
emit("edit");
|
@@ -5811,7 +5856,7 @@
|
|
5811
5856
|
return vue.createVNode(Tag, {
|
5812
5857
|
"type": "primary",
|
5813
5858
|
"round": true,
|
5814
|
-
"class": bem$
|
5859
|
+
"class": bem$15("tag")
|
5815
5860
|
}, {
|
5816
5861
|
default: () => [props.defaultTagText]
|
5817
5862
|
});
|
@@ -5824,9 +5869,9 @@
|
|
5824
5869
|
switchable
|
5825
5870
|
} = props;
|
5826
5871
|
const Info = [vue.createVNode("div", {
|
5827
|
-
"class": bem$
|
5872
|
+
"class": bem$15("name")
|
5828
5873
|
}, [`${address.name} ${address.tel}`, renderTag()]), vue.createVNode("div", {
|
5829
|
-
"class": bem$
|
5874
|
+
"class": bem$15("address")
|
5830
5875
|
}, [address.address])];
|
5831
5876
|
if (switchable && !disabled) {
|
5832
5877
|
return vue.createVNode(Radio, {
|
@@ -5844,13 +5889,13 @@
|
|
5844
5889
|
disabled
|
5845
5890
|
} = props;
|
5846
5891
|
return vue.createVNode("div", {
|
5847
|
-
"class": bem$
|
5892
|
+
"class": bem$15({
|
5848
5893
|
disabled
|
5849
5894
|
}),
|
5850
5895
|
"onClick": onClick
|
5851
5896
|
}, [vue.createVNode(Cell, {
|
5852
5897
|
"border": false,
|
5853
|
-
"titleClass": bem$
|
5898
|
+
"titleClass": bem$15("title")
|
5854
5899
|
}, {
|
5855
5900
|
title: renderContent,
|
5856
5901
|
"right-icon": renderRightIcon
|
@@ -5860,7 +5905,7 @@
|
|
5860
5905
|
};
|
5861
5906
|
}
|
5862
5907
|
});
|
5863
|
-
const [name$
|
5908
|
+
const [name$18, bem$14, t$h] = createNamespace("address-list");
|
5864
5909
|
const addressListProps = {
|
5865
5910
|
list: makeArrayProp(),
|
5866
5911
|
modelValue: numericProp,
|
@@ -5868,10 +5913,11 @@
|
|
5868
5913
|
disabledText: String,
|
5869
5914
|
disabledList: makeArrayProp(),
|
5870
5915
|
addButtonText: String,
|
5871
|
-
defaultTagText: String
|
5916
|
+
defaultTagText: String,
|
5917
|
+
rightIcon: makeStringProp("edit")
|
5872
5918
|
};
|
5873
|
-
var stdin_default$
|
5874
|
-
name: name$
|
5919
|
+
var stdin_default$1h = vue.defineComponent({
|
5920
|
+
name: name$18,
|
5875
5921
|
props: addressListProps,
|
5876
5922
|
emits: ["add", "edit", "select", "clickItem", "editDisabled", "selectDisabled", "update:modelValue"],
|
5877
5923
|
setup(props, {
|
@@ -5887,12 +5933,13 @@
|
|
5887
5933
|
emit("update:modelValue", item.id);
|
5888
5934
|
}
|
5889
5935
|
};
|
5890
|
-
return vue.createVNode(stdin_default$
|
5936
|
+
return vue.createVNode(stdin_default$1i, {
|
5891
5937
|
"key": item.id,
|
5892
5938
|
"address": item,
|
5893
5939
|
"disabled": disabled,
|
5894
5940
|
"switchable": props.switchable,
|
5895
5941
|
"defaultTagText": props.defaultTagText,
|
5942
|
+
"rightIcon": props.rightIcon,
|
5896
5943
|
"onEdit": onEdit,
|
5897
5944
|
"onClick": onClick,
|
5898
5945
|
"onSelect": onSelect
|
@@ -5907,13 +5954,13 @@
|
|
5907
5954
|
}
|
5908
5955
|
};
|
5909
5956
|
const renderBottom = () => vue.createVNode("div", {
|
5910
|
-
"class": [bem$
|
5957
|
+
"class": [bem$14("bottom"), "van-safe-area-bottom"]
|
5911
5958
|
}, [vue.createVNode(Button, {
|
5912
5959
|
"round": true,
|
5913
5960
|
"block": true,
|
5914
5961
|
"type": "primary",
|
5915
5962
|
"text": props.addButtonText || t$h("add"),
|
5916
|
-
"class": bem$
|
5963
|
+
"class": bem$14("add"),
|
5917
5964
|
"onClick": () => emit("add")
|
5918
5965
|
}, null)]);
|
5919
5966
|
return () => {
|
@@ -5921,10 +5968,10 @@
|
|
5921
5968
|
const List2 = renderList(props.list);
|
5922
5969
|
const DisabledList = renderList(props.disabledList, true);
|
5923
5970
|
const DisabledText = props.disabledText && vue.createVNode("div", {
|
5924
|
-
"class": bem$
|
5971
|
+
"class": bem$14("disabled-text")
|
5925
5972
|
}, [props.disabledText]);
|
5926
5973
|
return vue.createVNode("div", {
|
5927
|
-
"class": bem$
|
5974
|
+
"class": bem$14()
|
5928
5975
|
}, [(_a = slots.top) == null ? void 0 : _a.call(slots), vue.createVNode(RadioGroup, {
|
5929
5976
|
"modelValue": props.modelValue
|
5930
5977
|
}, {
|
@@ -5933,7 +5980,7 @@
|
|
5933
5980
|
};
|
5934
5981
|
}
|
5935
5982
|
});
|
5936
|
-
const AddressList = withInstall(stdin_default$
|
5983
|
+
const AddressList = withInstall(stdin_default$1h);
|
5937
5984
|
const hasIntersectionObserver = inBrowser && "IntersectionObserver" in window && "IntersectionObserverEntry" in window && "intersectionRatio" in window.IntersectionObserverEntry.prototype;
|
5938
5985
|
const modeType = {
|
5939
5986
|
event: "event",
|
@@ -6086,7 +6133,7 @@
|
|
6086
6133
|
this.caches.shift();
|
6087
6134
|
}
|
6088
6135
|
}
|
6089
|
-
const [name$
|
6136
|
+
const [name$17, bem$13] = createNamespace("back-top");
|
6090
6137
|
const backTopProps = {
|
6091
6138
|
right: numericProp,
|
6092
6139
|
bottom: numericProp,
|
@@ -6099,8 +6146,8 @@
|
|
6099
6146
|
default: "body"
|
6100
6147
|
}
|
6101
6148
|
};
|
6102
|
-
var stdin_default$
|
6103
|
-
name: name$
|
6149
|
+
var stdin_default$1g = vue.defineComponent({
|
6150
|
+
name: name$17,
|
6104
6151
|
inheritAttrs: false,
|
6105
6152
|
props: backTopProps,
|
6106
6153
|
emits: ["click"],
|
@@ -6109,6 +6156,7 @@
|
|
6109
6156
|
slots,
|
6110
6157
|
attrs
|
6111
6158
|
}) {
|
6159
|
+
let shouldReshow = false;
|
6112
6160
|
const show = vue.ref(false);
|
6113
6161
|
const root = vue.ref();
|
6114
6162
|
const scrollParent = vue.ref();
|
@@ -6152,23 +6200,35 @@
|
|
6152
6200
|
target: scrollParent
|
6153
6201
|
});
|
6154
6202
|
vue.onMounted(updateTarget);
|
6203
|
+
vue.onActivated(() => {
|
6204
|
+
if (shouldReshow) {
|
6205
|
+
show.value = true;
|
6206
|
+
shouldReshow = false;
|
6207
|
+
}
|
6208
|
+
});
|
6209
|
+
vue.onDeactivated(() => {
|
6210
|
+
if (show.value && props.teleport) {
|
6211
|
+
show.value = false;
|
6212
|
+
shouldReshow = true;
|
6213
|
+
}
|
6214
|
+
});
|
6155
6215
|
vue.watch(() => props.target, updateTarget);
|
6156
6216
|
return () => {
|
6157
6217
|
const Content = vue.createVNode("div", vue.mergeProps({
|
6158
6218
|
"ref": !props.teleport ? root : void 0,
|
6159
|
-
"class": bem$
|
6219
|
+
"class": bem$13({
|
6160
6220
|
active: show.value
|
6161
6221
|
}),
|
6162
6222
|
"style": style.value,
|
6163
6223
|
"onClick": onClick
|
6164
6224
|
}, attrs), [slots.default ? slots.default() : vue.createVNode(Icon, {
|
6165
6225
|
"name": "back-top",
|
6166
|
-
"class": bem$
|
6226
|
+
"class": bem$13("icon")
|
6167
6227
|
}, null)]);
|
6168
6228
|
if (props.teleport) {
|
6169
6229
|
return [vue.createVNode("div", {
|
6170
6230
|
"ref": root,
|
6171
|
-
"class": bem$
|
6231
|
+
"class": bem$13("placeholder")
|
6172
6232
|
}, null), vue.createVNode(vue.Teleport, {
|
6173
6233
|
"to": props.teleport
|
6174
6234
|
}, {
|
@@ -6179,7 +6239,7 @@
|
|
6179
6239
|
};
|
6180
6240
|
}
|
6181
6241
|
});
|
6182
|
-
const BackTop = withInstall(stdin_default$
|
6242
|
+
const BackTop = withInstall(stdin_default$1g);
|
6183
6243
|
var __async = (__this, __arguments, generator) => {
|
6184
6244
|
return new Promise((resolve, reject) => {
|
6185
6245
|
var fulfilled = (value) => {
|
@@ -6208,9 +6268,9 @@
|
|
6208
6268
|
delay: makeNumberProp(300),
|
6209
6269
|
modelValue: makeArrayProp()
|
6210
6270
|
};
|
6211
|
-
const [name$
|
6212
|
-
var stdin_default$
|
6213
|
-
name: name$
|
6271
|
+
const [name$16, bem$12] = createNamespace("barrage");
|
6272
|
+
var stdin_default$1f = vue.defineComponent({
|
6273
|
+
name: name$16,
|
6214
6274
|
props: barrageProps,
|
6215
6275
|
emits: ["update:modelValue"],
|
6216
6276
|
setup(props, {
|
@@ -6218,7 +6278,7 @@
|
|
6218
6278
|
slots
|
6219
6279
|
}) {
|
6220
6280
|
const barrageWrapper = vue.ref();
|
6221
|
-
const className = bem$
|
6281
|
+
const className = bem$12("item");
|
6222
6282
|
const total = vue.ref(0);
|
6223
6283
|
const barrageItems = [];
|
6224
6284
|
const createBarrageItem = (text, delay = props.delay) => {
|
@@ -6299,15 +6359,15 @@
|
|
6299
6359
|
return () => {
|
6300
6360
|
var _a;
|
6301
6361
|
return vue.createVNode("div", {
|
6302
|
-
"class": bem$
|
6362
|
+
"class": bem$12(),
|
6303
6363
|
"ref": barrageWrapper,
|
6304
6364
|
"style": rootStyle.value
|
6305
6365
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
6306
6366
|
};
|
6307
6367
|
}
|
6308
6368
|
});
|
6309
|
-
const Barrage = withInstall(stdin_default$
|
6310
|
-
const [name$
|
6369
|
+
const Barrage = withInstall(stdin_default$1f);
|
6370
|
+
const [name$15, bem$11, t$g] = createNamespace("calendar");
|
6311
6371
|
const formatMonthTitle = (date) => t$g("monthTitle", date.getFullYear(), date.getMonth() + 1);
|
6312
6372
|
function compareMonth(date1, date2) {
|
6313
6373
|
const year1 = date1.getFullYear();
|
@@ -6368,7 +6428,7 @@
|
|
6368
6428
|
return result;
|
6369
6429
|
}
|
6370
6430
|
const getMonthEndDay = (year, month) => 32 - new Date(year, month - 1, 32).getDate();
|
6371
|
-
const genOptions = (min, max, type, formatter, filter) => {
|
6431
|
+
const genOptions = (min, max, type, formatter, filter, values) => {
|
6372
6432
|
const options = times(max - min + 1, (index) => {
|
6373
6433
|
const value = padZero(min + index);
|
6374
6434
|
return formatter(type, {
|
@@ -6376,7 +6436,7 @@
|
|
6376
6436
|
value
|
6377
6437
|
});
|
6378
6438
|
});
|
6379
|
-
return filter ? filter(type, options) : options;
|
6439
|
+
return filter ? filter(type, options, values) : options;
|
6380
6440
|
};
|
6381
6441
|
const formatValueRange = (values, columns) => values.map((value, index) => {
|
6382
6442
|
const column = columns[index];
|
@@ -6387,9 +6447,9 @@
|
|
6387
6447
|
}
|
6388
6448
|
return value;
|
6389
6449
|
});
|
6390
|
-
const [name$
|
6391
|
-
var stdin_default$
|
6392
|
-
name: name$
|
6450
|
+
const [name$14] = createNamespace("calendar-day");
|
6451
|
+
var stdin_default$1e = vue.defineComponent({
|
6452
|
+
name: name$14,
|
6393
6453
|
props: {
|
6394
6454
|
item: makeRequiredProp(Object),
|
6395
6455
|
color: String,
|
@@ -6451,7 +6511,7 @@
|
|
6451
6511
|
} = props.item;
|
6452
6512
|
if (topInfo || slots["top-info"]) {
|
6453
6513
|
return vue.createVNode("div", {
|
6454
|
-
"class": bem$
|
6514
|
+
"class": bem$11("top-info")
|
6455
6515
|
}, [slots["top-info"] ? slots["top-info"](props.item) : topInfo]);
|
6456
6516
|
}
|
6457
6517
|
};
|
@@ -6461,7 +6521,7 @@
|
|
6461
6521
|
} = props.item;
|
6462
6522
|
if (bottomInfo || slots["bottom-info"]) {
|
6463
6523
|
return vue.createVNode("div", {
|
6464
|
-
"class": bem$
|
6524
|
+
"class": bem$11("bottom-info")
|
6465
6525
|
}, [slots["bottom-info"] ? slots["bottom-info"](props.item) : bottomInfo]);
|
6466
6526
|
}
|
6467
6527
|
};
|
@@ -6478,7 +6538,7 @@
|
|
6478
6538
|
const Nodes = [renderTopInfo(), text, renderBottomInfo()];
|
6479
6539
|
if (type === "selected") {
|
6480
6540
|
return vue.createVNode("div", {
|
6481
|
-
"class": bem$
|
6541
|
+
"class": bem$11("selected-day"),
|
6482
6542
|
"style": {
|
6483
6543
|
width: rowHeight,
|
6484
6544
|
height: rowHeight,
|
@@ -6495,21 +6555,21 @@
|
|
6495
6555
|
} = props.item;
|
6496
6556
|
if (type === "placeholder") {
|
6497
6557
|
return vue.createVNode("div", {
|
6498
|
-
"class": bem$
|
6558
|
+
"class": bem$11("day"),
|
6499
6559
|
"style": style.value
|
6500
6560
|
}, null);
|
6501
6561
|
}
|
6502
6562
|
return vue.createVNode("div", {
|
6503
6563
|
"role": "gridcell",
|
6504
6564
|
"style": style.value,
|
6505
|
-
"class": [bem$
|
6565
|
+
"class": [bem$11("day", type), className],
|
6506
6566
|
"tabindex": type === "disabled" ? void 0 : -1,
|
6507
6567
|
"onClick": onClick
|
6508
6568
|
}, [renderContent()]);
|
6509
6569
|
};
|
6510
6570
|
}
|
6511
6571
|
});
|
6512
|
-
const [name$
|
6572
|
+
const [name$13] = createNamespace("calendar-month");
|
6513
6573
|
const calendarMonthProps = {
|
6514
6574
|
date: makeRequiredProp(Date),
|
6515
6575
|
type: String,
|
@@ -6526,8 +6586,8 @@
|
|
6526
6586
|
showMonthTitle: Boolean,
|
6527
6587
|
firstDayOfWeek: Number
|
6528
6588
|
};
|
6529
|
-
var stdin_default$
|
6530
|
-
name: name$
|
6589
|
+
var stdin_default$1d = vue.defineComponent({
|
6590
|
+
name: name$13,
|
6531
6591
|
props: calendarMonthProps,
|
6532
6592
|
emits: ["click"],
|
6533
6593
|
setup(props, {
|
@@ -6632,7 +6692,7 @@
|
|
6632
6692
|
const renderTitle = () => {
|
6633
6693
|
if (props.showMonthTitle) {
|
6634
6694
|
return vue.createVNode("div", {
|
6635
|
-
"class": bem$
|
6695
|
+
"class": bem$11("month-title")
|
6636
6696
|
}, [slots["month-title"] ? slots["month-title"]({
|
6637
6697
|
date: props.date,
|
6638
6698
|
text: title.value
|
@@ -6642,7 +6702,7 @@
|
|
6642
6702
|
const renderMark = () => {
|
6643
6703
|
if (props.showMark && shouldRender.value) {
|
6644
6704
|
return vue.createVNode("div", {
|
6645
|
-
"class": bem$
|
6705
|
+
"class": bem$11("month-mark")
|
6646
6706
|
}, [props.date.getMonth() + 1]);
|
6647
6707
|
}
|
6648
6708
|
};
|
@@ -6682,7 +6742,7 @@
|
|
6682
6742
|
setScrollTop(body, daysRect.top + rowOffset + body.scrollTop - useRect(body).top);
|
6683
6743
|
}
|
6684
6744
|
};
|
6685
|
-
const renderDay = (item, index) => vue.createVNode(stdin_default$
|
6745
|
+
const renderDay = (item, index) => vue.createVNode(stdin_default$1e, {
|
6686
6746
|
"item": item,
|
6687
6747
|
"index": index,
|
6688
6748
|
"color": props.color,
|
@@ -6693,7 +6753,7 @@
|
|
6693
6753
|
const renderDays = () => vue.createVNode("div", {
|
6694
6754
|
"ref": daysRef,
|
6695
6755
|
"role": "grid",
|
6696
|
-
"class": bem$
|
6756
|
+
"class": bem$11("days")
|
6697
6757
|
}, [renderMark(), (shouldRender.value ? days : placeholders).value.map(renderDay)]);
|
6698
6758
|
useExpose({
|
6699
6759
|
getTitle,
|
@@ -6703,14 +6763,14 @@
|
|
6703
6763
|
disabledDays
|
6704
6764
|
});
|
6705
6765
|
return () => vue.createVNode("div", {
|
6706
|
-
"class": bem$
|
6766
|
+
"class": bem$11("month"),
|
6707
6767
|
"ref": monthRef
|
6708
6768
|
}, [renderTitle(), renderDays()]);
|
6709
6769
|
}
|
6710
6770
|
});
|
6711
|
-
const [name$
|
6712
|
-
var stdin_default$
|
6713
|
-
name: name$
|
6771
|
+
const [name$12] = createNamespace("calendar-header");
|
6772
|
+
var stdin_default$1c = vue.defineComponent({
|
6773
|
+
name: name$12,
|
6714
6774
|
props: {
|
6715
6775
|
date: Date,
|
6716
6776
|
title: String,
|
@@ -6729,7 +6789,7 @@
|
|
6729
6789
|
const text = props.title || t$g("title");
|
6730
6790
|
const title = slots.title ? slots.title() : text;
|
6731
6791
|
return vue.createVNode("div", {
|
6732
|
-
"class": bem$
|
6792
|
+
"class": bem$11("header-title")
|
6733
6793
|
}, [title]);
|
6734
6794
|
}
|
6735
6795
|
};
|
@@ -6741,7 +6801,7 @@
|
|
6741
6801
|
text: props.subtitle
|
6742
6802
|
}) : props.subtitle;
|
6743
6803
|
return vue.createVNode("div", {
|
6744
|
-
"class": bem$
|
6804
|
+
"class": bem$11("header-subtitle"),
|
6745
6805
|
"onClick": onClickSubtitle
|
6746
6806
|
}, [title]);
|
6747
6807
|
}
|
@@ -6753,13 +6813,13 @@
|
|
6753
6813
|
const weekdays = t$g("weekdays");
|
6754
6814
|
const renderWeekDays2 = [...weekdays.slice(firstDayOfWeek, 7), ...weekdays.slice(0, firstDayOfWeek)];
|
6755
6815
|
return vue.createVNode("div", {
|
6756
|
-
"class": bem$
|
6816
|
+
"class": bem$11("weekdays")
|
6757
6817
|
}, [renderWeekDays2.map((text) => vue.createVNode("span", {
|
6758
|
-
"class": bem$
|
6818
|
+
"class": bem$11("weekday")
|
6759
6819
|
}, [text]))]);
|
6760
6820
|
};
|
6761
6821
|
return () => vue.createVNode("div", {
|
6762
|
-
"class": bem$
|
6822
|
+
"class": bem$11("header")
|
6763
6823
|
}, [renderTitle(), renderSubtitle(), renderWeekDays()]);
|
6764
6824
|
}
|
6765
6825
|
});
|
@@ -6810,8 +6870,8 @@
|
|
6810
6870
|
validator: (val) => val >= 0 && val <= 6
|
6811
6871
|
}
|
6812
6872
|
};
|
6813
|
-
var stdin_default$
|
6814
|
-
name: name$
|
6873
|
+
var stdin_default$1b = vue.defineComponent({
|
6874
|
+
name: name$15,
|
6815
6875
|
props: calendarProps,
|
6816
6876
|
emits: ["select", "confirm", "unselect", "monthShow", "overRange", "update:show", "clickSubtitle"],
|
6817
6877
|
setup(props, {
|
@@ -7074,7 +7134,7 @@
|
|
7074
7134
|
const updateShow = (value) => emit("update:show", value);
|
7075
7135
|
const renderMonth = (date, index) => {
|
7076
7136
|
const showMonthTitle = index !== 0 || !props.showSubtitle;
|
7077
|
-
return vue.createVNode(stdin_default$
|
7137
|
+
return vue.createVNode(stdin_default$1d, vue.mergeProps({
|
7078
7138
|
"ref": setMonthRefs(index),
|
7079
7139
|
"date": date,
|
7080
7140
|
"currentDate": currentDate.value,
|
@@ -7097,7 +7157,7 @@
|
|
7097
7157
|
"block": true,
|
7098
7158
|
"type": "primary",
|
7099
7159
|
"color": props.color,
|
7100
|
-
"class": bem$
|
7160
|
+
"class": bem$11("confirm"),
|
7101
7161
|
"disabled": disabled,
|
7102
7162
|
"nativeType": "button",
|
7103
7163
|
"onClick": onConfirm
|
@@ -7109,13 +7169,13 @@
|
|
7109
7169
|
}
|
7110
7170
|
};
|
7111
7171
|
const renderFooter = () => vue.createVNode("div", {
|
7112
|
-
"class": [bem$
|
7172
|
+
"class": [bem$11("footer"), {
|
7113
7173
|
"van-safe-area-bottom": props.safeAreaInsetBottom
|
7114
7174
|
}]
|
7115
7175
|
}, [renderFooterButton()]);
|
7116
7176
|
const renderCalendar = () => vue.createVNode("div", {
|
7117
|
-
"class": bem$
|
7118
|
-
}, [vue.createVNode(stdin_default$
|
7177
|
+
"class": bem$11()
|
7178
|
+
}, [vue.createVNode(stdin_default$1c, {
|
7119
7179
|
"date": subtitle.value.date,
|
7120
7180
|
"title": props.title,
|
7121
7181
|
"subtitle": subtitle.value.text,
|
@@ -7125,7 +7185,7 @@
|
|
7125
7185
|
"onClickSubtitle": (event) => emit("clickSubtitle", event)
|
7126
7186
|
}, pick(slots, ["title", "subtitle"])), vue.createVNode("div", {
|
7127
7187
|
"ref": bodyRef,
|
7128
|
-
"class": bem$
|
7188
|
+
"class": bem$11("body"),
|
7129
7189
|
"onScroll": onScroll
|
7130
7190
|
}, [months.value.map(renderMonth)]), renderFooter()]);
|
7131
7191
|
vue.watch(() => props.show, init);
|
@@ -7144,7 +7204,7 @@
|
|
7144
7204
|
if (props.poppable) {
|
7145
7205
|
return vue.createVNode(Popup, {
|
7146
7206
|
"show": props.show,
|
7147
|
-
"class": bem$
|
7207
|
+
"class": bem$11("popup"),
|
7148
7208
|
"round": props.round,
|
7149
7209
|
"position": props.position,
|
7150
7210
|
"closeable": props.showTitle || props.showSubtitle,
|
@@ -7161,8 +7221,8 @@
|
|
7161
7221
|
};
|
7162
7222
|
}
|
7163
7223
|
});
|
7164
|
-
const Calendar = withInstall(stdin_default$
|
7165
|
-
const [name$
|
7224
|
+
const Calendar = withInstall(stdin_default$1b);
|
7225
|
+
const [name$11, bem$10] = createNamespace("image");
|
7166
7226
|
const imageProps = {
|
7167
7227
|
src: String,
|
7168
7228
|
alt: String,
|
@@ -7181,8 +7241,8 @@
|
|
7181
7241
|
showLoading: truthProp,
|
7182
7242
|
loadingIcon: makeStringProp("photo")
|
7183
7243
|
};
|
7184
|
-
var stdin_default$
|
7185
|
-
name: name$
|
7244
|
+
var stdin_default$1a = vue.defineComponent({
|
7245
|
+
name: name$11,
|
7186
7246
|
props: imageProps,
|
7187
7247
|
emits: ["load", "error"],
|
7188
7248
|
setup(props, {
|
@@ -7243,13 +7303,13 @@
|
|
7243
7303
|
const renderPlaceholder = () => {
|
7244
7304
|
if (loading.value && props.showLoading) {
|
7245
7305
|
return vue.createVNode("div", {
|
7246
|
-
"class": bem
|
7247
|
-
}, [renderIcon(props.loadingIcon, bem
|
7306
|
+
"class": bem$10("loading")
|
7307
|
+
}, [renderIcon(props.loadingIcon, bem$10("loading-icon"), slots.loading)]);
|
7248
7308
|
}
|
7249
7309
|
if (error.value && props.showError) {
|
7250
7310
|
return vue.createVNode("div", {
|
7251
|
-
"class": bem
|
7252
|
-
}, [renderIcon(props.errorIcon, bem
|
7311
|
+
"class": bem$10("error")
|
7312
|
+
}, [renderIcon(props.errorIcon, bem$10("error-icon"), slots.error)]);
|
7253
7313
|
}
|
7254
7314
|
};
|
7255
7315
|
const renderImage = () => {
|
@@ -7258,7 +7318,7 @@
|
|
7258
7318
|
}
|
7259
7319
|
const attrs = {
|
7260
7320
|
alt: props.alt,
|
7261
|
-
class: bem
|
7321
|
+
class: bem$10("img"),
|
7262
7322
|
style: {
|
7263
7323
|
objectFit: props.fit,
|
7264
7324
|
objectPosition: props.position
|
@@ -7316,7 +7376,7 @@
|
|
7316
7376
|
return () => {
|
7317
7377
|
var _a;
|
7318
7378
|
return vue.createVNode("div", {
|
7319
|
-
"class": bem
|
7379
|
+
"class": bem$10({
|
7320
7380
|
round: props.round,
|
7321
7381
|
block: props.block
|
7322
7382
|
}),
|
@@ -7325,8 +7385,8 @@
|
|
7325
7385
|
};
|
7326
7386
|
}
|
7327
7387
|
});
|
7328
|
-
const Image$1 = withInstall(stdin_default$
|
7329
|
-
const [name
|
7388
|
+
const Image$1 = withInstall(stdin_default$1a);
|
7389
|
+
const [name$10, bem$$] = createNamespace("card");
|
7330
7390
|
const cardProps = {
|
7331
7391
|
tag: String,
|
7332
7392
|
num: numericProp,
|
@@ -7340,8 +7400,8 @@
|
|
7340
7400
|
thumbLink: String,
|
7341
7401
|
originPrice: numericProp
|
7342
7402
|
};
|
7343
|
-
var stdin_default$
|
7344
|
-
name: name
|
7403
|
+
var stdin_default$19 = vue.defineComponent({
|
7404
|
+
name: name$10,
|
7345
7405
|
props: cardProps,
|
7346
7406
|
emits: ["clickThumb"],
|
7347
7407
|
setup(props, {
|
@@ -7354,14 +7414,14 @@
|
|
7354
7414
|
}
|
7355
7415
|
if (props.title) {
|
7356
7416
|
return vue.createVNode("div", {
|
7357
|
-
"class": [bem
|
7417
|
+
"class": [bem$$("title"), "van-multi-ellipsis--l2"]
|
7358
7418
|
}, [props.title]);
|
7359
7419
|
}
|
7360
7420
|
};
|
7361
7421
|
const renderThumbTag = () => {
|
7362
7422
|
if (slots.tag || props.tag) {
|
7363
7423
|
return vue.createVNode("div", {
|
7364
|
-
"class": bem
|
7424
|
+
"class": bem$$("tag")
|
7365
7425
|
}, [slots.tag ? slots.tag() : vue.createVNode(Tag, {
|
7366
7426
|
"mark": true,
|
7367
7427
|
"type": "primary"
|
@@ -7386,7 +7446,7 @@
|
|
7386
7446
|
if (slots.thumb || props.thumb) {
|
7387
7447
|
return vue.createVNode("a", {
|
7388
7448
|
"href": props.thumbLink,
|
7389
|
-
"class": bem
|
7449
|
+
"class": bem$$("thumb"),
|
7390
7450
|
"onClick": (event) => emit("clickThumb", event)
|
7391
7451
|
}, [renderThumbImage(), renderThumbTag()]);
|
7392
7452
|
}
|
@@ -7397,18 +7457,18 @@
|
|
7397
7457
|
}
|
7398
7458
|
if (props.desc) {
|
7399
7459
|
return vue.createVNode("div", {
|
7400
|
-
"class": [bem
|
7460
|
+
"class": [bem$$("desc"), "van-ellipsis"]
|
7401
7461
|
}, [props.desc]);
|
7402
7462
|
}
|
7403
7463
|
};
|
7404
7464
|
const renderPriceText = () => {
|
7405
7465
|
const priceArr = props.price.toString().split(".");
|
7406
7466
|
return vue.createVNode("div", null, [vue.createVNode("span", {
|
7407
|
-
"class": bem
|
7467
|
+
"class": bem$$("price-currency")
|
7408
7468
|
}, [props.currency]), vue.createVNode("span", {
|
7409
|
-
"class": bem
|
7469
|
+
"class": bem$$("price-integer")
|
7410
7470
|
}, [priceArr[0]]), vue.createTextVNode("."), vue.createVNode("span", {
|
7411
|
-
"class": bem
|
7471
|
+
"class": bem$$("price-decimal")
|
7412
7472
|
}, [priceArr[1]])]);
|
7413
7473
|
};
|
7414
7474
|
return () => {
|
@@ -7418,34 +7478,34 @@
|
|
7418
7478
|
const showOriginPrice = slots["origin-price"] || isDef(props.originPrice);
|
7419
7479
|
const showBottom = showNum || showPrice || showOriginPrice || slots.bottom;
|
7420
7480
|
const Price = showPrice && vue.createVNode("div", {
|
7421
|
-
"class": bem
|
7481
|
+
"class": bem$$("price")
|
7422
7482
|
}, [slots.price ? slots.price() : renderPriceText()]);
|
7423
7483
|
const OriginPrice = showOriginPrice && vue.createVNode("div", {
|
7424
|
-
"class": bem
|
7484
|
+
"class": bem$$("origin-price")
|
7425
7485
|
}, [slots["origin-price"] ? slots["origin-price"]() : `${props.currency} ${props.originPrice}`]);
|
7426
7486
|
const Num = showNum && vue.createVNode("div", {
|
7427
|
-
"class": bem
|
7487
|
+
"class": bem$$("num")
|
7428
7488
|
}, [slots.num ? slots.num() : `x${props.num}`]);
|
7429
7489
|
const Footer = slots.footer && vue.createVNode("div", {
|
7430
|
-
"class": bem
|
7490
|
+
"class": bem$$("footer")
|
7431
7491
|
}, [slots.footer()]);
|
7432
7492
|
const Bottom = showBottom && vue.createVNode("div", {
|
7433
|
-
"class": bem
|
7493
|
+
"class": bem$$("bottom")
|
7434
7494
|
}, [(_a = slots["price-top"]) == null ? void 0 : _a.call(slots), Price, OriginPrice, Num, (_b = slots.bottom) == null ? void 0 : _b.call(slots)]);
|
7435
7495
|
return vue.createVNode("div", {
|
7436
|
-
"class": bem
|
7496
|
+
"class": bem$$()
|
7437
7497
|
}, [vue.createVNode("div", {
|
7438
|
-
"class": bem
|
7498
|
+
"class": bem$$("header")
|
7439
7499
|
}, [renderThumb(), vue.createVNode("div", {
|
7440
|
-
"class": bem
|
7500
|
+
"class": bem$$("content", {
|
7441
7501
|
centered: props.centered
|
7442
7502
|
})
|
7443
7503
|
}, [vue.createVNode("div", null, [renderTitle(), renderDesc(), (_c = slots.tags) == null ? void 0 : _c.call(slots)]), Bottom])]), Footer]);
|
7444
7504
|
};
|
7445
7505
|
}
|
7446
7506
|
});
|
7447
|
-
const Card = withInstall(stdin_default$
|
7448
|
-
const [name
|
7507
|
+
const Card = withInstall(stdin_default$19);
|
7508
|
+
const [name$$, bem$_, t$f] = createNamespace("cascader");
|
7449
7509
|
const cascaderProps = {
|
7450
7510
|
title: String,
|
7451
7511
|
options: makeArrayProp(),
|
@@ -7458,8 +7518,8 @@
|
|
7458
7518
|
placeholder: String,
|
7459
7519
|
activeColor: String
|
7460
7520
|
};
|
7461
|
-
var stdin_default$
|
7462
|
-
name: name
|
7521
|
+
var stdin_default$18 = vue.defineComponent({
|
7522
|
+
name: name$$,
|
7463
7523
|
props: cascaderProps,
|
7464
7524
|
emits: ["close", "change", "finish", "clickTab", "update:modelValue"],
|
7465
7525
|
setup(props, {
|
@@ -7568,12 +7628,12 @@
|
|
7568
7628
|
title
|
7569
7629
|
}) => emit("clickTab", name2, title);
|
7570
7630
|
const renderHeader = () => props.showHeader ? vue.createVNode("div", {
|
7571
|
-
"class": bem$
|
7631
|
+
"class": bem$_("header")
|
7572
7632
|
}, [vue.createVNode("h2", {
|
7573
|
-
"class": bem$
|
7633
|
+
"class": bem$_("title")
|
7574
7634
|
}, [slots.title ? slots.title() : props.title]), props.closeable ? vue.createVNode(Icon, {
|
7575
7635
|
"name": props.closeIcon,
|
7576
|
-
"class": [bem$
|
7636
|
+
"class": [bem$_("close-icon"), HAPTICS_FEEDBACK],
|
7577
7637
|
"onClick": onClose
|
7578
7638
|
}, null) : null]) : null;
|
7579
7639
|
const renderOption = (option, selectedOption, tabIndex) => {
|
@@ -7589,7 +7649,7 @@
|
|
7589
7649
|
return vue.createVNode("li", {
|
7590
7650
|
"ref": selected ? setSelectedElementRefs(tabIndex) : void 0,
|
7591
7651
|
"role": "menuitemradio",
|
7592
|
-
"class": [bem$
|
7652
|
+
"class": [bem$_("option", {
|
7593
7653
|
selected,
|
7594
7654
|
disabled
|
7595
7655
|
}), option.className],
|
@@ -7602,12 +7662,12 @@
|
|
7602
7662
|
"onClick": () => onSelect(option, tabIndex)
|
7603
7663
|
}, [Text, selected ? vue.createVNode(Icon, {
|
7604
7664
|
"name": "success",
|
7605
|
-
"class": bem$
|
7665
|
+
"class": bem$_("selected-icon")
|
7606
7666
|
}, null) : null]);
|
7607
7667
|
};
|
7608
7668
|
const renderOptions = (options, selectedOption, tabIndex) => vue.createVNode("ul", {
|
7609
7669
|
"role": "menu",
|
7610
|
-
"class": bem$
|
7670
|
+
"class": bem$_("options")
|
7611
7671
|
}, [options.map((option) => renderOption(option, selectedOption, tabIndex))]);
|
7612
7672
|
const renderTab = (tab, tabIndex) => {
|
7613
7673
|
const {
|
@@ -7618,7 +7678,7 @@
|
|
7618
7678
|
const title = selected ? selected[textKey] : placeholder;
|
7619
7679
|
return vue.createVNode(Tab, {
|
7620
7680
|
"title": title,
|
7621
|
-
"titleClass": bem$
|
7681
|
+
"titleClass": bem$_("tab", {
|
7622
7682
|
unselected: !selected
|
7623
7683
|
})
|
7624
7684
|
}, {
|
@@ -7637,7 +7697,7 @@
|
|
7637
7697
|
"onUpdate:active": ($event) => activeTab.value = $event,
|
7638
7698
|
"shrink": true,
|
7639
7699
|
"animated": true,
|
7640
|
-
"class": bem$
|
7700
|
+
"class": bem$_("tabs"),
|
7641
7701
|
"color": props.activeColor,
|
7642
7702
|
"swipeable": props.swipeable,
|
7643
7703
|
"onClickTab": onClickTab
|
@@ -7672,19 +7732,19 @@
|
|
7672
7732
|
updateTabs();
|
7673
7733
|
});
|
7674
7734
|
return () => vue.createVNode("div", {
|
7675
|
-
"class": bem$
|
7735
|
+
"class": bem$_()
|
7676
7736
|
}, [renderHeader(), renderTabs()]);
|
7677
7737
|
}
|
7678
7738
|
});
|
7679
|
-
const Cascader = withInstall(stdin_default$
|
7680
|
-
const [name$
|
7739
|
+
const Cascader = withInstall(stdin_default$18);
|
7740
|
+
const [name$_, bem$Z] = createNamespace("cell-group");
|
7681
7741
|
const cellGroupProps = {
|
7682
7742
|
title: String,
|
7683
7743
|
inset: Boolean,
|
7684
7744
|
border: truthProp
|
7685
7745
|
};
|
7686
|
-
var stdin_default$
|
7687
|
-
name: name$
|
7746
|
+
var stdin_default$17 = vue.defineComponent({
|
7747
|
+
name: name$_,
|
7688
7748
|
inheritAttrs: false,
|
7689
7749
|
props: cellGroupProps,
|
7690
7750
|
setup(props, {
|
@@ -7694,7 +7754,7 @@
|
|
7694
7754
|
const renderGroup = () => {
|
7695
7755
|
var _a;
|
7696
7756
|
return vue.createVNode("div", vue.mergeProps({
|
7697
|
-
"class": [bem$
|
7757
|
+
"class": [bem$Z({
|
7698
7758
|
inset: props.inset
|
7699
7759
|
}), {
|
7700
7760
|
[BORDER_TOP_BOTTOM]: props.border && !props.inset
|
@@ -7702,7 +7762,7 @@
|
|
7702
7762
|
}, attrs), [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
7703
7763
|
};
|
7704
7764
|
const renderTitle = () => vue.createVNode("div", {
|
7705
|
-
"class": bem$
|
7765
|
+
"class": bem$Z("title", {
|
7706
7766
|
inset: props.inset
|
7707
7767
|
})
|
7708
7768
|
}, [slots.title ? slots.title() : props.title]);
|
@@ -7714,8 +7774,8 @@
|
|
7714
7774
|
};
|
7715
7775
|
}
|
7716
7776
|
});
|
7717
|
-
const CellGroup = withInstall(stdin_default$
|
7718
|
-
const [name$
|
7777
|
+
const CellGroup = withInstall(stdin_default$17);
|
7778
|
+
const [name$Z, bem$Y] = createNamespace("checkbox-group");
|
7719
7779
|
const checkboxGroupProps = {
|
7720
7780
|
max: numericProp,
|
7721
7781
|
disabled: Boolean,
|
@@ -7724,9 +7784,9 @@
|
|
7724
7784
|
modelValue: makeArrayProp(),
|
7725
7785
|
checkedColor: String
|
7726
7786
|
};
|
7727
|
-
const CHECKBOX_GROUP_KEY = Symbol(name$
|
7728
|
-
var stdin_default$
|
7729
|
-
name: name$
|
7787
|
+
const CHECKBOX_GROUP_KEY = Symbol(name$Z);
|
7788
|
+
var stdin_default$16 = vue.defineComponent({
|
7789
|
+
name: name$Z,
|
7730
7790
|
props: checkboxGroupProps,
|
7731
7791
|
emits: ["change", "update:modelValue"],
|
7732
7792
|
setup(props, {
|
@@ -7772,17 +7832,17 @@
|
|
7772
7832
|
return () => {
|
7773
7833
|
var _a;
|
7774
7834
|
return vue.createVNode("div", {
|
7775
|
-
"class": bem$
|
7835
|
+
"class": bem$Y([props.direction])
|
7776
7836
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
7777
7837
|
};
|
7778
7838
|
}
|
7779
7839
|
});
|
7780
|
-
const [name$
|
7840
|
+
const [name$Y, bem$X] = createNamespace("checkbox");
|
7781
7841
|
const checkboxProps = extend({}, checkerProps, {
|
7782
7842
|
bindGroup: truthProp
|
7783
7843
|
});
|
7784
|
-
var stdin_default$
|
7785
|
-
name: name$
|
7844
|
+
var stdin_default$15 = vue.defineComponent({
|
7845
|
+
name: name$Y,
|
7786
7846
|
props: checkboxProps,
|
7787
7847
|
emits: ["change", "update:modelValue"],
|
7788
7848
|
setup(props, {
|
@@ -7839,8 +7899,8 @@
|
|
7839
7899
|
checked
|
7840
7900
|
});
|
7841
7901
|
useCustomFieldValue(() => props.modelValue);
|
7842
|
-
return () => vue.createVNode(stdin_default$
|
7843
|
-
"bem": bem$
|
7902
|
+
return () => vue.createVNode(stdin_default$1k, vue.mergeProps({
|
7903
|
+
"bem": bem$X,
|
7844
7904
|
"role": "checkbox",
|
7845
7905
|
"parent": parent,
|
7846
7906
|
"checked": checked.value,
|
@@ -7848,9 +7908,9 @@
|
|
7848
7908
|
}, props), pick(slots, ["default", "icon"]));
|
7849
7909
|
}
|
7850
7910
|
});
|
7851
|
-
const Checkbox = withInstall(stdin_default$
|
7852
|
-
const CheckboxGroup = withInstall(stdin_default$
|
7853
|
-
const [name$
|
7911
|
+
const Checkbox = withInstall(stdin_default$15);
|
7912
|
+
const CheckboxGroup = withInstall(stdin_default$16);
|
7913
|
+
const [name$X, bem$W] = createNamespace("circle");
|
7854
7914
|
let uid = 0;
|
7855
7915
|
const format$1 = (rate) => Math.min(Math.max(+rate, 0), 100);
|
7856
7916
|
function getPath(clockwise, viewBoxSize) {
|
@@ -7871,8 +7931,8 @@
|
|
7871
7931
|
strokeLinecap: String,
|
7872
7932
|
startPosition: makeStringProp("top")
|
7873
7933
|
};
|
7874
|
-
var stdin_default$
|
7875
|
-
name: name$
|
7934
|
+
var stdin_default$14 = vue.defineComponent({
|
7935
|
+
name: name$X,
|
7876
7936
|
props: circleProps,
|
7877
7937
|
emits: ["update:currentRate"],
|
7878
7938
|
setup(props, {
|
@@ -7940,7 +8000,7 @@
|
|
7940
8000
|
return vue.createVNode("path", {
|
7941
8001
|
"d": path.value,
|
7942
8002
|
"style": style,
|
7943
|
-
"class": bem$
|
8003
|
+
"class": bem$W("hover"),
|
7944
8004
|
"stroke": color
|
7945
8005
|
}, null);
|
7946
8006
|
};
|
@@ -7951,7 +8011,7 @@
|
|
7951
8011
|
strokeWidth: `${props.strokeWidth}px`
|
7952
8012
|
};
|
7953
8013
|
return vue.createVNode("path", {
|
7954
|
-
"class": bem$
|
8014
|
+
"class": bem$W("layer"),
|
7955
8015
|
"style": style,
|
7956
8016
|
"d": path.value
|
7957
8017
|
}, null);
|
@@ -7982,12 +8042,12 @@
|
|
7982
8042
|
}
|
7983
8043
|
if (props.text) {
|
7984
8044
|
return vue.createVNode("div", {
|
7985
|
-
"class": bem$
|
8045
|
+
"class": bem$W("text")
|
7986
8046
|
}, [props.text]);
|
7987
8047
|
}
|
7988
8048
|
};
|
7989
8049
|
return () => vue.createVNode("div", {
|
7990
|
-
"class": bem$
|
8050
|
+
"class": bem$W(),
|
7991
8051
|
"style": getSizeStyle(props.size)
|
7992
8052
|
}, [vue.createVNode("svg", {
|
7993
8053
|
"viewBox": `0 0 ${viewBoxSize.value} ${viewBoxSize.value}`,
|
@@ -7995,9 +8055,9 @@
|
|
7995
8055
|
}, [renderGradient(), renderLayer(), renderHover()]), renderText()]);
|
7996
8056
|
}
|
7997
8057
|
});
|
7998
|
-
const Circle = withInstall(stdin_default$
|
7999
|
-
const [name$
|
8000
|
-
const ROW_KEY = Symbol(name$
|
8058
|
+
const Circle = withInstall(stdin_default$14);
|
8059
|
+
const [name$W, bem$V] = createNamespace("row");
|
8060
|
+
const ROW_KEY = Symbol(name$W);
|
8001
8061
|
const rowProps = {
|
8002
8062
|
tag: makeStringProp("div"),
|
8003
8063
|
wrap: truthProp,
|
@@ -8005,8 +8065,8 @@
|
|
8005
8065
|
gutter: makeNumericProp(0),
|
8006
8066
|
justify: String
|
8007
8067
|
};
|
8008
|
-
var stdin_default$
|
8009
|
-
name: name$
|
8068
|
+
var stdin_default$13 = vue.defineComponent({
|
8069
|
+
name: name$W,
|
8010
8070
|
props: rowProps,
|
8011
8071
|
setup(props, {
|
8012
8072
|
slots
|
@@ -8065,7 +8125,7 @@
|
|
8065
8125
|
justify
|
8066
8126
|
} = props;
|
8067
8127
|
return vue.createVNode(tag, {
|
8068
|
-
"class": bem$
|
8128
|
+
"class": bem$V({
|
8069
8129
|
[`align-${align}`]: align,
|
8070
8130
|
[`justify-${justify}`]: justify,
|
8071
8131
|
nowrap: !wrap
|
@@ -8079,14 +8139,14 @@
|
|
8079
8139
|
};
|
8080
8140
|
}
|
8081
8141
|
});
|
8082
|
-
const [name$
|
8142
|
+
const [name$V, bem$U] = createNamespace("col");
|
8083
8143
|
const colProps = {
|
8084
8144
|
tag: makeStringProp("div"),
|
8085
8145
|
span: makeNumericProp(0),
|
8086
8146
|
offset: numericProp
|
8087
8147
|
};
|
8088
|
-
var stdin_default$
|
8089
|
-
name: name$
|
8148
|
+
var stdin_default$12 = vue.defineComponent({
|
8149
|
+
name: name$V,
|
8090
8150
|
props: colProps,
|
8091
8151
|
setup(props, {
|
8092
8152
|
slots
|
@@ -8121,7 +8181,7 @@
|
|
8121
8181
|
} = props;
|
8122
8182
|
return vue.createVNode(tag, {
|
8123
8183
|
"style": style.value,
|
8124
|
-
"class": bem$
|
8184
|
+
"class": bem$U({
|
8125
8185
|
[span]: span,
|
8126
8186
|
[`offset-${offset2}`]: offset2
|
8127
8187
|
})
|
@@ -8134,9 +8194,9 @@
|
|
8134
8194
|
};
|
8135
8195
|
}
|
8136
8196
|
});
|
8137
|
-
const Col = withInstall(stdin_default$
|
8138
|
-
const [name$
|
8139
|
-
const COLLAPSE_KEY = Symbol(name$
|
8197
|
+
const Col = withInstall(stdin_default$12);
|
8198
|
+
const [name$U, bem$T] = createNamespace("collapse");
|
8199
|
+
const COLLAPSE_KEY = Symbol(name$U);
|
8140
8200
|
const collapseProps = {
|
8141
8201
|
border: truthProp,
|
8142
8202
|
accordion: Boolean,
|
@@ -8145,8 +8205,8 @@
|
|
8145
8205
|
default: ""
|
8146
8206
|
}
|
8147
8207
|
};
|
8148
|
-
var stdin_default$
|
8149
|
-
name: name$
|
8208
|
+
var stdin_default$11 = vue.defineComponent({
|
8209
|
+
name: name$U,
|
8150
8210
|
props: collapseProps,
|
8151
8211
|
emits: ["change", "update:modelValue"],
|
8152
8212
|
setup(props, {
|
@@ -8213,15 +8273,15 @@
|
|
8213
8273
|
return () => {
|
8214
8274
|
var _a;
|
8215
8275
|
return vue.createVNode("div", {
|
8216
|
-
"class": [bem$
|
8276
|
+
"class": [bem$T(), {
|
8217
8277
|
[BORDER_TOP_BOTTOM]: props.border
|
8218
8278
|
}]
|
8219
8279
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
8220
8280
|
};
|
8221
8281
|
}
|
8222
8282
|
});
|
8223
|
-
const Collapse = withInstall(stdin_default$
|
8224
|
-
const [name$
|
8283
|
+
const Collapse = withInstall(stdin_default$11);
|
8284
|
+
const [name$T, bem$S] = createNamespace("collapse-item");
|
8225
8285
|
const CELL_SLOTS = ["icon", "title", "value", "label", "right-icon"];
|
8226
8286
|
const collapseItemProps = extend({}, cellSharedProps, {
|
8227
8287
|
name: numericProp,
|
@@ -8230,8 +8290,8 @@
|
|
8230
8290
|
readonly: Boolean,
|
8231
8291
|
lazyRender: truthProp
|
8232
8292
|
});
|
8233
|
-
var stdin_default
|
8234
|
-
name: name$
|
8293
|
+
var stdin_default$10 = vue.defineComponent({
|
8294
|
+
name: name$T,
|
8235
8295
|
props: collapseItemProps,
|
8236
8296
|
setup(props, {
|
8237
8297
|
slots
|
@@ -8310,7 +8370,7 @@
|
|
8310
8370
|
}
|
8311
8371
|
return vue.createVNode(Cell, vue.mergeProps({
|
8312
8372
|
"role": "button",
|
8313
|
-
"class": bem$
|
8373
|
+
"class": bem$S("title", {
|
8314
8374
|
disabled,
|
8315
8375
|
expanded: expanded.value,
|
8316
8376
|
borderless: !border
|
@@ -8323,11 +8383,11 @@
|
|
8323
8383
|
var _a;
|
8324
8384
|
return vue.withDirectives(vue.createVNode("div", {
|
8325
8385
|
"ref": wrapperRef,
|
8326
|
-
"class": bem$
|
8386
|
+
"class": bem$S("wrapper"),
|
8327
8387
|
"onTransitionend": onTransitionEnd
|
8328
8388
|
}, [vue.createVNode("div", {
|
8329
8389
|
"ref": contentRef,
|
8330
|
-
"class": bem$
|
8390
|
+
"class": bem$S("content")
|
8331
8391
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)])]), [[vue.vShow, show.value]]);
|
8332
8392
|
});
|
8333
8393
|
useExpose({
|
@@ -8336,15 +8396,15 @@
|
|
8336
8396
|
itemName: name2
|
8337
8397
|
});
|
8338
8398
|
return () => vue.createVNode("div", {
|
8339
|
-
"class": [bem$
|
8399
|
+
"class": [bem$S({
|
8340
8400
|
border: index.value && props.border
|
8341
8401
|
})]
|
8342
8402
|
}, [renderTitle(), renderContent()]);
|
8343
8403
|
}
|
8344
8404
|
});
|
8345
|
-
const CollapseItem = withInstall(stdin_default
|
8346
|
-
const ConfigProvider = withInstall(stdin_default$
|
8347
|
-
const [name$
|
8405
|
+
const CollapseItem = withInstall(stdin_default$10);
|
8406
|
+
const ConfigProvider = withInstall(stdin_default$1N);
|
8407
|
+
const [name$S, bem$R, t$e] = createNamespace("contact-card");
|
8348
8408
|
const contactCardProps = {
|
8349
8409
|
tel: String,
|
8350
8410
|
name: String,
|
@@ -8352,8 +8412,8 @@
|
|
8352
8412
|
addText: String,
|
8353
8413
|
editable: truthProp
|
8354
8414
|
};
|
8355
|
-
var stdin_default
|
8356
|
-
name: name$
|
8415
|
+
var stdin_default$$ = vue.defineComponent({
|
8416
|
+
name: name$S,
|
8357
8417
|
props: contactCardProps,
|
8358
8418
|
emits: ["click"],
|
8359
8419
|
setup(props, {
|
@@ -8373,18 +8433,18 @@
|
|
8373
8433
|
return () => vue.createVNode(Cell, {
|
8374
8434
|
"center": true,
|
8375
8435
|
"icon": props.type === "edit" ? "contact" : "add-square",
|
8376
|
-
"class": bem$
|
8436
|
+
"class": bem$R([props.type]),
|
8377
8437
|
"border": false,
|
8378
8438
|
"isLink": props.editable,
|
8379
|
-
"titleClass": bem$
|
8439
|
+
"titleClass": bem$R("title"),
|
8380
8440
|
"onClick": onClick
|
8381
8441
|
}, {
|
8382
8442
|
title: renderContent
|
8383
8443
|
});
|
8384
8444
|
}
|
8385
8445
|
});
|
8386
|
-
const ContactCard = withInstall(stdin_default
|
8387
|
-
const [name$
|
8446
|
+
const ContactCard = withInstall(stdin_default$$);
|
8447
|
+
const [name$R, bem$Q, t$d] = createNamespace("contact-edit");
|
8388
8448
|
const DEFAULT_CONTACT = {
|
8389
8449
|
tel: "",
|
8390
8450
|
name: ""
|
@@ -8404,8 +8464,8 @@
|
|
8404
8464
|
default: isMobile
|
8405
8465
|
}
|
8406
8466
|
};
|
8407
|
-
var stdin_default$
|
8408
|
-
name: name$
|
8467
|
+
var stdin_default$_ = vue.defineComponent({
|
8468
|
+
name: name$R,
|
8409
8469
|
props: contactEditProps,
|
8410
8470
|
emits: ["save", "delete", "changeDefault"],
|
8411
8471
|
setup(props, {
|
@@ -8419,20 +8479,20 @@
|
|
8419
8479
|
};
|
8420
8480
|
const onDelete = () => emit("delete", contact);
|
8421
8481
|
const renderButtons = () => vue.createVNode("div", {
|
8422
|
-
"class": bem$
|
8482
|
+
"class": bem$Q("buttons")
|
8423
8483
|
}, [vue.createVNode(Button, {
|
8424
8484
|
"block": true,
|
8425
8485
|
"round": true,
|
8426
8486
|
"type": "primary",
|
8427
8487
|
"text": t$d("save"),
|
8428
|
-
"class": bem$
|
8488
|
+
"class": bem$Q("button"),
|
8429
8489
|
"loading": props.isSaving,
|
8430
8490
|
"nativeType": "submit"
|
8431
8491
|
}, null), props.isEdit && vue.createVNode(Button, {
|
8432
8492
|
"block": true,
|
8433
8493
|
"round": true,
|
8434
8494
|
"text": t$d("delete"),
|
8435
|
-
"class": bem$
|
8495
|
+
"class": bem$Q("button"),
|
8436
8496
|
"loading": props.isDeleting,
|
8437
8497
|
"onClick": onDelete
|
8438
8498
|
}, null)]);
|
@@ -8445,7 +8505,7 @@
|
|
8445
8505
|
if (props.showSetDefault) {
|
8446
8506
|
return vue.createVNode(Cell, {
|
8447
8507
|
"title": props.setDefaultLabel,
|
8448
|
-
"class": bem$
|
8508
|
+
"class": bem$Q("switch-cell"),
|
8449
8509
|
"border": false
|
8450
8510
|
}, {
|
8451
8511
|
"right-icon": renderSwitch
|
@@ -8454,11 +8514,11 @@
|
|
8454
8514
|
};
|
8455
8515
|
vue.watch(() => props.contactInfo, (value) => extend(contact, DEFAULT_CONTACT, value));
|
8456
8516
|
return () => vue.createVNode(Form, {
|
8457
|
-
"class": bem$
|
8517
|
+
"class": bem$Q(),
|
8458
8518
|
"onSubmit": onSave
|
8459
8519
|
}, {
|
8460
8520
|
default: () => [vue.createVNode("div", {
|
8461
|
-
"class": bem$
|
8521
|
+
"class": bem$Q("fields")
|
8462
8522
|
}, [vue.createVNode(Field, {
|
8463
8523
|
"modelValue": contact.name,
|
8464
8524
|
"onUpdate:modelValue": ($event) => contact.name = $event,
|
@@ -8485,16 +8545,16 @@
|
|
8485
8545
|
});
|
8486
8546
|
}
|
8487
8547
|
});
|
8488
|
-
const ContactEdit = withInstall(stdin_default$
|
8489
|
-
const [name$
|
8548
|
+
const ContactEdit = withInstall(stdin_default$_);
|
8549
|
+
const [name$Q, bem$P, t$c] = createNamespace("contact-list");
|
8490
8550
|
const contactListProps = {
|
8491
8551
|
list: Array,
|
8492
8552
|
addText: String,
|
8493
8553
|
modelValue: unknownProp,
|
8494
8554
|
defaultTagText: String
|
8495
8555
|
};
|
8496
|
-
var stdin_default$
|
8497
|
-
name: name$
|
8556
|
+
var stdin_default$Z = vue.defineComponent({
|
8557
|
+
name: name$Q,
|
8498
8558
|
props: contactListProps,
|
8499
8559
|
emits: ["add", "edit", "select", "update:modelValue"],
|
8500
8560
|
setup(props, {
|
@@ -8506,13 +8566,13 @@
|
|
8506
8566
|
emit("select", item, index);
|
8507
8567
|
};
|
8508
8568
|
const renderRightIcon = () => vue.createVNode(Radio, {
|
8509
|
-
"class": bem$
|
8569
|
+
"class": bem$P("radio"),
|
8510
8570
|
"name": item.id,
|
8511
8571
|
"iconSize": 18
|
8512
8572
|
}, null);
|
8513
8573
|
const renderEditIcon = () => vue.createVNode(Icon, {
|
8514
8574
|
"name": "edit",
|
8515
|
-
"class": bem$
|
8575
|
+
"class": bem$P("edit"),
|
8516
8576
|
"onClick": (event) => {
|
8517
8577
|
event.stopPropagation();
|
8518
8578
|
emit("edit", item, index);
|
@@ -8524,7 +8584,7 @@
|
|
8524
8584
|
nodes.push(vue.createVNode(Tag, {
|
8525
8585
|
"type": "primary",
|
8526
8586
|
"round": true,
|
8527
|
-
"class": bem$
|
8587
|
+
"class": bem$P("item-tag")
|
8528
8588
|
}, {
|
8529
8589
|
default: () => [props.defaultTagText]
|
8530
8590
|
}));
|
@@ -8535,8 +8595,8 @@
|
|
8535
8595
|
"key": item.id,
|
8536
8596
|
"isLink": true,
|
8537
8597
|
"center": true,
|
8538
|
-
"class": bem$
|
8539
|
-
"titleClass": bem$
|
8598
|
+
"class": bem$P("item"),
|
8599
|
+
"titleClass": bem$P("item-title"),
|
8540
8600
|
"onClick": onClick
|
8541
8601
|
}, {
|
8542
8602
|
icon: renderEditIcon,
|
@@ -8545,25 +8605,25 @@
|
|
8545
8605
|
});
|
8546
8606
|
};
|
8547
8607
|
return () => vue.createVNode("div", {
|
8548
|
-
"class": bem$
|
8608
|
+
"class": bem$P()
|
8549
8609
|
}, [vue.createVNode(RadioGroup, {
|
8550
8610
|
"modelValue": props.modelValue,
|
8551
|
-
"class": bem$
|
8611
|
+
"class": bem$P("group")
|
8552
8612
|
}, {
|
8553
8613
|
default: () => [props.list && props.list.map(renderItem)]
|
8554
8614
|
}), vue.createVNode("div", {
|
8555
|
-
"class": [bem$
|
8615
|
+
"class": [bem$P("bottom"), "van-safe-area-bottom"]
|
8556
8616
|
}, [vue.createVNode(Button, {
|
8557
8617
|
"round": true,
|
8558
8618
|
"block": true,
|
8559
8619
|
"type": "primary",
|
8560
|
-
"class": bem$
|
8620
|
+
"class": bem$P("add"),
|
8561
8621
|
"text": props.addText || t$c("addContact"),
|
8562
8622
|
"onClick": () => emit("add")
|
8563
8623
|
}, null)])]);
|
8564
8624
|
}
|
8565
8625
|
});
|
8566
|
-
const ContactList = withInstall(stdin_default$
|
8626
|
+
const ContactList = withInstall(stdin_default$Z);
|
8567
8627
|
function parseFormat(format2, currentTime) {
|
8568
8628
|
const { days } = currentTime;
|
8569
8629
|
let { hours, minutes, seconds, milliseconds } = currentTime;
|
@@ -8599,15 +8659,15 @@
|
|
8599
8659
|
}
|
8600
8660
|
return format2;
|
8601
8661
|
}
|
8602
|
-
const [name$
|
8662
|
+
const [name$P, bem$O] = createNamespace("count-down");
|
8603
8663
|
const countDownProps = {
|
8604
8664
|
time: makeNumericProp(0),
|
8605
8665
|
format: makeStringProp("HH:mm:ss"),
|
8606
8666
|
autoStart: truthProp,
|
8607
8667
|
millisecond: Boolean
|
8608
8668
|
};
|
8609
|
-
var stdin_default$
|
8610
|
-
name: name$
|
8669
|
+
var stdin_default$Y = vue.defineComponent({
|
8670
|
+
name: name$P,
|
8611
8671
|
props: countDownProps,
|
8612
8672
|
emits: ["change", "finish"],
|
8613
8673
|
setup(props, {
|
@@ -8642,11 +8702,11 @@
|
|
8642
8702
|
});
|
8643
8703
|
return () => vue.createVNode("div", {
|
8644
8704
|
"role": "timer",
|
8645
|
-
"class": bem$
|
8705
|
+
"class": bem$O()
|
8646
8706
|
}, [slots.default ? slots.default(current2.value) : timeText.value]);
|
8647
8707
|
}
|
8648
8708
|
});
|
8649
|
-
const CountDown = withInstall(stdin_default$
|
8709
|
+
const CountDown = withInstall(stdin_default$Y);
|
8650
8710
|
function getDate(timeStamp) {
|
8651
8711
|
const date = new Date(timeStamp * 1e3);
|
8652
8712
|
return `${date.getFullYear()}.${padZero(date.getMonth() + 1)}.${padZero(
|
@@ -8655,9 +8715,9 @@
|
|
8655
8715
|
}
|
8656
8716
|
const formatDiscount = (discount) => (discount / 10).toFixed(discount % 10 === 0 ? 0 : 1);
|
8657
8717
|
const formatAmount = (amount) => (amount / 100).toFixed(amount % 100 === 0 ? 0 : amount % 10 === 0 ? 1 : 2);
|
8658
|
-
const [name$
|
8659
|
-
var stdin_default$
|
8660
|
-
name: name$
|
8718
|
+
const [name$O, bem$N, t$b] = createNamespace("coupon");
|
8719
|
+
var stdin_default$X = vue.defineComponent({
|
8720
|
+
name: name$O,
|
8661
8721
|
props: {
|
8662
8722
|
chosen: Boolean,
|
8663
8723
|
coupon: makeRequiredProp(Object),
|
@@ -8701,34 +8761,34 @@
|
|
8701
8761
|
} = props;
|
8702
8762
|
const description = disabled && coupon.reason || coupon.description;
|
8703
8763
|
return vue.createVNode("div", {
|
8704
|
-
"class": bem$
|
8764
|
+
"class": bem$N({
|
8705
8765
|
disabled
|
8706
8766
|
})
|
8707
8767
|
}, [vue.createVNode("div", {
|
8708
|
-
"class": bem$
|
8768
|
+
"class": bem$N("content")
|
8709
8769
|
}, [vue.createVNode("div", {
|
8710
|
-
"class": bem$
|
8770
|
+
"class": bem$N("head")
|
8711
8771
|
}, [vue.createVNode("h2", {
|
8712
|
-
"class": bem$
|
8772
|
+
"class": bem$N("amount")
|
8713
8773
|
}, [faceAmount.value]), vue.createVNode("p", {
|
8714
|
-
"class": bem$
|
8774
|
+
"class": bem$N("condition")
|
8715
8775
|
}, [coupon.condition || conditionMessage.value])]), vue.createVNode("div", {
|
8716
|
-
"class": bem$
|
8776
|
+
"class": bem$N("body")
|
8717
8777
|
}, [vue.createVNode("p", {
|
8718
|
-
"class": bem$
|
8778
|
+
"class": bem$N("name")
|
8719
8779
|
}, [coupon.name]), vue.createVNode("p", {
|
8720
|
-
"class": bem$
|
8780
|
+
"class": bem$N("valid")
|
8721
8781
|
}, [validPeriod.value]), !disabled && vue.createVNode(Checkbox, {
|
8722
|
-
"class": bem$
|
8782
|
+
"class": bem$N("corner"),
|
8723
8783
|
"modelValue": chosen
|
8724
8784
|
}, null)])]), description && vue.createVNode("p", {
|
8725
|
-
"class": bem$
|
8785
|
+
"class": bem$N("description")
|
8726
8786
|
}, [description])]);
|
8727
8787
|
};
|
8728
8788
|
}
|
8729
8789
|
});
|
8730
|
-
const Coupon = withInstall(stdin_default$
|
8731
|
-
const [name$
|
8790
|
+
const Coupon = withInstall(stdin_default$X);
|
8791
|
+
const [name$N, bem$M, t$a] = createNamespace("coupon-cell");
|
8732
8792
|
const couponCellProps = {
|
8733
8793
|
title: String,
|
8734
8794
|
border: truthProp,
|
@@ -8756,34 +8816,34 @@
|
|
8756
8816
|
}
|
8757
8817
|
return coupons.length === 0 ? t$a("noCoupon") : t$a("count", coupons.length);
|
8758
8818
|
}
|
8759
|
-
var stdin_default$
|
8760
|
-
name: name$
|
8819
|
+
var stdin_default$W = vue.defineComponent({
|
8820
|
+
name: name$N,
|
8761
8821
|
props: couponCellProps,
|
8762
8822
|
setup(props) {
|
8763
8823
|
return () => {
|
8764
8824
|
const selected = props.coupons[+props.chosenCoupon];
|
8765
8825
|
return vue.createVNode(Cell, {
|
8766
|
-
"class": bem$
|
8826
|
+
"class": bem$M(),
|
8767
8827
|
"value": formatValue(props),
|
8768
8828
|
"title": props.title || t$a("title"),
|
8769
8829
|
"border": props.border,
|
8770
8830
|
"isLink": props.editable,
|
8771
|
-
"valueClass": bem$
|
8831
|
+
"valueClass": bem$M("value", {
|
8772
8832
|
selected
|
8773
8833
|
})
|
8774
8834
|
}, null);
|
8775
8835
|
};
|
8776
8836
|
}
|
8777
8837
|
});
|
8778
|
-
const CouponCell = withInstall(stdin_default$
|
8779
|
-
const [name$
|
8838
|
+
const CouponCell = withInstall(stdin_default$W);
|
8839
|
+
const [name$M, bem$L] = createNamespace("empty");
|
8780
8840
|
const emptyProps = {
|
8781
8841
|
image: makeStringProp("default"),
|
8782
8842
|
imageSize: [Number, String, Array],
|
8783
8843
|
description: String
|
8784
8844
|
};
|
8785
|
-
var stdin_default$
|
8786
|
-
name: name$
|
8845
|
+
var stdin_default$V = vue.defineComponent({
|
8846
|
+
name: name$M,
|
8787
8847
|
props: emptyProps,
|
8788
8848
|
setup(props, {
|
8789
8849
|
slots
|
@@ -8792,14 +8852,14 @@
|
|
8792
8852
|
const description = slots.description ? slots.description() : props.description;
|
8793
8853
|
if (description) {
|
8794
8854
|
return vue.createVNode("p", {
|
8795
|
-
"class": bem$
|
8855
|
+
"class": bem$L("description")
|
8796
8856
|
}, [description]);
|
8797
8857
|
}
|
8798
8858
|
};
|
8799
8859
|
const renderBottom = () => {
|
8800
8860
|
if (slots.default) {
|
8801
8861
|
return vue.createVNode("div", {
|
8802
|
-
"class": bem$
|
8862
|
+
"class": bem$L("bottom")
|
8803
8863
|
}, [slots.default()]);
|
8804
8864
|
}
|
8805
8865
|
};
|
@@ -9084,15 +9144,15 @@
|
|
9084
9144
|
}, null);
|
9085
9145
|
};
|
9086
9146
|
return () => vue.createVNode("div", {
|
9087
|
-
"class": bem$
|
9147
|
+
"class": bem$L()
|
9088
9148
|
}, [vue.createVNode("div", {
|
9089
|
-
"class": bem$
|
9149
|
+
"class": bem$L("image"),
|
9090
9150
|
"style": getSizeStyle(props.imageSize)
|
9091
9151
|
}, [renderImage()]), renderDescription(), renderBottom()]);
|
9092
9152
|
}
|
9093
9153
|
});
|
9094
|
-
const Empty = withInstall(stdin_default$
|
9095
|
-
const [name$
|
9154
|
+
const Empty = withInstall(stdin_default$V);
|
9155
|
+
const [name$L, bem$K, t$9] = createNamespace("coupon-list");
|
9096
9156
|
const couponListProps = {
|
9097
9157
|
code: makeStringProp(""),
|
9098
9158
|
coupons: makeArrayProp(),
|
@@ -9113,8 +9173,8 @@
|
|
9113
9173
|
exchangeButtonLoading: Boolean,
|
9114
9174
|
exchangeButtonDisabled: Boolean
|
9115
9175
|
};
|
9116
|
-
var stdin_default$
|
9117
|
-
name: name$
|
9176
|
+
var stdin_default$U = vue.defineComponent({
|
9177
|
+
name: name$L,
|
9118
9178
|
props: couponListProps,
|
9119
9179
|
emits: ["change", "exchange", "update:code"],
|
9120
9180
|
setup(props, {
|
@@ -9132,7 +9192,7 @@
|
|
9132
9192
|
const TABS_HEIGHT = 44;
|
9133
9193
|
const rootHeight = useRect(root).height;
|
9134
9194
|
const headerHeight = useRect(barRef).height + TABS_HEIGHT;
|
9135
|
-
listHeight.value = (rootHeight > headerHeight ? rootHeight : windowHeight.value) - headerHeight;
|
9195
|
+
listHeight.value = (rootHeight > headerHeight ? rootHeight : windowHeight$1.value) - headerHeight;
|
9136
9196
|
};
|
9137
9197
|
const onExchange = () => {
|
9138
9198
|
emit("exchange", currentCode.value);
|
@@ -9150,26 +9210,26 @@
|
|
9150
9210
|
"image": props.emptyImage
|
9151
9211
|
}, {
|
9152
9212
|
default: () => [vue.createVNode("p", {
|
9153
|
-
"class": bem$
|
9213
|
+
"class": bem$K("empty-tip")
|
9154
9214
|
}, [t$9("noCoupon")])]
|
9155
9215
|
});
|
9156
9216
|
const renderExchangeBar = () => {
|
9157
9217
|
if (props.showExchangeBar) {
|
9158
9218
|
return vue.createVNode("div", {
|
9159
9219
|
"ref": barRef,
|
9160
|
-
"class": bem$
|
9220
|
+
"class": bem$K("exchange-bar")
|
9161
9221
|
}, [vue.createVNode(Field, {
|
9162
9222
|
"modelValue": currentCode.value,
|
9163
9223
|
"onUpdate:modelValue": ($event) => currentCode.value = $event,
|
9164
9224
|
"clearable": true,
|
9165
9225
|
"border": false,
|
9166
|
-
"class": bem$
|
9226
|
+
"class": bem$K("field"),
|
9167
9227
|
"placeholder": props.inputPlaceholder || t$9("placeholder"),
|
9168
9228
|
"maxlength": "20"
|
9169
9229
|
}, null), vue.createVNode(Button, {
|
9170
9230
|
"plain": true,
|
9171
9231
|
"type": "primary",
|
9172
|
-
"class": bem$
|
9232
|
+
"class": bem$K("exchange"),
|
9173
9233
|
"text": props.exchangeButtonText || t$9("exchange"),
|
9174
9234
|
"loading": props.exchangeButtonLoading,
|
9175
9235
|
"disabled": buttonDisabled.value,
|
@@ -9189,7 +9249,7 @@
|
|
9189
9249
|
default: () => {
|
9190
9250
|
var _a;
|
9191
9251
|
return [vue.createVNode("div", {
|
9192
|
-
"class": bem$
|
9252
|
+
"class": bem$K("list", {
|
9193
9253
|
"with-bottom": props.showCloseButton
|
9194
9254
|
}),
|
9195
9255
|
"style": {
|
@@ -9218,7 +9278,7 @@
|
|
9218
9278
|
default: () => {
|
9219
9279
|
var _a;
|
9220
9280
|
return [vue.createVNode("div", {
|
9221
|
-
"class": bem$
|
9281
|
+
"class": bem$K("list", {
|
9222
9282
|
"with-bottom": props.showCloseButton
|
9223
9283
|
}),
|
9224
9284
|
"style": {
|
@@ -9236,7 +9296,7 @@
|
|
9236
9296
|
vue.watch(() => props.code, (value) => {
|
9237
9297
|
currentCode.value = value;
|
9238
9298
|
});
|
9239
|
-
vue.watch(windowHeight, updateListHeight);
|
9299
|
+
vue.watch(windowHeight$1, updateListHeight);
|
9240
9300
|
vue.watch(currentCode, (value) => emit("update:code", value));
|
9241
9301
|
vue.watch(() => props.displayedCouponIndex, scrollToCoupon);
|
9242
9302
|
vue.onMounted(() => {
|
@@ -9245,28 +9305,28 @@
|
|
9245
9305
|
});
|
9246
9306
|
return () => vue.createVNode("div", {
|
9247
9307
|
"ref": root,
|
9248
|
-
"class": bem$
|
9308
|
+
"class": bem$K()
|
9249
9309
|
}, [renderExchangeBar(), vue.createVNode(Tabs, {
|
9250
9310
|
"active": activeTab.value,
|
9251
9311
|
"onUpdate:active": ($event) => activeTab.value = $event,
|
9252
|
-
"class": bem$
|
9312
|
+
"class": bem$K("tab")
|
9253
9313
|
}, {
|
9254
9314
|
default: () => [renderCouponTab(), renderDisabledTab()]
|
9255
9315
|
}), vue.createVNode("div", {
|
9256
|
-
"class": bem$
|
9316
|
+
"class": bem$K("bottom")
|
9257
9317
|
}, [vue.withDirectives(vue.createVNode(Button, {
|
9258
9318
|
"round": true,
|
9259
9319
|
"block": true,
|
9260
9320
|
"type": "primary",
|
9261
|
-
"class": bem$
|
9321
|
+
"class": bem$K("close"),
|
9262
9322
|
"text": props.closeButtonText || t$9("close"),
|
9263
9323
|
"onClick": () => emit("change", -1)
|
9264
9324
|
}, null), [[vue.vShow, props.showCloseButton]])])]);
|
9265
9325
|
}
|
9266
9326
|
});
|
9267
|
-
const CouponList = withInstall(stdin_default$
|
9327
|
+
const CouponList = withInstall(stdin_default$U);
|
9268
9328
|
const currentYear = (/* @__PURE__ */ new Date()).getFullYear();
|
9269
|
-
const [name$
|
9329
|
+
const [name$K] = createNamespace("date-picker");
|
9270
9330
|
const datePickerProps = extend({}, sharedProps, {
|
9271
9331
|
columnsType: {
|
9272
9332
|
type: Array,
|
@@ -9283,8 +9343,8 @@
|
|
9283
9343
|
validator: isDate
|
9284
9344
|
}
|
9285
9345
|
});
|
9286
|
-
var stdin_default$
|
9287
|
-
name: name$
|
9346
|
+
var stdin_default$T = vue.defineComponent({
|
9347
|
+
name: name$K,
|
9288
9348
|
props: datePickerProps,
|
9289
9349
|
emits: ["confirm", "cancel", "change", "update:modelValue"],
|
9290
9350
|
setup(props, {
|
@@ -9374,8 +9434,8 @@
|
|
9374
9434
|
}, pick(props, pickerInheritKeys)), slots);
|
9375
9435
|
}
|
9376
9436
|
});
|
9377
|
-
const DatePicker = withInstall(stdin_default$
|
9378
|
-
const [name$
|
9437
|
+
const DatePicker = withInstall(stdin_default$T);
|
9438
|
+
const [name$J, bem$J, t$8] = createNamespace("dialog");
|
9379
9439
|
const dialogProps = extend({}, popupSharedProps, {
|
9380
9440
|
title: String,
|
9381
9441
|
theme: String,
|
@@ -9398,8 +9458,8 @@
|
|
9398
9458
|
closeOnClickOverlay: Boolean
|
9399
9459
|
});
|
9400
9460
|
const popupInheritKeys$1 = [...popupSharedPropKeys, "transition", "closeOnPopstate"];
|
9401
|
-
var stdin_default$
|
9402
|
-
name: name$
|
9461
|
+
var stdin_default$S = vue.defineComponent({
|
9462
|
+
name: name$J,
|
9403
9463
|
props: dialogProps,
|
9404
9464
|
emits: ["confirm", "cancel", "keydown", "update:show"],
|
9405
9465
|
setup(props, {
|
@@ -9456,7 +9516,7 @@
|
|
9456
9516
|
const title = slots.title ? slots.title() : props.title;
|
9457
9517
|
if (title) {
|
9458
9518
|
return vue.createVNode("div", {
|
9459
|
-
"class": bem$
|
9519
|
+
"class": bem$J("header", {
|
9460
9520
|
isolated: !props.message && !slots.default
|
9461
9521
|
})
|
9462
9522
|
}, [title]);
|
@@ -9468,7 +9528,7 @@
|
|
9468
9528
|
allowHtml,
|
9469
9529
|
messageAlign
|
9470
9530
|
} = props;
|
9471
|
-
const classNames = bem$
|
9531
|
+
const classNames = bem$J("message", {
|
9472
9532
|
"has-title": hasTitle,
|
9473
9533
|
[messageAlign]: messageAlign
|
9474
9534
|
});
|
@@ -9486,7 +9546,7 @@
|
|
9486
9546
|
const renderContent = () => {
|
9487
9547
|
if (slots.default) {
|
9488
9548
|
return vue.createVNode("div", {
|
9489
|
-
"class": bem$
|
9549
|
+
"class": bem$J("content")
|
9490
9550
|
}, [slots.default()]);
|
9491
9551
|
}
|
9492
9552
|
const {
|
@@ -9498,18 +9558,18 @@
|
|
9498
9558
|
const hasTitle = !!(title || slots.title);
|
9499
9559
|
return vue.createVNode("div", {
|
9500
9560
|
"key": allowHtml ? 1 : 0,
|
9501
|
-
"class": bem$
|
9561
|
+
"class": bem$J("content", {
|
9502
9562
|
isolated: !hasTitle
|
9503
9563
|
})
|
9504
9564
|
}, [renderMessage(hasTitle)]);
|
9505
9565
|
}
|
9506
9566
|
};
|
9507
9567
|
const renderButtons = () => vue.createVNode("div", {
|
9508
|
-
"class": [BORDER_TOP, bem$
|
9568
|
+
"class": [BORDER_TOP, bem$J("footer")]
|
9509
9569
|
}, [props.showCancelButton && vue.createVNode(Button, {
|
9510
9570
|
"size": "large",
|
9511
9571
|
"text": props.cancelButtonText || t$8("cancel"),
|
9512
|
-
"class": bem$
|
9572
|
+
"class": bem$J("cancel"),
|
9513
9573
|
"style": {
|
9514
9574
|
color: props.cancelButtonColor
|
9515
9575
|
},
|
@@ -9519,7 +9579,7 @@
|
|
9519
9579
|
}, null), props.showConfirmButton && vue.createVNode(Button, {
|
9520
9580
|
"size": "large",
|
9521
9581
|
"text": props.confirmButtonText || t$8("confirm"),
|
9522
|
-
"class": [bem$
|
9582
|
+
"class": [bem$J("confirm"), {
|
9523
9583
|
[BORDER_LEFT]: props.showCancelButton
|
9524
9584
|
}],
|
9525
9585
|
"style": {
|
@@ -9530,12 +9590,12 @@
|
|
9530
9590
|
"onClick": onConfirm
|
9531
9591
|
}, null)]);
|
9532
9592
|
const renderRoundButtons = () => vue.createVNode(ActionBar, {
|
9533
|
-
"class": bem$
|
9593
|
+
"class": bem$J("footer")
|
9534
9594
|
}, {
|
9535
9595
|
default: () => [props.showCancelButton && vue.createVNode(ActionBarButton, {
|
9536
9596
|
"type": "warning",
|
9537
9597
|
"text": props.cancelButtonText || t$8("cancel"),
|
9538
|
-
"class": bem$
|
9598
|
+
"class": bem$J("cancel"),
|
9539
9599
|
"color": props.cancelButtonColor,
|
9540
9600
|
"loading": loading.cancel,
|
9541
9601
|
"disabled": props.cancelButtonDisabled,
|
@@ -9543,7 +9603,7 @@
|
|
9543
9603
|
}, null), props.showConfirmButton && vue.createVNode(ActionBarButton, {
|
9544
9604
|
"type": "danger",
|
9545
9605
|
"text": props.confirmButtonText || t$8("confirm"),
|
9546
|
-
"class": bem$
|
9606
|
+
"class": bem$J("confirm"),
|
9547
9607
|
"color": props.confirmButtonColor,
|
9548
9608
|
"loading": loading.confirm,
|
9549
9609
|
"disabled": props.confirmButtonDisabled,
|
@@ -9567,7 +9627,7 @@
|
|
9567
9627
|
return vue.createVNode(Popup, vue.mergeProps({
|
9568
9628
|
"ref": root,
|
9569
9629
|
"role": "dialog",
|
9570
|
-
"class": [bem$
|
9630
|
+
"class": [bem$J([theme]), className],
|
9571
9631
|
"style": {
|
9572
9632
|
width: addUnit(width2)
|
9573
9633
|
},
|
@@ -9617,7 +9677,7 @@
|
|
9617
9677
|
state,
|
9618
9678
|
toggle
|
9619
9679
|
} = usePopupState();
|
9620
|
-
return () => vue.createVNode(stdin_default$
|
9680
|
+
return () => vue.createVNode(stdin_default$S, vue.mergeProps(state, {
|
9621
9681
|
"onUpdate:show": toggle
|
9622
9682
|
}), null);
|
9623
9683
|
}
|
@@ -9655,16 +9715,16 @@
|
|
9655
9715
|
instance$2.toggle(false);
|
9656
9716
|
}
|
9657
9717
|
};
|
9658
|
-
const Dialog = withInstall(stdin_default$
|
9659
|
-
const [name$
|
9718
|
+
const Dialog = withInstall(stdin_default$S);
|
9719
|
+
const [name$I, bem$I] = createNamespace("divider");
|
9660
9720
|
const dividerProps = {
|
9661
9721
|
dashed: Boolean,
|
9662
9722
|
hairline: truthProp,
|
9663
9723
|
vertical: Boolean,
|
9664
9724
|
contentPosition: makeStringProp("center")
|
9665
9725
|
};
|
9666
|
-
var stdin_default$
|
9667
|
-
name: name$
|
9726
|
+
var stdin_default$R = vue.defineComponent({
|
9727
|
+
name: name$I,
|
9668
9728
|
props: dividerProps,
|
9669
9729
|
setup(props, {
|
9670
9730
|
slots
|
@@ -9673,7 +9733,7 @@
|
|
9673
9733
|
var _a;
|
9674
9734
|
return vue.createVNode("div", {
|
9675
9735
|
"role": "separator",
|
9676
|
-
"class": bem$
|
9736
|
+
"class": bem$I({
|
9677
9737
|
dashed: props.dashed,
|
9678
9738
|
hairline: props.hairline,
|
9679
9739
|
vertical: props.vertical,
|
@@ -9683,8 +9743,8 @@
|
|
9683
9743
|
};
|
9684
9744
|
}
|
9685
9745
|
});
|
9686
|
-
const Divider = withInstall(stdin_default$
|
9687
|
-
const [name$
|
9746
|
+
const Divider = withInstall(stdin_default$R);
|
9747
|
+
const [name$H, bem$H] = createNamespace("dropdown-menu");
|
9688
9748
|
const dropdownMenuProps = {
|
9689
9749
|
overlay: truthProp,
|
9690
9750
|
zIndex: numericProp,
|
@@ -9694,9 +9754,9 @@
|
|
9694
9754
|
closeOnClickOutside: truthProp,
|
9695
9755
|
closeOnClickOverlay: truthProp
|
9696
9756
|
};
|
9697
|
-
const DROPDOWN_KEY = Symbol(name$
|
9698
|
-
var stdin_default$
|
9699
|
-
name: name$
|
9757
|
+
const DROPDOWN_KEY = Symbol(name$H);
|
9758
|
+
var stdin_default$Q = vue.defineComponent({
|
9759
|
+
name: name$H,
|
9700
9760
|
props: dropdownMenuProps,
|
9701
9761
|
setup(props, {
|
9702
9762
|
slots
|
@@ -9718,11 +9778,14 @@
|
|
9718
9778
|
};
|
9719
9779
|
}
|
9720
9780
|
});
|
9781
|
+
const close = () => {
|
9782
|
+
children.forEach((item) => {
|
9783
|
+
item.toggle(false);
|
9784
|
+
});
|
9785
|
+
};
|
9721
9786
|
const onClickAway = () => {
|
9722
9787
|
if (props.closeOnClickOutside) {
|
9723
|
-
|
9724
|
-
item.toggle(false);
|
9725
|
-
});
|
9788
|
+
close();
|
9726
9789
|
}
|
9727
9790
|
};
|
9728
9791
|
const updateOffset = () => {
|
@@ -9731,7 +9794,7 @@
|
|
9731
9794
|
if (props.direction === "down") {
|
9732
9795
|
offset2.value = rect.bottom;
|
9733
9796
|
} else {
|
9734
|
-
offset2.value = windowHeight.value - rect.top;
|
9797
|
+
offset2.value = windowHeight$1.value - rect.top;
|
9735
9798
|
}
|
9736
9799
|
}
|
9737
9800
|
};
|
@@ -9763,7 +9826,7 @@
|
|
9763
9826
|
"id": `${id}-${index}`,
|
9764
9827
|
"role": "button",
|
9765
9828
|
"tabindex": disabled ? void 0 : 0,
|
9766
|
-
"class": [bem$
|
9829
|
+
"class": [bem$H("item", {
|
9767
9830
|
disabled
|
9768
9831
|
}), {
|
9769
9832
|
[HAPTICS_FEEDBACK]: !disabled
|
@@ -9774,7 +9837,7 @@
|
|
9774
9837
|
}
|
9775
9838
|
}
|
9776
9839
|
}, [vue.createVNode("span", {
|
9777
|
-
"class": [bem$
|
9840
|
+
"class": [bem$H("title", {
|
9778
9841
|
down: showPopup === (props.direction === "down"),
|
9779
9842
|
active: showPopup
|
9780
9843
|
}), titleClass],
|
@@ -9785,6 +9848,9 @@
|
|
9785
9848
|
"class": "van-ellipsis"
|
9786
9849
|
}, [item.renderTitle()])])]);
|
9787
9850
|
};
|
9851
|
+
useExpose({
|
9852
|
+
close
|
9853
|
+
});
|
9788
9854
|
linkChildren({
|
9789
9855
|
id,
|
9790
9856
|
props,
|
@@ -9800,18 +9866,18 @@
|
|
9800
9866
|
var _a;
|
9801
9867
|
return vue.createVNode("div", {
|
9802
9868
|
"ref": root,
|
9803
|
-
"class": bem$
|
9869
|
+
"class": bem$H()
|
9804
9870
|
}, [vue.createVNode("div", {
|
9805
9871
|
"ref": barRef,
|
9806
9872
|
"style": barStyle.value,
|
9807
|
-
"class": bem$
|
9873
|
+
"class": bem$H("bar", {
|
9808
9874
|
opened: opened.value
|
9809
9875
|
})
|
9810
9876
|
}, [children.map(renderTitle)]), (_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
9811
9877
|
};
|
9812
9878
|
}
|
9813
9879
|
});
|
9814
|
-
const [name$
|
9880
|
+
const [name$G, bem$G] = createNamespace("dropdown-item");
|
9815
9881
|
const dropdownItemProps = {
|
9816
9882
|
title: String,
|
9817
9883
|
options: makeArrayProp(),
|
@@ -9821,8 +9887,8 @@
|
|
9821
9887
|
modelValue: unknownProp,
|
9822
9888
|
titleClass: unknownProp
|
9823
9889
|
};
|
9824
|
-
var stdin_default$
|
9825
|
-
name: name$
|
9890
|
+
var stdin_default$P = vue.defineComponent({
|
9891
|
+
name: name$G,
|
9826
9892
|
inheritAttrs: false,
|
9827
9893
|
props: dropdownItemProps,
|
9828
9894
|
emits: ["open", "opened", "close", "closed", "change", "update:modelValue"],
|
@@ -9892,7 +9958,7 @@
|
|
9892
9958
|
const renderIcon = () => {
|
9893
9959
|
if (active) {
|
9894
9960
|
return vue.createVNode(Icon, {
|
9895
|
-
"class": bem$
|
9961
|
+
"class": bem$G("icon"),
|
9896
9962
|
"color": activeColor,
|
9897
9963
|
"name": "success"
|
9898
9964
|
}, null);
|
@@ -9903,7 +9969,7 @@
|
|
9903
9969
|
"key": option.value,
|
9904
9970
|
"icon": option.icon,
|
9905
9971
|
"title": option.text,
|
9906
|
-
"class": bem$
|
9972
|
+
"class": bem$G("option", {
|
9907
9973
|
active
|
9908
9974
|
}),
|
9909
9975
|
"style": {
|
@@ -9935,13 +10001,13 @@
|
|
9935
10001
|
}
|
9936
10002
|
return vue.withDirectives(vue.createVNode("div", vue.mergeProps({
|
9937
10003
|
"style": style,
|
9938
|
-
"class": bem$
|
10004
|
+
"class": bem$G([direction]),
|
9939
10005
|
"onClick": onClickWrapper
|
9940
10006
|
}, attrs), [vue.createVNode(Popup, {
|
9941
10007
|
"show": state.showPopup,
|
9942
10008
|
"onUpdate:show": ($event) => state.showPopup = $event,
|
9943
10009
|
"role": "menu",
|
9944
|
-
"class": bem$
|
10010
|
+
"class": bem$G("content"),
|
9945
10011
|
"overlay": overlay,
|
9946
10012
|
"position": direction === "down" ? "top" : "bottom",
|
9947
10013
|
"duration": state.transition ? duration : 0,
|
@@ -9979,8 +10045,124 @@
|
|
9979
10045
|
};
|
9980
10046
|
}
|
9981
10047
|
});
|
9982
|
-
const DropdownItem = withInstall(stdin_default$
|
9983
|
-
const DropdownMenu = withInstall(stdin_default$
|
10048
|
+
const DropdownItem = withInstall(stdin_default$P);
|
10049
|
+
const DropdownMenu = withInstall(stdin_default$Q);
|
10050
|
+
const {
|
10051
|
+
height: windowHeight
|
10052
|
+
} = useWindowSize();
|
10053
|
+
const floatingPanelProps = {
|
10054
|
+
height: makeNumericProp(0),
|
10055
|
+
anchors: makeArrayProp(),
|
10056
|
+
duration: makeNumericProp(0.2),
|
10057
|
+
contentDraggable: truthProp,
|
10058
|
+
safeAreaInsetBottom: truthProp
|
10059
|
+
};
|
10060
|
+
const [name$F, bem$F] = createNamespace("floating-panel");
|
10061
|
+
const DAMP = 0.2;
|
10062
|
+
var stdin_default$O = vue.defineComponent({
|
10063
|
+
name: name$F,
|
10064
|
+
props: floatingPanelProps,
|
10065
|
+
emits: ["heightChange", "update:height"],
|
10066
|
+
setup(props, {
|
10067
|
+
emit,
|
10068
|
+
slots
|
10069
|
+
}) {
|
10070
|
+
const rootRef = vue.ref();
|
10071
|
+
const contentRef = vue.ref();
|
10072
|
+
const height2 = useSyncPropRef(() => +props.height, (value) => emit("update:height", value));
|
10073
|
+
const boundary = vue.computed(() => {
|
10074
|
+
var _a, _b;
|
10075
|
+
return {
|
10076
|
+
min: (_a = props.anchors[0]) != null ? _a : 100,
|
10077
|
+
max: (_b = props.anchors[props.anchors.length - 1]) != null ? _b : Math.round(windowHeight.value * 0.6)
|
10078
|
+
};
|
10079
|
+
});
|
10080
|
+
const anchors = vue.computed(() => props.anchors.length >= 2 ? props.anchors : [boundary.value.min, boundary.value.max]);
|
10081
|
+
const dragging = vue.ref(false);
|
10082
|
+
const rootStyle = vue.computed(() => ({
|
10083
|
+
height: addUnit(boundary.value.max),
|
10084
|
+
transform: `translateY(calc(100% + ${addUnit(-height2.value)}))`,
|
10085
|
+
transition: !dragging.value ? `transform ${props.duration}s` : "none"
|
10086
|
+
}));
|
10087
|
+
const ease = (moveY) => {
|
10088
|
+
const absDistance = Math.abs(moveY);
|
10089
|
+
const {
|
10090
|
+
min,
|
10091
|
+
max
|
10092
|
+
} = boundary.value;
|
10093
|
+
if (absDistance > max) {
|
10094
|
+
return -(max + (absDistance - max) * DAMP);
|
10095
|
+
}
|
10096
|
+
if (absDistance < min) {
|
10097
|
+
return -(min - (min - absDistance) * DAMP);
|
10098
|
+
}
|
10099
|
+
return moveY;
|
10100
|
+
};
|
10101
|
+
const closest = (arr, target) => arr.reduce((pre, cur) => Math.abs(pre - target) < Math.abs(cur - target) ? pre : cur);
|
10102
|
+
let startY;
|
10103
|
+
const touch = useTouch();
|
10104
|
+
const onTouchstart = (e) => {
|
10105
|
+
touch.start(e);
|
10106
|
+
dragging.value = true;
|
10107
|
+
startY = -height2.value;
|
10108
|
+
};
|
10109
|
+
const onTouchmove = (e) => {
|
10110
|
+
var _a;
|
10111
|
+
touch.move(e);
|
10112
|
+
const target = e.target;
|
10113
|
+
if (contentRef.value === target || ((_a = contentRef.value) == null ? void 0 : _a.contains(target))) {
|
10114
|
+
if (!props.contentDraggable)
|
10115
|
+
return;
|
10116
|
+
if (-startY < boundary.value.max) {
|
10117
|
+
if (e.cancelable)
|
10118
|
+
e.preventDefault();
|
10119
|
+
e.stopPropagation();
|
10120
|
+
} else if (!(contentRef.value.scrollTop <= 0 && touch.deltaY.value > 0)) {
|
10121
|
+
return;
|
10122
|
+
}
|
10123
|
+
}
|
10124
|
+
const moveY = touch.deltaY.value + startY;
|
10125
|
+
height2.value = -ease(moveY);
|
10126
|
+
};
|
10127
|
+
const onTouchend = () => {
|
10128
|
+
dragging.value = false;
|
10129
|
+
height2.value = closest(anchors.value, height2.value);
|
10130
|
+
if (height2.value !== -startY) {
|
10131
|
+
emit("heightChange", {
|
10132
|
+
height: height2.value
|
10133
|
+
});
|
10134
|
+
}
|
10135
|
+
};
|
10136
|
+
vue.watch(boundary, () => {
|
10137
|
+
height2.value = closest(anchors.value, height2.value);
|
10138
|
+
}, {
|
10139
|
+
immediate: true
|
10140
|
+
});
|
10141
|
+
useLockScroll(rootRef, () => true);
|
10142
|
+
return () => {
|
10143
|
+
var _a;
|
10144
|
+
return vue.createVNode("div", {
|
10145
|
+
"class": [bem$F(), {
|
10146
|
+
"van-safe-area-bottom": props.safeAreaInsetBottom
|
10147
|
+
}],
|
10148
|
+
"ref": rootRef,
|
10149
|
+
"style": rootStyle.value,
|
10150
|
+
"onTouchstartPassive": onTouchstart,
|
10151
|
+
"onTouchmove": onTouchmove,
|
10152
|
+
"onTouchend": onTouchend,
|
10153
|
+
"onTouchcancel": onTouchend
|
10154
|
+
}, [vue.createVNode("div", {
|
10155
|
+
"class": bem$F("header")
|
10156
|
+
}, [vue.createVNode("div", {
|
10157
|
+
"class": bem$F("header-bar")
|
10158
|
+
}, null)]), vue.createVNode("div", {
|
10159
|
+
"class": bem$F("content"),
|
10160
|
+
"ref": contentRef
|
10161
|
+
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)])]);
|
10162
|
+
};
|
10163
|
+
}
|
10164
|
+
});
|
10165
|
+
const FloatingPanel = withInstall(stdin_default$O);
|
9984
10166
|
const [name$E, bem$E] = createNamespace("grid");
|
9985
10167
|
const gridProps = {
|
9986
10168
|
square: Boolean,
|
@@ -10181,6 +10363,7 @@
|
|
10181
10363
|
moveY: 0,
|
10182
10364
|
moving: false,
|
10183
10365
|
zooming: false,
|
10366
|
+
initializing: false,
|
10184
10367
|
imageRatio: 0
|
10185
10368
|
});
|
10186
10369
|
const touch = useTouch();
|
@@ -10195,10 +10378,11 @@
|
|
10195
10378
|
moveX,
|
10196
10379
|
moveY,
|
10197
10380
|
moving,
|
10198
|
-
zooming
|
10381
|
+
zooming,
|
10382
|
+
initializing
|
10199
10383
|
} = state;
|
10200
10384
|
const style = {
|
10201
|
-
transitionDuration: zooming || moving ? "0s" : ".3s"
|
10385
|
+
transitionDuration: zooming || moving || initializing ? "0s" : ".3s"
|
10202
10386
|
};
|
10203
10387
|
if (scale !== 1 || isLongImage.value) {
|
10204
10388
|
style.transform = `matrix(${scale}, 0, 0, ${scale}, ${moveX}, ${moveY})`;
|
@@ -10398,6 +10582,10 @@
|
|
10398
10582
|
if (isLongImage.value) {
|
10399
10583
|
initialMoveY = (imageRatio * rootWidth - rootHeight) / 2;
|
10400
10584
|
state.moveY = initialMoveY;
|
10585
|
+
state.initializing = true;
|
10586
|
+
raf(() => {
|
10587
|
+
state.initializing = false;
|
10588
|
+
});
|
10401
10589
|
}
|
10402
10590
|
resetScale();
|
10403
10591
|
};
|
@@ -10586,7 +10774,7 @@
|
|
10586
10774
|
swipeTo
|
10587
10775
|
});
|
10588
10776
|
vue.onMounted(resize);
|
10589
|
-
vue.watch([windowWidth, windowHeight], resize);
|
10777
|
+
vue.watch([windowWidth, windowHeight$1], resize);
|
10590
10778
|
vue.watch(() => props.startPosition, (value) => setActive(+value));
|
10591
10779
|
vue.watch(() => props.show, (value) => {
|
10592
10780
|
const {
|
@@ -11967,7 +12155,7 @@
|
|
11967
12155
|
}
|
11968
12156
|
});
|
11969
12157
|
const PasswordInput = withInstall(stdin_default$A);
|
11970
|
-
const PickerGroup = withInstall(stdin_default$
|
12158
|
+
const PickerGroup = withInstall(stdin_default$1w);
|
11971
12159
|
function getWindow(node) {
|
11972
12160
|
if (node == null) {
|
11973
12161
|
return window;
|
@@ -12914,6 +13102,7 @@
|
|
12914
13102
|
theme: makeStringProp("light"),
|
12915
13103
|
overlay: Boolean,
|
12916
13104
|
actions: makeArrayProp(),
|
13105
|
+
actionsDirection: makeStringProp("vertical"),
|
12917
13106
|
trigger: makeStringProp("click"),
|
12918
13107
|
duration: numericProp,
|
12919
13108
|
showArrow: truthProp,
|
@@ -13017,7 +13206,9 @@
|
|
13017
13206
|
"classPrefix": props.iconPrefix,
|
13018
13207
|
"class": bem$q("action-icon")
|
13019
13208
|
}, null), vue.createVNode("div", {
|
13020
|
-
"class": [bem$q("action-text"),
|
13209
|
+
"class": [bem$q("action-text"), {
|
13210
|
+
[BORDER_BOTTOM]: props.actionsDirection === "vertical"
|
13211
|
+
}]
|
13021
13212
|
}, [action.text])];
|
13022
13213
|
};
|
13023
13214
|
const renderAction = (action, index) => {
|
@@ -13032,7 +13223,9 @@
|
|
13032
13223
|
"class": [bem$q("action", {
|
13033
13224
|
disabled,
|
13034
13225
|
"with-icon": icon
|
13035
|
-
}),
|
13226
|
+
}), {
|
13227
|
+
[BORDER_RIGHT]: props.actionsDirection === "horizontal"
|
13228
|
+
}, className],
|
13036
13229
|
"style": {
|
13037
13230
|
color
|
13038
13231
|
},
|
@@ -13081,7 +13274,7 @@
|
|
13081
13274
|
"class": bem$q("arrow")
|
13082
13275
|
}, null), vue.createVNode("div", {
|
13083
13276
|
"role": "menu",
|
13084
|
-
"class": bem$q("content")
|
13277
|
+
"class": bem$q("content", props.actionsDirection)
|
13085
13278
|
}, [slots.default ? slots.default() : props.actions.map(renderAction)])]
|
13086
13279
|
})]);
|
13087
13280
|
};
|
@@ -13554,7 +13747,7 @@
|
|
13554
13747
|
}
|
13555
13748
|
});
|
13556
13749
|
const Rate = withInstall(stdin_default$w);
|
13557
|
-
const Row = withInstall(stdin_default$
|
13750
|
+
const Row = withInstall(stdin_default$13);
|
13558
13751
|
const [name$n, bem$m, t$4] = createNamespace("search");
|
13559
13752
|
const searchProps = extend({}, fieldSharedProps, {
|
13560
13753
|
label: String,
|
@@ -14265,6 +14458,14 @@
|
|
14265
14458
|
const diff = Math.round((value - min) / step) * step;
|
14266
14459
|
return addNumber(min, diff);
|
14267
14460
|
};
|
14461
|
+
const updateStartValue = () => {
|
14462
|
+
const current22 = props.modelValue;
|
14463
|
+
if (isRange(current22)) {
|
14464
|
+
startValue = current22.map(format2);
|
14465
|
+
} else {
|
14466
|
+
startValue = format2(current22);
|
14467
|
+
}
|
14468
|
+
};
|
14268
14469
|
const handleRangeValue = (value) => {
|
14269
14470
|
var _a, _b;
|
14270
14471
|
const left2 = (_a = value[0]) != null ? _a : Number(props.min);
|
@@ -14289,6 +14490,7 @@
|
|
14289
14490
|
if (props.disabled || props.readonly) {
|
14290
14491
|
return;
|
14291
14492
|
}
|
14493
|
+
updateStartValue();
|
14292
14494
|
const {
|
14293
14495
|
min,
|
14294
14496
|
reverse,
|
@@ -14328,11 +14530,7 @@
|
|
14328
14530
|
}
|
14329
14531
|
touch.start(event);
|
14330
14532
|
current2 = props.modelValue;
|
14331
|
-
|
14332
|
-
startValue = current2.map(format2);
|
14333
|
-
} else {
|
14334
|
-
startValue = format2(current2);
|
14335
|
-
}
|
14533
|
+
updateStartValue();
|
14336
14534
|
dragStatus.value = "start";
|
14337
14535
|
};
|
14338
14536
|
const onTouchMove = (event) => {
|
@@ -14378,17 +14576,25 @@
|
|
14378
14576
|
return bem$c("button-wrapper", props.reverse ? "left" : "right");
|
14379
14577
|
};
|
14380
14578
|
const renderButtonContent = (value, index) => {
|
14579
|
+
const dragging = dragStatus.value === "dragging";
|
14381
14580
|
if (typeof index === "number") {
|
14382
14581
|
const slot = slots[index === 0 ? "left-button" : "right-button"];
|
14582
|
+
let dragIndex;
|
14583
|
+
if (dragging && Array.isArray(current2)) {
|
14584
|
+
dragIndex = current2[0] > current2[1] ? buttonIndex ^ 1 : buttonIndex;
|
14585
|
+
}
|
14383
14586
|
if (slot) {
|
14384
14587
|
return slot({
|
14385
|
-
value
|
14588
|
+
value,
|
14589
|
+
dragging,
|
14590
|
+
dragIndex
|
14386
14591
|
});
|
14387
14592
|
}
|
14388
14593
|
}
|
14389
14594
|
if (slots.button) {
|
14390
14595
|
return slots.button({
|
14391
|
-
value
|
14596
|
+
value,
|
14597
|
+
dragging
|
14392
14598
|
});
|
14393
14599
|
}
|
14394
14600
|
return vue.createVNode("div", {
|
@@ -15458,6 +15664,8 @@
|
|
15458
15664
|
});
|
15459
15665
|
const TextEllipsis = withInstall(stdin_default$9);
|
15460
15666
|
const [name$3] = createNamespace("time-picker");
|
15667
|
+
const validateTime = (val) => /^([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/.test(val);
|
15668
|
+
const fullColumns = ["hour", "minute", "second"];
|
15461
15669
|
const timePickerProps = extend({}, sharedProps, {
|
15462
15670
|
minHour: makeNumericProp(0),
|
15463
15671
|
maxHour: makeNumericProp(23),
|
@@ -15465,10 +15673,19 @@
|
|
15465
15673
|
maxMinute: makeNumericProp(59),
|
15466
15674
|
minSecond: makeNumericProp(0),
|
15467
15675
|
maxSecond: makeNumericProp(59),
|
15676
|
+
minTime: {
|
15677
|
+
type: String,
|
15678
|
+
validator: validateTime
|
15679
|
+
},
|
15680
|
+
maxTime: {
|
15681
|
+
type: String,
|
15682
|
+
validator: validateTime
|
15683
|
+
},
|
15468
15684
|
columnsType: {
|
15469
15685
|
type: Array,
|
15470
15686
|
default: () => ["hour", "minute"]
|
15471
|
-
}
|
15687
|
+
},
|
15688
|
+
filter: Function
|
15472
15689
|
});
|
15473
15690
|
var stdin_default$8 = vue.defineComponent({
|
15474
15691
|
name: name$3,
|
@@ -15479,22 +15696,63 @@
|
|
15479
15696
|
slots
|
15480
15697
|
}) {
|
15481
15698
|
const currentValues = vue.ref(props.modelValue);
|
15482
|
-
const
|
15483
|
-
const
|
15484
|
-
|
15485
|
-
|
15699
|
+
const getValidTime = (time) => {
|
15700
|
+
const timeLimitArr = time.split(":");
|
15701
|
+
return fullColumns.map((col, i) => props.columnsType.includes(col) ? timeLimitArr[i] : "00");
|
15702
|
+
};
|
15703
|
+
const columns = vue.computed(() => {
|
15704
|
+
let {
|
15705
|
+
minHour,
|
15706
|
+
maxHour,
|
15707
|
+
minMinute,
|
15708
|
+
maxMinute,
|
15709
|
+
minSecond,
|
15710
|
+
maxSecond
|
15486
15711
|
} = props;
|
15487
|
-
|
15488
|
-
|
15489
|
-
|
15490
|
-
|
15491
|
-
|
15492
|
-
|
15493
|
-
|
15494
|
-
|
15495
|
-
|
15712
|
+
if (props.minTime || props.maxTime) {
|
15713
|
+
const fullTime = {
|
15714
|
+
hour: 0,
|
15715
|
+
minute: 0,
|
15716
|
+
second: 0
|
15717
|
+
};
|
15718
|
+
props.columnsType.forEach((col, i) => {
|
15719
|
+
var _a;
|
15720
|
+
fullTime[col] = (_a = currentValues.value[i]) != null ? _a : 0;
|
15721
|
+
});
|
15722
|
+
const {
|
15723
|
+
hour,
|
15724
|
+
minute
|
15725
|
+
} = fullTime;
|
15726
|
+
if (props.minTime) {
|
15727
|
+
const [minH, minM, minS] = getValidTime(props.minTime);
|
15728
|
+
minHour = minH;
|
15729
|
+
minMinute = +hour <= +minHour ? minM : "00";
|
15730
|
+
minSecond = +hour <= +minHour && +minute <= +minMinute ? minS : "00";
|
15731
|
+
}
|
15732
|
+
if (props.maxTime) {
|
15733
|
+
const [maxH, maxM, maxS] = getValidTime(props.maxTime);
|
15734
|
+
maxHour = maxH;
|
15735
|
+
maxMinute = +hour >= +maxHour ? maxM : "59";
|
15736
|
+
maxSecond = +hour >= +maxHour && +minute >= +maxMinute ? maxS : "59";
|
15737
|
+
}
|
15496
15738
|
}
|
15497
|
-
|
15739
|
+
return props.columnsType.map((type) => {
|
15740
|
+
const {
|
15741
|
+
filter,
|
15742
|
+
formatter
|
15743
|
+
} = props;
|
15744
|
+
switch (type) {
|
15745
|
+
case "hour":
|
15746
|
+
return genOptions(+minHour, +maxHour, type, formatter, filter, currentValues.value);
|
15747
|
+
case "minute":
|
15748
|
+
return genOptions(+minMinute, +maxMinute, type, formatter, filter, currentValues.value);
|
15749
|
+
case "second":
|
15750
|
+
return genOptions(+minSecond, +maxSecond, type, formatter, filter, currentValues.value);
|
15751
|
+
default:
|
15752
|
+
return [];
|
15753
|
+
}
|
15754
|
+
});
|
15755
|
+
});
|
15498
15756
|
vue.watch(currentValues, (newValues) => {
|
15499
15757
|
if (!isSameValue(newValues, props.modelValue)) {
|
15500
15758
|
emit("update:modelValue", newValues);
|
@@ -17033,7 +17291,7 @@
|
|
17033
17291
|
});
|
17034
17292
|
}
|
17035
17293
|
};
|
17036
|
-
const version = "4.
|
17294
|
+
const version = "4.5.0";
|
17037
17295
|
function install(app) {
|
17038
17296
|
const components = [
|
17039
17297
|
ActionBar,
|
@@ -17073,6 +17331,7 @@
|
|
17073
17331
|
DropdownMenu,
|
17074
17332
|
Empty,
|
17075
17333
|
Field,
|
17334
|
+
FloatingPanel,
|
17076
17335
|
Form,
|
17077
17336
|
Grid,
|
17078
17337
|
GridItem,
|
@@ -17184,6 +17443,7 @@
|
|
17184
17443
|
exports2.DropdownMenu = DropdownMenu;
|
17185
17444
|
exports2.Empty = Empty;
|
17186
17445
|
exports2.Field = Field;
|
17446
|
+
exports2.FloatingPanel = FloatingPanel;
|
17187
17447
|
exports2.Form = Form;
|
17188
17448
|
exports2.Grid = Grid;
|
17189
17449
|
exports2.GridItem = GridItem;
|