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