antd-mobile 5.10.1 → 5.10.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/image-uploader/image-uploader.js +2 -1
- package/2x/cjs/components/mask/mask.css +1 -0
- package/2x/cjs/components/mask/mask.js +8 -1
- package/2x/cjs/components/safe-area/safe-area.css +2 -2
- package/2x/cjs/global/global.css +1 -0
- package/2x/cjs/global/theme.css +1 -0
- package/2x/cjs/locales/ko-KR.d.ts +102 -0
- package/2x/cjs/locales/ko-KR.js +115 -0
- package/2x/cjs/locales/zh-HK.js +56 -0
- package/2x/cjs/locales/zh-TW.js +56 -0
- package/2x/es/components/image-uploader/image-uploader.js +2 -1
- package/2x/es/components/mask/mask.css +1 -0
- package/2x/es/components/mask/mask.js +8 -1
- package/2x/es/components/safe-area/safe-area.css +2 -2
- package/2x/es/global/global.css +1 -0
- package/2x/es/global/theme.css +1 -0
- package/2x/es/locales/ko-KR.d.ts +102 -0
- package/2x/es/locales/ko-KR.js +105 -0
- package/2x/es/locales/zh-HK.js +56 -0
- package/2x/es/locales/zh-TW.js +56 -0
- package/2x/package.json +1 -1
- package/bundle/antd-mobile.cjs.js +8 -2
- package/bundle/antd-mobile.es.js +8 -2
- package/bundle/style.css +4 -2
- package/cjs/components/image-uploader/image-uploader.js +2 -1
- package/cjs/components/mask/mask.css +1 -0
- package/cjs/components/mask/mask.js +8 -1
- package/cjs/components/safe-area/safe-area.css +2 -2
- package/cjs/global/global.css +1 -0
- package/cjs/global/theme.css +1 -0
- package/cjs/locales/ko-KR.d.ts +102 -0
- package/cjs/locales/ko-KR.js +115 -0
- package/cjs/locales/zh-HK.js +56 -0
- package/cjs/locales/zh-TW.js +56 -0
- package/es/components/image-uploader/image-uploader.js +2 -1
- package/es/components/mask/mask.css +1 -0
- package/es/components/mask/mask.js +8 -1
- package/es/components/safe-area/safe-area.css +2 -2
- package/es/global/global.css +1 -0
- package/es/global/theme.css +1 -0
- package/es/locales/ko-KR.d.ts +102 -0
- package/es/locales/ko-KR.js +105 -0
- package/es/locales/zh-HK.js +56 -0
- package/es/locales/zh-TW.js +56 -0
- package/package.json +1 -1
- package/umd/antd-mobile.js +1 -1
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { mergeLocale } from '../utils/merge-locale';
|
|
2
|
+
import { base } from './base';
|
|
3
|
+
const typeTemplate = '${label} 유효하지 않은 ${type} 입니다';
|
|
4
|
+
const koKR = mergeLocale(base, {
|
|
5
|
+
locale: 'ko-KR',
|
|
6
|
+
common: {
|
|
7
|
+
confirm: '확인',
|
|
8
|
+
cancel: '취소',
|
|
9
|
+
loading: '로딩중...'
|
|
10
|
+
},
|
|
11
|
+
Calendar: {
|
|
12
|
+
markItems: ['월', '화', '수', '목', '금', '토', '일'],
|
|
13
|
+
renderYearAndMonth: (year, month) => `${year}년${month}일`
|
|
14
|
+
},
|
|
15
|
+
Cascader: {
|
|
16
|
+
placeholder: '선택됨'
|
|
17
|
+
},
|
|
18
|
+
Dialog: {
|
|
19
|
+
ok: '확인'
|
|
20
|
+
},
|
|
21
|
+
ErrorBlock: {
|
|
22
|
+
default: {
|
|
23
|
+
title: '문제가 발생했습니다',
|
|
24
|
+
description: '잠시 후 다시 시도해주세요'
|
|
25
|
+
},
|
|
26
|
+
busy: {
|
|
27
|
+
title: '로딩 되지 않았습니다.',
|
|
28
|
+
description: '페이지를 새로고침 해주세요'
|
|
29
|
+
},
|
|
30
|
+
disconnected: {
|
|
31
|
+
title: '네트워크를 사용 중 입니다',
|
|
32
|
+
description: '페이지를 새로고침 해주세요'
|
|
33
|
+
},
|
|
34
|
+
empty: {
|
|
35
|
+
title: '정보를 찾을 수 없습니다',
|
|
36
|
+
description: '정확한 검색어인가요?'
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
Form: {
|
|
40
|
+
required: '필수',
|
|
41
|
+
optional: '선택',
|
|
42
|
+
defaultValidateMessages: {
|
|
43
|
+
default: '필드 유효성 검사 오류 ${label}',
|
|
44
|
+
required: '${label} 입력해 주세요',
|
|
45
|
+
enum: '${label} [${enum}] 중에 하나여야 합니다',
|
|
46
|
+
whitespace: '${label} 비워둘 수 없습니다',
|
|
47
|
+
date: {
|
|
48
|
+
format: '${label} 유효하지 않은 날짜 형식입니다',
|
|
49
|
+
parse: '${label} 날짜 형식으로 변환될 수 없습니다',
|
|
50
|
+
invalid: '${label} 유효하지 않은 날짜입니다'
|
|
51
|
+
},
|
|
52
|
+
types: {
|
|
53
|
+
string: typeTemplate,
|
|
54
|
+
method: typeTemplate,
|
|
55
|
+
array: typeTemplate,
|
|
56
|
+
object: typeTemplate,
|
|
57
|
+
number: typeTemplate,
|
|
58
|
+
date: typeTemplate,
|
|
59
|
+
boolean: typeTemplate,
|
|
60
|
+
integer: typeTemplate,
|
|
61
|
+
float: typeTemplate,
|
|
62
|
+
regexp: typeTemplate,
|
|
63
|
+
email: typeTemplate,
|
|
64
|
+
url: typeTemplate,
|
|
65
|
+
hex: typeTemplate
|
|
66
|
+
},
|
|
67
|
+
string: {
|
|
68
|
+
len: '${label} ${len}글자여야 합니다',
|
|
69
|
+
min: '${label} 적어도 ${min}글자 이상이어야 합니다',
|
|
70
|
+
max: '${label} ${max}글자 이하여야 합니다',
|
|
71
|
+
range: '${label} ${min}-${max}글자 사이어야 합니다'
|
|
72
|
+
},
|
|
73
|
+
number: {
|
|
74
|
+
len: '${label} 값은 ${len}이어야 합니다',
|
|
75
|
+
min: '${label} 최솟값은 ${min}입니다',
|
|
76
|
+
max: '${label} 최댓값은 ${max}입니다',
|
|
77
|
+
range: '${label} 값은 ${min}-${max} 사이어야 합니다'
|
|
78
|
+
},
|
|
79
|
+
array: {
|
|
80
|
+
len: '${len}이어야 합니다 ${label}',
|
|
81
|
+
min: '최소 ${min}이어야 합니다 ${label}',
|
|
82
|
+
max: '최대 ${max}이어야 합니다 ${label}',
|
|
83
|
+
range: '${label} ${min}-${max} 사이어야 합니다'
|
|
84
|
+
},
|
|
85
|
+
pattern: {
|
|
86
|
+
mismatch: '${label} ${pattern} 패턴과 일치하지 않습니다'
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
ImageUploader: {
|
|
91
|
+
uploading: '업로드 중...'
|
|
92
|
+
},
|
|
93
|
+
Mask: {
|
|
94
|
+
name: '마스크'
|
|
95
|
+
},
|
|
96
|
+
Modal: {
|
|
97
|
+
ok: '확인'
|
|
98
|
+
},
|
|
99
|
+
PullToRefresh: {
|
|
100
|
+
pulling: '스크롤을 당겨서 새로고침하십시오',
|
|
101
|
+
canRelease: '새로고침 하려면 놓으십시오',
|
|
102
|
+
complete: '새로고침 완료'
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
export default koKR;
|
package/2x/es/locales/zh-HK.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { mergeLocale } from '../utils/merge-locale';
|
|
2
2
|
import { base } from './base';
|
|
3
|
+
const typeTemplate = '${label}不是一個有效的${type}';
|
|
3
4
|
const zhHK = mergeLocale(base, {
|
|
4
5
|
locale: 'zh-HK',
|
|
5
6
|
common: {
|
|
@@ -7,6 +8,10 @@ const zhHK = mergeLocale(base, {
|
|
|
7
8
|
cancel: '取消',
|
|
8
9
|
loading: '加載中……'
|
|
9
10
|
},
|
|
11
|
+
Calendar: {
|
|
12
|
+
markItems: ['一', '二', '三', '四', '五', '六', '日'],
|
|
13
|
+
renderYearAndMonth: (year, month) => `${year}年${month}月`
|
|
14
|
+
},
|
|
10
15
|
Cascader: {
|
|
11
16
|
placeholder: '請選擇'
|
|
12
17
|
},
|
|
@@ -31,6 +36,57 @@ const zhHK = mergeLocale(base, {
|
|
|
31
36
|
description: '找找其他的吧'
|
|
32
37
|
}
|
|
33
38
|
},
|
|
39
|
+
Form: {
|
|
40
|
+
required: '必填',
|
|
41
|
+
optional: '選填',
|
|
42
|
+
defaultValidateMessages: {
|
|
43
|
+
default: '字段驗證錯誤${label}',
|
|
44
|
+
required: '請輸入${label}',
|
|
45
|
+
enum: '${label}必須是其中一個[${enum}]',
|
|
46
|
+
whitespace: '${label}不能為空字符',
|
|
47
|
+
date: {
|
|
48
|
+
format: '${label}日期格式無效',
|
|
49
|
+
parse: '${label}不能轉換為日期',
|
|
50
|
+
invalid: '${label}是一個無效日期'
|
|
51
|
+
},
|
|
52
|
+
types: {
|
|
53
|
+
string: typeTemplate,
|
|
54
|
+
method: typeTemplate,
|
|
55
|
+
array: typeTemplate,
|
|
56
|
+
object: typeTemplate,
|
|
57
|
+
number: typeTemplate,
|
|
58
|
+
date: typeTemplate,
|
|
59
|
+
boolean: typeTemplate,
|
|
60
|
+
integer: typeTemplate,
|
|
61
|
+
float: typeTemplate,
|
|
62
|
+
regexp: typeTemplate,
|
|
63
|
+
email: typeTemplate,
|
|
64
|
+
url: typeTemplate,
|
|
65
|
+
hex: typeTemplate
|
|
66
|
+
},
|
|
67
|
+
string: {
|
|
68
|
+
len: '${label}須為${len}個字符',
|
|
69
|
+
min: '${label}最少${min}個字符',
|
|
70
|
+
max: '${label}最多${max}個字符',
|
|
71
|
+
range: '${label}須在${min}-${max}字符之間'
|
|
72
|
+
},
|
|
73
|
+
number: {
|
|
74
|
+
len: '${label}必須等於${len}',
|
|
75
|
+
min: '${label}最小值為${min}',
|
|
76
|
+
max: '${label}最大值為${max}',
|
|
77
|
+
range: '${label}須在${min}-${max}之間'
|
|
78
|
+
},
|
|
79
|
+
array: {
|
|
80
|
+
len: '須為${len}個${label}',
|
|
81
|
+
min: '最少${min}個${label}',
|
|
82
|
+
max: '最多${max}個${label}',
|
|
83
|
+
range: '${label}数量須在${min}-${max}之間'
|
|
84
|
+
},
|
|
85
|
+
pattern: {
|
|
86
|
+
mismatch: '${label}與模式不匹配${pattern}'
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
},
|
|
34
90
|
ImageUploader: {
|
|
35
91
|
uploading: '上傳中...'
|
|
36
92
|
},
|
package/2x/es/locales/zh-TW.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { mergeLocale } from '../utils/merge-locale';
|
|
2
2
|
import { base } from './base';
|
|
3
|
+
const typeTemplate = '${label}不是一個有效的${type}';
|
|
3
4
|
const zhTW = mergeLocale(base, {
|
|
4
5
|
locale: 'zh-TW',
|
|
5
6
|
common: {
|
|
@@ -7,6 +8,10 @@ const zhTW = mergeLocale(base, {
|
|
|
7
8
|
cancel: '取消',
|
|
8
9
|
loading: '加載中……'
|
|
9
10
|
},
|
|
11
|
+
Calendar: {
|
|
12
|
+
markItems: ['一', '二', '三', '四', '五', '六', '日'],
|
|
13
|
+
renderYearAndMonth: (year, month) => `${year}年${month}月`
|
|
14
|
+
},
|
|
10
15
|
Cascader: {
|
|
11
16
|
placeholder: '請選擇'
|
|
12
17
|
},
|
|
@@ -31,6 +36,57 @@ const zhTW = mergeLocale(base, {
|
|
|
31
36
|
description: '找找其他的吧'
|
|
32
37
|
}
|
|
33
38
|
},
|
|
39
|
+
Form: {
|
|
40
|
+
required: '必填',
|
|
41
|
+
optional: '選填',
|
|
42
|
+
defaultValidateMessages: {
|
|
43
|
+
default: '字段驗證錯誤${label}',
|
|
44
|
+
required: '請輸入${label}',
|
|
45
|
+
enum: '${label}必須是其中一個[${enum}]',
|
|
46
|
+
whitespace: '${label}不能為空字符',
|
|
47
|
+
date: {
|
|
48
|
+
format: '${label}日期格式無效',
|
|
49
|
+
parse: '${label}不能轉換為日期',
|
|
50
|
+
invalid: '${label}是一個無效日期'
|
|
51
|
+
},
|
|
52
|
+
types: {
|
|
53
|
+
string: typeTemplate,
|
|
54
|
+
method: typeTemplate,
|
|
55
|
+
array: typeTemplate,
|
|
56
|
+
object: typeTemplate,
|
|
57
|
+
number: typeTemplate,
|
|
58
|
+
date: typeTemplate,
|
|
59
|
+
boolean: typeTemplate,
|
|
60
|
+
integer: typeTemplate,
|
|
61
|
+
float: typeTemplate,
|
|
62
|
+
regexp: typeTemplate,
|
|
63
|
+
email: typeTemplate,
|
|
64
|
+
url: typeTemplate,
|
|
65
|
+
hex: typeTemplate
|
|
66
|
+
},
|
|
67
|
+
string: {
|
|
68
|
+
len: '${label}須為${len}個字符',
|
|
69
|
+
min: '${label}最少${min}個字符',
|
|
70
|
+
max: '${label}最多${max}個字符',
|
|
71
|
+
range: '${label}須在${min}-${max}字符之間'
|
|
72
|
+
},
|
|
73
|
+
number: {
|
|
74
|
+
len: '${label}必須等於${len}',
|
|
75
|
+
min: '${label}最小值為${min}',
|
|
76
|
+
max: '${label}最大值為${max}',
|
|
77
|
+
range: '${label}須在${min}-${max}之間'
|
|
78
|
+
},
|
|
79
|
+
array: {
|
|
80
|
+
len: '須為${len}個${label}',
|
|
81
|
+
min: '最少${min}個${label}',
|
|
82
|
+
max: '最多${max}個${label}',
|
|
83
|
+
range: '${label}数量須在${min}-${max}之間'
|
|
84
|
+
},
|
|
85
|
+
pattern: {
|
|
86
|
+
mismatch: '${label}與模式不匹配${pattern}'
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
},
|
|
34
90
|
ImageUploader: {
|
|
35
91
|
uploading: '上傳中...'
|
|
36
92
|
},
|
package/2x/package.json
CHANGED
|
@@ -8287,7 +8287,13 @@ const Mask = (p) => {
|
|
|
8287
8287
|
opacity
|
|
8288
8288
|
}, props.style), {
|
|
8289
8289
|
display: active ? "unset" : "none"
|
|
8290
|
-
})
|
|
8290
|
+
}),
|
|
8291
|
+
onClick: (e) => {
|
|
8292
|
+
var _a;
|
|
8293
|
+
if (e.target === e.currentTarget) {
|
|
8294
|
+
(_a = props.onMaskClick) === null || _a === void 0 ? void 0 : _a.call(props, e);
|
|
8295
|
+
}
|
|
8296
|
+
}
|
|
8291
8297
|
}, props.onMaskClick && React__default["default"].createElement("div", {
|
|
8292
8298
|
className: `${classPrefix$1g}-aria-button`,
|
|
8293
8299
|
role: "button",
|
|
@@ -14183,6 +14189,7 @@ const ImageUploader = (p) => {
|
|
|
14183
14189
|
file
|
|
14184
14190
|
}));
|
|
14185
14191
|
setTasks((prev) => [...prev, ...newTasks]);
|
|
14192
|
+
e.target.value = "";
|
|
14186
14193
|
yield Promise.all(newTasks.map((currentTask) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
14187
14194
|
try {
|
|
14188
14195
|
const result2 = yield props.upload(currentTask.file);
|
|
@@ -14214,7 +14221,6 @@ const ImageUploader = (p) => {
|
|
|
14214
14221
|
throw e2;
|
|
14215
14222
|
}
|
|
14216
14223
|
}))).catch((error) => console.error(error));
|
|
14217
|
-
e.target.value = "";
|
|
14218
14224
|
});
|
|
14219
14225
|
}
|
|
14220
14226
|
const imageViewerHandlerRef = React$1.useRef(null);
|
package/bundle/antd-mobile.es.js
CHANGED
|
@@ -8277,7 +8277,13 @@ const Mask = (p) => {
|
|
|
8277
8277
|
opacity
|
|
8278
8278
|
}, props.style), {
|
|
8279
8279
|
display: active ? "unset" : "none"
|
|
8280
|
-
})
|
|
8280
|
+
}),
|
|
8281
|
+
onClick: (e) => {
|
|
8282
|
+
var _a;
|
|
8283
|
+
if (e.target === e.currentTarget) {
|
|
8284
|
+
(_a = props.onMaskClick) === null || _a === void 0 ? void 0 : _a.call(props, e);
|
|
8285
|
+
}
|
|
8286
|
+
}
|
|
8281
8287
|
}, props.onMaskClick && React$1.createElement("div", {
|
|
8282
8288
|
className: `${classPrefix$1g}-aria-button`,
|
|
8283
8289
|
role: "button",
|
|
@@ -14173,6 +14179,7 @@ const ImageUploader = (p) => {
|
|
|
14173
14179
|
file
|
|
14174
14180
|
}));
|
|
14175
14181
|
setTasks((prev) => [...prev, ...newTasks]);
|
|
14182
|
+
e.target.value = "";
|
|
14176
14183
|
yield Promise.all(newTasks.map((currentTask) => __awaiter(this, void 0, void 0, function* () {
|
|
14177
14184
|
try {
|
|
14178
14185
|
const result2 = yield props.upload(currentTask.file);
|
|
@@ -14204,7 +14211,6 @@ const ImageUploader = (p) => {
|
|
|
14204
14211
|
throw e2;
|
|
14205
14212
|
}
|
|
14206
14213
|
}))).catch((error) => console.error(error));
|
|
14207
|
-
e.target.value = "";
|
|
14208
14214
|
});
|
|
14209
14215
|
}
|
|
14210
14216
|
const imageViewerHandlerRef = useRef(null);
|
package/bundle/style.css
CHANGED
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
--adm-border-color: #eeeeee;
|
|
10
10
|
--adm-font-size-main: 13px;
|
|
11
11
|
--adm-color-text: #333333;
|
|
12
|
+
--adm-hd: 1;
|
|
12
13
|
--adm-font-family: -apple-system, blinkmacsystemfont, 'Helvetica Neue',
|
|
13
14
|
helvetica, segoe ui, arial, roboto, 'PingFang SC', 'miui',
|
|
14
15
|
'Hiragino Sans GB', 'Microsoft Yahei', sans-serif;
|
|
@@ -139,6 +140,7 @@ div.adm-px-tester {
|
|
|
139
140
|
z-index: 0;
|
|
140
141
|
width: 100%;
|
|
141
142
|
height: 100%;
|
|
143
|
+
pointer-events: none;
|
|
142
144
|
}
|
|
143
145
|
.adm-mask-content {
|
|
144
146
|
z-index: 1;
|
|
@@ -278,10 +280,10 @@ div.adm-px-tester {
|
|
|
278
280
|
width: 100%;
|
|
279
281
|
}
|
|
280
282
|
.adm-safe-area-position-top {
|
|
281
|
-
padding-top: env(safe-area-inset-top);
|
|
283
|
+
padding-top: calc(env(safe-area-inset-top) * var(--adm-hd));
|
|
282
284
|
}
|
|
283
285
|
.adm-safe-area-position-bottom {
|
|
284
|
-
padding-bottom: env(safe-area-inset-bottom);
|
|
286
|
+
padding-bottom: calc(env(safe-area-inset-bottom) * var(--adm-hd));
|
|
285
287
|
}
|
|
286
288
|
.adm-auto-center {
|
|
287
289
|
display: flex;
|
|
@@ -114,6 +114,8 @@ const ImageUploader = p => {
|
|
|
114
114
|
file
|
|
115
115
|
}));
|
|
116
116
|
setTasks(prev => [...prev, ...newTasks]);
|
|
117
|
+
e.target.value = ''; // HACK: fix the same file doesn't trigger onChange
|
|
118
|
+
|
|
117
119
|
yield Promise.all(newTasks.map(currentTask => (0, _tslib.__awaiter)(this, void 0, void 0, function* () {
|
|
118
120
|
try {
|
|
119
121
|
const result = yield props.upload(currentTask.file);
|
|
@@ -147,7 +149,6 @@ const ImageUploader = p => {
|
|
|
147
149
|
throw e;
|
|
148
150
|
}
|
|
149
151
|
}))).catch(error => console.error(error));
|
|
150
|
-
e.target.value = ''; // HACK: fix the same file doesn't trigger onChange
|
|
151
152
|
});
|
|
152
153
|
}
|
|
153
154
|
|
|
@@ -98,7 +98,14 @@ const Mask = p => {
|
|
|
98
98
|
opacity
|
|
99
99
|
}, props.style), {
|
|
100
100
|
display: active ? 'unset' : 'none'
|
|
101
|
-
})
|
|
101
|
+
}),
|
|
102
|
+
onClick: e => {
|
|
103
|
+
var _a;
|
|
104
|
+
|
|
105
|
+
if (e.target === e.currentTarget) {
|
|
106
|
+
(_a = props.onMaskClick) === null || _a === void 0 ? void 0 : _a.call(props, e);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
102
109
|
}, props.onMaskClick && _react.default.createElement("div", {
|
|
103
110
|
className: `${classPrefix}-aria-button`,
|
|
104
111
|
role: 'button',
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
width: 100%;
|
|
4
4
|
}
|
|
5
5
|
.adm-safe-area-position-top {
|
|
6
|
-
padding-top: env(safe-area-inset-top);
|
|
6
|
+
padding-top: calc(env(safe-area-inset-top) * var(--adm-hd));
|
|
7
7
|
}
|
|
8
8
|
.adm-safe-area-position-bottom {
|
|
9
|
-
padding-bottom: env(safe-area-inset-bottom);
|
|
9
|
+
padding-bottom: calc(env(safe-area-inset-bottom) * var(--adm-hd));
|
|
10
10
|
}
|
package/cjs/global/global.css
CHANGED
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
--adm-border-color: #eeeeee;
|
|
10
10
|
--adm-font-size-main: 13px;
|
|
11
11
|
--adm-color-text: #333333;
|
|
12
|
+
--adm-hd: 1;
|
|
12
13
|
--adm-font-family: -apple-system, blinkmacsystemfont, 'Helvetica Neue',
|
|
13
14
|
helvetica, segoe ui, arial, roboto, 'PingFang SC', 'miui',
|
|
14
15
|
'Hiragino Sans GB', 'Microsoft Yahei', sans-serif;
|
package/cjs/global/theme.css
CHANGED
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
--adm-border-color: #eeeeee;
|
|
10
10
|
--adm-font-size-main: 13px;
|
|
11
11
|
--adm-color-text: #333333;
|
|
12
|
+
--adm-hd: 1;
|
|
12
13
|
--adm-font-family: -apple-system, blinkmacsystemfont, 'Helvetica Neue',
|
|
13
14
|
helvetica, segoe ui, arial, roboto, 'PingFang SC', 'miui',
|
|
14
15
|
'Hiragino Sans GB', 'Microsoft Yahei', sans-serif;
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
declare const koKR: {
|
|
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 koKR;
|
|
@@ -0,0 +1,115 @@
|
|
|
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 koKR = (0, _mergeLocale.mergeLocale)(_base.base, {
|
|
14
|
+
locale: 'ko-KR',
|
|
15
|
+
common: {
|
|
16
|
+
confirm: '확인',
|
|
17
|
+
cancel: '취소',
|
|
18
|
+
loading: '로딩중...'
|
|
19
|
+
},
|
|
20
|
+
Calendar: {
|
|
21
|
+
markItems: ['월', '화', '수', '목', '금', '토', '일'],
|
|
22
|
+
renderYearAndMonth: (year, month) => `${year}년${month}일`
|
|
23
|
+
},
|
|
24
|
+
Cascader: {
|
|
25
|
+
placeholder: '선택됨'
|
|
26
|
+
},
|
|
27
|
+
Dialog: {
|
|
28
|
+
ok: '확인'
|
|
29
|
+
},
|
|
30
|
+
ErrorBlock: {
|
|
31
|
+
default: {
|
|
32
|
+
title: '문제가 발생했습니다',
|
|
33
|
+
description: '잠시 후 다시 시도해주세요'
|
|
34
|
+
},
|
|
35
|
+
busy: {
|
|
36
|
+
title: '로딩 되지 않았습니다.',
|
|
37
|
+
description: '페이지를 새로고침 해주세요'
|
|
38
|
+
},
|
|
39
|
+
disconnected: {
|
|
40
|
+
title: '네트워크를 사용 중 입니다',
|
|
41
|
+
description: '페이지를 새로고침 해주세요'
|
|
42
|
+
},
|
|
43
|
+
empty: {
|
|
44
|
+
title: '정보를 찾을 수 없습니다',
|
|
45
|
+
description: '정확한 검색어인가요?'
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
Form: {
|
|
49
|
+
required: '필수',
|
|
50
|
+
optional: '선택',
|
|
51
|
+
defaultValidateMessages: {
|
|
52
|
+
default: '필드 유효성 검사 오류 ${label}',
|
|
53
|
+
required: '${label} 입력해 주세요',
|
|
54
|
+
enum: '${label} [${enum}] 중에 하나여야 합니다',
|
|
55
|
+
whitespace: '${label} 비워둘 수 없습니다',
|
|
56
|
+
date: {
|
|
57
|
+
format: '${label} 유효하지 않은 날짜 형식입니다',
|
|
58
|
+
parse: '${label} 날짜 형식으로 변환될 수 없습니다',
|
|
59
|
+
invalid: '${label} 유효하지 않은 날짜입니다'
|
|
60
|
+
},
|
|
61
|
+
types: {
|
|
62
|
+
string: typeTemplate,
|
|
63
|
+
method: typeTemplate,
|
|
64
|
+
array: typeTemplate,
|
|
65
|
+
object: typeTemplate,
|
|
66
|
+
number: typeTemplate,
|
|
67
|
+
date: typeTemplate,
|
|
68
|
+
boolean: typeTemplate,
|
|
69
|
+
integer: typeTemplate,
|
|
70
|
+
float: typeTemplate,
|
|
71
|
+
regexp: typeTemplate,
|
|
72
|
+
email: typeTemplate,
|
|
73
|
+
url: typeTemplate,
|
|
74
|
+
hex: typeTemplate
|
|
75
|
+
},
|
|
76
|
+
string: {
|
|
77
|
+
len: '${label} ${len}글자여야 합니다',
|
|
78
|
+
min: '${label} 적어도 ${min}글자 이상이어야 합니다',
|
|
79
|
+
max: '${label} ${max}글자 이하여야 합니다',
|
|
80
|
+
range: '${label} ${min}-${max}글자 사이어야 합니다'
|
|
81
|
+
},
|
|
82
|
+
number: {
|
|
83
|
+
len: '${label} 값은 ${len}이어야 합니다',
|
|
84
|
+
min: '${label} 최솟값은 ${min}입니다',
|
|
85
|
+
max: '${label} 최댓값은 ${max}입니다',
|
|
86
|
+
range: '${label} 값은 ${min}-${max} 사이어야 합니다'
|
|
87
|
+
},
|
|
88
|
+
array: {
|
|
89
|
+
len: '${len}이어야 합니다 ${label}',
|
|
90
|
+
min: '최소 ${min}이어야 합니다 ${label}',
|
|
91
|
+
max: '최대 ${max}이어야 합니다 ${label}',
|
|
92
|
+
range: '${label} ${min}-${max} 사이어야 합니다'
|
|
93
|
+
},
|
|
94
|
+
pattern: {
|
|
95
|
+
mismatch: '${label} ${pattern} 패턴과 일치하지 않습니다'
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
ImageUploader: {
|
|
100
|
+
uploading: '업로드 중...'
|
|
101
|
+
},
|
|
102
|
+
Mask: {
|
|
103
|
+
name: '마스크'
|
|
104
|
+
},
|
|
105
|
+
Modal: {
|
|
106
|
+
ok: '확인'
|
|
107
|
+
},
|
|
108
|
+
PullToRefresh: {
|
|
109
|
+
pulling: '스크롤을 당겨서 새로고침하십시오',
|
|
110
|
+
canRelease: '새로고침 하려면 놓으십시오',
|
|
111
|
+
complete: '새로고침 완료'
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
var _default = koKR;
|
|
115
|
+
exports.default = _default;
|