vant 3.2.3 → 3.2.4

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.
Files changed (130) hide show
  1. package/changelog.generated.md +90 -45
  2. package/es/address-edit/index.d.ts +2 -0
  3. package/es/area/index.d.ts +2 -0
  4. package/es/calendar/index.d.ts +2 -0
  5. package/es/checkbox/Checker.js +1 -1
  6. package/es/checkbox/index.d.ts +2 -0
  7. package/es/checkbox-group/index.d.ts +2 -0
  8. package/es/collapse-item/CollapseItem.js +3 -1
  9. package/es/collapse-item/index.d.ts +2 -0
  10. package/es/count-down/CountDown.d.ts +2 -10
  11. package/es/count-down/index.d.ts +3 -1
  12. package/es/count-down/types.d.ts +11 -0
  13. package/es/count-down/types.js +1 -0
  14. package/es/coupon-list/CouponList.js +4 -11
  15. package/es/coupon-list/index.css +1 -1
  16. package/es/coupon-list/index.less +6 -1
  17. package/es/datetime-picker/index.d.ts +2 -0
  18. package/es/dialog/Dialog.d.ts +1 -4
  19. package/es/dialog/Dialog.js +2 -1
  20. package/es/dialog/function-call.d.ts +12 -37
  21. package/es/dialog/index.d.ts +2 -3
  22. package/es/dialog/types.d.ts +36 -0
  23. package/es/dialog/types.js +1 -0
  24. package/es/dropdown-item/index.d.ts +2 -0
  25. package/es/dropdown-menu/index.d.ts +2 -0
  26. package/es/field/Field.d.ts +8 -6
  27. package/es/field/Field.js +2 -2
  28. package/es/field/index.d.ts +6 -4
  29. package/es/form/index.d.ts +2 -0
  30. package/es/icon/index.css +1 -1
  31. package/es/image/Image.js +1 -2
  32. package/es/image-preview/index.d.ts +2 -0
  33. package/es/index-bar/index.d.ts +2 -0
  34. package/es/index.d.ts +1 -1
  35. package/es/index.js +1 -1
  36. package/es/list/index.d.ts +2 -0
  37. package/es/notice-bar/index.d.ts +2 -0
  38. package/es/notify/Notify.d.ts +1 -1
  39. package/es/notify/function-call.d.ts +4 -17
  40. package/es/notify/index.d.ts +2 -3
  41. package/es/notify/types.d.ts +20 -0
  42. package/es/notify/types.js +1 -0
  43. package/es/picker/index.d.ts +2 -0
  44. package/es/popover/Popover.d.ts +1 -0
  45. package/es/progress/index.d.ts +2 -0
  46. package/es/search/Search.d.ts +8 -0
  47. package/es/search/index.d.ts +8 -0
  48. package/es/submit-bar/index.css +1 -1
  49. package/es/submit-bar/index.less +1 -1
  50. package/es/swipe/index.d.ts +2 -0
  51. package/es/swipe-cell/index.d.ts +2 -0
  52. package/es/tabs/index.d.ts +2 -0
  53. package/es/tabs/utils.js +2 -4
  54. package/es/toast/Toast.d.ts +1 -2
  55. package/es/toast/Toast.js +2 -1
  56. package/es/toast/function-call.d.ts +2 -25
  57. package/es/toast/index.d.ts +2 -3
  58. package/es/toast/types.d.ts +32 -0
  59. package/es/toast/types.js +1 -0
  60. package/es/uploader/index.css +1 -1
  61. package/es/uploader/index.d.ts +2 -0
  62. package/es/uploader/index.less +0 -1
  63. package/lib/address-edit/index.d.ts +2 -0
  64. package/lib/area/index.d.ts +2 -0
  65. package/lib/calendar/index.d.ts +2 -0
  66. package/lib/checkbox/Checker.js +1 -1
  67. package/lib/checkbox/index.d.ts +2 -0
  68. package/lib/checkbox-group/index.d.ts +2 -0
  69. package/lib/collapse-item/CollapseItem.js +3 -1
  70. package/lib/collapse-item/index.d.ts +2 -0
  71. package/lib/count-down/CountDown.d.ts +2 -10
  72. package/lib/count-down/index.d.ts +3 -1
  73. package/lib/count-down/types.d.ts +11 -0
  74. package/lib/count-down/types.js +3 -0
  75. package/lib/coupon-list/CouponList.js +4 -12
  76. package/lib/coupon-list/index.css +1 -1
  77. package/lib/coupon-list/index.less +6 -1
  78. package/lib/datetime-picker/index.d.ts +2 -0
  79. package/lib/dialog/Dialog.d.ts +1 -4
  80. package/lib/dialog/function-call.d.ts +12 -37
  81. package/lib/dialog/index.d.ts +2 -3
  82. package/lib/dialog/types.d.ts +36 -0
  83. package/lib/dialog/types.js +3 -0
  84. package/lib/dropdown-item/index.d.ts +2 -0
  85. package/lib/dropdown-menu/index.d.ts +2 -0
  86. package/lib/field/Field.d.ts +8 -6
  87. package/lib/field/Field.js +2 -2
  88. package/lib/field/index.d.ts +6 -4
  89. package/lib/form/index.d.ts +2 -0
  90. package/lib/icon/index.css +1 -1
  91. package/lib/image/Image.js +1 -2
  92. package/lib/image-preview/index.d.ts +2 -0
  93. package/lib/index-bar/index.d.ts +2 -0
  94. package/lib/index.css +1 -1
  95. package/lib/index.d.ts +1 -1
  96. package/lib/index.js +1 -1
  97. package/lib/list/index.d.ts +2 -0
  98. package/lib/notice-bar/index.d.ts +2 -0
  99. package/lib/notify/Notify.d.ts +1 -1
  100. package/lib/notify/function-call.d.ts +4 -17
  101. package/lib/notify/index.d.ts +2 -3
  102. package/lib/notify/types.d.ts +20 -0
  103. package/lib/notify/types.js +3 -0
  104. package/lib/picker/index.d.ts +2 -0
  105. package/lib/popover/Popover.d.ts +1 -0
  106. package/lib/progress/index.d.ts +2 -0
  107. package/lib/search/Search.d.ts +8 -0
  108. package/lib/search/index.d.ts +8 -0
  109. package/lib/submit-bar/index.css +1 -1
  110. package/lib/submit-bar/index.less +1 -1
  111. package/lib/swipe/index.d.ts +2 -0
  112. package/lib/swipe-cell/index.d.ts +2 -0
  113. package/lib/tabs/index.d.ts +2 -0
  114. package/lib/tabs/utils.js +1 -4
  115. package/lib/toast/Toast.d.ts +1 -2
  116. package/lib/toast/function-call.d.ts +2 -25
  117. package/lib/toast/index.d.ts +2 -3
  118. package/lib/toast/types.d.ts +32 -0
  119. package/lib/toast/types.js +3 -0
  120. package/lib/uploader/index.css +1 -1
  121. package/lib/uploader/index.d.ts +2 -0
  122. package/lib/uploader/index.less +0 -1
  123. package/lib/vant.es.js +225 -269
  124. package/lib/vant.es.min.js +1 -1
  125. package/lib/vant.js +227 -271
  126. package/lib/vant.min.js +1 -1
  127. package/package.json +9 -9
  128. package/vetur/attributes.json +743 -731
  129. package/vetur/tags.json +234 -231
  130. package/vetur/web-types.json +2263 -2233
