hflvloader 0.0.7 → 0.0.8

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