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