vant 3.6.0 → 3.6.1

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 (47) hide show
  1. package/changelog.generated.md +22 -43
  2. package/es/dropdown-menu/DropdownMenu.mjs +2 -1
  3. package/es/image-preview/ImagePreviewItem.mjs +1 -1
  4. package/es/index-bar/IndexBar.mjs +3 -2
  5. package/es/index.d.ts +1 -1
  6. package/es/index.mjs +1 -1
  7. package/es/list/List.mjs +2 -1
  8. package/es/number-keyboard/NumberKeyboard.mjs +1 -2
  9. package/es/number-keyboard/NumberKeyboardKey.mjs +2 -2
  10. package/es/password-input/PasswordInput.mjs +1 -1
  11. package/es/picker/PickerColumn.mjs +1 -1
  12. package/es/pull-refresh/PullRefresh.mjs +1 -4
  13. package/es/rate/Rate.mjs +1 -1
  14. package/es/slider/Slider.mjs +1 -1
  15. package/es/stepper/Stepper.mjs +1 -1
  16. package/es/sticky/Sticky.mjs +2 -1
  17. package/es/swipe/Swipe.mjs +1 -1
  18. package/es/swipe-cell/SwipeCell.mjs +1 -1
  19. package/es/tabs/Tabs.mjs +12 -2
  20. package/es/tabs/TabsContent.mjs +4 -0
  21. package/es/vue-tsx-shim.d.ts +7 -0
  22. package/lib/dropdown-menu/DropdownMenu.js +2 -1
  23. package/lib/image-preview/ImagePreviewItem.js +1 -1
  24. package/lib/index-bar/IndexBar.js +3 -2
  25. package/lib/index.d.ts +1 -1
  26. package/lib/index.js +1 -1
  27. package/lib/list/List.js +2 -1
  28. package/lib/number-keyboard/NumberKeyboard.js +1 -2
  29. package/lib/number-keyboard/NumberKeyboardKey.js +2 -2
  30. package/lib/password-input/PasswordInput.js +1 -1
  31. package/lib/picker/PickerColumn.js +1 -1
  32. package/lib/pull-refresh/PullRefresh.js +1 -4
  33. package/lib/rate/Rate.js +1 -1
  34. package/lib/slider/Slider.js +1 -1
  35. package/lib/stepper/Stepper.js +1 -1
  36. package/lib/sticky/Sticky.js +2 -1
  37. package/lib/swipe/Swipe.js +1 -1
  38. package/lib/swipe-cell/SwipeCell.js +1 -1
  39. package/lib/tabs/Tabs.js +12 -2
  40. package/lib/tabs/TabsContent.js +4 -0
  41. package/lib/vant.cjs.js +37 -24
  42. package/lib/vant.es.js +37 -24
  43. package/lib/vant.js +41 -25
  44. package/lib/vant.min.js +1 -1
  45. package/lib/vue-tsx-shim.d.ts +7 -0
  46. package/lib/web-types.json +171 -171
  47. package/package.json +1 -1
