hflvloader 0.0.6 → 0.0.7
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 +159 -157
- 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 e=document.createElement("style");e.appendChild(document.createTextNode('@charset "UTF-8";.component[data-v-56b0e3e4]{position:absolute}.canvas-container[data-v-87c1142c]{width:100%;height:100%;display:flex;align-items:center;justify-content:center;margin:auto;overflow:hidden}.canvas-container .canvas[data-v-87c1142c]{position:relative;margin:auto;background-color:transparent!important}.ve-comp-svg-icon{width:100%;height:100%;position:relative;fill:currentColor;vertical-align:-2px}.full-screen-dialog-wrapper[data-v-
|
|
2
|
-
import { withDirectives as xe, createElementBlock as q, openBlock as D, createBlock as z, resolveDynamicComponent as ye, normalizeStyle as _e, vShow as Ge, computed as O, reactive 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-87c1142c]{width:100%;height:100%;display:flex;align-items:center;justify-content:center;margin:auto;overflow:hidden}.canvas-container .canvas[data-v-87c1142c]{position:relative;margin:auto;background-color:transparent!important}.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 xe, createElementBlock as q, openBlock as D, createBlock as z, resolveDynamicComponent as ye, normalizeStyle as _e, vShow as Ge, computed as O, reactive as ue, onMounted as ve, watch as Ie, ref as T, createElementVNode as ne, Fragment as Ee, renderList as Te, provide as ee, defineComponent as Ht, normalizeClass as Qe, resolveComponent as j, withCtx as R, createVNode as E, mergeProps as Lt, createSlots as qt, createCommentVNode as Fe, toDisplayString as Kt, createTextVNode as A, renderSlot as zt, inject as ae, onBeforeMount as Be, onBeforeUnmount as Ne, onUnmounted as He, resolveDirective as Ut, withKeys as Jt } from "vue";
|
|
3
3
|
import Wt from "json5";
|
|
4
4
|
import Gt from "js-md5";
|
|
5
5
|
import { defineStore as Qt } from "pinia";
|
|
@@ -8,7 +8,7 @@ import { ElMessage as Yt, ElNotification as Xt, ElLoading as Zt, ElMessageBox as
|
|
|
8
8
|
import { useRouter as Le, useRoute as qe } from "vue-router";
|
|
9
9
|
(function() {
|
|
10
10
|
const n = () => {
|
|
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.7", "color: #2ecc71;"), console.log("%c编译日期: 2026/1/14 22:45:58", "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 = n;
|
|
@@ -28,7 +28,7 @@ import { useRouter as Le, useRoute as qe } from "vue-router";
|
|
|
28
28
|
function _(n) {
|
|
29
29
|
return !!(n && n != "");
|
|
30
30
|
}
|
|
31
|
-
function
|
|
31
|
+
function fe(n) {
|
|
32
32
|
return !isNaN(parseFloat(n)) && isFinite(n);
|
|
33
33
|
}
|
|
34
34
|
function Xe(n) {
|
|
@@ -43,7 +43,7 @@ function Se(n) {
|
|
|
43
43
|
function $t(n) {
|
|
44
44
|
return !!(n || n === 0);
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function te(n) {
|
|
47
47
|
return n instanceof Object && n !== null;
|
|
48
48
|
}
|
|
49
49
|
function en(n) {
|
|
@@ -66,16 +66,16 @@ function $e(n, o = {}) {
|
|
|
66
66
|
return console.warn("JSON 解析错误:", l), o;
|
|
67
67
|
}
|
|
68
68
|
else
|
|
69
|
-
return
|
|
69
|
+
return te(n) ? n : o;
|
|
70
70
|
}
|
|
71
71
|
function he(n) {
|
|
72
|
-
return De(n) ? n :
|
|
72
|
+
return De(n) ? n : te(n) ? JSON.stringify(n, null, 2) : "";
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function ce(n) {
|
|
75
75
|
if (typeof n == "object") {
|
|
76
76
|
const o = Array.isArray(n) ? [] : {};
|
|
77
77
|
for (const l in n)
|
|
78
|
-
typeof n[l] == "object" ? o[l] =
|
|
78
|
+
typeof n[l] == "object" ? o[l] = ce(n[l]) : o[l] = n[l];
|
|
79
79
|
return o;
|
|
80
80
|
}
|
|
81
81
|
return n;
|
|
@@ -96,7 +96,7 @@ function nt(n) {
|
|
|
96
96
|
if (n) {
|
|
97
97
|
if (Xe(n))
|
|
98
98
|
return n;
|
|
99
|
-
if (
|
|
99
|
+
if (fe(n)) {
|
|
100
100
|
let o = /* @__PURE__ */ new Date(), l = parseInt(n);
|
|
101
101
|
return l < 9999999999 && (l = l * 1e3), o.setTime(l), o;
|
|
102
102
|
} else
|
|
@@ -135,7 +135,7 @@ async function on() {
|
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
137
|
function rn(n, o) {
|
|
138
|
-
return
|
|
138
|
+
return fe(n) ? n : o;
|
|
139
139
|
}
|
|
140
140
|
function Pe(n, o) {
|
|
141
141
|
return o.split(".").reduce((l, t) => l && l[t], n);
|
|
@@ -213,7 +213,7 @@ const Yn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
213
213
|
__proto__: null,
|
|
214
214
|
consolePrint: Y,
|
|
215
215
|
copyToClipboard: Ce,
|
|
216
|
-
deepCopy:
|
|
216
|
+
deepCopy: ce,
|
|
217
217
|
deepMerge: et,
|
|
218
218
|
doMD5: rt,
|
|
219
219
|
execCustomFunction: ln,
|
|
@@ -233,8 +233,8 @@ const Yn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
233
233
|
isFunction: L,
|
|
234
234
|
isNotEmpty: _,
|
|
235
235
|
isNullOrUndefined: Se,
|
|
236
|
-
isNumber:
|
|
237
|
-
isObject:
|
|
236
|
+
isNumber: fe,
|
|
237
|
+
isObject: te,
|
|
238
238
|
isString: De,
|
|
239
239
|
isValid: $t,
|
|
240
240
|
keepDecimalCalc: sn,
|
|
@@ -273,7 +273,7 @@ function fn(n, o = []) {
|
|
|
273
273
|
o.includes(t) || (t != "rotate" ? n[t] !== "" && (l[t] = n[t], lt.includes(t) && (l[t] += "px")) : l.transform = `${t}(${n[t]}deg)`);
|
|
274
274
|
}), l;
|
|
275
275
|
}
|
|
276
|
-
function
|
|
276
|
+
function re(n, o, l, t, p, a, c) {
|
|
277
277
|
let f = JSON.parse(JSON.stringify(n));
|
|
278
278
|
return f && f.length > 0 && f.forEach((i) => {
|
|
279
279
|
if (i && i.style) {
|
|
@@ -315,20 +315,20 @@ function Xn(n, o, l, t) {
|
|
|
315
315
|
else {
|
|
316
316
|
let c = Math.floor(n), f = Math.floor(o), i = Number(l.width), g = Number(l.height), y = 1, h = 1;
|
|
317
317
|
if (l.screenAdapter == "all-screen")
|
|
318
|
-
p = JSON.parse(JSON.stringify(l)), c > i + 10 && (p.width = c, y = Math.floor(1e4 * c / i) / 1e4), f > g + 10 && (p.height = f, h = Math.floor(1e4 * f / g) / 1e4), a =
|
|
318
|
+
p = JSON.parse(JSON.stringify(l)), c > i + 10 && (p.width = c, y = Math.floor(1e4 * c / i) / 1e4), f > g + 10 && (p.height = f, h = Math.floor(1e4 * f / g) / 1e4), a = re(t, c, f, y, h, i, g);
|
|
319
319
|
else if (l.screenAdapter == "original-ratio") {
|
|
320
320
|
p = JSON.parse(JSON.stringify(l));
|
|
321
321
|
let w = Math.floor(1e4 * i / g) / 1e4;
|
|
322
|
-
Math.floor(f * w) > c ? (p.width = c, y = Math.floor(1e4 * c / i) / 1e4, f = Math.floor(c / w), p.height = f, h = Math.floor(1e4 * f / g) / 1e4) : (p.height = f, h = Math.floor(1e4 * f / g) / 1e4, c = Math.floor(f * w), p.width = c, y = Math.floor(1e4 * c / i) / 1e4), a =
|
|
322
|
+
Math.floor(f * w) > c ? (p.width = c, y = Math.floor(1e4 * c / i) / 1e4, f = Math.floor(c / w), p.height = f, h = Math.floor(1e4 * f / g) / 1e4) : (p.height = f, h = Math.floor(1e4 * f / g) / 1e4, c = Math.floor(f * w), p.width = c, y = Math.floor(1e4 * c / i) / 1e4), a = re(t, c, f, y, h, i, g);
|
|
323
323
|
} else if (l.screenAdapter == "h-adapter-wh") {
|
|
324
324
|
p = JSON.parse(JSON.stringify(l));
|
|
325
325
|
let w = Math.floor(1e4 * i / g) / 1e4;
|
|
326
|
-
c > i + 10 && (p.width = c, y = Math.floor(1e4 * c / i) / 1e4, f = Math.floor(c / w), p.height = f, h = Math.floor(1e4 * f / g) / 1e4), a =
|
|
326
|
+
c > i + 10 && (p.width = c, y = Math.floor(1e4 * c / i) / 1e4, f = Math.floor(c / w), p.height = f, h = Math.floor(1e4 * f / g) / 1e4), a = re(t, c, f, y, h, i, g);
|
|
327
327
|
} else if (l.screenAdapter == "v-adapter-wh") {
|
|
328
328
|
p = JSON.parse(JSON.stringify(l));
|
|
329
329
|
let w = Math.floor(1e4 * i / g) / 1e4;
|
|
330
|
-
f > g + 10 && (p.height = f, h = Math.floor(1e4 * f / g) / 1e4, c = Math.floor(f * w), p.width = c, y = Math.floor(1e4 * c / i) / 1e4), a =
|
|
331
|
-
} else l.screenAdapter == "h-adapter" ? (p = JSON.parse(JSON.stringify(l)), c > i + 10 && (p.width = c, y = Math.floor(1e4 * c / i) / 1e4), a =
|
|
330
|
+
f > g + 10 && (p.height = f, h = Math.floor(1e4 * f / g) / 1e4, c = Math.floor(f * w), p.width = c, y = Math.floor(1e4 * c / i) / 1e4), a = re(t, c, f, y, h, i, g);
|
|
331
|
+
} else l.screenAdapter == "h-adapter" ? (p = JSON.parse(JSON.stringify(l)), c > i + 10 && (p.width = c, y = Math.floor(1e4 * c / i) / 1e4), a = re(t, c, f, y, h, i, g)) : l.screenAdapter == "v-adapter" ? (p = JSON.parse(JSON.stringify(l)), f > g + 10 && (p.height = f, h = Math.floor(1e4 * f / g) / 1e4), a = re(t, c, f, y, h, i, g)) : (p = l, a = t);
|
|
332
332
|
}
|
|
333
333
|
return {
|
|
334
334
|
canvasStyleData: p,
|
|
@@ -371,8 +371,8 @@ const W = (n, o) => {
|
|
|
371
371
|
set: (v) => {
|
|
372
372
|
t.value.style && (t.value.style.isHide = !v);
|
|
373
373
|
}
|
|
374
|
-
}), a =
|
|
375
|
-
v ? a[`Ve${
|
|
374
|
+
}), a = ue({}), c = (v, P) => {
|
|
375
|
+
v ? a[`Ve${P}`] = v : delete a[`Ve${P}`];
|
|
376
376
|
}, f = (v) => a[`Ve${v}`], i = () => {
|
|
377
377
|
if (t.value.animations && t.value.animations.length > 0) {
|
|
378
378
|
let v = a[`Ve${t.value.id}`];
|
|
@@ -391,7 +391,7 @@ const W = (n, o) => {
|
|
|
391
391
|
show: y,
|
|
392
392
|
showStatus: h
|
|
393
393
|
});
|
|
394
|
-
const w = { props: l, config: t, isShow: p, componentRefs: a, setComponentRef: c, getComponentRef: f, execAnimation: i, hide: g, show: y, showStatus: h, ref: T, computed: O, onMounted: ve, reactive:
|
|
394
|
+
const w = { props: l, config: t, isShow: p, componentRefs: a, setComponentRef: c, getComponentRef: f, execAnimation: i, hide: g, show: y, showStatus: h, ref: T, computed: O, onMounted: ve, reactive: ue, watch: Ie, get getSVGStyle() {
|
|
395
395
|
return fn;
|
|
396
396
|
}, get getStyle() {
|
|
397
397
|
return st;
|
|
@@ -446,7 +446,7 @@ const mn = /* @__PURE__ */ W(pn, [["render", dn], ["__scopeId", "data-v-56b0e3e4
|
|
|
446
446
|
h && (t.value[w] = h);
|
|
447
447
|
}, f = (h, w, v) => {
|
|
448
448
|
if (_(h) && _(w)) {
|
|
449
|
-
const
|
|
449
|
+
const P = "VeP" + h, S = t.value[P];
|
|
450
450
|
if (S) {
|
|
451
451
|
let x;
|
|
452
452
|
B(S) ? x = S[0] : x = S;
|
|
@@ -456,7 +456,7 @@ const mn = /* @__PURE__ */ W(pn, [["render", dn], ["__scopeId", "data-v-56b0e3e4
|
|
|
456
456
|
}
|
|
457
457
|
}, i = (h, w, v = {}) => {
|
|
458
458
|
if (_(h)) {
|
|
459
|
-
const
|
|
459
|
+
const P = "VeP" + h, S = t.value[P];
|
|
460
460
|
if (S) {
|
|
461
461
|
let x;
|
|
462
462
|
B(S) ? x = S[0] : x = S, w ? x.show() : x.hide();
|
|
@@ -464,7 +464,7 @@ const mn = /* @__PURE__ */ W(pn, [["render", dn], ["__scopeId", "data-v-56b0e3e4
|
|
|
464
464
|
}
|
|
465
465
|
}, g = (h, w, v) => {
|
|
466
466
|
if (_(h) && _(w)) {
|
|
467
|
-
const
|
|
467
|
+
const P = "VeP" + h, S = t.value[P];
|
|
468
468
|
if (S) {
|
|
469
469
|
let x;
|
|
470
470
|
if (B(S) ? x = S[0] : x = S, x && x[w])
|
|
@@ -472,10 +472,10 @@ const mn = /* @__PURE__ */ W(pn, [["render", dn], ["__scopeId", "data-v-56b0e3e4
|
|
|
472
472
|
}
|
|
473
473
|
}
|
|
474
474
|
};
|
|
475
|
-
|
|
475
|
+
ee("VE-CompMethod", f), ee("VE-CompHideAndShow", i), ee("VE-CompWrapMethod", g), o({
|
|
476
476
|
callCompMethod: f
|
|
477
477
|
});
|
|
478
|
-
const y = { props: l, componentRefs: t, canvasStyle: p, componentData: a, setComponentRef: c, callCompMethod: f, callCompHideAndShow: i, callCompWrapMethod: g, ref: T, computed: O, provide:
|
|
478
|
+
const y = { props: l, componentRefs: t, canvasStyle: p, componentData: a, setComponentRef: c, callCompMethod: f, callCompHideAndShow: i, callCompWrapMethod: g, ref: T, computed: O, provide: ee, watch: Ie, get getCanvasStyle() {
|
|
479
479
|
return un;
|
|
480
480
|
}, ComponentWrapper: mn, get isNotEmpty() {
|
|
481
481
|
return _;
|
|
@@ -489,7 +489,7 @@ const mn = /* @__PURE__ */ W(pn, [["render", dn], ["__scopeId", "data-v-56b0e3e4
|
|
|
489
489
|
});
|
|
490
490
|
function hn(n, o, l, t, p, a) {
|
|
491
491
|
return D(), q("div", { class: "canvas-container" }, [
|
|
492
|
-
|
|
492
|
+
ne("div", {
|
|
493
493
|
class: "canvas",
|
|
494
494
|
style: _e({
|
|
495
495
|
...t.getCanvasStyle(t.canvasStyle || {}),
|
|
@@ -534,7 +534,7 @@ function vn(n, o, l, t, p, a) {
|
|
|
534
534
|
class: Qe(n.svgClass),
|
|
535
535
|
"aria-hidden": "true"
|
|
536
536
|
}, [
|
|
537
|
-
|
|
537
|
+
ne("use", {
|
|
538
538
|
"xlink:href": n.iconName,
|
|
539
539
|
fill: n.color
|
|
540
540
|
}, null, 8, ["xlink:href", "fill"])
|
|
@@ -566,7 +566,7 @@ const it = /* @__PURE__ */ W(_n, [["render", vn], ["__file", "index.vue"]]), Sn
|
|
|
566
566
|
}
|
|
567
567
|
});
|
|
568
568
|
function wn(n, o, l, t, p, a) {
|
|
569
|
-
const c =
|
|
569
|
+
const c = j("el-icon");
|
|
570
570
|
return D(), z(c, {
|
|
571
571
|
size: t.props.iconSize,
|
|
572
572
|
color: t.props.color
|
|
@@ -588,7 +588,7 @@ const bn = /* @__PURE__ */ W(Sn, [["render", wn], ["__file", "index.vue"]]);
|
|
|
588
588
|
let be = null;
|
|
589
589
|
const Oe = () => {
|
|
590
590
|
if (!be) {
|
|
591
|
-
const n =
|
|
591
|
+
const n = ue({}), o = T([]);
|
|
592
592
|
be = {
|
|
593
593
|
dialogs: n,
|
|
594
594
|
dialogStack: o,
|
|
@@ -637,48 +637,48 @@ const Oe = () => {
|
|
|
637
637
|
emits: ["confirm", "cancel"],
|
|
638
638
|
setup(n, { expose: o, emit: l }) {
|
|
639
639
|
const t = n, p = l, a = O(() => t.config), c = O(() => a.value.title || "对话框"), f = O(() => !!t.config.showHeader), i = T(a.value.fullscreen), g = T(a.value.width), y = T(!0), h = O(() => {
|
|
640
|
-
let
|
|
641
|
-
return f.value ?
|
|
640
|
+
let C = a.value.width ?? 800;
|
|
641
|
+
return f.value ? C + 32 : C;
|
|
642
642
|
}), w = O(() => {
|
|
643
|
-
let
|
|
644
|
-
return
|
|
643
|
+
let C = {};
|
|
644
|
+
return C.style = {}, C.style.width = a.value.width ?? 800, C.style.height = a.value.height ?? 600, C.prop = {}, C.prop.subpageId = a.value.pageId, C.containerParam = a.value.pageParam || {}, C;
|
|
645
645
|
}), v = O(() => {
|
|
646
|
-
let
|
|
647
|
-
return
|
|
648
|
-
}),
|
|
649
|
-
let
|
|
646
|
+
let C = {};
|
|
647
|
+
return C.modal = a.value.modal, C["show-close"] = a.value.showClose, C.draggable = a.value.draggable, a.value.appendToBody && (C["append-to-body"] = a.value.appendToBody), f.value || (C.class = " no-header-dialog"), a.value.customPosition ? C["align-center"] = !1 : C["align-center"] = !0, C;
|
|
648
|
+
}), P = O(() => {
|
|
649
|
+
let C = {};
|
|
650
650
|
if (a.value.customPosition) {
|
|
651
|
-
let
|
|
652
|
-
Object.assign(
|
|
651
|
+
let X = a.value.absLeft ?? 100, k = a.value.absTop ?? 100;
|
|
652
|
+
Object.assign(C, {
|
|
653
653
|
position: "fixed",
|
|
654
|
-
left: `${
|
|
654
|
+
left: `${X}px`,
|
|
655
655
|
top: `${k}px`,
|
|
656
656
|
transform: "none",
|
|
657
657
|
margin: "0 !important"
|
|
658
658
|
});
|
|
659
659
|
}
|
|
660
|
-
return a.value.noBackgroundColor && Object.assign(
|
|
660
|
+
return a.value.noBackgroundColor && Object.assign(C, {
|
|
661
661
|
backgroundColor: "transparent"
|
|
662
|
-
}),
|
|
662
|
+
}), C;
|
|
663
663
|
}), S = () => {
|
|
664
664
|
p("confirm");
|
|
665
665
|
}, x = () => {
|
|
666
666
|
p("cancel"), I();
|
|
667
667
|
}, I = () => {
|
|
668
668
|
y.value = !1;
|
|
669
|
-
}, G = (
|
|
669
|
+
}, G = (C) => {
|
|
670
670
|
p("cancel");
|
|
671
671
|
};
|
|
672
|
-
|
|
672
|
+
ee("VE-CompMethod", function() {
|
|
673
673
|
Y("warning", "对话框模式,不提供compMethod函数实现");
|
|
674
|
-
}),
|
|
674
|
+
}), ee("VE-CompHideAndShow", function() {
|
|
675
675
|
Y("warning", "对话框模式,不提供compHideAndShow函数实现");
|
|
676
|
-
}),
|
|
676
|
+
}), ee("VE-CompWrapMethod", function() {
|
|
677
677
|
Y("warning", "对话框模式,不提供compWrapMethod函数实现");
|
|
678
678
|
}), o({
|
|
679
679
|
close: I
|
|
680
680
|
});
|
|
681
|
-
const N = { props: t, emit: p, config: a, title: c, showTitle: f, isFullscreen: i, previousWidth: g, openDialog: y, dialogWidth: h, element: w, bindAttr: v, customStyle:
|
|
681
|
+
const N = { props: t, emit: p, config: a, title: c, showTitle: f, isFullscreen: i, previousWidth: g, openDialog: y, dialogWidth: h, element: w, bindAttr: v, customStyle: P, confirmInner: S, cancel: x, close: I, handleClose: G, ref: T, computed: O, provide: ee, get consolePrint() {
|
|
682
682
|
return Y;
|
|
683
683
|
}, get isNotEmpty() {
|
|
684
684
|
return _;
|
|
@@ -687,7 +687,7 @@ const Oe = () => {
|
|
|
687
687
|
}
|
|
688
688
|
});
|
|
689
689
|
function Cn(n, o, l, t, p, a) {
|
|
690
|
-
const c =
|
|
690
|
+
const c = j("Subpage"), f = j("el-button"), i = j("el-dialog");
|
|
691
691
|
return D(), q("div", { class: "full-screen-dialog-wrapper" }, [
|
|
692
692
|
E(i, Lt({
|
|
693
693
|
modelValue: t.openDialog,
|
|
@@ -699,21 +699,21 @@ function Cn(n, o, l, t, p, a) {
|
|
|
699
699
|
onClose: t.handleClose
|
|
700
700
|
}), qt({
|
|
701
701
|
header: R(() => [
|
|
702
|
-
t.showTitle ? (D(), q("span", { key: 0 }, Kt(t.title), 1)) :
|
|
702
|
+
t.showTitle ? (D(), q("span", { key: 0 }, Kt(t.title), 1)) : Fe("", !0)
|
|
703
703
|
]),
|
|
704
704
|
default: R(() => [
|
|
705
705
|
t.isNotEmpty(t.config.pageId) ? (D(), z(c, {
|
|
706
706
|
key: 0,
|
|
707
707
|
"prop-value": t.element.prop,
|
|
708
708
|
element: t.element
|
|
709
|
-
}, null, 8, ["prop-value", "element"])) :
|
|
709
|
+
}, null, 8, ["prop-value", "element"])) : Fe("", !0)
|
|
710
710
|
]),
|
|
711
711
|
_: 2
|
|
712
712
|
}, [
|
|
713
713
|
t.config.showFooter ? {
|
|
714
714
|
name: "footer",
|
|
715
715
|
fn: R(() => [
|
|
716
|
-
|
|
716
|
+
ne("div", { class: "dialog-footer" }, [
|
|
717
717
|
E(f, {
|
|
718
718
|
type: "primary",
|
|
719
719
|
onClick: t.confirmInner
|
|
@@ -737,7 +737,7 @@ function Cn(n, o, l, t, p, a) {
|
|
|
737
737
|
]), 1040, ["modelValue", "width", "fullscreen", "style"])
|
|
738
738
|
]);
|
|
739
739
|
}
|
|
740
|
-
const Pn = /* @__PURE__ */ W(xn, [["render", Cn], ["__scopeId", "data-v-
|
|
740
|
+
const Pn = /* @__PURE__ */ W(xn, [["render", Cn], ["__scopeId", "data-v-7c104f83"], ["__file", "FullscreenDialog.vue"]]), Vn = /* @__PURE__ */ Object.assign({
|
|
741
741
|
name: "DialogContainer"
|
|
742
742
|
}, {
|
|
743
743
|
__name: "DialogContainer",
|
|
@@ -802,7 +802,7 @@ const Mn = /* @__PURE__ */ W(Vn, [["render", On], ["__file", "DialogContainer.vu
|
|
|
802
802
|
}
|
|
803
803
|
});
|
|
804
804
|
function In(n, o, l, t, p, a) {
|
|
805
|
-
const c =
|
|
805
|
+
const c = j("el-button"), f = j("el-dialog");
|
|
806
806
|
return D(), z(f, {
|
|
807
807
|
title: t.title,
|
|
808
808
|
modelValue: t.openDialog,
|
|
@@ -819,7 +819,7 @@ function In(n, o, l, t, p, a) {
|
|
|
819
819
|
zt(n.$slots, "dialog-content")
|
|
820
820
|
]),
|
|
821
821
|
footer: R(() => [
|
|
822
|
-
|
|
822
|
+
ne("div", { class: "dialog-footer" }, [
|
|
823
823
|
E(c, {
|
|
824
824
|
type: "primary",
|
|
825
825
|
onClick: t.confirmInner
|
|
@@ -866,17 +866,17 @@ const En = /* @__PURE__ */ W(kn, [["render", In], ["__file", "index.vue"]]), Tn
|
|
|
866
866
|
get: () => t.modelValue,
|
|
867
867
|
set: (h) => p("update:modelValue", h)
|
|
868
868
|
}), y = { props: t, emits: p, inputDialogRef: a, inputTextArea: c, internalValue: f, openInputDialog: () => {
|
|
869
|
-
c.value =
|
|
869
|
+
c.value = ce(f.value), a.value?.show();
|
|
870
870
|
}, confirmEdit: (h) => {
|
|
871
|
-
f.value =
|
|
871
|
+
f.value = ce(c.value), a.value?.cancel();
|
|
872
872
|
}, ref: T, computed: O, get deepCopy() {
|
|
873
|
-
return
|
|
873
|
+
return ce;
|
|
874
874
|
} };
|
|
875
875
|
return Object.defineProperty(y, "__isScriptSetup", { enumerable: !1, value: !0 }), y;
|
|
876
876
|
}
|
|
877
877
|
});
|
|
878
878
|
function Dn(n, o, l, t, p, a) {
|
|
879
|
-
const c =
|
|
879
|
+
const c = j("el-text"), f = j("el-input"), i = j("CommonDialog");
|
|
880
880
|
return D(), q("div", {
|
|
881
881
|
class: Qe(["custom-omit-input-wrapper", n.$attrs.class])
|
|
882
882
|
}, [
|
|
@@ -909,7 +909,7 @@ function Dn(n, o, l, t, p, a) {
|
|
|
909
909
|
onConfirm: t.confirmEdit
|
|
910
910
|
}, {
|
|
911
911
|
"dialog-content": R(() => [
|
|
912
|
-
|
|
912
|
+
ne("div", { style: { width: "100%", height: "500px", "overflow-y": "auto", "overflow-x": "hidden" } }, [
|
|
913
913
|
E(f, {
|
|
914
914
|
modelValue: t.inputTextArea,
|
|
915
915
|
"onUpdate:modelValue": o[1] || (o[1] = (g) => t.inputTextArea = g),
|
|
@@ -968,7 +968,7 @@ const Rn = /* @__PURE__ */ W(Tn, [["render", Dn], ["__scopeId", "data-v-956a5a3a
|
|
|
968
968
|
});
|
|
969
969
|
};
|
|
970
970
|
function An() {
|
|
971
|
-
const n =
|
|
971
|
+
const n = ae("hflvloader-api");
|
|
972
972
|
if (!n)
|
|
973
973
|
throw new Error("组件注册时未提供API,请检查!");
|
|
974
974
|
return n;
|
|
@@ -1035,7 +1035,7 @@ const Zn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1035
1035
|
showMessageBoxConfirmAsync: ct,
|
|
1036
1036
|
showMessageBoxPromptAsync: ut,
|
|
1037
1037
|
showNotification: Me
|
|
1038
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1038
|
+
}, Symbol.toStringTag, { value: "Module" })), le = {
|
|
1039
1039
|
"==": (n, o) => n == o,
|
|
1040
1040
|
"!=": (n, o) => n != o,
|
|
1041
1041
|
">": (n, o) => +n > +o,
|
|
@@ -1047,31 +1047,31 @@ const Zn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1047
1047
|
equals: (n, o) => n != null && String(n) == String(o),
|
|
1048
1048
|
notEquals: (n, o) => n == null || !String(n) == String(o),
|
|
1049
1049
|
equalsIgnoreCase: (n, o) => n != null && String(n).toLowerCase() == String(o).toLowerCase()
|
|
1050
|
-
},
|
|
1050
|
+
}, se = (n) => typeof n == "string" && n.trim() !== "" && !isNaN(n) ? +n : n;
|
|
1051
1051
|
function Je(n = {}, o = !0, l = {}) {
|
|
1052
|
-
const t = n, p = o, a = l, c = /* @__PURE__ */ new Map(), f = An(), i = pe(), g =
|
|
1053
|
-
let
|
|
1054
|
-
const S = 250, x =
|
|
1052
|
+
const t = n, p = o, a = l, c = /* @__PURE__ */ new Map(), f = An(), i = pe(), g = ae("VE-ContainerParam"), y = ae("VE-CompMethod"), h = [], { openDialog: w, closeDialog: v } = Oe();
|
|
1053
|
+
let P = null;
|
|
1054
|
+
const S = 250, x = ae("VE-CompHideAndShow"), I = [], G = ae("VE-CompWrapMethod"), N = (e) => {
|
|
1055
1055
|
if (g) {
|
|
1056
1056
|
if (Ze(g))
|
|
1057
1057
|
return g.value[e];
|
|
1058
|
-
if (
|
|
1058
|
+
if (te(g))
|
|
1059
1059
|
return g[e];
|
|
1060
1060
|
}
|
|
1061
|
-
},
|
|
1061
|
+
}, C = (e) => {
|
|
1062
1062
|
if (e && e.path) {
|
|
1063
1063
|
let s = e.params || [], r = {};
|
|
1064
1064
|
s.forEach((u, d) => {
|
|
1065
|
-
if (
|
|
1065
|
+
if (oe(u)) {
|
|
1066
1066
|
let m = U(u);
|
|
1067
1067
|
r[u.tarKey] = m;
|
|
1068
1068
|
}
|
|
1069
1069
|
}), e.namedRouter ? L(a.routerPush) && a.routerPush(e.path, r) : L(a.routerPush2) && a.routerPush2(e.path, r);
|
|
1070
1070
|
}
|
|
1071
|
-
},
|
|
1071
|
+
}, X = (e = []) => {
|
|
1072
1072
|
let s = [];
|
|
1073
1073
|
return e.forEach((r) => {
|
|
1074
|
-
if (
|
|
1074
|
+
if (oe(r)) {
|
|
1075
1075
|
let u = U(r);
|
|
1076
1076
|
s.push([
|
|
1077
1077
|
r.tarKey,
|
|
@@ -1091,7 +1091,7 @@ function Je(n = {}, o = !0, l = {}) {
|
|
|
1091
1091
|
console.error("[_dataRequestHandler4CustomSuccessFunc]处理自定义成功函数时出错:", u);
|
|
1092
1092
|
}
|
|
1093
1093
|
}
|
|
1094
|
-
},
|
|
1094
|
+
}, V = (e, s, r) => {
|
|
1095
1095
|
if (e.customFunc && _(e.errorFunc)) {
|
|
1096
1096
|
const u = {
|
|
1097
1097
|
helper: { ...a, ...M }
|
|
@@ -1129,24 +1129,24 @@ function Je(n = {}, o = !0, l = {}) {
|
|
|
1129
1129
|
let s = e.url;
|
|
1130
1130
|
if (/\{#.*?#\}/g.test(s)) {
|
|
1131
1131
|
let u = e.data || [], d = /* @__PURE__ */ new Set(), m = !1, b = null;
|
|
1132
|
-
if (s = s.replace(/\{#(.*?)#\}/g, (
|
|
1132
|
+
if (s = s.replace(/\{#(.*?)#\}/g, (F, $) => {
|
|
1133
1133
|
m = !1, b = null;
|
|
1134
|
-
for (let
|
|
1135
|
-
if (
|
|
1136
|
-
m = !0, b = u[
|
|
1134
|
+
for (let ie = 0; ie < u.length; ie++)
|
|
1135
|
+
if ($ == u[ie][0]) {
|
|
1136
|
+
m = !0, b = u[ie][1];
|
|
1137
1137
|
break;
|
|
1138
1138
|
}
|
|
1139
|
-
return m ? (d.add(
|
|
1139
|
+
return m ? (d.add($), b) : F;
|
|
1140
1140
|
}), d.size > 0) {
|
|
1141
|
-
let
|
|
1142
|
-
e.url = s, e.data =
|
|
1141
|
+
let F = u.filter(($, ie) => !d.has($[0]));
|
|
1142
|
+
e.url = s, e.data = F || [];
|
|
1143
1143
|
}
|
|
1144
1144
|
}
|
|
1145
1145
|
}
|
|
1146
1146
|
}, pt = async (e) => {
|
|
1147
1147
|
if (e && _(e.url)) {
|
|
1148
1148
|
let s = e.respParams || [], r = {};
|
|
1149
|
-
r.url = e.url, r.externalRequest = e.external || !1, r.method = e.method || "GET", r.paramType = "object", r.data =
|
|
1149
|
+
r.url = e.url, r.externalRequest = e.external || !1, r.method = e.method || "GET", r.paramType = "object", r.data = X(e.params), r.headers = e.headers, e.series && (r.series = e.series, r.requestCount = e.requestCount || 0, r.time = e.time || 1e3), ft(r);
|
|
1150
1150
|
let u = null;
|
|
1151
1151
|
if (e.loading) {
|
|
1152
1152
|
let d = e.load || {}, m = {
|
|
@@ -1163,29 +1163,29 @@ function Je(n = {}, o = !0, l = {}) {
|
|
|
1163
1163
|
if (u && u.close(), d && d.length > 0) {
|
|
1164
1164
|
if (e.enabledRespErrTip) {
|
|
1165
1165
|
let b = e.respErrTip || {};
|
|
1166
|
-
|
|
1166
|
+
Z(b);
|
|
1167
1167
|
}
|
|
1168
|
-
|
|
1168
|
+
V(e, m, d[0]);
|
|
1169
1169
|
} else if (m)
|
|
1170
1170
|
if (r.externalRequest)
|
|
1171
1171
|
if (m && m.status == 200) {
|
|
1172
1172
|
if (e.enabledRespTip) {
|
|
1173
1173
|
let b = e.respTip || {};
|
|
1174
|
-
|
|
1174
|
+
Z(b);
|
|
1175
1175
|
}
|
|
1176
1176
|
H(m, s), k(e, m);
|
|
1177
1177
|
} else {
|
|
1178
1178
|
if (e.enabledRespErrTip) {
|
|
1179
1179
|
let b = e.respErrTip || {};
|
|
1180
|
-
|
|
1180
|
+
Z(b);
|
|
1181
1181
|
}
|
|
1182
|
-
|
|
1182
|
+
V(e, m, null);
|
|
1183
1183
|
}
|
|
1184
1184
|
else {
|
|
1185
1185
|
if (m) {
|
|
1186
1186
|
if (e.enabledRespTip) {
|
|
1187
1187
|
let b = e.respTip || {};
|
|
1188
|
-
|
|
1188
|
+
Z(b);
|
|
1189
1189
|
}
|
|
1190
1190
|
H(m, s);
|
|
1191
1191
|
}
|
|
@@ -1197,21 +1197,21 @@ function Je(n = {}, o = !0, l = {}) {
|
|
|
1197
1197
|
if (m && m.status == 200) {
|
|
1198
1198
|
if (e.enabledRespTip) {
|
|
1199
1199
|
let b = e.respTip || {};
|
|
1200
|
-
|
|
1200
|
+
Z(b);
|
|
1201
1201
|
}
|
|
1202
1202
|
H(m, s), k(e, m);
|
|
1203
1203
|
} else {
|
|
1204
1204
|
if (e.enabledRespErrTip) {
|
|
1205
1205
|
let b = e.respErrTip || {};
|
|
1206
|
-
|
|
1206
|
+
Z(b);
|
|
1207
1207
|
}
|
|
1208
|
-
|
|
1208
|
+
V(e, m, null);
|
|
1209
1209
|
}
|
|
1210
1210
|
else {
|
|
1211
1211
|
if (m) {
|
|
1212
1212
|
if (e.enabledRespTip) {
|
|
1213
1213
|
let b = e.respTip || {};
|
|
1214
|
-
|
|
1214
|
+
Z(b);
|
|
1215
1215
|
}
|
|
1216
1216
|
H(m, s);
|
|
1217
1217
|
}
|
|
@@ -1220,20 +1220,20 @@ function Je(n = {}, o = !0, l = {}) {
|
|
|
1220
1220
|
}, function(m) {
|
|
1221
1221
|
if (u && u.close(), e.enabledRespErrTip) {
|
|
1222
1222
|
let b = e.respErrTip || {};
|
|
1223
|
-
|
|
1223
|
+
Z(b);
|
|
1224
1224
|
}
|
|
1225
|
-
|
|
1225
|
+
V(e, null, m);
|
|
1226
1226
|
});
|
|
1227
1227
|
d && h.push(d);
|
|
1228
1228
|
}
|
|
1229
1229
|
}
|
|
1230
|
-
},
|
|
1230
|
+
}, Z = (e = {}) => {
|
|
1231
1231
|
e.tipType == "msg" ? de(e.type, e.msg, e.extParam) : e.tipType == "notify" && Me(e.type, e.msg, e.extParam);
|
|
1232
1232
|
}, dt = (e) => {
|
|
1233
1233
|
if (e && B(e.params)) {
|
|
1234
1234
|
let s = e.params || [], r = null;
|
|
1235
1235
|
for (let u = 0; u < s.length; u++)
|
|
1236
|
-
if (r = s[u],
|
|
1236
|
+
if (r = s[u], oe(r)) {
|
|
1237
1237
|
let d = U(r);
|
|
1238
1238
|
M.setDataCache(r.tarKey, d);
|
|
1239
1239
|
}
|
|
@@ -1243,12 +1243,12 @@ function Je(n = {}, o = !0, l = {}) {
|
|
|
1243
1243
|
let s = e.params || [], r = null;
|
|
1244
1244
|
for (let u = 0; u < s.length; u++)
|
|
1245
1245
|
if (r = s[u], _(r.ipn) && _(r.opn) && c.has(r.ipn)) {
|
|
1246
|
-
let d = c.get(r.ipn), m =
|
|
1246
|
+
let d = c.get(r.ipn), m = le.equals(d, r.ipv);
|
|
1247
1247
|
if (m)
|
|
1248
1248
|
c.set(r.opn, r.opv);
|
|
1249
1249
|
else {
|
|
1250
|
-
let b =
|
|
1251
|
-
m =
|
|
1250
|
+
let b = se(d), F = se(r.ipv);
|
|
1251
|
+
m = le["=="](b, F), m && c.set(r.opn, r.opv);
|
|
1252
1252
|
}
|
|
1253
1253
|
}
|
|
1254
1254
|
}
|
|
@@ -1256,7 +1256,7 @@ function Je(n = {}, o = !0, l = {}) {
|
|
|
1256
1256
|
if (e && B(e.params)) {
|
|
1257
1257
|
let s = e.params || [], r = null;
|
|
1258
1258
|
for (let u = 0; u < s.length; u++)
|
|
1259
|
-
if (r = s[u],
|
|
1259
|
+
if (r = s[u], oe(r)) {
|
|
1260
1260
|
let d = U(r);
|
|
1261
1261
|
M.setParam(r.tarKey, d);
|
|
1262
1262
|
}
|
|
@@ -1352,13 +1352,13 @@ function Je(n = {}, o = !0, l = {}) {
|
|
|
1352
1352
|
for (let d = 0; d < r.length; d++)
|
|
1353
1353
|
if (u = r[d], u.delete)
|
|
1354
1354
|
_(u.tarKey) && (s == "session" ? sessionStorage.removeItem(u.tarKey) : s == "local" ? localStorage.removeItem(u.tarKey) : s == "jsCookie" && M.removeJsCookie(u.tarKey));
|
|
1355
|
-
else if (
|
|
1355
|
+
else if (oe(u)) {
|
|
1356
1356
|
let m = U(u);
|
|
1357
1357
|
s == "session" ? sessionStorage.setItem(u.tarKey, m) : s == "local" ? localStorage.setItem(u.tarKey, m) : s == "jsCookie" && M.setJsCookie(u.tarKey, m);
|
|
1358
1358
|
}
|
|
1359
1359
|
}
|
|
1360
1360
|
}
|
|
1361
|
-
},
|
|
1361
|
+
}, oe = (e) => _(e.ds) && _(e.tarKey) ? e.ds != "inputV" ? _(e.key) : !0 : !1, U = (e) => {
|
|
1362
1362
|
if (e.ds == "inputP")
|
|
1363
1363
|
return M.getParam(e.key);
|
|
1364
1364
|
if (e.ds == "cacheP")
|
|
@@ -1377,7 +1377,7 @@ function Je(n = {}, o = !0, l = {}) {
|
|
|
1377
1377
|
return L(a.getStyleValue) ? a.getStyleValue(e.key) : null;
|
|
1378
1378
|
if (e.ds == "_selectMenuValue" || e.ds == "_selectItemValue" || e.ds == "_changeItemValue") {
|
|
1379
1379
|
let s = M.getParam(e.ds);
|
|
1380
|
-
return Se(s) ? null :
|
|
1380
|
+
return Se(s) ? null : te(s) ? _(e.key) && Ve(s, e.key) ? Pe(s, e.key) : null : s;
|
|
1381
1381
|
} else {
|
|
1382
1382
|
let s = e.key;
|
|
1383
1383
|
return s.toString().trim().indexOf("#json#") == 0 ? (s = s.toString().trim().replace("#json#", ""), $e(s, {})) : e.key;
|
|
@@ -1396,12 +1396,12 @@ function Je(n = {}, o = !0, l = {}) {
|
|
|
1396
1396
|
if (e) {
|
|
1397
1397
|
let s = e.styleSets || [], r = e.propSets || [];
|
|
1398
1398
|
B(r) && r.length > 0 && L(a.setPropValue) && r.forEach((u, d) => {
|
|
1399
|
-
if (
|
|
1399
|
+
if (oe(u)) {
|
|
1400
1400
|
let m = U(u);
|
|
1401
1401
|
a.setPropValue(u.tarKey, m);
|
|
1402
1402
|
}
|
|
1403
1403
|
}), B(s) && s.length > 0 && L(a.setStyleValue) && s.forEach((u, d) => {
|
|
1404
|
-
if (
|
|
1404
|
+
if (oe(u)) {
|
|
1405
1405
|
let m = U(u);
|
|
1406
1406
|
a.setStyleValue(u.tarKey, m);
|
|
1407
1407
|
}
|
|
@@ -1413,9 +1413,9 @@ function Je(n = {}, o = !0, l = {}) {
|
|
|
1413
1413
|
let r = e.params || [], u = null, d = !1;
|
|
1414
1414
|
for (let m = 0; m < r.length; m++) {
|
|
1415
1415
|
u = r[m];
|
|
1416
|
-
let b = U(u),
|
|
1417
|
-
const
|
|
1418
|
-
if ([">", ">=", "<", "<=", "=="].includes(
|
|
1416
|
+
let b = U(u), F = u.value;
|
|
1417
|
+
const $ = u.opType;
|
|
1418
|
+
if ([">", ">=", "<", "<=", "=="].includes($) && (b = se(b), F = se(F)), le[$] ? d = le[$](b, F) : d = !1, d) {
|
|
1419
1419
|
s = !0;
|
|
1420
1420
|
break;
|
|
1421
1421
|
}
|
|
@@ -1497,7 +1497,7 @@ function Je(n = {}, o = !0, l = {}) {
|
|
|
1497
1497
|
if (e && _(e.pageId)) {
|
|
1498
1498
|
let s = { ...e };
|
|
1499
1499
|
if (e.customPosition) {
|
|
1500
|
-
let r = (M.getParam("elementRectLeft") ?? 0) + (
|
|
1500
|
+
let r = (M.getParam("elementRectLeft") ?? 0) + (fe(e.leftOffset) ? e.leftOffset : 0), u = (M.getParam("elementRectTop") ?? 0) + (fe(e.topOffset) ? e.topOffset : 0);
|
|
1501
1501
|
s.absLeft = r, s.absTop = u;
|
|
1502
1502
|
}
|
|
1503
1503
|
w(s);
|
|
@@ -1528,12 +1528,12 @@ function Je(n = {}, o = !0, l = {}) {
|
|
|
1528
1528
|
let d = Object.keys(t);
|
|
1529
1529
|
for (let m = 0; m < d.length; m++) {
|
|
1530
1530
|
let b = t[d[m]] || [];
|
|
1531
|
-
for (const
|
|
1532
|
-
if (
|
|
1533
|
-
if (r.push(
|
|
1534
|
-
ge(
|
|
1531
|
+
for (const F of b)
|
|
1532
|
+
if (F.id == e.eventId) {
|
|
1533
|
+
if (r.push(F.id), s.eventIds = [...r], F.default) {
|
|
1534
|
+
ge(F.actionList, s);
|
|
1535
1535
|
break;
|
|
1536
|
-
} else
|
|
1536
|
+
} else je(F) && ge(F.actionList, s);
|
|
1537
1537
|
break;
|
|
1538
1538
|
}
|
|
1539
1539
|
}
|
|
@@ -1544,7 +1544,7 @@ function Je(n = {}, o = !0, l = {}) {
|
|
|
1544
1544
|
let r = null;
|
|
1545
1545
|
for (let u = 0; u < e.length; u++)
|
|
1546
1546
|
if (r = e[u], r.action == "router")
|
|
1547
|
-
|
|
1547
|
+
C(r.config);
|
|
1548
1548
|
else if (r.action == "dataRequest")
|
|
1549
1549
|
await pt(r.config);
|
|
1550
1550
|
else if (r.action == "cacheSet")
|
|
@@ -1586,11 +1586,11 @@ function Je(n = {}, o = !0, l = {}) {
|
|
|
1586
1586
|
key: e.rValue
|
|
1587
1587
|
});
|
|
1588
1588
|
const b = e.opType;
|
|
1589
|
-
[">", ">=", "<", "<=", "=="].includes(b) && (r =
|
|
1589
|
+
[">", ">=", "<", "<=", "=="].includes(b) && (r = se(r), u = se(u)), le[b] ? s = le[b](r, u) : (s = !1, console.warn("useEventHandler Invalid operator: " + b));
|
|
1590
1590
|
} else
|
|
1591
1591
|
console.warn("_judgeCondition warn: the condition config is error.");
|
|
1592
1592
|
return s;
|
|
1593
|
-
},
|
|
1593
|
+
}, je = (e) => {
|
|
1594
1594
|
let s = !1;
|
|
1595
1595
|
if (e.default)
|
|
1596
1596
|
s = !0;
|
|
@@ -1614,10 +1614,10 @@ function Je(n = {}, o = !0, l = {}) {
|
|
|
1614
1614
|
if (r.eventIds = [s.id], s.default) {
|
|
1615
1615
|
ge(s.actionList, r);
|
|
1616
1616
|
break;
|
|
1617
|
-
} else
|
|
1617
|
+
} else je(s) && ge(s.actionList, r);
|
|
1618
1618
|
}
|
|
1619
1619
|
}, Mt = (e) => {
|
|
1620
|
-
p || (
|
|
1620
|
+
p || (P && clearTimeout(P), P = setTimeout(() => {
|
|
1621
1621
|
if (t && t.hasOwnProperty("onMouseClick")) {
|
|
1622
1622
|
if (e && e.target) {
|
|
1623
1623
|
const r = e.target.getBoundingClientRect();
|
|
@@ -1628,7 +1628,7 @@ function Je(n = {}, o = !0, l = {}) {
|
|
|
1628
1628
|
}
|
|
1629
1629
|
}, S));
|
|
1630
1630
|
}, kt = (e) => {
|
|
1631
|
-
if (!p && (
|
|
1631
|
+
if (!p && (P && clearTimeout(P), t && t.hasOwnProperty("onMouseDblClick"))) {
|
|
1632
1632
|
if (e && e.target) {
|
|
1633
1633
|
const r = e.target.getBoundingClientRect();
|
|
1634
1634
|
J("elementRect", r), J("elementRectLeft", r.left), J("elementRectTop", r.top);
|
|
@@ -1666,7 +1666,7 @@ function Je(n = {}, o = !0, l = {}) {
|
|
|
1666
1666
|
let e = t.onMounted;
|
|
1667
1667
|
K(e);
|
|
1668
1668
|
}
|
|
1669
|
-
},
|
|
1669
|
+
}, jt = () => {
|
|
1670
1670
|
if (I && I.length > 0)
|
|
1671
1671
|
for (let e = 0; e < I.length; e++)
|
|
1672
1672
|
try {
|
|
@@ -1674,8 +1674,8 @@ function Je(n = {}, o = !0, l = {}) {
|
|
|
1674
1674
|
} catch (s) {
|
|
1675
1675
|
console.error("cancel request error", s);
|
|
1676
1676
|
}
|
|
1677
|
-
},
|
|
1678
|
-
if (
|
|
1677
|
+
}, Ft = () => {
|
|
1678
|
+
if (jt(), !p) {
|
|
1679
1679
|
if (h && h.length > 0)
|
|
1680
1680
|
for (let e = 0; e < h.length; e++)
|
|
1681
1681
|
try {
|
|
@@ -1709,7 +1709,7 @@ function Je(n = {}, o = !0, l = {}) {
|
|
|
1709
1709
|
changeValue: Tt,
|
|
1710
1710
|
beforeMount: Rt,
|
|
1711
1711
|
mounted: At,
|
|
1712
|
-
beforeUnmount:
|
|
1712
|
+
beforeUnmount: Ft,
|
|
1713
1713
|
unmounted: Bt,
|
|
1714
1714
|
setParam: J,
|
|
1715
1715
|
keyEnter: Dt
|
|
@@ -1748,7 +1748,7 @@ function We(n, o, l, t) {
|
|
|
1748
1748
|
}
|
|
1749
1749
|
};
|
|
1750
1750
|
}
|
|
1751
|
-
const
|
|
1751
|
+
const jn = /* @__PURE__ */ Object.assign({
|
|
1752
1752
|
name: "Group"
|
|
1753
1753
|
}, {
|
|
1754
1754
|
__name: "Component",
|
|
@@ -1771,8 +1771,8 @@ const Fn = /* @__PURE__ */ Object.assign({
|
|
|
1771
1771
|
},
|
|
1772
1772
|
setup(n, { expose: o }) {
|
|
1773
1773
|
const l = n, t = pe(), p = Ue(t), a = T(null), c = O(() => l.propValue || {}), f = O(() => l.element || {}), i = O(() => c.value.components || []), g = O(() => i.value.map((k) => {
|
|
1774
|
-
let
|
|
1775
|
-
return
|
|
1774
|
+
let V = { ...k }, H = x(k.groupStyle);
|
|
1775
|
+
return V.computedStyle = H, V.style && (V.style.width = V.computedStyle.width, V.style.height = V.computedStyle.height), V;
|
|
1776
1776
|
})), y = O(() => f.value.events || []), h = Le(), w = qe(), v = We(c, f, h);
|
|
1777
1777
|
Be(() => {
|
|
1778
1778
|
a.value = Je(y.value, l.designStatus, v), a.value?.beforeMount();
|
|
@@ -1783,30 +1783,30 @@ const Fn = /* @__PURE__ */ Object.assign({
|
|
|
1783
1783
|
}), He(() => {
|
|
1784
1784
|
a.value?.unmounted();
|
|
1785
1785
|
});
|
|
1786
|
-
const
|
|
1786
|
+
const P = (k) => {
|
|
1787
1787
|
a.value?.setParam(k);
|
|
1788
1788
|
}, S = (k) => {
|
|
1789
1789
|
a.value?.handleDblClick(k);
|
|
1790
1790
|
}, x = (k) => {
|
|
1791
1791
|
if (!k || !f.value?.style) return {};
|
|
1792
|
-
let
|
|
1793
|
-
return
|
|
1794
|
-
}, I =
|
|
1795
|
-
k ? I[`Ve${
|
|
1796
|
-
}, N = (k) => I[`Ve${k}`],
|
|
1797
|
-
if (_(k) && _(
|
|
1792
|
+
let V = { ...k }, H = f.value.style.width, Q = f.value.style.height;
|
|
1793
|
+
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;
|
|
1794
|
+
}, I = ue({}), G = (k, V) => {
|
|
1795
|
+
k ? I[`Ve${V}`] = k : delete I[`Ve${V}`];
|
|
1796
|
+
}, N = (k) => I[`Ve${k}`], C = (k, V, H) => {
|
|
1797
|
+
if (_(k) && _(V)) {
|
|
1798
1798
|
const Q = N(k);
|
|
1799
|
-
Q && Q[
|
|
1799
|
+
Q && Q[V] && (H ? Q[V](H) : Q[V]());
|
|
1800
1800
|
}
|
|
1801
1801
|
};
|
|
1802
1802
|
o({
|
|
1803
|
-
callGroupCompMethod:
|
|
1803
|
+
callGroupCompMethod: C
|
|
1804
1804
|
});
|
|
1805
|
-
const
|
|
1805
|
+
const X = { props: l, dataCache: t, smartData: p, eventHandler: a, propValue: c, element: f, components: i, computedComponents: g, events: y, router: h, route: w, compContext: v, handleClick: P, handleDblClick: S, calcCompStyle: x, componentRefs: I, setComponentRef: G, getComponentRef: N, callGroupCompMethod: C, get useDataCacheStore() {
|
|
1806
1806
|
return pe;
|
|
1807
1807
|
}, get createSmartAccessor() {
|
|
1808
1808
|
return Ue;
|
|
1809
|
-
}, ref: T, computed: O, onMounted: ve, onBeforeMount: Be, onBeforeUnmount: Ne, onUnmounted: He, watch: Ie, reactive:
|
|
1809
|
+
}, ref: T, computed: O, onMounted: ve, onBeforeMount: Be, onBeforeUnmount: Ne, onUnmounted: He, watch: Ie, reactive: ue, get useEventHandler() {
|
|
1810
1810
|
return Je;
|
|
1811
1811
|
}, get useRoute() {
|
|
1812
1812
|
return qe;
|
|
@@ -1819,12 +1819,12 @@ const Fn = /* @__PURE__ */ Object.assign({
|
|
|
1819
1819
|
}, get isNotEmpty() {
|
|
1820
1820
|
return _;
|
|
1821
1821
|
} };
|
|
1822
|
-
return Object.defineProperty(
|
|
1822
|
+
return Object.defineProperty(X, "__isScriptSetup", { enumerable: !1, value: !0 }), X;
|
|
1823
1823
|
}
|
|
1824
1824
|
});
|
|
1825
|
-
function
|
|
1825
|
+
function Fn(n, o, l, t, p, a) {
|
|
1826
1826
|
return D(), q("div", { class: "group" }, [
|
|
1827
|
-
|
|
1827
|
+
ne("div", null, [
|
|
1828
1828
|
(D(!0), q(Ee, null, Te(t.computedComponents, (c) => (D(), z(ye(c.component), {
|
|
1829
1829
|
id: "component" + c.id,
|
|
1830
1830
|
ref_for: !0,
|
|
@@ -1838,7 +1838,7 @@ function jn(n, o, l, t, p, a) {
|
|
|
1838
1838
|
])
|
|
1839
1839
|
]);
|
|
1840
1840
|
}
|
|
1841
|
-
const Bn = /* @__PURE__ */ W(
|
|
1841
|
+
const Bn = /* @__PURE__ */ W(jn, [["render", Fn], ["__scopeId", "data-v-20de9881"], ["__file", "Component.vue"]]), Nn = /* @__PURE__ */ Object.assign({
|
|
1842
1842
|
name: "VEDataCache"
|
|
1843
1843
|
}, {
|
|
1844
1844
|
__name: "index",
|
|
@@ -1860,19 +1860,19 @@ const Bn = /* @__PURE__ */ W(Fn, [["render", jn], ["__scopeId", "data-v-20de9881
|
|
|
1860
1860
|
}
|
|
1861
1861
|
if (f.value = !0, c.data)
|
|
1862
1862
|
if (i.value.fuzzyQry) {
|
|
1863
|
-
let
|
|
1864
|
-
for (let x = 0; x <
|
|
1865
|
-
|
|
1863
|
+
let P = Object.keys(c.data), S = [];
|
|
1864
|
+
for (let x = 0; x < P.length; x++)
|
|
1865
|
+
P[x].startsWith(i.value.id) && S.push(P[x]);
|
|
1866
1866
|
if (a.value = S.length, a.value > 0) {
|
|
1867
1867
|
let x = (i.value.pageNum - 1) * i.value.pageSize, I = x + i.value.pageSize;
|
|
1868
1868
|
if (x <= a.value) {
|
|
1869
1869
|
let G = [];
|
|
1870
1870
|
for (let N = x; N < I; N++)
|
|
1871
1871
|
if (N < a.value) {
|
|
1872
|
-
let
|
|
1872
|
+
let C = c.data[S[N]], X = te(C) ? he(C) : C;
|
|
1873
1873
|
G.push({
|
|
1874
1874
|
key: S[N],
|
|
1875
|
-
value:
|
|
1875
|
+
value: X
|
|
1876
1876
|
});
|
|
1877
1877
|
}
|
|
1878
1878
|
p.value = G;
|
|
@@ -1881,12 +1881,12 @@ const Bn = /* @__PURE__ */ W(Fn, [["render", jn], ["__scopeId", "data-v-20de9881
|
|
|
1881
1881
|
} else
|
|
1882
1882
|
p.value = [];
|
|
1883
1883
|
} else {
|
|
1884
|
-
let
|
|
1885
|
-
if (Se(
|
|
1884
|
+
let P = c.data[i.value.id];
|
|
1885
|
+
if (Se(P))
|
|
1886
1886
|
a.value = 0, p.value = [];
|
|
1887
1887
|
else {
|
|
1888
1888
|
a.value = 1;
|
|
1889
|
-
let S = he(
|
|
1889
|
+
let S = te(P) ? he(P) : P;
|
|
1890
1890
|
p.value = [{
|
|
1891
1891
|
key: i.value.id,
|
|
1892
1892
|
value: S
|
|
@@ -1894,8 +1894,8 @@ const Bn = /* @__PURE__ */ W(Fn, [["render", jn], ["__scopeId", "data-v-20de9881
|
|
|
1894
1894
|
}
|
|
1895
1895
|
}
|
|
1896
1896
|
f.value = !1;
|
|
1897
|
-
}, v = { queryForm: l, resultTableRef: t, dataList: p, total: a, dataCache: c, loading: f, queryParams: i, handleQuery: g, resetQuery: y, getList: h, handleCopyData: (
|
|
1898
|
-
|
|
1897
|
+
}, v = { queryForm: l, resultTableRef: t, dataList: p, total: a, dataCache: c, loading: f, queryParams: i, handleQuery: g, resetQuery: y, getList: h, handleCopyData: (P) => {
|
|
1898
|
+
P && Ce(P.value) && de("success", "复制成功");
|
|
1899
1899
|
}, ref: T, get useDataCacheStore() {
|
|
1900
1900
|
return pe;
|
|
1901
1901
|
}, get copyToClipboard() {
|
|
@@ -1904,6 +1904,8 @@ const Bn = /* @__PURE__ */ W(Fn, [["render", jn], ["__scopeId", "data-v-20de9881
|
|
|
1904
1904
|
return _;
|
|
1905
1905
|
}, get isNullOrUndefined() {
|
|
1906
1906
|
return Se;
|
|
1907
|
+
}, get isObject() {
|
|
1908
|
+
return te;
|
|
1907
1909
|
}, get toJsonStr() {
|
|
1908
1910
|
return he;
|
|
1909
1911
|
}, get showMessage() {
|
|
@@ -1913,9 +1915,9 @@ const Bn = /* @__PURE__ */ W(Fn, [["render", jn], ["__scopeId", "data-v-20de9881
|
|
|
1913
1915
|
}
|
|
1914
1916
|
});
|
|
1915
1917
|
function Hn(n, o, l, t, p, a) {
|
|
1916
|
-
const c =
|
|
1918
|
+
const c = j("el-input"), f = j("el-form-item"), i = j("el-switch"), g = j("el-button"), y = j("el-form"), h = j("el-table-column"), w = j("el-table"), v = j("pagination"), P = Ut("loading");
|
|
1917
1919
|
return D(), q("div", { class: "panel-area" }, [
|
|
1918
|
-
|
|
1920
|
+
ne("div", { class: "panel-condition" }, [
|
|
1919
1921
|
E(y, {
|
|
1920
1922
|
model: t.queryParams,
|
|
1921
1923
|
ref: "queryForm",
|
|
@@ -1986,7 +1988,7 @@ function Hn(n, o, l, t, p, a) {
|
|
|
1986
1988
|
}, 8, ["model"])
|
|
1987
1989
|
]),
|
|
1988
1990
|
A(),
|
|
1989
|
-
|
|
1991
|
+
ne("div", { class: "panel-table" }, [
|
|
1990
1992
|
A(`\r
|
|
1991
1993
|
\r
|
|
1992
1994
|
`),
|
|
@@ -2044,7 +2046,7 @@ function Hn(n, o, l, t, p, a) {
|
|
|
2044
2046
|
]),
|
|
2045
2047
|
_: 1
|
|
2046
2048
|
}, 8, ["data"])), [
|
|
2047
|
-
[
|
|
2049
|
+
[P, t.loading]
|
|
2048
2050
|
]),
|
|
2049
2051
|
A(),
|
|
2050
2052
|
xe(E(v, {
|
|
@@ -2061,7 +2063,7 @@ function Hn(n, o, l, t, p, a) {
|
|
|
2061
2063
|
])
|
|
2062
2064
|
]);
|
|
2063
2065
|
}
|
|
2064
|
-
const Ln = /* @__PURE__ */ W(Nn, [["render", Hn], ["__scopeId", "data-v-
|
|
2066
|
+
const Ln = /* @__PURE__ */ W(Nn, [["render", Hn], ["__scopeId", "data-v-55cea49e"], ["__file", "index.vue"]]), qn = [
|
|
2065
2067
|
yn,
|
|
2066
2068
|
bn,
|
|
2067
2069
|
Mn,
|