vant 3.5.0 → 3.5.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.
package/lib/vant.es.js CHANGED
@@ -1299,7 +1299,7 @@ var stdin_default$1s = defineComponent({
1299
1299
  }
1300
1300
  });
1301
1301
  onDeactivated(() => {
1302
- if (props.show) {
1302
+ if (props.show && props.teleport) {
1303
1303
  close();
1304
1304
  shouldReopen = true;
1305
1305
  }
@@ -4727,6 +4727,9 @@ var stdin_default$17 = defineComponent({
4727
4727
  const months = computed(() => {
4728
4728
  const months2 = [];
4729
4729
  const cursor = new Date(props.minDate);
4730
+ if (props.lazyRender && !props.show && props.poppable) {
4731
+ return months2;
4732
+ }
4730
4733
  cursor.setDate(1);
4731
4734
  do {
4732
4735
  months2.push(new Date(cursor));
@@ -11355,7 +11358,7 @@ const pullRefreshProps = {
11355
11358
  var stdin_default$l = defineComponent({
11356
11359
  name: name$g,
11357
11360
  props: pullRefreshProps,
11358
- emits: ["refresh", "update:modelValue"],
11361
+ emits: ["change", "refresh", "update:modelValue"],
11359
11362
  setup(props, {
11360
11363
  emit,
11361
11364
  slots
@@ -11400,6 +11403,10 @@ var stdin_default$l = defineComponent({
11400
11403
  } else {
11401
11404
  state.status = "loosing";
11402
11405
  }
11406
+ emit("change", {
11407
+ status: state.status,
11408
+ distance
11409
+ });
11403
11410
  };
11404
11411
  const getStatusText = () => {
11405
11412
  const {
@@ -14556,7 +14563,7 @@ const Lazyload = {
14556
14563
  });
14557
14564
  }
14558
14565
  };
14559
- const version = "3.5.0";
14566
+ const version = "3.5.1";
14560
14567
  function install(app) {
14561
14568
  const components = [
14562
14569
  ActionBar,
@@ -1299,7 +1299,7 @@ var stdin_default$1s = defineComponent({
1299
1299
  }
1300
1300
  });
1301
1301
  onDeactivated(() => {
1302
- if (props.show) {
1302
+ if (props.show && props.teleport) {
1303
1303
  close();
1304
1304
  shouldReopen = true;
1305
1305
  }
@@ -4727,6 +4727,9 @@ var stdin_default$17 = defineComponent({
4727
4727
  const months = computed(() => {
4728
4728
  const months2 = [];
4729
4729
  const cursor = new Date(props.minDate);
4730
+ if (props.lazyRender && !props.show && props.poppable) {
4731
+ return months2;
4732
+ }
4730
4733
  cursor.setDate(1);
4731
4734
  do {
4732
4735
  months2.push(new Date(cursor));
@@ -11355,7 +11358,7 @@ const pullRefreshProps = {
11355
11358
  var stdin_default$l = defineComponent({
11356
11359
  name: name$g,
11357
11360
  props: pullRefreshProps,
11358
- emits: ["refresh", "update:modelValue"],
11361
+ emits: ["change", "refresh", "update:modelValue"],
11359
11362
  setup(props, {
11360
11363
  emit,
11361
11364
  slots
@@ -11400,6 +11403,10 @@ var stdin_default$l = defineComponent({
11400
11403
  } else {
11401
11404
  state.status = "loosing";
11402
11405
  }
11406
+ emit("change", {
11407
+ status: state.status,
11408
+ distance
11409
+ });
11403
11410
  };
11404
11411
  const getStatusText = () => {
11405
11412
  const {
@@ -14556,7 +14563,7 @@ const Lazyload = {
14556
14563
  });
14557
14564
  }
14558
14565
  };
14559
- const version = "3.5.0";
14566
+ const version = "3.5.1";
14560
14567
  function install(app) {
14561
14568
  const components = [
14562
14569
  ActionBar,
package/lib/vant.js CHANGED
@@ -1653,7 +1653,7 @@
1653
1653
  }
1654
1654
  });
1655
1655
  vue.onDeactivated(() => {
1656
- if (props.show) {
1656
+ if (props.show && props.teleport) {
1657
1657
  close();
1658
1658
  shouldReopen = true;
1659
1659
  }
@@ -5081,6 +5081,9 @@
5081
5081
  const months = vue.computed(() => {
5082
5082
  const months2 = [];
5083
5083
  const cursor = new Date(props.minDate);
5084
+ if (props.lazyRender && !props.show && props.poppable) {
5085
+ return months2;
5086
+ }
5084
5087
  cursor.setDate(1);
5085
5088
  do {
5086
5089
  months2.push(new Date(cursor));
@@ -12603,7 +12606,7 @@
12603
12606
  var stdin_default$l = vue.defineComponent({
12604
12607
  name: name$g,
12605
12608
  props: pullRefreshProps,
12606
- emits: ["refresh", "update:modelValue"],
12609
+ emits: ["change", "refresh", "update:modelValue"],
12607
12610
  setup(props, {
12608
12611
  emit,
12609
12612
  slots
@@ -12648,6 +12651,10 @@
12648
12651
  } else {
12649
12652
  state.status = "loosing";
12650
12653
  }
12654
+ emit("change", {
12655
+ status: state.status,
12656
+ distance
12657
+ });
12651
12658
  };
12652
12659
  const getStatusText = () => {
12653
12660
  const {
@@ -15804,7 +15811,7 @@
15804
15811
  });
15805
15812
  }
15806
15813
  };
15807
- const version = "3.5.0";
15814
+ const version = "3.5.1";
15808
15815
  function install(app) {
15809
15816
  const components = [
15810
15817
  ActionBar,