hflvloader 0.0.8 → 0.0.9
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/dist/hflvloader.es.js +420 -414
- package/package.json +1 -1
package/dist/hflvloader.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(){"use strict";try{if(typeof document<"u"){var
|
|
2
|
-
import { withDirectives as Oe, createElementBlock as z, openBlock as A, createBlock as J, resolveDynamicComponent as
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('@charset "UTF-8";.component[data-v-56b0e3e4]{position:absolute}.canvas-container[data-v-c471d52f]{width:100%;height:100%;display:flex;align-items:center;justify-content:center;margin:auto;overflow:hidden}.canvas-container .canvas[data-v-c471d52f]{position:relative;margin:auto}.ve-comp-svg-icon{width:100%;height:100%;position:relative;fill:currentColor;vertical-align:-2px}.full-screen-dialog-wrapper[data-v-7c104f83] .no-header-dialog{padding:0!important}.full-screen-dialog-wrapper[data-v-7c104f83] .no-header-dialog .el-dialog__header{display:none!important;padding-bottom:0!important}.custom-omit-input[data-v-956a5a3a]{width:100%}.custom-omit-input[data-v-956a5a3a] .el-input-group__append{padding:0}.group>div[data-v-20de9881]{position:relative;width:100%;height:100%}.group>div .component[data-v-20de9881]{position:absolute}.panel-area[data-v-55cea49e]{display:flex;flex-direction:column;height:100%;min-height:0;overflow:hidden}.panel-area .panel-condition[data-v-55cea49e]{height:50px;flex-shrink:0;min-height:50px}.panel-area .panel-table[data-v-55cea49e]{flex:1;overflow:hidden;min-height:100px}')),document.head.appendChild(e)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}})();
|
|
2
|
+
import { withDirectives as Oe, createElementBlock as z, openBlock as A, createBlock as J, resolveDynamicComponent as be, normalizeStyle as we, vShow as et, computed as O, reactive as de, onMounted as xe, watch as Ae, ref as D, createElementVNode as oe, Fragment as je, renderList as Fe, provide as te, defineComponent as Lt, normalizeClass as tt, resolveComponent as B, withCtx as j, createVNode as R, mergeProps as qt, createSlots as Kt, createCommentVNode as qe, toDisplayString as zt, createTextVNode as F, renderSlot as Ut, inject as ue, onBeforeMount as Ke, onBeforeUnmount as ze, onUnmounted as Ue, resolveDirective as Wt, withKeys as Jt } from "vue";
|
|
3
3
|
import Gt from "json5";
|
|
4
4
|
import Qt from "js-md5";
|
|
5
5
|
import { defineStore as Yt } from "pinia";
|
|
@@ -8,7 +8,7 @@ import { ElMessage as Xt, ElNotification as Zt, ElLoading as $t, ElMessageBox as
|
|
|
8
8
|
import { useRouter as We, useRoute as Je } from "vue-router";
|
|
9
9
|
(function() {
|
|
10
10
|
const t = () => {
|
|
11
|
-
console.log("%c 可视化加载器 hflvloader", "color: #3498db; font-size: 16px; font-weight: bold;"), console.log("%c版本号: 0.0.
|
|
11
|
+
console.log("%c 可视化加载器 hflvloader", "color: #3498db; font-size: 16px; font-weight: bold;"), console.log("%c版本号: 0.0.9", "color: #2ecc71;"), console.log("%c编译日期: 2026/1/29 13:15:34", "color: #3498db;"), console.log("%c版权声明:", "color: #e74c3c; font-weight: bold;"), console.log("%c 1. 版权完全归qbansanguo享有。", "color: #34495e;"), console.log("%c 2. 程序包完整引用,不得以任何形式破解、裁剪,不得隐藏或删除版权信息。", "color: #34495e;"), console.log("%c 3. 保留此版权信息在控制台输出。", "color: #34495e;"), console.log("%c 版权所有 ©2024-2026 qbansanguo 保留对此版权信息的最终解释权.", "color: #f39c12;"), console.log("%c Copyright ©2024-2026 qbansanguo All rights reserved.", "color: #f39c12;");
|
|
12
12
|
};
|
|
13
13
|
if (typeof window < "u") {
|
|
14
14
|
window._copyright_hflvloader = t;
|
|
@@ -25,7 +25,7 @@ import { useRouter as We, useRoute as Je } from "vue-router";
|
|
|
25
25
|
}
|
|
26
26
|
t();
|
|
27
27
|
})();
|
|
28
|
-
function
|
|
28
|
+
function _(t) {
|
|
29
29
|
return !!(t && t != "");
|
|
30
30
|
}
|
|
31
31
|
function pe(t) {
|
|
@@ -59,7 +59,7 @@ function Be(t) {
|
|
|
59
59
|
return typeof t == "string" || t instanceof String;
|
|
60
60
|
}
|
|
61
61
|
function lt(t, o = {}) {
|
|
62
|
-
if (Be(t) &&
|
|
62
|
+
if (Be(t) && _(t))
|
|
63
63
|
try {
|
|
64
64
|
return Gt.parse(t);
|
|
65
65
|
} catch (l) {
|
|
@@ -87,8 +87,8 @@ function st(t, o) {
|
|
|
87
87
|
}
|
|
88
88
|
function at(t, o) {
|
|
89
89
|
if (t) {
|
|
90
|
-
let l = t.getFullYear(), n = t.getMonth() + 1, f = t.getDate(), i = t.getHours(), c = t.getMinutes(), d = t.getSeconds(),
|
|
91
|
-
return
|
|
90
|
+
let l = t.getFullYear(), n = t.getMonth() + 1, f = t.getDate(), i = t.getHours(), c = t.getMinutes(), d = t.getSeconds(), s = o;
|
|
91
|
+
return s = s.replace("yyyy", l), s.indexOf("MM") >= 0 ? n >= 10 ? s = s.replace("MM", n) : s = s.replace("MM", "0" + n) : s = s.replace("M", n), s.indexOf("dd") >= 0 ? f >= 10 ? s = s.replace("dd", f) : s = s.replace("dd", "0" + f) : s = s.replace("d", f), s.indexOf("HH") >= 0 ? i >= 10 ? s = s.replace("HH", i) : s = s.replace("HH", "0" + i) : s = s.replace("H", i), s.indexOf("mm") >= 0 ? c >= 10 ? s = s.replace("mm", c) : s = s.replace("mm", "0" + c) : s = s.replace("m", c), s.indexOf("ss") >= 0 ? d >= 10 ? s = s.replace("ss", d) : s = s.replace("ss", "0" + d) : s = s.replace("s", d), s;
|
|
92
92
|
}
|
|
93
93
|
return "";
|
|
94
94
|
}
|
|
@@ -173,9 +173,9 @@ function sn(t, o = {}, l) {
|
|
|
173
173
|
}
|
|
174
174
|
}
|
|
175
175
|
function ut(t) {
|
|
176
|
-
return
|
|
176
|
+
return _(t) ? Qt(t) : "";
|
|
177
177
|
}
|
|
178
|
-
function
|
|
178
|
+
function Z(t, ...o) {
|
|
179
179
|
if (!window.hflvloader_debug) return;
|
|
180
180
|
const l = {
|
|
181
181
|
debug: ["%c[DEBUG]", "color: #4CAF50; font-weight: bold"],
|
|
@@ -211,7 +211,7 @@ function cn(t) {
|
|
|
211
211
|
}
|
|
212
212
|
const $n = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
213
213
|
__proto__: null,
|
|
214
|
-
consolePrint:
|
|
214
|
+
consolePrint: Z,
|
|
215
215
|
copyToClipboard: ke,
|
|
216
216
|
deepCopy: fe,
|
|
217
217
|
deepMerge: st,
|
|
@@ -231,7 +231,7 @@ const $n = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
231
231
|
isEmptyObject: tn,
|
|
232
232
|
isEven: cn,
|
|
233
233
|
isFunction: K,
|
|
234
|
-
isNotEmpty:
|
|
234
|
+
isNotEmpty: _,
|
|
235
235
|
isNullOrUndefined: Se,
|
|
236
236
|
isNumber: pe,
|
|
237
237
|
isObject: ne,
|
|
@@ -244,7 +244,7 @@ const $n = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
244
244
|
function Ge(t) {
|
|
245
245
|
const o = {};
|
|
246
246
|
return Object.keys(t).filter((l) => !un.includes(l)).forEach((l) => {
|
|
247
|
-
l === "fontSize" ? o[l] += "px" : l === "backgroundImage" &&
|
|
247
|
+
l === "fontSize" ? o[l] += "px" : l === "backgroundImage" && _(t[l]) ? o["background-image"] = "url(" + t[l] + ")" : l === "backgroundRepeat" ? o["background-repeat"] = t[l] : l === "backgroundSize" ? o["background-size"] = t[l] : l === "backgroundPosition" ? o["background-position"] = t[l] : o[l] = t[l];
|
|
248
248
|
}), o;
|
|
249
249
|
}
|
|
250
250
|
const ft = ["fontSize", "width", "height", "top", "left", "borderWidth", "letterSpacing", "borderRadius"];
|
|
@@ -281,14 +281,14 @@ function pn(t) {
|
|
|
281
281
|
}
|
|
282
282
|
function mn(t, o, l, n, f, i, c) {
|
|
283
283
|
let d = pn(t.rotate);
|
|
284
|
-
const
|
|
285
|
-
let
|
|
284
|
+
const s = dn(d), h = Math.round((t.left + t.width / 2) * 10) / 10, v = Math.round((t.top + t.height / 2) * 10) / 10;
|
|
285
|
+
let y = d, g = s;
|
|
286
286
|
if (Math.abs(o - l) > 1e-3) {
|
|
287
|
-
const U = Math.cos(
|
|
288
|
-
|
|
287
|
+
const U = Math.cos(g), Me = Math.sin(g);
|
|
288
|
+
g = Math.atan2(l * Me, o * U), y = Math.floor(g * 180 / Math.PI % 360), y < 0 && (y += 360);
|
|
289
289
|
}
|
|
290
|
-
const
|
|
291
|
-
let
|
|
290
|
+
const b = Math.abs(Math.cos(g)), w = Math.abs(Math.sin(g));
|
|
291
|
+
let x = Math.round((t.width * b + t.height * w) * 10) / 10, M = Math.round((t.width * w + t.height * b) * 10) / 10, C = h - 0.5 * M, T = v - 0.5 * x, E = M, S = x, G = Math.round(t.height * w * 10) / 10, I = Math.round(G / E * 1e3) / 1e3;
|
|
292
292
|
if (o != 1) {
|
|
293
293
|
if (t.wdSet == "calc")
|
|
294
294
|
E = Math.floor(E * o);
|
|
@@ -297,59 +297,59 @@ function mn(t, o, l, n, f, i, c) {
|
|
|
297
297
|
E = Math.floor(n - U);
|
|
298
298
|
}
|
|
299
299
|
if (t.hAffix != "left") if (t.hAffix == "right") {
|
|
300
|
-
let U = i - (
|
|
301
|
-
|
|
302
|
-
} else t.hAffix == "center" ?
|
|
300
|
+
let U = i - (C + E);
|
|
301
|
+
C = n - U - E;
|
|
302
|
+
} else t.hAffix == "center" ? C = Math.floor(n * 0.5 - E * 0.5) : C = Math.floor(C * o);
|
|
303
303
|
}
|
|
304
304
|
if (l != 1) {
|
|
305
305
|
if (t.htSet == "calc")
|
|
306
|
-
|
|
306
|
+
S = Math.floor(S * l);
|
|
307
307
|
else if (t.htSet == "overspread") {
|
|
308
308
|
let U = t.htReserve < 0 ? 0 : t.htReserve;
|
|
309
|
-
|
|
309
|
+
S = Math.floor(f - U);
|
|
310
310
|
}
|
|
311
311
|
if (t.vAffix != "top") if (t.vAffix == "bottom") {
|
|
312
|
-
let U = c - (T +
|
|
313
|
-
T = f - U -
|
|
314
|
-
} else t.vAffix == "center" ? T = Math.floor(f * 0.5 -
|
|
312
|
+
let U = c - (T + S);
|
|
313
|
+
T = f - U - S;
|
|
314
|
+
} else t.vAffix == "center" ? T = Math.floor(f * 0.5 - S * 0.5) : T = Math.floor(T * l);
|
|
315
315
|
}
|
|
316
|
-
const V =
|
|
317
|
-
t.left = Math.floor(Q), t.top = Math.floor(Ce), t.width = Math.floor(ge), t.height = Math.floor(ie), t.rotate =
|
|
316
|
+
const V = C + E * 0.5, H = T + S * 0.5, q = Math.round(E * I * 10) / 10, ie = Math.floor(Math.sqrt(q ** 2 + q ** 2)), ge = Math.floor((E - ie * b) / w), Q = V - ge / 2, Ce = H - ie / 2;
|
|
317
|
+
t.left = Math.floor(Q), t.top = Math.floor(Ce), t.width = Math.floor(ge), t.height = Math.floor(ie), t.rotate = y;
|
|
318
318
|
}
|
|
319
319
|
function le(t, o, l, n, f, i, c) {
|
|
320
320
|
let d = JSON.parse(JSON.stringify(t));
|
|
321
|
-
return d && d.length > 0 && d.forEach((
|
|
322
|
-
if (
|
|
323
|
-
if (Math.abs(
|
|
324
|
-
mn(
|
|
321
|
+
return d && d.length > 0 && d.forEach((s) => {
|
|
322
|
+
if (s && s.style)
|
|
323
|
+
if (Math.abs(s.style.rotate) >= 1)
|
|
324
|
+
mn(s.style, n, f, o, l, i, c);
|
|
325
325
|
else {
|
|
326
326
|
if (n != 1) {
|
|
327
|
-
let h =
|
|
328
|
-
if (
|
|
329
|
-
h = Math.floor(
|
|
330
|
-
else if (
|
|
331
|
-
let
|
|
332
|
-
h = Math.floor(o -
|
|
327
|
+
let h = s.style.width;
|
|
328
|
+
if (s.style.wdSet == "calc")
|
|
329
|
+
h = Math.floor(s.style.width * n);
|
|
330
|
+
else if (s.style.wdSet == "overspread") {
|
|
331
|
+
let v = s.style.wdReserve < 0 ? 0 : s.style.wdReserve;
|
|
332
|
+
h = Math.floor(o - v);
|
|
333
333
|
}
|
|
334
|
-
if (
|
|
335
|
-
let
|
|
336
|
-
|
|
337
|
-
} else
|
|
338
|
-
|
|
334
|
+
if (s.style.hAffix != "left") if (s.style.hAffix == "right") {
|
|
335
|
+
let v = i - (s.style.left + s.style.width);
|
|
336
|
+
s.style.left = o - v - h;
|
|
337
|
+
} else s.style.hAffix == "center" ? s.style.left = Math.floor(o * 0.5 - h * 0.5) : s.style.left = Math.floor(s.style.left * n);
|
|
338
|
+
s.style.width = h;
|
|
339
339
|
}
|
|
340
340
|
if (f != 1) {
|
|
341
|
-
let h =
|
|
342
|
-
if (
|
|
343
|
-
h = Math.floor(
|
|
344
|
-
else if (
|
|
345
|
-
let
|
|
346
|
-
h = Math.floor(l -
|
|
341
|
+
let h = s.style.height;
|
|
342
|
+
if (s.style.htSet == "calc")
|
|
343
|
+
h = Math.floor(s.style.height * f);
|
|
344
|
+
else if (s.style.htSet == "overspread") {
|
|
345
|
+
let v = s.style.htReserve < 0 ? 0 : s.style.htReserve;
|
|
346
|
+
h = Math.floor(l - v);
|
|
347
347
|
}
|
|
348
|
-
if (
|
|
349
|
-
let
|
|
350
|
-
|
|
351
|
-
} else
|
|
352
|
-
|
|
348
|
+
if (s.style.vAffix != "top") if (s.style.vAffix == "bottom") {
|
|
349
|
+
let v = c - (s.style.top + s.style.height);
|
|
350
|
+
s.style.top = l - v - h;
|
|
351
|
+
} else s.style.vAffix == "center" ? s.style.top = Math.floor(l * 0.5 - h * 0.5) : s.style.top = Math.floor(s.style.top * f);
|
|
352
|
+
s.style.height = h;
|
|
353
353
|
}
|
|
354
354
|
}
|
|
355
355
|
}), d;
|
|
@@ -359,22 +359,22 @@ function eo(t, o, l, n) {
|
|
|
359
359
|
if (!(l && l.screenAdapter && l.screenAdapter != "no-adapter"))
|
|
360
360
|
f = l, i = n;
|
|
361
361
|
else {
|
|
362
|
-
let c = Math.floor(t), d = Math.floor(o),
|
|
362
|
+
let c = Math.floor(t), d = Math.floor(o), s = Number(l.width), h = Number(l.height), v = 1, y = 1;
|
|
363
363
|
if (l.screenAdapter == "all-screen")
|
|
364
|
-
f = JSON.parse(JSON.stringify(l)), c >
|
|
364
|
+
f = JSON.parse(JSON.stringify(l)), c > s + 10 && (f.width = c, v = Math.floor(1e4 * c / s) / 1e4), d > h + 10 && (f.height = d, y = Math.floor(1e4 * d / h) / 1e4), i = le(n, c, d, v, y, s, h);
|
|
365
365
|
else if (l.screenAdapter == "original-ratio") {
|
|
366
366
|
f = JSON.parse(JSON.stringify(l));
|
|
367
|
-
let
|
|
368
|
-
Math.floor(d *
|
|
367
|
+
let g = Math.floor(1e4 * s / h) / 1e4;
|
|
368
|
+
Math.floor(d * g) > c ? (f.width = c, v = Math.floor(1e4 * c / s) / 1e4, d = Math.floor(c / g), f.height = d, y = Math.floor(1e4 * d / h) / 1e4) : (f.height = d, y = Math.floor(1e4 * d / h) / 1e4, c = Math.floor(d * g), f.width = c, v = Math.floor(1e4 * c / s) / 1e4), i = le(n, c, d, v, y, s, h);
|
|
369
369
|
} else if (l.screenAdapter == "h-adapter-wh") {
|
|
370
370
|
f = JSON.parse(JSON.stringify(l));
|
|
371
|
-
let
|
|
372
|
-
c >
|
|
371
|
+
let g = Math.floor(1e4 * s / h) / 1e4;
|
|
372
|
+
c > s + 10 && (f.width = c, v = Math.floor(1e4 * c / s) / 1e4, d = Math.floor(c / g), f.height = d, y = Math.floor(1e4 * d / h) / 1e4), i = le(n, c, d, v, y, s, h);
|
|
373
373
|
} else if (l.screenAdapter == "v-adapter-wh") {
|
|
374
374
|
f = JSON.parse(JSON.stringify(l));
|
|
375
|
-
let
|
|
376
|
-
d > h + 10 && (f.height = d,
|
|
377
|
-
} else l.screenAdapter == "h-adapter" ? (f = JSON.parse(JSON.stringify(l)), c >
|
|
375
|
+
let g = Math.floor(1e4 * s / h) / 1e4;
|
|
376
|
+
d > h + 10 && (f.height = d, y = Math.floor(1e4 * d / h) / 1e4, c = Math.floor(d * g), f.width = c, v = Math.floor(1e4 * c / s) / 1e4), i = le(n, c, d, v, y, s, h);
|
|
377
|
+
} else l.screenAdapter == "h-adapter" ? (f = JSON.parse(JSON.stringify(l)), c > s + 10 && (f.width = c, v = Math.floor(1e4 * c / s) / 1e4), i = le(n, c, d, v, y, s, h)) : l.screenAdapter == "v-adapter" ? (f = JSON.parse(JSON.stringify(l)), d > h + 10 && (f.height = d, y = Math.floor(1e4 * d / h) / 1e4), i = le(n, c, d, v, y, s, h)) : (f = l, i = n);
|
|
378
378
|
}
|
|
379
379
|
return {
|
|
380
380
|
canvasStyleData: f,
|
|
@@ -385,10 +385,10 @@ async function Qe(t, o = []) {
|
|
|
385
385
|
const l = (n) => new Promise((f) => {
|
|
386
386
|
const { animationTime: i, value: c = "", isLoop: d } = n;
|
|
387
387
|
t.style.setProperty("--time", `${i}s`), t.classList.add(c, "animated", Ye(d));
|
|
388
|
-
const
|
|
389
|
-
t.removeEventListener("animationend",
|
|
388
|
+
const s = () => {
|
|
389
|
+
t.removeEventListener("animationend", s), t.removeEventListener("animationcancel", s), t.classList.remove(c, "animated", Ye(d)), t.style.removeProperty("--time"), f();
|
|
390
390
|
};
|
|
391
|
-
t.addEventListener("animationend",
|
|
391
|
+
t.addEventListener("animationend", s), t.addEventListener("animationcancel", s);
|
|
392
392
|
});
|
|
393
393
|
for (let n = 0, f = o.length; n < f; n++)
|
|
394
394
|
await l(o[n]);
|
|
@@ -396,7 +396,7 @@ async function Qe(t, o = []) {
|
|
|
396
396
|
function Ye(t) {
|
|
397
397
|
return t ? "infinite" : "no-infinite";
|
|
398
398
|
}
|
|
399
|
-
const
|
|
399
|
+
const $ = (t, o) => {
|
|
400
400
|
const l = t.__vccOpts || t;
|
|
401
401
|
for (const [n, f] of o)
|
|
402
402
|
l[n] = f;
|
|
@@ -414,54 +414,54 @@ const Z = (t, o) => {
|
|
|
414
414
|
setup(t, { expose: o }) {
|
|
415
415
|
const l = t, n = O(() => l.config || {}), f = O({
|
|
416
416
|
get: () => !n.value.style?.isHide,
|
|
417
|
-
set: (
|
|
418
|
-
n.value.style && (n.value.style.isHide = !
|
|
417
|
+
set: (b) => {
|
|
418
|
+
n.value.style && (n.value.style.isHide = !b);
|
|
419
419
|
}
|
|
420
|
-
}), i = de({}), c = (
|
|
421
|
-
|
|
422
|
-
}, d = (
|
|
420
|
+
}), i = de({}), c = (b, w) => {
|
|
421
|
+
b ? i[`Ve${w}`] = b : delete i[`Ve${w}`];
|
|
422
|
+
}, d = (b) => i[`Ve${b}`], s = () => {
|
|
423
423
|
if (n.value.animations && n.value.animations.length > 0) {
|
|
424
|
-
let
|
|
425
|
-
|
|
424
|
+
let b = i[`Ve${n.value.id}`];
|
|
425
|
+
b.$el && Qe(b.$el, n.value.animations);
|
|
426
426
|
}
|
|
427
427
|
}, h = () => {
|
|
428
428
|
f.value = !1;
|
|
429
|
-
},
|
|
429
|
+
}, v = () => {
|
|
430
430
|
f.value = !0;
|
|
431
|
-
},
|
|
431
|
+
}, y = () => f.value;
|
|
432
432
|
xe(() => {
|
|
433
|
-
|
|
433
|
+
s();
|
|
434
434
|
}), o({
|
|
435
435
|
getComponentRef: d,
|
|
436
436
|
hide: h,
|
|
437
|
-
show:
|
|
438
|
-
showStatus:
|
|
437
|
+
show: v,
|
|
438
|
+
showStatus: y
|
|
439
439
|
});
|
|
440
|
-
const
|
|
440
|
+
const g = { props: l, config: n, isShow: f, componentRefs: i, setComponentRef: c, getComponentRef: d, execAnimation: s, hide: h, show: v, showStatus: y, ref: D, computed: O, onMounted: xe, reactive: de, watch: Ae, get getSVGStyle() {
|
|
441
441
|
return fn;
|
|
442
442
|
}, get getStyle() {
|
|
443
443
|
return dt;
|
|
444
444
|
}, get runAnimation() {
|
|
445
445
|
return Qe;
|
|
446
446
|
} };
|
|
447
|
-
return Object.defineProperty(
|
|
447
|
+
return Object.defineProperty(g, "__isScriptSetup", { enumerable: !1, value: !0 }), g;
|
|
448
448
|
}
|
|
449
449
|
};
|
|
450
450
|
function gn(t, o, l, n, f, i) {
|
|
451
451
|
return Oe((A(), z("div", { class: "component-wrapper" }, [
|
|
452
|
-
n.config.component.startsWith("SVG") ? (A(), J(
|
|
452
|
+
n.config.component.startsWith("SVG") ? (A(), J(be(n.config.component), {
|
|
453
453
|
key: 0,
|
|
454
454
|
ref: (c) => n.setComponentRef(c, n.config.id),
|
|
455
455
|
class: "component",
|
|
456
|
-
style:
|
|
456
|
+
style: we(n.getSVGStyle(n.config.style)),
|
|
457
457
|
"prop-value": n.config.propValue,
|
|
458
458
|
element: n.config,
|
|
459
459
|
designStatus: !1
|
|
460
|
-
}, null, 8, ["style", "prop-value", "element"])) : (A(), J(
|
|
460
|
+
}, null, 8, ["style", "prop-value", "element"])) : (A(), J(be(n.config.component), {
|
|
461
461
|
key: 1,
|
|
462
462
|
ref: (c) => n.setComponentRef(c, n.config.id),
|
|
463
463
|
class: "component",
|
|
464
|
-
style:
|
|
464
|
+
style: we(n.getStyle(n.config.style)),
|
|
465
465
|
"prop-value": n.config.propValue,
|
|
466
466
|
element: n.config,
|
|
467
467
|
designStatus: !1
|
|
@@ -470,7 +470,7 @@ function gn(t, o, l, n, f, i) {
|
|
|
470
470
|
[et, n.isShow]
|
|
471
471
|
]);
|
|
472
472
|
}
|
|
473
|
-
const yn = /* @__PURE__ */
|
|
473
|
+
const yn = /* @__PURE__ */ $(hn, [["render", gn], ["__scopeId", "data-v-56b0e3e4"], ["__file", "ComponentWrapper.vue"]]), _n = /* @__PURE__ */ Object.assign({
|
|
474
474
|
name: "VEPage"
|
|
475
475
|
}, {
|
|
476
476
|
__name: "index",
|
|
@@ -488,72 +488,72 @@ const yn = /* @__PURE__ */ Z(hn, [["render", gn], ["__scopeId", "data-v-56b0e3e4
|
|
|
488
488
|
}
|
|
489
489
|
},
|
|
490
490
|
setup(t, { expose: o }) {
|
|
491
|
-
const l = t, n = D({}), f = O(() => l.canvasStyle || {}), i = O(() => l.componentData || []), c = (
|
|
492
|
-
|
|
491
|
+
const l = t, n = D({}), f = O(() => l.canvasStyle || {}), i = O(() => l.componentData || []), c = (g, b) => {
|
|
492
|
+
g && (n.value[b] = g);
|
|
493
493
|
}, d = O(() => {
|
|
494
|
-
let
|
|
495
|
-
delete
|
|
496
|
-
let
|
|
497
|
-
return
|
|
498
|
-
}),
|
|
499
|
-
if (
|
|
500
|
-
const
|
|
494
|
+
let g = {}, b = { ...f.value || {} }, w = b.diyStyles || {};
|
|
495
|
+
delete b.diyStyles;
|
|
496
|
+
let x = Ge(b || {});
|
|
497
|
+
return x.hasOwnProperty("backgroundColor") && (x["background-color"] = x.backgroundColor, delete x.backgroundColor), x.width = `${f.value.width}px`, x.height = `${f.value.height}px`, g = { ...x, ...w }, Z("debug", "style", g, "_style", x, "diyStyle", w), _(g.background) && !_(g["background-color"]) && delete g["background-color"], _(g.background) || _(g["background-image"]) || _(g["background-color"]) || (g["background-color"] = "transparent !important"), g;
|
|
498
|
+
}), s = (g, b, w) => {
|
|
499
|
+
if (_(g) && _(b)) {
|
|
500
|
+
const x = "VeP" + g, M = n.value[x];
|
|
501
501
|
if (M) {
|
|
502
|
-
let
|
|
503
|
-
L(M) ?
|
|
504
|
-
const T =
|
|
505
|
-
T ? T?.$options.name === "Group" &&
|
|
502
|
+
let C;
|
|
503
|
+
L(M) ? C = M[0] : C = M;
|
|
504
|
+
const T = C.getComponentRef(g);
|
|
505
|
+
T ? T?.$options.name === "Group" && w && w.compId ? T.callGroupCompMethod(w.compId, b, w.data) : T[b] && (w ? T[b](w) : T[b]()) : Z("warning", "The component is not exist.id:", g);
|
|
506
506
|
}
|
|
507
507
|
}
|
|
508
|
-
}, h = (
|
|
509
|
-
if (
|
|
510
|
-
const
|
|
508
|
+
}, h = (g, b, w = {}) => {
|
|
509
|
+
if (_(g)) {
|
|
510
|
+
const x = "VeP" + g, M = n.value[x];
|
|
511
511
|
if (M) {
|
|
512
|
-
let
|
|
513
|
-
L(M) ?
|
|
512
|
+
let C;
|
|
513
|
+
L(M) ? C = M[0] : C = M, b ? C.show() : C.hide();
|
|
514
514
|
}
|
|
515
515
|
}
|
|
516
|
-
},
|
|
517
|
-
if (
|
|
518
|
-
const
|
|
516
|
+
}, v = (g, b, w) => {
|
|
517
|
+
if (_(g) && _(b)) {
|
|
518
|
+
const x = "VeP" + g, M = n.value[x];
|
|
519
519
|
if (M) {
|
|
520
|
-
let
|
|
521
|
-
if (L(M) ?
|
|
522
|
-
return
|
|
520
|
+
let C;
|
|
521
|
+
if (L(M) ? C = M[0] : C = M, C && C[b])
|
|
522
|
+
return w ? C[b](w) : C[b]();
|
|
523
523
|
}
|
|
524
524
|
}
|
|
525
525
|
};
|
|
526
|
-
te("VE-CompMethod",
|
|
527
|
-
callCompMethod:
|
|
526
|
+
te("VE-CompMethod", s), te("VE-CompHideAndShow", h), te("VE-CompWrapMethod", v), o({
|
|
527
|
+
callCompMethod: s
|
|
528
528
|
});
|
|
529
|
-
const
|
|
529
|
+
const y = { props: l, componentRefs: n, canvasStyle: f, componentData: i, setComponentRef: c, calcCanvasStyle: d, callCompMethod: s, callCompHideAndShow: h, callCompWrapMethod: v, ref: D, computed: O, provide: te, watch: Ae, get getCanvasStyle() {
|
|
530
530
|
return Ge;
|
|
531
531
|
}, ComponentWrapper: yn, get isNotEmpty() {
|
|
532
|
-
return
|
|
532
|
+
return _;
|
|
533
533
|
}, get isArray() {
|
|
534
534
|
return L;
|
|
535
535
|
}, get consolePrint() {
|
|
536
|
-
return
|
|
536
|
+
return Z;
|
|
537
537
|
} };
|
|
538
|
-
return Object.defineProperty(
|
|
538
|
+
return Object.defineProperty(y, "__isScriptSetup", { enumerable: !1, value: !0 }), y;
|
|
539
539
|
}
|
|
540
540
|
});
|
|
541
541
|
function vn(t, o, l, n, f, i) {
|
|
542
542
|
return A(), z("div", { class: "canvas-container" }, [
|
|
543
543
|
oe("div", {
|
|
544
544
|
class: "canvas",
|
|
545
|
-
style:
|
|
545
|
+
style: we(n.calcCanvasStyle)
|
|
546
546
|
}, [
|
|
547
547
|
(A(!0), z(je, null, Fe(n.componentData, (c, d) => (A(), J(n.ComponentWrapper, {
|
|
548
548
|
key: d,
|
|
549
549
|
config: c,
|
|
550
550
|
ref_for: !0,
|
|
551
|
-
ref: (
|
|
551
|
+
ref: (s) => n.setComponentRef(s, "VeP" + c.id)
|
|
552
552
|
}, null, 8, ["config"]))), 128))
|
|
553
553
|
], 4)
|
|
554
554
|
]);
|
|
555
555
|
}
|
|
556
|
-
const
|
|
556
|
+
const bn = /* @__PURE__ */ $(_n, [["render", vn], ["__scopeId", "data-v-c471d52f"], ["__file", "index.vue"]]), wn = Lt({
|
|
557
557
|
name: "ve-comp-svg-icon",
|
|
558
558
|
props: {
|
|
559
559
|
iconClass: {
|
|
@@ -587,7 +587,7 @@ function xn(t, o, l, n, f, i) {
|
|
|
587
587
|
}, null, 8, ["xlink:href", "fill"])
|
|
588
588
|
], 2);
|
|
589
589
|
}
|
|
590
|
-
const pt = /* @__PURE__ */
|
|
590
|
+
const pt = /* @__PURE__ */ $(wn, [["render", xn], ["__file", "index.vue"]]), Sn = /* @__PURE__ */ Object.assign({
|
|
591
591
|
name: "CompositeIcon"
|
|
592
592
|
}, {
|
|
593
593
|
__name: "index",
|
|
@@ -608,7 +608,7 @@ const pt = /* @__PURE__ */ Z(bn, [["render", xn], ["__file", "index.vue"]]), Sn
|
|
|
608
608
|
},
|
|
609
609
|
setup(t, { expose: o }) {
|
|
610
610
|
o();
|
|
611
|
-
const d = { props: t, isImage: (
|
|
611
|
+
const d = { props: t, isImage: (s) => s && s.toString().toLowerCase().startsWith("img#"), getImageSrc: (s) => s.toString().substring(4), isSvgIcon: (s) => s && s.toString().toLowerCase().indexOf("svg#") == 0, getSvgIconClass: (s) => s.toString().substring(4), VeCompSvgIcon: pt };
|
|
612
612
|
return Object.defineProperty(d, "__isScriptSetup", { enumerable: !1, value: !0 }), d;
|
|
613
613
|
}
|
|
614
614
|
});
|
|
@@ -626,12 +626,12 @@ function Cn(t, o, l, n, f, i) {
|
|
|
626
626
|
key: 1,
|
|
627
627
|
"icon-class": n.getSvgIconClass(n.props.icon),
|
|
628
628
|
color: n.props.color
|
|
629
|
-
}, null, 8, ["icon-class", "color"])) : (A(), J(
|
|
629
|
+
}, null, 8, ["icon-class", "color"])) : (A(), J(be(n.props.icon), { key: 2 }))
|
|
630
630
|
]),
|
|
631
631
|
_: 1
|
|
632
632
|
}, 8, ["size", "color"]);
|
|
633
633
|
}
|
|
634
|
-
const Mn = /* @__PURE__ */
|
|
634
|
+
const Mn = /* @__PURE__ */ $(Sn, [["render", Cn], ["__file", "index.vue"]]);
|
|
635
635
|
let Ve = null;
|
|
636
636
|
const Te = () => {
|
|
637
637
|
if (!Ve) {
|
|
@@ -640,21 +640,21 @@ const Te = () => {
|
|
|
640
640
|
dialogs: t,
|
|
641
641
|
dialogStack: o,
|
|
642
642
|
openDialog: (c = {}) => {
|
|
643
|
-
const d = c.dialogId || "dialog-" + ct(),
|
|
644
|
-
|
|
643
|
+
const d = c.dialogId || "dialog-" + ct(), s = o.value.length;
|
|
644
|
+
s >= 1 && (c.appendToBody = !0);
|
|
645
645
|
const h = {
|
|
646
646
|
id: d,
|
|
647
|
-
level:
|
|
647
|
+
level: s,
|
|
648
648
|
config: c
|
|
649
649
|
};
|
|
650
650
|
if (t[d] = h, o.value.length >= 1) {
|
|
651
|
-
let
|
|
652
|
-
for (let
|
|
653
|
-
if (d == o.value[
|
|
654
|
-
|
|
651
|
+
let v = !1;
|
|
652
|
+
for (let y = 0; y < o.value.length; y++)
|
|
653
|
+
if (d == o.value[y]) {
|
|
654
|
+
v = !0;
|
|
655
655
|
break;
|
|
656
656
|
}
|
|
657
|
-
|
|
657
|
+
v || o.value.push(d);
|
|
658
658
|
} else
|
|
659
659
|
o.value.push(d);
|
|
660
660
|
return d;
|
|
@@ -683,20 +683,20 @@ const Te = () => {
|
|
|
683
683
|
},
|
|
684
684
|
emits: ["confirm", "cancel"],
|
|
685
685
|
setup(t, { expose: o, emit: l }) {
|
|
686
|
-
const n = t, f = l, i = O(() => n.config), c = O(() => i.value.title || "对话框"), d = O(() => !!n.config.showHeader),
|
|
687
|
-
let
|
|
688
|
-
return d.value ?
|
|
689
|
-
}),
|
|
690
|
-
let
|
|
691
|
-
return
|
|
692
|
-
}), _ = O(() => {
|
|
693
|
-
let x = {};
|
|
694
|
-
return x.modal = i.value.modal, x["show-close"] = i.value.showClose, x.draggable = i.value.draggable, i.value.appendToBody && (x["append-to-body"] = i.value.appendToBody), d.value || (x.class = " no-header-dialog"), i.value.customPosition ? x["align-center"] = !1 : x["align-center"] = !0, x;
|
|
686
|
+
const n = t, f = l, i = O(() => n.config), c = O(() => i.value.title || "对话框"), d = O(() => !!n.config.showHeader), s = D(i.value.fullscreen), h = D(i.value.width), v = D(!0), y = O(() => {
|
|
687
|
+
let S = i.value.width ?? 800;
|
|
688
|
+
return d.value ? S + 32 : S;
|
|
689
|
+
}), g = O(() => {
|
|
690
|
+
let S = {};
|
|
691
|
+
return S.style = {}, S.style.width = i.value.width ?? 800, S.style.height = i.value.height ?? 600, S.prop = {}, S.prop.subpageId = i.value.pageId, S.containerParam = i.value.pageParam || {}, S;
|
|
695
692
|
}), b = O(() => {
|
|
696
|
-
let
|
|
693
|
+
let S = {};
|
|
694
|
+
return S.modal = i.value.modal, S["show-close"] = i.value.showClose, S.draggable = i.value.draggable, i.value.appendToBody && (S["append-to-body"] = i.value.appendToBody), d.value || (S.class = " no-header-dialog"), i.value.customPosition ? S["align-center"] = !1 : S["align-center"] = !0, S;
|
|
695
|
+
}), w = O(() => {
|
|
696
|
+
let S = {};
|
|
697
697
|
if (i.value.customPosition) {
|
|
698
698
|
let G = i.value.absLeft ?? 100, I = i.value.absTop ?? 100;
|
|
699
|
-
Object.assign(
|
|
699
|
+
Object.assign(S, {
|
|
700
700
|
position: "fixed",
|
|
701
701
|
left: `${G}px`,
|
|
702
702
|
top: `${I}px`,
|
|
@@ -704,39 +704,39 @@ const Te = () => {
|
|
|
704
704
|
margin: "0 !important"
|
|
705
705
|
});
|
|
706
706
|
}
|
|
707
|
-
return i.value.noBackgroundColor && Object.assign(
|
|
707
|
+
return i.value.noBackgroundColor && Object.assign(S, {
|
|
708
708
|
backgroundColor: "transparent"
|
|
709
|
-
}),
|
|
710
|
-
}),
|
|
709
|
+
}), S;
|
|
710
|
+
}), x = () => {
|
|
711
711
|
f("confirm");
|
|
712
712
|
}, M = () => {
|
|
713
|
-
f("cancel"),
|
|
714
|
-
},
|
|
715
|
-
|
|
716
|
-
}, T = (
|
|
713
|
+
f("cancel"), C();
|
|
714
|
+
}, C = () => {
|
|
715
|
+
v.value = !1;
|
|
716
|
+
}, T = (S) => {
|
|
717
717
|
f("cancel");
|
|
718
718
|
};
|
|
719
719
|
te("VE-CompMethod", function() {
|
|
720
|
-
|
|
720
|
+
Z("warning", "对话框模式,不提供compMethod函数实现");
|
|
721
721
|
}), te("VE-CompHideAndShow", function() {
|
|
722
|
-
|
|
722
|
+
Z("warning", "对话框模式,不提供compHideAndShow函数实现");
|
|
723
723
|
}), te("VE-CompWrapMethod", function() {
|
|
724
|
-
|
|
724
|
+
Z("warning", "对话框模式,不提供compWrapMethod函数实现");
|
|
725
725
|
}), o({
|
|
726
|
-
close:
|
|
726
|
+
close: C
|
|
727
727
|
});
|
|
728
|
-
const E = { props: n, emit: f, config: i, title: c, showTitle: d, isFullscreen:
|
|
729
|
-
return
|
|
728
|
+
const E = { props: n, emit: f, config: i, title: c, showTitle: d, isFullscreen: s, previousWidth: h, openDialog: v, dialogWidth: y, element: g, bindAttr: b, customStyle: w, confirmInner: x, cancel: M, close: C, handleClose: T, ref: D, computed: O, provide: te, get consolePrint() {
|
|
729
|
+
return Z;
|
|
730
730
|
}, get isNotEmpty() {
|
|
731
|
-
return
|
|
731
|
+
return _;
|
|
732
732
|
} };
|
|
733
733
|
return Object.defineProperty(E, "__isScriptSetup", { enumerable: !1, value: !0 }), E;
|
|
734
734
|
}
|
|
735
735
|
});
|
|
736
736
|
function Vn(t, o, l, n, f, i) {
|
|
737
|
-
const c = B("Subpage"), d = B("el-button"),
|
|
737
|
+
const c = B("Subpage"), d = B("el-button"), s = B("el-dialog");
|
|
738
738
|
return A(), z("div", { class: "full-screen-dialog-wrapper" }, [
|
|
739
|
-
R(
|
|
739
|
+
R(s, qt({
|
|
740
740
|
modelValue: n.openDialog,
|
|
741
741
|
"onUpdate:modelValue": o[0] || (o[0] = (h) => n.openDialog = h),
|
|
742
742
|
width: n.dialogWidth,
|
|
@@ -784,7 +784,7 @@ function Vn(t, o, l, n, f, i) {
|
|
|
784
784
|
]), 1040, ["modelValue", "width", "fullscreen", "style"])
|
|
785
785
|
]);
|
|
786
786
|
}
|
|
787
|
-
const On = /* @__PURE__ */
|
|
787
|
+
const On = /* @__PURE__ */ $(Pn, [["render", Vn], ["__scopeId", "data-v-7c104f83"], ["__file", "FullscreenDialog.vue"]]), kn = /* @__PURE__ */ Object.assign({
|
|
788
788
|
name: "DialogContainer"
|
|
789
789
|
}, {
|
|
790
790
|
__name: "DialogContainer",
|
|
@@ -805,7 +805,7 @@ function In(t, o, l, n, f, i) {
|
|
|
805
805
|
onCancel: (d) => n.cancelHandler(c.id)
|
|
806
806
|
}, null, 8, ["config", "onCancel"]))), 128);
|
|
807
807
|
}
|
|
808
|
-
const En = /* @__PURE__ */
|
|
808
|
+
const En = /* @__PURE__ */ $(kn, [["render", In], ["__file", "DialogContainer.vue"]]), Tn = /* @__PURE__ */ Object.assign({
|
|
809
809
|
name: "CommonDialog"
|
|
810
810
|
}, {
|
|
811
811
|
__name: "index",
|
|
@@ -827,25 +827,25 @@ const En = /* @__PURE__ */ Z(kn, [["render", In], ["__file", "DialogContainer.vu
|
|
|
827
827
|
setup(t, { expose: o, emit: l }) {
|
|
828
828
|
const n = D("弹框"), f = D(!1), i = t, c = l;
|
|
829
829
|
let d = null;
|
|
830
|
-
const
|
|
830
|
+
const s = O(() => n.value && _(n.value) ? n.value : i.title), h = () => {
|
|
831
831
|
c("confirm", { callBack: d });
|
|
832
|
-
},
|
|
832
|
+
}, v = () => {
|
|
833
833
|
f.value = !1;
|
|
834
|
-
},
|
|
835
|
-
f.value = !0, d =
|
|
834
|
+
}, y = (b = {}) => {
|
|
835
|
+
f.value = !0, d = b.callBack, n.value = b.title || "";
|
|
836
836
|
};
|
|
837
837
|
o({
|
|
838
|
-
show:
|
|
839
|
-
cancel:
|
|
838
|
+
show: y,
|
|
839
|
+
cancel: v
|
|
840
840
|
});
|
|
841
|
-
const
|
|
841
|
+
const g = { showTitle: n, openDialog: f, props: i, emit: c, get callBack() {
|
|
842
842
|
return d;
|
|
843
|
-
}, set callBack(
|
|
844
|
-
d =
|
|
845
|
-
}, title:
|
|
846
|
-
return
|
|
843
|
+
}, set callBack(b) {
|
|
844
|
+
d = b;
|
|
845
|
+
}, title: s, confirmInner: h, cancel: v, show: y, ref: D, computed: O, get isNotEmpty() {
|
|
846
|
+
return _;
|
|
847
847
|
} };
|
|
848
|
-
return Object.defineProperty(
|
|
848
|
+
return Object.defineProperty(g, "__isScriptSetup", { enumerable: !1, value: !0 }), g;
|
|
849
849
|
}
|
|
850
850
|
});
|
|
851
851
|
function Rn(t, o, l, n, f, i) {
|
|
@@ -853,7 +853,7 @@ function Rn(t, o, l, n, f, i) {
|
|
|
853
853
|
return A(), J(d, {
|
|
854
854
|
title: n.title,
|
|
855
855
|
modelValue: n.openDialog,
|
|
856
|
-
"onUpdate:modelValue": o[0] || (o[0] = (
|
|
856
|
+
"onUpdate:modelValue": o[0] || (o[0] = (s) => n.openDialog = s),
|
|
857
857
|
width: n.props.width,
|
|
858
858
|
"before-close": n.cancel,
|
|
859
859
|
"destroy-on-close": !0,
|
|
@@ -888,7 +888,7 @@ function Rn(t, o, l, n, f, i) {
|
|
|
888
888
|
_: 3
|
|
889
889
|
}, 8, ["title", "modelValue", "width", "modal"]);
|
|
890
890
|
}
|
|
891
|
-
const Dn = /* @__PURE__ */
|
|
891
|
+
const Dn = /* @__PURE__ */ $(Tn, [["render", Rn], ["__file", "index.vue"]]), An = /* @__PURE__ */ Object.assign({
|
|
892
892
|
name: "OmitInput"
|
|
893
893
|
}, {
|
|
894
894
|
__name: "index",
|
|
@@ -911,19 +911,19 @@ const Dn = /* @__PURE__ */ Z(Tn, [["render", Rn], ["__file", "index.vue"]]), An
|
|
|
911
911
|
o();
|
|
912
912
|
const n = t, f = l, i = D(null), c = D(""), d = O({
|
|
913
913
|
get: () => n.modelValue,
|
|
914
|
-
set: (
|
|
915
|
-
}),
|
|
914
|
+
set: (y) => f("update:modelValue", y)
|
|
915
|
+
}), v = { props: n, emits: f, inputDialogRef: i, inputTextArea: c, internalValue: d, openInputDialog: () => {
|
|
916
916
|
c.value = fe(d.value), i.value?.show();
|
|
917
|
-
}, confirmEdit: (
|
|
917
|
+
}, confirmEdit: (y) => {
|
|
918
918
|
d.value = fe(c.value), i.value?.cancel();
|
|
919
919
|
}, ref: D, computed: O, get deepCopy() {
|
|
920
920
|
return fe;
|
|
921
921
|
} };
|
|
922
|
-
return Object.defineProperty(
|
|
922
|
+
return Object.defineProperty(v, "__isScriptSetup", { enumerable: !1, value: !0 }), v;
|
|
923
923
|
}
|
|
924
924
|
});
|
|
925
925
|
function jn(t, o, l, n, f, i) {
|
|
926
|
-
const c = B("el-text"), d = B("el-input"),
|
|
926
|
+
const c = B("el-text"), d = B("el-input"), s = B("CommonDialog");
|
|
927
927
|
return A(), z("div", {
|
|
928
928
|
class: tt(["custom-omit-input-wrapper", t.$attrs.class])
|
|
929
929
|
}, [
|
|
@@ -949,7 +949,7 @@ function jn(t, o, l, n, f, i) {
|
|
|
949
949
|
_: 1
|
|
950
950
|
}, 8, ["modelValue", "placeholder"]),
|
|
951
951
|
F(),
|
|
952
|
-
R(
|
|
952
|
+
R(s, {
|
|
953
953
|
ref: "inputDialogRef",
|
|
954
954
|
title: n.props.dialogTitle,
|
|
955
955
|
width: 700,
|
|
@@ -969,7 +969,7 @@ function jn(t, o, l, n, f, i) {
|
|
|
969
969
|
}, 8, ["title"])
|
|
970
970
|
], 2);
|
|
971
971
|
}
|
|
972
|
-
const Fn = /* @__PURE__ */
|
|
972
|
+
const Fn = /* @__PURE__ */ $(An, [["render", jn], ["__scopeId", "data-v-956a5a3a"], ["__file", "index.vue"]]), me = Yt(
|
|
973
973
|
"ve/dataCache",
|
|
974
974
|
{
|
|
975
975
|
state: () => ({
|
|
@@ -1050,8 +1050,8 @@ async function ht(t, o, l = {}) {
|
|
|
1050
1050
|
if (c.status === "fulfilled")
|
|
1051
1051
|
d === 0 && (f = c.value);
|
|
1052
1052
|
else {
|
|
1053
|
-
const
|
|
1054
|
-
n.push(
|
|
1053
|
+
const s = c.reason;
|
|
1054
|
+
n.push(s);
|
|
1055
1055
|
}
|
|
1056
1056
|
});
|
|
1057
1057
|
} catch (i) {
|
|
@@ -1066,8 +1066,8 @@ async function gt(t, o, l = {}) {
|
|
|
1066
1066
|
if (c.status === "fulfilled")
|
|
1067
1067
|
d === 0 && (f = c.value);
|
|
1068
1068
|
else {
|
|
1069
|
-
const
|
|
1070
|
-
n.push(
|
|
1069
|
+
const s = c.reason;
|
|
1070
|
+
n.push(s);
|
|
1071
1071
|
}
|
|
1072
1072
|
});
|
|
1073
1073
|
} catch (i) {
|
|
@@ -1096,19 +1096,19 @@ const to = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1096
1096
|
equalsIgnoreCase: (t, o) => t != null && String(t).toLowerCase() == String(o).toLowerCase()
|
|
1097
1097
|
}, ae = (t) => typeof t == "string" && t.trim() !== "" && !isNaN(t) ? +t : t;
|
|
1098
1098
|
function Ze(t = {}, o = !0, l = {}) {
|
|
1099
|
-
const n = t, f = o, i = l, c = /* @__PURE__ */ new Map(), d = Bn(),
|
|
1100
|
-
let
|
|
1101
|
-
const
|
|
1099
|
+
const n = t, f = o, i = l, c = /* @__PURE__ */ new Map(), d = Bn(), s = me(), h = ue("VE-ContainerParam"), v = ue("VE-CompMethod"), y = [], { openDialog: g, closeDialog: b } = Te();
|
|
1100
|
+
let w = null;
|
|
1101
|
+
const x = 250, M = ue("VE-CompHideAndShow"), C = [], T = ue("VE-CompWrapMethod"), E = (e) => {
|
|
1102
1102
|
if (h) {
|
|
1103
1103
|
if (rt(h))
|
|
1104
1104
|
return h.value[e];
|
|
1105
1105
|
if (ne(h))
|
|
1106
1106
|
return h[e];
|
|
1107
1107
|
}
|
|
1108
|
-
},
|
|
1108
|
+
}, S = (e) => {
|
|
1109
1109
|
if (e && e.path) {
|
|
1110
|
-
let
|
|
1111
|
-
|
|
1110
|
+
let a = e.params || [], r = {};
|
|
1111
|
+
a.forEach((u, p) => {
|
|
1112
1112
|
if (re(u)) {
|
|
1113
1113
|
let m = Y(u);
|
|
1114
1114
|
r[u.tarKey] = m;
|
|
@@ -1116,67 +1116,67 @@ function Ze(t = {}, o = !0, l = {}) {
|
|
|
1116
1116
|
}), e.namedRouter ? K(i.routerPush) && i.routerPush(e.path, r) : K(i.routerPush2) && i.routerPush2(e.path, r);
|
|
1117
1117
|
}
|
|
1118
1118
|
}, G = (e = []) => {
|
|
1119
|
-
let
|
|
1119
|
+
let a = [];
|
|
1120
1120
|
return e.forEach((r) => {
|
|
1121
1121
|
if (re(r)) {
|
|
1122
1122
|
let u = Y(r);
|
|
1123
|
-
|
|
1123
|
+
a.push([
|
|
1124
1124
|
r.tarKey,
|
|
1125
1125
|
u
|
|
1126
1126
|
]);
|
|
1127
1127
|
}
|
|
1128
|
-
}),
|
|
1129
|
-
}, I = (e,
|
|
1130
|
-
if (e.customFunc &&
|
|
1128
|
+
}), a;
|
|
1129
|
+
}, I = (e, a) => {
|
|
1130
|
+
if (e.customFunc && _(e.successFunc)) {
|
|
1131
1131
|
const r = {
|
|
1132
1132
|
helper: { ...i, ...k }
|
|
1133
1133
|
};
|
|
1134
1134
|
try {
|
|
1135
1135
|
let u = e.successFunc.toString().trim();
|
|
1136
|
-
u.indexOf("function") < 0 && (u = `function(res) { ${u} }`), new Function("context", `with(context) {return ${u}}`)(r)(
|
|
1136
|
+
u.indexOf("function") < 0 && (u = `function(res) { ${u} }`), new Function("context", `with(context) {return ${u}}`)(r)(a);
|
|
1137
1137
|
} catch (u) {
|
|
1138
1138
|
console.error("[_dataRequestHandler4CustomSuccessFunc]处理自定义成功函数时出错:", u);
|
|
1139
1139
|
}
|
|
1140
1140
|
}
|
|
1141
|
-
}, V = (e,
|
|
1142
|
-
if (e.customFunc &&
|
|
1141
|
+
}, V = (e, a, r) => {
|
|
1142
|
+
if (e.customFunc && _(e.errorFunc)) {
|
|
1143
1143
|
const u = {
|
|
1144
1144
|
helper: { ...i, ...k }
|
|
1145
1145
|
};
|
|
1146
1146
|
try {
|
|
1147
1147
|
let p = e.errorFunc.toString().trim();
|
|
1148
|
-
p.indexOf("function") < 0 && (p = "function (res,err){" + p + "}"), new Function("context", `with(context) {return ${p}}`)(u)(
|
|
1148
|
+
p.indexOf("function") < 0 && (p = "function (res,err){" + p + "}"), new Function("context", `with(context) {return ${p}}`)(u)(a, r);
|
|
1149
1149
|
} catch (p) {
|
|
1150
1150
|
console.error("[_dataRequestHandler4CustomErrorFunc]处理自定义失败函数时出错:", p);
|
|
1151
1151
|
}
|
|
1152
1152
|
}
|
|
1153
|
-
}, H = (e,
|
|
1154
|
-
if (L(
|
|
1153
|
+
}, H = (e, a) => {
|
|
1154
|
+
if (L(a) && a.length > 0) {
|
|
1155
1155
|
let r, u, p;
|
|
1156
|
-
for (let m = 0; m <
|
|
1157
|
-
r =
|
|
1156
|
+
for (let m = 0; m < a.length; m++)
|
|
1157
|
+
r = a[m], p = r.dataKey || "data", _(p) && Ee(e, p) && (u = Ie(e, p), _(r.ds) && _(r.tarKey) && vt(r, u));
|
|
1158
1158
|
}
|
|
1159
1159
|
}, q = async (e) => {
|
|
1160
|
-
let
|
|
1160
|
+
let a = [], r = {};
|
|
1161
1161
|
try {
|
|
1162
1162
|
(await Promise.allSettled([d.rawRequest(e)])).forEach((p, m) => {
|
|
1163
1163
|
if (p.status === "fulfilled")
|
|
1164
1164
|
m === 0 && (r = p.value);
|
|
1165
1165
|
else {
|
|
1166
1166
|
const P = p.reason;
|
|
1167
|
-
|
|
1167
|
+
a.push(P);
|
|
1168
1168
|
}
|
|
1169
1169
|
});
|
|
1170
1170
|
} catch (u) {
|
|
1171
|
-
console.error("_dataRequestHandler4Async 异常:", u),
|
|
1171
|
+
console.error("_dataRequestHandler4Async 异常:", u), a.push(u);
|
|
1172
1172
|
}
|
|
1173
|
-
return { errors:
|
|
1173
|
+
return { errors: a, resultInfo: r };
|
|
1174
1174
|
}, ie = (e) => {
|
|
1175
1175
|
if (e.method == "GET" || e.method == "get") {
|
|
1176
|
-
let
|
|
1177
|
-
if (/\{#.*?#\}/g.test(
|
|
1176
|
+
let a = e.url;
|
|
1177
|
+
if (/\{#.*?#\}/g.test(a)) {
|
|
1178
1178
|
let u = e.data || [], p = /* @__PURE__ */ new Set(), m = !1, P = null;
|
|
1179
|
-
if (
|
|
1179
|
+
if (a = a.replace(/\{#(.*?)#\}/g, (N, ee) => {
|
|
1180
1180
|
m = !1, P = null;
|
|
1181
1181
|
for (let ce = 0; ce < u.length; ce++)
|
|
1182
1182
|
if (ee == u[ce][0]) {
|
|
@@ -1186,13 +1186,13 @@ function Ze(t = {}, o = !0, l = {}) {
|
|
|
1186
1186
|
return m ? (p.add(ee), P) : N;
|
|
1187
1187
|
}), p.size > 0) {
|
|
1188
1188
|
let N = u.filter((ee, ce) => !p.has(ee[0]));
|
|
1189
|
-
e.url =
|
|
1189
|
+
e.url = a, e.data = N || [];
|
|
1190
1190
|
}
|
|
1191
1191
|
}
|
|
1192
1192
|
}
|
|
1193
1193
|
}, ge = async (e) => {
|
|
1194
|
-
if (e &&
|
|
1195
|
-
let
|
|
1194
|
+
if (e && _(e.url)) {
|
|
1195
|
+
let a = e.respParams || [], r = {};
|
|
1196
1196
|
r.url = e.url, r.externalRequest = e.external || !1, r.method = e.method || "GET", r.paramType = "object", r.data = G(e.params), r.headers = e.headers, e.series && (r.series = e.series, r.requestCount = e.requestCount || 0, r.time = e.time || 1e3), ie(r);
|
|
1197
1197
|
let u = null;
|
|
1198
1198
|
if (e.loading) {
|
|
@@ -1220,7 +1220,7 @@ function Ze(t = {}, o = !0, l = {}) {
|
|
|
1220
1220
|
let P = e.respTip || {};
|
|
1221
1221
|
Q(P);
|
|
1222
1222
|
}
|
|
1223
|
-
H(m,
|
|
1223
|
+
H(m, a), I(e, m);
|
|
1224
1224
|
} else {
|
|
1225
1225
|
if (e.enabledRespErrTip) {
|
|
1226
1226
|
let P = e.respErrTip || {};
|
|
@@ -1234,7 +1234,7 @@ function Ze(t = {}, o = !0, l = {}) {
|
|
|
1234
1234
|
let P = e.respTip || {};
|
|
1235
1235
|
Q(P);
|
|
1236
1236
|
}
|
|
1237
|
-
H(m,
|
|
1237
|
+
H(m, a);
|
|
1238
1238
|
}
|
|
1239
1239
|
I(e, m);
|
|
1240
1240
|
}
|
|
@@ -1246,7 +1246,7 @@ function Ze(t = {}, o = !0, l = {}) {
|
|
|
1246
1246
|
let P = e.respTip || {};
|
|
1247
1247
|
Q(P);
|
|
1248
1248
|
}
|
|
1249
|
-
H(m,
|
|
1249
|
+
H(m, a), I(e, m);
|
|
1250
1250
|
} else {
|
|
1251
1251
|
if (e.enabledRespErrTip) {
|
|
1252
1252
|
let P = e.respErrTip || {};
|
|
@@ -1260,7 +1260,7 @@ function Ze(t = {}, o = !0, l = {}) {
|
|
|
1260
1260
|
let P = e.respTip || {};
|
|
1261
1261
|
Q(P);
|
|
1262
1262
|
}
|
|
1263
|
-
H(m,
|
|
1263
|
+
H(m, a);
|
|
1264
1264
|
}
|
|
1265
1265
|
I(e, m);
|
|
1266
1266
|
}
|
|
@@ -1271,25 +1271,25 @@ function Ze(t = {}, o = !0, l = {}) {
|
|
|
1271
1271
|
}
|
|
1272
1272
|
V(e, null, m);
|
|
1273
1273
|
});
|
|
1274
|
-
p &&
|
|
1274
|
+
p && y.push(p);
|
|
1275
1275
|
}
|
|
1276
1276
|
}
|
|
1277
1277
|
}, Q = (e = {}) => {
|
|
1278
1278
|
e.tipType == "msg" ? he(e.type, e.msg, e.extParam) : e.tipType == "notify" && Re(e.type, e.msg, e.extParam);
|
|
1279
1279
|
}, Ce = (e) => {
|
|
1280
1280
|
if (e && L(e.params)) {
|
|
1281
|
-
let
|
|
1282
|
-
for (let u = 0; u <
|
|
1283
|
-
if (r =
|
|
1281
|
+
let a = e.params || [], r = null;
|
|
1282
|
+
for (let u = 0; u < a.length; u++)
|
|
1283
|
+
if (r = a[u], re(r)) {
|
|
1284
1284
|
let p = Y(r);
|
|
1285
1285
|
k.setDataCache(r.tarKey, p);
|
|
1286
1286
|
}
|
|
1287
1287
|
}
|
|
1288
1288
|
}, U = (e) => {
|
|
1289
1289
|
if (e && L(e.params)) {
|
|
1290
|
-
let
|
|
1291
|
-
for (let u = 0; u <
|
|
1292
|
-
if (r =
|
|
1290
|
+
let a = e.params || [], r = null;
|
|
1291
|
+
for (let u = 0; u < a.length; u++)
|
|
1292
|
+
if (r = a[u], _(r.ipn) && _(r.opn) && c.has(r.ipn)) {
|
|
1293
1293
|
let p = c.get(r.ipn), m = se.equals(p, r.ipv);
|
|
1294
1294
|
if (m)
|
|
1295
1295
|
c.set(r.opn, r.opv);
|
|
@@ -1301,9 +1301,9 @@ function Ze(t = {}, o = !0, l = {}) {
|
|
|
1301
1301
|
}
|
|
1302
1302
|
}, Me = (e) => {
|
|
1303
1303
|
if (e && L(e.params)) {
|
|
1304
|
-
let
|
|
1305
|
-
for (let u = 0; u <
|
|
1306
|
-
if (r =
|
|
1304
|
+
let a = e.params || [], r = null;
|
|
1305
|
+
for (let u = 0; u < a.length; u++)
|
|
1306
|
+
if (r = a[u], re(r)) {
|
|
1307
1307
|
let p = Y(r);
|
|
1308
1308
|
k.setParam(r.tarKey, p);
|
|
1309
1309
|
}
|
|
@@ -1315,35 +1315,35 @@ function Ze(t = {}, o = !0, l = {}) {
|
|
|
1315
1315
|
getParam: function(e) {
|
|
1316
1316
|
return c.get(e);
|
|
1317
1317
|
},
|
|
1318
|
-
setParam: function(e,
|
|
1319
|
-
c.set(e,
|
|
1318
|
+
setParam: function(e, a) {
|
|
1319
|
+
c.set(e, a);
|
|
1320
1320
|
},
|
|
1321
1321
|
getDataCache: function(e) {
|
|
1322
|
-
return
|
|
1322
|
+
return s.data[e];
|
|
1323
1323
|
},
|
|
1324
|
-
setDataCache: function(e,
|
|
1325
|
-
|
|
1324
|
+
setDataCache: function(e, a) {
|
|
1325
|
+
s.data[e] = a;
|
|
1326
1326
|
},
|
|
1327
1327
|
getContainerParam: function(e) {
|
|
1328
1328
|
return E(e);
|
|
1329
1329
|
},
|
|
1330
|
-
setSessionParam: function(e,
|
|
1331
|
-
sessionStorage.setItem(e,
|
|
1330
|
+
setSessionParam: function(e, a) {
|
|
1331
|
+
sessionStorage.setItem(e, a);
|
|
1332
1332
|
},
|
|
1333
1333
|
getSessionParam: function(e) {
|
|
1334
1334
|
return sessionStorage.getItem(e);
|
|
1335
1335
|
},
|
|
1336
|
-
setLocalParam: function(e,
|
|
1337
|
-
localStorage.setItem(e,
|
|
1336
|
+
setLocalParam: function(e, a) {
|
|
1337
|
+
localStorage.setItem(e, a);
|
|
1338
1338
|
},
|
|
1339
1339
|
getLocalParam: function(e) {
|
|
1340
1340
|
return localStorage.getItem(e);
|
|
1341
1341
|
},
|
|
1342
|
-
callCompMethod: function(e,
|
|
1343
|
-
K(
|
|
1342
|
+
callCompMethod: function(e, a, r = {}) {
|
|
1343
|
+
K(v) ? v(e, a, r) : console.error("compMethod is not function.");
|
|
1344
1344
|
},
|
|
1345
|
-
setJsCookie: function(e,
|
|
1346
|
-
Pe.set(e,
|
|
1345
|
+
setJsCookie: function(e, a, r = 30) {
|
|
1346
|
+
Pe.set(e, a, { expires: r });
|
|
1347
1347
|
},
|
|
1348
1348
|
getJsCookie: function(e) {
|
|
1349
1349
|
return Pe.get(e);
|
|
@@ -1351,11 +1351,11 @@ function Ze(t = {}, o = !0, l = {}) {
|
|
|
1351
1351
|
removeJsCookie: function(e) {
|
|
1352
1352
|
Pe.remove(e);
|
|
1353
1353
|
},
|
|
1354
|
-
log: function(e = "log",
|
|
1355
|
-
e == "error" ? console.error(
|
|
1354
|
+
log: function(e = "log", a) {
|
|
1355
|
+
e == "error" ? console.error(a) : e == "info" ? console.info(a) : e == "warn" ? console.warn(a) : console.log(a);
|
|
1356
1356
|
},
|
|
1357
1357
|
isNotEmptyStr: function(e) {
|
|
1358
|
-
return
|
|
1358
|
+
return _(e);
|
|
1359
1359
|
},
|
|
1360
1360
|
md5: function(e) {
|
|
1361
1361
|
return ut(e);
|
|
@@ -1363,49 +1363,55 @@ function Ze(t = {}, o = !0, l = {}) {
|
|
|
1363
1363
|
getDate: function(e) {
|
|
1364
1364
|
return it(e);
|
|
1365
1365
|
},
|
|
1366
|
-
formatDate: function(e,
|
|
1367
|
-
return at(e,
|
|
1366
|
+
formatDate: function(e, a = "yyyy-MM-dd") {
|
|
1367
|
+
return at(e, a);
|
|
1368
1368
|
},
|
|
1369
1369
|
closeDialog: function(e) {
|
|
1370
|
-
|
|
1370
|
+
b(e);
|
|
1371
1371
|
},
|
|
1372
|
-
hideAndShowComp: function(e,
|
|
1373
|
-
K(M) ? M(e,
|
|
1372
|
+
hideAndShowComp: function(e, a, r = {}) {
|
|
1373
|
+
K(M) ? M(e, a, r) : console.error("hideAndShowComp is not function.");
|
|
1374
1374
|
},
|
|
1375
|
-
callCompWrapMethod: function(e,
|
|
1375
|
+
callCompWrapMethod: function(e, a, r = {}) {
|
|
1376
1376
|
if (K(T))
|
|
1377
|
-
return T(e,
|
|
1377
|
+
return T(e, a, r);
|
|
1378
1378
|
console.error("compWrapMethod is not function.");
|
|
1379
|
+
},
|
|
1380
|
+
getRuleDataCache: function(e) {
|
|
1381
|
+
return s.rules[e];
|
|
1382
|
+
},
|
|
1383
|
+
setRuleDataCache: function(e, a, r = !1) {
|
|
1384
|
+
r ? s.rules[e] = a : s.rules[e] || (s.rules[e] = a);
|
|
1379
1385
|
}
|
|
1380
1386
|
}, yt = (e) => {
|
|
1381
|
-
if (e &&
|
|
1382
|
-
const
|
|
1387
|
+
if (e && _(e.funcBody)) {
|
|
1388
|
+
const a = {
|
|
1383
1389
|
helper: { ...i, ...k }
|
|
1384
1390
|
};
|
|
1385
1391
|
try {
|
|
1386
1392
|
let r = e.funcBody.toString().trim();
|
|
1387
|
-
r.indexOf("function") < 0 && (r = "function(){" + r + "}"), new Function("context", `with(context) {return ${r}}`)(
|
|
1393
|
+
r.indexOf("function") < 0 && (r = "function(){" + r + "}"), new Function("context", `with(context) {return ${r}}`)(a)();
|
|
1388
1394
|
} catch (r) {
|
|
1389
1395
|
console.error("处理自定义函数时出错:", r);
|
|
1390
1396
|
}
|
|
1391
1397
|
}
|
|
1392
1398
|
}, _t = (e) => {
|
|
1393
|
-
if (e &&
|
|
1399
|
+
if (e && _(e.type)) {
|
|
1394
1400
|
if (e.opType == "clear") {
|
|
1395
|
-
let
|
|
1396
|
-
|
|
1401
|
+
let a = e.type;
|
|
1402
|
+
a == "session" ? sessionStorage.clear() : a == "local" && localStorage.clear();
|
|
1397
1403
|
} else if (L(e.params) && e.params.length > 0) {
|
|
1398
|
-
let
|
|
1404
|
+
let a = e.type, r = e.params || [], u = null;
|
|
1399
1405
|
for (let p = 0; p < r.length; p++)
|
|
1400
1406
|
if (u = r[p], u.delete)
|
|
1401
|
-
|
|
1407
|
+
_(u.tarKey) && (a == "session" ? sessionStorage.removeItem(u.tarKey) : a == "local" ? localStorage.removeItem(u.tarKey) : a == "jsCookie" && k.removeJsCookie(u.tarKey));
|
|
1402
1408
|
else if (re(u)) {
|
|
1403
1409
|
let m = Y(u);
|
|
1404
|
-
|
|
1410
|
+
a == "session" ? sessionStorage.setItem(u.tarKey, m) : a == "local" ? localStorage.setItem(u.tarKey, m) : a == "jsCookie" && k.setJsCookie(u.tarKey, m);
|
|
1405
1411
|
}
|
|
1406
1412
|
}
|
|
1407
1413
|
}
|
|
1408
|
-
}, re = (e) =>
|
|
1414
|
+
}, re = (e) => _(e.ds) && _(e.tarKey) ? e.ds != "inputV" ? _(e.key) : !0 : !1, Y = (e) => {
|
|
1409
1415
|
if (e.ds == "inputP")
|
|
1410
1416
|
return k.getParam(e.key);
|
|
1411
1417
|
if (e.ds == "cacheP")
|
|
@@ -1423,39 +1429,39 @@ function Ze(t = {}, o = !0, l = {}) {
|
|
|
1423
1429
|
if (e.ds == "compStyle")
|
|
1424
1430
|
return K(i.getStyleValue) ? i.getStyleValue(e.key) : null;
|
|
1425
1431
|
if (e.ds == "_selectMenuValue" || e.ds == "_selectItemValue" || e.ds == "_changeItemValue") {
|
|
1426
|
-
let
|
|
1427
|
-
return Se(
|
|
1432
|
+
let a = k.getParam(e.ds);
|
|
1433
|
+
return Se(a) ? null : ne(a) ? _(e.key) && Ee(a, e.key) ? Ie(a, e.key) : null : a;
|
|
1428
1434
|
} else {
|
|
1429
|
-
let
|
|
1430
|
-
return
|
|
1435
|
+
let a = e.key;
|
|
1436
|
+
return a.toString().trim().indexOf("#json#") == 0 ? (a = a.toString().trim().replace("#json#", ""), lt(a, {})) : e.key;
|
|
1431
1437
|
}
|
|
1432
|
-
}, vt = (e,
|
|
1438
|
+
}, vt = (e, a) => {
|
|
1433
1439
|
if (e.ds == "cacheP")
|
|
1434
|
-
return k.setDataCache(e.tarKey,
|
|
1440
|
+
return k.setDataCache(e.tarKey, a);
|
|
1435
1441
|
if (e.ds == "inputP")
|
|
1436
|
-
return k.setParam(e.tarKey,
|
|
1442
|
+
return k.setParam(e.tarKey, a);
|
|
1437
1443
|
if (e.ds == "sessionP")
|
|
1438
|
-
return k.setSessionParam(e.tarKey,
|
|
1444
|
+
return k.setSessionParam(e.tarKey, a);
|
|
1439
1445
|
if (e.ds == "localP")
|
|
1440
|
-
return k.setLocalParam(e.tarKey,
|
|
1441
|
-
e.ds == "jsCookieP" ? k.setJsCookie(e.tarKey,
|
|
1442
|
-
},
|
|
1446
|
+
return k.setLocalParam(e.tarKey, a);
|
|
1447
|
+
e.ds == "jsCookieP" ? k.setJsCookie(e.tarKey, a) : e.ds == "compProp" ? K(i.setPropValue) && i.setPropValue(e.tarKey, a) : e.ds == "compStyle" && K(i.setStyleValue) && i.setStyleValue(e.tarKey, a);
|
|
1448
|
+
}, bt = (e) => {
|
|
1443
1449
|
if (e) {
|
|
1444
|
-
let
|
|
1450
|
+
let a = e.styleSets || [], r = e.propSets || [];
|
|
1445
1451
|
L(r) && r.length > 0 && K(i.setPropValue) && r.forEach((u, p) => {
|
|
1446
1452
|
if (re(u)) {
|
|
1447
1453
|
let m = Y(u);
|
|
1448
1454
|
i.setPropValue(u.tarKey, m);
|
|
1449
1455
|
}
|
|
1450
|
-
}), L(
|
|
1456
|
+
}), L(a) && a.length > 0 && K(i.setStyleValue) && a.forEach((u, p) => {
|
|
1451
1457
|
if (re(u)) {
|
|
1452
1458
|
let m = Y(u);
|
|
1453
1459
|
i.setStyleValue(u.tarKey, m);
|
|
1454
1460
|
}
|
|
1455
1461
|
});
|
|
1456
1462
|
}
|
|
1457
|
-
},
|
|
1458
|
-
let
|
|
1463
|
+
}, wt = (e) => {
|
|
1464
|
+
let a = !1;
|
|
1459
1465
|
if (e && L(e.params)) {
|
|
1460
1466
|
let r = e.params || [], u = null, p = !1;
|
|
1461
1467
|
for (let m = 0; m < r.length; m++) {
|
|
@@ -1463,46 +1469,46 @@ function Ze(t = {}, o = !0, l = {}) {
|
|
|
1463
1469
|
let P = Y(u), N = u.value;
|
|
1464
1470
|
const ee = u.opType;
|
|
1465
1471
|
if ([">", ">=", "<", "<=", "=="].includes(ee) && (P = ae(P), N = ae(N)), se[ee] ? p = se[ee](P, N) : p = !1, p) {
|
|
1466
|
-
|
|
1472
|
+
a = !0;
|
|
1467
1473
|
break;
|
|
1468
1474
|
}
|
|
1469
1475
|
}
|
|
1470
|
-
if (e.enabledTip &&
|
|
1476
|
+
if (e.enabledTip && a) {
|
|
1471
1477
|
let m = e.tip || {};
|
|
1472
1478
|
m.tipType == "msg" ? he(m.type, m.msg, m.extParam) : m.tipType == "notify" && Re(m.type, m.msg, m.extParam);
|
|
1473
1479
|
}
|
|
1474
1480
|
}
|
|
1475
|
-
return
|
|
1476
|
-
}, Ne = (e,
|
|
1477
|
-
if (e.customFunc &&
|
|
1481
|
+
return a;
|
|
1482
|
+
}, Ne = (e, a) => {
|
|
1483
|
+
if (e.customFunc && _(e.confirmFunc)) {
|
|
1478
1484
|
const r = {
|
|
1479
1485
|
helper: { ...i, ...k }
|
|
1480
1486
|
};
|
|
1481
1487
|
try {
|
|
1482
1488
|
let u = e.confirmFunc.toString().trim();
|
|
1483
|
-
u.indexOf("function") < 0 && (u = "function (promptValue){" + u + "}"), new Function("context", `with(context) {return ${u}}`)(r)(
|
|
1489
|
+
u.indexOf("function") < 0 && (u = "function (promptValue){" + u + "}"), new Function("context", `with(context) {return ${u}}`)(r)(a);
|
|
1484
1490
|
} catch (u) {
|
|
1485
1491
|
console.error("[__messageBoxHandler4CustomSuccessFunc]处理自定义失败函数时出错:", u);
|
|
1486
1492
|
}
|
|
1487
1493
|
}
|
|
1488
|
-
}, xt = (e,
|
|
1489
|
-
if (e.customFunc &&
|
|
1494
|
+
}, xt = (e, a) => {
|
|
1495
|
+
if (e.customFunc && _(e.errorFunc)) {
|
|
1490
1496
|
const r = {
|
|
1491
1497
|
helper: { ...i, ...k }
|
|
1492
1498
|
};
|
|
1493
1499
|
try {
|
|
1494
1500
|
let u = e.errorFunc.toString().trim();
|
|
1495
|
-
u.indexOf("function") < 0 && (u = "function (err){" + u + "}"), new Function("context", `with(context) {return ${u}}`)(r)(
|
|
1501
|
+
u.indexOf("function") < 0 && (u = "function (err){" + u + "}"), new Function("context", `with(context) {return ${u}}`)(r)(a);
|
|
1496
1502
|
} catch (u) {
|
|
1497
1503
|
console.error("[__messageBoxHandler4CustomErrorFunc]处理自定义失败函数时出错:", u);
|
|
1498
1504
|
}
|
|
1499
1505
|
}
|
|
1500
|
-
}, ye = (e,
|
|
1506
|
+
}, ye = (e, a) => {
|
|
1501
1507
|
if (e.customFunc) {
|
|
1502
1508
|
let r = "";
|
|
1503
|
-
if (
|
|
1509
|
+
if (a == "cancel" && _(e.cancelFunc))
|
|
1504
1510
|
r = e.cancelFunc;
|
|
1505
|
-
else if (
|
|
1511
|
+
else if (a == "close" && _(e.closeFunc))
|
|
1506
1512
|
r = e.closeFunc;
|
|
1507
1513
|
else
|
|
1508
1514
|
return;
|
|
@@ -1517,8 +1523,8 @@ function Ze(t = {}, o = !0, l = {}) {
|
|
|
1517
1523
|
}
|
|
1518
1524
|
}
|
|
1519
1525
|
}, St = async (e) => {
|
|
1520
|
-
let
|
|
1521
|
-
if (e &&
|
|
1526
|
+
let a = !1;
|
|
1527
|
+
if (e && _(e.type)) {
|
|
1522
1528
|
let r = {
|
|
1523
1529
|
...e.params,
|
|
1524
1530
|
type: e.msgType || "info",
|
|
@@ -1527,71 +1533,71 @@ function Ze(t = {}, o = !0, l = {}) {
|
|
|
1527
1533
|
};
|
|
1528
1534
|
if (e.type == "confirm") {
|
|
1529
1535
|
const { errors: u, resultInfo: p } = await ht(e.title, e.message, r);
|
|
1530
|
-
u && u.length > 0 ? u[0] == "cancel" ? ye(e, "cancel") : u[0] == "close" && ye(e, "close") : p == "confirm" && (
|
|
1536
|
+
u && u.length > 0 ? u[0] == "cancel" ? ye(e, "cancel") : u[0] == "close" && ye(e, "close") : p == "confirm" && (a = !0, Ne(e, null));
|
|
1531
1537
|
} else if (e.type == "prompt") {
|
|
1532
|
-
if (
|
|
1538
|
+
if (_(r.inputPattern)) {
|
|
1533
1539
|
const m = r.inputPattern.replace(/\\\\/g, "\\");
|
|
1534
1540
|
r.inputPattern = new RegExp(m);
|
|
1535
1541
|
}
|
|
1536
1542
|
const { errors: u, resultInfo: p } = await gt(e.title, e.message, r);
|
|
1537
|
-
u && u.length > 0 ? u[0] == "cancel" ? ye(e, "cancel") : u[0] == "close" ? ye(e, "close") : xt(e, u[0]) : p.action == "confirm" && (
|
|
1543
|
+
u && u.length > 0 ? u[0] == "cancel" ? ye(e, "cancel") : u[0] == "close" ? ye(e, "close") : xt(e, u[0]) : p.action == "confirm" && (a = !0, k.setParam("promptValue", p.value), Ne(e, p.value));
|
|
1538
1544
|
}
|
|
1539
|
-
e.autoBlock || (
|
|
1545
|
+
e.autoBlock || (a = !0);
|
|
1540
1546
|
} else
|
|
1541
|
-
|
|
1542
|
-
return
|
|
1547
|
+
a = !0;
|
|
1548
|
+
return a;
|
|
1543
1549
|
}, Ct = (e) => {
|
|
1544
|
-
if (e &&
|
|
1545
|
-
let
|
|
1550
|
+
if (e && _(e.pageId)) {
|
|
1551
|
+
let a = { ...e };
|
|
1546
1552
|
if (e.customPosition) {
|
|
1547
1553
|
let r = (k.getParam("elementRectLeft") ?? 0) + (pe(e.leftOffset) ? e.leftOffset : 0), u = (k.getParam("elementRectTop") ?? 0) + (pe(e.topOffset) ? e.topOffset : 0);
|
|
1548
|
-
|
|
1554
|
+
a.absLeft = r, a.absTop = u;
|
|
1549
1555
|
}
|
|
1550
|
-
|
|
1556
|
+
g(a);
|
|
1551
1557
|
}
|
|
1552
1558
|
}, Mt = (e) => {
|
|
1553
1559
|
if (e && L(e.params)) {
|
|
1554
|
-
let
|
|
1555
|
-
for (let u = 0; u <
|
|
1556
|
-
if (r =
|
|
1560
|
+
let a = e.params || [], r = null;
|
|
1561
|
+
for (let u = 0; u < a.length; u++)
|
|
1562
|
+
if (r = a[u], _(r.compId)) {
|
|
1557
1563
|
let p = r.options || {};
|
|
1558
1564
|
r.type == "s" ? k.hideAndShowComp(r.compId, !0, p) : k.hideAndShowComp(r.compId, !1, p);
|
|
1559
1565
|
}
|
|
1560
1566
|
}
|
|
1561
1567
|
}, Pt = (e) => {
|
|
1562
1568
|
if (e) {
|
|
1563
|
-
let
|
|
1569
|
+
let a = e.interval ?? 1e3, r = setInterval(
|
|
1564
1570
|
() => {
|
|
1565
|
-
|
|
1571
|
+
Z("debug", "定时器触发..."), Ht();
|
|
1566
1572
|
},
|
|
1567
|
-
|
|
1573
|
+
a
|
|
1568
1574
|
);
|
|
1569
|
-
|
|
1575
|
+
C.push(r);
|
|
1570
1576
|
}
|
|
1571
|
-
}, Vt = (e,
|
|
1572
|
-
if (e &&
|
|
1573
|
-
let r =
|
|
1577
|
+
}, Vt = (e, a = {}) => {
|
|
1578
|
+
if (e && _(e.eventId)) {
|
|
1579
|
+
let r = a.eventIds || [];
|
|
1574
1580
|
if (r.findIndex((p) => p == e.eventId) < 0) {
|
|
1575
1581
|
let p = Object.keys(n);
|
|
1576
1582
|
for (let m = 0; m < p.length; m++) {
|
|
1577
1583
|
let P = n[p[m]] || [];
|
|
1578
1584
|
for (const N of P)
|
|
1579
1585
|
if (N.id == e.eventId) {
|
|
1580
|
-
if (r.push(N.id),
|
|
1581
|
-
_e(N.actionList,
|
|
1586
|
+
if (r.push(N.id), a.eventIds = [...r], N.default) {
|
|
1587
|
+
_e(N.actionList, a);
|
|
1582
1588
|
break;
|
|
1583
|
-
} else Le(N) && _e(N.actionList,
|
|
1589
|
+
} else Le(N) && _e(N.actionList, a);
|
|
1584
1590
|
break;
|
|
1585
1591
|
}
|
|
1586
1592
|
}
|
|
1587
1593
|
} else
|
|
1588
|
-
|
|
1594
|
+
Z("error", "存在循环调用,不执行事件配置", e.eventId);
|
|
1589
1595
|
}
|
|
1590
|
-
}, _e = async (e = [],
|
|
1596
|
+
}, _e = async (e = [], a = {}) => {
|
|
1591
1597
|
let r = null;
|
|
1592
1598
|
for (let u = 0; u < e.length; u++)
|
|
1593
1599
|
if (r = e[u], r.action == "router")
|
|
1594
|
-
|
|
1600
|
+
S(r.config);
|
|
1595
1601
|
else if (r.action == "dataRequest")
|
|
1596
1602
|
await ge(r.config);
|
|
1597
1603
|
else if (r.action == "cacheSet")
|
|
@@ -1605,9 +1611,9 @@ function Ze(t = {}, o = !0, l = {}) {
|
|
|
1605
1611
|
else if (r.action == "webStorage")
|
|
1606
1612
|
_t(r.config);
|
|
1607
1613
|
else if (r.action == "componentSet")
|
|
1608
|
-
|
|
1614
|
+
bt(r.config);
|
|
1609
1615
|
else if (r.action == "actionEnd") {
|
|
1610
|
-
if (
|
|
1616
|
+
if (wt(r.config)) {
|
|
1611
1617
|
console.log("actionEnd is true. break");
|
|
1612
1618
|
break;
|
|
1613
1619
|
}
|
|
@@ -1619,12 +1625,12 @@ function Ze(t = {}, o = !0, l = {}) {
|
|
|
1619
1625
|
} else if (r.action == "openDialog") {
|
|
1620
1626
|
Ct(r.config);
|
|
1621
1627
|
break;
|
|
1622
|
-
} else r.action == "showAndHideSet" ? Mt(r.config) : r.action == "timerSet" ? Pt(r.config) : r.action == "performEvent" && Vt(r.config,
|
|
1628
|
+
} else r.action == "showAndHideSet" ? Mt(r.config) : r.action == "timerSet" ? Pt(r.config) : r.action == "performEvent" && Vt(r.config, a);
|
|
1623
1629
|
}, He = (e) => e == "inputV" || e == "_selectMenuValue" || e == "_selectItemValue" || e == "_changeItemValue", Ot = (e) => {
|
|
1624
|
-
let
|
|
1625
|
-
|
|
1630
|
+
let a = !1, r, u, p = !1;
|
|
1631
|
+
_(e.lType) && (He(e.lType) ? p = !0 : p = _(e.lValue));
|
|
1626
1632
|
let m = !1;
|
|
1627
|
-
if (
|
|
1633
|
+
if (_(e.rType) && (He(e.rType) ? m = !0 : m = _(e.rValue)), p && m) {
|
|
1628
1634
|
r = Y({
|
|
1629
1635
|
ds: e.lType,
|
|
1630
1636
|
key: e.lValue
|
|
@@ -1633,14 +1639,14 @@ function Ze(t = {}, o = !0, l = {}) {
|
|
|
1633
1639
|
key: e.rValue
|
|
1634
1640
|
});
|
|
1635
1641
|
const P = e.opType;
|
|
1636
|
-
[">", ">=", "<", "<=", "=="].includes(P) && (r = ae(r), u = ae(u)), se[P] ?
|
|
1642
|
+
[">", ">=", "<", "<=", "=="].includes(P) && (r = ae(r), u = ae(u)), se[P] ? a = se[P](r, u) : (a = !1, console.warn("useEventHandler Invalid operator: " + P));
|
|
1637
1643
|
} else
|
|
1638
1644
|
console.warn("_judgeCondition warn: the condition config is error.");
|
|
1639
|
-
return
|
|
1645
|
+
return a;
|
|
1640
1646
|
}, Le = (e) => {
|
|
1641
|
-
let
|
|
1647
|
+
let a = !1;
|
|
1642
1648
|
if (e.default)
|
|
1643
|
-
|
|
1649
|
+
a = !0;
|
|
1644
1650
|
else {
|
|
1645
1651
|
let r = e.condition || [];
|
|
1646
1652
|
if (r.length > 0) {
|
|
@@ -1650,53 +1656,53 @@ function Ze(t = {}, o = !0, l = {}) {
|
|
|
1650
1656
|
u = !1;
|
|
1651
1657
|
break;
|
|
1652
1658
|
}
|
|
1653
|
-
u && (
|
|
1659
|
+
u && (a = !0);
|
|
1654
1660
|
} else
|
|
1655
|
-
|
|
1661
|
+
a = !0;
|
|
1656
1662
|
}
|
|
1657
|
-
return
|
|
1663
|
+
return a;
|
|
1658
1664
|
}, W = (e = []) => {
|
|
1659
|
-
for (const
|
|
1665
|
+
for (const a of e) {
|
|
1660
1666
|
let r = {};
|
|
1661
|
-
if (r.eventIds = [
|
|
1662
|
-
_e(
|
|
1667
|
+
if (r.eventIds = [a.id], a.default) {
|
|
1668
|
+
_e(a.actionList, r);
|
|
1663
1669
|
break;
|
|
1664
|
-
} else Le(
|
|
1670
|
+
} else Le(a) && _e(a.actionList, r);
|
|
1665
1671
|
}
|
|
1666
1672
|
}, kt = (e) => {
|
|
1667
|
-
f || (
|
|
1673
|
+
f || (w && clearTimeout(w), w = setTimeout(() => {
|
|
1668
1674
|
if (n && n.hasOwnProperty("onMouseClick")) {
|
|
1669
1675
|
if (e && e.target) {
|
|
1670
1676
|
const r = e.target.getBoundingClientRect();
|
|
1671
1677
|
X("elementRect", r), X("elementRectLeft", r.left), X("elementRectTop", r.top);
|
|
1672
1678
|
}
|
|
1673
|
-
let
|
|
1674
|
-
W(
|
|
1679
|
+
let a = n.onMouseClick;
|
|
1680
|
+
W(a);
|
|
1675
1681
|
}
|
|
1676
|
-
},
|
|
1682
|
+
}, x));
|
|
1677
1683
|
}, It = (e) => {
|
|
1678
|
-
if (!f && (
|
|
1684
|
+
if (!f && (w && clearTimeout(w), n && n.hasOwnProperty("onMouseDblClick"))) {
|
|
1679
1685
|
if (e && e.target) {
|
|
1680
1686
|
const r = e.target.getBoundingClientRect();
|
|
1681
1687
|
X("elementRect", r), X("elementRectLeft", r.left), X("elementRectTop", r.top);
|
|
1682
1688
|
}
|
|
1683
|
-
let
|
|
1684
|
-
W(
|
|
1689
|
+
let a = n.onMouseDblClick;
|
|
1690
|
+
W(a);
|
|
1685
1691
|
}
|
|
1686
|
-
}, Et = (e,
|
|
1687
|
-
if (!f && (X("_selectMenuValue",
|
|
1692
|
+
}, Et = (e, a) => {
|
|
1693
|
+
if (!f && (X("_selectMenuValue", a), n && n.hasOwnProperty("onContextMenu"))) {
|
|
1688
1694
|
let r = n.onContextMenu;
|
|
1689
1695
|
W(r);
|
|
1690
1696
|
}
|
|
1691
1697
|
}, Tt = (e) => {
|
|
1692
1698
|
if (!f && (X("_selectItemValue", e), n && n.hasOwnProperty("selectItem"))) {
|
|
1693
|
-
let
|
|
1694
|
-
W(
|
|
1699
|
+
let a = n.selectItem;
|
|
1700
|
+
W(a);
|
|
1695
1701
|
}
|
|
1696
1702
|
}, Rt = (e) => {
|
|
1697
1703
|
if (!f && (X("_changeItemValue", e), n && n.hasOwnProperty("changeValue"))) {
|
|
1698
|
-
let
|
|
1699
|
-
W(
|
|
1704
|
+
let a = n.changeValue;
|
|
1705
|
+
W(a);
|
|
1700
1706
|
}
|
|
1701
1707
|
}, Dt = () => {
|
|
1702
1708
|
if (!f && n && n.hasOwnProperty("keyEnter")) {
|
|
@@ -1714,21 +1720,21 @@ function Ze(t = {}, o = !0, l = {}) {
|
|
|
1714
1720
|
W(e);
|
|
1715
1721
|
}
|
|
1716
1722
|
}, Ft = () => {
|
|
1717
|
-
if (
|
|
1718
|
-
for (let e = 0; e <
|
|
1723
|
+
if (C && C.length > 0)
|
|
1724
|
+
for (let e = 0; e < C.length; e++)
|
|
1719
1725
|
try {
|
|
1720
|
-
clearInterval(
|
|
1721
|
-
} catch (
|
|
1722
|
-
console.error("cancel request error",
|
|
1726
|
+
clearInterval(C[e]);
|
|
1727
|
+
} catch (a) {
|
|
1728
|
+
console.error("cancel request error", a);
|
|
1723
1729
|
}
|
|
1724
1730
|
}, Bt = () => {
|
|
1725
1731
|
if (Ft(), !f) {
|
|
1726
|
-
if (
|
|
1727
|
-
for (let e = 0; e <
|
|
1732
|
+
if (y && y.length > 0)
|
|
1733
|
+
for (let e = 0; e < y.length; e++)
|
|
1728
1734
|
try {
|
|
1729
|
-
|
|
1730
|
-
} catch (
|
|
1731
|
-
console.error("cancel request error",
|
|
1735
|
+
y[e] && y[e]();
|
|
1736
|
+
} catch (a) {
|
|
1737
|
+
console.error("cancel request error", a);
|
|
1732
1738
|
}
|
|
1733
1739
|
if (n && n.hasOwnProperty("onBeforeUnmount")) {
|
|
1734
1740
|
let e = n.onBeforeUnmount;
|
|
@@ -1745,8 +1751,8 @@ function Ze(t = {}, o = !0, l = {}) {
|
|
|
1745
1751
|
let e = n.timerTrigger;
|
|
1746
1752
|
W(e);
|
|
1747
1753
|
}
|
|
1748
|
-
}, X = (e,
|
|
1749
|
-
k.setParam(e,
|
|
1754
|
+
}, X = (e, a) => {
|
|
1755
|
+
k.setParam(e, a);
|
|
1750
1756
|
};
|
|
1751
1757
|
return {
|
|
1752
1758
|
handleClick: kt,
|
|
@@ -1817,12 +1823,12 @@ const Nn = /* @__PURE__ */ Object.assign({
|
|
|
1817
1823
|
}
|
|
1818
1824
|
},
|
|
1819
1825
|
setup(t, { expose: o }) {
|
|
1820
|
-
const l = t, n = me(), f = Xe(n), i = D(null), c = O(() => l.propValue || {}), d = O(() => l.element || {}),
|
|
1826
|
+
const l = t, n = me(), f = Xe(n), i = D(null), c = O(() => l.propValue || {}), d = O(() => l.element || {}), s = O(() => c.value.components || []), h = O(() => s.value.map((I) => {
|
|
1821
1827
|
let V = { ...I }, H = M(I.groupStyle);
|
|
1822
1828
|
return V.computedStyle = H, V.style && (V.style.width = V.computedStyle.width, V.style.height = V.computedStyle.height), V;
|
|
1823
|
-
})),
|
|
1829
|
+
})), v = O(() => d.value.events || []), y = We(), g = Je(), b = $e(c, d, y);
|
|
1824
1830
|
Ke(() => {
|
|
1825
|
-
i.value = Ze(
|
|
1831
|
+
i.value = Ze(v.value, l.designStatus, b), i.value?.beforeMount();
|
|
1826
1832
|
}), xe(() => {
|
|
1827
1833
|
i.value?.mounted();
|
|
1828
1834
|
}), ze(() => {
|
|
@@ -1830,26 +1836,26 @@ const Nn = /* @__PURE__ */ Object.assign({
|
|
|
1830
1836
|
}), Ue(() => {
|
|
1831
1837
|
i.value?.unmounted();
|
|
1832
1838
|
});
|
|
1833
|
-
const
|
|
1839
|
+
const w = (I) => {
|
|
1834
1840
|
i.value?.setParam(I);
|
|
1835
|
-
},
|
|
1841
|
+
}, x = (I) => {
|
|
1836
1842
|
i.value?.handleDblClick(I);
|
|
1837
1843
|
}, M = (I) => {
|
|
1838
1844
|
if (!I || !d.value?.style) return {};
|
|
1839
1845
|
let V = { ...I }, H = d.value.style.width, q = d.value.style.height;
|
|
1840
1846
|
return V.width = Math.floor(parseFloat(V.width) / 100 * H), V.height = Math.floor(parseFloat(V.height) / 100 * q), V.top = Math.floor(parseFloat(V.top) / 100 * q), V.left = Math.floor(parseFloat(V.left) / 100 * H), V;
|
|
1841
|
-
},
|
|
1842
|
-
I ?
|
|
1843
|
-
}, E = (I) =>
|
|
1844
|
-
if (
|
|
1847
|
+
}, C = de({}), T = (I, V) => {
|
|
1848
|
+
I ? C[`Ve${V}`] = I : delete C[`Ve${V}`];
|
|
1849
|
+
}, E = (I) => C[`Ve${I}`], S = (I, V, H) => {
|
|
1850
|
+
if (_(I) && _(V)) {
|
|
1845
1851
|
const q = E(I);
|
|
1846
1852
|
q && q[V] && (H ? q[V](H) : q[V]());
|
|
1847
1853
|
}
|
|
1848
1854
|
};
|
|
1849
1855
|
o({
|
|
1850
|
-
callGroupCompMethod:
|
|
1856
|
+
callGroupCompMethod: S
|
|
1851
1857
|
});
|
|
1852
|
-
const G = { props: l, dataCache: n, smartData: f, eventHandler: i, propValue: c, element: d, components:
|
|
1858
|
+
const G = { props: l, dataCache: n, smartData: f, eventHandler: i, propValue: c, element: d, components: s, computedComponents: h, events: v, router: y, route: g, compContext: b, handleClick: w, handleDblClick: x, calcCompStyle: M, componentRefs: C, setComponentRef: T, getComponentRef: E, callGroupCompMethod: S, get useDataCacheStore() {
|
|
1853
1859
|
return me;
|
|
1854
1860
|
}, get createSmartAccessor() {
|
|
1855
1861
|
return Xe;
|
|
@@ -1864,7 +1870,7 @@ const Nn = /* @__PURE__ */ Object.assign({
|
|
|
1864
1870
|
}, get getStyle() {
|
|
1865
1871
|
return dt;
|
|
1866
1872
|
}, get isNotEmpty() {
|
|
1867
|
-
return
|
|
1873
|
+
return _;
|
|
1868
1874
|
} };
|
|
1869
1875
|
return Object.defineProperty(G, "__isScriptSetup", { enumerable: !1, value: !0 }), G;
|
|
1870
1876
|
}
|
|
@@ -1872,53 +1878,53 @@ const Nn = /* @__PURE__ */ Object.assign({
|
|
|
1872
1878
|
function Hn(t, o, l, n, f, i) {
|
|
1873
1879
|
return A(), z("div", { class: "group" }, [
|
|
1874
1880
|
oe("div", null, [
|
|
1875
|
-
(A(!0), z(je, null, Fe(n.computedComponents, (c) => (A(), J(
|
|
1881
|
+
(A(!0), z(je, null, Fe(n.computedComponents, (c) => (A(), J(be(c.component), {
|
|
1876
1882
|
id: "component" + c.id,
|
|
1877
1883
|
ref_for: !0,
|
|
1878
1884
|
ref: (d) => n.setComponentRef(d, c.id),
|
|
1879
1885
|
key: c.id,
|
|
1880
1886
|
class: "component",
|
|
1881
|
-
style:
|
|
1887
|
+
style: we(n.getStyle(c.computedStyle)),
|
|
1882
1888
|
"prop-value": c.propValue,
|
|
1883
1889
|
element: c
|
|
1884
1890
|
}, null, 8, ["id", "style", "prop-value", "element"]))), 128))
|
|
1885
1891
|
])
|
|
1886
1892
|
]);
|
|
1887
1893
|
}
|
|
1888
|
-
const Ln = /* @__PURE__ */
|
|
1894
|
+
const Ln = /* @__PURE__ */ $(Nn, [["render", Hn], ["__scopeId", "data-v-20de9881"], ["__file", "Component.vue"]]), qn = /* @__PURE__ */ Object.assign({
|
|
1889
1895
|
name: "VEDataCache"
|
|
1890
1896
|
}, {
|
|
1891
1897
|
__name: "index",
|
|
1892
1898
|
setup(t, { expose: o }) {
|
|
1893
1899
|
o();
|
|
1894
|
-
const l = D(null), n = D(null), f = D([]), i = D(0), c = me(), d = D(!1),
|
|
1900
|
+
const l = D(null), n = D(null), f = D([]), i = D(0), c = me(), d = D(!1), s = D({
|
|
1895
1901
|
id: "",
|
|
1896
1902
|
fuzzyQry: !1,
|
|
1897
1903
|
pageNum: 1,
|
|
1898
1904
|
pageSize: 15
|
|
1899
1905
|
}), h = () => {
|
|
1900
|
-
|
|
1901
|
-
},
|
|
1906
|
+
s.value.pageNum = 1, y();
|
|
1907
|
+
}, v = () => {
|
|
1902
1908
|
l.value?.resetFields(), h();
|
|
1903
|
-
},
|
|
1904
|
-
if (!
|
|
1909
|
+
}, y = () => {
|
|
1910
|
+
if (!_(s.value.id)) {
|
|
1905
1911
|
i.value = 0, f.value = [];
|
|
1906
1912
|
return;
|
|
1907
1913
|
}
|
|
1908
1914
|
if (d.value = !0, c.data)
|
|
1909
|
-
if (
|
|
1910
|
-
let
|
|
1911
|
-
for (let M = 0; M <
|
|
1912
|
-
|
|
1913
|
-
if (i.value =
|
|
1914
|
-
let M = (
|
|
1915
|
+
if (s.value.fuzzyQry) {
|
|
1916
|
+
let w = Object.keys(c.data), x = [];
|
|
1917
|
+
for (let M = 0; M < w.length; M++)
|
|
1918
|
+
w[M].startsWith(s.value.id) && x.push(w[M]);
|
|
1919
|
+
if (i.value = x.length, i.value > 0) {
|
|
1920
|
+
let M = (s.value.pageNum - 1) * s.value.pageSize, C = M + s.value.pageSize;
|
|
1915
1921
|
if (M <= i.value) {
|
|
1916
1922
|
let T = [];
|
|
1917
|
-
for (let E = M; E <
|
|
1923
|
+
for (let E = M; E < C; E++)
|
|
1918
1924
|
if (E < i.value) {
|
|
1919
|
-
let
|
|
1925
|
+
let S = c.data[x[E]], G = ne(S) ? ve(S) : S;
|
|
1920
1926
|
T.push({
|
|
1921
|
-
key:
|
|
1927
|
+
key: x[E],
|
|
1922
1928
|
value: G
|
|
1923
1929
|
});
|
|
1924
1930
|
}
|
|
@@ -1928,27 +1934,27 @@ const Ln = /* @__PURE__ */ Z(Nn, [["render", Hn], ["__scopeId", "data-v-20de9881
|
|
|
1928
1934
|
} else
|
|
1929
1935
|
f.value = [];
|
|
1930
1936
|
} else {
|
|
1931
|
-
let
|
|
1932
|
-
if (Se(
|
|
1937
|
+
let w = c.data[s.value.id];
|
|
1938
|
+
if (Se(w))
|
|
1933
1939
|
i.value = 0, f.value = [];
|
|
1934
1940
|
else {
|
|
1935
1941
|
i.value = 1;
|
|
1936
|
-
let
|
|
1942
|
+
let x = ne(w) ? ve(w) : w;
|
|
1937
1943
|
f.value = [{
|
|
1938
|
-
key:
|
|
1939
|
-
value:
|
|
1944
|
+
key: s.value.id,
|
|
1945
|
+
value: x
|
|
1940
1946
|
}];
|
|
1941
1947
|
}
|
|
1942
1948
|
}
|
|
1943
1949
|
d.value = !1;
|
|
1944
|
-
},
|
|
1945
|
-
|
|
1950
|
+
}, b = { queryForm: l, resultTableRef: n, dataList: f, total: i, dataCache: c, loading: d, queryParams: s, handleQuery: h, resetQuery: v, getList: y, handleCopyData: (w) => {
|
|
1951
|
+
w && ke(w.value) && he("success", "复制成功");
|
|
1946
1952
|
}, ref: D, get useDataCacheStore() {
|
|
1947
1953
|
return me;
|
|
1948
1954
|
}, get copyToClipboard() {
|
|
1949
1955
|
return ke;
|
|
1950
1956
|
}, get isNotEmpty() {
|
|
1951
|
-
return
|
|
1957
|
+
return _;
|
|
1952
1958
|
}, get isNullOrUndefined() {
|
|
1953
1959
|
return Se;
|
|
1954
1960
|
}, get isObject() {
|
|
@@ -1958,14 +1964,14 @@ const Ln = /* @__PURE__ */ Z(Nn, [["render", Hn], ["__scopeId", "data-v-20de9881
|
|
|
1958
1964
|
}, get showMessage() {
|
|
1959
1965
|
return he;
|
|
1960
1966
|
} };
|
|
1961
|
-
return Object.defineProperty(
|
|
1967
|
+
return Object.defineProperty(b, "__isScriptSetup", { enumerable: !1, value: !0 }), b;
|
|
1962
1968
|
}
|
|
1963
1969
|
});
|
|
1964
1970
|
function Kn(t, o, l, n, f, i) {
|
|
1965
|
-
const c = B("el-input"), d = B("el-form-item"),
|
|
1971
|
+
const c = B("el-input"), d = B("el-form-item"), s = B("el-switch"), h = B("el-button"), v = B("el-form"), y = B("el-table-column"), g = B("el-table"), b = B("pagination"), w = Wt("loading");
|
|
1966
1972
|
return A(), z("div", { class: "panel-area" }, [
|
|
1967
1973
|
oe("div", { class: "panel-condition" }, [
|
|
1968
|
-
R(
|
|
1974
|
+
R(v, {
|
|
1969
1975
|
model: n.queryParams,
|
|
1970
1976
|
ref: "queryForm",
|
|
1971
1977
|
inline: !0
|
|
@@ -1978,7 +1984,7 @@ function Kn(t, o, l, n, f, i) {
|
|
|
1978
1984
|
default: j(() => [
|
|
1979
1985
|
R(c, {
|
|
1980
1986
|
modelValue: n.queryParams.id,
|
|
1981
|
-
"onUpdate:modelValue": o[0] || (o[0] = (
|
|
1987
|
+
"onUpdate:modelValue": o[0] || (o[0] = (x) => n.queryParams.id = x),
|
|
1982
1988
|
placeholder: "请输入缓存key",
|
|
1983
1989
|
clearable: "",
|
|
1984
1990
|
style: { width: "240px" },
|
|
@@ -1993,9 +1999,9 @@ function Kn(t, o, l, n, f, i) {
|
|
|
1993
1999
|
prop: "name"
|
|
1994
2000
|
}, {
|
|
1995
2001
|
default: j(() => [
|
|
1996
|
-
R(
|
|
2002
|
+
R(s, {
|
|
1997
2003
|
modelValue: n.queryParams.fuzzyQry,
|
|
1998
|
-
"onUpdate:modelValue": o[1] || (o[1] = (
|
|
2004
|
+
"onUpdate:modelValue": o[1] || (o[1] = (x) => n.queryParams.fuzzyQry = x),
|
|
1999
2005
|
"active-text": "模糊",
|
|
2000
2006
|
"inactive-text": "精确"
|
|
2001
2007
|
}, null, 8, ["modelValue"])
|
|
@@ -2039,7 +2045,7 @@ function Kn(t, o, l, n, f, i) {
|
|
|
2039
2045
|
F(`\r
|
|
2040
2046
|
\r
|
|
2041
2047
|
`),
|
|
2042
|
-
Oe((A(), J(
|
|
2048
|
+
Oe((A(), J(g, {
|
|
2043
2049
|
ref: "resultTableRef",
|
|
2044
2050
|
data: n.dataList,
|
|
2045
2051
|
stripe: "",
|
|
@@ -2047,13 +2053,13 @@ function Kn(t, o, l, n, f, i) {
|
|
|
2047
2053
|
"highlight-current-row": ""
|
|
2048
2054
|
}, {
|
|
2049
2055
|
default: j(() => [
|
|
2050
|
-
R(
|
|
2056
|
+
R(y, {
|
|
2051
2057
|
type: "index",
|
|
2052
2058
|
align: "center",
|
|
2053
2059
|
width: "60"
|
|
2054
2060
|
}),
|
|
2055
2061
|
F(),
|
|
2056
|
-
R(
|
|
2062
|
+
R(y, {
|
|
2057
2063
|
label: "缓存Key",
|
|
2058
2064
|
align: "center",
|
|
2059
2065
|
property: "key",
|
|
@@ -2061,7 +2067,7 @@ function Kn(t, o, l, n, f, i) {
|
|
|
2061
2067
|
"min-width": "200"
|
|
2062
2068
|
}),
|
|
2063
2069
|
F(),
|
|
2064
|
-
R(
|
|
2070
|
+
R(y, {
|
|
2065
2071
|
label: "缓存值",
|
|
2066
2072
|
align: "left",
|
|
2067
2073
|
property: "value",
|
|
@@ -2069,17 +2075,17 @@ function Kn(t, o, l, n, f, i) {
|
|
|
2069
2075
|
"min-width": "400"
|
|
2070
2076
|
}),
|
|
2071
2077
|
F(),
|
|
2072
|
-
R(
|
|
2078
|
+
R(y, {
|
|
2073
2079
|
label: "操作",
|
|
2074
2080
|
align: "center",
|
|
2075
2081
|
"show-overflow-tooltip": !0,
|
|
2076
2082
|
"min-width": "80"
|
|
2077
2083
|
}, {
|
|
2078
|
-
default: j((
|
|
2084
|
+
default: j((x) => [
|
|
2079
2085
|
R(h, {
|
|
2080
2086
|
link: "",
|
|
2081
2087
|
icon: "document",
|
|
2082
|
-
onClick: (M) => n.handleCopyData(
|
|
2088
|
+
onClick: (M) => n.handleCopyData(x.row)
|
|
2083
2089
|
}, {
|
|
2084
2090
|
default: j(() => [
|
|
2085
2091
|
F(`复制数据\r
|
|
@@ -2093,15 +2099,15 @@ function Kn(t, o, l, n, f, i) {
|
|
|
2093
2099
|
]),
|
|
2094
2100
|
_: 1
|
|
2095
2101
|
}, 8, ["data"])), [
|
|
2096
|
-
[
|
|
2102
|
+
[w, n.loading]
|
|
2097
2103
|
]),
|
|
2098
2104
|
F(),
|
|
2099
|
-
Oe(R(
|
|
2105
|
+
Oe(R(b, {
|
|
2100
2106
|
total: n.total,
|
|
2101
2107
|
page: n.queryParams.pageNum,
|
|
2102
|
-
"onUpdate:page": o[2] || (o[2] = (
|
|
2108
|
+
"onUpdate:page": o[2] || (o[2] = (x) => n.queryParams.pageNum = x),
|
|
2103
2109
|
limit: n.queryParams.pageSize,
|
|
2104
|
-
"onUpdate:limit": o[3] || (o[3] = (
|
|
2110
|
+
"onUpdate:limit": o[3] || (o[3] = (x) => n.queryParams.pageSize = x),
|
|
2105
2111
|
pageSizes: [15, 20, 30, 50],
|
|
2106
2112
|
onPagination: n.getList
|
|
2107
2113
|
}, null, 8, ["total", "page", "limit"]), [
|
|
@@ -2110,8 +2116,8 @@ function Kn(t, o, l, n, f, i) {
|
|
|
2110
2116
|
])
|
|
2111
2117
|
]);
|
|
2112
2118
|
}
|
|
2113
|
-
const zn = /* @__PURE__ */
|
|
2114
|
-
|
|
2119
|
+
const zn = /* @__PURE__ */ $(qn, [["render", Kn], ["__scopeId", "data-v-55cea49e"], ["__file", "index.vue"]]), Un = [
|
|
2120
|
+
bn,
|
|
2115
2121
|
Mn,
|
|
2116
2122
|
En,
|
|
2117
2123
|
zn,
|