antd-mobile 5.7.0 → 5.8.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/2x/cjs/components/collapse/collapse.js +7 -0
- package/2x/cjs/components/dialog/confirm.js +9 -1
- package/2x/cjs/components/dialog/dialog.js +2 -2
- package/2x/cjs/components/form/form-item.d.ts +1 -1
- package/2x/cjs/components/form/form-item.js +6 -3
- package/2x/cjs/components/input/input.d.ts +3 -2
- package/2x/cjs/components/input/input.js +6 -0
- package/2x/cjs/components/modal/confirm.js +9 -1
- package/2x/cjs/components/modal/modal.js +2 -2
- package/2x/cjs/components/passcode-input/passcode-input.js +1 -1
- package/2x/cjs/components/popover/popover.js +6 -6
- 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/search-bar/search-bar.js +7 -0
- package/2x/cjs/components/slider/slider.css +2 -0
- package/2x/cjs/components/slider/slider.d.ts +2 -1
- package/2x/cjs/components/slider/slider.js +3 -1
- package/2x/cjs/components/slider/thumb.d.ts +2 -1
- package/2x/cjs/components/slider/thumb.js +3 -2
- package/2x/cjs/components/text-area/text-area.d.ts +2 -2
- package/2x/cjs/components/text-area/text-area.js +1 -0
- package/2x/cjs/components/virtual-input/virtual-input.js +25 -14
- package/2x/cjs/locales/base.d.ts +7 -0
- package/2x/cjs/locales/base.js +8 -1
- package/2x/cjs/locales/en-US.d.ts +7 -0
- package/2x/cjs/locales/fa-IR.d.ts +102 -0
- package/2x/cjs/locales/fa-IR.js +109 -0
- package/2x/cjs/locales/zh-CN.d.ts +7 -0
- package/2x/cjs/locales/zh-CN.js +8 -1
- package/2x/cjs/locales/zh-HK.d.ts +102 -0
- package/2x/cjs/locales/zh-HK.js +59 -0
- package/2x/cjs/locales/zh-TW.d.ts +102 -0
- package/2x/cjs/locales/zh-TW.js +59 -0
- package/2x/es/components/collapse/collapse.js +7 -0
- package/2x/es/components/dialog/confirm.js +8 -1
- package/2x/es/components/dialog/dialog.js +2 -2
- package/2x/es/components/form/form-item.d.ts +1 -1
- package/2x/es/components/form/form-item.js +6 -3
- package/2x/es/components/input/input.d.ts +3 -2
- package/2x/es/components/input/input.js +6 -0
- package/2x/es/components/modal/confirm.js +8 -1
- package/2x/es/components/modal/modal.js +2 -2
- package/2x/es/components/passcode-input/passcode-input.js +1 -1
- package/2x/es/components/popover/popover.js +1 -1
- 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/search-bar/search-bar.js +7 -0
- package/2x/es/components/slider/slider.css +2 -0
- package/2x/es/components/slider/slider.d.ts +2 -1
- package/2x/es/components/slider/slider.js +3 -1
- package/2x/es/components/slider/thumb.d.ts +2 -1
- package/2x/es/components/slider/thumb.js +3 -2
- package/2x/es/components/text-area/text-area.d.ts +2 -2
- package/2x/es/components/text-area/text-area.js +1 -0
- package/2x/es/components/virtual-input/virtual-input.js +23 -14
- package/2x/es/locales/base.d.ts +7 -0
- package/2x/es/locales/base.js +8 -1
- package/2x/es/locales/en-US.d.ts +7 -0
- package/2x/es/locales/fa-IR.d.ts +102 -0
- package/2x/es/locales/fa-IR.js +99 -0
- package/2x/es/locales/zh-CN.d.ts +7 -0
- package/2x/es/locales/zh-CN.js +8 -1
- package/2x/es/locales/zh-HK.d.ts +102 -0
- package/2x/es/locales/zh-HK.js +49 -0
- package/2x/es/locales/zh-TW.d.ts +102 -0
- package/2x/es/locales/zh-TW.js +49 -0
- package/2x/package.json +1 -1
- package/cjs/components/collapse/collapse.js +7 -0
- package/cjs/components/dialog/confirm.js +9 -1
- package/cjs/components/dialog/dialog.js +2 -2
- package/cjs/components/form/form-item.d.ts +1 -1
- package/cjs/components/form/form-item.js +6 -3
- package/cjs/components/input/input.d.ts +3 -2
- package/cjs/components/input/input.js +6 -0
- package/cjs/components/modal/confirm.js +9 -1
- package/cjs/components/modal/modal.js +2 -2
- package/cjs/components/passcode-input/passcode-input.js +1 -1
- package/cjs/components/popover/popover.js +6 -6
- package/cjs/components/pull-to-refresh/pull-to-refresh.js +11 -1
- package/cjs/components/result/result.d.ts +2 -2
- package/cjs/components/search-bar/search-bar.js +7 -0
- package/cjs/components/slider/slider.css +2 -0
- package/cjs/components/slider/slider.d.ts +2 -1
- package/cjs/components/slider/slider.js +3 -1
- package/cjs/components/slider/thumb.d.ts +2 -1
- package/cjs/components/slider/thumb.js +3 -2
- package/cjs/components/text-area/text-area.d.ts +2 -2
- package/cjs/components/text-area/text-area.js +1 -0
- package/cjs/components/virtual-input/virtual-input.js +25 -14
- package/cjs/locales/base.d.ts +7 -0
- package/cjs/locales/base.js +8 -1
- package/cjs/locales/en-US.d.ts +7 -0
- package/cjs/locales/fa-IR.d.ts +102 -0
- package/cjs/locales/fa-IR.js +109 -0
- package/cjs/locales/zh-CN.d.ts +7 -0
- package/cjs/locales/zh-CN.js +8 -1
- package/cjs/locales/zh-HK.d.ts +102 -0
- package/cjs/locales/zh-HK.js +59 -0
- package/cjs/locales/zh-TW.d.ts +102 -0
- package/cjs/locales/zh-TW.js +59 -0
- package/es/components/collapse/collapse.js +7 -0
- package/es/components/dialog/confirm.js +8 -1
- package/es/components/dialog/dialog.js +2 -2
- package/es/components/form/form-item.d.ts +1 -1
- package/es/components/form/form-item.js +6 -3
- package/es/components/input/input.d.ts +3 -2
- package/es/components/input/input.js +6 -0
- package/es/components/modal/confirm.js +8 -1
- package/es/components/modal/modal.js +2 -2
- package/es/components/passcode-input/passcode-input.js +1 -1
- package/es/components/popover/popover.js +1 -1
- package/es/components/pull-to-refresh/pull-to-refresh.js +10 -1
- package/es/components/result/result.d.ts +2 -2
- package/es/components/search-bar/search-bar.js +7 -0
- package/es/components/slider/slider.css +2 -0
- package/es/components/slider/slider.d.ts +2 -1
- package/es/components/slider/slider.js +3 -1
- package/es/components/slider/thumb.d.ts +2 -1
- package/es/components/slider/thumb.js +3 -2
- package/es/components/text-area/text-area.d.ts +2 -2
- package/es/components/text-area/text-area.js +1 -0
- package/es/components/virtual-input/virtual-input.js +23 -14
- package/es/locales/base.d.ts +7 -0
- package/es/locales/base.js +8 -1
- package/es/locales/en-US.d.ts +7 -0
- package/es/locales/fa-IR.d.ts +102 -0
- package/es/locales/fa-IR.js +99 -0
- package/es/locales/zh-CN.d.ts +7 -0
- package/es/locales/zh-CN.js +8 -1
- package/es/locales/zh-HK.d.ts +102 -0
- package/es/locales/zh-HK.js +49 -0
- package/es/locales/zh-TW.d.ts +102 -0
- package/es/locales/zh-TW.js +49 -0
- package/package.json +1 -1
- package/umd/antd-mobile.js +1 -1
- package/2x/cjs/components/popover/temp-floating-ui.min.d.ts +0 -1
- package/2x/cjs/components/popover/temp-floating-ui.min.js +0 -1
- package/2x/es/components/popover/temp-floating-ui.min.d.ts +0 -1
- package/2x/es/components/popover/temp-floating-ui.min.js +0 -1
- package/cjs/components/popover/temp-floating-ui.min.d.ts +0 -1
- package/cjs/components/popover/temp-floating-ui.min.js +0 -1
- package/es/components/popover/temp-floating-ui.min.d.ts +0 -1
- package/es/components/popover/temp-floating-ui.min.js +0 -1
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
declare const faIR: {
|
|
2
|
+
locale: string;
|
|
3
|
+
common: {
|
|
4
|
+
confirm: string;
|
|
5
|
+
cancel: string;
|
|
6
|
+
loading: string;
|
|
7
|
+
};
|
|
8
|
+
Calendar: {
|
|
9
|
+
markItems: string[];
|
|
10
|
+
renderYearAndMonth: (year: number, month: number) => string;
|
|
11
|
+
};
|
|
12
|
+
Cascader: {
|
|
13
|
+
placeholder: string;
|
|
14
|
+
};
|
|
15
|
+
Dialog: {
|
|
16
|
+
ok: string;
|
|
17
|
+
};
|
|
18
|
+
ErrorBlock: {
|
|
19
|
+
default: {
|
|
20
|
+
title: string;
|
|
21
|
+
description: string;
|
|
22
|
+
};
|
|
23
|
+
busy: {
|
|
24
|
+
title: string;
|
|
25
|
+
description: string;
|
|
26
|
+
};
|
|
27
|
+
disconnected: {
|
|
28
|
+
title: string;
|
|
29
|
+
description: string;
|
|
30
|
+
};
|
|
31
|
+
empty: {
|
|
32
|
+
title: string;
|
|
33
|
+
description: string;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
Form: {
|
|
37
|
+
required: string;
|
|
38
|
+
optional: string;
|
|
39
|
+
defaultValidateMessages: {
|
|
40
|
+
default: string;
|
|
41
|
+
required: string;
|
|
42
|
+
enum: string;
|
|
43
|
+
whitespace: string;
|
|
44
|
+
date: {
|
|
45
|
+
format: string;
|
|
46
|
+
parse: string;
|
|
47
|
+
invalid: string;
|
|
48
|
+
};
|
|
49
|
+
types: {
|
|
50
|
+
string: string;
|
|
51
|
+
method: string;
|
|
52
|
+
array: string;
|
|
53
|
+
object: string;
|
|
54
|
+
number: string;
|
|
55
|
+
date: string;
|
|
56
|
+
boolean: string;
|
|
57
|
+
integer: string;
|
|
58
|
+
float: string;
|
|
59
|
+
regexp: string;
|
|
60
|
+
email: string;
|
|
61
|
+
url: string;
|
|
62
|
+
hex: string;
|
|
63
|
+
};
|
|
64
|
+
string: {
|
|
65
|
+
len: string;
|
|
66
|
+
min: string;
|
|
67
|
+
max: string;
|
|
68
|
+
range: string;
|
|
69
|
+
};
|
|
70
|
+
number: {
|
|
71
|
+
len: string;
|
|
72
|
+
min: string;
|
|
73
|
+
max: string;
|
|
74
|
+
range: string;
|
|
75
|
+
};
|
|
76
|
+
array: {
|
|
77
|
+
len: string;
|
|
78
|
+
min: string;
|
|
79
|
+
max: string;
|
|
80
|
+
range: string;
|
|
81
|
+
};
|
|
82
|
+
pattern: {
|
|
83
|
+
mismatch: string;
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
ImageUploader: {
|
|
88
|
+
uploading: string;
|
|
89
|
+
};
|
|
90
|
+
Mask: {
|
|
91
|
+
name: string;
|
|
92
|
+
};
|
|
93
|
+
Modal: {
|
|
94
|
+
ok: string;
|
|
95
|
+
};
|
|
96
|
+
PullToRefresh: {
|
|
97
|
+
pulling: string;
|
|
98
|
+
canRelease: string;
|
|
99
|
+
complete: string;
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
export default faIR;
|
|
@@ -0,0 +1,109 @@
|
|
|
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
|
+
locale: 'fa-IR',
|
|
15
|
+
common: {
|
|
16
|
+
confirm: 'تایید',
|
|
17
|
+
cancel: 'لغو'
|
|
18
|
+
},
|
|
19
|
+
Calendar: {
|
|
20
|
+
markItems: ['شنبه', 'یکشنبه', 'دوشنبه', 'سهشنبه', 'چهارشنبه', 'پنجنشبه', 'جمعه'],
|
|
21
|
+
renderYearAndMonth: (year, month) => `${year}/${month}`
|
|
22
|
+
},
|
|
23
|
+
Cascader: {
|
|
24
|
+
placeholder: 'انتخاب کنید'
|
|
25
|
+
},
|
|
26
|
+
Dialog: {
|
|
27
|
+
ok: 'باشه'
|
|
28
|
+
},
|
|
29
|
+
ErrorBlock: {
|
|
30
|
+
default: {
|
|
31
|
+
title: 'اوه، مشکلی پیش آمد',
|
|
32
|
+
description: 'لطفاً یک دقیقه صبر کنید و دوباره امتحان کنید'
|
|
33
|
+
},
|
|
34
|
+
busy: {
|
|
35
|
+
title: 'اوه، بارگیری نمی شود',
|
|
36
|
+
description: 'سعی کنید صفحه را به روز کنید'
|
|
37
|
+
},
|
|
38
|
+
disconnected: {
|
|
39
|
+
title: 'شبکه مشغول است',
|
|
40
|
+
description: 'سعی کنید صفحه را به روز کنید'
|
|
41
|
+
},
|
|
42
|
+
empty: {
|
|
43
|
+
title: 'هوم، نتونستم پیداش کنم...',
|
|
44
|
+
description: 'آیا می خواهید یک جستجوی جدید را امتحان کنید؟'
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
Form: {
|
|
48
|
+
required: 'اجباری',
|
|
49
|
+
optional: 'اختیاری',
|
|
50
|
+
defaultValidateMessages: {
|
|
51
|
+
default: 'خطای اعتبارسنجی فیلد برای ${label}',
|
|
52
|
+
required: 'لطفا وارد کنید ${label}',
|
|
53
|
+
enum: '${label} باید یکی از [${enum}]',
|
|
54
|
+
whitespace: '${label} نمی تواند یک کاراکتر خالی باشد',
|
|
55
|
+
date: {
|
|
56
|
+
format: '${label} قالب تاریخ نامعتبر است',
|
|
57
|
+
parse: '${label} نمی توان به تاریخ تبدیل کرد',
|
|
58
|
+
invalid: '${label} تاریخ نامعتبر است'
|
|
59
|
+
},
|
|
60
|
+
types: {
|
|
61
|
+
string: typeTemplate,
|
|
62
|
+
method: typeTemplate,
|
|
63
|
+
array: typeTemplate,
|
|
64
|
+
object: typeTemplate,
|
|
65
|
+
number: typeTemplate,
|
|
66
|
+
date: typeTemplate,
|
|
67
|
+
boolean: typeTemplate,
|
|
68
|
+
integer: typeTemplate,
|
|
69
|
+
float: typeTemplate,
|
|
70
|
+
regexp: typeTemplate,
|
|
71
|
+
email: typeTemplate,
|
|
72
|
+
url: typeTemplate,
|
|
73
|
+
hex: typeTemplate
|
|
74
|
+
},
|
|
75
|
+
string: {
|
|
76
|
+
len: 'تعداد کاراکترهای ${label} باید ${len} کاراکتر باشد',
|
|
77
|
+
min: 'حداقل کاراکترهای ${label} باید ${min} کاراکتر باشد',
|
|
78
|
+
max: 'حداکثر کاراکترهای ${label} باید ${max} کاراکتر باشد',
|
|
79
|
+
range: 'تعداد کاراکترهای ${label} باید بین ${min}-${max} کاراکتر باشد'
|
|
80
|
+
},
|
|
81
|
+
number: {
|
|
82
|
+
len: 'تعداد اعداد ${label} باید برابر با ${len} باشد',
|
|
83
|
+
min: 'تعداد اعداد ${label} باید حداقل ${min} باشد',
|
|
84
|
+
max: 'تعداد اعداد ${label} باید حداکثر ${max} باشد',
|
|
85
|
+
range: 'تعداد اعداد ${label} باید بین ${min}-${max} باشد'
|
|
86
|
+
},
|
|
87
|
+
array: {
|
|
88
|
+
len: 'طول آیتمهای ${label} باید برابر با ${len} باشد',
|
|
89
|
+
min: 'آیتمهای ${label} باید حداقل ${min} باشد',
|
|
90
|
+
max: 'آیتمهای ${label} باید حداکثر ${max} باشد',
|
|
91
|
+
range: 'آیتمهای ${label} باید بین ${min}-${max} باشد'
|
|
92
|
+
},
|
|
93
|
+
pattern: {
|
|
94
|
+
mismatch: '${label} با الگوی ${pattern} مطابقت ندارد'
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
ImageUploader: {
|
|
99
|
+
uploading: 'در حال آپلود...'
|
|
100
|
+
},
|
|
101
|
+
Mask: {
|
|
102
|
+
name: 'ماسک'
|
|
103
|
+
},
|
|
104
|
+
Modal: {
|
|
105
|
+
ok: 'باشه'
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
var _default = faIR;
|
|
109
|
+
exports.default = _default;
|
package/cjs/locales/zh-CN.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
declare const zhCN: {
|
|
2
|
+
locale: string;
|
|
2
3
|
common: {
|
|
3
4
|
confirm: string;
|
|
4
5
|
cancel: string;
|
|
6
|
+
loading: string;
|
|
5
7
|
};
|
|
6
8
|
Calendar: {
|
|
7
9
|
markItems: string[];
|
|
@@ -91,5 +93,10 @@ declare const zhCN: {
|
|
|
91
93
|
Modal: {
|
|
92
94
|
ok: string;
|
|
93
95
|
};
|
|
96
|
+
PullToRefresh: {
|
|
97
|
+
pulling: string;
|
|
98
|
+
canRelease: string;
|
|
99
|
+
complete: string;
|
|
100
|
+
};
|
|
94
101
|
};
|
|
95
102
|
export default zhCN;
|
package/cjs/locales/zh-CN.js
CHANGED
|
@@ -11,9 +11,11 @@ var _base = require("./base");
|
|
|
11
11
|
|
|
12
12
|
const typeTemplate = '${label}不是一个有效的${type}';
|
|
13
13
|
const zhCN = (0, _mergeLocale.mergeLocale)(_base.base, {
|
|
14
|
+
locale: 'zh-CH',
|
|
14
15
|
common: {
|
|
15
16
|
confirm: '确定',
|
|
16
|
-
cancel: '取消'
|
|
17
|
+
cancel: '取消',
|
|
18
|
+
loading: '加载中……'
|
|
17
19
|
},
|
|
18
20
|
Calendar: {
|
|
19
21
|
markItems: ['一', '二', '三', '四', '五', '六', '日'],
|
|
@@ -102,6 +104,11 @@ const zhCN = (0, _mergeLocale.mergeLocale)(_base.base, {
|
|
|
102
104
|
},
|
|
103
105
|
Modal: {
|
|
104
106
|
ok: '我知道了'
|
|
107
|
+
},
|
|
108
|
+
PullToRefresh: {
|
|
109
|
+
pulling: '下拉刷新',
|
|
110
|
+
canRelease: '释放立即刷新',
|
|
111
|
+
complete: '刷新成功'
|
|
105
112
|
}
|
|
106
113
|
});
|
|
107
114
|
var _default = zhCN;
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
declare const zhHK: {
|
|
2
|
+
locale: string;
|
|
3
|
+
common: {
|
|
4
|
+
confirm: string;
|
|
5
|
+
cancel: string;
|
|
6
|
+
loading: string;
|
|
7
|
+
};
|
|
8
|
+
Calendar: {
|
|
9
|
+
markItems: string[];
|
|
10
|
+
renderYearAndMonth: (year: number, month: number) => string;
|
|
11
|
+
};
|
|
12
|
+
Cascader: {
|
|
13
|
+
placeholder: string;
|
|
14
|
+
};
|
|
15
|
+
Dialog: {
|
|
16
|
+
ok: string;
|
|
17
|
+
};
|
|
18
|
+
ErrorBlock: {
|
|
19
|
+
default: {
|
|
20
|
+
title: string;
|
|
21
|
+
description: string;
|
|
22
|
+
};
|
|
23
|
+
busy: {
|
|
24
|
+
title: string;
|
|
25
|
+
description: string;
|
|
26
|
+
};
|
|
27
|
+
disconnected: {
|
|
28
|
+
title: string;
|
|
29
|
+
description: string;
|
|
30
|
+
};
|
|
31
|
+
empty: {
|
|
32
|
+
title: string;
|
|
33
|
+
description: string;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
Form: {
|
|
37
|
+
required: string;
|
|
38
|
+
optional: string;
|
|
39
|
+
defaultValidateMessages: {
|
|
40
|
+
default: string;
|
|
41
|
+
required: string;
|
|
42
|
+
enum: string;
|
|
43
|
+
whitespace: string;
|
|
44
|
+
date: {
|
|
45
|
+
format: string;
|
|
46
|
+
parse: string;
|
|
47
|
+
invalid: string;
|
|
48
|
+
};
|
|
49
|
+
types: {
|
|
50
|
+
string: string;
|
|
51
|
+
method: string;
|
|
52
|
+
array: string;
|
|
53
|
+
object: string;
|
|
54
|
+
number: string;
|
|
55
|
+
date: string;
|
|
56
|
+
boolean: string;
|
|
57
|
+
integer: string;
|
|
58
|
+
float: string;
|
|
59
|
+
regexp: string;
|
|
60
|
+
email: string;
|
|
61
|
+
url: string;
|
|
62
|
+
hex: string;
|
|
63
|
+
};
|
|
64
|
+
string: {
|
|
65
|
+
len: string;
|
|
66
|
+
min: string;
|
|
67
|
+
max: string;
|
|
68
|
+
range: string;
|
|
69
|
+
};
|
|
70
|
+
number: {
|
|
71
|
+
len: string;
|
|
72
|
+
min: string;
|
|
73
|
+
max: string;
|
|
74
|
+
range: string;
|
|
75
|
+
};
|
|
76
|
+
array: {
|
|
77
|
+
len: string;
|
|
78
|
+
min: string;
|
|
79
|
+
max: string;
|
|
80
|
+
range: string;
|
|
81
|
+
};
|
|
82
|
+
pattern: {
|
|
83
|
+
mismatch: string;
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
ImageUploader: {
|
|
88
|
+
uploading: string;
|
|
89
|
+
};
|
|
90
|
+
Mask: {
|
|
91
|
+
name: string;
|
|
92
|
+
};
|
|
93
|
+
Modal: {
|
|
94
|
+
ok: string;
|
|
95
|
+
};
|
|
96
|
+
PullToRefresh: {
|
|
97
|
+
pulling: string;
|
|
98
|
+
canRelease: string;
|
|
99
|
+
complete: string;
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
export default zhHK;
|
|
@@ -0,0 +1,59 @@
|
|
|
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
|
+
locale: 'zh-HK',
|
|
14
|
+
common: {
|
|
15
|
+
confirm: '確定',
|
|
16
|
+
cancel: '取消',
|
|
17
|
+
loading: '加載中……'
|
|
18
|
+
},
|
|
19
|
+
Cascader: {
|
|
20
|
+
placeholder: '請選擇'
|
|
21
|
+
},
|
|
22
|
+
Dialog: {
|
|
23
|
+
ok: '我知道了'
|
|
24
|
+
},
|
|
25
|
+
ErrorBlock: {
|
|
26
|
+
default: {
|
|
27
|
+
title: '頁面遇到一些小問題',
|
|
28
|
+
description: '待會來試試'
|
|
29
|
+
},
|
|
30
|
+
busy: {
|
|
31
|
+
title: '前方擁堵',
|
|
32
|
+
description: '刷新試試'
|
|
33
|
+
},
|
|
34
|
+
disconnected: {
|
|
35
|
+
title: '網絡有點忙',
|
|
36
|
+
description: '動動手指幫忙修復'
|
|
37
|
+
},
|
|
38
|
+
empty: {
|
|
39
|
+
title: '沒有找到您需要的東西',
|
|
40
|
+
description: '找找其他的吧'
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
ImageUploader: {
|
|
44
|
+
uploading: '上傳中...'
|
|
45
|
+
},
|
|
46
|
+
Mask: {
|
|
47
|
+
name: '遮罩層'
|
|
48
|
+
},
|
|
49
|
+
Modal: {
|
|
50
|
+
ok: '我知道了'
|
|
51
|
+
},
|
|
52
|
+
PullToRefresh: {
|
|
53
|
+
pulling: '下拉刷新',
|
|
54
|
+
canRelease: '釋放立即刷新',
|
|
55
|
+
complete: '刷新成功'
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
var _default = zhHK;
|
|
59
|
+
exports.default = _default;
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
declare const zhTW: {
|
|
2
|
+
locale: string;
|
|
3
|
+
common: {
|
|
4
|
+
confirm: string;
|
|
5
|
+
cancel: string;
|
|
6
|
+
loading: string;
|
|
7
|
+
};
|
|
8
|
+
Calendar: {
|
|
9
|
+
markItems: string[];
|
|
10
|
+
renderYearAndMonth: (year: number, month: number) => string;
|
|
11
|
+
};
|
|
12
|
+
Cascader: {
|
|
13
|
+
placeholder: string;
|
|
14
|
+
};
|
|
15
|
+
Dialog: {
|
|
16
|
+
ok: string;
|
|
17
|
+
};
|
|
18
|
+
ErrorBlock: {
|
|
19
|
+
default: {
|
|
20
|
+
title: string;
|
|
21
|
+
description: string;
|
|
22
|
+
};
|
|
23
|
+
busy: {
|
|
24
|
+
title: string;
|
|
25
|
+
description: string;
|
|
26
|
+
};
|
|
27
|
+
disconnected: {
|
|
28
|
+
title: string;
|
|
29
|
+
description: string;
|
|
30
|
+
};
|
|
31
|
+
empty: {
|
|
32
|
+
title: string;
|
|
33
|
+
description: string;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
Form: {
|
|
37
|
+
required: string;
|
|
38
|
+
optional: string;
|
|
39
|
+
defaultValidateMessages: {
|
|
40
|
+
default: string;
|
|
41
|
+
required: string;
|
|
42
|
+
enum: string;
|
|
43
|
+
whitespace: string;
|
|
44
|
+
date: {
|
|
45
|
+
format: string;
|
|
46
|
+
parse: string;
|
|
47
|
+
invalid: string;
|
|
48
|
+
};
|
|
49
|
+
types: {
|
|
50
|
+
string: string;
|
|
51
|
+
method: string;
|
|
52
|
+
array: string;
|
|
53
|
+
object: string;
|
|
54
|
+
number: string;
|
|
55
|
+
date: string;
|
|
56
|
+
boolean: string;
|
|
57
|
+
integer: string;
|
|
58
|
+
float: string;
|
|
59
|
+
regexp: string;
|
|
60
|
+
email: string;
|
|
61
|
+
url: string;
|
|
62
|
+
hex: string;
|
|
63
|
+
};
|
|
64
|
+
string: {
|
|
65
|
+
len: string;
|
|
66
|
+
min: string;
|
|
67
|
+
max: string;
|
|
68
|
+
range: string;
|
|
69
|
+
};
|
|
70
|
+
number: {
|
|
71
|
+
len: string;
|
|
72
|
+
min: string;
|
|
73
|
+
max: string;
|
|
74
|
+
range: string;
|
|
75
|
+
};
|
|
76
|
+
array: {
|
|
77
|
+
len: string;
|
|
78
|
+
min: string;
|
|
79
|
+
max: string;
|
|
80
|
+
range: string;
|
|
81
|
+
};
|
|
82
|
+
pattern: {
|
|
83
|
+
mismatch: string;
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
ImageUploader: {
|
|
88
|
+
uploading: string;
|
|
89
|
+
};
|
|
90
|
+
Mask: {
|
|
91
|
+
name: string;
|
|
92
|
+
};
|
|
93
|
+
Modal: {
|
|
94
|
+
ok: string;
|
|
95
|
+
};
|
|
96
|
+
PullToRefresh: {
|
|
97
|
+
pulling: string;
|
|
98
|
+
canRelease: string;
|
|
99
|
+
complete: string;
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
export default zhTW;
|
|
@@ -0,0 +1,59 @@
|
|
|
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
|
+
locale: 'zh-TW',
|
|
14
|
+
common: {
|
|
15
|
+
confirm: '確定',
|
|
16
|
+
cancel: '取消',
|
|
17
|
+
loading: '加載中……'
|
|
18
|
+
},
|
|
19
|
+
Cascader: {
|
|
20
|
+
placeholder: '請選擇'
|
|
21
|
+
},
|
|
22
|
+
Dialog: {
|
|
23
|
+
ok: '我知道了'
|
|
24
|
+
},
|
|
25
|
+
ErrorBlock: {
|
|
26
|
+
default: {
|
|
27
|
+
title: '頁面遇到一些小問題',
|
|
28
|
+
description: '待會來試試'
|
|
29
|
+
},
|
|
30
|
+
busy: {
|
|
31
|
+
title: '前方擁堵',
|
|
32
|
+
description: '刷新試試'
|
|
33
|
+
},
|
|
34
|
+
disconnected: {
|
|
35
|
+
title: '網路有點忙',
|
|
36
|
+
description: '動動手指幫忙修復'
|
|
37
|
+
},
|
|
38
|
+
empty: {
|
|
39
|
+
title: '沒有找到您需要的東西',
|
|
40
|
+
description: '找找其他的吧'
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
ImageUploader: {
|
|
44
|
+
uploading: '上傳中...'
|
|
45
|
+
},
|
|
46
|
+
Mask: {
|
|
47
|
+
name: '遮罩層'
|
|
48
|
+
},
|
|
49
|
+
Modal: {
|
|
50
|
+
ok: '我知道了'
|
|
51
|
+
},
|
|
52
|
+
PullToRefresh: {
|
|
53
|
+
pulling: '下拉刷新',
|
|
54
|
+
canRelease: '釋放立即刷新',
|
|
55
|
+
complete: '刷新成功'
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
var _default = zhTW;
|
|
59
|
+
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,
|
|
@@ -17,7 +17,7 @@ export declare type FormItemProps = Pick<RcFieldProps, 'dependencies' | 'valuePr
|
|
|
17
17
|
hidden?: boolean;
|
|
18
18
|
layout?: FormLayout;
|
|
19
19
|
childElementPosition?: 'normal' | 'right';
|
|
20
|
-
children
|
|
20
|
+
children?: ChildrenType;
|
|
21
21
|
} & NativeProps;
|
|
22
22
|
export declare const FormItem: FC<FormItemProps>;
|
|
23
23
|
export {};
|
|
@@ -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,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { NativeProps } from '../../utils/native-props';
|
|
3
3
|
declare type NativeInputProps = React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>;
|
|
4
|
-
export declare type InputProps = Pick<NativeInputProps, 'maxLength' | 'minLength' | 'autoComplete' | 'pattern' | 'inputMode' | 'type' | 'onFocus' | 'onBlur' | 'autoCapitalize' | 'autoCorrect' | 'onKeyDown' | 'onKeyUp' | 'onCompositionStart' | 'onCompositionEnd'> & {
|
|
4
|
+
export declare type InputProps = Pick<NativeInputProps, 'maxLength' | 'minLength' | 'autoComplete' | 'autoFocus' | 'pattern' | 'inputMode' | 'type' | 'onFocus' | 'onBlur' | 'autoCapitalize' | 'autoCorrect' | 'onKeyDown' | 'onKeyUp' | 'onCompositionStart' | 'onCompositionEnd'> & {
|
|
5
5
|
value?: string;
|
|
6
6
|
defaultValue?: string;
|
|
7
7
|
onChange?: (val: string) => void;
|
|
@@ -20,8 +20,9 @@ export declare type InputRef = {
|
|
|
20
20
|
clear: () => void;
|
|
21
21
|
focus: () => void;
|
|
22
22
|
blur: () => void;
|
|
23
|
+
nativeElement: HTMLInputElement | null;
|
|
23
24
|
};
|
|
24
|
-
export declare const Input: React.ForwardRefExoticComponent<Pick<NativeInputProps, "pattern" | "type" | "onCompositionEnd" | "onCompositionStart" | "onFocus" | "onBlur" | "onKeyDown" | "onKeyUp" | "autoCapitalize" | "autoCorrect" | "inputMode" | "autoComplete" | "maxLength" | "minLength"> & {
|
|
25
|
+
export declare const Input: React.ForwardRefExoticComponent<Pick<NativeInputProps, "pattern" | "type" | "onCompositionEnd" | "onCompositionStart" | "onFocus" | "onBlur" | "onKeyDown" | "onKeyUp" | "autoCapitalize" | "autoCorrect" | "inputMode" | "autoComplete" | "autoFocus" | "maxLength" | "minLength"> & {
|
|
25
26
|
value?: string | undefined;
|
|
26
27
|
defaultValue?: string | undefined;
|
|
27
28
|
onChange?: ((val: string) => void) | undefined;
|