yh-report 2.4.54 → 2.4.55
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/{StatementDesign-dd05a70b.mjs → StatementDesign-eee34e30.mjs} +461 -456
- package/StatementDesign-eee34e30.mjs.map +1 -0
- package/{StatementDetail-2709b21b.mjs → StatementDetail-8704c822.mjs} +2 -2
- package/{StatementDetail-2709b21b.mjs.map → StatementDetail-8704c822.mjs.map} +1 -1
- package/{StatementList-0de3ceff.mjs → StatementList-9a4c8bf6.mjs} +2 -2
- package/{StatementList-0de3ceff.mjs.map → StatementList-9a4c8bf6.mjs.map} +1 -1
- package/{index-f8ad9998.mjs → index-c5dca10e.mjs} +6 -6
- package/{index-f8ad9998.mjs.map → index-c5dca10e.mjs.map} +1 -1
- package/index.es.js +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/StatementDesign-dd05a70b.mjs.map +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { onMounted as yi, onUnmounted as Zn, ref as be, computed as $e, reactive as os, watch as li, toRaw as nd, defineComponent as Ie, useCssVars as sd, unref as f, resolveComponent as he, openBlock as A, createElementBlock as K, createElementVNode as q, normalizeStyle as et, Fragment as le, renderList as Ee, normalizeClass as yt, createCommentVNode as ae, createBlock as re, withCtx as y, createVNode as g, createTextVNode as
|
|
1
|
+
import { onMounted as yi, onUnmounted as Zn, ref as be, computed as $e, reactive as os, watch as li, toRaw as nd, defineComponent as Ie, useCssVars as sd, unref as f, resolveComponent as he, openBlock as A, createElementBlock as K, createElementVNode as q, normalizeStyle as et, Fragment as le, renderList as Ee, normalizeClass as yt, createCommentVNode as ae, createBlock as re, withCtx as y, createVNode as g, createTextVNode as z, toDisplayString as I, Teleport as pg, withModifiers as rd, nextTick as ts, pushScopeId as ld, popScopeId as ad, resolveDynamicComponent as mg, renderSlot as Yt, onActivated as od, onDeactivated as ud, mergeProps as cl, withDirectives as Ot, vShow as kt, isRef as gg, withKeys as _g } from "vue";
|
|
2
2
|
import { ElMessageBox as hd, ElMessage as Ni, ElEmpty as bg, ElDialog as cd, ElFormItem as Pe, ElInput as hi, ElSwitch as pn, ElButton as Ze, ElColorPicker as yg, ClickOutside as Qg, ElRadioGroup as Ys, ElRadioButton as lt, ElCheckbox as nn, ElForm as vg, ElTabs as fd, ElCollapse as Sg, ElCollapseItem as xg, ElTabPane as Gu } from "element-plus";
|
|
3
3
|
import { useRoute as jo, useRouter as $g } from "vue-router";
|
|
4
4
|
import { defineStore as wg, storeToRefs as Xt } from "pinia";
|
|
5
5
|
import { a as Pg } from "./editorLock-61ebf836.mjs";
|
|
6
|
-
import { C as ge, b as kg, c as Tg, s as Cg, e as Xg, F as qe, f as Rg, h as Zg, t as Vg, _ as fl, i as Ag, j as Da, k as Eg, r as X, D as gr, n as Yg, p as Mg, l as Fu, m as Ms, o as Hu, v as qg, q as dd, u as Dg, w as zg, T as Rl, x as Wg, I as Lg, y as jg } from "./index-
|
|
6
|
+
import { C as ge, b as kg, c as Tg, s as Cg, e as Xg, F as qe, f as Rg, h as Zg, t as Vg, _ as fl, i as Ag, j as Da, k as Eg, r as X, D as gr, n as Yg, p as Mg, l as Fu, m as Ms, o as Hu, v as qg, q as dd, u as Dg, w as zg, T as Rl, x as Wg, I as Lg, y as jg } from "./index-c5dca10e.mjs";
|
|
7
7
|
import { cloneDeep as at, set as qt, get as Ug } from "lodash-es";
|
|
8
8
|
import "@/libs/api.request.js";
|
|
9
9
|
import "echarts";
|
|
@@ -103,17 +103,17 @@ function Fg(n) {
|
|
|
103
103
|
function x(ie) {
|
|
104
104
|
k.splice(0), Y.value = -1, kg(ie).then(({ id: ne, name: ye, code: _e, description: L, remoteOptions: W }) => {
|
|
105
105
|
if (T.value.id = ne, T.value.name = ye, T.value.code = _e, T.value.description = L, T.value.options = W, W.length && W.length > 0) {
|
|
106
|
-
W.forEach((
|
|
107
|
-
|
|
106
|
+
W.forEach((F) => {
|
|
107
|
+
F.type === "report" && (!F.tableConfig && F.config && F.colConfig && F.rowConfig && (F.tableConfig = [], F.tableConfig.push({
|
|
108
108
|
// @ts-ignore
|
|
109
|
-
config: at(
|
|
109
|
+
config: at(F.config),
|
|
110
110
|
// @ts-ignore
|
|
111
|
-
rowConfig: at(
|
|
111
|
+
rowConfig: at(F.rowConfig),
|
|
112
112
|
// @ts-ignore
|
|
113
|
-
colConfig: at(
|
|
114
|
-
}), delete
|
|
113
|
+
colConfig: at(F.colConfig)
|
|
114
|
+
}), delete F.config, delete F.colConfig, delete F.rowConfig, hd.alert("旧版本报表数据转换完成,即将保存!").then(() => {
|
|
115
115
|
w();
|
|
116
|
-
})),
|
|
116
|
+
})), F = Tg(F));
|
|
117
117
|
});
|
|
118
118
|
let te = W.at(0);
|
|
119
119
|
te && (t.value = 0, e.value = te);
|
|
@@ -170,12 +170,12 @@ function Fg(n) {
|
|
|
170
170
|
h.value && (h.value = [...h.value]);
|
|
171
171
|
} else
|
|
172
172
|
e.value = null, t.value = null;
|
|
173
|
-
},
|
|
173
|
+
}, D = () => {
|
|
174
174
|
Y.value > 0 && (Z = !0, Y.value--, M());
|
|
175
175
|
}, U = () => {
|
|
176
176
|
Y.value < b.value - 1 && (Z = !0, Y.value++, M());
|
|
177
177
|
};
|
|
178
|
-
function
|
|
178
|
+
function G() {
|
|
179
179
|
T.value = {
|
|
180
180
|
id: void 0,
|
|
181
181
|
name: "",
|
|
@@ -187,7 +187,7 @@ function Fg(n) {
|
|
|
187
187
|
const J = be(!1);
|
|
188
188
|
return {
|
|
189
189
|
detail: T,
|
|
190
|
-
reset:
|
|
190
|
+
reset: G,
|
|
191
191
|
getDetail: x,
|
|
192
192
|
saveStatement: w,
|
|
193
193
|
active: e,
|
|
@@ -214,7 +214,7 @@ function Fg(n) {
|
|
|
214
214
|
history: k,
|
|
215
215
|
historyIndex: Y,
|
|
216
216
|
historyLength: b,
|
|
217
|
-
prevHistory:
|
|
217
|
+
prevHistory: D,
|
|
218
218
|
nextHistory: U
|
|
219
219
|
};
|
|
220
220
|
})();
|
|
@@ -284,7 +284,7 @@ const Zl = {}, vt = function() {
|
|
|
284
284
|
}
|
|
285
285
|
function O(x, w, k, Y = -1) {
|
|
286
286
|
if (Array.isArray(x))
|
|
287
|
-
return x.some((
|
|
287
|
+
return x.some((D) => O(D, w, k, Y));
|
|
288
288
|
if (x === null || typeof x != "object" || s.value !== e.tableIndex)
|
|
289
289
|
return !1;
|
|
290
290
|
const { type: b, col: P, row: Z, index: M } = x;
|
|
@@ -323,14 +323,14 @@ const Zl = {}, vt = function() {
|
|
|
323
323
|
var P, Z;
|
|
324
324
|
let x = ((P = a.value.rowConfig) == null ? void 0 : P.length) ?? 5, w = ((Z = a.value.colConfig) == null ? void 0 : Z.length) ?? 10, k = e.index === i.value && Array.isArray(l.value) ? [...l.value] : [], Y = [], b = [];
|
|
325
325
|
for (let M = 0; M < w + 1; M++) {
|
|
326
|
-
const
|
|
326
|
+
const D = O(k, ge.COL, M), { bindData: U, bindDataLoop: G } = Q(M - 1), J = D || !1;
|
|
327
327
|
let ie = {
|
|
328
328
|
text: d(M),
|
|
329
329
|
styleAttr: "",
|
|
330
330
|
class: "mouse-down-target head",
|
|
331
331
|
active: J,
|
|
332
332
|
bind: U,
|
|
333
|
-
loop:
|
|
333
|
+
loop: G,
|
|
334
334
|
type: ge.HEAD,
|
|
335
335
|
group: !1,
|
|
336
336
|
row: -1,
|
|
@@ -348,9 +348,9 @@ const Zl = {}, vt = function() {
|
|
|
348
348
|
cols: b
|
|
349
349
|
});
|
|
350
350
|
for (let M = 0; M < x; M++) {
|
|
351
|
-
const
|
|
351
|
+
const D = O(k, ge.ROW, M), U = [], G = {
|
|
352
352
|
type: ge.HEAD,
|
|
353
|
-
active:
|
|
353
|
+
active: D,
|
|
354
354
|
styleAttr: "",
|
|
355
355
|
class: "mouse-down-target head",
|
|
356
356
|
bind: !1,
|
|
@@ -362,33 +362,33 @@ const Zl = {}, vt = function() {
|
|
|
362
362
|
colSpan: 1,
|
|
363
363
|
rowSpan: 1
|
|
364
364
|
};
|
|
365
|
-
|
|
365
|
+
D && (G.class += " active"), U.push(G);
|
|
366
366
|
for (let _e = 0; _e < w; _e++) {
|
|
367
367
|
const L = O(k, ge.CELL, _e, M);
|
|
368
|
-
let { bindData: W, bindDataLoop: te } = Q(_e),
|
|
369
|
-
if (
|
|
368
|
+
let { bindData: W, bindDataLoop: te } = Q(_e), F = a.value.config && a.value.config[M] ? a.value.config[M][_e] : null;
|
|
369
|
+
if (F) {
|
|
370
370
|
let Oe = "", me = "", ve = ge.TEXT;
|
|
371
|
-
if (
|
|
372
|
-
ve =
|
|
373
|
-
let Se =
|
|
374
|
-
switch (
|
|
371
|
+
if (F && F.type) {
|
|
372
|
+
ve = F.type;
|
|
373
|
+
let Se = F.format && F.format !== qe.TEXT ? ` | ${F.format}` : "";
|
|
374
|
+
switch (F.type) {
|
|
375
375
|
case ge.TEXT:
|
|
376
|
-
|
|
376
|
+
F.text && (Oe = F.text + Se || "");
|
|
377
377
|
break;
|
|
378
378
|
case ge.FIELD:
|
|
379
|
-
|
|
379
|
+
F.data ? Oe = `\${${F.data}}${Se}` : F.format === qe.STRING && F.fun && (Oe = F.fun);
|
|
380
380
|
break;
|
|
381
381
|
case ge.FUN:
|
|
382
|
-
|
|
382
|
+
F.fun && (Oe = `=${F.fun}${Se}`);
|
|
383
383
|
break;
|
|
384
384
|
case ge.ICON:
|
|
385
|
-
|
|
385
|
+
F.text && (Oe = `Icon: ${F.text}`);
|
|
386
386
|
break;
|
|
387
387
|
case ge.IMAGE:
|
|
388
|
-
|
|
388
|
+
F.text && (Oe = `image: ${F.text}`);
|
|
389
389
|
break;
|
|
390
390
|
}
|
|
391
|
-
|
|
391
|
+
F.style && (me = Rg(F.style));
|
|
392
392
|
}
|
|
393
393
|
let Xe = {
|
|
394
394
|
text: `${Oe}`,
|
|
@@ -396,18 +396,18 @@ const Zl = {}, vt = function() {
|
|
|
396
396
|
styleAttr: me,
|
|
397
397
|
active: L,
|
|
398
398
|
bind: W,
|
|
399
|
-
group: !!
|
|
400
|
-
combine: !!
|
|
401
|
-
merge: !!
|
|
402
|
-
linkedMerge: !!
|
|
399
|
+
group: !!F.isGroup,
|
|
400
|
+
combine: !!F.isRowColCombine,
|
|
401
|
+
merge: !!F.isMergeSameCells,
|
|
402
|
+
linkedMerge: !!F.linkedMergeCell,
|
|
403
403
|
loop: !1,
|
|
404
404
|
type: ve,
|
|
405
405
|
col: _e,
|
|
406
406
|
row: M,
|
|
407
|
-
colSpan:
|
|
408
|
-
rowSpan:
|
|
407
|
+
colSpan: F.colSpan !== void 0 && !isNaN(F.colSpan) ? F.colSpan : 1,
|
|
408
|
+
rowSpan: F.rowSpan !== void 0 && !isNaN(F.rowSpan) ? F.rowSpan : 1
|
|
409
409
|
};
|
|
410
|
-
L && (Xe.class += " active"),
|
|
410
|
+
L && (Xe.class += " active"), F.style && F.style.border === !1 && (Xe.class += " no-border"), U.push(Xe);
|
|
411
411
|
}
|
|
412
412
|
}
|
|
413
413
|
const { bindData: J, bindDataLoop: ie } = m(M), ne = a.value.rowConfig[M], ye = ne.size;
|
|
@@ -481,9 +481,9 @@ const Zl = {}, vt = function() {
|
|
|
481
481
|
width: b == null ? void 0 : b.size
|
|
482
482
|
}, null, 8, Jg))), 256))
|
|
483
483
|
]),
|
|
484
|
-
(A(!0), K(le, null, Ee(f(_), ({ size: b, cols: P, bind: Z, loop: M, hidden:
|
|
484
|
+
(A(!0), K(le, null, Ee(f(_), ({ size: b, cols: P, bind: Z, loop: M, hidden: D, isComputed: U }, G) => (A(), K("tr", {
|
|
485
485
|
class: yt({
|
|
486
|
-
hidden:
|
|
486
|
+
hidden: D,
|
|
487
487
|
"is-computed": U
|
|
488
488
|
})
|
|
489
489
|
}, [
|
|
@@ -511,7 +511,7 @@ const Zl = {}, vt = function() {
|
|
|
511
511
|
J.type === "head" ? (A(), K(le, { key: 4 }, [
|
|
512
512
|
M || J.loop ? (A(), K("i", r_)) : ae("", !0),
|
|
513
513
|
Z || J.bind ? (A(), K("i", l_)) : ae("", !0),
|
|
514
|
-
|
|
514
|
+
G === 0 ? (A(), K(le, { key: 2 }, [
|
|
515
515
|
ie !== 0 ? (A(), K("div", {
|
|
516
516
|
key: 0,
|
|
517
517
|
class: "drag-bar mouse-move-target",
|
|
@@ -526,9 +526,9 @@ const Zl = {}, vt = function() {
|
|
|
526
526
|
"data-area": "rowheight",
|
|
527
527
|
"data-index": e.index,
|
|
528
528
|
"data-table": e.tableIndex,
|
|
529
|
-
"data-row":
|
|
529
|
+
"data-row": G - 1
|
|
530
530
|
}, null, 8, o_)) : ae("", !0),
|
|
531
|
-
|
|
531
|
+
G === 0 && ie === 0 ? (A(), re(Y, { key: 4 }, {
|
|
532
532
|
default: y(() => [
|
|
533
533
|
g(k, {
|
|
534
534
|
text: "",
|
|
@@ -537,7 +537,7 @@ const Zl = {}, vt = function() {
|
|
|
537
537
|
onClick: w[0] || (w[0] = (ne) => v(e.tableIndex))
|
|
538
538
|
}, {
|
|
539
539
|
default: y(() => [
|
|
540
|
-
|
|
540
|
+
z(" 主 ")
|
|
541
541
|
]),
|
|
542
542
|
_: 1
|
|
543
543
|
}, 8, ["type"]),
|
|
@@ -548,7 +548,7 @@ const Zl = {}, vt = function() {
|
|
|
548
548
|
onClick: w[1] || (w[1] = (ne) => E(e.tableIndex))
|
|
549
549
|
}, {
|
|
550
550
|
default: y(() => [
|
|
551
|
-
|
|
551
|
+
z(" 删 ")
|
|
552
552
|
]),
|
|
553
553
|
_: 1
|
|
554
554
|
}),
|
|
@@ -560,7 +560,7 @@ const Zl = {}, vt = function() {
|
|
|
560
560
|
onClick: w[2] || (w[2] = (ne) => $(e.tableIndex))
|
|
561
561
|
}, {
|
|
562
562
|
default: y(() => [
|
|
563
|
-
|
|
563
|
+
z(" ↑ ")
|
|
564
564
|
]),
|
|
565
565
|
_: 1
|
|
566
566
|
}, 8, ["disabled"]),
|
|
@@ -572,7 +572,7 @@ const Zl = {}, vt = function() {
|
|
|
572
572
|
onClick: w[3] || (w[3] = (ne) => T(e.tableIndex))
|
|
573
573
|
}, {
|
|
574
574
|
default: y(() => [
|
|
575
|
-
|
|
575
|
+
z(" ↓ ")
|
|
576
576
|
]),
|
|
577
577
|
_: 1
|
|
578
578
|
}, 8, ["disabled"])
|
|
@@ -580,7 +580,7 @@ const Zl = {}, vt = function() {
|
|
|
580
580
|
_: 1
|
|
581
581
|
})) : ae("", !0)
|
|
582
582
|
], 64)) : ae("", !0),
|
|
583
|
-
|
|
583
|
+
z(" " + I(J.text), 1)
|
|
584
584
|
], 4)
|
|
585
585
|
], 14, e_))), 256))
|
|
586
586
|
], 2))), 256))
|
|
@@ -595,14 +595,14 @@ function h_(n, e) {
|
|
|
595
595
|
if (!i.toObject || !i.url || !i.toObjectSetting)
|
|
596
596
|
return;
|
|
597
597
|
const s = i.url.toUpperCase(), r = i.toObjectSetting.length;
|
|
598
|
-
if (r <=
|
|
598
|
+
if (r <= 0)
|
|
599
599
|
return;
|
|
600
600
|
const l = n[s];
|
|
601
601
|
!l || typeof l != "object" || Od(t, l, s, r - 1, 0);
|
|
602
602
|
}), t;
|
|
603
603
|
}
|
|
604
604
|
function Od(n, e, t, i, s) {
|
|
605
|
-
if (s
|
|
605
|
+
if (s > i)
|
|
606
606
|
return;
|
|
607
607
|
const r = [], l = Object.keys(e);
|
|
608
608
|
for (const a of l)
|
|
@@ -615,7 +615,7 @@ function Od(n, e, t, i, s) {
|
|
|
615
615
|
}
|
|
616
616
|
}
|
|
617
617
|
}
|
|
618
|
-
const pd = (n) => (ld("data-v-
|
|
618
|
+
const pd = (n) => (ld("data-v-768f5fff"), n = n(), ad(), n), c_ = { class: "cell-input-container" }, f_ = /* @__PURE__ */ pd(() => /* @__PURE__ */ q("br", null, null, -1)), d_ = /* @__PURE__ */ pd(() => /* @__PURE__ */ q("span", { class: "toolbar-label" }, "文本 ?", -1)), O_ = ["onClick"], p_ = { class: "autocomplete-label" }, m_ = { class: "autocomplete-desc" }, g_ = /* @__PURE__ */ Ie({
|
|
619
619
|
__name: "cellInput",
|
|
620
620
|
props: {
|
|
621
621
|
cell: null
|
|
@@ -645,25 +645,25 @@ const pd = (n) => (ld("data-v-50856cf9"), n = n(), ad(), n), c_ = { class: "cell
|
|
|
645
645
|
{ label: "CUSUM(...)", insertText: "CUSUM()", desc: "累计求和", cursorOffset: -1 },
|
|
646
646
|
{ label: "ALLSUM(...)", insertText: "ALLSUM()", desc: "全部求和", cursorOffset: -1 }
|
|
647
647
|
], s = vt(), r = $e(() => {
|
|
648
|
-
const
|
|
649
|
-
return
|
|
648
|
+
const D = s.active;
|
|
649
|
+
return D && D.type === "report" ? D.data.source || [] : [];
|
|
650
650
|
}), l = be({});
|
|
651
651
|
async function a() {
|
|
652
|
-
const
|
|
653
|
-
if (
|
|
652
|
+
const D = r.value.filter((J) => J.toObject && J.url);
|
|
653
|
+
if (D.length === 0) {
|
|
654
654
|
l.value = {};
|
|
655
655
|
return;
|
|
656
656
|
}
|
|
657
657
|
const U = {};
|
|
658
|
-
for (const J of
|
|
658
|
+
for (const J of D)
|
|
659
659
|
try {
|
|
660
660
|
const ie = await Zg(J.url, { id: s.detail.id || "" });
|
|
661
661
|
U[J.key] = Array.isArray(ie.data) ? ie.data : [];
|
|
662
662
|
} catch {
|
|
663
663
|
U[J.key] = [];
|
|
664
664
|
}
|
|
665
|
-
const
|
|
666
|
-
l.value = h_(
|
|
665
|
+
const G = Vg(U, D);
|
|
666
|
+
l.value = h_(G, D);
|
|
667
667
|
}
|
|
668
668
|
li(r, () => {
|
|
669
669
|
a();
|
|
@@ -671,22 +671,22 @@ const pd = (n) => (ld("data-v-50856cf9"), n = n(), ad(), n), c_ = { class: "cell
|
|
|
671
671
|
const o = be(), u = be(!1), h = be([]), c = be(0), d = be(0), O = be(0), m = be({ top: "0px", left: "0px" });
|
|
672
672
|
let Q = null;
|
|
673
673
|
function p() {
|
|
674
|
-
const
|
|
675
|
-
if (!
|
|
674
|
+
const D = o.value;
|
|
675
|
+
if (!D)
|
|
676
676
|
return null;
|
|
677
|
-
const U =
|
|
678
|
-
return U.$el ? U.$el.querySelector("input, textarea") :
|
|
677
|
+
const U = D;
|
|
678
|
+
return U.$el ? U.$el.querySelector("input, textarea") : D;
|
|
679
679
|
}
|
|
680
680
|
function _() {
|
|
681
681
|
u.value = !1;
|
|
682
|
-
const
|
|
683
|
-
if (!
|
|
682
|
+
const D = p();
|
|
683
|
+
if (!D || !t.cell)
|
|
684
684
|
return;
|
|
685
|
-
const U =
|
|
686
|
-
J === ge.FUN ? v(
|
|
685
|
+
const U = D.selectionStart ?? 0, G = D.value, J = t.cell.type;
|
|
686
|
+
J === ge.FUN ? v(G, U) : J === ge.TEXT ? E(G, U) : J === ge.FIELD && $(G, U);
|
|
687
687
|
}
|
|
688
|
-
function v(
|
|
689
|
-
const J =
|
|
688
|
+
function v(D, U) {
|
|
689
|
+
const J = D.substring(0, U).match(/([A-Z_]+)$/i);
|
|
690
690
|
if (!J)
|
|
691
691
|
return;
|
|
692
692
|
const ie = J[1].toUpperCase(), ne = U - ie.length;
|
|
@@ -695,11 +695,11 @@ const pd = (n) => (ld("data-v-50856cf9"), n = n(), ad(), n), c_ = { class: "cell
|
|
|
695
695
|
const ye = i.filter((_e) => _e.insertText.replace(/\(.*$/, "").startsWith(ie));
|
|
696
696
|
ye.length > 0 && x(ye, ne, U);
|
|
697
697
|
}
|
|
698
|
-
function E(
|
|
699
|
-
const
|
|
698
|
+
function E(D, U) {
|
|
699
|
+
const G = D.substring(0, U), J = G.lastIndexOf("${");
|
|
700
700
|
if (J === -1)
|
|
701
701
|
return;
|
|
702
|
-
const ie =
|
|
702
|
+
const ie = G.substring(J + 2);
|
|
703
703
|
if (!ie.includes("}"))
|
|
704
704
|
if (ie.startsWith("=")) {
|
|
705
705
|
const ye = ie.substring(1).match(/([A-Z_]+)$/i);
|
|
@@ -713,13 +713,13 @@ const pd = (n) => (ld("data-v-50856cf9"), n = n(), ad(), n), c_ = { class: "cell
|
|
|
713
713
|
} else
|
|
714
714
|
T(ie, U, J + 2);
|
|
715
715
|
}
|
|
716
|
-
function $(
|
|
717
|
-
const
|
|
718
|
-
|
|
716
|
+
function $(D, U) {
|
|
717
|
+
const G = D.substring(0, U);
|
|
718
|
+
G.length !== 0 && T(G, U, 0);
|
|
719
719
|
}
|
|
720
|
-
function T(
|
|
720
|
+
function T(D, U, G) {
|
|
721
721
|
var ne;
|
|
722
|
-
const J =
|
|
722
|
+
const J = D.split("."), ie = J.length;
|
|
723
723
|
if (ie === 1) {
|
|
724
724
|
const ye = J[0];
|
|
725
725
|
if (ye.length === 0)
|
|
@@ -733,63 +733,63 @@ const pd = (n) => (ld("data-v-50856cf9"), n = n(), ad(), n), c_ = { class: "cell
|
|
|
733
733
|
desc: L.name || "",
|
|
734
734
|
cursorOffset: 0
|
|
735
735
|
}));
|
|
736
|
-
_e.length > 0 && x(_e,
|
|
736
|
+
_e.length > 0 && x(_e, G, U);
|
|
737
737
|
} else if (ie === 2) {
|
|
738
738
|
const ye = J[0], _e = r.value.find((te) => te.url === ye), L = ye.toUpperCase();
|
|
739
739
|
if (_e != null && _e.toObject && ((ne = l.value[L]) != null && ne.length)) {
|
|
740
740
|
const te = J[1];
|
|
741
741
|
if (te.length === 0) {
|
|
742
|
-
const
|
|
742
|
+
const F = l.value[L].map((Oe) => ({
|
|
743
743
|
label: Oe,
|
|
744
744
|
insertText: Oe + ".",
|
|
745
745
|
desc: "",
|
|
746
746
|
cursorOffset: 0
|
|
747
747
|
}));
|
|
748
|
-
|
|
748
|
+
F.length > 0 && x(F, G + D.length, U);
|
|
749
749
|
} else {
|
|
750
|
-
const
|
|
750
|
+
const F = l.value[L].filter((Oe) => Oe.toUpperCase().startsWith(te.toUpperCase())).map((Oe) => ({
|
|
751
751
|
label: Oe,
|
|
752
752
|
insertText: Oe + ".",
|
|
753
753
|
desc: "",
|
|
754
754
|
cursorOffset: 0
|
|
755
755
|
}));
|
|
756
|
-
if (
|
|
757
|
-
const Oe =
|
|
758
|
-
x(
|
|
756
|
+
if (F.length > 0) {
|
|
757
|
+
const Oe = G + D.length - te.length;
|
|
758
|
+
x(F, Oe, U);
|
|
759
759
|
}
|
|
760
760
|
}
|
|
761
761
|
return;
|
|
762
762
|
}
|
|
763
763
|
const W = J[1];
|
|
764
|
-
/^\d+$/.test(W) && !
|
|
764
|
+
/^\d+$/.test(W) && !D.endsWith(".") && x([{
|
|
765
765
|
label: ".",
|
|
766
766
|
insertText: ".",
|
|
767
767
|
desc: "继续输入字段",
|
|
768
768
|
cursorOffset: 0
|
|
769
|
-
}],
|
|
769
|
+
}], G + D.length, U);
|
|
770
770
|
} else if (ie >= 3) {
|
|
771
771
|
const ye = J[0], _e = r.value.find((L) => L.url === ye);
|
|
772
772
|
if (_e != null && _e.toObject) {
|
|
773
|
-
const L = ye.toUpperCase(), W = J.slice(1, -1), te = [L, ...W].join("."),
|
|
774
|
-
if (
|
|
773
|
+
const L = ye.toUpperCase(), W = J.slice(1, -1), te = [L, ...W].join("."), F = l.value[te];
|
|
774
|
+
if (F != null && F.length) {
|
|
775
775
|
const Oe = J[J.length - 1];
|
|
776
776
|
if (Oe.length === 0) {
|
|
777
|
-
const me =
|
|
777
|
+
const me = F.map((ve) => ({
|
|
778
778
|
label: ve,
|
|
779
779
|
insertText: ve + ".",
|
|
780
780
|
desc: "",
|
|
781
781
|
cursorOffset: 0
|
|
782
782
|
}));
|
|
783
|
-
me.length > 0 && x(me,
|
|
783
|
+
me.length > 0 && x(me, G + D.length, U);
|
|
784
784
|
} else {
|
|
785
|
-
const me =
|
|
785
|
+
const me = F.filter((ve) => ve.toUpperCase().startsWith(Oe.toUpperCase())).map((ve) => ({
|
|
786
786
|
label: ve,
|
|
787
787
|
insertText: ve + ".",
|
|
788
788
|
desc: "",
|
|
789
789
|
cursorOffset: 0
|
|
790
790
|
}));
|
|
791
791
|
if (me.length > 0) {
|
|
792
|
-
const ve =
|
|
792
|
+
const ve = G + D.length - Oe.length;
|
|
793
793
|
x(me, ve, U);
|
|
794
794
|
}
|
|
795
795
|
}
|
|
@@ -805,11 +805,11 @@ const pd = (n) => (ld("data-v-50856cf9"), n = n(), ad(), n), c_ = { class: "cell
|
|
|
805
805
|
desc: te.name || "",
|
|
806
806
|
cursorOffset: 0
|
|
807
807
|
}));
|
|
808
|
-
W.length > 0 && x(W,
|
|
808
|
+
W.length > 0 && x(W, G + D.length, U);
|
|
809
809
|
} else {
|
|
810
810
|
const W = _e.columns.filter((te) => {
|
|
811
|
-
var
|
|
812
|
-
return (
|
|
811
|
+
var F;
|
|
812
|
+
return (F = te.columnName) == null ? void 0 : F.toUpperCase().startsWith(L.toUpperCase());
|
|
813
813
|
}).map((te) => ({
|
|
814
814
|
label: te.columnName,
|
|
815
815
|
insertText: te.columnName,
|
|
@@ -817,21 +817,26 @@ const pd = (n) => (ld("data-v-50856cf9"), n = n(), ad(), n), c_ = { class: "cell
|
|
|
817
817
|
cursorOffset: 0
|
|
818
818
|
}));
|
|
819
819
|
if (W.length > 0) {
|
|
820
|
-
const te =
|
|
820
|
+
const te = G + D.length - L.length;
|
|
821
821
|
x(W, te, U);
|
|
822
822
|
}
|
|
823
823
|
}
|
|
824
824
|
}
|
|
825
825
|
}
|
|
826
826
|
}
|
|
827
|
-
function x(
|
|
828
|
-
|
|
827
|
+
function x(D, U, G) {
|
|
828
|
+
if (D.length === 1) {
|
|
829
|
+
const J = p();
|
|
830
|
+
if (J && J.value.substring(U, G) === D[0].insertText)
|
|
831
|
+
return;
|
|
832
|
+
}
|
|
833
|
+
h.value = D, c.value = 0, d.value = U, O.value = G, u.value = !0, w();
|
|
829
834
|
}
|
|
830
835
|
function w() {
|
|
831
|
-
const
|
|
832
|
-
if (!
|
|
836
|
+
const D = p();
|
|
837
|
+
if (!D)
|
|
833
838
|
return;
|
|
834
|
-
const U =
|
|
839
|
+
const U = D.getBoundingClientRect();
|
|
835
840
|
m.value = {
|
|
836
841
|
top: `${U.bottom + 4}px`,
|
|
837
842
|
left: `${U.left}px`
|
|
@@ -842,57 +847,57 @@ const pd = (n) => (ld("data-v-50856cf9"), n = n(), ad(), n), c_ = { class: "cell
|
|
|
842
847
|
_();
|
|
843
848
|
}, 200);
|
|
844
849
|
}
|
|
845
|
-
function Y(
|
|
850
|
+
function Y(D) {
|
|
846
851
|
if (u.value)
|
|
847
|
-
switch (
|
|
852
|
+
switch (D.key) {
|
|
848
853
|
case "ArrowDown":
|
|
849
|
-
|
|
854
|
+
D.preventDefault(), c.value = (c.value + 1) % h.value.length, b();
|
|
850
855
|
break;
|
|
851
856
|
case "ArrowUp":
|
|
852
|
-
|
|
857
|
+
D.preventDefault(), c.value = (c.value - 1 + h.value.length) % h.value.length, b();
|
|
853
858
|
break;
|
|
854
859
|
case "Enter":
|
|
855
860
|
case " ":
|
|
856
|
-
|
|
861
|
+
D.preventDefault(), P();
|
|
857
862
|
break;
|
|
858
863
|
case "Escape":
|
|
859
|
-
|
|
864
|
+
D.preventDefault(), u.value = !1;
|
|
860
865
|
break;
|
|
861
866
|
}
|
|
862
867
|
}
|
|
863
868
|
function b() {
|
|
864
869
|
ts(() => {
|
|
865
|
-
const
|
|
866
|
-
if (!
|
|
870
|
+
const D = document.querySelector(".autocomplete-popup");
|
|
871
|
+
if (!D)
|
|
867
872
|
return;
|
|
868
|
-
const
|
|
869
|
-
|
|
873
|
+
const G = D.querySelectorAll(".autocomplete-item")[c.value];
|
|
874
|
+
G && G.scrollIntoView({ block: "nearest" });
|
|
870
875
|
});
|
|
871
876
|
}
|
|
872
|
-
function P(
|
|
873
|
-
const U =
|
|
874
|
-
if (!
|
|
877
|
+
function P(D) {
|
|
878
|
+
const U = D ?? c.value, G = h.value[U];
|
|
879
|
+
if (!G)
|
|
875
880
|
return;
|
|
876
881
|
const J = p();
|
|
877
882
|
if (!J)
|
|
878
883
|
return;
|
|
879
|
-
const ie = J.value, ne = d.value, ye = O.value, _e = ie.substring(0, ne) +
|
|
884
|
+
const ie = J.value, ne = d.value, ye = O.value, _e = ie.substring(0, ne) + G.insertText + ie.substring(ye);
|
|
880
885
|
t.cell.type === ge.FUN ? t.cell.fun = _e : t.cell.type === ge.TEXT ? t.cell.text = _e : t.cell.type === ge.FIELD && (t.cell.data = _e), u.value = !1;
|
|
881
|
-
const L = ne +
|
|
886
|
+
const L = ne + G.insertText.length + G.cursorOffset;
|
|
882
887
|
ts(() => {
|
|
883
|
-
J.focus(), J.setSelectionRange(L, L);
|
|
888
|
+
J.focus(), J.setSelectionRange(L, L), _();
|
|
884
889
|
});
|
|
885
890
|
}
|
|
886
|
-
function Z(
|
|
891
|
+
function Z(D) {
|
|
887
892
|
if (!u.value)
|
|
888
893
|
return;
|
|
889
|
-
const U =
|
|
890
|
-
|
|
894
|
+
const U = D.target, G = document.querySelector(".cell-input-container");
|
|
895
|
+
G && !G.contains(U) && (u.value = !1);
|
|
891
896
|
}
|
|
892
897
|
function M() {
|
|
893
898
|
ts(() => {
|
|
894
|
-
const
|
|
895
|
-
|
|
899
|
+
const D = p();
|
|
900
|
+
D == null || D.focus();
|
|
896
901
|
});
|
|
897
902
|
}
|
|
898
903
|
return e({ focus: M }), li(
|
|
@@ -904,10 +909,10 @@ const pd = (n) => (ld("data-v-50856cf9"), n = n(), ad(), n), c_ = { class: "cell
|
|
|
904
909
|
document.addEventListener("mousedown", Z);
|
|
905
910
|
}), Zn(() => {
|
|
906
911
|
document.removeEventListener("mousedown", Z), Q && clearTimeout(Q);
|
|
907
|
-
}), (
|
|
908
|
-
const
|
|
912
|
+
}), (D, U) => {
|
|
913
|
+
const G = he("el-input"), J = he("el-tooltip");
|
|
909
914
|
return A(), K("div", c_, [
|
|
910
|
-
n.cell.type === f(ge).FUN ? (A(), re(
|
|
915
|
+
n.cell.type === f(ge).FUN ? (A(), re(G, {
|
|
911
916
|
key: 0,
|
|
912
917
|
ref_key: "inputRef",
|
|
913
918
|
ref: o,
|
|
@@ -917,7 +922,7 @@ const pd = (n) => (ld("data-v-50856cf9"), n = n(), ad(), n), c_ = { class: "cell
|
|
|
917
922
|
onKeydown: Y
|
|
918
923
|
}, {
|
|
919
924
|
prepend: y(() => [
|
|
920
|
-
|
|
925
|
+
z("=")
|
|
921
926
|
]),
|
|
922
927
|
_: 1
|
|
923
928
|
}, 8, ["modelValue"])) : n.cell.type === f(ge).TEXT ? (A(), K(le, { key: 1 }, [
|
|
@@ -926,16 +931,16 @@ const pd = (n) => (ld("data-v-50856cf9"), n = n(), ad(), n), c_ = { class: "cell
|
|
|
926
931
|
placement: "top-start"
|
|
927
932
|
}, {
|
|
928
933
|
content: y(() => [
|
|
929
|
-
|
|
934
|
+
z(" 支持数据插值 ${KEY} 和公式 ${=FORMULA} "),
|
|
930
935
|
f_,
|
|
931
|
-
|
|
936
|
+
z(" 例:总金额:${=SUM(A1:A10)} 元,名称:${NAME} ")
|
|
932
937
|
]),
|
|
933
938
|
default: y(() => [
|
|
934
939
|
d_
|
|
935
940
|
]),
|
|
936
941
|
_: 1
|
|
937
942
|
}),
|
|
938
|
-
g(
|
|
943
|
+
g(G, {
|
|
939
944
|
ref_key: "inputRef",
|
|
940
945
|
ref: o,
|
|
941
946
|
type: "textarea",
|
|
@@ -947,7 +952,7 @@ const pd = (n) => (ld("data-v-50856cf9"), n = n(), ad(), n), c_ = { class: "cell
|
|
|
947
952
|
onKeydown: Y,
|
|
948
953
|
placeholder: "输入固定文本,支持 ${KEY} 插值和 ${=FORMULA} 公式"
|
|
949
954
|
}, null, 8, ["modelValue"])
|
|
950
|
-
], 64)) : n.cell.type === f(ge).FIELD ? (A(), re(
|
|
955
|
+
], 64)) : n.cell.type === f(ge).FIELD ? (A(), re(G, {
|
|
951
956
|
key: 2,
|
|
952
957
|
ref_key: "inputRef",
|
|
953
958
|
ref: o,
|
|
@@ -959,10 +964,10 @@ const pd = (n) => (ld("data-v-50856cf9"), n = n(), ad(), n), c_ = { class: "cell
|
|
|
959
964
|
onKeydown: Y
|
|
960
965
|
}, {
|
|
961
966
|
prepend: y(() => [
|
|
962
|
-
|
|
967
|
+
z("${")
|
|
963
968
|
]),
|
|
964
969
|
append: y(() => [
|
|
965
|
-
|
|
970
|
+
z("}")
|
|
966
971
|
]),
|
|
967
972
|
_: 1
|
|
968
973
|
}, 8, ["modelValue", "disabled", "placeholder"])) : ae("", !0),
|
|
@@ -972,7 +977,7 @@ const pd = (n) => (ld("data-v-50856cf9"), n = n(), ad(), n), c_ = { class: "cell
|
|
|
972
977
|
class: "autocomplete-popup",
|
|
973
978
|
style: et(m.value),
|
|
974
979
|
onMousedown: U[3] || (U[3] = rd(() => {
|
|
975
|
-
}, ["prevent"]))
|
|
980
|
+
}, ["prevent", "stop"]))
|
|
976
981
|
}, [
|
|
977
982
|
(A(!0), K(le, null, Ee(h.value, (ie, ne) => (A(), K("div", {
|
|
978
983
|
key: ne,
|
|
@@ -988,7 +993,7 @@ const pd = (n) => (ld("data-v-50856cf9"), n = n(), ad(), n), c_ = { class: "cell
|
|
|
988
993
|
};
|
|
989
994
|
}
|
|
990
995
|
});
|
|
991
|
-
const __ = /* @__PURE__ */ fl(g_, [["__scopeId", "data-v-
|
|
996
|
+
const __ = /* @__PURE__ */ fl(g_, [["__scopeId", "data-v-768f5fff"]]), b_ = ["data-index"], y_ = {
|
|
992
997
|
class: "params-desinger desinger-container report-drop-target",
|
|
993
998
|
"data-source": "column",
|
|
994
999
|
"data-target": "params"
|
|
@@ -1027,12 +1032,12 @@ const __ = /* @__PURE__ */ fl(g_, [["__scopeId", "data-v-50856cf9"]]), b_ = ["da
|
|
|
1027
1032
|
get() {
|
|
1028
1033
|
var b;
|
|
1029
1034
|
return (b = c.value.params) == null ? void 0 : b.map((P) => {
|
|
1030
|
-
const { componentName: Z, placeholerPrefix: M, type:
|
|
1035
|
+
const { componentName: Z, placeholerPrefix: M, type: D } = Ag(P.dataType);
|
|
1031
1036
|
return {
|
|
1032
1037
|
...P,
|
|
1033
1038
|
componentName: Z,
|
|
1034
1039
|
placeholer: M + P.name,
|
|
1035
|
-
type:
|
|
1040
|
+
type: D
|
|
1036
1041
|
};
|
|
1037
1042
|
});
|
|
1038
1043
|
},
|
|
@@ -1045,10 +1050,10 @@ const __ = /* @__PURE__ */ fl(g_, [["__scopeId", "data-v-50856cf9"]]), b_ = ["da
|
|
|
1045
1050
|
if (P = P == null ? void 0 : P.closest(".del"), P && P.dataset) {
|
|
1046
1051
|
b.stopPropagation();
|
|
1047
1052
|
let { type: Z, index: M } = P.dataset;
|
|
1048
|
-
const
|
|
1049
|
-
if (!Number.isInteger(
|
|
1053
|
+
const D = Number(M);
|
|
1054
|
+
if (!Number.isInteger(D))
|
|
1050
1055
|
return;
|
|
1051
|
-
Z === "params" && c.value && Array.isArray(c.value.params) && c.value.params.splice(
|
|
1056
|
+
Z === "params" && c.value && Array.isArray(c.value.params) && c.value.params.splice(D, 1);
|
|
1052
1057
|
}
|
|
1053
1058
|
}
|
|
1054
1059
|
function _(b) {
|
|
@@ -1075,14 +1080,14 @@ const __ = /* @__PURE__ */ fl(g_, [["__scopeId", "data-v-50856cf9"]]), b_ = ["da
|
|
|
1075
1080
|
function w(b) {
|
|
1076
1081
|
var P, Z;
|
|
1077
1082
|
if (!b.target.classList.contains("drag-bar") && (P = b.target) != null && P.closest(".report-desinger-table-content")) {
|
|
1078
|
-
let { pageX: M, pageY:
|
|
1079
|
-
x = {}, x.x = M, x.y =
|
|
1083
|
+
let { pageX: M, pageY: D } = b, { x: U = 0, y: G = 0 } = ((Z = v.value) == null ? void 0 : Z.getBoundingClientRect()) || {};
|
|
1084
|
+
x = {}, x.x = M, x.y = D, x.tableX = U, x.tableY = G, T.left = M - U + "px", T.top = D - G + "px";
|
|
1080
1085
|
}
|
|
1081
1086
|
}
|
|
1082
1087
|
function k(b) {
|
|
1083
1088
|
if (x !== null) {
|
|
1084
|
-
let { pageX: P, pageY: Z } = b, { tableX: M, tableY:
|
|
1085
|
-
P > U ? T.width = P - U - 1 + "px" : (T.left = P - M + "px", T.width = U - P + "px"), Z >
|
|
1089
|
+
let { pageX: P, pageY: Z } = b, { tableX: M, tableY: D, x: U, y: G } = x;
|
|
1090
|
+
P > U ? T.width = P - U - 1 + "px" : (T.left = P - M + "px", T.width = U - P + "px"), Z > G ? T.height = Z - G - 1 + "px" : (T.top = Z - D + "px", T.height = G - Z + "px");
|
|
1086
1091
|
}
|
|
1087
1092
|
}
|
|
1088
1093
|
function Y(b) {
|
|
@@ -1094,7 +1099,7 @@ const __ = /* @__PURE__ */ fl(g_, [["__scopeId", "data-v-50856cf9"]]), b_ = ["da
|
|
|
1094
1099
|
var b;
|
|
1095
1100
|
(b = v.value) == null || b.removeEventListener("mousedown", w), document.removeEventListener("mousemove", k), document.removeEventListener("mouseup", Y);
|
|
1096
1101
|
}), (b, P) => {
|
|
1097
|
-
const Z = he("el-form-item"), M = he("el-form"),
|
|
1102
|
+
const Z = he("el-form-item"), M = he("el-form"), D = he("el-button");
|
|
1098
1103
|
return A(), K("div", {
|
|
1099
1104
|
class: yt(["yh-statement-table report-drop-target", { active: t.index === f(r) }]),
|
|
1100
1105
|
style: et(f(m)),
|
|
@@ -1107,15 +1112,15 @@ const __ = /* @__PURE__ */ fl(g_, [["__scopeId", "data-v-50856cf9"]]), b_ = ["da
|
|
|
1107
1112
|
q("div", y_, [
|
|
1108
1113
|
g(M, { inline: "" }, {
|
|
1109
1114
|
default: y(() => [
|
|
1110
|
-
(A(!0), K(le, null, Ee(f(Q), (U,
|
|
1111
|
-
class: yt(["params-desinger-item report-drag-source report-drop-target", { active:
|
|
1115
|
+
(A(!0), K(le, null, Ee(f(Q), (U, G) => (A(), re(Z, {
|
|
1116
|
+
class: yt(["params-desinger-item report-drag-source report-drop-target", { active: G === f(l) }]),
|
|
1112
1117
|
draggable: "true",
|
|
1113
1118
|
"data-drag": "params",
|
|
1114
1119
|
"data-source": "column",
|
|
1115
1120
|
"data-target": "params",
|
|
1116
1121
|
required: U.isNull,
|
|
1117
|
-
onClick: (J) => _(
|
|
1118
|
-
"data-index":
|
|
1122
|
+
onClick: (J) => _(G),
|
|
1123
|
+
"data-index": G,
|
|
1119
1124
|
label: U.name
|
|
1120
1125
|
}, {
|
|
1121
1126
|
default: y(() => [
|
|
@@ -1127,7 +1132,7 @@ const __ = /* @__PURE__ */ fl(g_, [["__scopeId", "data-v-50856cf9"]]), b_ = ["da
|
|
|
1127
1132
|
q("div", {
|
|
1128
1133
|
class: "del",
|
|
1129
1134
|
"data-type": "params",
|
|
1130
|
-
"data-index":
|
|
1135
|
+
"data-index": G,
|
|
1131
1136
|
onClick: p
|
|
1132
1137
|
}, S_, 8, Q_)
|
|
1133
1138
|
]),
|
|
@@ -1146,18 +1151,18 @@ const __ = /* @__PURE__ */ fl(g_, [["__scopeId", "data-v-50856cf9"]]), b_ = ["da
|
|
|
1146
1151
|
ref_key: "cellInputRef",
|
|
1147
1152
|
ref: d
|
|
1148
1153
|
}, null, 8, ["cell"])) : (A(), K(le, { key: 1 }, [
|
|
1149
|
-
|
|
1154
|
+
z(I(f(s).data || f(s).text), 1)
|
|
1150
1155
|
], 64))
|
|
1151
1156
|
], 64)) : ae("", !0)
|
|
1152
1157
|
]),
|
|
1153
|
-
(A(!0), K(le, null, Ee(f(c).tableConfig, (U,
|
|
1158
|
+
(A(!0), K(le, null, Ee(f(c).tableConfig, (U, G) => (A(), re(u_, {
|
|
1154
1159
|
"table-config": U,
|
|
1155
|
-
"table-index":
|
|
1160
|
+
"table-index": G,
|
|
1156
1161
|
index: t.index
|
|
1157
1162
|
}, null, 8, ["table-config", "table-index", "index"]))), 256))
|
|
1158
1163
|
]),
|
|
1159
1164
|
q("div", w_, [
|
|
1160
|
-
g(
|
|
1165
|
+
g(D, {
|
|
1161
1166
|
type: "primary",
|
|
1162
1167
|
disabled: t.index === 0,
|
|
1163
1168
|
onClick: P[0] || (P[0] = (U) => f(u)(t.index))
|
|
@@ -1167,7 +1172,7 @@ const __ = /* @__PURE__ */ fl(g_, [["__scopeId", "data-v-50856cf9"]]), b_ = ["da
|
|
|
1167
1172
|
]),
|
|
1168
1173
|
_: 1
|
|
1169
1174
|
}, 8, ["disabled"]),
|
|
1170
|
-
g(
|
|
1175
|
+
g(D, {
|
|
1171
1176
|
type: "primary",
|
|
1172
1177
|
disabled: t.index >= f(o).options.length - 1,
|
|
1173
1178
|
onClick: P[1] || (P[1] = (U) => f(h)(t.index))
|
|
@@ -1177,7 +1182,7 @@ const __ = /* @__PURE__ */ fl(g_, [["__scopeId", "data-v-50856cf9"]]), b_ = ["da
|
|
|
1177
1182
|
]),
|
|
1178
1183
|
_: 1
|
|
1179
1184
|
}, 8, ["disabled"]),
|
|
1180
|
-
g(
|
|
1185
|
+
g(D, {
|
|
1181
1186
|
type: "primary",
|
|
1182
1187
|
onClick: $
|
|
1183
1188
|
}, {
|
|
@@ -1494,18 +1499,18 @@ const K_ = /* @__PURE__ */ Ie({
|
|
|
1494
1499
|
let k = w.target.closest(".mouse-move-target");
|
|
1495
1500
|
if (k) {
|
|
1496
1501
|
let { area: Y, index: b, row: P, col: Z, table: M } = k.dataset;
|
|
1497
|
-
const
|
|
1498
|
-
Y && U > -1 && (_ = { droparea: Y, index: U, table:
|
|
1502
|
+
const D = Number(b), U = isNaN(D) ? -1 : D, G = M ? parseInt(M) : -1;
|
|
1503
|
+
Y && U > -1 && (_ = { droparea: Y, index: U, table: G }, P && _ && (_.rindex = parseInt(P)), Z && _ && (_.cindex = parseInt(Z)));
|
|
1499
1504
|
} else {
|
|
1500
1505
|
let Y = w.target.closest(".mouse-down-target");
|
|
1501
1506
|
if (Y) {
|
|
1502
|
-
let { area: b, index: P, col: Z, row: M, table:
|
|
1503
|
-
const J = Number(P), ie = isNaN(J) ? -1 : J, ne =
|
|
1504
|
-
b && ie > -1 && (b === ge.HEAD && (U > -1 ? b = ge.COL :
|
|
1507
|
+
let { area: b, index: P, col: Z, row: M, table: D } = Y.dataset, U = Z ? parseInt(Z) : -1, G = M ? parseInt(M) : -1;
|
|
1508
|
+
const J = Number(P), ie = isNaN(J) ? -1 : J, ne = D ? parseInt(D) : -1;
|
|
1509
|
+
b && ie > -1 && (b === ge.HEAD && (U > -1 ? b = ge.COL : G > -1 && (b = ge.ROW)), _ = {
|
|
1505
1510
|
droparea: b,
|
|
1506
1511
|
index: ie,
|
|
1507
1512
|
table: ne,
|
|
1508
|
-
rindex:
|
|
1513
|
+
rindex: G,
|
|
1509
1514
|
cindex: U
|
|
1510
1515
|
});
|
|
1511
1516
|
}
|
|
@@ -1513,10 +1518,10 @@ const K_ = /* @__PURE__ */ Ie({
|
|
|
1513
1518
|
}
|
|
1514
1519
|
function E(w) {
|
|
1515
1520
|
if (_) {
|
|
1516
|
-
let { index: k, droparea: Y, rindex: b, cindex: P, table: Z } = _, M = m.value[k], { movementX:
|
|
1521
|
+
let { index: k, droparea: Y, rindex: b, cindex: P, table: Z } = _, M = m.value[k], { movementX: D, movementY: U, target: G } = w;
|
|
1517
1522
|
switch (Y) {
|
|
1518
1523
|
case "tableposition":
|
|
1519
|
-
M.type === "line" && ((!M.left || isNaN(M.left)) && (M.left = 0), (!M.top || isNaN(M.top)) && (M.top = 0), M.left = M.left +
|
|
1524
|
+
M.type === "line" && ((!M.left || isNaN(M.left)) && (M.left = 0), (!M.top || isNaN(M.top)) && (M.top = 0), M.left = M.left + D, M.top = M.top + U);
|
|
1520
1525
|
break;
|
|
1521
1526
|
case "tableheight":
|
|
1522
1527
|
if (M.type === "report") {
|
|
@@ -1526,7 +1531,7 @@ const K_ = /* @__PURE__ */ Ie({
|
|
|
1526
1531
|
break;
|
|
1527
1532
|
case "tablewidth":
|
|
1528
1533
|
if (M.type === "report" && M.widthType === "%") {
|
|
1529
|
-
let J = M.width +
|
|
1534
|
+
let J = M.width + D;
|
|
1530
1535
|
J >= 600 && (M.width = J);
|
|
1531
1536
|
}
|
|
1532
1537
|
break;
|
|
@@ -1534,7 +1539,7 @@ const K_ = /* @__PURE__ */ Ie({
|
|
|
1534
1539
|
P !== void 0 && !isNaN(P) && Z !== void 0 && M.type === "report" && (Array.isArray(M.tableConfig[Z].colConfig) || (M.tableConfig[Z].colConfig = []), M.tableConfig[Z].colConfig[P] || (M.tableConfig[Z].colConfig[P] = {
|
|
1535
1540
|
size: 80,
|
|
1536
1541
|
index: P
|
|
1537
|
-
}), isNaN(M.tableConfig[Z].colConfig[P].size) && (M.tableConfig[Z].colConfig[P].size = 80), M.tableConfig[Z].colConfig[P].size +=
|
|
1542
|
+
}), isNaN(M.tableConfig[Z].colConfig[P].size) && (M.tableConfig[Z].colConfig[P].size = 80), M.tableConfig[Z].colConfig[P].size += D);
|
|
1538
1543
|
break;
|
|
1539
1544
|
case "rowheight":
|
|
1540
1545
|
b !== void 0 && !isNaN(b) && Z !== void 0 && M.type === "report" && (Array.isArray(M.tableConfig[Z].rowConfig) || (M.tableConfig[Z].rowConfig = []), M.tableConfig[Z].rowConfig[b] || (M.tableConfig[Z].rowConfig[b] = {
|
|
@@ -1549,12 +1554,12 @@ const K_ = /* @__PURE__ */ Ie({
|
|
|
1549
1554
|
let k = w.target.closest(".mouse-down-target");
|
|
1550
1555
|
if (k && _) {
|
|
1551
1556
|
let { area: Y, index: b, col: P, row: Z, table: M } = k.dataset;
|
|
1552
|
-
const
|
|
1553
|
-
let
|
|
1557
|
+
const D = b ? parseInt(b) : -1, U = M ? parseInt(M) : -1;
|
|
1558
|
+
let G = P ? parseInt(P) : -1, J = Z ? parseInt(Z) : -1;
|
|
1554
1559
|
a.value = U, u.value = null;
|
|
1555
1560
|
let { droparea: ie, index: ne, table: ye, rindex: _e, cindex: L } = _;
|
|
1556
|
-
if (ie === Y && ne ===
|
|
1557
|
-
let [W, te] = [L,
|
|
1561
|
+
if (ie === Y && ne === D && ye === U && L !== void 0 && L > -1 && _e !== void 0 && _e > -1 && U !== void 0) {
|
|
1562
|
+
let [W, te] = [L, G].sort((Se, N) => Se - N), [F, Oe] = [_e, J].sort((Se, N) => Se - N), me = l.value.config[Oe][te];
|
|
1558
1563
|
if (me.rowSpan !== void 0 && me.rowSpan > 1 && (Oe = Oe + me.rowSpan - 1), me.colSpan !== void 0 && me.colSpan > 1 && (te = te + me.colSpan - 1), me.colSpan === 0 || me.rowSpan === 0 || me.mergeTarget !== void 0) {
|
|
1559
1564
|
let [Se, N] = me.mergeTarget, C = l.value.config[Se][N];
|
|
1560
1565
|
if (C) {
|
|
@@ -1564,25 +1569,25 @@ const K_ = /* @__PURE__ */ Ie({
|
|
|
1564
1569
|
}
|
|
1565
1570
|
const ve = w.ctrlKey;
|
|
1566
1571
|
let Xe = ve && o.value ? [...o.value] : [];
|
|
1567
|
-
for (let Se =
|
|
1572
|
+
for (let Se = F; Se <= Oe; Se++)
|
|
1568
1573
|
for (let N = W; N <= te; N++)
|
|
1569
1574
|
ve && Xe.some((ee) => ee.col === N && ee.row === Se) || Xe.push({
|
|
1570
1575
|
type: ge.CELL,
|
|
1571
|
-
index:
|
|
1576
|
+
index: D,
|
|
1572
1577
|
table: U,
|
|
1573
1578
|
col: N,
|
|
1574
1579
|
row: Se
|
|
1575
1580
|
});
|
|
1576
1581
|
a.value = U, o.value = Xe;
|
|
1577
1582
|
} else if ([ge.COL, ge.ROW].includes(ie) && (L !== void 0 && L > -1 || _e !== void 0 && _e > -1) && U !== void 0) {
|
|
1578
|
-
let W = [], [te,
|
|
1583
|
+
let W = [], [te, F] = [L, G].sort(), [Oe, me] = [_e, J].sort();
|
|
1579
1584
|
switch (ie) {
|
|
1580
1585
|
case ge.COL:
|
|
1581
|
-
te !== void 0 &&
|
|
1582
|
-
for (let Se = te; Se <=
|
|
1586
|
+
te !== void 0 && F !== void 0 && F > -1 && l.value && l.value.config.forEach((ve, Xe) => {
|
|
1587
|
+
for (let Se = te; Se <= F; Se++)
|
|
1583
1588
|
W.push({
|
|
1584
1589
|
type: ge.CELL,
|
|
1585
|
-
index:
|
|
1590
|
+
index: D,
|
|
1586
1591
|
table: U,
|
|
1587
1592
|
col: Se,
|
|
1588
1593
|
row: Xe
|
|
@@ -1595,7 +1600,7 @@ const K_ = /* @__PURE__ */ Ie({
|
|
|
1595
1600
|
for (let Xe = 0; Xe < l.value.colConfig.length; Xe++)
|
|
1596
1601
|
W.push({
|
|
1597
1602
|
type: ge.ROW,
|
|
1598
|
-
index:
|
|
1603
|
+
index: D,
|
|
1599
1604
|
table: U,
|
|
1600
1605
|
col: Xe,
|
|
1601
1606
|
row: ve
|
|
@@ -1965,7 +1970,7 @@ const t0 = { class: "chart-series-wrapper" }, i0 = ["data-drag", "data-index"],
|
|
|
1965
1970
|
label: f(X)("参数名")
|
|
1966
1971
|
}, {
|
|
1967
1972
|
default: y(() => [
|
|
1968
|
-
|
|
1973
|
+
z(I(f(t).columnName), 1)
|
|
1969
1974
|
]),
|
|
1970
1975
|
_: 1
|
|
1971
1976
|
}, 8, ["label"])
|
|
@@ -2188,19 +2193,19 @@ const t0 = { class: "chart-series-wrapper" }, i0 = ["data-drag", "data-index"],
|
|
|
2188
2193
|
placement: "top-start"
|
|
2189
2194
|
}, {
|
|
2190
2195
|
content: y(() => [
|
|
2191
|
-
|
|
2196
|
+
z(I(f(X)("日期或日期范围开始时间,默认 当前时间 - 时间段,以下假设当前时间为 2025-07-01 12:00:00")) + " ", 1),
|
|
2192
2197
|
c0,
|
|
2193
|
-
|
|
2198
|
+
z(" " + I(f(X)("y/年;Q/季度;M/月;w/周;d/日;h/时;m/分;s/秒;ms/毫秒")) + " ", 1),
|
|
2194
2199
|
f0,
|
|
2195
|
-
|
|
2200
|
+
z(" " + I(f(X)("传入 h,m,s 就相当于 基于当前时间 - 1小时 2025-07-01 11:00:00 可以调换顺序,可以省略其中的一个部分")) + " ", 1),
|
|
2196
2201
|
d0,
|
|
2197
|
-
|
|
2202
|
+
z(" " + I(f(X)("传入 h-1 就相当于 前一天的 2025-07-01 10:00:00")) + " ", 1),
|
|
2198
2203
|
O0,
|
|
2199
|
-
|
|
2204
|
+
z(" " + I(f(X)("传入 h+1 就相当于 前一天的 2025-07-01 12:00:00")) + " ", 1),
|
|
2200
2205
|
p0,
|
|
2201
|
-
|
|
2206
|
+
z(" " + I(f(X)("传入 h+1,m+30 就相当于 2025-07-01 12:30:00")) + " ", 1),
|
|
2202
2207
|
m0,
|
|
2203
|
-
|
|
2208
|
+
z(" " + I(f(X)("传入 1,30,0 就相当于 2025-07-01 01:30:00")), 1)
|
|
2204
2209
|
]),
|
|
2205
2210
|
default: y(() => [
|
|
2206
2211
|
q("span", g0, I(f(X)("开始时间(当前时间 - 时间段)")), 1)
|
|
@@ -2230,9 +2235,9 @@ const t0 = { class: "chart-series-wrapper" }, i0 = ["data-drag", "data-index"],
|
|
|
2230
2235
|
placement: "top-start"
|
|
2231
2236
|
}, {
|
|
2232
2237
|
content: y(() => [
|
|
2233
|
-
|
|
2238
|
+
z(I(f(X)("日期或日期范围结束时间,默认 基于当前时间")) + " ", 1),
|
|
2234
2239
|
_0,
|
|
2235
|
-
|
|
2240
|
+
z(" " + I(f(X)("规则同上")), 1)
|
|
2236
2241
|
]),
|
|
2237
2242
|
default: y(() => [
|
|
2238
2243
|
q("span", b0, I(f(X)("结束时间(当前时间)")), 1)
|
|
@@ -2263,19 +2268,19 @@ const t0 = { class: "chart-series-wrapper" }, i0 = ["data-drag", "data-index"],
|
|
|
2263
2268
|
placement: "top-start"
|
|
2264
2269
|
}, {
|
|
2265
2270
|
content: y(() => [
|
|
2266
|
-
|
|
2271
|
+
z(I(f(X)("日期或日期范围开始时间,默认 00:00:00")) + " ", 1),
|
|
2267
2272
|
y0,
|
|
2268
|
-
|
|
2273
|
+
z(" " + I(f(X)("y/年;Q/季度;M/月;w/周;d/日;h/时;m/分;s/秒;ms/毫秒")) + " ", 1),
|
|
2269
2274
|
Q0,
|
|
2270
|
-
|
|
2275
|
+
z(" " + I(f(X)("传入 h,m,s 就相当于 00:00:00 可以调换顺序,可以省略其中的一个部分")) + " ", 1),
|
|
2271
2276
|
v0,
|
|
2272
|
-
|
|
2277
|
+
z(" " + I(f(X)("传入 h-1 就相当于 前一天的 23:00:00")) + " ", 1),
|
|
2273
2278
|
S0,
|
|
2274
|
-
|
|
2279
|
+
z(" " + I(f(X)("传入 h+1 就相当于 前一天的 01:00:00")) + " ", 1),
|
|
2275
2280
|
x0,
|
|
2276
|
-
|
|
2281
|
+
z(" " + I(f(X)("传入 h+1,m+30 就相当于 01:30:00")) + " ", 1),
|
|
2277
2282
|
$0,
|
|
2278
|
-
|
|
2283
|
+
z(" " + I(f(X)("传入 1,30,0 就相当于 01:30:00")), 1)
|
|
2279
2284
|
]),
|
|
2280
2285
|
default: y(() => [
|
|
2281
2286
|
q("span", w0, I(f(X)("开始时间(00:00:00)")), 1)
|
|
@@ -2305,9 +2310,9 @@ const t0 = { class: "chart-series-wrapper" }, i0 = ["data-drag", "data-index"],
|
|
|
2305
2310
|
placement: "top-start"
|
|
2306
2311
|
}, {
|
|
2307
2312
|
content: y(() => [
|
|
2308
|
-
|
|
2313
|
+
z(I(f(X)("日期或日期范围结束时间,默认 23:59:59")) + " ", 1),
|
|
2309
2314
|
P0,
|
|
2310
|
-
|
|
2315
|
+
z(" " + I(f(X)("规则同上")), 1)
|
|
2311
2316
|
]),
|
|
2312
2317
|
default: y(() => [
|
|
2313
2318
|
q("span", k0, I(f(X)("结束时间(23:59:59)")), 1)
|
|
@@ -2449,7 +2454,7 @@ const t0 = { class: "chart-series-wrapper" }, i0 = ["data-drag", "data-index"],
|
|
|
2449
2454
|
"onUpdate:modelValue": o[16] || (o[16] = (p) => f(t).cellIndexSortNumeric = p)
|
|
2450
2455
|
}, {
|
|
2451
2456
|
default: y(() => [
|
|
2452
|
-
|
|
2457
|
+
z("以数字大小排序")
|
|
2453
2458
|
]),
|
|
2454
2459
|
_: 1
|
|
2455
2460
|
}, 8, ["modelValue"])
|
|
@@ -11450,22 +11455,22 @@ function z1(n, e, t) {
|
|
|
11450
11455
|
}
|
|
11451
11456
|
function E(T, x, w) {
|
|
11452
11457
|
let k = 1e9, Y = -1e9, b = [];
|
|
11453
|
-
function P(
|
|
11454
|
-
let ne = n.coordsAtPos(
|
|
11458
|
+
function P(D, U, G, J, ie) {
|
|
11459
|
+
let ne = n.coordsAtPos(D, D == w.to ? -2 : 2), ye = n.coordsAtPos(G, G == w.from ? 2 : -2);
|
|
11455
11460
|
!ne || !ye || (k = Math.min(ne.top, ye.top, k), Y = Math.max(ne.bottom, ye.bottom, Y), ie == ze.LTR ? b.push(r && U ? c : ne.left, r && J ? d : ye.right) : b.push(!r && J ? c : ye.left, !r && U ? d : ne.right));
|
|
11456
11461
|
}
|
|
11457
11462
|
let Z = T ?? w.from, M = x ?? w.to;
|
|
11458
|
-
for (let
|
|
11459
|
-
if (
|
|
11460
|
-
for (let U = Math.max(
|
|
11463
|
+
for (let D of n.visibleRanges)
|
|
11464
|
+
if (D.to > Z && D.from < M)
|
|
11465
|
+
for (let U = Math.max(D.from, Z), G = Math.min(D.to, M); ; ) {
|
|
11461
11466
|
let J = n.state.doc.lineAt(U);
|
|
11462
11467
|
for (let ie of n.bidiSpans(J)) {
|
|
11463
11468
|
let ne = ie.from + J.from, ye = ie.to + J.from;
|
|
11464
|
-
if (ne >=
|
|
11469
|
+
if (ne >= G)
|
|
11465
11470
|
break;
|
|
11466
|
-
ye > U && P(Math.max(ne, U), T == null && ne <= Z, Math.min(ye,
|
|
11471
|
+
ye > U && P(Math.max(ne, U), T == null && ne <= Z, Math.min(ye, G), x == null && ye >= M, ie.dir);
|
|
11467
11472
|
}
|
|
11468
|
-
if (U = J.to + 1, U >=
|
|
11473
|
+
if (U = J.to + 1, U >= G)
|
|
11469
11474
|
break;
|
|
11470
11475
|
}
|
|
11471
11476
|
return b.length == 0 && P(Z, T == null, M, x == null, n.textDirection), { top: k, bottom: Y, horizontal: b };
|
|
@@ -14053,20 +14058,20 @@ function Ny(n) {
|
|
|
14053
14058
|
var e;
|
|
14054
14059
|
let { buffer: t, nodeSet: i, maxBufferLength: s = zO, reused: r = [], minRepeatType: l = i.types.length } = n, a = Array.isArray(t) ? new cu(t, t.length) : t, o = i.types, u = 0, h = 0;
|
|
14055
14060
|
function c(T, x, w, k, Y, b) {
|
|
14056
|
-
let { id: P, start: Z, end: M, size:
|
|
14057
|
-
if (
|
|
14058
|
-
if (a.next(),
|
|
14061
|
+
let { id: P, start: Z, end: M, size: D } = a, U = h, G = u;
|
|
14062
|
+
if (D < 0)
|
|
14063
|
+
if (a.next(), D == -1) {
|
|
14059
14064
|
let _e = r[P];
|
|
14060
14065
|
w.push(_e), k.push(Z - T);
|
|
14061
14066
|
return;
|
|
14062
|
-
} else if (
|
|
14067
|
+
} else if (D == -3) {
|
|
14063
14068
|
u = P;
|
|
14064
14069
|
return;
|
|
14065
|
-
} else if (
|
|
14070
|
+
} else if (D == -4) {
|
|
14066
14071
|
h = P;
|
|
14067
14072
|
return;
|
|
14068
14073
|
} else
|
|
14069
|
-
throw new RangeError(`Unrecognized record size: ${
|
|
14074
|
+
throw new RangeError(`Unrecognized record size: ${D}`);
|
|
14070
14075
|
let J = o[P], ie, ne, ye = Z - T;
|
|
14071
14076
|
if (M - Z <= s && (ne = p(a.pos - x, Y))) {
|
|
14072
14077
|
let _e = new Uint16Array(ne.size - ne.skip), L = a.pos - ne.size, W = _e.length;
|
|
@@ -14074,35 +14079,35 @@ function Ny(n) {
|
|
|
14074
14079
|
W = _(ne.start, _e, W);
|
|
14075
14080
|
ie = new Xi(_e, M - ne.start, i), ye = ne.start - T;
|
|
14076
14081
|
} else {
|
|
14077
|
-
let _e = a.pos -
|
|
14082
|
+
let _e = a.pos - D;
|
|
14078
14083
|
a.next();
|
|
14079
|
-
let L = [], W = [], te = P >= l ? P : -1,
|
|
14084
|
+
let L = [], W = [], te = P >= l ? P : -1, F = 0, Oe = M;
|
|
14080
14085
|
for (; a.pos > _e; )
|
|
14081
|
-
te >= 0 && a.id == te && a.size >= 0 ? (a.end <= Oe - s && (m(L, W, Z,
|
|
14082
|
-
if (te >= 0 &&
|
|
14083
|
-
let me = O(J,
|
|
14086
|
+
te >= 0 && a.id == te && a.size >= 0 ? (a.end <= Oe - s && (m(L, W, Z, F, a.end, Oe, te, U, G), F = L.length, Oe = a.end), a.next()) : b > 2500 ? d(Z, _e, L, W) : c(Z, _e, L, W, te, b + 1);
|
|
14087
|
+
if (te >= 0 && F > 0 && F < L.length && m(L, W, Z, F, Z, Oe, te, U, G), L.reverse(), W.reverse(), te > -1 && F > 0) {
|
|
14088
|
+
let me = O(J, G);
|
|
14084
14089
|
ie = du(J, L, W, 0, L.length, 0, M - Z, me, me);
|
|
14085
14090
|
} else
|
|
14086
|
-
ie = Q(J, L, W, M - Z, U - M,
|
|
14091
|
+
ie = Q(J, L, W, M - Z, U - M, G);
|
|
14087
14092
|
}
|
|
14088
14093
|
w.push(ie), k.push(ye);
|
|
14089
14094
|
}
|
|
14090
14095
|
function d(T, x, w, k) {
|
|
14091
14096
|
let Y = [], b = 0, P = -1;
|
|
14092
14097
|
for (; a.pos > x; ) {
|
|
14093
|
-
let { id: Z, start: M, end:
|
|
14098
|
+
let { id: Z, start: M, end: D, size: U } = a;
|
|
14094
14099
|
if (U > 4)
|
|
14095
14100
|
a.next();
|
|
14096
14101
|
else {
|
|
14097
14102
|
if (P > -1 && M < P)
|
|
14098
14103
|
break;
|
|
14099
|
-
P < 0 && (P =
|
|
14104
|
+
P < 0 && (P = D - s), Y.push(Z, M, D), b++, a.next();
|
|
14100
14105
|
}
|
|
14101
14106
|
}
|
|
14102
14107
|
if (b) {
|
|
14103
14108
|
let Z = new Uint16Array(b * 4), M = Y[Y.length - 2];
|
|
14104
|
-
for (let
|
|
14105
|
-
Z[U++] = Y[
|
|
14109
|
+
for (let D = Y.length - 3, U = 0; D >= 0; D -= 3)
|
|
14110
|
+
Z[U++] = Y[D], Z[U++] = Y[D + 1] - M, Z[U++] = Y[D + 2] - M, Z[U++] = U;
|
|
14106
14111
|
w.push(new Xi(Z, Y[2] - M, i)), k.push(M - T);
|
|
14107
14112
|
}
|
|
14108
14113
|
}
|
|
@@ -14118,10 +14123,10 @@ function Ny(n) {
|
|
|
14118
14123
|
};
|
|
14119
14124
|
}
|
|
14120
14125
|
function m(T, x, w, k, Y, b, P, Z, M) {
|
|
14121
|
-
let
|
|
14126
|
+
let D = [], U = [];
|
|
14122
14127
|
for (; T.length > k; )
|
|
14123
|
-
|
|
14124
|
-
T.push(Q(i.types[P],
|
|
14128
|
+
D.push(T.pop()), U.push(x.pop() + w - Y);
|
|
14129
|
+
T.push(Q(i.types[P], D, U, b - Y, Z - b, M)), x.push(Y - w);
|
|
14125
14130
|
}
|
|
14126
14131
|
function Q(T, x, w, k, Y, b, P) {
|
|
14127
14132
|
if (b) {
|
|
@@ -14138,26 +14143,26 @@ function Ny(n) {
|
|
|
14138
14143
|
let w = a.fork(), k = 0, Y = 0, b = 0, P = w.end - s, Z = { size: 0, start: 0, skip: 0 };
|
|
14139
14144
|
e:
|
|
14140
14145
|
for (let M = w.pos - T; w.pos > M; ) {
|
|
14141
|
-
let
|
|
14142
|
-
if (w.id == x &&
|
|
14146
|
+
let D = w.size;
|
|
14147
|
+
if (w.id == x && D >= 0) {
|
|
14143
14148
|
Z.size = k, Z.start = Y, Z.skip = b, b += 4, k += 4, w.next();
|
|
14144
14149
|
continue;
|
|
14145
14150
|
}
|
|
14146
|
-
let U = w.pos -
|
|
14147
|
-
if (
|
|
14151
|
+
let U = w.pos - D;
|
|
14152
|
+
if (D < 0 || U < M || w.start < P)
|
|
14148
14153
|
break;
|
|
14149
|
-
let
|
|
14154
|
+
let G = w.id >= l ? 4 : 0, J = w.start;
|
|
14150
14155
|
for (w.next(); w.pos > U; ) {
|
|
14151
14156
|
if (w.size < 0)
|
|
14152
14157
|
if (w.size == -3 || w.size == -4)
|
|
14153
|
-
|
|
14158
|
+
G += 4;
|
|
14154
14159
|
else
|
|
14155
14160
|
break e;
|
|
14156
14161
|
else
|
|
14157
|
-
w.id >= l && (
|
|
14162
|
+
w.id >= l && (G += 4);
|
|
14158
14163
|
w.next();
|
|
14159
14164
|
}
|
|
14160
|
-
Y = J, k +=
|
|
14165
|
+
Y = J, k += D, b += G;
|
|
14161
14166
|
}
|
|
14162
14167
|
return (x < 0 || k == T) && (Z.size = k, Z.start = Y, Z.skip = b), Z.size > 4 ? Z : void 0;
|
|
14163
14168
|
}
|
|
@@ -25319,8 +25324,8 @@ function dr() {
|
|
|
25319
25324
|
var k = "", Y = this.__patterns.xml.read_match();
|
|
25320
25325
|
if (Y) {
|
|
25321
25326
|
for (var b = Y[2].replace(/^{\s+/, "{").replace(/\s+}$/, "}"), P = b.indexOf("{") === 0, Z = 0; Y; ) {
|
|
25322
|
-
var M = !!Y[1],
|
|
25323
|
-
if (!U && (
|
|
25327
|
+
var M = !!Y[1], D = Y[2], U = !!Y[Y.length - 1] || D.slice(0, 8) === "![CDATA[";
|
|
25328
|
+
if (!U && (D === b || P && D.replace(/^{\s+/, "{").replace(/\s+}$/, "}")) && (M ? --Z : ++Z), k += Y[0], Z <= 0)
|
|
25324
25329
|
break;
|
|
25325
25330
|
Y = this.__patterns.xml.read_match();
|
|
25326
25331
|
}
|
|
@@ -25428,8 +25433,8 @@ function Vk() {
|
|
|
25428
25433
|
return !0;
|
|
25429
25434
|
}
|
|
25430
25435
|
function w(b, P) {
|
|
25431
|
-
for (var Z = 0, M = b.length,
|
|
25432
|
-
if (
|
|
25436
|
+
for (var Z = 0, M = b.length, D; Z < M; Z++)
|
|
25437
|
+
if (D = b[Z], D && D.indexOf(P) !== 0)
|
|
25433
25438
|
return !1;
|
|
25434
25439
|
return !0;
|
|
25435
25440
|
}
|
|
@@ -25491,14 +25496,14 @@ function Vk() {
|
|
|
25491
25496
|
}, k.prototype.handle_whitespace_and_comments = function(b, P) {
|
|
25492
25497
|
var Z = b.newlines, M = this._options.keep_array_indentation && $(this._flags.mode);
|
|
25493
25498
|
if (b.comments_before)
|
|
25494
|
-
for (var
|
|
25495
|
-
this.handle_whitespace_and_comments(
|
|
25499
|
+
for (var D = b.comments_before.next(); D; )
|
|
25500
|
+
this.handle_whitespace_and_comments(D, P), this.handle_token(D, P), D = b.comments_before.next();
|
|
25496
25501
|
if (M)
|
|
25497
25502
|
for (var U = 0; U < Z; U += 1)
|
|
25498
25503
|
this.print_newline(U > 0, P);
|
|
25499
25504
|
else if (this._options.max_preserve_newlines && Z > this._options.max_preserve_newlines && (Z = this._options.max_preserve_newlines), this._options.preserve_newlines && Z > 1) {
|
|
25500
25505
|
this.print_newline(!1, P);
|
|
25501
|
-
for (var
|
|
25506
|
+
for (var G = 1; G < Z; G += 1)
|
|
25502
25507
|
this.print_newline(!0, P);
|
|
25503
25508
|
}
|
|
25504
25509
|
};
|
|
@@ -25507,8 +25512,8 @@ function Vk() {
|
|
|
25507
25512
|
if (P = P === void 0 ? !1 : P, !this._output.just_added_newline()) {
|
|
25508
25513
|
var Z = this._options.preserve_newlines && b.newlines || P, M = o(this._flags.last_token.text, l) || o(b.text, l);
|
|
25509
25514
|
if (M) {
|
|
25510
|
-
var
|
|
25511
|
-
Z = Z &&
|
|
25515
|
+
var D = o(this._flags.last_token.text, l) && o(this._options.operator_position, p) || o(b.text, l);
|
|
25516
|
+
Z = Z && D;
|
|
25512
25517
|
}
|
|
25513
25518
|
if (Z)
|
|
25514
25519
|
this.print_newline(!1, !0);
|
|
@@ -25588,18 +25593,18 @@ function Vk() {
|
|
|
25588
25593
|
this.handle_whitespace_and_comments(b);
|
|
25589
25594
|
var P = this._tokens.peek(), Z = this._tokens.peek(1);
|
|
25590
25595
|
this._flags.last_word === "switch" && this._flags.last_token.type === a.END_EXPR ? (this.set_mode(_.BlockStatement), this._flags.in_case_statement = !0) : this._flags.case_body ? this.set_mode(_.BlockStatement) : Z && (o(Z.text, [":", ","]) && o(P.type, [a.STRING, a.WORD, a.RESERVED]) || o(P.text, ["get", "set", "..."]) && o(Z.type, [a.WORD, a.RESERVED])) ? o(this._last_last_text, ["class", "interface"]) && !o(Z.text, [":", ","]) ? this.set_mode(_.BlockStatement) : this.set_mode(_.ObjectLiteral) : this._flags.last_token.type === a.OPERATOR && this._flags.last_token.text === "=>" ? this.set_mode(_.BlockStatement) : o(this._flags.last_token.type, [a.EQUALS, a.START_EXPR, a.COMMA, a.OPERATOR]) || d(this._flags.last_token, ["return", "throw", "import", "default"]) ? this.set_mode(_.ObjectLiteral) : this.set_mode(_.BlockStatement), this._flags.last_token && d(this._flags.last_token.previous, ["class", "extends"]) && (this._flags.class_start_block = !0);
|
|
25591
|
-
var M = !P.comments_before && P.text === "}",
|
|
25596
|
+
var M = !P.comments_before && P.text === "}", D = M && this._flags.last_word === "function" && this._flags.last_token.type === a.END_EXPR;
|
|
25592
25597
|
if (this._options.brace_preserve_inline) {
|
|
25593
|
-
var U = 0,
|
|
25598
|
+
var U = 0, G = null;
|
|
25594
25599
|
this._flags.inline_frame = !0;
|
|
25595
25600
|
do
|
|
25596
|
-
if (U += 1,
|
|
25601
|
+
if (U += 1, G = this._tokens.peek(U - 1), G.newlines) {
|
|
25597
25602
|
this._flags.inline_frame = !1;
|
|
25598
25603
|
break;
|
|
25599
25604
|
}
|
|
25600
|
-
while (
|
|
25605
|
+
while (G.type !== a.EOF && !(G.type === a.END_BLOCK && G.opened === b));
|
|
25601
25606
|
}
|
|
25602
|
-
(this._options.brace_style === "expand" || this._options.brace_style === "none" && b.newlines) && !this._flags.inline_frame ? this._flags.last_token.type !== a.OPERATOR && (
|
|
25607
|
+
(this._options.brace_style === "expand" || this._options.brace_style === "none" && b.newlines) && !this._flags.inline_frame ? this._flags.last_token.type !== a.OPERATOR && (D || this._flags.last_token.type === a.EQUALS || d(this._flags.last_token, O) && this._flags.last_token.text !== "else") ? this._output.space_before_token = !0 : this.print_newline(!1, !0) : ($(this._previous_flags.mode) && (this._flags.last_token.type === a.START_EXPR || this._flags.last_token.type === a.COMMA) && ((this._flags.last_token.type === a.COMMA || this._options.space_in_paren) && (this._output.space_before_token = !0), (this._flags.last_token.type === a.COMMA || this._flags.last_token.type === a.START_EXPR && this._flags.inline_frame) && (this.allow_wrap_or_preserved_newline(b), this._previous_flags.multiline_frame = this._previous_flags.multiline_frame || this._flags.multiline_frame, this._flags.multiline_frame = !1)), this._flags.last_token.type !== a.OPERATOR && this._flags.last_token.type !== a.START_EXPR && (o(this._flags.last_token.type, [a.START_BLOCK, a.SEMICOLON]) && !this._flags.inline_frame ? this.print_newline() : this._output.space_before_token = !0)), this.print_token(b), this.indent(), !M && !(this._options.brace_preserve_inline && this._flags.inline_frame) && this.print_newline();
|
|
25603
25608
|
}, k.prototype.handle_end_block = function(b) {
|
|
25604
25609
|
for (this.handle_whitespace_and_comments(b); this._flags.mode === _.Statement; )
|
|
25605
25610
|
this.restore_mode();
|
|
@@ -25686,9 +25691,9 @@ function Vk() {
|
|
|
25686
25691
|
this.print_token(b), this._flags.in_case = !1, this._flags.case_body = !0, this._tokens.peek().type !== a.START_BLOCK ? (this.indent(), this.print_newline(), this._flags.case_block = !1) : (this._flags.case_block = !0, this._output.space_before_token = !0);
|
|
25687
25692
|
return;
|
|
25688
25693
|
}
|
|
25689
|
-
var
|
|
25690
|
-
if (b.text === ":" ? this._flags.ternary_depth === 0 ?
|
|
25691
|
-
var J = b.text === ":", ie = J &&
|
|
25694
|
+
var D = !0, U = !0, G = !1;
|
|
25695
|
+
if (b.text === ":" ? this._flags.ternary_depth === 0 ? D = !1 : (this._flags.ternary_depth -= 1, G = !0) : b.text === "?" && (this._flags.ternary_depth += 1), !Z && !P && this._options.preserve_newlines && o(b.text, l)) {
|
|
25696
|
+
var J = b.text === ":", ie = J && G, ne = J && !G;
|
|
25692
25697
|
switch (this._options.operator_position) {
|
|
25693
25698
|
case Q.before_newline:
|
|
25694
25699
|
this._output.space_before_token = !ne, this.print_token(b), (!J || ie) && this.allow_wrap_or_preserved_newline(b), this._output.space_before_token = !0;
|
|
@@ -25697,24 +25702,24 @@ function Vk() {
|
|
|
25697
25702
|
this._output.space_before_token = !0, !J || ie ? this._tokens.peek().newlines ? this.print_newline(!1, !0) : this.allow_wrap_or_preserved_newline(b) : this._output.space_before_token = !1, this.print_token(b), this._output.space_before_token = !0;
|
|
25698
25703
|
return;
|
|
25699
25704
|
case Q.preserve_newline:
|
|
25700
|
-
ne || this.allow_wrap_or_preserved_newline(b),
|
|
25705
|
+
ne || this.allow_wrap_or_preserved_newline(b), D = !(this._output.just_added_newline() || ne), this._output.space_before_token = D, this.print_token(b), this._output.space_before_token = !0;
|
|
25701
25706
|
return;
|
|
25702
25707
|
}
|
|
25703
25708
|
}
|
|
25704
25709
|
if (P) {
|
|
25705
|
-
this.allow_wrap_or_preserved_newline(b),
|
|
25710
|
+
this.allow_wrap_or_preserved_newline(b), D = !1;
|
|
25706
25711
|
var ye = this._tokens.peek();
|
|
25707
25712
|
U = ye && o(ye.type, [a.WORD, a.RESERVED]);
|
|
25708
25713
|
} else if (b.text === "...")
|
|
25709
|
-
this.allow_wrap_or_preserved_newline(b),
|
|
25714
|
+
this.allow_wrap_or_preserved_newline(b), D = this._flags.last_token.type === a.START_BLOCK, U = !1;
|
|
25710
25715
|
else if (o(b.text, ["--", "++", "!", "~"]) || Z) {
|
|
25711
|
-
if ((this._flags.last_token.type === a.COMMA || this._flags.last_token.type === a.START_EXPR) && this.allow_wrap_or_preserved_newline(b),
|
|
25716
|
+
if ((this._flags.last_token.type === a.COMMA || this._flags.last_token.type === a.START_EXPR) && this.allow_wrap_or_preserved_newline(b), D = !1, U = !1, b.newlines && (b.text === "--" || b.text === "++" || b.text === "~")) {
|
|
25712
25717
|
var _e = d(this._flags.last_token, O) && b.newlines;
|
|
25713
25718
|
_e && (this._previous_flags.if_block || this._previous_flags.else_block) && this.restore_mode(), this.print_newline(_e, !0);
|
|
25714
25719
|
}
|
|
25715
|
-
this._flags.last_token.text === ";" && T(this._flags.mode) && (
|
|
25720
|
+
this._flags.last_token.text === ";" && T(this._flags.mode) && (D = !0), this._flags.last_token.type === a.RESERVED ? D = !0 : this._flags.last_token.type === a.END_EXPR ? D = !(this._flags.last_token.text === "]" && (b.text === "--" || b.text === "++")) : this._flags.last_token.type === a.OPERATOR && (D = o(b.text, ["--", "-", "++", "+"]) && o(this._flags.last_token.text, ["--", "-", "++", "+"]), o(b.text, ["+", "-"]) && o(this._flags.last_token.text, ["--", "++"]) && (U = !0)), (this._flags.mode === _.BlockStatement && !this._flags.inline_frame || this._flags.mode === _.Statement) && (this._flags.last_token.text === "{" || this._flags.last_token.text === ";") && this.print_newline();
|
|
25716
25721
|
}
|
|
25717
|
-
this._output.space_before_token = this._output.space_before_token ||
|
|
25722
|
+
this._output.space_before_token = this._output.space_before_token || D, this.print_token(b), this._output.space_before_token = U;
|
|
25718
25723
|
}, k.prototype.handle_block_comment = function(b, P) {
|
|
25719
25724
|
if (this._output.raw) {
|
|
25720
25725
|
this._output.add_raw_token(b), b.directives && b.directives.preserve === "end" && (this._output.raw = this._options.test_output_raw);
|
|
@@ -25730,10 +25735,10 @@ function Vk() {
|
|
|
25730
25735
|
} else
|
|
25731
25736
|
this.print_block_commment(b, P);
|
|
25732
25737
|
}, k.prototype.print_block_commment = function(b, P) {
|
|
25733
|
-
var Z = E(b.text), M,
|
|
25738
|
+
var Z = E(b.text), M, D = !1, U = !1, G = b.whitespace_before, J = G.length;
|
|
25734
25739
|
if (this.print_newline(!1, P), this.print_token_line_indentation(b), this._output.add_token(Z[0]), this.print_newline(!1, P), Z.length > 1) {
|
|
25735
|
-
for (Z = Z.slice(1),
|
|
25736
|
-
|
|
25740
|
+
for (Z = Z.slice(1), D = x(Z, "*"), U = w(Z, G), D && (this._flags.alignment = 1), M = 0; M < Z.length; M++)
|
|
25741
|
+
D ? (this.print_token_line_indentation(b), this._output.add_token(u(Z[M]))) : U && Z[M] ? (this.print_token_line_indentation(b), this._output.add_token(Z[M].substring(J))) : (this._output.current_line.set_indent(-1), this._output.add_token(Z[M])), this.print_newline(!1, P);
|
|
25737
25742
|
this._flags.alignment = 0;
|
|
25738
25743
|
}
|
|
25739
25744
|
}, k.prototype.handle_comment = function(b, P) {
|
|
@@ -25881,8 +25886,8 @@ function Ek() {
|
|
|
25881
25886
|
else if (this._ch === "}")
|
|
25882
25887
|
this.outdent(), this._output.add_new_line(), Y === "{" && this._output.trim(!0), _ && (this.outdent(), _ = !1), this.print_string(this._ch), p = !1, this._nestedLevel && this._nestedLevel--, this.eatWhitespace(!0), this._output.add_new_line(), this._options.newline_between_rules && !this._output.just_added_blankline() && this._input.peek() !== "}" && this._output.add_new_line(!0), this._input.peek() === ")" && (this._output.trim(!0), this._options.brace_style === "expand" && this._output.add_new_line(!0));
|
|
25883
25888
|
else if (this._ch === ":") {
|
|
25884
|
-
for (var
|
|
25885
|
-
if (this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[
|
|
25889
|
+
for (var D = 0; D < this.NON_SEMICOLON_NEWLINE_PROPERTY.length; D++)
|
|
25890
|
+
if (this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[D])) {
|
|
25886
25891
|
x = !0;
|
|
25887
25892
|
break;
|
|
25888
25893
|
}
|
|
@@ -25896,8 +25901,8 @@ function Ek() {
|
|
|
25896
25901
|
if (this._input.lookBack("url"))
|
|
25897
25902
|
this.print_string(this._ch), this.eatWhitespace(), Q++, this.indent(), this._ch = this._input.next(), this._ch === ")" || this._ch === '"' || this._ch === "'" ? this._input.back() : this._ch && (this.print_string(this._ch + this.eatString(")")), Q && (Q--, this.outdent()));
|
|
25898
25903
|
else {
|
|
25899
|
-
var
|
|
25900
|
-
this._input.lookBack("with") && (
|
|
25904
|
+
var G = !1;
|
|
25905
|
+
this._input.lookBack("with") && (G = !0), this.preserveSingleSpace(k || G), this.print_string(this._ch), _ && Y === "$" && this._options.selector_separator_newline ? (this._output.add_new_line(), $ = !0) : (this.eatWhitespace(), Q++, this.indent());
|
|
25901
25906
|
}
|
|
25902
25907
|
else if (this._ch === ")")
|
|
25903
25908
|
Q && (Q--, this.outdent()), $ && this._input.peek() === ";" && this._options.selector_separator_newline && ($ = !1, this.outdent(), this._output.add_new_line()), this.print_string(this._ch);
|
|
@@ -26318,9 +26323,9 @@ function Mk() {
|
|
|
26318
26323
|
var E = this;
|
|
26319
26324
|
if (_.text !== "") {
|
|
26320
26325
|
var $ = _.text, T, x = 1, w = "", k = "";
|
|
26321
|
-
v.custom_beautifier_name === "javascript" && typeof this._js_beautify == "function" ? T = this._js_beautify : v.custom_beautifier_name === "css" && typeof this._css_beautify == "function" ? T = this._css_beautify : v.custom_beautifier_name === "html" && (T = function(
|
|
26322
|
-
var
|
|
26323
|
-
return
|
|
26326
|
+
v.custom_beautifier_name === "javascript" && typeof this._js_beautify == "function" ? T = this._js_beautify : v.custom_beautifier_name === "css" && typeof this._css_beautify == "function" ? T = this._css_beautify : v.custom_beautifier_name === "html" && (T = function(D, U) {
|
|
26327
|
+
var G = new d(D, U, E._js_beautify, E._css_beautify);
|
|
26328
|
+
return G.beautify();
|
|
26324
26329
|
}), this._options.indent_scripts === "keep" ? x = 0 : this._options.indent_scripts === "separate" && (x = -p.indent_level);
|
|
26325
26330
|
var Y = p.get_full_indent(x);
|
|
26326
26331
|
if ($ = $.replace(/\n[ \t]*$/, ""), v.custom_beautifier_name !== "html" && $[0] === "<" && $.match(/^(<!--|<!\[CDATA\[)/)) {
|
|
@@ -26664,7 +26669,7 @@ const Uk = { class: "script-editor-wrapper" }, Ik = { class: "script-preview" },
|
|
|
26664
26669
|
onClick: rd(o, ["stop"])
|
|
26665
26670
|
}, {
|
|
26666
26671
|
default: y(() => [
|
|
26667
|
-
|
|
26672
|
+
z(I(f(X)("编辑脚本")), 1)
|
|
26668
26673
|
]),
|
|
26669
26674
|
_: 1
|
|
26670
26675
|
}, 8, ["onClick"])
|
|
@@ -26688,7 +26693,7 @@ const Uk = { class: "script-editor-wrapper" }, Ik = { class: "script-preview" },
|
|
|
26688
26693
|
onClick: d[0] || (d[0] = (p) => s.value = !s.value)
|
|
26689
26694
|
}, {
|
|
26690
26695
|
default: y(() => [
|
|
26691
|
-
|
|
26696
|
+
z(I(s.value ? f(X)("退出全屏") : f(X)("全屏")), 1)
|
|
26692
26697
|
]),
|
|
26693
26698
|
_: 1
|
|
26694
26699
|
}),
|
|
@@ -26698,7 +26703,7 @@ const Uk = { class: "script-editor-wrapper" }, Ik = { class: "script-preview" },
|
|
|
26698
26703
|
onClick: h
|
|
26699
26704
|
}, {
|
|
26700
26705
|
default: y(() => [
|
|
26701
|
-
|
|
26706
|
+
z(I(f(X)("清空")), 1)
|
|
26702
26707
|
]),
|
|
26703
26708
|
_: 1
|
|
26704
26709
|
}),
|
|
@@ -26707,7 +26712,7 @@ const Uk = { class: "script-editor-wrapper" }, Ik = { class: "script-preview" },
|
|
|
26707
26712
|
onClick: d[1] || (d[1] = (p) => i.value = !1)
|
|
26708
26713
|
}, {
|
|
26709
26714
|
default: y(() => [
|
|
26710
|
-
|
|
26715
|
+
z(I(f(X)("关闭")), 1)
|
|
26711
26716
|
]),
|
|
26712
26717
|
_: 1
|
|
26713
26718
|
})
|
|
@@ -26720,7 +26725,7 @@ const Uk = { class: "script-editor-wrapper" }, Ik = { class: "script-preview" },
|
|
|
26720
26725
|
onClick: d[3] || (d[3] = (p) => i.value = !1)
|
|
26721
26726
|
}, {
|
|
26722
26727
|
default: y(() => [
|
|
26723
|
-
|
|
26728
|
+
z(I(f(X)("取消")), 1)
|
|
26724
26729
|
]),
|
|
26725
26730
|
_: 1
|
|
26726
26731
|
}),
|
|
@@ -26729,7 +26734,7 @@ const Uk = { class: "script-editor-wrapper" }, Ik = { class: "script-preview" },
|
|
|
26729
26734
|
onClick: u
|
|
26730
26735
|
}, {
|
|
26731
26736
|
default: y(() => [
|
|
26732
|
-
|
|
26737
|
+
z(I(f(X)("确定")), 1)
|
|
26733
26738
|
]),
|
|
26734
26739
|
_: 1
|
|
26735
26740
|
})
|
|
@@ -26743,10 +26748,10 @@ const Uk = { class: "script-editor-wrapper" }, Ik = { class: "script-preview" },
|
|
|
26743
26748
|
"onUpdate:modelValue": d[2] || (d[2] = (p) => r.value = p)
|
|
26744
26749
|
}, {
|
|
26745
26750
|
"pre-code": y(() => [
|
|
26746
|
-
|
|
26751
|
+
z(I(n.preCode), 1)
|
|
26747
26752
|
]),
|
|
26748
26753
|
"next-code": y(() => [
|
|
26749
|
-
|
|
26754
|
+
z(I(n.nextCode), 1)
|
|
26750
26755
|
]),
|
|
26751
26756
|
_: 1
|
|
26752
26757
|
}, 8, ["height", "modelValue"])
|
|
@@ -26914,7 +26919,7 @@ const eT = /* @__PURE__ */ fl(Jk, [["__scopeId", "data-v-565db38a"]]), tT = { cl
|
|
|
26914
26919
|
const we = r.value.config[ce][R];
|
|
26915
26920
|
we.colSpan = 1, we.rowSpan = 1, we.mergeTarget = void 0;
|
|
26916
26921
|
}
|
|
26917
|
-
}),
|
|
26922
|
+
}), G();
|
|
26918
26923
|
}
|
|
26919
26924
|
}
|
|
26920
26925
|
function Z() {
|
|
@@ -26932,11 +26937,11 @@ const eT = /* @__PURE__ */ fl(Jk, [["__scopeId", "data-v-565db38a"]]), tT = { cl
|
|
|
26932
26937
|
fontFamily: $.fontFamily
|
|
26933
26938
|
};
|
|
26934
26939
|
}
|
|
26935
|
-
function
|
|
26940
|
+
function D() {
|
|
26936
26941
|
s.value && r.value && s.value.length && (s.value.forEach((N) => {
|
|
26937
26942
|
let C = r.value.config[N.row][N.col];
|
|
26938
26943
|
C.format = w.value.format, C.formatType = { ...w.value.formatType }, C.style = { ...w.value.style };
|
|
26939
|
-
}), w.value = null,
|
|
26944
|
+
}), w.value = null, G());
|
|
26940
26945
|
}
|
|
26941
26946
|
function U() {
|
|
26942
26947
|
s.value && t.value && s.value.length && (s.value.forEach((N) => {
|
|
@@ -26951,7 +26956,7 @@ const eT = /* @__PURE__ */ fl(Jk, [["__scopeId", "data-v-565db38a"]]), tT = { cl
|
|
|
26951
26956
|
fontSize: 14,
|
|
26952
26957
|
fontFamily: ""
|
|
26953
26958
|
};
|
|
26954
|
-
}),
|
|
26959
|
+
}), G());
|
|
26955
26960
|
}
|
|
26956
26961
|
li(
|
|
26957
26962
|
() => s.value,
|
|
@@ -26998,7 +27003,7 @@ const eT = /* @__PURE__ */ fl(Jk, [["__scopeId", "data-v-565db38a"]]), tT = { cl
|
|
|
26998
27003
|
deep: !0
|
|
26999
27004
|
}
|
|
27000
27005
|
);
|
|
27001
|
-
function
|
|
27006
|
+
function G() {
|
|
27002
27007
|
s.value && s.value.length && (s.value = [...s.value]);
|
|
27003
27008
|
}
|
|
27004
27009
|
const J = be("");
|
|
@@ -27120,7 +27125,7 @@ const eT = /* @__PURE__ */ fl(Jk, [["__scopeId", "data-v-565db38a"]]), tT = { cl
|
|
|
27120
27125
|
}), L(), s.value = null;
|
|
27121
27126
|
}
|
|
27122
27127
|
}
|
|
27123
|
-
function
|
|
27128
|
+
function F() {
|
|
27124
27129
|
if (r.value && c.value.length > 0) {
|
|
27125
27130
|
let N = Math.max(...c.value);
|
|
27126
27131
|
if (N >= 0) {
|
|
@@ -27235,13 +27240,13 @@ const eT = /* @__PURE__ */ fl(Jk, [["__scopeId", "data-v-565db38a"]]), tT = { cl
|
|
|
27235
27240
|
onClick: v
|
|
27236
27241
|
}, {
|
|
27237
27242
|
default: y(() => [
|
|
27238
|
-
|
|
27243
|
+
z(I(f(X)("修复表格")), 1)
|
|
27239
27244
|
]),
|
|
27240
27245
|
_: 1
|
|
27241
27246
|
}, 8, ["disabled"]),
|
|
27242
27247
|
g(f(Ze), { onClick: Xe }, {
|
|
27243
27248
|
default: y(() => [
|
|
27244
|
-
|
|
27249
|
+
z(I(f(X)("增加子表")), 1)
|
|
27245
27250
|
]),
|
|
27246
27251
|
_: 1
|
|
27247
27252
|
}),
|
|
@@ -27250,7 +27255,7 @@ const eT = /* @__PURE__ */ fl(Jk, [["__scopeId", "data-v-565db38a"]]), tT = { cl
|
|
|
27250
27255
|
onClick: b
|
|
27251
27256
|
}, {
|
|
27252
27257
|
default: y(() => [
|
|
27253
|
-
|
|
27258
|
+
z(I(f(X)("合并表格")), 1)
|
|
27254
27259
|
]),
|
|
27255
27260
|
_: 1
|
|
27256
27261
|
}, 8, ["disabled"]),
|
|
@@ -27259,7 +27264,7 @@ const eT = /* @__PURE__ */ fl(Jk, [["__scopeId", "data-v-565db38a"]]), tT = { cl
|
|
|
27259
27264
|
onClick: P
|
|
27260
27265
|
}, {
|
|
27261
27266
|
default: y(() => [
|
|
27262
|
-
|
|
27267
|
+
z(I(f(X)("拆分表格")), 1)
|
|
27263
27268
|
]),
|
|
27264
27269
|
_: 1
|
|
27265
27270
|
}, 8, ["disabled"]),
|
|
@@ -27268,7 +27273,7 @@ const eT = /* @__PURE__ */ fl(Jk, [["__scopeId", "data-v-565db38a"]]), tT = { cl
|
|
|
27268
27273
|
disabled: f(s).length === 0
|
|
27269
27274
|
}, {
|
|
27270
27275
|
default: y(() => [
|
|
27271
|
-
|
|
27276
|
+
z(I(f(X)("取消选择")), 1)
|
|
27272
27277
|
]),
|
|
27273
27278
|
_: 1
|
|
27274
27279
|
}, 8, ["disabled"]),
|
|
@@ -27277,22 +27282,22 @@ const eT = /* @__PURE__ */ fl(Jk, [["__scopeId", "data-v-565db38a"]]), tT = { cl
|
|
|
27277
27282
|
disabled: f(s).length === 0
|
|
27278
27283
|
}, {
|
|
27279
27284
|
default: y(() => [
|
|
27280
|
-
|
|
27285
|
+
z(I(f(X)("复制样式")), 1)
|
|
27281
27286
|
]),
|
|
27282
27287
|
_: 1
|
|
27283
27288
|
}, 8, ["disabled"]),
|
|
27284
27289
|
g(f(Ze), {
|
|
27285
|
-
onClick:
|
|
27290
|
+
onClick: D,
|
|
27286
27291
|
disabled: f(w) === null
|
|
27287
27292
|
}, {
|
|
27288
27293
|
default: y(() => [
|
|
27289
|
-
|
|
27294
|
+
z(I(f(X)("粘贴样式")), 1)
|
|
27290
27295
|
]),
|
|
27291
27296
|
_: 1
|
|
27292
27297
|
}, 8, ["disabled"]),
|
|
27293
27298
|
g(f(Ze), { onClick: U }, {
|
|
27294
27299
|
default: y(() => [
|
|
27295
|
-
|
|
27300
|
+
z(I(f(X)("清除选中")), 1)
|
|
27296
27301
|
]),
|
|
27297
27302
|
_: 1
|
|
27298
27303
|
})
|
|
@@ -27317,7 +27322,7 @@ const eT = /* @__PURE__ */ fl(Jk, [["__scopeId", "data-v-565db38a"]]), tT = { cl
|
|
|
27317
27322
|
default: y(() => [
|
|
27318
27323
|
g(f(lt), { label: "text" }, {
|
|
27319
27324
|
default: y(() => [
|
|
27320
|
-
|
|
27325
|
+
z(I(f(X)("文本")), 1)
|
|
27321
27326
|
]),
|
|
27322
27327
|
_: 1
|
|
27323
27328
|
}),
|
|
@@ -27326,13 +27331,13 @@ const eT = /* @__PURE__ */ fl(Jk, [["__scopeId", "data-v-565db38a"]]), tT = { cl
|
|
|
27326
27331
|
label: "field"
|
|
27327
27332
|
}, {
|
|
27328
27333
|
default: y(() => [
|
|
27329
|
-
|
|
27334
|
+
z(I(f(X)("数据")), 1)
|
|
27330
27335
|
]),
|
|
27331
27336
|
_: 1
|
|
27332
27337
|
})),
|
|
27333
27338
|
g(f(lt), { label: "fun" }, {
|
|
27334
27339
|
default: y(() => [
|
|
27335
|
-
|
|
27340
|
+
z(I(f(X)("函数")), 1)
|
|
27336
27341
|
]),
|
|
27337
27342
|
_: 1
|
|
27338
27343
|
})
|
|
@@ -27439,21 +27444,21 @@ const eT = /* @__PURE__ */ fl(Jk, [["__scopeId", "data-v-565db38a"]]), tT = { cl
|
|
|
27439
27444
|
onClick: C[12] || (C[12] = (R) => ne("left", "cell", "style.textAlign", "textAlign"))
|
|
27440
27445
|
}, [
|
|
27441
27446
|
oT,
|
|
27442
|
-
|
|
27447
|
+
z(" " + I(f(X)("左对齐")), 1)
|
|
27443
27448
|
]),
|
|
27444
27449
|
q("div", {
|
|
27445
27450
|
class: "select-button-item",
|
|
27446
27451
|
onClick: C[13] || (C[13] = (R) => ne("center", "cell", "style.textAlign", "textAlign"))
|
|
27447
27452
|
}, [
|
|
27448
27453
|
uT,
|
|
27449
|
-
|
|
27454
|
+
z(" " + I(f(X)("居中对齐")), 1)
|
|
27450
27455
|
]),
|
|
27451
27456
|
q("div", {
|
|
27452
27457
|
class: "select-button-item",
|
|
27453
27458
|
onClick: C[14] || (C[14] = (R) => ne("right", "cell", "style.textAlign", "textAlign"))
|
|
27454
27459
|
}, [
|
|
27455
27460
|
hT,
|
|
27456
|
-
|
|
27461
|
+
z(" " + I(f(X)("右对齐")), 1)
|
|
27457
27462
|
])
|
|
27458
27463
|
]),
|
|
27459
27464
|
default: y(() => [
|
|
@@ -27470,21 +27475,21 @@ const eT = /* @__PURE__ */ fl(Jk, [["__scopeId", "data-v-565db38a"]]), tT = { cl
|
|
|
27470
27475
|
onClick: C[15] || (C[15] = (R) => ne("top", "cell", "style.verticalAlign", "verticalAlign"))
|
|
27471
27476
|
}, [
|
|
27472
27477
|
cT,
|
|
27473
|
-
|
|
27478
|
+
z(" " + I(f(X)("顶部对齐")), 1)
|
|
27474
27479
|
]),
|
|
27475
27480
|
q("div", {
|
|
27476
27481
|
class: "select-button-item",
|
|
27477
27482
|
onClick: C[16] || (C[16] = (R) => ne("center", "cell", "style.verticalAlign", "verticalAlign"))
|
|
27478
27483
|
}, [
|
|
27479
27484
|
fT,
|
|
27480
|
-
|
|
27485
|
+
z(" " + I(f(X)("垂直居中")), 1)
|
|
27481
27486
|
]),
|
|
27482
27487
|
q("div", {
|
|
27483
27488
|
class: "select-button-item",
|
|
27484
27489
|
onClick: C[17] || (C[17] = (R) => ne("bottom", "cell", "style.verticalAlign", "verticalAlign"))
|
|
27485
27490
|
}, [
|
|
27486
27491
|
dT,
|
|
27487
|
-
|
|
27492
|
+
z(" " + I(f(X)("底部对齐")), 1)
|
|
27488
27493
|
])
|
|
27489
27494
|
]),
|
|
27490
27495
|
default: y(() => [
|
|
@@ -27530,11 +27535,11 @@ const eT = /* @__PURE__ */ fl(Jk, [["__scopeId", "data-v-565db38a"]]), tT = { cl
|
|
|
27530
27535
|
placement: "top-start"
|
|
27531
27536
|
}, {
|
|
27532
27537
|
content: y(() => [
|
|
27533
|
-
|
|
27538
|
+
z(I(f(X)("数据对象化在数据源中设置")) + " ", 1),
|
|
27534
27539
|
OT,
|
|
27535
|
-
|
|
27540
|
+
z(" " + I(f(X)("从对象化后的数据中获取数据")) + " ", 1),
|
|
27536
27541
|
pT,
|
|
27537
|
-
|
|
27542
|
+
z(" ${data.a.b.c} ")
|
|
27538
27543
|
]),
|
|
27539
27544
|
default: y(() => [
|
|
27540
27545
|
q("span", mT, I(f(X)("字符串模板")), 1)
|
|
@@ -27589,7 +27594,7 @@ const eT = /* @__PURE__ */ fl(Jk, [["__scopeId", "data-v-565db38a"]]), tT = { cl
|
|
|
27589
27594
|
onChange: C[24] || (C[24] = (R) => ie("isGroup", R))
|
|
27590
27595
|
}, {
|
|
27591
27596
|
default: y(() => [
|
|
27592
|
-
|
|
27597
|
+
z(I(f(X)("分组")) + " ", 1),
|
|
27593
27598
|
g(se, {
|
|
27594
27599
|
effect: "dark",
|
|
27595
27600
|
placement: "top-start",
|
|
@@ -27611,7 +27616,7 @@ const eT = /* @__PURE__ */ fl(Jk, [["__scopeId", "data-v-565db38a"]]), tT = { cl
|
|
|
27611
27616
|
onChange: C[26] || (C[26] = (R) => ie("isRowColCombine", R))
|
|
27612
27617
|
}, {
|
|
27613
27618
|
default: y(() => [
|
|
27614
|
-
|
|
27619
|
+
z(I(f(X)("行列组合")) + " ", 1),
|
|
27615
27620
|
g(se, {
|
|
27616
27621
|
effect: "dark",
|
|
27617
27622
|
placement: "top-start",
|
|
@@ -27633,7 +27638,7 @@ const eT = /* @__PURE__ */ fl(Jk, [["__scopeId", "data-v-565db38a"]]), tT = { cl
|
|
|
27633
27638
|
onChange: C[28] || (C[28] = (R) => ie("isGroupColumnLoop", R))
|
|
27634
27639
|
}, {
|
|
27635
27640
|
default: y(() => [
|
|
27636
|
-
|
|
27641
|
+
z(I(f(X)("分组列循环")) + " ", 1),
|
|
27637
27642
|
g(se, {
|
|
27638
27643
|
effect: "dark",
|
|
27639
27644
|
placement: "top-start",
|
|
@@ -27654,7 +27659,7 @@ const eT = /* @__PURE__ */ fl(Jk, [["__scopeId", "data-v-565db38a"]]), tT = { cl
|
|
|
27654
27659
|
"onUpdate:modelValue": C[29] || (C[29] = (R) => f(u).isMergeSameCells = R)
|
|
27655
27660
|
}, {
|
|
27656
27661
|
default: y(() => [
|
|
27657
|
-
|
|
27662
|
+
z(I(f(X)("列合并")) + " ", 1),
|
|
27658
27663
|
g(se, {
|
|
27659
27664
|
effect: "dark",
|
|
27660
27665
|
placement: "top-start",
|
|
@@ -27673,7 +27678,7 @@ const eT = /* @__PURE__ */ fl(Jk, [["__scopeId", "data-v-565db38a"]]), tT = { cl
|
|
|
27673
27678
|
"onUpdate:modelValue": C[30] || (C[30] = (R) => f(u).linkedMergeCell = R)
|
|
27674
27679
|
}, {
|
|
27675
27680
|
default: y(() => [
|
|
27676
|
-
|
|
27681
|
+
z(I(f(X)("联动列合并")) + " ", 1),
|
|
27677
27682
|
g(se, {
|
|
27678
27683
|
effect: "dark",
|
|
27679
27684
|
placement: "top-start",
|
|
@@ -27692,7 +27697,7 @@ const eT = /* @__PURE__ */ fl(Jk, [["__scopeId", "data-v-565db38a"]]), tT = { cl
|
|
|
27692
27697
|
"onUpdate:modelValue": C[31] || (C[31] = (R) => f(u).isMergeInLoop = R)
|
|
27693
27698
|
}, {
|
|
27694
27699
|
default: y(() => [
|
|
27695
|
-
|
|
27700
|
+
z(I(f(X)("循环合并")) + " ", 1),
|
|
27696
27701
|
g(se, {
|
|
27697
27702
|
effect: "dark",
|
|
27698
27703
|
placement: "top-start",
|
|
@@ -27906,7 +27911,7 @@ const eT = /* @__PURE__ */ fl(Jk, [["__scopeId", "data-v-565db38a"]]), tT = { cl
|
|
|
27906
27911
|
title: f(X)("百分比")
|
|
27907
27912
|
}, {
|
|
27908
27913
|
default: y(() => [
|
|
27909
|
-
|
|
27914
|
+
z(" % ")
|
|
27910
27915
|
]),
|
|
27911
27916
|
_: 1
|
|
27912
27917
|
}, 8, ["label", "title"]),
|
|
@@ -27915,7 +27920,7 @@ const eT = /* @__PURE__ */ fl(Jk, [["__scopeId", "data-v-565db38a"]]), tT = { cl
|
|
|
27915
27920
|
title: f(X)("千分比")
|
|
27916
27921
|
}, {
|
|
27917
27922
|
default: y(() => [
|
|
27918
|
-
|
|
27923
|
+
z(" ‰ ")
|
|
27919
27924
|
]),
|
|
27920
27925
|
_: 1
|
|
27921
27926
|
}, 8, ["label", "title"]),
|
|
@@ -28002,25 +28007,25 @@ const eT = /* @__PURE__ */ fl(Jk, [["__scopeId", "data-v-565db38a"]]), tT = { cl
|
|
|
28002
28007
|
default: y(() => [
|
|
28003
28008
|
g(f(lt), { value: "¥" }, {
|
|
28004
28009
|
default: y(() => [
|
|
28005
|
-
|
|
28010
|
+
z(I(f(X)("人民币")) + " ¥", 1)
|
|
28006
28011
|
]),
|
|
28007
28012
|
_: 1
|
|
28008
28013
|
}),
|
|
28009
28014
|
g(f(lt), { value: "$" }, {
|
|
28010
28015
|
default: y(() => [
|
|
28011
|
-
|
|
28016
|
+
z(I(f(X)("美元")) + " $", 1)
|
|
28012
28017
|
]),
|
|
28013
28018
|
_: 1
|
|
28014
28019
|
}),
|
|
28015
28020
|
g(f(lt), { value: "€" }, {
|
|
28016
28021
|
default: y(() => [
|
|
28017
|
-
|
|
28022
|
+
z(I(f(X)("欧元")) + " €", 1)
|
|
28018
28023
|
]),
|
|
28019
28024
|
_: 1
|
|
28020
28025
|
}),
|
|
28021
28026
|
g(f(lt), { value: "£" }, {
|
|
28022
28027
|
default: y(() => [
|
|
28023
|
-
|
|
28028
|
+
z(I(f(X)("英镑")) + " £", 1)
|
|
28024
28029
|
]),
|
|
28025
28030
|
_: 1
|
|
28026
28031
|
})
|
|
@@ -28050,13 +28055,13 @@ const eT = /* @__PURE__ */ fl(Jk, [["__scopeId", "data-v-565db38a"]]), tT = { cl
|
|
|
28050
28055
|
default: y(() => [
|
|
28051
28056
|
g(f(lt), { label: "E" }, {
|
|
28052
28057
|
default: y(() => [
|
|
28053
|
-
|
|
28058
|
+
z("E (1.23E+6)")
|
|
28054
28059
|
]),
|
|
28055
28060
|
_: 1
|
|
28056
28061
|
}),
|
|
28057
28062
|
g(f(lt), { label: "e" }, {
|
|
28058
28063
|
default: y(() => [
|
|
28059
|
-
|
|
28064
|
+
z("e (1.23e+6)")
|
|
28060
28065
|
]),
|
|
28061
28066
|
_: 1
|
|
28062
28067
|
})
|
|
@@ -28179,7 +28184,7 @@ const eT = /* @__PURE__ */ fl(Jk, [["__scopeId", "data-v-565db38a"]]), tT = { cl
|
|
|
28179
28184
|
plain: ""
|
|
28180
28185
|
}, {
|
|
28181
28186
|
default: y(() => [
|
|
28182
|
-
|
|
28187
|
+
z(" + " + I(f(X)("上")), 1)
|
|
28183
28188
|
]),
|
|
28184
28189
|
_: 1
|
|
28185
28190
|
}),
|
|
@@ -28189,7 +28194,7 @@ const eT = /* @__PURE__ */ fl(Jk, [["__scopeId", "data-v-565db38a"]]), tT = { cl
|
|
|
28189
28194
|
plain: ""
|
|
28190
28195
|
}, {
|
|
28191
28196
|
default: y(() => [
|
|
28192
|
-
|
|
28197
|
+
z(I(f(X)("删")), 1)
|
|
28193
28198
|
]),
|
|
28194
28199
|
_: 1
|
|
28195
28200
|
}),
|
|
@@ -28198,7 +28203,7 @@ const eT = /* @__PURE__ */ fl(Jk, [["__scopeId", "data-v-565db38a"]]), tT = { cl
|
|
|
28198
28203
|
plain: ""
|
|
28199
28204
|
}, {
|
|
28200
28205
|
default: y(() => [
|
|
28201
|
-
|
|
28206
|
+
z(I(f(X)("下")) + " + ", 1)
|
|
28202
28207
|
]),
|
|
28203
28208
|
_: 1
|
|
28204
28209
|
})
|
|
@@ -28222,7 +28227,7 @@ const eT = /* @__PURE__ */ fl(Jk, [["__scopeId", "data-v-565db38a"]]), tT = { cl
|
|
|
28222
28227
|
onClick: C[55] || (C[55] = (R) => ne(25, "row", "size"))
|
|
28223
28228
|
}, {
|
|
28224
28229
|
default: y(() => [
|
|
28225
|
-
|
|
28230
|
+
z(I(f(X)("重置")), 1)
|
|
28226
28231
|
]),
|
|
28227
28232
|
_: 1
|
|
28228
28233
|
})
|
|
@@ -28253,7 +28258,7 @@ const eT = /* @__PURE__ */ fl(Jk, [["__scopeId", "data-v-565db38a"]]), tT = { cl
|
|
|
28253
28258
|
onChange: C[57] || (C[57] = (R) => ne(R, "row", "isFixed"))
|
|
28254
28259
|
}, {
|
|
28255
28260
|
default: y(() => [
|
|
28256
|
-
|
|
28261
|
+
z(I(f(X)("悬浮")), 1)
|
|
28257
28262
|
]),
|
|
28258
28263
|
_: 1
|
|
28259
28264
|
}, 8, ["modelValue"]),
|
|
@@ -28266,7 +28271,7 @@ const eT = /* @__PURE__ */ fl(Jk, [["__scopeId", "data-v-565db38a"]]), tT = { cl
|
|
|
28266
28271
|
onChange: C[59] || (C[59] = (R) => ne(R, "row", "isHidden"))
|
|
28267
28272
|
}, {
|
|
28268
28273
|
default: y(() => [
|
|
28269
|
-
|
|
28274
|
+
z(I(f(X)("隐藏")), 1)
|
|
28270
28275
|
]),
|
|
28271
28276
|
_: 1
|
|
28272
28277
|
}, 8, ["title", "modelValue"])
|
|
@@ -28358,7 +28363,7 @@ const eT = /* @__PURE__ */ fl(Jk, [["__scopeId", "data-v-565db38a"]]), tT = { cl
|
|
|
28358
28363
|
plain: ""
|
|
28359
28364
|
}, {
|
|
28360
28365
|
default: y(() => [
|
|
28361
|
-
|
|
28366
|
+
z(" + " + I(f(X)("左")), 1)
|
|
28362
28367
|
]),
|
|
28363
28368
|
_: 1
|
|
28364
28369
|
}),
|
|
@@ -28368,16 +28373,16 @@ const eT = /* @__PURE__ */ fl(Jk, [["__scopeId", "data-v-565db38a"]]), tT = { cl
|
|
|
28368
28373
|
plain: ""
|
|
28369
28374
|
}, {
|
|
28370
28375
|
default: y(() => [
|
|
28371
|
-
|
|
28376
|
+
z(I(f(X)("删")), 1)
|
|
28372
28377
|
]),
|
|
28373
28378
|
_: 1
|
|
28374
28379
|
}),
|
|
28375
28380
|
g(f(Ze), {
|
|
28376
|
-
onClick:
|
|
28381
|
+
onClick: F,
|
|
28377
28382
|
plain: ""
|
|
28378
28383
|
}, {
|
|
28379
28384
|
default: y(() => [
|
|
28380
|
-
|
|
28385
|
+
z(I(f(X)("右")) + " + ", 1)
|
|
28381
28386
|
]),
|
|
28382
28387
|
_: 1
|
|
28383
28388
|
})
|
|
@@ -28400,7 +28405,7 @@ const eT = /* @__PURE__ */ fl(Jk, [["__scopeId", "data-v-565db38a"]]), tT = { cl
|
|
|
28400
28405
|
onClick: C[67] || (C[67] = (R) => $.colSize = 80)
|
|
28401
28406
|
}, {
|
|
28402
28407
|
default: y(() => [
|
|
28403
|
-
|
|
28408
|
+
z(I(f(X)("重置")), 1)
|
|
28404
28409
|
]),
|
|
28405
28410
|
_: 1
|
|
28406
28411
|
})
|
|
@@ -28428,7 +28433,7 @@ const eT = /* @__PURE__ */ fl(Jk, [["__scopeId", "data-v-565db38a"]]), tT = { cl
|
|
|
28428
28433
|
onChange: C[69] || (C[69] = (R) => ne(R, "col", "isFixed"))
|
|
28429
28434
|
}, {
|
|
28430
28435
|
default: y(() => [
|
|
28431
|
-
|
|
28436
|
+
z(I(f(X)("悬浮")), 1)
|
|
28432
28437
|
]),
|
|
28433
28438
|
_: 1
|
|
28434
28439
|
}, 8, ["modelValue"]),
|
|
@@ -28441,7 +28446,7 @@ const eT = /* @__PURE__ */ fl(Jk, [["__scopeId", "data-v-565db38a"]]), tT = { cl
|
|
|
28441
28446
|
onChange: C[71] || (C[71] = (R) => ne(R, "col", "isHidden"))
|
|
28442
28447
|
}, {
|
|
28443
28448
|
default: y(() => [
|
|
28444
|
-
|
|
28449
|
+
z(I(f(X)("隐藏")), 1)
|
|
28445
28450
|
]),
|
|
28446
28451
|
_: 1
|
|
28447
28452
|
}, 8, ["title", "modelValue"])
|
|
@@ -28612,7 +28617,7 @@ const eT = /* @__PURE__ */ fl(Jk, [["__scopeId", "data-v-565db38a"]]), tT = { cl
|
|
|
28612
28617
|
"onUpdate:modelValue": a[3] || (a[3] = (p) => f(t).width = p)
|
|
28613
28618
|
}, {
|
|
28614
28619
|
suffix: y(() => [
|
|
28615
|
-
|
|
28620
|
+
z(I(f(t).widthType), 1)
|
|
28616
28621
|
]),
|
|
28617
28622
|
_: 1
|
|
28618
28623
|
}, 8, ["modelValue"])
|
|
@@ -28634,7 +28639,7 @@ const eT = /* @__PURE__ */ fl(Jk, [["__scopeId", "data-v-565db38a"]]), tT = { cl
|
|
|
28634
28639
|
onChange: a[5] || (a[5] = (p) => r(p, "width", "number"))
|
|
28635
28640
|
}, {
|
|
28636
28641
|
suffix: y(() => [
|
|
28637
|
-
|
|
28642
|
+
z("px")
|
|
28638
28643
|
]),
|
|
28639
28644
|
_: 1
|
|
28640
28645
|
}, 8, ["disabled", "modelValue"])
|
|
@@ -28683,37 +28688,37 @@ const eT = /* @__PURE__ */ fl(Jk, [["__scopeId", "data-v-565db38a"]]), tT = { cl
|
|
|
28683
28688
|
default: y(() => [
|
|
28684
28689
|
g(m, { label: "blue" }, {
|
|
28685
28690
|
default: y(() => [
|
|
28686
|
-
|
|
28691
|
+
z("蓝色")
|
|
28687
28692
|
]),
|
|
28688
28693
|
_: 1
|
|
28689
28694
|
}),
|
|
28690
28695
|
g(m, { label: "green" }, {
|
|
28691
28696
|
default: y(() => [
|
|
28692
|
-
|
|
28697
|
+
z("绿色")
|
|
28693
28698
|
]),
|
|
28694
28699
|
_: 1
|
|
28695
28700
|
}),
|
|
28696
28701
|
g(m, { label: "gray" }, {
|
|
28697
28702
|
default: y(() => [
|
|
28698
|
-
|
|
28703
|
+
z("灰色")
|
|
28699
28704
|
]),
|
|
28700
28705
|
_: 1
|
|
28701
28706
|
}),
|
|
28702
28707
|
g(m, { label: "dark" }, {
|
|
28703
28708
|
default: y(() => [
|
|
28704
|
-
|
|
28709
|
+
z("暗黑")
|
|
28705
28710
|
]),
|
|
28706
28711
|
_: 1
|
|
28707
28712
|
}),
|
|
28708
28713
|
g(m, { label: "red" }, {
|
|
28709
28714
|
default: y(() => [
|
|
28710
|
-
|
|
28715
|
+
z("红色")
|
|
28711
28716
|
]),
|
|
28712
28717
|
_: 1
|
|
28713
28718
|
}),
|
|
28714
28719
|
g(m, { label: "none" }, {
|
|
28715
28720
|
default: y(() => [
|
|
28716
|
-
|
|
28721
|
+
z("无主题")
|
|
28717
28722
|
]),
|
|
28718
28723
|
_: 1
|
|
28719
28724
|
})
|
|
@@ -28737,13 +28742,13 @@ const eT = /* @__PURE__ */ fl(Jk, [["__scopeId", "data-v-565db38a"]]), tT = { cl
|
|
|
28737
28742
|
default: y(() => [
|
|
28738
28743
|
g(m, { label: "download" }, {
|
|
28739
28744
|
default: y(() => [
|
|
28740
|
-
|
|
28745
|
+
z("下载")
|
|
28741
28746
|
]),
|
|
28742
28747
|
_: 1
|
|
28743
28748
|
}),
|
|
28744
28749
|
g(m, { label: "send" }, {
|
|
28745
28750
|
default: y(() => [
|
|
28746
|
-
|
|
28751
|
+
z("交由父窗口")
|
|
28747
28752
|
]),
|
|
28748
28753
|
_: 1
|
|
28749
28754
|
})
|
|
@@ -29011,13 +29016,13 @@ const ET = function(n, e) {
|
|
|
29011
29016
|
default: y(() => [
|
|
29012
29017
|
g($, { label: "px" }, {
|
|
29013
29018
|
default: y(() => [
|
|
29014
|
-
|
|
29019
|
+
z(I(f(X)("像素")), 1)
|
|
29015
29020
|
]),
|
|
29016
29021
|
_: 1
|
|
29017
29022
|
}),
|
|
29018
29023
|
g($, { label: "%" }, {
|
|
29019
29024
|
default: y(() => [
|
|
29020
|
-
|
|
29025
|
+
z(I(f(X)("百分比")), 1)
|
|
29021
29026
|
]),
|
|
29022
29027
|
_: 1
|
|
29023
29028
|
})
|
|
@@ -29059,13 +29064,13 @@ const ET = function(n, e) {
|
|
|
29059
29064
|
default: y(() => [
|
|
29060
29065
|
g($, { label: "px" }, {
|
|
29061
29066
|
default: y(() => [
|
|
29062
|
-
|
|
29067
|
+
z(I(f(X)("像素")), 1)
|
|
29063
29068
|
]),
|
|
29064
29069
|
_: 1
|
|
29065
29070
|
}),
|
|
29066
29071
|
g($, { label: "%" }, {
|
|
29067
29072
|
default: y(() => [
|
|
29068
|
-
|
|
29073
|
+
z(I(f(X)("百分比")), 1)
|
|
29069
29074
|
]),
|
|
29070
29075
|
_: 1
|
|
29071
29076
|
})
|
|
@@ -29182,19 +29187,19 @@ const ET = function(n, e) {
|
|
|
29182
29187
|
default: y(() => [
|
|
29183
29188
|
g($, { label: "top" }, {
|
|
29184
29189
|
default: y(() => [
|
|
29185
|
-
|
|
29190
|
+
z(I(f(X)("上")), 1)
|
|
29186
29191
|
]),
|
|
29187
29192
|
_: 1
|
|
29188
29193
|
}),
|
|
29189
29194
|
g($, { label: "inside" }, {
|
|
29190
29195
|
default: y(() => [
|
|
29191
|
-
|
|
29196
|
+
z(I(f(X)("中")), 1)
|
|
29192
29197
|
]),
|
|
29193
29198
|
_: 1
|
|
29194
29199
|
}),
|
|
29195
29200
|
g($, { label: "bottom" }, {
|
|
29196
29201
|
default: y(() => [
|
|
29197
|
-
|
|
29202
|
+
z(I(f(X)("下")), 1)
|
|
29198
29203
|
]),
|
|
29199
29204
|
_: 1
|
|
29200
29205
|
})
|
|
@@ -29209,25 +29214,25 @@ const ET = function(n, e) {
|
|
|
29209
29214
|
default: y(() => [
|
|
29210
29215
|
g($, { label: "insideLeft" }, {
|
|
29211
29216
|
default: y(() => [
|
|
29212
|
-
|
|
29217
|
+
z(I(f(X)("左")), 1)
|
|
29213
29218
|
]),
|
|
29214
29219
|
_: 1
|
|
29215
29220
|
}),
|
|
29216
29221
|
g($, { label: "inside" }, {
|
|
29217
29222
|
default: y(() => [
|
|
29218
|
-
|
|
29223
|
+
z(I(f(X)("中")), 1)
|
|
29219
29224
|
]),
|
|
29220
29225
|
_: 1
|
|
29221
29226
|
}),
|
|
29222
29227
|
g($, { label: "insideRight" }, {
|
|
29223
29228
|
default: y(() => [
|
|
29224
|
-
|
|
29229
|
+
z(I(f(X)("右")), 1)
|
|
29225
29230
|
]),
|
|
29226
29231
|
_: 1
|
|
29227
29232
|
}),
|
|
29228
29233
|
g($, { label: "right" }, {
|
|
29229
29234
|
default: y(() => [
|
|
29230
|
-
|
|
29235
|
+
z(I(f(X)("外")), 1)
|
|
29231
29236
|
]),
|
|
29232
29237
|
_: 1
|
|
29233
29238
|
})
|
|
@@ -29242,25 +29247,25 @@ const ET = function(n, e) {
|
|
|
29242
29247
|
default: y(() => [
|
|
29243
29248
|
g($, { label: "insideTop" }, {
|
|
29244
29249
|
default: y(() => [
|
|
29245
|
-
|
|
29250
|
+
z(I(f(X)("上")), 1)
|
|
29246
29251
|
]),
|
|
29247
29252
|
_: 1
|
|
29248
29253
|
}),
|
|
29249
29254
|
g($, { label: "inside" }, {
|
|
29250
29255
|
default: y(() => [
|
|
29251
|
-
|
|
29256
|
+
z(I(f(X)("中")), 1)
|
|
29252
29257
|
]),
|
|
29253
29258
|
_: 1
|
|
29254
29259
|
}),
|
|
29255
29260
|
g($, { label: "insideBottom" }, {
|
|
29256
29261
|
default: y(() => [
|
|
29257
|
-
|
|
29262
|
+
z(I(f(X)("下")), 1)
|
|
29258
29263
|
]),
|
|
29259
29264
|
_: 1
|
|
29260
29265
|
}),
|
|
29261
29266
|
g($, { label: "top" }, {
|
|
29262
29267
|
default: y(() => [
|
|
29263
|
-
|
|
29268
|
+
z(I(f(X)("外")), 1)
|
|
29264
29269
|
]),
|
|
29265
29270
|
_: 1
|
|
29266
29271
|
})
|
|
@@ -29385,19 +29390,19 @@ const ET = function(n, e) {
|
|
|
29385
29390
|
default: y(() => [
|
|
29386
29391
|
g($, { label: "ASC" }, {
|
|
29387
29392
|
default: y(() => [
|
|
29388
|
-
|
|
29393
|
+
z(I(f(X)("正序")), 1)
|
|
29389
29394
|
]),
|
|
29390
29395
|
_: 1
|
|
29391
29396
|
}),
|
|
29392
29397
|
g($, { label: "NONE" }, {
|
|
29393
29398
|
default: y(() => [
|
|
29394
|
-
|
|
29399
|
+
z(I(f(X)("不排序")), 1)
|
|
29395
29400
|
]),
|
|
29396
29401
|
_: 1
|
|
29397
29402
|
}),
|
|
29398
29403
|
g($, { label: "DESC" }, {
|
|
29399
29404
|
default: y(() => [
|
|
29400
|
-
|
|
29405
|
+
z(I(f(X)("倒序")), 1)
|
|
29401
29406
|
]),
|
|
29402
29407
|
_: 1
|
|
29403
29408
|
})
|
|
@@ -29591,13 +29596,13 @@ const jT = /* @__PURE__ */ Ie({
|
|
|
29591
29596
|
default: y(() => [
|
|
29592
29597
|
g(Q, { label: "px" }, {
|
|
29593
29598
|
default: y(() => [
|
|
29594
|
-
|
|
29599
|
+
z(I(f(X)("像素")), 1)
|
|
29595
29600
|
]),
|
|
29596
29601
|
_: 1
|
|
29597
29602
|
}),
|
|
29598
29603
|
g(Q, { label: "%" }, {
|
|
29599
29604
|
default: y(() => [
|
|
29600
|
-
|
|
29605
|
+
z(I(f(X)("百分比")), 1)
|
|
29601
29606
|
]),
|
|
29602
29607
|
_: 1
|
|
29603
29608
|
})
|
|
@@ -29637,13 +29642,13 @@ const jT = /* @__PURE__ */ Ie({
|
|
|
29637
29642
|
default: y(() => [
|
|
29638
29643
|
g(Q, { label: "px" }, {
|
|
29639
29644
|
default: y(() => [
|
|
29640
|
-
|
|
29645
|
+
z(I(f(X)("像素")), 1)
|
|
29641
29646
|
]),
|
|
29642
29647
|
_: 1
|
|
29643
29648
|
}),
|
|
29644
29649
|
g(Q, { label: "%" }, {
|
|
29645
29650
|
default: y(() => [
|
|
29646
|
-
|
|
29651
|
+
z(I(f(X)("百分比")), 1)
|
|
29647
29652
|
]),
|
|
29648
29653
|
_: 1
|
|
29649
29654
|
})
|
|
@@ -29669,13 +29674,13 @@ const jT = /* @__PURE__ */ Ie({
|
|
|
29669
29674
|
default: y(() => [
|
|
29670
29675
|
g(Q, { label: !0 }, {
|
|
29671
29676
|
default: y(() => [
|
|
29672
|
-
|
|
29677
|
+
z(I(f(X)("多维度/指标")), 1)
|
|
29673
29678
|
]),
|
|
29674
29679
|
_: 1
|
|
29675
29680
|
}),
|
|
29676
29681
|
g(Q, { label: !1 }, {
|
|
29677
29682
|
default: y(() => [
|
|
29678
|
-
|
|
29683
|
+
z(I(f(X)("单指标")), 1)
|
|
29679
29684
|
]),
|
|
29680
29685
|
_: 1
|
|
29681
29686
|
})
|
|
@@ -29723,19 +29728,19 @@ const jT = /* @__PURE__ */ Ie({
|
|
|
29723
29728
|
default: y(() => [
|
|
29724
29729
|
g(Q, { label: "ASC" }, {
|
|
29725
29730
|
default: y(() => [
|
|
29726
|
-
|
|
29731
|
+
z(I(f(X)("正序")), 1)
|
|
29727
29732
|
]),
|
|
29728
29733
|
_: 1
|
|
29729
29734
|
}),
|
|
29730
29735
|
g(Q, { label: "NONE" }, {
|
|
29731
29736
|
default: y(() => [
|
|
29732
|
-
|
|
29737
|
+
z(I(f(X)("不排序")), 1)
|
|
29733
29738
|
]),
|
|
29734
29739
|
_: 1
|
|
29735
29740
|
}),
|
|
29736
29741
|
g(Q, { label: "DESC" }, {
|
|
29737
29742
|
default: y(() => [
|
|
29738
|
-
|
|
29743
|
+
z(I(f(X)("倒序")), 1)
|
|
29739
29744
|
]),
|
|
29740
29745
|
_: 1
|
|
29741
29746
|
})
|
|
@@ -29807,31 +29812,31 @@ const jT = /* @__PURE__ */ Ie({
|
|
|
29807
29812
|
default: y(() => [
|
|
29808
29813
|
g(Q, { label: "SUM" }, {
|
|
29809
29814
|
default: y(() => [
|
|
29810
|
-
|
|
29815
|
+
z(I(f(X)("求和")), 1)
|
|
29811
29816
|
]),
|
|
29812
29817
|
_: 1
|
|
29813
29818
|
}),
|
|
29814
29819
|
g(Q, { label: "AVG" }, {
|
|
29815
29820
|
default: y(() => [
|
|
29816
|
-
|
|
29821
|
+
z(I(f(X)("均值")), 1)
|
|
29817
29822
|
]),
|
|
29818
29823
|
_: 1
|
|
29819
29824
|
}),
|
|
29820
29825
|
g(Q, { label: "MAX" }, {
|
|
29821
29826
|
default: y(() => [
|
|
29822
|
-
|
|
29827
|
+
z(I(f(X)("最大值")), 1)
|
|
29823
29828
|
]),
|
|
29824
29829
|
_: 1
|
|
29825
29830
|
}),
|
|
29826
29831
|
g(Q, { label: "MIN" }, {
|
|
29827
29832
|
default: y(() => [
|
|
29828
|
-
|
|
29833
|
+
z(I(f(X)("最小值")), 1)
|
|
29829
29834
|
]),
|
|
29830
29835
|
_: 1
|
|
29831
29836
|
}),
|
|
29832
29837
|
g(Q, { label: "COUNT" }, {
|
|
29833
29838
|
default: y(() => [
|
|
29834
|
-
|
|
29839
|
+
z(I(f(X)("计数")), 1)
|
|
29835
29840
|
]),
|
|
29836
29841
|
_: 1
|
|
29837
29842
|
})
|
|
@@ -29933,12 +29938,12 @@ const BT = /* @__PURE__ */ Ie({
|
|
|
29933
29938
|
_: 1
|
|
29934
29939
|
}, 8, ["content"])) : ae("", !0),
|
|
29935
29940
|
Yt(e.$slots, "label-context", {}, () => [
|
|
29936
|
-
|
|
29941
|
+
z(I(n.labelContext), 1)
|
|
29937
29942
|
], !0)
|
|
29938
29943
|
]),
|
|
29939
29944
|
q("div", JT, [
|
|
29940
29945
|
Yt(e.$slots, "label-tips", {}, () => [
|
|
29941
|
-
|
|
29946
|
+
z(I(n.labelTips), 1)
|
|
29942
29947
|
], !0)
|
|
29943
29948
|
])
|
|
29944
29949
|
])
|
|
@@ -30008,7 +30013,7 @@ const Pt = /* @__PURE__ */ fl(eC, [["__scopeId", "data-v-f419eb3b"]]), tC = {
|
|
|
30008
30013
|
}
|
|
30009
30014
|
function p() {
|
|
30010
30015
|
var L, W, te;
|
|
30011
|
-
u.value = !0, O.value = ((te = (W = (L = i.value) == null ? void 0 : L.data) == null ? void 0 : W.source) == null ? void 0 : te.map((
|
|
30016
|
+
u.value = !0, O.value = ((te = (W = (L = i.value) == null ? void 0 : L.data) == null ? void 0 : W.source) == null ? void 0 : te.map((F) => F.key)) || [], Q();
|
|
30012
30017
|
}
|
|
30013
30018
|
const _ = () => {
|
|
30014
30019
|
u.value = !1, c.value = "";
|
|
@@ -30023,8 +30028,8 @@ const Pt = /* @__PURE__ */ fl(eC, [["__scopeId", "data-v-f419eb3b"]]), tC = {
|
|
|
30023
30028
|
let W = h.value.filter((te) => L.includes(te.id));
|
|
30024
30029
|
if (W && W.length && i.value) {
|
|
30025
30030
|
let te = [];
|
|
30026
|
-
for (let
|
|
30027
|
-
const { id: Oe, url: me, name: ve } = W[
|
|
30031
|
+
for (let F = 0; F < W.length; F++) {
|
|
30032
|
+
const { id: Oe, url: me, name: ve } = W[F], Xe = await Dg(Oe);
|
|
30028
30033
|
te.push({
|
|
30029
30034
|
key: Oe,
|
|
30030
30035
|
url: me,
|
|
@@ -30048,9 +30053,9 @@ const Pt = /* @__PURE__ */ fl(eC, [["__scopeId", "data-v-f419eb3b"]]), tC = {
|
|
|
30048
30053
|
}, T = be(null), x = (L) => {
|
|
30049
30054
|
T.value === L ? T.value = null : T.value = L;
|
|
30050
30055
|
}, w = (L, W) => {
|
|
30051
|
-
var
|
|
30056
|
+
var F, Oe, me, ve;
|
|
30052
30057
|
L.stopPropagation(), L.preventDefault();
|
|
30053
|
-
let te = (Oe = (
|
|
30058
|
+
let te = (Oe = (F = i.value) == null ? void 0 : F.data) == null ? void 0 : Oe.source[W];
|
|
30054
30059
|
te && (te === T.value && (T.value = null), (ve = (me = i.value) == null ? void 0 : me.data) == null || ve.source.splice(W, 1));
|
|
30055
30060
|
}, k = be(!1), Y = os({
|
|
30056
30061
|
name: "",
|
|
@@ -30079,16 +30084,16 @@ const Pt = /* @__PURE__ */ fl(eC, [["__scopeId", "data-v-f419eb3b"]]), tC = {
|
|
|
30079
30084
|
});
|
|
30080
30085
|
}, M = () => {
|
|
30081
30086
|
k.value = !0;
|
|
30082
|
-
},
|
|
30087
|
+
}, D = () => {
|
|
30083
30088
|
Y.name = "", Y.columnName = "", Y.description = "", k.value = !1;
|
|
30084
30089
|
}, U = () => {
|
|
30085
30090
|
var W;
|
|
30086
30091
|
let L = !0;
|
|
30087
|
-
Y.name ? b.name = "" : (b.name = "请输入名称", L = !1), Y.columnName ? b.columnName = "" : (b.columnName = "请输入字段名称", L = !1), L && ((W = T.value) == null || W.columns.push({ ...Y }),
|
|
30088
|
-
},
|
|
30092
|
+
Y.name ? b.name = "" : (b.name = "请输入名称", L = !1), Y.columnName ? b.columnName = "" : (b.columnName = "请输入字段名称", L = !1), L && ((W = T.value) == null || W.columns.push({ ...Y }), D());
|
|
30093
|
+
}, G = be(), J = be(), ie = be(!1);
|
|
30089
30094
|
function ne() {
|
|
30090
30095
|
ie.value = !0, ts(() => {
|
|
30091
|
-
|
|
30096
|
+
G.value.focus();
|
|
30092
30097
|
});
|
|
30093
30098
|
}
|
|
30094
30099
|
function ye(L) {
|
|
@@ -30099,7 +30104,7 @@ const Pt = /* @__PURE__ */ fl(eC, [["__scopeId", "data-v-f419eb3b"]]), tC = {
|
|
|
30099
30104
|
}
|
|
30100
30105
|
return yi(() => {
|
|
30101
30106
|
}), (L, W) => {
|
|
30102
|
-
const te = he("el-tag"),
|
|
30107
|
+
const te = he("el-tag"), F = he("el-input"), Oe = he("el-checkbox"), me = he("el-checkbox-group"), ve = he("el-col"), Xe = he("el-switch"), Se = he("el-option"), N = he("el-select"), C = he("el-input-number"), ee = he("el-row"), j = he("el-form-item"), H = he("el-form");
|
|
30103
30108
|
return A(), K(le, null, [
|
|
30104
30109
|
q("div", tC, [
|
|
30105
30110
|
iC,
|
|
@@ -30109,7 +30114,7 @@ const Pt = /* @__PURE__ */ fl(eC, [["__scopeId", "data-v-f419eb3b"]]), tC = {
|
|
|
30109
30114
|
text: ""
|
|
30110
30115
|
}, {
|
|
30111
30116
|
default: y(() => [
|
|
30112
|
-
|
|
30117
|
+
z(" 编辑 ")
|
|
30113
30118
|
]),
|
|
30114
30119
|
_: 1
|
|
30115
30120
|
})
|
|
@@ -30118,13 +30123,13 @@ const Pt = /* @__PURE__ */ fl(eC, [["__scopeId", "data-v-f419eb3b"]]), tC = {
|
|
|
30118
30123
|
f(i).data.pagination ? (A(), K(le, { key: 0 }, [
|
|
30119
30124
|
g(te, { type: "info" }, {
|
|
30120
30125
|
default: y(() => [
|
|
30121
|
-
|
|
30126
|
+
z("分页")
|
|
30122
30127
|
]),
|
|
30123
30128
|
_: 1
|
|
30124
30129
|
}),
|
|
30125
30130
|
g(te, { type: "info" }, {
|
|
30126
30131
|
default: y(() => [
|
|
30127
|
-
|
|
30132
|
+
z(I(f(i).data.pageSize), 1)
|
|
30128
30133
|
]),
|
|
30129
30134
|
_: 1
|
|
30130
30135
|
})
|
|
@@ -30135,7 +30140,7 @@ const Pt = /* @__PURE__ */ fl(eC, [["__scopeId", "data-v-f419eb3b"]]), tC = {
|
|
|
30135
30140
|
type: "info"
|
|
30136
30141
|
}, {
|
|
30137
30142
|
default: y(() => [
|
|
30138
|
-
|
|
30143
|
+
z(" 报表数据处理 ")
|
|
30139
30144
|
]),
|
|
30140
30145
|
_: 1
|
|
30141
30146
|
})) : ae("", !0)
|
|
@@ -30145,7 +30150,7 @@ const Pt = /* @__PURE__ */ fl(eC, [["__scopeId", "data-v-f419eb3b"]]), tC = {
|
|
|
30145
30150
|
type: "info"
|
|
30146
30151
|
}, {
|
|
30147
30152
|
default: y(() => [
|
|
30148
|
-
|
|
30153
|
+
z(" Tooltip处理 ")
|
|
30149
30154
|
]),
|
|
30150
30155
|
_: 1
|
|
30151
30156
|
})) : ae("", !0),
|
|
@@ -30154,7 +30159,7 @@ const Pt = /* @__PURE__ */ fl(eC, [["__scopeId", "data-v-f419eb3b"]]), tC = {
|
|
|
30154
30159
|
type: "info"
|
|
30155
30160
|
}, {
|
|
30156
30161
|
default: y(() => [
|
|
30157
|
-
|
|
30162
|
+
z(" X轴数据处理 ")
|
|
30158
30163
|
]),
|
|
30159
30164
|
_: 1
|
|
30160
30165
|
})) : ae("", !0),
|
|
@@ -30163,7 +30168,7 @@ const Pt = /* @__PURE__ */ fl(eC, [["__scopeId", "data-v-f419eb3b"]]), tC = {
|
|
|
30163
30168
|
type: "info"
|
|
30164
30169
|
}, {
|
|
30165
30170
|
default: y(() => [
|
|
30166
|
-
|
|
30171
|
+
z(" Y轴数据处理 ")
|
|
30167
30172
|
]),
|
|
30168
30173
|
_: 1
|
|
30169
30174
|
})) : ae("", !0),
|
|
@@ -30172,7 +30177,7 @@ const Pt = /* @__PURE__ */ fl(eC, [["__scopeId", "data-v-f419eb3b"]]), tC = {
|
|
|
30172
30177
|
type: "info"
|
|
30173
30178
|
}, {
|
|
30174
30179
|
default: y(() => [
|
|
30175
|
-
|
|
30180
|
+
z(" 图表数据处理 ")
|
|
30176
30181
|
]),
|
|
30177
30182
|
_: 1
|
|
30178
30183
|
})) : ae("", !0)
|
|
@@ -30193,7 +30198,7 @@ const Pt = /* @__PURE__ */ fl(eC, [["__scopeId", "data-v-f419eb3b"]]), tC = {
|
|
|
30193
30198
|
type: "info"
|
|
30194
30199
|
}, {
|
|
30195
30200
|
default: y(() => [
|
|
30196
|
-
|
|
30201
|
+
z(" 已转对象 ")
|
|
30197
30202
|
]),
|
|
30198
30203
|
_: 1
|
|
30199
30204
|
})) : ae("", !0)
|
|
@@ -30210,9 +30215,9 @@ const Pt = /* @__PURE__ */ fl(eC, [["__scopeId", "data-v-f419eb3b"]]), tC = {
|
|
|
30210
30215
|
}, [
|
|
30211
30216
|
q("div", null, [
|
|
30212
30217
|
se.name === se.columnName ? (A(), K(le, { key: 0 }, [
|
|
30213
|
-
|
|
30218
|
+
z(I(se.name), 1)
|
|
30214
30219
|
], 64)) : (A(), K(le, { key: 1 }, [
|
|
30215
|
-
|
|
30220
|
+
z(I(se.name) + " (" + I(se.columnName) + ")", 1)
|
|
30216
30221
|
], 64))
|
|
30217
30222
|
])
|
|
30218
30223
|
], 8, rC))), 256))
|
|
@@ -30232,14 +30237,14 @@ const Pt = /* @__PURE__ */ fl(eC, [["__scopeId", "data-v-f419eb3b"]]), tC = {
|
|
|
30232
30237
|
}, {
|
|
30233
30238
|
header: y(() => [
|
|
30234
30239
|
$C,
|
|
30235
|
-
|
|
30240
|
+
z(" "),
|
|
30236
30241
|
g(f(Ze), {
|
|
30237
30242
|
type: "warning",
|
|
30238
30243
|
plain: "",
|
|
30239
30244
|
onClick: W[16] || (W[16] = (V) => t.value = !1)
|
|
30240
30245
|
}, {
|
|
30241
30246
|
default: y(() => [
|
|
30242
|
-
|
|
30247
|
+
z(" 关闭 ")
|
|
30243
30248
|
]),
|
|
30244
30249
|
_: 1
|
|
30245
30250
|
})
|
|
@@ -30253,7 +30258,7 @@ const Pt = /* @__PURE__ */ fl(eC, [["__scopeId", "data-v-f419eb3b"]]), tC = {
|
|
|
30253
30258
|
q("div", aC, [
|
|
30254
30259
|
u.value ? (A(), K(le, { key: 1 }, [
|
|
30255
30260
|
uC,
|
|
30256
|
-
g(
|
|
30261
|
+
g(F, {
|
|
30257
30262
|
placeholder: "键入筛选数据源",
|
|
30258
30263
|
modelValue: c.value,
|
|
30259
30264
|
"onUpdate:modelValue": W[0] || (W[0] = (V) => c.value = V),
|
|
@@ -30266,7 +30271,7 @@ const Pt = /* @__PURE__ */ fl(eC, [["__scopeId", "data-v-f419eb3b"]]), tC = {
|
|
|
30266
30271
|
onClick: _
|
|
30267
30272
|
}, {
|
|
30268
30273
|
default: y(() => [
|
|
30269
|
-
|
|
30274
|
+
z(" 取消 ")
|
|
30270
30275
|
]),
|
|
30271
30276
|
_: 1
|
|
30272
30277
|
}, 8, ["loading"]),
|
|
@@ -30277,7 +30282,7 @@ const Pt = /* @__PURE__ */ fl(eC, [["__scopeId", "data-v-f419eb3b"]]), tC = {
|
|
|
30277
30282
|
onClick: E
|
|
30278
30283
|
}, {
|
|
30279
30284
|
default: y(() => [
|
|
30280
|
-
|
|
30285
|
+
z(" 保存 ")
|
|
30281
30286
|
]),
|
|
30282
30287
|
_: 1
|
|
30283
30288
|
}, 8, ["loading"])
|
|
@@ -30288,7 +30293,7 @@ const Pt = /* @__PURE__ */ fl(eC, [["__scopeId", "data-v-f419eb3b"]]), tC = {
|
|
|
30288
30293
|
onClick: v
|
|
30289
30294
|
}, {
|
|
30290
30295
|
default: y(() => [
|
|
30291
|
-
|
|
30296
|
+
z(" 同步 ")
|
|
30292
30297
|
]),
|
|
30293
30298
|
_: 1
|
|
30294
30299
|
}),
|
|
@@ -30297,7 +30302,7 @@ const Pt = /* @__PURE__ */ fl(eC, [["__scopeId", "data-v-f419eb3b"]]), tC = {
|
|
|
30297
30302
|
onClick: p
|
|
30298
30303
|
}, {
|
|
30299
30304
|
default: y(() => [
|
|
30300
|
-
|
|
30305
|
+
z(" 选择 ")
|
|
30301
30306
|
]),
|
|
30302
30307
|
_: 1
|
|
30303
30308
|
})
|
|
@@ -30313,7 +30318,7 @@ const Pt = /* @__PURE__ */ fl(eC, [["__scopeId", "data-v-f419eb3b"]]), tC = {
|
|
|
30313
30318
|
label: V.id
|
|
30314
30319
|
}, {
|
|
30315
30320
|
default: y(() => [
|
|
30316
|
-
|
|
30321
|
+
z(I(V.name), 1)
|
|
30317
30322
|
]),
|
|
30318
30323
|
_: 2
|
|
30319
30324
|
}, 1032, ["label"]))), 256))
|
|
@@ -30336,7 +30341,7 @@ const Pt = /* @__PURE__ */ fl(eC, [["__scopeId", "data-v-f419eb3b"]]), tC = {
|
|
|
30336
30341
|
type: "success"
|
|
30337
30342
|
}, {
|
|
30338
30343
|
default: y(() => [
|
|
30339
|
-
|
|
30344
|
+
z(" 已转对象 ")
|
|
30340
30345
|
]),
|
|
30341
30346
|
_: 1
|
|
30342
30347
|
})) : ae("", !0),
|
|
@@ -30347,7 +30352,7 @@ const Pt = /* @__PURE__ */ fl(eC, [["__scopeId", "data-v-f419eb3b"]]), tC = {
|
|
|
30347
30352
|
text: ""
|
|
30348
30353
|
}, {
|
|
30349
30354
|
default: y(() => [
|
|
30350
|
-
|
|
30355
|
+
z(" 删除 ")
|
|
30351
30356
|
]),
|
|
30352
30357
|
_: 2
|
|
30353
30358
|
}, 1032, ["onClick"])
|
|
@@ -30356,9 +30361,9 @@ const Pt = /* @__PURE__ */ fl(eC, [["__scopeId", "data-v-f419eb3b"]]), tC = {
|
|
|
30356
30361
|
(A(!0), K(le, null, Ee(V.columns, (R) => (A(), re(te, null, {
|
|
30357
30362
|
default: y(() => [
|
|
30358
30363
|
R.name === R.columnName ? (A(), K(le, { key: 0 }, [
|
|
30359
|
-
|
|
30364
|
+
z(I(R.name), 1)
|
|
30360
30365
|
], 64)) : (A(), K(le, { key: 1 }, [
|
|
30361
|
-
|
|
30366
|
+
z(I(R.name) + " (" + I(R.columnName) + ")", 1)
|
|
30362
30367
|
], 64))
|
|
30363
30368
|
]),
|
|
30364
30369
|
_: 2
|
|
@@ -30456,14 +30461,14 @@ const Pt = /* @__PURE__ */ fl(eC, [["__scopeId", "data-v-f419eb3b"]]), tC = {
|
|
|
30456
30461
|
onClose: (se) => ye(oe)
|
|
30457
30462
|
}, {
|
|
30458
30463
|
default: y(() => [
|
|
30459
|
-
|
|
30464
|
+
z(I(V), 1)
|
|
30460
30465
|
]),
|
|
30461
30466
|
_: 2
|
|
30462
30467
|
}, 1032, ["onClose"]))), 128)),
|
|
30463
|
-
ie.value ? (A(), re(
|
|
30468
|
+
ie.value ? (A(), re(F, {
|
|
30464
30469
|
key: 0,
|
|
30465
30470
|
ref_key: "InputRef",
|
|
30466
|
-
ref:
|
|
30471
|
+
ref: G,
|
|
30467
30472
|
modelValue: J.value,
|
|
30468
30473
|
"onUpdate:modelValue": W[6] || (W[6] = (V) => J.value = V),
|
|
30469
30474
|
modelModifiers: { number: !0 },
|
|
@@ -30476,7 +30481,7 @@ const Pt = /* @__PURE__ */ fl(eC, [["__scopeId", "data-v-f419eb3b"]]), tC = {
|
|
|
30476
30481
|
onClick: ne
|
|
30477
30482
|
}, {
|
|
30478
30483
|
default: y(() => [
|
|
30479
|
-
|
|
30484
|
+
z(" 添加分页数 ")
|
|
30480
30485
|
]),
|
|
30481
30486
|
_: 1
|
|
30482
30487
|
}))
|
|
@@ -30496,10 +30501,10 @@ const Pt = /* @__PURE__ */ fl(eC, [["__scopeId", "data-v-f419eb3b"]]), tC = {
|
|
|
30496
30501
|
"onUpdate:modelValue": W[7] || (W[7] = (V) => f(i).data.processData = V)
|
|
30497
30502
|
}, {
|
|
30498
30503
|
"pre-code": y(() => [
|
|
30499
|
-
|
|
30504
|
+
z("function (allData,params,pagination){")
|
|
30500
30505
|
]),
|
|
30501
30506
|
"next-code": y(() => [
|
|
30502
|
-
|
|
30507
|
+
z("}")
|
|
30503
30508
|
]),
|
|
30504
30509
|
_: 1
|
|
30505
30510
|
}, 8, ["modelValue"])
|
|
@@ -30521,10 +30526,10 @@ const Pt = /* @__PURE__ */ fl(eC, [["__scopeId", "data-v-f419eb3b"]]), tC = {
|
|
|
30521
30526
|
"onUpdate:modelValue": W[8] || (W[8] = (V) => f(i).toolTipData = V)
|
|
30522
30527
|
}, {
|
|
30523
30528
|
"pre-code": y(() => [
|
|
30524
|
-
|
|
30529
|
+
z("function (params){")
|
|
30525
30530
|
]),
|
|
30526
30531
|
"next-code": y(() => [
|
|
30527
|
-
|
|
30532
|
+
z("}")
|
|
30528
30533
|
]),
|
|
30529
30534
|
_: 1
|
|
30530
30535
|
}, 8, ["modelValue"])
|
|
@@ -30543,10 +30548,10 @@ const Pt = /* @__PURE__ */ fl(eC, [["__scopeId", "data-v-f419eb3b"]]), tC = {
|
|
|
30543
30548
|
"onUpdate:modelValue": W[9] || (W[9] = (V) => f(i).xAisData = V)
|
|
30544
30549
|
}, {
|
|
30545
30550
|
"pre-code": y(() => [
|
|
30546
|
-
|
|
30551
|
+
z("function (allData){")
|
|
30547
30552
|
]),
|
|
30548
30553
|
"next-code": y(() => [
|
|
30549
|
-
|
|
30554
|
+
z("}")
|
|
30550
30555
|
]),
|
|
30551
30556
|
_: 1
|
|
30552
30557
|
}, 8, ["modelValue"])
|
|
@@ -30565,10 +30570,10 @@ const Pt = /* @__PURE__ */ fl(eC, [["__scopeId", "data-v-f419eb3b"]]), tC = {
|
|
|
30565
30570
|
"onUpdate:modelValue": W[10] || (W[10] = (V) => f(i).yAisData = V)
|
|
30566
30571
|
}, {
|
|
30567
30572
|
"pre-code": y(() => [
|
|
30568
|
-
|
|
30573
|
+
z("function (allData){")
|
|
30569
30574
|
]),
|
|
30570
30575
|
"next-code": y(() => [
|
|
30571
|
-
|
|
30576
|
+
z("}")
|
|
30572
30577
|
]),
|
|
30573
30578
|
_: 1
|
|
30574
30579
|
}, 8, ["modelValue"])
|
|
@@ -30588,12 +30593,12 @@ const Pt = /* @__PURE__ */ fl(eC, [["__scopeId", "data-v-f419eb3b"]]), tC = {
|
|
|
30588
30593
|
"onUpdate:modelValue": W[11] || (W[11] = (V) => f(i).seriesData = V)
|
|
30589
30594
|
}, {
|
|
30590
30595
|
"pre-code": y(() => [
|
|
30591
|
-
|
|
30596
|
+
z("function (allData,series,yDataId,option){")
|
|
30592
30597
|
]),
|
|
30593
30598
|
"next-code": y(() => [
|
|
30594
|
-
|
|
30599
|
+
z(" return {series,option}; "),
|
|
30595
30600
|
gC,
|
|
30596
|
-
|
|
30601
|
+
z(" } ")
|
|
30597
30602
|
]),
|
|
30598
30603
|
_: 1
|
|
30599
30604
|
}, 8, ["modelValue"])
|
|
@@ -30623,14 +30628,14 @@ const Pt = /* @__PURE__ */ fl(eC, [["__scopeId", "data-v-f419eb3b"]]), tC = {
|
|
|
30623
30628
|
"label-context": "转换配置"
|
|
30624
30629
|
}, {
|
|
30625
30630
|
"label-tips": y(() => [
|
|
30626
|
-
|
|
30631
|
+
z(" 选择转换是的字段及对字段的格式化方法 "),
|
|
30627
30632
|
g(f(Ze), {
|
|
30628
30633
|
type: "success",
|
|
30629
30634
|
plain: "",
|
|
30630
30635
|
onClick: Z
|
|
30631
30636
|
}, {
|
|
30632
30637
|
default: y(() => [
|
|
30633
|
-
|
|
30638
|
+
z(" 新增 ")
|
|
30634
30639
|
]),
|
|
30635
30640
|
_: 1
|
|
30636
30641
|
})
|
|
@@ -30689,13 +30694,13 @@ const Pt = /* @__PURE__ */ fl(eC, [["__scopeId", "data-v-f419eb3b"]]), tC = {
|
|
|
30689
30694
|
class: "column-Object-setting-format-type"
|
|
30690
30695
|
}, {
|
|
30691
30696
|
default: y(() => [
|
|
30692
|
-
|
|
30697
|
+
z(" 字符截取(可为空)开始: "),
|
|
30693
30698
|
g(C, {
|
|
30694
30699
|
"controls-position": "right",
|
|
30695
30700
|
modelValue: V.formatType.start,
|
|
30696
30701
|
"onUpdate:modelValue": (se) => V.formatType.start = se
|
|
30697
30702
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]),
|
|
30698
|
-
|
|
30703
|
+
z(" 结束: "),
|
|
30699
30704
|
g(C, {
|
|
30700
30705
|
"controls-position": "right",
|
|
30701
30706
|
modelValue: V.formatType.end,
|
|
@@ -30710,7 +30715,7 @@ const Pt = /* @__PURE__ */ fl(eC, [["__scopeId", "data-v-f419eb3b"]]), tC = {
|
|
|
30710
30715
|
class: "column-Object-setting-format-type"
|
|
30711
30716
|
}, {
|
|
30712
30717
|
default: y(() => [
|
|
30713
|
-
|
|
30718
|
+
z(" 小数位数: "),
|
|
30714
30719
|
g(C, {
|
|
30715
30720
|
modelValue: V.formatType.decimal,
|
|
30716
30721
|
"onUpdate:modelValue": (se) => V.formatType.decimal = se
|
|
@@ -30724,7 +30729,7 @@ const Pt = /* @__PURE__ */ fl(eC, [["__scopeId", "data-v-f419eb3b"]]), tC = {
|
|
|
30724
30729
|
class: "column-Object-setting-format-type"
|
|
30725
30730
|
}, {
|
|
30726
30731
|
default: y(() => [
|
|
30727
|
-
|
|
30732
|
+
z(" 格式: "),
|
|
30728
30733
|
g(N, {
|
|
30729
30734
|
modelValue: V.formatType.dateTimeFormat,
|
|
30730
30735
|
"onUpdate:modelValue": (se) => V.formatType.dateTimeFormat = se
|
|
@@ -30759,7 +30764,7 @@ const Pt = /* @__PURE__ */ fl(eC, [["__scopeId", "data-v-f419eb3b"]]), tC = {
|
|
|
30759
30764
|
plain: ""
|
|
30760
30765
|
}, {
|
|
30761
30766
|
default: y(() => [
|
|
30762
|
-
|
|
30767
|
+
z(" 删除 ")
|
|
30763
30768
|
]),
|
|
30764
30769
|
_: 2
|
|
30765
30770
|
}, 1032, ["onClick"])
|
|
@@ -30781,11 +30786,11 @@ const Pt = /* @__PURE__ */ fl(eC, [["__scopeId", "data-v-f419eb3b"]]), tC = {
|
|
|
30781
30786
|
k.value ? (A(), K(le, { key: 1 }, [
|
|
30782
30787
|
g(f(Ze), {
|
|
30783
30788
|
type: "info",
|
|
30784
|
-
onClick:
|
|
30789
|
+
onClick: D,
|
|
30785
30790
|
plain: ""
|
|
30786
30791
|
}, {
|
|
30787
30792
|
default: y(() => [
|
|
30788
|
-
|
|
30793
|
+
z(" 取消 ")
|
|
30789
30794
|
]),
|
|
30790
30795
|
_: 1
|
|
30791
30796
|
}),
|
|
@@ -30795,7 +30800,7 @@ const Pt = /* @__PURE__ */ fl(eC, [["__scopeId", "data-v-f419eb3b"]]), tC = {
|
|
|
30795
30800
|
plain: ""
|
|
30796
30801
|
}, {
|
|
30797
30802
|
default: y(() => [
|
|
30798
|
-
|
|
30803
|
+
z(" 保存字段 ")
|
|
30799
30804
|
]),
|
|
30800
30805
|
_: 1
|
|
30801
30806
|
})
|
|
@@ -30806,7 +30811,7 @@ const Pt = /* @__PURE__ */ fl(eC, [["__scopeId", "data-v-f419eb3b"]]), tC = {
|
|
|
30806
30811
|
plain: ""
|
|
30807
30812
|
}, {
|
|
30808
30813
|
default: y(() => [
|
|
30809
|
-
|
|
30814
|
+
z(" 新增字段 ")
|
|
30810
30815
|
]),
|
|
30811
30816
|
_: 1
|
|
30812
30817
|
}))
|
|
@@ -30826,7 +30831,7 @@ const Pt = /* @__PURE__ */ fl(eC, [["__scopeId", "data-v-f419eb3b"]]), tC = {
|
|
|
30826
30831
|
bC
|
|
30827
30832
|
]),
|
|
30828
30833
|
default: y(() => [
|
|
30829
|
-
g(
|
|
30834
|
+
g(F, {
|
|
30830
30835
|
modelValue: V.name,
|
|
30831
30836
|
"onUpdate:modelValue": (oe) => V.name = oe
|
|
30832
30837
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
@@ -30851,7 +30856,7 @@ const Pt = /* @__PURE__ */ fl(eC, [["__scopeId", "data-v-f419eb3b"]]), tC = {
|
|
|
30851
30856
|
plain: ""
|
|
30852
30857
|
}, {
|
|
30853
30858
|
default: y(() => [
|
|
30854
|
-
|
|
30859
|
+
z(" 删除 ")
|
|
30855
30860
|
]),
|
|
30856
30861
|
_: 1
|
|
30857
30862
|
})) : ae("", !0)
|
|
@@ -30859,7 +30864,7 @@ const Pt = /* @__PURE__ */ fl(eC, [["__scopeId", "data-v-f419eb3b"]]), tC = {
|
|
|
30859
30864
|
])
|
|
30860
30865
|
]),
|
|
30861
30866
|
default: y(() => [
|
|
30862
|
-
g(
|
|
30867
|
+
g(F, {
|
|
30863
30868
|
disabled: !V.isCustom,
|
|
30864
30869
|
modelValue: V.columnName,
|
|
30865
30870
|
"onUpdate:modelValue": (oe) => V.columnName = oe
|
|
@@ -30883,7 +30888,7 @@ const Pt = /* @__PURE__ */ fl(eC, [["__scopeId", "data-v-f419eb3b"]]), tC = {
|
|
|
30883
30888
|
xC,
|
|
30884
30889
|
g(j, { label: "字段名" }, {
|
|
30885
30890
|
default: y(() => [
|
|
30886
|
-
g(
|
|
30891
|
+
g(F, {
|
|
30887
30892
|
modelValue: Y.name,
|
|
30888
30893
|
"onUpdate:modelValue": W[13] || (W[13] = (V) => Y.name = V)
|
|
30889
30894
|
}, null, 8, ["modelValue"])
|
|
@@ -30892,7 +30897,7 @@ const Pt = /* @__PURE__ */ fl(eC, [["__scopeId", "data-v-f419eb3b"]]), tC = {
|
|
|
30892
30897
|
}),
|
|
30893
30898
|
g(j, { label: "字段键名" }, {
|
|
30894
30899
|
default: y(() => [
|
|
30895
|
-
g(
|
|
30900
|
+
g(F, {
|
|
30896
30901
|
modelValue: Y.columnName,
|
|
30897
30902
|
"onUpdate:modelValue": W[14] || (W[14] = (V) => Y.columnName = V)
|
|
30898
30903
|
}, null, 8, ["modelValue"])
|
|
@@ -30901,7 +30906,7 @@ const Pt = /* @__PURE__ */ fl(eC, [["__scopeId", "data-v-f419eb3b"]]), tC = {
|
|
|
30901
30906
|
}),
|
|
30902
30907
|
g(j, { label: "字段描述" }, {
|
|
30903
30908
|
default: y(() => [
|
|
30904
|
-
g(
|
|
30909
|
+
g(F, {
|
|
30905
30910
|
modelValue: Y.description,
|
|
30906
30911
|
"onUpdate:modelValue": W[15] || (W[15] = (V) => Y.description = V)
|
|
30907
30912
|
}, null, 8, ["modelValue"])
|
|
@@ -31024,12 +31029,12 @@ const kC = { class: "statement-design-top" }, TC = { class: "statement-name" },
|
|
|
31024
31029
|
let L = [];
|
|
31025
31030
|
if (t.value)
|
|
31026
31031
|
for (let W = 0; W < t.value.options.length; W++) {
|
|
31027
|
-
let te = t.value.options[W],
|
|
31032
|
+
let te = t.value.options[W], F = Q.value[te.type];
|
|
31028
31033
|
if (te && s.value && s.value.type === "report" && te.type === "report") {
|
|
31029
31034
|
let Oe = {
|
|
31030
|
-
name:
|
|
31035
|
+
name: F.name,
|
|
31031
31036
|
id: te.id,
|
|
31032
|
-
icon:
|
|
31037
|
+
icon: F.icon,
|
|
31033
31038
|
option: te,
|
|
31034
31039
|
isActive: s.value && s.value.id === te.id
|
|
31035
31040
|
};
|
|
@@ -31048,13 +31053,13 @@ const kC = { class: "statement-design-top" }, TC = { class: "statement-name" },
|
|
|
31048
31053
|
}
|
|
31049
31054
|
});
|
|
31050
31055
|
let b = null, P = null, Z = be(""), M = be("");
|
|
31051
|
-
const
|
|
31056
|
+
const D = $e(() => Z.value !== "" && Z.value !== void 0);
|
|
31052
31057
|
function U(L, W) {
|
|
31053
31058
|
let te = "report-drag-source";
|
|
31054
31059
|
return W || (te = "report-drop-target"), L.classList.contains(te) ? L : L.closest("." + te);
|
|
31055
31060
|
}
|
|
31056
|
-
function
|
|
31057
|
-
var te,
|
|
31061
|
+
function G(L) {
|
|
31062
|
+
var te, F;
|
|
31058
31063
|
let W = U(L.target, !0);
|
|
31059
31064
|
if (W) {
|
|
31060
31065
|
let { drag: Oe, index: me } = W.dataset;
|
|
@@ -31069,7 +31074,7 @@ const kC = { class: "statement-design-top" }, TC = { class: "statement-name" },
|
|
|
31069
31074
|
dataSource: s.value.data.source[parseInt(me)],
|
|
31070
31075
|
columnIndex: ve !== void 0 ? parseInt(ve) : 0
|
|
31071
31076
|
};
|
|
31072
|
-
(
|
|
31077
|
+
(F = L.dataTransfer) == null || F.setData("application/json", JSON.stringify(Xe)), Z.value = "拖拽到报表添加字段/参数";
|
|
31073
31078
|
}
|
|
31074
31079
|
Oe === "params" && (b = "params", P = me === void 0 ? null : me, Z.value = "左右移动参数位置");
|
|
31075
31080
|
}
|
|
@@ -31083,7 +31088,7 @@ const kC = { class: "statement-design-top" }, TC = { class: "statement-name" },
|
|
|
31083
31088
|
var te;
|
|
31084
31089
|
let W = U(L.target, !1);
|
|
31085
31090
|
if (W) {
|
|
31086
|
-
let { source:
|
|
31091
|
+
let { source: F, target: Oe, index: me } = W.dataset, ve = (te = L.dataTransfer) == null ? void 0 : te.getData("application/json");
|
|
31087
31092
|
switch (Oe) {
|
|
31088
31093
|
case "canvas":
|
|
31089
31094
|
if (b === "canvas" && ve) {
|
|
@@ -31092,8 +31097,8 @@ const kC = { class: "statement-design-top" }, TC = { class: "statement-name" },
|
|
|
31092
31097
|
}
|
|
31093
31098
|
break;
|
|
31094
31099
|
case "params":
|
|
31095
|
-
if (s.value && s.value.type === "report" && (
|
|
31096
|
-
if (
|
|
31100
|
+
if (s.value && s.value.type === "report" && (F === b && ve || Oe === b)) {
|
|
31101
|
+
if (F === "column" && ve) {
|
|
31097
31102
|
const { dataSource: Xe, columnIndex: Se } = JSON.parse(ve);
|
|
31098
31103
|
let N = Xe.columns[Se], C = s.value.params.findIndex((j) => j.columnName === N.columnName), ee = {
|
|
31099
31104
|
key: Xe.key,
|
|
@@ -31152,8 +31157,8 @@ const kC = { class: "statement-design-top" }, TC = { class: "statement-name" },
|
|
|
31152
31157
|
let W = U(L.target, !1);
|
|
31153
31158
|
if (W) {
|
|
31154
31159
|
L.preventDefault();
|
|
31155
|
-
let { source: te, target:
|
|
31156
|
-
if (b && [te,
|
|
31160
|
+
let { source: te, target: F, index: Oe } = W.dataset;
|
|
31161
|
+
if (b && [te, F].includes(b))
|
|
31157
31162
|
switch (W.classList.add("drag-over"), b) {
|
|
31158
31163
|
case "canvas":
|
|
31159
31164
|
if (Oe !== void 0) {
|
|
@@ -31163,14 +31168,14 @@ const kC = { class: "statement-design-top" }, TC = { class: "statement-name" },
|
|
|
31163
31168
|
M.value = "将添加到最后一个位置";
|
|
31164
31169
|
break;
|
|
31165
31170
|
case "column":
|
|
31166
|
-
if (
|
|
31171
|
+
if (F === "params")
|
|
31167
31172
|
if (Oe !== void 0) {
|
|
31168
31173
|
const me = parseInt(Oe);
|
|
31169
31174
|
M.value = `将添加为第 ${isNaN(me) ? 1 : me + 1} 个筛选参数`;
|
|
31170
31175
|
} else
|
|
31171
31176
|
M.value = "将添加为一个新的筛选参数";
|
|
31172
31177
|
else
|
|
31173
|
-
|
|
31178
|
+
F === "column" ? L.ctrlKey ? M.value = "将字段名添加到单元格中" : L.altKey ? M.value = "将单元格与字段绑定" : L.shiftKey ? M.value = "根据数据渲染当前列,并绑定单元格与字段" : M.value = "根据数据渲染当前行,并绑定单元格与字段" : M.value = "尝试按住: Shift、Ctrl、Alt";
|
|
31174
31179
|
break;
|
|
31175
31180
|
}
|
|
31176
31181
|
else
|
|
@@ -31210,17 +31215,17 @@ const kC = { class: "statement-design-top" }, TC = { class: "statement-name" },
|
|
|
31210
31215
|
var L;
|
|
31211
31216
|
(L = document.querySelector(".main-container")) == null || L.classList.remove("statement-design-main");
|
|
31212
31217
|
}), yi(() => {
|
|
31213
|
-
var L, W, te,
|
|
31214
|
-
u(w.params.id), (L = m.value) == null || L.addEventListener("dragstart",
|
|
31218
|
+
var L, W, te, F, Oe;
|
|
31219
|
+
u(w.params.id), (L = m.value) == null || L.addEventListener("dragstart", G), (W = m.value) == null || W.addEventListener("dragend", J), (te = m.value) == null || te.addEventListener("dragover", ne), (F = m.value) == null || F.addEventListener("dragleave", ye), (Oe = m.value) == null || Oe.addEventListener("drop", ie);
|
|
31215
31220
|
}), Zn(() => {
|
|
31216
|
-
var L, W, te,
|
|
31217
|
-
e.$dispose(), (L = m.value) == null || L.removeEventListener("dragstart",
|
|
31221
|
+
var L, W, te, F, Oe;
|
|
31222
|
+
e.$dispose(), (L = m.value) == null || L.removeEventListener("dragstart", G), (W = m.value) == null || W.removeEventListener("dragend", J), (te = m.value) == null || te.removeEventListener("dragover", ne), (F = m.value) == null || F.removeEventListener("dragleave", ye), (Oe = m.value) == null || Oe.removeEventListener("drop", ie);
|
|
31218
31223
|
}), (L, W) => {
|
|
31219
31224
|
var Oe;
|
|
31220
|
-
const te = he("el-alert"),
|
|
31225
|
+
const te = he("el-alert"), F = he("el-button-group");
|
|
31221
31226
|
return A(), K(le, null, [
|
|
31222
31227
|
g(te, {
|
|
31223
|
-
class: yt(["statement-alert", { show: f(
|
|
31228
|
+
class: yt(["statement-alert", { show: f(D) }]),
|
|
31224
31229
|
title: f(Z),
|
|
31225
31230
|
description: f(M),
|
|
31226
31231
|
type: "warning",
|
|
@@ -31235,7 +31240,7 @@ const kC = { class: "statement-design-top" }, TC = { class: "statement-name" },
|
|
|
31235
31240
|
q("div", kC, [
|
|
31236
31241
|
q("div", TC, I((Oe = f(t)) == null ? void 0 : Oe.name), 1),
|
|
31237
31242
|
q("div", CC, [
|
|
31238
|
-
g(
|
|
31243
|
+
g(F, null, {
|
|
31239
31244
|
default: y(() => [
|
|
31240
31245
|
f(i) ? (A(), K(le, { key: 1 }, [
|
|
31241
31246
|
f(i) ? (A(), re(an, {
|
|
@@ -31386,4 +31391,4 @@ const kC = { class: "statement-design-top" }, TC = { class: "statement-name" },
|
|
|
31386
31391
|
export {
|
|
31387
31392
|
l2 as default
|
|
31388
31393
|
};
|
|
31389
|
-
//# sourceMappingURL=StatementDesign-
|
|
31394
|
+
//# sourceMappingURL=StatementDesign-eee34e30.mjs.map
|