el-plus 0.0.56 → 0.0.58
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/CHANGELOG.md +12 -0
- package/dist/index.full.js +22 -254
- package/dist/index.full.min.js +1 -1
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +1 -1
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +22 -254
- package/es/components/buttons/index.d.ts +6 -6
- package/es/components/buttons/src/buttons-vue.d.ts +2 -2
- package/es/components/date-picker-range/index.d.ts +3 -3
- package/es/components/date-picker-range/src/date-picker-range.vue.d.ts +1 -1
- package/es/components/input/index.d.ts +3 -3
- package/es/components/input/src/input.vue.d.ts +1 -1
- package/es/components/search-list-page/index.d.ts +30 -30
- package/es/components/search-list-page/src/search-list-page.vue.d.ts +10 -10
- package/es/components/search-list-page/src/use-search-list-page.d.ts +10 -10
- package/es/components/table/index.d.ts +6 -6
- package/es/components/table/src/table.vue.d.ts +2 -2
- package/es/components/table/src/use-table.d.ts +2 -2
- package/es/hooks/use-locale.mjs +20 -50
- package/es/hooks/use-locale.mjs.map +1 -1
- package/es/package.json.mjs +1 -1
- package/lib/components/buttons/index.d.ts +6 -6
- package/lib/components/buttons/src/buttons-vue.d.ts +2 -2
- package/lib/components/date-picker-range/index.d.ts +3 -3
- package/lib/components/date-picker-range/src/date-picker-range.vue.d.ts +1 -1
- package/lib/components/input/index.d.ts +3 -3
- package/lib/components/input/src/input.vue.d.ts +1 -1
- package/lib/components/search-list-page/index.d.ts +30 -30
- package/lib/components/search-list-page/src/search-list-page.vue.d.ts +10 -10
- package/lib/components/search-list-page/src/use-search-list-page.d.ts +10 -10
- package/lib/components/table/index.d.ts +6 -6
- package/lib/components/table/src/table.vue.d.ts +2 -2
- package/lib/components/table/src/use-table.d.ts +2 -2
- package/lib/hooks/use-locale.js +20 -50
- package/lib/hooks/use-locale.js.map +1 -1
- package/lib/package.json.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.full.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! ElPlus v0.0.
|
|
1
|
+
/*! ElPlus v0.0.58 */
|
|
2
2
|
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue'), require('element-plus'), require('@vue/shared'), require('axios'), require('js-cookie'), require('defu'), require('qs'), require('element-plus/es/components/table/src/table/defaults'), require('@element-plus/icons-vue'), require('mitt'), require('lodash-unified'), require('@vueuse/core'), require('vue-router'), require('js-base64'), require('vue2'), require('vue-router3')) :
|
|
@@ -204,107 +204,10 @@
|
|
|
204
204
|
}
|
|
205
205
|
};
|
|
206
206
|
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
cancel: "\u53D6\u6D88",
|
|
212
|
-
confirm: "\u786E\u5B9A",
|
|
213
|
-
title: "\u63D0\u793A"
|
|
214
|
-
},
|
|
215
|
-
buttons: {
|
|
216
|
-
cancel: "\u53D6\u6D88",
|
|
217
|
-
confirm: "\u786E\u5B9A",
|
|
218
|
-
secondConfirm: "\u786E\u5B9A\u8981",
|
|
219
|
-
secondConfirmEnd: "\u5417",
|
|
220
|
-
prompt: "\u63D0\u793A"
|
|
221
|
-
},
|
|
222
|
-
input: {
|
|
223
|
-
placeholder: "\u8BF7\u8F93\u5165"
|
|
224
|
-
},
|
|
225
|
-
datePickerRange: {
|
|
226
|
-
lastWeek: "\u6700\u8FD1\u4E00\u5468",
|
|
227
|
-
lastMonth: "\u6700\u8FD1\u4E00\u4E2A\u6708",
|
|
228
|
-
lastThreeMonth: "\u6700\u8FD1\u4E09\u4E2A\u6708",
|
|
229
|
-
startTime: "\u5F00\u59CB\u65F6\u95F4",
|
|
230
|
-
endTime: "\u7ED3\u675F\u65F6\u95F4"
|
|
231
|
-
},
|
|
232
|
-
formItem: {
|
|
233
|
-
required: "\u4E0D\u80FD\u4E3A\u7A7A"
|
|
234
|
-
},
|
|
235
|
-
form: {
|
|
236
|
-
more: "\u66F4\u591A",
|
|
237
|
-
collapse: "\u6536\u8D77"
|
|
238
|
-
},
|
|
239
|
-
header: {
|
|
240
|
-
save: "\u4FDD\u5B58",
|
|
241
|
-
edit: "\u4FEE\u6539",
|
|
242
|
-
cancel: "\u53D6\u6D88",
|
|
243
|
-
refresh: "\u5237\u65B0",
|
|
244
|
-
approvalLog: "\u5BA1\u6279\u65E5\u5FD7"
|
|
245
|
-
},
|
|
246
|
-
searchListPage: {
|
|
247
|
-
add: "\u65B0\u589E",
|
|
248
|
-
templateDownload: "\u6A21\u7248\u4E0B\u8F7D",
|
|
249
|
-
import: "\u5BFC\u5165",
|
|
250
|
-
export: "\u5BFC\u51FA",
|
|
251
|
-
search: "\u641C\u7D22",
|
|
252
|
-
clear: "\u6E05\u7A7A"
|
|
253
|
-
},
|
|
254
|
-
table: {
|
|
255
|
-
select: "\u9009\u62E9",
|
|
256
|
-
serialNumber: "\u5E8F\u53F7",
|
|
257
|
-
operation: "\u64CD\u4F5C"
|
|
258
|
-
},
|
|
259
|
-
title: {
|
|
260
|
-
collapse: "\u6298\u53E0",
|
|
261
|
-
expand: "\u5C55\u5F00"
|
|
262
|
-
},
|
|
263
|
-
chooseDialog: {
|
|
264
|
-
selected: "\u5DF2\u9009\u4E2D",
|
|
265
|
-
unit: "\u4E2A"
|
|
266
|
-
},
|
|
267
|
-
customColumn: {
|
|
268
|
-
columnSettings: "\u81EA\u5B9A\u4E49\u5217\u8BBE\u7F6E",
|
|
269
|
-
defineColumn: "\u81EA\u5B9A\u4E49\u5217",
|
|
270
|
-
hiddenField: "\u9690\u85CF\u5B57\u6BB5",
|
|
271
|
-
visibleField: "\u663E\u793A\u5B57\u6BB5",
|
|
272
|
-
moveLeft: "\u5DE6\u79FB",
|
|
273
|
-
moveRight: "\u53F3\u79FB",
|
|
274
|
-
moveUp: "\u4E0A\u79FB",
|
|
275
|
-
moveDown: "\u4E0B\u79FB"
|
|
276
|
-
},
|
|
277
|
-
bpm: {
|
|
278
|
-
approvalLog: "\u5BA1\u6279\u65E5\u5FD7"
|
|
279
|
-
},
|
|
280
|
-
loading: {
|
|
281
|
-
loading: "\u6B63\u5728\u52A0\u8F7D\u4E2D..."
|
|
282
|
-
},
|
|
283
|
-
http: {
|
|
284
|
-
networkError: "\u7F51\u7EDC\u5F02\u5E38\uFF0C\u8BF7\u68C0\u67E5\u60A8\u7684\u7F51\u7EDC\u8FDE\u63A5\u540E\u91CD\u8BD5",
|
|
285
|
-
timeout: "\u8BF7\u6C42\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5",
|
|
286
|
-
requestError: "\u8BF7\u6C42\u9519\u8BEF\u3002\u8BF7\u68C0\u67E5\u60A8\u7684\u8F93\u5165\u5E76\u91CD\u8BD5",
|
|
287
|
-
authExpired: "\u767B\u5F55\u8BA4\u8BC1\u8FC7\u671F\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55\u540E\u7EE7\u7EED",
|
|
288
|
-
forbidden: "\u7981\u6B62\u8BBF\u95EE, \u60A8\u6CA1\u6709\u6743\u9650\u8BBF\u95EE\u6B64\u8D44\u6E90",
|
|
289
|
-
notFound: "\u672A\u627E\u5230, \u8BF7\u6C42\u7684\u8D44\u6E90\u4E0D\u5B58\u5728",
|
|
290
|
-
//
|
|
291
|
-
serverError: "\u5185\u90E8\u670D\u52A1\u5668\u9519\u8BEF\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5"
|
|
292
|
-
},
|
|
293
|
-
attachment: {
|
|
294
|
-
addAttachment: "\u6DFB\u52A0\u9644\u4EF6",
|
|
295
|
-
manageAttachment: "\u9644\u4EF6\u7BA1\u7406",
|
|
296
|
-
operation: "\u64CD\u4F5C",
|
|
297
|
-
download: "\u4E0B\u8F7D",
|
|
298
|
-
delete: "\u5220\u9664",
|
|
299
|
-
attachmentType: "\u9644\u4EF6\u7C7B\u578B",
|
|
300
|
-
fileName: "\u6587\u4EF6\u540D\u79F0",
|
|
301
|
-
creator: "\u521B\u5EFA\u4EBA",
|
|
302
|
-
createTime: "\u521B\u5EFA\u65F6\u95F4",
|
|
303
|
-
description: "\u8BF4\u660E"
|
|
304
|
-
}
|
|
305
|
-
}
|
|
306
|
-
};
|
|
307
|
-
|
|
207
|
+
const elLocaleModules = undefined(
|
|
208
|
+
"/node_modules/element-plus/es/locale/lang/*.mjs"
|
|
209
|
+
);
|
|
210
|
+
const localeModules = undefined("../locale/lang/*.{mjs,ts}");
|
|
308
211
|
const TRANSLATER_KEY = /* @__PURE__ */ Symbol("TRANSLATER_KEY");
|
|
309
212
|
let cachedTranslater = null;
|
|
310
213
|
const useLocale = () => {
|
|
@@ -332,26 +235,15 @@
|
|
|
332
235
|
const provideFn = inSetup2 ? vue.provide : app.provide;
|
|
333
236
|
return new Promise(async (resolve) => {
|
|
334
237
|
try {
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
);
|
|
342
|
-
locale = lang;
|
|
343
|
-
} catch (e) {
|
|
344
|
-
try {
|
|
345
|
-
const { default: en } = await Promise.resolve().then(function () { return en$1; });
|
|
346
|
-
locale = en;
|
|
347
|
-
} catch (enError) {
|
|
348
|
-
console.error(
|
|
349
|
-
"Failed to load both specified locale and English locale, using Chinese locale as fallback:",
|
|
350
|
-
enError
|
|
351
|
-
);
|
|
352
|
-
}
|
|
238
|
+
const basePath = "../locale/lang/";
|
|
239
|
+
const ext = process.env.NODE_ENV === "production" ? ".mjs" : ".ts";
|
|
240
|
+
const modulePath = basePath + localeLang + ext;
|
|
241
|
+
let loader = localeModules[modulePath];
|
|
242
|
+
if (!loader) {
|
|
243
|
+
loader = localeModules[basePath + "en" + ext];
|
|
353
244
|
}
|
|
354
|
-
const
|
|
245
|
+
const module = await loader();
|
|
246
|
+
const { t } = elementPlus.useLocale(vue.ref(module.default));
|
|
355
247
|
provideFn(TRANSLATER_KEY, t);
|
|
356
248
|
resolve();
|
|
357
249
|
addLangClass(window.hxlang);
|
|
@@ -361,34 +253,15 @@
|
|
|
361
253
|
});
|
|
362
254
|
};
|
|
363
255
|
const loadElLocale = async () => {
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
elLocalePath
|
|
371
|
-
);
|
|
372
|
-
elLocale = lang;
|
|
373
|
-
} catch (e) {
|
|
374
|
-
try {
|
|
375
|
-
const { default: en } = await import(
|
|
376
|
-
/* @vite-ignore */
|
|
377
|
-
'element-plus/es/locale/lang/en'
|
|
378
|
-
);
|
|
379
|
-
elLocale = en;
|
|
380
|
-
} catch (enError) {
|
|
381
|
-
console.error(
|
|
382
|
-
"Failed to load both specified locale and English locale, using Chinese locale as fallback:",
|
|
383
|
-
enError
|
|
384
|
-
);
|
|
385
|
-
}
|
|
386
|
-
}
|
|
387
|
-
return elLocale;
|
|
388
|
-
} catch (error) {
|
|
389
|
-
console.error(error);
|
|
390
|
-
return zhCn;
|
|
256
|
+
const basePath = "/node_modules/element-plus/es/locale/lang/";
|
|
257
|
+
const ext = ".mjs";
|
|
258
|
+
const modulePath = basePath + localeLang + ext;
|
|
259
|
+
let loader = elLocaleModules[modulePath];
|
|
260
|
+
if (!loader) {
|
|
261
|
+
loader = elLocaleModules[basePath + "en" + ext];
|
|
391
262
|
}
|
|
263
|
+
const module = await loader();
|
|
264
|
+
return module.default;
|
|
392
265
|
};
|
|
393
266
|
return {
|
|
394
267
|
loadLocale,
|
|
@@ -4218,7 +4091,7 @@
|
|
|
4218
4091
|
EpUniVue
|
|
4219
4092
|
];
|
|
4220
4093
|
|
|
4221
|
-
var version = "0.0.
|
|
4094
|
+
var version = "0.0.58";
|
|
4222
4095
|
|
|
4223
4096
|
var globalProperties = {
|
|
4224
4097
|
install(app) {
|
|
@@ -4359,111 +4232,6 @@
|
|
|
4359
4232
|
version
|
|
4360
4233
|
};
|
|
4361
4234
|
|
|
4362
|
-
var en = {
|
|
4363
|
-
name: "en",
|
|
4364
|
-
ep: {
|
|
4365
|
-
dialog: {
|
|
4366
|
-
cancel: "Cancel",
|
|
4367
|
-
confirm: "OK",
|
|
4368
|
-
title: "Prompt"
|
|
4369
|
-
},
|
|
4370
|
-
buttons: {
|
|
4371
|
-
cancel: "Cancel",
|
|
4372
|
-
confirm: "Confirm",
|
|
4373
|
-
secondConfirm: "Are you sure to",
|
|
4374
|
-
secondConfirmEnd: "",
|
|
4375
|
-
prompt: "prompt"
|
|
4376
|
-
},
|
|
4377
|
-
input: {
|
|
4378
|
-
placeholder: "Please enter"
|
|
4379
|
-
},
|
|
4380
|
-
datePickerRange: {
|
|
4381
|
-
lastWeek: "Last week",
|
|
4382
|
-
lastMonth: "Last month",
|
|
4383
|
-
lastThreeMonth: "Last three months",
|
|
4384
|
-
startTime: "Start time",
|
|
4385
|
-
endTime: "End time"
|
|
4386
|
-
},
|
|
4387
|
-
formItem: {
|
|
4388
|
-
required: "Cannot be empty"
|
|
4389
|
-
},
|
|
4390
|
-
form: {
|
|
4391
|
-
more: "More",
|
|
4392
|
-
collapse: "Collapse"
|
|
4393
|
-
},
|
|
4394
|
-
header: {
|
|
4395
|
-
save: "Save",
|
|
4396
|
-
edit: "Edit",
|
|
4397
|
-
cancel: "Cancel",
|
|
4398
|
-
refresh: "Refresh",
|
|
4399
|
-
approvalLog: "Approval log"
|
|
4400
|
-
},
|
|
4401
|
-
searchListPage: {
|
|
4402
|
-
add: "Add",
|
|
4403
|
-
templateDownload: "Template download",
|
|
4404
|
-
import: "Import",
|
|
4405
|
-
export: "Export",
|
|
4406
|
-
search: "Search",
|
|
4407
|
-
clear: "Clear"
|
|
4408
|
-
},
|
|
4409
|
-
table: {
|
|
4410
|
-
select: "Select",
|
|
4411
|
-
serialNumber: "No.",
|
|
4412
|
-
operation: "Operation"
|
|
4413
|
-
},
|
|
4414
|
-
title: {
|
|
4415
|
-
collapse: "Collapse",
|
|
4416
|
-
expand: "Expand"
|
|
4417
|
-
},
|
|
4418
|
-
chooseDialog: {
|
|
4419
|
-
selected: "Selected",
|
|
4420
|
-
unit: ""
|
|
4421
|
-
},
|
|
4422
|
-
customColumn: {
|
|
4423
|
-
columnSettings: "Column settings",
|
|
4424
|
-
defineColumn: "Define column",
|
|
4425
|
-
hiddenField: "Hidden field",
|
|
4426
|
-
visibleField: "Display field",
|
|
4427
|
-
moveLeft: "Move left",
|
|
4428
|
-
moveRight: "Move right",
|
|
4429
|
-
moveUp: "Move up",
|
|
4430
|
-
moveDown: "Move down"
|
|
4431
|
-
},
|
|
4432
|
-
bpm: {
|
|
4433
|
-
approvalLog: "Approval log"
|
|
4434
|
-
},
|
|
4435
|
-
loading: {
|
|
4436
|
-
loading: "Loading..."
|
|
4437
|
-
},
|
|
4438
|
-
http: {
|
|
4439
|
-
networkError: "Network error, please check your connection and try again",
|
|
4440
|
-
timeout: "Request timeout, please try again later",
|
|
4441
|
-
requestError: "Request error. Please check your input and try again",
|
|
4442
|
-
authExpired: "Login authentication expired, please log in again",
|
|
4443
|
-
forbidden: "Access forbidden, you do not have permission to access this resource",
|
|
4444
|
-
notFound: "Not found, the requested resource does not exist",
|
|
4445
|
-
serverError: "Internal server error, please try again later"
|
|
4446
|
-
},
|
|
4447
|
-
attachment: {
|
|
4448
|
-
addAttachment: "Add attachment",
|
|
4449
|
-
manageAttachment: "Attachment management",
|
|
4450
|
-
operation: "Operation",
|
|
4451
|
-
download: "Download",
|
|
4452
|
-
delete: "Delete",
|
|
4453
|
-
attachmentType: "Attachment type",
|
|
4454
|
-
fileName: "File name",
|
|
4455
|
-
creator: "Creator",
|
|
4456
|
-
createTime: "Create time",
|
|
4457
|
-
description: "Description"
|
|
4458
|
-
}
|
|
4459
|
-
}
|
|
4460
|
-
};
|
|
4461
|
-
|
|
4462
|
-
var en$1 = /*#__PURE__*/Object.freeze({
|
|
4463
|
-
__proto__: null,
|
|
4464
|
-
default: en
|
|
4465
|
-
});
|
|
4466
|
-
|
|
4467
4235
|
exports.EpAttachment = EpAttachment;
|
|
4468
4236
|
exports.EpButtons = EpButtons;
|
|
4469
4237
|
exports.EpCustomColumn = EpCustomColumn;
|