antd-mobile 5.7.1 → 5.7.2
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/2x/cjs/components/dialog/confirm.js +9 -1
- package/2x/cjs/components/form/form-item.js +6 -3
- package/2x/cjs/components/modal/confirm.js +9 -1
- package/2x/cjs/components/passcode-input/passcode-input.js +1 -1
- package/2x/cjs/components/pull-to-refresh/pull-to-refresh.js +11 -1
- package/2x/cjs/locales/base.d.ts +6 -0
- package/2x/cjs/locales/base.js +7 -1
- package/2x/cjs/locales/en-US.d.ts +6 -0
- package/2x/cjs/locales/fa-IR.d.ts +101 -0
- package/2x/cjs/locales/fa-IR.js +108 -0
- package/2x/cjs/locales/zh-CN.d.ts +6 -0
- package/2x/cjs/locales/zh-CN.js +7 -1
- package/2x/cjs/locales/zh-HK.d.ts +101 -0
- package/2x/cjs/locales/zh-HK.js +58 -0
- package/2x/cjs/locales/zh-TW.d.ts +101 -0
- package/2x/cjs/locales/zh-TW.js +58 -0
- package/2x/es/components/dialog/confirm.js +8 -1
- package/2x/es/components/form/form-item.js +6 -3
- package/2x/es/components/modal/confirm.js +8 -1
- package/2x/es/components/passcode-input/passcode-input.js +1 -1
- package/2x/es/components/pull-to-refresh/pull-to-refresh.js +10 -1
- package/2x/es/locales/base.d.ts +6 -0
- package/2x/es/locales/base.js +7 -1
- package/2x/es/locales/en-US.d.ts +6 -0
- package/2x/es/locales/fa-IR.d.ts +101 -0
- package/2x/es/locales/fa-IR.js +98 -0
- package/2x/es/locales/zh-CN.d.ts +6 -0
- package/2x/es/locales/zh-CN.js +7 -1
- package/2x/es/locales/zh-HK.d.ts +101 -0
- package/2x/es/locales/zh-HK.js +48 -0
- package/2x/es/locales/zh-TW.d.ts +101 -0
- package/2x/es/locales/zh-TW.js +48 -0
- package/2x/package.json +1 -1
- package/cjs/components/dialog/confirm.js +9 -1
- package/cjs/components/form/form-item.js +6 -3
- package/cjs/components/modal/confirm.js +9 -1
- package/cjs/components/passcode-input/passcode-input.js +1 -1
- package/cjs/components/pull-to-refresh/pull-to-refresh.js +11 -1
- package/cjs/locales/base.d.ts +6 -0
- package/cjs/locales/base.js +7 -1
- package/cjs/locales/en-US.d.ts +6 -0
- package/cjs/locales/fa-IR.d.ts +101 -0
- package/cjs/locales/fa-IR.js +108 -0
- package/cjs/locales/zh-CN.d.ts +6 -0
- package/cjs/locales/zh-CN.js +7 -1
- package/cjs/locales/zh-HK.d.ts +101 -0
- package/cjs/locales/zh-HK.js +58 -0
- package/cjs/locales/zh-TW.d.ts +101 -0
- package/cjs/locales/zh-TW.js +58 -0
- package/es/components/dialog/confirm.js +8 -1
- package/es/components/form/form-item.js +6 -3
- package/es/components/modal/confirm.js +8 -1
- package/es/components/passcode-input/passcode-input.js +1 -1
- package/es/components/pull-to-refresh/pull-to-refresh.js +10 -1
- package/es/locales/base.d.ts +6 -0
- package/es/locales/base.js +7 -1
- package/es/locales/en-US.d.ts +6 -0
- package/es/locales/fa-IR.d.ts +101 -0
- package/es/locales/fa-IR.js +98 -0
- package/es/locales/zh-CN.d.ts +6 -0
- package/es/locales/zh-CN.js +7 -1
- package/es/locales/zh-HK.d.ts +101 -0
- package/es/locales/zh-HK.js +48 -0
- package/es/locales/zh-TW.d.ts +101 -0
- package/es/locales/zh-TW.js +48 -0
- package/package.json +1 -1
- package/umd/antd-mobile.js +1 -1
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _mergeLocale = require("../utils/merge-locale");
|
|
9
|
+
|
|
10
|
+
var _base = require("./base");
|
|
11
|
+
|
|
12
|
+
const zhTW = (0, _mergeLocale.mergeLocale)(_base.base, {
|
|
13
|
+
common: {
|
|
14
|
+
confirm: '確定',
|
|
15
|
+
cancel: '取消',
|
|
16
|
+
loading: '加載中……'
|
|
17
|
+
},
|
|
18
|
+
Cascader: {
|
|
19
|
+
placeholder: '請選擇'
|
|
20
|
+
},
|
|
21
|
+
Dialog: {
|
|
22
|
+
ok: '我知道了'
|
|
23
|
+
},
|
|
24
|
+
ErrorBlock: {
|
|
25
|
+
default: {
|
|
26
|
+
title: '頁面遇到一些小問題',
|
|
27
|
+
description: '待會來試試'
|
|
28
|
+
},
|
|
29
|
+
busy: {
|
|
30
|
+
title: '前方擁堵',
|
|
31
|
+
description: '刷新試試'
|
|
32
|
+
},
|
|
33
|
+
disconnected: {
|
|
34
|
+
title: '網路有點忙',
|
|
35
|
+
description: '動動手指幫忙修復'
|
|
36
|
+
},
|
|
37
|
+
empty: {
|
|
38
|
+
title: '沒有找到您需要的東西',
|
|
39
|
+
description: '找找其他的吧'
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
ImageUploader: {
|
|
43
|
+
uploading: '上傳中...'
|
|
44
|
+
},
|
|
45
|
+
Mask: {
|
|
46
|
+
name: '遮罩層'
|
|
47
|
+
},
|
|
48
|
+
Modal: {
|
|
49
|
+
ok: '我知道了'
|
|
50
|
+
},
|
|
51
|
+
PullToRefresh: {
|
|
52
|
+
pulling: '下拉刷新',
|
|
53
|
+
canRelease: '釋放立即刷新',
|
|
54
|
+
complete: '刷新成功'
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
var _default = zhTW;
|
|
58
|
+
exports.default = _default;
|
|
@@ -1,12 +1,19 @@
|
|
|
1
1
|
import { __awaiter } from "tslib";
|
|
2
2
|
import { show } from './show';
|
|
3
3
|
import { mergeProps } from '../../utils/with-default-props';
|
|
4
|
+
import { getDefaultConfig } from '../config-provider';
|
|
4
5
|
const defaultProps = {
|
|
5
6
|
confirmText: '确认',
|
|
6
7
|
cancelText: '取消'
|
|
7
8
|
};
|
|
8
9
|
export function confirm(p) {
|
|
9
|
-
const
|
|
10
|
+
const {
|
|
11
|
+
locale
|
|
12
|
+
} = getDefaultConfig();
|
|
13
|
+
const props = mergeProps(defaultProps, {
|
|
14
|
+
confirmText: locale.common.confirm,
|
|
15
|
+
cancelText: locale.common.cancel
|
|
16
|
+
}, p);
|
|
10
17
|
return new Promise(resolve => {
|
|
11
18
|
show(Object.assign(Object.assign({}, props), {
|
|
12
19
|
closeOnAction: true,
|
|
@@ -67,12 +67,15 @@ const FormItemLayout = props => {
|
|
|
67
67
|
const labelElement = label ? React.createElement("label", {
|
|
68
68
|
className: `${classPrefix}-label`,
|
|
69
69
|
htmlFor: htmlFor
|
|
70
|
-
}, label, requiredMark, help && React.createElement(
|
|
71
|
-
className: `${classPrefix}-label-help`
|
|
72
|
-
}, React.createElement(Popover, {
|
|
70
|
+
}, label, requiredMark, help && React.createElement(Popover, {
|
|
73
71
|
content: help,
|
|
74
72
|
mode: 'dark',
|
|
75
73
|
trigger: 'click'
|
|
74
|
+
}, React.createElement("span", {
|
|
75
|
+
className: `${classPrefix}-label-help`,
|
|
76
|
+
onClick: e => {
|
|
77
|
+
e.preventDefault();
|
|
78
|
+
}
|
|
76
79
|
}, React.createElement(QuestionCircleOutline, null)))) : null;
|
|
77
80
|
const description = React.createElement(React.Fragment, null, props.description, hasFeedback && React.createElement(React.Fragment, null, props.errors.map((error, index) => React.createElement("div", {
|
|
78
81
|
key: `error-${index}`,
|
|
@@ -1,12 +1,19 @@
|
|
|
1
1
|
import { __awaiter } from "tslib";
|
|
2
2
|
import { show } from './show';
|
|
3
3
|
import { mergeProps } from '../../utils/with-default-props';
|
|
4
|
+
import { getDefaultConfig } from '../config-provider';
|
|
4
5
|
const defaultProps = {
|
|
5
6
|
confirmText: '确认',
|
|
6
7
|
cancelText: '取消'
|
|
7
8
|
};
|
|
8
9
|
export function confirm(p) {
|
|
9
|
-
const
|
|
10
|
+
const {
|
|
11
|
+
locale
|
|
12
|
+
} = getDefaultConfig();
|
|
13
|
+
const props = mergeProps(defaultProps, {
|
|
14
|
+
confirmText: locale.common.confirm,
|
|
15
|
+
cancelText: locale.common.cancel
|
|
16
|
+
}, p);
|
|
10
17
|
return new Promise(resolve => {
|
|
11
18
|
show(Object.assign(Object.assign({}, props), {
|
|
12
19
|
closeOnAction: true,
|
|
@@ -27,7 +27,7 @@ export const PasscodeInput = forwardRef((p, ref) => {
|
|
|
27
27
|
if (value.length >= cellLength) {
|
|
28
28
|
(_a = props.onFill) === null || _a === void 0 ? void 0 : _a.call(props, value);
|
|
29
29
|
}
|
|
30
|
-
}, [
|
|
30
|
+
}, [value, cellLength]);
|
|
31
31
|
|
|
32
32
|
const onFocus = () => {
|
|
33
33
|
var _a, _b;
|
|
@@ -7,6 +7,7 @@ import React, { useEffect, useRef, useState } from 'react';
|
|
|
7
7
|
import { supportsPassive } from '../../utils/supports-passive';
|
|
8
8
|
import { convertPx } from '../../utils/convert-px';
|
|
9
9
|
import { rubberbandIfOutOfBounds } from '../../utils/rubberband';
|
|
10
|
+
import { useConfig } from '../config-provider';
|
|
10
11
|
import { sleep } from '../../utils/sleep';
|
|
11
12
|
const classPrefix = `adm-pull-to-refresh`;
|
|
12
13
|
export const defaultProps = {
|
|
@@ -21,7 +22,15 @@ export const defaultProps = {
|
|
|
21
22
|
export const PullToRefresh = p => {
|
|
22
23
|
var _a, _b;
|
|
23
24
|
|
|
24
|
-
const
|
|
25
|
+
const {
|
|
26
|
+
locale
|
|
27
|
+
} = useConfig();
|
|
28
|
+
const props = mergeProps(defaultProps, {
|
|
29
|
+
refreshingText: locale.common.loading,
|
|
30
|
+
pullingText: locale.PullToRefresh.pulling,
|
|
31
|
+
canReleaseText: locale.PullToRefresh.canRelease,
|
|
32
|
+
completeText: locale.PullToRefresh.complete
|
|
33
|
+
}, p);
|
|
25
34
|
const headHeight = (_a = props.headHeight) !== null && _a !== void 0 ? _a : convertPx(40);
|
|
26
35
|
const threshold = (_b = props.threshold) !== null && _b !== void 0 ? _b : convertPx(60);
|
|
27
36
|
const [status, setStatus] = useState('pulling');
|
package/2x/es/locales/base.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ export declare const base: {
|
|
|
2
2
|
common: {
|
|
3
3
|
confirm: string;
|
|
4
4
|
cancel: string;
|
|
5
|
+
loading: string;
|
|
5
6
|
};
|
|
6
7
|
Calendar: {
|
|
7
8
|
markItems: string[];
|
|
@@ -91,5 +92,10 @@ export declare const base: {
|
|
|
91
92
|
Modal: {
|
|
92
93
|
ok: string;
|
|
93
94
|
};
|
|
95
|
+
PullToRefresh: {
|
|
96
|
+
pulling: string;
|
|
97
|
+
canRelease: string;
|
|
98
|
+
complete: string;
|
|
99
|
+
};
|
|
94
100
|
};
|
|
95
101
|
export declare type Locale = typeof base;
|
package/2x/es/locales/base.js
CHANGED
|
@@ -2,7 +2,8 @@ const typeTemplate = '${label} is not a valid ${type}';
|
|
|
2
2
|
export const base = {
|
|
3
3
|
common: {
|
|
4
4
|
confirm: 'Confirm',
|
|
5
|
-
cancel: 'Cancel'
|
|
5
|
+
cancel: 'Cancel',
|
|
6
|
+
loading: 'Loading...'
|
|
6
7
|
},
|
|
7
8
|
Calendar: {
|
|
8
9
|
markItems: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
|
|
@@ -91,5 +92,10 @@ export const base = {
|
|
|
91
92
|
},
|
|
92
93
|
Modal: {
|
|
93
94
|
ok: 'OK'
|
|
95
|
+
},
|
|
96
|
+
PullToRefresh: {
|
|
97
|
+
pulling: 'Scroll down to refresh',
|
|
98
|
+
canRelease: 'Release to refresh immediately',
|
|
99
|
+
complete: 'Refresh successful'
|
|
94
100
|
}
|
|
95
101
|
};
|
package/2x/es/locales/en-US.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ declare const enUS: {
|
|
|
2
2
|
common: {
|
|
3
3
|
confirm: string;
|
|
4
4
|
cancel: string;
|
|
5
|
+
loading: string;
|
|
5
6
|
};
|
|
6
7
|
Calendar: {
|
|
7
8
|
markItems: string[];
|
|
@@ -91,5 +92,10 @@ declare const enUS: {
|
|
|
91
92
|
Modal: {
|
|
92
93
|
ok: string;
|
|
93
94
|
};
|
|
95
|
+
PullToRefresh: {
|
|
96
|
+
pulling: string;
|
|
97
|
+
canRelease: string;
|
|
98
|
+
complete: string;
|
|
99
|
+
};
|
|
94
100
|
};
|
|
95
101
|
export default enUS;
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
declare const faIR: {
|
|
2
|
+
common: {
|
|
3
|
+
confirm: string;
|
|
4
|
+
cancel: string;
|
|
5
|
+
loading: string;
|
|
6
|
+
};
|
|
7
|
+
Calendar: {
|
|
8
|
+
markItems: string[];
|
|
9
|
+
renderYearAndMonth: (year: number, month: number) => string;
|
|
10
|
+
};
|
|
11
|
+
Cascader: {
|
|
12
|
+
placeholder: string;
|
|
13
|
+
};
|
|
14
|
+
Dialog: {
|
|
15
|
+
ok: string;
|
|
16
|
+
};
|
|
17
|
+
ErrorBlock: {
|
|
18
|
+
default: {
|
|
19
|
+
title: string;
|
|
20
|
+
description: string;
|
|
21
|
+
};
|
|
22
|
+
busy: {
|
|
23
|
+
title: string;
|
|
24
|
+
description: string;
|
|
25
|
+
};
|
|
26
|
+
disconnected: {
|
|
27
|
+
title: string;
|
|
28
|
+
description: string;
|
|
29
|
+
};
|
|
30
|
+
empty: {
|
|
31
|
+
title: string;
|
|
32
|
+
description: string;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
Form: {
|
|
36
|
+
required: string;
|
|
37
|
+
optional: string;
|
|
38
|
+
defaultValidateMessages: {
|
|
39
|
+
default: string;
|
|
40
|
+
required: string;
|
|
41
|
+
enum: string;
|
|
42
|
+
whitespace: string;
|
|
43
|
+
date: {
|
|
44
|
+
format: string;
|
|
45
|
+
parse: string;
|
|
46
|
+
invalid: string;
|
|
47
|
+
};
|
|
48
|
+
types: {
|
|
49
|
+
string: string;
|
|
50
|
+
method: string;
|
|
51
|
+
array: string;
|
|
52
|
+
object: string;
|
|
53
|
+
number: string;
|
|
54
|
+
date: string;
|
|
55
|
+
boolean: string;
|
|
56
|
+
integer: string;
|
|
57
|
+
float: string;
|
|
58
|
+
regexp: string;
|
|
59
|
+
email: string;
|
|
60
|
+
url: string;
|
|
61
|
+
hex: string;
|
|
62
|
+
};
|
|
63
|
+
string: {
|
|
64
|
+
len: string;
|
|
65
|
+
min: string;
|
|
66
|
+
max: string;
|
|
67
|
+
range: string;
|
|
68
|
+
};
|
|
69
|
+
number: {
|
|
70
|
+
len: string;
|
|
71
|
+
min: string;
|
|
72
|
+
max: string;
|
|
73
|
+
range: string;
|
|
74
|
+
};
|
|
75
|
+
array: {
|
|
76
|
+
len: string;
|
|
77
|
+
min: string;
|
|
78
|
+
max: string;
|
|
79
|
+
range: string;
|
|
80
|
+
};
|
|
81
|
+
pattern: {
|
|
82
|
+
mismatch: string;
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
ImageUploader: {
|
|
87
|
+
uploading: string;
|
|
88
|
+
};
|
|
89
|
+
Mask: {
|
|
90
|
+
name: string;
|
|
91
|
+
};
|
|
92
|
+
Modal: {
|
|
93
|
+
ok: string;
|
|
94
|
+
};
|
|
95
|
+
PullToRefresh: {
|
|
96
|
+
pulling: string;
|
|
97
|
+
canRelease: string;
|
|
98
|
+
complete: string;
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
export default faIR;
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { mergeLocale } from '../utils/merge-locale';
|
|
2
|
+
import { base } from './base';
|
|
3
|
+
const typeTemplate = '${label} یک ${type} معتبر نیست';
|
|
4
|
+
const faIR = mergeLocale(base, {
|
|
5
|
+
common: {
|
|
6
|
+
confirm: 'تایید',
|
|
7
|
+
cancel: 'لغو'
|
|
8
|
+
},
|
|
9
|
+
Calendar: {
|
|
10
|
+
markItems: ['شنبه', 'یکشنبه', 'دوشنبه', 'سهشنبه', 'چهارشنبه', 'پنجنشبه', 'جمعه'],
|
|
11
|
+
renderYearAndMonth: (year, month) => `${year}/${month}`
|
|
12
|
+
},
|
|
13
|
+
Cascader: {
|
|
14
|
+
placeholder: 'انتخاب کنید'
|
|
15
|
+
},
|
|
16
|
+
Dialog: {
|
|
17
|
+
ok: 'باشه'
|
|
18
|
+
},
|
|
19
|
+
ErrorBlock: {
|
|
20
|
+
default: {
|
|
21
|
+
title: 'اوه، مشکلی پیش آمد',
|
|
22
|
+
description: 'لطفاً یک دقیقه صبر کنید و دوباره امتحان کنید'
|
|
23
|
+
},
|
|
24
|
+
busy: {
|
|
25
|
+
title: 'اوه، بارگیری نمی شود',
|
|
26
|
+
description: 'سعی کنید صفحه را به روز کنید'
|
|
27
|
+
},
|
|
28
|
+
disconnected: {
|
|
29
|
+
title: 'شبکه مشغول است',
|
|
30
|
+
description: 'سعی کنید صفحه را به روز کنید'
|
|
31
|
+
},
|
|
32
|
+
empty: {
|
|
33
|
+
title: 'هوم، نتونستم پیداش کنم...',
|
|
34
|
+
description: 'آیا می خواهید یک جستجوی جدید را امتحان کنید؟'
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
Form: {
|
|
38
|
+
required: 'اجباری',
|
|
39
|
+
optional: 'اختیاری',
|
|
40
|
+
defaultValidateMessages: {
|
|
41
|
+
default: 'خطای اعتبارسنجی فیلد برای ${label}',
|
|
42
|
+
required: 'لطفا وارد کنید ${label}',
|
|
43
|
+
enum: '${label} باید یکی از [${enum}]',
|
|
44
|
+
whitespace: '${label} نمی تواند یک کاراکتر خالی باشد',
|
|
45
|
+
date: {
|
|
46
|
+
format: '${label} قالب تاریخ نامعتبر است',
|
|
47
|
+
parse: '${label} نمی توان به تاریخ تبدیل کرد',
|
|
48
|
+
invalid: '${label} تاریخ نامعتبر است'
|
|
49
|
+
},
|
|
50
|
+
types: {
|
|
51
|
+
string: typeTemplate,
|
|
52
|
+
method: typeTemplate,
|
|
53
|
+
array: typeTemplate,
|
|
54
|
+
object: typeTemplate,
|
|
55
|
+
number: typeTemplate,
|
|
56
|
+
date: typeTemplate,
|
|
57
|
+
boolean: typeTemplate,
|
|
58
|
+
integer: typeTemplate,
|
|
59
|
+
float: typeTemplate,
|
|
60
|
+
regexp: typeTemplate,
|
|
61
|
+
email: typeTemplate,
|
|
62
|
+
url: typeTemplate,
|
|
63
|
+
hex: typeTemplate
|
|
64
|
+
},
|
|
65
|
+
string: {
|
|
66
|
+
len: 'تعداد کاراکترهای ${label} باید ${len} کاراکتر باشد',
|
|
67
|
+
min: 'حداقل کاراکترهای ${label} باید ${min} کاراکتر باشد',
|
|
68
|
+
max: 'حداکثر کاراکترهای ${label} باید ${max} کاراکتر باشد',
|
|
69
|
+
range: 'تعداد کاراکترهای ${label} باید بین ${min}-${max} کاراکتر باشد'
|
|
70
|
+
},
|
|
71
|
+
number: {
|
|
72
|
+
len: 'تعداد اعداد ${label} باید برابر با ${len} باشد',
|
|
73
|
+
min: 'تعداد اعداد ${label} باید حداقل ${min} باشد',
|
|
74
|
+
max: 'تعداد اعداد ${label} باید حداکثر ${max} باشد',
|
|
75
|
+
range: 'تعداد اعداد ${label} باید بین ${min}-${max} باشد'
|
|
76
|
+
},
|
|
77
|
+
array: {
|
|
78
|
+
len: 'طول آیتمهای ${label} باید برابر با ${len} باشد',
|
|
79
|
+
min: 'آیتمهای ${label} باید حداقل ${min} باشد',
|
|
80
|
+
max: 'آیتمهای ${label} باید حداکثر ${max} باشد',
|
|
81
|
+
range: 'آیتمهای ${label} باید بین ${min}-${max} باشد'
|
|
82
|
+
},
|
|
83
|
+
pattern: {
|
|
84
|
+
mismatch: '${label} با الگوی ${pattern} مطابقت ندارد'
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
ImageUploader: {
|
|
89
|
+
uploading: 'در حال آپلود...'
|
|
90
|
+
},
|
|
91
|
+
Mask: {
|
|
92
|
+
name: 'ماسک'
|
|
93
|
+
},
|
|
94
|
+
Modal: {
|
|
95
|
+
ok: 'باشه'
|
|
96
|
+
}
|
|
97
|
+
});
|
|
98
|
+
export default faIR;
|
package/2x/es/locales/zh-CN.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ declare const zhCN: {
|
|
|
2
2
|
common: {
|
|
3
3
|
confirm: string;
|
|
4
4
|
cancel: string;
|
|
5
|
+
loading: string;
|
|
5
6
|
};
|
|
6
7
|
Calendar: {
|
|
7
8
|
markItems: string[];
|
|
@@ -91,5 +92,10 @@ declare const zhCN: {
|
|
|
91
92
|
Modal: {
|
|
92
93
|
ok: string;
|
|
93
94
|
};
|
|
95
|
+
PullToRefresh: {
|
|
96
|
+
pulling: string;
|
|
97
|
+
canRelease: string;
|
|
98
|
+
complete: string;
|
|
99
|
+
};
|
|
94
100
|
};
|
|
95
101
|
export default zhCN;
|
package/2x/es/locales/zh-CN.js
CHANGED
|
@@ -4,7 +4,8 @@ const typeTemplate = '${label}不是一个有效的${type}';
|
|
|
4
4
|
const zhCN = mergeLocale(base, {
|
|
5
5
|
common: {
|
|
6
6
|
confirm: '确定',
|
|
7
|
-
cancel: '取消'
|
|
7
|
+
cancel: '取消',
|
|
8
|
+
loading: '加载中……'
|
|
8
9
|
},
|
|
9
10
|
Calendar: {
|
|
10
11
|
markItems: ['一', '二', '三', '四', '五', '六', '日'],
|
|
@@ -93,6 +94,11 @@ const zhCN = mergeLocale(base, {
|
|
|
93
94
|
},
|
|
94
95
|
Modal: {
|
|
95
96
|
ok: '我知道了'
|
|
97
|
+
},
|
|
98
|
+
PullToRefresh: {
|
|
99
|
+
pulling: '下拉刷新',
|
|
100
|
+
canRelease: '释放立即刷新',
|
|
101
|
+
complete: '刷新成功'
|
|
96
102
|
}
|
|
97
103
|
});
|
|
98
104
|
export default zhCN;
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
declare const zhHK: {
|
|
2
|
+
common: {
|
|
3
|
+
confirm: string;
|
|
4
|
+
cancel: string;
|
|
5
|
+
loading: string;
|
|
6
|
+
};
|
|
7
|
+
Calendar: {
|
|
8
|
+
markItems: string[];
|
|
9
|
+
renderYearAndMonth: (year: number, month: number) => string;
|
|
10
|
+
};
|
|
11
|
+
Cascader: {
|
|
12
|
+
placeholder: string;
|
|
13
|
+
};
|
|
14
|
+
Dialog: {
|
|
15
|
+
ok: string;
|
|
16
|
+
};
|
|
17
|
+
ErrorBlock: {
|
|
18
|
+
default: {
|
|
19
|
+
title: string;
|
|
20
|
+
description: string;
|
|
21
|
+
};
|
|
22
|
+
busy: {
|
|
23
|
+
title: string;
|
|
24
|
+
description: string;
|
|
25
|
+
};
|
|
26
|
+
disconnected: {
|
|
27
|
+
title: string;
|
|
28
|
+
description: string;
|
|
29
|
+
};
|
|
30
|
+
empty: {
|
|
31
|
+
title: string;
|
|
32
|
+
description: string;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
Form: {
|
|
36
|
+
required: string;
|
|
37
|
+
optional: string;
|
|
38
|
+
defaultValidateMessages: {
|
|
39
|
+
default: string;
|
|
40
|
+
required: string;
|
|
41
|
+
enum: string;
|
|
42
|
+
whitespace: string;
|
|
43
|
+
date: {
|
|
44
|
+
format: string;
|
|
45
|
+
parse: string;
|
|
46
|
+
invalid: string;
|
|
47
|
+
};
|
|
48
|
+
types: {
|
|
49
|
+
string: string;
|
|
50
|
+
method: string;
|
|
51
|
+
array: string;
|
|
52
|
+
object: string;
|
|
53
|
+
number: string;
|
|
54
|
+
date: string;
|
|
55
|
+
boolean: string;
|
|
56
|
+
integer: string;
|
|
57
|
+
float: string;
|
|
58
|
+
regexp: string;
|
|
59
|
+
email: string;
|
|
60
|
+
url: string;
|
|
61
|
+
hex: string;
|
|
62
|
+
};
|
|
63
|
+
string: {
|
|
64
|
+
len: string;
|
|
65
|
+
min: string;
|
|
66
|
+
max: string;
|
|
67
|
+
range: string;
|
|
68
|
+
};
|
|
69
|
+
number: {
|
|
70
|
+
len: string;
|
|
71
|
+
min: string;
|
|
72
|
+
max: string;
|
|
73
|
+
range: string;
|
|
74
|
+
};
|
|
75
|
+
array: {
|
|
76
|
+
len: string;
|
|
77
|
+
min: string;
|
|
78
|
+
max: string;
|
|
79
|
+
range: string;
|
|
80
|
+
};
|
|
81
|
+
pattern: {
|
|
82
|
+
mismatch: string;
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
ImageUploader: {
|
|
87
|
+
uploading: string;
|
|
88
|
+
};
|
|
89
|
+
Mask: {
|
|
90
|
+
name: string;
|
|
91
|
+
};
|
|
92
|
+
Modal: {
|
|
93
|
+
ok: string;
|
|
94
|
+
};
|
|
95
|
+
PullToRefresh: {
|
|
96
|
+
pulling: string;
|
|
97
|
+
canRelease: string;
|
|
98
|
+
complete: string;
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
export default zhHK;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { mergeLocale } from '../utils/merge-locale';
|
|
2
|
+
import { base } from './base';
|
|
3
|
+
const zhHK = mergeLocale(base, {
|
|
4
|
+
common: {
|
|
5
|
+
confirm: '確定',
|
|
6
|
+
cancel: '取消',
|
|
7
|
+
loading: '加載中……'
|
|
8
|
+
},
|
|
9
|
+
Cascader: {
|
|
10
|
+
placeholder: '請選擇'
|
|
11
|
+
},
|
|
12
|
+
Dialog: {
|
|
13
|
+
ok: '我知道了'
|
|
14
|
+
},
|
|
15
|
+
ErrorBlock: {
|
|
16
|
+
default: {
|
|
17
|
+
title: '頁面遇到一些小問題',
|
|
18
|
+
description: '待會來試試'
|
|
19
|
+
},
|
|
20
|
+
busy: {
|
|
21
|
+
title: '前方擁堵',
|
|
22
|
+
description: '刷新試試'
|
|
23
|
+
},
|
|
24
|
+
disconnected: {
|
|
25
|
+
title: '網絡有點忙',
|
|
26
|
+
description: '動動手指幫忙修復'
|
|
27
|
+
},
|
|
28
|
+
empty: {
|
|
29
|
+
title: '沒有找到您需要的東西',
|
|
30
|
+
description: '找找其他的吧'
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
ImageUploader: {
|
|
34
|
+
uploading: '上傳中...'
|
|
35
|
+
},
|
|
36
|
+
Mask: {
|
|
37
|
+
name: '遮罩層'
|
|
38
|
+
},
|
|
39
|
+
Modal: {
|
|
40
|
+
ok: '我知道了'
|
|
41
|
+
},
|
|
42
|
+
PullToRefresh: {
|
|
43
|
+
pulling: '下拉刷新',
|
|
44
|
+
canRelease: '釋放立即刷新',
|
|
45
|
+
complete: '刷新成功'
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
export default zhHK;
|