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/es/calendar/Calendar.mjs +3 -0
- package/es/index.d.ts +1 -1
- package/es/index.mjs +1 -1
- package/es/popup/Popup.mjs +1 -1
- package/es/pull-refresh/PullRefresh.d.ts +2 -1
- package/es/pull-refresh/PullRefresh.mjs +5 -1
- package/es/pull-refresh/index.d.ts +2 -1
- package/es/toast/function-call.d.ts +5 -6
- package/es/toast/types.d.ts +10 -1
- package/es/uploader/Uploader.d.ts +3 -3
- package/es/uploader/index.d.ts +2 -2
- package/lib/calendar/Calendar.js +3 -0
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/popup/Popup.js +1 -1
- package/lib/pull-refresh/PullRefresh.d.ts +2 -1
- package/lib/pull-refresh/PullRefresh.js +5 -1
- package/lib/pull-refresh/index.d.ts +2 -1
- package/lib/toast/function-call.d.ts +5 -6
- package/lib/toast/types.d.ts +10 -1
- package/lib/uploader/Uploader.d.ts +3 -3
- package/lib/uploader/index.d.ts +2 -2
- package/lib/vant.cjs.js +10 -3
- package/lib/vant.cjs.min.js +1 -1
- package/lib/vant.es.js +10 -3
- package/lib/vant.es.min.js +10 -3
- package/lib/vant.js +10 -3
- package/lib/vant.min.js +1 -1
- package/package.json +1 -1
- package/vetur/attributes.json +526 -526
- package/vetur/tags.json +176 -176
- package/vetur/web-types.json +1581 -1572
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.
|
14566
|
+
const version = "3.5.1";
|
14560
14567
|
function install(app) {
|
14561
14568
|
const components = [
|
14562
14569
|
ActionBar,
|
package/lib/vant.es.min.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.
|
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.
|
15814
|
+
const version = "3.5.1";
|
15808
15815
|
function install(app) {
|
15809
15816
|
const components = [
|
15810
15817
|
ActionBar,
|