vant 4.0.6 → 4.0.7

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/lib/index.d.ts CHANGED
@@ -94,4 +94,4 @@ declare namespace _default {
94
94
  }
95
95
  export default _default;
96
96
  export function install(app: any): void;
97
- export const version: "4.0.6";
97
+ export const version: "4.0.7";
package/lib/index.js CHANGED
@@ -202,7 +202,7 @@ __reExport(stdin_exports, require("./time-picker"), module.exports);
202
202
  __reExport(stdin_exports, require("./toast"), module.exports);
203
203
  __reExport(stdin_exports, require("./tree-select"), module.exports);
204
204
  __reExport(stdin_exports, require("./uploader"), module.exports);
205
- const version = "4.0.6";
205
+ const version = "4.0.7";
206
206
  function install(app) {
207
207
  const components = [
208
208
  import_action_bar.ActionBar,
@@ -35,7 +35,7 @@ var stdin_default = {
35
35
  vanCalendar: {
36
36
  end: "\u041A\u043E\u043D\u0435\u0446",
37
37
  start: "\u041D\u0430\u0447\u0430\u043B\u043E",
38
- title: "\u041A\u0430\u043B\u0435\u043D\u0430\u0440\u044C",
38
+ title: "\u041A\u0430\u043B\u0435\u043D\u0434\u0430\u0440\u044C",
39
39
  weekdays: ["\u0412\u0421", "\u041F\u041D", "\u0412\u0422", "\u0421\u0420", "\u0427\u0422", "\u041F\u0422", "\u0421\u0411"],
40
40
  monthTitle: (year, month) => `${year}/${month}`,
41
41
  rangePrompt: (maxRange) => `\u0423\u043A\u0430\u0436\u0438\u0442\u0435 \u0431\u043E\u043B\u0435\u0435 ${maxRange} \u0434\u043D\u0435\u0439`
@@ -212,6 +212,9 @@ var stdin_default = (0, import_vue2.defineComponent)({
212
212
  }
213
213
  if (count.value) {
214
214
  active = Math.min(count.value - 1, active);
215
+ if (active === -1) {
216
+ active = count.value - 1;
217
+ }
215
218
  }
216
219
  state.active = active;
217
220
  state.swiping = true;
package/lib/vant.cjs.js CHANGED
@@ -2302,6 +2302,9 @@ var stdin_default$1t = vue.defineComponent({
2302
2302
  }
2303
2303
  if (count.value) {
2304
2304
  active = Math.min(count.value - 1, active);
2305
+ if (active === -1) {
2306
+ active = count.value - 1;
2307
+ }
2305
2308
  }
2306
2309
  state.active = active;
2307
2310
  state.swiping = true;
@@ -9764,7 +9767,7 @@ var stdin_default$F = vue.defineComponent({
9764
9767
  }
9765
9768
  });
9766
9769
  const [name$z, bem$y] = createNamespace("image-preview");
9767
- const popupProps$1 = ["show", "transition", "overlayStyle", "closeOnPopstate"];
9770
+ const popupProps$1 = ["show", "transition", "overlayStyle", "closeOnPopstate", "teleport"];
9768
9771
  const imagePreviewProps = {
9769
9772
  show: Boolean,
9770
9773
  loop: truthProp,
@@ -9784,7 +9787,8 @@ const imagePreviewProps = {
9784
9787
  startPosition: makeNumericProp(0),
9785
9788
  showIndicators: Boolean,
9786
9789
  closeOnPopstate: truthProp,
9787
- closeIconPosition: makeStringProp("top-right")
9790
+ closeIconPosition: makeStringProp("top-right"),
9791
+ teleport: [String, Object]
9788
9792
  };
9789
9793
  var stdin_default$E = vue.defineComponent({
9790
9794
  name: name$z,
@@ -14899,7 +14903,7 @@ const Lazyload = {
14899
14903
  });
14900
14904
  }
14901
14905
  };
14902
- const version = "4.0.6";
14906
+ const version = "4.0.7";
14903
14907
  function install(app) {
14904
14908
  const components = [
14905
14909
  ActionBar,
package/lib/vant.es.js CHANGED
@@ -2300,6 +2300,9 @@ var stdin_default$1t = defineComponent({
2300
2300
  }
2301
2301
  if (count.value) {
2302
2302
  active = Math.min(count.value - 1, active);
2303
+ if (active === -1) {
2304
+ active = count.value - 1;
2305
+ }
2303
2306
  }
2304
2307
  state.active = active;
2305
2308
  state.swiping = true;
@@ -9762,7 +9765,7 @@ var stdin_default$F = defineComponent({
9762
9765
  }
9763
9766
  });
9764
9767
  const [name$z, bem$y] = createNamespace("image-preview");
9765
- const popupProps$1 = ["show", "transition", "overlayStyle", "closeOnPopstate"];
9768
+ const popupProps$1 = ["show", "transition", "overlayStyle", "closeOnPopstate", "teleport"];
9766
9769
  const imagePreviewProps = {
9767
9770
  show: Boolean,
9768
9771
  loop: truthProp,
@@ -9782,7 +9785,8 @@ const imagePreviewProps = {
9782
9785
  startPosition: makeNumericProp(0),
9783
9786
  showIndicators: Boolean,
9784
9787
  closeOnPopstate: truthProp,
9785
- closeIconPosition: makeStringProp("top-right")
9788
+ closeIconPosition: makeStringProp("top-right"),
9789
+ teleport: [String, Object]
9786
9790
  };
9787
9791
  var stdin_default$E = defineComponent({
9788
9792
  name: name$z,
@@ -14897,7 +14901,7 @@ const Lazyload = {
14897
14901
  });
14898
14902
  }
14899
14903
  };
14900
- const version = "4.0.6";
14904
+ const version = "4.0.7";
14901
14905
  function install(app) {
14902
14906
  const components = [
14903
14907
  ActionBar,
package/lib/vant.js CHANGED
@@ -2666,6 +2666,9 @@
2666
2666
  }
2667
2667
  if (count.value) {
2668
2668
  active = Math.min(count.value - 1, active);
2669
+ if (active === -1) {
2670
+ active = count.value - 1;
2671
+ }
2669
2672
  }
2670
2673
  state.active = active;
2671
2674
  state.swiping = true;
@@ -10093,7 +10096,7 @@
10093
10096
  }
10094
10097
  });
10095
10098
  const [name$z, bem$y] = createNamespace("image-preview");
10096
- const popupProps$1 = ["show", "transition", "overlayStyle", "closeOnPopstate"];
10099
+ const popupProps$1 = ["show", "transition", "overlayStyle", "closeOnPopstate", "teleport"];
10097
10100
  const imagePreviewProps = {
10098
10101
  show: Boolean,
10099
10102
  loop: truthProp,
@@ -10113,7 +10116,8 @@
10113
10116
  startPosition: makeNumericProp(0),
10114
10117
  showIndicators: Boolean,
10115
10118
  closeOnPopstate: truthProp,
10116
- closeIconPosition: makeStringProp("top-right")
10119
+ closeIconPosition: makeStringProp("top-right"),
10120
+ teleport: [String, Object]
10117
10121
  };
10118
10122
  var stdin_default$E = vue.defineComponent({
10119
10123
  name: name$z,
@@ -16105,7 +16109,7 @@
16105
16109
  });
16106
16110
  }
16107
16111
  };
16108
- const version = "4.0.6";
16112
+ const version = "4.0.7";
16109
16113
  function install(app) {
16110
16114
  const components = [
16111
16115
  ActionBar,