vant 3.4.5 → 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.
Files changed (44) hide show
  1. package/changelog.generated.md +92 -0
  2. package/es/calendar/Calendar.d.ts +4 -0
  3. package/es/calendar/Calendar.js +2 -0
  4. package/es/calendar/index.d.ts +3 -0
  5. package/es/index.d.ts +1 -1
  6. package/es/index.js +1 -1
  7. package/es/nav-bar/NavBar.d.ts +1 -1
  8. package/es/nav-bar/NavBar.js +3 -3
  9. package/es/nav-bar/index.d.ts +1 -1
  10. package/es/popup/Popup.d.ts +4 -0
  11. package/es/popup/Popup.js +3 -0
  12. package/es/popup/index.d.ts +3 -0
  13. package/es/skeleton/Skeleton.js +6 -4
  14. package/es/style/base.css +1 -1
  15. package/es/style/base.less +5 -0
  16. package/es/swipe-cell/SwipeCell.js +1 -1
  17. package/es/toast/Toast.js +1 -0
  18. package/lib/calendar/Calendar.d.ts +4 -0
  19. package/lib/calendar/Calendar.js +2 -0
  20. package/lib/calendar/index.d.ts +3 -0
  21. package/lib/index.css +1 -1
  22. package/lib/index.d.ts +1 -1
  23. package/lib/index.js +1 -1
  24. package/lib/nav-bar/NavBar.d.ts +1 -1
  25. package/lib/nav-bar/NavBar.js +3 -3
  26. package/lib/nav-bar/index.d.ts +1 -1
  27. package/lib/popup/Popup.d.ts +4 -0
  28. package/lib/popup/Popup.js +3 -0
  29. package/lib/popup/index.d.ts +3 -0
  30. package/lib/skeleton/Skeleton.js +5 -3
  31. package/lib/style/base.css +1 -1
  32. package/lib/style/base.less +5 -0
  33. package/lib/swipe-cell/SwipeCell.js +1 -1
  34. package/lib/toast/Toast.js +1 -0
  35. package/lib/vant.cjs.js +16 -8
  36. package/lib/vant.cjs.min.js +1 -1
  37. package/lib/vant.es.js +16 -8
  38. package/lib/vant.es.min.js +16 -8
  39. package/lib/vant.js +16 -8
  40. package/lib/vant.min.js +1 -1
  41. package/package.json +2 -2
  42. package/vetur/attributes.json +287 -279
  43. package/vetur/tags.json +90 -88
  44. package/vetur/web-types.json +937 -917
package/lib/vant.es.js CHANGED
@@ -1126,6 +1126,7 @@ const popupProps$2 = extend({}, popupSharedProps, {
1126
1126
  iconPrefix: String,
1127
1127
  closeOnPopstate: Boolean,
1128
1128
  closeIconPosition: makeStringProp("top-right"),
1129
+ safeAreaInsetTop: Boolean,
1129
1130
  safeAreaInsetBottom: Boolean
1130
1131
  });
1131
1132
  const [name$1l, bem$1h] = createNamespace("popup");
