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