hflvloader 0.0.12 → 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 +1190 -1143
- package/package.json +1 -1
package/dist/hflvloader.es.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
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
|
|
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
8
|
import { useRouter as Qe, useRoute as Ye } from "vue-router";
|
|
9
9
|
class B {
|
|
10
10
|
static SPECIAL_CHARS = ["0", "#", ".", "-", ",", "E", "%", "¤", "‰", "'"];
|
|
@@ -21,8 +21,8 @@ class B {
|
|
|
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;
|
|
@@ -50,12 +50,12 @@ class B {
|
|
|
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("‰"),
|
|
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,11 +72,11 @@ class B {
|
|
|
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
|
|
79
|
-
return u && (
|
|
75
|
+
let n = o * r.multiplier;
|
|
76
|
+
const u = n < 0;
|
|
77
|
+
n = Math.abs(n);
|
|
78
|
+
let s = this._formatNumber(n, r);
|
|
79
|
+
return u && (s = "-" + s), r.isPercent ? s += "%" : r.multiplier === 1e3 && (s += "‰"), s;
|
|
80
80
|
}
|
|
81
81
|
/**
|
|
82
82
|
* 格式化核心数字部分
|
|
@@ -84,8 +84,8 @@ class B {
|
|
|
84
84
|
*/
|
|
85
85
|
_formatNumber(o, r) {
|
|
86
86
|
const u = o.toFixed(r.maxFractionDigits).split(".");
|
|
87
|
-
let
|
|
88
|
-
return c = this._formatDecimal(c, r),
|
|
87
|
+
let s = u[0], c = u[1] || "";
|
|
88
|
+
return c = this._formatDecimal(c, r), s = this._formatInteger(s, r), c ? s + "." + c : r.minFractionDigits > 0 ? s + "." + "0".repeat(r.minFractionDigits) : s;
|
|
89
89
|
}
|
|
90
90
|
/**
|
|
91
91
|
* 格式化整数部分
|
|
@@ -112,9 +112,9 @@ class B {
|
|
|
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 @@ class B {
|
|
|
123
123
|
*/
|
|
124
124
|
formatSimple(o, r = {}) {
|
|
125
125
|
const {
|
|
126
|
-
decimals:
|
|
126
|
+
decimals: n = 2,
|
|
127
127
|
useGrouping: u = !0,
|
|
128
|
-
isPercent:
|
|
128
|
+
isPercent: s = !1
|
|
129
129
|
} = r;
|
|
130
130
|
let c = o;
|
|
131
|
-
|
|
132
|
-
const
|
|
133
|
-
c = Math.round(c *
|
|
134
|
-
let [
|
|
135
|
-
const
|
|
136
|
-
|
|
137
|
-
let
|
|
138
|
-
return
|
|
131
|
+
s && (c *= 100);
|
|
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 @@ class B {
|
|
|
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 @@ class B {
|
|
|
155
155
|
* @returns {string} 格式化结果
|
|
156
156
|
*/
|
|
157
157
|
static formatInteger(o, r = !0) {
|
|
158
|
-
const
|
|
159
|
-
return B.format(o,
|
|
158
|
+
const n = r ? "#,##0" : "0";
|
|
159
|
+
return B.format(o, n);
|
|
160
160
|
}
|
|
161
161
|
/**
|
|
162
162
|
* 格式化小数
|
|
@@ -166,9 +166,9 @@ class B {
|
|
|
166
166
|
* @param {boolean} useGrouping - 是否使用千位分隔符
|
|
167
167
|
* @returns {string} 格式化结果
|
|
168
168
|
*/
|
|
169
|
-
static formatDecimal(o, r = 0,
|
|
170
|
-
const
|
|
171
|
-
return B.format(o, `${
|
|
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 @@ class B {
|
|
|
177
177
|
* @param {boolean} useGrouping - 是否使用千位分隔符
|
|
178
178
|
* @returns {string} 格式化结果
|
|
179
179
|
*/
|
|
180
|
-
static formatPercent(o, r = 2,
|
|
181
|
-
const u =
|
|
182
|
-
return B.format(o, `${u}.${
|
|
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 @@ class B {
|
|
|
189
189
|
* @param {string} currencySymbol - 货币符号,默认¥
|
|
190
190
|
* @returns {string} 格式化结果
|
|
191
191
|
*/
|
|
192
|
-
static formatCurrency(o, r = 2,
|
|
193
|
-
const
|
|
194
|
-
return B.format(o, `${u}${
|
|
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
|
* 解析格式化模式并验证
|
|
@@ -231,9 +231,9 @@ class B {
|
|
|
231
231
|
* @param {number} maxDecimals - 最大小数位数
|
|
232
232
|
* @returns {NumberFormat} 格式化器实例
|
|
233
233
|
*/
|
|
234
|
-
static getNumberInstance(o = !0, r = 0,
|
|
235
|
-
const u = new B(),
|
|
236
|
-
return u.applyPattern(`${
|
|
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
|
+
return u.applyPattern(`${s}.${c}`), u;
|
|
237
237
|
}
|
|
238
238
|
/**
|
|
239
239
|
* 创建货币格式化器
|
|
@@ -242,9 +242,9 @@ class B {
|
|
|
242
242
|
* @param {boolean} useGrouping - 是否使用千位分隔符
|
|
243
243
|
* @returns {NumberFormat} 格式化器实例
|
|
244
244
|
*/
|
|
245
|
-
static getCurrencyInstance(o = "¥", r = 2,
|
|
246
|
-
const u = new B(),
|
|
247
|
-
return u.applyPattern(`${o}${
|
|
245
|
+
static getCurrencyInstance(o = "¥", r = 2, n = !0) {
|
|
246
|
+
const u = new B(), s = n ? "#,##0" : "0", c = "0".repeat(r);
|
|
247
|
+
return u.applyPattern(`${o}${s}.${c}`), u;
|
|
248
248
|
}
|
|
249
249
|
/**
|
|
250
250
|
* 创建百分比格式化器
|
|
@@ -253,8 +253,8 @@ class B {
|
|
|
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
|
* 创建科学计数法格式化器
|
|
@@ -283,10 +283,10 @@ class B {
|
|
|
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,264 +301,264 @@ class B {
|
|
|
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
307
|
}
|
|
308
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
|
|
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 at(
|
|
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 ct(
|
|
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 ut(
|
|
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 ft(
|
|
396
|
-
if (
|
|
397
|
-
if (it(
|
|
398
|
-
return
|
|
399
|
-
if (
|
|
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
|
|
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;
|
|
454
454
|
}
|
|
455
|
-
function
|
|
455
|
+
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
|
|
510
|
-
return (Math.floor(
|
|
509
|
+
function bn(t) {
|
|
510
|
+
return (Math.floor(t) & 1) === 0;
|
|
511
511
|
}
|
|
512
|
-
function
|
|
513
|
-
return
|
|
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:
|
|
517
|
+
consolePrint: $,
|
|
518
|
+
copyToClipboard: Ae,
|
|
519
|
+
deepCopy: ye,
|
|
520
520
|
deepMerge: ct,
|
|
521
|
-
doMD5:
|
|
522
|
-
execCustomFunction:
|
|
521
|
+
doMD5: pt,
|
|
522
|
+
execCustomFunction: Cn,
|
|
523
523
|
formatDate: ut,
|
|
524
|
-
formatNum:
|
|
525
|
-
generateSecureUUID:
|
|
524
|
+
formatNum: xn,
|
|
525
|
+
generateSecureUUID: dt,
|
|
526
526
|
getDate: ft,
|
|
527
527
|
getJsonObject: at,
|
|
528
|
-
getValByDefault:
|
|
529
|
-
getValueByPath:
|
|
530
|
-
getWeek:
|
|
531
|
-
hasOwnPathInObject:
|
|
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:
|
|
536
|
-
isEven:
|
|
535
|
+
isEmptyObject: hn,
|
|
536
|
+
isEven: bn,
|
|
537
537
|
isFunction: U,
|
|
538
|
-
isNotEmpty:
|
|
539
|
-
isNullOrUndefined:
|
|
540
|
-
isNumber:
|
|
541
|
-
isObject:
|
|
542
|
-
isString:
|
|
543
|
-
isValid:
|
|
544
|
-
keepDecimalCalc:
|
|
545
|
-
pasteFromClipboard:
|
|
546
|
-
toJsonStr:
|
|
547
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
548
|
-
function Xe(
|
|
538
|
+
isNotEmpty: g,
|
|
539
|
+
isNullOrUndefined: _e,
|
|
540
|
+
isNumber: se,
|
|
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
|
|
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 bn(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 =
|
|
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 (
|
|
609
|
+
if (t.htSet == "calc")
|
|
610
610
|
b = Math.floor(b * r);
|
|
611
|
-
else if (
|
|
612
|
-
let G =
|
|
611
|
+
else if (t.htSet == "overspread") {
|
|
612
|
+
let G = t.htReserve < 0 ? 0 : t.htReserve;
|
|
613
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
|
|
662
|
-
let u = {},
|
|
661
|
+
function ho(t, o, r, n) {
|
|
662
|
+
let u = {}, s = [];
|
|
663
663
|
if (!(r && r.screenAdapter && r.screenAdapter != "no-adapter"))
|
|
664
|
-
u = r,
|
|
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
|
-
componentData:
|
|
685
|
+
componentData: s
|
|
686
686
|
};
|
|
687
687
|
}
|
|
688
|
-
async function Ze(
|
|
689
|
-
const r = (
|
|
690
|
-
const { animationTime:
|
|
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 et(
|
|
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
|
-
}),
|
|
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
|
-
return
|
|
747
|
+
return ht;
|
|
748
748
|
}, get runAnimation() {
|
|
749
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"])) : (A(),
|
|
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
|
-
[ot,
|
|
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 Vn = /* @__PURE__ */ Z(Mn, [["render", On], ["__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
|
|
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
|
|
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
834
|
return Xe;
|
|
835
|
-
}, ComponentWrapper:
|
|
836
|
-
return
|
|
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
|
|
845
|
+
function En(t, o, r, n, u, s) {
|
|
846
846
|
return A(), W("div", { class: "canvas-container" }, [
|
|
847
|
-
|
|
847
|
+
re("div", {
|
|
848
848
|
class: "canvas",
|
|
849
|
-
style:
|
|
849
|
+
style: Oe(n.calcCanvasStyle)
|
|
850
850
|
}, [
|
|
851
|
-
(A(!0), W(
|
|
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 Dn = /* @__PURE__ */ Z(In, [["render", kn], ["__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
|
|
883
|
+
function Fn(t, o, r, n, u, s) {
|
|
884
884
|
return A(), W("svg", {
|
|
885
|
-
class: rt(
|
|
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 ht = /* @__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 A(),
|
|
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
925
|
default: F(() => [
|
|
926
|
-
|
|
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"])) : (A(),
|
|
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
|
|
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,20 +986,20 @@ const Ae = () => {
|
|
|
986
986
|
}
|
|
987
987
|
},
|
|
988
988
|
emits: ["confirm", "cancel"],
|
|
989
|
-
setup(
|
|
990
|
-
const
|
|
991
|
-
let b =
|
|
992
|
-
return
|
|
993
|
-
}),
|
|
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
994
|
let b = {};
|
|
995
|
-
return b.style = {}, b.style.width =
|
|
996
|
-
}),
|
|
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
997
|
let b = {};
|
|
998
|
-
return b.modal =
|
|
999
|
-
}),
|
|
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
1000
|
let b = {};
|
|
1001
|
-
if (
|
|
1002
|
-
let N =
|
|
1001
|
+
if (s.value.customPosition) {
|
|
1002
|
+
let N = s.value.absLeft ?? 100, D = s.value.absTop ?? 100;
|
|
1003
1003
|
Object.assign(b, {
|
|
1004
1004
|
position: "fixed",
|
|
1005
1005
|
left: `${N}px`,
|
|
@@ -1008,66 +1008,66 @@ const Ae = () => {
|
|
|
1008
1008
|
margin: "0 !important"
|
|
1009
1009
|
});
|
|
1010
1010
|
}
|
|
1011
|
-
return
|
|
1011
|
+
return s.value.noBackgroundColor && Object.assign(b, {
|
|
1012
1012
|
backgroundColor: "transparent"
|
|
1013
1013
|
}), b;
|
|
1014
|
-
}),
|
|
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 =
|
|
1040
|
+
function Hn(t, o, r, n, u, s) {
|
|
1041
|
+
const c = K("Subpage"), d = K("el-button"), l = K("el-dialog");
|
|
1042
1042
|
return A(), W("div", { class: "full-screen-dialog-wrapper" }, [
|
|
1043
|
-
|
|
1044
|
-
modelValue:
|
|
1045
|
-
"onUpdate:modelValue": o[0] || (o[0] = (
|
|
1046
|
-
width:
|
|
1047
|
-
fullscreen:
|
|
1048
|
-
},
|
|
1049
|
-
style:
|
|
1050
|
-
onClose:
|
|
1051
|
-
}),
|
|
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
1052
|
header: F(() => [
|
|
1053
|
-
|
|
1053
|
+
n.showTitle ? (A(), W("span", { key: 0 }, on(n.title), 1)) : We("", !0)
|
|
1054
1054
|
]),
|
|
1055
1055
|
default: F(() => [
|
|
1056
|
-
|
|
1056
|
+
n.isNotEmpty(n.config.pageId) ? (A(), Q(c, {
|
|
1057
1057
|
key: 0,
|
|
1058
|
-
"prop-value":
|
|
1059
|
-
element:
|
|
1058
|
+
"prop-value": n.element.prop,
|
|
1059
|
+
element: n.element
|
|
1060
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
1066
|
fn: F(() => [
|
|
1067
|
-
|
|
1068
|
-
|
|
1067
|
+
re("div", { class: "dialog-footer" }, [
|
|
1068
|
+
E(d, {
|
|
1069
1069
|
type: "primary",
|
|
1070
|
-
onClick:
|
|
1070
|
+
onClick: n.confirmInner
|
|
1071
1071
|
}, {
|
|
1072
1072
|
default: F(() => [
|
|
1073
1073
|
j("确定")
|
|
@@ -1075,7 +1075,7 @@ function Bn(n, o, r, t, u, a) {
|
|
|
1075
1075
|
_: 1
|
|
1076
1076
|
}),
|
|
1077
1077
|
j(),
|
|
1078
|
-
|
|
1078
|
+
E(d, { onClick: n.cancel }, {
|
|
1079
1079
|
default: F(() => [
|
|
1080
1080
|
j("关 闭")
|
|
1081
1081
|
]),
|
|
@@ -1088,28 +1088,28 @@ function Bn(n, o, r, t, u, a) {
|
|
|
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 A(!0), W(
|
|
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,52 +1128,52 @@ const qn = /* @__PURE__ */ Z(Hn, [["render", Ln], ["__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 A(),
|
|
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
1169
|
default: F(() => [
|
|
1170
|
-
|
|
1170
|
+
rn(t.$slots, "dialog-content")
|
|
1171
1171
|
]),
|
|
1172
1172
|
footer: F(() => [
|
|
1173
|
-
|
|
1174
|
-
|
|
1173
|
+
re("div", { class: "dialog-footer" }, [
|
|
1174
|
+
E(c, {
|
|
1175
1175
|
type: "primary",
|
|
1176
|
-
onClick:
|
|
1176
|
+
onClick: n.confirmInner
|
|
1177
1177
|
}, {
|
|
1178
1178
|
default: F(() => [
|
|
1179
1179
|
j("确定")
|
|
@@ -1181,7 +1181,7 @@ function zn(n, o, r, t, u, a) {
|
|
|
1181
1181
|
_: 1
|
|
1182
1182
|
}),
|
|
1183
1183
|
j(),
|
|
1184
|
-
|
|
1184
|
+
E(c, { onClick: n.cancel }, {
|
|
1185
1185
|
default: F(() => [
|
|
1186
1186
|
j("关 闭")
|
|
1187
1187
|
]),
|
|
@@ -1192,7 +1192,7 @@ function zn(n, o, r, t, u, a) {
|
|
|
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,38 +1211,38 @@ const Un = /* @__PURE__ */ Z(Kn, [["render", zn], ["__file", "index.vue"]]), Wn
|
|
|
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:
|
|
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 =
|
|
1229
|
+
function Qn(t, o, r, n, u, s) {
|
|
1230
|
+
const c = K("el-text"), d = K("el-input"), l = K("CommonDialog");
|
|
1231
1231
|
return A(), W("div", {
|
|
1232
|
-
class: rt(["custom-omit-input-wrapper",
|
|
1232
|
+
class: rt(["custom-omit-input-wrapper", t.$attrs.class])
|
|
1233
1233
|
}, [
|
|
1234
|
-
|
|
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
1242
|
append: F(() => [
|
|
1243
|
-
|
|
1243
|
+
E(c, {
|
|
1244
1244
|
style: { width: "32px", "text-align": "center" },
|
|
1245
|
-
onClick:
|
|
1245
|
+
onClick: n.openInputDialog
|
|
1246
1246
|
}, {
|
|
1247
1247
|
default: F(() => [
|
|
1248
1248
|
j("...")
|
|
@@ -1253,17 +1253,17 @@ function Jn(n, o, r, t, u, a) {
|
|
|
1253
1253
|
_: 1
|
|
1254
1254
|
}, 8, ["modelValue", "placeholder"]),
|
|
1255
1255
|
j(),
|
|
1256
|
-
|
|
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
1262
|
"dialog-content": F(() => [
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
modelValue:
|
|
1266
|
-
"onUpdate:modelValue": o[1] || (o[1] = (
|
|
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 Jn(n, o, r, t, u, a) {
|
|
|
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,332 +1290,334 @@ const Gn = /* @__PURE__ */ Z(Wn, [["render", Jn], ["__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 yt(
|
|
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 _t(
|
|
1351
|
-
let
|
|
1350
|
+
async function _t(t, o, r = {}) {
|
|
1351
|
+
let n = [], u = {};
|
|
1352
1352
|
try {
|
|
1353
|
-
(await Promise.allSettled([lt.confirm(o,
|
|
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
|
-
} catch (
|
|
1362
|
-
console.error("showMessageBoxConfirmAsync 异常:",
|
|
1361
|
+
} catch (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 vt(
|
|
1367
|
-
let
|
|
1366
|
+
async function vt(t, o, r = {}) {
|
|
1367
|
+
let n = [], u = {};
|
|
1368
1368
|
try {
|
|
1369
|
-
(await Promise.allSettled([lt.prompt(o,
|
|
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
|
-
} catch (
|
|
1378
|
-
console.error("showMessageBoxPromptAsync 异常:",
|
|
1377
|
+
} catch (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
1384
|
showLoading: yt,
|
|
1385
|
-
showMessage:
|
|
1385
|
+
showMessage: we,
|
|
1386
1386
|
showMessageBoxConfirmAsync: _t,
|
|
1387
1387
|
showMessageBoxPromptAsync: vt,
|
|
1388
|
-
showNotification:
|
|
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
|
-
isNull: (
|
|
1402
|
-
isNotNull: (
|
|
1403
|
-
},
|
|
1404
|
-
function tt(
|
|
1405
|
-
const
|
|
1406
|
-
let
|
|
1407
|
-
const
|
|
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();
|
|
1406
|
+
let w = null;
|
|
1407
|
+
const x = 250, P = ge("VE-CompHideAndShow"), S = [], R = ge("VE-CompWrapMethod"), k = je(l);
|
|
1408
1408
|
let b = null;
|
|
1409
|
-
const N = /* @__PURE__ */ new Map()
|
|
1409
|
+
const N = /* @__PURE__ */ new Map();
|
|
1410
|
+
let D = !1;
|
|
1411
|
+
const O = () => {
|
|
1410
1412
|
b && (b(), b = null);
|
|
1411
|
-
}, V = (e) => {
|
|
1412
|
-
if (g) {
|
|
1413
|
-
if (st(g))
|
|
1414
|
-
return g.value[e];
|
|
1415
|
-
if (re(g))
|
|
1416
|
-
return g[e];
|
|
1417
|
-
}
|
|
1418
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) => {
|
|
1419
1421
|
if (e && e.path) {
|
|
1420
|
-
let
|
|
1421
|
-
|
|
1422
|
-
if (
|
|
1423
|
-
let
|
|
1424
|
-
|
|
1422
|
+
let a = e.params || [], i = {};
|
|
1423
|
+
a.forEach((f, m) => {
|
|
1424
|
+
if (ie(f)) {
|
|
1425
|
+
let h = Y(f);
|
|
1426
|
+
i[f.tarKey] = h;
|
|
1425
1427
|
}
|
|
1426
|
-
}), e.namedRouter ? U(
|
|
1428
|
+
}), e.namedRouter ? U(s.routerPush) && s.routerPush(e.path, i) : U(s.routerPush2) && s.routerPush2(e.path, i);
|
|
1427
1429
|
}
|
|
1428
|
-
},
|
|
1429
|
-
let
|
|
1430
|
-
return e.forEach((
|
|
1431
|
-
if (
|
|
1432
|
-
let f =
|
|
1433
|
-
|
|
1434
|
-
|
|
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,
|
|
1435
1437
|
f
|
|
1436
1438
|
]);
|
|
1437
1439
|
}
|
|
1438
|
-
}),
|
|
1439
|
-
},
|
|
1440
|
-
if (e.customFunc &&
|
|
1441
|
-
const
|
|
1442
|
-
helper: { ...
|
|
1440
|
+
}), a;
|
|
1441
|
+
}, le = (e, a) => {
|
|
1442
|
+
if (e.customFunc && g(e.successFunc)) {
|
|
1443
|
+
const i = {
|
|
1444
|
+
helper: { ...s, ...I }
|
|
1443
1445
|
};
|
|
1444
1446
|
try {
|
|
1445
1447
|
let f = e.successFunc.toString().trim();
|
|
1446
|
-
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);
|
|
1447
1449
|
} catch (f) {
|
|
1448
1450
|
console.error("[_dataRequestHandler4CustomSuccessFunc]处理自定义成功函数时出错:", f);
|
|
1449
1451
|
}
|
|
1450
1452
|
}
|
|
1451
|
-
},
|
|
1452
|
-
if (e.customFunc &&
|
|
1453
|
+
}, ae = (e, a, i) => {
|
|
1454
|
+
if (e.customFunc && g(e.errorFunc)) {
|
|
1453
1455
|
const f = {
|
|
1454
|
-
helper: { ...
|
|
1456
|
+
helper: { ...s, ...I }
|
|
1455
1457
|
};
|
|
1456
1458
|
try {
|
|
1457
|
-
let
|
|
1458
|
-
|
|
1459
|
-
} catch (
|
|
1460
|
-
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);
|
|
1461
1463
|
}
|
|
1462
1464
|
}
|
|
1463
|
-
}, ce = (e,
|
|
1464
|
-
if (q(
|
|
1465
|
-
let
|
|
1466
|
-
for (let
|
|
1467
|
-
|
|
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));
|
|
1468
1470
|
}
|
|
1469
|
-
},
|
|
1470
|
-
let
|
|
1471
|
+
}, G = async (e) => {
|
|
1472
|
+
let a = [], i = {};
|
|
1471
1473
|
try {
|
|
1472
|
-
(await Promise.allSettled([
|
|
1473
|
-
if (
|
|
1474
|
-
|
|
1474
|
+
(await Promise.allSettled([d.rawRequest(e)])).forEach((m, h) => {
|
|
1475
|
+
if (m.status === "fulfilled")
|
|
1476
|
+
h === 0 && (i = m.value);
|
|
1475
1477
|
else {
|
|
1476
|
-
const M =
|
|
1477
|
-
|
|
1478
|
+
const M = m.reason;
|
|
1479
|
+
a.push(M);
|
|
1478
1480
|
}
|
|
1479
1481
|
});
|
|
1480
1482
|
} catch (f) {
|
|
1481
|
-
console.error("_dataRequestHandler4Async 异常:", f),
|
|
1483
|
+
console.error("_dataRequestHandler4Async 异常:", f), a.push(f);
|
|
1482
1484
|
}
|
|
1483
|
-
return { errors:
|
|
1484
|
-
},
|
|
1485
|
+
return { errors: a, resultInfo: i };
|
|
1486
|
+
}, ke = (e) => {
|
|
1485
1487
|
if (e.method == "GET" || e.method == "get") {
|
|
1486
|
-
let
|
|
1487
|
-
if (/\{#.*?#\}/g.test(
|
|
1488
|
-
let f = e.data || [],
|
|
1489
|
-
if (
|
|
1490
|
-
|
|
1491
|
-
for (let
|
|
1492
|
-
if (ne == f[
|
|
1493
|
-
|
|
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];
|
|
1494
1496
|
break;
|
|
1495
1497
|
}
|
|
1496
|
-
return
|
|
1497
|
-
}),
|
|
1498
|
-
let
|
|
1499
|
-
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 || [];
|
|
1500
1502
|
}
|
|
1501
1503
|
}
|
|
1502
1504
|
}
|
|
1503
|
-
},
|
|
1504
|
-
if (e &&
|
|
1505
|
-
let
|
|
1506
|
-
|
|
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);
|
|
1507
1509
|
let f = null;
|
|
1508
1510
|
if (e.loading) {
|
|
1509
|
-
let
|
|
1510
|
-
...
|
|
1511
|
-
lock:
|
|
1512
|
-
background:
|
|
1513
|
-
text:
|
|
1511
|
+
let m = e.load || {}, h = {
|
|
1512
|
+
...m.extParam,
|
|
1513
|
+
lock: m.lock,
|
|
1514
|
+
background: m.background,
|
|
1515
|
+
text: m.text
|
|
1514
1516
|
};
|
|
1515
|
-
f = yt(
|
|
1517
|
+
f = yt(h);
|
|
1516
1518
|
}
|
|
1517
1519
|
if (e.sync) {
|
|
1518
|
-
|
|
1519
|
-
const { errors:
|
|
1520
|
-
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) {
|
|
1521
1523
|
if (e.enabledRespErrTip) {
|
|
1522
1524
|
let M = e.respErrTip || {};
|
|
1523
1525
|
te(M);
|
|
1524
1526
|
}
|
|
1525
|
-
|
|
1526
|
-
} else if (
|
|
1527
|
-
if (
|
|
1528
|
-
if (
|
|
1527
|
+
ae(e, h, m[0]);
|
|
1528
|
+
} else if (h)
|
|
1529
|
+
if (i.externalRequest)
|
|
1530
|
+
if (h && h.status == 200) {
|
|
1529
1531
|
if (e.enabledRespTip) {
|
|
1530
1532
|
let M = e.respTip || {};
|
|
1531
1533
|
te(M);
|
|
1532
1534
|
}
|
|
1533
|
-
ce(
|
|
1535
|
+
ce(h, a), le(e, h);
|
|
1534
1536
|
} else {
|
|
1535
1537
|
if (e.enabledRespErrTip) {
|
|
1536
1538
|
let M = e.respErrTip || {};
|
|
1537
1539
|
te(M);
|
|
1538
1540
|
}
|
|
1539
|
-
|
|
1541
|
+
ae(e, h, null);
|
|
1540
1542
|
}
|
|
1541
1543
|
else {
|
|
1542
|
-
if (
|
|
1544
|
+
if (h) {
|
|
1543
1545
|
if (e.enabledRespTip) {
|
|
1544
1546
|
let M = e.respTip || {};
|
|
1545
1547
|
te(M);
|
|
1546
1548
|
}
|
|
1547
|
-
ce(
|
|
1549
|
+
ce(h, a);
|
|
1548
1550
|
}
|
|
1549
|
-
|
|
1551
|
+
le(e, h);
|
|
1550
1552
|
}
|
|
1551
1553
|
} else {
|
|
1552
|
-
let
|
|
1553
|
-
if (f && f.close(),
|
|
1554
|
-
if (
|
|
1554
|
+
let m = d.request(i, function(h) {
|
|
1555
|
+
if (f && f.close(), i.externalRequest)
|
|
1556
|
+
if (h && h.status == 200) {
|
|
1555
1557
|
if (e.enabledRespTip) {
|
|
1556
1558
|
let M = e.respTip || {};
|
|
1557
1559
|
te(M);
|
|
1558
1560
|
}
|
|
1559
|
-
ce(
|
|
1561
|
+
ce(h, a), le(e, h);
|
|
1560
1562
|
} else {
|
|
1561
1563
|
if (e.enabledRespErrTip) {
|
|
1562
1564
|
let M = e.respErrTip || {};
|
|
1563
1565
|
te(M);
|
|
1564
1566
|
}
|
|
1565
|
-
|
|
1567
|
+
ae(e, h, null);
|
|
1566
1568
|
}
|
|
1567
1569
|
else {
|
|
1568
|
-
if (
|
|
1570
|
+
if (h) {
|
|
1569
1571
|
if (e.enabledRespTip) {
|
|
1570
1572
|
let M = e.respTip || {};
|
|
1571
1573
|
te(M);
|
|
1572
1574
|
}
|
|
1573
|
-
ce(
|
|
1575
|
+
ce(h, a);
|
|
1574
1576
|
}
|
|
1575
|
-
|
|
1577
|
+
le(e, h);
|
|
1576
1578
|
}
|
|
1577
|
-
}, function(
|
|
1579
|
+
}, function(h) {
|
|
1578
1580
|
if (f && f.close(), e.enabledRespErrTip) {
|
|
1579
1581
|
let M = e.respErrTip || {};
|
|
1580
1582
|
te(M);
|
|
1581
1583
|
}
|
|
1582
|
-
|
|
1584
|
+
ae(e, null, h);
|
|
1583
1585
|
});
|
|
1584
|
-
|
|
1586
|
+
m && y.push(m);
|
|
1585
1587
|
}
|
|
1586
1588
|
}
|
|
1587
1589
|
}, te = (e = {}) => {
|
|
1588
|
-
e.tipType == "msg" ?
|
|
1590
|
+
e.tipType == "msg" ? we(e.type, e.msg, e.extParam) : e.tipType == "notify" && Be(e.type, e.msg, e.extParam);
|
|
1589
1591
|
}, wt = (e) => {
|
|
1590
1592
|
if (e && q(e.params)) {
|
|
1591
|
-
let
|
|
1592
|
-
for (let f = 0; f <
|
|
1593
|
-
if (
|
|
1594
|
-
let
|
|
1595
|
-
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);
|
|
1596
1598
|
}
|
|
1597
1599
|
}
|
|
1598
|
-
},
|
|
1600
|
+
}, bt = (e) => {
|
|
1599
1601
|
if (e && q(e.params)) {
|
|
1600
|
-
let
|
|
1601
|
-
for (let f = 0; f <
|
|
1602
|
-
if (
|
|
1603
|
-
let
|
|
1604
|
-
if (
|
|
1605
|
-
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);
|
|
1606
1608
|
else {
|
|
1607
|
-
let M =
|
|
1608
|
-
|
|
1609
|
+
let M = de(m), H = de(i.ipv);
|
|
1610
|
+
h = fe["=="](M, H), h && c.set(i.opn, i.opv);
|
|
1609
1611
|
}
|
|
1610
1612
|
}
|
|
1611
1613
|
}
|
|
1612
|
-
},
|
|
1614
|
+
}, xt = (e) => {
|
|
1613
1615
|
if (e && q(e.params)) {
|
|
1614
|
-
let
|
|
1615
|
-
for (let f = 0; f <
|
|
1616
|
-
if (
|
|
1617
|
-
let
|
|
1618
|
-
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);
|
|
1619
1621
|
}
|
|
1620
1622
|
}
|
|
1621
1623
|
}, I = {
|
|
@@ -1625,109 +1627,109 @@ function tt(n = {}, o = !0, r = {}) {
|
|
|
1625
1627
|
getParam: function(e) {
|
|
1626
1628
|
return c.get(e);
|
|
1627
1629
|
},
|
|
1628
|
-
setParam: function(e,
|
|
1629
|
-
c.set(e,
|
|
1630
|
+
setParam: function(e, a) {
|
|
1631
|
+
c.set(e, a);
|
|
1630
1632
|
},
|
|
1631
1633
|
getDataCache: function(e) {
|
|
1632
|
-
return
|
|
1634
|
+
return l.data[e];
|
|
1633
1635
|
},
|
|
1634
|
-
setDataCache: function(e,
|
|
1635
|
-
|
|
1636
|
+
setDataCache: function(e, a) {
|
|
1637
|
+
l.setData(e, a);
|
|
1636
1638
|
},
|
|
1637
1639
|
getContainerParam: function(e) {
|
|
1638
|
-
return
|
|
1640
|
+
return J(e);
|
|
1639
1641
|
},
|
|
1640
|
-
setSessionParam: function(e,
|
|
1641
|
-
sessionStorage.setItem(e,
|
|
1642
|
+
setSessionParam: function(e, a) {
|
|
1643
|
+
sessionStorage.setItem(e, a);
|
|
1642
1644
|
},
|
|
1643
1645
|
getSessionParam: function(e) {
|
|
1644
1646
|
return sessionStorage.getItem(e);
|
|
1645
1647
|
},
|
|
1646
|
-
setLocalParam: function(e,
|
|
1647
|
-
localStorage.setItem(e,
|
|
1648
|
+
setLocalParam: function(e, a) {
|
|
1649
|
+
localStorage.setItem(e, a);
|
|
1648
1650
|
},
|
|
1649
1651
|
getLocalParam: function(e) {
|
|
1650
1652
|
return localStorage.getItem(e);
|
|
1651
1653
|
},
|
|
1652
|
-
callCompMethod: function(e,
|
|
1653
|
-
U(
|
|
1654
|
+
callCompMethod: function(e, a, i = {}) {
|
|
1655
|
+
U(_) ? _(e, a, i) : console.error("compMethod is not function.");
|
|
1654
1656
|
},
|
|
1655
|
-
setJsCookie: function(e,
|
|
1656
|
-
|
|
1657
|
+
setJsCookie: function(e, a, i = 30) {
|
|
1658
|
+
Re.set(e, a, { expires: i });
|
|
1657
1659
|
},
|
|
1658
1660
|
getJsCookie: function(e) {
|
|
1659
|
-
return
|
|
1661
|
+
return Re.get(e);
|
|
1660
1662
|
},
|
|
1661
1663
|
removeJsCookie: function(e) {
|
|
1662
|
-
|
|
1664
|
+
Re.remove(e);
|
|
1663
1665
|
},
|
|
1664
|
-
log: function(e = "log",
|
|
1665
|
-
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);
|
|
1666
1668
|
},
|
|
1667
1669
|
isNotEmptyStr: function(e) {
|
|
1668
|
-
return
|
|
1670
|
+
return g(e);
|
|
1669
1671
|
},
|
|
1670
1672
|
md5: function(e) {
|
|
1671
|
-
return
|
|
1673
|
+
return pt(e);
|
|
1672
1674
|
},
|
|
1673
1675
|
getDate: function(e) {
|
|
1674
1676
|
return ft(e);
|
|
1675
1677
|
},
|
|
1676
|
-
formatDate: function(e,
|
|
1677
|
-
return ut(e,
|
|
1678
|
+
formatDate: function(e, a = "yyyy-MM-dd") {
|
|
1679
|
+
return ut(e, a);
|
|
1678
1680
|
},
|
|
1679
1681
|
closeDialog: function(e) {
|
|
1680
|
-
|
|
1682
|
+
C(e);
|
|
1681
1683
|
},
|
|
1682
|
-
hideAndShowComp: function(e,
|
|
1683
|
-
U(P) ? P(e,
|
|
1684
|
+
hideAndShowComp: function(e, a, i = {}) {
|
|
1685
|
+
U(P) ? P(e, a, i) : console.error("hideAndShowComp is not function.");
|
|
1684
1686
|
},
|
|
1685
|
-
callCompWrapMethod: function(e,
|
|
1686
|
-
if (U(
|
|
1687
|
-
return
|
|
1687
|
+
callCompWrapMethod: function(e, a, i = {}) {
|
|
1688
|
+
if (U(R))
|
|
1689
|
+
return R(e, a, i);
|
|
1688
1690
|
console.error("compWrapMethod is not function.");
|
|
1689
1691
|
},
|
|
1690
1692
|
getRuleDataCache: function(e) {
|
|
1691
|
-
return
|
|
1693
|
+
return l.rules[e];
|
|
1692
1694
|
},
|
|
1693
|
-
setRuleDataCache: function(e,
|
|
1694
|
-
|
|
1695
|
+
setRuleDataCache: function(e, a, i = !1) {
|
|
1696
|
+
l.setRuleData(e, a, i);
|
|
1695
1697
|
},
|
|
1696
1698
|
getNumberFormat: function() {
|
|
1697
1699
|
return B;
|
|
1698
1700
|
},
|
|
1699
|
-
formatNum: function(e,
|
|
1700
|
-
return
|
|
1701
|
+
formatNum: function(e, a = 0, i = 3, f = !1) {
|
|
1702
|
+
return se(e) ? B.formatDecimal(e, a, i, f) : e;
|
|
1701
1703
|
}
|
|
1702
1704
|
}, St = (e) => {
|
|
1703
|
-
if (e &&
|
|
1704
|
-
const
|
|
1705
|
-
helper: { ...
|
|
1705
|
+
if (e && g(e.funcBody)) {
|
|
1706
|
+
const a = {
|
|
1707
|
+
helper: { ...s, ...I }
|
|
1706
1708
|
};
|
|
1707
1709
|
try {
|
|
1708
|
-
let
|
|
1709
|
-
|
|
1710
|
-
} catch (
|
|
1711
|
-
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);
|
|
1712
1714
|
}
|
|
1713
1715
|
}
|
|
1714
|
-
},
|
|
1715
|
-
if (e &&
|
|
1716
|
+
}, Pt = (e) => {
|
|
1717
|
+
if (e && g(e.type)) {
|
|
1716
1718
|
if (e.opType == "clear") {
|
|
1717
|
-
let
|
|
1718
|
-
|
|
1719
|
+
let a = e.type;
|
|
1720
|
+
a == "session" ? sessionStorage.clear() : a == "local" && localStorage.clear();
|
|
1719
1721
|
} else if (q(e.params) && e.params.length > 0) {
|
|
1720
|
-
let
|
|
1721
|
-
for (let
|
|
1722
|
-
if (f =
|
|
1723
|
-
|
|
1724
|
-
else if (
|
|
1725
|
-
let
|
|
1726
|
-
|
|
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));
|
|
1726
|
+
else if (ie(f)) {
|
|
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);
|
|
1727
1729
|
}
|
|
1728
1730
|
}
|
|
1729
1731
|
}
|
|
1730
|
-
},
|
|
1732
|
+
}, ie = (e) => g(e.ds) && g(e.tarKey) ? e.ds != "inputV" ? g(e.key) : !0 : !1, Y = (e) => {
|
|
1731
1733
|
if (e.ds == "inputP")
|
|
1732
1734
|
return I.getParam(e.key);
|
|
1733
1735
|
if (e.ds == "cacheP")
|
|
@@ -1741,425 +1743,443 @@ function tt(n = {}, o = !0, r = {}) {
|
|
|
1741
1743
|
if (e.ds == "jsCookieP")
|
|
1742
1744
|
return I.getJsCookie(e.key);
|
|
1743
1745
|
if (e.ds == "compProp")
|
|
1744
|
-
return U(
|
|
1746
|
+
return U(s.getPropValue) ? s.getPropValue(e.key) : null;
|
|
1745
1747
|
if (e.ds == "compStyle")
|
|
1746
|
-
return U(
|
|
1748
|
+
return U(s.getStyleValue) ? s.getStyleValue(e.key) : null;
|
|
1747
1749
|
if (e.ds == "_selectMenuValue" || e.ds == "_selectItemValue" || e.ds == "_changeItemValue") {
|
|
1748
|
-
let
|
|
1749
|
-
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;
|
|
1750
1752
|
} else {
|
|
1751
|
-
let
|
|
1752
|
-
return
|
|
1753
|
+
let a = e.key;
|
|
1754
|
+
return a.toString().trim().indexOf("#json#") == 0 ? (a = a.toString().trim().replace("#json#", ""), at(a, {})) : e.key;
|
|
1753
1755
|
}
|
|
1754
|
-
},
|
|
1756
|
+
}, Mt = (e, a) => {
|
|
1755
1757
|
if (e.ds == "cacheP")
|
|
1756
|
-
return I.setDataCache(e.tarKey,
|
|
1758
|
+
return I.setDataCache(e.tarKey, a);
|
|
1757
1759
|
if (e.ds == "inputP")
|
|
1758
|
-
return I.setParam(e.tarKey,
|
|
1760
|
+
return I.setParam(e.tarKey, a);
|
|
1759
1761
|
if (e.ds == "sessionP")
|
|
1760
|
-
return I.setSessionParam(e.tarKey,
|
|
1762
|
+
return I.setSessionParam(e.tarKey, a);
|
|
1761
1763
|
if (e.ds == "localP")
|
|
1762
|
-
return I.setLocalParam(e.tarKey,
|
|
1763
|
-
e.ds == "jsCookieP" ? I.setJsCookie(e.tarKey,
|
|
1764
|
-
},
|
|
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);
|
|
1766
|
+
}, Ot = (e) => {
|
|
1765
1767
|
if (e) {
|
|
1766
|
-
let
|
|
1767
|
-
q(
|
|
1768
|
-
if (
|
|
1769
|
-
let
|
|
1770
|
-
|
|
1768
|
+
let a = e.styleSets || [], i = e.propSets || [];
|
|
1769
|
+
q(i) && i.length > 0 && U(s.setPropValue) && i.forEach((f, m) => {
|
|
1770
|
+
if (ie(f)) {
|
|
1771
|
+
let h = Y(f);
|
|
1772
|
+
s.setPropValue(f.tarKey, h);
|
|
1771
1773
|
}
|
|
1772
|
-
}), q(
|
|
1773
|
-
if (
|
|
1774
|
-
let
|
|
1775
|
-
|
|
1774
|
+
}), q(a) && a.length > 0 && U(s.setStyleValue) && a.forEach((f, m) => {
|
|
1775
|
+
if (ie(f)) {
|
|
1776
|
+
let h = Y(f);
|
|
1777
|
+
s.setStyleValue(f.tarKey, h);
|
|
1776
1778
|
}
|
|
1777
1779
|
});
|
|
1778
1780
|
}
|
|
1779
|
-
},
|
|
1780
|
-
let
|
|
1781
|
+
}, Vt = (e) => {
|
|
1782
|
+
let a = !1;
|
|
1781
1783
|
if (e && q(e.params)) {
|
|
1782
|
-
let
|
|
1783
|
-
for (let
|
|
1784
|
-
f =
|
|
1785
|
-
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;
|
|
1786
1788
|
const ne = f.opType;
|
|
1787
|
-
if ([">", ">=", "<", "<=", "=="].includes(ne) && (M =
|
|
1788
|
-
|
|
1789
|
+
if ([">", ">=", "<", "<=", "=="].includes(ne) && (M = de(M), H = de(H)), fe[ne] ? m = fe[ne](M, H) : m = !1, m) {
|
|
1790
|
+
a = !0;
|
|
1789
1791
|
break;
|
|
1790
1792
|
}
|
|
1791
1793
|
}
|
|
1792
|
-
if (e.enabledTip &&
|
|
1793
|
-
let
|
|
1794
|
-
|
|
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);
|
|
1795
1797
|
}
|
|
1796
1798
|
}
|
|
1797
|
-
return
|
|
1798
|
-
},
|
|
1799
|
-
if (e.customFunc &&
|
|
1800
|
-
const
|
|
1801
|
-
helper: { ...
|
|
1799
|
+
return a;
|
|
1800
|
+
}, Le = (e, a) => {
|
|
1801
|
+
if (e.customFunc && g(e.confirmFunc)) {
|
|
1802
|
+
const i = {
|
|
1803
|
+
helper: { ...s, ...I }
|
|
1802
1804
|
};
|
|
1803
1805
|
try {
|
|
1804
1806
|
let f = e.confirmFunc.toString().trim();
|
|
1805
|
-
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);
|
|
1806
1808
|
} catch (f) {
|
|
1807
1809
|
console.error("[__messageBoxHandler4CustomSuccessFunc]处理自定义失败函数时出错:", f);
|
|
1808
1810
|
}
|
|
1809
1811
|
}
|
|
1810
|
-
},
|
|
1811
|
-
if (e.customFunc &&
|
|
1812
|
-
const
|
|
1813
|
-
helper: { ...
|
|
1812
|
+
}, It = (e, a) => {
|
|
1813
|
+
if (e.customFunc && g(e.errorFunc)) {
|
|
1814
|
+
const i = {
|
|
1815
|
+
helper: { ...s, ...I }
|
|
1814
1816
|
};
|
|
1815
1817
|
try {
|
|
1816
1818
|
let f = e.errorFunc.toString().trim();
|
|
1817
|
-
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);
|
|
1818
1820
|
} catch (f) {
|
|
1819
1821
|
console.error("[__messageBoxHandler4CustomErrorFunc]处理自定义失败函数时出错:", f);
|
|
1820
1822
|
}
|
|
1821
1823
|
}
|
|
1822
|
-
},
|
|
1824
|
+
}, xe = (e, a) => {
|
|
1823
1825
|
if (e.customFunc) {
|
|
1824
|
-
let
|
|
1825
|
-
if (
|
|
1826
|
-
|
|
1827
|
-
else if (
|
|
1828
|
-
|
|
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;
|
|
1829
1831
|
else
|
|
1830
1832
|
return;
|
|
1831
1833
|
const f = {
|
|
1832
|
-
helper: { ...
|
|
1834
|
+
helper: { ...s, ...I }
|
|
1833
1835
|
};
|
|
1834
1836
|
try {
|
|
1835
|
-
let
|
|
1836
|
-
|
|
1837
|
-
} catch (
|
|
1838
|
-
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);
|
|
1839
1841
|
}
|
|
1840
1842
|
}
|
|
1841
|
-
},
|
|
1842
|
-
let
|
|
1843
|
-
if (e &&
|
|
1844
|
-
let
|
|
1843
|
+
}, Dt = async (e) => {
|
|
1844
|
+
let a = !1;
|
|
1845
|
+
if (e && g(e.type)) {
|
|
1846
|
+
let i = {
|
|
1845
1847
|
...e.params,
|
|
1846
1848
|
type: e.msgType || "info",
|
|
1847
1849
|
confirmButtonText: e.confirmText,
|
|
1848
1850
|
cancelButtonText: e.cancelText
|
|
1849
1851
|
};
|
|
1850
1852
|
if (e.type == "confirm") {
|
|
1851
|
-
const { errors: f, resultInfo:
|
|
1852
|
-
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));
|
|
1853
1855
|
} else if (e.type == "prompt") {
|
|
1854
|
-
if (
|
|
1855
|
-
const
|
|
1856
|
-
|
|
1856
|
+
if (g(i.inputPattern)) {
|
|
1857
|
+
const h = i.inputPattern.replace(/\\\\/g, "\\");
|
|
1858
|
+
i.inputPattern = new RegExp(h);
|
|
1857
1859
|
}
|
|
1858
|
-
const { errors: f, resultInfo:
|
|
1859
|
-
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));
|
|
1860
1862
|
}
|
|
1861
|
-
e.autoBlock || (
|
|
1863
|
+
e.autoBlock || (a = !0);
|
|
1862
1864
|
} else
|
|
1863
|
-
|
|
1864
|
-
return
|
|
1865
|
+
a = !0;
|
|
1866
|
+
return a;
|
|
1865
1867
|
}, kt = (e) => {
|
|
1866
|
-
if (e &&
|
|
1867
|
-
let
|
|
1868
|
+
if (e && g(e.pageId)) {
|
|
1869
|
+
let a = { ...e };
|
|
1868
1870
|
if (e.customPosition) {
|
|
1869
|
-
let
|
|
1870
|
-
|
|
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;
|
|
1871
1873
|
}
|
|
1872
|
-
|
|
1874
|
+
v(a);
|
|
1873
1875
|
}
|
|
1874
|
-
},
|
|
1876
|
+
}, Rt = (e) => {
|
|
1875
1877
|
if (e && q(e.params)) {
|
|
1876
|
-
let
|
|
1877
|
-
for (let f = 0; f <
|
|
1878
|
-
if (
|
|
1879
|
-
let
|
|
1880
|
-
|
|
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);
|
|
1881
1883
|
}
|
|
1882
1884
|
}
|
|
1883
1885
|
}, Et = (e) => {
|
|
1884
1886
|
if (e) {
|
|
1885
|
-
let
|
|
1887
|
+
let a = e.interval ?? 1e3, i = setInterval(
|
|
1886
1888
|
() => {
|
|
1887
|
-
|
|
1889
|
+
$("debug", "定时器触发..."), Ue();
|
|
1888
1890
|
},
|
|
1889
|
-
|
|
1891
|
+
a
|
|
1890
1892
|
);
|
|
1891
|
-
|
|
1893
|
+
S.push(i), Ue();
|
|
1892
1894
|
}
|
|
1893
1895
|
}, Tt = (e) => {
|
|
1894
1896
|
if (e) {
|
|
1895
|
-
let
|
|
1896
|
-
if (
|
|
1897
|
-
if (
|
|
1898
|
-
|
|
1897
|
+
let a = e.bindRefreshKey, i = e.clearFlag;
|
|
1898
|
+
if (g(a))
|
|
1899
|
+
if (i)
|
|
1900
|
+
O();
|
|
1899
1901
|
else {
|
|
1900
|
-
|
|
1901
|
-
const f = k[
|
|
1902
|
+
O();
|
|
1903
|
+
const f = k[a];
|
|
1902
1904
|
if (!f) return;
|
|
1903
|
-
b =
|
|
1904
|
-
|
|
1905
|
+
b = be(f, (m, h) => {
|
|
1906
|
+
Zt();
|
|
1905
1907
|
});
|
|
1906
1908
|
}
|
|
1907
1909
|
}
|
|
1908
|
-
},
|
|
1910
|
+
}, At = (e) => {
|
|
1909
1911
|
if (e) {
|
|
1910
|
-
let
|
|
1912
|
+
let a = e.interval ?? 1e3, i = setTimeout(
|
|
1911
1913
|
() => {
|
|
1912
|
-
|
|
1914
|
+
Xt(e.id);
|
|
1913
1915
|
},
|
|
1914
|
-
|
|
1916
|
+
a
|
|
1915
1917
|
);
|
|
1916
|
-
N.set(e.id,
|
|
1918
|
+
N.set(e.id, i);
|
|
1917
1919
|
}
|
|
1918
|
-
},
|
|
1919
|
-
if (e &&
|
|
1920
|
-
let
|
|
1921
|
-
if (
|
|
1922
|
-
let
|
|
1923
|
-
for (let
|
|
1924
|
-
let M =
|
|
1925
|
-
for (const
|
|
1926
|
-
if (
|
|
1927
|
-
if (
|
|
1928
|
-
|
|
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]] || [];
|
|
1927
|
+
for (const H of M)
|
|
1928
|
+
if (H.id == e.eventId) {
|
|
1929
|
+
if (i.push(H.id), a.eventIds = [...i], H.default) {
|
|
1930
|
+
Se(H.actionList, a);
|
|
1929
1931
|
break;
|
|
1930
|
-
} else ze(
|
|
1932
|
+
} else ze(H) && Se(H.actionList, a);
|
|
1931
1933
|
break;
|
|
1932
1934
|
}
|
|
1933
1935
|
}
|
|
1934
1936
|
} else
|
|
1935
|
-
|
|
1937
|
+
$("error", "存在循环调用,不执行事件配置", e.eventId);
|
|
1936
1938
|
}
|
|
1937
|
-
},
|
|
1938
|
-
let
|
|
1939
|
+
}, Se = async (e = [], a = {}) => {
|
|
1940
|
+
let i = null;
|
|
1939
1941
|
for (let f = 0; f < e.length; f++)
|
|
1940
|
-
if (
|
|
1941
|
-
|
|
1942
|
-
else if (
|
|
1943
|
-
await
|
|
1944
|
-
else if (
|
|
1945
|
-
wt(
|
|
1946
|
-
else if (
|
|
1947
|
-
|
|
1948
|
-
else if (
|
|
1949
|
-
|
|
1950
|
-
else if (
|
|
1951
|
-
St(
|
|
1952
|
-
else if (
|
|
1953
|
-
|
|
1954
|
-
else if (
|
|
1955
|
-
|
|
1956
|
-
else if (
|
|
1957
|
-
if (
|
|
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)) {
|
|
1958
1960
|
console.log("actionEnd is true. break");
|
|
1959
1961
|
break;
|
|
1960
1962
|
}
|
|
1961
|
-
} else if (
|
|
1962
|
-
if (!await
|
|
1963
|
+
} else if (i.action == "messageBox") {
|
|
1964
|
+
if (!await Dt(i.config)) {
|
|
1963
1965
|
console.log("messageBox is false. break");
|
|
1964
1966
|
break;
|
|
1965
1967
|
}
|
|
1966
|
-
} else if (
|
|
1967
|
-
kt(
|
|
1968
|
+
} else if (i.action == "openDialog") {
|
|
1969
|
+
kt(i.config);
|
|
1968
1970
|
break;
|
|
1969
|
-
} else
|
|
1970
|
-
},
|
|
1971
|
-
let
|
|
1972
|
-
|
|
1973
|
-
let
|
|
1974
|
-
if (
|
|
1975
|
-
|
|
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({
|
|
1976
1978
|
ds: e.lType,
|
|
1977
1979
|
key: e.lValue
|
|
1978
|
-
}), f =
|
|
1980
|
+
}), f = Y({
|
|
1979
1981
|
ds: e.rType,
|
|
1980
1982
|
key: e.rValue
|
|
1981
1983
|
});
|
|
1982
1984
|
const M = e.opType;
|
|
1983
|
-
[">", ">=", "<", "<=", "=="].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));
|
|
1984
1986
|
} else
|
|
1985
1987
|
console.warn("_judgeCondition warn: the condition config is error.");
|
|
1986
|
-
return
|
|
1988
|
+
return a;
|
|
1987
1989
|
}, ze = (e) => {
|
|
1988
|
-
let
|
|
1990
|
+
let a = !1;
|
|
1989
1991
|
if (e.default)
|
|
1990
|
-
|
|
1992
|
+
a = !0;
|
|
1991
1993
|
else {
|
|
1992
|
-
let
|
|
1993
|
-
if (
|
|
1994
|
+
let i = e.condition || [];
|
|
1995
|
+
if (i.length > 0) {
|
|
1994
1996
|
let f = !0;
|
|
1995
|
-
for (let
|
|
1996
|
-
if (!
|
|
1997
|
+
for (let m = 0; m < i.length; m++)
|
|
1998
|
+
if (!jt(i[m])) {
|
|
1997
1999
|
f = !1;
|
|
1998
2000
|
break;
|
|
1999
2001
|
}
|
|
2000
|
-
f && (
|
|
2002
|
+
f && (a = !0);
|
|
2001
2003
|
} else
|
|
2002
|
-
|
|
2004
|
+
a = !0;
|
|
2003
2005
|
}
|
|
2004
|
-
return
|
|
2005
|
-
},
|
|
2006
|
-
for (const
|
|
2007
|
-
let
|
|
2008
|
-
if (
|
|
2009
|
-
|
|
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);
|
|
2010
2012
|
break;
|
|
2011
|
-
} else ze(
|
|
2013
|
+
} else ze(a) && Se(a.actionList, i);
|
|
2012
2014
|
}
|
|
2013
|
-
},
|
|
2014
|
-
u || (
|
|
2015
|
-
if (
|
|
2015
|
+
}, Bt = (e) => {
|
|
2016
|
+
u || (w && clearTimeout(w), w = setTimeout(() => {
|
|
2017
|
+
if (n && n.hasOwnProperty("onMouseClick")) {
|
|
2016
2018
|
if (e && e.target) {
|
|
2017
|
-
const
|
|
2018
|
-
|
|
2019
|
+
const i = e.target.getBoundingClientRect();
|
|
2020
|
+
X("elementRect", i), X("elementRectLeft", i.left), X("elementRectTop", i.top);
|
|
2019
2021
|
}
|
|
2020
|
-
let
|
|
2021
|
-
|
|
2022
|
+
let a = n.onMouseClick;
|
|
2023
|
+
L(a);
|
|
2022
2024
|
}
|
|
2023
|
-
},
|
|
2024
|
-
},
|
|
2025
|
-
if (!u && (
|
|
2025
|
+
}, x));
|
|
2026
|
+
}, Nt = (e) => {
|
|
2027
|
+
if (!u && (w && clearTimeout(w), n && n.hasOwnProperty("onMouseDblClick"))) {
|
|
2026
2028
|
if (e && e.target) {
|
|
2027
|
-
const
|
|
2028
|
-
|
|
2029
|
+
const i = e.target.getBoundingClientRect();
|
|
2030
|
+
X("elementRect", i), X("elementRectLeft", i.left), X("elementRectTop", i.top);
|
|
2029
2031
|
}
|
|
2030
|
-
let
|
|
2031
|
-
|
|
2032
|
+
let a = n.onMouseDblClick;
|
|
2033
|
+
L(a);
|
|
2032
2034
|
}
|
|
2033
|
-
},
|
|
2034
|
-
if (!u && (
|
|
2035
|
-
let
|
|
2036
|
-
|
|
2035
|
+
}, Kt = (e, a) => {
|
|
2036
|
+
if (!u && (X("_selectMenuValue", a), n && n.hasOwnProperty("onContextMenu"))) {
|
|
2037
|
+
let i = n.onContextMenu;
|
|
2038
|
+
L(i);
|
|
2037
2039
|
}
|
|
2038
2040
|
}, Ht = (e) => {
|
|
2039
|
-
if (!u && (
|
|
2040
|
-
let
|
|
2041
|
-
|
|
2041
|
+
if (!u && (X("_selectItemValue", e), n && n.hasOwnProperty("selectItem"))) {
|
|
2042
|
+
let a = n.selectItem;
|
|
2043
|
+
L(a);
|
|
2042
2044
|
}
|
|
2043
2045
|
}, Lt = (e) => {
|
|
2044
|
-
if (!u && (
|
|
2045
|
-
let
|
|
2046
|
-
|
|
2046
|
+
if (!u && (X("_changeItemValue", e), n && n.hasOwnProperty("changeValue"))) {
|
|
2047
|
+
let a = n.changeValue;
|
|
2048
|
+
L(a);
|
|
2047
2049
|
}
|
|
2048
2050
|
}, qt = () => {
|
|
2049
|
-
if (!u &&
|
|
2050
|
-
let e =
|
|
2051
|
-
|
|
2052
|
-
}
|
|
2053
|
-
}, Kt = () => {
|
|
2054
|
-
if (!u && t && t.hasOwnProperty("onBeforeMount")) {
|
|
2055
|
-
let e = t.onBeforeMount;
|
|
2056
|
-
K(e);
|
|
2051
|
+
if (!u && n && n.hasOwnProperty("keyEnter")) {
|
|
2052
|
+
let e = n.keyEnter;
|
|
2053
|
+
L(e);
|
|
2057
2054
|
}
|
|
2058
2055
|
}, zt = () => {
|
|
2059
|
-
if (!u &&
|
|
2060
|
-
let e =
|
|
2061
|
-
|
|
2056
|
+
if (!u && n && n.hasOwnProperty("onBeforeMount")) {
|
|
2057
|
+
let e = n.onBeforeMount;
|
|
2058
|
+
L(e);
|
|
2062
2059
|
}
|
|
2063
2060
|
}, Ut = () => {
|
|
2064
|
-
if (
|
|
2065
|
-
|
|
2061
|
+
if (!u && n && n.hasOwnProperty("onMounted")) {
|
|
2062
|
+
let e = n.onMounted;
|
|
2063
|
+
L(e);
|
|
2064
|
+
}
|
|
2065
|
+
}, Wt = () => {
|
|
2066
|
+
if (S && S.length > 0)
|
|
2067
|
+
for (let e = 0; e < S.length; e++)
|
|
2066
2068
|
try {
|
|
2067
|
-
clearInterval(
|
|
2068
|
-
} catch (
|
|
2069
|
-
console.error("cancel request error",
|
|
2069
|
+
clearInterval(S[e]);
|
|
2070
|
+
} catch (a) {
|
|
2071
|
+
console.error("cancel request error", a);
|
|
2070
2072
|
}
|
|
2071
|
-
},
|
|
2072
|
-
N && N.size > 0 && (N.forEach((e,
|
|
2073
|
+
}, Jt = () => {
|
|
2074
|
+
N && N.size > 0 && (N.forEach((e, a, i) => {
|
|
2073
2075
|
clearTimeout(e);
|
|
2074
2076
|
}), N.clear());
|
|
2075
|
-
},
|
|
2076
|
-
if (
|
|
2077
|
-
if (
|
|
2078
|
-
for (let e = 0; e <
|
|
2077
|
+
}, Gt = () => {
|
|
2078
|
+
if (Wt(), Jt(), !u) {
|
|
2079
|
+
if (y && y.length > 0)
|
|
2080
|
+
for (let e = 0; e < y.length; e++)
|
|
2079
2081
|
try {
|
|
2080
|
-
|
|
2081
|
-
} catch (
|
|
2082
|
-
console.error("cancel request error",
|
|
2082
|
+
y[e] && y[e]();
|
|
2083
|
+
} catch (a) {
|
|
2084
|
+
console.error("cancel request error", a);
|
|
2083
2085
|
}
|
|
2084
|
-
if (
|
|
2085
|
-
let e =
|
|
2086
|
-
|
|
2086
|
+
if (n && n.hasOwnProperty("onBeforeUnmount")) {
|
|
2087
|
+
let e = n.onBeforeUnmount;
|
|
2088
|
+
L(e);
|
|
2087
2089
|
}
|
|
2088
2090
|
}
|
|
2089
|
-
},
|
|
2090
|
-
if (!u &&
|
|
2091
|
-
let e =
|
|
2092
|
-
|
|
2091
|
+
}, $t = () => {
|
|
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);
|
|
2100
|
+
}
|
|
2101
|
+
}, Yt = () => {
|
|
2102
|
+
if (!u && (D = !0, n && n.hasOwnProperty("onDeactivated"))) {
|
|
2103
|
+
let e = n.onDeactivated;
|
|
2104
|
+
L(e);
|
|
2093
2105
|
}
|
|
2094
2106
|
}, Ue = () => {
|
|
2095
|
-
if (!u
|
|
2096
|
-
|
|
2097
|
-
|
|
2107
|
+
if (!u) {
|
|
2108
|
+
if (D) {
|
|
2109
|
+
$("DEBUG", "组件当前停用状态,不执行定时器触发操作");
|
|
2110
|
+
return;
|
|
2111
|
+
}
|
|
2112
|
+
if (n && n.hasOwnProperty("timerTrigger")) {
|
|
2113
|
+
let e = n.timerTrigger;
|
|
2114
|
+
L(e);
|
|
2115
|
+
}
|
|
2098
2116
|
}
|
|
2099
|
-
},
|
|
2117
|
+
}, Xt = (e) => {
|
|
2100
2118
|
if (!u) {
|
|
2101
|
-
if (
|
|
2102
|
-
let
|
|
2103
|
-
|
|
2119
|
+
if (n && n.hasOwnProperty("delayTrigger")) {
|
|
2120
|
+
let a = n.delayTrigger;
|
|
2121
|
+
L(a);
|
|
2104
2122
|
}
|
|
2105
2123
|
N.has(e) && (clearTimeout(N.get(e)), N.delete(e));
|
|
2106
2124
|
}
|
|
2107
|
-
},
|
|
2108
|
-
if (!u &&
|
|
2109
|
-
let e =
|
|
2110
|
-
|
|
2125
|
+
}, Zt = () => {
|
|
2126
|
+
if (!u && n && n.hasOwnProperty("bindRefreshTrigger")) {
|
|
2127
|
+
let e = n.bindRefreshTrigger;
|
|
2128
|
+
L(e);
|
|
2111
2129
|
}
|
|
2112
|
-
},
|
|
2113
|
-
I.setParam(e,
|
|
2130
|
+
}, X = (e, a) => {
|
|
2131
|
+
I.setParam(e, a);
|
|
2114
2132
|
};
|
|
2115
2133
|
return {
|
|
2116
|
-
handleClick:
|
|
2117
|
-
handleDblClick:
|
|
2118
|
-
handleContextMenu:
|
|
2134
|
+
handleClick: Bt,
|
|
2135
|
+
handleDblClick: Nt,
|
|
2136
|
+
handleContextMenu: Kt,
|
|
2119
2137
|
selectItem: Ht,
|
|
2120
2138
|
changeValue: Lt,
|
|
2121
|
-
beforeMount:
|
|
2122
|
-
mounted:
|
|
2123
|
-
beforeUnmount:
|
|
2124
|
-
unmounted:
|
|
2125
|
-
setParam:
|
|
2126
|
-
keyEnter: qt
|
|
2139
|
+
beforeMount: zt,
|
|
2140
|
+
mounted: Ut,
|
|
2141
|
+
beforeUnmount: Gt,
|
|
2142
|
+
unmounted: $t,
|
|
2143
|
+
setParam: X,
|
|
2144
|
+
keyEnter: qt,
|
|
2145
|
+
activated: Qt,
|
|
2146
|
+
deactivated: Yt
|
|
2127
2147
|
};
|
|
2128
2148
|
}
|
|
2129
|
-
function nt(
|
|
2149
|
+
function nt(t, o, r, n) {
|
|
2130
2150
|
return {
|
|
2131
|
-
setPropValue: function(
|
|
2132
|
-
|
|
2151
|
+
setPropValue: function(s, c) {
|
|
2152
|
+
t.value[s] = c;
|
|
2133
2153
|
},
|
|
2134
|
-
getPropValue: function(
|
|
2135
|
-
return
|
|
2154
|
+
getPropValue: function(s) {
|
|
2155
|
+
return t.value[s];
|
|
2136
2156
|
},
|
|
2137
|
-
setStyleValue: function(
|
|
2138
|
-
o.value.style[
|
|
2157
|
+
setStyleValue: function(s, c) {
|
|
2158
|
+
o.value.style[s] = c;
|
|
2139
2159
|
},
|
|
2140
|
-
getStyleValue: function(
|
|
2141
|
-
return o.value.style[
|
|
2160
|
+
getStyleValue: function(s) {
|
|
2161
|
+
return o.value.style[s];
|
|
2142
2162
|
},
|
|
2143
|
-
routerPush: function(
|
|
2163
|
+
routerPush: function(s, c) {
|
|
2144
2164
|
r && r.push({
|
|
2145
|
-
name:
|
|
2165
|
+
name: s,
|
|
2146
2166
|
params: c
|
|
2147
2167
|
});
|
|
2148
2168
|
},
|
|
2149
|
-
routerPush2: function(
|
|
2169
|
+
routerPush2: function(s, c) {
|
|
2150
2170
|
r && r.push({
|
|
2151
|
-
path:
|
|
2171
|
+
path: s,
|
|
2152
2172
|
query: c
|
|
2153
2173
|
});
|
|
2154
2174
|
},
|
|
2155
|
-
routerReplace: function(
|
|
2175
|
+
routerReplace: function(s) {
|
|
2156
2176
|
r && r.replace({
|
|
2157
|
-
path:
|
|
2177
|
+
path: s
|
|
2158
2178
|
});
|
|
2159
2179
|
}
|
|
2160
2180
|
};
|
|
2161
2181
|
}
|
|
2162
|
-
const
|
|
2182
|
+
const Zn = /* @__PURE__ */ Object.assign({
|
|
2163
2183
|
name: "Group"
|
|
2164
2184
|
}, {
|
|
2165
2185
|
__name: "Component",
|
|
@@ -2180,44 +2200,44 @@ const Qn = /* @__PURE__ */ Object.assign({
|
|
|
2180
2200
|
default: !1
|
|
2181
2201
|
}
|
|
2182
2202
|
},
|
|
2183
|
-
setup(
|
|
2184
|
-
const r =
|
|
2185
|
-
let
|
|
2186
|
-
return
|
|
2187
|
-
})),
|
|
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);
|
|
2188
2208
|
Je(() => {
|
|
2189
|
-
|
|
2190
|
-
}),
|
|
2191
|
-
|
|
2209
|
+
s.value = tt(_.value, r.designStatus, C), s.value?.beforeMount();
|
|
2210
|
+
}), Ve(() => {
|
|
2211
|
+
s.value?.mounted();
|
|
2192
2212
|
}), Ge(() => {
|
|
2193
|
-
|
|
2213
|
+
s.value?.beforeUnmount();
|
|
2194
2214
|
}), $e(() => {
|
|
2195
|
-
|
|
2215
|
+
s.value?.unmounted();
|
|
2196
2216
|
});
|
|
2197
|
-
const
|
|
2198
|
-
|
|
2199
|
-
},
|
|
2200
|
-
|
|
2217
|
+
const w = (D) => {
|
|
2218
|
+
s.value?.setParam(D);
|
|
2219
|
+
}, x = (D) => {
|
|
2220
|
+
s.value?.handleDblClick(D);
|
|
2201
2221
|
}, P = (D) => {
|
|
2202
|
-
if (!D || !
|
|
2203
|
-
let
|
|
2204
|
-
return
|
|
2205
|
-
},
|
|
2206
|
-
D ?
|
|
2207
|
-
}, k = (D) =>
|
|
2208
|
-
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)) {
|
|
2209
2229
|
const z = k(D);
|
|
2210
|
-
z && z[
|
|
2230
|
+
z && z[O] && (J ? z[O](J) : z[O]());
|
|
2211
2231
|
}
|
|
2212
2232
|
};
|
|
2213
2233
|
o({
|
|
2214
2234
|
callGroupCompMethod: b
|
|
2215
2235
|
});
|
|
2216
|
-
const N = { props: r, dataCache:
|
|
2217
|
-
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;
|
|
2218
2238
|
}, get createSmartAccessor() {
|
|
2219
|
-
return
|
|
2220
|
-
}, ref:
|
|
2239
|
+
return je;
|
|
2240
|
+
}, ref: T, computed: V, onMounted: Ve, onBeforeMount: Je, onBeforeUnmount: Ge, onUnmounted: $e, watch: be, reactive: pe, get useEventHandler() {
|
|
2221
2241
|
return tt;
|
|
2222
2242
|
}, get useRoute() {
|
|
2223
2243
|
return Ye;
|
|
@@ -2226,140 +2246,140 @@ const Qn = /* @__PURE__ */ Object.assign({
|
|
|
2226
2246
|
}, get CreateCompContext() {
|
|
2227
2247
|
return nt;
|
|
2228
2248
|
}, get getStyle() {
|
|
2229
|
-
return
|
|
2249
|
+
return ht;
|
|
2230
2250
|
}, get isNotEmpty() {
|
|
2231
|
-
return
|
|
2251
|
+
return g;
|
|
2232
2252
|
} };
|
|
2233
2253
|
return Object.defineProperty(N, "__isScriptSetup", { enumerable: !1, value: !0 }), N;
|
|
2234
2254
|
}
|
|
2235
2255
|
});
|
|
2236
|
-
function
|
|
2256
|
+
function eo(t, o, r, n, u, s) {
|
|
2237
2257
|
return A(), W("div", { class: "group" }, [
|
|
2238
|
-
|
|
2239
|
-
(A(!0), W(
|
|
2258
|
+
re("div", null, [
|
|
2259
|
+
(A(!0), W(Ke, null, He(n.computedComponents, (c) => (A(), Q(Me(c.component), {
|
|
2240
2260
|
id: "component" + c.id,
|
|
2241
2261
|
ref_for: !0,
|
|
2242
|
-
ref: (
|
|
2262
|
+
ref: (d) => n.setComponentRef(d, c.id),
|
|
2243
2263
|
key: c.id,
|
|
2244
2264
|
class: "component",
|
|
2245
|
-
style:
|
|
2265
|
+
style: Oe(n.getStyle(c.computedStyle)),
|
|
2246
2266
|
"prop-value": c.propValue,
|
|
2247
2267
|
element: c
|
|
2248
2268
|
}, null, 8, ["id", "style", "prop-value", "element"]))), 128))
|
|
2249
2269
|
])
|
|
2250
2270
|
]);
|
|
2251
2271
|
}
|
|
2252
|
-
const
|
|
2272
|
+
const to = /* @__PURE__ */ Z(Zn, [["render", eo], ["__scopeId", "data-v-20de9881"], ["__file", "Component.vue"]]), no = /* @__PURE__ */ Object.assign({
|
|
2253
2273
|
name: "VEDataCache"
|
|
2254
2274
|
}, {
|
|
2255
2275
|
__name: "index",
|
|
2256
|
-
setup(
|
|
2276
|
+
setup(t, { expose: o }) {
|
|
2257
2277
|
o();
|
|
2258
|
-
const r =
|
|
2278
|
+
const r = T(null), n = T(null), u = T([]), s = T(0), c = Ce(), d = T(!1), l = T({
|
|
2259
2279
|
id: "",
|
|
2260
2280
|
fuzzyQry: !1,
|
|
2261
2281
|
pageNum: 1,
|
|
2262
2282
|
pageSize: 15
|
|
2263
|
-
}),
|
|
2264
|
-
|
|
2283
|
+
}), p = () => {
|
|
2284
|
+
l.value.pageNum = 1, y();
|
|
2285
|
+
}, _ = () => {
|
|
2286
|
+
r.value?.resetFields(), p();
|
|
2265
2287
|
}, y = () => {
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
if (!v(i.value.id)) {
|
|
2269
|
-
a.value = 0, u.value = [];
|
|
2288
|
+
if (!g(l.value.id)) {
|
|
2289
|
+
s.value = 0, u.value = [];
|
|
2270
2290
|
return;
|
|
2271
2291
|
}
|
|
2272
|
-
if (
|
|
2273
|
-
if (
|
|
2274
|
-
let
|
|
2275
|
-
for (let P = 0; P <
|
|
2276
|
-
|
|
2277
|
-
if (
|
|
2278
|
-
let P = (
|
|
2279
|
-
if (P <=
|
|
2280
|
-
let
|
|
2281
|
-
for (let k = P; k <
|
|
2282
|
-
if (k <
|
|
2283
|
-
let b = c.data[
|
|
2284
|
-
|
|
2285
|
-
key:
|
|
2292
|
+
if (d.value = !0, c.data)
|
|
2293
|
+
if (l.value.fuzzyQry) {
|
|
2294
|
+
let w = Object.keys(c.data), x = [];
|
|
2295
|
+
for (let P = 0; P < w.length; 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;
|
|
2299
|
+
if (P <= s.value) {
|
|
2300
|
+
let R = [];
|
|
2301
|
+
for (let k = P; k < S; k++)
|
|
2302
|
+
if (k < s.value) {
|
|
2303
|
+
let b = c.data[x[k]], N = ee(b) ? Pe(b) : b;
|
|
2304
|
+
R.push({
|
|
2305
|
+
key: x[k],
|
|
2286
2306
|
value: N
|
|
2287
2307
|
});
|
|
2288
2308
|
}
|
|
2289
|
-
u.value =
|
|
2309
|
+
u.value = R;
|
|
2290
2310
|
} else
|
|
2291
2311
|
u.value = [];
|
|
2292
2312
|
} else
|
|
2293
2313
|
u.value = [];
|
|
2294
2314
|
} else {
|
|
2295
|
-
let
|
|
2296
|
-
if (
|
|
2297
|
-
|
|
2315
|
+
let w = c.data[l.value.id];
|
|
2316
|
+
if (_e(w))
|
|
2317
|
+
s.value = 0, u.value = [];
|
|
2298
2318
|
else {
|
|
2299
|
-
|
|
2300
|
-
let
|
|
2319
|
+
s.value = 1;
|
|
2320
|
+
let x = ee(w) ? Pe(w) : w;
|
|
2301
2321
|
u.value = [{
|
|
2302
|
-
key:
|
|
2303
|
-
value:
|
|
2322
|
+
key: l.value.id,
|
|
2323
|
+
value: x
|
|
2304
2324
|
}];
|
|
2305
2325
|
}
|
|
2306
2326
|
}
|
|
2307
|
-
|
|
2308
|
-
},
|
|
2309
|
-
|
|
2310
|
-
}, ref:
|
|
2311
|
-
return
|
|
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", "复制成功");
|
|
2330
|
+
}, ref: T, get useDataCacheStore() {
|
|
2331
|
+
return Ce;
|
|
2312
2332
|
}, get copyToClipboard() {
|
|
2313
|
-
return
|
|
2333
|
+
return Ae;
|
|
2314
2334
|
}, get isNotEmpty() {
|
|
2315
|
-
return
|
|
2335
|
+
return g;
|
|
2316
2336
|
}, get isNullOrUndefined() {
|
|
2317
|
-
return
|
|
2337
|
+
return _e;
|
|
2318
2338
|
}, get isObject() {
|
|
2319
|
-
return
|
|
2339
|
+
return ee;
|
|
2320
2340
|
}, get toJsonStr() {
|
|
2321
|
-
return
|
|
2341
|
+
return Pe;
|
|
2322
2342
|
}, get showMessage() {
|
|
2323
|
-
return
|
|
2343
|
+
return we;
|
|
2324
2344
|
} };
|
|
2325
|
-
return Object.defineProperty(
|
|
2345
|
+
return Object.defineProperty(C, "__isScriptSetup", { enumerable: !1, value: !0 }), C;
|
|
2326
2346
|
}
|
|
2327
2347
|
});
|
|
2328
|
-
function
|
|
2329
|
-
const c =
|
|
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");
|
|
2330
2350
|
return A(), W("div", { class: "panel-area" }, [
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
model:
|
|
2351
|
+
re("div", { class: "panel-condition" }, [
|
|
2352
|
+
E(_, {
|
|
2353
|
+
model: n.queryParams,
|
|
2334
2354
|
ref: "queryForm",
|
|
2335
2355
|
inline: !0
|
|
2336
2356
|
}, {
|
|
2337
2357
|
default: F(() => [
|
|
2338
|
-
|
|
2358
|
+
E(d, {
|
|
2339
2359
|
label: "缓存key",
|
|
2340
2360
|
prop: "id"
|
|
2341
2361
|
}, {
|
|
2342
2362
|
default: F(() => [
|
|
2343
|
-
|
|
2344
|
-
modelValue:
|
|
2345
|
-
"onUpdate:modelValue": o[0] || (o[0] = (
|
|
2363
|
+
E(c, {
|
|
2364
|
+
modelValue: n.queryParams.id,
|
|
2365
|
+
"onUpdate:modelValue": o[0] || (o[0] = (x) => n.queryParams.id = x),
|
|
2346
2366
|
placeholder: "请输入缓存key",
|
|
2347
2367
|
clearable: "",
|
|
2348
2368
|
style: { width: "240px" },
|
|
2349
|
-
onKeyup:
|
|
2369
|
+
onKeyup: sn(n.handleQuery, ["enter", "native"])
|
|
2350
2370
|
}, null, 8, ["modelValue"])
|
|
2351
2371
|
]),
|
|
2352
2372
|
_: 1
|
|
2353
2373
|
}),
|
|
2354
2374
|
j(),
|
|
2355
|
-
|
|
2375
|
+
E(d, {
|
|
2356
2376
|
label: "查询模式",
|
|
2357
2377
|
prop: "name"
|
|
2358
2378
|
}, {
|
|
2359
2379
|
default: F(() => [
|
|
2360
|
-
|
|
2361
|
-
modelValue:
|
|
2362
|
-
"onUpdate:modelValue": o[1] || (o[1] = (
|
|
2380
|
+
E(l, {
|
|
2381
|
+
modelValue: n.queryParams.fuzzyQry,
|
|
2382
|
+
"onUpdate:modelValue": o[1] || (o[1] = (x) => n.queryParams.fuzzyQry = x),
|
|
2363
2383
|
"active-text": "模糊",
|
|
2364
2384
|
"inactive-text": "精确"
|
|
2365
2385
|
}, null, 8, ["modelValue"])
|
|
@@ -2367,13 +2387,13 @@ function eo(n, o, r, t, u, a) {
|
|
|
2367
2387
|
_: 1
|
|
2368
2388
|
}),
|
|
2369
2389
|
j(),
|
|
2370
|
-
|
|
2390
|
+
E(d, null, {
|
|
2371
2391
|
default: F(() => [
|
|
2372
|
-
|
|
2392
|
+
E(p, {
|
|
2373
2393
|
type: "primary",
|
|
2374
2394
|
icon: "search",
|
|
2375
2395
|
size: "small",
|
|
2376
|
-
onClick:
|
|
2396
|
+
onClick: n.handleQuery
|
|
2377
2397
|
}, {
|
|
2378
2398
|
default: F(() => [
|
|
2379
2399
|
j("搜索")
|
|
@@ -2381,10 +2401,10 @@ function eo(n, o, r, t, u, a) {
|
|
|
2381
2401
|
_: 1
|
|
2382
2402
|
}),
|
|
2383
2403
|
j(),
|
|
2384
|
-
|
|
2404
|
+
E(p, {
|
|
2385
2405
|
icon: "refresh",
|
|
2386
2406
|
size: "small",
|
|
2387
|
-
onClick:
|
|
2407
|
+
onClick: n.resetQuery
|
|
2388
2408
|
}, {
|
|
2389
2409
|
default: F(() => [
|
|
2390
2410
|
j("重置")
|
|
@@ -2399,25 +2419,25 @@ function eo(n, o, r, t, u, a) {
|
|
|
2399
2419
|
}, 8, ["model"])
|
|
2400
2420
|
]),
|
|
2401
2421
|
j(),
|
|
2402
|
-
|
|
2422
|
+
re("div", { class: "panel-table" }, [
|
|
2403
2423
|
j(`\r
|
|
2404
2424
|
\r
|
|
2405
2425
|
`),
|
|
2406
|
-
|
|
2426
|
+
Te((A(), Q(v, {
|
|
2407
2427
|
ref: "resultTableRef",
|
|
2408
|
-
data:
|
|
2428
|
+
data: n.dataList,
|
|
2409
2429
|
stripe: "",
|
|
2410
2430
|
border: "",
|
|
2411
2431
|
"highlight-current-row": ""
|
|
2412
2432
|
}, {
|
|
2413
2433
|
default: F(() => [
|
|
2414
|
-
|
|
2434
|
+
E(y, {
|
|
2415
2435
|
type: "index",
|
|
2416
2436
|
align: "center",
|
|
2417
2437
|
width: "60"
|
|
2418
2438
|
}),
|
|
2419
2439
|
j(),
|
|
2420
|
-
|
|
2440
|
+
E(y, {
|
|
2421
2441
|
label: "缓存Key",
|
|
2422
2442
|
align: "center",
|
|
2423
2443
|
property: "key",
|
|
@@ -2425,7 +2445,7 @@ function eo(n, o, r, t, u, a) {
|
|
|
2425
2445
|
"min-width": "200"
|
|
2426
2446
|
}),
|
|
2427
2447
|
j(),
|
|
2428
|
-
|
|
2448
|
+
E(y, {
|
|
2429
2449
|
label: "缓存值",
|
|
2430
2450
|
align: "left",
|
|
2431
2451
|
property: "value",
|
|
@@ -2433,17 +2453,17 @@ function eo(n, o, r, t, u, a) {
|
|
|
2433
2453
|
"min-width": "400"
|
|
2434
2454
|
}),
|
|
2435
2455
|
j(),
|
|
2436
|
-
|
|
2456
|
+
E(y, {
|
|
2437
2457
|
label: "操作",
|
|
2438
2458
|
align: "center",
|
|
2439
2459
|
"show-overflow-tooltip": !0,
|
|
2440
2460
|
"min-width": "80"
|
|
2441
2461
|
}, {
|
|
2442
|
-
default: F((
|
|
2443
|
-
|
|
2462
|
+
default: F((x) => [
|
|
2463
|
+
E(p, {
|
|
2444
2464
|
link: "",
|
|
2445
2465
|
icon: "document",
|
|
2446
|
-
onClick: (P) =>
|
|
2466
|
+
onClick: (P) => n.handleCopyData(x.row)
|
|
2447
2467
|
}, {
|
|
2448
2468
|
default: F(() => [
|
|
2449
2469
|
j(`复制数据\r
|
|
@@ -2457,46 +2477,73 @@ function eo(n, o, r, t, u, a) {
|
|
|
2457
2477
|
]),
|
|
2458
2478
|
_: 1
|
|
2459
2479
|
}, 8, ["data"])), [
|
|
2460
|
-
[
|
|
2480
|
+
[w, n.loading]
|
|
2461
2481
|
]),
|
|
2462
2482
|
j(),
|
|
2463
|
-
|
|
2464
|
-
total:
|
|
2465
|
-
page:
|
|
2466
|
-
"onUpdate:page": o[2] || (o[2] = (
|
|
2467
|
-
limit:
|
|
2468
|
-
"onUpdate:limit": o[3] || (o[3] = (
|
|
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),
|
|
2469
2489
|
pageSizes: [15, 20, 30, 50],
|
|
2470
|
-
onPagination:
|
|
2490
|
+
onPagination: n.getList
|
|
2471
2491
|
}, null, 8, ["total", "page", "limit"]), [
|
|
2472
|
-
[ot,
|
|
2492
|
+
[ot, n.total > 0]
|
|
2473
2493
|
])
|
|
2474
2494
|
])
|
|
2475
2495
|
]);
|
|
2476
2496
|
}
|
|
2477
|
-
const
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
|
|
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,
|
|
2525
|
+
Nn,
|
|
2482
2526
|
Un,
|
|
2483
|
-
|
|
2527
|
+
ro,
|
|
2484
2528
|
Gn,
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
|
|
2488
|
-
|
|
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);
|
|
2489
2535
|
}));
|
|
2490
|
-
},
|
|
2491
|
-
install:
|
|
2536
|
+
}, _o = {
|
|
2537
|
+
install: Ne
|
|
2492
2538
|
};
|
|
2493
2539
|
export {
|
|
2494
|
-
|
|
2540
|
+
mo as CommonUtils,
|
|
2495
2541
|
nt as CreateCompContext,
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2542
|
+
go as MessageUtils,
|
|
2543
|
+
yo as createDynamicColor,
|
|
2544
|
+
je as createSmartAccessor,
|
|
2545
|
+
_o as default,
|
|
2546
|
+
ho as reCalcCanvasSize,
|
|
2547
|
+
Ce as useDataCacheStore,
|
|
2501
2548
|
tt as useEventHandler
|
|
2502
2549
|
};
|