vant 4.0.0-rc.7 → 4.0.0-rc.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/action-bar/ActionBar.d.ts +1 -1
- package/es/action-bar/types.d.ts +1 -1
- package/es/action-bar-button/ActionBarButton.d.ts +1 -1
- package/es/action-bar-button/types.d.ts +1 -1
- package/es/action-bar-icon/ActionBarIcon.d.ts +1 -1
- package/es/action-bar-icon/types.d.ts +1 -1
- package/es/action-sheet/ActionSheet.d.ts +3 -3
- package/es/action-sheet/index.d.ts +1 -1
- package/es/action-sheet/types.d.ts +1 -1
- package/es/address-edit/AddressEdit.d.ts +1 -1
- package/es/address-edit/types.d.ts +5 -5
- package/es/address-list/AddressList.d.ts +1 -1
- package/es/address-list/AddressListItem.d.ts +1 -1
- package/es/address-list/types.d.ts +1 -1
- package/es/area/Area.d.ts +2 -2
- package/es/area/index.d.ts +1 -1
- package/es/area/types.d.ts +2 -2
- package/es/back-top/BackTop.d.ts +66 -0
- package/es/back-top/BackTop.mjs +99 -0
- package/es/back-top/index.css +1 -0
- package/es/back-top/index.d.ts +53 -0
- package/es/back-top/index.mjs +10 -0
- package/es/back-top/style/index.d.ts +1 -0
- package/es/back-top/style/index.mjs +4 -0
- package/es/back-top/types.d.ts +6 -0
- package/es/back-top/types.mjs +0 -0
- package/es/badge/Badge.d.ts +2 -2
- package/es/badge/types.d.ts +1 -1
- package/es/button/Button.d.ts +1 -1
- package/es/button/types.d.ts +5 -5
- package/es/calendar/Calendar.d.ts +1 -1
- package/es/calendar/CalendarMonth.d.ts +1 -1
- package/es/calendar/types.d.ts +7 -7
- package/es/card/Card.d.ts +1 -1
- package/es/card/types.d.ts +1 -1
- package/es/cascader/Cascader.d.ts +1 -1
- package/es/cascader/types.d.ts +4 -4
- package/es/cell/Cell.d.ts +4 -4
- package/es/cell/Cell.mjs +1 -1
- package/es/cell/index.d.ts +1 -1
- package/es/cell/types.d.ts +1 -1
- package/es/cell-group/CellGroup.d.ts +1 -1
- package/es/cell-group/types.d.ts +1 -1
- package/es/checkbox/Checkbox.d.ts +1 -1
- package/es/checkbox/Checker.d.ts +4 -4
- package/es/checkbox/types.d.ts +5 -5
- package/es/checkbox-group/CheckboxGroup.d.ts +1 -1
- package/es/checkbox-group/types.d.ts +5 -5
- package/es/circle/Circle.d.ts +2 -2
- package/es/circle/types.d.ts +1 -1
- package/es/col/Col.d.ts +1 -1
- package/es/collapse/Collapse.d.ts +4 -4
- package/es/collapse-item/CollapseItem.d.ts +2 -2
- package/es/collapse-item/index.d.ts +1 -1
- package/es/collapse-item/types.d.ts +3 -3
- package/es/composables/use-route.d.ts +1 -1
- package/es/composables/use-touch.d.ts +1 -1
- package/es/config-provider/ConfigProvider.d.ts +4 -4
- package/es/config-provider/types.d.ts +1 -1
- package/es/contact-card/ContactCard.d.ts +2 -2
- package/es/contact-card/types.d.ts +1 -1
- package/es/contact-edit/ContactEdit.d.ts +2 -2
- package/es/contact-edit/types.d.ts +1 -1
- package/es/contact-list/ContactList.d.ts +2 -2
- package/es/contact-list/types.d.ts +1 -1
- package/es/count-down/CountDown.d.ts +1 -1
- package/es/count-down/types.d.ts +4 -4
- package/es/coupon/Coupon.d.ts +1 -1
- package/es/coupon/types.d.ts +1 -1
- package/es/coupon-cell/CouponCell.d.ts +1 -1
- package/es/coupon-cell/types.d.ts +1 -1
- package/es/coupon-list/CouponList.d.ts +1 -1
- package/es/coupon-list/types.d.ts +1 -1
- package/es/date-picker/DatePicker.d.ts +3 -3
- package/es/date-picker/index.d.ts +1 -1
- package/es/date-picker/utils.d.ts +2 -2
- package/es/dialog/Dialog.d.ts +2 -2
- package/es/dialog/index.d.ts +1 -1
- package/es/dialog/types.d.ts +6 -6
- package/es/divider/Divider.d.ts +2 -2
- package/es/divider/types.d.ts +1 -1
- package/es/dropdown-item/DropdownItem.d.ts +3 -3
- package/es/dropdown-item/DropdownItem.mjs +6 -4
- package/es/dropdown-item/index.d.ts +2 -2
- package/es/dropdown-item/types.d.ts +4 -4
- package/es/dropdown-menu/DropdownMenu.d.ts +1 -1
- package/es/dropdown-menu/types.d.ts +3 -3
- package/es/empty/Empty.d.ts +1 -1
- package/es/empty/types.d.ts +1 -1
- package/es/field/Field.d.ts +2 -2
- package/es/field/index.d.ts +1 -1
- package/es/field/types.d.ts +16 -16
- package/es/form/Form.d.ts +1 -1
- package/es/form/types.d.ts +3 -3
- package/es/grid/Grid.d.ts +3 -3
- package/es/grid-item/GridItem.d.ts +1 -1
- package/es/grid-item/types.d.ts +1 -1
- package/es/icon/Icon.d.ts +1 -1
- package/es/image/Image.d.ts +3 -3
- package/es/image/types.d.ts +1 -1
- package/es/image-preview/ImagePreview.d.ts +1 -1
- package/es/image-preview/types.d.ts +5 -5
- package/es/index-anchor/IndexAnchor.d.ts +1 -1
- package/es/index-anchor/types.d.ts +1 -1
- package/es/index-bar/IndexBar.d.ts +1 -1
- package/es/index-bar/types.d.ts +4 -4
- package/es/index.d.ts +2 -1
- package/es/index.mjs +4 -1
- package/es/lazyload/vue-lazyload/util.d.ts +25 -0
- package/es/list/List.d.ts +1 -1
- package/es/list/List.mjs +1 -1
- package/es/list/types.d.ts +4 -4
- package/es/loading/Loading.d.ts +2 -2
- package/es/loading/types.d.ts +1 -1
- package/es/locale/index.d.ts +1 -1
- package/es/nav-bar/NavBar.d.ts +1 -1
- package/es/nav-bar/types.d.ts +1 -1
- package/es/notice-bar/NoticeBar.d.ts +1 -1
- package/es/notice-bar/types.d.ts +4 -4
- package/es/notify/Notify.d.ts +1 -1
- package/es/notify/types.d.ts +5 -5
- package/es/number-keyboard/NumberKeyboard.d.ts +2 -2
- package/es/number-keyboard/NumberKeyboard.mjs +6 -4
- package/es/number-keyboard/NumberKeyboardKey.d.ts +1 -1
- package/es/number-keyboard/types.d.ts +1 -1
- package/es/overlay/Overlay.d.ts +1 -1
- package/es/overlay/types.d.ts +1 -1
- package/es/pagination/Pagination.d.ts +2 -2
- package/es/pagination/types.d.ts +1 -1
- package/es/password-input/PasswordInput.d.ts +1 -1
- package/es/password-input/types.d.ts +1 -1
- package/es/picker/Picker.d.ts +2 -2
- package/es/picker/PickerToolbar.d.ts +1 -1
- package/es/picker/index.d.ts +1 -1
- package/es/picker/types.d.ts +11 -11
- package/es/picker-group/PickerGroup.d.ts +2 -2
- package/es/picker-group/types.d.ts +1 -1
- package/es/popover/Popover.d.ts +1 -1
- package/es/popover/types.d.ts +5 -5
- package/es/popup/Popup.d.ts +3 -3
- package/es/popup/index.d.ts +2 -2
- package/es/popup/shared.d.ts +1 -1
- package/es/popup/types.d.ts +5 -5
- package/es/progress/Progress.d.ts +1 -1
- package/es/progress/types.d.ts +3 -3
- package/es/pull-refresh/PullRefresh.d.ts +1 -1
- package/es/pull-refresh/types.d.ts +1 -1
- package/es/radio/Radio.d.ts +3 -3
- package/es/radio/types.d.ts +1 -1
- package/es/radio-group/RadioGroup.d.ts +3 -3
- package/es/rate/Rate.d.ts +1 -1
- package/es/rate/types.d.ts +1 -1
- package/es/row/Row.d.ts +5 -5
- package/es/search/Search.d.ts +1 -1
- package/es/search/types.d.ts +4 -4
- package/es/share-sheet/ShareSheet.d.ts +4 -4
- package/es/share-sheet/index.d.ts +1 -1
- package/es/share-sheet/types.d.ts +1 -1
- package/es/sidebar/Sidebar.d.ts +2 -2
- package/es/sidebar/types.d.ts +1 -1
- package/es/sidebar-item/SidebarItem.d.ts +1 -1
- package/es/sidebar-item/types.d.ts +1 -1
- package/es/skeleton/Skeleton.d.ts +1 -1
- package/es/skeleton/SkeletonAvatar.d.ts +1 -1
- package/es/skeleton/SkeletonImage.d.ts +1 -1
- package/es/skeleton/SkeletonParagraph.d.ts +1 -1
- package/es/skeleton/SkeletonTitle.d.ts +1 -1
- package/es/skeleton/types.d.ts +3 -3
- package/es/slider/Slider.d.ts +3 -3
- package/es/slider/types.d.ts +1 -1
- package/es/space/Space.d.ts +3 -3
- package/es/step/types.d.ts +1 -1
- package/es/stepper/Stepper.d.ts +2 -2
- package/es/stepper/types.d.ts +1 -1
- package/es/steps/Steps.d.ts +3 -3
- package/es/steps/types.d.ts +1 -1
- package/es/sticky/Sticky.d.ts +2 -2
- package/es/sticky/types.d.ts +1 -1
- package/es/style/base.css +1 -1
- package/es/style/normalize.css +1 -1
- package/es/submit-bar/SubmitBar.d.ts +2 -2
- package/es/submit-bar/types.d.ts +1 -1
- package/es/swipe/Swipe.d.ts +1 -1
- package/es/swipe/types.d.ts +6 -6
- package/es/swipe-cell/SwipeCell.d.ts +3 -3
- package/es/swipe-cell/index.d.ts +2 -2
- package/es/swipe-cell/types.d.ts +4 -4
- package/es/switch/Switch.d.ts +1 -1
- package/es/switch/types.d.ts +1 -1
- package/es/tab/Tab.d.ts +1 -1
- package/es/tabbar/Tabbar.d.ts +2 -2
- package/es/tabbar/types.d.ts +1 -1
- package/es/tabbar-item/TabbarItem.d.ts +1 -1
- package/es/tabbar-item/types.d.ts +1 -1
- package/es/tabs/Tabs.d.ts +1 -1
- package/es/tabs/types.d.ts +6 -6
- package/es/tag/Tag.d.ts +1 -1
- package/es/tag/types.d.ts +3 -3
- package/es/time-picker/TimePicker.d.ts +3 -3
- package/es/time-picker/index.d.ts +1 -1
- package/es/toast/Toast.d.ts +1 -1
- package/es/toast/types.d.ts +6 -6
- package/es/tree-select/TreeSelect.d.ts +3 -3
- package/es/tree-select/types.d.ts +1 -1
- package/es/uploader/Uploader.d.ts +1 -1
- package/es/uploader/types.d.ts +8 -8
- package/es/utils/basic.d.ts +3 -3
- package/es/utils/create.d.ts +4 -4
- package/es/utils/deep-assign.d.ts +1 -1
- package/es/utils/dom.d.ts +1 -1
- package/es/utils/interceptor.d.ts +1 -1
- package/es/utils/mount-component.d.ts +1 -1
- package/es/utils/with-install.d.ts +2 -2
- package/lib/action-bar/ActionBar.d.ts +1 -1
- package/lib/action-bar/types.d.ts +1 -1
- package/lib/action-bar-button/ActionBarButton.d.ts +1 -1
- package/lib/action-bar-button/types.d.ts +1 -1
- package/lib/action-bar-icon/ActionBarIcon.d.ts +1 -1
- package/lib/action-bar-icon/types.d.ts +1 -1
- package/lib/action-sheet/ActionSheet.d.ts +3 -3
- package/lib/action-sheet/index.d.ts +1 -1
- package/lib/action-sheet/types.d.ts +1 -1
- package/lib/address-edit/AddressEdit.d.ts +1 -1
- package/lib/address-edit/types.d.ts +5 -5
- package/lib/address-list/AddressList.d.ts +1 -1
- package/lib/address-list/AddressListItem.d.ts +1 -1
- package/lib/address-list/types.d.ts +1 -1
- package/lib/area/Area.d.ts +2 -2
- package/lib/area/index.d.ts +1 -1
- package/lib/area/types.d.ts +2 -2
- package/lib/back-top/BackTop.d.ts +66 -0
- package/lib/back-top/BackTop.js +118 -0
- package/lib/back-top/index.css +1 -0
- package/lib/back-top/index.d.ts +53 -0
- package/lib/back-top/index.js +35 -0
- package/lib/back-top/style/index.d.ts +1 -0
- package/lib/back-top/style/index.js +4 -0
- package/lib/back-top/types.d.ts +6 -0
- package/lib/back-top/types.js +15 -0
- package/lib/badge/Badge.d.ts +2 -2
- package/lib/badge/types.d.ts +1 -1
- package/lib/button/Button.d.ts +1 -1
- package/lib/button/types.d.ts +5 -5
- package/lib/calendar/Calendar.d.ts +1 -1
- package/lib/calendar/CalendarMonth.d.ts +1 -1
- package/lib/calendar/types.d.ts +7 -7
- package/lib/card/Card.d.ts +1 -1
- package/lib/card/types.d.ts +1 -1
- package/lib/cascader/Cascader.d.ts +1 -1
- package/lib/cascader/types.d.ts +4 -4
- package/lib/cell/Cell.d.ts +4 -4
- package/lib/cell/Cell.js +1 -1
- package/lib/cell/index.d.ts +1 -1
- package/lib/cell/types.d.ts +1 -1
- package/lib/cell-group/CellGroup.d.ts +1 -1
- package/lib/cell-group/types.d.ts +1 -1
- package/lib/checkbox/Checkbox.d.ts +1 -1
- package/lib/checkbox/Checker.d.ts +4 -4
- package/lib/checkbox/types.d.ts +5 -5
- package/lib/checkbox-group/CheckboxGroup.d.ts +1 -1
- package/lib/checkbox-group/types.d.ts +5 -5
- package/lib/circle/Circle.d.ts +2 -2
- package/lib/circle/types.d.ts +1 -1
- package/lib/col/Col.d.ts +1 -1
- package/lib/collapse/Collapse.d.ts +4 -4
- package/lib/collapse-item/CollapseItem.d.ts +2 -2
- package/lib/collapse-item/index.d.ts +1 -1
- package/lib/collapse-item/types.d.ts +3 -3
- package/lib/composables/use-route.d.ts +1 -1
- package/lib/composables/use-touch.d.ts +1 -1
- package/lib/config-provider/ConfigProvider.d.ts +4 -4
- package/lib/config-provider/types.d.ts +1 -1
- package/lib/contact-card/ContactCard.d.ts +2 -2
- package/lib/contact-card/types.d.ts +1 -1
- package/lib/contact-edit/ContactEdit.d.ts +2 -2
- package/lib/contact-edit/types.d.ts +1 -1
- package/lib/contact-list/ContactList.d.ts +2 -2
- package/lib/contact-list/types.d.ts +1 -1
- package/lib/count-down/CountDown.d.ts +1 -1
- package/lib/count-down/types.d.ts +4 -4
- package/lib/coupon/Coupon.d.ts +1 -1
- package/lib/coupon/types.d.ts +1 -1
- package/lib/coupon-cell/CouponCell.d.ts +1 -1
- package/lib/coupon-cell/types.d.ts +1 -1
- package/lib/coupon-list/CouponList.d.ts +1 -1
- package/lib/coupon-list/types.d.ts +1 -1
- package/lib/date-picker/DatePicker.d.ts +3 -3
- package/lib/date-picker/index.d.ts +1 -1
- package/lib/date-picker/utils.d.ts +2 -2
- package/lib/dialog/Dialog.d.ts +2 -2
- package/lib/dialog/index.d.ts +1 -1
- package/lib/dialog/types.d.ts +6 -6
- package/lib/divider/Divider.d.ts +2 -2
- package/lib/divider/types.d.ts +1 -1
- package/lib/dropdown-item/DropdownItem.d.ts +3 -3
- package/lib/dropdown-item/DropdownItem.js +5 -3
- package/lib/dropdown-item/index.d.ts +2 -2
- package/lib/dropdown-item/types.d.ts +4 -4
- package/lib/dropdown-menu/DropdownMenu.d.ts +1 -1
- package/lib/dropdown-menu/types.d.ts +3 -3
- package/lib/empty/Empty.d.ts +1 -1
- package/lib/empty/types.d.ts +1 -1
- package/lib/field/Field.d.ts +2 -2
- package/lib/field/index.d.ts +1 -1
- package/lib/field/types.d.ts +16 -16
- package/lib/form/Form.d.ts +1 -1
- package/lib/form/types.d.ts +3 -3
- package/lib/grid/Grid.d.ts +3 -3
- package/lib/grid-item/GridItem.d.ts +1 -1
- package/lib/grid-item/types.d.ts +1 -1
- package/lib/icon/Icon.d.ts +1 -1
- package/lib/image/Image.d.ts +3 -3
- package/lib/image/types.d.ts +1 -1
- package/lib/image-preview/ImagePreview.d.ts +1 -1
- package/lib/image-preview/types.d.ts +5 -5
- package/lib/index-anchor/IndexAnchor.d.ts +1 -1
- package/lib/index-anchor/types.d.ts +1 -1
- package/lib/index-bar/IndexBar.d.ts +1 -1
- package/lib/index-bar/types.d.ts +4 -4
- package/lib/index.css +1 -1
- package/lib/index.d.ts +2 -1
- package/lib/index.js +4 -1
- package/lib/lazyload/vue-lazyload/util.d.ts +25 -0
- package/lib/list/List.d.ts +1 -1
- package/lib/list/List.js +1 -1
- package/lib/list/types.d.ts +4 -4
- package/lib/loading/Loading.d.ts +2 -2
- package/lib/loading/types.d.ts +1 -1
- package/lib/locale/index.d.ts +1 -1
- package/lib/nav-bar/NavBar.d.ts +1 -1
- package/lib/nav-bar/types.d.ts +1 -1
- package/lib/notice-bar/NoticeBar.d.ts +1 -1
- package/lib/notice-bar/types.d.ts +4 -4
- package/lib/notify/Notify.d.ts +1 -1
- package/lib/notify/types.d.ts +5 -5
- package/lib/number-keyboard/NumberKeyboard.d.ts +2 -2
- package/lib/number-keyboard/NumberKeyboard.js +5 -3
- package/lib/number-keyboard/NumberKeyboardKey.d.ts +1 -1
- package/lib/number-keyboard/types.d.ts +1 -1
- package/lib/overlay/Overlay.d.ts +1 -1
- package/lib/overlay/types.d.ts +1 -1
- package/lib/pagination/Pagination.d.ts +2 -2
- package/lib/pagination/types.d.ts +1 -1
- package/lib/password-input/PasswordInput.d.ts +1 -1
- package/lib/password-input/types.d.ts +1 -1
- package/lib/picker/Picker.d.ts +2 -2
- package/lib/picker/PickerToolbar.d.ts +1 -1
- package/lib/picker/index.d.ts +1 -1
- package/lib/picker/types.d.ts +11 -11
- package/lib/picker-group/PickerGroup.d.ts +2 -2
- package/lib/picker-group/types.d.ts +1 -1
- package/lib/popover/Popover.d.ts +1 -1
- package/lib/popover/types.d.ts +5 -5
- package/lib/popup/Popup.d.ts +3 -3
- package/lib/popup/index.d.ts +2 -2
- package/lib/popup/shared.d.ts +1 -1
- package/lib/popup/types.d.ts +5 -5
- package/lib/progress/Progress.d.ts +1 -1
- package/lib/progress/types.d.ts +3 -3
- package/lib/pull-refresh/PullRefresh.d.ts +1 -1
- package/lib/pull-refresh/types.d.ts +1 -1
- package/lib/radio/Radio.d.ts +3 -3
- package/lib/radio/types.d.ts +1 -1
- package/lib/radio-group/RadioGroup.d.ts +3 -3
- package/lib/rate/Rate.d.ts +1 -1
- package/lib/rate/types.d.ts +1 -1
- package/lib/row/Row.d.ts +5 -5
- package/lib/search/Search.d.ts +1 -1
- package/lib/search/types.d.ts +4 -4
- package/lib/share-sheet/ShareSheet.d.ts +4 -4
- package/lib/share-sheet/index.d.ts +1 -1
- package/lib/share-sheet/types.d.ts +1 -1
- package/lib/sidebar/Sidebar.d.ts +2 -2
- package/lib/sidebar/types.d.ts +1 -1
- package/lib/sidebar-item/SidebarItem.d.ts +1 -1
- package/lib/sidebar-item/types.d.ts +1 -1
- package/lib/skeleton/Skeleton.d.ts +1 -1
- package/lib/skeleton/SkeletonAvatar.d.ts +1 -1
- package/lib/skeleton/SkeletonImage.d.ts +1 -1
- package/lib/skeleton/SkeletonParagraph.d.ts +1 -1
- package/lib/skeleton/SkeletonTitle.d.ts +1 -1
- package/lib/skeleton/types.d.ts +3 -3
- package/lib/slider/Slider.d.ts +3 -3
- package/lib/slider/types.d.ts +1 -1
- package/lib/space/Space.d.ts +3 -3
- package/lib/step/types.d.ts +1 -1
- package/lib/stepper/Stepper.d.ts +2 -2
- package/lib/stepper/types.d.ts +1 -1
- package/lib/steps/Steps.d.ts +3 -3
- package/lib/steps/types.d.ts +1 -1
- package/lib/sticky/Sticky.d.ts +2 -2
- package/lib/sticky/types.d.ts +1 -1
- package/lib/style/base.css +1 -1
- package/lib/style/normalize.css +1 -1
- package/lib/submit-bar/SubmitBar.d.ts +2 -2
- package/lib/submit-bar/types.d.ts +1 -1
- package/lib/swipe/Swipe.d.ts +1 -1
- package/lib/swipe/types.d.ts +6 -6
- package/lib/swipe-cell/SwipeCell.d.ts +3 -3
- package/lib/swipe-cell/index.d.ts +2 -2
- package/lib/swipe-cell/types.d.ts +4 -4
- package/lib/switch/Switch.d.ts +1 -1
- package/lib/switch/types.d.ts +1 -1
- package/lib/tab/Tab.d.ts +1 -1
- package/lib/tabbar/Tabbar.d.ts +2 -2
- package/lib/tabbar/types.d.ts +1 -1
- package/lib/tabbar-item/TabbarItem.d.ts +1 -1
- package/lib/tabbar-item/types.d.ts +1 -1
- package/lib/tabs/Tabs.d.ts +1 -1
- package/lib/tabs/types.d.ts +6 -6
- package/lib/tag/Tag.d.ts +1 -1
- package/lib/tag/types.d.ts +3 -3
- package/lib/time-picker/TimePicker.d.ts +3 -3
- package/lib/time-picker/index.d.ts +1 -1
- package/lib/toast/Toast.d.ts +1 -1
- package/lib/toast/types.d.ts +6 -6
- package/lib/tree-select/TreeSelect.d.ts +3 -3
- package/lib/tree-select/types.d.ts +1 -1
- package/lib/uploader/Uploader.d.ts +1 -1
- package/lib/uploader/types.d.ts +8 -8
- package/lib/utils/basic.d.ts +3 -3
- package/lib/utils/create.d.ts +4 -4
- package/lib/utils/deep-assign.d.ts +1 -1
- package/lib/utils/dom.d.ts +1 -1
- package/lib/utils/interceptor.d.ts +1 -1
- package/lib/utils/mount-component.d.ts +1 -1
- package/lib/utils/with-install.d.ts +2 -2
- package/lib/vant.cjs.js +533 -436
- package/lib/vant.es.js +534 -437
- package/lib/vant.js +533 -436
- package/lib/vant.min.js +1 -1
- package/lib/web-types.json +1 -1
- package/package.json +2 -2
package/lib/vant.cjs.js
CHANGED
@@ -237,7 +237,7 @@ function deepAssign(to, from) {
|
|
237
237
|
});
|
238
238
|
return to;
|
239
239
|
}
|
240
|
-
var stdin_default$
|
240
|
+
var stdin_default$1K = {
|
241
241
|
name: "\u59D3\u540D",
|
242
242
|
tel: "\u7535\u8BDD",
|
243
243
|
save: "\u4FDD\u5B58",
|
@@ -300,7 +300,7 @@ var stdin_default$1J = {
|
|
300
300
|
};
|
301
301
|
const lang = vue.ref("zh-CN");
|
302
302
|
const messages = vue.reactive({
|
303
|
-
"zh-CN": stdin_default$
|
303
|
+
"zh-CN": stdin_default$1K
|
304
304
|
});
|
305
305
|
const Locale = {
|
306
306
|
messages() {
|
@@ -314,11 +314,11 @@ const Locale = {
|
|
314
314
|
deepAssign(messages, newMessages);
|
315
315
|
}
|
316
316
|
};
|
317
|
-
var stdin_default$
|
317
|
+
var stdin_default$1J = Locale;
|
318
318
|
function createTranslate(name2) {
|
319
319
|
const prefix = camelize(name2) + ".";
|
320
320
|
return (path, ...args) => {
|
321
|
-
const messages2 = stdin_default$
|
321
|
+
const messages2 = stdin_default$1J.messages();
|
322
322
|
const message = get(messages2, prefix + path) || get(messages2, path);
|
323
323
|
return isFunction(message) ? message(...args) : message;
|
324
324
|
};
|
@@ -439,20 +439,20 @@ function usePlaceholder(contentRef, bem2) {
|
|
439
439
|
}
|
440
440
|
}, [renderContent()]);
|
441
441
|
}
|
442
|
-
const [name$
|
443
|
-
const ACTION_BAR_KEY = Symbol(name$
|
442
|
+
const [name$1B, bem$1w] = createNamespace("action-bar");
|
443
|
+
const ACTION_BAR_KEY = Symbol(name$1B);
|
444
444
|
const actionBarProps = {
|
445
445
|
placeholder: Boolean,
|
446
446
|
safeAreaInsetBottom: truthProp
|
447
447
|
};
|
448
|
-
var stdin_default$
|
449
|
-
name: name$
|
448
|
+
var stdin_default$1I = vue.defineComponent({
|
449
|
+
name: name$1B,
|
450
450
|
props: actionBarProps,
|
451
451
|
setup(props, {
|
452
452
|
slots
|
453
453
|
}) {
|
454
454
|
const root = vue.ref();
|
455
|
-
const renderPlaceholder = usePlaceholder(root, bem$
|
455
|
+
const renderPlaceholder = usePlaceholder(root, bem$1w);
|
456
456
|
const {
|
457
457
|
linkChildren
|
458
458
|
} = use.useChildren(ACTION_BAR_KEY);
|
@@ -461,7 +461,7 @@ var stdin_default$1H = vue.defineComponent({
|
|
461
461
|
var _a;
|
462
462
|
return vue.createVNode("div", {
|
463
463
|
"ref": root,
|
464
|
-
"class": [bem$
|
464
|
+
"class": [bem$1w(), {
|
465
465
|
"van-safe-area-bottom": props.safeAreaInsetBottom
|
466
466
|
}]
|
467
467
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
@@ -474,7 +474,7 @@ var stdin_default$1H = vue.defineComponent({
|
|
474
474
|
};
|
475
475
|
}
|
476
476
|
});
|
477
|
-
const ActionBar = withInstall(stdin_default$
|
477
|
+
const ActionBar = withInstall(stdin_default$1I);
|
478
478
|
function useExpose(apis) {
|
479
479
|
const instance2 = vue.getCurrentInstance();
|
480
480
|
if (instance2) {
|
@@ -502,7 +502,7 @@ function useRoute() {
|
|
502
502
|
const vm = vue.getCurrentInstance().proxy;
|
503
503
|
return () => route(vm);
|
504
504
|
}
|
505
|
-
const [name$
|
505
|
+
const [name$1A, bem$1v] = createNamespace("badge");
|
506
506
|
const badgeProps = {
|
507
507
|
dot: Boolean,
|
508
508
|
max: numericProp,
|
@@ -513,8 +513,8 @@ const badgeProps = {
|
|
513
513
|
showZero: truthProp,
|
514
514
|
position: makeStringProp("top-right")
|
515
515
|
};
|
516
|
-
var stdin_default$
|
517
|
-
name: name$
|
516
|
+
var stdin_default$1H = vue.defineComponent({
|
517
|
+
name: name$1A,
|
518
518
|
props: badgeProps,
|
519
519
|
setup(props, {
|
520
520
|
slots
|
@@ -568,7 +568,7 @@ var stdin_default$1G = vue.defineComponent({
|
|
568
568
|
const renderBadge = () => {
|
569
569
|
if (hasContent() || props.dot) {
|
570
570
|
return vue.createVNode("div", {
|
571
|
-
"class": bem$
|
571
|
+
"class": bem$1v([props.position, {
|
572
572
|
dot: props.dot,
|
573
573
|
fixed: !!slots.default
|
574
574
|
}]),
|
@@ -582,7 +582,7 @@ var stdin_default$1G = vue.defineComponent({
|
|
582
582
|
tag
|
583
583
|
} = props;
|
584
584
|
return vue.createVNode(tag, {
|
585
|
-
"class": bem$
|
585
|
+
"class": bem$1v("wrapper")
|
586
586
|
}, {
|
587
587
|
default: () => [slots.default(), renderBadge()]
|
588
588
|
});
|
@@ -591,14 +591,14 @@ var stdin_default$1G = vue.defineComponent({
|
|
591
591
|
};
|
592
592
|
}
|
593
593
|
});
|
594
|
-
const Badge = withInstall(stdin_default$
|
594
|
+
const Badge = withInstall(stdin_default$1H);
|
595
595
|
let globalZIndex = 2e3;
|
596
596
|
const useGlobalZIndex = () => ++globalZIndex;
|
597
597
|
const setGlobalZIndex = (val) => {
|
598
598
|
globalZIndex = val;
|
599
599
|
};
|
600
|
-
const [name$
|
601
|
-
const CONFIG_PROVIDER_KEY = Symbol(name$
|
600
|
+
const [name$1z, bem$1u] = createNamespace("config-provider");
|
601
|
+
const CONFIG_PROVIDER_KEY = Symbol(name$1z);
|
602
602
|
const configProviderProps = {
|
603
603
|
tag: makeStringProp("div"),
|
604
604
|
theme: makeStringProp("light"),
|
@@ -615,8 +615,8 @@ function mapThemeVarsToCSSVars(themeVars) {
|
|
615
615
|
});
|
616
616
|
return cssVars;
|
617
617
|
}
|
618
|
-
var stdin_default$
|
619
|
-
name: name$
|
618
|
+
var stdin_default$1G = vue.defineComponent({
|
619
|
+
name: name$1z,
|
620
620
|
props: configProviderProps,
|
621
621
|
setup(props, {
|
622
622
|
slots
|
@@ -648,7 +648,7 @@ var stdin_default$1F = vue.defineComponent({
|
|
648
648
|
}
|
649
649
|
});
|
650
650
|
return () => vue.createVNode(props.tag, {
|
651
|
-
"class": bem$
|
651
|
+
"class": bem$1u(),
|
652
652
|
"style": style.value
|
653
653
|
}, {
|
654
654
|
default: () => {
|
@@ -658,7 +658,7 @@ var stdin_default$1F = vue.defineComponent({
|
|
658
658
|
});
|
659
659
|
}
|
660
660
|
});
|
661
|
-
const [name$
|
661
|
+
const [name$1y, bem$1t] = createNamespace("icon");
|
662
662
|
const isImage = (name2) => name2 == null ? void 0 : name2.includes("/");
|
663
663
|
const iconProps = {
|
664
664
|
dot: Boolean,
|
@@ -670,14 +670,14 @@ const iconProps = {
|
|
670
670
|
badgeProps: Object,
|
671
671
|
classPrefix: String
|
672
672
|
};
|
673
|
-
var stdin_default$
|
674
|
-
name: name$
|
673
|
+
var stdin_default$1F = vue.defineComponent({
|
674
|
+
name: name$1y,
|
675
675
|
props: iconProps,
|
676
676
|
setup(props, {
|
677
677
|
slots
|
678
678
|
}) {
|
679
679
|
const config = vue.inject(CONFIG_PROVIDER_KEY, null);
|
680
|
-
const classPrefix = vue.computed(() => props.classPrefix || (config == null ? void 0 : config.iconPrefix) || bem$
|
680
|
+
const classPrefix = vue.computed(() => props.classPrefix || (config == null ? void 0 : config.iconPrefix) || bem$1t());
|
681
681
|
return () => {
|
682
682
|
const {
|
683
683
|
tag,
|
@@ -701,7 +701,7 @@ var stdin_default$1E = vue.defineComponent({
|
|
701
701
|
default: () => {
|
702
702
|
var _a;
|
703
703
|
return [(_a = slots.default) == null ? void 0 : _a.call(slots), isImageIcon && vue.createVNode("img", {
|
704
|
-
"class": bem$
|
704
|
+
"class": bem$1t("image"),
|
705
705
|
"src": name2
|
706
706
|
}, null)];
|
707
707
|
}
|
@@ -709,13 +709,13 @@ var stdin_default$1E = vue.defineComponent({
|
|
709
709
|
};
|
710
710
|
}
|
711
711
|
});
|
712
|
-
const Icon = withInstall(stdin_default$
|
713
|
-
const [name$
|
712
|
+
const Icon = withInstall(stdin_default$1F);
|
713
|
+
const [name$1x, bem$1s] = createNamespace("loading");
|
714
714
|
const SpinIcon = Array(12).fill(null).map((_, index) => vue.createVNode("i", {
|
715
|
-
"class": bem$
|
715
|
+
"class": bem$1s("line", String(index + 1))
|
716
716
|
}, null));
|
717
717
|
const CircularIcon = vue.createVNode("svg", {
|
718
|
-
"class": bem$
|
718
|
+
"class": bem$1s("circular"),
|
719
719
|
"viewBox": "25 25 50 50"
|
720
720
|
}, [vue.createVNode("circle", {
|
721
721
|
"cx": "50",
|
@@ -731,8 +731,8 @@ const loadingProps = {
|
|
731
731
|
textSize: numericProp,
|
732
732
|
textColor: String
|
733
733
|
};
|
734
|
-
var stdin_default$
|
735
|
-
name: name$
|
734
|
+
var stdin_default$1E = vue.defineComponent({
|
735
|
+
name: name$1x,
|
736
736
|
props: loadingProps,
|
737
737
|
setup(props, {
|
738
738
|
slots
|
@@ -743,7 +743,7 @@ var stdin_default$1D = vue.defineComponent({
|
|
743
743
|
const renderIcon = () => {
|
744
744
|
const DefaultIcon = props.type === "spinner" ? SpinIcon : CircularIcon;
|
745
745
|
return vue.createVNode("span", {
|
746
|
-
"class": bem$
|
746
|
+
"class": bem$1s("spinner", props.type),
|
747
747
|
"style": spinnerStyle.value
|
748
748
|
}, [slots.icon ? slots.icon() : DefaultIcon]);
|
749
749
|
};
|
@@ -751,7 +751,7 @@ var stdin_default$1D = vue.defineComponent({
|
|
751
751
|
var _a;
|
752
752
|
if (slots.default) {
|
753
753
|
return vue.createVNode("span", {
|
754
|
-
"class": bem$
|
754
|
+
"class": bem$1s("text"),
|
755
755
|
"style": {
|
756
756
|
fontSize: addUnit(props.textSize),
|
757
757
|
color: (_a = props.textColor) != null ? _a : props.color
|
@@ -765,7 +765,7 @@ var stdin_default$1D = vue.defineComponent({
|
|
765
765
|
vertical
|
766
766
|
} = props;
|
767
767
|
return vue.createVNode("div", {
|
768
|
-
"class": bem$
|
768
|
+
"class": bem$1s([type, {
|
769
769
|
vertical
|
770
770
|
}]),
|
771
771
|
"aria-live": "polite",
|
@@ -774,8 +774,8 @@ var stdin_default$1D = vue.defineComponent({
|
|
774
774
|
};
|
775
775
|
}
|
776
776
|
});
|
777
|
-
const Loading = withInstall(stdin_default$
|
778
|
-
const [name$
|
777
|
+
const Loading = withInstall(stdin_default$1E);
|
778
|
+
const [name$1w, bem$1r] = createNamespace("button");
|
779
779
|
const buttonProps = extend({}, routeProps, {
|
780
780
|
tag: makeStringProp("button"),
|
781
781
|
text: String,
|
@@ -797,8 +797,8 @@ const buttonProps = extend({}, routeProps, {
|
|
797
797
|
loadingType: String,
|
798
798
|
iconPosition: makeStringProp("left")
|
799
799
|
});
|
800
|
-
var stdin_default$
|
801
|
-
name: name$
|
800
|
+
var stdin_default$1D = vue.defineComponent({
|
801
|
+
name: name$1w,
|
802
802
|
props: buttonProps,
|
803
803
|
emits: ["click"],
|
804
804
|
setup(props, {
|
@@ -813,7 +813,7 @@ var stdin_default$1C = vue.defineComponent({
|
|
813
813
|
return vue.createVNode(Loading, {
|
814
814
|
"size": props.loadingSize,
|
815
815
|
"type": props.loadingType,
|
816
|
-
"class": bem$
|
816
|
+
"class": bem$1r("loading")
|
817
817
|
}, null);
|
818
818
|
};
|
819
819
|
const renderIcon = () => {
|
@@ -822,13 +822,13 @@ var stdin_default$1C = vue.defineComponent({
|
|
822
822
|
}
|
823
823
|
if (slots.icon) {
|
824
824
|
return vue.createVNode("div", {
|
825
|
-
"class": bem$
|
825
|
+
"class": bem$1r("icon")
|
826
826
|
}, [slots.icon()]);
|
827
827
|
}
|
828
828
|
if (props.icon) {
|
829
829
|
return vue.createVNode(Icon, {
|
830
830
|
"name": props.icon,
|
831
|
-
"class": bem$
|
831
|
+
"class": bem$1r("icon"),
|
832
832
|
"classPrefix": props.iconPrefix
|
833
833
|
}, null);
|
834
834
|
}
|
@@ -842,7 +842,7 @@ var stdin_default$1C = vue.defineComponent({
|
|
842
842
|
}
|
843
843
|
if (text) {
|
844
844
|
return vue.createVNode("span", {
|
845
|
-
"class": bem$
|
845
|
+
"class": bem$1r("text")
|
846
846
|
}, [text]);
|
847
847
|
}
|
848
848
|
};
|
@@ -889,7 +889,7 @@ var stdin_default$1C = vue.defineComponent({
|
|
889
889
|
nativeType,
|
890
890
|
iconPosition
|
891
891
|
} = props;
|
892
|
-
const classes = [bem$
|
892
|
+
const classes = [bem$1r([type, size, {
|
893
893
|
plain,
|
894
894
|
block,
|
895
895
|
round,
|
@@ -908,14 +908,14 @@ var stdin_default$1C = vue.defineComponent({
|
|
908
908
|
"onClick": onClick
|
909
909
|
}, {
|
910
910
|
default: () => [vue.createVNode("div", {
|
911
|
-
"class": bem$
|
911
|
+
"class": bem$1r("content")
|
912
912
|
}, [iconPosition === "left" && renderIcon(), renderText(), iconPosition === "right" && renderIcon()])]
|
913
913
|
});
|
914
914
|
};
|
915
915
|
}
|
916
916
|
});
|
917
|
-
const Button = withInstall(stdin_default$
|
918
|
-
const [name$
|
917
|
+
const Button = withInstall(stdin_default$1D);
|
918
|
+
const [name$1v, bem$1q] = createNamespace("action-bar-button");
|
919
919
|
const actionBarButtonProps = extend({}, routeProps, {
|
920
920
|
type: String,
|
921
921
|
text: String,
|
@@ -924,8 +924,8 @@ const actionBarButtonProps = extend({}, routeProps, {
|
|
924
924
|
loading: Boolean,
|
925
925
|
disabled: Boolean
|
926
926
|
});
|
927
|
-
var stdin_default$
|
928
|
-
name: name$
|
927
|
+
var stdin_default$1C = vue.defineComponent({
|
928
|
+
name: name$1v,
|
929
929
|
props: actionBarButtonProps,
|
930
930
|
setup(props, {
|
931
931
|
slots
|
@@ -960,7 +960,7 @@ var stdin_default$1B = vue.defineComponent({
|
|
960
960
|
disabled
|
961
961
|
} = props;
|
962
962
|
return vue.createVNode(Button, {
|
963
|
-
"class": bem$
|
963
|
+
"class": bem$1q([type, {
|
964
964
|
last: isLast.value,
|
965
965
|
first: isFirst.value
|
966
966
|
}]),
|
@@ -977,8 +977,8 @@ var stdin_default$1B = vue.defineComponent({
|
|
977
977
|
};
|
978
978
|
}
|
979
979
|
});
|
980
|
-
const ActionBarButton = withInstall(stdin_default$
|
981
|
-
const [name$
|
980
|
+
const ActionBarButton = withInstall(stdin_default$1C);
|
981
|
+
const [name$1u, bem$1p] = createNamespace("action-bar-icon");
|
982
982
|
const actionBarIconProps = extend({}, routeProps, {
|
983
983
|
dot: Boolean,
|
984
984
|
text: String,
|
@@ -989,8 +989,8 @@ const actionBarIconProps = extend({}, routeProps, {
|
|
989
989
|
badgeProps: Object,
|
990
990
|
iconPrefix: String
|
991
991
|
});
|
992
|
-
var stdin_default$
|
993
|
-
name: name$
|
992
|
+
var stdin_default$1B = vue.defineComponent({
|
993
|
+
name: name$1u,
|
994
994
|
props: actionBarIconProps,
|
995
995
|
setup(props, {
|
996
996
|
slots
|
@@ -1010,7 +1010,7 @@ var stdin_default$1A = vue.defineComponent({
|
|
1010
1010
|
if (slots.icon) {
|
1011
1011
|
return vue.createVNode(Badge, vue.mergeProps({
|
1012
1012
|
"dot": dot,
|
1013
|
-
"class": bem$
|
1013
|
+
"class": bem$1p("icon"),
|
1014
1014
|
"content": badge
|
1015
1015
|
}, badgeProps2), {
|
1016
1016
|
default: slots.icon
|
@@ -1022,20 +1022,20 @@ var stdin_default$1A = vue.defineComponent({
|
|
1022
1022
|
"name": icon,
|
1023
1023
|
"badge": badge,
|
1024
1024
|
"color": color,
|
1025
|
-
"class": [bem$
|
1025
|
+
"class": [bem$1p("icon"), iconClass],
|
1026
1026
|
"badgeProps": badgeProps2,
|
1027
1027
|
"classPrefix": iconPrefix
|
1028
1028
|
}, null);
|
1029
1029
|
};
|
1030
1030
|
return () => vue.createVNode("div", {
|
1031
1031
|
"role": "button",
|
1032
|
-
"class": bem$
|
1032
|
+
"class": bem$1p(),
|
1033
1033
|
"tabindex": 0,
|
1034
1034
|
"onClick": route2
|
1035
1035
|
}, [renderIcon(), slots.default ? slots.default() : props.text]);
|
1036
1036
|
}
|
1037
1037
|
});
|
1038
|
-
const ActionBarIcon = withInstall(stdin_default$
|
1038
|
+
const ActionBarIcon = withInstall(stdin_default$1B);
|
1039
1039
|
const popupSharedProps = {
|
1040
1040
|
show: Boolean,
|
1041
1041
|
zIndex: numericProp,
|
@@ -1174,7 +1174,7 @@ function useLazyRender(show) {
|
|
1174
1174
|
);
|
1175
1175
|
return (render) => () => inited.value ? render() : null;
|
1176
1176
|
}
|
1177
|
-
const [name$
|
1177
|
+
const [name$1t, bem$1o] = createNamespace("overlay");
|
1178
1178
|
const overlayProps = {
|
1179
1179
|
show: Boolean,
|
1180
1180
|
zIndex: numericProp,
|
@@ -1184,8 +1184,8 @@ const overlayProps = {
|
|
1184
1184
|
lazyRender: truthProp,
|
1185
1185
|
customStyle: Object
|
1186
1186
|
};
|
1187
|
-
var stdin_default$
|
1188
|
-
name: name$
|
1187
|
+
var stdin_default$1A = vue.defineComponent({
|
1188
|
+
name: name$1t,
|
1189
1189
|
props: overlayProps,
|
1190
1190
|
setup(props, {
|
1191
1191
|
slots
|
@@ -1206,7 +1206,7 @@ var stdin_default$1z = vue.defineComponent({
|
|
1206
1206
|
return vue.withDirectives(vue.createVNode("div", {
|
1207
1207
|
"ref": root,
|
1208
1208
|
"style": style,
|
1209
|
-
"class": [bem$
|
1209
|
+
"class": [bem$1o(), props.className]
|
1210
1210
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]), [[vue.vShow, props.show]]);
|
1211
1211
|
});
|
1212
1212
|
use.useEventListener("touchmove", onTouchMove, {
|
@@ -1220,7 +1220,7 @@ var stdin_default$1z = vue.defineComponent({
|
|
1220
1220
|
});
|
1221
1221
|
}
|
1222
1222
|
});
|
1223
|
-
const Overlay = withInstall(stdin_default$
|
1223
|
+
const Overlay = withInstall(stdin_default$1A);
|
1224
1224
|
const popupProps$2 = extend({}, popupSharedProps, {
|
1225
1225
|
round: Boolean,
|
1226
1226
|
position: makeStringProp("center"),
|
@@ -1233,9 +1233,9 @@ const popupProps$2 = extend({}, popupSharedProps, {
|
|
1233
1233
|
safeAreaInsetTop: Boolean,
|
1234
1234
|
safeAreaInsetBottom: Boolean
|
1235
1235
|
});
|
1236
|
-
const [name$
|
1237
|
-
var stdin_default$
|
1238
|
-
name: name$
|
1236
|
+
const [name$1s, bem$1n] = createNamespace("popup");
|
1237
|
+
var stdin_default$1z = vue.defineComponent({
|
1238
|
+
name: name$1s,
|
1239
1239
|
inheritAttrs: false,
|
1240
1240
|
props: popupProps$2,
|
1241
1241
|
emits: ["open", "close", "opened", "closed", "keydown", "update:show", "clickOverlay", "clickCloseIcon"],
|
@@ -1309,7 +1309,7 @@ var stdin_default$1y = vue.defineComponent({
|
|
1309
1309
|
"role": "button",
|
1310
1310
|
"tabindex": 0,
|
1311
1311
|
"name": props.closeIcon,
|
1312
|
-
"class": [bem$
|
1312
|
+
"class": [bem$1n("close-icon", props.closeIconPosition), HAPTICS_FEEDBACK],
|
1313
1313
|
"classPrefix": props.iconPrefix,
|
1314
1314
|
"onClick": onClickCloseIcon
|
1315
1315
|
}, null);
|
@@ -1331,7 +1331,7 @@ var stdin_default$1y = vue.defineComponent({
|
|
1331
1331
|
"style": style.value,
|
1332
1332
|
"role": "dialog",
|
1333
1333
|
"tabindex": 0,
|
1334
|
-
"class": [bem$
|
1334
|
+
"class": [bem$1n({
|
1335
1335
|
round,
|
1336
1336
|
[position]: position
|
1337
1337
|
}), {
|
@@ -1412,8 +1412,8 @@ var stdin_default$1y = vue.defineComponent({
|
|
1412
1412
|
};
|
1413
1413
|
}
|
1414
1414
|
});
|
1415
|
-
const Popup = withInstall(stdin_default$
|
1416
|
-
const [name$
|
1415
|
+
const Popup = withInstall(stdin_default$1z);
|
1416
|
+
const [name$1r, bem$1m] = createNamespace("action-sheet");
|
1417
1417
|
const actionSheetProps = extend({}, popupSharedProps, {
|
1418
1418
|
title: String,
|
1419
1419
|
round: truthProp,
|
@@ -1427,8 +1427,8 @@ const actionSheetProps = extend({}, popupSharedProps, {
|
|
1427
1427
|
safeAreaInsetBottom: truthProp
|
1428
1428
|
});
|
1429
1429
|
const popupInheritKeys$2 = [...popupSharedPropKeys, "round", "closeOnPopstate", "safeAreaInsetBottom"];
|
1430
|
-
var stdin_default$
|
1431
|
-
name: name$
|
1430
|
+
var stdin_default$1y = vue.defineComponent({
|
1431
|
+
name: name$1r,
|
1432
1432
|
props: actionSheetProps,
|
1433
1433
|
emits: ["select", "cancel", "update:show"],
|
1434
1434
|
setup(props, {
|
@@ -1443,10 +1443,10 @@ var stdin_default$1x = vue.defineComponent({
|
|
1443
1443
|
const renderHeader = () => {
|
1444
1444
|
if (props.title) {
|
1445
1445
|
return vue.createVNode("div", {
|
1446
|
-
"class": bem$
|
1446
|
+
"class": bem$1m("header")
|
1447
1447
|
}, [props.title, props.closeable && vue.createVNode(Icon, {
|
1448
1448
|
"name": props.closeIcon,
|
1449
|
-
"class": [bem$
|
1449
|
+
"class": [bem$1m("close"), HAPTICS_FEEDBACK],
|
1450
1450
|
"onClick": onCancel
|
1451
1451
|
}, null)]);
|
1452
1452
|
}
|
@@ -1454,10 +1454,10 @@ var stdin_default$1x = vue.defineComponent({
|
|
1454
1454
|
const renderCancel = () => {
|
1455
1455
|
if (slots.cancel || props.cancelText) {
|
1456
1456
|
return [vue.createVNode("div", {
|
1457
|
-
"class": bem$
|
1457
|
+
"class": bem$1m("gap")
|
1458
1458
|
}, null), vue.createVNode("button", {
|
1459
1459
|
"type": "button",
|
1460
|
-
"class": bem$
|
1460
|
+
"class": bem$1m("cancel"),
|
1461
1461
|
"onClick": onCancel
|
1462
1462
|
}, [slots.cancel ? slots.cancel() : props.cancelText])];
|
1463
1463
|
}
|
@@ -1465,7 +1465,7 @@ var stdin_default$1x = vue.defineComponent({
|
|
1465
1465
|
const renderActionContent = (action, index) => {
|
1466
1466
|
if (action.loading) {
|
1467
1467
|
return vue.createVNode(Loading, {
|
1468
|
-
"class": bem$
|
1468
|
+
"class": bem$1m("loading-icon")
|
1469
1469
|
}, null);
|
1470
1470
|
}
|
1471
1471
|
if (slots.action) {
|
@@ -1475,9 +1475,9 @@ var stdin_default$1x = vue.defineComponent({
|
|
1475
1475
|
});
|
1476
1476
|
}
|
1477
1477
|
return [vue.createVNode("span", {
|
1478
|
-
"class": bem$
|
1478
|
+
"class": bem$1m("name")
|
1479
1479
|
}, [action.name]), action.subname && vue.createVNode("div", {
|
1480
|
-
"class": bem$
|
1480
|
+
"class": bem$1m("subname")
|
1481
1481
|
}, [action.subname])];
|
1482
1482
|
};
|
1483
1483
|
const renderAction = (action, index) => {
|
@@ -1505,7 +1505,7 @@ var stdin_default$1x = vue.defineComponent({
|
|
1505
1505
|
"style": {
|
1506
1506
|
color
|
1507
1507
|
},
|
1508
|
-
"class": [bem$
|
1508
|
+
"class": [bem$1m("item", {
|
1509
1509
|
loading,
|
1510
1510
|
disabled
|
1511
1511
|
}), className],
|
@@ -1516,26 +1516,26 @@ var stdin_default$1x = vue.defineComponent({
|
|
1516
1516
|
if (props.description || slots.description) {
|
1517
1517
|
const content = slots.description ? slots.description() : props.description;
|
1518
1518
|
return vue.createVNode("div", {
|
1519
|
-
"class": bem$
|
1519
|
+
"class": bem$1m("description")
|
1520
1520
|
}, [content]);
|
1521
1521
|
}
|
1522
1522
|
};
|
1523
1523
|
return () => vue.createVNode(Popup, vue.mergeProps({
|
1524
|
-
"class": bem$
|
1524
|
+
"class": bem$1m(),
|
1525
1525
|
"position": "bottom",
|
1526
1526
|
"onUpdate:show": updateShow
|
1527
1527
|
}, pick(props, popupInheritKeys$2)), {
|
1528
1528
|
default: () => {
|
1529
1529
|
var _a;
|
1530
1530
|
return [renderHeader(), renderDescription(), vue.createVNode("div", {
|
1531
|
-
"class": bem$
|
1531
|
+
"class": bem$1m("content")
|
1532
1532
|
}, [props.actions.map(renderAction), (_a = slots.default) == null ? void 0 : _a.call(slots)]), renderCancel()];
|
1533
1533
|
}
|
1534
1534
|
});
|
1535
1535
|
}
|
1536
1536
|
});
|
1537
|
-
const ActionSheet = withInstall(stdin_default$
|
1538
|
-
const [name$
|
1537
|
+
const ActionSheet = withInstall(stdin_default$1y);
|
1538
|
+
const [name$1q, bem$1l, t$j] = createNamespace("picker");
|
1539
1539
|
const getFirstEnabledOption = (options) => options.find((option) => !option.disabled) || options[0];
|
1540
1540
|
function getColumnsType(columns, fields) {
|
1541
1541
|
const firstColumn = columns[0];
|
@@ -1604,10 +1604,10 @@ function assignDefaultFields(fields) {
|
|
1604
1604
|
const DEFAULT_DURATION = 200;
|
1605
1605
|
const MOMENTUM_TIME = 300;
|
1606
1606
|
const MOMENTUM_DISTANCE = 15;
|
1607
|
-
const [name$
|
1608
|
-
const PICKER_KEY = Symbol(name$
|
1609
|
-
var stdin_default$
|
1610
|
-
name: name$
|
1607
|
+
const [name$1p, bem$1k] = createNamespace("picker-column");
|
1608
|
+
const PICKER_KEY = Symbol(name$1p);
|
1609
|
+
var stdin_default$1x = vue.defineComponent({
|
1610
|
+
name: name$1p,
|
1611
1611
|
props: {
|
1612
1612
|
value: numericProp,
|
1613
1613
|
fields: makeRequiredProp(Object),
|
@@ -1740,7 +1740,7 @@ var stdin_default$1w = vue.defineComponent({
|
|
1740
1740
|
role: "button",
|
1741
1741
|
style: optionStyle,
|
1742
1742
|
tabindex: disabled ? -1 : 0,
|
1743
|
-
class: [bem$
|
1743
|
+
class: [bem$1k("item", {
|
1744
1744
|
disabled,
|
1745
1745
|
selected: value === props.value
|
1746
1746
|
}), option.className],
|
@@ -1768,7 +1768,7 @@ var stdin_default$1w = vue.defineComponent({
|
|
1768
1768
|
});
|
1769
1769
|
return () => vue.createVNode("div", {
|
1770
1770
|
"ref": root,
|
1771
|
-
"class": bem$
|
1771
|
+
"class": bem$1k(),
|
1772
1772
|
"onTouchstartPassive": onTouchStart,
|
1773
1773
|
"onTouchend": onTouchEnd,
|
1774
1774
|
"onTouchcancel": onTouchEnd
|
@@ -1779,12 +1779,12 @@ var stdin_default$1w = vue.defineComponent({
|
|
1779
1779
|
transitionDuration: `${currentDuration.value}ms`,
|
1780
1780
|
transitionProperty: currentDuration.value ? "all" : "none"
|
1781
1781
|
},
|
1782
|
-
"class": bem$
|
1782
|
+
"class": bem$1k("wrapper"),
|
1783
1783
|
"onTransitionend": stopMomentum
|
1784
1784
|
}, [renderOptions()])]);
|
1785
1785
|
}
|
1786
1786
|
});
|
1787
|
-
const [name$
|
1787
|
+
const [name$1o] = createNamespace("picker-toolbar");
|
1788
1788
|
const pickerToolbarProps = {
|
1789
1789
|
title: String,
|
1790
1790
|
cancelButtonText: String,
|
@@ -1792,8 +1792,8 @@ const pickerToolbarProps = {
|
|
1792
1792
|
};
|
1793
1793
|
const pickerToolbarSlots = ["cancel", "confirm", "title", "toolbar"];
|
1794
1794
|
const pickerToolbarPropKeys = Object.keys(pickerToolbarProps);
|
1795
|
-
var stdin_default$
|
1796
|
-
name: name$
|
1795
|
+
var stdin_default$1w = vue.defineComponent({
|
1796
|
+
name: name$1o,
|
1797
1797
|
props: pickerToolbarProps,
|
1798
1798
|
emits: ["confirm", "cancel"],
|
1799
1799
|
setup(props, {
|
@@ -1806,7 +1806,7 @@ var stdin_default$1v = vue.defineComponent({
|
|
1806
1806
|
}
|
1807
1807
|
if (props.title) {
|
1808
1808
|
return vue.createVNode("div", {
|
1809
|
-
"class": [bem$
|
1809
|
+
"class": [bem$1l("title"), "van-ellipsis"]
|
1810
1810
|
}, [props.title]);
|
1811
1811
|
}
|
1812
1812
|
};
|
@@ -1816,7 +1816,7 @@ var stdin_default$1v = vue.defineComponent({
|
|
1816
1816
|
const text = props.cancelButtonText || t$j("cancel");
|
1817
1817
|
return vue.createVNode("button", {
|
1818
1818
|
"type": "button",
|
1819
|
-
"class": [bem$
|
1819
|
+
"class": [bem$1l("cancel"), HAPTICS_FEEDBACK],
|
1820
1820
|
"onClick": onCancel
|
1821
1821
|
}, [slots.cancel ? slots.cancel() : text]);
|
1822
1822
|
};
|
@@ -1824,12 +1824,12 @@ var stdin_default$1v = vue.defineComponent({
|
|
1824
1824
|
const text = props.confirmButtonText || t$j("confirm");
|
1825
1825
|
return vue.createVNode("button", {
|
1826
1826
|
"type": "button",
|
1827
|
-
"class": [bem$
|
1827
|
+
"class": [bem$1l("confirm"), HAPTICS_FEEDBACK],
|
1828
1828
|
"onClick": onConfirm
|
1829
1829
|
}, [slots.confirm ? slots.confirm() : text]);
|
1830
1830
|
};
|
1831
1831
|
return () => vue.createVNode("div", {
|
1832
|
-
"class": bem$
|
1832
|
+
"class": bem$1l("toolbar")
|
1833
1833
|
}, [slots.toolbar ? slots.toolbar() : [renderCancel(), renderTitle(), renderConfirm()]]);
|
1834
1834
|
}
|
1835
1835
|
});
|
@@ -1913,7 +1913,7 @@ function useVisibilityChange(target, onChange) {
|
|
1913
1913
|
vue.onBeforeUnmount(unobserve);
|
1914
1914
|
use.onMountedOrActivated(observe);
|
1915
1915
|
}
|
1916
|
-
const [name$
|
1916
|
+
const [name$1n, bem$1j] = createNamespace("sticky");
|
1917
1917
|
const stickyProps = {
|
1918
1918
|
zIndex: numericProp,
|
1919
1919
|
position: makeStringProp("top"),
|
@@ -1921,8 +1921,8 @@ const stickyProps = {
|
|
1921
1921
|
offsetTop: makeNumericProp(0),
|
1922
1922
|
offsetBottom: makeNumericProp(0)
|
1923
1923
|
};
|
1924
|
-
var stdin_default$
|
1925
|
-
name: name$
|
1924
|
+
var stdin_default$1v = vue.defineComponent({
|
1925
|
+
name: name$1n,
|
1926
1926
|
props: stickyProps,
|
1927
1927
|
emits: ["scroll", "change"],
|
1928
1928
|
setup(props, {
|
@@ -2017,7 +2017,7 @@ var stdin_default$1u = vue.defineComponent({
|
|
2017
2017
|
"ref": root,
|
2018
2018
|
"style": rootStyle.value
|
2019
2019
|
}, [vue.createVNode("div", {
|
2020
|
-
"class": bem$
|
2020
|
+
"class": bem$1j({
|
2021
2021
|
fixed: state.fixed
|
2022
2022
|
}),
|
2023
2023
|
"style": stickyStyle.value
|
@@ -2025,10 +2025,10 @@ var stdin_default$1u = vue.defineComponent({
|
|
2025
2025
|
};
|
2026
2026
|
}
|
2027
2027
|
});
|
2028
|
-
const Sticky = withInstall(stdin_default$
|
2029
|
-
const [name$
|
2030
|
-
var stdin_default$
|
2031
|
-
name: name$
|
2028
|
+
const Sticky = withInstall(stdin_default$1v);
|
2029
|
+
const [name$1m, bem$1i] = createNamespace("tab");
|
2030
|
+
var stdin_default$1u = vue.defineComponent({
|
2031
|
+
name: name$1m,
|
2032
2032
|
props: {
|
2033
2033
|
id: String,
|
2034
2034
|
dot: Boolean,
|
@@ -2077,7 +2077,7 @@ var stdin_default$1t = vue.defineComponent({
|
|
2077
2077
|
});
|
2078
2078
|
const renderText = () => {
|
2079
2079
|
const Text2 = vue.createVNode("span", {
|
2080
|
-
"class": bem$
|
2080
|
+
"class": bem$1i("text", {
|
2081
2081
|
ellipsis: !props.scrollable
|
2082
2082
|
})
|
2083
2083
|
}, [slots.title ? slots.title() : props.title]);
|
@@ -2095,7 +2095,7 @@ var stdin_default$1t = vue.defineComponent({
|
|
2095
2095
|
return () => vue.createVNode("div", {
|
2096
2096
|
"id": props.id,
|
2097
2097
|
"role": "tab",
|
2098
|
-
"class": [bem$
|
2098
|
+
"class": [bem$1i([props.type, {
|
2099
2099
|
grow: props.scrollable && !props.shrink,
|
2100
2100
|
shrink: props.shrink,
|
2101
2101
|
active: props.isActive,
|
@@ -2109,7 +2109,7 @@ var stdin_default$1t = vue.defineComponent({
|
|
2109
2109
|
}, [renderText()]);
|
2110
2110
|
}
|
2111
2111
|
});
|
2112
|
-
const [name$
|
2112
|
+
const [name$1l, bem$1h] = createNamespace("swipe");
|
2113
2113
|
const swipeProps = {
|
2114
2114
|
loop: truthProp,
|
2115
2115
|
width: numericProp,
|
@@ -2124,9 +2124,9 @@ const swipeProps = {
|
|
2124
2124
|
showIndicators: truthProp,
|
2125
2125
|
stopPropagation: truthProp
|
2126
2126
|
};
|
2127
|
-
const SWIPE_KEY = Symbol(name$
|
2128
|
-
var stdin_default$
|
2129
|
-
name: name$
|
2127
|
+
const SWIPE_KEY = Symbol(name$1l);
|
2128
|
+
var stdin_default$1t = vue.defineComponent({
|
2129
|
+
name: name$1l,
|
2130
2130
|
props: swipeProps,
|
2131
2131
|
emits: ["change"],
|
2132
2132
|
setup(props, {
|
@@ -2388,7 +2388,7 @@ var stdin_default$1s = vue.defineComponent({
|
|
2388
2388
|
} : void 0;
|
2389
2389
|
return vue.createVNode("i", {
|
2390
2390
|
"style": style,
|
2391
|
-
"class": bem$
|
2391
|
+
"class": bem$1h("indicator", {
|
2392
2392
|
active
|
2393
2393
|
})
|
2394
2394
|
}, null);
|
@@ -2402,7 +2402,7 @@ var stdin_default$1s = vue.defineComponent({
|
|
2402
2402
|
}
|
2403
2403
|
if (props.showIndicators && count.value > 1) {
|
2404
2404
|
return vue.createVNode("div", {
|
2405
|
-
"class": bem$
|
2405
|
+
"class": bem$1h("indicators", {
|
2406
2406
|
vertical: props.vertical
|
2407
2407
|
})
|
2408
2408
|
}, [Array(count.value).fill("").map(renderDot)]);
|
@@ -2444,11 +2444,11 @@ var stdin_default$1s = vue.defineComponent({
|
|
2444
2444
|
var _a;
|
2445
2445
|
return vue.createVNode("div", {
|
2446
2446
|
"ref": root,
|
2447
|
-
"class": bem$
|
2447
|
+
"class": bem$1h()
|
2448
2448
|
}, [vue.createVNode("div", {
|
2449
2449
|
"ref": track,
|
2450
2450
|
"style": trackStyle.value,
|
2451
|
-
"class": bem$
|
2451
|
+
"class": bem$1h("track", {
|
2452
2452
|
vertical: props.vertical
|
2453
2453
|
}),
|
2454
2454
|
"onTouchstartPassive": onTouchStart,
|
@@ -2458,10 +2458,10 @@ var stdin_default$1s = vue.defineComponent({
|
|
2458
2458
|
};
|
2459
2459
|
}
|
2460
2460
|
});
|
2461
|
-
const Swipe = withInstall(stdin_default$
|
2462
|
-
const [name$
|
2463
|
-
var stdin_default$
|
2464
|
-
name: name$
|
2461
|
+
const Swipe = withInstall(stdin_default$1t);
|
2462
|
+
const [name$1k, bem$1g] = createNamespace("tabs");
|
2463
|
+
var stdin_default$1s = vue.defineComponent({
|
2464
|
+
name: name$1k,
|
2465
2465
|
props: {
|
2466
2466
|
count: makeRequiredProp(Number),
|
2467
2467
|
inited: Boolean,
|
@@ -2485,7 +2485,7 @@ var stdin_default$1r = vue.defineComponent({
|
|
2485
2485
|
return vue.createVNode(Swipe, {
|
2486
2486
|
"ref": swipeRef,
|
2487
2487
|
"loop": false,
|
2488
|
-
"class": bem$
|
2488
|
+
"class": bem$1g("track"),
|
2489
2489
|
"duration": +props.duration * 1e3,
|
2490
2490
|
"touchable": props.swipeable,
|
2491
2491
|
"lazyRender": props.lazyRender,
|
@@ -2513,13 +2513,13 @@ var stdin_default$1r = vue.defineComponent({
|
|
2513
2513
|
swipeRef
|
2514
2514
|
});
|
2515
2515
|
return () => vue.createVNode("div", {
|
2516
|
-
"class": bem$
|
2516
|
+
"class": bem$1g("content", {
|
2517
2517
|
animated: props.animated || props.swipeable
|
2518
2518
|
})
|
2519
2519
|
}, [renderChildren()]);
|
2520
2520
|
}
|
2521
2521
|
});
|
2522
|
-
const [name$
|
2522
|
+
const [name$1j, bem$1f] = createNamespace("tabs");
|
2523
2523
|
const tabsProps = {
|
2524
2524
|
type: makeStringProp("line"),
|
2525
2525
|
color: String,
|
@@ -2542,9 +2542,9 @@ const tabsProps = {
|
|
2542
2542
|
titleActiveColor: String,
|
2543
2543
|
titleInactiveColor: String
|
2544
2544
|
};
|
2545
|
-
const TABS_KEY = Symbol(name$
|
2546
|
-
var stdin_default$
|
2547
|
-
name: name$
|
2545
|
+
const TABS_KEY = Symbol(name$1j);
|
2546
|
+
var stdin_default$1r = vue.defineComponent({
|
2547
|
+
name: name$1j,
|
2548
2548
|
props: tabsProps,
|
2549
2549
|
emits: ["change", "scroll", "rendered", "clickTab", "update:active"],
|
2550
2550
|
setup(props, {
|
@@ -2733,7 +2733,7 @@ var stdin_default$1q = vue.defineComponent({
|
|
2733
2733
|
setCurrentIndex(index);
|
2734
2734
|
}
|
2735
2735
|
};
|
2736
|
-
const renderNav = () => children.map((item, index) => vue.createVNode(stdin_default$
|
2736
|
+
const renderNav = () => children.map((item, index) => vue.createVNode(stdin_default$1u, vue.mergeProps({
|
2737
2737
|
"key": item.id,
|
2738
2738
|
"id": `${id}-${index}`,
|
2739
2739
|
"ref": setTitleRefs(index),
|
@@ -2754,7 +2754,7 @@ var stdin_default$1q = vue.defineComponent({
|
|
2754
2754
|
const renderLine = () => {
|
2755
2755
|
if (props.type === "line" && children.length) {
|
2756
2756
|
return vue.createVNode("div", {
|
2757
|
-
"class": bem$
|
2757
|
+
"class": bem$1f("line"),
|
2758
2758
|
"style": state.lineStyle
|
2759
2759
|
}, null);
|
2760
2760
|
}
|
@@ -2768,13 +2768,13 @@ var stdin_default$1q = vue.defineComponent({
|
|
2768
2768
|
} = props;
|
2769
2769
|
const Header = [vue.createVNode("div", {
|
2770
2770
|
"ref": sticky ? void 0 : wrapRef,
|
2771
|
-
"class": [bem$
|
2771
|
+
"class": [bem$1f("wrap"), {
|
2772
2772
|
[BORDER_TOP_BOTTOM]: type === "line" && border
|
2773
2773
|
}]
|
2774
2774
|
}, [vue.createVNode("div", {
|
2775
2775
|
"ref": navRef,
|
2776
2776
|
"role": "tablist",
|
2777
|
-
"class": bem$
|
2777
|
+
"class": bem$1f("nav", [type, {
|
2778
2778
|
shrink: props.shrink,
|
2779
2779
|
complete: scrollable.value
|
2780
2780
|
}]),
|
@@ -2842,14 +2842,14 @@ var stdin_default$1q = vue.defineComponent({
|
|
2842
2842
|
});
|
2843
2843
|
return () => vue.createVNode("div", {
|
2844
2844
|
"ref": root,
|
2845
|
-
"class": bem$
|
2845
|
+
"class": bem$1f([props.type])
|
2846
2846
|
}, [props.sticky ? vue.createVNode(Sticky, {
|
2847
2847
|
"container": root.value,
|
2848
2848
|
"offsetTop": offsetTopPx.value,
|
2849
2849
|
"onScroll": onStickyScroll
|
2850
2850
|
}, {
|
2851
2851
|
default: () => [renderHeader()]
|
2852
|
-
}) : renderHeader(), vue.createVNode(stdin_default$
|
2852
|
+
}) : renderHeader(), vue.createVNode(stdin_default$1s, {
|
2853
2853
|
"ref": contentRef,
|
2854
2854
|
"count": children.length,
|
2855
2855
|
"inited": state.inited,
|
@@ -2869,9 +2869,9 @@ var stdin_default$1q = vue.defineComponent({
|
|
2869
2869
|
});
|
2870
2870
|
const TAB_STATUS_KEY = Symbol();
|
2871
2871
|
const useTabStatus = () => vue.inject(TAB_STATUS_KEY, null);
|
2872
|
-
const [name$
|
2873
|
-
var stdin_default$
|
2874
|
-
name: name$
|
2872
|
+
const [name$1i, bem$1e] = createNamespace("swipe-item");
|
2873
|
+
var stdin_default$1q = vue.defineComponent({
|
2874
|
+
name: name$1i,
|
2875
2875
|
setup(props, {
|
2876
2876
|
slots
|
2877
2877
|
}) {
|
@@ -2936,14 +2936,14 @@ var stdin_default$1p = vue.defineComponent({
|
|
2936
2936
|
return () => {
|
2937
2937
|
var _a;
|
2938
2938
|
return vue.createVNode("div", {
|
2939
|
-
"class": bem$
|
2939
|
+
"class": bem$1e(),
|
2940
2940
|
"style": style.value
|
2941
2941
|
}, [shouldRender.value ? (_a = slots.default) == null ? void 0 : _a.call(slots) : null]);
|
2942
2942
|
};
|
2943
2943
|
}
|
2944
2944
|
});
|
2945
|
-
const SwipeItem = withInstall(stdin_default$
|
2946
|
-
const [name$
|
2945
|
+
const SwipeItem = withInstall(stdin_default$1q);
|
2946
|
+
const [name$1h, bem$1d] = createNamespace("tab");
|
2947
2947
|
const tabProps = extend({}, routeProps, {
|
2948
2948
|
dot: Boolean,
|
2949
2949
|
name: numericProp,
|
@@ -2954,8 +2954,8 @@ const tabProps = extend({}, routeProps, {
|
|
2954
2954
|
titleStyle: [String, Object],
|
2955
2955
|
showZeroBadge: truthProp
|
2956
2956
|
});
|
2957
|
-
var stdin_default$
|
2958
|
-
name: name$
|
2957
|
+
var stdin_default$1p = vue.defineComponent({
|
2958
|
+
name: name$1h,
|
2959
2959
|
props: tabProps,
|
2960
2960
|
setup(props, {
|
2961
2961
|
slots
|
@@ -3023,7 +3023,7 @@ var stdin_default$1o = vue.defineComponent({
|
|
3023
3023
|
return vue.createVNode(SwipeItem, {
|
3024
3024
|
"id": id,
|
3025
3025
|
"role": "tabpanel",
|
3026
|
-
"class": bem$
|
3026
|
+
"class": bem$1d("panel-wrapper", {
|
3027
3027
|
inactive: hasInactiveClass.value
|
3028
3028
|
}),
|
3029
3029
|
"tabindex": active.value ? 0 : -1,
|
@@ -3033,7 +3033,7 @@ var stdin_default$1o = vue.defineComponent({
|
|
3033
3033
|
default: () => {
|
3034
3034
|
var _a2;
|
3035
3035
|
return [vue.createVNode("div", {
|
3036
|
-
"class": bem$
|
3036
|
+
"class": bem$1d("panel")
|
3037
3037
|
}, [(_a2 = slots.default) == null ? void 0 : _a2.call(slots)])];
|
3038
3038
|
}
|
3039
3039
|
});
|
@@ -3046,22 +3046,22 @@ var stdin_default$1o = vue.defineComponent({
|
|
3046
3046
|
return vue.withDirectives(vue.createVNode("div", {
|
3047
3047
|
"id": id,
|
3048
3048
|
"role": "tabpanel",
|
3049
|
-
"class": bem$
|
3049
|
+
"class": bem$1d("panel"),
|
3050
3050
|
"tabindex": show ? 0 : -1,
|
3051
3051
|
"aria-labelledby": label
|
3052
3052
|
}, [Content]), [[vue.vShow, show]]);
|
3053
3053
|
};
|
3054
3054
|
}
|
3055
3055
|
});
|
3056
|
-
const Tab = withInstall(stdin_default$
|
3057
|
-
const Tabs = withInstall(stdin_default$
|
3058
|
-
const [name$
|
3059
|
-
const PICKER_GROUP_KEY = Symbol(name$
|
3056
|
+
const Tab = withInstall(stdin_default$1p);
|
3057
|
+
const Tabs = withInstall(stdin_default$1r);
|
3058
|
+
const [name$1g, bem$1c] = createNamespace("picker-group");
|
3059
|
+
const PICKER_GROUP_KEY = Symbol(name$1g);
|
3060
3060
|
const pickerGroupProps = extend({
|
3061
3061
|
tabs: makeArrayProp()
|
3062
3062
|
}, pickerToolbarProps);
|
3063
|
-
var stdin_default$
|
3064
|
-
name: name$
|
3063
|
+
var stdin_default$1o = vue.defineComponent({
|
3064
|
+
name: name$1g,
|
3065
3065
|
props: pickerGroupProps,
|
3066
3066
|
emits: ["confirm", "cancel"],
|
3067
3067
|
setup(props, {
|
@@ -3081,18 +3081,18 @@ var stdin_default$1n = vue.defineComponent({
|
|
3081
3081
|
var _a;
|
3082
3082
|
const childNodes = (_a = slots.default) == null ? void 0 : _a.call(slots);
|
3083
3083
|
return vue.createVNode("div", {
|
3084
|
-
"class": bem$
|
3085
|
-
}, [vue.createVNode(stdin_default$
|
3084
|
+
"class": bem$1c()
|
3085
|
+
}, [vue.createVNode(stdin_default$1w, vue.mergeProps(props, {
|
3086
3086
|
"onConfirm": onConfirm,
|
3087
3087
|
"onCancel": onCancel
|
3088
3088
|
}), null), vue.createVNode(Tabs, {
|
3089
3089
|
"shrink": true,
|
3090
|
-
"class": bem$
|
3090
|
+
"class": bem$1c("tabs"),
|
3091
3091
|
"animated": true
|
3092
3092
|
}, {
|
3093
3093
|
default: () => [props.tabs.map((title, index) => vue.createVNode(Tab, {
|
3094
3094
|
"title": title,
|
3095
|
-
"titleClass": bem$
|
3095
|
+
"titleClass": bem$1c("tab-title")
|
3096
3096
|
}, {
|
3097
3097
|
default: () => [childNodes == null ? void 0 : childNodes[index]]
|
3098
3098
|
}))]
|
@@ -3115,8 +3115,8 @@ const pickerProps = extend({}, pickerSharedProps, {
|
|
3115
3115
|
toolbarPosition: makeStringProp("top"),
|
3116
3116
|
columnsFieldNames: Object
|
3117
3117
|
});
|
3118
|
-
var stdin_default$
|
3119
|
-
name: name$
|
3118
|
+
var stdin_default$1n = vue.defineComponent({
|
3119
|
+
name: name$1q,
|
3120
3120
|
props: pickerProps,
|
3121
3121
|
emits: ["confirm", "cancel", "change", "clickOption", "update:modelValue"],
|
3122
3122
|
setup(props, {
|
@@ -3189,7 +3189,7 @@ var stdin_default$1m = vue.defineComponent({
|
|
3189
3189
|
return params;
|
3190
3190
|
};
|
3191
3191
|
const cancel = () => emit("cancel", getEventParams());
|
3192
|
-
const renderColumnItems = () => currentColumns.value.map((options, columnIndex) => vue.createVNode(stdin_default$
|
3192
|
+
const renderColumnItems = () => currentColumns.value.map((options, columnIndex) => vue.createVNode(stdin_default$1x, {
|
3193
3193
|
"value": selectedValues.value[columnIndex],
|
3194
3194
|
"fields": fields.value,
|
3195
3195
|
"options": options,
|
@@ -3212,10 +3212,10 @@ var stdin_default$1m = vue.defineComponent({
|
|
3212
3212
|
backgroundSize: `100% ${(wrapHeight - optionHeight.value) / 2}px`
|
3213
3213
|
};
|
3214
3214
|
return [vue.createVNode("div", {
|
3215
|
-
"class": bem$
|
3215
|
+
"class": bem$1l("mask"),
|
3216
3216
|
"style": maskStyle
|
3217
3217
|
}, null), vue.createVNode("div", {
|
3218
|
-
"class": [BORDER_UNSET_TOP_BOTTOM, bem$
|
3218
|
+
"class": [BORDER_UNSET_TOP_BOTTOM, bem$1l("frame")],
|
3219
3219
|
"style": frameStyle
|
3220
3220
|
}, null)];
|
3221
3221
|
}
|
@@ -3227,13 +3227,13 @@ var stdin_default$1m = vue.defineComponent({
|
|
3227
3227
|
};
|
3228
3228
|
return vue.createVNode("div", {
|
3229
3229
|
"ref": columnsRef,
|
3230
|
-
"class": bem$
|
3230
|
+
"class": bem$1l("columns"),
|
3231
3231
|
"style": columnsStyle
|
3232
3232
|
}, [renderColumnItems(), renderMask(wrapHeight)]);
|
3233
3233
|
};
|
3234
3234
|
const renderToolbar = () => {
|
3235
3235
|
if (props.showToolbar && !parent) {
|
3236
|
-
return vue.createVNode(stdin_default$
|
3236
|
+
return vue.createVNode(stdin_default$1w, vue.mergeProps(pick(props, pickerToolbarPropKeys), {
|
3237
3237
|
"onConfirm": confirm,
|
3238
3238
|
"onCancel": cancel
|
3239
3239
|
}), pick(slots, pickerToolbarSlots));
|
@@ -3275,9 +3275,9 @@ var stdin_default$1m = vue.defineComponent({
|
|
3275
3275
|
return () => {
|
3276
3276
|
var _a, _b;
|
3277
3277
|
return vue.createVNode("div", {
|
3278
|
-
"class": bem$
|
3278
|
+
"class": bem$1l()
|
3279
3279
|
}, [props.toolbarPosition === "top" ? renderToolbar() : null, props.loading ? vue.createVNode(Loading, {
|
3280
|
-
"class": bem$
|
3280
|
+
"class": bem$1l("loading")
|
3281
3281
|
}, 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]);
|
3282
3282
|
};
|
3283
3283
|
}
|
@@ -3368,8 +3368,8 @@ function formatDataForCascade({
|
|
3368
3368
|
}
|
3369
3369
|
return options;
|
3370
3370
|
}
|
3371
|
-
const Picker = withInstall(stdin_default$
|
3372
|
-
const [name$
|
3371
|
+
const Picker = withInstall(stdin_default$1n);
|
3372
|
+
const [name$1f, bem$1b] = createNamespace("area");
|
3373
3373
|
const areaProps = extend({}, pickerSharedProps, {
|
3374
3374
|
modelValue: String,
|
3375
3375
|
columnsNum: makeNumericProp(3),
|
@@ -3379,8 +3379,8 @@ const areaProps = extend({}, pickerSharedProps, {
|
|
3379
3379
|
default: () => ({})
|
3380
3380
|
}
|
3381
3381
|
});
|
3382
|
-
var stdin_default$
|
3383
|
-
name: name$
|
3382
|
+
var stdin_default$1m = vue.defineComponent({
|
3383
|
+
name: name$1f,
|
3384
3384
|
props: areaProps,
|
3385
3385
|
emits: ["change", "confirm", "cancel", "update:modelValue"],
|
3386
3386
|
setup(props, {
|
@@ -3427,7 +3427,7 @@ var stdin_default$1l = vue.defineComponent({
|
|
3427
3427
|
"ref": picker,
|
3428
3428
|
"modelValue": codes.value,
|
3429
3429
|
"onUpdate:modelValue": ($event) => codes.value = $event,
|
3430
|
-
"class": bem$
|
3430
|
+
"class": bem$1b(),
|
3431
3431
|
"columns": columns.value,
|
3432
3432
|
"onChange": onChange,
|
3433
3433
|
"onCancel": onCancel,
|
@@ -3435,8 +3435,8 @@ var stdin_default$1l = vue.defineComponent({
|
|
3435
3435
|
}, pick(props, INHERIT_PROPS)), pick(slots, INHERIT_SLOTS));
|
3436
3436
|
}
|
3437
3437
|
});
|
3438
|
-
const Area = withInstall(stdin_default$
|
3439
|
-
const [name$
|
3438
|
+
const Area = withInstall(stdin_default$1m);
|
3439
|
+
const [name$1e, bem$1a] = createNamespace("cell");
|
3440
3440
|
const cellSharedProps = {
|
3441
3441
|
tag: makeStringProp("div"),
|
3442
3442
|
icon: String,
|
@@ -3460,8 +3460,8 @@ const cellSharedProps = {
|
|
3460
3460
|
}
|
3461
3461
|
};
|
3462
3462
|
const cellProps = extend({}, cellSharedProps, routeProps);
|
3463
|
-
var stdin_default$
|
3464
|
-
name: name$
|
3463
|
+
var stdin_default$1l = vue.defineComponent({
|
3464
|
+
name: name$1e,
|
3465
3465
|
props: cellProps,
|
3466
3466
|
setup(props, {
|
3467
3467
|
slots
|
@@ -3471,14 +3471,14 @@ var stdin_default$1k = vue.defineComponent({
|
|
3471
3471
|
const showLabel = slots.label || isDef(props.label);
|
3472
3472
|
if (showLabel) {
|
3473
3473
|
return vue.createVNode("div", {
|
3474
|
-
"class": [bem$
|
3474
|
+
"class": [bem$1a("label"), props.labelClass]
|
3475
3475
|
}, [slots.label ? slots.label() : props.label]);
|
3476
3476
|
}
|
3477
3477
|
};
|
3478
3478
|
const renderTitle = () => {
|
3479
3479
|
if (slots.title || isDef(props.title)) {
|
3480
3480
|
return vue.createVNode("div", {
|
3481
|
-
"class": [bem$
|
3481
|
+
"class": [bem$1a("title"), props.titleClass],
|
3482
3482
|
"style": props.titleStyle
|
3483
3483
|
}, [slots.title ? slots.title() : vue.createVNode("span", null, [props.title]), renderLabel()]);
|
3484
3484
|
}
|
@@ -3488,7 +3488,7 @@ var stdin_default$1k = vue.defineComponent({
|
|
3488
3488
|
const hasValue = slot || isDef(props.value);
|
3489
3489
|
if (hasValue) {
|
3490
3490
|
return vue.createVNode("div", {
|
3491
|
-
"class": [bem$
|
3491
|
+
"class": [bem$1a("value"), props.valueClass]
|
3492
3492
|
}, [slot ? slot() : vue.createVNode("span", null, [props.value])]);
|
3493
3493
|
}
|
3494
3494
|
};
|
@@ -3499,7 +3499,7 @@ var stdin_default$1k = vue.defineComponent({
|
|
3499
3499
|
if (props.icon) {
|
3500
3500
|
return vue.createVNode(Icon, {
|
3501
3501
|
"name": props.icon,
|
3502
|
-
"class": bem$
|
3502
|
+
"class": bem$1a("left-icon"),
|
3503
3503
|
"classPrefix": props.iconPrefix
|
3504
3504
|
}, null);
|
3505
3505
|
}
|
@@ -3509,10 +3509,10 @@ var stdin_default$1k = vue.defineComponent({
|
|
3509
3509
|
return slots["right-icon"]();
|
3510
3510
|
}
|
3511
3511
|
if (props.isLink) {
|
3512
|
-
const name2 = props.arrowDirection ? `arrow-${props.arrowDirection}` : "arrow";
|
3512
|
+
const name2 = props.arrowDirection && props.arrowDirection !== "right" ? `arrow-${props.arrowDirection}` : "arrow";
|
3513
3513
|
return vue.createVNode(Icon, {
|
3514
3514
|
"name": name2,
|
3515
|
-
"class": bem$
|
3515
|
+
"class": bem$1a("right-icon")
|
3516
3516
|
}, null);
|
3517
3517
|
}
|
3518
3518
|
};
|
@@ -3537,7 +3537,7 @@ var stdin_default$1k = vue.defineComponent({
|
|
3537
3537
|
classes[size] = !!size;
|
3538
3538
|
}
|
3539
3539
|
return vue.createVNode(tag, {
|
3540
|
-
"class": bem$
|
3540
|
+
"class": bem$1a(classes),
|
3541
3541
|
"role": clickable ? "button" : void 0,
|
3542
3542
|
"tabindex": clickable ? 0 : void 0,
|
3543
3543
|
"onClick": route2
|
@@ -3550,8 +3550,8 @@ var stdin_default$1k = vue.defineComponent({
|
|
3550
3550
|
};
|
3551
3551
|
}
|
3552
3552
|
});
|
3553
|
-
const Cell = withInstall(stdin_default$
|
3554
|
-
const [name$
|
3553
|
+
const Cell = withInstall(stdin_default$1l);
|
3554
|
+
const [name$1d, bem$19] = createNamespace("form");
|
3555
3555
|
const formProps = {
|
3556
3556
|
colon: Boolean,
|
3557
3557
|
disabled: Boolean,
|
@@ -3570,8 +3570,8 @@ const formProps = {
|
|
3570
3570
|
default: "onBlur"
|
3571
3571
|
}
|
3572
3572
|
};
|
3573
|
-
var stdin_default$
|
3574
|
-
name: name$
|
3573
|
+
var stdin_default$1k = vue.defineComponent({
|
3574
|
+
name: name$1d,
|
3575
3575
|
props: formProps,
|
3576
3576
|
emits: ["submit", "failed"],
|
3577
3577
|
setup(props, {
|
@@ -3695,13 +3695,13 @@ var stdin_default$1j = vue.defineComponent({
|
|
3695
3695
|
return () => {
|
3696
3696
|
var _a;
|
3697
3697
|
return vue.createVNode("form", {
|
3698
|
-
"class": bem$
|
3698
|
+
"class": bem$19(),
|
3699
3699
|
"onSubmit": onSubmit
|
3700
3700
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
3701
3701
|
};
|
3702
3702
|
}
|
3703
3703
|
});
|
3704
|
-
const Form = withInstall(stdin_default$
|
3704
|
+
const Form = withInstall(stdin_default$1k);
|
3705
3705
|
function isEmptyValue(value) {
|
3706
3706
|
if (Array.isArray(value)) {
|
3707
3707
|
return !value.length;
|
@@ -3790,7 +3790,7 @@ function getStringLength(str) {
|
|
3790
3790
|
function cutString(str, maxlength) {
|
3791
3791
|
return [...str].slice(0, maxlength).join("");
|
3792
3792
|
}
|
3793
|
-
const [name$
|
3793
|
+
const [name$1c, bem$18] = createNamespace("field");
|
3794
3794
|
const fieldSharedProps = {
|
3795
3795
|
id: String,
|
3796
3796
|
name: String,
|
@@ -3837,8 +3837,8 @@ const fieldProps = extend({}, cellSharedProps, fieldSharedProps, {
|
|
3837
3837
|
default: null
|
3838
3838
|
}
|
3839
3839
|
});
|
3840
|
-
var stdin_default$
|
3841
|
-
name: name$
|
3840
|
+
var stdin_default$1j = vue.defineComponent({
|
3841
|
+
name: name$1c,
|
3842
3842
|
props: fieldProps,
|
3843
3843
|
emits: ["blur", "focus", "clear", "keypress", "clickInput", "endValidate", "startValidate", "clickLeftIcon", "clickRightIcon", "update:modelValue"],
|
3844
3844
|
setup(props, {
|
@@ -4067,7 +4067,7 @@ var stdin_default$1i = vue.defineComponent({
|
|
4067
4067
|
const getInputId = () => props.id || `${id}-input`;
|
4068
4068
|
const getValidationStatus = () => state.status;
|
4069
4069
|
const renderInput = () => {
|
4070
|
-
const controlClass = bem$
|
4070
|
+
const controlClass = bem$18("control", [getProp("inputAlign"), {
|
4071
4071
|
error: showError.value,
|
4072
4072
|
custom: !!slots.input,
|
4073
4073
|
"min-height": props.type === "textarea" && !props.autosize
|
@@ -4109,7 +4109,7 @@ var stdin_default$1i = vue.defineComponent({
|
|
4109
4109
|
const leftIconSlot = slots["left-icon"];
|
4110
4110
|
if (props.leftIcon || leftIconSlot) {
|
4111
4111
|
return vue.createVNode("div", {
|
4112
|
-
"class": bem$
|
4112
|
+
"class": bem$18("left-icon"),
|
4113
4113
|
"onClick": onClickLeftIcon
|
4114
4114
|
}, [leftIconSlot ? leftIconSlot() : vue.createVNode(Icon, {
|
4115
4115
|
"name": props.leftIcon,
|
@@ -4121,7 +4121,7 @@ var stdin_default$1i = vue.defineComponent({
|
|
4121
4121
|
const rightIconSlot = slots["right-icon"];
|
4122
4122
|
if (props.rightIcon || rightIconSlot) {
|
4123
4123
|
return vue.createVNode("div", {
|
4124
|
-
"class": bem$
|
4124
|
+
"class": bem$18("right-icon"),
|
4125
4125
|
"onClick": onClickRightIcon
|
4126
4126
|
}, [rightIconSlot ? rightIconSlot() : vue.createVNode(Icon, {
|
4127
4127
|
"name": props.rightIcon,
|
@@ -4133,9 +4133,9 @@ var stdin_default$1i = vue.defineComponent({
|
|
4133
4133
|
if (props.showWordLimit && props.maxlength) {
|
4134
4134
|
const count = getStringLength(getModelValue());
|
4135
4135
|
return vue.createVNode("div", {
|
4136
|
-
"class": bem$
|
4136
|
+
"class": bem$18("word-limit")
|
4137
4137
|
}, [vue.createVNode("span", {
|
4138
|
-
"class": bem$
|
4138
|
+
"class": bem$18("word-num")
|
4139
4139
|
}, [count]), vue.createTextVNode("/"), props.maxlength]);
|
4140
4140
|
}
|
4141
4141
|
};
|
@@ -4148,7 +4148,7 @@ var stdin_default$1i = vue.defineComponent({
|
|
4148
4148
|
const slot = slots["error-message"];
|
4149
4149
|
const errorMessageAlign = getProp("errorMessageAlign");
|
4150
4150
|
return vue.createVNode("div", {
|
4151
|
-
"class": bem$
|
4151
|
+
"class": bem$18("error-message", errorMessageAlign)
|
4152
4152
|
}, [slot ? slot({
|
4153
4153
|
message
|
4154
4154
|
}) : message]);
|
@@ -4167,13 +4167,13 @@ var stdin_default$1i = vue.defineComponent({
|
|
4167
4167
|
}
|
4168
4168
|
};
|
4169
4169
|
const renderFieldBody = () => [vue.createVNode("div", {
|
4170
|
-
"class": bem$
|
4170
|
+
"class": bem$18("body")
|
4171
4171
|
}, [renderInput(), showClear.value && vue.createVNode(Icon, {
|
4172
4172
|
"ref": clearIconRef,
|
4173
4173
|
"name": props.clearIcon,
|
4174
|
-
"class": bem$
|
4174
|
+
"class": bem$18("clear")
|
4175
4175
|
}, null), renderRightIcon(), slots.button && vue.createVNode("div", {
|
4176
|
-
"class": bem$
|
4176
|
+
"class": bem$18("button")
|
4177
4177
|
}, [slots.button()])]), renderWordLimit(), renderMessage()];
|
4178
4178
|
useExpose({
|
4179
4179
|
blur,
|
@@ -4212,7 +4212,7 @@ var stdin_default$1i = vue.defineComponent({
|
|
4212
4212
|
const renderTitle = () => labelAlign === "top" ? [LeftIcon, Label] : Label;
|
4213
4213
|
return vue.createVNode(Cell, {
|
4214
4214
|
"size": props.size,
|
4215
|
-
"class": bem$
|
4215
|
+
"class": bem$18({
|
4216
4216
|
error: showError.value,
|
4217
4217
|
disabled,
|
4218
4218
|
[`label-${labelAlign}`]: labelAlign
|
@@ -4222,8 +4222,8 @@ var stdin_default$1i = vue.defineComponent({
|
|
4222
4222
|
"isLink": props.isLink,
|
4223
4223
|
"clickable": props.clickable,
|
4224
4224
|
"titleStyle": labelStyle.value,
|
4225
|
-
"valueClass": bem$
|
4226
|
-
"titleClass": [bem$
|
4225
|
+
"valueClass": bem$18("value"),
|
4226
|
+
"titleClass": [bem$18("label", [labelAlign, {
|
4227
4227
|
required: props.required
|
4228
4228
|
}]), props.labelClass],
|
4229
4229
|
"arrowDirection": props.arrowDirection
|
@@ -4236,7 +4236,7 @@ var stdin_default$1i = vue.defineComponent({
|
|
4236
4236
|
};
|
4237
4237
|
}
|
4238
4238
|
});
|
4239
|
-
const Field = withInstall(stdin_default$
|
4239
|
+
const Field = withInstall(stdin_default$1j);
|
4240
4240
|
let lockCount = 0;
|
4241
4241
|
function lockClick(lock) {
|
4242
4242
|
if (lock) {
|
@@ -4251,7 +4251,7 @@ function lockClick(lock) {
|
|
4251
4251
|
}
|
4252
4252
|
}
|
4253
4253
|
}
|
4254
|
-
const [name$
|
4254
|
+
const [name$1b, bem$17] = createNamespace("toast");
|
4255
4255
|
const popupInheritProps = ["show", "overlay", "teleport", "transition", "overlayClass", "overlayStyle", "closeOnClickOverlay"];
|
4256
4256
|
const toastProps = {
|
4257
4257
|
icon: String,
|
@@ -4274,8 +4274,8 @@ const toastProps = {
|
|
4274
4274
|
closeOnClick: Boolean,
|
4275
4275
|
closeOnClickOverlay: Boolean
|
4276
4276
|
};
|
4277
|
-
var stdin_default$
|
4278
|
-
name: name$
|
4277
|
+
var stdin_default$1i = vue.defineComponent({
|
4278
|
+
name: name$1b,
|
4279
4279
|
props: toastProps,
|
4280
4280
|
emits: ["update:show"],
|
4281
4281
|
setup(props, {
|
@@ -4311,13 +4311,13 @@ var stdin_default$1h = vue.defineComponent({
|
|
4311
4311
|
return vue.createVNode(Icon, {
|
4312
4312
|
"name": icon || type,
|
4313
4313
|
"size": iconSize,
|
4314
|
-
"class": bem$
|
4314
|
+
"class": bem$17("icon"),
|
4315
4315
|
"classPrefix": iconPrefix
|
4316
4316
|
}, null);
|
4317
4317
|
}
|
4318
4318
|
if (type === "loading") {
|
4319
4319
|
return vue.createVNode(Loading, {
|
4320
|
-
"class": bem$
|
4320
|
+
"class": bem$17("loading"),
|
4321
4321
|
"size": iconSize,
|
4322
4322
|
"type": loadingType
|
4323
4323
|
}, null);
|
@@ -4330,16 +4330,16 @@ var stdin_default$1h = vue.defineComponent({
|
|
4330
4330
|
} = props;
|
4331
4331
|
if (slots.message) {
|
4332
4332
|
return vue.createVNode("div", {
|
4333
|
-
"class": bem$
|
4333
|
+
"class": bem$17("text")
|
4334
4334
|
}, [slots.message()]);
|
4335
4335
|
}
|
4336
4336
|
if (isDef(message) && message !== "") {
|
4337
4337
|
return type === "html" ? vue.createVNode("div", {
|
4338
4338
|
"key": 0,
|
4339
|
-
"class": bem$
|
4339
|
+
"class": bem$17("text"),
|
4340
4340
|
"innerHTML": String(message)
|
4341
4341
|
}, null) : vue.createVNode("div", {
|
4342
|
-
"class": bem$
|
4342
|
+
"class": bem$17("text")
|
4343
4343
|
}, [message]);
|
4344
4344
|
}
|
4345
4345
|
};
|
@@ -4355,7 +4355,7 @@ var stdin_default$1h = vue.defineComponent({
|
|
4355
4355
|
vue.onMounted(toggleClickable);
|
4356
4356
|
vue.onUnmounted(toggleClickable);
|
4357
4357
|
return () => vue.createVNode(Popup, vue.mergeProps({
|
4358
|
-
"class": [bem$
|
4358
|
+
"class": [bem$17([props.position, props.wordBreak === "normal" ? "break-normal" : props.wordBreak, {
|
4359
4359
|
[props.type]: !props.icon
|
4360
4360
|
}]), props.className],
|
4361
4361
|
"lockScroll": false,
|
@@ -4456,7 +4456,7 @@ function createInstance() {
|
|
4456
4456
|
onClosed,
|
4457
4457
|
"onUpdate:show": toggle
|
4458
4458
|
};
|
4459
|
-
return vue.createVNode(stdin_default$
|
4459
|
+
return vue.createVNode(stdin_default$1i, vue.mergeProps(state, attrs), null);
|
4460
4460
|
};
|
4461
4461
|
vue.watch(message, (val) => {
|
4462
4462
|
state.message = val;
|
@@ -4526,8 +4526,8 @@ const resetToastDefaultOptions = (type) => {
|
|
4526
4526
|
const allowMultipleToast = (value = true) => {
|
4527
4527
|
allowMultiple = value;
|
4528
4528
|
};
|
4529
|
-
const Toast = withInstall(stdin_default$
|
4530
|
-
const [name$
|
4529
|
+
const Toast = withInstall(stdin_default$1i);
|
4530
|
+
const [name$1a, bem$16] = createNamespace("switch");
|
4531
4531
|
const switchProps = {
|
4532
4532
|
size: numericProp,
|
4533
4533
|
loading: Boolean,
|
@@ -4544,8 +4544,8 @@ const switchProps = {
|
|
4544
4544
|
default: false
|
4545
4545
|
}
|
4546
4546
|
};
|
4547
|
-
var stdin_default$
|
4548
|
-
name: name$
|
4547
|
+
var stdin_default$1h = vue.defineComponent({
|
4548
|
+
name: name$1a,
|
4549
4549
|
props: switchProps,
|
4550
4550
|
emits: ["change", "update:modelValue"],
|
4551
4551
|
setup(props, {
|
@@ -4564,7 +4564,7 @@ var stdin_default$1g = vue.defineComponent({
|
|
4564
4564
|
if (props.loading) {
|
4565
4565
|
const color = isChecked() ? props.activeColor : props.inactiveColor;
|
4566
4566
|
return vue.createVNode(Loading, {
|
4567
|
-
"class": bem$
|
4567
|
+
"class": bem$16("loading"),
|
4568
4568
|
"color": color
|
4569
4569
|
}, null);
|
4570
4570
|
}
|
@@ -4589,7 +4589,7 @@ var stdin_default$1g = vue.defineComponent({
|
|
4589
4589
|
};
|
4590
4590
|
return vue.createVNode("div", {
|
4591
4591
|
"role": "switch",
|
4592
|
-
"class": bem$
|
4592
|
+
"class": bem$16({
|
4593
4593
|
on: checked,
|
4594
4594
|
loading,
|
4595
4595
|
disabled
|
@@ -4599,16 +4599,16 @@ var stdin_default$1g = vue.defineComponent({
|
|
4599
4599
|
"aria-checked": checked,
|
4600
4600
|
"onClick": onClick
|
4601
4601
|
}, [vue.createVNode("div", {
|
4602
|
-
"class": bem$
|
4602
|
+
"class": bem$16("node")
|
4603
4603
|
}, [renderLoading()]), (_a = slots.background) == null ? void 0 : _a.call(slots)]);
|
4604
4604
|
};
|
4605
4605
|
}
|
4606
4606
|
});
|
4607
|
-
const Switch = withInstall(stdin_default$
|
4608
|
-
const [name$
|
4607
|
+
const Switch = withInstall(stdin_default$1h);
|
4608
|
+
const [name$19, bem$15] = createNamespace("address-edit-detail");
|
4609
4609
|
const t$i = createNamespace("address-edit")[2];
|
4610
|
-
var stdin_default$
|
4611
|
-
name: name$
|
4610
|
+
var stdin_default$1g = vue.defineComponent({
|
4611
|
+
name: name$19,
|
4612
4612
|
props: {
|
4613
4613
|
show: Boolean,
|
4614
4614
|
rows: numericProp,
|
@@ -4642,7 +4642,7 @@ var stdin_default$1f = vue.defineComponent({
|
|
4642
4642
|
"icon": "location-o",
|
4643
4643
|
"title": express.name,
|
4644
4644
|
"label": express.address,
|
4645
|
-
"class": bem$
|
4645
|
+
"class": bem$15("search-item"),
|
4646
4646
|
"border": false,
|
4647
4647
|
"onClick": () => onSelect(express)
|
4648
4648
|
}, null));
|
@@ -4656,7 +4656,7 @@ var stdin_default$1f = vue.defineComponent({
|
|
4656
4656
|
"autosize": true,
|
4657
4657
|
"clearable": true,
|
4658
4658
|
"ref": field,
|
4659
|
-
"class": bem$
|
4659
|
+
"class": bem$15(),
|
4660
4660
|
"rows": props.rows,
|
4661
4661
|
"type": "textarea",
|
4662
4662
|
"rules": props.rules,
|
@@ -4673,7 +4673,7 @@ var stdin_default$1f = vue.defineComponent({
|
|
4673
4673
|
};
|
4674
4674
|
}
|
4675
4675
|
});
|
4676
|
-
const [name$
|
4676
|
+
const [name$18, bem$14, t$h] = createNamespace("address-edit");
|
4677
4677
|
const DEFAULT_DATA = {
|
4678
4678
|
name: "",
|
4679
4679
|
tel: "",
|
@@ -4713,8 +4713,8 @@ const addressEditProps = {
|
|
4713
4713
|
default: isMobile
|
4714
4714
|
}
|
4715
4715
|
};
|
4716
|
-
var stdin_default$
|
4717
|
-
name: name$
|
4716
|
+
var stdin_default$1f = vue.defineComponent({
|
4717
|
+
name: name$18,
|
4718
4718
|
props: addressEditProps,
|
4719
4719
|
emits: ["save", "focus", "delete", "clickArea", "changeArea", "changeDetail", "selectSearch", "changeDefault"],
|
4720
4720
|
setup(props, {
|
@@ -4825,7 +4825,7 @@ var stdin_default$1e = vue.defineComponent({
|
|
4825
4825
|
return vue.withDirectives(vue.createVNode(Cell, {
|
4826
4826
|
"center": true,
|
4827
4827
|
"title": t$h("defaultAddress"),
|
4828
|
-
"class": bem$
|
4828
|
+
"class": bem$14("default")
|
4829
4829
|
}, slots2), [[vue.vShow, !hideBottomFields.value]]);
|
4830
4830
|
}
|
4831
4831
|
};
|
@@ -4851,13 +4851,13 @@ var stdin_default$1e = vue.defineComponent({
|
|
4851
4851
|
disableArea
|
4852
4852
|
} = props;
|
4853
4853
|
return vue.createVNode(Form, {
|
4854
|
-
"class": bem$
|
4854
|
+
"class": bem$14(),
|
4855
4855
|
"onSubmit": onSave
|
4856
4856
|
}, {
|
4857
4857
|
default: () => {
|
4858
4858
|
var _a;
|
4859
4859
|
return [vue.createVNode("div", {
|
4860
|
-
"class": bem$
|
4860
|
+
"class": bem$14("fields")
|
4861
4861
|
}, [vue.createVNode(Field, {
|
4862
4862
|
"modelValue": data.name,
|
4863
4863
|
"onUpdate:modelValue": ($event) => data.name = $event,
|
@@ -4888,7 +4888,7 @@ var stdin_default$1e = vue.defineComponent({
|
|
4888
4888
|
emit("clickArea");
|
4889
4889
|
showAreaPopup.value = !disableArea;
|
4890
4890
|
}
|
4891
|
-
}, null), [[vue.vShow, props.showArea]]), vue.createVNode(stdin_default$
|
4891
|
+
}, null), [[vue.vShow, props.showArea]]), vue.createVNode(stdin_default$1g, {
|
4892
4892
|
"show": props.showDetail,
|
4893
4893
|
"rows": props.detailRows,
|
4894
4894
|
"rules": rules.value.addressDetail,
|
@@ -4902,19 +4902,19 @@ var stdin_default$1e = vue.defineComponent({
|
|
4902
4902
|
"onInput": onChangeDetail,
|
4903
4903
|
"onSelectSearch": (event) => emit("selectSearch", event)
|
4904
4904
|
}, null), (_a = slots.default) == null ? void 0 : _a.call(slots)]), renderSetDefaultCell(), vue.withDirectives(vue.createVNode("div", {
|
4905
|
-
"class": bem$
|
4905
|
+
"class": bem$14("buttons")
|
4906
4906
|
}, [vue.createVNode(Button, {
|
4907
4907
|
"block": true,
|
4908
4908
|
"round": true,
|
4909
4909
|
"type": "primary",
|
4910
4910
|
"text": props.saveButtonText || t$h("save"),
|
4911
|
-
"class": bem$
|
4911
|
+
"class": bem$14("button"),
|
4912
4912
|
"loading": props.isSaving,
|
4913
4913
|
"nativeType": "submit"
|
4914
4914
|
}, null), props.showDelete && vue.createVNode(Button, {
|
4915
4915
|
"block": true,
|
4916
4916
|
"round": true,
|
4917
|
-
"class": bem$
|
4917
|
+
"class": bem$14("button"),
|
4918
4918
|
"loading": props.isDeleting,
|
4919
4919
|
"text": props.deleteButtonText || t$h("delete"),
|
4920
4920
|
"onClick": onDelete
|
@@ -4944,8 +4944,8 @@ var stdin_default$1e = vue.defineComponent({
|
|
4944
4944
|
};
|
4945
4945
|
}
|
4946
4946
|
});
|
4947
|
-
const AddressEdit = withInstall(stdin_default$
|
4948
|
-
const [name$
|
4947
|
+
const AddressEdit = withInstall(stdin_default$1f);
|
4948
|
+
const [name$17, bem$13] = createNamespace("radio-group");
|
4949
4949
|
const radioGroupProps = {
|
4950
4950
|
disabled: Boolean,
|
4951
4951
|
iconSize: numericProp,
|
@@ -4953,9 +4953,9 @@ const radioGroupProps = {
|
|
4953
4953
|
modelValue: unknownProp,
|
4954
4954
|
checkedColor: String
|
4955
4955
|
};
|
4956
|
-
const RADIO_KEY = Symbol(name$
|
4957
|
-
var stdin_default$
|
4958
|
-
name: name$
|
4956
|
+
const RADIO_KEY = Symbol(name$17);
|
4957
|
+
var stdin_default$1e = vue.defineComponent({
|
4958
|
+
name: name$17,
|
4959
4959
|
props: radioGroupProps,
|
4960
4960
|
emits: ["change", "update:modelValue"],
|
4961
4961
|
setup(props, {
|
@@ -4975,14 +4975,14 @@ var stdin_default$1d = vue.defineComponent({
|
|
4975
4975
|
return () => {
|
4976
4976
|
var _a;
|
4977
4977
|
return vue.createVNode("div", {
|
4978
|
-
"class": bem$
|
4978
|
+
"class": bem$13([props.direction]),
|
4979
4979
|
"role": "radiogroup"
|
4980
4980
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
4981
4981
|
};
|
4982
4982
|
}
|
4983
4983
|
});
|
4984
|
-
const RadioGroup = withInstall(stdin_default$
|
4985
|
-
const [name$
|
4984
|
+
const RadioGroup = withInstall(stdin_default$1e);
|
4985
|
+
const [name$16, bem$12] = createNamespace("tag");
|
4986
4986
|
const tagProps = {
|
4987
4987
|
size: String,
|
4988
4988
|
mark: Boolean,
|
@@ -4994,8 +4994,8 @@ const tagProps = {
|
|
4994
4994
|
textColor: String,
|
4995
4995
|
closeable: Boolean
|
4996
4996
|
};
|
4997
|
-
var stdin_default$
|
4998
|
-
name: name$
|
4997
|
+
var stdin_default$1d = vue.defineComponent({
|
4998
|
+
name: name$16,
|
4999
4999
|
props: tagProps,
|
5000
5000
|
emits: ["close"],
|
5001
5001
|
setup(props, {
|
@@ -5038,12 +5038,12 @@ var stdin_default$1c = vue.defineComponent({
|
|
5038
5038
|
}
|
5039
5039
|
const CloseIcon = closeable && vue.createVNode(Icon, {
|
5040
5040
|
"name": "cross",
|
5041
|
-
"class": [bem$
|
5041
|
+
"class": [bem$12("close"), HAPTICS_FEEDBACK],
|
5042
5042
|
"onClick": onClose
|
5043
5043
|
}, null);
|
5044
5044
|
return vue.createVNode("span", {
|
5045
5045
|
"style": getStyle(),
|
5046
|
-
"class": bem$
|
5046
|
+
"class": bem$12([classes, type])
|
5047
5047
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots), CloseIcon]);
|
5048
5048
|
};
|
5049
5049
|
return () => vue.createVNode(vue.Transition, {
|
@@ -5053,7 +5053,7 @@ var stdin_default$1c = vue.defineComponent({
|
|
5053
5053
|
});
|
5054
5054
|
}
|
5055
5055
|
});
|
5056
|
-
const Tag = withInstall(stdin_default$
|
5056
|
+
const Tag = withInstall(stdin_default$1d);
|
5057
5057
|
const checkerProps = {
|
5058
5058
|
name: unknownProp,
|
5059
5059
|
shape: makeStringProp("round"),
|
@@ -5064,7 +5064,7 @@ const checkerProps = {
|
|
5064
5064
|
labelPosition: String,
|
5065
5065
|
labelDisabled: Boolean
|
5066
5066
|
};
|
5067
|
-
var stdin_default$
|
5067
|
+
var stdin_default$1c = vue.defineComponent({
|
5068
5068
|
props: extend({}, checkerProps, {
|
5069
5069
|
bem: makeRequiredProp(Function),
|
5070
5070
|
role: String,
|
@@ -5154,9 +5154,9 @@ var stdin_default$1b = vue.defineComponent({
|
|
5154
5154
|
}
|
5155
5155
|
});
|
5156
5156
|
const radioProps = checkerProps;
|
5157
|
-
const [name$
|
5158
|
-
var stdin_default$
|
5159
|
-
name: name$
|
5157
|
+
const [name$15, bem$11] = createNamespace("radio");
|
5158
|
+
var stdin_default$1b = vue.defineComponent({
|
5159
|
+
name: name$15,
|
5160
5160
|
props: checkerProps,
|
5161
5161
|
emits: ["update:modelValue"],
|
5162
5162
|
setup(props, {
|
@@ -5177,8 +5177,8 @@ var stdin_default$1a = vue.defineComponent({
|
|
5177
5177
|
emit("update:modelValue", props.name);
|
5178
5178
|
}
|
5179
5179
|
};
|
5180
|
-
return () => vue.createVNode(stdin_default$
|
5181
|
-
"bem": bem$
|
5180
|
+
return () => vue.createVNode(stdin_default$1c, vue.mergeProps({
|
5181
|
+
"bem": bem$11,
|
5182
5182
|
"role": "radio",
|
5183
5183
|
"parent": parent,
|
5184
5184
|
"checked": checked(),
|
@@ -5186,10 +5186,10 @@ var stdin_default$1a = vue.defineComponent({
|
|
5186
5186
|
}, props), pick(slots, ["default", "icon"]));
|
5187
5187
|
}
|
5188
5188
|
});
|
5189
|
-
const Radio = withInstall(stdin_default$
|
5190
|
-
const [name$
|
5191
|
-
var stdin_default$
|
5192
|
-
name: name$
|
5189
|
+
const Radio = withInstall(stdin_default$1b);
|
5190
|
+
const [name$14, bem$10] = createNamespace("address-item");
|
5191
|
+
var stdin_default$1a = vue.defineComponent({
|
5192
|
+
name: name$14,
|
5193
5193
|
props: {
|
5194
5194
|
address: makeRequiredProp(Object),
|
5195
5195
|
disabled: Boolean,
|
@@ -5209,7 +5209,7 @@ var stdin_default$19 = vue.defineComponent({
|
|
5209
5209
|
};
|
5210
5210
|
const renderRightIcon = () => vue.createVNode(Icon, {
|
5211
5211
|
"name": "edit",
|
5212
|
-
"class": bem
|
5212
|
+
"class": bem$10("edit"),
|
5213
5213
|
"onClick": (event) => {
|
5214
5214
|
event.stopPropagation();
|
5215
5215
|
emit("edit");
|
@@ -5224,7 +5224,7 @@ var stdin_default$19 = vue.defineComponent({
|
|
5224
5224
|
return vue.createVNode(Tag, {
|
5225
5225
|
"type": "primary",
|
5226
5226
|
"round": true,
|
5227
|
-
"class": bem
|
5227
|
+
"class": bem$10("tag")
|
5228
5228
|
}, {
|
5229
5229
|
default: () => [props.defaultTagText]
|
5230
5230
|
});
|
@@ -5237,9 +5237,9 @@ var stdin_default$19 = vue.defineComponent({
|
|
5237
5237
|
switchable
|
5238
5238
|
} = props;
|
5239
5239
|
const Info = [vue.createVNode("div", {
|
5240
|
-
"class": bem
|
5240
|
+
"class": bem$10("name")
|
5241
5241
|
}, [`${address.name} ${address.tel}`, renderTag()]), vue.createVNode("div", {
|
5242
|
-
"class": bem
|
5242
|
+
"class": bem$10("address")
|
5243
5243
|
}, [address.address])];
|
5244
5244
|
if (switchable && !disabled) {
|
5245
5245
|
return vue.createVNode(Radio, {
|
@@ -5257,13 +5257,13 @@ var stdin_default$19 = vue.defineComponent({
|
|
5257
5257
|
disabled
|
5258
5258
|
} = props;
|
5259
5259
|
return vue.createVNode("div", {
|
5260
|
-
"class": bem
|
5260
|
+
"class": bem$10({
|
5261
5261
|
disabled
|
5262
5262
|
}),
|
5263
5263
|
"onClick": onClick
|
5264
5264
|
}, [vue.createVNode(Cell, {
|
5265
5265
|
"border": false,
|
5266
|
-
"titleClass": bem
|
5266
|
+
"titleClass": bem$10("title")
|
5267
5267
|
}, {
|
5268
5268
|
title: renderContent,
|
5269
5269
|
"right-icon": renderRightIcon
|
@@ -5273,7 +5273,7 @@ var stdin_default$19 = vue.defineComponent({
|
|
5273
5273
|
};
|
5274
5274
|
}
|
5275
5275
|
});
|
5276
|
-
const [name$
|
5276
|
+
const [name$13, bem$$, t$g] = createNamespace("address-list");
|
5277
5277
|
const addressListProps = {
|
5278
5278
|
list: makeArrayProp(),
|
5279
5279
|
modelValue: numericProp,
|
@@ -5283,8 +5283,8 @@ const addressListProps = {
|
|
5283
5283
|
addButtonText: String,
|
5284
5284
|
defaultTagText: String
|
5285
5285
|
};
|
5286
|
-
var stdin_default$
|
5287
|
-
name: name$
|
5286
|
+
var stdin_default$19 = vue.defineComponent({
|
5287
|
+
name: name$13,
|
5288
5288
|
props: addressListProps,
|
5289
5289
|
emits: ["add", "edit", "select", "clickItem", "editDisabled", "selectDisabled", "update:modelValue"],
|
5290
5290
|
setup(props, {
|
@@ -5300,7 +5300,7 @@ var stdin_default$18 = vue.defineComponent({
|
|
5300
5300
|
emit("update:modelValue", item.id);
|
5301
5301
|
}
|
5302
5302
|
};
|
5303
|
-
return vue.createVNode(stdin_default$
|
5303
|
+
return vue.createVNode(stdin_default$1a, {
|
5304
5304
|
"key": item.id,
|
5305
5305
|
"address": item,
|
5306
5306
|
"disabled": disabled,
|
@@ -5320,13 +5320,13 @@ var stdin_default$18 = vue.defineComponent({
|
|
5320
5320
|
}
|
5321
5321
|
};
|
5322
5322
|
const renderBottom = () => vue.createVNode("div", {
|
5323
|
-
"class": [bem
|
5323
|
+
"class": [bem$$("bottom"), "van-safe-area-bottom"]
|
5324
5324
|
}, [vue.createVNode(Button, {
|
5325
5325
|
"round": true,
|
5326
5326
|
"block": true,
|
5327
5327
|
"type": "primary",
|
5328
5328
|
"text": props.addButtonText || t$g("add"),
|
5329
|
-
"class": bem
|
5329
|
+
"class": bem$$("add"),
|
5330
5330
|
"onClick": () => emit("add")
|
5331
5331
|
}, null)]);
|
5332
5332
|
return () => {
|
@@ -5334,10 +5334,10 @@ var stdin_default$18 = vue.defineComponent({
|
|
5334
5334
|
const List2 = renderList(props.list);
|
5335
5335
|
const DisabledList = renderList(props.disabledList, true);
|
5336
5336
|
const DisabledText = props.disabledText && vue.createVNode("div", {
|
5337
|
-
"class": bem
|
5337
|
+
"class": bem$$("disabled-text")
|
5338
5338
|
}, [props.disabledText]);
|
5339
5339
|
return vue.createVNode("div", {
|
5340
|
-
"class": bem
|
5340
|
+
"class": bem$$()
|
5341
5341
|
}, [(_a = slots.top) == null ? void 0 : _a.call(slots), vue.createVNode(RadioGroup, {
|
5342
5342
|
"modelValue": props.modelValue
|
5343
5343
|
}, {
|
@@ -5346,7 +5346,249 @@ var stdin_default$18 = vue.defineComponent({
|
|
5346
5346
|
};
|
5347
5347
|
}
|
5348
5348
|
});
|
5349
|
-
const AddressList = withInstall(stdin_default$
|
5349
|
+
const AddressList = withInstall(stdin_default$19);
|
5350
|
+
const hasIntersectionObserver = use.inBrowser && "IntersectionObserver" in window && "IntersectionObserverEntry" in window && "intersectionRatio" in window.IntersectionObserverEntry.prototype;
|
5351
|
+
const modeType = {
|
5352
|
+
event: "event",
|
5353
|
+
observer: "observer"
|
5354
|
+
};
|
5355
|
+
function remove(arr, item) {
|
5356
|
+
if (!arr.length)
|
5357
|
+
return;
|
5358
|
+
const index = arr.indexOf(item);
|
5359
|
+
if (index > -1)
|
5360
|
+
return arr.splice(index, 1);
|
5361
|
+
}
|
5362
|
+
function getBestSelectionFromSrcset(el, scale) {
|
5363
|
+
if (el.tagName !== "IMG" || !el.getAttribute("data-srcset"))
|
5364
|
+
return;
|
5365
|
+
let options = el.getAttribute("data-srcset");
|
5366
|
+
const container = el.parentNode;
|
5367
|
+
const containerWidth = container.offsetWidth * scale;
|
5368
|
+
let spaceIndex;
|
5369
|
+
let tmpSrc;
|
5370
|
+
let tmpWidth;
|
5371
|
+
options = options.trim().split(",");
|
5372
|
+
const result = options.map((item) => {
|
5373
|
+
item = item.trim();
|
5374
|
+
spaceIndex = item.lastIndexOf(" ");
|
5375
|
+
if (spaceIndex === -1) {
|
5376
|
+
tmpSrc = item;
|
5377
|
+
tmpWidth = 999998;
|
5378
|
+
} else {
|
5379
|
+
tmpSrc = item.substr(0, spaceIndex);
|
5380
|
+
tmpWidth = parseInt(
|
5381
|
+
item.substr(spaceIndex + 1, item.length - spaceIndex - 2),
|
5382
|
+
10
|
5383
|
+
);
|
5384
|
+
}
|
5385
|
+
return [tmpWidth, tmpSrc];
|
5386
|
+
});
|
5387
|
+
result.sort((a, b) => {
|
5388
|
+
if (a[0] < b[0]) {
|
5389
|
+
return 1;
|
5390
|
+
}
|
5391
|
+
if (a[0] > b[0]) {
|
5392
|
+
return -1;
|
5393
|
+
}
|
5394
|
+
if (a[0] === b[0]) {
|
5395
|
+
if (b[1].indexOf(".webp", b[1].length - 5) !== -1) {
|
5396
|
+
return 1;
|
5397
|
+
}
|
5398
|
+
if (a[1].indexOf(".webp", a[1].length - 5) !== -1) {
|
5399
|
+
return -1;
|
5400
|
+
}
|
5401
|
+
}
|
5402
|
+
return 0;
|
5403
|
+
});
|
5404
|
+
let bestSelectedSrc = "";
|
5405
|
+
let tmpOption;
|
5406
|
+
for (let i = 0; i < result.length; i++) {
|
5407
|
+
tmpOption = result[i];
|
5408
|
+
bestSelectedSrc = tmpOption[1];
|
5409
|
+
const next = result[i + 1];
|
5410
|
+
if (next && next[0] < containerWidth) {
|
5411
|
+
bestSelectedSrc = tmpOption[1];
|
5412
|
+
break;
|
5413
|
+
} else if (!next) {
|
5414
|
+
bestSelectedSrc = tmpOption[1];
|
5415
|
+
break;
|
5416
|
+
}
|
5417
|
+
}
|
5418
|
+
return bestSelectedSrc;
|
5419
|
+
}
|
5420
|
+
const getDPR = (scale = 1) => use.inBrowser ? window.devicePixelRatio || scale : scale;
|
5421
|
+
function supportWebp() {
|
5422
|
+
if (!use.inBrowser)
|
5423
|
+
return false;
|
5424
|
+
let support = true;
|
5425
|
+
try {
|
5426
|
+
const elem = document.createElement("canvas");
|
5427
|
+
if (elem.getContext && elem.getContext("2d")) {
|
5428
|
+
support = elem.toDataURL("image/webp").indexOf("data:image/webp") === 0;
|
5429
|
+
}
|
5430
|
+
} catch (err) {
|
5431
|
+
support = false;
|
5432
|
+
}
|
5433
|
+
return support;
|
5434
|
+
}
|
5435
|
+
function throttle(action, delay) {
|
5436
|
+
let timeout = null;
|
5437
|
+
let lastRun = 0;
|
5438
|
+
return function(...args) {
|
5439
|
+
if (timeout) {
|
5440
|
+
return;
|
5441
|
+
}
|
5442
|
+
const elapsed = Date.now() - lastRun;
|
5443
|
+
const runCallback = () => {
|
5444
|
+
lastRun = Date.now();
|
5445
|
+
timeout = false;
|
5446
|
+
action.apply(this, args);
|
5447
|
+
};
|
5448
|
+
if (elapsed >= delay) {
|
5449
|
+
runCallback();
|
5450
|
+
} else {
|
5451
|
+
timeout = setTimeout(runCallback, delay);
|
5452
|
+
}
|
5453
|
+
};
|
5454
|
+
}
|
5455
|
+
function on(el, type, func) {
|
5456
|
+
el.addEventListener(type, func, {
|
5457
|
+
capture: false,
|
5458
|
+
passive: true
|
5459
|
+
});
|
5460
|
+
}
|
5461
|
+
function off(el, type, func) {
|
5462
|
+
el.removeEventListener(type, func, false);
|
5463
|
+
}
|
5464
|
+
const loadImageAsync = (item, resolve, reject) => {
|
5465
|
+
const image = new Image();
|
5466
|
+
if (!item || !item.src) {
|
5467
|
+
return reject(new Error("image src is required"));
|
5468
|
+
}
|
5469
|
+
image.src = item.src;
|
5470
|
+
if (item.cors) {
|
5471
|
+
image.crossOrigin = item.cors;
|
5472
|
+
}
|
5473
|
+
image.onload = () => resolve({
|
5474
|
+
naturalHeight: image.naturalHeight,
|
5475
|
+
naturalWidth: image.naturalWidth,
|
5476
|
+
src: image.src
|
5477
|
+
});
|
5478
|
+
image.onerror = (e) => reject(e);
|
5479
|
+
};
|
5480
|
+
class ImageCache {
|
5481
|
+
constructor({ max }) {
|
5482
|
+
this.options = {
|
5483
|
+
max: max || 100
|
5484
|
+
};
|
5485
|
+
this.caches = [];
|
5486
|
+
}
|
5487
|
+
has(key) {
|
5488
|
+
return this.caches.indexOf(key) > -1;
|
5489
|
+
}
|
5490
|
+
add(key) {
|
5491
|
+
if (this.has(key))
|
5492
|
+
return;
|
5493
|
+
this.caches.push(key);
|
5494
|
+
if (this.caches.length > this.options.max) {
|
5495
|
+
this.free();
|
5496
|
+
}
|
5497
|
+
}
|
5498
|
+
free() {
|
5499
|
+
this.caches.shift();
|
5500
|
+
}
|
5501
|
+
}
|
5502
|
+
const [name$12, bem$_] = createNamespace("back-top");
|
5503
|
+
const backTopProps = {
|
5504
|
+
right: makeNumericProp(30),
|
5505
|
+
bottom: makeNumericProp(40),
|
5506
|
+
target: [String, Object],
|
5507
|
+
visibilityHeight: makeNumericProp(200),
|
5508
|
+
teleport: {
|
5509
|
+
type: [String, Object],
|
5510
|
+
default: "body"
|
5511
|
+
}
|
5512
|
+
};
|
5513
|
+
var stdin_default$18 = vue.defineComponent({
|
5514
|
+
name: name$12,
|
5515
|
+
inheritAttrs: false,
|
5516
|
+
props: backTopProps,
|
5517
|
+
emits: ["click"],
|
5518
|
+
setup(props, {
|
5519
|
+
emit,
|
5520
|
+
slots,
|
5521
|
+
attrs
|
5522
|
+
}) {
|
5523
|
+
const show = vue.ref(false);
|
5524
|
+
const scrollParent = vue.ref();
|
5525
|
+
const root = vue.ref(null);
|
5526
|
+
let target;
|
5527
|
+
const style = vue.computed(() => ({
|
5528
|
+
right: addUnit(props.right),
|
5529
|
+
bottom: addUnit(props.bottom)
|
5530
|
+
}));
|
5531
|
+
const onClick = (event) => {
|
5532
|
+
emit("click", event);
|
5533
|
+
target.scrollTo({
|
5534
|
+
top: 0,
|
5535
|
+
behavior: "smooth"
|
5536
|
+
});
|
5537
|
+
};
|
5538
|
+
const scroll = () => {
|
5539
|
+
show.value = getScrollTop(target) >= props.visibilityHeight;
|
5540
|
+
};
|
5541
|
+
const getTarget = () => {
|
5542
|
+
const {
|
5543
|
+
target: target2
|
5544
|
+
} = props;
|
5545
|
+
if (typeof target2 === "string") {
|
5546
|
+
const el = document.querySelector(props.target);
|
5547
|
+
if (!el) {
|
5548
|
+
throw Error("[Vant] BackTop: target element is not found.");
|
5549
|
+
}
|
5550
|
+
return el;
|
5551
|
+
}
|
5552
|
+
if (isObject(target2)) {
|
5553
|
+
return target2;
|
5554
|
+
}
|
5555
|
+
throw Error('[Vant] BackTop: type of prop "target" should be a selector or an element object');
|
5556
|
+
};
|
5557
|
+
use.useEventListener("scroll", throttle(scroll, 300), {
|
5558
|
+
target: scrollParent
|
5559
|
+
});
|
5560
|
+
vue.onMounted(() => {
|
5561
|
+
vue.nextTick(() => {
|
5562
|
+
if (inBrowser) {
|
5563
|
+
target = props.target ? getTarget() : use.getScrollParent(root.value);
|
5564
|
+
scrollParent.value = target;
|
5565
|
+
}
|
5566
|
+
});
|
5567
|
+
});
|
5568
|
+
return () => {
|
5569
|
+
const Content = vue.createVNode("div", vue.mergeProps({
|
5570
|
+
"ref": root,
|
5571
|
+
"class": bem$_({
|
5572
|
+
active: show.value
|
5573
|
+
}),
|
5574
|
+
"style": style.value,
|
5575
|
+
"onClick": onClick
|
5576
|
+
}, attrs), [slots.default ? slots.default() : vue.createVNode(Icon, {
|
5577
|
+
"name": "back-top",
|
5578
|
+
"class": bem$_("icon")
|
5579
|
+
}, null)]);
|
5580
|
+
if (props.teleport) {
|
5581
|
+
return vue.createVNode(vue.Teleport, {
|
5582
|
+
"to": props.teleport
|
5583
|
+
}, {
|
5584
|
+
default: () => [Content]
|
5585
|
+
});
|
5586
|
+
}
|
5587
|
+
return Content;
|
5588
|
+
};
|
5589
|
+
}
|
5590
|
+
});
|
5591
|
+
const BackTop = withInstall(stdin_default$18);
|
5350
5592
|
const [name$11, bem$Z, t$f] = createNamespace("calendar");
|
5351
5593
|
const formatMonthTitle = (date) => t$f("monthTitle", date.getFullYear(), date.getMonth() + 1);
|
5352
5594
|
function compareMonth(date1, date2) {
|
@@ -6845,7 +7087,7 @@ var stdin_default$_ = vue.defineComponent({
|
|
6845
7087
|
checked
|
6846
7088
|
});
|
6847
7089
|
use.useCustomFieldValue(() => props.modelValue);
|
6848
|
-
return () => vue.createVNode(stdin_default$
|
7090
|
+
return () => vue.createVNode(stdin_default$1c, vue.mergeProps({
|
6849
7091
|
"bem": bem$T,
|
6850
7092
|
"role": "checkbox",
|
6851
7093
|
"parent": parent,
|
@@ -7366,7 +7608,7 @@ var stdin_default$V = vue.defineComponent({
|
|
7366
7608
|
}
|
7367
7609
|
});
|
7368
7610
|
const CollapseItem = withInstall(stdin_default$V);
|
7369
|
-
const ConfigProvider = withInstall(stdin_default$
|
7611
|
+
const ConfigProvider = withInstall(stdin_default$1G);
|
7370
7612
|
const [name$O, bem$N, t$d] = createNamespace("contact-card");
|
7371
7613
|
const contactCardProps = {
|
7372
7614
|
tel: String,
|
@@ -8844,11 +9086,13 @@ const dropdownItemProps = {
|
|
8844
9086
|
};
|
8845
9087
|
var stdin_default$I = vue.defineComponent({
|
8846
9088
|
name: name$C,
|
9089
|
+
inheritAttrs: false,
|
8847
9090
|
props: dropdownItemProps,
|
8848
9091
|
emits: ["open", "opened", "close", "closed", "change", "update:modelValue"],
|
8849
9092
|
setup(props, {
|
8850
9093
|
emit,
|
8851
|
-
slots
|
9094
|
+
slots,
|
9095
|
+
attrs
|
8852
9096
|
}) {
|
8853
9097
|
const state = vue.reactive({
|
8854
9098
|
showPopup: false,
|
@@ -8954,11 +9198,11 @@ var stdin_default$I = vue.defineComponent({
|
|
8954
9198
|
} else {
|
8955
9199
|
style.bottom = `${offset.value}px`;
|
8956
9200
|
}
|
8957
|
-
return vue.withDirectives(vue.createVNode("div", {
|
9201
|
+
return vue.withDirectives(vue.createVNode("div", vue.mergeProps({
|
8958
9202
|
"style": style,
|
8959
9203
|
"class": bem$C([direction]),
|
8960
9204
|
"onClick": onClickWrapper
|
8961
|
-
}, [vue.createVNode(Popup, {
|
9205
|
+
}, attrs), [vue.createVNode(Popup, {
|
8962
9206
|
"show": state.showPopup,
|
8963
9207
|
"onUpdate:show": ($event) => state.showPopup = $event,
|
8964
9208
|
"role": "menu",
|
@@ -9957,7 +10201,7 @@ var stdin_default$B = vue.defineComponent({
|
|
9957
10201
|
emit,
|
9958
10202
|
slots
|
9959
10203
|
}) {
|
9960
|
-
const loading = vue.ref(
|
10204
|
+
const loading = vue.ref(props.loading);
|
9961
10205
|
const root = vue.ref();
|
9962
10206
|
const placeholder = vue.ref();
|
9963
10207
|
const tabStatus = useTabStatus();
|
@@ -10523,11 +10767,13 @@ function shuffle(array) {
|
|
10523
10767
|
}
|
10524
10768
|
var stdin_default$w = vue.defineComponent({
|
10525
10769
|
name: name$r,
|
10770
|
+
inheritAttrs: false,
|
10526
10771
|
props: numberKeyboardProps,
|
10527
10772
|
emits: ["show", "hide", "blur", "input", "close", "delete", "update:modelValue"],
|
10528
10773
|
setup(props, {
|
10529
10774
|
emit,
|
10530
|
-
slots
|
10775
|
+
slots,
|
10776
|
+
attrs
|
10531
10777
|
}) {
|
10532
10778
|
const root = vue.ref();
|
10533
10779
|
const genBasicKeys = () => {
|
@@ -10683,7 +10929,7 @@ var stdin_default$w = vue.defineComponent({
|
|
10683
10929
|
const Content = vue.createVNode(vue.Transition, {
|
10684
10930
|
"name": props.transition ? "van-slide-up" : ""
|
10685
10931
|
}, {
|
10686
|
-
default: () => [vue.withDirectives(vue.createVNode("div", {
|
10932
|
+
default: () => [vue.withDirectives(vue.createVNode("div", vue.mergeProps({
|
10687
10933
|
"ref": root,
|
10688
10934
|
"style": getZIndexStyle(props.zIndex),
|
10689
10935
|
"class": bem$q({
|
@@ -10692,7 +10938,7 @@ var stdin_default$w = vue.defineComponent({
|
|
10692
10938
|
}),
|
10693
10939
|
"onAnimationend": onAnimationEnd,
|
10694
10940
|
"onTouchstartPassive": stopPropagation
|
10695
|
-
}, [Title, vue.createVNode("div", {
|
10941
|
+
}, attrs), [Title, vue.createVNode("div", {
|
10696
10942
|
"class": bem$q("body")
|
10697
10943
|
}, [vue.createVNode("div", {
|
10698
10944
|
"class": bem$q("keys")
|
@@ -10922,7 +11168,7 @@ var stdin_default$u = vue.defineComponent({
|
|
10922
11168
|
}
|
10923
11169
|
});
|
10924
11170
|
const PasswordInput = withInstall(stdin_default$u);
|
10925
|
-
const PickerGroup = withInstall(stdin_default$
|
11171
|
+
const PickerGroup = withInstall(stdin_default$1o);
|
10926
11172
|
const useSyncPropRef = (getProp, setProp) => {
|
10927
11173
|
const propRef = vue.ref(getProp());
|
10928
11174
|
vue.watch(getProp, (value) => {
|
@@ -13818,158 +14064,6 @@ var stdin_default$4 = vue.defineComponent({
|
|
13818
14064
|
}
|
13819
14065
|
});
|
13820
14066
|
const Uploader = withInstall(stdin_default$4);
|
13821
|
-
const hasIntersectionObserver = use.inBrowser && "IntersectionObserver" in window && "IntersectionObserverEntry" in window && "intersectionRatio" in window.IntersectionObserverEntry.prototype;
|
13822
|
-
const modeType = {
|
13823
|
-
event: "event",
|
13824
|
-
observer: "observer"
|
13825
|
-
};
|
13826
|
-
function remove(arr, item) {
|
13827
|
-
if (!arr.length)
|
13828
|
-
return;
|
13829
|
-
const index = arr.indexOf(item);
|
13830
|
-
if (index > -1)
|
13831
|
-
return arr.splice(index, 1);
|
13832
|
-
}
|
13833
|
-
function getBestSelectionFromSrcset(el, scale) {
|
13834
|
-
if (el.tagName !== "IMG" || !el.getAttribute("data-srcset"))
|
13835
|
-
return;
|
13836
|
-
let options = el.getAttribute("data-srcset");
|
13837
|
-
const container = el.parentNode;
|
13838
|
-
const containerWidth = container.offsetWidth * scale;
|
13839
|
-
let spaceIndex;
|
13840
|
-
let tmpSrc;
|
13841
|
-
let tmpWidth;
|
13842
|
-
options = options.trim().split(",");
|
13843
|
-
const result = options.map((item) => {
|
13844
|
-
item = item.trim();
|
13845
|
-
spaceIndex = item.lastIndexOf(" ");
|
13846
|
-
if (spaceIndex === -1) {
|
13847
|
-
tmpSrc = item;
|
13848
|
-
tmpWidth = 999998;
|
13849
|
-
} else {
|
13850
|
-
tmpSrc = item.substr(0, spaceIndex);
|
13851
|
-
tmpWidth = parseInt(
|
13852
|
-
item.substr(spaceIndex + 1, item.length - spaceIndex - 2),
|
13853
|
-
10
|
13854
|
-
);
|
13855
|
-
}
|
13856
|
-
return [tmpWidth, tmpSrc];
|
13857
|
-
});
|
13858
|
-
result.sort((a, b) => {
|
13859
|
-
if (a[0] < b[0]) {
|
13860
|
-
return 1;
|
13861
|
-
}
|
13862
|
-
if (a[0] > b[0]) {
|
13863
|
-
return -1;
|
13864
|
-
}
|
13865
|
-
if (a[0] === b[0]) {
|
13866
|
-
if (b[1].indexOf(".webp", b[1].length - 5) !== -1) {
|
13867
|
-
return 1;
|
13868
|
-
}
|
13869
|
-
if (a[1].indexOf(".webp", a[1].length - 5) !== -1) {
|
13870
|
-
return -1;
|
13871
|
-
}
|
13872
|
-
}
|
13873
|
-
return 0;
|
13874
|
-
});
|
13875
|
-
let bestSelectedSrc = "";
|
13876
|
-
let tmpOption;
|
13877
|
-
for (let i = 0; i < result.length; i++) {
|
13878
|
-
tmpOption = result[i];
|
13879
|
-
bestSelectedSrc = tmpOption[1];
|
13880
|
-
const next = result[i + 1];
|
13881
|
-
if (next && next[0] < containerWidth) {
|
13882
|
-
bestSelectedSrc = tmpOption[1];
|
13883
|
-
break;
|
13884
|
-
} else if (!next) {
|
13885
|
-
bestSelectedSrc = tmpOption[1];
|
13886
|
-
break;
|
13887
|
-
}
|
13888
|
-
}
|
13889
|
-
return bestSelectedSrc;
|
13890
|
-
}
|
13891
|
-
const getDPR = (scale = 1) => use.inBrowser ? window.devicePixelRatio || scale : scale;
|
13892
|
-
function supportWebp() {
|
13893
|
-
if (!use.inBrowser)
|
13894
|
-
return false;
|
13895
|
-
let support = true;
|
13896
|
-
try {
|
13897
|
-
const elem = document.createElement("canvas");
|
13898
|
-
if (elem.getContext && elem.getContext("2d")) {
|
13899
|
-
support = elem.toDataURL("image/webp").indexOf("data:image/webp") === 0;
|
13900
|
-
}
|
13901
|
-
} catch (err) {
|
13902
|
-
support = false;
|
13903
|
-
}
|
13904
|
-
return support;
|
13905
|
-
}
|
13906
|
-
function throttle(action, delay) {
|
13907
|
-
let timeout = null;
|
13908
|
-
let lastRun = 0;
|
13909
|
-
return function(...args) {
|
13910
|
-
if (timeout) {
|
13911
|
-
return;
|
13912
|
-
}
|
13913
|
-
const elapsed = Date.now() - lastRun;
|
13914
|
-
const runCallback = () => {
|
13915
|
-
lastRun = Date.now();
|
13916
|
-
timeout = false;
|
13917
|
-
action.apply(this, args);
|
13918
|
-
};
|
13919
|
-
if (elapsed >= delay) {
|
13920
|
-
runCallback();
|
13921
|
-
} else {
|
13922
|
-
timeout = setTimeout(runCallback, delay);
|
13923
|
-
}
|
13924
|
-
};
|
13925
|
-
}
|
13926
|
-
function on(el, type, func) {
|
13927
|
-
el.addEventListener(type, func, {
|
13928
|
-
capture: false,
|
13929
|
-
passive: true
|
13930
|
-
});
|
13931
|
-
}
|
13932
|
-
function off(el, type, func) {
|
13933
|
-
el.removeEventListener(type, func, false);
|
13934
|
-
}
|
13935
|
-
const loadImageAsync = (item, resolve, reject) => {
|
13936
|
-
const image = new Image();
|
13937
|
-
if (!item || !item.src) {
|
13938
|
-
return reject(new Error("image src is required"));
|
13939
|
-
}
|
13940
|
-
image.src = item.src;
|
13941
|
-
if (item.cors) {
|
13942
|
-
image.crossOrigin = item.cors;
|
13943
|
-
}
|
13944
|
-
image.onload = () => resolve({
|
13945
|
-
naturalHeight: image.naturalHeight,
|
13946
|
-
naturalWidth: image.naturalWidth,
|
13947
|
-
src: image.src
|
13948
|
-
});
|
13949
|
-
image.onerror = (e) => reject(e);
|
13950
|
-
};
|
13951
|
-
class ImageCache {
|
13952
|
-
constructor({ max }) {
|
13953
|
-
this.options = {
|
13954
|
-
max: max || 100
|
13955
|
-
};
|
13956
|
-
this.caches = [];
|
13957
|
-
}
|
13958
|
-
has(key) {
|
13959
|
-
return this.caches.indexOf(key) > -1;
|
13960
|
-
}
|
13961
|
-
add(key) {
|
13962
|
-
if (this.has(key))
|
13963
|
-
return;
|
13964
|
-
this.caches.push(key);
|
13965
|
-
if (this.caches.length > this.options.max) {
|
13966
|
-
this.free();
|
13967
|
-
}
|
13968
|
-
}
|
13969
|
-
free() {
|
13970
|
-
this.caches.shift();
|
13971
|
-
}
|
13972
|
-
}
|
13973
14067
|
class ReactiveListener {
|
13974
14068
|
constructor({
|
13975
14069
|
el,
|
@@ -14715,7 +14809,7 @@ const Lazyload = {
|
|
14715
14809
|
});
|
14716
14810
|
}
|
14717
14811
|
};
|
14718
|
-
const version = "4.0.0-rc.
|
14812
|
+
const version = "4.0.0-rc.9";
|
14719
14813
|
function install(app) {
|
14720
14814
|
const components = [
|
14721
14815
|
ActionBar,
|
@@ -14725,6 +14819,7 @@ function install(app) {
|
|
14725
14819
|
AddressEdit,
|
14726
14820
|
AddressList,
|
14727
14821
|
Area,
|
14822
|
+
BackTop,
|
14728
14823
|
Badge,
|
14729
14824
|
Button,
|
14730
14825
|
Calendar,
|
@@ -14826,6 +14921,7 @@ exports.ActionSheet = ActionSheet;
|
|
14826
14921
|
exports.AddressEdit = AddressEdit;
|
14827
14922
|
exports.AddressList = AddressList;
|
14828
14923
|
exports.Area = Area;
|
14924
|
+
exports.BackTop = BackTop;
|
14829
14925
|
exports.Badge = Badge;
|
14830
14926
|
exports.Button = Button;
|
14831
14927
|
exports.Calendar = Calendar;
|
@@ -14920,6 +15016,7 @@ exports.addressEditProps = addressEditProps;
|
|
14920
15016
|
exports.addressListProps = addressListProps;
|
14921
15017
|
exports.allowMultipleToast = allowMultipleToast;
|
14922
15018
|
exports.areaProps = areaProps;
|
15019
|
+
exports.backTopProps = backTopProps;
|
14923
15020
|
exports.badgeProps = badgeProps;
|
14924
15021
|
exports.buttonProps = buttonProps;
|
14925
15022
|
exports.calendarProps = calendarProps;
|