@@ -1220,6 +1221,7 @@ var stdin_default$1s = defineComponent({
1220
1221
  const {
1221
1222
  round,
1222
1223
  position,
1224
+ safeAreaInsetTop,
1223
1225
  safeAreaInsetBottom
1224
1226
  } = props;
1225
1227
  return withDirectives(createVNode("div", mergeProps({
@@ -1229,6 +1231,7 @@ var stdin_default$1s = defineComponent({
1229
1231
  round,
1230
1232
  [position]: position
1231
1233
  }), {
1234
+ "van-safe-area-top": safeAreaInsetTop,
1232
1235
  "van-safe-area-bottom": safeAreaInsetBottom
1233
1236
  }],
1234
1237
  "onKeydown": onKeydown
@@ -3089,6 +3092,7 @@ var stdin_default$1k = defineComponent({
3089
3092
  } = props;
3090
3093
  if (isDef(message) && message !== "") {
3091
3094
  return type === "html" ? createVNode("div", {
3095
+ "key": 0,
3092
3096
  "class": bem$19("text"),
3093
3097
  "innerHTML": String(message)
3094
3098
  }, null) : createVNode("div", {
@@ -4612,6 +4616,7 @@ const calendarProps = {
4612
4616
  showRangePrompt: truthProp,
4613
4617
  confirmDisabledText: String,
4614
4618
  closeOnClickOverlay: truthProp,
4619
+ safeAreaInsetTop: Boolean,
4615
4620
  safeAreaInsetBottom: truthProp,
4616
4621
  minDate: {
4617
4622
  type: Date,
@@ -4960,6 +4965,7 @@ var stdin_default$17 = defineComponent({
4960
4965
  "closeable": props.showTitle || props.showSubtitle,
4961
4966
  "teleport": props.teleport,
4962
4967
  "closeOnPopstate": props.closeOnPopstate,
4968
+ "safeAreaInsetTop": props.safeAreaInsetTop,
4963
4969
  "closeOnClickOverlay": props.closeOnClickOverlay,
4964
4970
  "onUpdate:show": updateShow
4965
4971
  }, {
@@ -10047,10 +10053,10 @@ var stdin_default$u = defineComponent({
10047
10053
  "ref": navBarRef,
10048
10054
  "style": style,
10049
10055
  "class": [bem$p({
10050
- fixed,
10051
- "safe-area-inset-top": props.safeAreaInsetTop
10056
+ fixed
10052
10057
  }), {
10053
- [BORDER_BOTTOM]: border
10058
+ [BORDER_BOTTOM]: border,
10059
+ "van-safe-area-top": props.safeAreaInsetTop
10054
10060
  }]
10055
10061
  }, [createVNode("div", {
10056
10062
  "class": bem$p("content")
@@ -11771,9 +11777,11 @@ const skeletonProps = {
11771
11777
  };
11772
11778
  var stdin_default$f = defineComponent({
11773
11779
  name: name$a,
11780
+ inheritAttrs: false,
11774
11781
  props: skeletonProps,
11775
11782
  setup(props, {
11776
- slots
11783
+ slots,
11784
+ attrs
11777
11785
  }) {
11778
11786
  const renderAvatar = () => {
11779
11787
  if (props.avatar) {
@@ -11816,12 +11824,12 @@ var stdin_default$f = defineComponent({
11816
11824
  if (!props.loading) {
11817
11825
  return (_a = slots.default) == null ? void 0 : _a.call(slots);
11818
11826
  }
11819
- return createVNode("div", {
11827
+ return createVNode("div", mergeProps({
11820
11828
  "class": bem$a({
11821
11829
  animate: props.animate,
11822
11830
  round: props.round
11823
11831
  })
11824
- }, [renderAvatar(), createVNode("div", {
11832
+ }, attrs), [renderAvatar(), createVNode("div", {
11825
11833
  "class": bem$a("content")
11826
11834
  }, [renderTitle(), renderRows()])]);
11827
11835
  };
@@ -12712,7 +12720,7 @@ var stdin_default$9 = defineComponent({
12712
12720
  return createVNode("div", {
12713
12721
  "ref": root,
12714
12722
  "class": bem$4(),
12715
- "onClick": getClickHandler("cell"),
12723
+ "onClick": getClickHandler("cell", lockClick2),
12716
12724
  "onTouchstart": onTouchStart,
12717
12725
  "onTouchmove": onTouchMove,
12718
12726
  "onTouchend": onTouchEnd,
@@ -14259,7 +14267,7 @@ const Lazyload = {
14259
14267
  });
14260
14268
  }
14261
14269
  };
14262
- const version = "3.4.5";
14270
+ const version = "3.4.6";
14263
14271
  function install(app) {
14264
14272
  const components = [
14265
14273
  ActionBar,
@@ -1126,6 +1126,7 @@ const popupProps$2 = extend({}, popupSharedProps, {
1126
1126
  iconPrefix: String,
1127
1127
  closeOnPopstate: Boolean,
1128
1128
  closeIconPosition: makeStringProp("top-right"),
1129
+ safeAreaInsetTop: Boolean,
1129
1130
  safeAreaInsetBottom: Boolean
1130
1131
  });
1131
1132
  const [name$1l, bem$1h] = createNamespace("popup");
@@ -1220,6 +1221,7 @@ var stdin_default$1s = defineComponent({
1220
1221
  const {
1221
1222
  round,
1222
1223
  position,
1224
+ safeAreaInsetTop,
1223
1225
  safeAreaInsetBottom
1224
1226
  } = props;
1225
1227
  return withDirectives(createVNode("div", mergeProps({
@@ -1229,6 +1231,7 @@ var stdin_default$1s = defineComponent({
1229
1231
  round,
1230
1232
  [position]: position
1231
1233
  }), {
1234
+ "van-safe-area-top": safeAreaInsetTop,
1232
1235
  "van-safe-area-bottom": safeAreaInsetBottom
1233
1236
  }],
1234
1237
  "onKeydown": onKeydown
@@ -3089,6 +3092,7 @@ var stdin_default$1k = defineComponent({
3089
3092
  } = props;
3090
3093
  if (isDef(message) && message !== "") {
3091
3094
  return type === "html" ? createVNode("div", {
3095
+ "key": 0,
3092
3096
  "class": bem$19("text"),
3093
3097
  "innerHTML": String(message)
3094
3098
  }, null) : createVNode("div", {
@@ -4612,6 +4616,7 @@ const calendarProps = {
4612
4616
  showRangePrompt: truthProp,
4613
4617
  confirmDisabledText: String,
4614
4618
  closeOnClickOverlay: truthProp,
4619
+ safeAreaInsetTop: Boolean,
4615
4620
  safeAreaInsetBottom: truthProp,
4616
4621
  minDate: {
4617
4622
  type: Date,
@@ -4960,6 +4965,7 @@ var stdin_default$17 = defineComponent({
4960
4965
  "closeable": props.showTitle || props.showSubtitle,
4961
4966
  "teleport": props.teleport,
4962
4967
  "closeOnPopstate": props.closeOnPopstate,
4968
+ "safeAreaInsetTop": props.safeAreaInsetTop,
4963
4969
  "closeOnClickOverlay": props.closeOnClickOverlay,
4964
4970
  "onUpdate:show": updateShow
4965
4971
  }, {
@@ -10047,10 +10053,10 @@ var stdin_default$u = defineComponent({
10047
10053
  "ref": navBarRef,
10048
10054
  "style": style,
10049
10055
  "class": [bem$p({
10050
- fixed,
10051
- "safe-area-inset-top": props.safeAreaInsetTop
10056
+ fixed
10052
10057
  }), {
10053
- [BORDER_BOTTOM]: border
10058
+ [BORDER_BOTTOM]: border,
10059
+ "van-safe-area-top": props.safeAreaInsetTop
10054
10060
  }]
10055
10061
  }, [createVNode("div", {
10056
10062
  "class": bem$p("content")
@@ -11771,9 +11777,11 @@ const skeletonProps = {
11771
11777
  };
11772
11778
  var stdin_default$f = defineComponent({
11773
11779
  name: name$a,
11780
+ inheritAttrs: false,
11774
11781
  props: skeletonProps,
11775
11782
  setup(props, {
11776
- slots
11783
+ slots,
11784
+ attrs
11777
11785
  }) {
11778
11786
  const renderAvatar = () => {
11779
11787
  if (props.avatar) {
@@ -11816,12 +11824,12 @@ var stdin_default$f = defineComponent({
11816
11824
  if (!props.loading) {
11817
11825
  return (_a = slots.default) == null ? void 0 : _a.call(slots);
11818
11826
  }
11819
- return createVNode("div", {
11827
+ return createVNode("div", mergeProps({
11820
11828
  "class": bem$a({
11821
11829
  animate: props.animate,
11822
11830
  round: props.round
11823
11831
  })
11824
- }, [renderAvatar(), createVNode("div", {
11832
+ }, attrs), [renderAvatar(), createVNode("div", {
11825
11833
  "class": bem$a("content")
11826
11834
  }, [renderTitle(), renderRows()])]);
11827
11835
  };
@@ -12712,7 +12720,7 @@ var stdin_default$9 = defineComponent({
12712
12720
  return createVNode("div", {
12713
12721
  "ref": root,
12714
12722
  "class": bem$4(),
12715
- "onClick": getClickHandler("cell"),
12723
+ "onClick": getClickHandler("cell", lockClick2),
12716
12724
  "onTouchstart": onTouchStart,
12717
12725
  "onTouchmove": onTouchMove,
12718
12726
  "onTouchend": onTouchEnd,
@@ -14259,7 +14267,7 @@ const Lazyload = {
14259
14267
  });
14260
14268
  }
14261
14269
  };
14262
- const version = "3.4.5";
14270
+ const version = "3.4.6";
14263
14271
  function install(app) {
14264
14272
  const components = [
14265
14273
  ActionBar,
package/lib/vant.js CHANGED
@@ -1480,6 +1480,7 @@
1480
1480
  iconPrefix: String,
1481
1481
  closeOnPopstate: Boolean,
1482
1482
  closeIconPosition: makeStringProp("top-right"),
1483
+ safeAreaInsetTop: Boolean,
1483
1484
  safeAreaInsetBottom: Boolean
1484
1485
  });
1485
1486
  const [name$1l, bem$1h] = createNamespace("popup");
@@ -1574,6 +1575,7 @@
1574
1575
  const {
1575
1576
  round: round2,
1576
1577
  position,
1578
+ safeAreaInsetTop,
1577
1579
  safeAreaInsetBottom
1578
1580
  } = props;
1579
1581
  return vue.withDirectives(vue.createVNode("div", vue.mergeProps({
@@ -1583,6 +1585,7 @@
1583
1585
  round: round2,
1584
1586
  [position]: position
1585
1587
  }), {
1588
+ "van-safe-area-top": safeAreaInsetTop,
1586
1589
  "van-safe-area-bottom": safeAreaInsetBottom
1587
1590
  }],
1588
1591
  "onKeydown": onKeydown
@@ -3443,6 +3446,7 @@
3443
3446
  } = props;
3444
3447
  if (isDef(message) && message !== "") {
3445
3448
  return type === "html" ? vue.createVNode("div", {
3449
+ "key": 0,
3446
3450
  "class": bem$19("text"),
3447
3451
  "innerHTML": String(message)
3448
3452
  }, null) : vue.createVNode("div", {
@@ -4966,6 +4970,7 @@
4966
4970
  showRangePrompt: truthProp,
4967
4971
  confirmDisabledText: String,
4968
4972
  closeOnClickOverlay: truthProp,
4973
+ safeAreaInsetTop: Boolean,
4969
4974
  safeAreaInsetBottom: truthProp,
4970
4975
  minDate: {
4971
4976
  type: Date,
@@ -5314,6 +5319,7 @@
5314
5319
  "closeable": props.showTitle || props.showSubtitle,
5315
5320
  "teleport": props.teleport,
5316
5321
  "closeOnPopstate": props.closeOnPopstate,
5322
+ "safeAreaInsetTop": props.safeAreaInsetTop,
5317
5323
  "closeOnClickOverlay": props.closeOnClickOverlay,
5318
5324
  "onUpdate:show": updateShow
5319
5325
  }, {
@@ -10401,10 +10407,10 @@
10401
10407
  "ref": navBarRef,
10402
10408
  "style": style,
10403
10409
  "class": [bem$p({
10404
- fixed,
10405
- "safe-area-inset-top": props.safeAreaInsetTop
10410
+ fixed
10406
10411
  }), {
10407
- [BORDER_BOTTOM]: border
10412
+ [BORDER_BOTTOM]: border,
10413
+ "van-safe-area-top": props.safeAreaInsetTop
10408
10414
  }]
10409
10415
  }, [vue.createVNode("div", {
10410
10416
  "class": bem$p("content")
@@ -12982,9 +12988,11 @@
12982
12988
  };
12983
12989
  var stdin_default$f = vue.defineComponent({
12984
12990
  name: name$a,
12991
+ inheritAttrs: false,
12985
12992
  props: skeletonProps,
12986
12993
  setup(props, {
12987
- slots
12994
+ slots,
12995
+ attrs
12988
12996
  }) {
12989
12997
  const renderAvatar = () => {
12990
12998
  if (props.avatar) {
@@ -13027,12 +13035,12 @@
13027
13035
  if (!props.loading) {
13028
13036
  return (_a = slots.default) == null ? void 0 : _a.call(slots);
13029
13037
  }
13030
- return vue.createVNode("div", {
13038
+ return vue.createVNode("div", vue.mergeProps({
13031
13039
  "class": bem$a({
13032
13040
  animate: props.animate,
13033
13041
  round: props.round
13034
13042
  })
13035
- }, [renderAvatar(), vue.createVNode("div", {
13043
+ }, attrs), [renderAvatar(), vue.createVNode("div", {
13036
13044
  "class": bem$a("content")
13037
13045
  }, [renderTitle(), renderRows()])]);
13038
13046
  };
@@ -13923,7 +13931,7 @@
13923
13931
  return vue.createVNode("div", {
13924
13932
  "ref": root,
13925
13933
  "class": bem$4(),
13926
- "onClick": getClickHandler("cell"),
13934
+ "onClick": getClickHandler("cell", lockClick2),
13927
13935
  "onTouchstart": onTouchStart,
13928
13936
  "onTouchmove": onTouchMove,
13929
13937
  "onTouchend": onTouchEnd,
@@ -15470,7 +15478,7 @@
15470
15478
  });
15471
15479
  }
15472
15480
  };
15473
- const version = "3.4.5";
15481
+ const version = "3.4.6";
15474
15482
  function install(app) {
15475
15483
  const components = [
15476
15484
  ActionBar,