vant 3.4.3 → 3.4.6
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/changelog.generated.md +92 -0
- package/es/area/Area.js +3 -1
- package/es/calendar/Calendar.d.ts +4 -0
- package/es/calendar/Calendar.js +2 -0
- package/es/calendar/index.d.ts +3 -0
- package/es/collapse-item/CollapseItem.d.ts +13 -0
- package/es/collapse-item/CollapseItem.js +3 -2
- package/es/collapse-item/index.d.ts +9 -0
- package/es/dialog/Dialog.d.ts +2 -1
- package/es/dialog/Dialog.js +19 -3
- package/es/dialog/function-call.d.ts +2 -1
- package/es/field/utils.js +2 -1
- package/es/index-bar/IndexBar.d.ts +4 -4
- package/es/index-bar/IndexBar.js +3 -1
- package/es/index-bar/index.d.ts +3 -3
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/locale/lang/bn-BD.d.ts +64 -0
- package/es/locale/lang/bn-BD.js +74 -0
- package/es/locale/lang/de-DE-formal.js +1 -1
- package/es/locale/lang/de-DE.js +1 -1
- package/es/locale/lang/en-US.js +1 -1
- package/es/locale/lang/es-ES.js +1 -1
- package/es/locale/lang/fr-FR.js +1 -1
- package/es/locale/lang/hi-IN.js +1 -1
- package/es/locale/lang/id-ID.d.ts +64 -0
- package/es/locale/lang/id-ID.js +66 -0
- package/es/locale/lang/it-IT.d.ts +64 -0
- package/es/locale/lang/it-IT.js +74 -0
- package/es/locale/lang/ja-JP.js +1 -1
- package/es/locale/lang/ko-KR.js +1 -1
- package/es/locale/lang/nb-NO.js +1 -1
- package/es/locale/lang/pt-BR.js +1 -1
- package/es/locale/lang/ro-RO.js +1 -1
- package/es/locale/lang/ru-RU.js +1 -1
- package/es/locale/lang/th-TH.js +1 -1
- package/es/locale/lang/uk-UA.d.ts +64 -0
- package/es/locale/lang/uk-UA.js +74 -0
- package/es/locale/lang/vi-VN.d.ts +64 -0
- package/es/locale/lang/vi-VN.js +74 -0
- package/es/locale/lang/zh-CN.js +1 -1
- package/es/locale/lang/zh-HK.js +1 -1
- package/es/locale/lang/zh-TW.js +1 -1
- package/es/nav-bar/NavBar.d.ts +1 -1
- package/es/nav-bar/NavBar.js +3 -3
- package/es/nav-bar/index.d.ts +1 -1
- package/es/popup/Popup.d.ts +6 -1
- package/es/popup/Popup.js +14 -3
- package/es/popup/index.d.ts +5 -1
- package/es/popup/types.d.ts +5 -2
- package/es/skeleton/Skeleton.js +6 -4
- package/es/style/base.css +1 -1
- package/es/style/base.less +5 -0
- package/es/submit-bar/index.css +1 -1
- package/es/submit-bar/index.less +1 -0
- package/es/swipe-cell/SwipeCell.js +1 -1
- package/es/toast/Toast.d.ts +3 -0
- package/es/toast/Toast.js +3 -1
- package/es/uploader/types.d.ts +1 -3
- package/es/utils/interceptor.d.ts +1 -1
- package/lib/action-bar/ActionBar.js +14 -13
- package/lib/action-bar/index.js +14 -8
- package/lib/action-bar-button/ActionBarButton.js +18 -17
- package/lib/action-bar-button/index.js +14 -8
- package/lib/action-bar-icon/ActionBarIcon.js +18 -17
- package/lib/action-bar-icon/index.js +14 -8
- package/lib/action-sheet/ActionSheet.js +17 -16
- package/lib/action-sheet/index.js +14 -8
- package/lib/address-edit/AddressEdit.js +25 -19
- package/lib/address-edit/AddressEditDetail.js +15 -14
- package/lib/address-edit/index.js +14 -8
- package/lib/address-edit/types.js +18 -1
- package/lib/address-list/AddressList.js +18 -12
- package/lib/address-list/AddressListItem.js +17 -16
- package/lib/address-list/index.js +14 -8
- package/lib/area/Area.js +20 -17
- package/lib/area/index.js +14 -8
- package/lib/area/types.js +18 -1
- package/lib/badge/Badge.js +13 -12
- package/lib/badge/index.js +14 -8
- package/lib/button/Button.js +16 -15
- package/lib/button/index.js +14 -8
- package/lib/button/types.js +18 -1
- package/lib/calendar/Calendar.d.ts +4 -0
- package/lib/calendar/Calendar.js +26 -18
- package/lib/calendar/CalendarDay.js +14 -13
- package/lib/calendar/CalendarHeader.js +14 -13
- package/lib/calendar/CalendarMonth.js +21 -15
- package/lib/calendar/index.d.ts +3 -0
- package/lib/calendar/index.js +14 -8
- package/lib/calendar/types.js +18 -1
- package/lib/calendar/utils.js +11 -10
- package/lib/card/Card.js +15 -14
- package/lib/card/index.js +14 -8
- package/lib/cascader/Cascader.js +16 -15
- package/lib/cascader/index.js +14 -8
- package/lib/cascader/types.js +18 -1
- package/lib/cell/Cell.js +15 -14
- package/lib/cell/index.js +14 -8
- package/lib/cell-group/CellGroup.js +13 -12
- package/lib/cell-group/index.js +14 -8
- package/lib/checkbox/Checkbox.js +19 -13
- package/lib/checkbox/Checker.js +14 -13
- package/lib/checkbox/index.js +14 -8
- package/lib/checkbox/types.js +18 -1
- package/lib/checkbox-group/CheckboxGroup.js +15 -14
- package/lib/checkbox-group/index.js +14 -8
- package/lib/checkbox-group/types.js +18 -1
- package/lib/circle/Circle.js +14 -13
- package/lib/circle/index.js +14 -8
- package/lib/col/Col.js +15 -14
- package/lib/col/index.js +14 -8
- package/lib/collapse/Collapse.js +14 -13
- package/lib/collapse/index.js +14 -8
- package/lib/collapse-item/CollapseItem.d.ts +13 -0
- package/lib/collapse-item/CollapseItem.js +22 -20
- package/lib/collapse-item/index.d.ts +9 -0
- package/lib/collapse-item/index.js +14 -8
- package/lib/collapse-item/types.js +18 -1
- package/lib/composables/on-popup-reopen.js +11 -10
- package/lib/composables/use-expose.js +12 -11
- package/lib/composables/use-height.js +12 -11
- package/lib/composables/use-id.js +11 -10
- package/lib/composables/use-lazy-render.js +11 -10
- package/lib/composables/use-lock-scroll.js +14 -13
- package/lib/composables/use-placeholder.js +12 -11
- package/lib/composables/use-refs.js +11 -10
- package/lib/composables/use-route.js +11 -10
- package/lib/composables/use-tab-status.js +11 -10
- package/lib/composables/use-touch.js +11 -10
- package/lib/composables/use-visibility-change.js +13 -12
- package/lib/config-provider/ConfigProvider.js +13 -12
- package/lib/config-provider/index.js +14 -8
- package/lib/contact-card/ContactCard.js +14 -13
- package/lib/contact-card/index.js +14 -8
- package/lib/contact-edit/ContactEdit.js +18 -17
- package/lib/contact-edit/index.js +14 -8
- package/lib/contact-list/ContactList.js +19 -18
- package/lib/contact-list/index.js +14 -8
- package/lib/count-down/CountDown.js +16 -15
- package/lib/count-down/index.js +14 -8
- package/lib/count-down/types.js +18 -1
- package/lib/count-down/utils.js +11 -10
- package/lib/coupon/Coupon.js +15 -14
- package/lib/coupon/index.js +14 -8
- package/lib/coupon/utils.js +11 -10
- package/lib/coupon-cell/CouponCell.js +14 -13
- package/lib/coupon-cell/index.js +14 -8
- package/lib/coupon-list/CouponList.js +20 -19
- package/lib/coupon-list/index.js +14 -8
- package/lib/datetime-picker/DatePicker.js +16 -15
- package/lib/datetime-picker/DatetimePicker.js +18 -12
- package/lib/datetime-picker/TimePicker.js +16 -15
- package/lib/datetime-picker/index.js +14 -8
- package/lib/datetime-picker/types.js +18 -1
- package/lib/datetime-picker/utils.js +12 -11
- package/lib/dialog/Dialog.d.ts +2 -1
- package/lib/dialog/Dialog.js +35 -18
- package/lib/dialog/function-call.d.ts +2 -1
- package/lib/dialog/function-call.js +16 -10
- package/lib/dialog/index.js +11 -10
- package/lib/dialog/types.js +18 -1
- package/lib/divider/Divider.js +13 -12
- package/lib/divider/index.js +14 -8
- package/lib/dropdown-item/DropdownItem.js +19 -18
- package/lib/dropdown-item/index.js +14 -8
- package/lib/dropdown-item/types.js +18 -1
- package/lib/dropdown-menu/DropdownMenu.js +15 -14
- package/lib/dropdown-menu/index.js +14 -8
- package/lib/dropdown-menu/types.js +18 -1
- package/lib/empty/Empty.js +14 -13
- package/lib/empty/Network.js +11 -10
- package/lib/empty/index.js +14 -8
- package/lib/field/Field.js +20 -19
- package/lib/field/index.js +14 -8
- package/lib/field/types.js +18 -1
- package/lib/field/utils.js +13 -11
- package/lib/form/Form.js +15 -14
- package/lib/form/index.js +14 -8
- package/lib/form/types.js +18 -1
- package/lib/grid/Grid.js +15 -14
- package/lib/grid/index.js +14 -8
- package/lib/grid-item/GridItem.js +18 -17
- package/lib/grid-item/index.js +14 -8
- package/lib/icon/Icon.js +15 -14
- package/lib/icon/index.js +14 -8
- package/lib/image/Image.js +14 -13
- package/lib/image/index.js +14 -8
- package/lib/image-preview/ImagePreview.js +21 -15
- package/lib/image-preview/ImagePreviewItem.js +17 -16
- package/lib/image-preview/function-call.js +16 -10
- package/lib/image-preview/index.js +11 -10
- package/lib/image-preview/types.js +18 -1
- package/lib/index-anchor/IndexAnchor.js +17 -16
- package/lib/index-anchor/index.js +14 -8
- package/lib/index-bar/IndexBar.d.ts +4 -4
- package/lib/index-bar/IndexBar.js +19 -16
- package/lib/index-bar/index.d.ts +3 -3
- package/lib/index-bar/index.js +14 -8
- package/lib/index-bar/types.js +18 -1
- package/lib/index.css +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +182 -181
- package/lib/lazyload/index.js +11 -10
- package/lib/lazyload/vue-lazyload/index.js +16 -10
- package/lib/lazyload/vue-lazyload/lazy-component.js +12 -11
- package/lib/lazyload/vue-lazyload/lazy-container.js +11 -10
- package/lib/lazyload/vue-lazyload/lazy-image.js +13 -12
- package/lib/lazyload/vue-lazyload/lazy.js +17 -11
- package/lib/lazyload/vue-lazyload/listener.js +13 -12
- package/lib/lazyload/vue-lazyload/util.js +11 -10
- package/lib/list/List.js +17 -16
- package/lib/list/index.js +14 -8
- package/lib/list/types.js +18 -1
- package/lib/loading/Loading.js +13 -12
- package/lib/loading/index.js +14 -8
- package/lib/locale/index.js +15 -9
- package/lib/locale/lang/bn-BD.d.ts +64 -0
- package/lib/locale/lang/bn-BD.js +98 -0
- package/lib/locale/lang/de-DE-formal.js +20 -3
- package/lib/locale/lang/de-DE.js +20 -3
- package/lib/locale/lang/en-US.js +20 -3
- package/lib/locale/lang/es-ES.js +20 -3
- package/lib/locale/lang/fr-FR.js +20 -3
- package/lib/locale/lang/hi-IN.js +20 -3
- package/lib/locale/lang/id-ID.d.ts +64 -0
- package/lib/locale/lang/id-ID.js +90 -0
- package/lib/locale/lang/it-IT.d.ts +64 -0
- package/lib/locale/lang/it-IT.js +98 -0
- package/lib/locale/lang/ja-JP.js +20 -3
- package/lib/locale/lang/ko-KR.js +20 -3
- package/lib/locale/lang/nb-NO.js +20 -3
- package/lib/locale/lang/pt-BR.js +20 -3
- package/lib/locale/lang/ro-RO.js +20 -3
- package/lib/locale/lang/ru-RU.js +20 -3
- package/lib/locale/lang/th-TH.js +20 -3
- package/lib/locale/lang/tr-TR.js +19 -2
- package/lib/locale/lang/uk-UA.d.ts +64 -0
- package/lib/locale/lang/uk-UA.js +98 -0
- package/lib/locale/lang/vi-VN.d.ts +64 -0
- package/lib/locale/lang/vi-VN.js +98 -0
- package/lib/locale/lang/zh-CN.js +20 -3
- package/lib/locale/lang/zh-HK.js +20 -3
- package/lib/locale/lang/zh-TW.js +20 -3
- package/lib/nav-bar/NavBar.d.ts +1 -1
- package/lib/nav-bar/NavBar.js +18 -17
- package/lib/nav-bar/index.d.ts +1 -1
- package/lib/nav-bar/index.js +14 -8
- package/lib/notice-bar/NoticeBar.js +17 -16
- package/lib/notice-bar/index.js +14 -8
- package/lib/notice-bar/types.js +18 -1
- package/lib/notify/Notify.js +15 -14
- package/lib/notify/function-call.js +16 -10
- package/lib/notify/index.js +11 -10
- package/lib/notify/types.js +18 -1
- package/lib/number-keyboard/NumberKeyboard.js +17 -11
- package/lib/number-keyboard/NumberKeyboardKey.js +15 -14
- package/lib/number-keyboard/index.js +14 -8
- package/lib/overlay/Overlay.js +14 -13
- package/lib/overlay/index.js +14 -8
- package/lib/pagination/Pagination.js +13 -12
- package/lib/pagination/index.js +14 -8
- package/lib/password-input/PasswordInput.js +13 -12
- package/lib/password-input/index.js +14 -8
- package/lib/picker/Picker.js +19 -13
- package/lib/picker/PickerColumn.js +17 -16
- package/lib/picker/index.js +14 -8
- package/lib/picker/types.js +18 -1
- package/lib/popover/Popover.js +17 -16
- package/lib/popover/index.js +14 -8
- package/lib/popover/types.js +18 -1
- package/lib/popup/Popup.d.ts +6 -1
- package/lib/popup/Popup.js +34 -22
- package/lib/popup/index.d.ts +5 -1
- package/lib/popup/index.js +14 -8
- package/lib/popup/shared.js +11 -10
- package/lib/popup/types.d.ts +5 -2
- package/lib/popup/types.js +18 -1
- package/lib/progress/Progress.js +13 -12
- package/lib/progress/index.js +14 -8
- package/lib/progress/types.js +18 -1
- package/lib/pull-refresh/PullRefresh.js +16 -15
- package/lib/pull-refresh/index.js +14 -8
- package/lib/radio/Radio.js +18 -12
- package/lib/radio/index.js +14 -8
- package/lib/radio-group/RadioGroup.js +14 -13
- package/lib/radio-group/index.js +14 -8
- package/lib/rate/Rate.js +17 -16
- package/lib/rate/index.js +14 -8
- package/lib/row/Row.js +14 -13
- package/lib/row/index.js +14 -8
- package/lib/search/Search.js +17 -16
- package/lib/search/index.js +14 -8
- package/lib/search/types.js +18 -1
- package/lib/share-sheet/ShareSheet.js +15 -14
- package/lib/share-sheet/index.js +14 -8
- package/lib/sidebar/Sidebar.js +14 -13
- package/lib/sidebar/index.js +14 -8
- package/lib/sidebar-item/SidebarItem.js +17 -16
- package/lib/sidebar-item/index.js +14 -8
- package/lib/skeleton/Skeleton.js +18 -15
- package/lib/skeleton/index.js +14 -8
- package/lib/slider/Slider.js +15 -14
- package/lib/slider/index.js +14 -8
- package/lib/step/Step.js +16 -15
- package/lib/step/index.js +14 -8
- package/lib/stepper/Stepper.js +14 -13
- package/lib/stepper/index.js +14 -8
- package/lib/steps/Steps.js +14 -13
- package/lib/steps/index.js +14 -8
- package/lib/sticky/Sticky.js +15 -14
- package/lib/sticky/index.js +14 -8
- package/lib/style/base.css +1 -1
- package/lib/style/base.less +5 -0
- package/lib/submit-bar/SubmitBar.js +15 -14
- package/lib/submit-bar/index.css +1 -1
- package/lib/submit-bar/index.js +14 -8
- package/lib/submit-bar/index.less +1 -0
- package/lib/swipe/Swipe.js +17 -16
- package/lib/swipe/index.js +14 -8
- package/lib/swipe/types.js +18 -1
- package/lib/swipe-cell/SwipeCell.js +17 -16
- package/lib/swipe-cell/index.js +14 -8
- package/lib/swipe-cell/types.js +18 -1
- package/lib/swipe-item/SwipeItem.js +16 -15
- package/lib/swipe-item/index.js +14 -8
- package/lib/switch/Switch.js +15 -14
- package/lib/switch/index.js +14 -8
- package/lib/tab/Tab.js +20 -19
- package/lib/tab/index.js +14 -8
- package/lib/tabbar/Tabbar.js +15 -14
- package/lib/tabbar/index.js +14 -8
- package/lib/tabbar-item/TabbarItem.js +18 -17
- package/lib/tabbar-item/index.js +14 -8
- package/lib/tabs/Tabs.js +25 -19
- package/lib/tabs/TabsContent.js +14 -13
- package/lib/tabs/TabsTitle.js +14 -13
- package/lib/tabs/index.js +14 -8
- package/lib/tabs/types.js +18 -1
- package/lib/tabs/utils.js +12 -11
- package/lib/tag/Tag.js +14 -13
- package/lib/tag/index.js +14 -8
- package/lib/toast/Toast.d.ts +3 -0
- package/lib/toast/Toast.js +20 -17
- package/lib/toast/function-call.js +17 -11
- package/lib/toast/index.js +11 -10
- package/lib/toast/lock-click.js +19 -2
- package/lib/toast/types.js +18 -1
- package/lib/tree-select/TreeSelect.js +16 -15
- package/lib/tree-select/index.js +14 -8
- package/lib/uploader/Uploader.js +21 -15
- package/lib/uploader/UploaderPreviewItem.js +17 -16
- package/lib/uploader/index.js +14 -8
- package/lib/uploader/types.d.ts +1 -3
- package/lib/uploader/types.js +18 -1
- package/lib/uploader/utils.js +11 -10
- package/lib/utils/basic.js +19 -2
- package/lib/utils/constant.js +19 -2
- package/lib/utils/create.js +16 -10
- package/lib/utils/deep-assign.js +11 -10
- package/lib/utils/deep-clone.js +11 -10
- package/lib/utils/dom.js +13 -12
- package/lib/utils/format.js +13 -12
- package/lib/utils/index.js +18 -17
- package/lib/utils/interceptor.d.ts +1 -1
- package/lib/utils/interceptor.js +12 -11
- package/lib/utils/mount-component.js +13 -12
- package/lib/utils/props.js +19 -2
- package/lib/utils/validate.js +11 -10
- package/lib/utils/with-install.js +11 -10
- package/lib/vant.cjs.js +57 -18
- package/lib/vant.cjs.min.js +1 -1
- package/lib/vant.es.js +58 -19
- package/lib/vant.es.min.js +58 -19
- package/lib/vant.js +60 -21
- package/lib/vant.min.js +1 -1
- package/package.json +4 -7
- package/vetur/attributes.json +180 -168
- package/vetur/tags.json +57 -54
- package/vetur/web-types.json +611 -581
package/lib/vant.es.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { useWindowSize, useRect, useChildren, useParent, onMountedOrActivated, getScrollParent, useEventListener, CUSTOM_FIELD_INJECTION_KEY, useCustomFieldValue, useToggle, raf, useScrollParent, usePageVisibility, doubleRaf, cancelRaf, useCountDown, useClickAway, inBrowser as inBrowser$1 } from "@vant/use";
|
2
|
-
import { unref, ref, reactive, defineComponent, createVNode, getCurrentInstance, computed, provide, inject, mergeProps, onDeactivated, onBeforeUnmount, watch, Transition, withDirectives, vShow, onMounted, onActivated, Teleport, Fragment,
|
2
|
+
import { unref, ref, reactive, defineComponent, createVNode, getCurrentInstance, computed, provide, inject, mergeProps, onDeactivated, onBeforeUnmount, watch, Transition, withDirectives, vShow, nextTick, onMounted, onActivated, Teleport, Fragment, createTextVNode, createApp, onUnmounted, onBeforeUpdate, resolveDirective, withKeys, onUpdated, watchEffect, h } from "vue";
|
3
3
|
import { createPopper, offsetModifier } from "@vant/popperjs";
|
4
4
|
function noop() {
|
5
5
|
}
|
@@ -259,7 +259,7 @@ var stdin_default$1D = {
|
|
259
259
|
loosing: "\u91CA\u653E\u5373\u53EF\u5237\u65B0..."
|
260
260
|
},
|
261
261
|
vanSubmitBar: {
|
262
|
-
label: "\u5408\u8BA1
|
262
|
+
label: "\u5408\u8BA1:"
|
263
263
|
},
|
264
264
|
vanCoupon: {
|
265
265
|
unlimited: "\u65E0\u95E8\u69DB",
|
@@ -1126,6 +1126,7 @@ const popupProps$2 = extend({}, popupSharedProps, {
|
|
1126
1126
|
iconPrefix: String,
|
1127
1127
|
closeOnPopstate: Boolean,
|
1128
1128
|
closeIconPosition: makeStringProp("top-right"),
|
1129
|
+
safeAreaInsetTop: Boolean,
|
1129
1130
|
safeAreaInsetBottom: Boolean
|
1130
1131
|
});
|
1131
1132
|
const [name$1l, bem$1h] = createNamespace("popup");
|
@@ -1134,7 +1135,7 @@ var stdin_default$1s = defineComponent({
|
|
1134
1135
|
name: name$1l,
|
1135
1136
|
inheritAttrs: false,
|
1136
1137
|
props: popupProps$2,
|
1137
|
-
emits: ["open", "close", "opened", "closed", "update:show", "click-overlay", "click-close-icon"],
|
1138
|
+
emits: ["open", "close", "opened", "closed", "keydown", "update:show", "click-overlay", "click-close-icon"],
|
1138
1139
|
setup(props, {
|
1139
1140
|
emit,
|
1140
1141
|
attrs,
|
@@ -1214,11 +1215,13 @@ var stdin_default$1s = defineComponent({
|
|
1214
1215
|
};
|
1215
1216
|
const onOpened = () => emit("opened");
|
1216
1217
|
const onClosed = () => emit("closed");
|
1218
|
+
const onKeydown = (event) => emit("keydown", event);
|
1217
1219
|
const renderPopup = lazyRender(() => {
|
1218
1220
|
var _a;
|
1219
1221
|
const {
|
1220
1222
|
round,
|
1221
1223
|
position,
|
1224
|
+
safeAreaInsetTop,
|
1222
1225
|
safeAreaInsetBottom
|
1223
1226
|
} = props;
|
1224
1227
|
return withDirectives(createVNode("div", mergeProps({
|
@@ -1228,8 +1231,10 @@ var stdin_default$1s = defineComponent({
|
|
1228
1231
|
round,
|
1229
1232
|
[position]: position
|
1230
1233
|
}), {
|
1234
|
+
"van-safe-area-top": safeAreaInsetTop,
|
1231
1235
|
"van-safe-area-bottom": safeAreaInsetBottom
|
1232
|
-
}]
|
1236
|
+
}],
|
1237
|
+
"onKeydown": onKeydown
|
1233
1238
|
}, attrs), [(_a = slots.default) == null ? void 0 : _a.call(slots), renderCloseIcon()]), [[vShow, props.show]]);
|
1234
1239
|
});
|
1235
1240
|
const renderTransition = () => {
|
@@ -1251,6 +1256,12 @@ var stdin_default$1s = defineComponent({
|
|
1251
1256
|
watch(() => props.show, (show) => {
|
1252
1257
|
if (show && !opened) {
|
1253
1258
|
open();
|
1259
|
+
if (attrs.tabindex === 0) {
|
1260
|
+
nextTick(() => {
|
1261
|
+
var _a;
|
1262
|
+
(_a = popupRef.value) == null ? void 0 : _a.focus();
|
1263
|
+
});
|
1264
|
+
}
|
1254
1265
|
}
|
1255
1266
|
if (!show && opened) {
|
1256
1267
|
opened = false;
|
@@ -2166,7 +2177,9 @@ var stdin_default$1o = defineComponent({
|
|
2166
2177
|
watch(() => props.areaList, setValues, {
|
2167
2178
|
deep: true
|
2168
2179
|
});
|
2169
|
-
watch(() => props.columnsNum, () =>
|
2180
|
+
watch(() => props.columnsNum, () => {
|
2181
|
+
nextTick(setValues);
|
2182
|
+
});
|
2170
2183
|
useExpose({
|
2171
2184
|
reset,
|
2172
2185
|
getArea,
|
@@ -2464,7 +2477,8 @@ function runRuleValidator(value, rule) {
|
|
2464
2477
|
return new Promise((resolve) => {
|
2465
2478
|
const returnVal = rule.validator(value, rule);
|
2466
2479
|
if (isPromise(returnVal)) {
|
2467
|
-
|
2480
|
+
returnVal.then(resolve);
|
2481
|
+
return;
|
2468
2482
|
}
|
2469
2483
|
resolve(returnVal);
|
2470
2484
|
});
|
@@ -3002,7 +3016,7 @@ function lockClick(lock) {
|
|
3002
3016
|
}
|
3003
3017
|
}
|
3004
3018
|
const [name$1d, bem$19] = createNamespace("toast");
|
3005
|
-
const popupInheritProps = ["show", "overlay", "transition", "overlayClass", "overlayStyle", "closeOnClickOverlay"];
|
3019
|
+
const popupInheritProps = ["show", "overlay", "teleport", "transition", "overlayClass", "overlayStyle", "closeOnClickOverlay"];
|
3006
3020
|
const toastProps = {
|
3007
3021
|
icon: String,
|
3008
3022
|
show: Boolean,
|
@@ -3012,6 +3026,7 @@ const toastProps = {
|
|
3012
3026
|
iconSize: numericProp,
|
3013
3027
|
duration: makeNumberProp(2e3),
|
3014
3028
|
position: makeStringProp("middle"),
|
3029
|
+
teleport: [String, Object],
|
3015
3030
|
className: unknownProp,
|
3016
3031
|
iconPrefix: String,
|
3017
3032
|
transition: makeStringProp("van-fade"),
|
@@ -3077,6 +3092,7 @@ var stdin_default$1k = defineComponent({
|
|
3077
3092
|
} = props;
|
3078
3093
|
if (isDef(message) && message !== "") {
|
3079
3094
|
return type === "html" ? createVNode("div", {
|
3095
|
+
"key": 0,
|
3080
3096
|
"class": bem$19("text"),
|
3081
3097
|
"innerHTML": String(message)
|
3082
3098
|
}, null) : createVNode("div", {
|
@@ -4600,6 +4616,7 @@ const calendarProps = {
|
|
4600
4616
|
showRangePrompt: truthProp,
|
4601
4617
|
confirmDisabledText: String,
|
4602
4618
|
closeOnClickOverlay: truthProp,
|
4619
|
+
safeAreaInsetTop: Boolean,
|
4603
4620
|
safeAreaInsetBottom: truthProp,
|
4604
4621
|
minDate: {
|
4605
4622
|
type: Date,
|
@@ -4948,6 +4965,7 @@ var stdin_default$17 = defineComponent({
|
|
4948
4965
|
"closeable": props.showTitle || props.showSubtitle,
|
4949
4966
|
"teleport": props.teleport,
|
4950
4967
|
"closeOnPopstate": props.closeOnPopstate,
|
4968
|
+
"safeAreaInsetTop": props.safeAreaInsetTop,
|
4951
4969
|
"closeOnClickOverlay": props.closeOnClickOverlay,
|
4952
4970
|
"onUpdate:show": updateShow
|
4953
4971
|
}, {
|
@@ -7120,7 +7138,8 @@ const collapseItemProps = extend({}, cellSharedProps, {
|
|
7120
7138
|
name: numericProp,
|
7121
7139
|
isLink: truthProp,
|
7122
7140
|
disabled: Boolean,
|
7123
|
-
readonly: Boolean
|
7141
|
+
readonly: Boolean,
|
7142
|
+
lazyRender: truthProp
|
7124
7143
|
});
|
7125
7144
|
var stdin_default$R = defineComponent({
|
7126
7145
|
name: name$L,
|
@@ -7143,7 +7162,7 @@ var stdin_default$R = defineComponent({
|
|
7143
7162
|
});
|
7144
7163
|
const expanded = computed(() => parent.isExpanded(name2.value));
|
7145
7164
|
const show = ref(expanded.value);
|
7146
|
-
const lazyRender = useLazyRender(show);
|
7165
|
+
const lazyRender = useLazyRender(() => show.value || !props.lazyRender);
|
7147
7166
|
const onTransitionEnd = () => {
|
7148
7167
|
if (!expanded.value) {
|
7149
7168
|
show.value = false;
|
@@ -8242,11 +8261,12 @@ const popupInheritKeys$1 = [...popupSharedPropKeys, "transition", "closeOnPopsta
|
|
8242
8261
|
var stdin_default$G = defineComponent({
|
8243
8262
|
name: name$A,
|
8244
8263
|
props: dialogProps,
|
8245
|
-
emits: ["confirm", "cancel", "update:show"],
|
8264
|
+
emits: ["confirm", "cancel", "keydown", "update:show"],
|
8246
8265
|
setup(props, {
|
8247
8266
|
emit,
|
8248
8267
|
slots
|
8249
8268
|
}) {
|
8269
|
+
const root = ref();
|
8250
8270
|
const loading = reactive({
|
8251
8271
|
confirm: false,
|
8252
8272
|
cancel: false
|
@@ -8280,6 +8300,18 @@ var stdin_default$G = defineComponent({
|
|
8280
8300
|
};
|
8281
8301
|
const onCancel = getActionHandler("cancel");
|
8282
8302
|
const onConfirm = getActionHandler("confirm");
|
8303
|
+
const onKeydown = withKeys((event) => {
|
8304
|
+
var _a, _b;
|
8305
|
+
if (event.target !== ((_b = (_a = root.value) == null ? void 0 : _a.popupRef) == null ? void 0 : _b.value)) {
|
8306
|
+
return;
|
8307
|
+
}
|
8308
|
+
const onEventType = {
|
8309
|
+
Enter: props.showConfirmButton ? onConfirm : noop,
|
8310
|
+
Escape: props.showCancelButton ? onCancel : noop
|
8311
|
+
};
|
8312
|
+
onEventType[event.key]();
|
8313
|
+
emit("keydown", event);
|
8314
|
+
}, ["enter", "esc"]);
|
8283
8315
|
const renderTitle = () => {
|
8284
8316
|
const title = slots.title ? slots.title() : props.title;
|
8285
8317
|
if (title) {
|
@@ -8389,12 +8421,15 @@ var stdin_default$G = defineComponent({
|
|
8389
8421
|
className
|
8390
8422
|
} = props;
|
8391
8423
|
return createVNode(Popup, mergeProps({
|
8424
|
+
"ref": root,
|
8392
8425
|
"role": "dialog",
|
8393
8426
|
"class": [bem$B([theme]), className],
|
8394
8427
|
"style": {
|
8395
8428
|
width: addUnit(width)
|
8396
8429
|
},
|
8430
|
+
"tabindex": 0,
|
8397
8431
|
"aria-labelledby": title || message,
|
8432
|
+
"onKeydown": onKeydown,
|
8398
8433
|
"onUpdate:show": updateShow
|
8399
8434
|
}, pick(props, popupInheritKeys$1)), {
|
8400
8435
|
default: () => [renderTitle(), renderContent(), renderFooter()]
|
@@ -9658,7 +9693,9 @@ var stdin_default$x = defineComponent({
|
|
9658
9693
|
});
|
9659
9694
|
}
|
9660
9695
|
};
|
9661
|
-
const init = () =>
|
9696
|
+
const init = () => {
|
9697
|
+
nextTick(onScroll);
|
9698
|
+
};
|
9662
9699
|
useEventListener("scroll", onScroll, {
|
9663
9700
|
target: scrollParent
|
9664
9701
|
});
|
@@ -10016,10 +10053,10 @@ var stdin_default$u = defineComponent({
|
|
10016
10053
|
"ref": navBarRef,
|
10017
10054
|
"style": style,
|
10018
10055
|
"class": [bem$p({
|
10019
|
-
fixed
|
10020
|
-
"safe-area-inset-top": props.safeAreaInsetTop
|
10056
|
+
fixed
|
10021
10057
|
}), {
|
10022
|
-
[BORDER_BOTTOM]: border
|
10058
|
+
[BORDER_BOTTOM]: border,
|
10059
|
+
"van-safe-area-top": props.safeAreaInsetTop
|
10023
10060
|
}]
|
10024
10061
|
}, [createVNode("div", {
|
10025
10062
|
"class": bem$p("content")
|
@@ -11740,9 +11777,11 @@ const skeletonProps = {
|
|
11740
11777
|
};
|
11741
11778
|
var stdin_default$f = defineComponent({
|
11742
11779
|
name: name$a,
|
11780
|
+
inheritAttrs: false,
|
11743
11781
|
props: skeletonProps,
|
11744
11782
|
setup(props, {
|
11745
|
-
slots
|
11783
|
+
slots,
|
11784
|
+
attrs
|
11746
11785
|
}) {
|
11747
11786
|
const renderAvatar = () => {
|
11748
11787
|
if (props.avatar) {
|
@@ -11785,12 +11824,12 @@ var stdin_default$f = defineComponent({
|
|
11785
11824
|
if (!props.loading) {
|
11786
11825
|
return (_a = slots.default) == null ? void 0 : _a.call(slots);
|
11787
11826
|
}
|
11788
|
-
return createVNode("div", {
|
11827
|
+
return createVNode("div", mergeProps({
|
11789
11828
|
"class": bem$a({
|
11790
11829
|
animate: props.animate,
|
11791
11830
|
round: props.round
|
11792
11831
|
})
|
11793
|
-
}, [renderAvatar(), createVNode("div", {
|
11832
|
+
}, attrs), [renderAvatar(), createVNode("div", {
|
11794
11833
|
"class": bem$a("content")
|
11795
11834
|
}, [renderTitle(), renderRows()])]);
|
11796
11835
|
};
|
@@ -12681,7 +12720,7 @@ var stdin_default$9 = defineComponent({
|
|
12681
12720
|
return createVNode("div", {
|
12682
12721
|
"ref": root,
|
12683
12722
|
"class": bem$4(),
|
12684
|
-
"onClick": getClickHandler("cell"),
|
12723
|
+
"onClick": getClickHandler("cell", lockClick2),
|
12685
12724
|
"onTouchstart": onTouchStart,
|
12686
12725
|
"onTouchmove": onTouchMove,
|
12687
12726
|
"onTouchend": onTouchEnd,
|
@@ -14228,7 +14267,7 @@ const Lazyload = {
|
|
14228
14267
|
});
|
14229
14268
|
}
|
14230
14269
|
};
|
14231
|
-
const version = "3.4.
|
14270
|
+
const version = "3.4.6";
|
14232
14271
|
function install(app) {
|
14233
14272
|
const components = [
|
14234
14273
|
ActionBar,
|
package/lib/vant.es.min.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { useWindowSize, useRect, useChildren, useParent, onMountedOrActivated, getScrollParent, useEventListener, CUSTOM_FIELD_INJECTION_KEY, useCustomFieldValue, useToggle, raf, useScrollParent, usePageVisibility, doubleRaf, cancelRaf, useCountDown, useClickAway, inBrowser as inBrowser$1 } from "@vant/use";
|
2
|
-
import { unref, ref, reactive, defineComponent, createVNode, getCurrentInstance, computed, provide, inject, mergeProps, onDeactivated, onBeforeUnmount, watch, Transition, withDirectives, vShow, onMounted, onActivated, Teleport, Fragment,
|
2
|
+
import { unref, ref, reactive, defineComponent, createVNode, getCurrentInstance, computed, provide, inject, mergeProps, onDeactivated, onBeforeUnmount, watch, Transition, withDirectives, vShow, nextTick, onMounted, onActivated, Teleport, Fragment, createTextVNode, createApp, onUnmounted, onBeforeUpdate, resolveDirective, withKeys, onUpdated, watchEffect, h } from "vue";
|
3
3
|
import { createPopper, offsetModifier } from "@vant/popperjs";
|
4
4
|
function noop() {
|
5
5
|
}
|
@@ -259,7 +259,7 @@ var stdin_default$1D = {
|
|
259
259
|
loosing: "\u91CA\u653E\u5373\u53EF\u5237\u65B0..."
|
260
260
|
},
|
261
261
|
vanSubmitBar: {
|
262
|
-
label: "\u5408\u8BA1
|
262
|
+
label: "\u5408\u8BA1:"
|
263
263
|
},
|
264
264
|
vanCoupon: {
|
265
265
|
unlimited: "\u65E0\u95E8\u69DB",
|
@@ -1126,6 +1126,7 @@ const popupProps$2 = extend({}, popupSharedProps, {
|
|
1126
1126
|
iconPrefix: String,
|
1127
1127
|
closeOnPopstate: Boolean,
|
1128
1128
|
closeIconPosition: makeStringProp("top-right"),
|
1129
|
+
safeAreaInsetTop: Boolean,
|
1129
1130
|
safeAreaInsetBottom: Boolean
|
1130
1131
|
});
|
1131
1132
|
const [name$1l, bem$1h] = createNamespace("popup");
|
@@ -1134,7 +1135,7 @@ var stdin_default$1s = defineComponent({
|
|
1134
1135
|
name: name$1l,
|
1135
1136
|
inheritAttrs: false,
|
1136
1137
|
props: popupProps$2,
|
1137
|
-
emits: ["open", "close", "opened", "closed", "update:show", "click-overlay", "click-close-icon"],
|
1138
|
+
emits: ["open", "close", "opened", "closed", "keydown", "update:show", "click-overlay", "click-close-icon"],
|
1138
1139
|
setup(props, {
|
1139
1140
|
emit,
|
1140
1141
|
attrs,
|
@@ -1214,11 +1215,13 @@ var stdin_default$1s = defineComponent({
|
|
1214
1215
|
};
|
1215
1216
|
const onOpened = () => emit("opened");
|
1216
1217
|
const onClosed = () => emit("closed");
|
1218
|
+
const onKeydown = (event) => emit("keydown", event);
|
1217
1219
|
const renderPopup = lazyRender(() => {
|
1218
1220
|
var _a;
|
1219
1221
|
const {
|
1220
1222
|
round,
|
1221
1223
|
position,
|
1224
|
+
safeAreaInsetTop,
|
1222
1225
|
safeAreaInsetBottom
|
1223
1226
|
} = props;
|
1224
1227
|
return withDirectives(createVNode("div", mergeProps({
|
@@ -1228,8 +1231,10 @@ var stdin_default$1s = defineComponent({
|
|
1228
1231
|
round,
|
1229
1232
|
[position]: position
|
1230
1233
|
}), {
|
1234
|
+
"van-safe-area-top": safeAreaInsetTop,
|
1231
1235
|
"van-safe-area-bottom": safeAreaInsetBottom
|
1232
|
-
}]
|
1236
|
+
}],
|
1237
|
+
"onKeydown": onKeydown
|
1233
1238
|
}, attrs), [(_a = slots.default) == null ? void 0 : _a.call(slots), renderCloseIcon()]), [[vShow, props.show]]);
|
1234
1239
|
});
|
1235
1240
|
const renderTransition = () => {
|
@@ -1251,6 +1256,12 @@ var stdin_default$1s = defineComponent({
|
|
1251
1256
|
watch(() => props.show, (show) => {
|
1252
1257
|
if (show && !opened) {
|
1253
1258
|
open();
|
1259
|
+
if (attrs.tabindex === 0) {
|
1260
|
+
nextTick(() => {
|
1261
|
+
var _a;
|
1262
|
+
(_a = popupRef.value) == null ? void 0 : _a.focus();
|
1263
|
+
});
|
1264
|
+
}
|
1254
1265
|
}
|
1255
1266
|
if (!show && opened) {
|
1256
1267
|
opened = false;
|
@@ -2166,7 +2177,9 @@ var stdin_default$1o = defineComponent({
|
|
2166
2177
|
watch(() => props.areaList, setValues, {
|
2167
2178
|
deep: true
|
2168
2179
|
});
|
2169
|
-
watch(() => props.columnsNum, () =>
|
2180
|
+
watch(() => props.columnsNum, () => {
|
2181
|
+
nextTick(setValues);
|
2182
|
+
});
|
2170
2183
|
useExpose({
|
2171
2184
|
reset,
|
2172
2185
|
getArea,
|
@@ -2464,7 +2477,8 @@ function runRuleValidator(value, rule) {
|
|
2464
2477
|
return new Promise((resolve) => {
|
2465
2478
|
const returnVal = rule.validator(value, rule);
|
2466
2479
|
if (isPromise(returnVal)) {
|
2467
|
-
|
2480
|
+
returnVal.then(resolve);
|
2481
|
+
return;
|
2468
2482
|
}
|
2469
2483
|
resolve(returnVal);
|
2470
2484
|
});
|
@@ -3002,7 +3016,7 @@ function lockClick(lock) {
|
|
3002
3016
|
}
|
3003
3017
|
}
|
3004
3018
|
const [name$1d, bem$19] = createNamespace("toast");
|
3005
|
-
const popupInheritProps = ["show", "overlay", "transition", "overlayClass", "overlayStyle", "closeOnClickOverlay"];
|
3019
|
+
const popupInheritProps = ["show", "overlay", "teleport", "transition", "overlayClass", "overlayStyle", "closeOnClickOverlay"];
|
3006
3020
|
const toastProps = {
|
3007
3021
|
icon: String,
|
3008
3022
|
show: Boolean,
|
@@ -3012,6 +3026,7 @@ const toastProps = {
|
|
3012
3026
|
iconSize: numericProp,
|
3013
3027
|
duration: makeNumberProp(2e3),
|
3014
3028
|
position: makeStringProp("middle"),
|
3029
|
+
teleport: [String, Object],
|
3015
3030
|
className: unknownProp,
|
3016
3031
|
iconPrefix: String,
|
3017
3032
|
transition: makeStringProp("van-fade"),
|
@@ -3077,6 +3092,7 @@ var stdin_default$1k = defineComponent({
|
|
3077
3092
|
} = props;
|
3078
3093
|
if (isDef(message) && message !== "") {
|
3079
3094
|
return type === "html" ? createVNode("div", {
|
3095
|
+
"key": 0,
|
3080
3096
|
"class": bem$19("text"),
|
3081
3097
|
"innerHTML": String(message)
|
3082
3098
|
}, null) : createVNode("div", {
|
@@ -4600,6 +4616,7 @@ const calendarProps = {
|
|
4600
4616
|
showRangePrompt: truthProp,
|
4601
4617
|
confirmDisabledText: String,
|
4602
4618
|
closeOnClickOverlay: truthProp,
|
4619
|
+
safeAreaInsetTop: Boolean,
|
4603
4620
|
safeAreaInsetBottom: truthProp,
|
4604
4621
|
minDate: {
|
4605
4622
|
type: Date,
|
@@ -4948,6 +4965,7 @@ var stdin_default$17 = defineComponent({
|
|
4948
4965
|
"closeable": props.showTitle || props.showSubtitle,
|
4949
4966
|
"teleport": props.teleport,
|
4950
4967
|
"closeOnPopstate": props.closeOnPopstate,
|
4968
|
+
"safeAreaInsetTop": props.safeAreaInsetTop,
|
4951
4969
|
"closeOnClickOverlay": props.closeOnClickOverlay,
|
4952
4970
|
"onUpdate:show": updateShow
|
4953
4971
|
}, {
|
@@ -7120,7 +7138,8 @@ const collapseItemProps = extend({}, cellSharedProps, {
|
|
7120
7138
|
name: numericProp,
|
7121
7139
|
isLink: truthProp,
|
7122
7140
|
disabled: Boolean,
|
7123
|
-
readonly: Boolean
|
7141
|
+
readonly: Boolean,
|
7142
|
+
lazyRender: truthProp
|
7124
7143
|
});
|
7125
7144
|
var stdin_default$R = defineComponent({
|
7126
7145
|
name: name$L,
|
@@ -7143,7 +7162,7 @@ var stdin_default$R = defineComponent({
|
|
7143
7162
|
});
|
7144
7163
|
const expanded = computed(() => parent.isExpanded(name2.value));
|
7145
7164
|
const show = ref(expanded.value);
|
7146
|
-
const lazyRender = useLazyRender(show);
|
7165
|
+
const lazyRender = useLazyRender(() => show.value || !props.lazyRender);
|
7147
7166
|
const onTransitionEnd = () => {
|
7148
7167
|
if (!expanded.value) {
|
7149
7168
|
show.value = false;
|
@@ -8242,11 +8261,12 @@ const popupInheritKeys$1 = [...popupSharedPropKeys, "transition", "closeOnPopsta
|
|
8242
8261
|
var stdin_default$G = defineComponent({
|
8243
8262
|
name: name$A,
|
8244
8263
|
props: dialogProps,
|
8245
|
-
emits: ["confirm", "cancel", "update:show"],
|
8264
|
+
emits: ["confirm", "cancel", "keydown", "update:show"],
|
8246
8265
|
setup(props, {
|
8247
8266
|
emit,
|
8248
8267
|
slots
|
8249
8268
|
}) {
|
8269
|
+
const root = ref();
|
8250
8270
|
const loading = reactive({
|
8251
8271
|
confirm: false,
|
8252
8272
|
cancel: false
|
@@ -8280,6 +8300,18 @@ var stdin_default$G = defineComponent({
|
|
8280
8300
|
};
|
8281
8301
|
const onCancel = getActionHandler("cancel");
|
8282
8302
|
const onConfirm = getActionHandler("confirm");
|
8303
|
+
const onKeydown = withKeys((event) => {
|
8304
|
+
var _a, _b;
|
8305
|
+
if (event.target !== ((_b = (_a = root.value) == null ? void 0 : _a.popupRef) == null ? void 0 : _b.value)) {
|
8306
|
+
return;
|
8307
|
+
}
|
8308
|
+
const onEventType = {
|
8309
|
+
Enter: props.showConfirmButton ? onConfirm : noop,
|
8310
|
+
Escape: props.showCancelButton ? onCancel : noop
|
8311
|
+
};
|
8312
|
+
onEventType[event.key]();
|
8313
|
+
emit("keydown", event);
|
8314
|
+
}, ["enter", "esc"]);
|
8283
8315
|
const renderTitle = () => {
|
8284
8316
|
const title = slots.title ? slots.title() : props.title;
|
8285
8317
|
if (title) {
|
@@ -8389,12 +8421,15 @@ var stdin_default$G = defineComponent({
|
|
8389
8421
|
className
|
8390
8422
|
} = props;
|
8391
8423
|
return createVNode(Popup, mergeProps({
|
8424
|
+
"ref": root,
|
8392
8425
|
"role": "dialog",
|
8393
8426
|
"class": [bem$B([theme]), className],
|
8394
8427
|
"style": {
|
8395
8428
|
width: addUnit(width)
|
8396
8429
|
},
|
8430
|
+
"tabindex": 0,
|
8397
8431
|
"aria-labelledby": title || message,
|
8432
|
+
"onKeydown": onKeydown,
|
8398
8433
|
"onUpdate:show": updateShow
|
8399
8434
|
}, pick(props, popupInheritKeys$1)), {
|
8400
8435
|
default: () => [renderTitle(), renderContent(), renderFooter()]
|
@@ -9658,7 +9693,9 @@ var stdin_default$x = defineComponent({
|
|
9658
9693
|
});
|
9659
9694
|
}
|
9660
9695
|
};
|
9661
|
-
const init = () =>
|
9696
|
+
const init = () => {
|
9697
|
+
nextTick(onScroll);
|
9698
|
+
};
|
9662
9699
|
useEventListener("scroll", onScroll, {
|
9663
9700
|
target: scrollParent
|
9664
9701
|
});
|
@@ -10016,10 +10053,10 @@ var stdin_default$u = defineComponent({
|
|
10016
10053
|
"ref": navBarRef,
|
10017
10054
|
"style": style,
|
10018
10055
|
"class": [bem$p({
|
10019
|
-
fixed
|
10020
|
-
"safe-area-inset-top": props.safeAreaInsetTop
|
10056
|
+
fixed
|
10021
10057
|
}), {
|
10022
|
-
[BORDER_BOTTOM]: border
|
10058
|
+
[BORDER_BOTTOM]: border,
|
10059
|
+
"van-safe-area-top": props.safeAreaInsetTop
|
10023
10060
|
}]
|
10024
10061
|
}, [createVNode("div", {
|
10025
10062
|
"class": bem$p("content")
|
@@ -11740,9 +11777,11 @@ const skeletonProps = {
|
|
11740
11777
|
};
|
11741
11778
|
var stdin_default$f = defineComponent({
|
11742
11779
|
name: name$a,
|
11780
|
+
inheritAttrs: false,
|
11743
11781
|
props: skeletonProps,
|
11744
11782
|
setup(props, {
|
11745
|
-
slots
|
11783
|
+
slots,
|
11784
|
+
attrs
|
11746
11785
|
}) {
|
11747
11786
|
const renderAvatar = () => {
|
11748
11787
|
if (props.avatar) {
|
@@ -11785,12 +11824,12 @@ var stdin_default$f = defineComponent({
|
|
11785
11824
|
if (!props.loading) {
|
11786
11825
|
return (_a = slots.default) == null ? void 0 : _a.call(slots);
|
11787
11826
|
}
|
11788
|
-
return createVNode("div", {
|
11827
|
+
return createVNode("div", mergeProps({
|
11789
11828
|
"class": bem$a({
|
11790
11829
|
animate: props.animate,
|
11791
11830
|
round: props.round
|
11792
11831
|
})
|
11793
|
-
}, [renderAvatar(), createVNode("div", {
|
11832
|
+
}, attrs), [renderAvatar(), createVNode("div", {
|
11794
11833
|
"class": bem$a("content")
|
11795
11834
|
}, [renderTitle(), renderRows()])]);
|
11796
11835
|
};
|
@@ -12681,7 +12720,7 @@ var stdin_default$9 = defineComponent({
|
|
12681
12720
|
return createVNode("div", {
|
12682
12721
|
"ref": root,
|
12683
12722
|
"class": bem$4(),
|
12684
|
-
"onClick": getClickHandler("cell"),
|
12723
|
+
"onClick": getClickHandler("cell", lockClick2),
|
12685
12724
|
"onTouchstart": onTouchStart,
|
12686
12725
|
"onTouchmove": onTouchMove,
|
12687
12726
|
"onTouchend": onTouchEnd,
|
@@ -14228,7 +14267,7 @@ const Lazyload = {
|
|
14228
14267
|
});
|
14229
14268
|
}
|
14230
14269
|
};
|
14231
|
-
const version = "3.4.
|
14270
|
+
const version = "3.4.6";
|
14232
14271
|
function install(app) {
|
14233
14272
|
const components = [
|
14234
14273
|
ActionBar,
|