vant 3.4.3 → 3.4.4
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/area/Area.js +3 -1
- package/es/field/utils.js +2 -1
- package/es/index-bar/IndexBar.js +3 -1
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/lib/area/Area.js +3 -1
- package/lib/field/utils.js +2 -1
- package/lib/index-bar/IndexBar.js +3 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/vant.cjs.js +9 -4
- package/lib/vant.cjs.min.js +1 -1
- package/lib/vant.es.js +9 -4
- package/lib/vant.es.min.js +9 -4
- package/lib/vant.js +9 -4
- package/lib/vant.min.js +1 -1
- package/package.json +3 -6
- package/vetur/attributes.json +138 -138
- package/vetur/tags.json +43 -43
- package/vetur/web-types.json +651 -651
package/es/area/Area.js
CHANGED
@@ -212,7 +212,9 @@ var stdin_default = defineComponent({
|
|
212
212
|
watch(() => props.areaList, setValues, {
|
213
213
|
deep: true
|
214
214
|
});
|
215
|
-
watch(() => props.columnsNum, () =>
|
215
|
+
watch(() => props.columnsNum, () => {
|
216
|
+
nextTick(setValues);
|
217
|
+
});
|
216
218
|
useExpose({
|
217
219
|
reset,
|
218
220
|
getArea,
|
package/es/field/utils.js
CHANGED
@@ -27,7 +27,8 @@ function runRuleValidator(value, rule) {
|
|
27
27
|
return new Promise((resolve) => {
|
28
28
|
const returnVal = rule.validator(value, rule);
|
29
29
|
if (isPromise(returnVal)) {
|
30
|
-
|
30
|
+
returnVal.then(resolve);
|
31
|
+
return;
|
31
32
|
}
|
32
33
|
resolve(returnVal);
|
33
34
|
});
|
package/es/index-bar/IndexBar.js
CHANGED
package/es/index.d.ts
CHANGED
package/es/index.js
CHANGED
@@ -83,7 +83,7 @@ import { Tag } from "./tag";
|
|
83
83
|
import { Toast } from "./toast";
|
84
84
|
import { TreeSelect } from "./tree-select";
|
85
85
|
import { Uploader } from "./uploader";
|
86
|
-
const version = "3.4.
|
86
|
+
const version = "3.4.4";
|
87
87
|
function install(app) {
|
88
88
|
const components = [
|
89
89
|
ActionBar,
|
package/lib/area/Area.js
CHANGED
@@ -238,7 +238,9 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
238
238
|
(0, import_vue2.watch)(() => props.areaList, setValues, {
|
239
239
|
deep: true
|
240
240
|
});
|
241
|
-
(0, import_vue2.watch)(() => props.columnsNum, () =>
|
241
|
+
(0, import_vue2.watch)(() => props.columnsNum, () => {
|
242
|
+
(0, import_vue2.nextTick)(setValues);
|
243
|
+
});
|
242
244
|
(0, import_use_expose.useExpose)({
|
243
245
|
reset,
|
244
246
|
getArea,
|
package/lib/field/utils.js
CHANGED
@@ -55,7 +55,8 @@ function runRuleValidator(value, rule) {
|
|
55
55
|
return new Promise((resolve) => {
|
56
56
|
const returnVal = rule.validator(value, rule);
|
57
57
|
if ((0, import_utils.isPromise)(returnVal)) {
|
58
|
-
|
58
|
+
returnVal.then(resolve);
|
59
|
+
return;
|
59
60
|
}
|
60
61
|
resolve(returnVal);
|
61
62
|
});
|
@@ -132,7 +132,9 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
132
132
|
});
|
133
133
|
}
|
134
134
|
};
|
135
|
-
const init = () =>
|
135
|
+
const init = () => {
|
136
|
+
(0, import_vue2.nextTick)(onScroll);
|
137
|
+
};
|
136
138
|
(0, import_use.useEventListener)("scroll", onScroll, {
|
137
139
|
target: scrollParent
|
138
140
|
});
|
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
@@ -197,7 +197,7 @@ __reExport(exports, __toModule(require("./tag")));
|
|
197
197
|
__reExport(exports, __toModule(require("./toast")));
|
198
198
|
__reExport(exports, __toModule(require("./tree-select")));
|
199
199
|
__reExport(exports, __toModule(require("./uploader")));
|
200
|
-
const version = "3.4.
|
200
|
+
const version = "3.4.4";
|
201
201
|
function install(app) {
|
202
202
|
const components = [
|
203
203
|
import_action_bar.ActionBar,
|
package/lib/vant.cjs.js
CHANGED
@@ -2169,7 +2169,9 @@ var stdin_default$1o = vue.defineComponent({
|
|
2169
2169
|
vue.watch(() => props.areaList, setValues, {
|
2170
2170
|
deep: true
|
2171
2171
|
});
|
2172
|
-
vue.watch(() => props.columnsNum, () =>
|
2172
|
+
vue.watch(() => props.columnsNum, () => {
|
2173
|
+
vue.nextTick(setValues);
|
2174
|
+
});
|
2173
2175
|
useExpose({
|
2174
2176
|
reset,
|
2175
2177
|
getArea,
|
@@ -2467,7 +2469,8 @@ function runRuleValidator(value, rule) {
|
|
2467
2469
|
return new Promise((resolve) => {
|
2468
2470
|
const returnVal = rule.validator(value, rule);
|
2469
2471
|
if (isPromise(returnVal)) {
|
2470
|
-
|
2472
|
+
returnVal.then(resolve);
|
2473
|
+
return;
|
2471
2474
|
}
|
2472
2475
|
resolve(returnVal);
|
2473
2476
|
});
|
@@ -9661,7 +9664,9 @@ var stdin_default$x = vue.defineComponent({
|
|
9661
9664
|
});
|
9662
9665
|
}
|
9663
9666
|
};
|
9664
|
-
const init = () =>
|
9667
|
+
const init = () => {
|
9668
|
+
vue.nextTick(onScroll);
|
9669
|
+
};
|
9665
9670
|
use.useEventListener("scroll", onScroll, {
|
9666
9671
|
target: scrollParent
|
9667
9672
|
});
|
@@ -14231,7 +14236,7 @@ const Lazyload = {
|
|
14231
14236
|
});
|
14232
14237
|
}
|
14233
14238
|
};
|
14234
|
-
const version = "3.4.
|
14239
|
+
const version = "3.4.4";
|
14235
14240
|
function install(app) {
|
14236
14241
|
const components = [
|
14237
14242
|
ActionBar,
|