vant 4.0.4 → 4.0.6
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/badge/Badge.mjs +12 -3
- package/es/form/Form.mjs +3 -1
- package/es/index.d.ts +1 -1
- package/es/index.mjs +1 -1
- package/es/locale/lang/mm-MN.d.ts +62 -0
- package/es/locale/lang/mm-MN.mjs +64 -0
- package/es/locale/lang/nl-NL.d.ts +62 -0
- package/es/locale/lang/nl-NL.mjs +64 -0
- package/es/picker/index.css +1 -1
- package/lib/badge/Badge.js +12 -3
- package/lib/form/Form.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/mm-MN.d.ts +62 -0
- package/lib/locale/lang/mm-MN.js +83 -0
- package/lib/locale/lang/nl-NL.d.ts +62 -0
- package/lib/locale/lang/nl-NL.js +83 -0
- package/lib/picker/index.css +1 -1
- package/lib/vant.cjs.js +63 -52
- package/lib/vant.es.js +63 -52
- package/lib/vant.js +62 -51
- package/lib/vant.min.js +1 -1
- package/lib/web-types.json +1 -1
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
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.
|
205
|
+
const version = "4.0.6";
|
206
206
|
function install(app) {
|
207
207
|
const components = [
|
208
208
|
import_action_bar.ActionBar,
|
@@ -0,0 +1,62 @@
|
|
1
|
+
declare const _default: {
|
2
|
+
name: string;
|
3
|
+
tel: string;
|
4
|
+
save: string;
|
5
|
+
confirm: string;
|
6
|
+
cancel: string;
|
7
|
+
delete: string;
|
8
|
+
loading: string;
|
9
|
+
noCoupon: string;
|
10
|
+
nameEmpaty: string;
|
11
|
+
addContact: string;
|
12
|
+
telInvalid: string;
|
13
|
+
vanCalendar: {
|
14
|
+
end: string;
|
15
|
+
start: string;
|
16
|
+
title: string;
|
17
|
+
weekdays: string[];
|
18
|
+
monthTitle: (year: number, month: number) => string;
|
19
|
+
rangePrompt: (maxRange: number) => string;
|
20
|
+
};
|
21
|
+
vanCascader: {
|
22
|
+
select: string;
|
23
|
+
};
|
24
|
+
vanPagination: {
|
25
|
+
prev: string;
|
26
|
+
next: string;
|
27
|
+
};
|
28
|
+
vanPullRefresh: {
|
29
|
+
pulling: string;
|
30
|
+
loosing: string;
|
31
|
+
};
|
32
|
+
vanSubmitBar: {
|
33
|
+
label: string;
|
34
|
+
};
|
35
|
+
vanCoupon: {
|
36
|
+
unlimited: string;
|
37
|
+
discount: (discount: number) => string;
|
38
|
+
condition: (condition: number) => string;
|
39
|
+
};
|
40
|
+
vanCouponCell: {
|
41
|
+
title: string;
|
42
|
+
count: (count: number) => string;
|
43
|
+
};
|
44
|
+
vanCouponList: {
|
45
|
+
exchange: string;
|
46
|
+
close: string;
|
47
|
+
enable: string;
|
48
|
+
disabled: string;
|
49
|
+
placeholder: string;
|
50
|
+
};
|
51
|
+
vanAddressEdit: {
|
52
|
+
area: string;
|
53
|
+
areaEmpty: string;
|
54
|
+
addressEmpty: string;
|
55
|
+
addressDetail: string;
|
56
|
+
defaultAddress: string;
|
57
|
+
};
|
58
|
+
vanAddressList: {
|
59
|
+
add: string;
|
60
|
+
};
|
61
|
+
};
|
62
|
+
export default _default;
|
@@ -0,0 +1,83 @@
|
|
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: "\u041D\u044D\u0440",
|
25
|
+
tel: "\u0423\u0442\u0430\u0441",
|
26
|
+
save: "\u0425\u0430\u0434\u0433\u0430\u043B\u0430\u0445",
|
27
|
+
confirm: "\u0411\u0430\u0442\u0430\u043B\u0433\u0430\u0430\u0436\u0443\u0443\u043B\u0430\u0445",
|
28
|
+
cancel: "\u0426\u0443\u0446\u043B\u0430\u0445",
|
29
|
+
delete: "\u0423\u0441\u0442\u0433\u0430\u0445",
|
30
|
+
loading: "\u0410\u0447\u0430\u0430\u0436 \u0431\u0430\u0439\u043D\u0430...",
|
31
|
+
noCoupon: "\u041A\u0443\u043F\u043E\u043D \u0431\u0430\u0439\u0445\u0433\u04AF\u0439",
|
32
|
+
nameEmpaty: "\u041D\u044D\u0440\u044D\u044D \u043E\u0440\u0443\u0443\u043B\u043D\u0430 \u0443\u0443",
|
33
|
+
addContact: "\u0425\u0430\u0440\u0438\u043B\u0446\u0430\u0433\u0447 \u043D\u044D\u043C\u044D\u0445",
|
34
|
+
telInvalid: "\u0413\u0430\u0437\u0430\u0440 \u0443\u0442\u0430\u0441\u043D\u044B \u0434\u0443\u0433\u0430\u0430\u0440",
|
35
|
+
vanCalendar: {
|
36
|
+
end: "\u0422\u04E9\u0433\u0441\u0433\u04E9\u043B",
|
37
|
+
start: "\u042D\u0445\u043B\u044D\u0445",
|
38
|
+
title: "\u0425\u0443\u0430\u043D\u043B\u0438",
|
39
|
+
weekdays: ["\u041D\u044F\u043C", "\u0414\u0430\u0432\u0430\u0430", "\u041C\u044F\u0433\u043C\u0430\u0440", "\u041B\u0445\u0430\u0433\u0432\u0430", "\u041F\u04AF\u0440\u044D\u0432", "\u0411\u0430\u0430\u0441\u0430\u043D", "\u0411\u044F\u043C\u0431\u0430"],
|
40
|
+
monthTitle: (year, month) => `${year}/${month}`,
|
41
|
+
rangePrompt: (maxRange) => `${maxRange} \u0445\u043E\u043D\u043E\u0433\u043E\u043E\u0441 \u0438\u043B\u04AF\u04AF\u0433\u04AF\u0439 \u0441\u043E\u043D\u0433\u043E\u0445`
|
42
|
+
},
|
43
|
+
vanCascader: {
|
44
|
+
select: "\u0421\u043E\u043D\u0433\u043E\u0445"
|
45
|
+
},
|
46
|
+
vanPagination: {
|
47
|
+
prev: "\u04E8\u043C\u043D\u04E9\u0445",
|
48
|
+
next: "\u0414\u0430\u0440\u0430\u0430\u0433\u0438\u0439\u043D"
|
49
|
+
},
|
50
|
+
vanPullRefresh: {
|
51
|
+
pulling: "\u0421\u044D\u0440\u0433\u044D\u044D\u0445\u0438\u0439\u043D \u0442\u0443\u043B\u0434 \u0442\u0430\u0442\u0430\u0445...",
|
52
|
+
loosing: "\u0421\u044D\u0440\u0433\u044D\u044D\u0445\u0438\u0439\u043D \u0442\u0443\u043B\u0434 \u0441\u0443\u043B..."
|
53
|
+
},
|
54
|
+
vanSubmitBar: {
|
55
|
+
label: "\u041D\u0438\u0439\u0442:"
|
56
|
+
},
|
57
|
+
vanCoupon: {
|
58
|
+
unlimited: "\u0425\u044F\u0437\u0433\u0430\u0430\u0440\u0433\u04AF\u0439",
|
59
|
+
discount: (discount) => `${discount * 10}% \u0445\u044F\u043C\u0434\u0440\u0430\u043B`,
|
60
|
+
condition: (condition) => `\u0425\u0430\u043C\u0433\u0438\u0439\u043D \u0431\u0430\u0433\u0430\u0434\u0430\u0430 ${condition}`
|
61
|
+
},
|
62
|
+
vanCouponCell: {
|
63
|
+
title: "\u041A\u0443\u043F\u043E\u043D",
|
64
|
+
count: (count) => `\u0422\u0430\u043D\u0434 ${count} \u043A\u0443\u043F\u043E\u043D \u0431\u0430\u0439\u043D\u0430`
|
65
|
+
},
|
66
|
+
vanCouponList: {
|
67
|
+
exchange: "\u0441\u043E\u043B\u0438\u043B\u0446\u043E\u043E",
|
68
|
+
close: "\u0445\u0430\u0430\u0445",
|
69
|
+
enable: "\u0411\u043E\u043B\u043E\u043C\u0436\u0442\u043E\u0439",
|
70
|
+
disabled: "\u0411\u043E\u043B\u043E\u043C\u0436\u0433\u04AF\u0439",
|
71
|
+
placeholder: "\u041A\u0443\u043F\u043E\u043D \u043A\u043E\u0434"
|
72
|
+
},
|
73
|
+
vanAddressEdit: {
|
74
|
+
area: "\u0422\u0430\u043B\u0431\u0430\u0439",
|
75
|
+
areaEmpty: "\u0425\u04AF\u043B\u044D\u044D\u043D \u0430\u0432\u0430\u0445 \u0431\u04AF\u0441\u044D\u044D \u0441\u043E\u043D\u0433\u043E\u043D\u043E \u0443\u0443",
|
76
|
+
addressEmpty: "\u0425\u0430\u044F\u0433 \u0445\u043E\u043E\u0441\u043E\u043D \u0431\u0430\u0439\u0436 \u0431\u043E\u043B\u043E\u0445\u0433\u04AF\u0439",
|
77
|
+
addressDetail: "\u0425\u0430\u044F\u0433",
|
78
|
+
defaultAddress: "\u04E8\u0433\u04E9\u0433\u0434\u043C\u04E9\u043B \u0445\u0430\u044F\u0433\u0430\u0430\u0440 \u0442\u043E\u0445\u0438\u0440\u0443\u0443\u043B\u0430\u0445"
|
79
|
+
},
|
80
|
+
vanAddressList: {
|
81
|
+
add: "\u0428\u0438\u043D\u044D \u0445\u0430\u044F\u0433 \u043D\u044D\u043C\u044D\u0445"
|
82
|
+
}
|
83
|
+
};
|
@@ -0,0 +1,62 @@
|
|
1
|
+
declare const _default: {
|
2
|
+
name: string;
|
3
|
+
tel: string;
|
4
|
+
save: string;
|
5
|
+
confirm: string;
|
6
|
+
cancel: string;
|
7
|
+
delete: string;
|
8
|
+
loading: string;
|
9
|
+
noCoupon: string;
|
10
|
+
nameEmpty: string;
|
11
|
+
addContact: string;
|
12
|
+
telInvalid: string;
|
13
|
+
vanCalendar: {
|
14
|
+
end: string;
|
15
|
+
start: string;
|
16
|
+
title: string;
|
17
|
+
weekdays: string[];
|
18
|
+
monthTitle: (year: number, month: number) => string;
|
19
|
+
rangePrompt: (maxRange: number) => string;
|
20
|
+
};
|
21
|
+
vanCascader: {
|
22
|
+
select: string;
|
23
|
+
};
|
24
|
+
vanPagination: {
|
25
|
+
prev: string;
|
26
|
+
next: string;
|
27
|
+
};
|
28
|
+
vanPullRefresh: {
|
29
|
+
pulling: string;
|
30
|
+
loosing: string;
|
31
|
+
};
|
32
|
+
vanSubmitBar: {
|
33
|
+
label: string;
|
34
|
+
};
|
35
|
+
vanCoupon: {
|
36
|
+
unlimited: string;
|
37
|
+
discount: (discount: number) => string;
|
38
|
+
condition: (condition: number) => string;
|
39
|
+
};
|
40
|
+
vanCouponCell: {
|
41
|
+
title: string;
|
42
|
+
count: (count: number) => string;
|
43
|
+
};
|
44
|
+
vanCouponList: {
|
45
|
+
exchange: string;
|
46
|
+
close: string;
|
47
|
+
enable: string;
|
48
|
+
disabled: string;
|
49
|
+
placeholder: string;
|
50
|
+
};
|
51
|
+
vanAddressEdit: {
|
52
|
+
area: string;
|
53
|
+
areaEmpty: string;
|
54
|
+
addressEmpty: string;
|
55
|
+
addressDetail: string;
|
56
|
+
defaultAddress: string;
|
57
|
+
};
|
58
|
+
vanAddressList: {
|
59
|
+
add: string;
|
60
|
+
};
|
61
|
+
};
|
62
|
+
export default _default;
|
@@ -0,0 +1,83 @@
|
|
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: "naam",
|
25
|
+
tel: "Telefoon",
|
26
|
+
save: "Opslaan",
|
27
|
+
confirm: "Bevestigen",
|
28
|
+
cancel: "Annuleren",
|
29
|
+
delete: "Verwijderen",
|
30
|
+
loading: "Bezig met laden...",
|
31
|
+
noCoupon: "Geen coupons",
|
32
|
+
nameEmpty: "Vul de naam in",
|
33
|
+
addContact: "Contact toevoegen",
|
34
|
+
telInvalid: "Onjuist opgemaakt telefoonnummer",
|
35
|
+
vanCalendar: {
|
36
|
+
end: "Einde",
|
37
|
+
start: "Beginnen",
|
38
|
+
title: "Kalender",
|
39
|
+
weekdays: ["Zon", "Maan", "Dins", "Woens", "Donder", "Vrij", "Zater"],
|
40
|
+
monthTitle: (year, month) => `${year}/${month}`,
|
41
|
+
rangePrompt: (maxRange) => `Kies niet meer dan ${maxRange} dagen`
|
42
|
+
},
|
43
|
+
vanCascader: {
|
44
|
+
select: "Selecteer"
|
45
|
+
},
|
46
|
+
vanPagination: {
|
47
|
+
prev: "Vorige",
|
48
|
+
next: "Volgende"
|
49
|
+
},
|
50
|
+
vanPullRefresh: {
|
51
|
+
pulling: "Trekken om te vernieuwen...",
|
52
|
+
loosing: "Los om te verversen..."
|
53
|
+
},
|
54
|
+
vanSubmitBar: {
|
55
|
+
label: "Totaal:"
|
56
|
+
},
|
57
|
+
vanCoupon: {
|
58
|
+
unlimited: "Onbeperkt",
|
59
|
+
discount: (discount) => `${discount * 10}% korting`,
|
60
|
+
condition: (condition) => `Ten minste ${condition}`
|
61
|
+
},
|
62
|
+
vanCouponCell: {
|
63
|
+
title: "Waardebon",
|
64
|
+
count: (count) => `Je hebt ${count} coupons`
|
65
|
+
},
|
66
|
+
vanCouponList: {
|
67
|
+
exchange: "Uitwisselen",
|
68
|
+
close: "Sluiten",
|
69
|
+
enable: "Beschikbaar",
|
70
|
+
disabled: "Niet beschikbaar",
|
71
|
+
placeholder: "Couponcode"
|
72
|
+
},
|
73
|
+
vanAddressEdit: {
|
74
|
+
area: "Gebied",
|
75
|
+
areaEmpty: "Selecteer een ontvangstgebied",
|
76
|
+
addressEmpty: "Adres mag niet leeg zijn",
|
77
|
+
addressDetail: "Adres",
|
78
|
+
defaultAddress: "Instellen als standaardadres"
|
79
|
+
},
|
80
|
+
vanAddressList: {
|
81
|
+
add: "Nieuw adres toevoegen"
|
82
|
+
}
|
83
|
+
};
|
package/lib/picker/index.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
:root{--van-picker-background: var(--van-background-2);--van-picker-toolbar-height: 44px;--van-picker-title-font-size: var(--van-font-size-lg);--van-picker-title-line-height: var(--van-line-height-md);--van-picker-action-padding: 0 var(--van-padding-md);--van-picker-action-font-size: var(--van-font-size-md);--van-picker-confirm-action-color: var(--van-link-color);--van-picker-cancel-action-color: var(--van-text-color-2);--van-picker-option-font-size: var(--van-font-size-lg);--van-picker-option-padding: 0 var(--van-padding-base);--van-picker-option-text-color: var(--van-text-color);--van-picker-option-disabled-opacity: .3;--van-picker-loading-icon-color: var(--van-primary-color);--van-picker-loading-mask-color: rgba(255, 255, 255, .9);--van-picker-mask-color: linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .4)), linear-gradient(0deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .4))}.van-theme-dark{--van-picker-mask-color: linear-gradient(180deg, rgba(0, 0, 0, .6), rgba(0, 0, 0, .1)), linear-gradient(0deg, rgba(0, 0, 0, .6), rgba(0, 0, 0, .1))}.van-picker{position:relative;background:var(--van-picker-background);-webkit-user-select:none;user-select:none}.van-picker__toolbar{display:flex;align-items:center;justify-content:space-between;height:var(--van-picker-toolbar-height)}.van-picker__cancel,.van-picker__confirm{height:100%;padding:var(--van-picker-action-padding);font-size:var(--van-picker-action-font-size);background-color:transparent;border:none}.van-picker__confirm{color:var(--van-picker-confirm-action-color)}.van-picker__cancel{color:var(--van-picker-cancel-action-color)}.van-picker__title{color:var(--van-text-color);max-width:50%;font-weight:var(--van-font-bold);font-size:var(--van-picker-title-font-size);line-height:var(--van-picker-title-line-height);text-align:center}.van-picker__columns{position:relative;display:flex;cursor:-webkit-grab;cursor:grab}.van-picker__loading{position:absolute;top:0;right:0;bottom:0;left:0;z-index:3;display:flex;align-items:center;justify-content:center;color:var(--van-picker-loading-icon-color);background:var(--van-picker-loading-mask-color)}.van-picker__frame{position:absolute;top:50%;right:var(--van-padding-md);left:var(--van-padding-md);z-index:2;transform:translateY(-50%);pointer-events:none}.van-picker__mask{position:absolute;top:0;left:0;z-index:1;width:100%;height:100%;background-image:var(--van-picker-mask-color);background-repeat:no-repeat;background-position:top,bottom;transform:translateZ(0);pointer-events:none}.van-picker-column{flex:1;overflow:hidden;font-size:var(--van-picker-option-font-size)}.van-picker-column__wrapper{transition-timing-function:cubic-bezier(.23,1,.68,1)}.van-picker-column__item{display:flex;align-items:center;justify-content:center;padding:var(--van-picker-option-padding);color:var(--van-picker-option-text-color)}.van-picker-column__item--disabled{cursor:not-allowed;opacity:var(--van-picker-option-disabled-opacity)}
|
1
|
+
:root{--van-picker-background: var(--van-background-2);--van-picker-toolbar-height: 44px;--van-picker-title-font-size: var(--van-font-size-lg);--van-picker-title-line-height: var(--van-line-height-md);--van-picker-action-padding: 0 var(--van-padding-md);--van-picker-action-font-size: var(--van-font-size-md);--van-picker-confirm-action-color: var(--van-link-color);--van-picker-cancel-action-color: var(--van-text-color-2);--van-picker-option-font-size: var(--van-font-size-lg);--van-picker-option-padding: 0 var(--van-padding-base);--van-picker-option-text-color: var(--van-text-color);--van-picker-option-disabled-opacity: .3;--van-picker-loading-icon-color: var(--van-primary-color);--van-picker-loading-mask-color: rgba(255, 255, 255, .9);--van-picker-mask-color: linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .4)), linear-gradient(0deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .4))}.van-theme-dark{--van-picker-loading-mask-color: rgba(0, 0, 0, .6);--van-picker-mask-color: linear-gradient(180deg, rgba(0, 0, 0, .6), rgba(0, 0, 0, .1)), linear-gradient(0deg, rgba(0, 0, 0, .6), rgba(0, 0, 0, .1))}.van-picker{position:relative;background:var(--van-picker-background);-webkit-user-select:none;user-select:none}.van-picker__toolbar{display:flex;align-items:center;justify-content:space-between;height:var(--van-picker-toolbar-height)}.van-picker__cancel,.van-picker__confirm{height:100%;padding:var(--van-picker-action-padding);font-size:var(--van-picker-action-font-size);background-color:transparent;border:none}.van-picker__confirm{color:var(--van-picker-confirm-action-color)}.van-picker__cancel{color:var(--van-picker-cancel-action-color)}.van-picker__title{color:var(--van-text-color);max-width:50%;font-weight:var(--van-font-bold);font-size:var(--van-picker-title-font-size);line-height:var(--van-picker-title-line-height);text-align:center}.van-picker__columns{position:relative;display:flex;cursor:-webkit-grab;cursor:grab}.van-picker__loading{position:absolute;top:0;right:0;bottom:0;left:0;z-index:3;display:flex;align-items:center;justify-content:center;color:var(--van-picker-loading-icon-color);background:var(--van-picker-loading-mask-color)}.van-picker__frame{position:absolute;top:50%;right:var(--van-padding-md);left:var(--van-padding-md);z-index:2;transform:translateY(-50%);pointer-events:none}.van-picker__mask{position:absolute;top:0;left:0;z-index:1;width:100%;height:100%;background-image:var(--van-picker-mask-color);background-repeat:no-repeat;background-position:top,bottom;transform:translateZ(0);pointer-events:none}.van-picker-column{flex:1;overflow:hidden;font-size:var(--van-picker-option-font-size)}.van-picker-column__wrapper{transition-timing-function:cubic-bezier(.23,1,.68,1)}.van-picker-column__item{display:flex;align-items:center;justify-content:center;padding:var(--van-picker-option-padding);color:var(--van-picker-option-text-color)}.van-picker-column__item--disabled{cursor:not-allowed;opacity:var(--van-picker-option-disabled-opacity)}
|
package/lib/vant.cjs.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
3
|
-
const use = require("@vant/use");
|
4
3
|
const vue = require("vue");
|
4
|
+
const use = require("@vant/use");
|
5
5
|
const popperjs = require("@vant/popperjs");
|
6
6
|
const isDef = (val) => val !== void 0 && val !== null;
|
7
7
|
const isFunction = (val) => typeof val === "function";
|
@@ -238,64 +238,64 @@ function deepAssign(to, from) {
|
|
238
238
|
return to;
|
239
239
|
}
|
240
240
|
var stdin_default$1K = {
|
241
|
-
name: "
|
242
|
-
tel: "
|
243
|
-
save: "
|
244
|
-
confirm: "
|
245
|
-
cancel: "
|
246
|
-
delete: "
|
247
|
-
loading: "
|
248
|
-
noCoupon: "
|
249
|
-
nameEmpty: "
|
250
|
-
addContact: "
|
251
|
-
telInvalid: "
|
241
|
+
name: "姓名",
|
242
|
+
tel: "电话",
|
243
|
+
save: "保存",
|
244
|
+
confirm: "确认",
|
245
|
+
cancel: "取消",
|
246
|
+
delete: "删除",
|
247
|
+
loading: "加载中...",
|
248
|
+
noCoupon: "暂无优惠券",
|
249
|
+
nameEmpty: "请填写姓名",
|
250
|
+
addContact: "添加联系人",
|
251
|
+
telInvalid: "请填写正确的电话",
|
252
252
|
vanCalendar: {
|
253
|
-
end: "
|
254
|
-
start: "
|
255
|
-
title: "
|
256
|
-
weekdays: ["
|
257
|
-
monthTitle: (year, month) => `${year}
|
258
|
-
rangePrompt: (maxRange) =>
|
253
|
+
end: "结束",
|
254
|
+
start: "开始",
|
255
|
+
title: "日期选择",
|
256
|
+
weekdays: ["日", "一", "二", "三", "四", "五", "六"],
|
257
|
+
monthTitle: (year, month) => `${year}年${month}月`,
|
258
|
+
rangePrompt: (maxRange) => `最多选择 ${maxRange} 天`
|
259
259
|
},
|
260
260
|
vanCascader: {
|
261
|
-
select: "
|
261
|
+
select: "请选择"
|
262
262
|
},
|
263
263
|
vanPagination: {
|
264
|
-
prev: "
|
265
|
-
next: "
|
264
|
+
prev: "上一页",
|
265
|
+
next: "下一页"
|
266
266
|
},
|
267
267
|
vanPullRefresh: {
|
268
|
-
pulling: "
|
269
|
-
loosing: "
|
268
|
+
pulling: "下拉即可刷新...",
|
269
|
+
loosing: "释放即可刷新..."
|
270
270
|
},
|
271
271
|
vanSubmitBar: {
|
272
|
-
label: "
|
272
|
+
label: "合计:"
|
273
273
|
},
|
274
274
|
vanCoupon: {
|
275
|
-
unlimited: "
|
276
|
-
discount: (discount) => `${discount}
|
277
|
-
condition: (condition) =>
|
275
|
+
unlimited: "无门槛",
|
276
|
+
discount: (discount) => `${discount}折`,
|
277
|
+
condition: (condition) => `满${condition}元可用`
|
278
278
|
},
|
279
279
|
vanCouponCell: {
|
280
|
-
title: "
|
281
|
-
count: (count) => `${count}
|
280
|
+
title: "优惠券",
|
281
|
+
count: (count) => `${count}张可用`
|
282
282
|
},
|
283
283
|
vanCouponList: {
|
284
|
-
exchange: "
|
285
|
-
close: "
|
286
|
-
enable: "
|
287
|
-
disabled: "
|
288
|
-
placeholder: "
|
284
|
+
exchange: "兑换",
|
285
|
+
close: "不使用",
|
286
|
+
enable: "可用",
|
287
|
+
disabled: "不可用",
|
288
|
+
placeholder: "输入优惠码"
|
289
289
|
},
|
290
290
|
vanAddressEdit: {
|
291
|
-
area: "
|
292
|
-
areaEmpty: "
|
293
|
-
addressEmpty: "
|
294
|
-
addressDetail: "
|
295
|
-
defaultAddress: "
|
291
|
+
area: "地区",
|
292
|
+
areaEmpty: "请选择地区",
|
293
|
+
addressEmpty: "请填写详细地址",
|
294
|
+
addressDetail: "详细地址",
|
295
|
+
defaultAddress: "设为默认收货地址"
|
296
296
|
},
|
297
297
|
vanAddressList: {
|
298
|
-
add: "
|
298
|
+
add: "新增地址"
|
299
299
|
}
|
300
300
|
};
|
301
301
|
const lang = vue.ref("zh-CN");
|
@@ -546,18 +546,27 @@ var stdin_default$1H = vue.defineComponent({
|
|
546
546
|
return content;
|
547
547
|
}
|
548
548
|
};
|
549
|
+
const getOffsetWithMinusString = (val) => val.startsWith("-") ? val.replace("-", "") : `-${val}`;
|
549
550
|
const style = vue.computed(() => {
|
550
551
|
const style2 = {
|
551
552
|
background: props.color
|
552
553
|
};
|
553
554
|
if (props.offset) {
|
554
555
|
const [x, y] = props.offset;
|
556
|
+
const {
|
557
|
+
position
|
558
|
+
} = props;
|
559
|
+
const [offsetY, offsetX] = position.split("-");
|
555
560
|
if (slots.default) {
|
556
|
-
|
561
|
+
if (typeof y === "number") {
|
562
|
+
style2[offsetY] = addUnit(offsetY === "top" ? y : -y);
|
563
|
+
} else {
|
564
|
+
style2[offsetY] = offsetY === "top" ? addUnit(y) : getOffsetWithMinusString(y);
|
565
|
+
}
|
557
566
|
if (typeof x === "number") {
|
558
|
-
style2
|
567
|
+
style2[offsetX] = addUnit(offsetX === "left" ? x : -x);
|
559
568
|
} else {
|
560
|
-
style2
|
569
|
+
style2[offsetX] = offsetX === "left" ? addUnit(x) : getOffsetWithMinusString(x);
|
561
570
|
}
|
562
571
|
} else {
|
563
572
|
style2.marginTop = addUnit(y);
|
@@ -3670,7 +3679,9 @@ var stdin_default$1k = vue.defineComponent({
|
|
3670
3679
|
});
|
3671
3680
|
};
|
3672
3681
|
const getValues = () => children.reduce((form, field) => {
|
3673
|
-
|
3682
|
+
if (field.name !== void 0) {
|
3683
|
+
form[field.name] = field.formValue.value;
|
3684
|
+
}
|
3674
3685
|
return form;
|
3675
3686
|
}, {});
|
3676
3687
|
const submit = () => {
|
@@ -6675,7 +6686,7 @@ const cardProps = {
|
|
6675
6686
|
price: numericProp,
|
6676
6687
|
centered: Boolean,
|
6677
6688
|
lazyLoad: Boolean,
|
6678
|
-
currency: makeStringProp("
|
6689
|
+
currency: makeStringProp("¥"),
|
6679
6690
|
thumbLink: String,
|
6680
6691
|
originPrice: numericProp
|
6681
6692
|
};
|
@@ -7711,7 +7722,7 @@ var stdin_default$U = vue.defineComponent({
|
|
7711
7722
|
if (props.type === "add") {
|
7712
7723
|
return props.addText || t$d("addContact");
|
7713
7724
|
}
|
7714
|
-
return [vue.createVNode("div", null, [`${t$d("name")}
|
7725
|
+
return [vue.createVNode("div", null, [`${t$d("name")}:${props.name}`]), vue.createVNode("div", null, [`${t$d("tel")}:${props.tel}`])];
|
7715
7726
|
};
|
7716
7727
|
return () => vue.createVNode(Cell, {
|
7717
7728
|
"center": true,
|
@@ -7862,7 +7873,7 @@ var stdin_default$S = vue.defineComponent({
|
|
7862
7873
|
}
|
7863
7874
|
}, null);
|
7864
7875
|
const renderContent = () => {
|
7865
|
-
const nodes = [`${item.name}
|
7876
|
+
const nodes = [`${item.name},${item.tel}`];
|
7866
7877
|
if (item.isDefault && props.defaultTagText) {
|
7867
7878
|
nodes.push(vue.createVNode(Tag, {
|
7868
7879
|
"type": "primary",
|
@@ -8005,7 +8016,7 @@ var stdin_default$Q = vue.defineComponent({
|
|
8005
8016
|
chosen: Boolean,
|
8006
8017
|
coupon: makeRequiredProp(Object),
|
8007
8018
|
disabled: Boolean,
|
8008
|
-
currency: makeStringProp("
|
8019
|
+
currency: makeStringProp("¥")
|
8009
8020
|
},
|
8010
8021
|
setup(props) {
|
8011
8022
|
const validPeriod = vue.computed(() => {
|
@@ -8077,7 +8088,7 @@ const couponCellProps = {
|
|
8077
8088
|
border: truthProp,
|
8078
8089
|
editable: truthProp,
|
8079
8090
|
coupons: makeArrayProp(),
|
8080
|
-
currency: makeStringProp("
|
8091
|
+
currency: makeStringProp("¥"),
|
8081
8092
|
chosenCoupon: makeNumericProp(-1)
|
8082
8093
|
};
|
8083
8094
|
function formatValue({
|
@@ -8439,7 +8450,7 @@ const [name$H, bem$G, t$8] = createNamespace("coupon-list");
|
|
8439
8450
|
const couponListProps = {
|
8440
8451
|
code: makeStringProp(""),
|
8441
8452
|
coupons: makeArrayProp(),
|
8442
|
-
currency: makeStringProp("
|
8453
|
+
currency: makeStringProp("¥"),
|
8443
8454
|
showCount: truthProp,
|
8444
8455
|
emptyImage: String,
|
8445
8456
|
chosenCoupon: makeNumberProp(-1),
|
@@ -13128,7 +13139,7 @@ const submitBarProps = {
|
|
13128
13139
|
price: Number,
|
13129
13140
|
tipIcon: String,
|
13130
13141
|
loading: Boolean,
|
13131
|
-
currency: makeStringProp("
|
13142
|
+
currency: makeStringProp("¥"),
|
13132
13143
|
disabled: Boolean,
|
13133
13144
|
textAlign: String,
|
13134
13145
|
buttonText: String,
|
@@ -14888,7 +14899,7 @@ const Lazyload = {
|
|
14888
14899
|
});
|
14889
14900
|
}
|
14890
14901
|
};
|
14891
|
-
const version = "4.0.
|
14902
|
+
const version = "4.0.6";
|
14892
14903
|
function install(app) {
|
14893
14904
|
const components = [
|
14894
14905
|
ActionBar,
|