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