vue-devui 1.6.33 → 1.6.34
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/auto-complete/index.es.js +131 -26
- package/auto-complete/index.umd.js +12 -12
- package/data-grid/index.es.js +131 -26
- package/data-grid/index.umd.js +18 -18
- package/date-picker-pro/index.es.js +131 -26
- package/date-picker-pro/index.umd.js +16 -16
- package/editable-select/index.es.js +131 -26
- package/editable-select/index.umd.js +16 -16
- package/input/index.es.js +136 -31
- package/input/index.umd.js +22 -22
- package/locale/index.es.js +271 -0
- package/locale/index.umd.js +1 -0
- package/locale/package.json +8 -0
- package/nuxt/components/Locale.js +2 -0
- package/package.json +1 -1
- package/pagination/index.es.js +131 -26
- package/pagination/index.umd.js +11 -11
- package/search/index.es.js +136 -31
- package/search/index.umd.js +12 -12
- package/select/index.es.js +131 -26
- package/select/index.umd.js +21 -21
- package/splitter/index.es.js +136 -31
- package/splitter/index.umd.js +14 -14
- package/table/index.es.js +131 -26
- package/table/index.umd.js +10 -10
- package/time-picker/index.es.js +131 -26
- package/time-picker/index.umd.js +15 -15
- package/time-select/index.es.js +131 -26
- package/time-select/index.umd.js +18 -18
- package/tree/index.es.js +131 -26
- package/tree/index.umd.js +26 -26
- package/types/locale/index.d.ts +7 -4
- package/upload/index.es.js +131 -26
- package/upload/index.umd.js +3 -3
- package/vue-devui.es.js +132 -27
- package/vue-devui.umd.js +66 -66
|
@@ -0,0 +1,271 @@
|
|
|
1
|
+
import { ref, reactive } from "vue";
|
|
2
|
+
var zhCN = {
|
|
3
|
+
pagination: {
|
|
4
|
+
totalItemText: "\u6240\u6709\u6761\u76EE",
|
|
5
|
+
goToText: "\u8DF3\u81F3",
|
|
6
|
+
perPage: "\u6761/\u9875"
|
|
7
|
+
},
|
|
8
|
+
accordion: {
|
|
9
|
+
loading: "\u52A0\u8F7D\u4E2D",
|
|
10
|
+
noData: "\u6CA1\u6709\u6570\u636E"
|
|
11
|
+
},
|
|
12
|
+
autoCompleteDropdown: {
|
|
13
|
+
latestInput: "\u6700\u8FD1\u8F93\u5165"
|
|
14
|
+
},
|
|
15
|
+
cascaderList: {
|
|
16
|
+
noData: "\u6CA1\u6709\u6570\u636E"
|
|
17
|
+
},
|
|
18
|
+
colorPicker: {
|
|
19
|
+
foundationPanel: "\u57FA\u7840\u9762\u677F",
|
|
20
|
+
advancedPanel: "\u9AD8\u7EA7\u9762\u677F"
|
|
21
|
+
},
|
|
22
|
+
datePickerPro: {
|
|
23
|
+
ok: "\u786E\u5B9A",
|
|
24
|
+
placeholder: "\u8BF7\u9009\u62E9\u65E5\u671F",
|
|
25
|
+
month1: "1\u6708",
|
|
26
|
+
month2: "2\u6708",
|
|
27
|
+
month3: "3\u6708",
|
|
28
|
+
month4: "4\u6708",
|
|
29
|
+
month5: "5\u6708",
|
|
30
|
+
month6: "6\u6708",
|
|
31
|
+
month7: "7\u6708",
|
|
32
|
+
month8: "8\u6708",
|
|
33
|
+
month9: "9\u6708",
|
|
34
|
+
month10: "10\u6708",
|
|
35
|
+
month11: "11\u6708",
|
|
36
|
+
month12: "12\u6708",
|
|
37
|
+
year: "\u5E74",
|
|
38
|
+
startPlaceholder: "\u8BF7\u9009\u62E9\u5F00\u59CB\u65E5\u671F",
|
|
39
|
+
endPlaceholder: "\u8BF7\u9009\u62E9\u7ED3\u675F\u65E5\u671F",
|
|
40
|
+
getWeekDays() {
|
|
41
|
+
return ["\u65E5", "\u4E00", "\u4E8C", "\u4E09", "\u56DB", "\u4E94", "\u516D"];
|
|
42
|
+
},
|
|
43
|
+
getTimeArr() {
|
|
44
|
+
return ["\u65F6", "\u5206", "\u79D2"];
|
|
45
|
+
},
|
|
46
|
+
getYearMonthStr(year, month) {
|
|
47
|
+
return `${year}\u5E74${month}\u6708`;
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
editableSelect: {
|
|
51
|
+
noRelatedRecords: "\u627E\u4E0D\u5230\u76F8\u5173\u8BB0\u5F55",
|
|
52
|
+
noData: "\u6CA1\u6709\u6570\u636E"
|
|
53
|
+
},
|
|
54
|
+
input: {
|
|
55
|
+
placeholder: "\u8BF7\u8F93\u5165"
|
|
56
|
+
},
|
|
57
|
+
splitterBar: {
|
|
58
|
+
collapse: "\u6536\u8D77",
|
|
59
|
+
expand: "\u5C55\u5F00"
|
|
60
|
+
},
|
|
61
|
+
stepsGuide: {
|
|
62
|
+
previous: "\u4E0A\u4E00\u6B65",
|
|
63
|
+
continue: "\u6211\u77E5\u9053\u5566\uFF0C\u7EE7\u7EED",
|
|
64
|
+
ok: "\u6211\u77E5\u9053\u5566"
|
|
65
|
+
},
|
|
66
|
+
table: {
|
|
67
|
+
selectAll: "\u5168\u9009",
|
|
68
|
+
ok: "\u786E\u5B9A"
|
|
69
|
+
},
|
|
70
|
+
dataGrid: {
|
|
71
|
+
selectAll: "\u5168\u9009",
|
|
72
|
+
ok: "\u786E\u5B9A"
|
|
73
|
+
},
|
|
74
|
+
timePopup: {
|
|
75
|
+
ok: "\u786E\u5B9A"
|
|
76
|
+
},
|
|
77
|
+
transfer: {
|
|
78
|
+
unit: "\u9879",
|
|
79
|
+
panelUnit: "\u9879",
|
|
80
|
+
headerUnit: "\u9879",
|
|
81
|
+
noData: "\u6682\u65E0\u6570\u636E",
|
|
82
|
+
placeholder: "\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u641C\u7D22"
|
|
83
|
+
},
|
|
84
|
+
tree: {
|
|
85
|
+
loading: "\u52A0\u8F7D\u4E2D",
|
|
86
|
+
newNode: "\u65B0\u8282\u70B9",
|
|
87
|
+
selectPlaceholder: "\u8BF7\u9009\u62E9"
|
|
88
|
+
},
|
|
89
|
+
upload: {
|
|
90
|
+
placeholder: "\u9009\u62E9\u6587\u4EF6",
|
|
91
|
+
getExistSameNameFilesMsg(sameNames) {
|
|
92
|
+
return `\u60A8\u4E0A\u4F20\u7684 "${sameNames}" \u5B58\u5728\u91CD\u540D\u6587\u4EF6, \u8BF7\u91CD\u65B0\u9009\u62E9\u6587\u4EF6`;
|
|
93
|
+
},
|
|
94
|
+
getAllFilesBeyondMaximalFileSizeMsg(maximalSize) {
|
|
95
|
+
return `\u6700\u5927\u652F\u6301\u4E0A\u4F20${maximalSize}MB\u7684\u6587\u4EF6, \u60A8\u672C\u6B21\u4E0A\u4F20\u7684\u6240\u6709\u6587\u4EF6\u8D85\u8FC7\u53EF\u4E0A\u4F20\u6587\u4EF6\u5927\u5C0F`;
|
|
96
|
+
},
|
|
97
|
+
getBeyondMaximalFileSizeMsg(filename, maximalSize) {
|
|
98
|
+
return `\u6700\u5927\u652F\u6301\u4E0A\u4F20${maximalSize}MB\u7684\u6587\u4EF6, \u60A8\u4E0A\u4F20\u7684\u6587\u4EF6"${filename}"\u8D85\u8FC7\u53EF\u4E0A\u4F20\u6587\u4EF6\u5927\u5C0F`;
|
|
99
|
+
},
|
|
100
|
+
getNotAllowedFileTypeMsg(filename, scope) {
|
|
101
|
+
return `\u652F\u6301\u7684\u6587\u4EF6\u7C7B\u578B: "${scope}", \u60A8\u4E0A\u4F20\u7684\u6587\u4EF6"${filename}"\u4E0D\u5728\u5141\u8BB8\u8303\u56F4\u5185\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9\u6587\u4EF6`;
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
search: {
|
|
105
|
+
placeholder: "\u8BF7\u8F93\u5165\u5173\u952E\u5B57"
|
|
106
|
+
},
|
|
107
|
+
select: {
|
|
108
|
+
placeholder: "\u8BF7\u9009\u62E9",
|
|
109
|
+
noDataText: "\u65E0\u6570\u636E",
|
|
110
|
+
noMatchText: "\u627E\u4E0D\u5230\u76F8\u5173\u8BB0\u5F55",
|
|
111
|
+
loadingText: "\u52A0\u8F7D\u4E2D..."
|
|
112
|
+
},
|
|
113
|
+
tagInput: {
|
|
114
|
+
maxTagsText: "\u5DF2\u8FBE\u5230\u6700\u5927\u4E2A\u6570\uFF1A"
|
|
115
|
+
},
|
|
116
|
+
timeSelect: {
|
|
117
|
+
placeholder: "\u8BF7\u9009\u62E9\u65F6\u95F4"
|
|
118
|
+
}
|
|
119
|
+
};
|
|
120
|
+
var enUS = {
|
|
121
|
+
pagination: {
|
|
122
|
+
totalItemText: "Total",
|
|
123
|
+
goToText: "Go to"
|
|
124
|
+
},
|
|
125
|
+
accordion: {
|
|
126
|
+
loading: "loading",
|
|
127
|
+
noData: "No Data"
|
|
128
|
+
},
|
|
129
|
+
autoCompleteDropdown: {
|
|
130
|
+
latestInput: "Latest input"
|
|
131
|
+
},
|
|
132
|
+
cascaderList: {
|
|
133
|
+
noData: "No data"
|
|
134
|
+
},
|
|
135
|
+
colorPicker: {
|
|
136
|
+
foundationPanel: "Foundation panel",
|
|
137
|
+
advancedPanel: "Advanced panel"
|
|
138
|
+
},
|
|
139
|
+
datePickerPro: {
|
|
140
|
+
ok: "OK",
|
|
141
|
+
placeholder: "select date",
|
|
142
|
+
month1: "Jan",
|
|
143
|
+
month2: "Feb",
|
|
144
|
+
month3: "Mar",
|
|
145
|
+
month4: "Apr",
|
|
146
|
+
month5: "May",
|
|
147
|
+
month6: "June",
|
|
148
|
+
month7: "July",
|
|
149
|
+
month8: "Aug",
|
|
150
|
+
month9: "Sep",
|
|
151
|
+
month10: "Oct",
|
|
152
|
+
month11: "Nov",
|
|
153
|
+
month12: "Dec",
|
|
154
|
+
year: "\u5E74",
|
|
155
|
+
startPlaceholder: "select start date",
|
|
156
|
+
endPlaceholder: "select end date",
|
|
157
|
+
getWeekDays() {
|
|
158
|
+
return ["Sun", "Mon", "Tue", "Wed", "Thur", "Fri", "Sat"];
|
|
159
|
+
},
|
|
160
|
+
getTimeArr() {
|
|
161
|
+
return ["Hr", "Min", "Sec"];
|
|
162
|
+
},
|
|
163
|
+
getYearMonthStr(year, month) {
|
|
164
|
+
return `${year} - ${month}`;
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
editableSelect: {
|
|
168
|
+
noRelatedRecords: "No related records found",
|
|
169
|
+
noData: "No data"
|
|
170
|
+
},
|
|
171
|
+
input: {
|
|
172
|
+
placeholder: "Please enter"
|
|
173
|
+
},
|
|
174
|
+
splitterBar: {
|
|
175
|
+
collapse: "Collapse",
|
|
176
|
+
expand: "Expand"
|
|
177
|
+
},
|
|
178
|
+
stepsGuide: {
|
|
179
|
+
previous: "Previous",
|
|
180
|
+
continue: "Continue",
|
|
181
|
+
ok: "OK"
|
|
182
|
+
},
|
|
183
|
+
table: {
|
|
184
|
+
selectAll: "Select all",
|
|
185
|
+
ok: "OK"
|
|
186
|
+
},
|
|
187
|
+
dataGrid: {
|
|
188
|
+
selectAll: "Select all",
|
|
189
|
+
ok: "OK"
|
|
190
|
+
},
|
|
191
|
+
timePopup: {
|
|
192
|
+
ok: "OK"
|
|
193
|
+
},
|
|
194
|
+
transfer: {
|
|
195
|
+
unit: "",
|
|
196
|
+
panelUnit: "",
|
|
197
|
+
headerUnit: "",
|
|
198
|
+
noData: "No Data",
|
|
199
|
+
placeholder: "Please enter keywords"
|
|
200
|
+
},
|
|
201
|
+
tree: {
|
|
202
|
+
loading: "Loading",
|
|
203
|
+
newNode: "New node",
|
|
204
|
+
selectPlaceholder: "Please select"
|
|
205
|
+
},
|
|
206
|
+
upload: {
|
|
207
|
+
placeholder: "select file",
|
|
208
|
+
getExistSameNameFilesMsg(sameNames) {
|
|
209
|
+
return `Duplicate files exist : "${sameNames}" `;
|
|
210
|
+
},
|
|
211
|
+
getAllFilesBeyondMaximalFileSizeMsg(maximalSize) {
|
|
212
|
+
return `Maximum file size (MB): ${maximalSize}. The selected files exceed the maximum value`;
|
|
213
|
+
},
|
|
214
|
+
getBeyondMaximalFileSizeMsg(filename, maximalSize) {
|
|
215
|
+
return `Maximum file size (MB): ${maximalSize}. Files whose size exceeds the maximum value: ${filename}`;
|
|
216
|
+
},
|
|
217
|
+
getNotAllowedFileTypeMsg(filename, scope) {
|
|
218
|
+
return `Files with unsupported types: ${filename}. Supported file types: ${scope}`;
|
|
219
|
+
}
|
|
220
|
+
},
|
|
221
|
+
search: {
|
|
222
|
+
placeholder: "Enter a keyword"
|
|
223
|
+
},
|
|
224
|
+
select: {
|
|
225
|
+
placeholder: "Please select",
|
|
226
|
+
noDataText: "No data",
|
|
227
|
+
noMatchText: "No related records found",
|
|
228
|
+
loadingText: "Loading..."
|
|
229
|
+
},
|
|
230
|
+
tagInput: {
|
|
231
|
+
maxTagsText: "Maximum number reached: "
|
|
232
|
+
},
|
|
233
|
+
timeSelect: {
|
|
234
|
+
placeholder: "Please select time"
|
|
235
|
+
}
|
|
236
|
+
};
|
|
237
|
+
const lang = ref("zh-CN");
|
|
238
|
+
const nowApp = ref();
|
|
239
|
+
let langMessages = reactive({
|
|
240
|
+
["zh-CN"]: zhCN,
|
|
241
|
+
["en-US"]: enUS
|
|
242
|
+
});
|
|
243
|
+
const Locale = {
|
|
244
|
+
messages(language = lang.value) {
|
|
245
|
+
return langMessages[language];
|
|
246
|
+
},
|
|
247
|
+
lang() {
|
|
248
|
+
return lang.value;
|
|
249
|
+
},
|
|
250
|
+
use(newLang) {
|
|
251
|
+
const app = nowApp.value;
|
|
252
|
+
lang.value = newLang;
|
|
253
|
+
app.config.globalProperties.langMessages = Locale.messages();
|
|
254
|
+
},
|
|
255
|
+
add(newMessages) {
|
|
256
|
+
langMessages = {
|
|
257
|
+
...langMessages,
|
|
258
|
+
...newMessages
|
|
259
|
+
};
|
|
260
|
+
}
|
|
261
|
+
};
|
|
262
|
+
var index = {
|
|
263
|
+
title: "\u56FD\u9645\u5316",
|
|
264
|
+
category: "\u57FA\u7840",
|
|
265
|
+
status: "100%",
|
|
266
|
+
install(app, language) {
|
|
267
|
+
app.config.globalProperties.langMessages = Locale.messages(language);
|
|
268
|
+
nowApp.value = app;
|
|
269
|
+
}
|
|
270
|
+
};
|
|
271
|
+
export { Locale, index as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(t,a){typeof exports=="object"&&typeof module!="undefined"?a(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],a):(t=typeof globalThis!="undefined"?globalThis:t||self,a(t.index={},t.Vue))})(this,function(t,a){"use strict";var i={pagination:{totalItemText:"\u6240\u6709\u6761\u76EE",goToText:"\u8DF3\u81F3",perPage:"\u6761/\u9875"},accordion:{loading:"\u52A0\u8F7D\u4E2D",noData:"\u6CA1\u6709\u6570\u636E"},autoCompleteDropdown:{latestInput:"\u6700\u8FD1\u8F93\u5165"},cascaderList:{noData:"\u6CA1\u6709\u6570\u636E"},colorPicker:{foundationPanel:"\u57FA\u7840\u9762\u677F",advancedPanel:"\u9AD8\u7EA7\u9762\u677F"},datePickerPro:{ok:"\u786E\u5B9A",placeholder:"\u8BF7\u9009\u62E9\u65E5\u671F",month1:"1\u6708",month2:"2\u6708",month3:"3\u6708",month4:"4\u6708",month5:"5\u6708",month6:"6\u6708",month7:"7\u6708",month8:"8\u6708",month9:"9\u6708",month10:"10\u6708",month11:"11\u6708",month12:"12\u6708",year:"\u5E74",startPlaceholder:"\u8BF7\u9009\u62E9\u5F00\u59CB\u65E5\u671F",endPlaceholder:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65E5\u671F",getWeekDays(){return["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"]},getTimeArr(){return["\u65F6","\u5206","\u79D2"]},getYearMonthStr(e,u){return`${e}\u5E74${u}\u6708`}},editableSelect:{noRelatedRecords:"\u627E\u4E0D\u5230\u76F8\u5173\u8BB0\u5F55",noData:"\u6CA1\u6709\u6570\u636E"},input:{placeholder:"\u8BF7\u8F93\u5165"},splitterBar:{collapse:"\u6536\u8D77",expand:"\u5C55\u5F00"},stepsGuide:{previous:"\u4E0A\u4E00\u6B65",continue:"\u6211\u77E5\u9053\u5566\uFF0C\u7EE7\u7EED",ok:"\u6211\u77E5\u9053\u5566"},table:{selectAll:"\u5168\u9009",ok:"\u786E\u5B9A"},dataGrid:{selectAll:"\u5168\u9009",ok:"\u786E\u5B9A"},timePopup:{ok:"\u786E\u5B9A"},transfer:{unit:"\u9879",panelUnit:"\u9879",headerUnit:"\u9879",noData:"\u6682\u65E0\u6570\u636E",placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u641C\u7D22"},tree:{loading:"\u52A0\u8F7D\u4E2D",newNode:"\u65B0\u8282\u70B9",selectPlaceholder:"\u8BF7\u9009\u62E9"},upload:{placeholder:"\u9009\u62E9\u6587\u4EF6",getExistSameNameFilesMsg(e){return`\u60A8\u4E0A\u4F20\u7684 "${e}" \u5B58\u5728\u91CD\u540D\u6587\u4EF6, \u8BF7\u91CD\u65B0\u9009\u62E9\u6587\u4EF6`},getAllFilesBeyondMaximalFileSizeMsg(e){return`\u6700\u5927\u652F\u6301\u4E0A\u4F20${e}MB\u7684\u6587\u4EF6, \u60A8\u672C\u6B21\u4E0A\u4F20\u7684\u6240\u6709\u6587\u4EF6\u8D85\u8FC7\u53EF\u4E0A\u4F20\u6587\u4EF6\u5927\u5C0F`},getBeyondMaximalFileSizeMsg(e,u){return`\u6700\u5927\u652F\u6301\u4E0A\u4F20${u}MB\u7684\u6587\u4EF6, \u60A8\u4E0A\u4F20\u7684\u6587\u4EF6"${e}"\u8D85\u8FC7\u53EF\u4E0A\u4F20\u6587\u4EF6\u5927\u5C0F`},getNotAllowedFileTypeMsg(e,u){return`\u652F\u6301\u7684\u6587\u4EF6\u7C7B\u578B: "${u}", \u60A8\u4E0A\u4F20\u7684\u6587\u4EF6"${e}"\u4E0D\u5728\u5141\u8BB8\u8303\u56F4\u5185\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9\u6587\u4EF6`}},search:{placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u5B57"},select:{placeholder:"\u8BF7\u9009\u62E9",noDataText:"\u65E0\u6570\u636E",noMatchText:"\u627E\u4E0D\u5230\u76F8\u5173\u8BB0\u5F55",loadingText:"\u52A0\u8F7D\u4E2D..."},tagInput:{maxTagsText:"\u5DF2\u8FBE\u5230\u6700\u5927\u4E2A\u6570\uFF1A"},timeSelect:{placeholder:"\u8BF7\u9009\u62E9\u65F6\u95F4"}},s={pagination:{totalItemText:"Total",goToText:"Go to"},accordion:{loading:"loading",noData:"No Data"},autoCompleteDropdown:{latestInput:"Latest input"},cascaderList:{noData:"No data"},colorPicker:{foundationPanel:"Foundation panel",advancedPanel:"Advanced panel"},datePickerPro:{ok:"OK",placeholder:"select date",month1:"Jan",month2:"Feb",month3:"Mar",month4:"Apr",month5:"May",month6:"June",month7:"July",month8:"Aug",month9:"Sep",month10:"Oct",month11:"Nov",month12:"Dec",year:"\u5E74",startPlaceholder:"select start date",endPlaceholder:"select end date",getWeekDays(){return["Sun","Mon","Tue","Wed","Thur","Fri","Sat"]},getTimeArr(){return["Hr","Min","Sec"]},getYearMonthStr(e,u){return`${e} - ${u}`}},editableSelect:{noRelatedRecords:"No related records found",noData:"No data"},input:{placeholder:"Please enter"},splitterBar:{collapse:"Collapse",expand:"Expand"},stepsGuide:{previous:"Previous",continue:"Continue",ok:"OK"},table:{selectAll:"Select all",ok:"OK"},dataGrid:{selectAll:"Select all",ok:"OK"},timePopup:{ok:"OK"},transfer:{unit:"",panelUnit:"",headerUnit:"",noData:"No Data",placeholder:"Please enter keywords"},tree:{loading:"Loading",newNode:"New node",selectPlaceholder:"Please select"},upload:{placeholder:"select file",getExistSameNameFilesMsg(e){return`Duplicate files exist : "${e}" `},getAllFilesBeyondMaximalFileSizeMsg(e){return`Maximum file size (MB): ${e}. The selected files exceed the maximum value`},getBeyondMaximalFileSizeMsg(e,u){return`Maximum file size (MB): ${u}. Files whose size exceeds the maximum value: ${e}`},getNotAllowedFileTypeMsg(e,u){return`Files with unsupported types: ${e}. Supported file types: ${u}`}},search:{placeholder:"Enter a keyword"},select:{placeholder:"Please select",noDataText:"No data",noMatchText:"No related records found",loadingText:"Loading..."},tagInput:{maxTagsText:"Maximum number reached: "},timeSelect:{placeholder:"Please select time"}};const o=a.ref("zh-CN"),r=a.ref();let l=a.reactive({["zh-CN"]:i,["en-US"]:s});const n={messages(e=o.value){return l[e]},lang(){return o.value},use(e){const u=r.value;o.value=e,u.config.globalProperties.langMessages=n.messages()},add(e){l={...l,...e}}};var d={title:"\u56FD\u9645\u5316",category:"\u57FA\u7840",status:"100%",install(e,u){e.config.globalProperties.langMessages=n.messages(u),r.value=e}};t.Locale=n,t.default=d,Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
package/package.json
CHANGED
package/pagination/index.es.js
CHANGED
|
@@ -9107,23 +9107,6 @@ var Tag = defineComponent({
|
|
|
9107
9107
|
};
|
|
9108
9108
|
}
|
|
9109
9109
|
});
|
|
9110
|
-
function deepAssign(...objects) {
|
|
9111
|
-
const isObject2 = (obj) => obj && typeof obj === "object";
|
|
9112
|
-
return objects.reduce((prev, from) => {
|
|
9113
|
-
Object.keys(from).forEach((key) => {
|
|
9114
|
-
const pVal = prev[key];
|
|
9115
|
-
const oVal = from[key];
|
|
9116
|
-
if (Array.isArray(pVal) && Array.isArray(oVal)) {
|
|
9117
|
-
prev[key] = Array.from(/* @__PURE__ */ new Set([...oVal, ...pVal]));
|
|
9118
|
-
} else if (isObject2(pVal) && isObject2(oVal)) {
|
|
9119
|
-
prev[key] = deepAssign(pVal, oVal);
|
|
9120
|
-
} else {
|
|
9121
|
-
prev[key] = oVal;
|
|
9122
|
-
}
|
|
9123
|
-
});
|
|
9124
|
-
return prev;
|
|
9125
|
-
}, {});
|
|
9126
|
-
}
|
|
9127
9110
|
var zhCN = {
|
|
9128
9111
|
pagination: {
|
|
9129
9112
|
totalItemText: "\u6240\u6709\u6761\u76EE",
|
|
@@ -9242,23 +9225,146 @@ var zhCN = {
|
|
|
9242
9225
|
placeholder: "\u8BF7\u9009\u62E9\u65F6\u95F4"
|
|
9243
9226
|
}
|
|
9244
9227
|
};
|
|
9228
|
+
var enUS = {
|
|
9229
|
+
pagination: {
|
|
9230
|
+
totalItemText: "Total",
|
|
9231
|
+
goToText: "Go to"
|
|
9232
|
+
},
|
|
9233
|
+
accordion: {
|
|
9234
|
+
loading: "loading",
|
|
9235
|
+
noData: "No Data"
|
|
9236
|
+
},
|
|
9237
|
+
autoCompleteDropdown: {
|
|
9238
|
+
latestInput: "Latest input"
|
|
9239
|
+
},
|
|
9240
|
+
cascaderList: {
|
|
9241
|
+
noData: "No data"
|
|
9242
|
+
},
|
|
9243
|
+
colorPicker: {
|
|
9244
|
+
foundationPanel: "Foundation panel",
|
|
9245
|
+
advancedPanel: "Advanced panel"
|
|
9246
|
+
},
|
|
9247
|
+
datePickerPro: {
|
|
9248
|
+
ok: "OK",
|
|
9249
|
+
placeholder: "select date",
|
|
9250
|
+
month1: "Jan",
|
|
9251
|
+
month2: "Feb",
|
|
9252
|
+
month3: "Mar",
|
|
9253
|
+
month4: "Apr",
|
|
9254
|
+
month5: "May",
|
|
9255
|
+
month6: "June",
|
|
9256
|
+
month7: "July",
|
|
9257
|
+
month8: "Aug",
|
|
9258
|
+
month9: "Sep",
|
|
9259
|
+
month10: "Oct",
|
|
9260
|
+
month11: "Nov",
|
|
9261
|
+
month12: "Dec",
|
|
9262
|
+
year: "\u5E74",
|
|
9263
|
+
startPlaceholder: "select start date",
|
|
9264
|
+
endPlaceholder: "select end date",
|
|
9265
|
+
getWeekDays() {
|
|
9266
|
+
return ["Sun", "Mon", "Tue", "Wed", "Thur", "Fri", "Sat"];
|
|
9267
|
+
},
|
|
9268
|
+
getTimeArr() {
|
|
9269
|
+
return ["Hr", "Min", "Sec"];
|
|
9270
|
+
},
|
|
9271
|
+
getYearMonthStr(year, month) {
|
|
9272
|
+
return `${year} - ${month}`;
|
|
9273
|
+
}
|
|
9274
|
+
},
|
|
9275
|
+
editableSelect: {
|
|
9276
|
+
noRelatedRecords: "No related records found",
|
|
9277
|
+
noData: "No data"
|
|
9278
|
+
},
|
|
9279
|
+
input: {
|
|
9280
|
+
placeholder: "Please enter"
|
|
9281
|
+
},
|
|
9282
|
+
splitterBar: {
|
|
9283
|
+
collapse: "Collapse",
|
|
9284
|
+
expand: "Expand"
|
|
9285
|
+
},
|
|
9286
|
+
stepsGuide: {
|
|
9287
|
+
previous: "Previous",
|
|
9288
|
+
continue: "Continue",
|
|
9289
|
+
ok: "OK"
|
|
9290
|
+
},
|
|
9291
|
+
table: {
|
|
9292
|
+
selectAll: "Select all",
|
|
9293
|
+
ok: "OK"
|
|
9294
|
+
},
|
|
9295
|
+
dataGrid: {
|
|
9296
|
+
selectAll: "Select all",
|
|
9297
|
+
ok: "OK"
|
|
9298
|
+
},
|
|
9299
|
+
timePopup: {
|
|
9300
|
+
ok: "OK"
|
|
9301
|
+
},
|
|
9302
|
+
transfer: {
|
|
9303
|
+
unit: "",
|
|
9304
|
+
panelUnit: "",
|
|
9305
|
+
headerUnit: "",
|
|
9306
|
+
noData: "No Data",
|
|
9307
|
+
placeholder: "Please enter keywords"
|
|
9308
|
+
},
|
|
9309
|
+
tree: {
|
|
9310
|
+
loading: "Loading",
|
|
9311
|
+
newNode: "New node",
|
|
9312
|
+
selectPlaceholder: "Please select"
|
|
9313
|
+
},
|
|
9314
|
+
upload: {
|
|
9315
|
+
placeholder: "select file",
|
|
9316
|
+
getExistSameNameFilesMsg(sameNames) {
|
|
9317
|
+
return `Duplicate files exist : "${sameNames}" `;
|
|
9318
|
+
},
|
|
9319
|
+
getAllFilesBeyondMaximalFileSizeMsg(maximalSize) {
|
|
9320
|
+
return `Maximum file size (MB): ${maximalSize}. The selected files exceed the maximum value`;
|
|
9321
|
+
},
|
|
9322
|
+
getBeyondMaximalFileSizeMsg(filename, maximalSize) {
|
|
9323
|
+
return `Maximum file size (MB): ${maximalSize}. Files whose size exceeds the maximum value: ${filename}`;
|
|
9324
|
+
},
|
|
9325
|
+
getNotAllowedFileTypeMsg(filename, scope) {
|
|
9326
|
+
return `Files with unsupported types: ${filename}. Supported file types: ${scope}`;
|
|
9327
|
+
}
|
|
9328
|
+
},
|
|
9329
|
+
search: {
|
|
9330
|
+
placeholder: "Enter a keyword"
|
|
9331
|
+
},
|
|
9332
|
+
select: {
|
|
9333
|
+
placeholder: "Please select",
|
|
9334
|
+
noDataText: "No data",
|
|
9335
|
+
noMatchText: "No related records found",
|
|
9336
|
+
loadingText: "Loading..."
|
|
9337
|
+
},
|
|
9338
|
+
tagInput: {
|
|
9339
|
+
maxTagsText: "Maximum number reached: "
|
|
9340
|
+
},
|
|
9341
|
+
timeSelect: {
|
|
9342
|
+
placeholder: "Please select time"
|
|
9343
|
+
}
|
|
9344
|
+
};
|
|
9245
9345
|
const lang = ref("zh-CN");
|
|
9346
|
+
const nowApp = ref();
|
|
9246
9347
|
let langMessages = reactive({
|
|
9247
|
-
[
|
|
9348
|
+
["zh-CN"]: zhCN,
|
|
9349
|
+
["en-US"]: enUS
|
|
9248
9350
|
});
|
|
9249
9351
|
const Locale = {
|
|
9250
|
-
messages() {
|
|
9251
|
-
return langMessages[
|
|
9352
|
+
messages(language = lang.value) {
|
|
9353
|
+
return langMessages[language];
|
|
9252
9354
|
},
|
|
9253
9355
|
lang() {
|
|
9254
9356
|
return lang.value;
|
|
9255
9357
|
},
|
|
9256
|
-
use(newLang
|
|
9358
|
+
use(newLang) {
|
|
9359
|
+
const app = nowApp.value;
|
|
9257
9360
|
lang.value = newLang;
|
|
9258
|
-
|
|
9361
|
+
app.config.globalProperties.langMessages = Locale.messages();
|
|
9259
9362
|
},
|
|
9260
|
-
add(newMessages2
|
|
9261
|
-
langMessages =
|
|
9363
|
+
add(newMessages2) {
|
|
9364
|
+
langMessages = {
|
|
9365
|
+
...langMessages,
|
|
9366
|
+
...newMessages2
|
|
9367
|
+
};
|
|
9262
9368
|
}
|
|
9263
9369
|
};
|
|
9264
9370
|
const camelize = (name) => name.substring(1).replace(/^\S/, (s) => s.toLocaleLowerCase());
|
|
@@ -9274,8 +9380,7 @@ function get(object4, path) {
|
|
|
9274
9380
|
function createI18nTranslate(name, app, newPrefix) {
|
|
9275
9381
|
const prefix = newPrefix || camelize(name) + ".";
|
|
9276
9382
|
return (path) => {
|
|
9277
|
-
|
|
9278
|
-
const messages2 = ((_a = app == null ? void 0 : app.appContext.config.globalProperties.langMessages) == null ? void 0 : _a.value) || Locale.messages();
|
|
9383
|
+
const messages2 = (app == null ? void 0 : app.appContext.config.globalProperties.langMessages) || Locale.messages();
|
|
9279
9384
|
const message = get(messages2, prefix + path) || get(messages2, path);
|
|
9280
9385
|
return message;
|
|
9281
9386
|
};
|