hflvloader 0.0.4 → 0.0.6

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