package/lib/vant.cjs.js CHANGED
@@ -1719,7 +1719,7 @@ var stdin_default$1r = vue.defineComponent({
1719
1719
  vue.watch(() => props.defaultIndex, (value) => setIndex(value));
1720
1720
  return () => vue.createVNode("div", {
1721
1721
  "class": [bem$1g(), props.className],
1722
- "onTouchstart": onTouchStart,
1722
+ "onTouchstartPassive": onTouchStart,
1723
1723
  "onTouchmove": onTouchMove,
1724
1724
  "onTouchend": onTouchEnd,
1725
1725
  "onTouchcancel": onTouchEnd
@@ -5488,7 +5488,8 @@ var stdin_default$15 = vue.defineComponent({
5488
5488
  };
5489
5489
  vue.watch(() => state.fixed, (value) => emit("change", value));
5490
5490
  use.useEventListener("scroll", onScroll, {
5491
- target: scrollParent
5491
+ target: scrollParent,
5492
+ passive: true
5492
5493
  });
5493
5494
  useVisibilityChange(root, onScroll);
5494
5495
  return () => {
@@ -5923,7 +5924,7 @@ var stdin_default$13 = vue.defineComponent({
5923
5924
  "class": bem$Y("track", {
5924
5925
  vertical: props.vertical
5925
5926
  }),
5926
- "onTouchstart": onTouchStart,
5927
+ "onTouchstartPassive": onTouchStart,
5927
5928
  "onTouchmove": onTouchMove,
5928
5929
  "onTouchend": onTouchEnd,
5929
5930
  "onTouchcancel": onTouchEnd
@@ -5982,6 +5983,9 @@ var stdin_default$12 = vue.defineComponent({
5982
5983
  vue.onMounted(() => {
5983
5984
  swipeToCurrentTab(props.currentIndex);
5984
5985
  });
5986
+ useExpose({
5987
+ swipeRef
5988
+ });
5985
5989
  return () => vue.createVNode("div", {
5986
5990
  "class": bem$X("content", {
5987
5991
  animated: props.animated || props.swipeable
@@ -6037,6 +6041,7 @@ var stdin_default$11 = vue.defineComponent({
6037
6041
  const root = vue.ref();
6038
6042
  const navRef = vue.ref();
6039
6043
  const wrapRef = vue.ref();
6044
+ const contentRef = vue.ref();
6040
6045
  const id = useId();
6041
6046
  const scroller = use.useScrollParent(root);
6042
6047
  const [titleRefs, setTitleRefs] = useRefs();
@@ -6287,15 +6292,23 @@ var stdin_default$11 = vue.defineComponent({
6287
6292
  });
6288
6293
  };
6289
6294
  const onRendered = (name2, title) => emit("rendered", name2, title);
6295
+ const resize = () => {
6296
+ setLine();
6297
+ vue.nextTick(() => {
6298
+ var _a2, _b2;
6299
+ return (_b2 = (_a2 = contentRef.value) == null ? void 0 : _a2.swipeRef.value) == null ? void 0 : _b2.resize();
6300
+ });
6301
+ };
6290
6302
  useExpose({
6291
- resize: setLine,
6303
+ resize,
6292
6304
  scrollTo
6293
6305
  });
6294
6306
  vue.onActivated(setLine);
6295
6307
  onPopupReopen(setLine);
6296
6308
  use.onMountedOrActivated(init);
6297
6309
  use.useEventListener("scroll", onScroll, {
6298
- target: scroller
6310
+ target: scroller,
6311
+ passive: true
6299
6312
  });
6300
6313
  linkChildren({
6301
6314
  id,
@@ -6320,6 +6333,7 @@ var stdin_default$11 = vue.defineComponent({
6320
6333
  return [renderHeader(), (_a3 = slots["nav-bottom"]) == null ? void 0 : _a3.call(slots)];
6321
6334
  }
6322
6335
  }) : [renderHeader(), (_a2 = slots["nav-bottom"]) == null ? void 0 : _a2.call(slots)], vue.createVNode(stdin_default$12, {
6336
+ "ref": contentRef,
6323
6337
  "count": children.length,
6324
6338
  "inited": state.inited,
6325
6339
  "animated": props.animated,
@@ -9140,7 +9154,8 @@ var stdin_default$E = vue.defineComponent({
9140
9154
  });
9141
9155
  use.useClickAway(root, onClickAway);
9142
9156
  use.useEventListener("scroll", onScroll, {
9143
- target: scrollParent
9157
+ target: scrollParent,
9158
+ passive: true
9144
9159
  });
9145
9160
  return () => {
9146
9161
  var _a;
@@ -9721,7 +9736,7 @@ var stdin_default$A = vue.defineComponent({
9721
9736
  };
9722
9737
  return vue.createVNode(SwipeItem, {
9723
9738
  "class": bem$v("swipe-item"),
9724
- "onTouchstart": onTouchStart,
9739
+ "onTouchstartPassive": onTouchStart,
9725
9740
  "onTouchmove": onTouchMove,
9726
9741
  "onTouchend": onTouchEnd,
9727
9742
  "onTouchcancel": onTouchEnd
@@ -10066,7 +10081,8 @@ var stdin_default$y = vue.defineComponent({
10066
10081
  vue.nextTick(onScroll);
10067
10082
  };
10068
10083
  use.useEventListener("scroll", onScroll, {
10069
- target: scrollParent
10084
+ target: scrollParent,
10085
+ passive: true
10070
10086
  });
10071
10087
  vue.onMounted(init);
10072
10088
  vue.watch(() => props.indexList, init);
@@ -10141,7 +10157,7 @@ var stdin_default$y = vue.defineComponent({
10141
10157
  "class": bem$t("sidebar"),
10142
10158
  "style": sidebarStyle.value,
10143
10159
  "onClick": onClickSidebar,
10144
- "onTouchstart": touch.start,
10160
+ "onTouchstartPassive": touch.start,
10145
10161
  "onTouchmove": onTouchMove
10146
10162
  }, [renderIndexes()]);
10147
10163
  useExpose({
@@ -10349,7 +10365,8 @@ var stdin_default$w = vue.defineComponent({
10349
10365
  check
10350
10366
  });
10351
10367
  use.useEventListener("scroll", check, {
10352
- target: scrollParent
10368
+ target: scrollParent,
10369
+ passive: true
10353
10370
  });
10354
10371
  return () => {
10355
10372
  var _a;
@@ -10779,8 +10796,8 @@ var stdin_default$s = vue.defineComponent({
10779
10796
  "class": bem$n("wrapper", {
10780
10797
  wider: props.wider
10781
10798
  }),
10782
- "onTouchstart": onTouchStart,
10783
- "onTouchmove": onTouchMove,
10799
+ "onTouchstartPassive": onTouchStart,
10800
+ "onTouchmovePassive": onTouchMove,
10784
10801
  "onTouchend": onTouchEnd,
10785
10802
  "onTouchcancel": onTouchEnd
10786
10803
  }, [vue.createVNode("div", {
@@ -10995,9 +11012,8 @@ var stdin_default$r = vue.defineComponent({
10995
11012
  unfit: !props.safeAreaInsetBottom,
10996
11013
  "with-title": !!Title
10997
11014
  }),
10998
- "onTouchstart": stopPropagation,
10999
11015
  "onAnimationend": onAnimationEnd,
11000
- "onWebkitAnimationEnd": onAnimationEnd
11016
+ "onTouchstartPassive": stopPropagation
11001
11017
  }, [Title, vue.createVNode("div", {
11002
11018
  "class": bem$m("body")
11003
11019
  }, [vue.createVNode("div", {
@@ -11220,7 +11236,7 @@ var stdin_default$p = vue.defineComponent({
11220
11236
  "class": [bem$k("security"), {
11221
11237
  [BORDER_SURROUND]: !props.gutter
11222
11238
  }],
11223
- "onTouchstart": onTouchStart
11239
+ "onTouchstartPassive": onTouchStart
11224
11240
  }, [renderPoints()]), info && vue.createVNode("div", {
11225
11241
  "class": bem$k(props.errorInfo ? "error-info" : "info")
11226
11242
  }, [info])]);
@@ -11626,10 +11642,6 @@ var stdin_default$m = vue.defineComponent({
11626
11642
  setStatus(0, false);
11627
11643
  }
11628
11644
  });
11629
- use.useEventListener("touchstart", onTouchStart, {
11630
- target: track,
11631
- passive: true
11632
- });
11633
11645
  use.useEventListener("touchmove", onTouchMove, {
11634
11646
  target: track
11635
11647
  });
@@ -11646,6 +11658,7 @@ var stdin_default$m = vue.defineComponent({
11646
11658
  "ref": track,
11647
11659
  "class": bem$h("track"),
11648
11660
  "style": trackStyle,
11661
+ "onTouchstartPassive": onTouchStart,
11649
11662
  "onTouchend": onTouchEnd,
11650
11663
  "onTouchcancel": onTouchEnd
11651
11664
  }, [vue.createVNode("div", {
@@ -11858,7 +11871,7 @@ var stdin_default$l = vue.defineComponent({
11858
11871
  "tabindex": props.disabled ? void 0 : 0,
11859
11872
  "aria-disabled": props.disabled,
11860
11873
  "aria-readonly": props.readonly,
11861
- "onTouchstart": onTouchStart,
11874
+ "onTouchstartPassive": onTouchStart,
11862
11875
  "onTouchmove": onTouchMove
11863
11876
  }, [list.value.map(renderStar)]);
11864
11877
  }
@@ -12499,7 +12512,7 @@ var stdin_default$f = vue.defineComponent({
12499
12512
  "aria-disabled": props.disabled || void 0,
12500
12513
  "aria-readonly": props.readonly || void 0,
12501
12514
  "aria-orientation": props.vertical ? "vertical" : "horizontal",
12502
- "onTouchstart": (event) => {
12515
+ "onTouchstartPassive": (event) => {
12503
12516
  if (typeof index === "number") {
12504
12517
  buttonIndex = index;
12505
12518
  }
@@ -12936,7 +12949,7 @@ var stdin_default$b = vue.defineComponent({
12936
12949
  actionType = type;
12937
12950
  onChange();
12938
12951
  },
12939
- onTouchstart: () => {
12952
+ onTouchstartPassive: () => {
12940
12953
  actionType = type;
12941
12954
  onTouchStart();
12942
12955
  },
@@ -13247,7 +13260,7 @@ var stdin_default$9 = vue.defineComponent({
13247
13260
  "ref": root,
13248
13261
  "class": bem$4(),
13249
13262
  "onClick": getClickHandler("cell", lockClick2),
13250
- "onTouchstart": onTouchStart,
13263
+ "onTouchstartPassive": onTouchStart,
13251
13264
  "onTouchmove": onTouchMove,
13252
13265
  "onTouchend": onTouchEnd,
13253
13266
  "onTouchcancel": onTouchEnd
@@ -14810,7 +14823,7 @@ const Lazyload = {
14810
14823
  });
14811
14824
  }
14812
14825
  };
14813
- const version = "3.6.0";
14826
+ const version = "3.6.1";
14814
14827
  function install(app) {
14815
14828
  const components = [
14816
14829
  ActionBar,
package/lib/vant.es.js CHANGED
@@ -1717,7 +1717,7 @@ var stdin_default$1r = defineComponent({
1717
1717
  watch(() => props.defaultIndex, (value) => setIndex(value));
1718
1718
  return () => createVNode("div", {
1719
1719
  "class": [bem$1g(), props.className],
1720
- "onTouchstart": onTouchStart,
1720
+ "onTouchstartPassive": onTouchStart,
1721
1721
  "onTouchmove": onTouchMove,
1722
1722
  "onTouchend": onTouchEnd,
1723
1723
  "onTouchcancel": onTouchEnd
@@ -5486,7 +5486,8 @@ var stdin_default$15 = defineComponent({
5486
5486
  };
5487
5487
  watch(() => state.fixed, (value) => emit("change", value));
5488
5488
  useEventListener("scroll", onScroll, {
5489
- target: scrollParent
5489
+ target: scrollParent,
5490
+ passive: true
5490
5491
  });
5491
5492
  useVisibilityChange(root, onScroll);
5492
5493
  return () => {
@@ -5921,7 +5922,7 @@ var stdin_default$13 = defineComponent({
5921
5922
  "class": bem$Y("track", {
5922
5923
  vertical: props.vertical
5923
5924
  }),
5924
- "onTouchstart": onTouchStart,
5925
+ "onTouchstartPassive": onTouchStart,
5925
5926
  "onTouchmove": onTouchMove,
5926
5927
  "onTouchend": onTouchEnd,
5927
5928
  "onTouchcancel": onTouchEnd
@@ -5980,6 +5981,9 @@ var stdin_default$12 = defineComponent({
5980
5981
  onMounted(() => {
5981
5982
  swipeToCurrentTab(props.currentIndex);
5982
5983
  });
5984
+ useExpose({
5985
+ swipeRef
5986
+ });
5983
5987
  return () => createVNode("div", {
5984
5988
  "class": bem$X("content", {
5985
5989
  animated: props.animated || props.swipeable
@@ -6035,6 +6039,7 @@ var stdin_default$11 = defineComponent({
6035
6039
  const root = ref();
6036
6040
  const navRef = ref();
6037
6041
  const wrapRef = ref();
6042
+ const contentRef = ref();
6038
6043
  const id = useId();
6039
6044
  const scroller = useScrollParent(root);
6040
6045
  const [titleRefs, setTitleRefs] = useRefs();
@@ -6285,15 +6290,23 @@ var stdin_default$11 = defineComponent({
6285
6290
  });
6286
6291
  };
6287
6292
  const onRendered = (name2, title) => emit("rendered", name2, title);
6293
+ const resize = () => {
6294
+ setLine();
6295
+ nextTick(() => {
6296
+ var _a2, _b2;
6297
+ return (_b2 = (_a2 = contentRef.value) == null ? void 0 : _a2.swipeRef.value) == null ? void 0 : _b2.resize();
6298
+ });
6299
+ };
6288
6300
  useExpose({
6289
- resize: setLine,
6301
+ resize,
6290
6302
  scrollTo
6291
6303
  });
6292
6304
  onActivated(setLine);
6293
6305
  onPopupReopen(setLine);
6294
6306
  onMountedOrActivated(init);
6295
6307
  useEventListener("scroll", onScroll, {
6296
- target: scroller
6308
+ target: scroller,
6309
+ passive: true
6297
6310
  });
6298
6311
  linkChildren({
6299
6312
  id,
@@ -6318,6 +6331,7 @@ var stdin_default$11 = defineComponent({
6318
6331
  return [renderHeader(), (_a3 = slots["nav-bottom"]) == null ? void 0 : _a3.call(slots)];
6319
6332
  }
6320
6333
  }) : [renderHeader(), (_a2 = slots["nav-bottom"]) == null ? void 0 : _a2.call(slots)], createVNode(stdin_default$12, {
6334
+ "ref": contentRef,
6321
6335
  "count": children.length,
6322
6336
  "inited": state.inited,
6323
6337
  "animated": props.animated,
@@ -9138,7 +9152,8 @@ var stdin_default$E = defineComponent({
9138
9152
  });
9139
9153
  useClickAway(root, onClickAway);
9140
9154
  useEventListener("scroll", onScroll, {
9141
- target: scrollParent
9155
+ target: scrollParent,
9156
+ passive: true
9142
9157
  });
9143
9158
  return () => {
9144
9159
  var _a;
@@ -9719,7 +9734,7 @@ var stdin_default$A = defineComponent({
9719
9734
  };
9720
9735
  return createVNode(SwipeItem, {
9721
9736
  "class": bem$v("swipe-item"),
9722
- "onTouchstart": onTouchStart,
9737
+ "onTouchstartPassive": onTouchStart,
9723
9738
  "onTouchmove": onTouchMove,
9724
9739
  "onTouchend": onTouchEnd,
9725
9740
  "onTouchcancel": onTouchEnd
@@ -10064,7 +10079,8 @@ var stdin_default$y = defineComponent({
10064
10079
  nextTick(onScroll);
10065
10080
  };
10066
10081
  useEventListener("scroll", onScroll, {
10067
- target: scrollParent
10082
+ target: scrollParent,
10083
+ passive: true
10068
10084
  });
10069
10085
  onMounted(init);
10070
10086
  watch(() => props.indexList, init);
@@ -10139,7 +10155,7 @@ var stdin_default$y = defineComponent({
10139
10155
  "class": bem$t("sidebar"),
10140
10156
  "style": sidebarStyle.value,
10141
10157
  "onClick": onClickSidebar,
10142
- "onTouchstart": touch.start,
10158
+ "onTouchstartPassive": touch.start,
10143
10159
  "onTouchmove": onTouchMove
10144
10160
  }, [renderIndexes()]);
10145
10161
  useExpose({
@@ -10347,7 +10363,8 @@ var stdin_default$w = defineComponent({
10347
10363
  check
10348
10364
  });
10349
10365
  useEventListener("scroll", check, {
10350
- target: scrollParent
10366
+ target: scrollParent,
10367
+ passive: true
10351
10368
  });
10352
10369
  return () => {
10353
10370
  var _a;
@@ -10777,8 +10794,8 @@ var stdin_default$s = defineComponent({
10777
10794
  "class": bem$n("wrapper", {
10778
10795
  wider: props.wider
10779
10796
  }),
10780
- "onTouchstart": onTouchStart,
10781
- "onTouchmove": onTouchMove,
10797
+ "onTouchstartPassive": onTouchStart,
10798
+ "onTouchmovePassive": onTouchMove,
10782
10799
  "onTouchend": onTouchEnd,
10783
10800
  "onTouchcancel": onTouchEnd
10784
10801
  }, [createVNode("div", {
@@ -10993,9 +11010,8 @@ var stdin_default$r = defineComponent({
10993
11010
  unfit: !props.safeAreaInsetBottom,
10994
11011
  "with-title": !!Title
10995
11012
  }),
10996
- "onTouchstart": stopPropagation,
10997
11013
  "onAnimationend": onAnimationEnd,
10998
- "onWebkitAnimationEnd": onAnimationEnd
11014
+ "onTouchstartPassive": stopPropagation
10999
11015
  }, [Title, createVNode("div", {
11000
11016
  "class": bem$m("body")
11001
11017
  }, [createVNode("div", {
@@ -11218,7 +11234,7 @@ var stdin_default$p = defineComponent({
11218
11234
  "class": [bem$k("security"), {
11219
11235
  [BORDER_SURROUND]: !props.gutter
11220
11236
  }],
11221
- "onTouchstart": onTouchStart
11237
+ "onTouchstartPassive": onTouchStart
11222
11238
  }, [renderPoints()]), info && createVNode("div", {
11223
11239
  "class": bem$k(props.errorInfo ? "error-info" : "info")
11224
11240
  }, [info])]);
@@ -11624,10 +11640,6 @@ var stdin_default$m = defineComponent({
11624
11640
  setStatus(0, false);
11625
11641
  }
11626
11642
  });
11627
- useEventListener("touchstart", onTouchStart, {
11628
- target: track,
11629
- passive: true
11630
- });
11631
11643
  useEventListener("touchmove", onTouchMove, {
11632
11644
  target: track
11633
11645
  });
@@ -11644,6 +11656,7 @@ var stdin_default$m = defineComponent({
11644
11656
  "ref": track,
11645
11657
  "class": bem$h("track"),
11646
11658
  "style": trackStyle,
11659
+ "onTouchstartPassive": onTouchStart,
11647
11660
  "onTouchend": onTouchEnd,
11648
11661
  "onTouchcancel": onTouchEnd
11649
11662
  }, [createVNode("div", {
@@ -11856,7 +11869,7 @@ var stdin_default$l = defineComponent({
11856
11869
  "tabindex": props.disabled ? void 0 : 0,
11857
11870
  "aria-disabled": props.disabled,
11858
11871
  "aria-readonly": props.readonly,
11859
- "onTouchstart": onTouchStart,
11872
+ "onTouchstartPassive": onTouchStart,
11860
11873
  "onTouchmove": onTouchMove
11861
11874
  }, [list.value.map(renderStar)]);
11862
11875
  }
@@ -12497,7 +12510,7 @@ var stdin_default$f = defineComponent({
12497
12510
  "aria-disabled": props.disabled || void 0,
12498
12511
  "aria-readonly": props.readonly || void 0,
12499
12512
  "aria-orientation": props.vertical ? "vertical" : "horizontal",
12500
- "onTouchstart": (event) => {
12513
+ "onTouchstartPassive": (event) => {
12501
12514
  if (typeof index === "number") {
12502
12515
  buttonIndex = index;
12503
12516
  }
@@ -12934,7 +12947,7 @@ var stdin_default$b = defineComponent({
12934
12947
  actionType = type;
12935
12948
  onChange();
12936
12949
  },
12937
- onTouchstart: () => {
12950
+ onTouchstartPassive: () => {
12938
12951
  actionType = type;
12939
12952
  onTouchStart();
12940
12953
  },
@@ -13245,7 +13258,7 @@ var stdin_default$9 = defineComponent({
13245
13258
  "ref": root,
13246
13259
  "class": bem$4(),
13247
13260
  "onClick": getClickHandler("cell", lockClick2),
13248
- "onTouchstart": onTouchStart,
13261
+ "onTouchstartPassive": onTouchStart,
13249
13262
  "onTouchmove": onTouchMove,
13250
13263
  "onTouchend": onTouchEnd,
13251
13264
  "onTouchcancel": onTouchEnd
@@ -14808,7 +14821,7 @@ const Lazyload = {
14808
14821
  });
14809
14822
  }
14810
14823
  };
14811
- const version = "3.6.0";
14824
+ const version = "3.6.1";
14812
14825
  function install(app) {
14813
14826
  const components = [
14814
14827
  ActionBar,
package/lib/vant.js CHANGED
@@ -300,7 +300,10 @@
300
300
  const add = (target2) => {
301
301
  const element = vue.unref(target2);
302
302
  if (element && !attached) {
303
- element.addEventListener(type, listener, { capture, passive: passive2 });
303
+ element.addEventListener(type, listener, {
304
+ capture,
305
+ passive: passive2
306
+ });
304
307
  attached = true;
305
308
  }
306
309
  };
@@ -2075,7 +2078,7 @@
2075
2078
  vue.watch(() => props.defaultIndex, (value) => setIndex(value));
2076
2079
  return () => vue.createVNode("div", {
2077
2080
  "class": [bem$1g(), props.className],
2078
- "onTouchstart": onTouchStart,
2081
+ "onTouchstartPassive": onTouchStart,
2079
2082
  "onTouchmove": onTouchMove,
2080
2083
  "onTouchend": onTouchEnd,
2081
2084
  "onTouchcancel": onTouchEnd
@@ -5833,7 +5836,8 @@
5833
5836
  };
5834
5837
  vue.watch(() => state.fixed, (value) => emit("change", value));
5835
5838
  useEventListener("scroll", onScroll, {
5836
- target: scrollParent
5839
+ target: scrollParent,
5840
+ passive: true
5837
5841
  });
5838
5842
  useVisibilityChange(root, onScroll);
5839
5843
  return () => {
@@ -6268,7 +6272,7 @@
6268
6272
  "class": bem$Y("track", {
6269
6273
  vertical: props.vertical
6270
6274
  }),
6271
- "onTouchstart": onTouchStart,
6275
+ "onTouchstartPassive": onTouchStart,
6272
6276
  "onTouchmove": onTouchMove,
6273
6277
  "onTouchend": onTouchEnd,
6274
6278
  "onTouchcancel": onTouchEnd
@@ -6327,6 +6331,9 @@
6327
6331
  vue.onMounted(() => {
6328
6332
  swipeToCurrentTab(props.currentIndex);
6329
6333
  });
6334
+ useExpose({
6335
+ swipeRef
6336
+ });
6330
6337
  return () => vue.createVNode("div", {
6331
6338
  "class": bem$X("content", {
6332
6339
  animated: props.animated || props.swipeable
@@ -6372,6 +6379,7 @@
6372
6379
  const root = vue.ref();
6373
6380
  const navRef = vue.ref();
6374
6381
  const wrapRef = vue.ref();
6382
+ const contentRef = vue.ref();
6375
6383
  const id = useId();
6376
6384
  const scroller = useScrollParent(root);
6377
6385
  const [titleRefs, setTitleRefs] = useRefs();
@@ -6622,15 +6630,23 @@
6622
6630
  });
6623
6631
  };
6624
6632
  const onRendered = (name2, title) => emit("rendered", name2, title);
6633
+ const resize = () => {
6634
+ setLine();
6635
+ vue.nextTick(() => {
6636
+ var _a2, _b2;
6637
+ return (_b2 = (_a2 = contentRef.value) == null ? void 0 : _a2.swipeRef.value) == null ? void 0 : _b2.resize();
6638
+ });
6639
+ };
6625
6640
  useExpose({
6626
- resize: setLine,
6641
+ resize,
6627
6642
  scrollTo
6628
6643
  });
6629
6644
  vue.onActivated(setLine);
6630
6645
  onPopupReopen(setLine);
6631
6646
  onMountedOrActivated(init);
6632
6647
  useEventListener("scroll", onScroll, {
6633
- target: scroller
6648
+ target: scroller,
6649
+ passive: true
6634
6650
  });
6635
6651
  linkChildren({
6636
6652
  id,
@@ -6655,6 +6671,7 @@
6655
6671
  return [renderHeader(), (_a3 = slots["nav-bottom"]) == null ? void 0 : _a3.call(slots)];
6656
6672
  }
6657
6673
  }) : [renderHeader(), (_a2 = slots["nav-bottom"]) == null ? void 0 : _a2.call(slots)], vue.createVNode(stdin_default$12, {
6674
+ "ref": contentRef,
6658
6675
  "count": children.length,
6659
6676
  "inited": state.inited,
6660
6677
  "animated": props.animated,
@@ -9452,7 +9469,8 @@
9452
9469
  });
9453
9470
  useClickAway(root, onClickAway);
9454
9471
  useEventListener("scroll", onScroll, {
9455
- target: scrollParent
9472
+ target: scrollParent,
9473
+ passive: true
9456
9474
  });
9457
9475
  return () => {
9458
9476
  var _a;
@@ -10027,7 +10045,7 @@
10027
10045
  };
10028
10046
  return vue.createVNode(SwipeItem, {
10029
10047
  "class": bem$v("swipe-item"),
10030
- "onTouchstart": onTouchStart,
10048
+ "onTouchstartPassive": onTouchStart,
10031
10049
  "onTouchmove": onTouchMove,
10032
10050
  "onTouchend": onTouchEnd,
10033
10051
  "onTouchcancel": onTouchEnd
@@ -10372,7 +10390,8 @@
10372
10390
  vue.nextTick(onScroll);
10373
10391
  };
10374
10392
  useEventListener("scroll", onScroll, {
10375
- target: scrollParent
10393
+ target: scrollParent,
10394
+ passive: true
10376
10395
  });
10377
10396
  vue.onMounted(init);
10378
10397
  vue.watch(() => props.indexList, init);
@@ -10447,7 +10466,7 @@
10447
10466
  "class": bem$t("sidebar"),
10448
10467
  "style": sidebarStyle.value,
10449
10468
  "onClick": onClickSidebar,
10450
- "onTouchstart": touch.start,
10469
+ "onTouchstartPassive": touch.start,
10451
10470
  "onTouchmove": onTouchMove
10452
10471
  }, [renderIndexes()]);
10453
10472
  useExpose({
@@ -10652,7 +10671,8 @@
10652
10671
  check
10653
10672
  });
10654
10673
  useEventListener("scroll", check, {
10655
- target: scrollParent
10674
+ target: scrollParent,
10675
+ passive: true
10656
10676
  });
10657
10677
  return () => {
10658
10678
  var _a;
@@ -11082,8 +11102,8 @@
11082
11102
  "class": bem$n("wrapper", {
11083
11103
  wider: props.wider
11084
11104
  }),
11085
- "onTouchstart": onTouchStart,
11086
- "onTouchmove": onTouchMove,
11105
+ "onTouchstartPassive": onTouchStart,
11106
+ "onTouchmovePassive": onTouchMove,
11087
11107
  "onTouchend": onTouchEnd,
11088
11108
  "onTouchcancel": onTouchEnd
11089
11109
  }, [vue.createVNode("div", {
@@ -11298,9 +11318,8 @@
11298
11318
  unfit: !props.safeAreaInsetBottom,
11299
11319
  "with-title": !!Title
11300
11320
  }),
11301
- "onTouchstart": stopPropagation,
11302
11321
  "onAnimationend": onAnimationEnd,
11303
- "onWebkitAnimationEnd": onAnimationEnd
11322
+ "onTouchstartPassive": stopPropagation
11304
11323
  }, [Title, vue.createVNode("div", {
11305
11324
  "class": bem$m("body")
11306
11325
  }, [vue.createVNode("div", {
@@ -11523,7 +11542,7 @@
11523
11542
  "class": [bem$k("security"), {
11524
11543
  [BORDER_SURROUND]: !props.gutter
11525
11544
  }],
11526
- "onTouchstart": onTouchStart
11545
+ "onTouchstartPassive": onTouchStart
11527
11546
  }, [renderPoints()]), info && vue.createVNode("div", {
11528
11547
  "class": bem$k(props.errorInfo ? "error-info" : "info")
11529
11548
  }, [info])]);
@@ -12823,10 +12842,6 @@
12823
12842
  setStatus(0, false);
12824
12843
  }
12825
12844
  });
12826
- useEventListener("touchstart", onTouchStart, {
12827
- target: track,
12828
- passive: true
12829
- });
12830
12845
  useEventListener("touchmove", onTouchMove, {
12831
12846
  target: track
12832
12847
  });
@@ -12843,6 +12858,7 @@
12843
12858
  "ref": track,
12844
12859
  "class": bem$h("track"),
12845
12860
  "style": trackStyle,
12861
+ "onTouchstartPassive": onTouchStart,
12846
12862
  "onTouchend": onTouchEnd,
12847
12863
  "onTouchcancel": onTouchEnd
12848
12864
  }, [vue.createVNode("div", {
@@ -13055,7 +13071,7 @@
13055
13071
  "tabindex": props.disabled ? void 0 : 0,
13056
13072
  "aria-disabled": props.disabled,
13057
13073
  "aria-readonly": props.readonly,
13058
- "onTouchstart": onTouchStart,
13074
+ "onTouchstartPassive": onTouchStart,
13059
13075
  "onTouchmove": onTouchMove
13060
13076
  }, [list.value.map(renderStar)]);
13061
13077
  }
@@ -13693,7 +13709,7 @@
13693
13709
  "aria-disabled": props.disabled || void 0,
13694
13710
  "aria-readonly": props.readonly || void 0,
13695
13711
  "aria-orientation": props.vertical ? "vertical" : "horizontal",
13696
- "onTouchstart": (event) => {
13712
+ "onTouchstartPassive": (event) => {
13697
13713
  if (typeof index === "number") {
13698
13714
  buttonIndex = index;
13699
13715
  }
@@ -14127,7 +14143,7 @@
14127
14143
  actionType = type;
14128
14144
  onChange();
14129
14145
  },
14130
- onTouchstart: () => {
14146
+ onTouchstartPassive: () => {
14131
14147
  actionType = type;
14132
14148
  onTouchStart();
14133
14149
  },
@@ -14438,7 +14454,7 @@
14438
14454
  "ref": root,
14439
14455
  "class": bem$4(),
14440
14456
  "onClick": getClickHandler("cell", lockClick2),
14441
- "onTouchstart": onTouchStart,
14457
+ "onTouchstartPassive": onTouchStart,
14442
14458
  "onTouchmove": onTouchMove,
14443
14459
  "onTouchend": onTouchEnd,
14444
14460
  "onTouchcancel": onTouchEnd
@@ -15987,7 +16003,7 @@
15987
16003
  });
15988
16004
  }
15989
16005
  };
15990
- const version = "3.6.0";
16006
+ const version = "3.6.1";
15991
16007
  function install(app) {
15992
16008
  const components = [
15993
16009
  ActionBar,