hflvloader 0.0.0 → 0.0.2
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 +514 -431
- package/package.json +58 -60
- package/dist/hflvloader.umd.js +0 -2
package/dist/hflvloader.es.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
(function(){"use strict";try{if(typeof document<"u"){var
|
|
2
|
-
import { withDirectives as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { defineStore as
|
|
6
|
-
import
|
|
7
|
-
import { ElMessage as
|
|
8
|
-
import { useRouter as
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var a=document.createElement("style");a.appendChild(document.createTextNode(".component[data-v-18b2e770]{position:absolute}.canvas-container[data-v-0ad040a6]{width:100%;height:100%;display:flex;align-items:center;justify-content:center;margin:auto;overflow:hidden}.canvas-container .canvas[data-v-0ad040a6]{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-fe28b3b7] .no-header-dialog{margin:0!important;padding:0!important}.full-screen-dialog-wrapper[data-v-fe28b3b7] .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}")),document.head.appendChild(a)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
|
|
2
|
+
import { withDirectives as Ot, createElementBlock as F, openBlock as P, createBlock as L, resolveDynamicComponent as ie, normalizeStyle as ae, vShow as Mt, computed as x, reactive as le, onMounted as ce, ref as R, createElementVNode as te, Fragment as Se, renderList as xe, provide as Oe, watch as Ae, defineComponent as Vt, normalizeClass as Ne, resolveComponent as W, withCtx as E, createVNode as U, mergeProps as Rt, createSlots as kt, createCommentVNode as Me, toDisplayString as Et, createTextVNode as Y, renderSlot as Tt, inject as de, onBeforeMount as Ve, onBeforeUnmount as Re, onUnmounted as ke } from "vue";
|
|
3
|
+
import It from "json5";
|
|
4
|
+
import Dt from "js-md5";
|
|
5
|
+
import { defineStore as Ft } from "pinia";
|
|
6
|
+
import fe from "js-cookie";
|
|
7
|
+
import { ElMessage as jt, ElNotification as Bt, ElLoading as At, ElMessageBox as He } from "element-plus";
|
|
8
|
+
import { useRouter as Ee, useRoute as Te } 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.2", "color: #2ecc71;"), console.log("%c编译日期: 2025/12/11 13:29:12", "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-2025 qbansanguo 保留对此版权信息的最终解释权.", "color: #f39c12;"), console.log("%c Copyright ©2024-2025 qbansanguo All rights reserved.", "color: #f39c12;");
|
|
12
12
|
};
|
|
13
13
|
if (typeof window < "u") {
|
|
14
14
|
window._copyright_hflvloader = t;
|
|
@@ -28,72 +28,72 @@ import { useRouter as Ve, useRoute as Ee } from "vue-router";
|
|
|
28
28
|
function _(t) {
|
|
29
29
|
return !!(t && t != "");
|
|
30
30
|
}
|
|
31
|
-
function
|
|
31
|
+
function be(t) {
|
|
32
32
|
return !isNaN(parseFloat(t)) && isFinite(t);
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function Le(t) {
|
|
35
35
|
return t && Object.prototype.toString.call(t) === "[object Date]" && !isNaN(t);
|
|
36
36
|
}
|
|
37
|
-
function
|
|
37
|
+
function D(t) {
|
|
38
38
|
return typeof Array.isArray > "u" ? Object.prototype.toString.call(t) === "[object Array]" : Array.isArray(t);
|
|
39
39
|
}
|
|
40
|
-
function
|
|
40
|
+
function Nt(t) {
|
|
41
41
|
return !!(t || t === 0);
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function ue(t) {
|
|
44
44
|
return t instanceof Object && t !== null;
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function Ht(t) {
|
|
47
47
|
return Object.keys(t).length === 0;
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function H(t) {
|
|
50
50
|
return !!(t && typeof t == "function");
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function qe(t) {
|
|
53
53
|
return t && t.__v_isRef && !!t.effect;
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function we(t) {
|
|
56
56
|
return typeof t == "string" || t instanceof String;
|
|
57
57
|
}
|
|
58
|
-
function
|
|
59
|
-
if (
|
|
58
|
+
function Ke(t, o = {}) {
|
|
59
|
+
if (we(t) && _(t))
|
|
60
60
|
try {
|
|
61
|
-
return
|
|
61
|
+
return It.parse(t);
|
|
62
62
|
} catch (l) {
|
|
63
63
|
return console.warn("JSON 解析错误:", l), o;
|
|
64
64
|
}
|
|
65
65
|
else
|
|
66
|
-
return
|
|
66
|
+
return ue(t) ? t : o;
|
|
67
67
|
}
|
|
68
|
-
function
|
|
69
|
-
return
|
|
68
|
+
function Lt(t) {
|
|
69
|
+
return we(t) ? t : ue(t) ? JSON.stringify(t, null, 2) : "";
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function re(t) {
|
|
72
72
|
if (typeof t == "object") {
|
|
73
73
|
const o = Array.isArray(t) ? [] : {};
|
|
74
74
|
for (const l in t)
|
|
75
|
-
typeof t[l] == "object" ? o[l] =
|
|
75
|
+
typeof t[l] == "object" ? o[l] = re(t[l]) : o[l] = t[l];
|
|
76
76
|
return o;
|
|
77
77
|
}
|
|
78
78
|
return t;
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function Je(t, o) {
|
|
81
81
|
for (const l in o)
|
|
82
|
-
o[l] instanceof Object && t[l] && Object.assign(o[l],
|
|
82
|
+
o[l] instanceof Object && t[l] && Object.assign(o[l], Je(t[l], o[l]));
|
|
83
83
|
return { ...t, ...o };
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function Ue(t, o) {
|
|
86
86
|
if (t) {
|
|
87
87
|
let l = t.getFullYear(), n = t.getMonth() + 1, p = t.getDate(), a = t.getHours(), c = t.getMinutes(), f = t.getSeconds(), s = o;
|
|
88
88
|
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 ? p >= 10 ? s = s.replace("dd", p) : s = s.replace("dd", "0" + p) : s = s.replace("d", p), s.indexOf("HH") >= 0 ? a >= 10 ? s = s.replace("HH", a) : s = s.replace("HH", "0" + a) : s = s.replace("H", a), 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 ? f >= 10 ? s = s.replace("ss", f) : s = s.replace("ss", "0" + f) : s = s.replace("s", f), s;
|
|
89
89
|
}
|
|
90
90
|
return "";
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function We(t) {
|
|
93
93
|
if (t) {
|
|
94
|
-
if (
|
|
94
|
+
if (Le(t))
|
|
95
95
|
return t;
|
|
96
|
-
if (
|
|
96
|
+
if (be(t)) {
|
|
97
97
|
let o = /* @__PURE__ */ new Date(), l = parseInt(t);
|
|
98
98
|
return l < 9999999999 && (l = l * 1e3), o.setTime(l), o;
|
|
99
99
|
} else
|
|
@@ -104,40 +104,40 @@ function Ue(t) {
|
|
|
104
104
|
}
|
|
105
105
|
return null;
|
|
106
106
|
}
|
|
107
|
-
function
|
|
107
|
+
function qt(t, o = 0) {
|
|
108
108
|
if (t) {
|
|
109
109
|
let l = t.getDay(), n = ["星期天", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"], p = ["周末", "周一", "周二", "周三", "周四", "周五", "周六"];
|
|
110
110
|
return o == 1 ? n[l] : o == 2 ? p[l] : l;
|
|
111
111
|
}
|
|
112
112
|
return null;
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function Kt(t) {
|
|
115
115
|
const o = document.createElement("textarea");
|
|
116
116
|
o.value = t, document.body.appendChild(o), o.select();
|
|
117
117
|
const l = document.execCommand("copy");
|
|
118
118
|
return document.body.removeChild(o), l;
|
|
119
119
|
}
|
|
120
|
-
async function
|
|
120
|
+
async function Jt(t) {
|
|
121
121
|
try {
|
|
122
|
-
return navigator.clipboard ? (await navigator.clipboard.writeText(t), !0) : !!
|
|
122
|
+
return navigator.clipboard ? (await navigator.clipboard.writeText(t), !0) : !!Kt(t);
|
|
123
123
|
} catch (o) {
|
|
124
124
|
return console.error("无法复制内容", o), !1;
|
|
125
125
|
}
|
|
126
126
|
}
|
|
127
|
-
async function
|
|
127
|
+
async function Ut() {
|
|
128
128
|
try {
|
|
129
129
|
return navigator.clipboard ? await navigator.clipboard.readText() : null;
|
|
130
130
|
} catch (t) {
|
|
131
131
|
return console.error("无法读取黏贴版内容", t), null;
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
|
-
function
|
|
135
|
-
return
|
|
134
|
+
function Wt(t, o) {
|
|
135
|
+
return be(t) ? t : o;
|
|
136
136
|
}
|
|
137
|
-
function
|
|
137
|
+
function ze(t, o) {
|
|
138
138
|
return o.split(".").reduce((l, n) => l && l[n], t);
|
|
139
139
|
}
|
|
140
|
-
function
|
|
140
|
+
function Ge(t, o) {
|
|
141
141
|
if (!t || typeof t != "object" || typeof o != "string" || !o)
|
|
142
142
|
return !1;
|
|
143
143
|
const l = o.split(".");
|
|
@@ -149,7 +149,7 @@ function ze(t, o) {
|
|
|
149
149
|
return !1;
|
|
150
150
|
return !0;
|
|
151
151
|
}
|
|
152
|
-
function
|
|
152
|
+
function Ye() {
|
|
153
153
|
if (typeof crypto < "u" && crypto.randomUUID)
|
|
154
154
|
return crypto.randomUUID();
|
|
155
155
|
if (typeof crypto < "u" && crypto.getRandomValues) {
|
|
@@ -161,7 +161,7 @@ function Ge() {
|
|
|
161
161
|
return (t === "x" ? o : o & 3 | 8).toString(16);
|
|
162
162
|
});
|
|
163
163
|
}
|
|
164
|
-
function
|
|
164
|
+
function zt(t, o = {}, l) {
|
|
165
165
|
try {
|
|
166
166
|
let n = t.toString().trim();
|
|
167
167
|
return n.indexOf("function") < 0 && (n = "function(param){" + n + "}"), new Function(`{return ${n}}`)()(o);
|
|
@@ -169,11 +169,11 @@ function Wt(t, o = {}, l) {
|
|
|
169
169
|
return console.error("执行自定义数时出错:", n), l;
|
|
170
170
|
}
|
|
171
171
|
}
|
|
172
|
-
function
|
|
173
|
-
return _(t) ?
|
|
172
|
+
function $e(t) {
|
|
173
|
+
return _(t) ? Dt(t) : "";
|
|
174
174
|
}
|
|
175
|
-
function
|
|
176
|
-
if (!window.
|
|
175
|
+
function me(t, ...o) {
|
|
176
|
+
if (!window.hflvloader_debug) return;
|
|
177
177
|
const l = {
|
|
178
178
|
debug: ["%c[DEBUG]", "color: #4CAF50; font-weight: bold"],
|
|
179
179
|
info: ["%c[INFO]", "color: #2196F3; font-weight: bold"],
|
|
@@ -197,60 +197,60 @@ function de(t, ...o) {
|
|
|
197
197
|
console.log(n[0], n[1], ...o);
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
|
-
function
|
|
200
|
+
function Gt(t, o = 0) {
|
|
201
201
|
if (typeof t != "number" || isNaN(t))
|
|
202
202
|
return NaN;
|
|
203
203
|
const n = 10 * Math.max(0, Math.floor(Number(o) || 0));
|
|
204
204
|
return Math.round(t * n) / n;
|
|
205
205
|
}
|
|
206
|
-
function
|
|
206
|
+
function Yt(t) {
|
|
207
207
|
return (Math.floor(t) & 1) === 0;
|
|
208
208
|
}
|
|
209
|
-
const
|
|
209
|
+
const Fn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
210
210
|
__proto__: null,
|
|
211
|
-
consolePrint:
|
|
212
|
-
copyToClipboard:
|
|
213
|
-
deepCopy:
|
|
214
|
-
deepMerge:
|
|
215
|
-
doMD5:
|
|
216
|
-
execCustomFunction:
|
|
217
|
-
formatDate:
|
|
218
|
-
generateSecureUUID:
|
|
219
|
-
getDate:
|
|
220
|
-
getJsonObject:
|
|
221
|
-
getValByDefault:
|
|
222
|
-
getValueByPath:
|
|
223
|
-
getWeek:
|
|
224
|
-
hasOwnPathInObject:
|
|
225
|
-
isArray:
|
|
226
|
-
isComputed:
|
|
227
|
-
isDate:
|
|
228
|
-
isEmptyObject:
|
|
229
|
-
isEven:
|
|
230
|
-
isFunction:
|
|
211
|
+
consolePrint: me,
|
|
212
|
+
copyToClipboard: Jt,
|
|
213
|
+
deepCopy: re,
|
|
214
|
+
deepMerge: Je,
|
|
215
|
+
doMD5: $e,
|
|
216
|
+
execCustomFunction: zt,
|
|
217
|
+
formatDate: Ue,
|
|
218
|
+
generateSecureUUID: Ye,
|
|
219
|
+
getDate: We,
|
|
220
|
+
getJsonObject: Ke,
|
|
221
|
+
getValByDefault: Wt,
|
|
222
|
+
getValueByPath: ze,
|
|
223
|
+
getWeek: qt,
|
|
224
|
+
hasOwnPathInObject: Ge,
|
|
225
|
+
isArray: D,
|
|
226
|
+
isComputed: qe,
|
|
227
|
+
isDate: Le,
|
|
228
|
+
isEmptyObject: Ht,
|
|
229
|
+
isEven: Yt,
|
|
230
|
+
isFunction: H,
|
|
231
231
|
isNotEmpty: _,
|
|
232
|
-
isNumber:
|
|
233
|
-
isObject:
|
|
234
|
-
isString:
|
|
235
|
-
isValid:
|
|
236
|
-
keepDecimalCalc:
|
|
237
|
-
pasteFromClipboard:
|
|
238
|
-
toJsonStr:
|
|
239
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
240
|
-
function
|
|
232
|
+
isNumber: be,
|
|
233
|
+
isObject: ue,
|
|
234
|
+
isString: we,
|
|
235
|
+
isValid: Nt,
|
|
236
|
+
keepDecimalCalc: Gt,
|
|
237
|
+
pasteFromClipboard: Ut,
|
|
238
|
+
toJsonStr: Lt
|
|
239
|
+
}, Symbol.toStringTag, { value: "Module" })), $t = ["width", "height", "scale"];
|
|
240
|
+
function Qt(t) {
|
|
241
241
|
const o = {};
|
|
242
|
-
return Object.keys(t).filter((l) =>
|
|
242
|
+
return Object.keys(t).filter((l) => !$t.includes(l)).forEach((l) => {
|
|
243
243
|
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];
|
|
244
244
|
}), o;
|
|
245
245
|
}
|
|
246
|
-
const
|
|
247
|
-
function
|
|
246
|
+
const Qe = ["fontSize", "width", "height", "top", "left", "borderWidth", "letterSpacing", "borderRadius"];
|
|
247
|
+
function Xe(t, o = []) {
|
|
248
248
|
const l = {};
|
|
249
249
|
return Object.keys(t).forEach((n) => {
|
|
250
|
-
o.includes(n) || (n != "rotate" ? t[n] !== "" && (l[n] = t[n],
|
|
250
|
+
o.includes(n) || (n != "rotate" ? t[n] !== "" && (l[n] = t[n], Qe.includes(n) && (l[n] += "px")) : l.transform = `${n}(${t[n]}deg)`);
|
|
251
251
|
}), l;
|
|
252
252
|
}
|
|
253
|
-
function
|
|
253
|
+
function Xt(t, o = []) {
|
|
254
254
|
const l = {};
|
|
255
255
|
return [
|
|
256
256
|
"opacity",
|
|
@@ -266,10 +266,10 @@ function Qt(t, o = []) {
|
|
|
266
266
|
"textAlign",
|
|
267
267
|
"color"
|
|
268
268
|
].forEach((n) => {
|
|
269
|
-
o.includes(n) || (n != "rotate" ? t[n] !== "" && (l[n] = t[n],
|
|
269
|
+
o.includes(n) || (n != "rotate" ? t[n] !== "" && (l[n] = t[n], Qe.includes(n) && (l[n] += "px")) : l.transform = `${n}(${t[n]}deg)`);
|
|
270
270
|
}), l;
|
|
271
271
|
}
|
|
272
|
-
function
|
|
272
|
+
function X(t, o, l, n, p, a, c) {
|
|
273
273
|
let f = JSON.parse(JSON.stringify(t));
|
|
274
274
|
return f && f.length > 0 && f.forEach((s) => {
|
|
275
275
|
if (s && s.style) {
|
|
@@ -304,54 +304,54 @@ function Y(t, o, l, n, p, a, c) {
|
|
|
304
304
|
}
|
|
305
305
|
}), f;
|
|
306
306
|
}
|
|
307
|
-
function
|
|
307
|
+
function jn(t, o, l, n) {
|
|
308
308
|
let p = {}, a = [];
|
|
309
309
|
if (!(l && l.screenAdapter && l.screenAdapter != "no-adapter"))
|
|
310
310
|
p = l, a = n;
|
|
311
311
|
else {
|
|
312
312
|
let c = Math.floor(t), f = Math.floor(o), s = Number(l.width), g = Number(l.height), h = 1, y = 1;
|
|
313
313
|
if (l.screenAdapter == "all-screen")
|
|
314
|
-
p = JSON.parse(JSON.stringify(l)), c > s + 10 && (p.width = c, h = Math.floor(1e4 * c / s) / 1e4), f > g + 10 && (p.height = f, y = Math.floor(1e4 * f / g) / 1e4), a =
|
|
314
|
+
p = JSON.parse(JSON.stringify(l)), c > s + 10 && (p.width = c, h = Math.floor(1e4 * c / s) / 1e4), f > g + 10 && (p.height = f, y = Math.floor(1e4 * f / g) / 1e4), a = X(n, c, f, h, y, s, g);
|
|
315
315
|
else if (l.screenAdapter == "original-ratio") {
|
|
316
316
|
p = JSON.parse(JSON.stringify(l));
|
|
317
|
-
let
|
|
318
|
-
Math.floor(f *
|
|
317
|
+
let O = Math.floor(1e4 * s / g) / 1e4;
|
|
318
|
+
Math.floor(f * O) > c ? (p.width = c, h = Math.floor(1e4 * c / s) / 1e4, f = Math.floor(c / O), p.height = f, y = Math.floor(1e4 * f / g) / 1e4) : (p.height = f, y = Math.floor(1e4 * f / g) / 1e4, c = Math.floor(f * O), p.width = c, h = Math.floor(1e4 * c / s) / 1e4), a = X(n, c, f, h, y, s, g);
|
|
319
319
|
} else if (l.screenAdapter == "h-adapter-wh") {
|
|
320
320
|
p = JSON.parse(JSON.stringify(l));
|
|
321
|
-
let
|
|
322
|
-
c > s + 10 && (p.width = c, h = Math.floor(1e4 * c / s) / 1e4, f = Math.floor(c /
|
|
321
|
+
let O = Math.floor(1e4 * s / g) / 1e4;
|
|
322
|
+
c > s + 10 && (p.width = c, h = Math.floor(1e4 * c / s) / 1e4, f = Math.floor(c / O), p.height = f, y = Math.floor(1e4 * f / g) / 1e4), a = X(n, c, f, h, y, s, g);
|
|
323
323
|
} else if (l.screenAdapter == "v-adapter-wh") {
|
|
324
324
|
p = JSON.parse(JSON.stringify(l));
|
|
325
|
-
let
|
|
326
|
-
f > g + 10 && (p.height = f, y = Math.floor(1e4 * f / g) / 1e4, c = Math.floor(f *
|
|
327
|
-
} else l.screenAdapter == "h-adapter" ? (p = JSON.parse(JSON.stringify(l)), c > s + 10 && (p.width = c, h = Math.floor(1e4 * c / s) / 1e4), a =
|
|
325
|
+
let O = Math.floor(1e4 * s / g) / 1e4;
|
|
326
|
+
f > g + 10 && (p.height = f, y = Math.floor(1e4 * f / g) / 1e4, c = Math.floor(f * O), p.width = c, h = Math.floor(1e4 * c / s) / 1e4), a = X(n, c, f, h, y, s, g);
|
|
327
|
+
} else l.screenAdapter == "h-adapter" ? (p = JSON.parse(JSON.stringify(l)), c > s + 10 && (p.width = c, h = Math.floor(1e4 * c / s) / 1e4), a = X(n, c, f, h, y, s, g)) : l.screenAdapter == "v-adapter" ? (p = JSON.parse(JSON.stringify(l)), f > g + 10 && (p.height = f, y = Math.floor(1e4 * f / g) / 1e4), a = X(n, c, f, h, y, s, g)) : (p = l, a = n);
|
|
328
328
|
}
|
|
329
329
|
return {
|
|
330
330
|
canvasStyleData: p,
|
|
331
331
|
componentData: a
|
|
332
332
|
};
|
|
333
333
|
}
|
|
334
|
-
async function
|
|
334
|
+
async function Ie(t, o = []) {
|
|
335
335
|
const l = (n) => new Promise((p) => {
|
|
336
336
|
const { animationTime: a, value: c = "", isLoop: f } = n;
|
|
337
|
-
t.style.setProperty("--time", `${a}s`), t.classList.add(c, "animated",
|
|
337
|
+
t.style.setProperty("--time", `${a}s`), t.classList.add(c, "animated", De(f));
|
|
338
338
|
const s = () => {
|
|
339
|
-
t.removeEventListener("animationend", s), t.removeEventListener("animationcancel", s), t.classList.remove(c, "animated",
|
|
339
|
+
t.removeEventListener("animationend", s), t.removeEventListener("animationcancel", s), t.classList.remove(c, "animated", De(f)), t.style.removeProperty("--time"), p();
|
|
340
340
|
};
|
|
341
341
|
t.addEventListener("animationend", s), t.addEventListener("animationcancel", s);
|
|
342
342
|
});
|
|
343
343
|
for (let n = 0, p = o.length; n < p; n++)
|
|
344
344
|
await l(o[n]);
|
|
345
345
|
}
|
|
346
|
-
function
|
|
346
|
+
function De(t) {
|
|
347
347
|
return t ? "infinite" : "no-infinite";
|
|
348
348
|
}
|
|
349
|
-
const
|
|
349
|
+
const z = (t, o) => {
|
|
350
350
|
const l = t.__vccOpts || t;
|
|
351
351
|
for (const [n, p] of o)
|
|
352
352
|
l[n] = p;
|
|
353
353
|
return l;
|
|
354
|
-
},
|
|
354
|
+
}, Zt = {
|
|
355
355
|
__name: "ComponentWrapper",
|
|
356
356
|
props: {
|
|
357
357
|
config: {
|
|
@@ -362,53 +362,53 @@ const W = (t, o) => {
|
|
|
362
362
|
}
|
|
363
363
|
},
|
|
364
364
|
setup(t, { expose: o }) {
|
|
365
|
-
const l = t, n =
|
|
365
|
+
const l = t, n = x(() => l.config || {}), p = x(() => !(n.value.style && n.value.style.isHide)), a = le({}), c = (h, y) => {
|
|
366
366
|
h ? a[`Ve${y}`] = h : delete a[`Ve${y}`];
|
|
367
367
|
}, f = (h) => a[`Ve${h}`], s = () => {
|
|
368
368
|
if (n.value.animations && n.value.animations.length > 0) {
|
|
369
369
|
let h = a[`Ve${n.value.id}`];
|
|
370
|
-
h.$el &&
|
|
370
|
+
h.$el && Ie(h.$el, n.value.animations);
|
|
371
371
|
}
|
|
372
372
|
};
|
|
373
|
-
|
|
373
|
+
ce(() => {
|
|
374
374
|
s();
|
|
375
375
|
}), o({
|
|
376
376
|
getComponentRef: f
|
|
377
377
|
});
|
|
378
|
-
const g = { props: l, config: n, isShow: p, componentRefs: a, setComponentRef: c, getComponentRef: f, execAnimation: s, ref:
|
|
379
|
-
return
|
|
378
|
+
const g = { props: l, config: n, isShow: p, componentRefs: a, setComponentRef: c, getComponentRef: f, execAnimation: s, ref: R, computed: x, onMounted: ce, reactive: le, get getSVGStyle() {
|
|
379
|
+
return Xt;
|
|
380
380
|
}, get getStyle() {
|
|
381
|
-
return
|
|
381
|
+
return Xe;
|
|
382
382
|
}, get runAnimation() {
|
|
383
|
-
return
|
|
383
|
+
return Ie;
|
|
384
384
|
} };
|
|
385
385
|
return Object.defineProperty(g, "__isScriptSetup", { enumerable: !1, value: !0 }), g;
|
|
386
386
|
}
|
|
387
387
|
};
|
|
388
|
-
function
|
|
389
|
-
return
|
|
390
|
-
n.config.component.startsWith("SVG") ? (P(),
|
|
388
|
+
function en(t, o, l, n, p, a) {
|
|
389
|
+
return Ot((P(), F("div", { class: "component-wrapper" }, [
|
|
390
|
+
n.config.component.startsWith("SVG") ? (P(), L(ie(n.config.component), {
|
|
391
391
|
key: 0,
|
|
392
392
|
ref: (c) => n.setComponentRef(c, n.config.id),
|
|
393
393
|
class: "component",
|
|
394
|
-
style:
|
|
394
|
+
style: ae(n.getSVGStyle(n.config.style)),
|
|
395
395
|
"prop-value": n.config.propValue,
|
|
396
396
|
element: n.config,
|
|
397
397
|
designStatus: !1
|
|
398
|
-
}, null, 8, ["style", "prop-value", "element"])) : (P(),
|
|
398
|
+
}, null, 8, ["style", "prop-value", "element"])) : (P(), L(ie(n.config.component), {
|
|
399
399
|
key: 1,
|
|
400
400
|
ref: (c) => n.setComponentRef(c, n.config.id),
|
|
401
401
|
class: "component",
|
|
402
|
-
style:
|
|
402
|
+
style: ae(n.getStyle(n.config.style)),
|
|
403
403
|
"prop-value": n.config.propValue,
|
|
404
404
|
element: n.config,
|
|
405
405
|
designStatus: !1
|
|
406
406
|
}, null, 8, ["style", "prop-value", "element"]))
|
|
407
407
|
], 512)), [
|
|
408
|
-
[
|
|
408
|
+
[Mt, n.isShow]
|
|
409
409
|
]);
|
|
410
410
|
}
|
|
411
|
-
const
|
|
411
|
+
const tn = /* @__PURE__ */ z(Zt, [["render", en], ["__scopeId", "data-v-18b2e770"], ["__file", "ComponentWrapper.vue"]]), nn = /* @__PURE__ */ Object.assign({
|
|
412
412
|
name: "VEPage"
|
|
413
413
|
}, {
|
|
414
414
|
__name: "index",
|
|
@@ -426,45 +426,45 @@ const en = /* @__PURE__ */ W(Xt, [["render", Zt], ["__scopeId", "data-v-18b2e770
|
|
|
426
426
|
}
|
|
427
427
|
},
|
|
428
428
|
setup(t, { expose: o }) {
|
|
429
|
-
const l = t, n =
|
|
429
|
+
const l = t, n = R({}), p = x(() => l.canvasStyle || {}), a = x(() => l.componentData || []), c = (g, h) => {
|
|
430
430
|
g && (n.value[h] = g);
|
|
431
431
|
}, f = (g, h, y) => {
|
|
432
432
|
if (_(g) && _(h)) {
|
|
433
|
-
const
|
|
434
|
-
if (
|
|
433
|
+
const O = "VeP" + g, M = n.value[O];
|
|
434
|
+
if (M) {
|
|
435
435
|
let k;
|
|
436
|
-
|
|
437
|
-
const
|
|
438
|
-
|
|
436
|
+
D(M) ? k = M[0] : k = M;
|
|
437
|
+
const T = k.getComponentRef(g);
|
|
438
|
+
T ? T?.$options.name === "Group" && y && y.compId ? T.callGroupCompMethod(y.compId, h, y.data) : T[h] && (y ? T[h](y) : T[h]()) : me("warning", "The component is not exist.id:", g);
|
|
439
439
|
}
|
|
440
440
|
}
|
|
441
441
|
};
|
|
442
|
-
|
|
442
|
+
Oe("VE-CompMethod", f), o({
|
|
443
443
|
callCompMethod: f
|
|
444
444
|
});
|
|
445
|
-
const s = { props: l, componentRefs: n, canvasStyle: p, componentData: a, setComponentRef: c, callCompMethod: f, ref:
|
|
446
|
-
return
|
|
447
|
-
}, ComponentWrapper:
|
|
445
|
+
const s = { props: l, componentRefs: n, canvasStyle: p, componentData: a, setComponentRef: c, callCompMethod: f, ref: R, computed: x, provide: Oe, watch: Ae, get getCanvasStyle() {
|
|
446
|
+
return Qt;
|
|
447
|
+
}, ComponentWrapper: tn, get isNotEmpty() {
|
|
448
448
|
return _;
|
|
449
449
|
}, get isArray() {
|
|
450
|
-
return
|
|
450
|
+
return D;
|
|
451
451
|
}, get consolePrint() {
|
|
452
|
-
return
|
|
452
|
+
return me;
|
|
453
453
|
} };
|
|
454
454
|
return Object.defineProperty(s, "__isScriptSetup", { enumerable: !1, value: !0 }), s;
|
|
455
455
|
}
|
|
456
456
|
});
|
|
457
|
-
function
|
|
458
|
-
return P(),
|
|
459
|
-
|
|
457
|
+
function on(t, o, l, n, p, a) {
|
|
458
|
+
return P(), F("div", { class: "canvas-container" }, [
|
|
459
|
+
te("div", {
|
|
460
460
|
class: "canvas",
|
|
461
|
-
style:
|
|
461
|
+
style: ae({
|
|
462
462
|
...n.getCanvasStyle(n.canvasStyle || {}),
|
|
463
463
|
width: n.canvasStyle.width + "px",
|
|
464
464
|
height: n.canvasStyle.height + "px"
|
|
465
465
|
})
|
|
466
466
|
}, [
|
|
467
|
-
(P(!0),
|
|
467
|
+
(P(!0), F(Se, null, xe(n.componentData, (c, f) => (P(), L(n.ComponentWrapper, {
|
|
468
468
|
key: f,
|
|
469
469
|
config: c,
|
|
470
470
|
ref_for: !0,
|
|
@@ -473,7 +473,7 @@ function nn(t, o, l, n, p, a) {
|
|
|
473
473
|
], 4)
|
|
474
474
|
]);
|
|
475
475
|
}
|
|
476
|
-
const
|
|
476
|
+
const rn = /* @__PURE__ */ z(nn, [["render", on], ["__scopeId", "data-v-0ad040a6"], ["__file", "index.vue"]]), ln = Vt({
|
|
477
477
|
name: "ve-comp-svg-icon",
|
|
478
478
|
props: {
|
|
479
479
|
iconClass: {
|
|
@@ -491,23 +491,23 @@ const on = /* @__PURE__ */ W(tn, [["render", nn], ["__scopeId", "data-v-0ad040a6
|
|
|
491
491
|
},
|
|
492
492
|
setup(t) {
|
|
493
493
|
return {
|
|
494
|
-
iconName:
|
|
495
|
-
svgClass:
|
|
494
|
+
iconName: x(() => `#icon-${t.iconClass}`),
|
|
495
|
+
svgClass: x(() => t.className ? `ve-comp-svg-icon ${t.className}` : "ve-comp-svg-icon")
|
|
496
496
|
};
|
|
497
497
|
}
|
|
498
498
|
});
|
|
499
|
-
function
|
|
500
|
-
return P(),
|
|
501
|
-
class:
|
|
499
|
+
function sn(t, o, l, n, p, a) {
|
|
500
|
+
return P(), F("svg", {
|
|
501
|
+
class: Ne(t.svgClass),
|
|
502
502
|
"aria-hidden": "true"
|
|
503
503
|
}, [
|
|
504
|
-
|
|
504
|
+
te("use", {
|
|
505
505
|
"xlink:href": t.iconName,
|
|
506
506
|
fill: t.color
|
|
507
507
|
}, null, 8, ["xlink:href", "fill"])
|
|
508
508
|
], 2);
|
|
509
509
|
}
|
|
510
|
-
const
|
|
510
|
+
const Ze = /* @__PURE__ */ z(ln, [["render", sn], ["__file", "index.vue"]]), an = /* @__PURE__ */ Object.assign({
|
|
511
511
|
name: "CompositeIcon"
|
|
512
512
|
}, {
|
|
513
513
|
__name: "index",
|
|
@@ -528,39 +528,39 @@ const sn = /* @__PURE__ */ W(rn, [["render", ln], ["__file", "index.vue"]]), an
|
|
|
528
528
|
},
|
|
529
529
|
setup(t, { expose: o }) {
|
|
530
530
|
o();
|
|
531
|
-
const f = { 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:
|
|
531
|
+
const f = { 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: Ze };
|
|
532
532
|
return Object.defineProperty(f, "__isScriptSetup", { enumerable: !1, value: !0 }), f;
|
|
533
533
|
}
|
|
534
534
|
});
|
|
535
535
|
function cn(t, o, l, n, p, a) {
|
|
536
|
-
const c =
|
|
537
|
-
return P(),
|
|
536
|
+
const c = W("el-icon");
|
|
537
|
+
return P(), L(c, {
|
|
538
538
|
size: n.props.iconSize,
|
|
539
539
|
color: n.props.color
|
|
540
540
|
}, {
|
|
541
|
-
default:
|
|
542
|
-
n.isImage(n.props.icon) ? (P(),
|
|
541
|
+
default: E(() => [
|
|
542
|
+
n.isImage(n.props.icon) ? (P(), F("img", {
|
|
543
543
|
key: 0,
|
|
544
544
|
src: n.getImageSrc(n.props.icon)
|
|
545
|
-
}, null, 8, ["src"])) : n.isSvgIcon(n.props.icon) ? (P(),
|
|
545
|
+
}, null, 8, ["src"])) : n.isSvgIcon(n.props.icon) ? (P(), L(n.VeCompSvgIcon, {
|
|
546
546
|
key: 1,
|
|
547
547
|
"icon-class": n.getSvgIconClass(n.props.icon),
|
|
548
548
|
color: n.props.color
|
|
549
|
-
}, null, 8, ["icon-class", "color"])) : (P(),
|
|
549
|
+
}, null, 8, ["icon-class", "color"])) : (P(), L(ie(n.props.icon), { key: 2 }))
|
|
550
550
|
]),
|
|
551
551
|
_: 1
|
|
552
552
|
}, 8, ["size", "color"]);
|
|
553
553
|
}
|
|
554
|
-
const un = /* @__PURE__ */
|
|
555
|
-
let
|
|
556
|
-
const
|
|
557
|
-
if (!
|
|
558
|
-
const t =
|
|
559
|
-
|
|
554
|
+
const un = /* @__PURE__ */ z(an, [["render", cn], ["__file", "index.vue"]]);
|
|
555
|
+
let pe = null;
|
|
556
|
+
const ge = () => {
|
|
557
|
+
if (!pe) {
|
|
558
|
+
const t = le({}), o = R([]);
|
|
559
|
+
pe = {
|
|
560
560
|
dialogs: t,
|
|
561
561
|
dialogStack: o,
|
|
562
562
|
openDialog: (c = {}) => {
|
|
563
|
-
const f = c.dialogId || "dialog-" +
|
|
563
|
+
const f = c.dialogId || "dialog-" + Ye(), s = o.value.length;
|
|
564
564
|
s >= 1 && (c.appendToBody = !0);
|
|
565
565
|
const g = {
|
|
566
566
|
id: f,
|
|
@@ -590,7 +590,7 @@ const me = () => {
|
|
|
590
590
|
getDialogCount: () => o.value.length
|
|
591
591
|
};
|
|
592
592
|
}
|
|
593
|
-
return
|
|
593
|
+
return pe;
|
|
594
594
|
}, fn = /* @__PURE__ */ Object.assign({
|
|
595
595
|
name: "FullScreenDialog"
|
|
596
596
|
}, {
|
|
@@ -603,16 +603,16 @@ const me = () => {
|
|
|
603
603
|
},
|
|
604
604
|
emits: ["confirm", "cancel"],
|
|
605
605
|
setup(t, { expose: o, emit: l }) {
|
|
606
|
-
const n = t, p = l, a =
|
|
606
|
+
const n = t, p = l, a = x(() => n.config), c = x(() => a.value.title || "对话框"), f = x(() => !!n.config.showHeader), s = R(a.value.fullscreen), g = R(a.value.width), h = R(!0), y = x(() => {
|
|
607
607
|
let S = a.value.width ?? 800;
|
|
608
608
|
return f.value ? S + 32 : S;
|
|
609
|
-
}),
|
|
609
|
+
}), O = x(() => {
|
|
610
610
|
let S = {};
|
|
611
611
|
return S.style = {}, S.style.width = a.value.width ?? 800, S.style.height = a.value.height ?? 600, S.prop = {}, S.prop.subpageId = a.value.pageId, S.containerParam = a.value.pageParam || {}, S;
|
|
612
|
-
}),
|
|
612
|
+
}), M = x(() => {
|
|
613
613
|
let S = {};
|
|
614
614
|
return S.modal = a.value.modal, S["show-close"] = a.value.showClose, S.draggable = a.value.draggable, a.value.appendToBody && (S["append-to-body"] = a.value.appendToBody), f.value || (S.class = " no-header-dialog"), S;
|
|
615
|
-
}), k =
|
|
615
|
+
}), k = x(() => {
|
|
616
616
|
let S = {};
|
|
617
617
|
if (a.value.customPosition) {
|
|
618
618
|
let q = a.value.absLeft ?? 100, C = a.value.absTop ?? 100;
|
|
@@ -627,28 +627,28 @@ const me = () => {
|
|
|
627
627
|
return a.value.noBackgroundColor && Object.assign(S, {
|
|
628
628
|
backgroundColor: "transparent"
|
|
629
629
|
}), S;
|
|
630
|
-
}),
|
|
630
|
+
}), T = () => {
|
|
631
631
|
p("confirm");
|
|
632
|
-
},
|
|
633
|
-
p("cancel"),
|
|
634
|
-
},
|
|
632
|
+
}, Q = () => {
|
|
633
|
+
p("cancel"), j();
|
|
634
|
+
}, j = () => {
|
|
635
635
|
h.value = !1;
|
|
636
|
-
},
|
|
636
|
+
}, ne = (S) => {
|
|
637
637
|
p("cancel");
|
|
638
638
|
};
|
|
639
639
|
o({
|
|
640
|
-
close:
|
|
640
|
+
close: j
|
|
641
641
|
});
|
|
642
|
-
const
|
|
642
|
+
const B = { props: n, emit: p, config: a, title: c, showTitle: f, isFullscreen: s, previousWidth: g, openDialog: h, dialogWidth: y, element: O, bindAttr: M, customStyle: k, confirmInner: T, cancel: Q, close: j, handleClose: ne, ref: R, computed: x, get isNotEmpty() {
|
|
643
643
|
return _;
|
|
644
644
|
} };
|
|
645
|
-
return Object.defineProperty(
|
|
645
|
+
return Object.defineProperty(B, "__isScriptSetup", { enumerable: !1, value: !0 }), B;
|
|
646
646
|
}
|
|
647
647
|
});
|
|
648
648
|
function pn(t, o, l, n, p, a) {
|
|
649
|
-
const c =
|
|
650
|
-
return P(),
|
|
651
|
-
|
|
649
|
+
const c = W("Subpage"), f = W("el-button"), s = W("el-dialog");
|
|
650
|
+
return P(), F("div", { class: "full-screen-dialog-wrapper" }, [
|
|
651
|
+
U(s, Rt({
|
|
652
652
|
modelValue: n.openDialog,
|
|
653
653
|
"onUpdate:modelValue": o[0] || (o[0] = (g) => n.openDialog = g),
|
|
654
654
|
width: n.dialogWidth,
|
|
@@ -657,11 +657,11 @@ function pn(t, o, l, n, p, a) {
|
|
|
657
657
|
style: n.customStyle,
|
|
658
658
|
onClose: n.handleClose
|
|
659
659
|
}), kt({
|
|
660
|
-
header:
|
|
661
|
-
n.showTitle ? (P(),
|
|
660
|
+
header: E(() => [
|
|
661
|
+
n.showTitle ? (P(), F("span", { key: 0 }, Et(n.title), 1)) : Me("", !0)
|
|
662
662
|
]),
|
|
663
|
-
default:
|
|
664
|
-
n.isNotEmpty(n.config.pageId) ? (P(),
|
|
663
|
+
default: E(() => [
|
|
664
|
+
n.isNotEmpty(n.config.pageId) ? (P(), L(c, {
|
|
665
665
|
key: 0,
|
|
666
666
|
"prop-value": n.element.prop,
|
|
667
667
|
element: n.element
|
|
@@ -671,21 +671,21 @@ function pn(t, o, l, n, p, a) {
|
|
|
671
671
|
}, [
|
|
672
672
|
n.config.showFooter ? {
|
|
673
673
|
name: "footer",
|
|
674
|
-
fn:
|
|
675
|
-
|
|
676
|
-
|
|
674
|
+
fn: E(() => [
|
|
675
|
+
te("div", { class: "dialog-footer" }, [
|
|
676
|
+
U(f, {
|
|
677
677
|
type: "primary",
|
|
678
678
|
onClick: n.confirmInner
|
|
679
679
|
}, {
|
|
680
|
-
default:
|
|
681
|
-
|
|
680
|
+
default: E(() => [
|
|
681
|
+
Y("确定")
|
|
682
682
|
]),
|
|
683
683
|
_: 1
|
|
684
684
|
}),
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
default:
|
|
688
|
-
|
|
685
|
+
Y(),
|
|
686
|
+
U(f, { onClick: n.cancel }, {
|
|
687
|
+
default: E(() => [
|
|
688
|
+
Y("关 闭")
|
|
689
689
|
]),
|
|
690
690
|
_: 1
|
|
691
691
|
})
|
|
@@ -696,28 +696,28 @@ function pn(t, o, l, n, p, a) {
|
|
|
696
696
|
]), 1040, ["modelValue", "width", "fullscreen", "style"])
|
|
697
697
|
]);
|
|
698
698
|
}
|
|
699
|
-
const dn = /* @__PURE__ */
|
|
699
|
+
const dn = /* @__PURE__ */ z(fn, [["render", pn], ["__scopeId", "data-v-fe28b3b7"], ["__file", "FullscreenDialog.vue"]]), mn = /* @__PURE__ */ Object.assign({
|
|
700
700
|
name: "DialogContainer"
|
|
701
701
|
}, {
|
|
702
702
|
__name: "DialogContainer",
|
|
703
703
|
setup(t, { expose: o }) {
|
|
704
704
|
o();
|
|
705
|
-
const { dialogs: l, closeDialog: n } =
|
|
705
|
+
const { dialogs: l, closeDialog: n } = ge(), p = x(() => Object.values(l)), c = { dialogs: l, closeDialog: n, dialogList: p, cancelHandler: (f) => {
|
|
706
706
|
n(f);
|
|
707
707
|
}, get useDialogManager() {
|
|
708
|
-
return
|
|
709
|
-
}, computed:
|
|
708
|
+
return ge;
|
|
709
|
+
}, computed: x, FullScreenDialog: dn };
|
|
710
710
|
return Object.defineProperty(c, "__isScriptSetup", { enumerable: !1, value: !0 }), c;
|
|
711
711
|
}
|
|
712
712
|
});
|
|
713
713
|
function gn(t, o, l, n, p, a) {
|
|
714
|
-
return P(!0),
|
|
714
|
+
return P(!0), F(Se, null, xe(n.dialogList, (c) => (P(), L(n.FullScreenDialog, {
|
|
715
715
|
key: c.id,
|
|
716
716
|
config: c.config,
|
|
717
717
|
onCancel: (f) => n.cancelHandler(c.id)
|
|
718
718
|
}, null, 8, ["config", "onCancel"]))), 128);
|
|
719
719
|
}
|
|
720
|
-
const hn = /* @__PURE__ */
|
|
720
|
+
const hn = /* @__PURE__ */ z(mn, [["render", gn], ["__file", "DialogContainer.vue"]]), yn = /* @__PURE__ */ Object.assign({
|
|
721
721
|
name: "CommonDialog"
|
|
722
722
|
}, {
|
|
723
723
|
__name: "index",
|
|
@@ -737,32 +737,32 @@ const hn = /* @__PURE__ */ W(mn, [["render", gn], ["__file", "DialogContainer.vu
|
|
|
737
737
|
},
|
|
738
738
|
emits: ["confirm"],
|
|
739
739
|
setup(t, { expose: o, emit: l }) {
|
|
740
|
-
const n =
|
|
740
|
+
const n = R("弹框"), p = R(!1), a = t, c = l;
|
|
741
741
|
let f = null;
|
|
742
|
-
const s =
|
|
742
|
+
const s = x(() => n.value && _(n.value) ? n.value : a.title), g = () => {
|
|
743
743
|
c("confirm", { callBack: f });
|
|
744
744
|
}, h = () => {
|
|
745
745
|
p.value = !1;
|
|
746
|
-
}, y = (
|
|
747
|
-
p.value = !0, f =
|
|
746
|
+
}, y = (M = {}) => {
|
|
747
|
+
p.value = !0, f = M.callBack, n.value = M.title || "";
|
|
748
748
|
};
|
|
749
749
|
o({
|
|
750
750
|
show: y,
|
|
751
751
|
cancel: h
|
|
752
752
|
});
|
|
753
|
-
const
|
|
753
|
+
const O = { showTitle: n, openDialog: p, props: a, emit: c, get callBack() {
|
|
754
754
|
return f;
|
|
755
|
-
}, set callBack(
|
|
756
|
-
f =
|
|
757
|
-
}, title: s, confirmInner: g, cancel: h, show: y, ref:
|
|
755
|
+
}, set callBack(M) {
|
|
756
|
+
f = M;
|
|
757
|
+
}, title: s, confirmInner: g, cancel: h, show: y, ref: R, computed: x, get isNotEmpty() {
|
|
758
758
|
return _;
|
|
759
759
|
} };
|
|
760
|
-
return Object.defineProperty(
|
|
760
|
+
return Object.defineProperty(O, "__isScriptSetup", { enumerable: !1, value: !0 }), O;
|
|
761
761
|
}
|
|
762
762
|
});
|
|
763
763
|
function _n(t, o, l, n, p, a) {
|
|
764
|
-
const c =
|
|
765
|
-
return P(),
|
|
764
|
+
const c = W("el-button"), f = W("el-dialog");
|
|
765
|
+
return P(), L(f, {
|
|
766
766
|
title: n.title,
|
|
767
767
|
modelValue: n.openDialog,
|
|
768
768
|
"onUpdate:modelValue": o[0] || (o[0] = (s) => n.openDialog = s),
|
|
@@ -774,24 +774,24 @@ function _n(t, o, l, n, p, a) {
|
|
|
774
774
|
"align-center": !0,
|
|
775
775
|
draggable: ""
|
|
776
776
|
}, {
|
|
777
|
-
default:
|
|
778
|
-
|
|
777
|
+
default: E(() => [
|
|
778
|
+
Tt(t.$slots, "dialog-content")
|
|
779
779
|
]),
|
|
780
|
-
footer:
|
|
781
|
-
|
|
782
|
-
|
|
780
|
+
footer: E(() => [
|
|
781
|
+
te("div", { class: "dialog-footer" }, [
|
|
782
|
+
U(c, {
|
|
783
783
|
type: "primary",
|
|
784
784
|
onClick: n.confirmInner
|
|
785
785
|
}, {
|
|
786
|
-
default:
|
|
787
|
-
|
|
786
|
+
default: E(() => [
|
|
787
|
+
Y("确定")
|
|
788
788
|
]),
|
|
789
789
|
_: 1
|
|
790
790
|
}),
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
default:
|
|
794
|
-
|
|
791
|
+
Y(),
|
|
792
|
+
U(c, { onClick: n.cancel }, {
|
|
793
|
+
default: E(() => [
|
|
794
|
+
Y("关 闭")
|
|
795
795
|
]),
|
|
796
796
|
_: 1
|
|
797
797
|
})
|
|
@@ -800,7 +800,88 @@ function _n(t, o, l, n, p, a) {
|
|
|
800
800
|
_: 3
|
|
801
801
|
}, 8, ["title", "modelValue", "width", "modal"]);
|
|
802
802
|
}
|
|
803
|
-
const vn = /* @__PURE__ */
|
|
803
|
+
const vn = /* @__PURE__ */ z(yn, [["render", _n], ["__file", "index.vue"]]), Sn = /* @__PURE__ */ Object.assign({
|
|
804
|
+
name: "OmitInput"
|
|
805
|
+
}, {
|
|
806
|
+
__name: "index",
|
|
807
|
+
props: {
|
|
808
|
+
modelValue: {
|
|
809
|
+
type: String,
|
|
810
|
+
default: ""
|
|
811
|
+
},
|
|
812
|
+
placeholder: {
|
|
813
|
+
type: String,
|
|
814
|
+
default: "请输入"
|
|
815
|
+
},
|
|
816
|
+
dialogTitle: {
|
|
817
|
+
type: String,
|
|
818
|
+
default: "内容编辑"
|
|
819
|
+
}
|
|
820
|
+
},
|
|
821
|
+
emits: ["update:modelValue"],
|
|
822
|
+
setup(t, { expose: o, emit: l }) {
|
|
823
|
+
o();
|
|
824
|
+
const n = t, p = l, a = R(null), c = R(""), f = x({
|
|
825
|
+
get: () => n.modelValue,
|
|
826
|
+
set: (y) => p("update:modelValue", y)
|
|
827
|
+
}), h = { props: n, emits: p, inputDialogRef: a, inputTextArea: c, internalValue: f, openInputDialog: () => {
|
|
828
|
+
c.value = re(f.value), a.value?.show();
|
|
829
|
+
}, confirmEdit: (y) => {
|
|
830
|
+
f.value = re(c.value), a.value?.cancel();
|
|
831
|
+
}, ref: R, computed: x, get deepCopy() {
|
|
832
|
+
return re;
|
|
833
|
+
} };
|
|
834
|
+
return Object.defineProperty(h, "__isScriptSetup", { enumerable: !1, value: !0 }), h;
|
|
835
|
+
}
|
|
836
|
+
});
|
|
837
|
+
function xn(t, o, l, n, p, a) {
|
|
838
|
+
const c = W("el-text"), f = W("el-input"), s = W("CommonDialog");
|
|
839
|
+
return P(), F("div", {
|
|
840
|
+
class: Ne(["custom-omit-input-wrapper", t.$attrs.class])
|
|
841
|
+
}, [
|
|
842
|
+
U(f, {
|
|
843
|
+
modelValue: n.internalValue,
|
|
844
|
+
"onUpdate:modelValue": o[0] || (o[0] = (g) => n.internalValue = g),
|
|
845
|
+
placeholder: n.props.placeholder,
|
|
846
|
+
clearable: "",
|
|
847
|
+
type: "text",
|
|
848
|
+
class: "custom-omit-input"
|
|
849
|
+
}, {
|
|
850
|
+
append: E(() => [
|
|
851
|
+
U(c, {
|
|
852
|
+
style: { width: "32px", "text-align": "center" },
|
|
853
|
+
onClick: n.openInputDialog
|
|
854
|
+
}, {
|
|
855
|
+
default: E(() => [
|
|
856
|
+
Y("...")
|
|
857
|
+
]),
|
|
858
|
+
_: 1
|
|
859
|
+
})
|
|
860
|
+
]),
|
|
861
|
+
_: 1
|
|
862
|
+
}, 8, ["modelValue", "placeholder"]),
|
|
863
|
+
Y(),
|
|
864
|
+
U(s, {
|
|
865
|
+
ref: "inputDialogRef",
|
|
866
|
+
title: n.props.dialogTitle,
|
|
867
|
+
width: 700,
|
|
868
|
+
onConfirm: n.confirmEdit
|
|
869
|
+
}, {
|
|
870
|
+
"dialog-content": E(() => [
|
|
871
|
+
te("div", { style: { width: "100%", height: "500px", "overflow-y": "auto", "overflow-x": "hidden" } }, [
|
|
872
|
+
U(f, {
|
|
873
|
+
modelValue: n.inputTextArea,
|
|
874
|
+
"onUpdate:modelValue": o[1] || (o[1] = (g) => n.inputTextArea = g),
|
|
875
|
+
type: "textarea",
|
|
876
|
+
rows: 22
|
|
877
|
+
}, null, 8, ["modelValue"])
|
|
878
|
+
])
|
|
879
|
+
]),
|
|
880
|
+
_: 1
|
|
881
|
+
}, 8, ["title"])
|
|
882
|
+
], 2);
|
|
883
|
+
}
|
|
884
|
+
const bn = /* @__PURE__ */ z(Sn, [["render", xn], ["__scopeId", "data-v-956a5a3a"], ["__file", "index.vue"]]), he = Ft(
|
|
804
885
|
"ve/dataCache",
|
|
805
886
|
{
|
|
806
887
|
state: () => ({
|
|
@@ -834,32 +915,32 @@ const vn = /* @__PURE__ */ W(yn, [["render", _n], ["__file", "index.vue"]]), ge
|
|
|
834
915
|
}
|
|
835
916
|
}
|
|
836
917
|
}
|
|
837
|
-
),
|
|
918
|
+
), Fe = (t) => {
|
|
838
919
|
const o = /* @__PURE__ */ new Map();
|
|
839
920
|
return new Proxy({}, {
|
|
840
921
|
get(l, n = "undefinedKey") {
|
|
841
|
-
return o.has(n) || o.set(n,
|
|
922
|
+
return o.has(n) || o.set(n, x(() => t.data[n] || {})), o.get(n);
|
|
842
923
|
},
|
|
843
924
|
set(l, n, p) {
|
|
844
925
|
return t.setData(n, p), !0;
|
|
845
926
|
}
|
|
846
927
|
});
|
|
847
928
|
};
|
|
848
|
-
function
|
|
849
|
-
const t =
|
|
929
|
+
function wn() {
|
|
930
|
+
const t = de("hflvloader-api");
|
|
850
931
|
if (!t)
|
|
851
932
|
throw new Error("组件注册时未提供API,请检查!");
|
|
852
933
|
return t;
|
|
853
934
|
}
|
|
854
|
-
function
|
|
935
|
+
function ye(t, o, l = {}) {
|
|
855
936
|
let n = {
|
|
856
937
|
...l,
|
|
857
938
|
message: o || "message",
|
|
858
939
|
type: t || "info"
|
|
859
940
|
};
|
|
860
|
-
|
|
941
|
+
jt(n);
|
|
861
942
|
}
|
|
862
|
-
function
|
|
943
|
+
function _e(t, o, l = {}) {
|
|
863
944
|
let n = {
|
|
864
945
|
...l,
|
|
865
946
|
message: o || "message",
|
|
@@ -867,17 +948,17 @@ function ye(t, o, l = {}) {
|
|
|
867
948
|
};
|
|
868
949
|
Bt(n);
|
|
869
950
|
}
|
|
870
|
-
function
|
|
871
|
-
const o =
|
|
951
|
+
function et(t = {}) {
|
|
952
|
+
const o = At.service(t);
|
|
872
953
|
let l = t.timeout || 3e4;
|
|
873
954
|
return setTimeout(() => {
|
|
874
955
|
o && o.close();
|
|
875
956
|
}, l), o;
|
|
876
957
|
}
|
|
877
|
-
async function
|
|
958
|
+
async function tt(t, o, l = {}) {
|
|
878
959
|
let n = [], p = {};
|
|
879
960
|
try {
|
|
880
|
-
(await Promise.allSettled([
|
|
961
|
+
(await Promise.allSettled([He.confirm(o, t, l)])).forEach((c, f) => {
|
|
881
962
|
if (c.status === "fulfilled")
|
|
882
963
|
f === 0 && (p = c.value);
|
|
883
964
|
else {
|
|
@@ -890,10 +971,10 @@ async function Ze(t, o, l = {}) {
|
|
|
890
971
|
}
|
|
891
972
|
return { errors: n, resultInfo: p };
|
|
892
973
|
}
|
|
893
|
-
async function
|
|
974
|
+
async function nt(t, o, l = {}) {
|
|
894
975
|
let n = [], p = {};
|
|
895
976
|
try {
|
|
896
|
-
(await Promise.allSettled([
|
|
977
|
+
(await Promise.allSettled([He.prompt(o, t, l)])).forEach((c, f) => {
|
|
897
978
|
if (c.status === "fulfilled")
|
|
898
979
|
f === 0 && (p = c.value);
|
|
899
980
|
else {
|
|
@@ -906,14 +987,14 @@ async function et(t, o, l = {}) {
|
|
|
906
987
|
}
|
|
907
988
|
return { errors: n, resultInfo: p };
|
|
908
989
|
}
|
|
909
|
-
const
|
|
990
|
+
const Bn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
910
991
|
__proto__: null,
|
|
911
|
-
showLoading:
|
|
912
|
-
showMessage:
|
|
913
|
-
showMessageBoxConfirmAsync:
|
|
914
|
-
showMessageBoxPromptAsync:
|
|
915
|
-
showNotification:
|
|
916
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
992
|
+
showLoading: et,
|
|
993
|
+
showMessage: ye,
|
|
994
|
+
showMessageBoxConfirmAsync: tt,
|
|
995
|
+
showMessageBoxPromptAsync: nt,
|
|
996
|
+
showNotification: _e
|
|
997
|
+
}, Symbol.toStringTag, { value: "Module" })), Z = {
|
|
917
998
|
"==": (t, o) => t == o,
|
|
918
999
|
"!=": (t, o) => t != o,
|
|
919
1000
|
">": (t, o) => +t > +o,
|
|
@@ -925,39 +1006,39 @@ const In = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
925
1006
|
equals: (t, o) => t != null && String(t) == String(o),
|
|
926
1007
|
notEquals: (t, o) => t == null || !String(t) == String(o),
|
|
927
1008
|
equalsIgnoreCase: (t, o) => t != null && String(t).toLowerCase() == String(o).toLowerCase()
|
|
928
|
-
},
|
|
929
|
-
function
|
|
930
|
-
const n = t, p = o, a = l, c = /* @__PURE__ */ new Map(), f =
|
|
1009
|
+
}, ee = (t) => typeof t == "string" && t.trim() !== "" && !isNaN(t) ? +t : t;
|
|
1010
|
+
function je(t = {}, o = !0, l = {}) {
|
|
1011
|
+
const n = t, p = o, a = l, c = /* @__PURE__ */ new Map(), f = wn(), s = he(), g = de("VE-ContainerParam"), h = de("VE-CompMethod"), y = [], { openDialog: O, closeDialog: M } = ge();
|
|
931
1012
|
let k = null;
|
|
932
|
-
const
|
|
1013
|
+
const T = 250, Q = (e) => {
|
|
933
1014
|
if (g) {
|
|
934
|
-
if (
|
|
1015
|
+
if (qe(g))
|
|
935
1016
|
return g.value[e];
|
|
936
|
-
if (
|
|
1017
|
+
if (ue(g))
|
|
937
1018
|
return g[e];
|
|
938
1019
|
}
|
|
939
|
-
},
|
|
1020
|
+
}, j = (e) => {
|
|
940
1021
|
if (e && e.path) {
|
|
941
1022
|
let r = e.params || [], i = {};
|
|
942
1023
|
r.forEach((u, d) => {
|
|
943
|
-
if (
|
|
944
|
-
let m =
|
|
1024
|
+
if ($(u)) {
|
|
1025
|
+
let m = A(u);
|
|
945
1026
|
i[u.tarKey] = m;
|
|
946
1027
|
}
|
|
947
|
-
}), e.namedRouter ?
|
|
1028
|
+
}), e.namedRouter ? H(a.routerPush) && a.routerPush(e.path, i) : H(a.routerPush2) && a.routerPush2(e.path, i);
|
|
948
1029
|
}
|
|
949
|
-
},
|
|
1030
|
+
}, ne = (e = []) => {
|
|
950
1031
|
let r = [];
|
|
951
1032
|
return e.forEach((i) => {
|
|
952
|
-
if (
|
|
953
|
-
let u =
|
|
1033
|
+
if ($(i)) {
|
|
1034
|
+
let u = A(i);
|
|
954
1035
|
r.push([
|
|
955
1036
|
i.tarKey,
|
|
956
1037
|
u
|
|
957
1038
|
]);
|
|
958
1039
|
}
|
|
959
1040
|
}), r;
|
|
960
|
-
},
|
|
1041
|
+
}, B = (e, r) => {
|
|
961
1042
|
if (e.customFunc && _(e.successFunc)) {
|
|
962
1043
|
const i = {
|
|
963
1044
|
helper: { ...a, ...w }
|
|
@@ -982,10 +1063,10 @@ function De(t = {}, o = !0, l = {}) {
|
|
|
982
1063
|
}
|
|
983
1064
|
}
|
|
984
1065
|
}, q = (e, r) => {
|
|
985
|
-
if (
|
|
1066
|
+
if (D(r) && r.length > 0) {
|
|
986
1067
|
let i, u, d;
|
|
987
1068
|
for (let m = 0; m < r.length; m++)
|
|
988
|
-
i = r[m], d = i.dataKey || "data", _(d) &&
|
|
1069
|
+
i = r[m], d = i.dataKey || "data", _(d) && Ge(e, d) && (u = ze(e, d), _(i.ds) && _(i.tarKey) && at(i, u));
|
|
989
1070
|
}
|
|
990
1071
|
}, C = async (e) => {
|
|
991
1072
|
let r = [], i = {};
|
|
@@ -1002,21 +1083,21 @@ function De(t = {}, o = !0, l = {}) {
|
|
|
1002
1083
|
console.error("_dataRequestHandler4Async 异常:", u), r.push(u);
|
|
1003
1084
|
}
|
|
1004
1085
|
return { errors: r, resultInfo: i };
|
|
1005
|
-
},
|
|
1086
|
+
}, b = (e) => {
|
|
1006
1087
|
if (e.method == "GET" || e.method == "get") {
|
|
1007
1088
|
let r = e.url;
|
|
1008
1089
|
if (/\{#.*?#\}/g.test(r)) {
|
|
1009
1090
|
let u = e.data || [], d = /* @__PURE__ */ new Set(), m = !1, v = null;
|
|
1010
|
-
if (r = r.replace(/\{#(.*?)#\}/g, (J,
|
|
1091
|
+
if (r = r.replace(/\{#(.*?)#\}/g, (J, G) => {
|
|
1011
1092
|
m = !1, v = null;
|
|
1012
|
-
for (let
|
|
1013
|
-
if (
|
|
1014
|
-
m = !0, v = u[
|
|
1093
|
+
for (let oe = 0; oe < u.length; oe++)
|
|
1094
|
+
if (G == u[oe][0]) {
|
|
1095
|
+
m = !0, v = u[oe][1];
|
|
1015
1096
|
break;
|
|
1016
1097
|
}
|
|
1017
|
-
return m ? (d.add(
|
|
1098
|
+
return m ? (d.add(G), v) : J;
|
|
1018
1099
|
}), d.size > 0) {
|
|
1019
|
-
let J = u.filter((
|
|
1100
|
+
let J = u.filter((G, oe) => !d.has(G[0]));
|
|
1020
1101
|
e.url = r, e.data = J || [];
|
|
1021
1102
|
}
|
|
1022
1103
|
}
|
|
@@ -1024,7 +1105,7 @@ function De(t = {}, o = !0, l = {}) {
|
|
|
1024
1105
|
}, K = async (e) => {
|
|
1025
1106
|
if (e && _(e.url)) {
|
|
1026
1107
|
let r = e.respParams || [], i = {};
|
|
1027
|
-
i.url = e.url, i.externalRequest = e.external || !1, i.method = e.method || "GET", i.paramType = "object", i.data =
|
|
1108
|
+
i.url = e.url, i.externalRequest = e.external || !1, i.method = e.method || "GET", i.paramType = "object", i.data = ne(e.params), i.headers = e.headers, e.series && (i.series = e.series, i.requestCount = e.requestCount || 0, i.time = e.time || 1e3), b(i);
|
|
1028
1109
|
let u = null;
|
|
1029
1110
|
if (e.loading) {
|
|
1030
1111
|
let d = e.load || {}, m = {
|
|
@@ -1033,7 +1114,7 @@ function De(t = {}, o = !0, l = {}) {
|
|
|
1033
1114
|
background: d.background,
|
|
1034
1115
|
text: d.text
|
|
1035
1116
|
};
|
|
1036
|
-
u =
|
|
1117
|
+
u = et(m);
|
|
1037
1118
|
}
|
|
1038
1119
|
if (e.sync) {
|
|
1039
1120
|
i.series = !1;
|
|
@@ -1041,7 +1122,7 @@ function De(t = {}, o = !0, l = {}) {
|
|
|
1041
1122
|
if (u && u.close(), d && d.length > 0) {
|
|
1042
1123
|
if (e.enabledRespErrTip) {
|
|
1043
1124
|
let v = e.respErrTip || {};
|
|
1044
|
-
|
|
1125
|
+
V(v);
|
|
1045
1126
|
}
|
|
1046
1127
|
S(e, m, d[0]);
|
|
1047
1128
|
} else if (m)
|
|
@@ -1049,13 +1130,13 @@ function De(t = {}, o = !0, l = {}) {
|
|
|
1049
1130
|
if (m && m.status == 200) {
|
|
1050
1131
|
if (e.enabledRespTip) {
|
|
1051
1132
|
let v = e.respTip || {};
|
|
1052
|
-
|
|
1133
|
+
V(v);
|
|
1053
1134
|
}
|
|
1054
|
-
q(m, r),
|
|
1135
|
+
q(m, r), B(e, m);
|
|
1055
1136
|
} else {
|
|
1056
1137
|
if (e.enabledRespErrTip) {
|
|
1057
1138
|
let v = e.respErrTip || {};
|
|
1058
|
-
|
|
1139
|
+
V(v);
|
|
1059
1140
|
}
|
|
1060
1141
|
S(e, m, null);
|
|
1061
1142
|
}
|
|
@@ -1063,11 +1144,11 @@ function De(t = {}, o = !0, l = {}) {
|
|
|
1063
1144
|
if (m) {
|
|
1064
1145
|
if (e.enabledRespTip) {
|
|
1065
1146
|
let v = e.respTip || {};
|
|
1066
|
-
|
|
1147
|
+
V(v);
|
|
1067
1148
|
}
|
|
1068
1149
|
q(m, r);
|
|
1069
1150
|
}
|
|
1070
|
-
|
|
1151
|
+
B(e, m);
|
|
1071
1152
|
}
|
|
1072
1153
|
} else {
|
|
1073
1154
|
let d = f.request(i, function(m) {
|
|
@@ -1075,13 +1156,13 @@ function De(t = {}, o = !0, l = {}) {
|
|
|
1075
1156
|
if (m && m.status == 200) {
|
|
1076
1157
|
if (e.enabledRespTip) {
|
|
1077
1158
|
let v = e.respTip || {};
|
|
1078
|
-
|
|
1159
|
+
V(v);
|
|
1079
1160
|
}
|
|
1080
|
-
q(m, r),
|
|
1161
|
+
q(m, r), B(e, m);
|
|
1081
1162
|
} else {
|
|
1082
1163
|
if (e.enabledRespErrTip) {
|
|
1083
1164
|
let v = e.respErrTip || {};
|
|
1084
|
-
|
|
1165
|
+
V(v);
|
|
1085
1166
|
}
|
|
1086
1167
|
S(e, m, null);
|
|
1087
1168
|
}
|
|
@@ -1089,53 +1170,53 @@ function De(t = {}, o = !0, l = {}) {
|
|
|
1089
1170
|
if (m) {
|
|
1090
1171
|
if (e.enabledRespTip) {
|
|
1091
1172
|
let v = e.respTip || {};
|
|
1092
|
-
|
|
1173
|
+
V(v);
|
|
1093
1174
|
}
|
|
1094
1175
|
q(m, r);
|
|
1095
1176
|
}
|
|
1096
|
-
|
|
1177
|
+
B(e, m);
|
|
1097
1178
|
}
|
|
1098
1179
|
}, function(m) {
|
|
1099
1180
|
if (u && u.close(), e.enabledRespErrTip) {
|
|
1100
1181
|
let v = e.respErrTip || {};
|
|
1101
|
-
|
|
1182
|
+
V(v);
|
|
1102
1183
|
}
|
|
1103
1184
|
S(e, null, m);
|
|
1104
1185
|
});
|
|
1105
1186
|
d && y.push(d);
|
|
1106
1187
|
}
|
|
1107
1188
|
}
|
|
1108
|
-
},
|
|
1109
|
-
e.tipType == "msg" ?
|
|
1110
|
-
},
|
|
1111
|
-
if (e &&
|
|
1189
|
+
}, V = (e = {}) => {
|
|
1190
|
+
e.tipType == "msg" ? ye(e.type, e.msg, e.extParam) : e.tipType == "notify" && _e(e.type, e.msg, e.extParam);
|
|
1191
|
+
}, ot = (e) => {
|
|
1192
|
+
if (e && D(e.params)) {
|
|
1112
1193
|
let r = e.params || [], i = null;
|
|
1113
1194
|
for (let u = 0; u < r.length; u++)
|
|
1114
|
-
if (i = r[u],
|
|
1115
|
-
let d =
|
|
1195
|
+
if (i = r[u], $(i)) {
|
|
1196
|
+
let d = A(i);
|
|
1116
1197
|
w.setDataCache(i.tarKey, d);
|
|
1117
1198
|
}
|
|
1118
1199
|
}
|
|
1119
|
-
},
|
|
1120
|
-
if (e &&
|
|
1200
|
+
}, rt = (e) => {
|
|
1201
|
+
if (e && D(e.params)) {
|
|
1121
1202
|
let r = e.params || [], i = null;
|
|
1122
1203
|
for (let u = 0; u < r.length; u++)
|
|
1123
1204
|
if (i = r[u], _(i.ipn) && _(i.opn) && c.has(i.ipn)) {
|
|
1124
|
-
let d = c.get(i.ipn), m =
|
|
1205
|
+
let d = c.get(i.ipn), m = Z.equals(d, i.ipv);
|
|
1125
1206
|
if (m)
|
|
1126
1207
|
c.set(i.opn, i.opv);
|
|
1127
1208
|
else {
|
|
1128
|
-
let v =
|
|
1129
|
-
m =
|
|
1209
|
+
let v = ee(d), J = ee(i.ipv);
|
|
1210
|
+
m = Z["=="](v, J), m && c.set(i.opn, i.opv);
|
|
1130
1211
|
}
|
|
1131
1212
|
}
|
|
1132
1213
|
}
|
|
1133
|
-
},
|
|
1134
|
-
if (e &&
|
|
1214
|
+
}, lt = (e) => {
|
|
1215
|
+
if (e && D(e.params)) {
|
|
1135
1216
|
let r = e.params || [], i = null;
|
|
1136
1217
|
for (let u = 0; u < r.length; u++)
|
|
1137
|
-
if (i = r[u],
|
|
1138
|
-
let d =
|
|
1218
|
+
if (i = r[u], $(i)) {
|
|
1219
|
+
let d = A(i);
|
|
1139
1220
|
w.setParam(i.tarKey, d);
|
|
1140
1221
|
}
|
|
1141
1222
|
}
|
|
@@ -1156,7 +1237,7 @@ function De(t = {}, o = !0, l = {}) {
|
|
|
1156
1237
|
s.data[e] = r;
|
|
1157
1238
|
},
|
|
1158
1239
|
getContainerParam: function(e) {
|
|
1159
|
-
return
|
|
1240
|
+
return Q(e);
|
|
1160
1241
|
},
|
|
1161
1242
|
setSessionParam: function(e, r) {
|
|
1162
1243
|
sessionStorage.setItem(e, r);
|
|
@@ -1171,16 +1252,16 @@ function De(t = {}, o = !0, l = {}) {
|
|
|
1171
1252
|
return localStorage.getItem(e);
|
|
1172
1253
|
},
|
|
1173
1254
|
callCompMethod: function(e, r, i = {}) {
|
|
1174
|
-
|
|
1255
|
+
H(h) ? h(e, r, i) : console.error("compMethod is not function.");
|
|
1175
1256
|
},
|
|
1176
1257
|
setJsCookie: function(e, r, i = 30) {
|
|
1177
|
-
|
|
1258
|
+
fe.set(e, r, { expires: i });
|
|
1178
1259
|
},
|
|
1179
1260
|
getJsCookie: function(e) {
|
|
1180
|
-
return
|
|
1261
|
+
return fe.get(e);
|
|
1181
1262
|
},
|
|
1182
1263
|
removeJsCookie: function(e) {
|
|
1183
|
-
|
|
1264
|
+
fe.remove(e);
|
|
1184
1265
|
},
|
|
1185
1266
|
log: function(e = "log", r) {
|
|
1186
1267
|
e == "error" ? console.error(r) : e == "info" ? console.info(r) : e == "warn" ? console.warn(r) : console.log(r);
|
|
@@ -1189,18 +1270,18 @@ function De(t = {}, o = !0, l = {}) {
|
|
|
1189
1270
|
return _(e);
|
|
1190
1271
|
},
|
|
1191
1272
|
md5: function(e) {
|
|
1192
|
-
return
|
|
1273
|
+
return $e(e);
|
|
1193
1274
|
},
|
|
1194
1275
|
getDate: function(e) {
|
|
1195
|
-
return
|
|
1276
|
+
return We(e);
|
|
1196
1277
|
},
|
|
1197
1278
|
formatDate: function(e, r = "YYYY-MM-dd") {
|
|
1198
|
-
return
|
|
1279
|
+
return Ue(e, r);
|
|
1199
1280
|
},
|
|
1200
1281
|
closeDialog: function(e) {
|
|
1201
|
-
|
|
1282
|
+
M(e);
|
|
1202
1283
|
}
|
|
1203
|
-
},
|
|
1284
|
+
}, st = (e) => {
|
|
1204
1285
|
if (e && _(e.funcBody)) {
|
|
1205
1286
|
const r = {
|
|
1206
1287
|
helper: { ...a, ...w }
|
|
@@ -1212,23 +1293,23 @@ function De(t = {}, o = !0, l = {}) {
|
|
|
1212
1293
|
console.error("处理自定义函数时出错:", i);
|
|
1213
1294
|
}
|
|
1214
1295
|
}
|
|
1215
|
-
},
|
|
1296
|
+
}, it = (e) => {
|
|
1216
1297
|
if (e && _(e.type)) {
|
|
1217
1298
|
if (e.opType == "clear") {
|
|
1218
1299
|
let r = e.type;
|
|
1219
1300
|
r == "session" ? sessionStorage.clear() : r == "local" && localStorage.clear();
|
|
1220
|
-
} else if (
|
|
1301
|
+
} else if (D(e.params) && e.params.length > 0) {
|
|
1221
1302
|
let r = e.type, i = e.params || [], u = null;
|
|
1222
1303
|
for (let d = 0; d < i.length; d++)
|
|
1223
1304
|
if (u = i[d], u.delete)
|
|
1224
1305
|
_(u.tarKey) && (r == "session" ? sessionStorage.removeItem(u.tarKey) : r == "local" ? localStorage.removeItem(u.tarKey) : r == "jsCookie" && w.removeJsCookie(u.tarKey));
|
|
1225
|
-
else if (
|
|
1226
|
-
let m =
|
|
1306
|
+
else if ($(u)) {
|
|
1307
|
+
let m = A(u);
|
|
1227
1308
|
r == "session" ? sessionStorage.setItem(u.tarKey, m) : r == "local" ? localStorage.setItem(u.tarKey, m) : r == "jsCookie" && w.setJsCookie(u.tarKey, m);
|
|
1228
1309
|
}
|
|
1229
1310
|
}
|
|
1230
1311
|
}
|
|
1231
|
-
},
|
|
1312
|
+
}, $ = (e) => _(e.ds) && _(e.tarKey) ? e.ds != "inputV" ? _(e.key) : !0 : !1, A = (e) => {
|
|
1232
1313
|
if (e.ds == "inputP")
|
|
1233
1314
|
return w.getParam(e.key);
|
|
1234
1315
|
if (e.ds == "cacheP")
|
|
@@ -1242,14 +1323,14 @@ function De(t = {}, o = !0, l = {}) {
|
|
|
1242
1323
|
if (e.ds == "jsCookieP")
|
|
1243
1324
|
return w.getJsCookie(e.key);
|
|
1244
1325
|
if (e.ds == "compProp")
|
|
1245
|
-
return
|
|
1326
|
+
return H(a.getPropValue) ? a.getPropValue(e.key) : null;
|
|
1246
1327
|
if (e.ds == "compStyle")
|
|
1247
|
-
return
|
|
1328
|
+
return H(a.getStyleValue) ? a.getStyleValue(e.key) : null;
|
|
1248
1329
|
{
|
|
1249
1330
|
let r = e.key;
|
|
1250
|
-
return r.toString().trim().indexOf("#json#") == 0 ? (r = r.toString().trim().replace("#json#", ""),
|
|
1331
|
+
return r.toString().trim().indexOf("#json#") == 0 ? (r = r.toString().trim().replace("#json#", ""), Ke(r, {})) : e.key;
|
|
1251
1332
|
}
|
|
1252
|
-
},
|
|
1333
|
+
}, at = (e, r) => {
|
|
1253
1334
|
if (e.ds == "cacheP")
|
|
1254
1335
|
return w.setDataCache(e.tarKey, r);
|
|
1255
1336
|
if (e.ds == "inputP")
|
|
@@ -1258,42 +1339,42 @@ function De(t = {}, o = !0, l = {}) {
|
|
|
1258
1339
|
return w.setSessionParam(e.tarKey, r);
|
|
1259
1340
|
if (e.ds == "localP")
|
|
1260
1341
|
return w.setLocalParam(e.tarKey, r);
|
|
1261
|
-
e.ds == "jsCookieP" ? w.setJsCookie(e.tarKey, r) : e.ds == "compProp" ?
|
|
1262
|
-
},
|
|
1342
|
+
e.ds == "jsCookieP" ? w.setJsCookie(e.tarKey, r) : e.ds == "compProp" ? H(a.setPropValue) && a.setPropValue(e.tarKey, r) : e.ds == "compStyle" && H(a.setStyleValue) && a.setStyleValue(e.tarKey, r);
|
|
1343
|
+
}, ct = (e) => {
|
|
1263
1344
|
if (e) {
|
|
1264
1345
|
let r = e.styleSets || [], i = e.propSets || [];
|
|
1265
|
-
|
|
1266
|
-
if (
|
|
1267
|
-
let m =
|
|
1346
|
+
D(i) && i.length > 0 && H(a.setPropValue) && i.forEach((u, d) => {
|
|
1347
|
+
if ($(u)) {
|
|
1348
|
+
let m = A(u);
|
|
1268
1349
|
a.setPropValue(u.tarKey, m);
|
|
1269
1350
|
}
|
|
1270
|
-
}),
|
|
1271
|
-
if (
|
|
1272
|
-
let m =
|
|
1351
|
+
}), D(r) && r.length > 0 && H(a.setStyleValue) && r.forEach((u, d) => {
|
|
1352
|
+
if ($(u)) {
|
|
1353
|
+
let m = A(u);
|
|
1273
1354
|
a.setStyleValue(u.tarKey, m);
|
|
1274
1355
|
}
|
|
1275
1356
|
});
|
|
1276
1357
|
}
|
|
1277
|
-
},
|
|
1358
|
+
}, ut = (e) => {
|
|
1278
1359
|
let r = !1;
|
|
1279
|
-
if (e &&
|
|
1360
|
+
if (e && D(e.params)) {
|
|
1280
1361
|
let i = e.params || [], u = null, d = !1;
|
|
1281
1362
|
for (let m = 0; m < i.length; m++) {
|
|
1282
1363
|
u = i[m];
|
|
1283
|
-
let v =
|
|
1284
|
-
const
|
|
1285
|
-
if ([">", ">=", "<", "<=", "=="].includes(
|
|
1364
|
+
let v = A(u), J = u.value;
|
|
1365
|
+
const G = u.opType;
|
|
1366
|
+
if ([">", ">=", "<", "<=", "=="].includes(G) && (v = ee(v), J = ee(J)), Z[G] ? d = Z[G](v, J) : d = !1, d) {
|
|
1286
1367
|
r = !0;
|
|
1287
1368
|
break;
|
|
1288
1369
|
}
|
|
1289
1370
|
}
|
|
1290
1371
|
if (e.enabledTip && r) {
|
|
1291
1372
|
let m = e.tip || {};
|
|
1292
|
-
m.tipType == "msg" ?
|
|
1373
|
+
m.tipType == "msg" ? ye(m.type, m.msg, m.extParam) : m.tipType == "notify" && _e(m.type, m.msg, m.extParam);
|
|
1293
1374
|
}
|
|
1294
1375
|
}
|
|
1295
1376
|
return r;
|
|
1296
|
-
},
|
|
1377
|
+
}, Ce = (e, r) => {
|
|
1297
1378
|
if (e.customFunc && _(e.confirmFunc)) {
|
|
1298
1379
|
const i = {
|
|
1299
1380
|
helper: { ...a, ...w }
|
|
@@ -1305,7 +1386,7 @@ function De(t = {}, o = !0, l = {}) {
|
|
|
1305
1386
|
console.error("[__messageBoxHandler4CustomSuccessFunc]处理自定义失败函数时出错:", u);
|
|
1306
1387
|
}
|
|
1307
1388
|
}
|
|
1308
|
-
},
|
|
1389
|
+
}, ft = (e, r) => {
|
|
1309
1390
|
if (e.customFunc && _(e.errorFunc)) {
|
|
1310
1391
|
const i = {
|
|
1311
1392
|
helper: { ...a, ...w }
|
|
@@ -1317,7 +1398,7 @@ function De(t = {}, o = !0, l = {}) {
|
|
|
1317
1398
|
console.error("[__messageBoxHandler4CustomErrorFunc]处理自定义失败函数时出错:", u);
|
|
1318
1399
|
}
|
|
1319
1400
|
}
|
|
1320
|
-
},
|
|
1401
|
+
}, se = (e, r) => {
|
|
1321
1402
|
if (e.customFunc) {
|
|
1322
1403
|
let i = "";
|
|
1323
1404
|
if (r == "cancel" && _(e.cancelFunc))
|
|
@@ -1336,7 +1417,7 @@ function De(t = {}, o = !0, l = {}) {
|
|
|
1336
1417
|
console.error("[__messageBoxHandler4CustomCancelOrCloseFunc]处理自定义失败函数时出错:", d);
|
|
1337
1418
|
}
|
|
1338
1419
|
}
|
|
1339
|
-
},
|
|
1420
|
+
}, pt = async (e) => {
|
|
1340
1421
|
let r = !1;
|
|
1341
1422
|
if (e && _(e.type)) {
|
|
1342
1423
|
let i = {
|
|
@@ -1346,80 +1427,80 @@ function De(t = {}, o = !0, l = {}) {
|
|
|
1346
1427
|
cancelButtonText: e.cancelText
|
|
1347
1428
|
};
|
|
1348
1429
|
if (e.type == "confirm") {
|
|
1349
|
-
const { errors: u, resultInfo: d } = await
|
|
1350
|
-
u && u.length > 0 ? u[0] == "cancel" ?
|
|
1430
|
+
const { errors: u, resultInfo: d } = await tt(e.title, e.message, i);
|
|
1431
|
+
u && u.length > 0 ? u[0] == "cancel" ? se(e, "cancel") : u[0] == "close" && se(e, "close") : d == "confirm" && (r = !0, Ce(e, null));
|
|
1351
1432
|
} else if (e.type == "prompt") {
|
|
1352
1433
|
if (_(i.inputPattern)) {
|
|
1353
1434
|
const m = i.inputPattern.replace(/\\\\/g, "\\");
|
|
1354
1435
|
i.inputPattern = new RegExp(m);
|
|
1355
1436
|
}
|
|
1356
|
-
const { errors: u, resultInfo: d } = await
|
|
1357
|
-
u && u.length > 0 ? u[0] == "cancel" ?
|
|
1437
|
+
const { errors: u, resultInfo: d } = await nt(e.title, e.message, i);
|
|
1438
|
+
u && u.length > 0 ? u[0] == "cancel" ? se(e, "cancel") : u[0] == "close" ? se(e, "close") : ft(e, u[0]) : d.action == "confirm" && (r = !0, w.setParam("promptValue", d.value), Ce(e, d.value));
|
|
1358
1439
|
}
|
|
1359
1440
|
e.autoBlock || (r = !0);
|
|
1360
1441
|
} else
|
|
1361
1442
|
r = !0;
|
|
1362
1443
|
return r;
|
|
1363
|
-
},
|
|
1444
|
+
}, dt = (e) => {
|
|
1364
1445
|
if (e && _(e.pageId)) {
|
|
1365
1446
|
let r = { ...e };
|
|
1366
1447
|
if (e.customPosition) {
|
|
1367
1448
|
let i = (w.getParam("elementRectLeft") || 0) + e.leftOffset, u = (w.getParam("elementRectTop") || 0) + e.topOffset;
|
|
1368
1449
|
r.absLeft = i, r.absTop = u;
|
|
1369
1450
|
}
|
|
1370
|
-
|
|
1451
|
+
O(r);
|
|
1371
1452
|
}
|
|
1372
|
-
},
|
|
1453
|
+
}, Pe = async (e = []) => {
|
|
1373
1454
|
let r = null;
|
|
1374
1455
|
for (let i = 0; i < e.length; i++)
|
|
1375
1456
|
if (r = e[i], r.action == "router")
|
|
1376
|
-
|
|
1457
|
+
j(r.config);
|
|
1377
1458
|
else if (r.action == "dataRequest")
|
|
1378
1459
|
await K(r.config);
|
|
1379
1460
|
else if (r.action == "cacheSet")
|
|
1380
|
-
|
|
1461
|
+
ot(r.config);
|
|
1381
1462
|
else if (r.action == "paramMap")
|
|
1382
|
-
|
|
1463
|
+
rt(r.config);
|
|
1383
1464
|
else if (r.action == "paramSet")
|
|
1384
|
-
|
|
1465
|
+
lt(r.config);
|
|
1385
1466
|
else if (r.action == "customFunction")
|
|
1386
|
-
|
|
1467
|
+
st(r.config);
|
|
1387
1468
|
else if (r.action == "webStorage")
|
|
1388
|
-
lt(r.config);
|
|
1389
|
-
else if (r.action == "componentSet")
|
|
1390
1469
|
it(r.config);
|
|
1470
|
+
else if (r.action == "componentSet")
|
|
1471
|
+
ct(r.config);
|
|
1391
1472
|
else if (r.action == "actionEnd") {
|
|
1392
|
-
if (
|
|
1473
|
+
if (ut(r.config)) {
|
|
1393
1474
|
console.log("actionEnd is true. break");
|
|
1394
1475
|
break;
|
|
1395
1476
|
}
|
|
1396
1477
|
} else if (r.action == "messageBox") {
|
|
1397
|
-
if (!await
|
|
1478
|
+
if (!await pt(r.config)) {
|
|
1398
1479
|
console.log("messageBox is false. break");
|
|
1399
1480
|
break;
|
|
1400
1481
|
}
|
|
1401
1482
|
} else if (r.action == "openDialog") {
|
|
1402
|
-
|
|
1483
|
+
dt(r.config);
|
|
1403
1484
|
break;
|
|
1404
1485
|
}
|
|
1405
|
-
},
|
|
1486
|
+
}, mt = (e) => {
|
|
1406
1487
|
let r = !1, i, u, d = !1;
|
|
1407
1488
|
_(e.lType) && (e.lType != "inputV" ? d = _(e.lValue) : d = !0);
|
|
1408
1489
|
let m = !1;
|
|
1409
1490
|
if (_(e.rType) && (e.rType != "inputV" ? m = _(e.rValue) : m = !0), d && m) {
|
|
1410
|
-
i =
|
|
1491
|
+
i = A({
|
|
1411
1492
|
ds: e.lType,
|
|
1412
1493
|
key: e.lValue
|
|
1413
|
-
}), u =
|
|
1494
|
+
}), u = A({
|
|
1414
1495
|
ds: e.rType,
|
|
1415
1496
|
key: e.rValue
|
|
1416
1497
|
});
|
|
1417
1498
|
const v = e.opType;
|
|
1418
|
-
[">", ">=", "<", "<=", "=="].includes(v) && (i =
|
|
1499
|
+
[">", ">=", "<", "<=", "=="].includes(v) && (i = ee(i), u = ee(u)), Z[v] ? r = Z[v](i, u) : (r = !1, console.warn("useEventHandler Invalid operator: " + v));
|
|
1419
1500
|
} else
|
|
1420
1501
|
console.warn("_judgeCondition warn: the condition config is error.");
|
|
1421
1502
|
return r;
|
|
1422
|
-
},
|
|
1503
|
+
}, gt = (e) => {
|
|
1423
1504
|
let r = !1;
|
|
1424
1505
|
if (e.default)
|
|
1425
1506
|
r = !0;
|
|
@@ -1428,7 +1509,7 @@ function De(t = {}, o = !0, l = {}) {
|
|
|
1428
1509
|
if (i.length > 0) {
|
|
1429
1510
|
let u = !0;
|
|
1430
1511
|
for (let d = 0; d < i.length; d++)
|
|
1431
|
-
if (!
|
|
1512
|
+
if (!mt(i[d])) {
|
|
1432
1513
|
u = !1;
|
|
1433
1514
|
break;
|
|
1434
1515
|
}
|
|
@@ -1437,67 +1518,67 @@ function De(t = {}, o = !0, l = {}) {
|
|
|
1437
1518
|
r = !0;
|
|
1438
1519
|
}
|
|
1439
1520
|
return r;
|
|
1440
|
-
},
|
|
1521
|
+
}, N = (e = []) => {
|
|
1441
1522
|
for (const r of e)
|
|
1442
1523
|
if (r.default) {
|
|
1443
|
-
|
|
1524
|
+
Pe(r.actionList);
|
|
1444
1525
|
break;
|
|
1445
|
-
} else
|
|
1446
|
-
},
|
|
1526
|
+
} else gt(r) && Pe(r.actionList);
|
|
1527
|
+
}, ht = (e) => {
|
|
1447
1528
|
p || (k && clearTimeout(k), k = setTimeout(() => {
|
|
1448
1529
|
if (n && n.hasOwnProperty("onMouseClick")) {
|
|
1449
1530
|
if (e && e.target) {
|
|
1450
1531
|
const i = e.target.getBoundingClientRect();
|
|
1451
|
-
|
|
1532
|
+
I("elementRect", i), I("elementRectLeft", i.left), I("elementRectTop", i.top);
|
|
1452
1533
|
}
|
|
1453
1534
|
let r = n.onMouseClick;
|
|
1454
|
-
|
|
1535
|
+
N(r);
|
|
1455
1536
|
}
|
|
1456
|
-
},
|
|
1457
|
-
},
|
|
1537
|
+
}, T));
|
|
1538
|
+
}, yt = (e) => {
|
|
1458
1539
|
if (!p && (k && clearTimeout(k), n && n.hasOwnProperty("onMouseDblClick"))) {
|
|
1459
1540
|
if (e && e.target) {
|
|
1460
1541
|
const i = e.target.getBoundingClientRect();
|
|
1461
|
-
|
|
1542
|
+
I("elementRect", i), I("elementRectLeft", i.left), I("elementRectTop", i.top);
|
|
1462
1543
|
}
|
|
1463
1544
|
let r = n.onMouseDblClick;
|
|
1464
|
-
|
|
1545
|
+
N(r);
|
|
1465
1546
|
}
|
|
1466
|
-
},
|
|
1547
|
+
}, _t = (e) => {
|
|
1467
1548
|
if (!p && n && n.hasOwnProperty("onContextMenu")) {
|
|
1468
1549
|
if (e && e.target) {
|
|
1469
1550
|
const i = e.target.getBoundingClientRect();
|
|
1470
|
-
|
|
1551
|
+
I("elementRect", i), I("elementRectLeft", i.left), I("elementRectTop", i.top);
|
|
1471
1552
|
}
|
|
1472
1553
|
let r = n.onContextMenu;
|
|
1473
|
-
|
|
1554
|
+
N(r);
|
|
1474
1555
|
}
|
|
1475
|
-
},
|
|
1476
|
-
if (!p && (
|
|
1556
|
+
}, vt = (e) => {
|
|
1557
|
+
if (!p && (I("selectItem", e), n && n.hasOwnProperty("selectItem"))) {
|
|
1477
1558
|
let r = n.selectItem;
|
|
1478
|
-
|
|
1559
|
+
N(r);
|
|
1479
1560
|
}
|
|
1480
|
-
},
|
|
1481
|
-
if (!p && (
|
|
1561
|
+
}, St = (e) => {
|
|
1562
|
+
if (!p && (I("currentValue", e), n && n.hasOwnProperty("changeValue"))) {
|
|
1482
1563
|
let r = n.changeValue;
|
|
1483
|
-
|
|
1564
|
+
N(r);
|
|
1484
1565
|
}
|
|
1485
|
-
},
|
|
1566
|
+
}, xt = () => {
|
|
1486
1567
|
if (!p && n && n.hasOwnProperty("keyEnter")) {
|
|
1487
1568
|
let e = n.keyEnter;
|
|
1488
|
-
|
|
1569
|
+
N(e);
|
|
1489
1570
|
}
|
|
1490
|
-
},
|
|
1571
|
+
}, bt = () => {
|
|
1491
1572
|
if (!p && n && n.hasOwnProperty("onBeforeMount")) {
|
|
1492
1573
|
let e = n.onBeforeMount;
|
|
1493
|
-
|
|
1574
|
+
N(e);
|
|
1494
1575
|
}
|
|
1495
|
-
},
|
|
1576
|
+
}, wt = () => {
|
|
1496
1577
|
if (!p && n && n.hasOwnProperty("onMounted")) {
|
|
1497
1578
|
let e = n.onMounted;
|
|
1498
|
-
|
|
1579
|
+
N(e);
|
|
1499
1580
|
}
|
|
1500
|
-
},
|
|
1581
|
+
}, Ct = () => {
|
|
1501
1582
|
if (!p) {
|
|
1502
1583
|
if (y && y.length > 0)
|
|
1503
1584
|
for (let e = 0; e < y.length; e++)
|
|
@@ -1508,29 +1589,29 @@ function De(t = {}, o = !0, l = {}) {
|
|
|
1508
1589
|
}
|
|
1509
1590
|
if (n && n.hasOwnProperty("onBeforeUnmount")) {
|
|
1510
1591
|
let e = n.onBeforeUnmount;
|
|
1511
|
-
|
|
1592
|
+
N(e);
|
|
1512
1593
|
}
|
|
1513
1594
|
}
|
|
1514
|
-
},
|
|
1595
|
+
}, Pt = () => {
|
|
1515
1596
|
if (!p && n && n.hasOwnProperty("onUnmounted")) {
|
|
1516
1597
|
let e = n.onUnmounted;
|
|
1517
|
-
|
|
1598
|
+
N(e);
|
|
1518
1599
|
}
|
|
1519
|
-
},
|
|
1600
|
+
}, I = (e, r) => {
|
|
1520
1601
|
w.setParam(e, r);
|
|
1521
1602
|
};
|
|
1522
1603
|
return {
|
|
1523
|
-
handleClick:
|
|
1524
|
-
handleDblClick:
|
|
1525
|
-
handleContextMenu:
|
|
1526
|
-
selectItem:
|
|
1527
|
-
changeValue:
|
|
1528
|
-
beforeMount:
|
|
1529
|
-
mounted:
|
|
1530
|
-
beforeUnmount:
|
|
1531
|
-
unmounted:
|
|
1532
|
-
setParam:
|
|
1533
|
-
keyEnter:
|
|
1604
|
+
handleClick: ht,
|
|
1605
|
+
handleDblClick: yt,
|
|
1606
|
+
handleContextMenu: _t,
|
|
1607
|
+
selectItem: vt,
|
|
1608
|
+
changeValue: St,
|
|
1609
|
+
beforeMount: bt,
|
|
1610
|
+
mounted: wt,
|
|
1611
|
+
beforeUnmount: Ct,
|
|
1612
|
+
unmounted: Pt,
|
|
1613
|
+
setParam: I,
|
|
1614
|
+
keyEnter: xt
|
|
1534
1615
|
};
|
|
1535
1616
|
}
|
|
1536
1617
|
function Be(t, o, l, n) {
|
|
@@ -1566,7 +1647,7 @@ function Be(t, o, l, n) {
|
|
|
1566
1647
|
}
|
|
1567
1648
|
};
|
|
1568
1649
|
}
|
|
1569
|
-
const
|
|
1650
|
+
const Cn = /* @__PURE__ */ Object.assign({
|
|
1570
1651
|
name: "Group"
|
|
1571
1652
|
}, {
|
|
1572
1653
|
__name: "Component",
|
|
@@ -1588,13 +1669,13 @@ const xn = /* @__PURE__ */ Object.assign({
|
|
|
1588
1669
|
}
|
|
1589
1670
|
},
|
|
1590
1671
|
setup(t, { expose: o }) {
|
|
1591
|
-
const l = t, n =
|
|
1592
|
-
let
|
|
1593
|
-
return
|
|
1594
|
-
})), h =
|
|
1595
|
-
|
|
1596
|
-
a.value =
|
|
1597
|
-
}),
|
|
1672
|
+
const l = t, n = he(), p = Fe(n), a = R(null), c = x(() => l.propValue || {}), f = x(() => l.element || {}), s = x(() => c.value.components || []), g = x(() => s.value.map((C) => {
|
|
1673
|
+
let b = { ...C }, K = Q(C.groupStyle);
|
|
1674
|
+
return b.computedStyle = K, b.style && (b.style.width = b.computedStyle.width, b.style.height = b.computedStyle.height), b;
|
|
1675
|
+
})), h = x(() => f.value.events || []), y = Ee(), O = Te(), M = Be(c, f, y);
|
|
1676
|
+
Ve(() => {
|
|
1677
|
+
a.value = je(h.value, l.designStatus, M), a.value?.beforeMount();
|
|
1678
|
+
}), ce(() => {
|
|
1598
1679
|
a.value?.mounted();
|
|
1599
1680
|
}), Re(() => {
|
|
1600
1681
|
a.value?.beforeUnmount();
|
|
@@ -1603,79 +1684,81 @@ const xn = /* @__PURE__ */ Object.assign({
|
|
|
1603
1684
|
});
|
|
1604
1685
|
const k = (C) => {
|
|
1605
1686
|
a.value?.setParam(C);
|
|
1606
|
-
},
|
|
1687
|
+
}, T = (C) => {
|
|
1607
1688
|
a.value?.handleDblClick(C);
|
|
1608
|
-
},
|
|
1689
|
+
}, Q = (C) => {
|
|
1609
1690
|
if (!C || !f.value?.style) return {};
|
|
1610
|
-
let
|
|
1611
|
-
return
|
|
1612
|
-
},
|
|
1613
|
-
C ?
|
|
1614
|
-
},
|
|
1615
|
-
if (_(C) && _(
|
|
1616
|
-
const
|
|
1617
|
-
|
|
1691
|
+
let b = { ...C }, K = f.value.style.width, V = f.value.style.height;
|
|
1692
|
+
return b.width = Math.floor(parseFloat(b.width) / 100 * K), b.height = Math.floor(parseFloat(b.height) / 100 * V), b.top = Math.floor(parseFloat(b.top) / 100 * V), b.left = Math.floor(parseFloat(b.left) / 100 * K), b;
|
|
1693
|
+
}, j = le({}), ne = (C, b) => {
|
|
1694
|
+
C ? j[`Ve${b}`] = C : delete j[`Ve${b}`];
|
|
1695
|
+
}, B = (C) => j[`Ve${C}`], S = (C, b, K) => {
|
|
1696
|
+
if (_(C) && _(b)) {
|
|
1697
|
+
const V = B(C);
|
|
1698
|
+
V && V[b] && (K ? V[b](K) : V[b]());
|
|
1618
1699
|
}
|
|
1619
1700
|
};
|
|
1620
1701
|
o({
|
|
1621
1702
|
callGroupCompMethod: S
|
|
1622
1703
|
});
|
|
1623
|
-
const q = { props: l, dataCache: n, smartData: p, eventHandler: a, propValue: c, element: f, components: s, computedComponents: g, events: h, router: y, route:
|
|
1624
|
-
return
|
|
1704
|
+
const q = { props: l, dataCache: n, smartData: p, eventHandler: a, propValue: c, element: f, components: s, computedComponents: g, events: h, router: y, route: O, compContext: M, handleClick: k, handleDblClick: T, calcCompStyle: Q, componentRefs: j, setComponentRef: ne, getComponentRef: B, callGroupCompMethod: S, get useDataCacheStore() {
|
|
1705
|
+
return he;
|
|
1625
1706
|
}, get createSmartAccessor() {
|
|
1626
|
-
return
|
|
1627
|
-
}, ref:
|
|
1628
|
-
return
|
|
1707
|
+
return Fe;
|
|
1708
|
+
}, ref: R, computed: x, onMounted: ce, onBeforeMount: Ve, onBeforeUnmount: Re, onUnmounted: ke, watch: Ae, reactive: le, get useEventHandler() {
|
|
1709
|
+
return je;
|
|
1629
1710
|
}, get useRoute() {
|
|
1630
|
-
return
|
|
1711
|
+
return Te;
|
|
1631
1712
|
}, get useRouter() {
|
|
1632
|
-
return
|
|
1713
|
+
return Ee;
|
|
1633
1714
|
}, get CreateCompContext() {
|
|
1634
1715
|
return Be;
|
|
1635
1716
|
}, get getStyle() {
|
|
1636
|
-
return
|
|
1717
|
+
return Xe;
|
|
1637
1718
|
}, get isNotEmpty() {
|
|
1638
1719
|
return _;
|
|
1639
1720
|
} };
|
|
1640
1721
|
return Object.defineProperty(q, "__isScriptSetup", { enumerable: !1, value: !0 }), q;
|
|
1641
1722
|
}
|
|
1642
1723
|
});
|
|
1643
|
-
function
|
|
1644
|
-
return P(),
|
|
1645
|
-
|
|
1646
|
-
(P(!0),
|
|
1724
|
+
function Pn(t, o, l, n, p, a) {
|
|
1725
|
+
return P(), F("div", { class: "group" }, [
|
|
1726
|
+
te("div", null, [
|
|
1727
|
+
(P(!0), F(Se, null, xe(n.computedComponents, (c) => (P(), L(ie(c.component), {
|
|
1647
1728
|
id: "component" + c.id,
|
|
1648
1729
|
ref_for: !0,
|
|
1649
1730
|
ref: (f) => n.setComponentRef(f, c.id),
|
|
1650
1731
|
key: c.id,
|
|
1651
1732
|
class: "component",
|
|
1652
|
-
style:
|
|
1733
|
+
style: ae(n.getStyle(c.computedStyle)),
|
|
1653
1734
|
"prop-value": c.propValue,
|
|
1654
1735
|
element: c
|
|
1655
1736
|
}, null, 8, ["id", "style", "prop-value", "element"]))), 128))
|
|
1656
1737
|
])
|
|
1657
1738
|
]);
|
|
1658
1739
|
}
|
|
1659
|
-
const
|
|
1660
|
-
|
|
1740
|
+
const On = /* @__PURE__ */ z(Cn, [["render", Pn], ["__scopeId", "data-v-20de9881"], ["__file", "Component.vue"]]), Mn = [
|
|
1741
|
+
rn,
|
|
1661
1742
|
un,
|
|
1662
1743
|
hn,
|
|
1663
1744
|
vn,
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1745
|
+
Ze,
|
|
1746
|
+
bn,
|
|
1747
|
+
On
|
|
1748
|
+
], ve = (t, o) => {
|
|
1749
|
+
ve.installed || (ve.installed = !0, t.provide("hflvloader-api", o), Mn.forEach((l) => {
|
|
1667
1750
|
t.component(l.name, l);
|
|
1668
1751
|
}));
|
|
1669
|
-
},
|
|
1670
|
-
install:
|
|
1752
|
+
}, An = {
|
|
1753
|
+
install: ve
|
|
1671
1754
|
};
|
|
1672
1755
|
export {
|
|
1673
|
-
|
|
1756
|
+
Fn as CommonUtils,
|
|
1674
1757
|
Be as CreateCompContext,
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1758
|
+
Bn as MessageUtils,
|
|
1759
|
+
Fe as createSmartAccessor,
|
|
1760
|
+
An as default,
|
|
1761
|
+
jn as reCalcCanvasSize,
|
|
1762
|
+
he as useDataCacheStore,
|
|
1763
|
+
je as useEventHandler
|
|
1681
1764
|
};
|