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