antd-mobile 5.6.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/calendar/calendar.d.ts +4 -3
- package/2x/cjs/components/calendar/calendar.js +67 -56
- package/2x/cjs/components/calendar/convert.d.ts +2 -0
- package/2x/cjs/components/calendar/convert.js +22 -0
- package/2x/cjs/components/collapse/collapse.js +7 -0
- 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/picker/picker.js +6 -9
- package/2x/cjs/components/picker-view/columns-extend.d.ts +3 -0
- package/2x/cjs/components/picker-view/columns-extend.js +45 -0
- package/2x/cjs/components/picker-view/picker-view.d.ts +1 -0
- package/2x/cjs/components/picker-view/picker-view.js +14 -16
- package/2x/cjs/components/pull-to-refresh/pull-to-refresh.js +11 -1
- package/2x/cjs/components/result/result.d.ts +2 -2
- package/2x/cjs/components/virtual-input/virtual-input.js +25 -14
- 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/cjs/utils/with-cache.d.ts +1 -0
- package/2x/cjs/utils/with-cache.js +17 -0
- package/2x/es/components/calendar/calendar.d.ts +4 -3
- package/2x/es/components/calendar/calendar.js +67 -58
- package/2x/es/components/calendar/convert.d.ts +2 -0
- package/2x/es/components/calendar/convert.js +15 -0
- package/2x/es/components/collapse/collapse.js +7 -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/picker/picker.js +6 -8
- package/2x/es/components/picker-view/columns-extend.d.ts +3 -0
- package/2x/es/components/picker-view/columns-extend.js +34 -0
- package/2x/es/components/picker-view/picker-view.d.ts +1 -0
- package/2x/es/components/picker-view/picker-view.js +14 -15
- package/2x/es/components/pull-to-refresh/pull-to-refresh.js +10 -1
- package/2x/es/components/result/result.d.ts +2 -2
- package/2x/es/components/virtual-input/virtual-input.js +23 -14
- 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/es/utils/with-cache.d.ts +1 -0
- package/2x/es/utils/with-cache.js +10 -0
- package/2x/package.json +1 -1
- package/cjs/components/calendar/calendar.d.ts +4 -3
- package/cjs/components/calendar/calendar.js +67 -56
- package/cjs/components/calendar/convert.d.ts +2 -0
- package/cjs/components/calendar/convert.js +22 -0
- package/cjs/components/collapse/collapse.js +7 -0
- 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/picker/picker.js +6 -9
- package/cjs/components/picker-view/columns-extend.d.ts +3 -0
- package/cjs/components/picker-view/columns-extend.js +45 -0
- package/cjs/components/picker-view/picker-view.d.ts +1 -0
- package/cjs/components/picker-view/picker-view.js +14 -16
- package/cjs/components/pull-to-refresh/pull-to-refresh.js +11 -1
- package/cjs/components/result/result.d.ts +2 -2
- package/cjs/components/virtual-input/virtual-input.js +25 -14
- 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/cjs/utils/with-cache.d.ts +1 -0
- package/cjs/utils/with-cache.js +17 -0
- package/es/components/calendar/calendar.d.ts +4 -3
- package/es/components/calendar/calendar.js +67 -58
- package/es/components/calendar/convert.d.ts +2 -0
- package/es/components/calendar/convert.js +15 -0
- package/es/components/collapse/collapse.js +7 -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/picker/picker.js +6 -8
- package/es/components/picker-view/columns-extend.d.ts +3 -0
- package/es/components/picker-view/columns-extend.js +34 -0
- package/es/components/picker-view/picker-view.d.ts +1 -0
- package/es/components/picker-view/picker-view.js +14 -15
- package/es/components/pull-to-refresh/pull-to-refresh.js +10 -1
- package/es/components/result/result.d.ts +2 -2
- package/es/components/virtual-input/virtual-input.js +23 -14
- 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/es/utils/with-cache.d.ts +1 -0
- package/es/utils/with-cache.js +10 -0
- package/package.json +1 -1
- package/umd/antd-mobile.js +1 -1
- package/2x/cjs/components/picker-view/use-columns.d.ts +0 -2
- package/2x/cjs/components/picker-view/use-columns.js +0 -18
- package/2x/cjs/components/picker-view/use-picker-value-extend.d.ts +0 -2
- package/2x/cjs/components/picker-view/use-picker-value-extend.js +0 -37
- package/2x/es/components/picker-view/use-columns.d.ts +0 -2
- package/2x/es/components/picker-view/use-columns.js +0 -10
- package/2x/es/components/picker-view/use-picker-value-extend.d.ts +0 -2
- package/2x/es/components/picker-view/use-picker-value-extend.js +0 -26
- package/cjs/components/picker-view/use-columns.d.ts +0 -2
- package/cjs/components/picker-view/use-columns.js +0 -18
- package/cjs/components/picker-view/use-picker-value-extend.d.ts +0 -2
- package/cjs/components/picker-view/use-picker-value-extend.js +0 -37
- package/es/components/picker-view/use-columns.d.ts +0 -2
- package/es/components/picker-view/use-columns.js +0 -10
- package/es/components/picker-view/use-picker-value-extend.d.ts +0 -2
- package/es/components/picker-view/use-picker-value-extend.js +0 -26
|
@@ -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,108 @@
|
|
|
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 typeTemplate = '${label} یک ${type} معتبر نیست';
|
|
13
|
+
const faIR = (0, _mergeLocale.mergeLocale)(_base.base, {
|
|
14
|
+
common: {
|
|
15
|
+
confirm: 'تایید',
|
|
16
|
+
cancel: 'لغو'
|
|
17
|
+
},
|
|
18
|
+
Calendar: {
|
|
19
|
+
markItems: ['شنبه', 'یکشنبه', 'دوشنبه', 'سهشنبه', 'چهارشنبه', 'پنجنشبه', 'جمعه'],
|
|
20
|
+
renderYearAndMonth: (year, month) => `${year}/${month}`
|
|
21
|
+
},
|
|
22
|
+
Cascader: {
|
|
23
|
+
placeholder: 'انتخاب کنید'
|
|
24
|
+
},
|
|
25
|
+
Dialog: {
|
|
26
|
+
ok: 'باشه'
|
|
27
|
+
},
|
|
28
|
+
ErrorBlock: {
|
|
29
|
+
default: {
|
|
30
|
+
title: 'اوه، مشکلی پیش آمد',
|
|
31
|
+
description: 'لطفاً یک دقیقه صبر کنید و دوباره امتحان کنید'
|
|
32
|
+
},
|
|
33
|
+
busy: {
|
|
34
|
+
title: 'اوه، بارگیری نمی شود',
|
|
35
|
+
description: 'سعی کنید صفحه را به روز کنید'
|
|
36
|
+
},
|
|
37
|
+
disconnected: {
|
|
38
|
+
title: 'شبکه مشغول است',
|
|
39
|
+
description: 'سعی کنید صفحه را به روز کنید'
|
|
40
|
+
},
|
|
41
|
+
empty: {
|
|
42
|
+
title: 'هوم، نتونستم پیداش کنم...',
|
|
43
|
+
description: 'آیا می خواهید یک جستجوی جدید را امتحان کنید؟'
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
Form: {
|
|
47
|
+
required: 'اجباری',
|
|
48
|
+
optional: 'اختیاری',
|
|
49
|
+
defaultValidateMessages: {
|
|
50
|
+
default: 'خطای اعتبارسنجی فیلد برای ${label}',
|
|
51
|
+
required: 'لطفا وارد کنید ${label}',
|
|
52
|
+
enum: '${label} باید یکی از [${enum}]',
|
|
53
|
+
whitespace: '${label} نمی تواند یک کاراکتر خالی باشد',
|
|
54
|
+
date: {
|
|
55
|
+
format: '${label} قالب تاریخ نامعتبر است',
|
|
56
|
+
parse: '${label} نمی توان به تاریخ تبدیل کرد',
|
|
57
|
+
invalid: '${label} تاریخ نامعتبر است'
|
|
58
|
+
},
|
|
59
|
+
types: {
|
|
60
|
+
string: typeTemplate,
|
|
61
|
+
method: typeTemplate,
|
|
62
|
+
array: typeTemplate,
|
|
63
|
+
object: typeTemplate,
|
|
64
|
+
number: typeTemplate,
|
|
65
|
+
date: typeTemplate,
|
|
66
|
+
boolean: typeTemplate,
|
|
67
|
+
integer: typeTemplate,
|
|
68
|
+
float: typeTemplate,
|
|
69
|
+
regexp: typeTemplate,
|
|
70
|
+
email: typeTemplate,
|
|
71
|
+
url: typeTemplate,
|
|
72
|
+
hex: typeTemplate
|
|
73
|
+
},
|
|
74
|
+
string: {
|
|
75
|
+
len: 'تعداد کاراکترهای ${label} باید ${len} کاراکتر باشد',
|
|
76
|
+
min: 'حداقل کاراکترهای ${label} باید ${min} کاراکتر باشد',
|
|
77
|
+
max: 'حداکثر کاراکترهای ${label} باید ${max} کاراکتر باشد',
|
|
78
|
+
range: 'تعداد کاراکترهای ${label} باید بین ${min}-${max} کاراکتر باشد'
|
|
79
|
+
},
|
|
80
|
+
number: {
|
|
81
|
+
len: 'تعداد اعداد ${label} باید برابر با ${len} باشد',
|
|
82
|
+
min: 'تعداد اعداد ${label} باید حداقل ${min} باشد',
|
|
83
|
+
max: 'تعداد اعداد ${label} باید حداکثر ${max} باشد',
|
|
84
|
+
range: 'تعداد اعداد ${label} باید بین ${min}-${max} باشد'
|
|
85
|
+
},
|
|
86
|
+
array: {
|
|
87
|
+
len: 'طول آیتمهای ${label} باید برابر با ${len} باشد',
|
|
88
|
+
min: 'آیتمهای ${label} باید حداقل ${min} باشد',
|
|
89
|
+
max: 'آیتمهای ${label} باید حداکثر ${max} باشد',
|
|
90
|
+
range: 'آیتمهای ${label} باید بین ${min}-${max} باشد'
|
|
91
|
+
},
|
|
92
|
+
pattern: {
|
|
93
|
+
mismatch: '${label} با الگوی ${pattern} مطابقت ندارد'
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
ImageUploader: {
|
|
98
|
+
uploading: 'در حال آپلود...'
|
|
99
|
+
},
|
|
100
|
+
Mask: {
|
|
101
|
+
name: 'ماسک'
|
|
102
|
+
},
|
|
103
|
+
Modal: {
|
|
104
|
+
ok: 'باشه'
|
|
105
|
+
}
|
|
106
|
+
});
|
|
107
|
+
var _default = faIR;
|
|
108
|
+
exports.default = _default;
|
|
@@ -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/cjs/locales/zh-CN.js
CHANGED
|
@@ -13,7 +13,8 @@ const typeTemplate = '${label}不是一个有效的${type}';
|
|
|
13
13
|
const zhCN = (0, _mergeLocale.mergeLocale)(_base.base, {
|
|
14
14
|
common: {
|
|
15
15
|
confirm: '确定',
|
|
16
|
-
cancel: '取消'
|
|
16
|
+
cancel: '取消',
|
|
17
|
+
loading: '加载中……'
|
|
17
18
|
},
|
|
18
19
|
Calendar: {
|
|
19
20
|
markItems: ['一', '二', '三', '四', '五', '六', '日'],
|
|
@@ -102,6 +103,11 @@ const zhCN = (0, _mergeLocale.mergeLocale)(_base.base, {
|
|
|
102
103
|
},
|
|
103
104
|
Modal: {
|
|
104
105
|
ok: '我知道了'
|
|
106
|
+
},
|
|
107
|
+
PullToRefresh: {
|
|
108
|
+
pulling: '下拉刷新',
|
|
109
|
+
canRelease: '释放立即刷新',
|
|
110
|
+
complete: '刷新成功'
|
|
105
111
|
}
|
|
106
112
|
});
|
|
107
113
|
var _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,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 zhHK = (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 = zhHK;
|
|
58
|
+
exports.default = _default;
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
declare const zhTW: {
|
|
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 zhTW;
|
|
@@ -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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function withCache<T>(generate: () => T): () => T;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.withCache = withCache;
|
|
7
|
+
|
|
8
|
+
function withCache(generate) {
|
|
9
|
+
let cache = null;
|
|
10
|
+
return () => {
|
|
11
|
+
if (cache === null) {
|
|
12
|
+
cache = generate();
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
return cache;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
@@ -9,9 +9,10 @@ export declare type CalenderRef = {
|
|
|
9
9
|
jumpToToday: () => void;
|
|
10
10
|
};
|
|
11
11
|
export declare type CalendarProps = {
|
|
12
|
+
onPageChange?: (year: number, month: number) => void;
|
|
12
13
|
weekStartsOn?: 'Monday' | 'Sunday';
|
|
13
14
|
renderLabel?: (date: Date) => string | null | undefined;
|
|
14
|
-
|
|
15
|
+
allowClear?: boolean;
|
|
15
16
|
} & ({
|
|
16
17
|
selectionMode?: undefined;
|
|
17
18
|
value?: undefined;
|
|
@@ -21,12 +22,12 @@ export declare type CalendarProps = {
|
|
|
21
22
|
selectionMode: 'single';
|
|
22
23
|
value?: Date | null;
|
|
23
24
|
defaultValue?: Date | null;
|
|
24
|
-
onChange?: (val: Date) => void;
|
|
25
|
+
onChange?: (val: Date | null) => void;
|
|
25
26
|
} | {
|
|
26
27
|
selectionMode: 'range';
|
|
27
28
|
value?: [Date, Date] | null;
|
|
28
29
|
defaultValue?: [Date, Date] | null;
|
|
29
|
-
onChange?: (val: [Date, Date]) => void;
|
|
30
|
+
onChange?: (val: [Date, Date] | null) => void;
|
|
30
31
|
}) & NativeProps;
|
|
31
32
|
export declare const Calendar: React.ForwardRefExoticComponent<CalendarProps & React.RefAttributes<CalenderRef>>;
|
|
32
33
|
export {};
|