yc-design-vue 1.9.1 → 1.9.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/es/Progress/ProgressCircle.vue.js +1 -1
- package/es/Transfer/TransferPanel.vue.js +2 -2
- package/es/Typography/TypographyBase.vue.js +2 -2
- package/es/_shared/icons/IconCopy.vue.js +1 -17
- package/es/_shared/icons/IconCopy.vue2.js +17 -1
- package/es/_shared/icons/IconDelete.vue.js +1 -17
- package/es/_shared/icons/IconDelete.vue2.js +17 -1
- package/es/_shared/icons/IconEdit.vue.js +1 -17
- package/es/_shared/icons/IconEdit.vue2.js +17 -1
- package/es/_shared/icons/IconExclamation.vue.js +1 -28
- package/es/_shared/icons/IconExclamation.vue2.js +28 -1
- package/es/_shared/icons/IconSearch.vue.js +1 -17
- package/es/_shared/icons/IconSearch.vue2.js +17 -1
- package/es/_shared/utils/locale.js +1 -5
- package/es/{_shared/lang → lang-es}/en-us.js +2 -3
- package/es/public/lang-es/zh-cn.js +202 -0
- package/lib/Progress/ProgressCircle.vue.js +1 -1
- package/lib/Transfer/TransferPanel.vue.js +1 -1
- package/lib/Typography/TypographyBase.vue.js +1 -1
- package/lib/_shared/icons/IconCopy.vue.js +1 -1
- package/lib/_shared/icons/IconCopy.vue2.js +1 -1
- package/lib/_shared/icons/IconDelete.vue.js +1 -1
- package/lib/_shared/icons/IconDelete.vue2.js +1 -1
- package/lib/_shared/icons/IconEdit.vue.js +1 -1
- package/lib/_shared/icons/IconEdit.vue2.js +1 -1
- package/lib/_shared/icons/IconExclamation.vue.js +1 -1
- package/lib/_shared/icons/IconExclamation.vue2.js +1 -1
- package/lib/_shared/icons/IconSearch.vue.js +1 -1
- package/lib/_shared/icons/IconSearch.vue2.js +1 -1
- package/lib/_shared/utils/locale.js +1 -1
- package/lib/lang-es/ar-eg.d.ts +206 -0
- package/lib/lang-es/ar-eg.js +154 -0
- package/lib/lang-es/de-de.d.ts +206 -0
- package/lib/lang-es/de-de.js +154 -0
- package/lib/lang-es/en-us.d.ts +254 -0
- package/lib/lang-es/en-us.js +158 -0
- package/lib/lang-es/es-es.d.ts +206 -0
- package/lib/lang-es/es-es.js +154 -0
- package/lib/lang-es/fr-fr.d.ts +206 -0
- package/lib/lang-es/fr-fr.js +154 -0
- package/lib/lang-es/id-id.d.ts +206 -0
- package/lib/lang-es/id-id.js +154 -0
- package/lib/lang-es/it-it.d.ts +206 -0
- package/lib/lang-es/it-it.js +154 -0
- package/lib/lang-es/ja-jp.d.ts +254 -0
- package/lib/lang-es/ja-jp.js +202 -0
- package/lib/lang-es/km-kh.d.ts +206 -0
- package/lib/lang-es/km-kh.js +154 -0
- package/lib/lang-es/ko-kr.d.ts +206 -0
- package/lib/lang-es/ko-kr.js +154 -0
- package/lib/lang-es/ms-my.d.ts +206 -0
- package/lib/lang-es/ms-my.js +154 -0
- package/lib/lang-es/nl-nl.d.ts +254 -0
- package/lib/lang-es/nl-nl.js +202 -0
- package/lib/lang-es/pt-pt.d.ts +206 -0
- package/lib/lang-es/pt-pt.js +154 -0
- package/lib/lang-es/ru-ru.d.ts +254 -0
- package/lib/lang-es/ru-ru.js +202 -0
- package/lib/lang-es/th-th.d.ts +206 -0
- package/lib/lang-es/th-th.js +154 -0
- package/lib/lang-es/vi-vn.d.ts +206 -0
- package/lib/lang-es/vi-vn.js +154 -0
- package/lib/lang-es/zh-cn.d.ts +254 -0
- package/lib/lang-es/zh-cn.js +202 -0
- package/lib/lang-es/zh-tw.d.ts +254 -0
- package/lib/lang-es/zh-tw.js +202 -0
- package/lib/lang-lib/ar-eg.d.ts +206 -0
- package/lib/lang-lib/ar-eg.js +1 -0
- package/lib/lang-lib/de-de.d.ts +206 -0
- package/lib/lang-lib/de-de.js +1 -0
- package/lib/lang-lib/en-us.d.ts +254 -0
- package/lib/lang-lib/en-us.js +1 -0
- package/lib/lang-lib/es-es.d.ts +206 -0
- package/lib/lang-lib/es-es.js +1 -0
- package/lib/lang-lib/fr-fr.d.ts +206 -0
- package/lib/lang-lib/fr-fr.js +1 -0
- package/lib/lang-lib/id-id.d.ts +206 -0
- package/lib/lang-lib/id-id.js +1 -0
- package/lib/lang-lib/it-it.d.ts +206 -0
- package/lib/lang-lib/it-it.js +1 -0
- package/lib/lang-lib/ja-jp.d.ts +254 -0
- package/lib/lang-lib/ja-jp.js +1 -0
- package/lib/lang-lib/km-kh.d.ts +206 -0
- package/lib/lang-lib/km-kh.js +1 -0
- package/lib/lang-lib/ko-kr.d.ts +206 -0
- package/lib/lang-lib/ko-kr.js +1 -0
- package/lib/lang-lib/ms-my.d.ts +206 -0
- package/lib/lang-lib/ms-my.js +1 -0
- package/lib/lang-lib/nl-nl.d.ts +254 -0
- package/lib/lang-lib/nl-nl.js +1 -0
- package/lib/lang-lib/pt-pt.d.ts +206 -0
- package/lib/lang-lib/pt-pt.js +1 -0
- package/lib/lang-lib/ru-ru.d.ts +254 -0
- package/lib/lang-lib/ru-ru.js +1 -0
- package/lib/lang-lib/th-th.d.ts +206 -0
- package/lib/lang-lib/th-th.js +1 -0
- package/lib/lang-lib/vi-vn.d.ts +206 -0
- package/lib/lang-lib/vi-vn.js +1 -0
- package/lib/lang-lib/zh-cn.d.ts +254 -0
- package/lib/lang-lib/zh-cn.js +1 -0
- package/lib/lang-lib/zh-tw.d.ts +254 -0
- package/lib/lang-lib/zh-tw.js +1 -0
- package/lib/public/lang-es/zh-cn.js +1 -0
- package/package.json +4 -4
- package/es/node_modules/b-validate/es/is.js +0 -27
- package/es/node_modules/b-validate/es/locale/en-US.js +0 -50
- package/es/node_modules/b-validate/es/rules/base.js +0 -86
- package/es/node_modules/b-validate/es/util.js +0 -25
- package/lib/node_modules/b-validate/es/is.js +0 -1
- package/lib/node_modules/b-validate/es/locale/en-US.js +0 -1
- package/lib/node_modules/b-validate/es/rules/base.js +0 -1
- package/lib/node_modules/b-validate/es/util.js +0 -1
- /package/es/{_shared/lang → lang-es}/ar-eg.d.ts +0 -0
- /package/es/{_shared/lang → lang-es}/ar-eg.js +0 -0
- /package/es/{_shared/lang → lang-es}/de-de.d.ts +0 -0
- /package/es/{_shared/lang → lang-es}/de-de.js +0 -0
- /package/es/{_shared/lang → lang-es}/en-us.d.ts +0 -0
- /package/es/{_shared/lang → lang-es}/es-es.d.ts +0 -0
- /package/es/{_shared/lang → lang-es}/es-es.js +0 -0
- /package/es/{_shared/lang → lang-es}/fr-fr.d.ts +0 -0
- /package/es/{_shared/lang → lang-es}/fr-fr.js +0 -0
- /package/es/{_shared/lang → lang-es}/id-id.d.ts +0 -0
- /package/es/{_shared/lang → lang-es}/id-id.js +0 -0
- /package/es/{_shared/lang → lang-es}/it-it.d.ts +0 -0
- /package/es/{_shared/lang → lang-es}/it-it.js +0 -0
- /package/es/{_shared/lang → lang-es}/ja-jp.d.ts +0 -0
- /package/es/{_shared/lang → lang-es}/ja-jp.js +0 -0
- /package/es/{_shared/lang → lang-es}/km-kh.d.ts +0 -0
- /package/es/{_shared/lang → lang-es}/km-kh.js +0 -0
- /package/es/{_shared/lang → lang-es}/ko-kr.d.ts +0 -0
- /package/es/{_shared/lang → lang-es}/ko-kr.js +0 -0
- /package/es/{_shared/lang → lang-es}/ms-my.d.ts +0 -0
- /package/es/{_shared/lang → lang-es}/ms-my.js +0 -0
- /package/es/{_shared/lang → lang-es}/nl-nl.d.ts +0 -0
- /package/es/{_shared/lang → lang-es}/nl-nl.js +0 -0
- /package/es/{_shared/lang → lang-es}/pt-pt.d.ts +0 -0
- /package/es/{_shared/lang → lang-es}/pt-pt.js +0 -0
- /package/es/{_shared/lang → lang-es}/ru-ru.d.ts +0 -0
- /package/es/{_shared/lang → lang-es}/ru-ru.js +0 -0
- /package/es/{_shared/lang → lang-es}/th-th.d.ts +0 -0
- /package/es/{_shared/lang → lang-es}/th-th.js +0 -0
- /package/es/{_shared/lang → lang-es}/vi-vn.d.ts +0 -0
- /package/es/{_shared/lang → lang-es}/vi-vn.js +0 -0
- /package/es/{_shared/lang → lang-es}/zh-cn.d.ts +0 -0
- /package/es/{_shared/lang → lang-es}/zh-cn.js +0 -0
- /package/es/{_shared/lang → lang-es}/zh-tw.d.ts +0 -0
- /package/es/{_shared/lang → lang-es}/zh-tw.js +0 -0
- /package/{lib/_shared/lang → es/lang-lib}/ar-eg.d.ts +0 -0
- /package/{lib/_shared/lang → es/lang-lib}/ar-eg.js +0 -0
- /package/{lib/_shared/lang → es/lang-lib}/de-de.d.ts +0 -0
- /package/{lib/_shared/lang → es/lang-lib}/de-de.js +0 -0
- /package/{lib/_shared/lang → es/lang-lib}/en-us.d.ts +0 -0
- /package/{lib/_shared/lang → es/lang-lib}/en-us.js +0 -0
- /package/{lib/_shared/lang → es/lang-lib}/es-es.d.ts +0 -0
- /package/{lib/_shared/lang → es/lang-lib}/es-es.js +0 -0
- /package/{lib/_shared/lang → es/lang-lib}/fr-fr.d.ts +0 -0
- /package/{lib/_shared/lang → es/lang-lib}/fr-fr.js +0 -0
- /package/{lib/_shared/lang → es/lang-lib}/id-id.d.ts +0 -0
- /package/{lib/_shared/lang → es/lang-lib}/id-id.js +0 -0
- /package/{lib/_shared/lang → es/lang-lib}/it-it.d.ts +0 -0
- /package/{lib/_shared/lang → es/lang-lib}/it-it.js +0 -0
- /package/{lib/_shared/lang → es/lang-lib}/ja-jp.d.ts +0 -0
- /package/{lib/_shared/lang → es/lang-lib}/ja-jp.js +0 -0
- /package/{lib/_shared/lang → es/lang-lib}/km-kh.d.ts +0 -0
- /package/{lib/_shared/lang → es/lang-lib}/km-kh.js +0 -0
- /package/{lib/_shared/lang → es/lang-lib}/ko-kr.d.ts +0 -0
- /package/{lib/_shared/lang → es/lang-lib}/ko-kr.js +0 -0
- /package/{lib/_shared/lang → es/lang-lib}/ms-my.d.ts +0 -0
- /package/{lib/_shared/lang → es/lang-lib}/ms-my.js +0 -0
- /package/{lib/_shared/lang → es/lang-lib}/nl-nl.d.ts +0 -0
- /package/{lib/_shared/lang → es/lang-lib}/nl-nl.js +0 -0
- /package/{lib/_shared/lang → es/lang-lib}/pt-pt.d.ts +0 -0
- /package/{lib/_shared/lang → es/lang-lib}/pt-pt.js +0 -0
- /package/{lib/_shared/lang → es/lang-lib}/ru-ru.d.ts +0 -0
- /package/{lib/_shared/lang → es/lang-lib}/ru-ru.js +0 -0
- /package/{lib/_shared/lang → es/lang-lib}/th-th.d.ts +0 -0
- /package/{lib/_shared/lang → es/lang-lib}/th-th.js +0 -0
- /package/{lib/_shared/lang → es/lang-lib}/vi-vn.d.ts +0 -0
- /package/{lib/_shared/lang → es/lang-lib}/vi-vn.js +0 -0
- /package/{lib/_shared/lang → es/lang-lib}/zh-cn.d.ts +0 -0
- /package/{lib/_shared/lang → es/lang-lib}/zh-cn.js +0 -0
- /package/{lib/_shared/lang → es/lang-lib}/zh-tw.d.ts +0 -0
- /package/{lib/_shared/lang → es/lang-lib}/zh-tw.js +0 -0
@@ -0,0 +1,254 @@
|
|
1
|
+
declare const lang: {
|
2
|
+
locale: string;
|
3
|
+
empty: {
|
4
|
+
description: string;
|
5
|
+
};
|
6
|
+
drawer: {
|
7
|
+
okText: string;
|
8
|
+
cancelText: string;
|
9
|
+
};
|
10
|
+
popconfirm: {
|
11
|
+
okText: string;
|
12
|
+
cancelText: string;
|
13
|
+
};
|
14
|
+
modal: {
|
15
|
+
okText: string;
|
16
|
+
cancelText: string;
|
17
|
+
};
|
18
|
+
pagination: {
|
19
|
+
goto: string;
|
20
|
+
page: string;
|
21
|
+
countPerPage: string;
|
22
|
+
total: string;
|
23
|
+
};
|
24
|
+
table: {
|
25
|
+
okText: string;
|
26
|
+
resetText: string;
|
27
|
+
};
|
28
|
+
upload: {
|
29
|
+
start: string;
|
30
|
+
cancel: string;
|
31
|
+
delete: string;
|
32
|
+
retry: string;
|
33
|
+
buttonText: string;
|
34
|
+
preview: string;
|
35
|
+
drag: string;
|
36
|
+
dragHover: string;
|
37
|
+
error: string;
|
38
|
+
};
|
39
|
+
calendar: {
|
40
|
+
formatYear: string;
|
41
|
+
formatMonth: string;
|
42
|
+
today: string;
|
43
|
+
view: {
|
44
|
+
month: string;
|
45
|
+
year: string;
|
46
|
+
week: string;
|
47
|
+
day: string;
|
48
|
+
};
|
49
|
+
month: {
|
50
|
+
long: {
|
51
|
+
January: string;
|
52
|
+
February: string;
|
53
|
+
March: string;
|
54
|
+
April: string;
|
55
|
+
May: string;
|
56
|
+
June: string;
|
57
|
+
July: string;
|
58
|
+
August: string;
|
59
|
+
September: string;
|
60
|
+
October: string;
|
61
|
+
November: string;
|
62
|
+
December: string;
|
63
|
+
};
|
64
|
+
short: {
|
65
|
+
January: string;
|
66
|
+
February: string;
|
67
|
+
March: string;
|
68
|
+
April: string;
|
69
|
+
May: string;
|
70
|
+
June: string;
|
71
|
+
July: string;
|
72
|
+
August: string;
|
73
|
+
September: string;
|
74
|
+
October: string;
|
75
|
+
November: string;
|
76
|
+
December: string;
|
77
|
+
};
|
78
|
+
};
|
79
|
+
week: {
|
80
|
+
long: {
|
81
|
+
self: string;
|
82
|
+
monday: string;
|
83
|
+
tuesday: string;
|
84
|
+
wednesday: string;
|
85
|
+
thursday: string;
|
86
|
+
friday: string;
|
87
|
+
saturday: string;
|
88
|
+
sunday: string;
|
89
|
+
};
|
90
|
+
short: {
|
91
|
+
self: string;
|
92
|
+
monday: string;
|
93
|
+
tuesday: string;
|
94
|
+
wednesday: string;
|
95
|
+
thursday: string;
|
96
|
+
friday: string;
|
97
|
+
saturday: string;
|
98
|
+
sunday: string;
|
99
|
+
};
|
100
|
+
};
|
101
|
+
};
|
102
|
+
datePicker: {
|
103
|
+
view: {
|
104
|
+
month: string;
|
105
|
+
year: string;
|
106
|
+
week: string;
|
107
|
+
day: string;
|
108
|
+
};
|
109
|
+
month: {
|
110
|
+
long: {
|
111
|
+
January: string;
|
112
|
+
February: string;
|
113
|
+
March: string;
|
114
|
+
April: string;
|
115
|
+
May: string;
|
116
|
+
June: string;
|
117
|
+
July: string;
|
118
|
+
August: string;
|
119
|
+
September: string;
|
120
|
+
October: string;
|
121
|
+
November: string;
|
122
|
+
December: string;
|
123
|
+
};
|
124
|
+
short: {
|
125
|
+
January: string;
|
126
|
+
February: string;
|
127
|
+
March: string;
|
128
|
+
April: string;
|
129
|
+
May: string;
|
130
|
+
June: string;
|
131
|
+
July: string;
|
132
|
+
August: string;
|
133
|
+
September: string;
|
134
|
+
October: string;
|
135
|
+
November: string;
|
136
|
+
December: string;
|
137
|
+
};
|
138
|
+
};
|
139
|
+
week: {
|
140
|
+
long: {
|
141
|
+
self: string;
|
142
|
+
monday: string;
|
143
|
+
tuesday: string;
|
144
|
+
wednesday: string;
|
145
|
+
thursday: string;
|
146
|
+
friday: string;
|
147
|
+
saturday: string;
|
148
|
+
sunday: string;
|
149
|
+
};
|
150
|
+
short: {
|
151
|
+
self: string;
|
152
|
+
monday: string;
|
153
|
+
tuesday: string;
|
154
|
+
wednesday: string;
|
155
|
+
thursday: string;
|
156
|
+
friday: string;
|
157
|
+
saturday: string;
|
158
|
+
sunday: string;
|
159
|
+
};
|
160
|
+
};
|
161
|
+
placeholder: {
|
162
|
+
date: string;
|
163
|
+
week: string;
|
164
|
+
month: string;
|
165
|
+
year: string;
|
166
|
+
quarter: string;
|
167
|
+
time: string;
|
168
|
+
};
|
169
|
+
rangePlaceholder: {
|
170
|
+
date: string[];
|
171
|
+
week: string[];
|
172
|
+
month: string[];
|
173
|
+
year: string[];
|
174
|
+
quarter: string[];
|
175
|
+
time: string[];
|
176
|
+
};
|
177
|
+
selectTime: string;
|
178
|
+
today: string;
|
179
|
+
now: string;
|
180
|
+
ok: string;
|
181
|
+
};
|
182
|
+
image: {
|
183
|
+
loading: string;
|
184
|
+
};
|
185
|
+
imagePreview: {
|
186
|
+
fullScreen: string;
|
187
|
+
rotateRight: string;
|
188
|
+
rotateLeft: string;
|
189
|
+
zoomIn: string;
|
190
|
+
zoomOut: string;
|
191
|
+
originalSize: string;
|
192
|
+
};
|
193
|
+
typography: {
|
194
|
+
copied: string;
|
195
|
+
copy: string;
|
196
|
+
expand: string;
|
197
|
+
collapse: string;
|
198
|
+
edit: string;
|
199
|
+
};
|
200
|
+
form: {
|
201
|
+
validateMessages: {
|
202
|
+
required: string;
|
203
|
+
type: {
|
204
|
+
string: string;
|
205
|
+
number: string;
|
206
|
+
boolean: string;
|
207
|
+
array: string;
|
208
|
+
object: string;
|
209
|
+
url: string;
|
210
|
+
email: string;
|
211
|
+
ip: string;
|
212
|
+
};
|
213
|
+
number: {
|
214
|
+
min: string;
|
215
|
+
max: string;
|
216
|
+
equal: string;
|
217
|
+
range: string;
|
218
|
+
positive: string;
|
219
|
+
negative: string;
|
220
|
+
};
|
221
|
+
array: {
|
222
|
+
length: string;
|
223
|
+
minLength: string;
|
224
|
+
maxLength: string;
|
225
|
+
includes: string;
|
226
|
+
deepEqual: string;
|
227
|
+
empty: string;
|
228
|
+
};
|
229
|
+
string: {
|
230
|
+
minLength: string;
|
231
|
+
maxLength: string;
|
232
|
+
length: string;
|
233
|
+
match: string;
|
234
|
+
uppercase: string;
|
235
|
+
lowercase: string;
|
236
|
+
};
|
237
|
+
object: {
|
238
|
+
deepEqual: string;
|
239
|
+
hasKeys: string;
|
240
|
+
empty: string;
|
241
|
+
};
|
242
|
+
boolean: {
|
243
|
+
true: string;
|
244
|
+
false: string;
|
245
|
+
};
|
246
|
+
};
|
247
|
+
};
|
248
|
+
colorPicker: {
|
249
|
+
history: string;
|
250
|
+
preset: string;
|
251
|
+
empty: string;
|
252
|
+
};
|
253
|
+
};
|
254
|
+
export default lang;
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";const e={formatYear:"YYYY 年",formatMonth:"YYYY 年 MM 月",today:"今天",view:{month:"月",year:"年",week:"周",day:"日"},month:{long:{January:"一月",February:"二月",March:"三月",April:"四月",May:"五月",June:"六月",July:"七月",August:"八月",September:"九月",October:"十月",November:"十一月",December:"十二月"},short:{January:"一月",February:"二月",March:"三月",April:"四月",May:"五月",June:"六月",July:"七月",August:"八月",September:"九月",October:"十月",November:"十一月",December:"十二月"}},week:{long:{self:"周",monday:"周一",tuesday:"周二",wednesday:"周三",thursday:"周四",friday:"周五",saturday:"周六",sunday:"周日"},short:{self:"周",monday:"一",tuesday:"二",wednesday:"三",thursday:"四",friday:"五",saturday:"六",sunday:"日"}}},a={locale:"zh-TW",empty:{description:"無資料"},drawer:{okText:"確認",cancelText:"取消"},popconfirm:{okText:"確認",cancelText:"取消"},modal:{okText:"確認",cancelText:"取消"},pagination:{goto:"前往",page:"頁",countPerPage:"項/頁",total:"共 {0} 項"},table:{okText:"確認",resetText:"重置"},upload:{start:"開始",cancel:"取消",delete:"删除",retry:"點擊重試",buttonText:"點擊上傳",preview:"預覽",drag:"點擊或拖拽文件到此處上傳",dragHover:"釋放文件並開始上傳",error:"上傳失敗"},calendar:e,datePicker:{view:e.view,month:e.month,week:e.week,placeholder:{date:"請選擇日期",week:"請選擇周",month:"請選擇月份",year:"請選擇年份",quarter:"請選擇季度",time:"請選擇時間"},rangePlaceholder:{date:["開始日期","結束日期"],week:["開始周","結束周"],month:["開始月份","結束月份"],year:["開始年份","結束年份"],quarter:["開始季度","結束季度"],time:["開始時間","結束時間"]},selectTime:"選擇時間",today:"今天",now:"此刻",ok:"確認"},image:{loading:"載入中"},imagePreview:{fullScreen:"全屏",rotateRight:"向右旋轉",rotateLeft:"向左旋轉",zoomIn:"放大",zoomOut:"縮小",originalSize:"原始尺寸"},typography:{copied:"已複製",copy:"複製",expand:"展開",collapse:"折疊",edit:"編輯"},form:{validateMessages:{required:"#{field} 是必填項",type:{string:"#{value} 不是合法的文本類型",number:"#{value} 不是合法的數字類型",boolean:"#{value} 不是合法的布爾類型",array:"#{value} 不是合法的數組類型",object:"#{value} 不是合法的對像類型",url:"#{value} 不是合法的 url 地址",email:"#{value} 不是合法的郵箱地址",ip:"#{value} 不是合法的 IP 地址"},number:{min:"`#{value}` 小於最小值 `#{min}`",max:"`#{value}` 大於最大值 `#{max}`",equal:"`#{value}` 不等於 `#{equal}`",range:"`#{value}` 不在 `#{min} ~ #{max}` 範圍內",positive:"`#{value}` 不是正數",negative:"`#{value}` 不是負數"},array:{length:"`#{value}` 個數不等於 #{length}",minLength:"`#{value}` 個數最少為 #{minLength}",maxLength:"`#{value}` 個數最多為 #{maxLength}",includes:"#{value} 不包含 #{includes}",deepEqual:"#{value} 不等於 #{deepEqual}",empty:"`#{value}` 不是空數組"},string:{minLength:"字符數最少為 #{minLength}",maxLength:"字符數最多為 #{maxLength}",length:"`#{value}` 字符數不等於 #{length}",match:"`#{value}` 不符合模式 #{pattern}",uppercase:"`#{value}` 不是全大寫",lowercase:"`#{value}` 不是全小寫"},object:{deepEqual:"`#{value}` 不等於 #{deepEqual}",hasKeys:"`#{value}` 不包含字段 #{keys}",empty:"`#{value}` 不是對象"},boolean:{true:"期望是 `true`",false:"期望是 `false`"}}},colorPicker:{history:"最近使用顏色",preset:"系統預設顏色",empty:"暫無"}};module.exports=a;
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";const e={formatYear:"YYYY 年",formatMonth:"YYYY 年 MM 月",today:"今天",view:{month:"月",year:"年",week:"周",day:"日"},month:{long:{January:"一月",February:"二月",March:"三月",April:"四月",May:"五月",June:"六月",July:"七月",August:"八月",September:"九月",October:"十月",November:"十一月",December:"十二月"},short:{January:"一月",February:"二月",March:"三月",April:"四月",May:"五月",June:"六月",July:"七月",August:"八月",September:"九月",October:"十月",November:"十一月",December:"十二月"}},week:{long:{self:"周",monday:"周一",tuesday:"周二",wednesday:"周三",thursday:"周四",friday:"周五",saturday:"周六",sunday:"周日"},short:{self:"周",monday:"一",tuesday:"二",wednesday:"三",thursday:"四",friday:"五",saturday:"六",sunday:"日"}}},a={locale:"zh-CN",empty:{description:"暂无数据"},drawer:{okText:"确定",cancelText:"取消"},popconfirm:{okText:"确定",cancelText:"取消"},modal:{okText:"确定",cancelText:"取消"},pagination:{goto:"前往",page:"页",countPerPage:"条/页",total:"共 {0} 条"},table:{okText:"确定",resetText:"重置"},upload:{start:"开始",cancel:"取消",delete:"删除",retry:"点击重试",buttonText:"点击上传",preview:"预览",drag:"点击或拖拽文件到此处上传",dragHover:"释放文件并开始上传",error:"上传失败"},calendar:e,datePicker:{view:e.view,month:e.month,week:e.week,placeholder:{date:"请选择日期",week:"请选择周",month:"请选择月份",year:"请选择年份",quarter:"请选择季度",time:"请选择时间"},rangePlaceholder:{date:["开始日期","结束日期"],week:["开始周","结束周"],month:["开始月份","结束月份"],year:["开始年份","结束年份"],quarter:["开始季度","结束季度"],time:["开始时间","结束时间"]},selectTime:"选择时间",today:"今天",now:"此刻",ok:"确定"},image:{loading:"加载中"},imagePreview:{fullScreen:"全屏",rotateRight:"向右旋转",rotateLeft:"向左旋转",zoomIn:"放大",zoomOut:"缩小",originalSize:"原始尺寸"},typography:{copied:"已复制",copy:"复制",expand:"展开",collapse:"折叠",edit:"编辑"},form:{validateMessages:{required:"#{field} 是必填项",type:{string:"#{field} 不是合法的文本类型",number:"#{field} 不是合法的数字类型",boolean:"#{field} 不是合法的布尔类型",array:"#{field} 不是合法的数组类型",object:"#{field} 不是合法的对象类型",url:"#{field} 不是合法的 url 地址",email:"#{field} 不是合法的邮箱地址",ip:"#{field} 不是合法的 IP 地址"},number:{min:"`#{value}` 小于最小值 `#{min}`",max:"`#{value}` 大于最大值 `#{max}`",equal:"`#{value}` 不等于 `#{equal}`",range:"`#{value}` 不在 `#{min} ~ #{max}` 范围内",positive:"`#{value}` 不是正数",negative:"`#{value}` 不是负数"},array:{length:"`#{field}` 个数不等于 #{length}",minLength:"`#{field}` 个数最少为 #{minLength}",maxLength:"`#{field}` 个数最多为 #{maxLength}",includes:"#{field} 不包含 #{includes}",deepEqual:"#{field} 不等于 #{deepEqual}",empty:"`#{field}` 不是空数组"},string:{minLength:"字符数最少为 #{minLength}",maxLength:"字符数最多为 #{maxLength}",length:"字符数必须是 #{length}",match:"`#{value}` 不符合模式 #{pattern}",uppercase:"`#{value}` 必须全大写",lowercase:"`#{value}` 必须全小写"},object:{deepEqual:"`#{field}` 不等于期望值",hasKeys:"`#{field}` 不包含必须字段",empty:"`#{field}` 不是对象"},boolean:{true:"期望是 `true`",false:"期望是 `false`"}}},colorPicker:{history:"最近使用颜色",preset:"系统预设颜色",empty:"暂无"}};module.exports=a;
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "yc-design-vue",
|
3
3
|
"private": false,
|
4
|
-
"version": "1.9.
|
4
|
+
"version": "1.9.2",
|
5
5
|
"type": "module",
|
6
6
|
"description": "A Vue 3 component library.",
|
7
7
|
"keywords": [
|
@@ -39,9 +39,9 @@
|
|
39
39
|
"require": "./lib/index.js"
|
40
40
|
},
|
41
41
|
"./lang/*": {
|
42
|
-
"types": "./es
|
43
|
-
"import": "./es
|
44
|
-
"require": "./lib
|
42
|
+
"types": "./lang-es/*.d.ts",
|
43
|
+
"import": "./lang-es/*.js",
|
44
|
+
"require": "./lang-lib/*.js"
|
45
45
|
},
|
46
46
|
"./es/style.css": "./es/style.css",
|
47
47
|
"./es/shared.css": "./es/shared.css",
|
@@ -1,27 +0,0 @@
|
|
1
|
-
var opt = Object.prototype.toString;
|
2
|
-
function isArray(obj) {
|
3
|
-
return opt.call(obj) === "[object Array]";
|
4
|
-
}
|
5
|
-
function isObject(obj) {
|
6
|
-
return opt.call(obj) === "[object Object]";
|
7
|
-
}
|
8
|
-
function isString(obj) {
|
9
|
-
return opt.call(obj) === "[object String]";
|
10
|
-
}
|
11
|
-
function isFunction(obj) {
|
12
|
-
return opt.call(obj) === "[object Function]";
|
13
|
-
}
|
14
|
-
function isEmptyValue(obj) {
|
15
|
-
return obj === void 0 || obj === null || obj === "";
|
16
|
-
}
|
17
|
-
function isEmptyArray(obj) {
|
18
|
-
return isArray(obj) && !obj.length;
|
19
|
-
}
|
20
|
-
export {
|
21
|
-
isArray,
|
22
|
-
isEmptyArray,
|
23
|
-
isEmptyValue,
|
24
|
-
isFunction,
|
25
|
-
isObject,
|
26
|
-
isString
|
27
|
-
};
|
@@ -1,50 +0,0 @@
|
|
1
|
-
var defaultTypeTemplate = "#{field} is not a #{type} type";
|
2
|
-
var defaultValidateLocale = {
|
3
|
-
required: "#{field} is required",
|
4
|
-
type: {
|
5
|
-
ip: defaultTypeTemplate,
|
6
|
-
email: defaultTypeTemplate,
|
7
|
-
url: defaultTypeTemplate,
|
8
|
-
string: defaultTypeTemplate,
|
9
|
-
number: defaultTypeTemplate,
|
10
|
-
array: defaultTypeTemplate,
|
11
|
-
object: defaultTypeTemplate,
|
12
|
-
boolean: defaultTypeTemplate
|
13
|
-
},
|
14
|
-
number: {
|
15
|
-
min: "`#{value}` is not greater than `#{min}`",
|
16
|
-
max: "`#{value}` is not less than `#{max}`",
|
17
|
-
equal: "`#{value}` is not equal to `#{equal}`",
|
18
|
-
range: "`#{value}` is not in range `#{min} ~ #{max}`",
|
19
|
-
positive: "`#{value}` is not a positive number",
|
20
|
-
negative: "`#{value}` is not a negative number"
|
21
|
-
},
|
22
|
-
string: {
|
23
|
-
maxLength: "#{field} cannot be longer than #{maxLength} characters",
|
24
|
-
minLength: "#{field} must be at least #{minLength} characters",
|
25
|
-
length: "#{field} must be exactly #{length} characters",
|
26
|
-
match: "`#{value}` does not match pattern #{pattern}",
|
27
|
-
uppercase: "`#{value}` must be all uppercase",
|
28
|
-
lowercase: "`#{value}` must be all lowercased"
|
29
|
-
},
|
30
|
-
array: {
|
31
|
-
length: "#{field} must be exactly #{length} in length",
|
32
|
-
minLength: "#{field} cannot be less than #{minLength} in length",
|
33
|
-
maxLength: "#{field} cannot be greater than #{maxLength} in length",
|
34
|
-
includes: "#{field} is not includes #{includes}",
|
35
|
-
deepEqual: "#{field} is not deep equal with #{deepEqual}",
|
36
|
-
empty: "#{field} is not an empty array"
|
37
|
-
},
|
38
|
-
object: {
|
39
|
-
deepEqual: "#{field} is not deep equal to expected value",
|
40
|
-
hasKeys: "#{field} does not contain required fields",
|
41
|
-
empty: "#{field} is not an empty object"
|
42
|
-
},
|
43
|
-
boolean: {
|
44
|
-
true: "Expect true but got `#{value}`",
|
45
|
-
false: "Expect false but got `#{value}`"
|
46
|
-
}
|
47
|
-
};
|
48
|
-
export {
|
49
|
-
defaultValidateLocale as default
|
50
|
-
};
|
@@ -1,86 +0,0 @@
|
|
1
|
-
import { isObject, isFunction, isString, isArray, isEmptyValue, isEmptyArray } from "../is.js";
|
2
|
-
import { getTemplate, mergeTemplate } from "../util.js";
|
3
|
-
import defaultValidateLocale from "../locale/en-US.js";
|
4
|
-
var Base = function Base2(obj, options) {
|
5
|
-
var this$1$1 = this;
|
6
|
-
this.getValidateMsg = function(keyPath, info) {
|
7
|
-
if (info === void 0) info = {};
|
8
|
-
var data = Object.assign(Object.assign({}, info), { value: this$1$1.obj, field: this$1$1.field, type: this$1$1.type });
|
9
|
-
var template = getTemplate(this$1$1.validateMessages, keyPath);
|
10
|
-
if (isFunction(template)) {
|
11
|
-
return template(data);
|
12
|
-
}
|
13
|
-
if (isString(template)) {
|
14
|
-
return template.replace(/\#\{.+?\}/g, function(variable) {
|
15
|
-
var key = variable.slice(2, -1);
|
16
|
-
if (key in data) {
|
17
|
-
if (isObject(data[key]) || isArray(data[key])) {
|
18
|
-
try {
|
19
|
-
return JSON.stringify(data[key]);
|
20
|
-
} catch (_) {
|
21
|
-
return data[key];
|
22
|
-
}
|
23
|
-
}
|
24
|
-
return String(data[key]);
|
25
|
-
}
|
26
|
-
return variable;
|
27
|
-
});
|
28
|
-
}
|
29
|
-
return template;
|
30
|
-
};
|
31
|
-
if (isObject(options) && isString(obj) && options.trim) {
|
32
|
-
this.obj = obj.trim();
|
33
|
-
} else if (isObject(options) && options.ignoreEmptyString && obj === "") {
|
34
|
-
this.obj = void 0;
|
35
|
-
} else {
|
36
|
-
this.obj = obj;
|
37
|
-
}
|
38
|
-
this.message = options.message;
|
39
|
-
this.type = options.type;
|
40
|
-
this.error = null;
|
41
|
-
this.field = options.field || options.type;
|
42
|
-
this.validateMessages = mergeTemplate(defaultValidateLocale, options.validateMessages);
|
43
|
-
};
|
44
|
-
var prototypeAccessors = { not: { configurable: true }, isRequired: { configurable: true }, end: { configurable: true } };
|
45
|
-
prototypeAccessors.not.get = function() {
|
46
|
-
this._not = !this._not;
|
47
|
-
return this;
|
48
|
-
};
|
49
|
-
prototypeAccessors.isRequired.get = function() {
|
50
|
-
if (isEmptyValue(this.obj) || isEmptyArray(this.obj)) {
|
51
|
-
var message = this.getValidateMsg("required");
|
52
|
-
this.error = {
|
53
|
-
value: this.obj,
|
54
|
-
type: this.type,
|
55
|
-
requiredError: true,
|
56
|
-
message: this.message || (isObject(message) ? message : (this._not ? "[NOT MODE]:" : "") + message)
|
57
|
-
};
|
58
|
-
}
|
59
|
-
return this;
|
60
|
-
};
|
61
|
-
prototypeAccessors.end.get = function() {
|
62
|
-
return this.error;
|
63
|
-
};
|
64
|
-
Base.prototype.addError = function addError(message) {
|
65
|
-
if (!this.error && message) {
|
66
|
-
this.error = {
|
67
|
-
value: this.obj,
|
68
|
-
type: this.type,
|
69
|
-
message: this.message || (isObject(message) ? message : (this._not ? "[NOT MODE]:" : "") + message)
|
70
|
-
};
|
71
|
-
}
|
72
|
-
};
|
73
|
-
Base.prototype.validate = function validate(expression, errorMessage) {
|
74
|
-
var _expression = this._not ? expression : !expression;
|
75
|
-
if (_expression) {
|
76
|
-
this.addError(errorMessage);
|
77
|
-
}
|
78
|
-
return this;
|
79
|
-
};
|
80
|
-
Base.prototype.collect = function collect(callback) {
|
81
|
-
callback && callback(this.error);
|
82
|
-
};
|
83
|
-
Object.defineProperties(Base.prototype, prototypeAccessors);
|
84
|
-
export {
|
85
|
-
Base as default
|
86
|
-
};
|
@@ -1,25 +0,0 @@
|
|
1
|
-
import { isObject } from "./is.js";
|
2
|
-
var mergeTemplate = function(defaultValidateMessages, validateMessages) {
|
3
|
-
var result = Object.assign({}, defaultValidateMessages);
|
4
|
-
Object.keys(validateMessages || {}).forEach(function(key) {
|
5
|
-
var defaultValue = result[key];
|
6
|
-
var newValue = validateMessages === null || validateMessages === void 0 ? void 0 : validateMessages[key];
|
7
|
-
result[key] = isObject(defaultValue) ? Object.assign(Object.assign({}, defaultValue), newValue) : newValue || defaultValue;
|
8
|
-
});
|
9
|
-
return result;
|
10
|
-
};
|
11
|
-
var getTemplate = function(validateMessages, keyPath) {
|
12
|
-
var keys = keyPath.split(".");
|
13
|
-
var result = validateMessages;
|
14
|
-
for (var i = 0; i < keys.length; i++) {
|
15
|
-
result = result && result[keys[i]];
|
16
|
-
if (result === void 0) {
|
17
|
-
return result;
|
18
|
-
}
|
19
|
-
}
|
20
|
-
return result;
|
21
|
-
};
|
22
|
-
export {
|
23
|
-
getTemplate,
|
24
|
-
mergeTemplate
|
25
|
-
};
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var t=Object.prototype.toString;function r(r){return"[object Array]"===t.call(r)}exports.isArray=r,exports.isEmptyArray=function(t){return r(t)&&!t.length},exports.isEmptyValue=function(t){return null==t||""===t},exports.isFunction=function(r){return"[object Function]"===t.call(r)},exports.isObject=function(r){return"[object Object]"===t.call(r)},exports.isString=function(r){return"[object String]"===t.call(r)};
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";var e="#{field} is not a #{type} type",t={required:"#{field} is required",type:{ip:e,email:e,url:e,string:e,number:e,array:e,object:e,boolean:e},number:{min:"`#{value}` is not greater than `#{min}`",max:"`#{value}` is not less than `#{max}`",equal:"`#{value}` is not equal to `#{equal}`",range:"`#{value}` is not in range `#{min} ~ #{max}`",positive:"`#{value}` is not a positive number",negative:"`#{value}` is not a negative number"},string:{maxLength:"#{field} cannot be longer than #{maxLength} characters",minLength:"#{field} must be at least #{minLength} characters",length:"#{field} must be exactly #{length} characters",match:"`#{value}` does not match pattern #{pattern}",uppercase:"`#{value}` must be all uppercase",lowercase:"`#{value}` must be all lowercased"},array:{length:"#{field} must be exactly #{length} in length",minLength:"#{field} cannot be less than #{minLength} in length",maxLength:"#{field} cannot be greater than #{maxLength} in length",includes:"#{field} is not includes #{includes}",deepEqual:"#{field} is not deep equal with #{deepEqual}",empty:"#{field} is not an empty array"},object:{deepEqual:"#{field} is not deep equal to expected value",hasKeys:"#{field} does not contain required fields",empty:"#{field} is not an empty object"},boolean:{true:"Expect true but got `#{value}`",false:"Expect false but got `#{value}`"}};module.exports=t;
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";const t=require("../is.js"),e=require("../util.js"),i=require("../locale/en-US.js");var r=function(r,s){var n=this;this.getValidateMsg=function(i,r){void 0===r&&(r={});var s=Object.assign(Object.assign({},r),{value:n.obj,field:n.field,type:n.type}),o=e.getTemplate(n.validateMessages,i);return t.isFunction(o)?o(s):t.isString(o)?o.replace(/\#\{.+?\}/g,function(e){var i=e.slice(2,-1);if(i in s){if(t.isObject(s[i])||t.isArray(s[i]))try{return JSON.stringify(s[i])}catch(r){return s[i]}return String(s[i])}return e}):o},t.isObject(s)&&t.isString(r)&&s.trim?this.obj=r.trim():t.isObject(s)&&s.ignoreEmptyString&&""===r?this.obj=void 0:this.obj=r,this.message=s.message,this.type=s.type,this.error=null,this.field=s.field||s.type,this.validateMessages=e.mergeTemplate(i,s.validateMessages)},s={not:{configurable:!0},isRequired:{configurable:!0},end:{configurable:!0}};s.not.get=function(){return this._not=!this._not,this},s.isRequired.get=function(){if(t.isEmptyValue(this.obj)||t.isEmptyArray(this.obj)){var e=this.getValidateMsg("required");this.error={value:this.obj,type:this.type,requiredError:!0,message:this.message||(t.isObject(e)?e:(this._not?"[NOT MODE]:":"")+e)}}return this},s.end.get=function(){return this.error},r.prototype.addError=function(e){!this.error&&e&&(this.error={value:this.obj,type:this.type,message:this.message||(t.isObject(e)?e:(this._not?"[NOT MODE]:":"")+e)})},r.prototype.validate=function(t,e){return(this._not?t:!t)&&this.addError(e),this},r.prototype.collect=function(t){t&&t(this.error)},Object.defineProperties(r.prototype,s),module.exports=r;
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./is.js");exports.getTemplate=function(e,t){for(var r=t.split("."),n=e,s=0;s<r.length;s++)if(void 0===(n=n&&n[r[s]]))return n;return n},exports.mergeTemplate=function(t,r){var n=Object.assign({},t);return Object.keys(r||{}).forEach(function(t){var s=n[t],i=null==r?void 0:r[t];n[t]=e.isObject(s)?Object.assign(Object.assign({},s),i):i||s}),n};
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|