package/lib/vant.js CHANGED
@@ -1,5 +1,5 @@
1
- (function(global2, factory) {
2
- typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("vue")) : typeof define === "function" && define.amd ? define(["exports", "vue"], factory) : (global2 = typeof globalThis !== "undefined" ? globalThis : global2 || self, factory(global2.vant = {}, global2.Vue));
1
+ (function(global, factory) {
2
+ typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("vue")) : typeof define === "function" && define.amd ? define(["exports", "vue"], factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self, factory(global.vant = {}, global.Vue));
3
3
  })(this, function(exports2, vue) {
4
4
  "use strict";
5
5
  function noop$1() {
@@ -421,22 +421,13 @@
421
421
  return Math.round((num1 + num2) * cardinal) / cardinal;
422
422
  }
423
423
  var inBrowser$1 = typeof window !== "undefined";
424
- var root = inBrowser$1 ? window : global;
425
- var prev = Date.now();
426
- function rafPolyfill(fn) {
427
- var curr = Date.now();
428
- var ms = Math.max(0, 16 - (curr - prev));
429
- var id = setTimeout(fn, ms);
430
- prev = curr + ms;
431
- return id;
432
- }
433
424
  function raf(fn) {
434
- var requestAnimationFrame = root.requestAnimationFrame || rafPolyfill;
435
- return requestAnimationFrame.call(root, fn);
425
+ return inBrowser$1 ? requestAnimationFrame(fn) : -1;
436
426
  }
437
427
  function cancelRaf(id) {
438
- var cancelAnimationFrame = root.cancelAnimationFrame || root.clearTimeout;
439
- cancelAnimationFrame.call(root, id);
428
+ if (inBrowser$1) {
429
+ cancelAnimationFrame(id);
430
+ }
440
431
  }
441
432
  function doubleRaf(fn) {
442
433
  raf(() => raf(fn));
@@ -578,7 +569,7 @@
578
569
  return Math.floor(time1 / 1e3) === Math.floor(time2 / 1e3);
579
570
  }
580
571
  function useCountDown(options) {
581
- var rafId2;
572
+ var rafId;
582
573
  var endTime;
583
574
  var counting;
584
575
  var deactivated;
@@ -586,7 +577,7 @@
586
577
  var current = vue.computed(() => parseTime(remain.value));
587
578
  var pause = () => {
588
579
  counting = false;
589
- cancelRaf(rafId2);
580
+ cancelRaf(rafId);
590
581
  };
591
582
  var getCurrentRemain = () => Math.max(endTime - Date.now(), 0);
592
583
  var setRemain = (value) => {
@@ -598,7 +589,7 @@
598
589
  }
599
590
  };
600
591
  var microTick = () => {
601
- rafId2 = raf(() => {
592
+ rafId = raf(() => {
602
593
  if (counting) {
603
594
  setRemain(getCurrentRemain());
604
595
  if (remain.value > 0) {
@@ -608,7 +599,7 @@
608
599
  });
609
600
  };
610
601
  var macroTick = () => {
611
- rafId2 = raf(() => {
602
+ rafId = raf(() => {
612
603
  if (counting) {
613
604
  var remainRemain = getCurrentRemain();
614
605
  if (!isSameSecond(remainRemain, remain.value) || remainRemain === 0) {
@@ -763,9 +754,9 @@
763
754
  var ELEMENT_NODE_TYPE = 1;
764
755
  return node.tagName !== "HTML" && node.tagName !== "BODY" && node.nodeType === ELEMENT_NODE_TYPE;
765
756
  }
766
- function getScrollParent$1(el, root2 = defaultRoot) {
757
+ function getScrollParent$1(el, root = defaultRoot) {
767
758
  var node = el;
768
- while (node && node !== root2 && isElement$1(node)) {
759
+ while (node && node !== root && isElement$1(node)) {
769
760
  var {
770
761
  overflowY
771
762
  } = window.getComputedStyle(node);
@@ -774,13 +765,13 @@
774
765
  }
775
766
  node = node.parentNode;
776
767
  }
777
- return root2;
768
+ return root;
778
769
  }
779
- function useScrollParent(el, root2 = defaultRoot) {
770
+ function useScrollParent(el, root = defaultRoot) {
780
771
  var scrollParent2 = vue.ref();
781
772
  vue.onMounted(() => {
782
773
  if (el.value) {
783
- scrollParent2.value = getScrollParent$1(el.value, root2);
774
+ scrollParent2.value = getScrollParent$1(el.value, root);
784
775
  }
785
776
  });
786
777
  return scrollParent2;
@@ -1272,8 +1263,8 @@
1272
1263
  } = useParent(ACTION_BAR_KEY);
1273
1264
  var isFirst = vue.computed(() => {
1274
1265
  if (parent) {
1275
- var prev2 = parent.children[index2.value - 1];
1276
- return !(prev2 && "isButton" in prev2);
1266
+ var prev = parent.children[index2.value - 1];
1267
+ return !(prev && "isButton" in prev);
1277
1268
  }
1278
1269
  });
1279
1270
  var isLast = vue.computed(() => {
@@ -2868,6 +2859,7 @@
2868
2859
  var [name$1f, bem$1b] = createNamespace("field");
2869
2860
  var fieldSharedProps = {
2870
2861
  id: String,
2862
+ name: String,
2871
2863
  formatter: Function,
2872
2864
  leftIcon: String,
2873
2865
  rightIcon: String,
@@ -2876,6 +2868,7 @@
2876
2868
  maxlength: [Number, String],
2877
2869
  inputAlign: String,
2878
2870
  placeholder: String,
2871
+ autocomplete: String,
2879
2872
  errorMessage: String,
2880
2873
  error: {
2881
2874
  type: Boolean,
@@ -2908,13 +2901,11 @@
2908
2901
  };
2909
2902
  var props$p = extend({}, cellProps, fieldSharedProps, {
2910
2903
  rows: [Number, String],
2911
- name: String,
2912
2904
  rules: Array,
2913
2905
  autosize: [Boolean, Object],
2914
2906
  labelWidth: [Number, String],
2915
2907
  labelClass: unknownProp,
2916
2908
  labelAlign: String,
2917
- autocomplete: String,
2918
2909
  showWordLimit: Boolean,
2919
2910
  errorMessageAlign: String,
2920
2911
  type: {
@@ -3320,13 +3311,13 @@
3320
3311
  }
3321
3312
  function mountComponent(RootComponent) {
3322
3313
  var app = vue.createApp(RootComponent);
3323
- var root2 = document.createElement("div");
3324
- document.body.appendChild(root2);
3314
+ var root = document.createElement("div");
3315
+ document.body.appendChild(root);
3325
3316
  return {
3326
- instance: app.mount(root2),
3317
+ instance: app.mount(root),
3327
3318
  unmount() {
3328
3319
  app.unmount();
3329
- document.body.removeChild(root2);
3320
+ document.body.removeChild(root);
3330
3321
  }
3331
3322
  };
3332
3323
  }
@@ -4500,7 +4491,7 @@
4500
4491
  target
4501
4492
  } = event;
4502
4493
  var icon = iconRef.value;
4503
- var iconClicked = icon === target || icon.contains(target);
4494
+ var iconClicked = icon === target || (icon == null ? void 0 : icon.contains(target));
4504
4495
  if (!disabled.value && (iconClicked || !props2.labelDisabled)) {
4505
4496
  emit("toggle");
4506
4497
  }
@@ -5903,16 +5894,14 @@
5903
5894
  }
5904
5895
  });
5905
5896
  var Card = withInstall(_Card);
5906
- var rafId;
5907
5897
  function scrollLeftTo(scroller, to, duration) {
5908
- cancelRaf(rafId);
5909
5898
  var count = 0;
5910
5899
  var from = scroller.scrollLeft;
5911
5900
  var frames = duration === 0 ? 1 : Math.round(duration * 1e3 / 16);
5912
5901
  function animate() {
5913
5902
  scroller.scrollLeft += (to - from) / frames;
5914
5903
  if (++count < frames) {
5915
- rafId = raf(animate);
5904
+ raf(animate);
5916
5905
  }
5917
5906
  }
5918
5907
  animate();
@@ -5983,8 +5972,8 @@
5983
5972
  emit,
5984
5973
  slots
5985
5974
  }) {
5986
- var root2 = vue.ref();
5987
- var scrollParent2 = useScrollParent(root2);
5975
+ var root = vue.ref();
5976
+ var scrollParent2 = useScrollParent(root);
5988
5977
  var state = vue.reactive({
5989
5978
  fixed: false,
5990
5979
  width: 0,
@@ -6024,14 +6013,14 @@
6024
6013
  isFixed: state.fixed
6025
6014
  });
6026
6015
  var onScroll = () => {
6027
- if (!root2.value || isHidden(root2)) {
6016
+ if (!root.value || isHidden(root)) {
6028
6017
  return;
6029
6018
  }
6030
6019
  var {
6031
6020
  container,
6032
6021
  position
6033
6022
  } = props2;
6034
- var rootRect = useRect(root2);
6023
+ var rootRect = useRect(root);
6035
6024
  var scrollTop = getScrollTop(window);
6036
6025
  state.width = rootRect.width;
6037
6026
  state.height = rootRect.height;
@@ -6063,9 +6052,9 @@
6063
6052
  useEventListener("scroll", onScroll, {
6064
6053
  target: scrollParent2
6065
6054
  });
6066
- useVisibilityChange(root2, onScroll);
6055
+ useVisibilityChange(root, onScroll);
6067
6056
  return () => vue.createVNode("div", {
6068
- "ref": root2,
6057
+ "ref": root,
6069
6058
  "style": rootStyle.value
6070
6059
  }, [vue.createVNode("div", {
6071
6060
  "class": bem$Z({
@@ -6182,7 +6171,7 @@
6182
6171
  emit,
6183
6172
  slots
6184
6173
  }) {
6185
- var root2 = vue.ref();
6174
+ var root = vue.ref();
6186
6175
  var state = vue.reactive({
6187
6176
  rect: null,
6188
6177
  width: 0,
@@ -6291,7 +6280,7 @@
6291
6280
  });
6292
6281
  }
6293
6282
  };
6294
- var prev2 = () => {
6283
+ var prev = () => {
6295
6284
  correctPosition();
6296
6285
  touch.reset();
6297
6286
  doubleRaf(() => {
@@ -6325,14 +6314,14 @@
6325
6314
  }
6326
6315
  };
6327
6316
  var initialize = (active = +props2.initialSwipe) => {
6328
- if (!root2.value) {
6317
+ if (!root.value) {
6329
6318
  return;
6330
6319
  }
6331
- if (!isHidden(root2)) {
6320
+ if (!isHidden(root)) {
6332
6321
  var _props$width, _props$height;
6333
6322
  var rect = {
6334
- width: root2.value.offsetWidth,
6335
- height: root2.value.offsetHeight
6323
+ width: root.value.offsetWidth,
6324
+ height: root.value.offsetHeight
6336
6325
  };
6337
6326
  state.rect = rect;
6338
6327
  state.width = +((_props$width = props2.width) != null ? _props$width : rect.width);
@@ -6447,7 +6436,7 @@
6447
6436
  }
6448
6437
  };
6449
6438
  useExpose({
6450
- prev: prev2,
6439
+ prev,
6451
6440
  next,
6452
6441
  state,
6453
6442
  resize,
@@ -6476,7 +6465,7 @@
6476
6465
  vue.onDeactivated(stopAutoplay);
6477
6466
  vue.onBeforeUnmount(stopAutoplay);
6478
6467
  return () => vue.createVNode("div", {
6479
- "ref": root2,
6468
+ "ref": root,
6480
6469
  "class": bem$X()
6481
6470
  }, [vue.createVNode("div", {
6482
6471
  "style": trackStyle.value,
@@ -6605,11 +6594,11 @@
6605
6594
  var tabHeight;
6606
6595
  var lockScroll;
6607
6596
  var stickyFixed;
6608
- var root2 = vue.ref();
6597
+ var root = vue.ref();
6609
6598
  var navRef = vue.ref();
6610
6599
  var wrapRef = vue.ref();
6611
6600
  var windowSize = useWindowSize();
6612
- var scroller = useScrollParent(root2);
6601
+ var scroller = useScrollParent(root);
6613
6602
  var [titleRefs, setTitleRefs] = useRefs();
6614
6603
  var {
6615
6604
  children,
@@ -6657,7 +6646,7 @@
6657
6646
  var shouldAnimate = state.inited;
6658
6647
  vue.nextTick(() => {
6659
6648
  var titles = titleRefs.value;
6660
- if (!titles || !titles[state.currentIndex] || props2.type !== "line" || isHidden(root2.value)) {
6649
+ if (!titles || !titles[state.currentIndex] || props2.type !== "line" || isHidden(root.value)) {
6661
6650
  return;
6662
6651
  }
6663
6652
  var title = titles[state.currentIndex].$el;
@@ -6835,7 +6824,7 @@
6835
6824
  scrollIntoView();
6836
6825
  setLine();
6837
6826
  if (stickyFixed && !props2.scrollspy) {
6838
- setRootScrollTop(Math.ceil(getElementTop(root2.value) - offsetTopPx.value));
6827
+ setRootScrollTop(Math.ceil(getElementTop(root.value) - offsetTopPx.value));
6839
6828
  }
6840
6829
  });
6841
6830
  var init = () => {
@@ -6867,10 +6856,10 @@
6867
6856
  return () => {
6868
6857
  var _slots$navBottom, _slots$navBottom2;
6869
6858
  return vue.createVNode("div", {
6870
- "ref": root2,
6859
+ "ref": root,
6871
6860
  "class": bem$V([props2.type])
6872
6861
  }, [props2.sticky ? vue.createVNode(Sticky, {
6873
- "container": root2.value,
6862
+ "container": root.value,
6874
6863
  "offsetTop": offsetTopPx.value,
6875
6864
  "onScroll": onStickyScroll
6876
6865
  }, {
@@ -7484,7 +7473,7 @@
7484
7473
  }
7485
7474
  });
7486
7475
  vue.watch(() => props2.rate, (rate) => {
7487
- var rafId2;
7476
+ var rafId;
7488
7477
  var startTime = Date.now();
7489
7478
  var startRate = props2.currentRate;
7490
7479
  var endRate = format(rate);
@@ -7495,14 +7484,14 @@
7495
7484
  var rate2 = progress * (endRate - startRate) + startRate;
7496
7485
  emit("update:currentRate", format(parseFloat(rate2.toFixed(1))));
7497
7486
  if (endRate > startRate ? rate2 < endRate : rate2 > endRate) {
7498
- rafId2 = raf(animate);
7487
+ rafId = raf(animate);
7499
7488
  }
7500
7489
  };
7501
7490
  if (props2.speed) {
7502
- if (rafId2) {
7503
- cancelRaf(rafId2);
7491
+ if (rafId) {
7492
+ cancelRaf(rafId);
7504
7493
  }
7505
- rafId2 = raf(animate);
7494
+ rafId = raf(animate);
7506
7495
  } else {
7507
7496
  emit("update:currentRate", endRate);
7508
7497
  }
@@ -7838,7 +7827,9 @@
7838
7827
  var contentHeight = offsetHeight + "px";
7839
7828
  wrapperRef.value.style.height = value ? "0" : contentHeight;
7840
7829
  doubleRaf(() => {
7841
- wrapperRef.value.style.height = value ? contentHeight : "0";
7830
+ if (wrapperRef.value) {
7831
+ wrapperRef.value.style.height = value ? contentHeight : "0";
7832
+ }
7842
7833
  });
7843
7834
  } else {
7844
7835
  onTransitionEnd();
@@ -8557,13 +8548,7 @@
8557
8548
  tab: 0,
8558
8549
  code: props2.code
8559
8550
  });
8560
- var {
8561
- height: windowHeight
8562
- } = useWindowSize();
8563
8551
  var buttonDisabled = vue.computed(() => !props2.exchangeButtonLoading && (props2.exchangeButtonDisabled || !state.code || state.code.length < props2.exchangeMinLength));
8564
- var listStyle = vue.computed(() => ({
8565
- height: windowHeight.value - (props2.showExchangeBar ? 140 : 94) + "px"
8566
- }));
8567
8552
  var onExchange = () => {
8568
8553
  emit("exchange", state.code);
8569
8554
  if (!props2.code) {
@@ -8617,9 +8602,9 @@
8617
8602
  }, {
8618
8603
  default: () => [vue.createVNode("div", {
8619
8604
  "class": bem$C("list", {
8605
+ "with-bar": props2.showExchangeBar,
8620
8606
  "with-bottom": props2.showCloseButton
8621
- }),
8622
- "style": listStyle.value
8607
+ })
8623
8608
  }, [coupons.map((coupon, index2) => vue.createVNode(Coupon, {
8624
8609
  "key": coupon.id,
8625
8610
  "ref": setCouponRefs(index2),
@@ -8642,9 +8627,9 @@
8642
8627
  }, {
8643
8628
  default: () => [vue.createVNode("div", {
8644
8629
  "class": bem$C("list", {
8630
+ "with-bar": props2.showExchangeBar,
8645
8631
  "with-bottom": props2.showCloseButton
8646
- }),
8647
- "style": listStyle.value
8632
+ })
8648
8633
  }, [disabledCoupons.map((coupon) => vue.createVNode(Coupon, {
8649
8634
  "disabled": true,
8650
8635
  "key": coupon.id,
@@ -9060,11 +9045,11 @@
9060
9045
  attrs,
9061
9046
  slots
9062
9047
  }) {
9063
- var root2 = vue.ref();
9048
+ var root = vue.ref();
9064
9049
  useExpose({
9065
9050
  getPicker: () => {
9066
9051
  var _root$value;
9067
- return (_root$value = root2.value) == null ? void 0 : _root$value.getPicker();
9052
+ return (_root$value = root.value) == null ? void 0 : _root$value.getPicker();
9068
9053
  }
9069
9054
  });
9070
9055
  return () => {
@@ -9072,7 +9057,7 @@
9072
9057
  var Component = isTimePicker ? TimePicker : DatePicker;
9073
9058
  var inheritProps = pick(props2, isTimePicker ? timePickerProps : datePickerProps);
9074
9059
  return vue.createVNode(Component, vue.mergeProps({
9075
- "ref": root2,
9060
+ "ref": root,
9076
9061
  "class": bem$B()
9077
9062
  }, inheritProps, attrs), slots);
9078
9063
  };
@@ -9127,14 +9112,14 @@
9127
9112
  setup(props2, {
9128
9113
  slots
9129
9114
  }) {
9130
- var root2 = vue.ref();
9115
+ var root = vue.ref();
9131
9116
  var barRef = vue.ref();
9132
9117
  var offset2 = vue.ref(0);
9133
9118
  var {
9134
9119
  children,
9135
9120
  linkChildren
9136
9121
  } = useChildren(DROPDOWN_KEY);
9137
- var scrollParent2 = useScrollParent(root2);
9122
+ var scrollParent2 = useScrollParent(root);
9138
9123
  var opened = vue.computed(() => children.some((item) => item.state.showWrapper));
9139
9124
  var barStyle = vue.computed(() => {
9140
9125
  if (opened.value && isDef(props2.zIndex)) {
@@ -9212,12 +9197,12 @@
9212
9197
  props: props2,
9213
9198
  offset: offset2
9214
9199
  });
9215
- useClickAway(root2, onClickAway);
9200
+ useClickAway(root, onClickAway);
9216
9201
  useEventListener("scroll", onScroll, {
9217
9202
  target: scrollParent2
9218
9203
  });
9219
9204
  return () => vue.createVNode("div", {
9220
- "ref": root2,
9205
+ "ref": root,
9221
9206
  "class": bem$z()
9222
9207
  }, [vue.createVNode("div", {
9223
9208
  "ref": barRef,
@@ -10234,10 +10219,10 @@
10234
10219
  emit,
10235
10220
  slots
10236
10221
  }) {
10237
- var root2 = vue.ref();
10222
+ var root = vue.ref();
10238
10223
  var activeAnchor = vue.ref("");
10239
10224
  var touch = useTouch();
10240
- var scrollParent2 = useScrollParent(root2);
10225
+ var scrollParent2 = useScrollParent(root);
10241
10226
  var {
10242
10227
  children,
10243
10228
  linkChildren
@@ -10279,7 +10264,7 @@
10279
10264
  return -1;
10280
10265
  };
10281
10266
  var onScroll = () => {
10282
- if (isHidden(root2)) {
10267
+ if (isHidden(root)) {
10283
10268
  return;
10284
10269
  }
10285
10270
  var {
@@ -10393,7 +10378,7 @@
10393
10378
  scrollTo
10394
10379
  });
10395
10380
  return () => vue.createVNode("div", {
10396
- "ref": root2,
10381
+ "ref": root,
10397
10382
  "class": bem$s()
10398
10383
  }, [props2.teleport ? vue.createVNode(vue.Teleport, {
10399
10384
  "to": props2.teleport
@@ -10421,7 +10406,7 @@
10421
10406
  width: null,
10422
10407
  active: false
10423
10408
  });
10424
- var root2 = vue.ref();
10409
+ var root = vue.ref();
10425
10410
  var {
10426
10411
  parent
10427
10412
  } = useParent(INDEX_BAR_KEY);
@@ -10444,7 +10429,7 @@
10444
10429
  }
10445
10430
  });
10446
10431
  var getRect = (scrollParent2, scrollParentRect) => {
10447
- var rootRect = useRect(root2);
10432
+ var rootRect = useRect(root);
10448
10433
  state.rect.height = rootRect.height;
10449
10434
  if (scrollParent2 === window || scrollParent2 === document.body) {
10450
10435
  state.rect.top = rootRect.top + getRootScrollTop();
@@ -10460,7 +10445,7 @@
10460
10445
  return () => {
10461
10446
  var sticky = isSticky();
10462
10447
  return vue.createVNode("div", {
10463
- "ref": root2,
10448
+ "ref": root,
10464
10449
  "style": {
10465
10450
  height: sticky ? state.rect.height + "px" : void 0
10466
10451
  }
@@ -10477,21 +10462,8 @@
10477
10462
  });
10478
10463
  var IndexAnchor = withInstall(_IndexAnchor);
10479
10464
  var IndexBar = withInstall(_IndexBar);
10480
- var inBrowser = typeof window !== "undefined" && window !== null;
10481
- function checkIntersectionObserver() {
10482
- if (inBrowser && "IntersectionObserver" in window && "IntersectionObserverEntry" in window && "intersectionRatio" in window.IntersectionObserverEntry.prototype) {
10483
- if (!("isIntersecting" in window.IntersectionObserverEntry.prototype)) {
10484
- Object.defineProperty(window.IntersectionObserverEntry.prototype, "isIntersecting", {
10485
- get() {
10486
- return this.intersectionRatio > 0;
10487
- }
10488
- });
10489
- }
10490
- return true;
10491
- }
10492
- return false;
10493
- }
10494
- var hasIntersectionObserver = checkIntersectionObserver();
10465
+ var inBrowser = typeof window !== "undefined";
10466
+ var hasIntersectionObserver = inBrowser && "IntersectionObserver" in window && "IntersectionObserverEntry" in window && "intersectionRatio" in window.IntersectionObserverEntry.prototype;
10495
10467
  var modeType = {
10496
10468
  event: "event",
10497
10469
  observer: "observer"
@@ -10543,7 +10515,7 @@
10543
10515
  }
10544
10516
  return [tmpWidth, tmpSrc];
10545
10517
  });
10546
- result.sort(function(a, b) {
10518
+ result.sort((a, b) => {
10547
10519
  if (a[0] < b[0]) {
10548
10520
  return 1;
10549
10521
  }
@@ -10673,12 +10645,8 @@
10673
10645
  reject(e);
10674
10646
  };
10675
10647
  };
10676
- var style = (el, prop) => {
10677
- return typeof getComputedStyle !== "undefined" ? getComputedStyle(el, null).getPropertyValue(prop) : el.style[prop];
10678
- };
10679
- var overflow = (el) => {
10680
- return style(el, "overflow") + style(el, "overflow-y") + style(el, "overflow-x");
10681
- };
10648
+ var style = (el, prop) => typeof getComputedStyle !== "undefined" ? getComputedStyle(el, null).getPropertyValue(prop) : el.style[prop];
10649
+ var overflow = (el) => style(el, "overflow") + style(el, "overflow-y") + style(el, "overflow-x");
10682
10650
  var scrollParent = (el) => {
10683
10651
  if (!inBrowser)
10684
10652
  return;
@@ -10820,14 +10788,10 @@
10820
10788
  }, () => {
10821
10789
  cb();
10822
10790
  this.state.loading = false;
10823
- if (!this.options.silent)
10824
- console.warn("VueLazyload log: load failed with loading image(" + this.loading + ")");
10825
10791
  });
10826
10792
  }
10827
10793
  load(onFinish = noop) {
10828
10794
  if (this.attempt > this.options.attempt - 1 && this.state.error) {
10829
- if (!this.options.silent)
10830
- console.log("VueLazyload log: " + this.src + " tried too more than " + this.options.attempt + " times");
10831
10795
  onFinish();
10832
10796
  return;
10833
10797
  }
@@ -11221,8 +11185,6 @@
11221
11185
  error
11222
11186
  } = this.options;
11223
11187
  if (isObject(value)) {
11224
- if (!value.src && !this.options.silent)
11225
- console.error("Vue Lazyload warning: miss src with " + value);
11226
11188
  ({
11227
11189
  src
11228
11190
  } = value);
@@ -11237,55 +11199,53 @@
11237
11199
  }
11238
11200
  };
11239
11201
  }
11240
- var LazyComponent = (lazy) => {
11241
- return {
11242
- props: {
11243
- tag: {
11244
- type: String,
11245
- default: "div"
11246
- }
11247
- },
11248
- emits: ["show"],
11249
- render() {
11250
- return vue.h(this.tag, this.show && this.$slots.default ? this.$slots.default() : null);
11251
- },
11252
- data() {
11253
- return {
11254
- el: null,
11255
- state: {
11256
- loaded: false
11257
- },
11258
- rect: {},
11259
- show: false
11260
- };
11202
+ var LazyComponent = (lazy) => ({
11203
+ props: {
11204
+ tag: {
11205
+ type: String,
11206
+ default: "div"
11207
+ }
11208
+ },
11209
+ emits: ["show"],
11210
+ render() {
11211
+ return vue.h(this.tag, this.show && this.$slots.default ? this.$slots.default() : null);
11212
+ },
11213
+ data() {
11214
+ return {
11215
+ el: null,
11216
+ state: {
11217
+ loaded: false
11218
+ },
11219
+ rect: {},
11220
+ show: false
11221
+ };
11222
+ },
11223
+ mounted() {
11224
+ this.el = this.$el;
11225
+ lazy.addLazyBox(this);
11226
+ lazy.lazyLoadHandler();
11227
+ },
11228
+ beforeUnmount() {
11229
+ lazy.removeComponent(this);
11230
+ },
11231
+ methods: {
11232
+ getRect() {
11233
+ this.rect = this.$el.getBoundingClientRect();
11261
11234
  },
11262
- mounted() {
11263
- this.el = this.$el;
11264
- lazy.addLazyBox(this);
11265
- lazy.lazyLoadHandler();
11235
+ checkInView() {
11236
+ this.getRect();
11237
+ return inBrowser && this.rect.top < window.innerHeight * lazy.options.preLoad && this.rect.bottom > 0 && this.rect.left < window.innerWidth * lazy.options.preLoad && this.rect.right > 0;
11266
11238
  },
11267
- beforeUnmount() {
11268
- lazy.removeComponent(this);
11239
+ load() {
11240
+ this.show = true;
11241
+ this.state.loaded = true;
11242
+ this.$emit("show", this);
11269
11243
  },
11270
- methods: {
11271
- getRect() {
11272
- this.rect = this.$el.getBoundingClientRect();
11273
- },
11274
- checkInView() {
11275
- this.getRect();
11276
- return inBrowser && this.rect.top < window.innerHeight * lazy.options.preLoad && this.rect.bottom > 0 && this.rect.left < window.innerWidth * lazy.options.preLoad && this.rect.right > 0;
11277
- },
11278
- load() {
11279
- this.show = true;
11280
- this.state.loaded = true;
11281
- this.$emit("show", this);
11282
- },
11283
- destroy() {
11284
- return this.$destroy;
11285
- }
11244
+ destroy() {
11245
+ return this.$destroy;
11286
11246
  }
11287
- };
11288
- };
11247
+ }
11248
+ });
11289
11249
  var defaultOptions$1 = {
11290
11250
  selector: "img"
11291
11251
  };
@@ -11369,105 +11329,101 @@
11369
11329
  remove(this._queue, container);
11370
11330
  }
11371
11331
  }
11372
- var LazyImage = (lazyManager) => {
11373
- return {
11374
- props: {
11375
- src: [String, Object],
11376
- tag: {
11377
- type: String,
11378
- default: "img"
11379
- }
11380
- },
11381
- render(h) {
11382
- return h(this.tag, {
11383
- attrs: {
11384
- src: this.renderSrc
11385
- }
11386
- }, this.$slots.default);
11387
- },
11388
- data() {
11389
- return {
11390
- el: null,
11391
- options: {
11392
- src: "",
11393
- error: "",
11394
- loading: "",
11395
- attempt: lazyManager.options.attempt
11396
- },
11397
- state: {
11398
- loaded: false,
11399
- error: false,
11400
- attempt: 0
11401
- },
11402
- rect: {},
11403
- renderSrc: ""
11404
- };
11405
- },
11406
- watch: {
11407
- src() {
11408
- this.init();
11409
- lazyManager.addLazyBox(this);
11410
- lazyManager.lazyLoadHandler();
11332
+ var LazyImage = (lazyManager) => ({
11333
+ props: {
11334
+ src: [String, Object],
11335
+ tag: {
11336
+ type: String,
11337
+ default: "img"
11338
+ }
11339
+ },
11340
+ render(h) {
11341
+ return h(this.tag, {
11342
+ attrs: {
11343
+ src: this.renderSrc
11411
11344
  }
11412
- },
11413
- created() {
11345
+ }, this.$slots.default);
11346
+ },
11347
+ data() {
11348
+ return {
11349
+ el: null,
11350
+ options: {
11351
+ src: "",
11352
+ error: "",
11353
+ loading: "",
11354
+ attempt: lazyManager.options.attempt
11355
+ },
11356
+ state: {
11357
+ loaded: false,
11358
+ error: false,
11359
+ attempt: 0
11360
+ },
11361
+ rect: {},
11362
+ renderSrc: ""
11363
+ };
11364
+ },
11365
+ watch: {
11366
+ src() {
11414
11367
  this.init();
11415
- this.renderSrc = this.options.loading;
11416
- },
11417
- mounted() {
11418
- this.el = this.$el;
11419
11368
  lazyManager.addLazyBox(this);
11420
11369
  lazyManager.lazyLoadHandler();
11370
+ }
11371
+ },
11372
+ created() {
11373
+ this.init();
11374
+ this.renderSrc = this.options.loading;
11375
+ },
11376
+ mounted() {
11377
+ this.el = this.$el;
11378
+ lazyManager.addLazyBox(this);
11379
+ lazyManager.lazyLoadHandler();
11380
+ },
11381
+ beforeUnmount() {
11382
+ lazyManager.removeComponent(this);
11383
+ },
11384
+ methods: {
11385
+ init() {
11386
+ var {
11387
+ src,
11388
+ loading,
11389
+ error
11390
+ } = lazyManager._valueFormatter(this.src);
11391
+ this.state.loaded = false;
11392
+ this.options.src = src;
11393
+ this.options.error = error;
11394
+ this.options.loading = loading;
11395
+ this.renderSrc = this.options.loading;
11421
11396
  },
11422
- beforeUnmount() {
11423
- lazyManager.removeComponent(this);
11397
+ getRect() {
11398
+ this.rect = this.$el.getBoundingClientRect();
11424
11399
  },
11425
- methods: {
11426
- init() {
11427
- var {
11428
- src,
11429
- loading,
11430
- error
11431
- } = lazyManager._valueFormatter(this.src);
11432
- this.state.loaded = false;
11433
- this.options.src = src;
11434
- this.options.error = error;
11435
- this.options.loading = loading;
11436
- this.renderSrc = this.options.loading;
11437
- },
11438
- getRect() {
11439
- this.rect = this.$el.getBoundingClientRect();
11440
- },
11441
- checkInView() {
11442
- this.getRect();
11443
- return inBrowser && this.rect.top < window.innerHeight * lazyManager.options.preLoad && this.rect.bottom > 0 && this.rect.left < window.innerWidth * lazyManager.options.preLoad && this.rect.right > 0;
11444
- },
11445
- load(onFinish = noop) {
11446
- if (this.state.attempt > this.options.attempt - 1 && this.state.error) {
11447
- if (!lazyManager.options.silent)
11448
- console.log("VueLazyload log: " + this.options.src + " tried too more than " + this.options.attempt + " times");
11449
- onFinish();
11450
- return;
11451
- }
11452
- var {
11453
- src
11454
- } = this.options;
11455
- loadImageAsync({
11456
- src
11457
- }, ({
11458
- src: src2
11459
- }) => {
11460
- this.renderSrc = src2;
11461
- this.state.loaded = true;
11462
- }, () => {
11463
- this.state.attempt++;
11464
- this.renderSrc = this.options.error;
11465
- this.state.error = true;
11466
- });
11400
+ checkInView() {
11401
+ this.getRect();
11402
+ return inBrowser && this.rect.top < window.innerHeight * lazyManager.options.preLoad && this.rect.bottom > 0 && this.rect.left < window.innerWidth * lazyManager.options.preLoad && this.rect.right > 0;
11403
+ },
11404
+ load(onFinish = noop) {
11405
+ if (this.state.attempt > this.options.attempt - 1 && this.state.error) {
11406
+ onFinish();
11407
+ return;
11467
11408
  }
11409
+ var {
11410
+ src
11411
+ } = this.options;
11412
+ loadImageAsync({
11413
+ src
11414
+ }, ({
11415
+ src: src2
11416
+ }) => {
11417
+ this.renderSrc = src2;
11418
+ this.state.loaded = true;
11419
+ }, () => {
11420
+ this.state.attempt++;
11421
+ this.renderSrc = this.options.error;
11422
+ this.state.error = true;
11423
+ });
11468
11424
  }
11469
- };
11470
- };
11425
+ }
11426
+ });
11471
11427
  var Lazyload = {
11472
11428
  install(app, options = {}) {
11473
11429
  var LazyClass = Lazy();
@@ -11521,10 +11477,10 @@
11521
11477
  slots
11522
11478
  }) {
11523
11479
  var loading = vue.ref(false);
11524
- var root2 = vue.ref();
11480
+ var root = vue.ref();
11525
11481
  var placeholder = vue.ref();
11526
11482
  var tabStatus = useTabStatus();
11527
- var scrollParent2 = useScrollParent(root2);
11483
+ var scrollParent2 = useScrollParent(root);
11528
11484
  var check = () => {
11529
11485
  vue.nextTick(() => {
11530
11486
  if (loading.value || props2.finished || props2.error || (tabStatus == null ? void 0 : tabStatus.value) === false) {
@@ -11535,7 +11491,7 @@
11535
11491
  direction
11536
11492
  } = props2;
11537
11493
  var scrollParentRect = useRect(scrollParent2);
11538
- if (!scrollParentRect.height || isHidden(root2)) {
11494
+ if (!scrollParentRect.height || isHidden(root)) {
11539
11495
  return;
11540
11496
  }
11541
11497
  var isReachEdge = false;
@@ -11617,7 +11573,7 @@
11617
11573
  "class": bem$q("placeholder")
11618
11574
  }, null);
11619
11575
  return vue.createVNode("div", {
11620
- "ref": root2,
11576
+ "ref": root,
11621
11577
  "role": "feed",
11622
11578
  "class": bem$q(),
11623
11579
  "aria-busy": loading.value
@@ -12105,7 +12061,7 @@
12105
12061
  emit,
12106
12062
  slots
12107
12063
  }) {
12108
- var root2 = vue.ref();
12064
+ var root = vue.ref();
12109
12065
  var genBasicKeys = () => {
12110
12066
  var keys2 = Array(9).fill("").map((_2, i) => ({
12111
12067
  text: i + 1
@@ -12250,7 +12206,7 @@
12250
12206
  }
12251
12207
  });
12252
12208
  if (props2.hideOnClickOutside) {
12253
- useClickAway(root2, onBlur, {
12209
+ useClickAway(root, onBlur, {
12254
12210
  eventName: "touchstart"
12255
12211
  });
12256
12212
  }
@@ -12260,7 +12216,7 @@
12260
12216
  "name": props2.transition ? "van-slide-up" : ""
12261
12217
  }, {
12262
12218
  default: () => [vue.withDirectives(vue.createVNode("div", {
12263
- "ref": root2,
12219
+ "ref": root,
12264
12220
  "style": getZIndexStyle(props2.zIndex),
12265
12221
  "class": bem$l({
12266
12222
  unfit: !props2.safeAreaInsetBottom,
@@ -13497,8 +13453,8 @@
13497
13453
  slots
13498
13454
  }) {
13499
13455
  var reachTop;
13500
- var root2 = vue.ref();
13501
- var scrollParent2 = useScrollParent(root2);
13456
+ var root = vue.ref();
13457
+ var scrollParent2 = useScrollParent(root);
13502
13458
  var state = vue.reactive({
13503
13459
  status: "normal",
13504
13460
  distance: 0,
@@ -13632,7 +13588,7 @@
13632
13588
  transform: state.distance ? "translate3d(0," + state.distance + "px, 0)" : ""
13633
13589
  };
13634
13590
  return vue.createVNode("div", {
13635
- "ref": root2,
13591
+ "ref": root,
13636
13592
  "class": bem$g()
13637
13593
  }, [vue.createVNode("div", {
13638
13594
  "class": bem$g("track"),
@@ -14255,7 +14211,7 @@
14255
14211
  var buttonIndex;
14256
14212
  var startValue;
14257
14213
  var currentValue;
14258
- var root2 = vue.ref();
14214
+ var root = vue.ref();
14259
14215
  var dragStatus = vue.ref();
14260
14216
  var touch = useTouch();
14261
14217
  var scope = vue.computed(() => Number(props2.max) - Number(props2.min));
@@ -14344,7 +14300,7 @@
14344
14300
  vertical,
14345
14301
  modelValue
14346
14302
  } = props2;
14347
- var rect = useRect(root2);
14303
+ var rect = useRect(root);
14348
14304
  var getDelta = () => {
14349
14305
  if (vertical) {
14350
14306
  if (reverse) {
@@ -14394,7 +14350,7 @@
14394
14350
  preventDefault(event, true);
14395
14351
  touch.move(event);
14396
14352
  dragStatus.value = "dragging";
14397
- var rect = useRect(root2);
14353
+ var rect = useRect(root);
14398
14354
  var delta = props2.vertical ? touch.deltaY.value : touch.deltaX.value;
14399
14355
  var total = props2.vertical ? rect.height : rect.width;
14400
14356
  var diff = delta / total * scope.value;
@@ -14470,7 +14426,7 @@
14470
14426
  updateValue(props2.modelValue);
14471
14427
  useCustomFieldValue(() => props2.modelValue);
14472
14428
  return () => vue.createVNode("div", {
14473
- "ref": root2,
14429
+ "ref": root,
14474
14430
  "style": wrapperStyle.value,
14475
14431
  "class": bem$9({
14476
14432
  vertical: props2.vertical,
@@ -15010,7 +14966,7 @@
15010
14966
  var opened;
15011
14967
  var lockClick2;
15012
14968
  var startOffset;
15013
- var root2 = vue.ref();
14969
+ var root = vue.ref();
15014
14970
  var leftRef = vue.ref();
15015
14971
  var rightRef = vue.ref();
15016
14972
  var state = vue.reactive({
@@ -15116,7 +15072,7 @@
15116
15072
  open,
15117
15073
  close
15118
15074
  });
15119
- useClickAway(root2, () => onClick("outside"), {
15075
+ useClickAway(root, () => onClick("outside"), {
15120
15076
  eventName: "touchstart"
15121
15077
  });
15122
15078
  return () => {
@@ -15125,7 +15081,7 @@
15125
15081
  transitionDuration: state.dragging ? "0s" : ".6s"
15126
15082
  };
15127
15083
  return vue.createVNode("div", {
15128
- "ref": root2,
15084
+ "ref": root,
15129
15085
  "class": bem$4(),
15130
15086
  "onClick": getClickHandler("cell"),
15131
15087
  "onTouchstart": onTouchStart,
@@ -15168,11 +15124,11 @@
15168
15124
  emit,
15169
15125
  slots
15170
15126
  }) {
15171
- var root2 = vue.ref();
15127
+ var root = vue.ref();
15172
15128
  var {
15173
15129
  linkChildren
15174
15130
  } = useChildren(TABBAR_KEY);
15175
- var renderPlaceholder = usePlaceholder(root2, bem$3);
15131
+ var renderPlaceholder = usePlaceholder(root, bem$3);
15176
15132
  var enableSafeArea = () => {
15177
15133
  var _props$safeAreaInsetB;
15178
15134
  return (_props$safeAreaInsetB = props2.safeAreaInsetBottom) != null ? _props$safeAreaInsetB : props2.fixed;
@@ -15184,7 +15140,7 @@
15184
15140
  border
15185
15141
  } = props2;
15186
15142
  return vue.createVNode("div", {
15187
- "ref": root2,
15143
+ "ref": root,
15188
15144
  "style": getZIndexStyle(zIndex),
15189
15145
  "class": [bem$3({
15190
15146
  fixed
@@ -15855,7 +15811,7 @@
15855
15811
  }
15856
15812
  });
15857
15813
  var Uploader = withInstall(_Uploader);
15858
- var version = "3.2.3";
15814
+ var version = "3.2.4";
15859
15815
  function install(app) {
15860
15816
  var components = [ActionBar, ActionBarButton, ActionBarIcon, ActionSheet, AddressEdit, AddressList, Area, Badge, Button, Calendar, Card, Cascader, Cell, CellGroup, Checkbox, CheckboxGroup, Circle, Col, Collapse, CollapseItem, ConfigProvider, ContactCard, ContactEdit, ContactList, CountDown, Coupon, CouponCell, CouponList, DatetimePicker, Dialog, Divider, DropdownItem, DropdownMenu, Empty, Field, Form, Grid, GridItem, Icon, Image$1, ImagePreview, IndexAnchor, IndexBar, List, Loading, Locale, NavBar, NoticeBar, Notify, NumberKeyboard, Overlay, Pagination, PasswordInput, Picker, Popover, Popup, Progress, PullRefresh, Radio, RadioGroup, Rate, Row, Search, ShareSheet, Sidebar, SidebarItem, Skeleton, Slider, Step, Stepper, Steps, Sticky, SubmitBar, Swipe, SwipeCell, SwipeItem, Switch, Tab, Tabbar, TabbarItem, Tabs, Tag, Toast, TreeSelect, Uploader];
15861
15817
  components.forEach((item) => {