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
@@ -1,30 +1,30 @@
|
|
1
|
-
var __create = Object.create;
|
2
1
|
var __defProp = Object.defineProperty;
|
3
2
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
4
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
6
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
7
5
|
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
8
6
|
var __export = (target, all) => {
|
9
|
-
__markAsModule(target);
|
10
7
|
for (var name in all)
|
11
8
|
__defProp(target, name, { get: all[name], enumerable: true });
|
12
9
|
};
|
13
|
-
var __reExport = (target, module2, desc) => {
|
10
|
+
var __reExport = (target, module2, copyDefault, desc) => {
|
14
11
|
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
15
12
|
for (let key of __getOwnPropNames(module2))
|
16
|
-
if (!__hasOwnProp.call(target, key) && key !== "default")
|
13
|
+
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
17
14
|
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
18
15
|
}
|
19
16
|
return target;
|
20
17
|
};
|
21
|
-
var
|
22
|
-
return
|
23
|
-
};
|
24
|
-
|
18
|
+
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
19
|
+
return (module2, temp) => {
|
20
|
+
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
21
|
+
};
|
22
|
+
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
23
|
+
var stdin_exports = {};
|
24
|
+
__export(stdin_exports, {
|
25
25
|
withInstall: () => withInstall
|
26
26
|
});
|
27
|
-
var import_format =
|
27
|
+
var import_format = require("./format");
|
28
28
|
function withInstall(options) {
|
29
29
|
options.install = (app) => {
|
30
30
|
const { name } = options;
|
@@ -33,3 +33,4 @@ function withInstall(options) {
|
|
33
33
|
};
|
34
34
|
return options;
|
35
35
|
}
|
36
|
+
module.exports = __toCommonJS(stdin_exports);
|
package/lib/vant.cjs.js
CHANGED
@@ -262,7 +262,7 @@ var stdin_default$1D = {
|
|
262
262
|
loosing: "\u91CA\u653E\u5373\u53EF\u5237\u65B0..."
|
263
263
|
},
|
264
264
|
vanSubmitBar: {
|
265
|
-
label: "\u5408\u8BA1
|
265
|
+
label: "\u5408\u8BA1:"
|
266
266
|
},
|
267
267
|
vanCoupon: {
|
268
268
|
unlimited: "\u65E0\u95E8\u69DB",
|
@@ -1129,6 +1129,7 @@ const popupProps$2 = extend({}, popupSharedProps, {
|
|
1129
1129
|
iconPrefix: String,
|
1130
1130
|
closeOnPopstate: Boolean,
|
1131
1131
|
closeIconPosition: makeStringProp("top-right"),
|
1132
|
+
safeAreaInsetTop: Boolean,
|
1132
1133
|
safeAreaInsetBottom: Boolean
|
1133
1134
|
});
|
1134
1135
|
const [name$1l, bem$1h] = createNamespace("popup");
|
@@ -1137,7 +1138,7 @@ var stdin_default$1s = vue.defineComponent({
|
|
1137
1138
|
name: name$1l,
|
1138
1139
|
inheritAttrs: false,
|
1139
1140
|
props: popupProps$2,
|
1140
|
-
emits: ["open", "close", "opened", "closed", "update:show", "click-overlay", "click-close-icon"],
|
1141
|
+
emits: ["open", "close", "opened", "closed", "keydown", "update:show", "click-overlay", "click-close-icon"],
|
1141
1142
|
setup(props, {
|
1142
1143
|
emit,
|
1143
1144
|
attrs,
|
@@ -1217,11 +1218,13 @@ var stdin_default$1s = vue.defineComponent({
|
|
1217
1218
|
};
|
1218
1219
|
const onOpened = () => emit("opened");
|
1219
1220
|
const onClosed = () => emit("closed");
|
1221
|
+
const onKeydown = (event) => emit("keydown", event);
|
1220
1222
|
const renderPopup = lazyRender(() => {
|
1221
1223
|
var _a;
|
1222
1224
|
const {
|
1223
1225
|
round,
|
1224
1226
|
position,
|
1227
|
+
safeAreaInsetTop,
|
1225
1228
|
safeAreaInsetBottom
|
1226
1229
|
} = props;
|
1227
1230
|
return vue.withDirectives(vue.createVNode("div", vue.mergeProps({
|
@@ -1231,8 +1234,10 @@ var stdin_default$1s = vue.defineComponent({
|
|
1231
1234
|
round,
|
1232
1235
|
[position]: position
|
1233
1236
|
}), {
|
1237
|
+
"van-safe-area-top": safeAreaInsetTop,
|
1234
1238
|
"van-safe-area-bottom": safeAreaInsetBottom
|
1235
|
-
}]
|
1239
|
+
}],
|
1240
|
+
"onKeydown": onKeydown
|
1236
1241
|
}, attrs), [(_a = slots.default) == null ? void 0 : _a.call(slots), renderCloseIcon()]), [[vue.vShow, props.show]]);
|
1237
1242
|
});
|
1238
1243
|
const renderTransition = () => {
|
@@ -1254,6 +1259,12 @@ var stdin_default$1s = vue.defineComponent({
|
|
1254
1259
|
vue.watch(() => props.show, (show) => {
|
1255
1260
|
if (show && !opened) {
|
1256
1261
|
open();
|
1262
|
+
if (attrs.tabindex === 0) {
|
1263
|
+
vue.nextTick(() => {
|
1264
|
+
var _a;
|
1265
|
+
(_a = popupRef.value) == null ? void 0 : _a.focus();
|
1266
|
+
});
|
1267
|
+
}
|
1257
1268
|
}
|
1258
1269
|
if (!show && opened) {
|
1259
1270
|
opened = false;
|
@@ -2169,7 +2180,9 @@ var stdin_default$1o = vue.defineComponent({
|
|
2169
2180
|
vue.watch(() => props.areaList, setValues, {
|
2170
2181
|
deep: true
|
2171
2182
|
});
|
2172
|
-
vue.watch(() => props.columnsNum, () =>
|
2183
|
+
vue.watch(() => props.columnsNum, () => {
|
2184
|
+
vue.nextTick(setValues);
|
2185
|
+
});
|
2173
2186
|
useExpose({
|
2174
2187
|
reset,
|
2175
2188
|
getArea,
|
@@ -2467,7 +2480,8 @@ function runRuleValidator(value, rule) {
|
|
2467
2480
|
return new Promise((resolve) => {
|
2468
2481
|
const returnVal = rule.validator(value, rule);
|
2469
2482
|
if (isPromise(returnVal)) {
|
2470
|
-
|
2483
|
+
returnVal.then(resolve);
|
2484
|
+
return;
|
2471
2485
|
}
|
2472
2486
|
resolve(returnVal);
|
2473
2487
|
});
|
@@ -3005,7 +3019,7 @@ function lockClick(lock) {
|
|
3005
3019
|
}
|
3006
3020
|
}
|
3007
3021
|
const [name$1d, bem$19] = createNamespace("toast");
|
3008
|
-
const popupInheritProps = ["show", "overlay", "transition", "overlayClass", "overlayStyle", "closeOnClickOverlay"];
|
3022
|
+
const popupInheritProps = ["show", "overlay", "teleport", "transition", "overlayClass", "overlayStyle", "closeOnClickOverlay"];
|
3009
3023
|
const toastProps = {
|
3010
3024
|
icon: String,
|
3011
3025
|
show: Boolean,
|
@@ -3015,6 +3029,7 @@ const toastProps = {
|
|
3015
3029
|
iconSize: numericProp,
|
3016
3030
|
duration: makeNumberProp(2e3),
|
3017
3031
|
position: makeStringProp("middle"),
|
3032
|
+
teleport: [String, Object],
|
3018
3033
|
className: unknownProp,
|
3019
3034
|
iconPrefix: String,
|
3020
3035
|
transition: makeStringProp("van-fade"),
|
@@ -3080,6 +3095,7 @@ var stdin_default$1k = vue.defineComponent({
|
|
3080
3095
|
} = props;
|
3081
3096
|
if (isDef(message) && message !== "") {
|
3082
3097
|
return type === "html" ? vue.createVNode("div", {
|
3098
|
+
"key": 0,
|
3083
3099
|
"class": bem$19("text"),
|
3084
3100
|
"innerHTML": String(message)
|
3085
3101
|
}, null) : vue.createVNode("div", {
|
@@ -4603,6 +4619,7 @@ const calendarProps = {
|
|
4603
4619
|
showRangePrompt: truthProp,
|
4604
4620
|
confirmDisabledText: String,
|
4605
4621
|
closeOnClickOverlay: truthProp,
|
4622
|
+
safeAreaInsetTop: Boolean,
|
4606
4623
|
safeAreaInsetBottom: truthProp,
|
4607
4624
|
minDate: {
|
4608
4625
|
type: Date,
|
@@ -4951,6 +4968,7 @@ var stdin_default$17 = vue.defineComponent({
|
|
4951
4968
|
"closeable": props.showTitle || props.showSubtitle,
|
4952
4969
|
"teleport": props.teleport,
|
4953
4970
|
"closeOnPopstate": props.closeOnPopstate,
|
4971
|
+
"safeAreaInsetTop": props.safeAreaInsetTop,
|
4954
4972
|
"closeOnClickOverlay": props.closeOnClickOverlay,
|
4955
4973
|
"onUpdate:show": updateShow
|
4956
4974
|
}, {
|
@@ -7123,7 +7141,8 @@ const collapseItemProps = extend({}, cellSharedProps, {
|
|
7123
7141
|
name: numericProp,
|
7124
7142
|
isLink: truthProp,
|
7125
7143
|
disabled: Boolean,
|
7126
|
-
readonly: Boolean
|
7144
|
+
readonly: Boolean,
|
7145
|
+
lazyRender: truthProp
|
7127
7146
|
});
|
7128
7147
|
var stdin_default$R = vue.defineComponent({
|
7129
7148
|
name: name$L,
|
@@ -7146,7 +7165,7 @@ var stdin_default$R = vue.defineComponent({
|
|
7146
7165
|
});
|
7147
7166
|
const expanded = vue.computed(() => parent.isExpanded(name2.value));
|
7148
7167
|
const show = vue.ref(expanded.value);
|
7149
|
-
const lazyRender = useLazyRender(show);
|
7168
|
+
const lazyRender = useLazyRender(() => show.value || !props.lazyRender);
|
7150
7169
|
const onTransitionEnd = () => {
|
7151
7170
|
if (!expanded.value) {
|
7152
7171
|
show.value = false;
|
@@ -8245,11 +8264,12 @@ const popupInheritKeys$1 = [...popupSharedPropKeys, "transition", "closeOnPopsta
|
|
8245
8264
|
var stdin_default$G = vue.defineComponent({
|
8246
8265
|
name: name$A,
|
8247
8266
|
props: dialogProps,
|
8248
|
-
emits: ["confirm", "cancel", "update:show"],
|
8267
|
+
emits: ["confirm", "cancel", "keydown", "update:show"],
|
8249
8268
|
setup(props, {
|
8250
8269
|
emit,
|
8251
8270
|
slots
|
8252
8271
|
}) {
|
8272
|
+
const root = vue.ref();
|
8253
8273
|
const loading = vue.reactive({
|
8254
8274
|
confirm: false,
|
8255
8275
|
cancel: false
|
@@ -8283,6 +8303,18 @@ var stdin_default$G = vue.defineComponent({
|
|
8283
8303
|
};
|
8284
8304
|
const onCancel = getActionHandler("cancel");
|
8285
8305
|
const onConfirm = getActionHandler("confirm");
|
8306
|
+
const onKeydown = vue.withKeys((event) => {
|
8307
|
+
var _a, _b;
|
8308
|
+
if (event.target !== ((_b = (_a = root.value) == null ? void 0 : _a.popupRef) == null ? void 0 : _b.value)) {
|
8309
|
+
return;
|
8310
|
+
}
|
8311
|
+
const onEventType = {
|
8312
|
+
Enter: props.showConfirmButton ? onConfirm : noop,
|
8313
|
+
Escape: props.showCancelButton ? onCancel : noop
|
8314
|
+
};
|
8315
|
+
onEventType[event.key]();
|
8316
|
+
emit("keydown", event);
|
8317
|
+
}, ["enter", "esc"]);
|
8286
8318
|
const renderTitle = () => {
|
8287
8319
|
const title = slots.title ? slots.title() : props.title;
|
8288
8320
|
if (title) {
|
@@ -8392,12 +8424,15 @@ var stdin_default$G = vue.defineComponent({
|
|
8392
8424
|
className
|
8393
8425
|
} = props;
|
8394
8426
|
return vue.createVNode(Popup, vue.mergeProps({
|
8427
|
+
"ref": root,
|
8395
8428
|
"role": "dialog",
|
8396
8429
|
"class": [bem$B([theme]), className],
|
8397
8430
|
"style": {
|
8398
8431
|
width: addUnit(width)
|
8399
8432
|
},
|
8433
|
+
"tabindex": 0,
|
8400
8434
|
"aria-labelledby": title || message,
|
8435
|
+
"onKeydown": onKeydown,
|
8401
8436
|
"onUpdate:show": updateShow
|
8402
8437
|
}, pick(props, popupInheritKeys$1)), {
|
8403
8438
|
default: () => [renderTitle(), renderContent(), renderFooter()]
|
@@ -9661,7 +9696,9 @@ var stdin_default$x = vue.defineComponent({
|
|
9661
9696
|
});
|
9662
9697
|
}
|
9663
9698
|
};
|
9664
|
-
const init = () =>
|
9699
|
+
const init = () => {
|
9700
|
+
vue.nextTick(onScroll);
|
9701
|
+
};
|
9665
9702
|
use.useEventListener("scroll", onScroll, {
|
9666
9703
|
target: scrollParent
|
9667
9704
|
});
|
@@ -10019,10 +10056,10 @@ var stdin_default$u = vue.defineComponent({
|
|
10019
10056
|
"ref": navBarRef,
|
10020
10057
|
"style": style,
|
10021
10058
|
"class": [bem$p({
|
10022
|
-
fixed
|
10023
|
-
"safe-area-inset-top": props.safeAreaInsetTop
|
10059
|
+
fixed
|
10024
10060
|
}), {
|
10025
|
-
[BORDER_BOTTOM]: border
|
10061
|
+
[BORDER_BOTTOM]: border,
|
10062
|
+
"van-safe-area-top": props.safeAreaInsetTop
|
10026
10063
|
}]
|
10027
10064
|
}, [vue.createVNode("div", {
|
10028
10065
|
"class": bem$p("content")
|
@@ -11743,9 +11780,11 @@ const skeletonProps = {
|
|
11743
11780
|
};
|
11744
11781
|
var stdin_default$f = vue.defineComponent({
|
11745
11782
|
name: name$a,
|
11783
|
+
inheritAttrs: false,
|
11746
11784
|
props: skeletonProps,
|
11747
11785
|
setup(props, {
|
11748
|
-
slots
|
11786
|
+
slots,
|
11787
|
+
attrs
|
11749
11788
|
}) {
|
11750
11789
|
const renderAvatar = () => {
|
11751
11790
|
if (props.avatar) {
|
@@ -11788,12 +11827,12 @@ var stdin_default$f = vue.defineComponent({
|
|
11788
11827
|
if (!props.loading) {
|
11789
11828
|
return (_a = slots.default) == null ? void 0 : _a.call(slots);
|
11790
11829
|
}
|
11791
|
-
return vue.createVNode("div", {
|
11830
|
+
return vue.createVNode("div", vue.mergeProps({
|
11792
11831
|
"class": bem$a({
|
11793
11832
|
animate: props.animate,
|
11794
11833
|
round: props.round
|
11795
11834
|
})
|
11796
|
-
}, [renderAvatar(), vue.createVNode("div", {
|
11835
|
+
}, attrs), [renderAvatar(), vue.createVNode("div", {
|
11797
11836
|
"class": bem$a("content")
|
11798
11837
|
}, [renderTitle(), renderRows()])]);
|
11799
11838
|
};
|
@@ -12684,7 +12723,7 @@ var stdin_default$9 = vue.defineComponent({
|
|
12684
12723
|
return vue.createVNode("div", {
|
12685
12724
|
"ref": root,
|
12686
12725
|
"class": bem$4(),
|
12687
|
-
"onClick": getClickHandler("cell"),
|
12726
|
+
"onClick": getClickHandler("cell", lockClick2),
|
12688
12727
|
"onTouchstart": onTouchStart,
|
12689
12728
|
"onTouchmove": onTouchMove,
|
12690
12729
|
"onTouchend": onTouchEnd,
|
@@ -14231,7 +14270,7 @@ const Lazyload = {
|
|
14231
14270
|
});
|
14232
14271
|
}
|
14233
14272
|
};
|
14234
|
-
const version = "3.4.
|
14273
|
+
const version = "3.4.6";
|
14235
14274
|
function install(app) {
|
14236
14275
|
const components = [
|
14237
14276
|
ActionBar,
|