@ecan-bi/chart-config-panel 1.0.5 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/vue2/index.cjs +4 -4
- package/dist/vue2/index.mjs +384 -374
- package/dist/vue2/style.css +1 -1
- package/dist/vue3/index.cjs +9 -9
- package/dist/vue3/index.mjs +13 -3
- package/dist/vue3/style.css +1 -1
- package/package.json +1 -1
package/dist/vue2/index.mjs
CHANGED
|
@@ -9,14 +9,14 @@ var Ne = (t, e, o) => e in t ? wt(t, e, { enumerable: !0, configurable: !0, writ
|
|
|
9
9
|
for (var o of he(e))
|
|
10
10
|
Be.call(e, o) && Ne(t, o, e[o]);
|
|
11
11
|
return t;
|
|
12
|
-
},
|
|
12
|
+
}, le = (t, e) => Ct(t, At(e));
|
|
13
13
|
var Ee = (t, e) => {
|
|
14
14
|
var o = {};
|
|
15
|
-
for (var
|
|
16
|
-
qe.call(t,
|
|
15
|
+
for (var n in t)
|
|
16
|
+
qe.call(t, n) && e.indexOf(n) < 0 && (o[n] = t[n]);
|
|
17
17
|
if (t != null && he)
|
|
18
|
-
for (var
|
|
19
|
-
e.indexOf(
|
|
18
|
+
for (var n of he(t))
|
|
19
|
+
e.indexOf(n) < 0 && Be.call(t, n) && (o[n] = t[n]);
|
|
20
20
|
return o;
|
|
21
21
|
};
|
|
22
22
|
import { cloneDeep as Z, reduce as pt, pick as ge } from "lodash-es";
|
|
@@ -248,6 +248,7 @@ const Lt = [
|
|
|
248
248
|
props: [
|
|
249
249
|
"tooltipTrigger",
|
|
250
250
|
"tooltipFormatter",
|
|
251
|
+
"tooltipFontSize",
|
|
251
252
|
"tooltipTextStyleColor",
|
|
252
253
|
"tooltipBackgroundColor",
|
|
253
254
|
"tooltipRequestData",
|
|
@@ -739,6 +740,7 @@ const Lt = [
|
|
|
739
740
|
yAxisMaxValue: null,
|
|
740
741
|
xAxisLabelShow: !0,
|
|
741
742
|
tooltipTextStyleColor: "",
|
|
743
|
+
tooltipFontSize: "12px",
|
|
742
744
|
noDataTip: !1,
|
|
743
745
|
tipText: "暂无数据",
|
|
744
746
|
tipTextColor: "#000000",
|
|
@@ -6188,11 +6190,19 @@ const Lt = [
|
|
|
6188
6190
|
label: "条件设置",
|
|
6189
6191
|
component: "visual-size-config",
|
|
6190
6192
|
layout: "vertical"
|
|
6193
|
+
},
|
|
6194
|
+
tooltipFontSize: {
|
|
6195
|
+
label: "字号",
|
|
6196
|
+
component: "input-number",
|
|
6197
|
+
props: {
|
|
6198
|
+
suffix: "px",
|
|
6199
|
+
min: 1
|
|
6200
|
+
}
|
|
6191
6201
|
}
|
|
6192
6202
|
};
|
|
6193
|
-
function A(t, e, o,
|
|
6203
|
+
function A(t, e, o, n, a, l, r, m) {
|
|
6194
6204
|
var d = typeof t == "function" ? t.options : t;
|
|
6195
|
-
e && (d.render = e, d.staticRenderFns = o, d._compiled = !0),
|
|
6205
|
+
e && (d.render = e, d.staticRenderFns = o, d._compiled = !0), n && (d.functional = !0), l && (d._scopeId = "data-v-" + l);
|
|
6196
6206
|
var c;
|
|
6197
6207
|
if (r ? (c = function(y) {
|
|
6198
6208
|
y = y || // cached call
|
|
@@ -6394,32 +6404,32 @@ const Dt = {
|
|
|
6394
6404
|
};
|
|
6395
6405
|
var Ot = function() {
|
|
6396
6406
|
var e = this, o = e._self._c;
|
|
6397
|
-
return o("div", { staticStyle: { display: "flex", "align-items": "center" } }, [!e.isVue3 && e.prefix ? [o("div", { staticClass: "prefix-section icon-section" }, [Array.isArray(e.prefix) && e.prefix.length > 0 ? [o("a-select", { attrs: { value: e.prefixValue }, on: { change: e.onPrefixChange } }, e._l(e.prefix, function(
|
|
6398
|
-
return o("a-select-option", { key: a, attrs: { value:
|
|
6407
|
+
return o("div", { staticStyle: { display: "flex", "align-items": "center" } }, [!e.isVue3 && e.prefix ? [o("div", { staticClass: "prefix-section icon-section" }, [Array.isArray(e.prefix) && e.prefix.length > 0 ? [o("a-select", { attrs: { value: e.prefixValue }, on: { change: e.onPrefixChange } }, e._l(e.prefix, function(n, a) {
|
|
6408
|
+
return o("a-select-option", { key: a, attrs: { value: n.value } }, [e._v(" " + e._s(n.label) + " ")]);
|
|
6399
6409
|
}), 1)] : o("span", [e._v(e._s(e.prefix))])], 2)] : e._e(), o("a-input-number", { style: D({
|
|
6400
6410
|
flex: 1
|
|
6401
6411
|
}, e.isVue3 ? {} : { borderRadius: `${e.prefix ? 0 : "4px"} ${e.suffix ? 0 : "4px"} ${e.suffix ? 0 : "4px"} ${e.prefix ? 0 : "4px"}` }), attrs: { value: e.inputValue, min: e.min, max: e.max, step: e.step, parser: e.parser, "addon-before": Array.isArray(e.prefix) ? void 0 : e.prefix, "addon-after": Array.isArray(e.suffix) ? void 0 : e.suffix }, on: { change: e.onInputChange, blur: e.onInputBlur }, scopedSlots: e._u([Array.isArray(e.prefix) && e.prefix.length > 0 ? { key: "addonBefore", fn: function() {
|
|
6402
|
-
return [o("a-select", { attrs: { value: e.prefixValue }, on: { change: e.onPrefixChange } }, e._l(e.prefix, function(
|
|
6403
|
-
return o("a-select-option", { key: a, attrs: { value:
|
|
6412
|
+
return [o("a-select", { attrs: { value: e.prefixValue }, on: { change: e.onPrefixChange } }, e._l(e.prefix, function(n, a) {
|
|
6413
|
+
return o("a-select-option", { key: a, attrs: { value: n.value } }, [e._v(" " + e._s(n.label) + " ")]);
|
|
6404
6414
|
}), 1)];
|
|
6405
6415
|
}, proxy: !0 } : null, Array.isArray(e.suffix) && e.suffix.length > 0 ? { key: "addonAfter", fn: function() {
|
|
6406
|
-
return [o("a-select", { attrs: { value: e.suffixValue }, on: { change: e.onSuffixChange } }, e._l(e.suffix, function(
|
|
6407
|
-
return o("a-select-option", { key: a, attrs: { value:
|
|
6416
|
+
return [o("a-select", { attrs: { value: e.suffixValue }, on: { change: e.onSuffixChange } }, e._l(e.suffix, function(n, a) {
|
|
6417
|
+
return o("a-select-option", { key: a, attrs: { value: n.value } }, [e._v(" " + e._s(n.label) + " ")]);
|
|
6408
6418
|
}), 1)];
|
|
6409
|
-
}, proxy: !0 } : null], null, !0) }), !e.isVue3 && e.suffix ? [o("div", { staticClass: "suffix-section icon-section" }, [Array.isArray(e.suffix) && e.suffix.length > 0 ? [o("a-select", { attrs: { value: e.suffixValue }, on: { change: e.onSuffixChange } }, e._l(e.suffix, function(
|
|
6410
|
-
return o("a-select-option", { key: a, attrs: { value:
|
|
6419
|
+
}, proxy: !0 } : null], null, !0) }), !e.isVue3 && e.suffix ? [o("div", { staticClass: "suffix-section icon-section" }, [Array.isArray(e.suffix) && e.suffix.length > 0 ? [o("a-select", { attrs: { value: e.suffixValue }, on: { change: e.onSuffixChange } }, e._l(e.suffix, function(n, a) {
|
|
6420
|
+
return o("a-select-option", { key: a, attrs: { value: n.value } }, [e._v(" " + e._s(n.label) + " ")]);
|
|
6411
6421
|
}), 1)] : o("span", [e._v(e._s(e.suffix))])], 2)] : e._e()], 2);
|
|
6412
|
-
},
|
|
6422
|
+
}, zt = [], Rt = /* @__PURE__ */ A(
|
|
6413
6423
|
Dt,
|
|
6414
6424
|
Ot,
|
|
6415
|
-
|
|
6425
|
+
zt,
|
|
6416
6426
|
!1,
|
|
6417
6427
|
null,
|
|
6418
6428
|
"d6ca6a85",
|
|
6419
6429
|
null,
|
|
6420
6430
|
null
|
|
6421
6431
|
);
|
|
6422
|
-
const ut =
|
|
6432
|
+
const ut = Rt.exports;
|
|
6423
6433
|
const Pt = {
|
|
6424
6434
|
name: "RadioGroup",
|
|
6425
6435
|
components: {
|
|
@@ -6460,8 +6470,8 @@ const Pt = {
|
|
|
6460
6470
|
};
|
|
6461
6471
|
var Nt = function() {
|
|
6462
6472
|
var e = this, o = e._self._c;
|
|
6463
|
-
return o("a-radio-group", { staticStyle: { "white-space": "nowrap" }, attrs: { value: e.value, optionType: e.optionType, size: e.size }, on: { change: e.onRadioChange } }, e._l(e.options, function(
|
|
6464
|
-
return o("a-radio-button", { key:
|
|
6473
|
+
return o("a-radio-group", { staticStyle: { "white-space": "nowrap" }, attrs: { value: e.value, optionType: e.optionType, size: e.size }, on: { change: e.onRadioChange } }, e._l(e.options, function(n) {
|
|
6474
|
+
return o("a-radio-button", { key: n.value, attrs: { value: n.value } }, [e._v(" " + e._s(n.label) + " ")]);
|
|
6465
6475
|
}), 1);
|
|
6466
6476
|
}, qt = [], Bt = /* @__PURE__ */ A(
|
|
6467
6477
|
Pt,
|
|
@@ -6489,25 +6499,25 @@ const j = [];
|
|
|
6489
6499
|
function Oe(t, ...e) {
|
|
6490
6500
|
if (process.env.NODE_ENV === "production")
|
|
6491
6501
|
return;
|
|
6492
|
-
const o = j.length ? j[j.length - 1].component : null,
|
|
6493
|
-
let
|
|
6494
|
-
if (!
|
|
6502
|
+
const o = j.length ? j[j.length - 1].component : null, n = o && o.appContext.config.warnHandler, a = function() {
|
|
6503
|
+
let l = j[j.length - 1];
|
|
6504
|
+
if (!l)
|
|
6495
6505
|
return [];
|
|
6496
6506
|
const r = [];
|
|
6497
|
-
for (;
|
|
6507
|
+
for (; l; ) {
|
|
6498
6508
|
const m = r[0];
|
|
6499
|
-
m && m.vnode ===
|
|
6500
|
-
const d =
|
|
6501
|
-
|
|
6509
|
+
m && m.vnode === l ? m.recurseCount++ : r.push({ vnode: l, recurseCount: 0 });
|
|
6510
|
+
const d = l.component && l.component.parent;
|
|
6511
|
+
l = d && d.vnode;
|
|
6502
6512
|
}
|
|
6503
6513
|
return r;
|
|
6504
6514
|
}();
|
|
6505
|
-
if (
|
|
6506
|
-
|
|
6515
|
+
if (n)
|
|
6516
|
+
ze(n, o, 11, [t + e.join(""), o && o.proxy, a.map(({ vnode: l }) => `at <${Ke(o, l.type)}>`).join(`
|
|
6507
6517
|
`), a]);
|
|
6508
6518
|
else {
|
|
6509
|
-
const
|
|
6510
|
-
a.length &&
|
|
6519
|
+
const l = [`[Vue warn]: ${t}`, ...e];
|
|
6520
|
+
a.length && l.push(`
|
|
6511
6521
|
`, ...function(r) {
|
|
6512
6522
|
const m = [];
|
|
6513
6523
|
return r.forEach((d, c) => {
|
|
@@ -6517,24 +6527,24 @@ function Oe(t, ...e) {
|
|
|
6517
6527
|
return g.props ? [k, ...Kt(g.props), $] : [k + $];
|
|
6518
6528
|
}(d));
|
|
6519
6529
|
}), m;
|
|
6520
|
-
}(a)), console.warn(...
|
|
6530
|
+
}(a)), console.warn(...l);
|
|
6521
6531
|
}
|
|
6522
6532
|
}
|
|
6523
6533
|
function Kt(t) {
|
|
6524
6534
|
const e = [], o = Object.keys(t);
|
|
6525
|
-
return o.slice(0, 3).forEach((
|
|
6526
|
-
e.push(...ct(
|
|
6535
|
+
return o.slice(0, 3).forEach((n) => {
|
|
6536
|
+
e.push(...ct(n, t[n]));
|
|
6527
6537
|
}), o.length > 3 && e.push(" ..."), e;
|
|
6528
6538
|
}
|
|
6529
6539
|
function ct(t, e, o) {
|
|
6530
6540
|
return typeof e == "string" ? (e = JSON.stringify(e), o ? e : [`${t}=${e}`]) : typeof e == "number" || typeof e == "boolean" || e == null ? o ? e : [`${t}=${e}`] : Ut(e) ? (e = ct(t, Le(e.value), !0), o ? e : [`${t}=Ref<`, e, ">"]) : De(e) ? [`${t}=fn${e.name ? `<${e.name}>` : ""}`] : (e = Le(e), o ? e : [`${t}=`, e]);
|
|
6531
6541
|
}
|
|
6532
6542
|
const je = { sp: "serverPrefetch hook", bc: "beforeCreate hook", c: "created hook", bm: "beforeMount hook", m: "mounted hook", bu: "beforeUpdate hook", u: "updated", bum: "beforeUnmount hook", um: "unmounted hook", a: "activated hook", da: "deactivated hook", ec: "errorCaptured hook", rtc: "renderTracked hook", rtg: "renderTriggered hook", 0: "setup function", 1: "render function", 2: "watcher getter", 3: "watcher callback", 4: "watcher cleanup function", 5: "native event handler", 6: "component event handler", 7: "vnode hook", 8: "directive hook", 9: "transition hook", 10: "app errorHandler", 11: "app warnHandler", 12: "ref function", 13: "async component loader", 14: "scheduler flush. This is likely a Vue internals bug. Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/core" };
|
|
6533
|
-
function
|
|
6543
|
+
function ze(t, e, o, n) {
|
|
6534
6544
|
let a;
|
|
6535
6545
|
try {
|
|
6536
|
-
a =
|
|
6537
|
-
} catch (
|
|
6546
|
+
a = n ? t(...n) : t();
|
|
6547
|
+
} catch (l) {
|
|
6538
6548
|
(function(r, m, d, c = !0) {
|
|
6539
6549
|
const g = m ? m.vnode : null;
|
|
6540
6550
|
if (m) {
|
|
@@ -6551,7 +6561,7 @@ function Re(t, e, o, l) {
|
|
|
6551
6561
|
}
|
|
6552
6562
|
const k = m.appContext.config.errorHandler;
|
|
6553
6563
|
if (k)
|
|
6554
|
-
return void
|
|
6564
|
+
return void ze(k, null, 10, [r, y, _]);
|
|
6555
6565
|
}
|
|
6556
6566
|
(function(x, y, _, k = !0) {
|
|
6557
6567
|
if (process.env.NODE_ENV !== "production") {
|
|
@@ -6563,7 +6573,7 @@ function Re(t, e, o, l) {
|
|
|
6563
6573
|
console.error(x);
|
|
6564
6574
|
var $;
|
|
6565
6575
|
})(r, d, g, c);
|
|
6566
|
-
})(
|
|
6576
|
+
})(l, e, o);
|
|
6567
6577
|
}
|
|
6568
6578
|
return a;
|
|
6569
6579
|
}
|
|
@@ -6575,10 +6585,10 @@ let O = null, q = 0;
|
|
|
6575
6585
|
const Yt = Promise.resolve();
|
|
6576
6586
|
function Xt(t) {
|
|
6577
6587
|
M.length && M.includes(t, be && t.allowRecurse ? B + 1 : B) || (t.id == null ? M.push(t) : M.splice(function(e) {
|
|
6578
|
-
let o = B + 1,
|
|
6579
|
-
for (; o <
|
|
6580
|
-
const a = o +
|
|
6581
|
-
r < e || r === e &&
|
|
6588
|
+
let o = B + 1, n = M.length;
|
|
6589
|
+
for (; o < n; ) {
|
|
6590
|
+
const a = o + n >>> 1, l = M[a], r = pe(l);
|
|
6591
|
+
r < e || r === e && l.pre ? o = a + 1 : n = a;
|
|
6582
6592
|
}
|
|
6583
6593
|
return o;
|
|
6584
6594
|
}(t.id), 0, t), dt());
|
|
@@ -6605,16 +6615,16 @@ function mt(t) {
|
|
|
6605
6615
|
if (o && o.active !== !1) {
|
|
6606
6616
|
if (process.env.NODE_ENV !== "production" && e(o))
|
|
6607
6617
|
continue;
|
|
6608
|
-
|
|
6618
|
+
ze(o, null, 14);
|
|
6609
6619
|
}
|
|
6610
6620
|
}
|
|
6611
6621
|
} finally {
|
|
6612
6622
|
B = 0, M.length = 0, function(o) {
|
|
6613
6623
|
if (X.length) {
|
|
6614
|
-
const
|
|
6624
|
+
const n = [...new Set(X)];
|
|
6615
6625
|
if (X.length = 0, O)
|
|
6616
|
-
return void O.push(...
|
|
6617
|
-
for (O =
|
|
6626
|
+
return void O.push(...n);
|
|
6627
|
+
for (O = n, process.env.NODE_ENV !== "production" && (o = o || /* @__PURE__ */ new Map()), O.sort((a, l) => pe(a) - pe(l)), q = 0; q < O.length; q++)
|
|
6618
6628
|
process.env.NODE_ENV !== "production" && Ge(o, O[q]) || O[q]();
|
|
6619
6629
|
O = null, q = 0;
|
|
6620
6630
|
}
|
|
@@ -6625,7 +6635,7 @@ function Ge(t, e) {
|
|
|
6625
6635
|
if (t.has(e)) {
|
|
6626
6636
|
const o = t.get(e);
|
|
6627
6637
|
if (o > 100) {
|
|
6628
|
-
const
|
|
6638
|
+
const n = e.ownerInstance, a = n && ht(n.type);
|
|
6629
6639
|
return Oe(`Maximum recursive updates exceeded${a ? ` in component <${a}>` : ""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`), !0;
|
|
6630
6640
|
}
|
|
6631
6641
|
t.set(e, o + 1);
|
|
@@ -6637,22 +6647,22 @@ process.env.NODE_ENV !== "production" && (Te().__VUE_HMR_RUNTIME__ = { createRec
|
|
|
6637
6647
|
return fe.has(t) ? !1 : (fe.set(t, { initialDef: ie(e), instances: /* @__PURE__ */ new Set() }), !0);
|
|
6638
6648
|
}), rerender: Se(function(t, e) {
|
|
6639
6649
|
const o = fe.get(t);
|
|
6640
|
-
o && (o.initialDef.render = e, [...o.instances].forEach((
|
|
6641
|
-
e && (
|
|
6650
|
+
o && (o.initialDef.render = e, [...o.instances].forEach((n) => {
|
|
6651
|
+
e && (n.render = e, ie(n.type).render = e), n.renderCache = [], n.update();
|
|
6642
6652
|
}));
|
|
6643
6653
|
}), reload: Se(function(t, e) {
|
|
6644
6654
|
const o = fe.get(t);
|
|
6645
6655
|
if (!o)
|
|
6646
6656
|
return;
|
|
6647
6657
|
e = ie(e), He(o.initialDef, e);
|
|
6648
|
-
const
|
|
6649
|
-
for (const
|
|
6650
|
-
const r = ie(
|
|
6651
|
-
ae.has(r) || (r !== o.initialDef && He(r, e), ae.add(r)),
|
|
6658
|
+
const n = [...o.instances];
|
|
6659
|
+
for (const l of n) {
|
|
6660
|
+
const r = ie(l.type);
|
|
6661
|
+
ae.has(r) || (r !== o.initialDef && He(r, e), ae.add(r)), l.appContext.propsCache.delete(l.type), l.appContext.emitsCache.delete(l.type), l.appContext.optionsCache.delete(l.type), l.ceReload ? (ae.add(r), l.ceReload(e.styles), ae.delete(r)) : l.parent ? Xt(l.parent.update) : l.appContext.reload ? l.appContext.reload() : typeof window != "undefined" ? window.location.reload() : console.warn("[HMR] Root or manually mounted instance modified. Full reload required.");
|
|
6652
6662
|
}
|
|
6653
6663
|
a = () => {
|
|
6654
|
-
for (const
|
|
6655
|
-
ae.delete(ie(
|
|
6664
|
+
for (const l of n)
|
|
6665
|
+
ae.delete(ie(l.type));
|
|
6656
6666
|
}, Gt(a) ? X.push(...a) : O && O.includes(a, a.allowRecurse ? q + 1 : q) || X.push(a), dt();
|
|
6657
6667
|
var a;
|
|
6658
6668
|
}) });
|
|
@@ -6670,8 +6680,8 @@ function Se(t) {
|
|
|
6670
6680
|
return (e, o) => {
|
|
6671
6681
|
try {
|
|
6672
6682
|
return t(e, o);
|
|
6673
|
-
} catch (
|
|
6674
|
-
console.error(
|
|
6683
|
+
} catch (n) {
|
|
6684
|
+
console.error(n), console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.");
|
|
6675
6685
|
}
|
|
6676
6686
|
};
|
|
6677
6687
|
}
|
|
@@ -6684,20 +6694,20 @@ function ht(t, e = !0) {
|
|
|
6684
6694
|
return De(t) ? t.displayName || t.name : t.name || e && t.__name;
|
|
6685
6695
|
}
|
|
6686
6696
|
function Ke(t, e, o = !1) {
|
|
6687
|
-
let
|
|
6688
|
-
if (!
|
|
6697
|
+
let n = ht(e);
|
|
6698
|
+
if (!n && e.__file) {
|
|
6689
6699
|
const a = e.__file.match(/([^/\\]+)\.\w+$/);
|
|
6690
|
-
a && (
|
|
6700
|
+
a && (n = a[1]);
|
|
6691
6701
|
}
|
|
6692
|
-
if (!
|
|
6693
|
-
const a = (
|
|
6694
|
-
for (const r in
|
|
6695
|
-
if (
|
|
6702
|
+
if (!n && t && t.parent) {
|
|
6703
|
+
const a = (l) => {
|
|
6704
|
+
for (const r in l)
|
|
6705
|
+
if (l[r] === e)
|
|
6696
6706
|
return r;
|
|
6697
6707
|
};
|
|
6698
|
-
|
|
6708
|
+
n = a(t.components || t.parent.type.components) || a(t.appContext.components);
|
|
6699
6709
|
}
|
|
6700
|
-
return
|
|
6710
|
+
return n ? Qt(n) : o ? "App" : "Anonymous";
|
|
6701
6711
|
}
|
|
6702
6712
|
function eo(t) {
|
|
6703
6713
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
@@ -6705,7 +6715,7 @@ function eo(t) {
|
|
|
6705
6715
|
var Ye, Xe = { exports: {} };
|
|
6706
6716
|
function to() {
|
|
6707
6717
|
return Ye || (Ye = 1, Xe.exports = function() {
|
|
6708
|
-
var t = 1e3, e = 6e4, o = 36e5,
|
|
6718
|
+
var t = 1e3, e = 6e4, o = 36e5, n = "millisecond", a = "second", l = "minute", r = "hour", m = "day", d = "week", c = "month", g = "quarter", x = "year", y = "date", _ = "Invalid Date", k = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, $ = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, I = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(h) {
|
|
6709
6719
|
var s = ["th", "st", "nd", "rd"], i = h % 100;
|
|
6710
6720
|
return "[" + h + (s[(i - 20) % 10] || s[i] || s[0]) + "]";
|
|
6711
6721
|
} }, ce = function(h, s, i) {
|
|
@@ -6722,7 +6732,7 @@ function to() {
|
|
|
6722
6732
|
}, a: function(h) {
|
|
6723
6733
|
return h < 0 ? Math.ceil(h) || 0 : Math.floor(h);
|
|
6724
6734
|
}, p: function(h) {
|
|
6725
|
-
return { M: c, y: x, w: d, d: m, D: y, h: r, m:
|
|
6735
|
+
return { M: c, y: x, w: d, d: m, D: y, h: r, m: l, s: a, ms: n, Q: g }[h] || String(h || "").toLowerCase().replace(/s$/, "");
|
|
6726
6736
|
}, u: function(h) {
|
|
6727
6737
|
return h === void 0;
|
|
6728
6738
|
} }, U = "en", P = {};
|
|
@@ -6816,7 +6826,7 @@ function to() {
|
|
|
6816
6826
|
return w(K + "Hours", 0);
|
|
6817
6827
|
case r:
|
|
6818
6828
|
return w(K + "Minutes", 1);
|
|
6819
|
-
case
|
|
6829
|
+
case l:
|
|
6820
6830
|
return w(K + "Seconds", 2);
|
|
6821
6831
|
case a:
|
|
6822
6832
|
return w(K + "Milliseconds", 3);
|
|
@@ -6826,7 +6836,7 @@ function to() {
|
|
|
6826
6836
|
}, s.endOf = function(i) {
|
|
6827
6837
|
return this.startOf(i, !1);
|
|
6828
6838
|
}, s.$set = function(i, u) {
|
|
6829
|
-
var p, f = v.p(i), b = "set" + (this.$u ? "UTC" : ""), S = (p = {}, p[m] = b + "Date", p[y] = b + "Date", p[c] = b + "Month", p[x] = b + "FullYear", p[r] = b + "Hours", p[
|
|
6839
|
+
var p, f = v.p(i), b = "set" + (this.$u ? "UTC" : ""), S = (p = {}, p[m] = b + "Date", p[y] = b + "Date", p[c] = b + "Month", p[x] = b + "FullYear", p[r] = b + "Hours", p[l] = b + "Minutes", p[a] = b + "Seconds", p[n] = b + "Milliseconds", p)[f], w = f === m ? this.$D + (u - this.$W) : u;
|
|
6830
6840
|
if (f === c || f === x) {
|
|
6831
6841
|
var T = this.clone().set(y, 1);
|
|
6832
6842
|
T.$d[S](w), T.init(), this.$d = T.set(y, Math.min(this.$D, T.daysInMonth())).$d;
|
|
@@ -6852,7 +6862,7 @@ function to() {
|
|
|
6852
6862
|
return S(1);
|
|
6853
6863
|
if (b === d)
|
|
6854
6864
|
return S(7);
|
|
6855
|
-
var w = (p = {}, p[
|
|
6865
|
+
var w = (p = {}, p[l] = e, p[r] = o, p[a] = t, p)[b] || 1, T = this.$d.getTime() + i * w;
|
|
6856
6866
|
return v.w(T, this);
|
|
6857
6867
|
}, s.subtract = function(i, u) {
|
|
6858
6868
|
return this.add(-1 * i, u);
|
|
@@ -6860,17 +6870,17 @@ function to() {
|
|
|
6860
6870
|
var u = this, p = this.$locale();
|
|
6861
6871
|
if (!this.isValid())
|
|
6862
6872
|
return p.invalidDate || _;
|
|
6863
|
-
var f = i || "YYYY-MM-DDTHH:mm:ssZ", b = v.z(this), S = this.$H, w = this.$m, T = this.$M, L = p.weekdays, V = p.months, K = p.meridiem, E = function(F, N,
|
|
6864
|
-
return F && (F[N] || F(u, f)) ||
|
|
6873
|
+
var f = i || "YYYY-MM-DDTHH:mm:ssZ", b = v.z(this), S = this.$H, w = this.$m, T = this.$M, L = p.weekdays, V = p.months, K = p.meridiem, E = function(F, N, ne, me) {
|
|
6874
|
+
return F && (F[N] || F(u, f)) || ne[N].slice(0, me);
|
|
6865
6875
|
}, oe = function(F) {
|
|
6866
6876
|
return v.s(S % 12 || 12, F, "0");
|
|
6867
|
-
}, W = K || function(F, N,
|
|
6877
|
+
}, W = K || function(F, N, ne) {
|
|
6868
6878
|
var me = F < 12 ? "AM" : "PM";
|
|
6869
|
-
return
|
|
6879
|
+
return ne ? me.toLowerCase() : me;
|
|
6870
6880
|
};
|
|
6871
6881
|
return f.replace($, function(F, N) {
|
|
6872
|
-
return N || function(
|
|
6873
|
-
switch (
|
|
6882
|
+
return N || function(ne) {
|
|
6883
|
+
switch (ne) {
|
|
6874
6884
|
case "YY":
|
|
6875
6885
|
return String(u.$y).slice(-2);
|
|
6876
6886
|
case "YYYY":
|
|
@@ -6948,7 +6958,7 @@ function to() {
|
|
|
6948
6958
|
case r:
|
|
6949
6959
|
f = L / o;
|
|
6950
6960
|
break;
|
|
6951
|
-
case
|
|
6961
|
+
case l:
|
|
6952
6962
|
f = L / e;
|
|
6953
6963
|
break;
|
|
6954
6964
|
case a:
|
|
@@ -6979,7 +6989,7 @@ function to() {
|
|
|
6979
6989
|
return this.$d.toUTCString();
|
|
6980
6990
|
}, h;
|
|
6981
6991
|
}(), ve = te.prototype;
|
|
6982
|
-
return C.prototype = ve, [["$ms",
|
|
6992
|
+
return C.prototype = ve, [["$ms", n], ["$s", a], ["$m", l], ["$H", r], ["$W", m], ["$M", c], ["$y", x], ["$D", y]].forEach(function(h) {
|
|
6983
6993
|
ve[h[1]] = function(s) {
|
|
6984
6994
|
return this.$g(s, h[0], h[1]);
|
|
6985
6995
|
};
|
|
@@ -6991,17 +7001,17 @@ function to() {
|
|
|
6991
7001
|
}()), Xe.exports;
|
|
6992
7002
|
}
|
|
6993
7003
|
eo(to());
|
|
6994
|
-
var ft = typeof global == "object" && global && global.Object === Object && global, oo = typeof self == "object" && self && self.Object === Object && self,
|
|
7004
|
+
var ft = typeof global == "object" && global && global.Object === Object && global, oo = typeof self == "object" && self && self.Object === Object && self, R = ft || oo || Function("return this")(), J = R.Symbol, bt = Object.prototype, no = bt.hasOwnProperty, lo = bt.toString, re = J ? J.toStringTag : void 0, ao = Object.prototype.toString, Ze = J ? J.toStringTag : void 0;
|
|
6995
7005
|
function xe(t) {
|
|
6996
7006
|
return t == null ? t === void 0 ? "[object Undefined]" : "[object Null]" : Ze && Ze in Object(t) ? function(e) {
|
|
6997
|
-
var o =
|
|
7007
|
+
var o = no.call(e, re), n = e[re];
|
|
6998
7008
|
try {
|
|
6999
7009
|
e[re] = void 0;
|
|
7000
7010
|
var a = !0;
|
|
7001
7011
|
} catch (r) {
|
|
7002
7012
|
}
|
|
7003
|
-
var
|
|
7004
|
-
return a && (o ? e[re] =
|
|
7013
|
+
var l = lo.call(e);
|
|
7014
|
+
return a && (o ? e[re] = n : delete e[re]), l;
|
|
7005
7015
|
}(t) : function(e) {
|
|
7006
7016
|
return ao.call(e);
|
|
7007
7017
|
}(t);
|
|
@@ -7019,7 +7029,7 @@ function io(t) {
|
|
|
7019
7029
|
var e = xe(t);
|
|
7020
7030
|
return e == "[object Function]" || e == "[object GeneratorFunction]" || e == "[object AsyncFunction]" || e == "[object Proxy]";
|
|
7021
7031
|
}
|
|
7022
|
-
var Je, we =
|
|
7032
|
+
var Je, we = R["__core-js_shared__"], Qe = (Je = /[^.]+$/.exec(we && we.keys && we.keys.IE_PROTO || "")) ? "Symbol(src)_1." + Je : "", ro = Function.prototype.toString;
|
|
7023
7033
|
function G(t) {
|
|
7024
7034
|
if (t != null) {
|
|
7025
7035
|
try {
|
|
@@ -7039,12 +7049,12 @@ function fo(t) {
|
|
|
7039
7049
|
var e;
|
|
7040
7050
|
}
|
|
7041
7051
|
function H(t, e) {
|
|
7042
|
-
var o = function(
|
|
7043
|
-
return
|
|
7052
|
+
var o = function(n, a) {
|
|
7053
|
+
return n == null ? void 0 : n[a];
|
|
7044
7054
|
}(t, e);
|
|
7045
7055
|
return fo(o) ? o : void 0;
|
|
7046
7056
|
}
|
|
7047
|
-
var $e = H(
|
|
7057
|
+
var $e = H(R, "WeakMap");
|
|
7048
7058
|
(function() {
|
|
7049
7059
|
try {
|
|
7050
7060
|
var t = H(Object, "defineProperty");
|
|
@@ -7059,7 +7069,7 @@ var vt = Object.prototype, bo = vt.hasOwnProperty, xo = vt.propertyIsEnumerable;
|
|
|
7059
7069
|
et(function() {
|
|
7060
7070
|
return arguments;
|
|
7061
7071
|
}());
|
|
7062
|
-
var gt = typeof exports == "object" && exports && !exports.nodeType && exports, tt = gt && typeof module == "object" && module && !module.nodeType && module, ot = tt && tt.exports === gt ?
|
|
7072
|
+
var gt = typeof exports == "object" && exports && !exports.nodeType && exports, tt = gt && typeof module == "object" && module && !module.nodeType && module, ot = tt && tt.exports === gt ? R.Buffer : void 0;
|
|
7063
7073
|
ot && ot.isBuffer;
|
|
7064
7074
|
var St = typeof exports == "object" && exports && !exports.nodeType && exports, se = St && typeof module == "object" && module && !module.nodeType && module, Ce = se && se.exports === St && ft.process, Q = function() {
|
|
7065
7075
|
try {
|
|
@@ -7070,17 +7080,17 @@ var St = typeof exports == "object" && exports && !exports.nodeType && exports,
|
|
|
7070
7080
|
}();
|
|
7071
7081
|
Q && Q.isTypedArray;
|
|
7072
7082
|
H(Object, "create");
|
|
7073
|
-
var Ie = H(
|
|
7074
|
-
(Fe && Y(new Fe(new ArrayBuffer(1))) != rt || Ie && Y(new Ie()) !=
|
|
7075
|
-
var e = xe(t), o = e == "[object Object]" ? t.constructor : void 0,
|
|
7076
|
-
if (
|
|
7077
|
-
switch (
|
|
7083
|
+
var Ie = H(R, "Map"), Fe = H(R, "DataView"), Ve = H(R, "Promise"), Me = H(R, "Set"), nt = "[object Map]", lt = "[object Promise]", at = "[object Set]", it = "[object WeakMap]", rt = "[object DataView]", yo = G(Fe), vo = G(Ie), go = G(Ve), So = G(Me), _o = G($e), Y = xe;
|
|
7084
|
+
(Fe && Y(new Fe(new ArrayBuffer(1))) != rt || Ie && Y(new Ie()) != nt || Ve && Y(Ve.resolve()) != lt || Me && Y(new Me()) != at || $e && Y(new $e()) != it) && (Y = function(t) {
|
|
7085
|
+
var e = xe(t), o = e == "[object Object]" ? t.constructor : void 0, n = o ? G(o) : "";
|
|
7086
|
+
if (n)
|
|
7087
|
+
switch (n) {
|
|
7078
7088
|
case yo:
|
|
7079
7089
|
return rt;
|
|
7080
7090
|
case vo:
|
|
7081
|
-
return lt;
|
|
7082
|
-
case go:
|
|
7083
7091
|
return nt;
|
|
7092
|
+
case go:
|
|
7093
|
+
return lt;
|
|
7084
7094
|
case So:
|
|
7085
7095
|
return at;
|
|
7086
7096
|
case _o:
|
|
@@ -7088,7 +7098,7 @@ var Ie = H(z, "Map"), Fe = H(z, "DataView"), Ve = H(z, "Promise"), Me = H(z, "Se
|
|
|
7088
7098
|
}
|
|
7089
7099
|
return e;
|
|
7090
7100
|
});
|
|
7091
|
-
|
|
7101
|
+
R.Uint8Array;
|
|
7092
7102
|
var st = J ? J.prototype : void 0;
|
|
7093
7103
|
st && st.valueOf;
|
|
7094
7104
|
Q && Q.isMap;
|
|
@@ -7098,8 +7108,8 @@ const wo = (t, e) => {
|
|
|
7098
7108
|
return t.toLocaleLowerCase().includes(e.toLocaleLowerCase());
|
|
7099
7109
|
if (typeof t == "string" && Array.isArray(e)) {
|
|
7100
7110
|
const o = e.length;
|
|
7101
|
-
for (let
|
|
7102
|
-
const a = e[
|
|
7111
|
+
for (let n = 0; n < o; n++) {
|
|
7112
|
+
const a = e[n];
|
|
7103
7113
|
if (typeof a == "string" && t.toLocaleLowerCase().includes(a.toLocaleLowerCase()))
|
|
7104
7114
|
return !0;
|
|
7105
7115
|
}
|
|
@@ -7151,11 +7161,11 @@ const Ao = {
|
|
|
7151
7161
|
if (this.graphic) {
|
|
7152
7162
|
const e = this.componentList.find((o) => o.type === t);
|
|
7153
7163
|
if (e) {
|
|
7154
|
-
const o = Z(this.selectedComponent), { events:
|
|
7164
|
+
const o = Z(this.selectedComponent), { events: n, dataType: a, dataFieldConfigType: l, id: r, keyName: m, top: d, left: c, width: g, height: x, zIndex: y } = o, _ = {}, k = ["type", "graphicType", "data"];
|
|
7155
7165
|
for (const I in o)
|
|
7156
7166
|
!k.includes(I) && Co(e, I) && (_[I] = Z(o[I]));
|
|
7157
|
-
let $ =
|
|
7158
|
-
events:
|
|
7167
|
+
let $ = le(D(D({}, e), _), {
|
|
7168
|
+
events: n,
|
|
7159
7169
|
dataType: a,
|
|
7160
7170
|
id: r,
|
|
7161
7171
|
keyName: m,
|
|
@@ -7165,7 +7175,7 @@ const Ao = {
|
|
|
7165
7175
|
height: x,
|
|
7166
7176
|
zIndex: y
|
|
7167
7177
|
});
|
|
7168
|
-
|
|
7178
|
+
l && ($.dataFieldConfigType = l), this.$emit("change", $, { all: !0 });
|
|
7169
7179
|
}
|
|
7170
7180
|
} else
|
|
7171
7181
|
this.$emit("change", t);
|
|
@@ -7175,8 +7185,8 @@ const Ao = {
|
|
|
7175
7185
|
};
|
|
7176
7186
|
var To = function() {
|
|
7177
7187
|
var e = this, o = e._self._c;
|
|
7178
|
-
return o("a-select", { attrs: { value: e.value }, on: { change: e.onSelectChange } }, e._l(e.computedOptions, function(
|
|
7179
|
-
return o("a-select-option", { key:
|
|
7188
|
+
return o("a-select", { attrs: { value: e.value }, on: { change: e.onSelectChange } }, e._l(e.computedOptions, function(n) {
|
|
7189
|
+
return o("a-select-option", { key: n.value, attrs: { value: n.value, disabled: n.disabled } }, [e._v(" " + e._s(n.label) + " ")]);
|
|
7180
7190
|
}), 1);
|
|
7181
7191
|
}, Lo = [], ko = /* @__PURE__ */ A(
|
|
7182
7192
|
Ao,
|
|
@@ -7288,28 +7298,28 @@ const Oo = {
|
|
|
7288
7298
|
}
|
|
7289
7299
|
}
|
|
7290
7300
|
};
|
|
7291
|
-
var
|
|
7301
|
+
var zo = function() {
|
|
7292
7302
|
var e = this, o = e._self._c;
|
|
7293
|
-
return o("a-popover", { attrs: { visible: e.popoverVisible, trigger: "click", placement: "bottomLeft", overlayClassName: "color-picker-popover", getPopupContainer: (
|
|
7294
|
-
return [o("div", { staticClass: "name", on: { click: function(
|
|
7295
|
-
|
|
7303
|
+
return o("a-popover", { attrs: { visible: e.popoverVisible, trigger: "click", placement: "bottomLeft", overlayClassName: "color-picker-popover", getPopupContainer: (n) => n.parentNode, destroyTooltipOnHide: !0 }, on: { visibleChange: e.handleVisibleChange }, scopedSlots: e._u([{ key: "content", fn: function() {
|
|
7304
|
+
return [o("div", { staticClass: "name", on: { click: function(n) {
|
|
7305
|
+
n.stopPropagation();
|
|
7296
7306
|
} } }, [o("sketch-picker", { attrs: { value: { hex: e.currentColor }, disableAlpha: !0, presetColors: e.presetColors }, on: { input: e.handleColorChange } })], 1)];
|
|
7297
7307
|
}, proxy: !0 }]) }, [o("div", { staticClass: "popover-trigger", style: { backgroundColor: e.currentColor, height: e.size + "px", width: e.size + "px" } })]);
|
|
7298
|
-
},
|
|
7308
|
+
}, Ro = [], Po = /* @__PURE__ */ A(
|
|
7299
7309
|
Oo,
|
|
7300
|
-
Ro,
|
|
7301
7310
|
zo,
|
|
7311
|
+
Ro,
|
|
7302
7312
|
!1,
|
|
7303
7313
|
null,
|
|
7304
7314
|
"c77d9ba2",
|
|
7305
7315
|
null,
|
|
7306
7316
|
null
|
|
7307
7317
|
);
|
|
7308
|
-
const
|
|
7318
|
+
const Re = Po.exports;
|
|
7309
7319
|
const No = {
|
|
7310
7320
|
name: "ColorPick",
|
|
7311
7321
|
components: {
|
|
7312
|
-
PickColors:
|
|
7322
|
+
PickColors: Re
|
|
7313
7323
|
// AInput: Input
|
|
7314
7324
|
},
|
|
7315
7325
|
props: {
|
|
@@ -7348,10 +7358,10 @@ const No = {
|
|
|
7348
7358
|
};
|
|
7349
7359
|
var qo = function() {
|
|
7350
7360
|
var e = this, o = e._self._c;
|
|
7351
|
-
return o("div", { staticClass: "color-pick" }, [o("a-input", { staticClass: "input", staticStyle: { flex: "1" }, attrs: { disabled: e.disabled }, model: { value: e.colorValue, callback: function(
|
|
7352
|
-
e.colorValue =
|
|
7353
|
-
}, expression: "colorValue" } }), e.disabled ? e._e() : o("pick-colors", { staticClass: "pick-colors", attrs: { size: 25 }, model: { value: e.colorValue, callback: function(
|
|
7354
|
-
e.colorValue =
|
|
7361
|
+
return o("div", { staticClass: "color-pick" }, [o("a-input", { staticClass: "input", staticStyle: { flex: "1" }, attrs: { disabled: e.disabled }, model: { value: e.colorValue, callback: function(n) {
|
|
7362
|
+
e.colorValue = n;
|
|
7363
|
+
}, expression: "colorValue" } }), e.disabled ? e._e() : o("pick-colors", { staticClass: "pick-colors", attrs: { size: 25 }, model: { value: e.colorValue, callback: function(n) {
|
|
7364
|
+
e.colorValue = n;
|
|
7355
7365
|
}, expression: "colorValue" } })], 1);
|
|
7356
7366
|
}, Bo = [], Eo = /* @__PURE__ */ A(
|
|
7357
7367
|
No,
|
|
@@ -7367,7 +7377,7 @@ const ue = Eo.exports;
|
|
|
7367
7377
|
const Wo = {
|
|
7368
7378
|
name: "ColorPickerGroup",
|
|
7369
7379
|
components: {
|
|
7370
|
-
ColorPick:
|
|
7380
|
+
ColorPick: Re
|
|
7371
7381
|
},
|
|
7372
7382
|
props: {
|
|
7373
7383
|
// 当前颜色值
|
|
@@ -7412,9 +7422,9 @@ const Wo = {
|
|
|
7412
7422
|
};
|
|
7413
7423
|
var jo = function() {
|
|
7414
7424
|
var e = this, o = e._self._c;
|
|
7415
|
-
return o("div", { staticClass: "pick-color-group" }, [e._l(e.value, function(
|
|
7416
|
-
return o("ColorPick", { key: a, staticStyle: { margin: "5px" }, attrs: { size: e.size }, on: { change: e.handleColorChange }, model: { value: e.value[a], callback: function(
|
|
7417
|
-
e.$set(e.value, a,
|
|
7425
|
+
return o("div", { staticClass: "pick-color-group" }, [e._l(e.value, function(n, a) {
|
|
7426
|
+
return o("ColorPick", { key: a, staticStyle: { margin: "5px" }, attrs: { size: e.size }, on: { change: e.handleColorChange }, model: { value: e.value[a], callback: function(l) {
|
|
7427
|
+
e.$set(e.value, a, l);
|
|
7418
7428
|
}, expression: "value[index]" } });
|
|
7419
7429
|
}), o("div", { staticClass: "popover-trigger", style: { backgroundColor: "#fff", height: e.size + "px", width: e.size + "px", margin: "5px" }, on: { click: e.addColor } }, [e._v("+")])], 2);
|
|
7420
7430
|
}, Go = [], Ho = /* @__PURE__ */ A(
|
|
@@ -7489,21 +7499,21 @@ const Qo = {
|
|
|
7489
7499
|
}
|
|
7490
7500
|
}
|
|
7491
7501
|
};
|
|
7492
|
-
var
|
|
7502
|
+
var en = function() {
|
|
7493
7503
|
var e = this, o = e._self._c;
|
|
7494
7504
|
return o("a-row", [o("a-col", { attrs: { span: 16 } }, [o("a-slider", { attrs: { value: e.value, min: 0, max: 1, step: 0.1 }, on: { change: e.onChange } })], 1), o("a-col", { staticStyle: { "padding-left": "10px" }, attrs: { span: 8 } }, [o("a-input-number", { staticStyle: { width: "100%" }, attrs: { value: e.value, min: 0, max: 1, step: 0.1 }, on: { change: e.onChange } })], 1)], 1);
|
|
7495
|
-
},
|
|
7505
|
+
}, tn = [], on = /* @__PURE__ */ A(
|
|
7496
7506
|
Qo,
|
|
7497
|
-
|
|
7498
|
-
|
|
7507
|
+
en,
|
|
7508
|
+
tn,
|
|
7499
7509
|
!1,
|
|
7500
7510
|
null,
|
|
7501
7511
|
"02978b05",
|
|
7502
7512
|
null,
|
|
7503
7513
|
null
|
|
7504
7514
|
);
|
|
7505
|
-
const
|
|
7506
|
-
const
|
|
7515
|
+
const nn = on.exports;
|
|
7516
|
+
const ln = {
|
|
7507
7517
|
name: "Textarea",
|
|
7508
7518
|
components: {
|
|
7509
7519
|
// ATextarea: window.isVue3 ? Textarea : Input.TextArea
|
|
@@ -7524,23 +7534,23 @@ const nl = {
|
|
|
7524
7534
|
}
|
|
7525
7535
|
}
|
|
7526
7536
|
};
|
|
7527
|
-
var
|
|
7537
|
+
var an = function() {
|
|
7528
7538
|
var e = this, o = e._self._c;
|
|
7529
7539
|
return o("a-textarea", { attrs: { value: e.value, disabled: e.disabled, autoSize: {
|
|
7530
7540
|
minRows: 3
|
|
7531
7541
|
} }, on: { change: e.onTextareaChange } });
|
|
7532
|
-
},
|
|
7533
|
-
|
|
7534
|
-
|
|
7535
|
-
|
|
7542
|
+
}, rn = [], sn = /* @__PURE__ */ A(
|
|
7543
|
+
ln,
|
|
7544
|
+
an,
|
|
7545
|
+
rn,
|
|
7536
7546
|
!1,
|
|
7537
7547
|
null,
|
|
7538
7548
|
"3c2ddd12",
|
|
7539
7549
|
null,
|
|
7540
7550
|
null
|
|
7541
7551
|
);
|
|
7542
|
-
const
|
|
7543
|
-
const
|
|
7552
|
+
const pn = sn.exports, _t = "";
|
|
7553
|
+
const un = {
|
|
7544
7554
|
components: {
|
|
7545
7555
|
ColorPick: ue
|
|
7546
7556
|
},
|
|
@@ -7595,45 +7605,45 @@ const pl = {
|
|
|
7595
7605
|
}
|
|
7596
7606
|
}
|
|
7597
7607
|
};
|
|
7598
|
-
var
|
|
7608
|
+
var cn = function() {
|
|
7599
7609
|
var e = this, o = e._self._c;
|
|
7600
|
-
return o("div", { staticClass: "mark-area-config" }, [o("div", { staticClass: "add" }, [e.isVue3 ? o("a-tooltip", { attrs: { title: e.indexTip, overlayClassName: "question-tooltip", color: "#fff" } }, [o("question-circle-outlined", { staticClass: "icon", staticStyle: { "margin-right": "207px", color: "#989898", "font-size": "18px", cursor: "pointer" } })], 1) : e._e(), e.isVue3 ? o("appstore-add-outlined", { staticClass: "icon", on: { click: e.onAdd } }) : o("span", { staticClass: "icon", on: { click: e.onAdd } }, [e._v("+")])], 1), e._l(e.dataList, function(
|
|
7601
|
-
return o("div", { key: a, staticClass: "config-item" }, [o("div", { staticClass: "item" }, [o("div", { staticStyle: { display: "flex", "justify-content": "space-between" } }, [o("span", [e._v("标域" + e._s(Number(a) + 1) + ":")]),
|
|
7610
|
+
return o("div", { staticClass: "mark-area-config" }, [o("div", { staticClass: "add" }, [e.isVue3 ? o("a-tooltip", { attrs: { title: e.indexTip, overlayClassName: "question-tooltip", color: "#fff" } }, [o("question-circle-outlined", { staticClass: "icon", staticStyle: { "margin-right": "207px", color: "#989898", "font-size": "18px", cursor: "pointer" } })], 1) : e._e(), e.isVue3 ? o("appstore-add-outlined", { staticClass: "icon", on: { click: e.onAdd } }) : o("span", { staticClass: "icon", on: { click: e.onAdd } }, [e._v("+")])], 1), e._l(e.dataList, function(n, a) {
|
|
7611
|
+
return o("div", { key: a, staticClass: "config-item" }, [o("div", { staticClass: "item" }, [o("div", { staticStyle: { display: "flex", "justify-content": "space-between" } }, [o("span", [e._v("标域" + e._s(Number(a) + 1) + ":")]), n.isGenerate ? e._e() : o("span", { staticStyle: { color: "red", cursor: "pointer" }, on: { click: function(l) {
|
|
7602
7612
|
e.onDelete(Number(a));
|
|
7603
|
-
} } }, [e._v("删除")])]), o("div", { staticStyle: { "margin-top": "10px" } }, [o("a-input-group", { staticStyle: { display: "flex", "margin-bottom": "12px" }, attrs: { compact: "" } }, [o("a-input", { attrs: { placeholder: "开始坐标", disabled: !!
|
|
7613
|
+
} } }, [e._v("删除")])]), o("div", { staticStyle: { "margin-top": "10px" } }, [o("a-input-group", { staticStyle: { display: "flex", "margin-bottom": "12px" }, attrs: { compact: "" } }, [o("a-input", { attrs: { placeholder: "开始坐标", disabled: !!n.isGenerate }, on: { change: e.onInputChange }, scopedSlots: e._u([{ key: "addonBefore", fn: function() {
|
|
7604
7614
|
return [e._v(" x1 ")];
|
|
7605
|
-
}, proxy: !0 }], null, !0), model: { value:
|
|
7606
|
-
e.$set(
|
|
7607
|
-
}, expression: "data.startX" } }), o("div", { staticStyle: { padding: "0 5px" } }), o("a-input", { attrs: { placeholder: "开始坐标", disabled: !!
|
|
7615
|
+
}, proxy: !0 }], null, !0), model: { value: n.startX, callback: function(l) {
|
|
7616
|
+
e.$set(n, "startX", l);
|
|
7617
|
+
}, expression: "data.startX" } }), o("div", { staticStyle: { padding: "0 5px" } }), o("a-input", { attrs: { placeholder: "开始坐标", disabled: !!n.isGenerate }, on: { change: e.onInputChange }, scopedSlots: e._u([{ key: "addonBefore", fn: function() {
|
|
7608
7618
|
return [e._v(" y1 ")];
|
|
7609
|
-
}, proxy: !0 }], null, !0), model: { value:
|
|
7610
|
-
e.$set(
|
|
7611
|
-
}, expression: "data.startY" } })], 1), o("a-input-group", { staticStyle: { display: "flex", "margin-bottom": "12px" }, attrs: { compact: "" } }, [o("a-input", { attrs: { placeholder: "结束坐标", disabled: !!
|
|
7619
|
+
}, proxy: !0 }], null, !0), model: { value: n.startY, callback: function(l) {
|
|
7620
|
+
e.$set(n, "startY", l);
|
|
7621
|
+
}, expression: "data.startY" } })], 1), o("a-input-group", { staticStyle: { display: "flex", "margin-bottom": "12px" }, attrs: { compact: "" } }, [o("a-input", { attrs: { placeholder: "结束坐标", disabled: !!n.isGenerate }, on: { change: e.onInputChange }, scopedSlots: e._u([{ key: "addonBefore", fn: function() {
|
|
7612
7622
|
return [e._v(" x2 ")];
|
|
7613
|
-
}, proxy: !0 }], null, !0), model: { value:
|
|
7614
|
-
e.$set(
|
|
7615
|
-
}, expression: "data.endX" } }), o("div", { staticStyle: { padding: "0 5px" } }), o("a-input", { attrs: { placeholder: "结束坐标", disabled: !!
|
|
7623
|
+
}, proxy: !0 }], null, !0), model: { value: n.endX, callback: function(l) {
|
|
7624
|
+
e.$set(n, "endX", l);
|
|
7625
|
+
}, expression: "data.endX" } }), o("div", { staticStyle: { padding: "0 5px" } }), o("a-input", { attrs: { placeholder: "结束坐标", disabled: !!n.isGenerate }, on: { change: e.onInputChange }, scopedSlots: e._u([{ key: "addonBefore", fn: function() {
|
|
7616
7626
|
return [e._v(" y2 ")];
|
|
7617
|
-
}, proxy: !0 }], null, !0), model: { value:
|
|
7618
|
-
e.$set(
|
|
7619
|
-
}, expression: "data.endY" } })], 1), o("div", [e._v("标域颜色:")]), o("color-pick", { attrs: { value:
|
|
7620
|
-
return e.setColor(
|
|
7621
|
-
} } }), o("div", { staticStyle: { "margin-top": "12px" } }, [e._v("标域文字:")]), o("a-input", { on: { change: e.onInputChange }, model: { value:
|
|
7622
|
-
e.$set(
|
|
7627
|
+
}, proxy: !0 }], null, !0), model: { value: n.endY, callback: function(l) {
|
|
7628
|
+
e.$set(n, "endY", l);
|
|
7629
|
+
}, expression: "data.endY" } })], 1), o("div", [e._v("标域颜色:")]), o("color-pick", { attrs: { value: n.color }, on: { change: function(l) {
|
|
7630
|
+
return e.setColor(n, l);
|
|
7631
|
+
} } }), o("div", { staticStyle: { "margin-top": "12px" } }, [e._v("标域文字:")]), o("a-input", { on: { change: e.onInputChange }, model: { value: n.label, callback: function(l) {
|
|
7632
|
+
e.$set(n, "label", l);
|
|
7623
7633
|
}, expression: "data.label" } })], 1)])]);
|
|
7624
7634
|
})], 2);
|
|
7625
|
-
},
|
|
7626
|
-
|
|
7627
|
-
|
|
7628
|
-
|
|
7635
|
+
}, dn = [], mn = /* @__PURE__ */ A(
|
|
7636
|
+
un,
|
|
7637
|
+
cn,
|
|
7638
|
+
dn,
|
|
7629
7639
|
!1,
|
|
7630
7640
|
null,
|
|
7631
7641
|
"2201b980",
|
|
7632
7642
|
null,
|
|
7633
7643
|
null
|
|
7634
7644
|
);
|
|
7635
|
-
const
|
|
7636
|
-
const
|
|
7645
|
+
const hn = mn.exports;
|
|
7646
|
+
const fn = {
|
|
7637
7647
|
components: {
|
|
7638
7648
|
ColorPick: ue
|
|
7639
7649
|
},
|
|
@@ -7700,39 +7710,39 @@ const hl = {
|
|
|
7700
7710
|
if (!this.selectedComponent)
|
|
7701
7711
|
return;
|
|
7702
7712
|
this.dataList = JSON.parse(JSON.stringify(t || []));
|
|
7703
|
-
const { xAxisMarkLineValue: e, yAxisMarkLineValue: o, axisMarkArea:
|
|
7713
|
+
const { xAxisMarkLineValue: e, yAxisMarkLineValue: o, axisMarkArea: n = [] } = this.selectedComponent;
|
|
7704
7714
|
if ((e == null ? void 0 : e.length) === 1 && (o == null ? void 0 : o.length) === 1 && e[0].value && o[0].value) {
|
|
7705
|
-
const a = !!
|
|
7715
|
+
const a = !!n.find((c) => c.isGenerate), l = ["{xMin}"], r = ["{yMin}"], m = {
|
|
7706
7716
|
"{max}": "最大值",
|
|
7707
7717
|
"{min}": "最小值",
|
|
7708
7718
|
"{average}": "平均值",
|
|
7709
7719
|
"{median}": "中位数"
|
|
7710
7720
|
};
|
|
7711
7721
|
for (const c of e)
|
|
7712
|
-
c.value &&
|
|
7713
|
-
|
|
7722
|
+
c.value && l.push(m[c.value] || c.value);
|
|
7723
|
+
l.push("{xMax}");
|
|
7714
7724
|
for (const c of o)
|
|
7715
7725
|
c.value && r.push(m[c.value] || c.value);
|
|
7716
7726
|
r.push("{yMax}");
|
|
7717
7727
|
let d = 0;
|
|
7718
|
-
|
|
7719
|
-
g <
|
|
7728
|
+
l.forEach((c, g) => {
|
|
7729
|
+
g < l.length - 1 && r.forEach((x, y) => {
|
|
7720
7730
|
if (y < r.length - 1) {
|
|
7721
7731
|
const _ = {
|
|
7722
7732
|
startX: c,
|
|
7723
7733
|
startY: x,
|
|
7724
|
-
endX:
|
|
7734
|
+
endX: l[g + 1],
|
|
7725
7735
|
endY: r[y + 1],
|
|
7726
7736
|
color: "",
|
|
7727
7737
|
label: "",
|
|
7728
7738
|
isGenerate: !0
|
|
7729
7739
|
};
|
|
7730
|
-
a ? (_.color =
|
|
7740
|
+
a ? (_.color = n[d].color, _.label = n[d].label, n[d++] = _) : n.unshift(_);
|
|
7731
7741
|
}
|
|
7732
7742
|
});
|
|
7733
7743
|
});
|
|
7734
7744
|
} else
|
|
7735
|
-
this.selectedComponent.axisMarkArea =
|
|
7745
|
+
this.selectedComponent.axisMarkArea = n.filter((a) => !a.isGenerate);
|
|
7736
7746
|
},
|
|
7737
7747
|
immediate: !0,
|
|
7738
7748
|
deep: !0
|
|
@@ -7776,60 +7786,60 @@ const hl = {
|
|
|
7776
7786
|
}
|
|
7777
7787
|
}
|
|
7778
7788
|
};
|
|
7779
|
-
var
|
|
7789
|
+
var bn = function() {
|
|
7780
7790
|
var e = this, o = e._self._c;
|
|
7781
|
-
return o("div", { staticClass: "mark-link-config" }, [o("div", { staticClass: "add" }, [e.isVue3 ? o("a-tooltip", { attrs: { title: e.indexTip, overlayClassName: "question-tooltip", color: "#fff" } }, [o("question-circle-outlined", { staticClass: "icon", staticStyle: { "margin-right": "207px", color: "#989898", "font-size": "18px", cursor: "pointer" } })], 1) : e._e(), e.isVue3 ? o("appstore-add-outlined", { staticClass: "icon", on: { click: e.onAdd } }) : o("span", { staticClass: "icon", on: { click: e.onAdd } }, [e._v("+")])], 1), e._l(e.dataList, function(
|
|
7782
|
-
return o("div", { key: a, staticClass: "config-item" }, [o("div", { staticClass: "item" }, [o("div", { staticStyle: { display: "flex", "justify-content": "space-between" } }, [o("span", [e._v("标线" + e._s(Number(a) + 1) + ":")]), o("span", { staticStyle: { color: "red", cursor: "pointer" }, on: { click: function(
|
|
7791
|
+
return o("div", { staticClass: "mark-link-config" }, [o("div", { staticClass: "add" }, [e.isVue3 ? o("a-tooltip", { attrs: { title: e.indexTip, overlayClassName: "question-tooltip", color: "#fff" } }, [o("question-circle-outlined", { staticClass: "icon", staticStyle: { "margin-right": "207px", color: "#989898", "font-size": "18px", cursor: "pointer" } })], 1) : e._e(), e.isVue3 ? o("appstore-add-outlined", { staticClass: "icon", on: { click: e.onAdd } }) : o("span", { staticClass: "icon", on: { click: e.onAdd } }, [e._v("+")])], 1), e._l(e.dataList, function(n, a) {
|
|
7792
|
+
return o("div", { key: a, staticClass: "config-item" }, [o("div", { staticClass: "item" }, [o("div", { staticStyle: { display: "flex", "justify-content": "space-between" } }, [o("span", [e._v("标线" + e._s(Number(a) + 1) + ":")]), o("span", { staticStyle: { color: "red", cursor: "pointer" }, on: { click: function(l) {
|
|
7783
7793
|
e.onDelete(Number(a));
|
|
7784
|
-
} } }, [e._v("删除")])]), o("div", { staticStyle: { "margin-top": "10px" } }, [o("div", { staticClass: "item-row" }, [o("div", { staticClass: "title" }, [e._v("值:")]), !
|
|
7794
|
+
} } }, [e._v("删除")])]), o("div", { staticStyle: { "margin-top": "10px" } }, [o("div", { staticClass: "item-row" }, [o("div", { staticClass: "title" }, [e._v("值:")]), !n.type || n.type === "customValue" ? o("a-input", { staticStyle: { width: "100%" }, attrs: { placeholder: "请输入" }, on: { change: e.onInputChange }, scopedSlots: e._u([{ key: "addonAfter", fn: function() {
|
|
7785
7795
|
return [o("a-dropdown", { attrs: { trigger: ["click"] }, scopedSlots: e._u([{ key: "overlay", fn: function() {
|
|
7786
|
-
return [o("a-menu", { on: { click: function(
|
|
7787
|
-
return e.onClickMenuItem(
|
|
7788
|
-
} } }, e._l(e.calcList, function(
|
|
7789
|
-
return o("a-menu-item", { key:
|
|
7796
|
+
return [o("a-menu", { on: { click: function(l) {
|
|
7797
|
+
return e.onClickMenuItem(l, n);
|
|
7798
|
+
} } }, e._l(e.calcList, function(l) {
|
|
7799
|
+
return o("a-menu-item", { key: l.value }, [e._v(e._s(l.label))]);
|
|
7790
7800
|
}), 1)];
|
|
7791
7801
|
}, proxy: !0 }], null, !0) }, [e.isVue3 ? o("down-outlined", { staticStyle: { color: "#aaa" } }) : o("span", { staticStyle: { "font-size": "14px" } }, [e._v("⌵")])], 1)];
|
|
7792
|
-
}, proxy: !0 }], null, !0), model: { value:
|
|
7793
|
-
e.$set(
|
|
7794
|
-
}, expression: "data.value" } }) : o("a-select", { staticStyle: { width: "100%" }, attrs: { options: e.calcList }, on: { change: function(
|
|
7795
|
-
return e.onSelectChange(
|
|
7796
|
-
} }, model: { value:
|
|
7797
|
-
e.$set(
|
|
7798
|
-
}, expression: "data.value" } })], 1), o("div", { staticClass: "item-row" }, [o("div", { staticClass: "title" }, [e._v("文本:")]), o("a-input", { staticStyle: { width: "100%" }, attrs: { placeholder: "请输入" }, on: { change: e.onInputChange }, model: { value:
|
|
7799
|
-
e.$set(
|
|
7802
|
+
}, proxy: !0 }], null, !0), model: { value: n.value, callback: function(l) {
|
|
7803
|
+
e.$set(n, "value", l);
|
|
7804
|
+
}, expression: "data.value" } }) : o("a-select", { staticStyle: { width: "100%" }, attrs: { options: e.calcList }, on: { change: function(l) {
|
|
7805
|
+
return e.onSelectChange(l, n);
|
|
7806
|
+
} }, model: { value: n.value, callback: function(l) {
|
|
7807
|
+
e.$set(n, "value", l);
|
|
7808
|
+
}, expression: "data.value" } })], 1), o("div", { staticClass: "item-row" }, [o("div", { staticClass: "title" }, [e._v("文本:")]), o("a-input", { staticStyle: { width: "100%" }, attrs: { placeholder: "请输入" }, on: { change: e.onInputChange }, model: { value: n.label, callback: function(l) {
|
|
7809
|
+
e.$set(n, "label", l);
|
|
7800
7810
|
}, expression: "data.label" } })], 1), o("div", { staticClass: "item-row" }, [o("div", { staticClass: "title" }, [e._v("文本水平偏移量:")]), o("a-input-number", { staticStyle: { width: "100%" }, attrs: { placeholder: "请输入", controls: !1 }, on: { change: e.onInputChange }, scopedSlots: e._u([{ key: "addonAfter", fn: function() {
|
|
7801
7811
|
return [e._v(" px ")];
|
|
7802
|
-
}, proxy: !0 }], null, !0), model: { value:
|
|
7803
|
-
e.$set(
|
|
7812
|
+
}, proxy: !0 }], null, !0), model: { value: n.offsetHorizontal, callback: function(l) {
|
|
7813
|
+
e.$set(n, "offsetHorizontal", l);
|
|
7804
7814
|
}, expression: "data.offsetHorizontal" } })], 1), o("div", { staticClass: "item-row" }, [o("div", { staticClass: "title" }, [e._v("文本垂直偏移量:")]), o("a-input-number", { staticStyle: { width: "100%" }, attrs: { placeholder: "请输入", controls: !1 }, on: { change: e.onInputChange }, scopedSlots: e._u([{ key: "addonAfter", fn: function() {
|
|
7805
7815
|
return [e._v(" px ")];
|
|
7806
|
-
}, proxy: !0 }], null, !0), model: { value:
|
|
7807
|
-
e.$set(
|
|
7808
|
-
}, expression: "data.offsetVertical" } })], 1), o("div", { staticClass: "item-row" }, [o("div", { staticClass: "title" }, [e._v("标线类型:")]), o("a-select", { staticStyle: { width: "100%" }, attrs: { options: e.lineTypeOptions }, on: { change: function(
|
|
7809
|
-
return e.setLineType(
|
|
7810
|
-
} }, model: { value:
|
|
7811
|
-
e.$set(
|
|
7812
|
-
}, expression: "data.lineType" } })], 1), o("div", { staticClass: "item-row" }, [o("div", { staticClass: "title" }, [e._v("标线颜色:")]), o("color-pick", { attrs: { value:
|
|
7813
|
-
return e.setLineColor(
|
|
7814
|
-
} } })], 1), o("div", { staticClass: "item-row" }, [o("div", { staticClass: "title" }, [e._v("文本颜色:")]), o("color-pick", { attrs: { value:
|
|
7815
|
-
return e.setLabelColor(
|
|
7816
|
+
}, proxy: !0 }], null, !0), model: { value: n.offsetVertical, callback: function(l) {
|
|
7817
|
+
e.$set(n, "offsetVertical", l);
|
|
7818
|
+
}, expression: "data.offsetVertical" } })], 1), o("div", { staticClass: "item-row" }, [o("div", { staticClass: "title" }, [e._v("标线类型:")]), o("a-select", { staticStyle: { width: "100%" }, attrs: { options: e.lineTypeOptions }, on: { change: function(l) {
|
|
7819
|
+
return e.setLineType(n, l);
|
|
7820
|
+
} }, model: { value: n.lineType, callback: function(l) {
|
|
7821
|
+
e.$set(n, "lineType", l);
|
|
7822
|
+
}, expression: "data.lineType" } })], 1), o("div", { staticClass: "item-row" }, [o("div", { staticClass: "title" }, [e._v("标线颜色:")]), o("color-pick", { attrs: { value: n.lineColor || "" }, on: { change: function(l) {
|
|
7823
|
+
return e.setLineColor(n, l);
|
|
7824
|
+
} } })], 1), o("div", { staticClass: "item-row" }, [o("div", { staticClass: "title" }, [e._v("文本颜色:")]), o("color-pick", { attrs: { value: n.labelColor || "" }, on: { change: function(l) {
|
|
7825
|
+
return e.setLabelColor(n, l);
|
|
7816
7826
|
} } })], 1)])])]);
|
|
7817
7827
|
})], 2);
|
|
7818
|
-
},
|
|
7819
|
-
|
|
7820
|
-
|
|
7821
|
-
|
|
7828
|
+
}, xn = [], yn = /* @__PURE__ */ A(
|
|
7829
|
+
fn,
|
|
7830
|
+
bn,
|
|
7831
|
+
xn,
|
|
7822
7832
|
!1,
|
|
7823
7833
|
null,
|
|
7824
7834
|
"fe59467a",
|
|
7825
7835
|
null,
|
|
7826
7836
|
null
|
|
7827
7837
|
);
|
|
7828
|
-
const
|
|
7829
|
-
const
|
|
7838
|
+
const vn = yn.exports;
|
|
7839
|
+
const gn = {
|
|
7830
7840
|
name: "FormGroup",
|
|
7831
7841
|
components: {
|
|
7832
|
-
PickColors:
|
|
7842
|
+
PickColors: Re,
|
|
7833
7843
|
InputNumber: ut
|
|
7834
7844
|
// Draggable: () => import('vuedraggable')
|
|
7835
7845
|
},
|
|
@@ -7880,9 +7890,9 @@ const vl = {
|
|
|
7880
7890
|
}
|
|
7881
7891
|
},
|
|
7882
7892
|
newFormat() {
|
|
7883
|
-
const t = this.selectedComponent.requestType || 0, e = this.selectedComponent.dataType || "", o = this.selectedComponent.DataSetFieldOptions || [],
|
|
7884
|
-
return t === 1 && e === "request" ?
|
|
7885
|
-
a.label === "索引" && (l
|
|
7893
|
+
const t = this.selectedComponent.requestType || 0, e = this.selectedComponent.dataType || "", o = this.selectedComponent.DataSetFieldOptions || [], n = [...this.format];
|
|
7894
|
+
return t === 1 && e === "request" ? n.forEach((a, l) => {
|
|
7895
|
+
a.label === "索引" && (n[l] = le(D({}, n[l]), {
|
|
7886
7896
|
type: "select",
|
|
7887
7897
|
props: {
|
|
7888
7898
|
options: o.map((r) => ({
|
|
@@ -7891,20 +7901,20 @@ const vl = {
|
|
|
7891
7901
|
}))
|
|
7892
7902
|
}
|
|
7893
7903
|
}));
|
|
7894
|
-
}) :
|
|
7895
|
-
a.label === "索引" && (l
|
|
7904
|
+
}) : n.forEach((a, l) => {
|
|
7905
|
+
a.label === "索引" && (n[l] = le(D({}, n[l]), {
|
|
7896
7906
|
type: "input"
|
|
7897
7907
|
}));
|
|
7898
|
-
}),
|
|
7908
|
+
}), n;
|
|
7899
7909
|
}
|
|
7900
7910
|
},
|
|
7901
7911
|
methods: {
|
|
7902
7912
|
onValueChange(t, e, o) {
|
|
7903
7913
|
var a;
|
|
7904
|
-
const
|
|
7905
|
-
if (Array.isArray(
|
|
7906
|
-
const
|
|
7907
|
-
o ?
|
|
7914
|
+
const n = (a = this.value) == null ? void 0 : a.slice();
|
|
7915
|
+
if (Array.isArray(n)) {
|
|
7916
|
+
const l = t == null ? void 0 : t.target, r = (l == null ? void 0 : l.value) != null ? l == null ? void 0 : l.value : t;
|
|
7917
|
+
o ? n[e][o] = r : n[e] = r, this.myValue = n;
|
|
7908
7918
|
}
|
|
7909
7919
|
},
|
|
7910
7920
|
onAdd() {
|
|
@@ -7914,14 +7924,14 @@ const vl = {
|
|
|
7914
7924
|
return;
|
|
7915
7925
|
const e = t.length;
|
|
7916
7926
|
if (this.max === -1 || this.max > e) {
|
|
7917
|
-
const
|
|
7918
|
-
if (Object.prototype.toString.call(
|
|
7919
|
-
const a = Object.keys(
|
|
7927
|
+
const n = t[0];
|
|
7928
|
+
if (Object.prototype.toString.call(n) === "[object Object]") {
|
|
7929
|
+
const a = Object.keys(n), l = {};
|
|
7920
7930
|
a.forEach((r) => {
|
|
7921
|
-
|
|
7922
|
-
}), t.push(
|
|
7931
|
+
l[r] = "";
|
|
7932
|
+
}), t.push(l);
|
|
7923
7933
|
} else
|
|
7924
|
-
typeof
|
|
7934
|
+
typeof n == "string" && t.push(n);
|
|
7925
7935
|
this.myValue = t;
|
|
7926
7936
|
} else
|
|
7927
7937
|
this.$message.warn("已达到最大上限");
|
|
@@ -7940,56 +7950,56 @@ const vl = {
|
|
|
7940
7950
|
isShow(t, e) {
|
|
7941
7951
|
let o = !0;
|
|
7942
7952
|
if (t.show) {
|
|
7943
|
-
const { match:
|
|
7944
|
-
typeof a == "string" && e[
|
|
7953
|
+
const { match: n, value: a } = t.show;
|
|
7954
|
+
typeof a == "string" && e[n] === a || Array.isArray(a) && a.includes(e[n]) ? o = !0 : o = !1;
|
|
7945
7955
|
}
|
|
7946
7956
|
return o;
|
|
7947
7957
|
}
|
|
7948
7958
|
}
|
|
7949
7959
|
};
|
|
7950
|
-
var
|
|
7960
|
+
var Sn = function() {
|
|
7951
7961
|
var e = this, o = e._self._c;
|
|
7952
|
-
return o("div", { staticClass: "form-group" }, [e.isVue3 ? o("appstore-add-outlined", { staticClass: "icon add", on: { click: e.onAdd } }) : o("span", { staticClass: "icon add", on: { click: e.onAdd } }, [e._v("+")]), e.isVue3 ? o("draggable", { staticClass: "form", attrs: { "item-key": "id" }, scopedSlots: e._u([{ key: "item", fn: function({ element:
|
|
7953
|
-
return [o("div", { staticClass: "form-row" }, e._l(e.newFormat, function(
|
|
7962
|
+
return o("div", { staticClass: "form-group" }, [e.isVue3 ? o("appstore-add-outlined", { staticClass: "icon add", on: { click: e.onAdd } }) : o("span", { staticClass: "icon add", on: { click: e.onAdd } }, [e._v("+")]), e.isVue3 ? o("draggable", { staticClass: "form", attrs: { "item-key": "id" }, scopedSlots: e._u([{ key: "item", fn: function({ element: n, index: a }) {
|
|
7963
|
+
return [o("div", { staticClass: "form-row" }, e._l(e.newFormat, function(l, r) {
|
|
7954
7964
|
var m;
|
|
7955
|
-
return o("div", { directives: [{ name: "show", rawName: "v-show", value: e.isShow(
|
|
7956
|
-
width: !["color", "switch"].includes(
|
|
7965
|
+
return o("div", { directives: [{ name: "show", rawName: "v-show", value: e.isShow(l, n), expression: "isShow(f, e)" }], key: r, staticClass: "form-item" }, [Array.isArray(l.label) ? [o("span", { staticClass: "label" }, [e._v(" " + e._s(l.useLabelIndex ? l.label[a] + (a + 1) : l.label[a]) + " ")])] : o("span", { staticClass: "label" }, [e._v(" " + e._s(l.useLabelIndex ? l.label + (a + 1) : l.label) + " ")]), o(e.useComponentType(l.type), e._b(e._b({ tag: "component", staticClass: "value", style: {
|
|
7966
|
+
width: !["color", "switch"].includes(l.type) && e.format.length > 1 ? "110px" : ""
|
|
7957
7967
|
}, attrs: { theme: e.theme, "use-blur-event": !1 }, on: { change: function(d) {
|
|
7958
|
-
return e.onValueChange(d, a,
|
|
7959
|
-
} } }, "component", e._d({}, [e.formatTypeValue(
|
|
7968
|
+
return e.onValueChange(d, a, l.value);
|
|
7969
|
+
} } }, "component", e._d({}, [e.formatTypeValue(l.typeValue), typeof n == "string" ? n : (m = n[l.value]) != null ? m : l.defaultValue])), "component", l.props, !1))], 2);
|
|
7960
7970
|
}), 0)];
|
|
7961
|
-
} }], null, !1, 220332434), model: { value: e.myValue, callback: function(
|
|
7962
|
-
e.myValue =
|
|
7963
|
-
}, expression: "myValue" } }) : o("draggable", { staticClass: "form", attrs: { list: e.myValue, "item-key": "id" }, model: { value: e.myValue, callback: function(
|
|
7964
|
-
e.myValue =
|
|
7965
|
-
}, expression: "myValue" } }, [e._l(e.myValue, function(
|
|
7966
|
-
return [o("div", { staticClass: "form-row" }, e._l(e.newFormat, function(
|
|
7971
|
+
} }], null, !1, 220332434), model: { value: e.myValue, callback: function(n) {
|
|
7972
|
+
e.myValue = n;
|
|
7973
|
+
}, expression: "myValue" } }) : o("draggable", { staticClass: "form", attrs: { list: e.myValue, "item-key": "id" }, model: { value: e.myValue, callback: function(n) {
|
|
7974
|
+
e.myValue = n;
|
|
7975
|
+
}, expression: "myValue" } }, [e._l(e.myValue, function(n, a) {
|
|
7976
|
+
return [o("div", { staticClass: "form-row" }, e._l(e.newFormat, function(l, r) {
|
|
7967
7977
|
var m;
|
|
7968
|
-
return o("div", { directives: [{ name: "show", rawName: "v-show", value: e.isShow(
|
|
7969
|
-
width: !["color", "switch"].includes(
|
|
7978
|
+
return o("div", { directives: [{ name: "show", rawName: "v-show", value: e.isShow(l, n), expression: "isShow(f, e)" }], key: r, staticClass: "form-item" }, [Array.isArray(l.label) ? [o("span", { staticClass: "label" }, [e._v(" " + e._s(l.useLabelIndex ? l.label[a] + (a + 1) : l.label[a]) + " ")])] : o("span", { staticClass: "label" }, [e._v(" " + e._s(l.useLabelIndex ? l.label + (a + 1) : l.label) + " ")]), o(e.useComponentType(l.type), e._b(e._b({ tag: "component", staticClass: "value", style: {
|
|
7979
|
+
width: !["color", "switch"].includes(l.type) && e.format.length > 1 ? "110px" : ""
|
|
7970
7980
|
}, attrs: { "use-blur-event": !1 }, on: { change: function(d) {
|
|
7971
|
-
return e.onValueChange(d, a,
|
|
7972
|
-
} } }, "component", e._d({}, [e.formatTypeValue(
|
|
7981
|
+
return e.onValueChange(d, a, l.value);
|
|
7982
|
+
} } }, "component", e._d({}, [e.formatTypeValue(l.typeValue), typeof n == "string" ? n : (m = n[l.value]) != null ? m : l.defaultValue])), "component", l.props, !1))], 2);
|
|
7973
7983
|
}), 0)];
|
|
7974
|
-
})], 2), o("div", { staticClass: "icon-group" }, e._l(e.myValue, function(
|
|
7975
|
-
return o("div", { key: a, staticClass: "icon-item" }, [e.isVue3 ? o("minus-circle-outlined", { staticClass: "icon delete", on: { click: function(
|
|
7984
|
+
})], 2), o("div", { staticClass: "icon-group" }, e._l(e.myValue, function(n, a) {
|
|
7985
|
+
return o("div", { key: a, staticClass: "icon-item" }, [e.isVue3 ? o("minus-circle-outlined", { staticClass: "icon delete", on: { click: function(l) {
|
|
7976
7986
|
return e.onDelete(a);
|
|
7977
|
-
} } }) : o("span", { staticClass: "icon delete", staticStyle: { "padding-bottom": "12px" }, on: { click: function(
|
|
7987
|
+
} } }) : o("span", { staticClass: "icon delete", staticStyle: { "padding-bottom": "12px" }, on: { click: function(l) {
|
|
7978
7988
|
return e.onDelete(a);
|
|
7979
7989
|
} } }, [e._v("-")])], 1);
|
|
7980
7990
|
}), 0)], 1);
|
|
7981
|
-
},
|
|
7982
|
-
|
|
7983
|
-
|
|
7984
|
-
|
|
7991
|
+
}, _n = [], wn = /* @__PURE__ */ A(
|
|
7992
|
+
gn,
|
|
7993
|
+
Sn,
|
|
7994
|
+
_n,
|
|
7985
7995
|
!1,
|
|
7986
7996
|
null,
|
|
7987
7997
|
"a826f5d7",
|
|
7988
7998
|
null,
|
|
7989
7999
|
null
|
|
7990
8000
|
);
|
|
7991
|
-
const
|
|
7992
|
-
const
|
|
8001
|
+
const Cn = wn.exports;
|
|
8002
|
+
const An = {
|
|
7993
8003
|
name: "GraphicFieldSelect",
|
|
7994
8004
|
props: {
|
|
7995
8005
|
value: {
|
|
@@ -8018,23 +8028,23 @@ const Cl = {
|
|
|
8018
8028
|
}
|
|
8019
8029
|
}
|
|
8020
8030
|
};
|
|
8021
|
-
var
|
|
8031
|
+
var Tn = function() {
|
|
8022
8032
|
var e = this, o = e._self._c;
|
|
8023
|
-
return o("a-select", { attrs: { options: e.options }, model: { value: e.myValue, callback: function(
|
|
8024
|
-
e.myValue =
|
|
8033
|
+
return o("a-select", { attrs: { options: e.options }, model: { value: e.myValue, callback: function(n) {
|
|
8034
|
+
e.myValue = n;
|
|
8025
8035
|
}, expression: "myValue" } });
|
|
8026
|
-
},
|
|
8027
|
-
|
|
8028
|
-
|
|
8029
|
-
|
|
8036
|
+
}, Ln = [], kn = /* @__PURE__ */ A(
|
|
8037
|
+
An,
|
|
8038
|
+
Tn,
|
|
8039
|
+
Ln,
|
|
8030
8040
|
!1,
|
|
8031
8041
|
null,
|
|
8032
8042
|
"cbd51c5b",
|
|
8033
8043
|
null,
|
|
8034
8044
|
null
|
|
8035
8045
|
);
|
|
8036
|
-
const
|
|
8037
|
-
const
|
|
8046
|
+
const $n = kn.exports;
|
|
8047
|
+
const In = [
|
|
8038
8048
|
{
|
|
8039
8049
|
label: "大于",
|
|
8040
8050
|
value: ">"
|
|
@@ -8055,7 +8065,7 @@ const $l = [
|
|
|
8055
8065
|
label: "等于",
|
|
8056
8066
|
value: "=="
|
|
8057
8067
|
}
|
|
8058
|
-
],
|
|
8068
|
+
], Fn = {
|
|
8059
8069
|
name: "VisualColorConfig",
|
|
8060
8070
|
components: {
|
|
8061
8071
|
AppstoreAddOutlined: _t,
|
|
@@ -8075,7 +8085,7 @@ const $l = [
|
|
|
8075
8085
|
data() {
|
|
8076
8086
|
return {
|
|
8077
8087
|
dataList: [],
|
|
8078
|
-
ruleOptions:
|
|
8088
|
+
ruleOptions: In
|
|
8079
8089
|
};
|
|
8080
8090
|
},
|
|
8081
8091
|
watch: {
|
|
@@ -8104,48 +8114,48 @@ const $l = [
|
|
|
8104
8114
|
this.$emit("change", this.dataList);
|
|
8105
8115
|
},
|
|
8106
8116
|
setColor(t, e) {
|
|
8107
|
-
t.color = e, this.$emit("change", this.dataList);
|
|
8117
|
+
typeof e == "object" && (e != null && e.target) || (t.color = e, this.$emit("change", this.dataList));
|
|
8108
8118
|
}
|
|
8109
8119
|
},
|
|
8110
8120
|
mounted() {
|
|
8111
8121
|
this.dataList = Z(this.value || []);
|
|
8112
8122
|
}
|
|
8113
8123
|
};
|
|
8114
|
-
var
|
|
8124
|
+
var Vn = function() {
|
|
8115
8125
|
var e = this, o = e._self._c;
|
|
8116
|
-
return o("div", { staticClass: "visual-color-config" }, [o("div", { staticClass: "add" }, [o("appstore-add-outlined", { staticClass: "icon", on: { click: e.onAdd } })], 1), e._l(e.dataList, function(
|
|
8117
|
-
return o("div", { key: a, staticClass: "config-item" }, [o("div", { staticClass: "item" }, [o("div", { staticStyle: { display: "flex", "justify-content": "space-between" } }, [o("span", [e._v("条件" + e._s(Number(a) + 1) + ":")]), o("span", { staticStyle: { color: "red", cursor: "pointer" }, on: { click: function(
|
|
8126
|
+
return o("div", { staticClass: "visual-color-config" }, [o("div", { staticClass: "add" }, [o("appstore-add-outlined", { staticClass: "icon", on: { click: e.onAdd } })], 1), e._l(e.dataList, function(n, a) {
|
|
8127
|
+
return o("div", { key: a, staticClass: "config-item" }, [o("div", { staticClass: "item" }, [o("div", { staticStyle: { display: "flex", "justify-content": "space-between" } }, [o("span", [e._v("条件" + e._s(Number(a) + 1) + ":")]), o("span", { staticStyle: { color: "red", cursor: "pointer" }, on: { click: function(l) {
|
|
8118
8128
|
e.onDelete(Number(a));
|
|
8119
8129
|
} } }, [e._v("删除")])]), o("div", { staticStyle: { margin: "10px 0" } }, [o("a-input", { attrs: { placeholder: "请输入" }, on: { change: e.onInputChange }, scopedSlots: e._u([{ key: "addonBefore", fn: function() {
|
|
8120
|
-
return [o("a-select", { staticStyle: { width: "100px" }, attrs: { options: e.ruleOptions }, on: { change: e.onInputChange }, model: { value:
|
|
8121
|
-
e.$set(
|
|
8130
|
+
return [o("a-select", { staticStyle: { width: "100px" }, attrs: { options: e.ruleOptions }, on: { change: e.onInputChange }, model: { value: n.rule1, callback: function(l) {
|
|
8131
|
+
e.$set(n, "rule1", l);
|
|
8122
8132
|
}, expression: "data.rule1" } })];
|
|
8123
|
-
}, proxy: !0 }], null, !0), model: { value:
|
|
8124
|
-
e.$set(
|
|
8133
|
+
}, proxy: !0 }], null, !0), model: { value: n.value1, callback: function(l) {
|
|
8134
|
+
e.$set(n, "value1", l);
|
|
8125
8135
|
}, expression: "data.value1" } })], 1), o("div", { staticStyle: { margin: "15px 0 10px" } }, [o("a-input", { attrs: { placeholder: "请输入" }, on: { change: e.onInputChange }, scopedSlots: e._u([{ key: "addonBefore", fn: function() {
|
|
8126
|
-
return [o("a-select", { staticStyle: { width: "100px" }, attrs: { options: e.ruleOptions }, on: { change: e.onInputChange }, model: { value:
|
|
8127
|
-
e.$set(
|
|
8136
|
+
return [o("a-select", { staticStyle: { width: "100px" }, attrs: { options: e.ruleOptions }, on: { change: e.onInputChange }, model: { value: n.rule2, callback: function(l) {
|
|
8137
|
+
e.$set(n, "rule2", l);
|
|
8128
8138
|
}, expression: "data.rule2" } })];
|
|
8129
|
-
}, proxy: !0 }], null, !0), model: { value:
|
|
8130
|
-
e.$set(
|
|
8131
|
-
}, expression: "data.value2" } })], 1), o("div", { staticStyle: { margin: "10px 0" } }, [e._v("名称:")]), o("a-input", { attrs: { placeholder: "请输入名称" }, on: { change: e.onInputChange }, model: { value:
|
|
8132
|
-
e.$set(
|
|
8133
|
-
}, expression: "data.name" } }), o("div", { staticStyle: { margin: "10px 0" } }, [e._v("颜色:")]), o("color-pick", { attrs: { value:
|
|
8134
|
-
return e.setColor(
|
|
8139
|
+
}, proxy: !0 }], null, !0), model: { value: n.value2, callback: function(l) {
|
|
8140
|
+
e.$set(n, "value2", l);
|
|
8141
|
+
}, expression: "data.value2" } })], 1), o("div", { staticStyle: { margin: "10px 0" } }, [e._v("名称:")]), o("a-input", { attrs: { placeholder: "请输入名称" }, on: { change: e.onInputChange }, model: { value: n.name, callback: function(l) {
|
|
8142
|
+
e.$set(n, "name", l);
|
|
8143
|
+
}, expression: "data.name" } }), o("div", { staticStyle: { margin: "10px 0" } }, [e._v("颜色:")]), o("color-pick", { attrs: { value: n.color }, on: { change: function(l) {
|
|
8144
|
+
return e.setColor(n, l);
|
|
8135
8145
|
} } })], 1)]);
|
|
8136
8146
|
})], 2);
|
|
8137
|
-
},
|
|
8138
|
-
|
|
8139
|
-
|
|
8140
|
-
|
|
8147
|
+
}, Mn = [], Dn = /* @__PURE__ */ A(
|
|
8148
|
+
Fn,
|
|
8149
|
+
Vn,
|
|
8150
|
+
Mn,
|
|
8141
8151
|
!1,
|
|
8142
8152
|
null,
|
|
8143
|
-
"
|
|
8153
|
+
"d1d2fffe",
|
|
8144
8154
|
null,
|
|
8145
8155
|
null
|
|
8146
8156
|
);
|
|
8147
|
-
const
|
|
8148
|
-
const
|
|
8157
|
+
const On = Dn.exports;
|
|
8158
|
+
const zn = [
|
|
8149
8159
|
{
|
|
8150
8160
|
label: "大于",
|
|
8151
8161
|
value: ">"
|
|
@@ -8166,7 +8176,7 @@ const Ol = [
|
|
|
8166
8176
|
label: "等于",
|
|
8167
8177
|
value: "=="
|
|
8168
8178
|
}
|
|
8169
|
-
],
|
|
8179
|
+
], Rn = {
|
|
8170
8180
|
name: "VisualSizeConfig",
|
|
8171
8181
|
components: {
|
|
8172
8182
|
AppstoreAddOutlined: _t,
|
|
@@ -8186,7 +8196,7 @@ const Ol = [
|
|
|
8186
8196
|
data() {
|
|
8187
8197
|
return {
|
|
8188
8198
|
dataList: [],
|
|
8189
|
-
ruleOptions:
|
|
8199
|
+
ruleOptions: zn
|
|
8190
8200
|
};
|
|
8191
8201
|
},
|
|
8192
8202
|
watch: {
|
|
@@ -8219,39 +8229,39 @@ const Ol = [
|
|
|
8219
8229
|
this.dataList = Z(this.value || []);
|
|
8220
8230
|
}
|
|
8221
8231
|
};
|
|
8222
|
-
var
|
|
8232
|
+
var Pn = function() {
|
|
8223
8233
|
var e = this, o = e._self._c;
|
|
8224
|
-
return o("div", { staticClass: "visual-size-config" }, [o("div", { staticClass: "add" }, [o("appstore-add-outlined", { staticClass: "icon", on: { click: e.onAdd } })], 1), e._l(e.dataList, function(
|
|
8225
|
-
return o("div", { key: a, staticClass: "config-item" }, [o("div", { staticClass: "item" }, [o("div", { staticStyle: { display: "flex", "justify-content": "space-between" } }, [o("span", [e._v("条件" + e._s(Number(a) + 1) + ":")]), o("span", { staticStyle: { color: "red", cursor: "pointer" }, on: { click: function(
|
|
8234
|
+
return o("div", { staticClass: "visual-size-config" }, [o("div", { staticClass: "add" }, [o("appstore-add-outlined", { staticClass: "icon", on: { click: e.onAdd } })], 1), e._l(e.dataList, function(n, a) {
|
|
8235
|
+
return o("div", { key: a, staticClass: "config-item" }, [o("div", { staticClass: "item" }, [o("div", { staticStyle: { display: "flex", "justify-content": "space-between" } }, [o("span", [e._v("条件" + e._s(Number(a) + 1) + ":")]), o("span", { staticStyle: { color: "red", cursor: "pointer" }, on: { click: function(l) {
|
|
8226
8236
|
e.onDelete(Number(a));
|
|
8227
8237
|
} } }, [e._v("删除")])]), o("div", { staticStyle: { margin: "10px 0" } }, [o("a-input", { attrs: { placeholder: "请输入" }, on: { change: e.onInputChange }, scopedSlots: e._u([{ key: "addonBefore", fn: function() {
|
|
8228
|
-
return [o("a-select", { staticStyle: { width: "100px" }, attrs: { options: e.ruleOptions }, on: { change: e.onInputChange }, model: { value:
|
|
8229
|
-
e.$set(
|
|
8238
|
+
return [o("a-select", { staticStyle: { width: "100px" }, attrs: { options: e.ruleOptions }, on: { change: e.onInputChange }, model: { value: n.rule1, callback: function(l) {
|
|
8239
|
+
e.$set(n, "rule1", l);
|
|
8230
8240
|
}, expression: "data.rule1" } })];
|
|
8231
|
-
}, proxy: !0 }], null, !0), model: { value:
|
|
8232
|
-
e.$set(
|
|
8241
|
+
}, proxy: !0 }], null, !0), model: { value: n.value1, callback: function(l) {
|
|
8242
|
+
e.$set(n, "value1", l);
|
|
8233
8243
|
}, expression: "data.value1" } })], 1), o("div", { staticStyle: { margin: "15px 0 10px" } }, [o("a-input", { attrs: { placeholder: "请输入" }, on: { change: e.onInputChange }, scopedSlots: e._u([{ key: "addonBefore", fn: function() {
|
|
8234
|
-
return [o("a-select", { staticStyle: { width: "100px" }, attrs: { options: e.ruleOptions }, on: { change: e.onInputChange }, model: { value:
|
|
8235
|
-
e.$set(
|
|
8244
|
+
return [o("a-select", { staticStyle: { width: "100px" }, attrs: { options: e.ruleOptions }, on: { change: e.onInputChange }, model: { value: n.rule2, callback: function(l) {
|
|
8245
|
+
e.$set(n, "rule2", l);
|
|
8236
8246
|
}, expression: "data.rule2" } })];
|
|
8237
|
-
}, proxy: !0 }], null, !0), model: { value:
|
|
8238
|
-
e.$set(
|
|
8239
|
-
}, expression: "data.value2" } })], 1), o("div", { staticStyle: { margin: "10px 0" } }, [e._v("尺寸:")]), o("a-input-number", { staticStyle: { width: "100%" }, attrs: { placeholder: "请输入" }, on: { change: e.onInputChange }, model: { value:
|
|
8240
|
-
e.$set(
|
|
8247
|
+
}, proxy: !0 }], null, !0), model: { value: n.value2, callback: function(l) {
|
|
8248
|
+
e.$set(n, "value2", l);
|
|
8249
|
+
}, expression: "data.value2" } })], 1), o("div", { staticStyle: { margin: "10px 0" } }, [e._v("尺寸:")]), o("a-input-number", { staticStyle: { width: "100%" }, attrs: { placeholder: "请输入" }, on: { change: e.onInputChange }, model: { value: n.size, callback: function(l) {
|
|
8250
|
+
e.$set(n, "size", l);
|
|
8241
8251
|
}, expression: "data.size" } })], 1)]);
|
|
8242
8252
|
})], 2);
|
|
8243
|
-
},
|
|
8244
|
-
|
|
8245
|
-
|
|
8246
|
-
|
|
8253
|
+
}, Nn = [], qn = /* @__PURE__ */ A(
|
|
8254
|
+
Rn,
|
|
8255
|
+
Pn,
|
|
8256
|
+
Nn,
|
|
8247
8257
|
!1,
|
|
8248
8258
|
null,
|
|
8249
8259
|
"ed0b93ce",
|
|
8250
8260
|
null,
|
|
8251
8261
|
null
|
|
8252
8262
|
);
|
|
8253
|
-
const
|
|
8254
|
-
const
|
|
8263
|
+
const Bn = qn.exports, z = (t, e) => wo(t, e);
|
|
8264
|
+
const En = {
|
|
8255
8265
|
name: "PropsToForm",
|
|
8256
8266
|
components: {
|
|
8257
8267
|
EcanInput: Mt,
|
|
@@ -8261,14 +8271,14 @@ const Bl = {
|
|
|
8261
8271
|
EcanSwitch: Do,
|
|
8262
8272
|
EcanColorPick: ue,
|
|
8263
8273
|
EcanColorGroupPick: Jo,
|
|
8264
|
-
EcanSlider:
|
|
8265
|
-
EcanTextarea:
|
|
8266
|
-
EcanMarkAreaConfig:
|
|
8267
|
-
EcanMarkLinkConfig:
|
|
8268
|
-
EcanFormGroup:
|
|
8269
|
-
EcanGraphicFieldSelect:
|
|
8270
|
-
EcanVisualColorConfig:
|
|
8271
|
-
EcanVisualSizeConfig:
|
|
8274
|
+
EcanSlider: nn,
|
|
8275
|
+
EcanTextarea: pn,
|
|
8276
|
+
EcanMarkAreaConfig: hn,
|
|
8277
|
+
EcanMarkLinkConfig: vn,
|
|
8278
|
+
EcanFormGroup: Cn,
|
|
8279
|
+
EcanGraphicFieldSelect: $n,
|
|
8280
|
+
EcanVisualColorConfig: On,
|
|
8281
|
+
EcanVisualSizeConfig: Bn
|
|
8272
8282
|
},
|
|
8273
8283
|
props: {
|
|
8274
8284
|
props: {
|
|
@@ -8303,39 +8313,39 @@ const Bl = {
|
|
|
8303
8313
|
return {};
|
|
8304
8314
|
const e = {};
|
|
8305
8315
|
for (const o in t) {
|
|
8306
|
-
const
|
|
8316
|
+
const n = Ae[o], a = n == null ? void 0 : n.show;
|
|
8307
8317
|
a ? this.getShowResult(a, t).isMatch && (e[o] = t[o]) : e[o] = t[o];
|
|
8308
8318
|
}
|
|
8309
|
-
return pt(e, (o,
|
|
8310
|
-
const
|
|
8311
|
-
if (Array.isArray(
|
|
8312
|
-
const r =
|
|
8319
|
+
return pt(e, (o, n, a) => {
|
|
8320
|
+
const l = Ae[a];
|
|
8321
|
+
if (Array.isArray(l)) {
|
|
8322
|
+
const r = l.find((m) => {
|
|
8313
8323
|
const { onlyType: d, excludeType: c, dataVNoHas: g } = m;
|
|
8314
8324
|
let x = !1;
|
|
8315
|
-
return d == null && c == null ? x = !0 : d ? x =
|
|
8325
|
+
return d == null && c == null ? x = !0 : d ? x = z(this.selectedComponentType, d) : c && (x = !z(this.selectedComponentType, c)), x && m.show && (x = this.getShowResult(m.show, t).isMatch), g && isVue3 && (x = !1), x;
|
|
8316
8326
|
});
|
|
8317
|
-
r && this.setFormProps({ result: o, value:
|
|
8327
|
+
r && this.setFormProps({ result: o, value: n, key: a, mapAttributeProp: r });
|
|
8318
8328
|
} else
|
|
8319
|
-
this.setFormProps({ result: o, value:
|
|
8329
|
+
this.setFormProps({ result: o, value: n, key: a, mapAttributeProp: l });
|
|
8320
8330
|
return o;
|
|
8321
8331
|
}, {});
|
|
8322
8332
|
}
|
|
8323
8333
|
},
|
|
8324
8334
|
methods: {
|
|
8325
|
-
setFormProps({ result: t, mapAttributeProp: e, key: o, value:
|
|
8335
|
+
setFormProps({ result: t, mapAttributeProp: e, key: o, value: n }) {
|
|
8326
8336
|
if (t == null || typeof t != "object")
|
|
8327
8337
|
return;
|
|
8328
8338
|
const {
|
|
8329
8339
|
valueProp: a = "value",
|
|
8330
|
-
changeValueEventName:
|
|
8340
|
+
changeValueEventName: l = "change",
|
|
8331
8341
|
events: r,
|
|
8332
8342
|
updateMode: m
|
|
8333
8343
|
} = e;
|
|
8334
|
-
t[o] =
|
|
8344
|
+
t[o] = le(D({}, e), {
|
|
8335
8345
|
valueProp: a,
|
|
8336
|
-
value:
|
|
8346
|
+
value: n,
|
|
8337
8347
|
events: D({
|
|
8338
|
-
[
|
|
8348
|
+
[l]: (d, c = { useContainer: !1 }, g = !0) => {
|
|
8339
8349
|
[void 0, "component"].includes(m) && g && !d.target && this.$emit("change", { [o]: d }, c);
|
|
8340
8350
|
}
|
|
8341
8351
|
}, r)
|
|
@@ -8343,53 +8353,53 @@ const Bl = {
|
|
|
8343
8353
|
},
|
|
8344
8354
|
// 判断关联的属性值是否满足
|
|
8345
8355
|
getShowResult(t = [], e) {
|
|
8346
|
-
return t.reduce((o,
|
|
8356
|
+
return t.reduce((o, n) => {
|
|
8347
8357
|
let a = {
|
|
8348
8358
|
isMatch: !0,
|
|
8349
8359
|
rule: null
|
|
8350
8360
|
};
|
|
8351
8361
|
o && (a = o);
|
|
8352
|
-
let
|
|
8353
|
-
if (
|
|
8362
|
+
let l = !1;
|
|
8363
|
+
if (n.valueRule === "not" ? l = e[n.match] !== n.value : l = e[n.match] === n.value, o) {
|
|
8354
8364
|
if (a.rule)
|
|
8355
8365
|
switch (a.rule) {
|
|
8356
8366
|
case "and":
|
|
8357
|
-
a.isMatch = a.isMatch &&
|
|
8367
|
+
a.isMatch = a.isMatch && l;
|
|
8358
8368
|
break;
|
|
8359
8369
|
case "or":
|
|
8360
|
-
a.isMatch = a.isMatch ||
|
|
8370
|
+
a.isMatch = a.isMatch || l;
|
|
8361
8371
|
break;
|
|
8362
8372
|
}
|
|
8363
8373
|
} else
|
|
8364
|
-
a.isMatch =
|
|
8365
|
-
return a.rule =
|
|
8374
|
+
a.isMatch = l;
|
|
8375
|
+
return a.rule = n.rule || "and", a;
|
|
8366
8376
|
}, null);
|
|
8367
8377
|
}
|
|
8368
8378
|
}
|
|
8369
8379
|
};
|
|
8370
|
-
var
|
|
8380
|
+
var Wn = function() {
|
|
8371
8381
|
var e = this, o = e._self._c;
|
|
8372
|
-
return o("div", { staticClass: "props-to-form" }, e._l(e.formProps, function(
|
|
8373
|
-
var
|
|
8374
|
-
return o("div", { key: a, class: ["prop-item", { layout:
|
|
8382
|
+
return o("div", { staticClass: "props-to-form" }, e._l(e.formProps, function(n, a) {
|
|
8383
|
+
var l;
|
|
8384
|
+
return o("div", { key: a, class: ["prop-item", { layout: n.layout === "vertical" }] }, [n.label ? o("span", { class: ["label", n.layout === "vertical" ? "label-vertical" : ""], style: { width: e.isVue3 ? "28%" : "38%" } }, [e._v(" " + e._s(n.label) + " ")]) : e._e(), o("div", { staticClass: "component-wrapper" }, [Array.isArray(n) ? e._l(n, function(r, m) {
|
|
8375
8385
|
return o("div", { key: m, staticClass: "component" }, [o("Ecan" + r.component[0].toUpperCase() + r.component.slice(1), e._g(e._b({ tag: "component", style: r.style, attrs: { disabled: e.disabled } }, "component", r.props, !1), r.events))], 1);
|
|
8376
|
-
}) : e._e(), Array.isArray(
|
|
8386
|
+
}) : e._e(), Array.isArray(n) ? e._e() : [n.component ? o("Ecan" + n.component[0].toUpperCase() + n.component.slice(1), e._g(e._b(e._b({ tag: "component", staticClass: "component", style: n.style, attrs: { disabled: e.disabled } }, "component", e._d({}, [n.valueProp, n.value])), "component", n.props, !1), n.events)) : e._e(), (l = n == null ? void 0 : n.props) != null && l.tooltip ? o("a-tooltip", { attrs: { title: n.props.tooltip, placement: "topRight", overlayClassName: "question-tooltip", color: "#fff" } }, [o("question-circle-outlined", { style: e.questionStyle })], 1) : e._e()]], 2)]);
|
|
8377
8387
|
}), 0);
|
|
8378
|
-
},
|
|
8379
|
-
|
|
8380
|
-
|
|
8381
|
-
|
|
8388
|
+
}, jn = [], Gn = /* @__PURE__ */ A(
|
|
8389
|
+
En,
|
|
8390
|
+
Wn,
|
|
8391
|
+
jn,
|
|
8382
8392
|
!1,
|
|
8383
8393
|
null,
|
|
8384
8394
|
"dcfa4721",
|
|
8385
8395
|
null,
|
|
8386
8396
|
null
|
|
8387
8397
|
);
|
|
8388
|
-
const
|
|
8389
|
-
const
|
|
8398
|
+
const Hn = Gn.exports;
|
|
8399
|
+
const Un = {
|
|
8390
8400
|
name: "AttributeConfig",
|
|
8391
8401
|
components: {
|
|
8392
|
-
PropsToForm:
|
|
8402
|
+
PropsToForm: Hn
|
|
8393
8403
|
},
|
|
8394
8404
|
props: ["searchValue", "selectedComponent", "selectedComponentType", "renderUsedComponentList"],
|
|
8395
8405
|
provide() {
|
|
@@ -8410,34 +8420,34 @@ const Hl = {
|
|
|
8410
8420
|
searchProps() {
|
|
8411
8421
|
return pt(
|
|
8412
8422
|
Ae,
|
|
8413
|
-
(t, e, o) => (Array.isArray(e) ? e.forEach((
|
|
8414
|
-
|
|
8415
|
-
}) : !Array.isArray(e) &&
|
|
8423
|
+
(t, e, o) => (Array.isArray(e) ? e.forEach((n) => {
|
|
8424
|
+
z(n.label, this.searchValue) && t.push(o);
|
|
8425
|
+
}) : !Array.isArray(e) && z(e.label, this.searchValue) && t.push(o), t),
|
|
8416
8426
|
[]
|
|
8417
8427
|
);
|
|
8418
8428
|
},
|
|
8419
8429
|
finalProps() {
|
|
8420
|
-
var o,
|
|
8430
|
+
var o, n;
|
|
8421
8431
|
const t = (o = this.selectedComponent) == null ? void 0 : o.type;
|
|
8422
8432
|
let e = {};
|
|
8423
8433
|
if (t != null) {
|
|
8424
|
-
const a = ((
|
|
8425
|
-
e = D(D({}, a),
|
|
8434
|
+
const a = ((n = this.componentList) == null ? void 0 : n.find((r) => z(r.type, t))) || {}, l = ge(this.selectedComponent || {}, Object.keys(a || {}));
|
|
8435
|
+
e = D(D({}, a), l);
|
|
8426
8436
|
}
|
|
8427
8437
|
return ge(e, this.searchProps);
|
|
8428
8438
|
},
|
|
8429
8439
|
detailPropsGroups() {
|
|
8430
8440
|
return Lt.map((t) => {
|
|
8431
|
-
const { props: e, title: o, enableProps:
|
|
8441
|
+
const { props: e, title: o, enableProps: n, onlyType: a, excludeType: l, showSwitch: r, dataVNoHas: m } = t, d = [];
|
|
8432
8442
|
return e.forEach((c) => {
|
|
8433
8443
|
var g, x;
|
|
8434
|
-
m && isVue3 || (typeof c == "string" ? d.push(c) :
|
|
8444
|
+
m && isVue3 || (typeof c == "string" ? d.push(c) : z((g = this.selectedComponent) == null ? void 0 : g.type, c.onlyType) ? d.push(c.value) : z((x = this.selectedComponent) == null ? void 0 : x.type, c.excludeType) || d.push(c.value));
|
|
8435
8445
|
}), {
|
|
8436
8446
|
title: o,
|
|
8437
|
-
enableProps: typeof
|
|
8438
|
-
enablePropsName:
|
|
8447
|
+
enableProps: typeof n == "string" && this.selectedComponent ? this.selectedComponent[n] : void 0,
|
|
8448
|
+
enablePropsName: n,
|
|
8439
8449
|
onlyType: a,
|
|
8440
|
-
excludeType:
|
|
8450
|
+
excludeType: l,
|
|
8441
8451
|
showSwitch: r,
|
|
8442
8452
|
props: ge(this.finalProps, d)
|
|
8443
8453
|
};
|
|
@@ -8452,9 +8462,9 @@ const Hl = {
|
|
|
8452
8462
|
if (t && Object.keys(t).length === 1) {
|
|
8453
8463
|
const e = this.componentList.find((i) => i.type === "ecanBar"), {
|
|
8454
8464
|
id: o,
|
|
8455
|
-
name:
|
|
8465
|
+
name: n,
|
|
8456
8466
|
keyName: a,
|
|
8457
|
-
width:
|
|
8467
|
+
width: l,
|
|
8458
8468
|
height: r,
|
|
8459
8469
|
position: m,
|
|
8460
8470
|
top: d,
|
|
@@ -8521,45 +8531,45 @@ const Hl = {
|
|
|
8521
8531
|
e == null || e.stopPropagation();
|
|
8522
8532
|
},
|
|
8523
8533
|
isRenderForm(t, e) {
|
|
8524
|
-
const { onlyType: o, excludeType:
|
|
8525
|
-
return o == null &&
|
|
8534
|
+
const { onlyType: o, excludeType: n } = t;
|
|
8535
|
+
return o == null && n == null ? !0 : o ? z(e, o) : n ? !z(e, n) : !1;
|
|
8526
8536
|
},
|
|
8527
8537
|
lowerCaseIncludes(t, e) {
|
|
8528
|
-
return
|
|
8538
|
+
return z(t, e);
|
|
8529
8539
|
},
|
|
8530
8540
|
change(...t) {
|
|
8531
8541
|
this.$emit("change", ...t);
|
|
8532
8542
|
}
|
|
8533
8543
|
}
|
|
8534
8544
|
};
|
|
8535
|
-
var
|
|
8545
|
+
var Kn = function() {
|
|
8536
8546
|
var e = this, o = e._self._c;
|
|
8537
|
-
return o("div", [o("a-collapse", { model: { value: e.activeKey, callback: function(
|
|
8538
|
-
e.activeKey =
|
|
8539
|
-
}, expression: "activeKey" } }, [e._l(e.detailPropsGroups, function(
|
|
8540
|
-
return [e.isRenderForm(
|
|
8541
|
-
return [typeof
|
|
8542
|
-
}, proxy: !0 }], null, !0) }, [o("props-to-form", { attrs: { selectedComponentType: e.selectedComponentType, props:
|
|
8547
|
+
return o("div", [o("a-collapse", { model: { value: e.activeKey, callback: function(n) {
|
|
8548
|
+
e.activeKey = n;
|
|
8549
|
+
}, expression: "activeKey" } }, [e._l(e.detailPropsGroups, function(n, a) {
|
|
8550
|
+
return [e.isRenderForm(n, e.selectedComponentType) ? [n.title ? o("a-collapse-panel", { key: String(a), attrs: { header: n.title }, scopedSlots: e._u([{ key: "extra", fn: function() {
|
|
8551
|
+
return [typeof n.enableProps == "boolean" || n.showSwitch ? o("a-switch", { attrs: { checked: n.enableProps }, on: { change: (l) => e.onSwitchChange(l, n.enablePropsName), click: e.onSwitchClick } }) : e._e()];
|
|
8552
|
+
}, proxy: !0 }], null, !0) }, [o("props-to-form", { attrs: { selectedComponentType: e.selectedComponentType, props: n.props, disabled: typeof n.enableProps == "boolean" ? !n.enableProps : !!n.showSwitch }, on: { change: e.change } })], 1) : o("div", { staticClass: "props-to-form-wrapper" }, [o("props-to-form", { attrs: { props: n.props }, on: { change: e.change } })], 1)] : e._e()];
|
|
8543
8553
|
})], 2)], 1);
|
|
8544
|
-
},
|
|
8545
|
-
|
|
8546
|
-
|
|
8547
|
-
|
|
8554
|
+
}, Yn = [], Xn = /* @__PURE__ */ A(
|
|
8555
|
+
Un,
|
|
8556
|
+
Kn,
|
|
8557
|
+
Yn,
|
|
8548
8558
|
!1,
|
|
8549
8559
|
null,
|
|
8550
8560
|
"631236ea",
|
|
8551
8561
|
null,
|
|
8552
8562
|
null
|
|
8553
8563
|
);
|
|
8554
|
-
const
|
|
8564
|
+
const Zn = Xn.exports;
|
|
8555
8565
|
window.VUE_VERSION = "2";
|
|
8556
8566
|
window.isVue3 = !1;
|
|
8557
|
-
const
|
|
8567
|
+
const tl = {
|
|
8558
8568
|
install(t, e) {
|
|
8559
|
-
t.component("ChartPanel",
|
|
8569
|
+
t.component("ChartPanel", Zn);
|
|
8560
8570
|
}
|
|
8561
8571
|
};
|
|
8562
8572
|
export {
|
|
8563
|
-
|
|
8564
|
-
|
|
8573
|
+
Zn as ChartPanel,
|
|
8574
|
+
tl as default
|
|
8565
8575
|
};
|