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