element-less 0.0.16 → 0.0.17
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/README.md +1 -1
- package/element-less.cjs +1 -1
- package/element-less.iife.js +1 -1
- package/element-less.js +5 -3
- package/element-less.umd.cjs +1 -1
- package/index-BewAjmly.cjs +1 -0
- package/{index-B43zUUjq.js → index-D07PIdUN.js} +273 -266
- package/{inner-B3Y0j0_U.cjs → inner-BUhZPJ_X.cjs} +1 -1
- package/{inner-Cx2v2EWb.js → inner-lhnFe9xh.js} +2 -2
- package/{innerItem-B3mxai1Z.cjs → innerItem-B9Av0SOZ.cjs} +1 -1
- package/{innerItem-D8wERBXE.js → innerItem-oKaIDdbg.js} +1 -1
- package/{mode-csharp-Cw9dNrY3.cjs → mode-csharp-CWdwxa2w.cjs} +1 -1
- package/{mode-csharp-Bk8ol4gy.js → mode-csharp-D69hy-4F.js} +1 -1
- package/{mode-css-C7Pw7RQw.cjs → mode-css-BrbGFGmD.cjs} +1 -1
- package/{mode-css-CAHCLueE.js → mode-css-Clk4V2UG.js} +1 -1
- package/{mode-javascript-41ZvAW4Y.js → mode-javascript-k3HuYmWX.js} +1 -1
- package/{mode-javascript-DrlEkmNz.cjs → mode-javascript-kwLVvhb4.cjs} +1 -1
- package/{mode-json-C-JgmwZo.cjs → mode-json-BFJl7fPg.cjs} +1 -1
- package/{mode-json-Ct8Eu5az.js → mode-json-Pf6FPvGo.js} +1 -1
- package/{mode-mysql-DRm9nZtp.cjs → mode-mysql-BdMdIota.cjs} +1 -1
- package/{mode-mysql-Dx_k_VzI.js → mode-mysql-Dqd8JFaz.js} +1 -1
- package/package.json +1 -2
- package/utils/axiosInstance.d.ts +2 -0
- package/utils/lessPrototype.d.ts +3 -0
- package/index-C-qiRZFZ.cjs +0 -1
|
@@ -5,11 +5,11 @@ import pkg from "file-saver";
|
|
|
5
5
|
import * as XLSX from "xlsx";
|
|
6
6
|
import { ElMessage, formItemProps as formItemProps$2, formProps as formProps$2, inputProps as inputProps$1, ElSpace, inputEmits, radioProps as radioProps$1, checkboxProps as checkboxProps$1, rowProps, useNamespace, rowContextKey, colProps, ElForm, ElButton, paginationProps, ElLoading, menuProps as menuProps$1, ElMenu, menuItemProps as menuItemProps$1, menuItemEmits, ElMenuItem, subMenuProps as subMenuProps$1, ElSubMenu, switchProps as switchProps$1, imageProps as imageProps$1, imageViewerProps as imageViewerProps$1, autocompleteProps as autocompleteProps$1, cascaderProps as cascaderProps$1, dialogProps as dialogProps$1, drawerProps as drawerProps$1, dropdownProps as dropdownProps$1, sliderProps as sliderProps$1, inputNumberProps as inputNumberProps$1, uploadProps as uploadProps$1, ElNotification, timePickerDefaultProps, datePickerProps as datePickerProps$1, tabsProps as tabsProps$1, colorPickerProps as colorPickerProps$1, segmentedProps as segmentedProps$1, ElContainer, ElMessageBox, useSizeProp as useSizeProp$1 } from "element-plus";
|
|
7
7
|
import { onUnmounted, onDeactivated, isRef, watch, onMounted, nextTick, onActivated, unref, ref, reactive, getCurrentInstance, defineComponent, computed, createVNode, onBeforeUnmount, provide, watchEffect, inject, mergeProps, Transition, withDirectives, vShow, Teleport, Fragment, createApp, openBlock, createElementBlock, createElementVNode, warn, useAttrs, useSlots, resolveComponent, renderSlot, withCtx, createBlock, normalizeProps, guardReactiveProps, createSlots, createCommentVNode, createTextVNode, toDisplayString, renderList, resolveDynamicComponent, normalizeClass, normalizeStyle, mergeModels, useModel as useModel$1, onErrorCaptured, h, resolveDirective, withModifiers, pushScopeId, popScopeId, defineAsyncComponent, Suspense, createStaticVNode, shallowRef } from "vue";
|
|
8
|
+
import { useClipboard, onClickOutside } from "@vueuse/core";
|
|
8
9
|
import axios from "axios";
|
|
9
10
|
import lodash from "lodash";
|
|
10
11
|
import draggable from "vuedraggable";
|
|
11
12
|
import Sortable from "sortablejs";
|
|
12
|
-
import { onClickOutside } from "@vueuse/core";
|
|
13
13
|
import { MdPreview, MdEditor } from "md-editor-v3";
|
|
14
14
|
import { defineStore } from "pinia";
|
|
15
15
|
import prism from "prismjs";
|
|
@@ -215,252 +215,6 @@ function exportJsonToExcel(data) {
|
|
|
215
215
|
type: "application/octet-stream"
|
|
216
216
|
}), a + "." + u);
|
|
217
217
|
}
|
|
218
|
-
function getDefaultExportFromCjs(x) {
|
|
219
|
-
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
220
|
-
}
|
|
221
|
-
/*! clipboard-copy. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
222
|
-
var clipboardCopy_1 = clipboardCopy;
|
|
223
|
-
function makeError() {
|
|
224
|
-
return new DOMException("The request is not allowed", "NotAllowedError");
|
|
225
|
-
}
|
|
226
|
-
async function copyClipboardApi(text) {
|
|
227
|
-
if (!navigator.clipboard) {
|
|
228
|
-
throw makeError();
|
|
229
|
-
}
|
|
230
|
-
return navigator.clipboard.writeText(text);
|
|
231
|
-
}
|
|
232
|
-
async function copyExecCommand(text) {
|
|
233
|
-
const span = document.createElement("span");
|
|
234
|
-
span.textContent = text;
|
|
235
|
-
span.style.whiteSpace = "pre";
|
|
236
|
-
span.style.webkitUserSelect = "auto";
|
|
237
|
-
span.style.userSelect = "all";
|
|
238
|
-
document.body.appendChild(span);
|
|
239
|
-
const selection = window.getSelection();
|
|
240
|
-
const range = window.document.createRange();
|
|
241
|
-
selection.removeAllRanges();
|
|
242
|
-
range.selectNode(span);
|
|
243
|
-
selection.addRange(range);
|
|
244
|
-
let success = false;
|
|
245
|
-
try {
|
|
246
|
-
success = window.document.execCommand("copy");
|
|
247
|
-
} finally {
|
|
248
|
-
selection.removeAllRanges();
|
|
249
|
-
window.document.body.removeChild(span);
|
|
250
|
-
}
|
|
251
|
-
if (!success) throw makeError();
|
|
252
|
-
}
|
|
253
|
-
async function clipboardCopy(text) {
|
|
254
|
-
try {
|
|
255
|
-
await copyClipboardApi(text);
|
|
256
|
-
} catch (err) {
|
|
257
|
-
try {
|
|
258
|
-
await copyExecCommand(text);
|
|
259
|
-
} catch (err2) {
|
|
260
|
-
throw err2 || err || makeError();
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
const useCopy = /* @__PURE__ */ getDefaultExportFromCjs(clipboardCopy_1);
|
|
265
|
-
var lib = { exports: {} };
|
|
266
|
-
var seed = 1;
|
|
267
|
-
function getNextValue() {
|
|
268
|
-
seed = (seed * 9301 + 49297) % 233280;
|
|
269
|
-
return seed / 233280;
|
|
270
|
-
}
|
|
271
|
-
function setSeed$1(_seed_) {
|
|
272
|
-
seed = _seed_;
|
|
273
|
-
}
|
|
274
|
-
var randomFromSeed$1 = {
|
|
275
|
-
nextValue: getNextValue,
|
|
276
|
-
seed: setSeed$1
|
|
277
|
-
};
|
|
278
|
-
var randomFromSeed = randomFromSeed$1;
|
|
279
|
-
var ORIGINAL = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-";
|
|
280
|
-
var alphabet$2;
|
|
281
|
-
var previousSeed;
|
|
282
|
-
var shuffled;
|
|
283
|
-
function reset() {
|
|
284
|
-
shuffled = false;
|
|
285
|
-
}
|
|
286
|
-
function setCharacters(_alphabet_) {
|
|
287
|
-
if (!_alphabet_) {
|
|
288
|
-
if (alphabet$2 !== ORIGINAL) {
|
|
289
|
-
alphabet$2 = ORIGINAL;
|
|
290
|
-
reset();
|
|
291
|
-
}
|
|
292
|
-
return;
|
|
293
|
-
}
|
|
294
|
-
if (_alphabet_ === alphabet$2) {
|
|
295
|
-
return;
|
|
296
|
-
}
|
|
297
|
-
if (_alphabet_.length !== ORIGINAL.length) {
|
|
298
|
-
throw new Error("Custom alphabet for shortid must be " + ORIGINAL.length + " unique characters. You submitted " + _alphabet_.length + " characters: " + _alphabet_);
|
|
299
|
-
}
|
|
300
|
-
var unique = _alphabet_.split("").filter(function(item, ind, arr) {
|
|
301
|
-
return ind !== arr.lastIndexOf(item);
|
|
302
|
-
});
|
|
303
|
-
if (unique.length) {
|
|
304
|
-
throw new Error("Custom alphabet for shortid must be " + ORIGINAL.length + " unique characters. These characters were not unique: " + unique.join(", "));
|
|
305
|
-
}
|
|
306
|
-
alphabet$2 = _alphabet_;
|
|
307
|
-
reset();
|
|
308
|
-
}
|
|
309
|
-
function characters(_alphabet_) {
|
|
310
|
-
setCharacters(_alphabet_);
|
|
311
|
-
return alphabet$2;
|
|
312
|
-
}
|
|
313
|
-
function setSeed(seed2) {
|
|
314
|
-
randomFromSeed.seed(seed2);
|
|
315
|
-
if (previousSeed !== seed2) {
|
|
316
|
-
reset();
|
|
317
|
-
previousSeed = seed2;
|
|
318
|
-
}
|
|
319
|
-
}
|
|
320
|
-
function shuffle() {
|
|
321
|
-
if (!alphabet$2) {
|
|
322
|
-
setCharacters(ORIGINAL);
|
|
323
|
-
}
|
|
324
|
-
var sourceArray = alphabet$2.split("");
|
|
325
|
-
var targetArray = [];
|
|
326
|
-
var r = randomFromSeed.nextValue();
|
|
327
|
-
var characterIndex;
|
|
328
|
-
while (sourceArray.length > 0) {
|
|
329
|
-
r = randomFromSeed.nextValue();
|
|
330
|
-
characterIndex = Math.floor(r * sourceArray.length);
|
|
331
|
-
targetArray.push(sourceArray.splice(characterIndex, 1)[0]);
|
|
332
|
-
}
|
|
333
|
-
return targetArray.join("");
|
|
334
|
-
}
|
|
335
|
-
function getShuffled() {
|
|
336
|
-
if (shuffled) {
|
|
337
|
-
return shuffled;
|
|
338
|
-
}
|
|
339
|
-
shuffled = shuffle();
|
|
340
|
-
return shuffled;
|
|
341
|
-
}
|
|
342
|
-
function lookup(index) {
|
|
343
|
-
var alphabetShuffled = getShuffled();
|
|
344
|
-
return alphabetShuffled[index];
|
|
345
|
-
}
|
|
346
|
-
function get$1() {
|
|
347
|
-
return alphabet$2 || ORIGINAL;
|
|
348
|
-
}
|
|
349
|
-
var alphabet_1 = {
|
|
350
|
-
get: get$1,
|
|
351
|
-
characters,
|
|
352
|
-
seed: setSeed,
|
|
353
|
-
lookup,
|
|
354
|
-
shuffled: getShuffled
|
|
355
|
-
};
|
|
356
|
-
var crypto = typeof window === "object" && (window.crypto || window.msCrypto);
|
|
357
|
-
var randomByte;
|
|
358
|
-
if (!crypto || !crypto.getRandomValues) {
|
|
359
|
-
randomByte = function(size) {
|
|
360
|
-
var bytes = [];
|
|
361
|
-
for (var i = 0; i < size; i++) {
|
|
362
|
-
bytes.push(Math.floor(Math.random() * 256));
|
|
363
|
-
}
|
|
364
|
-
return bytes;
|
|
365
|
-
};
|
|
366
|
-
} else {
|
|
367
|
-
randomByte = function(size) {
|
|
368
|
-
return crypto.getRandomValues(new Uint8Array(size));
|
|
369
|
-
};
|
|
370
|
-
}
|
|
371
|
-
var randomByteBrowser = randomByte;
|
|
372
|
-
var format_browser = function(random2, alphabet2, size) {
|
|
373
|
-
var mask = (2 << Math.log(alphabet2.length - 1) / Math.LN2) - 1;
|
|
374
|
-
var step = -~(1.6 * mask * size / alphabet2.length);
|
|
375
|
-
var id = "";
|
|
376
|
-
while (true) {
|
|
377
|
-
var bytes = random2(step);
|
|
378
|
-
var i = step;
|
|
379
|
-
while (i--) {
|
|
380
|
-
id += alphabet2[bytes[i] & mask] || "";
|
|
381
|
-
if (id.length === +size) return id;
|
|
382
|
-
}
|
|
383
|
-
}
|
|
384
|
-
};
|
|
385
|
-
var alphabet$1 = alphabet_1;
|
|
386
|
-
var random = randomByteBrowser;
|
|
387
|
-
var format = format_browser;
|
|
388
|
-
function generate$1(number) {
|
|
389
|
-
var loopCounter = 0;
|
|
390
|
-
var done;
|
|
391
|
-
var str = "";
|
|
392
|
-
while (!done) {
|
|
393
|
-
str = str + format(random, alphabet$1.get(), 1);
|
|
394
|
-
done = number < Math.pow(16, loopCounter + 1);
|
|
395
|
-
loopCounter++;
|
|
396
|
-
}
|
|
397
|
-
return str;
|
|
398
|
-
}
|
|
399
|
-
var generate_1 = generate$1;
|
|
400
|
-
var generate = generate_1;
|
|
401
|
-
var REDUCE_TIME = 1567752802062;
|
|
402
|
-
var version = 7;
|
|
403
|
-
var counter;
|
|
404
|
-
var previousSeconds;
|
|
405
|
-
function build(clusterWorkerId) {
|
|
406
|
-
var str = "";
|
|
407
|
-
var seconds = Math.floor((Date.now() - REDUCE_TIME) * 1e-3);
|
|
408
|
-
if (seconds === previousSeconds) {
|
|
409
|
-
counter++;
|
|
410
|
-
} else {
|
|
411
|
-
counter = 0;
|
|
412
|
-
previousSeconds = seconds;
|
|
413
|
-
}
|
|
414
|
-
str = str + generate(version);
|
|
415
|
-
str = str + generate(clusterWorkerId);
|
|
416
|
-
if (counter > 0) {
|
|
417
|
-
str = str + generate(counter);
|
|
418
|
-
}
|
|
419
|
-
str = str + generate(seconds);
|
|
420
|
-
return str;
|
|
421
|
-
}
|
|
422
|
-
var build_1 = build;
|
|
423
|
-
var alphabet = alphabet_1;
|
|
424
|
-
function isShortId(id) {
|
|
425
|
-
if (!id || typeof id !== "string" || id.length < 6) {
|
|
426
|
-
return false;
|
|
427
|
-
}
|
|
428
|
-
var nonAlphabetic = new RegExp("[^" + alphabet.get().replace(/[|\\{}()[\]^$+*?.-]/g, "\\$&") + "]");
|
|
429
|
-
return !nonAlphabetic.test(id);
|
|
430
|
-
}
|
|
431
|
-
var isValid = isShortId;
|
|
432
|
-
(function(module) {
|
|
433
|
-
var alphabet2 = alphabet_1;
|
|
434
|
-
var build2 = build_1;
|
|
435
|
-
var isValid$1 = isValid;
|
|
436
|
-
var clusterWorkerId = 0;
|
|
437
|
-
function seed2(seedValue) {
|
|
438
|
-
alphabet2.seed(seedValue);
|
|
439
|
-
return module.exports;
|
|
440
|
-
}
|
|
441
|
-
function worker(workerId) {
|
|
442
|
-
clusterWorkerId = workerId;
|
|
443
|
-
return module.exports;
|
|
444
|
-
}
|
|
445
|
-
function characters2(newCharacters) {
|
|
446
|
-
if (newCharacters !== void 0) {
|
|
447
|
-
alphabet2.characters(newCharacters);
|
|
448
|
-
}
|
|
449
|
-
return alphabet2.shuffled();
|
|
450
|
-
}
|
|
451
|
-
function generate2() {
|
|
452
|
-
return build2(clusterWorkerId);
|
|
453
|
-
}
|
|
454
|
-
module.exports = generate2;
|
|
455
|
-
module.exports.generate = generate2;
|
|
456
|
-
module.exports.seed = seed2;
|
|
457
|
-
module.exports.worker = worker;
|
|
458
|
-
module.exports.characters = characters2;
|
|
459
|
-
module.exports.isValid = isValid$1;
|
|
460
|
-
})(lib);
|
|
461
|
-
var libExports = lib.exports;
|
|
462
|
-
var shortid = libExports;
|
|
463
|
-
const shortid$1 = /* @__PURE__ */ getDefaultExportFromCjs(shortid);
|
|
464
218
|
function noop() {
|
|
465
219
|
}
|
|
466
220
|
const extend = Object.assign;
|
|
@@ -471,7 +225,7 @@ const isFunction$2 = (val) => typeof val === "function";
|
|
|
471
225
|
const isPromise = (val) => isObject$2(val) && isFunction$2(val.then) && isFunction$2(val.catch);
|
|
472
226
|
const isNumeric = (val) => typeof val === "number" || /^\d+(\.\d+)?$/.test(val);
|
|
473
227
|
const isIOS = () => inBrowser$1 ? /ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase()) : false;
|
|
474
|
-
function get(object, path) {
|
|
228
|
+
function get$1(object, path) {
|
|
475
229
|
const keys = path.split(".");
|
|
476
230
|
let result = object;
|
|
477
231
|
keys.forEach((key) => {
|
|
@@ -725,7 +479,7 @@ function createTranslate(name2) {
|
|
|
725
479
|
const prefix = camelize(name2) + ".";
|
|
726
480
|
return (path, ...args) => {
|
|
727
481
|
const messages2 = stdin_default$5.messages();
|
|
728
|
-
const message = get(messages2, prefix + path) || get(messages2, path);
|
|
482
|
+
const message = get$1(messages2, prefix + path) || get$1(messages2, path);
|
|
729
483
|
return isFunction$2(message) ? message(...args) : message;
|
|
730
484
|
};
|
|
731
485
|
}
|
|
@@ -1644,6 +1398,208 @@ const handler = {
|
|
|
1644
1398
|
}
|
|
1645
1399
|
};
|
|
1646
1400
|
const ProxyElsMessage = new Proxy(ElsMessage, handler);
|
|
1401
|
+
function getDefaultExportFromCjs(x) {
|
|
1402
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
1403
|
+
}
|
|
1404
|
+
var lib = { exports: {} };
|
|
1405
|
+
var seed = 1;
|
|
1406
|
+
function getNextValue() {
|
|
1407
|
+
seed = (seed * 9301 + 49297) % 233280;
|
|
1408
|
+
return seed / 233280;
|
|
1409
|
+
}
|
|
1410
|
+
function setSeed$1(_seed_) {
|
|
1411
|
+
seed = _seed_;
|
|
1412
|
+
}
|
|
1413
|
+
var randomFromSeed$1 = {
|
|
1414
|
+
nextValue: getNextValue,
|
|
1415
|
+
seed: setSeed$1
|
|
1416
|
+
};
|
|
1417
|
+
var randomFromSeed = randomFromSeed$1;
|
|
1418
|
+
var ORIGINAL = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-";
|
|
1419
|
+
var alphabet$2;
|
|
1420
|
+
var previousSeed;
|
|
1421
|
+
var shuffled;
|
|
1422
|
+
function reset() {
|
|
1423
|
+
shuffled = false;
|
|
1424
|
+
}
|
|
1425
|
+
function setCharacters(_alphabet_) {
|
|
1426
|
+
if (!_alphabet_) {
|
|
1427
|
+
if (alphabet$2 !== ORIGINAL) {
|
|
1428
|
+
alphabet$2 = ORIGINAL;
|
|
1429
|
+
reset();
|
|
1430
|
+
}
|
|
1431
|
+
return;
|
|
1432
|
+
}
|
|
1433
|
+
if (_alphabet_ === alphabet$2) {
|
|
1434
|
+
return;
|
|
1435
|
+
}
|
|
1436
|
+
if (_alphabet_.length !== ORIGINAL.length) {
|
|
1437
|
+
throw new Error("Custom alphabet for shortid must be " + ORIGINAL.length + " unique characters. You submitted " + _alphabet_.length + " characters: " + _alphabet_);
|
|
1438
|
+
}
|
|
1439
|
+
var unique = _alphabet_.split("").filter(function(item, ind, arr) {
|
|
1440
|
+
return ind !== arr.lastIndexOf(item);
|
|
1441
|
+
});
|
|
1442
|
+
if (unique.length) {
|
|
1443
|
+
throw new Error("Custom alphabet for shortid must be " + ORIGINAL.length + " unique characters. These characters were not unique: " + unique.join(", "));
|
|
1444
|
+
}
|
|
1445
|
+
alphabet$2 = _alphabet_;
|
|
1446
|
+
reset();
|
|
1447
|
+
}
|
|
1448
|
+
function characters(_alphabet_) {
|
|
1449
|
+
setCharacters(_alphabet_);
|
|
1450
|
+
return alphabet$2;
|
|
1451
|
+
}
|
|
1452
|
+
function setSeed(seed2) {
|
|
1453
|
+
randomFromSeed.seed(seed2);
|
|
1454
|
+
if (previousSeed !== seed2) {
|
|
1455
|
+
reset();
|
|
1456
|
+
previousSeed = seed2;
|
|
1457
|
+
}
|
|
1458
|
+
}
|
|
1459
|
+
function shuffle() {
|
|
1460
|
+
if (!alphabet$2) {
|
|
1461
|
+
setCharacters(ORIGINAL);
|
|
1462
|
+
}
|
|
1463
|
+
var sourceArray = alphabet$2.split("");
|
|
1464
|
+
var targetArray = [];
|
|
1465
|
+
var r = randomFromSeed.nextValue();
|
|
1466
|
+
var characterIndex;
|
|
1467
|
+
while (sourceArray.length > 0) {
|
|
1468
|
+
r = randomFromSeed.nextValue();
|
|
1469
|
+
characterIndex = Math.floor(r * sourceArray.length);
|
|
1470
|
+
targetArray.push(sourceArray.splice(characterIndex, 1)[0]);
|
|
1471
|
+
}
|
|
1472
|
+
return targetArray.join("");
|
|
1473
|
+
}
|
|
1474
|
+
function getShuffled() {
|
|
1475
|
+
if (shuffled) {
|
|
1476
|
+
return shuffled;
|
|
1477
|
+
}
|
|
1478
|
+
shuffled = shuffle();
|
|
1479
|
+
return shuffled;
|
|
1480
|
+
}
|
|
1481
|
+
function lookup(index) {
|
|
1482
|
+
var alphabetShuffled = getShuffled();
|
|
1483
|
+
return alphabetShuffled[index];
|
|
1484
|
+
}
|
|
1485
|
+
function get() {
|
|
1486
|
+
return alphabet$2 || ORIGINAL;
|
|
1487
|
+
}
|
|
1488
|
+
var alphabet_1 = {
|
|
1489
|
+
get,
|
|
1490
|
+
characters,
|
|
1491
|
+
seed: setSeed,
|
|
1492
|
+
lookup,
|
|
1493
|
+
shuffled: getShuffled
|
|
1494
|
+
};
|
|
1495
|
+
var crypto = typeof window === "object" && (window.crypto || window.msCrypto);
|
|
1496
|
+
var randomByte;
|
|
1497
|
+
if (!crypto || !crypto.getRandomValues) {
|
|
1498
|
+
randomByte = function(size) {
|
|
1499
|
+
var bytes = [];
|
|
1500
|
+
for (var i = 0; i < size; i++) {
|
|
1501
|
+
bytes.push(Math.floor(Math.random() * 256));
|
|
1502
|
+
}
|
|
1503
|
+
return bytes;
|
|
1504
|
+
};
|
|
1505
|
+
} else {
|
|
1506
|
+
randomByte = function(size) {
|
|
1507
|
+
return crypto.getRandomValues(new Uint8Array(size));
|
|
1508
|
+
};
|
|
1509
|
+
}
|
|
1510
|
+
var randomByteBrowser = randomByte;
|
|
1511
|
+
var format_browser = function(random2, alphabet2, size) {
|
|
1512
|
+
var mask = (2 << Math.log(alphabet2.length - 1) / Math.LN2) - 1;
|
|
1513
|
+
var step = -~(1.6 * mask * size / alphabet2.length);
|
|
1514
|
+
var id = "";
|
|
1515
|
+
while (true) {
|
|
1516
|
+
var bytes = random2(step);
|
|
1517
|
+
var i = step;
|
|
1518
|
+
while (i--) {
|
|
1519
|
+
id += alphabet2[bytes[i] & mask] || "";
|
|
1520
|
+
if (id.length === +size) return id;
|
|
1521
|
+
}
|
|
1522
|
+
}
|
|
1523
|
+
};
|
|
1524
|
+
var alphabet$1 = alphabet_1;
|
|
1525
|
+
var random = randomByteBrowser;
|
|
1526
|
+
var format = format_browser;
|
|
1527
|
+
function generate$1(number) {
|
|
1528
|
+
var loopCounter = 0;
|
|
1529
|
+
var done;
|
|
1530
|
+
var str = "";
|
|
1531
|
+
while (!done) {
|
|
1532
|
+
str = str + format(random, alphabet$1.get(), 1);
|
|
1533
|
+
done = number < Math.pow(16, loopCounter + 1);
|
|
1534
|
+
loopCounter++;
|
|
1535
|
+
}
|
|
1536
|
+
return str;
|
|
1537
|
+
}
|
|
1538
|
+
var generate_1 = generate$1;
|
|
1539
|
+
var generate = generate_1;
|
|
1540
|
+
var REDUCE_TIME = 1567752802062;
|
|
1541
|
+
var version = 7;
|
|
1542
|
+
var counter;
|
|
1543
|
+
var previousSeconds;
|
|
1544
|
+
function build(clusterWorkerId) {
|
|
1545
|
+
var str = "";
|
|
1546
|
+
var seconds = Math.floor((Date.now() - REDUCE_TIME) * 1e-3);
|
|
1547
|
+
if (seconds === previousSeconds) {
|
|
1548
|
+
counter++;
|
|
1549
|
+
} else {
|
|
1550
|
+
counter = 0;
|
|
1551
|
+
previousSeconds = seconds;
|
|
1552
|
+
}
|
|
1553
|
+
str = str + generate(version);
|
|
1554
|
+
str = str + generate(clusterWorkerId);
|
|
1555
|
+
if (counter > 0) {
|
|
1556
|
+
str = str + generate(counter);
|
|
1557
|
+
}
|
|
1558
|
+
str = str + generate(seconds);
|
|
1559
|
+
return str;
|
|
1560
|
+
}
|
|
1561
|
+
var build_1 = build;
|
|
1562
|
+
var alphabet = alphabet_1;
|
|
1563
|
+
function isShortId(id) {
|
|
1564
|
+
if (!id || typeof id !== "string" || id.length < 6) {
|
|
1565
|
+
return false;
|
|
1566
|
+
}
|
|
1567
|
+
var nonAlphabetic = new RegExp("[^" + alphabet.get().replace(/[|\\{}()[\]^$+*?.-]/g, "\\$&") + "]");
|
|
1568
|
+
return !nonAlphabetic.test(id);
|
|
1569
|
+
}
|
|
1570
|
+
var isValid = isShortId;
|
|
1571
|
+
(function(module) {
|
|
1572
|
+
var alphabet2 = alphabet_1;
|
|
1573
|
+
var build2 = build_1;
|
|
1574
|
+
var isValid$1 = isValid;
|
|
1575
|
+
var clusterWorkerId = 0;
|
|
1576
|
+
function seed2(seedValue) {
|
|
1577
|
+
alphabet2.seed(seedValue);
|
|
1578
|
+
return module.exports;
|
|
1579
|
+
}
|
|
1580
|
+
function worker(workerId) {
|
|
1581
|
+
clusterWorkerId = workerId;
|
|
1582
|
+
return module.exports;
|
|
1583
|
+
}
|
|
1584
|
+
function characters2(newCharacters) {
|
|
1585
|
+
if (newCharacters !== void 0) {
|
|
1586
|
+
alphabet2.characters(newCharacters);
|
|
1587
|
+
}
|
|
1588
|
+
return alphabet2.shuffled();
|
|
1589
|
+
}
|
|
1590
|
+
function generate2() {
|
|
1591
|
+
return build2(clusterWorkerId);
|
|
1592
|
+
}
|
|
1593
|
+
module.exports = generate2;
|
|
1594
|
+
module.exports.generate = generate2;
|
|
1595
|
+
module.exports.seed = seed2;
|
|
1596
|
+
module.exports.worker = worker;
|
|
1597
|
+
module.exports.characters = characters2;
|
|
1598
|
+
module.exports.isValid = isValid$1;
|
|
1599
|
+
})(lib);
|
|
1600
|
+
var libExports = lib.exports;
|
|
1601
|
+
var shortid = libExports;
|
|
1602
|
+
const shortid$1 = /* @__PURE__ */ getDefaultExportFromCjs(shortid);
|
|
1647
1603
|
const defaultConfig = {
|
|
1648
1604
|
api: {
|
|
1649
1605
|
code: "ResultCode",
|
|
@@ -1724,6 +1680,14 @@ function setJwtToken(token) {
|
|
|
1724
1680
|
const axiosInstance2 = getAxiosInstance();
|
|
1725
1681
|
axiosInstance2.defaults.headers.common["Authorization"] = `Bearer ${token}`;
|
|
1726
1682
|
}
|
|
1683
|
+
function setRequestInterceptors(config) {
|
|
1684
|
+
const axiosInstance2 = getAxiosInstance();
|
|
1685
|
+
axiosInstance2.interceptors.request.use(config);
|
|
1686
|
+
}
|
|
1687
|
+
function setResponseInterceptors(config) {
|
|
1688
|
+
const axiosInstance2 = getAxiosInstance();
|
|
1689
|
+
axiosInstance2.interceptors.response.use(config);
|
|
1690
|
+
}
|
|
1727
1691
|
const utils = {
|
|
1728
1692
|
jsonFormatter(obj) {
|
|
1729
1693
|
if (!obj) {
|
|
@@ -2318,7 +2282,7 @@ const utils = {
|
|
|
2318
2282
|
},
|
|
2319
2283
|
upload(url, formData) {
|
|
2320
2284
|
if (!formData) {
|
|
2321
|
-
|
|
2285
|
+
ProxyElsMessage.warning("请选择要上传的文件");
|
|
2322
2286
|
return;
|
|
2323
2287
|
}
|
|
2324
2288
|
const axiosInstance2 = getAxiosInstance();
|
|
@@ -2382,10 +2346,10 @@ const utils = {
|
|
|
2382
2346
|
}, {});
|
|
2383
2347
|
},
|
|
2384
2348
|
clip(text) {
|
|
2385
|
-
|
|
2386
|
-
|
|
2349
|
+
useClipboard().copy(text).then((res) => {
|
|
2350
|
+
ProxyElsMessage.success("复制成功");
|
|
2387
2351
|
}).catch((err) => {
|
|
2388
|
-
|
|
2352
|
+
ProxyElsMessage.error("复制失败");
|
|
2389
2353
|
});
|
|
2390
2354
|
},
|
|
2391
2355
|
isEmptyObject(obj) {
|
|
@@ -2426,6 +2390,12 @@ Number.prototype.appendPx = function() {
|
|
|
2426
2390
|
}
|
|
2427
2391
|
return "";
|
|
2428
2392
|
};
|
|
2393
|
+
Number.prototype.formatDate = function(format2) {
|
|
2394
|
+
if (!this) {
|
|
2395
|
+
return "";
|
|
2396
|
+
}
|
|
2397
|
+
return utils.formatDate(this, format2);
|
|
2398
|
+
};
|
|
2429
2399
|
String.prototype.setPowerPublicQuery = function() {
|
|
2430
2400
|
if (!this) {
|
|
2431
2401
|
return "";
|
|
@@ -2506,9 +2476,25 @@ String.prototype.cutWord = function(len) {
|
|
|
2506
2476
|
};
|
|
2507
2477
|
String.prototype.replacePowerUrl = function replacePowerUrl() {
|
|
2508
2478
|
try {
|
|
2479
|
+
let currUrl = this;
|
|
2509
2480
|
if (this && this.indexOf("{Power_CoteID}") > -1 && location.host) {
|
|
2510
|
-
|
|
2481
|
+
currUrl = this.replace("{Power_CoteID}", location.host.split(".")[0]);
|
|
2511
2482
|
}
|
|
2483
|
+
if (this && this.indexOf("{Power_Environment}") > -1 && location.host) {
|
|
2484
|
+
if (location.host.split(".").length == 5) {
|
|
2485
|
+
currUrl = currUrl.replace("{Power_Environment}", location.host.split(".")[2]);
|
|
2486
|
+
} else if (location.host.split(".").length == 4) {
|
|
2487
|
+
currUrl = currUrl.replace("{Power_Environment}", location.host.split(".")[1]);
|
|
2488
|
+
}
|
|
2489
|
+
}
|
|
2490
|
+
if (this && this.indexOf("{Power_CoteDeptID}") > -1) {
|
|
2491
|
+
let currCoteDeptID = utils.getUrlParms("Power_CoteDeptID");
|
|
2492
|
+
if (!currCoteDeptID) {
|
|
2493
|
+
currCoteDeptID = "0";
|
|
2494
|
+
}
|
|
2495
|
+
currUrl = currUrl.replace("{Power_CoteDeptID}", currCoteDeptID);
|
|
2496
|
+
}
|
|
2497
|
+
return currUrl.toString();
|
|
2512
2498
|
} catch (err) {
|
|
2513
2499
|
console.log(err);
|
|
2514
2500
|
}
|
|
@@ -2543,6 +2529,25 @@ String.prototype.trimComma = function trimComma() {
|
|
|
2543
2529
|
String.prototype.md5 = function md5() {
|
|
2544
2530
|
return utils.md5(this.toString());
|
|
2545
2531
|
};
|
|
2532
|
+
String.prototype.formatDate = function(format2) {
|
|
2533
|
+
if (!this) {
|
|
2534
|
+
return "";
|
|
2535
|
+
}
|
|
2536
|
+
return utils.formatDate(this.toString(), format2);
|
|
2537
|
+
};
|
|
2538
|
+
String.prototype.getUrlParms = function(paramName) {
|
|
2539
|
+
let vars = this.split("&");
|
|
2540
|
+
if (this.indexOf("?") > -1) {
|
|
2541
|
+
vars = this.split("?")[1].split("&");
|
|
2542
|
+
}
|
|
2543
|
+
for (var i = 0; i < vars.length; i++) {
|
|
2544
|
+
var pair = vars[i].split("=");
|
|
2545
|
+
if (pair[0] === paramName) {
|
|
2546
|
+
return pair[1];
|
|
2547
|
+
}
|
|
2548
|
+
}
|
|
2549
|
+
return "";
|
|
2550
|
+
};
|
|
2546
2551
|
var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
|
|
2547
2552
|
var freeSelf = typeof self == "object" && self && self.Object === Object && self;
|
|
2548
2553
|
var root = freeGlobal || freeSelf || Function("return this")();
|
|
@@ -38678,7 +38683,7 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
|
38678
38683
|
emits: /* @__PURE__ */ mergeModels(["removeItem"], ["update:children"]),
|
|
38679
38684
|
setup(__props, { emit: __emit }) {
|
|
38680
38685
|
const DynamicDesignerInnerItem = defineAsyncComponent(() => {
|
|
38681
|
-
return import("./innerItem-
|
|
38686
|
+
return import("./innerItem-oKaIDdbg.js");
|
|
38682
38687
|
});
|
|
38683
38688
|
const { getValue: getValue2 } = useProps();
|
|
38684
38689
|
const tagID = getValue2("tagID");
|
|
@@ -39521,10 +39526,10 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
39521
39526
|
emits: ["update:modelValue"],
|
|
39522
39527
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
39523
39528
|
const DynamicRenderInner = defineAsyncComponent(() => {
|
|
39524
|
-
return import("./inner-
|
|
39529
|
+
return import("./inner-lhnFe9xh.js").then((n) => n.i);
|
|
39525
39530
|
});
|
|
39526
39531
|
const DynamicRenderForm = defineAsyncComponent(() => {
|
|
39527
|
-
return import("./inner-
|
|
39532
|
+
return import("./inner-lhnFe9xh.js").then((n) => n.f);
|
|
39528
39533
|
});
|
|
39529
39534
|
const props = __props;
|
|
39530
39535
|
const { getValue: getValue2, setValue, formNodeProps } = useProps(props);
|
|
@@ -39754,10 +39759,10 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
39754
39759
|
emits: ["update:modelValue"],
|
|
39755
39760
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
39756
39761
|
const DynamicRenderInnerAsync = defineAsyncComponent(() => {
|
|
39757
|
-
return import("./inner-
|
|
39762
|
+
return import("./inner-lhnFe9xh.js").then((n) => n.i);
|
|
39758
39763
|
});
|
|
39759
39764
|
const DynamicRenderFormAsync = defineAsyncComponent(() => {
|
|
39760
|
-
return import("./inner-
|
|
39765
|
+
return import("./inner-lhnFe9xh.js").then((n) => n.f);
|
|
39761
39766
|
});
|
|
39762
39767
|
const props = __props;
|
|
39763
39768
|
const { getValue: getValue2, setValue, formNodeProps } = useProps(props);
|
|
@@ -44532,31 +44537,31 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
44532
44537
|
}
|
|
44533
44538
|
onMounted(() => {
|
|
44534
44539
|
if (props.language === "json") {
|
|
44535
|
-
const currModule = import("./mode-json-
|
|
44540
|
+
const currModule = import("./mode-json-Pf6FPvGo.js").then((n) => n.m);
|
|
44536
44541
|
currModule.then((res) => {
|
|
44537
44542
|
ace.config.setModuleUrl("ace/mode/json", res);
|
|
44538
44543
|
init();
|
|
44539
44544
|
});
|
|
44540
44545
|
} else if (props.language === "javascript") {
|
|
44541
|
-
const currModule = import("./mode-javascript-
|
|
44546
|
+
const currModule = import("./mode-javascript-k3HuYmWX.js").then((n) => n.m);
|
|
44542
44547
|
currModule.then((res) => {
|
|
44543
44548
|
ace.config.setModuleUrl("ace/mode/javascript", res);
|
|
44544
44549
|
init();
|
|
44545
44550
|
});
|
|
44546
44551
|
} else if (props.language === "csharp") {
|
|
44547
|
-
const currModule = import("./mode-csharp-
|
|
44552
|
+
const currModule = import("./mode-csharp-D69hy-4F.js").then((n) => n.m);
|
|
44548
44553
|
currModule.then((res) => {
|
|
44549
44554
|
ace.config.setModuleUrl("ace/mode/csharp", res);
|
|
44550
44555
|
init();
|
|
44551
44556
|
});
|
|
44552
44557
|
} else if (props.language === "mysql") {
|
|
44553
|
-
const currModule = import("./mode-mysql-
|
|
44558
|
+
const currModule = import("./mode-mysql-Dqd8JFaz.js").then((n) => n.m);
|
|
44554
44559
|
currModule.then((res) => {
|
|
44555
44560
|
ace.config.setModuleUrl("ace/mode/mysql", res);
|
|
44556
44561
|
init();
|
|
44557
44562
|
});
|
|
44558
44563
|
} else if (props.language === "css") {
|
|
44559
|
-
const currModule = import("./mode-css-
|
|
44564
|
+
const currModule = import("./mode-css-Clk4V2UG.js").then((n) => n.m);
|
|
44560
44565
|
currModule.then((res) => {
|
|
44561
44566
|
ace.config.setModuleUrl("ace/mode/css", res);
|
|
44562
44567
|
init();
|
|
@@ -48111,8 +48116,10 @@ export {
|
|
|
48111
48116
|
createAxiosInstance as bt,
|
|
48112
48117
|
getAxiosInstance as bu,
|
|
48113
48118
|
setJwtToken as bv,
|
|
48114
|
-
|
|
48115
|
-
|
|
48119
|
+
setRequestInterceptors as bw,
|
|
48120
|
+
setResponseInterceptors as bx,
|
|
48121
|
+
loadAsyncComponent as by,
|
|
48122
|
+
loadSkeletonAsyncComponent as bz,
|
|
48116
48123
|
useComponentRef as c,
|
|
48117
48124
|
DynamicDesignerInner as d,
|
|
48118
48125
|
property_array as e,
|