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