vant 4.9.16 → 4.9.18
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/README.md +1 -0
- package/es/address-edit/AddressEdit.mjs +0 -1
- package/es/address-edit/types.d.ts +0 -1
- package/es/button/index.css +1 -1
- package/es/dialog/Dialog.d.ts +4 -0
- package/es/dialog/Dialog.mjs +3 -2
- package/es/dialog/function-call.mjs +2 -1
- package/es/dialog/index.d.ts +3 -0
- package/es/field/Field.mjs +3 -1
- package/es/index.d.ts +1 -1
- package/es/index.mjs +1 -1
- package/es/locale/lang/pl-PL.d.ts +63 -0
- package/es/locale/lang/pl-PL.mjs +65 -0
- package/es/signature/Signature.mjs +3 -2
- package/es/swipe-cell/SwipeCell.mjs +4 -4
- package/lib/address-edit/AddressEdit.js +0 -1
- package/lib/address-edit/types.d.ts +0 -1
- package/lib/button/index.css +1 -1
- package/lib/dialog/Dialog.d.ts +4 -0
- package/lib/dialog/Dialog.js +3 -2
- package/lib/dialog/function-call.js +2 -1
- package/lib/dialog/index.d.ts +3 -0
- package/lib/field/Field.js +3 -1
- package/lib/index.css +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/lang/pl-PL.d.ts +63 -0
- package/lib/locale/lang/pl-PL.js +84 -0
- package/lib/signature/Signature.js +3 -2
- package/lib/swipe-cell/SwipeCell.js +4 -4
- package/lib/vant.cjs.js +17 -13
- package/lib/vant.es.js +17 -13
- package/lib/vant.js +31 -27
- package/lib/vant.min.js +1 -1
- package/lib/web-types.json +1 -1
- package/package.json +8 -8
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
@@ -226,7 +226,7 @@ __reExport(stdin_exports, require("./toast"), module.exports);
|
|
226
226
|
__reExport(stdin_exports, require("./tree-select"), module.exports);
|
227
227
|
__reExport(stdin_exports, require("./uploader"), module.exports);
|
228
228
|
__reExport(stdin_exports, require("./watermark"), module.exports);
|
229
|
-
const version = "4.9.
|
229
|
+
const version = "4.9.18";
|
230
230
|
function install(app) {
|
231
231
|
const components = [
|
232
232
|
import_action_bar.ActionBar,
|
@@ -0,0 +1,63 @@
|
|
1
|
+
declare const _default: {
|
2
|
+
name: string;
|
3
|
+
tel: string;
|
4
|
+
save: string;
|
5
|
+
clear: string;
|
6
|
+
cancel: string;
|
7
|
+
confirm: string;
|
8
|
+
delete: string;
|
9
|
+
loading: string;
|
10
|
+
noCoupon: string;
|
11
|
+
nameEmpty: string;
|
12
|
+
addContact: string;
|
13
|
+
telInvalid: string;
|
14
|
+
vanCalendar: {
|
15
|
+
end: string;
|
16
|
+
start: string;
|
17
|
+
title: string;
|
18
|
+
weekdays: string[];
|
19
|
+
monthTitle: (year: number, month: number) => string;
|
20
|
+
rangePrompt: (maxRange: number) => string;
|
21
|
+
};
|
22
|
+
vanCascader: {
|
23
|
+
select: string;
|
24
|
+
};
|
25
|
+
vanPagination: {
|
26
|
+
prev: string;
|
27
|
+
next: string;
|
28
|
+
};
|
29
|
+
vanPullRefresh: {
|
30
|
+
pulling: string;
|
31
|
+
loosing: string;
|
32
|
+
};
|
33
|
+
vanSubmitBar: {
|
34
|
+
label: string;
|
35
|
+
};
|
36
|
+
vanCoupon: {
|
37
|
+
unlimited: string;
|
38
|
+
discount: (discount: number) => string;
|
39
|
+
condition: (condition: number) => string;
|
40
|
+
};
|
41
|
+
vanCouponCell: {
|
42
|
+
title: string;
|
43
|
+
count: (count: number) => string;
|
44
|
+
};
|
45
|
+
vanCouponList: {
|
46
|
+
exchange: string;
|
47
|
+
close: string;
|
48
|
+
enable: string;
|
49
|
+
disabled: string;
|
50
|
+
placeholder: string;
|
51
|
+
};
|
52
|
+
vanAddressEdit: {
|
53
|
+
area: string;
|
54
|
+
areaEmpty: string;
|
55
|
+
addressEmpty: string;
|
56
|
+
addressDetail: string;
|
57
|
+
defaultAddress: string;
|
58
|
+
};
|
59
|
+
vanAddressList: {
|
60
|
+
add: string;
|
61
|
+
};
|
62
|
+
};
|
63
|
+
export default _default;
|
@@ -0,0 +1,84 @@
|
|
1
|
+
var __defProp = Object.defineProperty;
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
5
|
+
var __export = (target, all) => {
|
6
|
+
for (var name in all)
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
8
|
+
};
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
11
|
+
for (let key of __getOwnPropNames(from))
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
14
|
+
}
|
15
|
+
return to;
|
16
|
+
};
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
18
|
+
var stdin_exports = {};
|
19
|
+
__export(stdin_exports, {
|
20
|
+
default: () => stdin_default
|
21
|
+
});
|
22
|
+
module.exports = __toCommonJS(stdin_exports);
|
23
|
+
var stdin_default = {
|
24
|
+
name: "Nazwisko",
|
25
|
+
tel: "Telefon",
|
26
|
+
save: "Zapisz",
|
27
|
+
clear: "Wyczy\u015B\u0107",
|
28
|
+
cancel: "Anuluj",
|
29
|
+
confirm: "Potwierd\u017A",
|
30
|
+
delete: "Usu\u0144",
|
31
|
+
loading: "\u0141adowanie...",
|
32
|
+
noCoupon: "Brak kupon\xF3w",
|
33
|
+
nameEmpty: "Wprowad\u017A nazwisko",
|
34
|
+
addContact: "Dodaj kontakt",
|
35
|
+
telInvalid: "Nieprawid\u0142owy numer telefonu",
|
36
|
+
vanCalendar: {
|
37
|
+
end: "Koniec",
|
38
|
+
start: "Start",
|
39
|
+
title: "Kalendarz",
|
40
|
+
weekdays: ["Nie", "Pon", "Wto", "\u015Aro", "Czw", "Pi\u0105", "Sob"],
|
41
|
+
monthTitle: (year, month) => `${year}/${month}`,
|
42
|
+
rangePrompt: (maxRange) => `Wybierz nie wi\u0119cej ni\u017C ${maxRange} dni`
|
43
|
+
},
|
44
|
+
vanCascader: {
|
45
|
+
select: "Wybierz"
|
46
|
+
},
|
47
|
+
vanPagination: {
|
48
|
+
prev: "Poprzednia",
|
49
|
+
next: "Nast\u0119pna"
|
50
|
+
},
|
51
|
+
vanPullRefresh: {
|
52
|
+
pulling: "Poci\u0105gnij aby od\u015Bwie\u017Cy\u0107...",
|
53
|
+
loosing: "Pu\u015B\u0107 aby od\u015Bwie\u017Cy\u0107..."
|
54
|
+
},
|
55
|
+
vanSubmitBar: {
|
56
|
+
label: "Suma:"
|
57
|
+
},
|
58
|
+
vanCoupon: {
|
59
|
+
unlimited: "Unlimited",
|
60
|
+
discount: (discount) => `${discount * 10}% zni\u017Cki`,
|
61
|
+
condition: (condition) => `Przynajmniej ${condition}`
|
62
|
+
},
|
63
|
+
vanCouponCell: {
|
64
|
+
title: "Kupon",
|
65
|
+
count: (count) => `Aktywnych kupon\xF3w: ${count}`
|
66
|
+
},
|
67
|
+
vanCouponList: {
|
68
|
+
exchange: "U\u017Cyj",
|
69
|
+
close: "Zamknij",
|
70
|
+
enable: "Dost\u0119pne",
|
71
|
+
disabled: "Niedost\u0119pne",
|
72
|
+
placeholder: "Kod kuponu"
|
73
|
+
},
|
74
|
+
vanAddressEdit: {
|
75
|
+
area: "Obszar",
|
76
|
+
areaEmpty: "Wybierz obszar",
|
77
|
+
addressEmpty: "Adres nie mo\u017Ce by\u0107 pusty",
|
78
|
+
addressDetail: "Adres",
|
79
|
+
defaultAddress: "Ustaw jako domy\u015Blny adres"
|
80
|
+
},
|
81
|
+
vanAddressList: {
|
82
|
+
add: "Dodaj nowy adres"
|
83
|
+
}
|
84
|
+
};
|
@@ -46,7 +46,8 @@ var stdin_default = (0, import_vue.defineComponent)({
|
|
46
46
|
props: signatureProps,
|
47
47
|
emits: ["submit", "clear", "start", "end", "signing"],
|
48
48
|
setup(props, {
|
49
|
-
emit
|
49
|
+
emit,
|
50
|
+
slots
|
50
51
|
}) {
|
51
52
|
const canvasRef = (0, import_vue.ref)();
|
52
53
|
const wrapRef = (0, import_vue.ref)();
|
@@ -161,7 +162,7 @@ var stdin_default = (0, import_vue.defineComponent)({
|
|
161
162
|
"onTouchstartPassive": touchStart,
|
162
163
|
"onTouchmove": touchMove,
|
163
164
|
"onTouchend": touchEnd
|
164
|
-
}, null) : (0, import_vue.createVNode)("p", null, [props.tips])]), (0, import_vue.createVNode)("div", {
|
165
|
+
}, null) : slots.tips ? slots.tips() : (0, import_vue.createVNode)("p", null, [props.tips])]), (0, import_vue.createVNode)("div", {
|
165
166
|
"class": bem("footer")
|
166
167
|
}, [(0, import_vue.createVNode)(import_button.Button, {
|
167
168
|
"size": "small",
|
@@ -142,8 +142,8 @@ var stdin_default = (0, import_vue.defineComponent)({
|
|
142
142
|
});
|
143
143
|
}
|
144
144
|
};
|
145
|
-
const getClickHandler = (position
|
146
|
-
if (
|
145
|
+
const getClickHandler = (position) => (event) => {
|
146
|
+
if (lockClick || opened) {
|
147
147
|
event.stopPropagation();
|
148
148
|
}
|
149
149
|
if (lockClick) {
|
@@ -157,7 +157,7 @@ var stdin_default = (0, import_vue.defineComponent)({
|
|
157
157
|
return (0, import_vue.createVNode)("div", {
|
158
158
|
"ref": ref2,
|
159
159
|
"class": bem(side),
|
160
|
-
"onClick": getClickHandler(side
|
160
|
+
"onClick": getClickHandler(side)
|
161
161
|
}, [contentSlot()]);
|
162
162
|
}
|
163
163
|
};
|
@@ -180,7 +180,7 @@ var stdin_default = (0, import_vue.defineComponent)({
|
|
180
180
|
return (0, import_vue.createVNode)("div", {
|
181
181
|
"ref": root,
|
182
182
|
"class": bem(),
|
183
|
-
"onClick": getClickHandler("cell"
|
183
|
+
"onClick": getClickHandler("cell"),
|
184
184
|
"onTouchstartPassive": onTouchStart,
|
185
185
|
"onTouchend": onTouchEnd,
|
186
186
|
"onTouchcancel": onTouchEnd
|
package/lib/vant.cjs.js
CHANGED
@@ -2029,7 +2029,7 @@ function scrollTopTo(scroller, to, duration, callback) {
|
|
2029
2029
|
setScrollTop(scroller, current2);
|
2030
2030
|
if (isDown && current2 < to || !isDown && current2 > to) {
|
2031
2031
|
rafId = use.raf(animate);
|
2032
|
-
} else
|
2032
|
+
} else {
|
2033
2033
|
rafId = use.raf(callback);
|
2034
2034
|
}
|
2035
2035
|
}
|
@@ -4291,7 +4291,9 @@ var stdin_default$1v = vue.defineComponent({
|
|
4291
4291
|
value = formatNumber(value, isNumber, isNumber);
|
4292
4292
|
if (trigger === "onBlur" && value !== "" && (props2.min !== void 0 || props2.max !== void 0)) {
|
4293
4293
|
const adjustedValue = clamp(+value, (_a = props2.min) != null ? _a : -Infinity, (_b = props2.max) != null ? _b : Infinity);
|
4294
|
-
value
|
4294
|
+
if (+value !== adjustedValue) {
|
4295
|
+
value = adjustedValue.toString();
|
4296
|
+
}
|
4295
4297
|
}
|
4296
4298
|
}
|
4297
4299
|
let formatterDiffLen = 0;
|
@@ -5051,7 +5053,6 @@ const DEFAULT_DATA = {
|
|
5051
5053
|
tel: "",
|
5052
5054
|
city: "",
|
5053
5055
|
county: "",
|
5054
|
-
country: "",
|
5055
5056
|
province: "",
|
5056
5057
|
areaCode: "",
|
5057
5058
|
isDefault: false,
|
@@ -9520,9 +9521,10 @@ const dialogProps = extend({}, popupSharedProps, {
|
|
9520
9521
|
confirmButtonDisabled: Boolean,
|
9521
9522
|
showConfirmButton: truthProp,
|
9522
9523
|
closeOnClickOverlay: Boolean,
|
9523
|
-
keyboardEnabled: truthProp
|
9524
|
+
keyboardEnabled: truthProp,
|
9525
|
+
destroyOnClose: Boolean
|
9524
9526
|
});
|
9525
|
-
const popupInheritKeys$1 = [...popupSharedPropKeys, "transition", "closeOnPopstate"];
|
9527
|
+
const popupInheritKeys$1 = [...popupSharedPropKeys, "transition", "closeOnPopstate", "destroyOnClose"];
|
9526
9528
|
var stdin_default$W = vue.defineComponent({
|
9527
9529
|
name: name$N,
|
9528
9530
|
props: dialogProps,
|
@@ -9735,7 +9737,8 @@ const DEFAULT_OPTIONS = {
|
|
9735
9737
|
showConfirmButton: true,
|
9736
9738
|
showCancelButton: false,
|
9737
9739
|
closeOnPopstate: true,
|
9738
|
-
closeOnClickOverlay: false
|
9740
|
+
closeOnClickOverlay: false,
|
9741
|
+
destroyOnClose: false
|
9739
9742
|
};
|
9740
9743
|
let currentOptions$1 = extend({}, DEFAULT_OPTIONS);
|
9741
9744
|
function initInstance$2() {
|
@@ -13754,7 +13757,8 @@ var stdin_default$r = vue.defineComponent({
|
|
13754
13757
|
props: signatureProps,
|
13755
13758
|
emits: ["submit", "clear", "start", "end", "signing"],
|
13756
13759
|
setup(props2, {
|
13757
|
-
emit
|
13760
|
+
emit,
|
13761
|
+
slots
|
13758
13762
|
}) {
|
13759
13763
|
const canvasRef = vue.ref();
|
13760
13764
|
const wrapRef = vue.ref();
|
@@ -13869,7 +13873,7 @@ var stdin_default$r = vue.defineComponent({
|
|
13869
13873
|
"onTouchstartPassive": touchStart,
|
13870
13874
|
"onTouchmove": touchMove,
|
13871
13875
|
"onTouchend": touchEnd
|
13872
|
-
}, null) : vue.createVNode("p", null, [props2.tips])]), vue.createVNode("div", {
|
13876
|
+
}, null) : slots.tips ? slots.tips() : vue.createVNode("p", null, [props2.tips])]), vue.createVNode("div", {
|
13873
13877
|
"class": bem$i("footer")
|
13874
13878
|
}, [vue.createVNode(Button, {
|
13875
13879
|
"size": "small",
|
@@ -15024,8 +15028,8 @@ var stdin_default$c = vue.defineComponent({
|
|
15024
15028
|
});
|
15025
15029
|
}
|
15026
15030
|
};
|
15027
|
-
const getClickHandler = (position
|
15028
|
-
if (
|
15031
|
+
const getClickHandler = (position) => (event) => {
|
15032
|
+
if (lockClick2 || opened) {
|
15029
15033
|
event.stopPropagation();
|
15030
15034
|
}
|
15031
15035
|
if (lockClick2) {
|
@@ -15039,7 +15043,7 @@ var stdin_default$c = vue.defineComponent({
|
|
15039
15043
|
return vue.createVNode("div", {
|
15040
15044
|
"ref": ref2,
|
15041
15045
|
"class": bem$6(side),
|
15042
|
-
"onClick": getClickHandler(side
|
15046
|
+
"onClick": getClickHandler(side)
|
15043
15047
|
}, [contentSlot()]);
|
15044
15048
|
}
|
15045
15049
|
};
|
@@ -15062,7 +15066,7 @@ var stdin_default$c = vue.defineComponent({
|
|
15062
15066
|
return vue.createVNode("div", {
|
15063
15067
|
"ref": root,
|
15064
15068
|
"class": bem$6(),
|
15065
|
-
"onClick": getClickHandler("cell"
|
15069
|
+
"onClick": getClickHandler("cell"),
|
15066
15070
|
"onTouchstartPassive": onTouchStart,
|
15067
15071
|
"onTouchend": onTouchEnd,
|
15068
15072
|
"onTouchcancel": onTouchEnd
|
@@ -17076,7 +17080,7 @@ const Lazyload = {
|
|
17076
17080
|
});
|
17077
17081
|
}
|
17078
17082
|
};
|
17079
|
-
const version = "4.9.
|
17083
|
+
const version = "4.9.18";
|
17080
17084
|
function install(app) {
|
17081
17085
|
const components = [
|
17082
17086
|
ActionBar,
|
package/lib/vant.es.js
CHANGED
@@ -2027,7 +2027,7 @@ function scrollTopTo(scroller, to, duration, callback) {
|
|
2027
2027
|
setScrollTop(scroller, current2);
|
2028
2028
|
if (isDown && current2 < to || !isDown && current2 > to) {
|
2029
2029
|
rafId = raf(animate);
|
2030
|
-
} else
|
2030
|
+
} else {
|
2031
2031
|
rafId = raf(callback);
|
2032
2032
|
}
|
2033
2033
|
}
|
@@ -4289,7 +4289,9 @@ var stdin_default$1v = defineComponent({
|
|
4289
4289
|
value = formatNumber(value, isNumber, isNumber);
|
4290
4290
|
if (trigger === "onBlur" && value !== "" && (props2.min !== void 0 || props2.max !== void 0)) {
|
4291
4291
|
const adjustedValue = clamp(+value, (_a = props2.min) != null ? _a : -Infinity, (_b = props2.max) != null ? _b : Infinity);
|
4292
|
-
value
|
4292
|
+
if (+value !== adjustedValue) {
|
4293
|
+
value = adjustedValue.toString();
|
4294
|
+
}
|
4293
4295
|
}
|
4294
4296
|
}
|
4295
4297
|
let formatterDiffLen = 0;
|
@@ -5049,7 +5051,6 @@ const DEFAULT_DATA = {
|
|
5049
5051
|
tel: "",
|
5050
5052
|
city: "",
|
5051
5053
|
county: "",
|
5052
|
-
country: "",
|
5053
5054
|
province: "",
|
5054
5055
|
areaCode: "",
|
5055
5056
|
isDefault: false,
|
@@ -9518,9 +9519,10 @@ const dialogProps = extend({}, popupSharedProps, {
|
|
9518
9519
|
confirmButtonDisabled: Boolean,
|
9519
9520
|
showConfirmButton: truthProp,
|
9520
9521
|
closeOnClickOverlay: Boolean,
|
9521
|
-
keyboardEnabled: truthProp
|
9522
|
+
keyboardEnabled: truthProp,
|
9523
|
+
destroyOnClose: Boolean
|
9522
9524
|
});
|
9523
|
-
const popupInheritKeys$1 = [...popupSharedPropKeys, "transition", "closeOnPopstate"];
|
9525
|
+
const popupInheritKeys$1 = [...popupSharedPropKeys, "transition", "closeOnPopstate", "destroyOnClose"];
|
9524
9526
|
var stdin_default$W = defineComponent({
|
9525
9527
|
name: name$N,
|
9526
9528
|
props: dialogProps,
|
@@ -9733,7 +9735,8 @@ const DEFAULT_OPTIONS = {
|
|
9733
9735
|
showConfirmButton: true,
|
9734
9736
|
showCancelButton: false,
|
9735
9737
|
closeOnPopstate: true,
|
9736
|
-
closeOnClickOverlay: false
|
9738
|
+
closeOnClickOverlay: false,
|
9739
|
+
destroyOnClose: false
|
9737
9740
|
};
|
9738
9741
|
let currentOptions$1 = extend({}, DEFAULT_OPTIONS);
|
9739
9742
|
function initInstance$2() {
|
@@ -13752,7 +13755,8 @@ var stdin_default$r = defineComponent({
|
|
13752
13755
|
props: signatureProps,
|
13753
13756
|
emits: ["submit", "clear", "start", "end", "signing"],
|
13754
13757
|
setup(props2, {
|
13755
|
-
emit
|
13758
|
+
emit,
|
13759
|
+
slots
|
13756
13760
|
}) {
|
13757
13761
|
const canvasRef = ref();
|
13758
13762
|
const wrapRef = ref();
|
@@ -13867,7 +13871,7 @@ var stdin_default$r = defineComponent({
|
|
13867
13871
|
"onTouchstartPassive": touchStart,
|
13868
13872
|
"onTouchmove": touchMove,
|
13869
13873
|
"onTouchend": touchEnd
|
13870
|
-
}, null) : createVNode("p", null, [props2.tips])]), createVNode("div", {
|
13874
|
+
}, null) : slots.tips ? slots.tips() : createVNode("p", null, [props2.tips])]), createVNode("div", {
|
13871
13875
|
"class": bem$i("footer")
|
13872
13876
|
}, [createVNode(Button, {
|
13873
13877
|
"size": "small",
|
@@ -15022,8 +15026,8 @@ var stdin_default$c = defineComponent({
|
|
15022
15026
|
});
|
15023
15027
|
}
|
15024
15028
|
};
|
15025
|
-
const getClickHandler = (position
|
15026
|
-
if (
|
15029
|
+
const getClickHandler = (position) => (event) => {
|
15030
|
+
if (lockClick2 || opened) {
|
15027
15031
|
event.stopPropagation();
|
15028
15032
|
}
|
15029
15033
|
if (lockClick2) {
|
@@ -15037,7 +15041,7 @@ var stdin_default$c = defineComponent({
|
|
15037
15041
|
return createVNode("div", {
|
15038
15042
|
"ref": ref2,
|
15039
15043
|
"class": bem$6(side),
|
15040
|
-
"onClick": getClickHandler(side
|
15044
|
+
"onClick": getClickHandler(side)
|
15041
15045
|
}, [contentSlot()]);
|
15042
15046
|
}
|
15043
15047
|
};
|
@@ -15060,7 +15064,7 @@ var stdin_default$c = defineComponent({
|
|
15060
15064
|
return createVNode("div", {
|
15061
15065
|
"ref": root,
|
15062
15066
|
"class": bem$6(),
|
15063
|
-
"onClick": getClickHandler("cell"
|
15067
|
+
"onClick": getClickHandler("cell"),
|
15064
15068
|
"onTouchstartPassive": onTouchStart,
|
15065
15069
|
"onTouchend": onTouchEnd,
|
15066
15070
|
"onTouchcancel": onTouchEnd
|
@@ -17074,7 +17078,7 @@ const Lazyload = {
|
|
17074
17078
|
});
|
17075
17079
|
}
|
17076
17080
|
};
|
17077
|
-
const version = "4.9.
|
17081
|
+
const version = "4.9.18";
|
17078
17082
|
function install(app) {
|
17079
17083
|
const components = [
|
17080
17084
|
ActionBar,
|
package/lib/vant.js
CHANGED
@@ -2482,7 +2482,7 @@
|
|
2482
2482
|
setScrollTop(scroller, current2);
|
2483
2483
|
if (isDown && current2 < to || !isDown && current2 > to) {
|
2484
2484
|
rafId = raf(animate);
|
2485
|
-
} else
|
2485
|
+
} else {
|
2486
2486
|
rafId = raf(callback);
|
2487
2487
|
}
|
2488
2488
|
}
|
@@ -4735,7 +4735,9 @@
|
|
4735
4735
|
value = formatNumber(value, isNumber, isNumber);
|
4736
4736
|
if (trigger === "onBlur" && value !== "" && (props2.min !== void 0 || props2.max !== void 0)) {
|
4737
4737
|
const adjustedValue = clamp(+value, (_a = props2.min) != null ? _a : -Infinity, (_b = props2.max) != null ? _b : Infinity);
|
4738
|
-
value
|
4738
|
+
if (+value !== adjustedValue) {
|
4739
|
+
value = adjustedValue.toString();
|
4740
|
+
}
|
4739
4741
|
}
|
4740
4742
|
}
|
4741
4743
|
let formatterDiffLen = 0;
|
@@ -5495,7 +5497,6 @@
|
|
5495
5497
|
tel: "",
|
5496
5498
|
city: "",
|
5497
5499
|
county: "",
|
5498
|
-
country: "",
|
5499
5500
|
province: "",
|
5500
5501
|
areaCode: "",
|
5501
5502
|
isDefault: false,
|
@@ -9941,9 +9942,10 @@
|
|
9941
9942
|
confirmButtonDisabled: Boolean,
|
9942
9943
|
showConfirmButton: truthProp,
|
9943
9944
|
closeOnClickOverlay: Boolean,
|
9944
|
-
keyboardEnabled: truthProp
|
9945
|
+
keyboardEnabled: truthProp,
|
9946
|
+
destroyOnClose: Boolean
|
9945
9947
|
});
|
9946
|
-
const popupInheritKeys$1 = [...popupSharedPropKeys, "transition", "closeOnPopstate"];
|
9948
|
+
const popupInheritKeys$1 = [...popupSharedPropKeys, "transition", "closeOnPopstate", "destroyOnClose"];
|
9947
9949
|
var stdin_default$W = __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent({
|
9948
9950
|
name: name$N,
|
9949
9951
|
props: dialogProps,
|
@@ -10156,7 +10158,8 @@
|
|
10156
10158
|
showConfirmButton: true,
|
10157
10159
|
showCancelButton: false,
|
10158
10160
|
closeOnPopstate: true,
|
10159
|
-
closeOnClickOverlay: false
|
10161
|
+
closeOnClickOverlay: false,
|
10162
|
+
destroyOnClose: false
|
10160
10163
|
};
|
10161
10164
|
let currentOptions$1 = extend({}, DEFAULT_OPTIONS$1);
|
10162
10165
|
function initInstance$2() {
|
@@ -13460,7 +13463,7 @@
|
|
13460
13463
|
};
|
13461
13464
|
function eventListeners_effect(_ref) {
|
13462
13465
|
var state = _ref.state, instance2 = _ref.instance, options = _ref.options;
|
13463
|
-
var _options$scroll = options.scroll, scroll = void 0 === _options$scroll
|
13466
|
+
var _options$scroll = options.scroll, scroll = void 0 === _options$scroll ? true : _options$scroll, _options$resize = options.resize, resize = void 0 === _options$resize ? true : _options$resize;
|
13464
13467
|
var window1 = getWindow(state.elements.popper);
|
13465
13468
|
var scrollParents = [].concat(state.scrollParents.reference, state.scrollParents.popper);
|
13466
13469
|
if (scroll) scrollParents.forEach(function(scrollParent) {
|
@@ -13547,7 +13550,7 @@
|
|
13547
13550
|
}
|
13548
13551
|
return offsets;
|
13549
13552
|
}
|
13550
|
-
function
|
13553
|
+
function popperOffsets_popperOffsets(_ref) {
|
13551
13554
|
var state = _ref.state, name2 = _ref.name;
|
13552
13555
|
state.modifiersData[name2] = computeOffsets({
|
13553
13556
|
reference: state.rects.reference,
|
@@ -13556,11 +13559,11 @@
|
|
13556
13559
|
placement: state.placement
|
13557
13560
|
});
|
13558
13561
|
}
|
13559
|
-
const
|
13562
|
+
const popperOffsets = {
|
13560
13563
|
name: "popperOffsets",
|
13561
13564
|
enabled: true,
|
13562
13565
|
phase: "read",
|
13563
|
-
fn:
|
13566
|
+
fn: popperOffsets_popperOffsets,
|
13564
13567
|
data: {}
|
13565
13568
|
};
|
13566
13569
|
var unsetSides = {
|
@@ -13637,9 +13640,9 @@
|
|
13637
13640
|
}
|
13638
13641
|
return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + "px" : "", _Object$assign2[sideX] = hasX ? x + "px" : "", _Object$assign2.transform = "", _Object$assign2));
|
13639
13642
|
}
|
13640
|
-
function
|
13643
|
+
function computeStyles_computeStyles(_ref5) {
|
13641
13644
|
var state = _ref5.state, options = _ref5.options;
|
13642
|
-
var _options$gpuAccelerat = options.gpuAcceleration, gpuAcceleration = void 0 === _options$gpuAccelerat
|
13645
|
+
var _options$gpuAccelerat = options.gpuAcceleration, gpuAcceleration = void 0 === _options$gpuAccelerat ? true : _options$gpuAccelerat, _options$adaptive = options.adaptive, adaptive = void 0 === _options$adaptive ? true : _options$adaptive, _options$roundOffsets = options.roundOffsets, roundOffsets = void 0 === _options$roundOffsets ? true : _options$roundOffsets;
|
13643
13646
|
var commonStyles = {
|
13644
13647
|
placement: getBasePlacement(state.placement),
|
13645
13648
|
variation: getVariation(state.placement),
|
@@ -13664,14 +13667,14 @@
|
|
13664
13667
|
"data-popper-placement": state.placement
|
13665
13668
|
});
|
13666
13669
|
}
|
13667
|
-
const
|
13670
|
+
const computeStyles = {
|
13668
13671
|
name: "computeStyles",
|
13669
13672
|
enabled: true,
|
13670
13673
|
phase: "beforeWrite",
|
13671
|
-
fn:
|
13674
|
+
fn: computeStyles_computeStyles,
|
13672
13675
|
data: {}
|
13673
13676
|
};
|
13674
|
-
function
|
13677
|
+
function applyStyles_applyStyles(_ref) {
|
13675
13678
|
var state = _ref.state;
|
13676
13679
|
Object.keys(state.elements).forEach(function(name2) {
|
13677
13680
|
var style = state.styles[name2] || {};
|
@@ -13720,11 +13723,11 @@
|
|
13720
13723
|
});
|
13721
13724
|
};
|
13722
13725
|
}
|
13723
|
-
const
|
13726
|
+
const applyStyles = {
|
13724
13727
|
name: "applyStyles",
|
13725
13728
|
enabled: true,
|
13726
13729
|
phase: "write",
|
13727
|
-
fn:
|
13730
|
+
fn: applyStyles_applyStyles,
|
13728
13731
|
effect: applyStyles_effect,
|
13729
13732
|
requires: [
|
13730
13733
|
"computeStyles"
|
@@ -13732,9 +13735,9 @@
|
|
13732
13735
|
};
|
13733
13736
|
var popper_lite_defaultModifiers = [
|
13734
13737
|
eventListeners,
|
13735
|
-
|
13736
|
-
|
13737
|
-
|
13738
|
+
popperOffsets,
|
13739
|
+
computeStyles,
|
13740
|
+
applyStyles
|
13738
13741
|
];
|
13739
13742
|
var popper_lite_createPopper = /* @__PURE__ */ popperGenerator({
|
13740
13743
|
defaultModifiers: popper_lite_defaultModifiers
|
@@ -14915,7 +14918,8 @@
|
|
14915
14918
|
props: signatureProps,
|
14916
14919
|
emits: ["submit", "clear", "start", "end", "signing"],
|
14917
14920
|
setup(props2, {
|
14918
|
-
emit
|
14921
|
+
emit,
|
14922
|
+
slots
|
14919
14923
|
}) {
|
14920
14924
|
const canvasRef = __WEBPACK_EXTERNAL_MODULE_vue__.ref();
|
14921
14925
|
const wrapRef = __WEBPACK_EXTERNAL_MODULE_vue__.ref();
|
@@ -15030,7 +15034,7 @@
|
|
15030
15034
|
"onTouchstartPassive": touchStart,
|
15031
15035
|
"onTouchmove": touchMove,
|
15032
15036
|
"onTouchend": touchEnd
|
15033
|
-
}, null) : __WEBPACK_EXTERNAL_MODULE_vue__.createVNode("p", null, [props2.tips])]), __WEBPACK_EXTERNAL_MODULE_vue__.createVNode("div", {
|
15037
|
+
}, null) : slots.tips ? slots.tips() : __WEBPACK_EXTERNAL_MODULE_vue__.createVNode("p", null, [props2.tips])]), __WEBPACK_EXTERNAL_MODULE_vue__.createVNode("div", {
|
15034
15038
|
"class": bem$i("footer")
|
15035
15039
|
}, [__WEBPACK_EXTERNAL_MODULE_vue__.createVNode(Button, {
|
15036
15040
|
"size": "small",
|
@@ -16182,8 +16186,8 @@
|
|
16182
16186
|
});
|
16183
16187
|
}
|
16184
16188
|
};
|
16185
|
-
const getClickHandler = (position
|
16186
|
-
if (
|
16189
|
+
const getClickHandler = (position) => (event) => {
|
16190
|
+
if (lockClick2 || opened) {
|
16187
16191
|
event.stopPropagation();
|
16188
16192
|
}
|
16189
16193
|
if (lockClick2) {
|
@@ -16197,7 +16201,7 @@
|
|
16197
16201
|
return __WEBPACK_EXTERNAL_MODULE_vue__.createVNode("div", {
|
16198
16202
|
"ref": ref2,
|
16199
16203
|
"class": bem$6(side),
|
16200
|
-
"onClick": getClickHandler(side
|
16204
|
+
"onClick": getClickHandler(side)
|
16201
16205
|
}, [contentSlot()]);
|
16202
16206
|
}
|
16203
16207
|
};
|
@@ -16220,7 +16224,7 @@
|
|
16220
16224
|
return __WEBPACK_EXTERNAL_MODULE_vue__.createVNode("div", {
|
16221
16225
|
"ref": root,
|
16222
16226
|
"class": bem$6(),
|
16223
|
-
"onClick": getClickHandler("cell"
|
16227
|
+
"onClick": getClickHandler("cell"),
|
16224
16228
|
"onTouchstartPassive": onTouchStart,
|
16225
16229
|
"onTouchend": onTouchEnd,
|
16226
16230
|
"onTouchcancel": onTouchEnd
|
@@ -18211,7 +18215,7 @@
|
|
18211
18215
|
});
|
18212
18216
|
}
|
18213
18217
|
};
|
18214
|
-
const version = "4.9.
|
18218
|
+
const version = "4.9.18";
|
18215
18219
|
function install(app) {
|
18216
18220
|
const components = [
|
18217
18221
|
ActionBar,
|