hflvloader 0.0.7 → 0.0.8
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 +1083 -1036
- 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
|
|
2
|
-
import { withDirectives as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { defineStore as
|
|
6
|
-
import
|
|
7
|
-
import { ElMessage as
|
|
8
|
-
import { useRouter as
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var a=document.createElement("style");a.appendChild(document.createTextNode('@charset "UTF-8";.component[data-v-56b0e3e4]{position:absolute}.canvas-container[data-v-71a9a9bf]{width:100%;height:100%;display:flex;align-items:center;justify-content:center;margin:auto;overflow:hidden}.canvas-container .canvas[data-v-71a9a9bf]{position:relative;margin:auto;background-color:transparent!important}.ve-comp-svg-icon{width:100%;height:100%;position:relative;fill:currentColor;vertical-align:-2px}.full-screen-dialog-wrapper[data-v-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(a)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
|
|
2
|
+
import { withDirectives as Oe, createElementBlock as z, openBlock as A, createBlock as J, resolveDynamicComponent as we, normalizeStyle as be, 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.8", "color: #2ecc71;"), console.log("%c编译日期: 2026/1/25 22:09:36", "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 v(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) && v(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(), a = o;
|
|
91
|
+
return a = a.replace("yyyy", l), a.indexOf("MM") >= 0 ? n >= 10 ? a = a.replace("MM", n) : a = a.replace("MM", "0" + n) : a = a.replace("M", n), a.indexOf("dd") >= 0 ? f >= 10 ? a = a.replace("dd", f) : a = a.replace("dd", "0" + f) : a = a.replace("d", f), a.indexOf("HH") >= 0 ? i >= 10 ? a = a.replace("HH", i) : a = a.replace("HH", "0" + i) : a = a.replace("H", i), a.indexOf("mm") >= 0 ? c >= 10 ? a = a.replace("mm", c) : a = a.replace("mm", "0" + c) : a = a.replace("m", c), a.indexOf("ss") >= 0 ? d >= 10 ? a = a.replace("ss", d) : a = a.replace("ss", "0" + d) : a = a.replace("s", d), a;
|
|
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 v(t) ? Qt(t) : "";
|
|
177
177
|
}
|
|
178
|
-
function
|
|
178
|
+
function $(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:
|
|
234
|
-
isNotEmpty:
|
|
214
|
+
consolePrint: $,
|
|
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
|
+
isNotEmpty: v,
|
|
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" && v(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 a = dn(d), h = Math.round((t.left + t.width / 2) * 10) / 10, y = Math.round((t.top + t.height / 2) * 10) / 10;
|
|
285
|
+
let g = d, w = a;
|
|
286
|
+
if (Math.abs(o - l) > 1e-3) {
|
|
287
|
+
const U = Math.cos(w), Me = Math.sin(w);
|
|
288
|
+
w = Math.atan2(l * Me, o * U), g = Math.floor(w * 180 / Math.PI % 360), g < 0 && (g += 360);
|
|
289
|
+
}
|
|
290
|
+
const _ = Math.abs(Math.cos(w)), b = Math.abs(Math.sin(w));
|
|
291
|
+
let C = Math.round((t.width * _ + t.height * b) * 10) / 10, M = Math.round((t.width * b + t.height * _) * 10) / 10, S = h - 0.5 * M, T = y - 0.5 * C, E = M, x = C, G = Math.round(t.height * b * 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 - (S + E);
|
|
301
|
+
S = n - U - E;
|
|
302
|
+
} else t.hAffix == "center" ? S = Math.floor(n * 0.5 - E * 0.5) : S = Math.floor(S * o);
|
|
303
|
+
}
|
|
304
|
+
if (l != 1) {
|
|
305
|
+
if (t.htSet == "calc")
|
|
306
|
+
x = Math.floor(x * l);
|
|
307
|
+
else if (t.htSet == "overspread") {
|
|
308
|
+
let U = t.htReserve < 0 ? 0 : t.htReserve;
|
|
309
|
+
x = Math.floor(f - U);
|
|
310
|
+
}
|
|
311
|
+
if (t.vAffix != "top") if (t.vAffix == "bottom") {
|
|
312
|
+
let U = c - (T + x);
|
|
313
|
+
T = f - U - x;
|
|
314
|
+
} else t.vAffix == "center" ? T = Math.floor(f * 0.5 - x * 0.5) : T = Math.floor(T * l);
|
|
315
|
+
}
|
|
316
|
+
const V = S + E * 0.5, H = T + x * 0.5, q = Math.round(E * I * 10) / 10, ie = Math.floor(Math.sqrt(q ** 2 + q ** 2)), ge = Math.floor((E - ie * _) / b), 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 = g;
|
|
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((a) => {
|
|
322
|
+
if (a && a.style)
|
|
323
|
+
if (Math.abs(a.style.rotate) >= 1)
|
|
324
|
+
mn(a.style, n, f, o, l, i, c);
|
|
325
|
+
else {
|
|
326
|
+
if (n != 1) {
|
|
327
|
+
let h = a.style.width;
|
|
328
|
+
if (a.style.wdSet == "calc")
|
|
329
|
+
h = Math.floor(a.style.width * n);
|
|
330
|
+
else if (a.style.wdSet == "overspread") {
|
|
331
|
+
let y = a.style.wdReserve < 0 ? 0 : a.style.wdReserve;
|
|
332
|
+
h = Math.floor(o - y);
|
|
333
|
+
}
|
|
334
|
+
if (a.style.hAffix != "left") if (a.style.hAffix == "right") {
|
|
335
|
+
let y = i - (a.style.left + a.style.width);
|
|
336
|
+
a.style.left = o - y - h;
|
|
337
|
+
} else a.style.hAffix == "center" ? a.style.left = Math.floor(o * 0.5 - h * 0.5) : a.style.left = Math.floor(a.style.left * n);
|
|
338
|
+
a.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 = a.style.height;
|
|
342
|
+
if (a.style.htSet == "calc")
|
|
343
|
+
h = Math.floor(a.style.height * f);
|
|
344
|
+
else if (a.style.htSet == "overspread") {
|
|
345
|
+
let y = a.style.htReserve < 0 ? 0 : a.style.htReserve;
|
|
346
|
+
h = Math.floor(l - y);
|
|
347
|
+
}
|
|
348
|
+
if (a.style.vAffix != "top") if (a.style.vAffix == "bottom") {
|
|
349
|
+
let y = c - (a.style.top + a.style.height);
|
|
350
|
+
a.style.top = l - y - h;
|
|
351
|
+
} else a.style.vAffix == "center" ? a.style.top = Math.floor(l * 0.5 - h * 0.5) : a.style.top = Math.floor(a.style.top * f);
|
|
352
|
+
a.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), a = Number(l.width), h = Number(l.height), y = 1, g = 1;
|
|
317
363
|
if (l.screenAdapter == "all-screen")
|
|
318
|
-
|
|
364
|
+
f = JSON.parse(JSON.stringify(l)), c > a + 10 && (f.width = c, y = Math.floor(1e4 * c / a) / 1e4), d > h + 10 && (f.height = d, g = Math.floor(1e4 * d / h) / 1e4), i = le(n, c, d, y, g, a, h);
|
|
319
365
|
else if (l.screenAdapter == "original-ratio") {
|
|
320
|
-
|
|
321
|
-
let w = Math.floor(1e4 *
|
|
322
|
-
Math.floor(
|
|
366
|
+
f = JSON.parse(JSON.stringify(l));
|
|
367
|
+
let w = Math.floor(1e4 * a / h) / 1e4;
|
|
368
|
+
Math.floor(d * w) > c ? (f.width = c, y = Math.floor(1e4 * c / a) / 1e4, d = Math.floor(c / w), f.height = d, g = Math.floor(1e4 * d / h) / 1e4) : (f.height = d, g = Math.floor(1e4 * d / h) / 1e4, c = Math.floor(d * w), f.width = c, y = Math.floor(1e4 * c / a) / 1e4), i = le(n, c, d, y, g, a, h);
|
|
323
369
|
} else if (l.screenAdapter == "h-adapter-wh") {
|
|
324
|
-
|
|
325
|
-
let w = Math.floor(1e4 *
|
|
326
|
-
c >
|
|
370
|
+
f = JSON.parse(JSON.stringify(l));
|
|
371
|
+
let w = Math.floor(1e4 * a / h) / 1e4;
|
|
372
|
+
c > a + 10 && (f.width = c, y = Math.floor(1e4 * c / a) / 1e4, d = Math.floor(c / w), f.height = d, g = Math.floor(1e4 * d / h) / 1e4), i = le(n, c, d, y, g, a, h);
|
|
327
373
|
} else if (l.screenAdapter == "v-adapter-wh") {
|
|
328
|
-
|
|
329
|
-
let w = Math.floor(1e4 *
|
|
330
|
-
|
|
331
|
-
} else l.screenAdapter == "h-adapter" ? (
|
|
374
|
+
f = JSON.parse(JSON.stringify(l));
|
|
375
|
+
let w = Math.floor(1e4 * a / h) / 1e4;
|
|
376
|
+
d > h + 10 && (f.height = d, g = Math.floor(1e4 * d / h) / 1e4, c = Math.floor(d * w), f.width = c, y = Math.floor(1e4 * c / a) / 1e4), i = le(n, c, d, y, g, a, h);
|
|
377
|
+
} else l.screenAdapter == "h-adapter" ? (f = JSON.parse(JSON.stringify(l)), c > a + 10 && (f.width = c, y = Math.floor(1e4 * c / a) / 1e4), i = le(n, c, d, y, g, a, h)) : l.screenAdapter == "v-adapter" ? (f = JSON.parse(JSON.stringify(l)), d > h + 10 && (f.height = d, g = Math.floor(1e4 * d / h) / 1e4), i = le(n, c, d, y, g, a, 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 a = () => {
|
|
389
|
+
t.removeEventListener("animationend", a), t.removeEventListener("animationcancel", a), t.classList.remove(c, "animated", Ye(d)), t.style.removeProperty("--time"), f();
|
|
344
390
|
};
|
|
345
|
-
|
|
391
|
+
t.addEventListener("animationend", a), t.addEventListener("animationcancel", a);
|
|
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 Z = (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: (_) => {
|
|
418
|
+
n.value.style && (n.value.style.isHide = !_);
|
|
373
419
|
}
|
|
374
|
-
}),
|
|
375
|
-
|
|
376
|
-
},
|
|
377
|
-
if (
|
|
378
|
-
let
|
|
379
|
-
|
|
420
|
+
}), i = de({}), c = (_, b) => {
|
|
421
|
+
_ ? i[`Ve${b}`] = _ : delete i[`Ve${b}`];
|
|
422
|
+
}, d = (_) => i[`Ve${_}`], a = () => {
|
|
423
|
+
if (n.value.animations && n.value.animations.length > 0) {
|
|
424
|
+
let _ = i[`Ve${n.value.id}`];
|
|
425
|
+
_.$el && Qe(_.$el, n.value.animations);
|
|
380
426
|
}
|
|
381
|
-
},
|
|
382
|
-
|
|
427
|
+
}, h = () => {
|
|
428
|
+
f.value = !1;
|
|
383
429
|
}, y = () => {
|
|
384
|
-
|
|
385
|
-
},
|
|
386
|
-
|
|
387
|
-
|
|
430
|
+
f.value = !0;
|
|
431
|
+
}, g = () => f.value;
|
|
432
|
+
xe(() => {
|
|
433
|
+
a();
|
|
388
434
|
}), o({
|
|
389
|
-
getComponentRef:
|
|
390
|
-
hide:
|
|
435
|
+
getComponentRef: d,
|
|
436
|
+
hide: h,
|
|
391
437
|
show: y,
|
|
392
|
-
showStatus:
|
|
438
|
+
showStatus: g
|
|
393
439
|
});
|
|
394
|
-
const w = { props: l, config:
|
|
440
|
+
const w = { props: l, config: n, isShow: f, componentRefs: i, setComponentRef: c, getComponentRef: d, execAnimation: a, hide: h, show: y, showStatus: g, 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
447
|
return Object.defineProperty(w, "__isScriptSetup", { enumerable: !1, value: !0 }), w;
|
|
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(we(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: be(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(we(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: be(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__ */ Z(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 = (w, _) => {
|
|
492
|
+
w && (n.value[_] = w);
|
|
493
|
+
}, d = O(() => {
|
|
494
|
+
let w = {}, _ = { ...f.value || {} }, b = _.diyStyles || {};
|
|
495
|
+
delete _.diyStyles;
|
|
496
|
+
let C = Ge(_ || {});
|
|
497
|
+
return C.width = `${f.value.width}px`, C.height = `${f.value.height}px`, w = { ...C, ...b }, w;
|
|
498
|
+
}), a = (w, _, b) => {
|
|
499
|
+
if (v(w) && v(_)) {
|
|
500
|
+
const C = "VeP" + w, M = n.value[C];
|
|
501
|
+
if (M) {
|
|
502
|
+
let S;
|
|
503
|
+
L(M) ? S = M[0] : S = M;
|
|
504
|
+
const T = S.getComponentRef(w);
|
|
505
|
+
T ? T?.$options.name === "Group" && b && b.compId ? T.callGroupCompMethod(b.compId, _, b.data) : T[_] && (b ? T[_](b) : T[_]()) : $("warning", "The component is not exist.id:", w);
|
|
455
506
|
}
|
|
456
507
|
}
|
|
457
|
-
},
|
|
458
|
-
if (
|
|
459
|
-
const
|
|
460
|
-
if (
|
|
461
|
-
let
|
|
462
|
-
|
|
508
|
+
}, h = (w, _, b = {}) => {
|
|
509
|
+
if (v(w)) {
|
|
510
|
+
const C = "VeP" + w, M = n.value[C];
|
|
511
|
+
if (M) {
|
|
512
|
+
let S;
|
|
513
|
+
L(M) ? S = M[0] : S = M, _ ? S.show() : S.hide();
|
|
463
514
|
}
|
|
464
515
|
}
|
|
465
|
-
},
|
|
466
|
-
if (
|
|
467
|
-
const
|
|
468
|
-
if (
|
|
469
|
-
let
|
|
470
|
-
if (
|
|
471
|
-
return
|
|
516
|
+
}, y = (w, _, b) => {
|
|
517
|
+
if (v(w) && v(_)) {
|
|
518
|
+
const C = "VeP" + w, M = n.value[C];
|
|
519
|
+
if (M) {
|
|
520
|
+
let S;
|
|
521
|
+
if (L(M) ? S = M[0] : S = M, S && S[_])
|
|
522
|
+
return b ? S[_](b) : S[_]();
|
|
472
523
|
}
|
|
473
524
|
}
|
|
474
525
|
};
|
|
475
|
-
|
|
476
|
-
callCompMethod:
|
|
526
|
+
te("VE-CompMethod", a), te("VE-CompHideAndShow", h), te("VE-CompWrapMethod", y), o({
|
|
527
|
+
callCompMethod: a
|
|
477
528
|
});
|
|
478
|
-
const
|
|
479
|
-
return
|
|
480
|
-
}, ComponentWrapper:
|
|
481
|
-
return
|
|
529
|
+
const g = { props: l, componentRefs: n, canvasStyle: f, componentData: i, setComponentRef: c, calcCanvasStyle: d, callCompMethod: a, callCompHideAndShow: h, callCompWrapMethod: y, ref: D, computed: O, provide: te, watch: Ae, get getCanvasStyle() {
|
|
530
|
+
return Ge;
|
|
531
|
+
}, ComponentWrapper: yn, get isNotEmpty() {
|
|
532
|
+
return v;
|
|
482
533
|
}, get isArray() {
|
|
483
|
-
return
|
|
534
|
+
return L;
|
|
484
535
|
}, get consolePrint() {
|
|
485
|
-
return
|
|
536
|
+
return $;
|
|
486
537
|
} };
|
|
487
|
-
return Object.defineProperty(
|
|
538
|
+
return Object.defineProperty(g, "__isScriptSetup", { enumerable: !1, value: !0 }), g;
|
|
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: be(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: (a) => n.setComponentRef(a, "VeP" + c.id)
|
|
505
552
|
}, null, 8, ["config"]))), 128))
|
|
506
553
|
], 4)
|
|
507
554
|
]);
|
|
508
555
|
}
|
|
509
|
-
const
|
|
556
|
+
const wn = /* @__PURE__ */ Z(_n, [["render", vn], ["__scopeId", "data-v-71a9a9bf"], ["__file", "index.vue"]]), bn = 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__ */ Z(bn, [["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: (a) => a && a.toString().toLowerCase().startsWith("img#"), getImageSrc: (a) => a.toString().substring(4), isSvgIcon: (a) => a && a.toString().toLowerCase().indexOf("svg#") == 0, getSvgIconClass: (a) => a.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(we(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__ */ Z(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(), a = o.value.length;
|
|
644
|
+
a >= 1 && (c.appendToBody = !0);
|
|
645
|
+
const h = {
|
|
646
|
+
id: d,
|
|
647
|
+
level: a,
|
|
601
648
|
config: c
|
|
602
649
|
};
|
|
603
|
-
if (
|
|
650
|
+
if (t[d] = h, o.value.length >= 1) {
|
|
604
651
|
let y = !1;
|
|
605
|
-
for (let
|
|
606
|
-
if (
|
|
652
|
+
for (let g = 0; g < o.value.length; g++)
|
|
653
|
+
if (d == o.value[g]) {
|
|
607
654
|
y = !0;
|
|
608
655
|
break;
|
|
609
656
|
}
|
|
610
|
-
y || o.value.push(
|
|
657
|
+
y || 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), a = D(i.value.fullscreen), h = D(i.value.width), y = D(!0), g = O(() => {
|
|
687
|
+
let x = i.value.width ?? 800;
|
|
688
|
+
return d.value ? x + 32 : x;
|
|
642
689
|
}), w = O(() => {
|
|
643
|
-
let
|
|
644
|
-
return
|
|
645
|
-
}),
|
|
646
|
-
let
|
|
647
|
-
return
|
|
648
|
-
}),
|
|
649
|
-
let
|
|
650
|
-
if (
|
|
651
|
-
let
|
|
652
|
-
Object.assign(
|
|
690
|
+
let x = {};
|
|
691
|
+
return x.style = {}, x.style.width = i.value.width ?? 800, x.style.height = i.value.height ?? 600, x.prop = {}, x.prop.subpageId = i.value.pageId, x.containerParam = i.value.pageParam || {}, x;
|
|
692
|
+
}), _ = O(() => {
|
|
693
|
+
let x = {};
|
|
694
|
+
return x.modal = i.value.modal, x["show-close"] = i.value.showClose, x.draggable = i.value.draggable, i.value.appendToBody && (x["append-to-body"] = i.value.appendToBody), d.value || (x.class = " no-header-dialog"), i.value.customPosition ? x["align-center"] = !1 : x["align-center"] = !0, x;
|
|
695
|
+
}), b = O(() => {
|
|
696
|
+
let x = {};
|
|
697
|
+
if (i.value.customPosition) {
|
|
698
|
+
let G = i.value.absLeft ?? 100, I = i.value.absTop ?? 100;
|
|
699
|
+
Object.assign(x, {
|
|
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(x, {
|
|
661
708
|
backgroundColor: "transparent"
|
|
662
|
-
}),
|
|
663
|
-
}),
|
|
664
|
-
|
|
665
|
-
},
|
|
666
|
-
|
|
667
|
-
},
|
|
709
|
+
}), x;
|
|
710
|
+
}), C = () => {
|
|
711
|
+
f("confirm");
|
|
712
|
+
}, M = () => {
|
|
713
|
+
f("cancel"), S();
|
|
714
|
+
}, S = () => {
|
|
668
715
|
y.value = !1;
|
|
669
|
-
},
|
|
670
|
-
|
|
716
|
+
}, T = (x) => {
|
|
717
|
+
f("cancel");
|
|
671
718
|
};
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
}),
|
|
675
|
-
|
|
676
|
-
}),
|
|
677
|
-
|
|
719
|
+
te("VE-CompMethod", function() {
|
|
720
|
+
$("warning", "对话框模式,不提供compMethod函数实现");
|
|
721
|
+
}), te("VE-CompHideAndShow", function() {
|
|
722
|
+
$("warning", "对话框模式,不提供compHideAndShow函数实现");
|
|
723
|
+
}), te("VE-CompWrapMethod", function() {
|
|
724
|
+
$("warning", "对话框模式,不提供compWrapMethod函数实现");
|
|
678
725
|
}), o({
|
|
679
|
-
close:
|
|
726
|
+
close: S
|
|
680
727
|
});
|
|
681
|
-
const
|
|
682
|
-
return
|
|
728
|
+
const E = { props: n, emit: f, config: i, title: c, showTitle: d, isFullscreen: a, previousWidth: h, openDialog: y, dialogWidth: g, element: w, bindAttr: _, customStyle: b, confirmInner: C, cancel: M, close: S, handleClose: T, ref: D, computed: O, provide: te, get consolePrint() {
|
|
729
|
+
return $;
|
|
683
730
|
}, get isNotEmpty() {
|
|
684
|
-
return
|
|
731
|
+
return v;
|
|
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"), a = B("el-dialog");
|
|
738
|
+
return A(), z("div", { class: "full-screen-dialog-wrapper" }, [
|
|
739
|
+
R(a, 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__ */ Z(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__ */ Z(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:
|
|
827
|
+
setup(t, { expose: o, emit: l }) {
|
|
828
|
+
const n = D("弹框"), f = D(!1), i = t, c = l;
|
|
829
|
+
let d = null;
|
|
830
|
+
const a = O(() => n.value && v(n.value) ? n.value : i.title), h = () => {
|
|
831
|
+
c("confirm", { callBack: d });
|
|
785
832
|
}, y = () => {
|
|
786
|
-
|
|
787
|
-
},
|
|
788
|
-
|
|
833
|
+
f.value = !1;
|
|
834
|
+
}, g = (_ = {}) => {
|
|
835
|
+
f.value = !0, d = _.callBack, n.value = _.title || "";
|
|
789
836
|
};
|
|
790
837
|
o({
|
|
791
|
-
show:
|
|
838
|
+
show: g,
|
|
792
839
|
cancel: y
|
|
793
840
|
});
|
|
794
|
-
const w = { showTitle:
|
|
795
|
-
return
|
|
796
|
-
}, set callBack(
|
|
797
|
-
|
|
798
|
-
}, title:
|
|
799
|
-
return
|
|
841
|
+
const w = { showTitle: n, openDialog: f, props: i, emit: c, get callBack() {
|
|
842
|
+
return d;
|
|
843
|
+
}, set callBack(_) {
|
|
844
|
+
d = _;
|
|
845
|
+
}, title: a, confirmInner: h, cancel: y, show: g, ref: D, computed: O, get isNotEmpty() {
|
|
846
|
+
return v;
|
|
800
847
|
} };
|
|
801
848
|
return Object.defineProperty(w, "__isScriptSetup", { enumerable: !1, value: !0 }), w;
|
|
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] = (a) => n.openDialog = a),
|
|
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__ */ Z(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
|
-
}), y = { props:
|
|
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: (g) => f("update:modelValue", g)
|
|
915
|
+
}), y = { props: n, emits: f, inputDialogRef: i, inputTextArea: c, internalValue: d, openInputDialog: () => {
|
|
916
|
+
c.value = fe(d.value), i.value?.show();
|
|
917
|
+
}, confirmEdit: (g) => {
|
|
918
|
+
d.value = fe(c.value), i.value?.cancel();
|
|
919
|
+
}, ref: D, computed: O, get deepCopy() {
|
|
920
|
+
return fe;
|
|
874
921
|
} };
|
|
875
922
|
return Object.defineProperty(y, "__isScriptSetup", { enumerable: !1, value: !0 }), y;
|
|
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"), a = 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(a, {
|
|
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__ */ Z(An, [["render", jn], ["__scopeId", "data-v-956a5a3a"], ["__file", "index.vue"]]), me = Yt(
|
|
926
973
|
"ve/dataCache",
|
|
927
974
|
{
|
|
928
975
|
state: () => ({
|
|
@@ -939,150 +986,150 @@ 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 a = c.reason;
|
|
1054
|
+
n.push(a);
|
|
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 a = c.reason;
|
|
1070
|
+
n.push(a);
|
|
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(), a = me(), h = ue("VE-ContainerParam"), y = ue("VE-CompMethod"), g = [], { openDialog: w, closeDialog: _ } = Te();
|
|
1100
|
+
let b = null;
|
|
1101
|
+
const C = 250, M = ue("VE-CompHideAndShow"), S = [], 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
|
+
}, x = (e) => {
|
|
1062
1109
|
if (e && e.path) {
|
|
1063
1110
|
let s = e.params || [], r = {};
|
|
1064
|
-
s.forEach((u,
|
|
1065
|
-
if (
|
|
1066
|
-
let m =
|
|
1111
|
+
s.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
|
-
},
|
|
1118
|
+
}, G = (e = []) => {
|
|
1072
1119
|
let s = [];
|
|
1073
1120
|
return e.forEach((r) => {
|
|
1074
|
-
if (
|
|
1075
|
-
let u =
|
|
1121
|
+
if (re(r)) {
|
|
1122
|
+
let u = Y(r);
|
|
1076
1123
|
s.push([
|
|
1077
1124
|
r.tarKey,
|
|
1078
1125
|
u
|
|
1079
1126
|
]);
|
|
1080
1127
|
}
|
|
1081
1128
|
}), s;
|
|
1082
|
-
},
|
|
1083
|
-
if (e.customFunc &&
|
|
1129
|
+
}, I = (e, s) => {
|
|
1130
|
+
if (e.customFunc && v(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();
|
|
@@ -1092,176 +1139,176 @@ function Je(n = {}, o = !0, l = {}) {
|
|
|
1092
1139
|
}
|
|
1093
1140
|
}
|
|
1094
1141
|
}, V = (e, s, r) => {
|
|
1095
|
-
if (e.customFunc &&
|
|
1142
|
+
if (e.customFunc && v(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)(s, r);
|
|
1149
|
+
} catch (p) {
|
|
1150
|
+
console.error("[_dataRequestHandler4CustomErrorFunc]处理自定义失败函数时出错:", p);
|
|
1104
1151
|
}
|
|
1105
1152
|
}
|
|
1106
1153
|
}, H = (e, s) => {
|
|
1107
|
-
if (
|
|
1108
|
-
let r, u,
|
|
1154
|
+
if (L(s) && s.length > 0) {
|
|
1155
|
+
let r, u, p;
|
|
1109
1156
|
for (let m = 0; m < s.length; m++)
|
|
1110
|
-
r = s[m],
|
|
1157
|
+
r = s[m], p = r.dataKey || "data", v(p) && Ee(e, p) && (u = Ie(e, p), v(r.ds) && v(r.tarKey) && vt(r, u));
|
|
1111
1158
|
}
|
|
1112
|
-
},
|
|
1159
|
+
}, q = async (e) => {
|
|
1113
1160
|
let s = [], 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
|
-
s.push(
|
|
1166
|
+
const P = p.reason;
|
|
1167
|
+
s.push(P);
|
|
1121
1168
|
}
|
|
1122
1169
|
});
|
|
1123
1170
|
} catch (u) {
|
|
1124
1171
|
console.error("_dataRequestHandler4Async 异常:", u), s.push(u);
|
|
1125
1172
|
}
|
|
1126
1173
|
return { errors: s, resultInfo: r };
|
|
1127
|
-
},
|
|
1174
|
+
}, ie = (e) => {
|
|
1128
1175
|
if (e.method == "GET" || e.method == "get") {
|
|
1129
1176
|
let s = e.url;
|
|
1130
1177
|
if (/\{#.*?#\}/g.test(s)) {
|
|
1131
|
-
let u = e.data || [],
|
|
1132
|
-
if (s = s.replace(/\{#(.*?)#\}/g, (
|
|
1133
|
-
m = !1,
|
|
1134
|
-
for (let
|
|
1135
|
-
if (
|
|
1136
|
-
m = !0,
|
|
1178
|
+
let u = e.data || [], p = /* @__PURE__ */ new Set(), m = !1, P = null;
|
|
1179
|
+
if (s = s.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 = s, e.data =
|
|
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 = s, e.data = N || [];
|
|
1143
1190
|
}
|
|
1144
1191
|
}
|
|
1145
1192
|
}
|
|
1146
|
-
},
|
|
1147
|
-
if (e &&
|
|
1193
|
+
}, ge = async (e) => {
|
|
1194
|
+
if (e && v(e.url)) {
|
|
1148
1195
|
let s = e.respParams || [], r = {};
|
|
1149
|
-
r.url = e.url, r.externalRequest = e.external || !1, r.method = e.method || "GET", r.paramType = "object", r.data =
|
|
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, s),
|
|
1223
|
+
H(m, s), 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
1237
|
H(m, s);
|
|
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, s),
|
|
1249
|
+
H(m, s), 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
1263
|
H(m, s);
|
|
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 && g.push(p);
|
|
1228
1275
|
}
|
|
1229
1276
|
}
|
|
1230
|
-
},
|
|
1231
|
-
e.tipType == "msg" ?
|
|
1232
|
-
},
|
|
1233
|
-
if (e &&
|
|
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)) {
|
|
1234
1281
|
let s = e.params || [], r = null;
|
|
1235
1282
|
for (let u = 0; u < s.length; u++)
|
|
1236
|
-
if (r = s[u],
|
|
1237
|
-
let
|
|
1238
|
-
|
|
1283
|
+
if (r = s[u], re(r)) {
|
|
1284
|
+
let p = Y(r);
|
|
1285
|
+
k.setDataCache(r.tarKey, p);
|
|
1239
1286
|
}
|
|
1240
1287
|
}
|
|
1241
|
-
},
|
|
1242
|
-
if (e &&
|
|
1288
|
+
}, U = (e) => {
|
|
1289
|
+
if (e && L(e.params)) {
|
|
1243
1290
|
let s = e.params || [], r = null;
|
|
1244
1291
|
for (let u = 0; u < s.length; u++)
|
|
1245
|
-
if (r = s[u],
|
|
1246
|
-
let
|
|
1292
|
+
if (r = s[u], v(r.ipn) && v(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 &&
|
|
1302
|
+
}, Me = (e) => {
|
|
1303
|
+
if (e && L(e.params)) {
|
|
1257
1304
|
let s = e.params || [], r = null;
|
|
1258
1305
|
for (let u = 0; u < s.length; u++)
|
|
1259
|
-
if (r = s[u],
|
|
1260
|
-
let
|
|
1261
|
-
|
|
1306
|
+
if (r = s[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
|
},
|
|
@@ -1272,13 +1319,13 @@ function Je(n = {}, o = !0, l = {}) {
|
|
|
1272
1319
|
c.set(e, s);
|
|
1273
1320
|
},
|
|
1274
1321
|
getDataCache: function(e) {
|
|
1275
|
-
return
|
|
1322
|
+
return a.data[e];
|
|
1276
1323
|
},
|
|
1277
1324
|
setDataCache: function(e, s) {
|
|
1278
|
-
|
|
1325
|
+
a.data[e] = s;
|
|
1279
1326
|
},
|
|
1280
1327
|
getContainerParam: function(e) {
|
|
1281
|
-
return
|
|
1328
|
+
return E(e);
|
|
1282
1329
|
},
|
|
1283
1330
|
setSessionParam: function(e, s) {
|
|
1284
1331
|
sessionStorage.setItem(e, s);
|
|
@@ -1293,47 +1340,47 @@ function Je(n = {}, o = !0, l = {}) {
|
|
|
1293
1340
|
return localStorage.getItem(e);
|
|
1294
1341
|
},
|
|
1295
1342
|
callCompMethod: function(e, s, r = {}) {
|
|
1296
|
-
|
|
1343
|
+
K(y) ? y(e, s, r) : console.error("compMethod is not function.");
|
|
1297
1344
|
},
|
|
1298
1345
|
setJsCookie: function(e, s, r = 30) {
|
|
1299
|
-
|
|
1346
|
+
Pe.set(e, s, { 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
1354
|
log: function(e = "log", s) {
|
|
1308
1355
|
e == "error" ? console.error(s) : e == "info" ? console.info(s) : e == "warn" ? console.warn(s) : console.log(s);
|
|
1309
1356
|
},
|
|
1310
1357
|
isNotEmptyStr: function(e) {
|
|
1311
|
-
return
|
|
1358
|
+
return v(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
1366
|
formatDate: function(e, s = "yyyy-MM-dd") {
|
|
1320
|
-
return
|
|
1367
|
+
return at(e, s);
|
|
1321
1368
|
},
|
|
1322
1369
|
closeDialog: function(e) {
|
|
1323
|
-
|
|
1370
|
+
_(e);
|
|
1324
1371
|
},
|
|
1325
1372
|
hideAndShowComp: function(e, s, r = {}) {
|
|
1326
|
-
|
|
1373
|
+
K(M) ? M(e, s, r) : console.error("hideAndShowComp is not function.");
|
|
1327
1374
|
},
|
|
1328
1375
|
callCompWrapMethod: function(e, s, r = {}) {
|
|
1329
|
-
if (
|
|
1330
|
-
return
|
|
1376
|
+
if (K(T))
|
|
1377
|
+
return T(e, s, r);
|
|
1331
1378
|
console.error("compWrapMethod is not function.");
|
|
1332
1379
|
}
|
|
1333
|
-
},
|
|
1334
|
-
if (e &&
|
|
1380
|
+
}, yt = (e) => {
|
|
1381
|
+
if (e && v(e.funcBody)) {
|
|
1335
1382
|
const s = {
|
|
1336
|
-
helper: { ...
|
|
1383
|
+
helper: { ...i, ...k }
|
|
1337
1384
|
};
|
|
1338
1385
|
try {
|
|
1339
1386
|
let r = e.funcBody.toString().trim();
|
|
@@ -1342,94 +1389,94 @@ function Je(n = {}, o = !0, l = {}) {
|
|
|
1342
1389
|
console.error("处理自定义函数时出错:", r);
|
|
1343
1390
|
}
|
|
1344
1391
|
}
|
|
1345
|
-
},
|
|
1346
|
-
if (e &&
|
|
1392
|
+
}, _t = (e) => {
|
|
1393
|
+
if (e && v(e.type)) {
|
|
1347
1394
|
if (e.opType == "clear") {
|
|
1348
1395
|
let s = e.type;
|
|
1349
1396
|
s == "session" ? sessionStorage.clear() : s == "local" && localStorage.clear();
|
|
1350
|
-
} else if (
|
|
1397
|
+
} else if (L(e.params) && e.params.length > 0) {
|
|
1351
1398
|
let s = e.type, r = e.params || [], u = null;
|
|
1352
|
-
for (let
|
|
1353
|
-
if (u = r[
|
|
1354
|
-
|
|
1355
|
-
else if (
|
|
1356
|
-
let m =
|
|
1357
|
-
s == "session" ? sessionStorage.setItem(u.tarKey, m) : s == "local" ? localStorage.setItem(u.tarKey, m) : s == "jsCookie" &&
|
|
1399
|
+
for (let p = 0; p < r.length; p++)
|
|
1400
|
+
if (u = r[p], u.delete)
|
|
1401
|
+
v(u.tarKey) && (s == "session" ? sessionStorage.removeItem(u.tarKey) : s == "local" ? localStorage.removeItem(u.tarKey) : s == "jsCookie" && k.removeJsCookie(u.tarKey));
|
|
1402
|
+
else if (re(u)) {
|
|
1403
|
+
let m = Y(u);
|
|
1404
|
+
s == "session" ? sessionStorage.setItem(u.tarKey, m) : s == "local" ? localStorage.setItem(u.tarKey, m) : s == "jsCookie" && k.setJsCookie(u.tarKey, m);
|
|
1358
1405
|
}
|
|
1359
1406
|
}
|
|
1360
1407
|
}
|
|
1361
|
-
},
|
|
1408
|
+
}, re = (e) => v(e.ds) && v(e.tarKey) ? e.ds != "inputV" ? v(e.key) : !0 : !1, Y = (e) => {
|
|
1362
1409
|
if (e.ds == "inputP")
|
|
1363
|
-
return
|
|
1410
|
+
return k.getParam(e.key);
|
|
1364
1411
|
if (e.ds == "cacheP")
|
|
1365
|
-
return
|
|
1412
|
+
return k.getDataCache(e.key);
|
|
1366
1413
|
if (e.ds == "containerP")
|
|
1367
|
-
return
|
|
1414
|
+
return k.getContainerParam(e.key);
|
|
1368
1415
|
if (e.ds == "sessionP")
|
|
1369
|
-
return
|
|
1416
|
+
return k.getSessionParam(e.key);
|
|
1370
1417
|
if (e.ds == "localP")
|
|
1371
|
-
return
|
|
1418
|
+
return k.getLocalParam(e.key);
|
|
1372
1419
|
if (e.ds == "jsCookieP")
|
|
1373
|
-
return
|
|
1420
|
+
return k.getJsCookie(e.key);
|
|
1374
1421
|
if (e.ds == "compProp")
|
|
1375
|
-
return
|
|
1422
|
+
return K(i.getPropValue) ? i.getPropValue(e.key) : null;
|
|
1376
1423
|
if (e.ds == "compStyle")
|
|
1377
|
-
return
|
|
1424
|
+
return K(i.getStyleValue) ? i.getStyleValue(e.key) : null;
|
|
1378
1425
|
if (e.ds == "_selectMenuValue" || e.ds == "_selectItemValue" || e.ds == "_changeItemValue") {
|
|
1379
|
-
let s =
|
|
1380
|
-
return Se(s) ? null :
|
|
1426
|
+
let s = k.getParam(e.ds);
|
|
1427
|
+
return Se(s) ? null : ne(s) ? v(e.key) && Ee(s, e.key) ? Ie(s, e.key) : null : s;
|
|
1381
1428
|
} else {
|
|
1382
1429
|
let s = e.key;
|
|
1383
|
-
return s.toString().trim().indexOf("#json#") == 0 ? (s = s.toString().trim().replace("#json#", ""),
|
|
1430
|
+
return s.toString().trim().indexOf("#json#") == 0 ? (s = s.toString().trim().replace("#json#", ""), lt(s, {})) : e.key;
|
|
1384
1431
|
}
|
|
1385
|
-
},
|
|
1432
|
+
}, vt = (e, s) => {
|
|
1386
1433
|
if (e.ds == "cacheP")
|
|
1387
|
-
return
|
|
1434
|
+
return k.setDataCache(e.tarKey, s);
|
|
1388
1435
|
if (e.ds == "inputP")
|
|
1389
|
-
return
|
|
1436
|
+
return k.setParam(e.tarKey, s);
|
|
1390
1437
|
if (e.ds == "sessionP")
|
|
1391
|
-
return
|
|
1438
|
+
return k.setSessionParam(e.tarKey, s);
|
|
1392
1439
|
if (e.ds == "localP")
|
|
1393
|
-
return
|
|
1394
|
-
e.ds == "jsCookieP" ?
|
|
1395
|
-
},
|
|
1440
|
+
return k.setLocalParam(e.tarKey, s);
|
|
1441
|
+
e.ds == "jsCookieP" ? k.setJsCookie(e.tarKey, s) : e.ds == "compProp" ? K(i.setPropValue) && i.setPropValue(e.tarKey, s) : e.ds == "compStyle" && K(i.setStyleValue) && i.setStyleValue(e.tarKey, s);
|
|
1442
|
+
}, wt = (e) => {
|
|
1396
1443
|
if (e) {
|
|
1397
1444
|
let s = e.styleSets || [], r = e.propSets || [];
|
|
1398
|
-
|
|
1399
|
-
if (
|
|
1400
|
-
let m =
|
|
1401
|
-
|
|
1445
|
+
L(r) && r.length > 0 && K(i.setPropValue) && r.forEach((u, p) => {
|
|
1446
|
+
if (re(u)) {
|
|
1447
|
+
let m = Y(u);
|
|
1448
|
+
i.setPropValue(u.tarKey, m);
|
|
1402
1449
|
}
|
|
1403
|
-
}),
|
|
1404
|
-
if (
|
|
1405
|
-
let m =
|
|
1406
|
-
|
|
1450
|
+
}), L(s) && s.length > 0 && K(i.setStyleValue) && s.forEach((u, p) => {
|
|
1451
|
+
if (re(u)) {
|
|
1452
|
+
let m = Y(u);
|
|
1453
|
+
i.setStyleValue(u.tarKey, m);
|
|
1407
1454
|
}
|
|
1408
1455
|
});
|
|
1409
1456
|
}
|
|
1410
|
-
},
|
|
1457
|
+
}, bt = (e) => {
|
|
1411
1458
|
let s = !1;
|
|
1412
|
-
if (e &&
|
|
1413
|
-
let r = e.params || [], u = null,
|
|
1459
|
+
if (e && L(e.params)) {
|
|
1460
|
+
let r = e.params || [], u = null, p = !1;
|
|
1414
1461
|
for (let m = 0; m < r.length; m++) {
|
|
1415
1462
|
u = r[m];
|
|
1416
|
-
let
|
|
1417
|
-
const
|
|
1418
|
-
if ([">", ">=", "<", "<=", "=="].includes(
|
|
1463
|
+
let P = Y(u), N = u.value;
|
|
1464
|
+
const ee = u.opType;
|
|
1465
|
+
if ([">", ">=", "<", "<=", "=="].includes(ee) && (P = ae(P), N = ae(N)), se[ee] ? p = se[ee](P, N) : p = !1, p) {
|
|
1419
1466
|
s = !0;
|
|
1420
1467
|
break;
|
|
1421
1468
|
}
|
|
1422
1469
|
}
|
|
1423
1470
|
if (e.enabledTip && s) {
|
|
1424
1471
|
let m = e.tip || {};
|
|
1425
|
-
m.tipType == "msg" ?
|
|
1472
|
+
m.tipType == "msg" ? he(m.type, m.msg, m.extParam) : m.tipType == "notify" && Re(m.type, m.msg, m.extParam);
|
|
1426
1473
|
}
|
|
1427
1474
|
}
|
|
1428
1475
|
return s;
|
|
1429
|
-
},
|
|
1430
|
-
if (e.customFunc &&
|
|
1476
|
+
}, Ne = (e, s) => {
|
|
1477
|
+
if (e.customFunc && v(e.confirmFunc)) {
|
|
1431
1478
|
const r = {
|
|
1432
|
-
helper: { ...
|
|
1479
|
+
helper: { ...i, ...k }
|
|
1433
1480
|
};
|
|
1434
1481
|
try {
|
|
1435
1482
|
let u = e.confirmFunc.toString().trim();
|
|
@@ -1438,10 +1485,10 @@ function Je(n = {}, o = !0, l = {}) {
|
|
|
1438
1485
|
console.error("[__messageBoxHandler4CustomSuccessFunc]处理自定义失败函数时出错:", u);
|
|
1439
1486
|
}
|
|
1440
1487
|
}
|
|
1441
|
-
},
|
|
1442
|
-
if (e.customFunc &&
|
|
1488
|
+
}, xt = (e, s) => {
|
|
1489
|
+
if (e.customFunc && v(e.errorFunc)) {
|
|
1443
1490
|
const r = {
|
|
1444
|
-
helper: { ...
|
|
1491
|
+
helper: { ...i, ...k }
|
|
1445
1492
|
};
|
|
1446
1493
|
try {
|
|
1447
1494
|
let u = e.errorFunc.toString().trim();
|
|
@@ -1450,28 +1497,28 @@ function Je(n = {}, o = !0, l = {}) {
|
|
|
1450
1497
|
console.error("[__messageBoxHandler4CustomErrorFunc]处理自定义失败函数时出错:", u);
|
|
1451
1498
|
}
|
|
1452
1499
|
}
|
|
1453
|
-
},
|
|
1500
|
+
}, ye = (e, s) => {
|
|
1454
1501
|
if (e.customFunc) {
|
|
1455
1502
|
let r = "";
|
|
1456
|
-
if (s == "cancel" &&
|
|
1503
|
+
if (s == "cancel" && v(e.cancelFunc))
|
|
1457
1504
|
r = e.cancelFunc;
|
|
1458
|
-
else if (s == "close" &&
|
|
1505
|
+
else if (s == "close" && v(e.closeFunc))
|
|
1459
1506
|
r = e.closeFunc;
|
|
1460
1507
|
else
|
|
1461
1508
|
return;
|
|
1462
1509
|
const u = {
|
|
1463
|
-
helper: { ...
|
|
1510
|
+
helper: { ...i, ...k }
|
|
1464
1511
|
};
|
|
1465
1512
|
try {
|
|
1466
|
-
let
|
|
1467
|
-
|
|
1468
|
-
} catch (
|
|
1469
|
-
console.error("[__messageBoxHandler4CustomCancelOrCloseFunc]处理自定义失败函数时出错:",
|
|
1513
|
+
let p = r.toString().trim();
|
|
1514
|
+
p.indexOf("function") < 0 && (p = "function (err){" + p + "}"), new Function("context", `with(context) {return ${p}}`)(u)();
|
|
1515
|
+
} catch (p) {
|
|
1516
|
+
console.error("[__messageBoxHandler4CustomCancelOrCloseFunc]处理自定义失败函数时出错:", p);
|
|
1470
1517
|
}
|
|
1471
1518
|
}
|
|
1472
|
-
},
|
|
1519
|
+
}, St = async (e) => {
|
|
1473
1520
|
let s = !1;
|
|
1474
|
-
if (e &&
|
|
1521
|
+
if (e && v(e.type)) {
|
|
1475
1522
|
let r = {
|
|
1476
1523
|
...e.params,
|
|
1477
1524
|
type: e.msgType || "info",
|
|
@@ -1479,118 +1526,118 @@ function Je(n = {}, o = !0, l = {}) {
|
|
|
1479
1526
|
cancelButtonText: e.cancelText
|
|
1480
1527
|
};
|
|
1481
1528
|
if (e.type == "confirm") {
|
|
1482
|
-
const { errors: u, resultInfo:
|
|
1483
|
-
u && u.length > 0 ? u[0] == "cancel" ?
|
|
1529
|
+
const { errors: u, resultInfo: p } = await ht(e.title, e.message, r);
|
|
1530
|
+
u && u.length > 0 ? u[0] == "cancel" ? ye(e, "cancel") : u[0] == "close" && ye(e, "close") : p == "confirm" && (s = !0, Ne(e, null));
|
|
1484
1531
|
} else if (e.type == "prompt") {
|
|
1485
|
-
if (
|
|
1532
|
+
if (v(r.inputPattern)) {
|
|
1486
1533
|
const m = r.inputPattern.replace(/\\\\/g, "\\");
|
|
1487
1534
|
r.inputPattern = new RegExp(m);
|
|
1488
1535
|
}
|
|
1489
|
-
const { errors: u, resultInfo:
|
|
1490
|
-
u && u.length > 0 ? u[0] == "cancel" ?
|
|
1536
|
+
const { errors: u, resultInfo: p } = await gt(e.title, e.message, r);
|
|
1537
|
+
u && u.length > 0 ? u[0] == "cancel" ? ye(e, "cancel") : u[0] == "close" ? ye(e, "close") : xt(e, u[0]) : p.action == "confirm" && (s = !0, k.setParam("promptValue", p.value), Ne(e, p.value));
|
|
1491
1538
|
}
|
|
1492
1539
|
e.autoBlock || (s = !0);
|
|
1493
1540
|
} else
|
|
1494
1541
|
s = !0;
|
|
1495
1542
|
return s;
|
|
1496
|
-
},
|
|
1497
|
-
if (e &&
|
|
1543
|
+
}, Ct = (e) => {
|
|
1544
|
+
if (e && v(e.pageId)) {
|
|
1498
1545
|
let s = { ...e };
|
|
1499
1546
|
if (e.customPosition) {
|
|
1500
|
-
let r = (
|
|
1547
|
+
let r = (k.getParam("elementRectLeft") ?? 0) + (pe(e.leftOffset) ? e.leftOffset : 0), u = (k.getParam("elementRectTop") ?? 0) + (pe(e.topOffset) ? e.topOffset : 0);
|
|
1501
1548
|
s.absLeft = r, s.absTop = u;
|
|
1502
1549
|
}
|
|
1503
1550
|
w(s);
|
|
1504
1551
|
}
|
|
1505
|
-
},
|
|
1506
|
-
if (e &&
|
|
1552
|
+
}, Mt = (e) => {
|
|
1553
|
+
if (e && L(e.params)) {
|
|
1507
1554
|
let s = e.params || [], r = null;
|
|
1508
1555
|
for (let u = 0; u < s.length; u++)
|
|
1509
|
-
if (r = s[u],
|
|
1510
|
-
let
|
|
1511
|
-
r.type == "s" ?
|
|
1556
|
+
if (r = s[u], v(r.compId)) {
|
|
1557
|
+
let p = r.options || {};
|
|
1558
|
+
r.type == "s" ? k.hideAndShowComp(r.compId, !0, p) : k.hideAndShowComp(r.compId, !1, p);
|
|
1512
1559
|
}
|
|
1513
1560
|
}
|
|
1514
1561
|
}, Pt = (e) => {
|
|
1515
1562
|
if (e) {
|
|
1516
1563
|
let s = e.interval ?? 1e3, r = setInterval(
|
|
1517
1564
|
() => {
|
|
1518
|
-
|
|
1565
|
+
$("debug", "定时器触发..."), Ht();
|
|
1519
1566
|
},
|
|
1520
1567
|
s
|
|
1521
1568
|
);
|
|
1522
|
-
|
|
1569
|
+
S.push(r);
|
|
1523
1570
|
}
|
|
1524
1571
|
}, Vt = (e, s = {}) => {
|
|
1525
|
-
if (e &&
|
|
1572
|
+
if (e && v(e.eventId)) {
|
|
1526
1573
|
let r = s.eventIds || [];
|
|
1527
|
-
if (r.findIndex((
|
|
1528
|
-
let
|
|
1529
|
-
for (let m = 0; m <
|
|
1530
|
-
let
|
|
1531
|
-
for (const
|
|
1532
|
-
if (
|
|
1533
|
-
if (r.push(
|
|
1534
|
-
|
|
1574
|
+
if (r.findIndex((p) => p == e.eventId) < 0) {
|
|
1575
|
+
let p = Object.keys(n);
|
|
1576
|
+
for (let m = 0; m < p.length; m++) {
|
|
1577
|
+
let P = n[p[m]] || [];
|
|
1578
|
+
for (const N of P)
|
|
1579
|
+
if (N.id == e.eventId) {
|
|
1580
|
+
if (r.push(N.id), s.eventIds = [...r], N.default) {
|
|
1581
|
+
_e(N.actionList, s);
|
|
1535
1582
|
break;
|
|
1536
|
-
} else
|
|
1583
|
+
} else Le(N) && _e(N.actionList, s);
|
|
1537
1584
|
break;
|
|
1538
1585
|
}
|
|
1539
1586
|
}
|
|
1540
1587
|
} else
|
|
1541
|
-
|
|
1588
|
+
$("error", "存在循环调用,不执行事件配置", e.eventId);
|
|
1542
1589
|
}
|
|
1543
|
-
},
|
|
1590
|
+
}, _e = async (e = [], s = {}) => {
|
|
1544
1591
|
let r = null;
|
|
1545
1592
|
for (let u = 0; u < e.length; u++)
|
|
1546
1593
|
if (r = e[u], r.action == "router")
|
|
1547
|
-
|
|
1594
|
+
x(r.config);
|
|
1548
1595
|
else if (r.action == "dataRequest")
|
|
1549
|
-
await
|
|
1596
|
+
await ge(r.config);
|
|
1550
1597
|
else if (r.action == "cacheSet")
|
|
1551
|
-
|
|
1598
|
+
Ce(r.config);
|
|
1552
1599
|
else if (r.action == "paramMap")
|
|
1553
|
-
|
|
1600
|
+
U(r.config);
|
|
1554
1601
|
else if (r.action == "paramSet")
|
|
1555
|
-
|
|
1602
|
+
Me(r.config);
|
|
1556
1603
|
else if (r.action == "customFunction")
|
|
1557
|
-
ht(r.config);
|
|
1558
|
-
else if (r.action == "webStorage")
|
|
1559
1604
|
yt(r.config);
|
|
1605
|
+
else if (r.action == "webStorage")
|
|
1606
|
+
_t(r.config);
|
|
1560
1607
|
else if (r.action == "componentSet")
|
|
1561
|
-
|
|
1608
|
+
wt(r.config);
|
|
1562
1609
|
else if (r.action == "actionEnd") {
|
|
1563
|
-
if (
|
|
1610
|
+
if (bt(r.config)) {
|
|
1564
1611
|
console.log("actionEnd is true. break");
|
|
1565
1612
|
break;
|
|
1566
1613
|
}
|
|
1567
1614
|
} else if (r.action == "messageBox") {
|
|
1568
|
-
if (!await
|
|
1615
|
+
if (!await St(r.config)) {
|
|
1569
1616
|
console.log("messageBox is false. break");
|
|
1570
1617
|
break;
|
|
1571
1618
|
}
|
|
1572
1619
|
} else if (r.action == "openDialog") {
|
|
1573
|
-
|
|
1620
|
+
Ct(r.config);
|
|
1574
1621
|
break;
|
|
1575
|
-
} else r.action == "showAndHideSet" ?
|
|
1576
|
-
},
|
|
1577
|
-
let s = !1, r, u,
|
|
1578
|
-
|
|
1622
|
+
} else r.action == "showAndHideSet" ? Mt(r.config) : r.action == "timerSet" ? Pt(r.config) : r.action == "performEvent" && Vt(r.config, s);
|
|
1623
|
+
}, He = (e) => e == "inputV" || e == "_selectMenuValue" || e == "_selectItemValue" || e == "_changeItemValue", Ot = (e) => {
|
|
1624
|
+
let s = !1, r, u, p = !1;
|
|
1625
|
+
v(e.lType) && (He(e.lType) ? p = !0 : p = v(e.lValue));
|
|
1579
1626
|
let m = !1;
|
|
1580
|
-
if (
|
|
1581
|
-
r =
|
|
1627
|
+
if (v(e.rType) && (He(e.rType) ? m = !0 : m = v(e.rValue)), p && m) {
|
|
1628
|
+
r = Y({
|
|
1582
1629
|
ds: e.lType,
|
|
1583
1630
|
key: e.lValue
|
|
1584
|
-
}), u =
|
|
1631
|
+
}), u = Y({
|
|
1585
1632
|
ds: e.rType,
|
|
1586
1633
|
key: e.rValue
|
|
1587
1634
|
});
|
|
1588
|
-
const
|
|
1589
|
-
[">", ">=", "<", "<=", "=="].includes(
|
|
1635
|
+
const P = e.opType;
|
|
1636
|
+
[">", ">=", "<", "<=", "=="].includes(P) && (r = ae(r), u = ae(u)), se[P] ? s = se[P](r, u) : (s = !1, console.warn("useEventHandler Invalid operator: " + P));
|
|
1590
1637
|
} else
|
|
1591
1638
|
console.warn("_judgeCondition warn: the condition config is error.");
|
|
1592
1639
|
return s;
|
|
1593
|
-
},
|
|
1640
|
+
}, Le = (e) => {
|
|
1594
1641
|
let s = !1;
|
|
1595
1642
|
if (e.default)
|
|
1596
1643
|
s = !0;
|
|
@@ -1598,8 +1645,8 @@ function Je(n = {}, o = !0, l = {}) {
|
|
|
1598
1645
|
let r = e.condition || [];
|
|
1599
1646
|
if (r.length > 0) {
|
|
1600
1647
|
let u = !0;
|
|
1601
|
-
for (let
|
|
1602
|
-
if (!Ot(r[
|
|
1648
|
+
for (let p = 0; p < r.length; p++)
|
|
1649
|
+
if (!Ot(r[p])) {
|
|
1603
1650
|
u = !1;
|
|
1604
1651
|
break;
|
|
1605
1652
|
}
|
|
@@ -1608,147 +1655,147 @@ function Je(n = {}, o = !0, l = {}) {
|
|
|
1608
1655
|
s = !0;
|
|
1609
1656
|
}
|
|
1610
1657
|
return s;
|
|
1611
|
-
},
|
|
1658
|
+
}, W = (e = []) => {
|
|
1612
1659
|
for (const s of e) {
|
|
1613
1660
|
let r = {};
|
|
1614
1661
|
if (r.eventIds = [s.id], s.default) {
|
|
1615
|
-
|
|
1662
|
+
_e(s.actionList, r);
|
|
1616
1663
|
break;
|
|
1617
|
-
} else
|
|
1664
|
+
} else Le(s) && _e(s.actionList, r);
|
|
1618
1665
|
}
|
|
1619
|
-
},
|
|
1620
|
-
|
|
1621
|
-
if (
|
|
1666
|
+
}, kt = (e) => {
|
|
1667
|
+
f || (b && clearTimeout(b), b = setTimeout(() => {
|
|
1668
|
+
if (n && n.hasOwnProperty("onMouseClick")) {
|
|
1622
1669
|
if (e && e.target) {
|
|
1623
1670
|
const r = e.target.getBoundingClientRect();
|
|
1624
|
-
|
|
1671
|
+
X("elementRect", r), X("elementRectLeft", r.left), X("elementRectTop", r.top);
|
|
1625
1672
|
}
|
|
1626
|
-
let s =
|
|
1627
|
-
|
|
1673
|
+
let s = n.onMouseClick;
|
|
1674
|
+
W(s);
|
|
1628
1675
|
}
|
|
1629
|
-
},
|
|
1630
|
-
},
|
|
1631
|
-
if (!
|
|
1676
|
+
}, C));
|
|
1677
|
+
}, It = (e) => {
|
|
1678
|
+
if (!f && (b && clearTimeout(b), n && n.hasOwnProperty("onMouseDblClick"))) {
|
|
1632
1679
|
if (e && e.target) {
|
|
1633
1680
|
const r = e.target.getBoundingClientRect();
|
|
1634
|
-
|
|
1681
|
+
X("elementRect", r), X("elementRectLeft", r.left), X("elementRectTop", r.top);
|
|
1635
1682
|
}
|
|
1636
|
-
let s =
|
|
1637
|
-
|
|
1638
|
-
}
|
|
1639
|
-
}, It = (e, s) => {
|
|
1640
|
-
if (!p && (J("_selectMenuValue", s), t && t.hasOwnProperty("onContextMenu"))) {
|
|
1641
|
-
let r = t.onContextMenu;
|
|
1642
|
-
K(r);
|
|
1683
|
+
let s = n.onMouseDblClick;
|
|
1684
|
+
W(s);
|
|
1643
1685
|
}
|
|
1644
|
-
}, Et = (e) => {
|
|
1645
|
-
if (!
|
|
1646
|
-
let
|
|
1647
|
-
|
|
1686
|
+
}, Et = (e, s) => {
|
|
1687
|
+
if (!f && (X("_selectMenuValue", s), n && n.hasOwnProperty("onContextMenu"))) {
|
|
1688
|
+
let r = n.onContextMenu;
|
|
1689
|
+
W(r);
|
|
1648
1690
|
}
|
|
1649
1691
|
}, Tt = (e) => {
|
|
1650
|
-
if (!
|
|
1651
|
-
let s =
|
|
1652
|
-
|
|
1692
|
+
if (!f && (X("_selectItemValue", e), n && n.hasOwnProperty("selectItem"))) {
|
|
1693
|
+
let s = n.selectItem;
|
|
1694
|
+
W(s);
|
|
1653
1695
|
}
|
|
1654
|
-
},
|
|
1655
|
-
if (!
|
|
1656
|
-
let
|
|
1657
|
-
|
|
1696
|
+
}, Rt = (e) => {
|
|
1697
|
+
if (!f && (X("_changeItemValue", e), n && n.hasOwnProperty("changeValue"))) {
|
|
1698
|
+
let s = n.changeValue;
|
|
1699
|
+
W(s);
|
|
1658
1700
|
}
|
|
1659
|
-
},
|
|
1660
|
-
if (!
|
|
1661
|
-
let e =
|
|
1662
|
-
|
|
1701
|
+
}, Dt = () => {
|
|
1702
|
+
if (!f && n && n.hasOwnProperty("keyEnter")) {
|
|
1703
|
+
let e = n.keyEnter;
|
|
1704
|
+
W(e);
|
|
1663
1705
|
}
|
|
1664
1706
|
}, At = () => {
|
|
1665
|
-
if (!
|
|
1666
|
-
let e =
|
|
1667
|
-
|
|
1707
|
+
if (!f && n && n.hasOwnProperty("onBeforeMount")) {
|
|
1708
|
+
let e = n.onBeforeMount;
|
|
1709
|
+
W(e);
|
|
1668
1710
|
}
|
|
1669
1711
|
}, jt = () => {
|
|
1670
|
-
if (
|
|
1671
|
-
|
|
1712
|
+
if (!f && n && n.hasOwnProperty("onMounted")) {
|
|
1713
|
+
let e = n.onMounted;
|
|
1714
|
+
W(e);
|
|
1715
|
+
}
|
|
1716
|
+
}, Ft = () => {
|
|
1717
|
+
if (S && S.length > 0)
|
|
1718
|
+
for (let e = 0; e < S.length; e++)
|
|
1672
1719
|
try {
|
|
1673
|
-
clearInterval(
|
|
1720
|
+
clearInterval(S[e]);
|
|
1674
1721
|
} catch (s) {
|
|
1675
1722
|
console.error("cancel request error", s);
|
|
1676
1723
|
}
|
|
1677
|
-
},
|
|
1678
|
-
if (
|
|
1679
|
-
if (
|
|
1680
|
-
for (let e = 0; e <
|
|
1724
|
+
}, Bt = () => {
|
|
1725
|
+
if (Ft(), !f) {
|
|
1726
|
+
if (g && g.length > 0)
|
|
1727
|
+
for (let e = 0; e < g.length; e++)
|
|
1681
1728
|
try {
|
|
1682
|
-
|
|
1729
|
+
g[e] && g[e]();
|
|
1683
1730
|
} catch (s) {
|
|
1684
1731
|
console.error("cancel request error", s);
|
|
1685
1732
|
}
|
|
1686
|
-
if (
|
|
1687
|
-
let e =
|
|
1688
|
-
|
|
1733
|
+
if (n && n.hasOwnProperty("onBeforeUnmount")) {
|
|
1734
|
+
let e = n.onBeforeUnmount;
|
|
1735
|
+
W(e);
|
|
1689
1736
|
}
|
|
1690
1737
|
}
|
|
1691
|
-
}, Bt = () => {
|
|
1692
|
-
if (!p && t && t.hasOwnProperty("onUnmounted")) {
|
|
1693
|
-
let e = t.onUnmounted;
|
|
1694
|
-
K(e);
|
|
1695
|
-
}
|
|
1696
1738
|
}, Nt = () => {
|
|
1697
|
-
if (!
|
|
1698
|
-
let e =
|
|
1699
|
-
|
|
1739
|
+
if (!f && n && n.hasOwnProperty("onUnmounted")) {
|
|
1740
|
+
let e = n.onUnmounted;
|
|
1741
|
+
W(e);
|
|
1742
|
+
}
|
|
1743
|
+
}, Ht = () => {
|
|
1744
|
+
if (!f && n && n.hasOwnProperty("timerTrigger")) {
|
|
1745
|
+
let e = n.timerTrigger;
|
|
1746
|
+
W(e);
|
|
1700
1747
|
}
|
|
1701
|
-
},
|
|
1702
|
-
|
|
1748
|
+
}, X = (e, s) => {
|
|
1749
|
+
k.setParam(e, s);
|
|
1703
1750
|
};
|
|
1704
1751
|
return {
|
|
1705
|
-
handleClick:
|
|
1706
|
-
handleDblClick:
|
|
1707
|
-
handleContextMenu:
|
|
1708
|
-
selectItem:
|
|
1709
|
-
changeValue:
|
|
1710
|
-
beforeMount:
|
|
1711
|
-
mounted:
|
|
1712
|
-
beforeUnmount:
|
|
1713
|
-
unmounted:
|
|
1714
|
-
setParam:
|
|
1752
|
+
handleClick: kt,
|
|
1753
|
+
handleDblClick: It,
|
|
1754
|
+
handleContextMenu: Et,
|
|
1755
|
+
selectItem: Tt,
|
|
1756
|
+
changeValue: Rt,
|
|
1757
|
+
beforeMount: At,
|
|
1758
|
+
mounted: jt,
|
|
1759
|
+
beforeUnmount: Bt,
|
|
1760
|
+
unmounted: Nt,
|
|
1761
|
+
setParam: X,
|
|
1715
1762
|
keyEnter: Dt
|
|
1716
1763
|
};
|
|
1717
1764
|
}
|
|
1718
|
-
function
|
|
1765
|
+
function $e(t, o, l, n) {
|
|
1719
1766
|
return {
|
|
1720
|
-
setPropValue: function(
|
|
1721
|
-
|
|
1767
|
+
setPropValue: function(i, c) {
|
|
1768
|
+
t.value[i] = c;
|
|
1722
1769
|
},
|
|
1723
|
-
getPropValue: function(
|
|
1724
|
-
return
|
|
1770
|
+
getPropValue: function(i) {
|
|
1771
|
+
return t.value[i];
|
|
1725
1772
|
},
|
|
1726
|
-
setStyleValue: function(
|
|
1727
|
-
o.value.style[
|
|
1773
|
+
setStyleValue: function(i, c) {
|
|
1774
|
+
o.value.style[i] = c;
|
|
1728
1775
|
},
|
|
1729
|
-
getStyleValue: function(
|
|
1730
|
-
return o.value.style[
|
|
1776
|
+
getStyleValue: function(i) {
|
|
1777
|
+
return o.value.style[i];
|
|
1731
1778
|
},
|
|
1732
|
-
routerPush: function(
|
|
1779
|
+
routerPush: function(i, c) {
|
|
1733
1780
|
l && l.push({
|
|
1734
|
-
name:
|
|
1781
|
+
name: i,
|
|
1735
1782
|
params: c
|
|
1736
1783
|
});
|
|
1737
1784
|
},
|
|
1738
|
-
routerPush2: function(
|
|
1785
|
+
routerPush2: function(i, c) {
|
|
1739
1786
|
l && l.push({
|
|
1740
|
-
path:
|
|
1787
|
+
path: i,
|
|
1741
1788
|
query: c
|
|
1742
1789
|
});
|
|
1743
1790
|
},
|
|
1744
|
-
routerReplace: function(
|
|
1791
|
+
routerReplace: function(i) {
|
|
1745
1792
|
l && l.replace({
|
|
1746
|
-
path:
|
|
1793
|
+
path: i
|
|
1747
1794
|
});
|
|
1748
1795
|
}
|
|
1749
1796
|
};
|
|
1750
1797
|
}
|
|
1751
|
-
const
|
|
1798
|
+
const Nn = /* @__PURE__ */ Object.assign({
|
|
1752
1799
|
name: "Group"
|
|
1753
1800
|
}, {
|
|
1754
1801
|
__name: "Component",
|
|
@@ -1769,214 +1816,214 @@ const jn = /* @__PURE__ */ Object.assign({
|
|
|
1769
1816
|
default: !1
|
|
1770
1817
|
}
|
|
1771
1818
|
},
|
|
1772
|
-
setup(
|
|
1773
|
-
const l =
|
|
1774
|
-
let V = { ...
|
|
1819
|
+
setup(t, { expose: o }) {
|
|
1820
|
+
const l = t, n = me(), f = Xe(n), i = D(null), c = O(() => l.propValue || {}), d = O(() => l.element || {}), a = O(() => c.value.components || []), h = O(() => a.value.map((I) => {
|
|
1821
|
+
let V = { ...I }, H = M(I.groupStyle);
|
|
1775
1822
|
return V.computedStyle = H, V.style && (V.style.width = V.computedStyle.width, V.style.height = V.computedStyle.height), V;
|
|
1776
|
-
})), y = O(() =>
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
}),
|
|
1780
|
-
|
|
1781
|
-
}),
|
|
1782
|
-
|
|
1783
|
-
}),
|
|
1784
|
-
|
|
1823
|
+
})), y = O(() => d.value.events || []), g = We(), w = Je(), _ = $e(c, d, g);
|
|
1824
|
+
Ke(() => {
|
|
1825
|
+
i.value = Ze(y.value, l.designStatus, _), i.value?.beforeMount();
|
|
1826
|
+
}), xe(() => {
|
|
1827
|
+
i.value?.mounted();
|
|
1828
|
+
}), ze(() => {
|
|
1829
|
+
i.value?.beforeUnmount();
|
|
1830
|
+
}), Ue(() => {
|
|
1831
|
+
i.value?.unmounted();
|
|
1785
1832
|
});
|
|
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
|
-
|
|
1833
|
+
const b = (I) => {
|
|
1834
|
+
i.value?.setParam(I);
|
|
1835
|
+
}, C = (I) => {
|
|
1836
|
+
i.value?.handleDblClick(I);
|
|
1837
|
+
}, M = (I) => {
|
|
1838
|
+
if (!I || !d.value?.style) return {};
|
|
1839
|
+
let V = { ...I }, H = d.value.style.width, q = d.value.style.height;
|
|
1840
|
+
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;
|
|
1841
|
+
}, S = de({}), T = (I, V) => {
|
|
1842
|
+
I ? S[`Ve${V}`] = I : delete S[`Ve${V}`];
|
|
1843
|
+
}, E = (I) => S[`Ve${I}`], x = (I, V, H) => {
|
|
1844
|
+
if (v(I) && v(V)) {
|
|
1845
|
+
const q = E(I);
|
|
1846
|
+
q && q[V] && (H ? q[V](H) : q[V]());
|
|
1800
1847
|
}
|
|
1801
1848
|
};
|
|
1802
1849
|
o({
|
|
1803
|
-
callGroupCompMethod:
|
|
1850
|
+
callGroupCompMethod: x
|
|
1804
1851
|
});
|
|
1805
|
-
const
|
|
1806
|
-
return
|
|
1852
|
+
const G = { props: l, dataCache: n, smartData: f, eventHandler: i, propValue: c, element: d, components: a, computedComponents: h, events: y, router: g, route: w, compContext: _, handleClick: b, handleDblClick: C, calcCompStyle: M, componentRefs: S, setComponentRef: T, getComponentRef: E, callGroupCompMethod: x, get useDataCacheStore() {
|
|
1853
|
+
return me;
|
|
1807
1854
|
}, get createSmartAccessor() {
|
|
1808
|
-
return
|
|
1809
|
-
}, ref:
|
|
1810
|
-
return
|
|
1855
|
+
return Xe;
|
|
1856
|
+
}, ref: D, computed: O, onMounted: xe, onBeforeMount: Ke, onBeforeUnmount: ze, onUnmounted: Ue, watch: Ae, reactive: de, get useEventHandler() {
|
|
1857
|
+
return Ze;
|
|
1811
1858
|
}, get useRoute() {
|
|
1812
|
-
return
|
|
1859
|
+
return Je;
|
|
1813
1860
|
}, get useRouter() {
|
|
1814
|
-
return Le;
|
|
1815
|
-
}, get CreateCompContext() {
|
|
1816
1861
|
return We;
|
|
1862
|
+
}, get CreateCompContext() {
|
|
1863
|
+
return $e;
|
|
1817
1864
|
}, get getStyle() {
|
|
1818
|
-
return
|
|
1865
|
+
return dt;
|
|
1819
1866
|
}, get isNotEmpty() {
|
|
1820
|
-
return
|
|
1867
|
+
return v;
|
|
1821
1868
|
} };
|
|
1822
|
-
return Object.defineProperty(
|
|
1869
|
+
return Object.defineProperty(G, "__isScriptSetup", { enumerable: !1, value: !0 }), G;
|
|
1823
1870
|
}
|
|
1824
1871
|
});
|
|
1825
|
-
function
|
|
1826
|
-
return
|
|
1827
|
-
|
|
1828
|
-
(
|
|
1872
|
+
function Hn(t, o, l, n, f, i) {
|
|
1873
|
+
return A(), z("div", { class: "group" }, [
|
|
1874
|
+
oe("div", null, [
|
|
1875
|
+
(A(!0), z(je, null, Fe(n.computedComponents, (c) => (A(), J(we(c.component), {
|
|
1829
1876
|
id: "component" + c.id,
|
|
1830
1877
|
ref_for: !0,
|
|
1831
|
-
ref: (
|
|
1878
|
+
ref: (d) => n.setComponentRef(d, c.id),
|
|
1832
1879
|
key: c.id,
|
|
1833
1880
|
class: "component",
|
|
1834
|
-
style:
|
|
1881
|
+
style: be(n.getStyle(c.computedStyle)),
|
|
1835
1882
|
"prop-value": c.propValue,
|
|
1836
1883
|
element: c
|
|
1837
1884
|
}, null, 8, ["id", "style", "prop-value", "element"]))), 128))
|
|
1838
1885
|
])
|
|
1839
1886
|
]);
|
|
1840
1887
|
}
|
|
1841
|
-
const
|
|
1888
|
+
const Ln = /* @__PURE__ */ Z(Nn, [["render", Hn], ["__scopeId", "data-v-20de9881"], ["__file", "Component.vue"]]), qn = /* @__PURE__ */ Object.assign({
|
|
1842
1889
|
name: "VEDataCache"
|
|
1843
1890
|
}, {
|
|
1844
1891
|
__name: "index",
|
|
1845
|
-
setup(
|
|
1892
|
+
setup(t, { expose: o }) {
|
|
1846
1893
|
o();
|
|
1847
|
-
const l =
|
|
1894
|
+
const l = D(null), n = D(null), f = D([]), i = D(0), c = me(), d = D(!1), a = D({
|
|
1848
1895
|
id: "",
|
|
1849
1896
|
fuzzyQry: !1,
|
|
1850
1897
|
pageNum: 1,
|
|
1851
1898
|
pageSize: 15
|
|
1852
|
-
}),
|
|
1853
|
-
|
|
1899
|
+
}), h = () => {
|
|
1900
|
+
a.value.pageNum = 1, g();
|
|
1854
1901
|
}, y = () => {
|
|
1855
|
-
l.value?.resetFields(),
|
|
1856
|
-
},
|
|
1857
|
-
if (!
|
|
1858
|
-
|
|
1902
|
+
l.value?.resetFields(), h();
|
|
1903
|
+
}, g = () => {
|
|
1904
|
+
if (!v(a.value.id)) {
|
|
1905
|
+
i.value = 0, f.value = [];
|
|
1859
1906
|
return;
|
|
1860
1907
|
}
|
|
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:
|
|
1908
|
+
if (d.value = !0, c.data)
|
|
1909
|
+
if (a.value.fuzzyQry) {
|
|
1910
|
+
let b = Object.keys(c.data), C = [];
|
|
1911
|
+
for (let M = 0; M < b.length; M++)
|
|
1912
|
+
b[M].startsWith(a.value.id) && C.push(b[M]);
|
|
1913
|
+
if (i.value = C.length, i.value > 0) {
|
|
1914
|
+
let M = (a.value.pageNum - 1) * a.value.pageSize, S = M + a.value.pageSize;
|
|
1915
|
+
if (M <= i.value) {
|
|
1916
|
+
let T = [];
|
|
1917
|
+
for (let E = M; E < S; E++)
|
|
1918
|
+
if (E < i.value) {
|
|
1919
|
+
let x = c.data[C[E]], G = ne(x) ? ve(x) : x;
|
|
1920
|
+
T.push({
|
|
1921
|
+
key: C[E],
|
|
1922
|
+
value: G
|
|
1876
1923
|
});
|
|
1877
1924
|
}
|
|
1878
|
-
|
|
1925
|
+
f.value = T;
|
|
1879
1926
|
} else
|
|
1880
|
-
|
|
1927
|
+
f.value = [];
|
|
1881
1928
|
} else
|
|
1882
|
-
|
|
1929
|
+
f.value = [];
|
|
1883
1930
|
} else {
|
|
1884
|
-
let
|
|
1885
|
-
if (Se(
|
|
1886
|
-
|
|
1931
|
+
let b = c.data[a.value.id];
|
|
1932
|
+
if (Se(b))
|
|
1933
|
+
i.value = 0, f.value = [];
|
|
1887
1934
|
else {
|
|
1888
|
-
|
|
1889
|
-
let
|
|
1890
|
-
|
|
1891
|
-
key:
|
|
1892
|
-
value:
|
|
1935
|
+
i.value = 1;
|
|
1936
|
+
let C = ne(b) ? ve(b) : b;
|
|
1937
|
+
f.value = [{
|
|
1938
|
+
key: a.value.id,
|
|
1939
|
+
value: C
|
|
1893
1940
|
}];
|
|
1894
1941
|
}
|
|
1895
1942
|
}
|
|
1896
|
-
|
|
1897
|
-
},
|
|
1898
|
-
|
|
1899
|
-
}, ref:
|
|
1900
|
-
return
|
|
1943
|
+
d.value = !1;
|
|
1944
|
+
}, _ = { queryForm: l, resultTableRef: n, dataList: f, total: i, dataCache: c, loading: d, queryParams: a, handleQuery: h, resetQuery: y, getList: g, handleCopyData: (b) => {
|
|
1945
|
+
b && ke(b.value) && he("success", "复制成功");
|
|
1946
|
+
}, ref: D, get useDataCacheStore() {
|
|
1947
|
+
return me;
|
|
1901
1948
|
}, get copyToClipboard() {
|
|
1902
|
-
return
|
|
1949
|
+
return ke;
|
|
1903
1950
|
}, get isNotEmpty() {
|
|
1904
|
-
return
|
|
1951
|
+
return v;
|
|
1905
1952
|
}, get isNullOrUndefined() {
|
|
1906
1953
|
return Se;
|
|
1907
1954
|
}, get isObject() {
|
|
1908
|
-
return
|
|
1955
|
+
return ne;
|
|
1909
1956
|
}, get toJsonStr() {
|
|
1910
|
-
return
|
|
1957
|
+
return ve;
|
|
1911
1958
|
}, get showMessage() {
|
|
1912
|
-
return
|
|
1959
|
+
return he;
|
|
1913
1960
|
} };
|
|
1914
|
-
return Object.defineProperty(
|
|
1961
|
+
return Object.defineProperty(_, "__isScriptSetup", { enumerable: !1, value: !0 }), _;
|
|
1915
1962
|
}
|
|
1916
1963
|
});
|
|
1917
|
-
function
|
|
1918
|
-
const c =
|
|
1919
|
-
return
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
model:
|
|
1964
|
+
function Kn(t, o, l, n, f, i) {
|
|
1965
|
+
const c = B("el-input"), d = B("el-form-item"), a = B("el-switch"), h = B("el-button"), y = B("el-form"), g = B("el-table-column"), w = B("el-table"), _ = B("pagination"), b = Wt("loading");
|
|
1966
|
+
return A(), z("div", { class: "panel-area" }, [
|
|
1967
|
+
oe("div", { class: "panel-condition" }, [
|
|
1968
|
+
R(y, {
|
|
1969
|
+
model: n.queryParams,
|
|
1923
1970
|
ref: "queryForm",
|
|
1924
1971
|
inline: !0
|
|
1925
1972
|
}, {
|
|
1926
|
-
default:
|
|
1927
|
-
|
|
1973
|
+
default: j(() => [
|
|
1974
|
+
R(d, {
|
|
1928
1975
|
label: "缓存key",
|
|
1929
1976
|
prop: "id"
|
|
1930
1977
|
}, {
|
|
1931
|
-
default:
|
|
1932
|
-
|
|
1933
|
-
modelValue:
|
|
1934
|
-
"onUpdate:modelValue": o[0] || (o[0] = (
|
|
1978
|
+
default: j(() => [
|
|
1979
|
+
R(c, {
|
|
1980
|
+
modelValue: n.queryParams.id,
|
|
1981
|
+
"onUpdate:modelValue": o[0] || (o[0] = (C) => n.queryParams.id = C),
|
|
1935
1982
|
placeholder: "请输入缓存key",
|
|
1936
1983
|
clearable: "",
|
|
1937
1984
|
style: { width: "240px" },
|
|
1938
|
-
onKeyup: Jt(
|
|
1985
|
+
onKeyup: Jt(n.handleQuery, ["enter", "native"])
|
|
1939
1986
|
}, null, 8, ["modelValue"])
|
|
1940
1987
|
]),
|
|
1941
1988
|
_: 1
|
|
1942
1989
|
}),
|
|
1943
|
-
|
|
1944
|
-
|
|
1990
|
+
F(),
|
|
1991
|
+
R(d, {
|
|
1945
1992
|
label: "查询模式",
|
|
1946
1993
|
prop: "name"
|
|
1947
1994
|
}, {
|
|
1948
|
-
default:
|
|
1949
|
-
|
|
1950
|
-
modelValue:
|
|
1951
|
-
"onUpdate:modelValue": o[1] || (o[1] = (
|
|
1995
|
+
default: j(() => [
|
|
1996
|
+
R(a, {
|
|
1997
|
+
modelValue: n.queryParams.fuzzyQry,
|
|
1998
|
+
"onUpdate:modelValue": o[1] || (o[1] = (C) => n.queryParams.fuzzyQry = C),
|
|
1952
1999
|
"active-text": "模糊",
|
|
1953
2000
|
"inactive-text": "精确"
|
|
1954
2001
|
}, null, 8, ["modelValue"])
|
|
1955
2002
|
]),
|
|
1956
2003
|
_: 1
|
|
1957
2004
|
}),
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
default:
|
|
1961
|
-
|
|
2005
|
+
F(),
|
|
2006
|
+
R(d, null, {
|
|
2007
|
+
default: j(() => [
|
|
2008
|
+
R(h, {
|
|
1962
2009
|
type: "primary",
|
|
1963
2010
|
icon: "search",
|
|
1964
2011
|
size: "small",
|
|
1965
|
-
onClick:
|
|
2012
|
+
onClick: n.handleQuery
|
|
1966
2013
|
}, {
|
|
1967
|
-
default:
|
|
1968
|
-
|
|
2014
|
+
default: j(() => [
|
|
2015
|
+
F("搜索")
|
|
1969
2016
|
]),
|
|
1970
2017
|
_: 1
|
|
1971
2018
|
}),
|
|
1972
|
-
|
|
1973
|
-
|
|
2019
|
+
F(),
|
|
2020
|
+
R(h, {
|
|
1974
2021
|
icon: "refresh",
|
|
1975
2022
|
size: "small",
|
|
1976
|
-
onClick:
|
|
2023
|
+
onClick: n.resetQuery
|
|
1977
2024
|
}, {
|
|
1978
|
-
default:
|
|
1979
|
-
|
|
2025
|
+
default: j(() => [
|
|
2026
|
+
F("重置")
|
|
1980
2027
|
]),
|
|
1981
2028
|
_: 1
|
|
1982
2029
|
})
|
|
@@ -1987,55 +2034,55 @@ function Hn(n, o, l, t, p, a) {
|
|
|
1987
2034
|
_: 1
|
|
1988
2035
|
}, 8, ["model"])
|
|
1989
2036
|
]),
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
2037
|
+
F(),
|
|
2038
|
+
oe("div", { class: "panel-table" }, [
|
|
2039
|
+
F(`\r
|
|
1993
2040
|
\r
|
|
1994
2041
|
`),
|
|
1995
|
-
|
|
2042
|
+
Oe((A(), J(w, {
|
|
1996
2043
|
ref: "resultTableRef",
|
|
1997
|
-
data:
|
|
2044
|
+
data: n.dataList,
|
|
1998
2045
|
stripe: "",
|
|
1999
2046
|
border: "",
|
|
2000
2047
|
"highlight-current-row": ""
|
|
2001
2048
|
}, {
|
|
2002
|
-
default:
|
|
2003
|
-
|
|
2049
|
+
default: j(() => [
|
|
2050
|
+
R(g, {
|
|
2004
2051
|
type: "index",
|
|
2005
2052
|
align: "center",
|
|
2006
2053
|
width: "60"
|
|
2007
2054
|
}),
|
|
2008
|
-
|
|
2009
|
-
|
|
2055
|
+
F(),
|
|
2056
|
+
R(g, {
|
|
2010
2057
|
label: "缓存Key",
|
|
2011
2058
|
align: "center",
|
|
2012
2059
|
property: "key",
|
|
2013
2060
|
"show-overflow-tooltip": !0,
|
|
2014
2061
|
"min-width": "200"
|
|
2015
2062
|
}),
|
|
2016
|
-
|
|
2017
|
-
|
|
2063
|
+
F(),
|
|
2064
|
+
R(g, {
|
|
2018
2065
|
label: "缓存值",
|
|
2019
2066
|
align: "left",
|
|
2020
2067
|
property: "value",
|
|
2021
2068
|
"show-overflow-tooltip": !0,
|
|
2022
2069
|
"min-width": "400"
|
|
2023
2070
|
}),
|
|
2024
|
-
|
|
2025
|
-
|
|
2071
|
+
F(),
|
|
2072
|
+
R(g, {
|
|
2026
2073
|
label: "操作",
|
|
2027
2074
|
align: "center",
|
|
2028
2075
|
"show-overflow-tooltip": !0,
|
|
2029
2076
|
"min-width": "80"
|
|
2030
2077
|
}, {
|
|
2031
|
-
default:
|
|
2032
|
-
|
|
2078
|
+
default: j((C) => [
|
|
2079
|
+
R(h, {
|
|
2033
2080
|
link: "",
|
|
2034
2081
|
icon: "document",
|
|
2035
|
-
onClick: (
|
|
2082
|
+
onClick: (M) => n.handleCopyData(C.row)
|
|
2036
2083
|
}, {
|
|
2037
|
-
default:
|
|
2038
|
-
|
|
2084
|
+
default: j(() => [
|
|
2085
|
+
F(`复制数据\r
|
|
2039
2086
|
`)
|
|
2040
2087
|
]),
|
|
2041
2088
|
_: 1
|
|
@@ -2046,46 +2093,46 @@ function Hn(n, o, l, t, p, a) {
|
|
|
2046
2093
|
]),
|
|
2047
2094
|
_: 1
|
|
2048
2095
|
}, 8, ["data"])), [
|
|
2049
|
-
[
|
|
2096
|
+
[b, n.loading]
|
|
2050
2097
|
]),
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
total:
|
|
2054
|
-
page:
|
|
2055
|
-
"onUpdate:page": o[2] || (o[2] = (
|
|
2056
|
-
limit:
|
|
2057
|
-
"onUpdate:limit": o[3] || (o[3] = (
|
|
2098
|
+
F(),
|
|
2099
|
+
Oe(R(_, {
|
|
2100
|
+
total: n.total,
|
|
2101
|
+
page: n.queryParams.pageNum,
|
|
2102
|
+
"onUpdate:page": o[2] || (o[2] = (C) => n.queryParams.pageNum = C),
|
|
2103
|
+
limit: n.queryParams.pageSize,
|
|
2104
|
+
"onUpdate:limit": o[3] || (o[3] = (C) => n.queryParams.pageSize = C),
|
|
2058
2105
|
pageSizes: [15, 20, 30, 50],
|
|
2059
|
-
onPagination:
|
|
2106
|
+
onPagination: n.getList
|
|
2060
2107
|
}, null, 8, ["total", "page", "limit"]), [
|
|
2061
|
-
[
|
|
2108
|
+
[et, n.total > 0]
|
|
2062
2109
|
])
|
|
2063
2110
|
])
|
|
2064
2111
|
]);
|
|
2065
2112
|
}
|
|
2066
|
-
const
|
|
2067
|
-
|
|
2068
|
-
bn,
|
|
2113
|
+
const zn = /* @__PURE__ */ Z(qn, [["render", Kn], ["__scopeId", "data-v-55cea49e"], ["__file", "index.vue"]]), Un = [
|
|
2114
|
+
wn,
|
|
2069
2115
|
Mn,
|
|
2070
|
-
Ln,
|
|
2071
2116
|
En,
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2117
|
+
zn,
|
|
2118
|
+
Dn,
|
|
2119
|
+
pt,
|
|
2120
|
+
Fn,
|
|
2121
|
+
Ln
|
|
2122
|
+
], De = (t, o) => {
|
|
2123
|
+
De.installed || (De.installed = !0, t.provide("hflvloader-api", o), Un.forEach((l) => {
|
|
2124
|
+
t.component(l.name, l);
|
|
2078
2125
|
}));
|
|
2079
|
-
},
|
|
2080
|
-
install:
|
|
2126
|
+
}, no = {
|
|
2127
|
+
install: De
|
|
2081
2128
|
};
|
|
2082
2129
|
export {
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2130
|
+
$n as CommonUtils,
|
|
2131
|
+
$e as CreateCompContext,
|
|
2132
|
+
to as MessageUtils,
|
|
2133
|
+
Xe as createSmartAccessor,
|
|
2134
|
+
no as default,
|
|
2135
|
+
eo as reCalcCanvasSize,
|
|
2136
|
+
me as useDataCacheStore,
|
|
2137
|
+
Ze as useEventHandler
|
|
2091
2138
|
};
|