vant 4.9.23 → 4.10.0
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/cell/Cell.mjs +1 -1
- package/es/composables/use-lock-scroll.mjs +4 -1
- package/es/field/Field.mjs +5 -3
- package/es/field/types.d.ts +1 -0
- package/es/image-preview/ImagePreview.mjs +11 -1
- package/es/image-preview/function-call.d.ts +1 -2
- package/es/image-preview/types.d.ts +2 -0
- package/es/index.d.ts +1 -1
- package/es/index.mjs +1 -1
- package/es/locale/lang/nb-NO.mjs +11 -11
- package/es/locale/lang/nn-NO.d.ts +64 -0
- package/es/locale/lang/nn-NO.mjs +66 -0
- package/es/notify/function-call.d.ts +1 -2
- package/lib/cell/Cell.js +1 -1
- package/lib/composables/use-lock-scroll.js +4 -1
- package/lib/field/Field.js +5 -3
- package/lib/field/types.d.ts +1 -0
- package/lib/image-preview/ImagePreview.js +11 -1
- package/lib/image-preview/function-call.d.ts +1 -2
- package/lib/image-preview/types.d.ts +2 -0
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/lang/nb-NO.js +11 -11
- package/lib/locale/lang/nn-NO.d.ts +64 -0
- package/lib/locale/lang/nn-NO.js +85 -0
- package/lib/notify/function-call.d.ts +1 -2
- package/lib/vant.cjs.js +22 -7
- package/lib/vant.es.js +22 -7
- package/lib/vant.js +23 -8
- package/lib/vant.min.js +3 -3
- package/lib/web-types.json +1 -1
- package/package.json +30 -32
package/es/cell/Cell.mjs
CHANGED
|
@@ -114,7 +114,7 @@ var stdin_default = defineComponent({
|
|
|
114
114
|
"class": bem(classes),
|
|
115
115
|
"role": clickable ? "button" : void 0,
|
|
116
116
|
"tabindex": clickable ? 0 : void 0,
|
|
117
|
-
"onClick": route
|
|
117
|
+
"onClick": clickable ? route : void 0
|
|
118
118
|
}, {
|
|
119
119
|
default: () => {
|
|
120
120
|
var _a2;
|
|
@@ -11,10 +11,13 @@ function useLockScroll(rootRef, shouldLock) {
|
|
|
11
11
|
const onTouchMove = (event) => {
|
|
12
12
|
touch.move(event);
|
|
13
13
|
const direction = touch.deltaY.value > 0 ? DIRECTION_DOWN : DIRECTION_UP;
|
|
14
|
-
|
|
14
|
+
let el = getScrollParent(
|
|
15
15
|
event.target,
|
|
16
16
|
rootRef.value
|
|
17
17
|
);
|
|
18
|
+
while (el.scrollHeight <= el.offsetHeight && el !== rootRef.value && el.parentElement) {
|
|
19
|
+
el = getScrollParent(el.parentElement, rootRef.value);
|
|
20
|
+
}
|
|
18
21
|
const { scrollHeight, offsetHeight, scrollTop } = el;
|
|
19
22
|
let status = "11";
|
|
20
23
|
if (scrollTop === 0) {
|
package/es/field/Field.mjs
CHANGED
|
@@ -484,7 +484,8 @@ var stdin_default = defineComponent({
|
|
|
484
484
|
validate,
|
|
485
485
|
formValue,
|
|
486
486
|
resetValidation,
|
|
487
|
-
getValidationStatus
|
|
487
|
+
getValidationStatus,
|
|
488
|
+
adjustTextareaSize
|
|
488
489
|
});
|
|
489
490
|
provide(CUSTOM_FIELD_INJECTION_KEY, {
|
|
490
491
|
customValue,
|
|
@@ -527,8 +528,9 @@ var stdin_default = defineComponent({
|
|
|
527
528
|
}),
|
|
528
529
|
"center": props.center,
|
|
529
530
|
"border": props.border,
|
|
530
|
-
"isLink": props.isLink,
|
|
531
|
-
"clickable": props.clickable,
|
|
531
|
+
"isLink": disabled ? false : props.isLink,
|
|
532
|
+
"clickable": disabled ? false : props.clickable,
|
|
533
|
+
"onClick": disabled ? (e) => e.stopImmediatePropagation() : void 0,
|
|
532
534
|
"titleStyle": labelStyle.value,
|
|
533
535
|
"valueClass": bem("value"),
|
|
534
536
|
"titleClass": [bem("label", [labelAlign, {
|
package/es/field/types.d.ts
CHANGED
|
@@ -36,6 +36,7 @@ export type FieldExpose = {
|
|
|
36
36
|
getValidationStatus: () => FieldValidationStatus;
|
|
37
37
|
/** @private */
|
|
38
38
|
formValue: ComputedRef<unknown>;
|
|
39
|
+
adjustTextareaSize: () => void;
|
|
39
40
|
};
|
|
40
41
|
export type FieldInstance = ComponentPublicInstance<FieldProps, FieldExpose>;
|
|
41
42
|
declare global {
|
|
@@ -146,6 +146,14 @@ var stdin_default = defineComponent({
|
|
|
146
146
|
}
|
|
147
147
|
};
|
|
148
148
|
const onClosed = () => emit("closed");
|
|
149
|
+
const prev = () => {
|
|
150
|
+
var _a;
|
|
151
|
+
return (_a = swipeRef.value) == null ? void 0 : _a.prev();
|
|
152
|
+
};
|
|
153
|
+
const next = () => {
|
|
154
|
+
var _a;
|
|
155
|
+
return (_a = swipeRef.value) == null ? void 0 : _a.next();
|
|
156
|
+
};
|
|
149
157
|
const swipeTo = (index, options) => {
|
|
150
158
|
var _a;
|
|
151
159
|
return (_a = swipeRef.value) == null ? void 0 : _a.swipeTo(index, options);
|
|
@@ -155,7 +163,9 @@ var stdin_default = defineComponent({
|
|
|
155
163
|
var _a;
|
|
156
164
|
(_a = activedPreviewItemRef.value) == null ? void 0 : _a.resetScale();
|
|
157
165
|
},
|
|
158
|
-
swipeTo
|
|
166
|
+
swipeTo,
|
|
167
|
+
prev,
|
|
168
|
+
next
|
|
159
169
|
});
|
|
160
170
|
onMounted(resize);
|
|
161
171
|
watch([windowWidth, windowHeight], resize);
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { ComponentInstance } from '../utils';
|
|
2
1
|
import type { ImagePreviewOptions } from './types';
|
|
3
2
|
/**
|
|
4
3
|
* Display a full-screen image preview component
|
|
5
4
|
*/
|
|
6
|
-
export declare const showImagePreview: (options: string[] | ImagePreviewOptions, startPosition?: number) =>
|
|
5
|
+
export declare const showImagePreview: (options: string[] | ImagePreviewOptions, startPosition?: number) => any;
|
|
@@ -45,6 +45,8 @@ export type ImagePreviewItemInstance = ComponentPublicInstance<ImagePreviewItemP
|
|
|
45
45
|
export type ImagePreviewExpose = {
|
|
46
46
|
resetScale: () => void;
|
|
47
47
|
swipeTo: (index: number, options?: SwipeToOptions) => void;
|
|
48
|
+
prev: () => void;
|
|
49
|
+
next: () => void;
|
|
48
50
|
};
|
|
49
51
|
export type ImagePreviewInstance = ComponentPublicInstance<ImagePreviewProps, ImagePreviewExpose>;
|
|
50
52
|
export type ImagePreviewThemeVars = {
|
package/es/index.d.ts
CHANGED
package/es/index.mjs
CHANGED
|
@@ -99,7 +99,7 @@ import { Toast } from "./toast/index.mjs";
|
|
|
99
99
|
import { TreeSelect } from "./tree-select/index.mjs";
|
|
100
100
|
import { Uploader } from "./uploader/index.mjs";
|
|
101
101
|
import { Watermark } from "./watermark/index.mjs";
|
|
102
|
-
const version = "4.
|
|
102
|
+
const version = "4.10.0";
|
|
103
103
|
function install(app) {
|
|
104
104
|
const components = [
|
|
105
105
|
ActionBar,
|
package/es/locale/lang/nb-NO.mjs
CHANGED
|
@@ -2,7 +2,7 @@ var stdin_default = {
|
|
|
2
2
|
name: "Navn",
|
|
3
3
|
tel: "Telefon",
|
|
4
4
|
save: "Lagre",
|
|
5
|
-
clear: "
|
|
5
|
+
clear: "T\xF8m",
|
|
6
6
|
undo: "Angre",
|
|
7
7
|
cancel: "Avbryt",
|
|
8
8
|
confirm: "Bekreft",
|
|
@@ -15,27 +15,27 @@ var stdin_default = {
|
|
|
15
15
|
vanCalendar: {
|
|
16
16
|
end: "Slutt",
|
|
17
17
|
start: "Start",
|
|
18
|
-
title: "
|
|
18
|
+
title: "Kalender",
|
|
19
19
|
weekdays: ["S\xF8n", "Man", "Tir", "Ons", "Tor", "Fre", "L\xF8r"],
|
|
20
20
|
monthTitle: (year, month) => `${year}/${month}`,
|
|
21
21
|
rangePrompt: (maxRange) => `Maks. ${maxRange} dager`
|
|
22
22
|
},
|
|
23
23
|
vanCascader: {
|
|
24
|
-
select: "
|
|
24
|
+
select: "Velg"
|
|
25
25
|
},
|
|
26
26
|
vanPagination: {
|
|
27
27
|
prev: "Forrige",
|
|
28
28
|
next: "Neste"
|
|
29
29
|
},
|
|
30
30
|
vanPullRefresh: {
|
|
31
|
-
pulling: "Dra for
|
|
32
|
-
loosing: "
|
|
31
|
+
pulling: "Dra for \xE5 oppdatere...",
|
|
32
|
+
loosing: "Slipp for \xE5 oppdatere..."
|
|
33
33
|
},
|
|
34
34
|
vanSubmitBar: {
|
|
35
35
|
label: "Totalt:"
|
|
36
36
|
},
|
|
37
37
|
vanCoupon: {
|
|
38
|
-
unlimited: "
|
|
38
|
+
unlimited: "Ubegrenset",
|
|
39
39
|
discount: (discount) => `${discount * 10}% avslag`,
|
|
40
40
|
condition: (condition) => `Minst ${condition}`
|
|
41
41
|
},
|
|
@@ -44,18 +44,18 @@ var stdin_default = {
|
|
|
44
44
|
count: (count) => `Du har ${count} kuponger`
|
|
45
45
|
},
|
|
46
46
|
vanCouponList: {
|
|
47
|
-
exchange: "
|
|
47
|
+
exchange: "Bytt",
|
|
48
48
|
close: "Lukk",
|
|
49
49
|
enable: "Tilgjengelig",
|
|
50
50
|
disabled: "Utilgjengelig",
|
|
51
|
-
placeholder: "
|
|
51
|
+
placeholder: "Kupongkode"
|
|
52
52
|
},
|
|
53
53
|
vanAddressEdit: {
|
|
54
54
|
area: "Omr\xE5de",
|
|
55
|
-
areaEmpty: "Vennligst
|
|
56
|
-
addressEmpty: "
|
|
55
|
+
areaEmpty: "Vennligst velg omr\xE5de",
|
|
56
|
+
addressEmpty: "Adressen kan ikke v\xE6re tom",
|
|
57
57
|
addressDetail: "Adresse",
|
|
58
|
-
defaultAddress: "Sett som
|
|
58
|
+
defaultAddress: "Sett som standardadresse"
|
|
59
59
|
},
|
|
60
60
|
vanAddressList: {
|
|
61
61
|
add: "Legg til ny adresse"
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
name: string;
|
|
3
|
+
tel: string;
|
|
4
|
+
save: string;
|
|
5
|
+
clear: string;
|
|
6
|
+
undo: string;
|
|
7
|
+
cancel: string;
|
|
8
|
+
confirm: string;
|
|
9
|
+
delete: string;
|
|
10
|
+
loading: string;
|
|
11
|
+
noCoupon: string;
|
|
12
|
+
nameEmpty: string;
|
|
13
|
+
addContact: string;
|
|
14
|
+
telInvalid: string;
|
|
15
|
+
vanCalendar: {
|
|
16
|
+
end: string;
|
|
17
|
+
start: string;
|
|
18
|
+
title: string;
|
|
19
|
+
weekdays: string[];
|
|
20
|
+
monthTitle: (year: number, month: number) => string;
|
|
21
|
+
rangePrompt: (maxRange: number) => string;
|
|
22
|
+
};
|
|
23
|
+
vanCascader: {
|
|
24
|
+
select: string;
|
|
25
|
+
};
|
|
26
|
+
vanPagination: {
|
|
27
|
+
prev: string;
|
|
28
|
+
next: string;
|
|
29
|
+
};
|
|
30
|
+
vanPullRefresh: {
|
|
31
|
+
pulling: string;
|
|
32
|
+
loosing: string;
|
|
33
|
+
};
|
|
34
|
+
vanSubmitBar: {
|
|
35
|
+
label: string;
|
|
36
|
+
};
|
|
37
|
+
vanCoupon: {
|
|
38
|
+
unlimited: string;
|
|
39
|
+
discount: (discount: number) => string;
|
|
40
|
+
condition: (condition: number) => string;
|
|
41
|
+
};
|
|
42
|
+
vanCouponCell: {
|
|
43
|
+
title: string;
|
|
44
|
+
count: (count: number) => string;
|
|
45
|
+
};
|
|
46
|
+
vanCouponList: {
|
|
47
|
+
exchange: string;
|
|
48
|
+
close: string;
|
|
49
|
+
enable: string;
|
|
50
|
+
disabled: string;
|
|
51
|
+
placeholder: string;
|
|
52
|
+
};
|
|
53
|
+
vanAddressEdit: {
|
|
54
|
+
area: string;
|
|
55
|
+
areaEmpty: string;
|
|
56
|
+
addressEmpty: string;
|
|
57
|
+
addressDetail: string;
|
|
58
|
+
defaultAddress: string;
|
|
59
|
+
};
|
|
60
|
+
vanAddressList: {
|
|
61
|
+
add: string;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
export default _default;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
var stdin_default = {
|
|
2
|
+
name: "Namn",
|
|
3
|
+
tel: "Telefon",
|
|
4
|
+
save: "Lagre",
|
|
5
|
+
clear: "T\xF8m",
|
|
6
|
+
undo: "Angre",
|
|
7
|
+
cancel: "Avbryt",
|
|
8
|
+
confirm: "Stadfest",
|
|
9
|
+
delete: "Slett",
|
|
10
|
+
loading: "Lastar...",
|
|
11
|
+
noCoupon: "Ingen kupongar",
|
|
12
|
+
nameEmpty: "Fyll inn namn",
|
|
13
|
+
addContact: "Legg til ny kontakt",
|
|
14
|
+
telInvalid: "Ugyldig telefonnummer",
|
|
15
|
+
vanCalendar: {
|
|
16
|
+
end: "Slutt",
|
|
17
|
+
start: "Start",
|
|
18
|
+
title: "Kalender",
|
|
19
|
+
weekdays: ["Sun", "M\xE5n", "Tys", "Ons", "Tor", "Fre", "Lau"],
|
|
20
|
+
monthTitle: (year, month) => `${year}/${month}`,
|
|
21
|
+
rangePrompt: (maxRange) => `Maks. ${maxRange} dagar`
|
|
22
|
+
},
|
|
23
|
+
vanCascader: {
|
|
24
|
+
select: "Vel"
|
|
25
|
+
},
|
|
26
|
+
vanPagination: {
|
|
27
|
+
prev: "F\xF8rre",
|
|
28
|
+
next: "Neste"
|
|
29
|
+
},
|
|
30
|
+
vanPullRefresh: {
|
|
31
|
+
pulling: "Dra for \xE5 oppdatere...",
|
|
32
|
+
loosing: "Slepp for \xE5 oppdatere..."
|
|
33
|
+
},
|
|
34
|
+
vanSubmitBar: {
|
|
35
|
+
label: "Totalt:"
|
|
36
|
+
},
|
|
37
|
+
vanCoupon: {
|
|
38
|
+
unlimited: "Ubegrensa",
|
|
39
|
+
discount: (discount) => `${discount * 10}% avslag`,
|
|
40
|
+
condition: (condition) => `Minst ${condition}`
|
|
41
|
+
},
|
|
42
|
+
vanCouponCell: {
|
|
43
|
+
title: "Kupong",
|
|
44
|
+
count: (count) => `Du har ${count} kupongar`
|
|
45
|
+
},
|
|
46
|
+
vanCouponList: {
|
|
47
|
+
exchange: "Byt",
|
|
48
|
+
close: "Lukk",
|
|
49
|
+
enable: "Tilgjengeleg",
|
|
50
|
+
disabled: "Utilgjengeleg",
|
|
51
|
+
placeholder: "Kupongkode"
|
|
52
|
+
},
|
|
53
|
+
vanAddressEdit: {
|
|
54
|
+
area: "Omr\xE5de",
|
|
55
|
+
areaEmpty: "Vel omr\xE5de",
|
|
56
|
+
addressEmpty: "Adressa kan ikkje vere tom",
|
|
57
|
+
addressDetail: "Adresse",
|
|
58
|
+
defaultAddress: "Set som standardadresse"
|
|
59
|
+
},
|
|
60
|
+
vanAddressList: {
|
|
61
|
+
add: "Legg til ny adresse"
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
export {
|
|
65
|
+
stdin_default as default
|
|
66
|
+
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { type ComponentInstance } from '../utils';
|
|
2
1
|
import type { NotifyMessage, NotifyOptions } from './types';
|
|
3
2
|
/**
|
|
4
3
|
* Close the currently displayed Notify
|
|
@@ -7,7 +6,7 @@ export declare const closeNotify: () => void;
|
|
|
7
6
|
/**
|
|
8
7
|
* Display Notify at the top of the page
|
|
9
8
|
*/
|
|
10
|
-
export declare function showNotify(options: NotifyMessage | NotifyOptions):
|
|
9
|
+
export declare function showNotify(options: NotifyMessage | NotifyOptions): any;
|
|
11
10
|
/**
|
|
12
11
|
* Modify the default configuration, affecting all `showNotify` calls
|
|
13
12
|
*/
|
package/lib/cell/Cell.js
CHANGED
|
@@ -138,7 +138,7 @@ var stdin_default = (0, import_vue.defineComponent)({
|
|
|
138
138
|
"class": bem(classes),
|
|
139
139
|
"role": clickable ? "button" : void 0,
|
|
140
140
|
"tabindex": clickable ? 0 : void 0,
|
|
141
|
-
"onClick": route
|
|
141
|
+
"onClick": clickable ? route : void 0
|
|
142
142
|
}, {
|
|
143
143
|
default: () => {
|
|
144
144
|
var _a2;
|
|
@@ -33,10 +33,13 @@ function useLockScroll(rootRef, shouldLock) {
|
|
|
33
33
|
const onTouchMove = (event) => {
|
|
34
34
|
touch.move(event);
|
|
35
35
|
const direction = touch.deltaY.value > 0 ? DIRECTION_DOWN : DIRECTION_UP;
|
|
36
|
-
|
|
36
|
+
let el = (0, import_use.getScrollParent)(
|
|
37
37
|
event.target,
|
|
38
38
|
rootRef.value
|
|
39
39
|
);
|
|
40
|
+
while (el.scrollHeight <= el.offsetHeight && el !== rootRef.value && el.parentElement) {
|
|
41
|
+
el = (0, import_use.getScrollParent)(el.parentElement, rootRef.value);
|
|
42
|
+
}
|
|
40
43
|
const { scrollHeight, offsetHeight, scrollTop } = el;
|
|
41
44
|
let status = "11";
|
|
42
45
|
if (scrollTop === 0) {
|
package/lib/field/Field.js
CHANGED
|
@@ -508,7 +508,8 @@ var stdin_default = (0, import_vue.defineComponent)({
|
|
|
508
508
|
validate,
|
|
509
509
|
formValue,
|
|
510
510
|
resetValidation,
|
|
511
|
-
getValidationStatus
|
|
511
|
+
getValidationStatus,
|
|
512
|
+
adjustTextareaSize
|
|
512
513
|
});
|
|
513
514
|
(0, import_vue.provide)(import_use.CUSTOM_FIELD_INJECTION_KEY, {
|
|
514
515
|
customValue,
|
|
@@ -551,8 +552,9 @@ var stdin_default = (0, import_vue.defineComponent)({
|
|
|
551
552
|
}),
|
|
552
553
|
"center": props.center,
|
|
553
554
|
"border": props.border,
|
|
554
|
-
"isLink": props.isLink,
|
|
555
|
-
"clickable": props.clickable,
|
|
555
|
+
"isLink": disabled ? false : props.isLink,
|
|
556
|
+
"clickable": disabled ? false : props.clickable,
|
|
557
|
+
"onClick": disabled ? (e) => e.stopImmediatePropagation() : void 0,
|
|
556
558
|
"titleStyle": labelStyle.value,
|
|
557
559
|
"valueClass": bem("value"),
|
|
558
560
|
"titleClass": [bem("label", [labelAlign, {
|
package/lib/field/types.d.ts
CHANGED
|
@@ -36,6 +36,7 @@ export type FieldExpose = {
|
|
|
36
36
|
getValidationStatus: () => FieldValidationStatus;
|
|
37
37
|
/** @private */
|
|
38
38
|
formValue: ComputedRef<unknown>;
|
|
39
|
+
adjustTextareaSize: () => void;
|
|
39
40
|
};
|
|
40
41
|
export type FieldInstance = ComponentPublicInstance<FieldProps, FieldExpose>;
|
|
41
42
|
declare global {
|
|
@@ -179,6 +179,14 @@ var stdin_default = (0, import_vue.defineComponent)({
|
|
|
179
179
|
}
|
|
180
180
|
};
|
|
181
181
|
const onClosed = () => emit("closed");
|
|
182
|
+
const prev = () => {
|
|
183
|
+
var _a;
|
|
184
|
+
return (_a = swipeRef.value) == null ? void 0 : _a.prev();
|
|
185
|
+
};
|
|
186
|
+
const next = () => {
|
|
187
|
+
var _a;
|
|
188
|
+
return (_a = swipeRef.value) == null ? void 0 : _a.next();
|
|
189
|
+
};
|
|
182
190
|
const swipeTo = (index, options) => {
|
|
183
191
|
var _a;
|
|
184
192
|
return (_a = swipeRef.value) == null ? void 0 : _a.swipeTo(index, options);
|
|
@@ -188,7 +196,9 @@ var stdin_default = (0, import_vue.defineComponent)({
|
|
|
188
196
|
var _a;
|
|
189
197
|
(_a = activedPreviewItemRef.value) == null ? void 0 : _a.resetScale();
|
|
190
198
|
},
|
|
191
|
-
swipeTo
|
|
199
|
+
swipeTo,
|
|
200
|
+
prev,
|
|
201
|
+
next
|
|
192
202
|
});
|
|
193
203
|
(0, import_vue.onMounted)(resize);
|
|
194
204
|
(0, import_vue.watch)([import_utils.windowWidth, import_utils.windowHeight], resize);
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { ComponentInstance } from '../utils';
|
|
2
1
|
import type { ImagePreviewOptions } from './types';
|
|
3
2
|
/**
|
|
4
3
|
* Display a full-screen image preview component
|
|
5
4
|
*/
|
|
6
|
-
export declare const showImagePreview: (options: string[] | ImagePreviewOptions, startPosition?: number) =>
|
|
5
|
+
export declare const showImagePreview: (options: string[] | ImagePreviewOptions, startPosition?: number) => any;
|
|
@@ -45,6 +45,8 @@ export type ImagePreviewItemInstance = ComponentPublicInstance<ImagePreviewItemP
|
|
|
45
45
|
export type ImagePreviewExpose = {
|
|
46
46
|
resetScale: () => void;
|
|
47
47
|
swipeTo: (index: number, options?: SwipeToOptions) => void;
|
|
48
|
+
prev: () => void;
|
|
49
|
+
next: () => void;
|
|
48
50
|
};
|
|
49
51
|
export type ImagePreviewInstance = ComponentPublicInstance<ImagePreviewProps, ImagePreviewExpose>;
|
|
50
52
|
export type ImagePreviewThemeVars = {
|
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.
|
|
229
|
+
const version = "4.10.0";
|
|
230
230
|
function install(app) {
|
|
231
231
|
const components = [
|
|
232
232
|
import_action_bar.ActionBar,
|
package/lib/locale/lang/nb-NO.js
CHANGED
|
@@ -24,7 +24,7 @@ var stdin_default = {
|
|
|
24
24
|
name: "Navn",
|
|
25
25
|
tel: "Telefon",
|
|
26
26
|
save: "Lagre",
|
|
27
|
-
clear: "
|
|
27
|
+
clear: "T\xF8m",
|
|
28
28
|
undo: "Angre",
|
|
29
29
|
cancel: "Avbryt",
|
|
30
30
|
confirm: "Bekreft",
|
|
@@ -37,27 +37,27 @@ var stdin_default = {
|
|
|
37
37
|
vanCalendar: {
|
|
38
38
|
end: "Slutt",
|
|
39
39
|
start: "Start",
|
|
40
|
-
title: "
|
|
40
|
+
title: "Kalender",
|
|
41
41
|
weekdays: ["S\xF8n", "Man", "Tir", "Ons", "Tor", "Fre", "L\xF8r"],
|
|
42
42
|
monthTitle: (year, month) => `${year}/${month}`,
|
|
43
43
|
rangePrompt: (maxRange) => `Maks. ${maxRange} dager`
|
|
44
44
|
},
|
|
45
45
|
vanCascader: {
|
|
46
|
-
select: "
|
|
46
|
+
select: "Velg"
|
|
47
47
|
},
|
|
48
48
|
vanPagination: {
|
|
49
49
|
prev: "Forrige",
|
|
50
50
|
next: "Neste"
|
|
51
51
|
},
|
|
52
52
|
vanPullRefresh: {
|
|
53
|
-
pulling: "Dra for
|
|
54
|
-
loosing: "
|
|
53
|
+
pulling: "Dra for \xE5 oppdatere...",
|
|
54
|
+
loosing: "Slipp for \xE5 oppdatere..."
|
|
55
55
|
},
|
|
56
56
|
vanSubmitBar: {
|
|
57
57
|
label: "Totalt:"
|
|
58
58
|
},
|
|
59
59
|
vanCoupon: {
|
|
60
|
-
unlimited: "
|
|
60
|
+
unlimited: "Ubegrenset",
|
|
61
61
|
discount: (discount) => `${discount * 10}% avslag`,
|
|
62
62
|
condition: (condition) => `Minst ${condition}`
|
|
63
63
|
},
|
|
@@ -66,18 +66,18 @@ var stdin_default = {
|
|
|
66
66
|
count: (count) => `Du har ${count} kuponger`
|
|
67
67
|
},
|
|
68
68
|
vanCouponList: {
|
|
69
|
-
exchange: "
|
|
69
|
+
exchange: "Bytt",
|
|
70
70
|
close: "Lukk",
|
|
71
71
|
enable: "Tilgjengelig",
|
|
72
72
|
disabled: "Utilgjengelig",
|
|
73
|
-
placeholder: "
|
|
73
|
+
placeholder: "Kupongkode"
|
|
74
74
|
},
|
|
75
75
|
vanAddressEdit: {
|
|
76
76
|
area: "Omr\xE5de",
|
|
77
|
-
areaEmpty: "Vennligst
|
|
78
|
-
addressEmpty: "
|
|
77
|
+
areaEmpty: "Vennligst velg omr\xE5de",
|
|
78
|
+
addressEmpty: "Adressen kan ikke v\xE6re tom",
|
|
79
79
|
addressDetail: "Adresse",
|
|
80
|
-
defaultAddress: "Sett som
|
|
80
|
+
defaultAddress: "Sett som standardadresse"
|
|
81
81
|
},
|
|
82
82
|
vanAddressList: {
|
|
83
83
|
add: "Legg til ny adresse"
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
name: string;
|
|
3
|
+
tel: string;
|
|
4
|
+
save: string;
|
|
5
|
+
clear: string;
|
|
6
|
+
undo: string;
|
|
7
|
+
cancel: string;
|
|
8
|
+
confirm: string;
|
|
9
|
+
delete: string;
|
|
10
|
+
loading: string;
|
|
11
|
+
noCoupon: string;
|
|
12
|
+
nameEmpty: string;
|
|
13
|
+
addContact: string;
|
|
14
|
+
telInvalid: string;
|
|
15
|
+
vanCalendar: {
|
|
16
|
+
end: string;
|
|
17
|
+
start: string;
|
|
18
|
+
title: string;
|
|
19
|
+
weekdays: string[];
|
|
20
|
+
monthTitle: (year: number, month: number) => string;
|
|
21
|
+
rangePrompt: (maxRange: number) => string;
|
|
22
|
+
};
|
|
23
|
+
vanCascader: {
|
|
24
|
+
select: string;
|
|
25
|
+
};
|
|
26
|
+
vanPagination: {
|
|
27
|
+
prev: string;
|
|
28
|
+
next: string;
|
|
29
|
+
};
|
|
30
|
+
vanPullRefresh: {
|
|
31
|
+
pulling: string;
|
|
32
|
+
loosing: string;
|
|
33
|
+
};
|
|
34
|
+
vanSubmitBar: {
|
|
35
|
+
label: string;
|
|
36
|
+
};
|
|
37
|
+
vanCoupon: {
|
|
38
|
+
unlimited: string;
|
|
39
|
+
discount: (discount: number) => string;
|
|
40
|
+
condition: (condition: number) => string;
|
|
41
|
+
};
|
|
42
|
+
vanCouponCell: {
|
|
43
|
+
title: string;
|
|
44
|
+
count: (count: number) => string;
|
|
45
|
+
};
|
|
46
|
+
vanCouponList: {
|
|
47
|
+
exchange: string;
|
|
48
|
+
close: string;
|
|
49
|
+
enable: string;
|
|
50
|
+
disabled: string;
|
|
51
|
+
placeholder: string;
|
|
52
|
+
};
|
|
53
|
+
vanAddressEdit: {
|
|
54
|
+
area: string;
|
|
55
|
+
areaEmpty: string;
|
|
56
|
+
addressEmpty: string;
|
|
57
|
+
addressDetail: string;
|
|
58
|
+
defaultAddress: string;
|
|
59
|
+
};
|
|
60
|
+
vanAddressList: {
|
|
61
|
+
add: string;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
export default _default;
|
|
@@ -0,0 +1,85 @@
|
|
|
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: "Namn",
|
|
25
|
+
tel: "Telefon",
|
|
26
|
+
save: "Lagre",
|
|
27
|
+
clear: "T\xF8m",
|
|
28
|
+
undo: "Angre",
|
|
29
|
+
cancel: "Avbryt",
|
|
30
|
+
confirm: "Stadfest",
|
|
31
|
+
delete: "Slett",
|
|
32
|
+
loading: "Lastar...",
|
|
33
|
+
noCoupon: "Ingen kupongar",
|
|
34
|
+
nameEmpty: "Fyll inn namn",
|
|
35
|
+
addContact: "Legg til ny kontakt",
|
|
36
|
+
telInvalid: "Ugyldig telefonnummer",
|
|
37
|
+
vanCalendar: {
|
|
38
|
+
end: "Slutt",
|
|
39
|
+
start: "Start",
|
|
40
|
+
title: "Kalender",
|
|
41
|
+
weekdays: ["Sun", "M\xE5n", "Tys", "Ons", "Tor", "Fre", "Lau"],
|
|
42
|
+
monthTitle: (year, month) => `${year}/${month}`,
|
|
43
|
+
rangePrompt: (maxRange) => `Maks. ${maxRange} dagar`
|
|
44
|
+
},
|
|
45
|
+
vanCascader: {
|
|
46
|
+
select: "Vel"
|
|
47
|
+
},
|
|
48
|
+
vanPagination: {
|
|
49
|
+
prev: "F\xF8rre",
|
|
50
|
+
next: "Neste"
|
|
51
|
+
},
|
|
52
|
+
vanPullRefresh: {
|
|
53
|
+
pulling: "Dra for \xE5 oppdatere...",
|
|
54
|
+
loosing: "Slepp for \xE5 oppdatere..."
|
|
55
|
+
},
|
|
56
|
+
vanSubmitBar: {
|
|
57
|
+
label: "Totalt:"
|
|
58
|
+
},
|
|
59
|
+
vanCoupon: {
|
|
60
|
+
unlimited: "Ubegrensa",
|
|
61
|
+
discount: (discount) => `${discount * 10}% avslag`,
|
|
62
|
+
condition: (condition) => `Minst ${condition}`
|
|
63
|
+
},
|
|
64
|
+
vanCouponCell: {
|
|
65
|
+
title: "Kupong",
|
|
66
|
+
count: (count) => `Du har ${count} kupongar`
|
|
67
|
+
},
|
|
68
|
+
vanCouponList: {
|
|
69
|
+
exchange: "Byt",
|
|
70
|
+
close: "Lukk",
|
|
71
|
+
enable: "Tilgjengeleg",
|
|
72
|
+
disabled: "Utilgjengeleg",
|
|
73
|
+
placeholder: "Kupongkode"
|
|
74
|
+
},
|
|
75
|
+
vanAddressEdit: {
|
|
76
|
+
area: "Omr\xE5de",
|
|
77
|
+
areaEmpty: "Vel omr\xE5de",
|
|
78
|
+
addressEmpty: "Adressa kan ikkje vere tom",
|
|
79
|
+
addressDetail: "Adresse",
|
|
80
|
+
defaultAddress: "Set som standardadresse"
|
|
81
|
+
},
|
|
82
|
+
vanAddressList: {
|
|
83
|
+
add: "Legg til ny adresse"
|
|
84
|
+
}
|
|
85
|
+
};
|